@apolitical/component-library 1.9.0 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/4TNE5QTO-80ea09b3.js +987 -0
- package/{4TNE5QTO-128d9bfa.mjs → 4TNE5QTO-a7c3a370.mjs} +3 -4
- package/constants/contact-details.d.ts +8 -0
- package/constants/index.d.ts +1 -0
- package/general/link/link.d.ts +7 -1
- package/index-ad400da7.mjs +23290 -0
- package/index-b0222665.js +101 -0
- package/index.d.ts +0 -1
- package/index.js +1 -1
- package/index.mjs +68 -150
- package/navigation/index.d.ts +1 -0
- package/navigation/language-switcher/index.d.ts +1 -0
- package/navigation/language-switcher/language-switcher.d.ts +37 -0
- package/navigation/language-switcher/language-switcher.helpers.d.ts +2 -0
- package/navigation/language-switcher/language-switcher.mock.d.ts +29 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/variables/colors/_theme.scss +5 -0
- package/4TNE5QTO-acef2331.js +0 -987
- package/index-6e9a2b8a.js +0 -240
- package/index-cfa68ef5.mjs +0 -47532
package/index-6e9a2b8a.js
DELETED
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
"use strict";var rg=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var q=(e,t,r)=>(rg(e,t,"read from private field"),r?r.call(e):t.get(e)),pe=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},se=(e,t,r,n)=>(rg(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Xu=(e,t,r,n)=>({set _(a){se(e,t,a,r)},get _(){return q(e,t,n)}}),Oe=(e,t,r)=>(rg(e,t,"access private method"),r);const K=require("react"),P=require("react/jsx-runtime"),Ui=require("react-dom");function hD(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}function mD(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(n,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Te=hD(K);var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nu(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var qO={exports:{}};/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var i=typeof o;if(i==="string"||i==="number")n.push(o);else if(Array.isArray(o)){if(o.length){var s=r.apply(null,o);s&&n.push(s)}}else if(i==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&n.push(l)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(qO);var vD=qO.exports;const be=Yt(vD),yD=({element:e="span",showOnFocus:t=!0,children:r,...n})=>K.createElement(e,{...n,className:be("hidden",{"show-on-focus":t}),children:r}),Kt=K.memo(yD),gD=({element:e="span",children:t=null,...r})=>K.createElement(e,{...r,"aria-hidden":!0},t),Z_=K.memo(gD),Jo=(e,t)=>{const r=K.useRef(!1);K.useEffect(()=>{r.current?e():r.current=!0},t)};/*!
|
|
6
|
-
* cookie
|
|
7
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
8
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
9
|
-
* MIT Licensed
|
|
10
|
-
*/var kO=ED,kC=_D,bD=Object.prototype.toString,Ju=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function ED(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var r={},n=t||{},a=n.decode||wD,o=0;o<e.length;){var i=e.indexOf("=",o);if(i===-1)break;var s=e.indexOf(";",o);if(s===-1)s=e.length;else if(s<i){o=e.lastIndexOf(";",i-1)+1;continue}var l=e.slice(o,i).trim();if(r[l]===void 0){var u=e.slice(i+1,s).trim();u.charCodeAt(0)===34&&(u=u.slice(1,-1)),r[l]=SD(u,a)}o=s+1}return r}function _D(e,t,r){var n=r||{},a=n.encode||CD;if(typeof a!="function")throw new TypeError("option encode is invalid");if(!Ju.test(e))throw new TypeError("argument name is invalid");var o=a(t);if(o&&!Ju.test(o))throw new TypeError("argument val is invalid");var i=e+"="+o;if(n.maxAge!=null){var s=n.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");i+="; Max-Age="+Math.floor(s)}if(n.domain){if(!Ju.test(n.domain))throw new TypeError("option domain is invalid");i+="; Domain="+n.domain}if(n.path){if(!Ju.test(n.path))throw new TypeError("option path is invalid");i+="; Path="+n.path}if(n.expires){var l=n.expires;if(!RD(l)||isNaN(l.valueOf()))throw new TypeError("option expires is invalid");i+="; Expires="+l.toUTCString()}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.priority){var u=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(u){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){var c=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(c){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return i}function wD(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function CD(e){return encodeURIComponent(e)}function RD(e){return bD.call(e)==="[object Date]"||e instanceof Date}function SD(e,t){try{return t(e)}catch{return e}}function TD(){return typeof document=="object"&&typeof document.cookie=="string"}function xD(e){return typeof e=="string"?kO(e):typeof e=="object"&&e!==null?e:{}}function ng(e,t={}){const r=PD(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function PD(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class LO{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const a=this.cookies;this.cookies=kO(document.cookie),this._checkChanges(a)};const n=typeof document>"u"?"":document.cookie;this.cookies=xD(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=TD()}_emitChange(t){for(let r=0;r<this.changeListeners.length;++r)this.changeListeners[r](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(n=>{t[n]!==this.cookies[n]&&this._emitChange({name:n,value:ng(t[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),ng(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=ng(this.cookies[n],t);return r}set(t,r,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const a=typeof r=="string"?r:JSON.stringify(r);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:a}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=kC(t,a,n)),this._emitChange({name:t,value:r,options:n})}remove(t,r){const n=r=Object.assign(Object.assign({},r),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=kC(t,"",n)),this._emitChange({name:t,value:void 0,options:r})}addChangeListener(t){this.changeListeners.push(t),this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const r=this.changeListeners.indexOf(t);r>=0&&this.changeListeners.splice(r,1),this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const DO=Te.createContext(new LO),{Provider:OD,Consumer:JRe}=DO,AD=DO;class $D extends Te.Component{constructor(t){super(t),t.cookies?this.cookies=t.cookies:this.cookies=new LO(void 0,t.defaultSetOptions)}render(){return Te.createElement(OD,{value:this.cookies},this.props.children)}}var Y0={exports:{}},Ke={};/** @license React v16.13.1
|
|
11
|
-
* react-is.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var LC;function ID(){if(LC)return Ke;LC=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function _(R){if(typeof R=="object"&&R!==null){var T=R.$$typeof;switch(T){case t:switch(R=R.type,R){case l:case u:case n:case o:case a:case d:return R;default:switch(R=R&&R.$$typeof,R){case s:case c:case h:case p:case i:return R;default:return T}}case r:return T}}}function S(R){return _(R)===u}return Ke.AsyncMode=l,Ke.ConcurrentMode=u,Ke.ContextConsumer=s,Ke.ContextProvider=i,Ke.Element=t,Ke.ForwardRef=c,Ke.Fragment=n,Ke.Lazy=h,Ke.Memo=p,Ke.Portal=r,Ke.Profiler=o,Ke.StrictMode=a,Ke.Suspense=d,Ke.isAsyncMode=function(R){return S(R)||_(R)===l},Ke.isConcurrentMode=S,Ke.isContextConsumer=function(R){return _(R)===s},Ke.isContextProvider=function(R){return _(R)===i},Ke.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===t},Ke.isForwardRef=function(R){return _(R)===c},Ke.isFragment=function(R){return _(R)===n},Ke.isLazy=function(R){return _(R)===h},Ke.isMemo=function(R){return _(R)===p},Ke.isPortal=function(R){return _(R)===r},Ke.isProfiler=function(R){return _(R)===o},Ke.isStrictMode=function(R){return _(R)===a},Ke.isSuspense=function(R){return _(R)===d},Ke.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===n||R===u||R===o||R===a||R===d||R===f||typeof R=="object"&&R!==null&&(R.$$typeof===h||R.$$typeof===p||R.$$typeof===i||R.$$typeof===s||R.$$typeof===c||R.$$typeof===b||R.$$typeof===y||R.$$typeof===v||R.$$typeof===m)},Ke.typeOf=_,Ke}var Ye={};/** @license React v16.13.1
|
|
18
|
-
* react-is.development.js
|
|
19
|
-
*
|
|
20
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
|
-
*
|
|
22
|
-
* This source code is licensed under the MIT license found in the
|
|
23
|
-
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/var DC;function ND(){return DC||(DC=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function _(me){return typeof me=="string"||typeof me=="function"||me===n||me===u||me===o||me===a||me===d||me===f||typeof me=="object"&&me!==null&&(me.$$typeof===h||me.$$typeof===p||me.$$typeof===i||me.$$typeof===s||me.$$typeof===c||me.$$typeof===b||me.$$typeof===y||me.$$typeof===v||me.$$typeof===m)}function S(me){if(typeof me=="object"&&me!==null){var nt=me.$$typeof;switch(nt){case t:var Ve=me.type;switch(Ve){case l:case u:case n:case o:case a:case d:return Ve;default:var kt=Ve&&Ve.$$typeof;switch(kt){case s:case c:case h:case p:case i:return kt;default:return nt}}case r:return nt}}}var R=l,T=u,O=s,$=i,D=t,Q=c,V=n,G=h,j=p,te=r,X=o,L=a,Y=d,ae=!1;function ge(me){return ae||(ae=!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.")),z(me)||S(me)===l}function z(me){return S(me)===u}function H(me){return S(me)===s}function oe(me){return S(me)===i}function le(me){return typeof me=="object"&&me!==null&&me.$$typeof===t}function $e(me){return S(me)===c}function ie(me){return S(me)===n}function he(me){return S(me)===h}function Ge(me){return S(me)===p}function Le(me){return S(me)===r}function Rt(me){return S(me)===o}function xt(me){return S(me)===a}function ye(me){return S(me)===d}Ye.AsyncMode=R,Ye.ConcurrentMode=T,Ye.ContextConsumer=O,Ye.ContextProvider=$,Ye.Element=D,Ye.ForwardRef=Q,Ye.Fragment=V,Ye.Lazy=G,Ye.Memo=j,Ye.Portal=te,Ye.Profiler=X,Ye.StrictMode=L,Ye.Suspense=Y,Ye.isAsyncMode=ge,Ye.isConcurrentMode=z,Ye.isContextConsumer=H,Ye.isContextProvider=oe,Ye.isElement=le,Ye.isForwardRef=$e,Ye.isFragment=ie,Ye.isLazy=he,Ye.isMemo=Ge,Ye.isPortal=Le,Ye.isProfiler=Rt,Ye.isStrictMode=xt,Ye.isSuspense=ye,Ye.isValidElementType=_,Ye.typeOf=S}()),Ye}process.env.NODE_ENV==="production"?Y0.exports=ID():Y0.exports=ND();var MD=Y0.exports,BO=MD,qD={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},kD={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},FO={};FO[BO.ForwardRef]=qD;FO[BO.Memo]=kD;function LD(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function jO(e){const t=K.useContext(AD);if(!t)throw new Error("Missing <CookiesProvider>");const[r,n]=K.useState(()=>t.getAll());LD()&&K.useLayoutEffect(()=>{function s(){const l=t.getAll({doNotUpdate:!0});DD(e||null,l,r)&&n(l)}return t.addChangeListener(s),()=>{t.removeChangeListener(s)}},[t,r]);const a=K.useMemo(()=>t.set.bind(t),[t]),o=K.useMemo(()=>t.remove.bind(t),[t]),i=K.useMemo(()=>t.update.bind(t),[t]);return[r,a,o,i]}function DD(e,t,r){if(!e)return!0;for(let n of e)if(t[n]!==r[n])return!0;return!1}var UO={exports:{}},ag={exports:{}},Zu={},ec={exports:{}},og,BC;function HO(){return BC||(BC=1,og=function(t,r){return function(){for(var a=new Array(arguments.length),o=0;o<a.length;o++)a[o]=arguments[o];return t.apply(r,a)}}),og}var ig,FC;function Xt(){if(FC)return ig;FC=1;var e=HO(),t=Object.prototype.toString,r=function(L){return function(Y){var ae=t.call(Y);return L[ae]||(L[ae]=ae.slice(8,-1).toLowerCase())}}(Object.create(null));function n(L){return L=L.toLowerCase(),function(ae){return r(ae)===L}}function a(L){return Array.isArray(L)}function o(L){return typeof L>"u"}function i(L){return L!==null&&!o(L)&&L.constructor!==null&&!o(L.constructor)&&typeof L.constructor.isBuffer=="function"&&L.constructor.isBuffer(L)}var s=n("ArrayBuffer");function l(L){var Y;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?Y=ArrayBuffer.isView(L):Y=L&&L.buffer&&s(L.buffer),Y}function u(L){return typeof L=="string"}function c(L){return typeof L=="number"}function d(L){return L!==null&&typeof L=="object"}function f(L){if(r(L)!=="object")return!1;var Y=Object.getPrototypeOf(L);return Y===null||Y===Object.prototype}var p=n("Date"),h=n("File"),m=n("Blob"),b=n("FileList");function y(L){return t.call(L)==="[object Function]"}function v(L){return d(L)&&y(L.pipe)}function _(L){var Y="[object FormData]";return L&&(typeof FormData=="function"&&L instanceof FormData||t.call(L)===Y||y(L.toString)&&L.toString()===Y)}var S=n("URLSearchParams");function R(L){return L.trim?L.trim():L.replace(/^\s+|\s+$/g,"")}function T(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function O(L,Y){if(!(L===null||typeof L>"u"))if(typeof L!="object"&&(L=[L]),a(L))for(var ae=0,ge=L.length;ae<ge;ae++)Y.call(null,L[ae],ae,L);else for(var z in L)Object.prototype.hasOwnProperty.call(L,z)&&Y.call(null,L[z],z,L)}function $(){var L={};function Y(z,H){f(L[H])&&f(z)?L[H]=$(L[H],z):f(z)?L[H]=$({},z):a(z)?L[H]=z.slice():L[H]=z}for(var ae=0,ge=arguments.length;ae<ge;ae++)O(arguments[ae],Y);return L}function D(L,Y,ae){return O(Y,function(z,H){ae&&typeof z=="function"?L[H]=e(z,ae):L[H]=z}),L}function Q(L){return L.charCodeAt(0)===65279&&(L=L.slice(1)),L}function V(L,Y,ae,ge){L.prototype=Object.create(Y.prototype,ge),L.prototype.constructor=L,ae&&Object.assign(L.prototype,ae)}function G(L,Y,ae){var ge,z,H,oe={};Y=Y||{};do{for(ge=Object.getOwnPropertyNames(L),z=ge.length;z-- >0;)H=ge[z],oe[H]||(Y[H]=L[H],oe[H]=!0);L=Object.getPrototypeOf(L)}while(L&&(!ae||ae(L,Y))&&L!==Object.prototype);return Y}function j(L,Y,ae){L=String(L),(ae===void 0||ae>L.length)&&(ae=L.length),ae-=Y.length;var ge=L.indexOf(Y,ae);return ge!==-1&&ge===ae}function te(L){if(!L)return null;var Y=L.length;if(o(Y))return null;for(var ae=new Array(Y);Y-- >0;)ae[Y]=L[Y];return ae}var X=function(L){return function(Y){return L&&Y instanceof L}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return ig={isArray:a,isArrayBuffer:s,isBuffer:i,isFormData:_,isArrayBufferView:l,isString:u,isNumber:c,isObject:d,isPlainObject:f,isUndefined:o,isDate:p,isFile:h,isBlob:m,isFunction:y,isStream:v,isURLSearchParams:S,isStandardBrowserEnv:T,forEach:O,merge:$,extend:D,trim:R,stripBOM:Q,inherits:V,toFlatObject:G,kindOf:r,kindOfTest:n,endsWith:j,toArray:te,isTypedArray:X,isFileList:b},ig}var sg,jC;function GO(){if(jC)return sg;jC=1;var e=Xt();function t(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return sg=function(n,a,o){if(!a)return n;var i;if(o)i=o(a);else if(e.isURLSearchParams(a))i=a.toString();else{var s=[];e.forEach(a,function(c,d){c===null||typeof c>"u"||(e.isArray(c)?d=d+"[]":c=[c],e.forEach(c,function(p){e.isDate(p)?p=p.toISOString():e.isObject(p)&&(p=JSON.stringify(p)),s.push(t(d)+"="+t(p))}))}),i=s.join("&")}if(i){var l=n.indexOf("#");l!==-1&&(n=n.slice(0,l)),n+=(n.indexOf("?")===-1?"?":"&")+i}return n},sg}var lg,UC;function BD(){if(UC)return lg;UC=1;var e=Xt();function t(){this.handlers=[]}return t.prototype.use=function(n,a,o){return this.handlers.push({fulfilled:n,rejected:a,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1},t.prototype.eject=function(n){this.handlers[n]&&(this.handlers[n]=null)},t.prototype.forEach=function(n){e.forEach(this.handlers,function(o){o!==null&&n(o)})},lg=t,lg}var ug,HC;function FD(){if(HC)return ug;HC=1;var e=Xt();return ug=function(r,n){e.forEach(r,function(o,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(r[n]=o,delete r[i])})},ug}var cg,GC;function $s(){if(GC)return cg;GC=1;var e=Xt();function t(a,o,i,s,l){Error.call(this),this.message=a,this.name="AxiosError",o&&(this.code=o),i&&(this.config=i),s&&(this.request=s),l&&(this.response=l)}e.inherits(t,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var r=t.prototype,n={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(a){n[a]={value:a}}),Object.defineProperties(t,n),Object.defineProperty(r,"isAxiosError",{value:!0}),t.from=function(a,o,i,s,l,u){var c=Object.create(r);return e.toFlatObject(a,c,function(f){return f!==Error.prototype}),t.call(c,a.message,o,i,s,l),c.name=a.name,u&&Object.assign(c,u),c},cg=t,cg}var dg,VC;function VO(){return VC||(VC=1,dg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),dg}var fg,WC;function WO(){if(WC)return fg;WC=1;var e=Xt();function t(r,n){n=n||new FormData;var a=[];function o(s){return s===null?"":e.isDate(s)?s.toISOString():e.isArrayBuffer(s)||e.isTypedArray(s)?typeof Blob=="function"?new Blob([s]):Buffer.from(s):s}function i(s,l){if(e.isPlainObject(s)||e.isArray(s)){if(a.indexOf(s)!==-1)throw Error("Circular reference detected in "+l);a.push(s),e.forEach(s,function(c,d){if(!e.isUndefined(c)){var f=l?l+"."+d:d,p;if(c&&!l&&typeof c=="object"){if(e.endsWith(d,"{}"))c=JSON.stringify(c);else if(e.endsWith(d,"[]")&&(p=e.toArray(c))){p.forEach(function(h){!e.isUndefined(h)&&n.append(f,o(h))});return}}i(c,f)}}),a.pop()}else n.append(l,o(s))}return i(r),n}return fg=t,fg}var pg,zC;function jD(){if(zC)return pg;zC=1;var e=$s();return pg=function(r,n,a){var o=a.config.validateStatus;!a.status||!o||o(a.status)?r(a):n(new e("Request failed with status code "+a.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))},pg}var hg,QC;function UD(){if(QC)return hg;QC=1;var e=Xt();return hg=e.isStandardBrowserEnv()?function(){return{write:function(n,a,o,i,s,l){var u=[];u.push(n+"="+encodeURIComponent(a)),e.isNumber(o)&&u.push("expires="+new Date(o).toGMTString()),e.isString(i)&&u.push("path="+i),e.isString(s)&&u.push("domain="+s),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){var a=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),hg}var mg,KC;function HD(){return KC||(KC=1,mg=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),mg}var vg,YC;function GD(){return YC||(YC=1,vg=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),vg}var yg,XC;function zO(){if(XC)return yg;XC=1;var e=HD(),t=GD();return yg=function(n,a){return n&&!e(a)?t(n,a):a},yg}var gg,JC;function VD(){if(JC)return gg;JC=1;var e=Xt(),t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return gg=function(n){var a={},o,i,s;return n&&e.forEach(n.split(`
|
|
25
|
-
`),function(u){if(s=u.indexOf(":"),o=e.trim(u.substr(0,s)).toLowerCase(),i=e.trim(u.substr(s+1)),o){if(a[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?a[o]=(a[o]?a[o]:[]).concat([i]):a[o]=a[o]?a[o]+", "+i:i}}),a},gg}var bg,ZC;function WD(){if(ZC)return bg;ZC=1;var e=Xt();return bg=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),a;function o(i){var s=i;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=o(window.location.href),function(s){var l=e.isString(s)?o(s):s;return l.protocol===a.protocol&&l.host===a.host}}():function(){return function(){return!0}}(),bg}var Eg,eR;function Kd(){if(eR)return Eg;eR=1;var e=$s(),t=Xt();function r(n){e.call(this,n??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(r,e,{__CANCEL__:!0}),Eg=r,Eg}var _g,tR;function zD(){return tR||(tR=1,_g=function(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}),_g}var wg,rR;function nR(){if(rR)return wg;rR=1;var e=Xt(),t=jD(),r=UD(),n=GO(),a=zO(),o=VD(),i=WD(),s=VO(),l=$s(),u=Kd(),c=zD();return wg=function(f){return new Promise(function(h,m){var b=f.data,y=f.headers,v=f.responseType,_;function S(){f.cancelToken&&f.cancelToken.unsubscribe(_),f.signal&&f.signal.removeEventListener("abort",_)}e.isFormData(b)&&e.isStandardBrowserEnv()&&delete y["Content-Type"];var R=new XMLHttpRequest;if(f.auth){var T=f.auth.username||"",O=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";y.Authorization="Basic "+btoa(T+":"+O)}var $=a(f.baseURL,f.url);R.open(f.method.toUpperCase(),n($,f.params,f.paramsSerializer),!0),R.timeout=f.timeout;function D(){if(R){var G="getAllResponseHeaders"in R?o(R.getAllResponseHeaders()):null,j=!v||v==="text"||v==="json"?R.responseText:R.response,te={data:j,status:R.status,statusText:R.statusText,headers:G,config:f,request:R};t(function(L){h(L),S()},function(L){m(L),S()},te),R=null}}if("onloadend"in R?R.onloadend=D:R.onreadystatechange=function(){!R||R.readyState!==4||R.status===0&&!(R.responseURL&&R.responseURL.indexOf("file:")===0)||setTimeout(D)},R.onabort=function(){R&&(m(new l("Request aborted",l.ECONNABORTED,f,R)),R=null)},R.onerror=function(){m(new l("Network Error",l.ERR_NETWORK,f,R,R)),R=null},R.ontimeout=function(){var j=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",te=f.transitional||s;f.timeoutErrorMessage&&(j=f.timeoutErrorMessage),m(new l(j,te.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,f,R)),R=null},e.isStandardBrowserEnv()){var Q=(f.withCredentials||i($))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;Q&&(y[f.xsrfHeaderName]=Q)}"setRequestHeader"in R&&e.forEach(y,function(j,te){typeof b>"u"&&te.toLowerCase()==="content-type"?delete y[te]:R.setRequestHeader(te,j)}),e.isUndefined(f.withCredentials)||(R.withCredentials=!!f.withCredentials),v&&v!=="json"&&(R.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&R.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&R.upload&&R.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(_=function(G){R&&(m(!G||G&&G.type?new u:G),R.abort(),R=null)},f.cancelToken&&f.cancelToken.subscribe(_),f.signal&&(f.signal.aborted?_():f.signal.addEventListener("abort",_))),b||(b=null);var V=c($);if(V&&["http","https","file"].indexOf(V)===-1){m(new l("Unsupported protocol "+V+":",l.ERR_BAD_REQUEST,f));return}R.send(b)})},wg}var Cg,aR;function QD(){return aR||(aR=1,Cg=null),Cg}var Rg,oR;function ew(){if(oR)return Rg;oR=1;var e=Xt(),t=FD(),r=$s(),n=VO(),a=WO(),o={"Content-Type":"application/x-www-form-urlencoded"};function i(c,d){!e.isUndefined(c)&&e.isUndefined(c["Content-Type"])&&(c["Content-Type"]=d)}function s(){var c;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(c=nR()),c}function l(c,d,f){if(e.isString(c))try{return(d||JSON.parse)(c),e.trim(c)}catch(p){if(p.name!=="SyntaxError")throw p}return(f||JSON.stringify)(c)}var u={transitional:n,adapter:s(),transformRequest:[function(d,f){if(t(f,"Accept"),t(f,"Content-Type"),e.isFormData(d)||e.isArrayBuffer(d)||e.isBuffer(d)||e.isStream(d)||e.isFile(d)||e.isBlob(d))return d;if(e.isArrayBufferView(d))return d.buffer;if(e.isURLSearchParams(d))return i(f,"application/x-www-form-urlencoded;charset=utf-8"),d.toString();var p=e.isObject(d),h=f&&f["Content-Type"],m;if((m=e.isFileList(d))||p&&h==="multipart/form-data"){var b=this.env&&this.env.FormData;return a(m?{"files[]":d}:d,b&&new b)}else if(p||h==="application/json")return i(f,"application/json"),l(d);return d}],transformResponse:[function(d){var f=this.transitional||u.transitional,p=f&&f.silentJSONParsing,h=f&&f.forcedJSONParsing,m=!p&&this.responseType==="json";if(m||h&&e.isString(d)&&d.length)try{return JSON.parse(d)}catch(b){if(m)throw b.name==="SyntaxError"?r.from(b,r.ERR_BAD_RESPONSE,this,null,this.response):b}return d}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:QD()},validateStatus:function(d){return d>=200&&d<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(d){u.headers[d]={}}),e.forEach(["post","put","patch"],function(d){u.headers[d]=e.merge(o)}),Rg=u,Rg}var Sg,iR;function KD(){if(iR)return Sg;iR=1;var e=Xt(),t=ew();return Sg=function(n,a,o){var i=this||t;return e.forEach(o,function(l){n=l.call(i,n,a)}),n},Sg}var Tg,sR;function QO(){return sR||(sR=1,Tg=function(t){return!!(t&&t.__CANCEL__)}),Tg}var xg,lR;function YD(){if(lR)return xg;lR=1;var e=Xt(),t=KD(),r=QO(),n=ew(),a=Kd();function o(i){if(i.cancelToken&&i.cancelToken.throwIfRequested(),i.signal&&i.signal.aborted)throw new a}return xg=function(s){o(s),s.headers=s.headers||{},s.data=t.call(s,s.data,s.headers,s.transformRequest),s.headers=e.merge(s.headers.common||{},s.headers[s.method]||{},s.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(c){delete s.headers[c]});var l=s.adapter||n.adapter;return l(s).then(function(c){return o(s),c.data=t.call(s,c.data,c.headers,s.transformResponse),c},function(c){return r(c)||(o(s),c&&c.response&&(c.response.data=t.call(s,c.response.data,c.response.headers,s.transformResponse))),Promise.reject(c)})},xg}var Pg,uR;function KO(){if(uR)return Pg;uR=1;var e=Xt();return Pg=function(r,n){n=n||{};var a={};function o(d,f){return e.isPlainObject(d)&&e.isPlainObject(f)?e.merge(d,f):e.isPlainObject(f)?e.merge({},f):e.isArray(f)?f.slice():f}function i(d){if(e.isUndefined(n[d])){if(!e.isUndefined(r[d]))return o(void 0,r[d])}else return o(r[d],n[d])}function s(d){if(!e.isUndefined(n[d]))return o(void 0,n[d])}function l(d){if(e.isUndefined(n[d])){if(!e.isUndefined(r[d]))return o(void 0,r[d])}else return o(void 0,n[d])}function u(d){if(d in n)return o(r[d],n[d]);if(d in r)return o(void 0,r[d])}var c={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u};return e.forEach(Object.keys(r).concat(Object.keys(n)),function(f){var p=c[f]||i,h=p(f);e.isUndefined(h)&&p!==u||(a[f]=h)}),a},Pg}var Og,cR;function YO(){return cR||(cR=1,Og={version:"0.27.2"}),Og}var Ag,dR;function XD(){if(dR)return Ag;dR=1;var e=YO().version,t=$s(),r={};["object","boolean","number","function","string","symbol"].forEach(function(o,i){r[o]=function(l){return typeof l===o||"a"+(i<1?"n ":" ")+o}});var n={};r.transitional=function(i,s,l){function u(c,d){return"[Axios v"+e+"] Transitional option '"+c+"'"+d+(l?". "+l:"")}return function(c,d,f){if(i===!1)throw new t(u(d," has been removed"+(s?" in "+s:"")),t.ERR_DEPRECATED);return s&&!n[d]&&(n[d]=!0,console.warn(u(d," has been deprecated since v"+s+" and will be removed in the near future"))),i?i(c,d,f):!0}};function a(o,i,s){if(typeof o!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var l=Object.keys(o),u=l.length;u-- >0;){var c=l[u],d=i[c];if(d){var f=o[c],p=f===void 0||d(f,c,o);if(p!==!0)throw new t("option "+c+" must be "+p,t.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new t("Unknown option "+c,t.ERR_BAD_OPTION)}}return Ag={assertOptions:a,validators:r},Ag}var $g,fR;function JD(){if(fR)return $g;fR=1;var e=Xt(),t=GO(),r=BD(),n=YD(),a=KO(),o=zO(),i=XD(),s=i.validators;function l(u){this.defaults=u,this.interceptors={request:new r,response:new r}}return l.prototype.request=function(c,d){typeof c=="string"?(d=d||{},d.url=c):d=c||{},d=a(this.defaults,d),d.method?d.method=d.method.toLowerCase():this.defaults.method?d.method=this.defaults.method.toLowerCase():d.method="get";var f=d.transitional;f!==void 0&&i.assertOptions(f,{silentJSONParsing:s.transitional(s.boolean),forcedJSONParsing:s.transitional(s.boolean),clarifyTimeoutError:s.transitional(s.boolean)},!1);var p=[],h=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(d)===!1||(h=h&&T.synchronous,p.unshift(T.fulfilled,T.rejected))});var m=[];this.interceptors.response.forEach(function(T){m.push(T.fulfilled,T.rejected)});var b;if(!h){var y=[n,void 0];for(Array.prototype.unshift.apply(y,p),y=y.concat(m),b=Promise.resolve(d);y.length;)b=b.then(y.shift(),y.shift());return b}for(var v=d;p.length;){var _=p.shift(),S=p.shift();try{v=_(v)}catch(R){S(R);break}}try{b=n(v)}catch(R){return Promise.reject(R)}for(;m.length;)b=b.then(m.shift(),m.shift());return b},l.prototype.getUri=function(c){c=a(this.defaults,c);var d=o(c.baseURL,c.url);return t(d,c.params,c.paramsSerializer)},e.forEach(["delete","get","head","options"],function(c){l.prototype[c]=function(d,f){return this.request(a(f||{},{method:c,url:d,data:(f||{}).data}))}}),e.forEach(["post","put","patch"],function(c){function d(f){return function(h,m,b){return this.request(a(b||{},{method:c,headers:f?{"Content-Type":"multipart/form-data"}:{},url:h,data:m}))}}l.prototype[c]=d(),l.prototype[c+"Form"]=d(!0)}),$g=l,$g}var Ig,pR;function ZD(){if(pR)return Ig;pR=1;var e=Kd();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(i){n=i});var a=this;this.promise.then(function(o){if(a._listeners){var i,s=a._listeners.length;for(i=0;i<s;i++)a._listeners[i](o);a._listeners=null}}),this.promise.then=function(o){var i,s=new Promise(function(l){a.subscribe(l),i=l}).then(o);return s.cancel=function(){a.unsubscribe(i)},s},r(function(i){a.reason||(a.reason=new e(i),n(a.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},t.prototype.unsubscribe=function(n){if(this._listeners){var a=this._listeners.indexOf(n);a!==-1&&this._listeners.splice(a,1)}},t.source=function(){var n,a=new t(function(i){n=i});return{token:a,cancel:n}},Ig=t,Ig}var Ng,hR;function eB(){return hR||(hR=1,Ng=function(t){return function(n){return t.apply(null,n)}}),Ng}var Mg,mR;function tB(){if(mR)return Mg;mR=1;var e=Xt();return Mg=function(r){return e.isObject(r)&&r.isAxiosError===!0},Mg}var vR;function rB(){if(vR)return ec.exports;vR=1;var e=Xt(),t=HO(),r=JD(),n=KO(),a=ew();function o(s){var l=new r(s),u=t(r.prototype.request,l);return e.extend(u,r.prototype,l),e.extend(u,l),u.create=function(d){return o(n(s,d))},u}var i=o(a);return i.Axios=r,i.CanceledError=Kd(),i.CancelToken=ZD(),i.isCancel=QO(),i.VERSION=YO().version,i.toFormData=WO(),i.AxiosError=$s(),i.Cancel=i.CanceledError,i.all=function(l){return Promise.all(l)},i.spread=eB(),i.isAxiosError=tB(),ec.exports=i,ec.exports.default=i,ec.exports}var qg,yR;function XO(){return yR||(yR=1,qg=rB()),qg}var nB=Function.prototype.toString,kg=Object.create,aB=Object.defineProperty,oB=Object.getOwnPropertyDescriptor,gR=Object.getOwnPropertyNames,tw=Object.getOwnPropertySymbols,iB=Object.getPrototypeOf,JO=Object.prototype,sB=JO.hasOwnProperty,lB=JO.propertyIsEnumerable,ZO=typeof tw=="function",uB=typeof WeakMap=="function",cB=function(){if(uB)return function(){return new WeakMap};var e=function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(r){return!!~this._keys.indexOf(r)},t.prototype.get=function(r){return this._values[this._keys.indexOf(r)]},t.prototype.set=function(r,n){this._keys.push(r),this._values.push(n)},t}();return function(){return new e}}(),eA=function(e,t){var r=e.__proto__||iB(e);if(!r)return kg(null);var n=r.constructor;if(n===t.Object)return r===t.Object.prototype?{}:kg(r);if(~nB.call(n).indexOf("[native code]"))try{return new n}catch{}return kg(r)},dB=function(e,t,r,n){var a=eA(e,t);n.set(e,a);for(var o in e)sB.call(e,o)&&(a[o]=r(e[o],n));if(ZO)for(var i=tw(e),s=0,l=i.length,u=void 0;s<l;++s)u=i[s],lB.call(e,u)&&(a[u]=r(e[u],n));return a},bR=function(e,t,r,n){var a=eA(e,t);n.set(e,a);for(var o=ZO?gR(e).concat(tw(e)):gR(e),i=0,s=o.length,l=void 0,u=void 0;i<s;++i)if(l=o[i],l!=="callee"&&l!=="caller")if(u=oB(e,l),u){!u.get&&!u.set&&(u.value=r(e[l],n));try{aB(a,l,u)}catch{a[l]=u.value}}else a[l]=r(e[l],n);return a},fB=function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},pB=Array.isArray,hB=Object.getPrototypeOf,mB=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function so(e,t){var r=!!(t&&t.isStrict),n=t&&t.realm||mB,a=r?bR:dB,o=function(i,s){if(!i||typeof i!="object")return i;if(s.has(i))return s.get(i);var l=i.__proto__||hB(i),u=l&&l.constructor;if(!u||u===n.Object)return a(i,n,o,s);var c;if(pB(i)){if(r)return bR(i,n,o,s);c=new u,s.set(i,c);for(var d=0,f=i.length;d<f;++d)c[d]=o(i[d],s);return c}if(i instanceof n.Date)return new u(i.getTime());if(i instanceof n.RegExp)return c=new u(i.source,i.flags||fB(i)),c.lastIndex=i.lastIndex,c;if(n.Map&&i instanceof n.Map)return c=new u,s.set(i,c),i.forEach(function(p,h){c.set(h,o(p,s))}),c;if(n.Set&&i instanceof n.Set)return c=new u,s.set(i,c),i.forEach(function(p){c.add(o(p,s))}),c;if(n.Blob&&i instanceof n.Blob)return i.slice(0,i.size,i.type);if(n.Buffer&&n.Buffer.isBuffer(i))return c=n.Buffer.allocUnsafe?n.Buffer.allocUnsafe(i.length):new u(i.length),s.set(i,c),i.copy(c),c;if(n.ArrayBuffer){if(n.ArrayBuffer.isView(i))return c=new u(i.buffer.slice(0)),s.set(i,c),c;if(i instanceof n.ArrayBuffer)return c=i.slice(0),s.set(i,c),c}return typeof i.then=="function"||i instanceof Error||n.WeakMap&&i instanceof n.WeakMap||n.WeakSet&&i instanceof n.WeakSet?i:a(i,n,o,s)};return o(e,cB())}so.default=so;so.strict=function(t,r){return so(t,{isStrict:!0,realm:r?r.realm:void 0})};var Yd=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(t,r);if(i.value!==a||i.enumerable!==!0)return!1}return!0},ER=typeof Symbol<"u"&&Symbol,vB=Yd,rw=function(){return typeof ER!="function"||typeof Symbol!="function"||typeof ER("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:vB()},_R={foo:{}},yB=Object,gB=function(){return{__proto__:_R}.foo===_R.foo&&!({__proto__:null}instanceof yB)},bB="Function.prototype.bind called on incompatible ",EB=Object.prototype.toString,_B=Math.max,wB="[object Function]",wR=function(t,r){for(var n=[],a=0;a<t.length;a+=1)n[a]=t[a];for(var o=0;o<r.length;o+=1)n[o+t.length]=r[o];return n},CB=function(t,r){for(var n=[],a=r||0,o=0;a<t.length;a+=1,o+=1)n[o]=t[a];return n},RB=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},SB=function(t){var r=this;if(typeof r!="function"||EB.apply(r)!==wB)throw new TypeError(bB+r);for(var n=CB(arguments,1),a,o=function(){if(this instanceof a){var c=r.apply(this,wR(n,arguments));return Object(c)===c?c:this}return r.apply(t,wR(n,arguments))},i=_B(0,r.length-n.length),s=[],l=0;l<i;l++)s[l]="$"+l;if(a=Function("binder","return function ("+RB(s,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var u=function(){};u.prototype=r.prototype,a.prototype=new u,u.prototype=null}return a},TB=SB,nw=Function.prototype.bind||TB,xB=Function.prototype.call,PB=Object.prototype.hasOwnProperty,OB=nw,tA=OB.call(xB,PB),Be,hs=SyntaxError,rA=Function,Hi=TypeError,Lg=function(e){try{return rA('"use strict"; return ('+e+").constructor;")()}catch{}},Ko=Object.getOwnPropertyDescriptor;if(Ko)try{Ko({},"")}catch{Ko=null}var Dg=function(){throw new Hi},AB=Ko?function(){try{return arguments.callee,Dg}catch{try{return Ko(arguments,"callee").get}catch{return Dg}}}():Dg,xi=rw(),$B=gB(),Gt=Object.getPrototypeOf||($B?function(e){return e.__proto__}:null),Li={},IB=typeof Uint8Array>"u"||!Gt?Be:Gt(Uint8Array),Yo={"%AggregateError%":typeof AggregateError>"u"?Be:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Be:ArrayBuffer,"%ArrayIteratorPrototype%":xi&&Gt?Gt([][Symbol.iterator]()):Be,"%AsyncFromSyncIteratorPrototype%":Be,"%AsyncFunction%":Li,"%AsyncGenerator%":Li,"%AsyncGeneratorFunction%":Li,"%AsyncIteratorPrototype%":Li,"%Atomics%":typeof Atomics>"u"?Be:Atomics,"%BigInt%":typeof BigInt>"u"?Be:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Be:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Be:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Be:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Be:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Be:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Be:FinalizationRegistry,"%Function%":rA,"%GeneratorFunction%":Li,"%Int8Array%":typeof Int8Array>"u"?Be:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Be:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Be:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xi&&Gt?Gt(Gt([][Symbol.iterator]())):Be,"%JSON%":typeof JSON=="object"?JSON:Be,"%Map%":typeof Map>"u"?Be:Map,"%MapIteratorPrototype%":typeof Map>"u"||!xi||!Gt?Be:Gt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Be:Promise,"%Proxy%":typeof Proxy>"u"?Be:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Be:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Be:Set,"%SetIteratorPrototype%":typeof Set>"u"||!xi||!Gt?Be:Gt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Be:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xi&&Gt?Gt(""[Symbol.iterator]()):Be,"%Symbol%":xi?Symbol:Be,"%SyntaxError%":hs,"%ThrowTypeError%":AB,"%TypedArray%":IB,"%TypeError%":Hi,"%Uint8Array%":typeof Uint8Array>"u"?Be:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Be:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Be:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Be:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Be:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Be:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Be:WeakSet};if(Gt)try{null.error}catch(e){var NB=Gt(Gt(e));Yo["%Error.prototype%"]=NB}var MB=function e(t){var r;if(t==="%AsyncFunction%")r=Lg("async function () {}");else if(t==="%GeneratorFunction%")r=Lg("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Lg("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Gt&&(r=Gt(a.prototype))}return Yo[t]=r,r},CR={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Mu=nw,td=tA,qB=Mu.call(Function.call,Array.prototype.concat),kB=Mu.call(Function.apply,Array.prototype.splice),RR=Mu.call(Function.call,String.prototype.replace),rd=Mu.call(Function.call,String.prototype.slice),LB=Mu.call(Function.call,RegExp.prototype.exec),DB=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,BB=/\\(\\)?/g,FB=function(t){var r=rd(t,0,1),n=rd(t,-1);if(r==="%"&&n!=="%")throw new hs("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new hs("invalid intrinsic syntax, expected opening `%`");var a=[];return RR(t,DB,function(o,i,s,l){a[a.length]=s?RR(l,BB,"$1"):i||o}),a},jB=function(t,r){var n=t,a;if(td(CR,n)&&(a=CR[n],n="%"+a[0]+"%"),td(Yo,n)){var o=Yo[n];if(o===Li&&(o=MB(n)),typeof o>"u"&&!r)throw new Hi("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new hs("intrinsic "+t+" does not exist!")},jr=function(t,r){if(typeof t!="string"||t.length===0)throw new Hi("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Hi('"allowMissing" argument must be a boolean');if(LB(/^%?[^%]*%?$/,t)===null)throw new hs("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=FB(t),a=n.length>0?n[0]:"",o=jB("%"+a+"%",r),i=o.name,s=o.value,l=!1,u=o.alias;u&&(a=u[0],kB(n,qB([0,1],u)));for(var c=1,d=!0;c<n.length;c+=1){var f=n[c],p=rd(f,0,1),h=rd(f,-1);if((p==='"'||p==="'"||p==="`"||h==='"'||h==="'"||h==="`")&&p!==h)throw new hs("property names with quotes must have matching quotes");if((f==="constructor"||!d)&&(l=!0),a+="."+f,i="%"+a+"%",td(Yo,i))s=Yo[i];else if(s!=null){if(!(f in s)){if(!r)throw new Hi("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ko&&c+1>=n.length){var m=Ko(s,f);d=!!m,d&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[f]}else d=td(s,f),s=s[f];d&&!l&&(Yo[i]=s)}}return s},nA={exports:{}},UB=jr,X0=UB("%Object.defineProperty%",!0),J0=function(){if(X0)try{return X0({},"a",{value:1}),!0}catch{return!1}return!1};J0.hasArrayLengthDefineBug=function(){if(!J0())return null;try{return X0([],"length",{value:1}).length!==1}catch{return!0}};var Xd=J0,HB=jr,Dc=HB("%Object.getOwnPropertyDescriptor%",!0);if(Dc)try{Dc([],"length")}catch{Dc=null}var aw=Dc,GB=Xd(),ow=jr,Ul=GB&&ow("%Object.defineProperty%",!0);if(Ul)try{Ul({},"a",{value:1})}catch{Ul=!1}var VB=ow("%SyntaxError%"),Pi=ow("%TypeError%"),SR=aw,iw=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Pi("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Pi("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Pi("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Pi("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Pi("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Pi("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!SR&&SR(t,r);if(Ul)Ul(t,r,{configurable:i===null&&l?l.configurable:!i,enumerable:a===null&&l?l.enumerable:!a,value:n,writable:o===null&&l?l.writable:!o});else if(s||!a&&!o&&!i)t[r]=n;else throw new VB("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},aA=jr,TR=iw,WB=Xd(),xR=aw,PR=aA("%TypeError%"),zB=aA("%Math.floor%"),QB=function(t,r){if(typeof t!="function")throw new PR("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||zB(r)!==r)throw new PR("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&xR){var i=xR(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(WB?TR(t,"length",r,!0,!0):TR(t,"length",r)),t};(function(e){var t=nw,r=jr,n=QB,a=r("%TypeError%"),o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,o),l=r("%Object.defineProperty%",!0),u=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(f){if(typeof f!="function")throw new a("a function is required");var p=s(t,i,arguments);return n(p,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return s(t,o,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(nA);var Is=nA.exports,oA=jr,iA=Is,KB=iA(oA("String.prototype.indexOf")),Ur=function(t,r){var n=oA(t,!!r);return typeof n=="function"&&KB(t,".prototype.")>-1?iA(n):n};const YB={},XB=Object.freeze(Object.defineProperty({__proto__:null,default:YB},Symbol.toStringTag,{value:"Module"})),JB=Nu(XB);var sw=typeof Map=="function"&&Map.prototype,Bg=Object.getOwnPropertyDescriptor&&sw?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,nd=sw&&Bg&&typeof Bg.get=="function"?Bg.get:null,OR=sw&&Map.prototype.forEach,lw=typeof Set=="function"&&Set.prototype,Fg=Object.getOwnPropertyDescriptor&&lw?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ad=lw&&Fg&&typeof Fg.get=="function"?Fg.get:null,AR=lw&&Set.prototype.forEach,ZB=typeof WeakMap=="function"&&WeakMap.prototype,Hl=ZB?WeakMap.prototype.has:null,eF=typeof WeakSet=="function"&&WeakSet.prototype,Gl=eF?WeakSet.prototype.has:null,tF=typeof WeakRef=="function"&&WeakRef.prototype,$R=tF?WeakRef.prototype.deref:null,rF=Boolean.prototype.valueOf,nF=Object.prototype.toString,aF=Function.prototype.toString,oF=String.prototype.match,uw=String.prototype.slice,za=String.prototype.replace,iF=String.prototype.toUpperCase,IR=String.prototype.toLowerCase,sA=RegExp.prototype.test,NR=Array.prototype.concat,Tn=Array.prototype.join,sF=Array.prototype.slice,MR=Math.floor,Z0=typeof BigInt=="function"?BigInt.prototype.valueOf:null,jg=Object.getOwnPropertySymbols,eE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ms=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ar=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ms||"symbol")?Symbol.toStringTag:null,lA=Object.prototype.propertyIsEnumerable,qR=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function kR(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||sA.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-MR(-e):MR(e);if(n!==e){var a=String(n),o=uw.call(t,a.length+1);return za.call(a,r,"$&_")+"."+za.call(za.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return za.call(t,r,"$&_")}var tE=JB,LR=tE.custom,DR=cA(LR)?LR:null,lF=function e(t,r,n,a){var o=r||{};if(Ia(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ia(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=Ia(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ia(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ia(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return fA(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?kR(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return s?kR(t,u):u}var c=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return rE(t)?"[Array]":"[Object]";var d=TF(o,n);if(typeof a>"u")a=[];else if(dA(a,t)>=0)return"[Circular]";function f(j,te,X){if(te&&(a=sF.call(a),a.push(te)),X){var L={depth:o.depth};return Ia(o,"quoteStyle")&&(L.quoteStyle=o.quoteStyle),e(j,L,n+1,a)}return e(j,o,n+1,a)}if(typeof t=="function"&&!BR(t)){var p=yF(t),h=tc(t,f);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(h.length>0?" { "+Tn.call(h,", ")+" }":"")}if(cA(t)){var m=ms?za.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):eE.call(t);return typeof t=="object"&&!ms?al(m):m}if(CF(t)){for(var b="<"+IR.call(String(t.nodeName)),y=t.attributes||[],v=0;v<y.length;v++)b+=" "+y[v].name+"="+uA(uF(y[v].value),"double",o);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+IR.call(String(t.nodeName))+">",b}if(rE(t)){if(t.length===0)return"[]";var _=tc(t,f);return d&&!SF(_)?"["+nE(_,d)+"]":"[ "+Tn.call(_,", ")+" ]"}if(dF(t)){var S=tc(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!lA.call(t,"cause")?"{ ["+String(t)+"] "+Tn.call(NR.call("[cause]: "+f(t.cause),S),", ")+" }":S.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Tn.call(S,", ")+" }"}if(typeof t=="object"&&i){if(DR&&typeof t[DR]=="function"&&tE)return tE(t,{depth:c-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(gF(t)){var R=[];return OR&&OR.call(t,function(j,te){R.push(f(te,t,!0)+" => "+f(j,t))}),FR("Map",nd.call(t),R,d)}if(_F(t)){var T=[];return AR&&AR.call(t,function(j){T.push(f(j,t))}),FR("Set",ad.call(t),T,d)}if(bF(t))return Ug("WeakMap");if(wF(t))return Ug("WeakSet");if(EF(t))return Ug("WeakRef");if(pF(t))return al(f(Number(t)));if(mF(t))return al(f(Z0.call(t)));if(hF(t))return al(rF.call(t));if(fF(t))return al(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===we)return"{ [object globalThis] }";if(!cF(t)&&!BR(t)){var O=tc(t,f),$=qR?qR(t)===Object.prototype:t instanceof Object||t.constructor===Object,D=t instanceof Object?"":"null prototype",Q=!$&&ar&&Object(t)===t&&ar in t?uw.call(uo(t),8,-1):D?"Object":"",V=$||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",G=V+(Q||D?"["+Tn.call(NR.call([],Q||[],D||[]),": ")+"] ":"");return O.length===0?G+"{}":d?G+"{"+nE(O,d)+"}":G+"{ "+Tn.call(O,", ")+" }"}return String(t)};function uA(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function uF(e){return za.call(String(e),/"/g,""")}function rE(e){return uo(e)==="[object Array]"&&(!ar||!(typeof e=="object"&&ar in e))}function cF(e){return uo(e)==="[object Date]"&&(!ar||!(typeof e=="object"&&ar in e))}function BR(e){return uo(e)==="[object RegExp]"&&(!ar||!(typeof e=="object"&&ar in e))}function dF(e){return uo(e)==="[object Error]"&&(!ar||!(typeof e=="object"&&ar in e))}function fF(e){return uo(e)==="[object String]"&&(!ar||!(typeof e=="object"&&ar in e))}function pF(e){return uo(e)==="[object Number]"&&(!ar||!(typeof e=="object"&&ar in e))}function hF(e){return uo(e)==="[object Boolean]"&&(!ar||!(typeof e=="object"&&ar in e))}function cA(e){if(ms)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!eE)return!1;try{return eE.call(e),!0}catch{}return!1}function mF(e){if(!e||typeof e!="object"||!Z0)return!1;try{return Z0.call(e),!0}catch{}return!1}var vF=Object.prototype.hasOwnProperty||function(e){return e in this};function Ia(e,t){return vF.call(e,t)}function uo(e){return nF.call(e)}function yF(e){if(e.name)return e.name;var t=oF.call(aF.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function dA(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function gF(e){if(!nd||!e||typeof e!="object")return!1;try{nd.call(e);try{ad.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function bF(e){if(!Hl||!e||typeof e!="object")return!1;try{Hl.call(e,Hl);try{Gl.call(e,Gl)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function EF(e){if(!$R||!e||typeof e!="object")return!1;try{return $R.call(e),!0}catch{}return!1}function _F(e){if(!ad||!e||typeof e!="object")return!1;try{ad.call(e);try{nd.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function wF(e){if(!Gl||!e||typeof e!="object")return!1;try{Gl.call(e,Gl);try{Hl.call(e,Hl)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function CF(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function fA(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return fA(uw.call(e,0,t.maxStringLength),t)+n}var a=za.call(za.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,RF);return uA(a,"single",t)}function RF(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+iF.call(t.toString(16))}function al(e){return"Object("+e+")"}function Ug(e){return e+" { ? }"}function FR(e,t,r,n){var a=n?nE(r,n):Tn.call(r,", ");return e+" ("+t+") {"+a+"}"}function SF(e){for(var t=0;t<e.length;t++)if(dA(e[t],`
|
|
26
|
-
`)>=0)return!1;return!0}function TF(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Tn.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Tn.call(Array(t+1),r)}}function nE(e,t){if(e.length===0)return"";var r=`
|
|
27
|
-
`+t.prev+t.base;return r+Tn.call(e,","+r)+`
|
|
28
|
-
`+t.prev}function tc(e,t){var r=rE(e),n=[];if(r){n.length=e.length;for(var a=0;a<e.length;a++)n[a]=Ia(e,a)?t(e[a],e):""}var o=typeof jg=="function"?jg(e):[],i;if(ms){i={};for(var s=0;s<o.length;s++)i["$"+o[s]]=o[s]}for(var l in e)Ia(e,l)&&(r&&String(Number(l))===l&&l<e.length||ms&&i["$"+l]instanceof Symbol||(sA.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof jg=="function")for(var u=0;u<o.length;u++)lA.call(e,o[u])&&n.push("["+t(o[u])+"]: "+t(e[o[u]],e));return n}var cw=jr,Ns=Ur,xF=lF,PF=cw("%TypeError%"),rc=cw("%WeakMap%",!0),nc=cw("%Map%",!0),OF=Ns("WeakMap.prototype.get",!0),AF=Ns("WeakMap.prototype.set",!0),$F=Ns("WeakMap.prototype.has",!0),IF=Ns("Map.prototype.get",!0),NF=Ns("Map.prototype.set",!0),MF=Ns("Map.prototype.has",!0),dw=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},qF=function(e,t){var r=dw(e,t);return r&&r.value},kF=function(e,t,r){var n=dw(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},LF=function(e,t){return!!dw(e,t)},fw=function(){var t,r,n,a={assert:function(o){if(!a.has(o))throw new PF("Side channel does not contain "+xF(o))},get:function(o){if(rc&&o&&(typeof o=="object"||typeof o=="function")){if(t)return OF(t,o)}else if(nc){if(r)return IF(r,o)}else if(n)return qF(n,o)},has:function(o){if(rc&&o&&(typeof o=="object"||typeof o=="function")){if(t)return $F(t,o)}else if(nc){if(r)return MF(r,o)}else if(n)return LF(n,o);return!1},set:function(o,i){rc&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new rc),AF(t,o,i)):nc?(r||(r=new nc),NF(r,o,i)):(n||(n={key:{},next:null}),kF(n,o,i))}};return a},DF=String.prototype.replace,BF=/%20/g,Hg={RFC1738:"RFC1738",RFC3986:"RFC3986"},pw={default:Hg.RFC3986,formatters:{RFC1738:function(e){return DF.call(e,BF,"+")},RFC3986:function(e){return String(e)}},RFC1738:Hg.RFC1738,RFC3986:Hg.RFC3986},FF=pw,Gg=Object.prototype.hasOwnProperty,Lo=Array.isArray,gn=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),jF=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Lo(n)){for(var a=[],o=0;o<n.length;++o)typeof n[o]<"u"&&a.push(n[o]);r.obj[r.prop]=a}}},pA=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},a=0;a<t.length;++a)typeof t[a]<"u"&&(n[a]=t[a]);return n},UF=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(Lo(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Gg.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var a=t;return Lo(t)&&!Lo(r)&&(a=pA(t,n)),Lo(t)&&Lo(r)?(r.forEach(function(o,i){if(Gg.call(t,i)){var s=t[i];s&&typeof s=="object"&&o&&typeof o=="object"?t[i]=e(s,o,n):t.push(o)}else t[i]=o}),t):Object.keys(r).reduce(function(o,i){var s=r[i];return Gg.call(o,i)?o[i]=e(o[i],s,n):o[i]=s,o},a)},HF=function(t,r){return Object.keys(r).reduce(function(n,a){return n[a]=r[a],n},t)},GF=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},VF=function(t,r,n,a,o){if(t.length===0)return t;var i=t;if(typeof t=="symbol"?i=Symbol.prototype.toString.call(t):typeof t!="string"&&(i=String(t)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var s="",l=0;l<i.length;++l){var u=i.charCodeAt(l);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===FF.RFC1738&&(u===40||u===41)){s+=i.charAt(l);continue}if(u<128){s=s+gn[u];continue}if(u<2048){s=s+(gn[192|u>>6]+gn[128|u&63]);continue}if(u<55296||u>=57344){s=s+(gn[224|u>>12]+gn[128|u>>6&63]+gn[128|u&63]);continue}l+=1,u=65536+((u&1023)<<10|i.charCodeAt(l)&1023),s+=gn[240|u>>18]+gn[128|u>>12&63]+gn[128|u>>6&63]+gn[128|u&63]}return s},WF=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],a=0;a<r.length;++a)for(var o=r[a],i=o.obj[o.prop],s=Object.keys(i),l=0;l<s.length;++l){var u=s[l],c=i[u];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:i,prop:u}),n.push(c))}return jF(r),t},zF=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},QF=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},KF=function(t,r){return[].concat(t,r)},YF=function(t,r){if(Lo(t)){for(var n=[],a=0;a<t.length;a+=1)n.push(r(t[a]));return n}return r(t)},hA={arrayToObject:pA,assign:HF,combine:KF,compact:WF,decode:GF,encode:VF,isBuffer:QF,isRegExp:zF,maybeMap:YF,merge:UF},mA=fw,Bc=hA,Vl=pw,XF=Object.prototype.hasOwnProperty,jR={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},ea=Array.isArray,JF=Array.prototype.push,vA=function(e,t){JF.apply(e,ea(t)?t:[t])},ZF=Date.prototype.toISOString,UR=Vl.default,er={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Bc.encode,encodeValuesOnly:!1,format:UR,formatter:Vl.formatters[UR],indices:!1,serializeDate:function(t){return ZF.call(t)},skipNulls:!1,strictNullHandling:!1},ej=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Vg={},tj=function e(t,r,n,a,o,i,s,l,u,c,d,f,p,h,m,b){for(var y=t,v=b,_=0,S=!1;(v=v.get(Vg))!==void 0&&!S;){var R=v.get(t);if(_+=1,typeof R<"u"){if(R===_)throw new RangeError("Cyclic object value");S=!0}typeof v.get(Vg)>"u"&&(_=0)}if(typeof l=="function"?y=l(r,y):y instanceof Date?y=d(y):n==="comma"&&ea(y)&&(y=Bc.maybeMap(y,function(L){return L instanceof Date?d(L):L})),y===null){if(o)return s&&!h?s(r,er.encoder,m,"key",f):r;y=""}if(ej(y)||Bc.isBuffer(y)){if(s){var T=h?r:s(r,er.encoder,m,"key",f);return[p(T)+"="+p(s(y,er.encoder,m,"value",f))]}return[p(r)+"="+p(String(y))]}var O=[];if(typeof y>"u")return O;var $;if(n==="comma"&&ea(y))h&&s&&(y=Bc.maybeMap(y,s)),$=[{value:y.length>0?y.join(",")||null:void 0}];else if(ea(l))$=l;else{var D=Object.keys(y);$=u?D.sort(u):D}for(var Q=a&&ea(y)&&y.length===1?r+"[]":r,V=0;V<$.length;++V){var G=$[V],j=typeof G=="object"&&typeof G.value<"u"?G.value:y[G];if(!(i&&j===null)){var te=ea(y)?typeof n=="function"?n(Q,G):Q:Q+(c?"."+G:"["+G+"]");b.set(t,_);var X=mA();X.set(Vg,b),vA(O,e(j,te,n,a,o,i,n==="comma"&&h&&ea(y)?null:s,l,u,c,d,f,p,h,m,X))}}return O},rj=function(t){if(!t)return er;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||er.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Vl.default;if(typeof t.format<"u"){if(!XF.call(Vl.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var a=Vl.formatters[n],o=er.filter;return(typeof t.filter=="function"||ea(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:er.addQueryPrefix,allowDots:typeof t.allowDots>"u"?er.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:er.charsetSentinel,delimiter:typeof t.delimiter>"u"?er.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:er.encode,encoder:typeof t.encoder=="function"?t.encoder:er.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:er.encodeValuesOnly,filter:o,format:n,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:er.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:er.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:er.strictNullHandling}},nj=function(e,t){var r=e,n=rj(t),a,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):ea(n.filter)&&(o=n.filter,a=o);var i=[];if(typeof r!="object"||r===null)return"";var s;t&&t.arrayFormat in jR?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var l=jR[s];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=l==="comma"&&t&&t.commaRoundTrip;a||(a=Object.keys(r)),n.sort&&a.sort(n.sort);for(var c=mA(),d=0;d<a.length;++d){var f=a[d];n.skipNulls&&r[f]===null||vA(i,tj(r[f],f,l,u,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,c))}var p=i.join(n.delimiter),h=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),p.length>0?h+p:""},vs=hA,aE=Object.prototype.hasOwnProperty,aj=Array.isArray,Ut={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:vs.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},oj=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},yA=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},ij="utf8=%26%2310003%3B",sj="utf8=%E2%9C%93",lj=function(t,r){var n={__proto__:null},a=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=r.parameterLimit===1/0?void 0:r.parameterLimit,i=a.split(r.delimiter,o),s=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l<i.length;++l)i[l].indexOf("utf8=")===0&&(i[l]===sj?u="utf-8":i[l]===ij&&(u="iso-8859-1"),s=l,l=i.length);for(l=0;l<i.length;++l)if(l!==s){var c=i[l],d=c.indexOf("]="),f=d===-1?c.indexOf("="):d+1,p,h;f===-1?(p=r.decoder(c,Ut.decoder,u,"key"),h=r.strictNullHandling?null:""):(p=r.decoder(c.slice(0,f),Ut.decoder,u,"key"),h=vs.maybeMap(yA(c.slice(f+1),r),function(m){return r.decoder(m,Ut.decoder,u,"value")})),h&&r.interpretNumericEntities&&u==="iso-8859-1"&&(h=oj(h)),c.indexOf("[]=")>-1&&(h=aj(h)?[h]:h),aE.call(n,p)?n[p]=vs.combine(n[p],h):n[p]=h}return n},uj=function(e,t,r,n){for(var a=n?t:yA(t,r),o=e.length-1;o>=0;--o){var i,s=e[o];if(s==="[]"&&r.parseArrays)i=[].concat(a);else{i=r.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,u=parseInt(l,10);!r.parseArrays&&l===""?i={0:a}:!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(i=[],i[u]=a):l!=="__proto__"&&(i[l]=a)}a=i}return a},cj=function(t,r,n,a){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&i.exec(o),u=l?o.slice(0,l.index):o,c=[];if(u){if(!n.plainObjects&&aE.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var d=0;n.depth>0&&(l=s.exec(o))!==null&&d<n.depth;){if(d+=1,!n.plainObjects&&aE.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}return l&&c.push("["+o.slice(l.index)+"]"),uj(c,r,n,a)}},dj=function(t){if(!t)return Ut;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?Ut.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Ut.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ut.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ut.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ut.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ut.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ut.comma,decoder:typeof t.decoder=="function"?t.decoder:Ut.decoder,delimiter:typeof t.delimiter=="string"||vs.isRegExp(t.delimiter)?t.delimiter:Ut.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ut.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ut.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ut.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ut.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ut.strictNullHandling}},fj=function(e,t){var r=dj(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?lj(e,r):e,a=r.plainObjects?Object.create(null):{},o=Object.keys(n),i=0;i<o.length;++i){var s=o[i],l=cj(s,n[s],r,typeof e=="string");a=vs.merge(a,l,r)}return r.allowSparse===!0?a:vs.compact(a)},pj=nj,hj=fj,mj=pw,vj={formats:mj,parse:hj,stringify:pj};const yj=Yt(vj);var gj="[object String]",bj=Object.prototype,Ej=bj.toString,_j=Array.isArray;function wj(e){return!!e&&typeof e=="object"}function Cj(e){return typeof e=="string"||!_j(e)&&wj(e)&&Ej.call(e)==gj}var Rj=Cj;const HR=Yt(Rj);var hw={exports:{}};class gA extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}const Sj=({limit:e,interval:t,strict:r})=>{if(!Number.isFinite(e))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw new TypeError("Expected `interval` to be a finite number");const n=new Map;let a=0,o=0;function i(){const c=Date.now();return c-a>t?(o=1,a=c,0):(o<e?o++:(a+=t,o=1),a-c)}const s=[];function l(){const c=Date.now();if(s.length<e)return s.push(c),0;const d=s.shift()+t;return c>=d?(s.push(c),0):(s.push(d),d-c)}const u=r?l:i;return c=>{const d=function(...f){if(!d.isEnabled)return(async()=>c.apply(this,f))();let p;return new Promise((h,m)=>{p=setTimeout(()=>{h(c.apply(this,f)),n.delete(p)},u()),n.set(p,m)})};return d.abort=()=>{for(const f of n.keys())clearTimeout(f),n.get(f)(new gA);n.clear(),s.splice(0,s.length)},d.isEnabled=!0,d}};hw.exports=Sj;hw.exports.AbortError=gA;var Tj=hw.exports;const xj=Yt(Tj);var Pj="[object Object]";function Oj(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function Aj(e,t){return function(r){return e(t(r))}}var $j=Function.prototype,bA=Object.prototype,EA=$j.toString,Ij=bA.hasOwnProperty,Nj=EA.call(Object),Mj=bA.toString,qj=Aj(Object.getPrototypeOf,Object);function kj(e){return!!e&&typeof e=="object"}function Lj(e){if(!kj(e)||Mj.call(e)!=Pj||Oj(e))return!1;var t=qj(e);if(t===null)return!0;var r=Ij.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&EA.call(r)==Nj}var Dj=Lj;const ac=Yt(Dj);function Bj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function GR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Di(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GR(Object(r),!0).forEach(function(n){Fj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oE(e){"@babel/helpers - typeof";return oE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oE(e)}function iE(){iE=function(a,o){return new r(a,void 0,o)};var e=RegExp.prototype,t=new WeakMap;function r(a,o,i){var s=new RegExp(a,o);return t.set(s,i||t.get(a)),od(s,r.prototype)}function n(a,o){var i=t.get(o);return Object.keys(i).reduce(function(s,l){var u=i[l];if(typeof u=="number")s[l]=a[u];else{for(var c=0;a[u[c]]===void 0&&c+1<u.length;)c++;s[l]=a[u[c]]}return s},Object.create(null))}return jj(r,RegExp),r.prototype.exec=function(a){var o=e.exec.call(this,a);if(o){o.groups=n(o,this);var i=o.indices;i&&(i.groups=n(i,this))}return o},r.prototype[Symbol.replace]=function(a,o){if(typeof o=="string"){var i=t.get(this);return e[Symbol.replace].call(this,a,o.replace(/\$<([^>]+)>/g,function(l,u){var c=i[u];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof o=="function"){var s=this;return e[Symbol.replace].call(this,a,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(n(l,s)),o.apply(this,l)})}return e[Symbol.replace].call(this,a,o)},iE.apply(this,arguments)}function Fj(e,t,r){return t=zj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&od(e,t)}function od(e,t){return od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},od(e,t)}function Uj(e,t){return Hj(e)||Bj(e,t)||_A(e,t)||Gj()}function Hj(e){if(Array.isArray(e))return e}function _A(e,t){if(e){if(typeof e=="string")return VR(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return VR(e,t)}}function VR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Gj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
29
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vj(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_A(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
30
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return o=l.done,l},e:function(l){i=!0,s=l},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function Wj(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zj(e){var t=Wj(e,"string");return typeof t=="symbol"?t:String(t)}function Qj(){return typeof process<"u"&&!process.browser}function Kj(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function Yj(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function Xj(){return window}function sE(){}var lE=iE(/(\d+)(%)/,{value:1});function Wg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:7,r=t;if(lE.test(e)){var n,a=(n=e.match(lE))===null||n===void 0?void 0:n.groups;if(a&&a.value){var o=parseInt(a.value)/100;r=Math.round(t*o)}}return Math.min(30,Math.max(1,r))}function WR(e,t){return t("info","Throttle request to ".concat(e,"/s")),xj({limit:e,interval:1e3,strict:!1})}var Jj=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",r=e.defaults.logHandler,n=r===void 0?sE:r,a=HR(t)?Wg(t):Wg("auto",t),o=WR(a,n),i=!1,s=e.interceptors.request.use(function(u){return o(function(){return u})()},function(u){return Promise.reject(u)}),l=e.interceptors.response.use(function(u){if(!i&&HR(t)&&(t==="auto"||lE.test(t))&&u.headers&&u.headers["x-contentful-ratelimit-second-limit"]){var c=parseInt(u.headers["x-contentful-ratelimit-second-limit"]),d=Wg(t,c);d!==a&&(s&&e.interceptors.request.eject(s),a=d,o=WR(d,n),s=e.interceptors.request.use(function(f){return o(function(){return f})()},function(f){return Promise.reject(f)})),i=!0}return u},function(u){return Promise.reject(u)});return function(){e.interceptors.request.eject(s),e.interceptors.response.eject(l)}},Zj=function(t){return new Promise(function(r){setTimeout(r,t)})},eU=function(t){return Math.pow(Math.SQRT2,t)};function tU(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,r=e.defaults,n=r.responseLogger,a=n===void 0?sE:n,o=r.requestLogger,i=o===void 0?sE:o;e.interceptors.request.use(function(s){return i(s),s},function(s){return i(s),Promise.reject(s)}),e.interceptors.response.use(function(s){return a(s),s},function(s){var l=s.response,u=s.config;if(a(s),!u||!e.defaults.retryOnError)return Promise.reject(s);var c=u.attempts||1;if(c>t)return s.attempts=u.attempts,Promise.reject(s);var d=null,f=eU(c);return l?l.status>=500&&l.status<600?d="Server ".concat(l.status):l.status===429&&(d="Rate limit",l.headers&&s.response.headers["x-contentful-ratelimit-reset"]&&(f=l.headers["x-contentful-ratelimit-reset"])):d="Connection",d?(f=Math.floor(f*1e3+Math.random()*200+500),e.defaults.logHandler("warning","".concat(d," error occurred. Waiting for ").concat(f," ms before retrying...")),u.attempts=c+1,delete u.httpAgent,delete u.httpsAgent,Zj(f).then(function(){return e(u)})):Promise.reject(s)})}function rU(e,t){e.interceptors.request.use(function(r){return t().then(function(n){return r.headers=Di(Di({},r.headers),{},{Authorization:"Bearer ".concat(n)}),r})})}var nU=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function wA(e,t){var r={insecure:!1,retryOnError:!0,logHandler:function(m,b){if(m==="error"&&b){var y=[b.name,b.message].filter(function(v){return v}).join(" - ");console.error("[error] ".concat(y)),console.error(b);return}console.log("[".concat(m,"] ").concat(b))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,proxy:!1,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824},n=Di(Di({},r),t);if(!n.accessToken){var a=new TypeError("Expected parameter accessToken");throw n.logHandler("error",a),a}var o=n.insecure?"http":"https",i=n.space?"".concat(n.space,"/"):"",s=n.defaultHostname,l=n.insecure?80:443;if(n.host&&nU.test(n.host)){var u=n.host.split(":");if(u.length===2){var c=Uj(u,2);s=c[0],l=c[1]}else s=u[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var d=t.baseURL||"".concat(o,"://").concat(s,":").concat(l).concat(n.basePath,"/spaces/").concat(i);!n.headers.Authorization&&typeof n.accessToken!="function"&&(n.headers.Authorization="Bearer "+n.accessToken);var f={baseURL:d,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,paramsSerializer:yj.stringify,proxy:n.proxy,timeout:n.timeout,adapter:n.adapter,maxContentLength:n.maxContentLength,maxBodyLength:n.maxBodyLength,logHandler:n.logHandler,responseLogger:n.responseLogger,requestLogger:n.requestLogger,retryOnError:n.retryOnError},p=e.create(f);return p.httpClientParams=t,p.cloneWithNewParams=function(h){return wA(e,Di(Di({},so(t)),h))},n.onBeforeRequest&&p.interceptors.request.use(n.onBeforeRequest),typeof n.accessToken=="function"&&rU(p,n.accessToken),n.throttle&&Jj(p,n.throttle),tU(p,n.retryLimit),n.onError&&p.interceptors.response.use(function(h){return h},n.onError),p}function aU(e){var t=e.query,r={};return delete t.resolveLinks,r.params=so(t),r}function oU(e,t){if(!(t in e)){var r=new Error;throw r.name="PropertyMissing",r.message="Required property ".concat(t,` missing from:
|
|
31
|
-
|
|
32
|
-
`).concat(JSON.stringify(e),`
|
|
33
|
-
|
|
34
|
-
`),r}return!0}function CA(e){var t=Object.getOwnPropertyNames(e),r=Vj(t),n;try{for(r.s();!(n=r.n()).done;){var a=n.value,o=e[a];o&&oE(o)==="object"&&CA(o)}}catch(i){r.e(i)}finally{r.f()}return Object.freeze(e)}function iU(e){return CA(e.sys||{}),e}function zR(){var e=Xj();if(!e)return null;var t=e.navigator.userAgent,r=e.navigator.platform,n=["Macintosh","MacIntel","MacPPC","Mac68K"],a=["Win32","Win64","Windows","WinCE"],o=["iPhone","iPad","iPod"];return n.indexOf(r)!==-1?"macOS":o.indexOf(r)!==-1?"iOS":a.indexOf(r)!==-1?"Windows":/Android/.test(t)?"Android":/Linux/.test(r)?"Linux":null}function sU(){var e=process.platform||"linux",t=process.version||"0.0.0",r={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in r?"".concat(r[e]||"Linux","/").concat(t):null}function lU(e,t,r,n){var a=[];t&&a.push("app ".concat(t)),r&&a.push("integration ".concat(r)),n&&a.push("feature "+n),a.push("sdk ".concat(e));var o=null;try{Kj()?(o=zR(),a.push("platform ReactNative")):Qj()?(o=sU(),a.push("platform node.js/".concat(Yj()))):(o=zR(),a.push("platform browser"))}catch{o=null}return o&&a.push("os ".concat(o)),"".concat(a.filter(function(i){return i!==""}).join("; "),";")}function uU(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return so(this)}})}function cU(e){var t=e.config,r=e.response,n;if(t&&t.headers&&t.headers.Authorization){var a="...".concat(t.headers.Authorization.toString().substr(-5));t.headers.Authorization="Bearer ".concat(a)}if(!ac(r)||!ac(t))throw e;var o=r==null?void 0:r.data,i={status:r==null?void 0:r.status,statusText:r==null?void 0:r.statusText,message:"",details:{}};ac(t)&&(i.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),o&&ac(o)&&("requestId"in o&&(i.requestId=o.requestId||"UNKNOWN"),"message"in o&&(i.message=o.message||""),"details"in o&&(i.details=o.details||{}),"sys"in o&&"id"in o.sys&&(n=o.sys.id));var s=new Error;s.name=n&&n!=="Unknown"?n:"".concat(r==null?void 0:r.status," ").concat(r==null?void 0:r.statusText);try{s.message=JSON.stringify(i,null," ")}catch{var l;s.message=(l=i==null?void 0:i.message)!==null&&l!==void 0?l:""}throw s}const dU=Object.freeze(Object.defineProperty({__proto__:null,createHttpClient:wA,createRequestConfig:aU,enforceObjPath:oU,errorHandler:cU,freezeSys:iU,getUserAgentHeader:lU,toPlainObject:uU},Symbol.toStringTag,{value:"Module"})),$n=Nu(dU);var oc={},ol={},ic={},QR;function fU(){if(QR)return ic;QR=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.wrapSpace=t;var e=$n;function t(r){return(0,e.freezeSys)((0,e.toPlainObject)(r))}return ic}var il={},zg={exports:{}},KR;function Ms(){return KR||(KR=1,function(e,t){(function(r,n){e.exports=n()})(we,function(){var r=Function.prototype.toString,n=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.getPrototypeOf,u=Object.prototype,c=u.hasOwnProperty,d=u.propertyIsEnumerable,f=typeof s=="function",p=typeof WeakMap=="function",h=function(){if(p)return function(){return new WeakMap};var O=function(){function $(){this._keys=[],this._values=[]}return $.prototype.has=function(D){return!!~this._keys.indexOf(D)},$.prototype.get=function(D){return this._values[this._keys.indexOf(D)]},$.prototype.set=function(D,Q){this._keys.push(D),this._values.push(Q)},$}();return function(){return new O}}(),m=function(O,$){var D=O.__proto__||l(O);if(!D)return n(null);var Q=D.constructor;if(Q===$.Object)return D===$.Object.prototype?{}:n(D);if(~r.call(Q).indexOf("[native code]"))try{return new Q}catch{}return n(D)},b=function(O,$,D,Q){var V=m(O,$);Q.set(O,V);for(var G in O)c.call(O,G)&&(V[G]=D(O[G],Q));if(f)for(var j=s(O),te=0,X=j.length,L=void 0;te<X;++te)L=j[te],d.call(O,L)&&(V[L]=D(O[L],Q));return V},y=function(O,$,D,Q){var V=m(O,$);Q.set(O,V);for(var G=f?i(O).concat(s(O)):i(O),j=0,te=G.length,X=void 0,L=void 0;j<te;++j)if(X=G[j],X!=="callee"&&X!=="caller")if(L=o(O,X),L){!L.get&&!L.set&&(L.value=D(O[X],Q));try{a(V,X,L)}catch{V[X]=L.value}}else V[X]=D(O[X],Q);return V},v=function(O){var $="";return O.global&&($+="g"),O.ignoreCase&&($+="i"),O.multiline&&($+="m"),O.unicode&&($+="u"),O.sticky&&($+="y"),$},_=Array.isArray,S=Object.getPrototypeOf,R=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof we<"u"?we:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function T(O,$){var D=!!($&&$.isStrict),Q=$&&$.realm||R,V=D?y:b,G=function(j,te){if(!j||typeof j!="object")return j;if(te.has(j))return te.get(j);var X=j.__proto__||S(j),L=X&&X.constructor;if(!L||L===Q.Object)return V(j,Q,G,te);var Y;if(_(j)){if(D)return y(j,Q,G,te);Y=new L,te.set(j,Y);for(var ae=0,ge=j.length;ae<ge;++ae)Y[ae]=G(j[ae],te);return Y}if(j instanceof Q.Date)return new L(j.getTime());if(j instanceof Q.RegExp)return Y=new L(j.source,j.flags||v(j)),Y.lastIndex=j.lastIndex,Y;if(Q.Map&&j instanceof Q.Map)return Y=new L,te.set(j,Y),j.forEach(function(z,H){Y.set(H,G(z,te))}),Y;if(Q.Set&&j instanceof Q.Set)return Y=new L,te.set(j,Y),j.forEach(function(z){Y.add(G(z,te))}),Y;if(Q.Blob&&j instanceof Q.Blob)return j.slice(0,j.size,j.type);if(Q.Buffer&&Q.Buffer.isBuffer(j))return Y=Q.Buffer.allocUnsafe?Q.Buffer.allocUnsafe(j.length):new L(j.length),te.set(j,Y),j.copy(Y),Y;if(Q.ArrayBuffer){if(Q.ArrayBuffer.isView(j))return Y=new L(j.buffer.slice(0)),te.set(j,Y),Y;if(j instanceof Q.ArrayBuffer)return Y=j.slice(0),te.set(j,Y),Y}return typeof j.then=="function"||j instanceof Error||Q.WeakMap&&j instanceof Q.WeakMap||Q.WeakSet&&j instanceof Q.WeakSet?j:V(j,Q,G,te)};return G(O,h())}return T.default=T,T.strict=function($,D){return T($,{isStrict:!0,realm:D?D.realm:void 0})},T})}(zg)),zg.exports}var sc={},lc={exports:{}},YR;function pU(){return YR||(YR=1,function(e,t){t=e.exports=r,t.getSerialize=n;function r(a,o,i,s){return JSON.stringify(a,n(o,s),i)}function n(a,o){var i=[],s=[];return o==null&&(o=function(l,u){return i[0]===u?"[Circular ~]":"[Circular ~."+s.slice(0,i.indexOf(u)).join(".")+"]"}),function(l,u){if(i.length>0){var c=i.indexOf(this);~c?i.splice(c+1):i.push(this),~c?s.splice(c,1/0,l):s.push(l),~i.indexOf(u)&&(u=o.call(this,l,u))}else i.push(u);return a==null?u:a.call(this,l,u)}}}(lc,lc.exports)),lc.exports}var XR;function RA(){if(XR)return sc;XR=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.default=r;var e=t(pU());function t(n){return n&&n.__esModule?n:{default:n}}function r(n){return Object.defineProperty(n,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,e.default)(this,a,o,(i,s)=>({sys:{type:"Link",linkType:"Entry",id:s.sys.id,circular:!0}}))}})}return sc}var hU=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mU=function(){function e(t,r){var n=[],a=!0,o=!1,i=void 0;try{for(var s=t[Symbol.iterator](),l;!(a=(l=s.next()).done)&&(n.push(l.value),!(r&&n.length===r));a=!0);}catch(u){o=!0,i=u}finally{try{!a&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function sl(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else return Array.from(e)}var Xl={},vU=function(t){return t&&t.sys&&t.sys.type==="Link"},yU=function(t){return t&&t.sys&&t.sys.type==="ResourceLink"},gU=function(t){return t.space&&t.environment?[t.type+"!"+t.id,t.space.sys.id+"!"+t.environment.sys.id+"!"+t.type+"!"+t.id]:[t.type+"!"+t.id]},JR=function(t,r){var n=r.entryId,a=r.linkType,o=r.spaceId,i=r.environmentId;return o&&i?t.get(o+"!"+i+"!"+a+"!"+n):t.get(a+"!"+n)},bU=function(t){var r=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(r.test(t)){var n=t.match(r),a=mU(n,4);a[0];var o=a[1],i=a[2],s=i===void 0?"master":i,l=a[3];return{spaceId:o,environmentId:s,entryId:l}}},EU=function(t,r){var n=r.sys,a=n.type,o=n.linkType;if(a==="ResourceLink"){var i=r.sys.urn,s=bU(i),l=s.spaceId,u=s.environmentId,c=s.entryId,d=o.split(":")[1];return JR(t,{linkType:d,entryId:c,spaceId:l,environmentId:u})||Xl}var f=r.sys.id;return JR(t,{linkType:o,entryId:f})||Xl},_U=function(t){if(Array.isArray(t))return t.filter(function(n){return n!==Xl});for(var r in t)t[r]===Xl&&delete t[r];return t},wU=function e(t,r,n,a){if(r(t))return n(t);if(t&&(typeof t>"u"?"undefined":hU(t))==="object"){for(var o in t)t.hasOwnProperty(o)&&(t[o]=e(t[o],r,n,a));a&&(t=_U(t))}return t},CU=function(t,r,n){var a=EU(t,r);return a===Xl?n?a:r:a},RU=function(t,r){if(!Array.isArray(r))return t;var n=Object.keys(t).filter(function(a){return r.indexOf(a)!==-1});return n.reduce(function(a,o){return a[o]=t[o],a},{})},SU=function(t,r){if(r=r||{},!t.items)return[];var n=so(t),a=Object.keys(n.includes||{}).reduce(function(s,l){return[].concat(sl(s),sl(t.includes[l]))},[]),o=[].concat(sl(n.items),sl(a)).filter(function(s){return!!s.sys}),i=new Map(o.reduce(function(s,l){var u=gU(l.sys).map(function(c){return[c,l]});return s.push.apply(s,sl(u)),s},[]));return o.forEach(function(s){var l=RU(s,r.itemEntryPoints);Object.assign(s,wU(l,function(u){return vU(u)||yU(u)},function(u){return CU(i,u,r.removeUnresolved)},r.removeUnresolved))}),n.items};const TU=Object.freeze(Object.defineProperty({__proto__:null,default:SU},Symbol.toStringTag,{value:"Module"})),SA=Nu(TU);var ZR;function xU(){if(ZR)return il;ZR=1,Object.defineProperty(il,"__esModule",{value:!0}),il.wrapEntry=o,il.wrapEntryCollection=i;var e=a(Ms()),t=$n,r=a(RA()),n=a(SA);function a(s){return s&&s.__esModule?s:{default:s}}function o(s){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(s)))}function i(s,l){let{resolveLinks:u,removeUnresolved:c}=l;const d=(0,r.default)((0,t.toPlainObject)((0,e.default)(s)));return u&&(d.items=(0,n.default)(d,{removeUnresolved:c,itemEntryPoints:["fields"]})),(0,t.freezeSys)(d)}return il}var ll={},eS;function PU(){if(eS)return ll;eS=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.wrapAsset=n,ll.wrapAssetCollection=a;var e=r(Ms()),t=$n;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}function a(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return ll}var uc={},tS;function OU(){if(tS)return uc;tS=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.wrapAssetKey=n;var e=r(Ms()),t=$n;function r(a){return a&&a.__esModule?a:{default:a}}function n(a){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(a)))}return uc}var ul={},rS;function AU(){if(rS)return ul;rS=1,Object.defineProperty(ul,"__esModule",{value:!0}),ul.wrapContentType=n,ul.wrapContentTypeCollection=a;var e=r(Ms()),t=$n;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}function a(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return ul}var cl={},nS;function $U(){if(nS)return cl;nS=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.wrapLocale=n,cl.wrapLocaleCollection=a;var e=r(Ms()),t=$n;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}function a(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return cl}var dl={},aS;function IU(){if(aS)return dl;aS=1,Object.defineProperty(dl,"__esModule",{value:!0}),dl.wrapTag=n,dl.wrapTagCollection=a;var e=r(Ms()),t=$n;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}function a(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return dl}var oS;function NU(){if(oS)return ol;oS=1,Object.defineProperty(ol,"__esModule",{value:!0}),ol.default=void 0;var e=l(fU()),t=l(xU()),r=l(PU()),n=l(OU()),a=l(AU()),o=l($U()),i=l(IU());function s(c){if(typeof WeakMap!="function")return null;var d=new WeakMap,f=new WeakMap;return(s=function(p){return p?f:d})(c)}function l(c,d){if(!d&&c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var f=s(d);if(f&&f.has(c))return f.get(c);var p={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in c)if(m!=="default"&&Object.prototype.hasOwnProperty.call(c,m)){var b=h?Object.getOwnPropertyDescriptor(c,m):null;b&&(b.get||b.set)?Object.defineProperty(p,m,b):p[m]=c[m]}return p.default=c,f&&f.set(c,p),p}var u={space:e,entry:t,asset:r,assetKey:n,contentType:a,locale:o,tag:i};return ol.default=u,ol}var cc={},iS;function MU(){if(iS)return cc;iS=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.default=s;var e=$n,t=n(SA),r=n(RA());function n(d){return d&&d.__esModule?d:{default:d}}function a(d,f){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(d);f&&(h=h.filter(function(m){return Object.getOwnPropertyDescriptor(d,m).enumerable})),p.push.apply(p,h)}return p}function o(d){for(var f=1;f<arguments.length;f++){var p=arguments[f]!=null?arguments[f]:{};f%2?a(Object(p),!0).forEach(function(h){i(d,h,p[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):a(Object(p)).forEach(function(h){Object.defineProperty(d,h,Object.getOwnPropertyDescriptor(p,h))})}return d}function i(d,f,p){return f in d?Object.defineProperty(d,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[f]=p,d}async function s(d,f){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!f||!f.initial&&!f.nextSyncToken&&!f.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(f&&f.content_type&&!f.type)f.type="Entry";else if(f&&f.content_type&&f.type&&f.type!=="Entry")throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");const h={resolveLinks:!0,removeUnresolved:!1,paginate:!0},{resolveLinks:m,removeUnresolved:b,paginate:y}=o(o({},h),p),_=await u(d,[],f,{paginate:y});m&&(_.items=(0,t.default)(_,{removeUnresolved:b,itemEntryPoints:["fields"]}));const S=l(_.items);return _.nextSyncToken&&(S.nextSyncToken=_.nextSyncToken),_.nextPageToken&&(S.nextPageToken=_.nextPageToken),(0,e.freezeSys)((0,r.default)((0,e.toPlainObject)(S)))}function l(d){const f=p=>(h,m)=>(m.sys.type===p&&h.push((0,e.toPlainObject)(m)),h);return{entries:d.reduce(f("Entry"),[]),assets:d.reduce(f("Asset"),[]),deletedEntries:d.reduce(f("DeletedEntry"),[]),deletedAssets:d.reduce(f("DeletedAsset"),[])}}async function u(d,f,p,h){let{paginate:m}=h;p.nextSyncToken&&(p.sync_token=p.nextSyncToken,delete p.nextSyncToken),p.nextPageToken&&(p.sync_token=p.nextPageToken,delete p.nextPageToken),p.sync_token&&(delete p.initial,delete p.type,delete p.content_type,delete p.limit);const y=(await d.get("sync",(0,e.createRequestConfig)({query:p}))).data||{};return f=f.concat(y.items||[]),y.nextPageUrl?m?(delete p.initial,p.sync_token=c(y.nextPageUrl),u(d,f,p,{paginate:m})):{items:f,nextPageToken:c(y.nextPageUrl)}:y.nextSyncUrl?{items:f,nextSyncToken:c(y.nextSyncUrl)}:{items:[]}}function c(d){const f=d.split("?");return f.length>0?f[1].replace("sync_token=",""):""}return cc}var dc={},sS;function qU(){if(sS)return dc;sS=1,Object.defineProperty(dc,"__esModule",{value:!0}),dc.default=n;function e(a,o){var i=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);o&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),i.push.apply(i,s)}return i}function t(a){for(var o=1;o<arguments.length;o++){var i=arguments[o]!=null?arguments[o]:{};o%2?e(Object(i),!0).forEach(function(s){r(a,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach(function(s){Object.defineProperty(a,s,Object.getOwnPropertyDescriptor(i,s))})}return a}function r(a,o,i){return o in a?Object.defineProperty(a,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[o]=i,a}function n(a){if(!a.select)return a;const o=Array.isArray(a.select)?a.select:a.select.split(","),i=new Set(o);return i.has("sys")?a:(i.add("sys.id"),i.add("sys.type"),t(t({},a),{},{select:[...i].join(",")}))}return dc}var Oi={},lS;function kU(){if(lS)return Oi;lS=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.ValidationError=void 0,Oi.default=t;class e extends Error{constructor(n,a){super(`Invalid "${n}" provided, `+a),this.name="ValidationError"}}Oi.ValidationError=e;function t(r,n,a){if(a=a||{},typeof n!="number")throw new e(r,`only numeric values are allowed for timestamps, provided type was "${typeof n}"`);if(a.maximum&&n>a.maximum)throw new e(r,`value (${n}) cannot be further in the future than expected maximum (${a.maximum})`);if(a.now&&n<a.now)throw new e(r,`value (${n}) cannot be in the past, current time was ${a.now}`)}return Oi}var uS;function LU(){if(uS)return oc;uS=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.default=c;var e=$n,t=o(NU()),r=o(MU()),n=o(qU()),a=o(kU());function o(d){return d&&d.__esModule?d:{default:d}}function i(d,f){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(d);f&&(h=h.filter(function(m){return Object.getOwnPropertyDescriptor(d,m).enumerable})),p.push.apply(p,h)}return p}function s(d){for(var f=1;f<arguments.length;f++){var p=arguments[f]!=null?arguments[f]:{};f%2?i(Object(p),!0).forEach(function(h){l(d,h,p[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):i(Object(p)).forEach(function(h){Object.defineProperty(d,h,Object.getOwnPropertyDescriptor(p,h))})}return d}function l(d,f,p){return f in d?Object.defineProperty(d,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[f]=p,d}const u=48*60*60;function c(d){let{http:f,getGlobalOptions:p}=d;const{wrapSpace:h}=t.default.space,{wrapContentType:m,wrapContentTypeCollection:b}=t.default.contentType,{wrapEntry:y,wrapEntryCollection:v}=t.default.entry,{wrapAsset:_,wrapAssetCollection:S}=t.default.asset,{wrapTag:R,wrapTagCollection:T}=t.default.tag,{wrapAssetKey:O}=t.default.assetKey,{wrapLocaleCollection:$}=t.default.locale,D=ie=>{const he=new Error("The resource could not be found.");return he.sys={type:"Error",id:"NotFound"},he.details={type:"Entry",id:ie,environment:p().environment,space:p().space},he};async function Q(){$e(f);try{const ie=await f.get("/");return h(ie.data)}catch(ie){(0,e.errorHandler)(ie)}}async function V(ie){le(f);try{const he=await f.get(`content_types/${ie}`);return m(he.data)}catch(he){(0,e.errorHandler)(he)}}async function G(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};le(f);try{const he=await f.get("content_types",(0,e.createRequestConfig)({query:ie}));return b(he.data)}catch(he){(0,e.errorHandler)(he)}}async function j(ie){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ie)throw D(ie);try{const Ge=await this.getEntries(s({"sys.id":ie},he));if(Ge.items.length>0)return y(Ge.items[0]);throw D(ie)}catch(Ge){(0,e.errorHandler)(Ge)}}async function te(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};le(f);const{resolveLinks:he,removeUnresolved:Ge}=p(ie);ie=(0,n.default)(ie);try{const Le=await f.get("entries",(0,e.createRequestConfig)({query:ie}));return v(Le.data,{resolveLinks:he,removeUnresolved:Ge})}catch(Le){(0,e.errorHandler)(Le)}}async function X(ie){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};le(f),he=(0,n.default)(he);try{const Ge=await f.get(`assets/${ie}`,(0,e.createRequestConfig)({query:he}));return _(Ge.data)}catch(Ge){(0,e.errorHandler)(Ge)}}async function L(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};le(f),ie=(0,n.default)(ie);try{const he=await f.get("assets",(0,e.createRequestConfig)({query:ie}));return S(he.data)}catch(he){(0,e.errorHandler)(he)}}async function Y(ie){le(f);try{const he=await f.get(`tags/${ie}`);return R(he.data)}catch(he){(0,e.errorHandler)(he)}}async function ae(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};le(f),ie=(0,n.default)(ie);try{const he=await f.get("tags",(0,e.createRequestConfig)({query:ie}));return T(he.data)}catch(he){(0,e.errorHandler)(he)}}async function ge(ie){le(f);try{const he=Math.floor(Date.now()/1e3),Ge=he+u;(0,a.default)("expiresAt",ie,{maximum:Ge,now:he});const Le={expiresAt:ie},Rt=await f.post("asset_keys",Le);return O(Rt.data)}catch(he){(0,e.errorHandler)(he)}}async function z(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};le(f);try{const he=await f.get("locales",(0,e.createRequestConfig)({query:ie}));return $(he.data)}catch(he){(0,e.errorHandler)(he)}}async function H(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{paginate:!0};const{resolveLinks:Ge,removeUnresolved:Le}=p(ie);return le(f),(0,r.default)(f,ie,s({resolveLinks:Ge,removeUnresolved:Le},he))}function oe(ie){const{resolveLinks:he,removeUnresolved:Ge}=p({});return v(ie,{resolveLinks:he,removeUnresolved:Ge})}function le(ie){ie.defaults.baseURL=p().environmentBaseUrl}function $e(ie){ie.defaults.baseURL=p().spaceBaseUrl}return{getSpace:Q,getContentType:V,getContentTypes:G,getEntry:j,getEntries:te,getAsset:X,getAssets:L,getTag:Y,getTags:ae,createAssetKey:ge,getLocales:z,parseEntries:oe,sync:H}}return oc}var fc={},cS;function DU(){if(cS)return fc;cS=1,Object.defineProperty(fc,"__esModule",{value:!0}),fc.default=e;function e(t){return function(n){return Object.assign({},t,n)}}return fc}var dS;function BU(){if(dS)return Zu;dS=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.createClient=l;var e=a(XO()),t=$n,r=a(LU()),n=a(DU());function a(u){return u&&u.__esModule?u:{default:u}}function o(u,c){var d=Object.keys(u);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(u);c&&(f=f.filter(function(p){return Object.getOwnPropertyDescriptor(u,p).enumerable})),d.push.apply(d,f)}return d}function i(u){for(var c=1;c<arguments.length;c++){var d=arguments[c]!=null?arguments[c]:{};c%2?o(Object(d),!0).forEach(function(f){s(u,f,d[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(d)):o(Object(d)).forEach(function(f){Object.defineProperty(u,f,Object.getOwnPropertyDescriptor(d,f))})}return u}function s(u,c,d){return c in u?Object.defineProperty(u,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):u[c]=d,u}function l(u){if(!u.accessToken)throw new TypeError("Expected parameter accessToken");if(!u.space)throw new TypeError("Expected parameter space");const d=i(i({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),u),f=(0,t.getUserAgentHeader)("contentful.js/9.1.34",d.application,d.integration);d.headers=i(i({},d.headers),{},{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":f});const p=(0,t.createHttpClient)(e.default,d),h=(0,n.default)({resolveLinks:d.resolveLinks,environment:d.environment,removeUnresolved:d.removeUnresolved,spaceBaseUrl:p.defaults.baseURL,environmentBaseUrl:`${p.defaults.baseURL}environments/${d.environment}`});return p.defaults.baseURL=h().environmentBaseUrl,(0,r.default)({http:p,getGlobalOptions:h})}return Zu}var Qg={},Kg,fS;function FU(){return fS||(fS=1,Kg=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Kg}var Yg,pS;function jU(){if(pS)return Yg;pS=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(i,s){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;s=s||1;var l=i.slice(0,s),u=i.slice(s);return Array.prototype.concat.call([],n(l),n(u))}function a(i){try{return decodeURIComponent(i)}catch{for(var s=i.match(t)||[],l=1;l<s.length;l++)i=n(s,l).join(""),s=i.match(t)||[];return i}}function o(i){for(var s={"%FE%FF":"��","%FF%FE":"��"},l=r.exec(i);l;){try{s[l[0]]=decodeURIComponent(l[0])}catch{var u=a(l[0]);u!==l[0]&&(s[l[0]]=u)}l=r.exec(i)}s["%C2"]="�";for(var c=Object.keys(s),d=0;d<c.length;d++){var f=c[d];i=i.replace(new RegExp(f,"g"),s[f])}return i}return Yg=function(i){if(typeof i!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof i+"`");try{return i=i.replace(/\+/g," "),decodeURIComponent(i)}catch{return o(i)}},Yg}var Xg,hS;function UU(){return hS||(hS=1,Xg=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),Xg}var Jg,mS;function HU(){return mS||(mS=1,Jg=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;o<n.length;o++){var i=n[o],s=e[i];(a?t.indexOf(i)!==-1:t(i,s,e))&&(r[i]=s)}return r}),Jg}var vS;function GU(){return vS||(vS=1,function(e){const t=FU(),r=jU(),n=UU(),a=HU(),o=v=>v==null,i=Symbol("encodeFragmentIdentifier");function s(v){switch(v.arrayFormat){case"index":return _=>(S,R)=>{const T=S.length;return R===void 0||v.skipNull&&R===null||v.skipEmptyString&&R===""?S:R===null?[...S,[c(_,v),"[",T,"]"].join("")]:[...S,[c(_,v),"[",c(T,v),"]=",c(R,v)].join("")]};case"bracket":return _=>(S,R)=>R===void 0||v.skipNull&&R===null||v.skipEmptyString&&R===""?S:R===null?[...S,[c(_,v),"[]"].join("")]:[...S,[c(_,v),"[]=",c(R,v)].join("")];case"colon-list-separator":return _=>(S,R)=>R===void 0||v.skipNull&&R===null||v.skipEmptyString&&R===""?S:R===null?[...S,[c(_,v),":list="].join("")]:[...S,[c(_,v),":list=",c(R,v)].join("")];case"comma":case"separator":case"bracket-separator":{const _=v.arrayFormat==="bracket-separator"?"[]=":"=";return S=>(R,T)=>T===void 0||v.skipNull&&T===null||v.skipEmptyString&&T===""?R:(T=T===null?"":T,R.length===0?[[c(S,v),_,c(T,v)].join("")]:[[R,c(T,v)].join(v.arrayFormatSeparator)])}default:return _=>(S,R)=>R===void 0||v.skipNull&&R===null||v.skipEmptyString&&R===""?S:R===null?[...S,c(_,v)]:[...S,[c(_,v),"=",c(R,v)].join("")]}}function l(v){let _;switch(v.arrayFormat){case"index":return(S,R,T)=>{if(_=/\[(\d*)\]$/.exec(S),S=S.replace(/\[\d*\]$/,""),!_){T[S]=R;return}T[S]===void 0&&(T[S]={}),T[S][_[1]]=R};case"bracket":return(S,R,T)=>{if(_=/(\[\])$/.exec(S),S=S.replace(/\[\]$/,""),!_){T[S]=R;return}if(T[S]===void 0){T[S]=[R];return}T[S]=[].concat(T[S],R)};case"colon-list-separator":return(S,R,T)=>{if(_=/(:list)$/.exec(S),S=S.replace(/:list$/,""),!_){T[S]=R;return}if(T[S]===void 0){T[S]=[R];return}T[S]=[].concat(T[S],R)};case"comma":case"separator":return(S,R,T)=>{const O=typeof R=="string"&&R.includes(v.arrayFormatSeparator),$=typeof R=="string"&&!O&&d(R,v).includes(v.arrayFormatSeparator);R=$?d(R,v):R;const D=O||$?R.split(v.arrayFormatSeparator).map(Q=>d(Q,v)):R===null?R:d(R,v);T[S]=D};case"bracket-separator":return(S,R,T)=>{const O=/(\[\])$/.test(S);if(S=S.replace(/\[\]$/,""),!O){T[S]=R&&d(R,v);return}const $=R===null?[]:R.split(v.arrayFormatSeparator).map(D=>d(D,v));if(T[S]===void 0){T[S]=$;return}T[S]=[].concat(T[S],$)};default:return(S,R,T)=>{if(T[S]===void 0){T[S]=R;return}T[S]=[].concat(T[S],R)}}}function u(v){if(typeof v!="string"||v.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(v,_){return _.encode?_.strict?t(v):encodeURIComponent(v):v}function d(v,_){return _.decode?r(v):v}function f(v){return Array.isArray(v)?v.sort():typeof v=="object"?f(Object.keys(v)).sort((_,S)=>Number(_)-Number(S)).map(_=>v[_]):v}function p(v){const _=v.indexOf("#");return _!==-1&&(v=v.slice(0,_)),v}function h(v){let _="";const S=v.indexOf("#");return S!==-1&&(_=v.slice(S)),_}function m(v){v=p(v);const _=v.indexOf("?");return _===-1?"":v.slice(_+1)}function b(v,_){return _.parseNumbers&&!Number.isNaN(Number(v))&&typeof v=="string"&&v.trim()!==""?v=Number(v):_.parseBooleans&&v!==null&&(v.toLowerCase()==="true"||v.toLowerCase()==="false")&&(v=v.toLowerCase()==="true"),v}function y(v,_){_=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},_),u(_.arrayFormatSeparator);const S=l(_),R=Object.create(null);if(typeof v!="string"||(v=v.trim().replace(/^[?#&]/,""),!v))return R;for(const T of v.split("&")){if(T==="")continue;let[O,$]=n(_.decode?T.replace(/\+/g," "):T,"=");$=$===void 0?null:["comma","separator","bracket-separator"].includes(_.arrayFormat)?$:d($,_),S(d(O,_),$,R)}for(const T of Object.keys(R)){const O=R[T];if(typeof O=="object"&&O!==null)for(const $ of Object.keys(O))O[$]=b(O[$],_);else R[T]=b(O,_)}return _.sort===!1?R:(_.sort===!0?Object.keys(R).sort():Object.keys(R).sort(_.sort)).reduce((T,O)=>{const $=R[O];return $&&typeof $=="object"&&!Array.isArray($)?T[O]=f($):T[O]=$,T},Object.create(null))}e.extract=m,e.parse=y,e.stringify=(v,_)=>{if(!v)return"";_=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},_),u(_.arrayFormatSeparator);const S=$=>_.skipNull&&o(v[$])||_.skipEmptyString&&v[$]==="",R=s(_),T={};for(const $ of Object.keys(v))S($)||(T[$]=v[$]);const O=Object.keys(T);return _.sort!==!1&&O.sort(_.sort),O.map($=>{const D=v[$];return D===void 0?"":D===null?c($,_):Array.isArray(D)?D.length===0&&_.arrayFormat==="bracket-separator"?c($,_)+"[]":D.reduce(R($),[]).join("&"):c($,_)+"="+c(D,_)}).filter($=>$.length>0).join("&")},e.parseUrl=(v,_)=>{_=Object.assign({decode:!0},_);const[S,R]=n(v,"#");return Object.assign({url:S.split("?")[0]||"",query:y(m(v),_)},_&&_.parseFragmentIdentifier&&R?{fragmentIdentifier:d(R,_)}:{})},e.stringifyUrl=(v,_)=>{_=Object.assign({encode:!0,strict:!0,[i]:!0},_);const S=p(v.url).split("?")[0]||"",R=e.extract(v.url),T=e.parse(R,{sort:!1}),O=Object.assign(T,v.query);let $=e.stringify(O,_);$&&($=`?${$}`);let D=h(v.url);return v.fragmentIdentifier&&(D=`#${_[i]?c(v.fragmentIdentifier,_):v.fragmentIdentifier}`),`${S}${$}${D}`},e.pick=(v,_,S)=>{S=Object.assign({parseFragmentIdentifier:!0,[i]:!1},S);const{url:R,query:T,fragmentIdentifier:O}=e.parseUrl(v,S);return e.stringifyUrl({url:R,query:a(T,_),fragmentIdentifier:O},S)},e.exclude=(v,_,S)=>{const R=Array.isArray(_)?T=>!_.includes(T):(T,O)=>!_(T,O);return e.pick(v,R,S)}}(Qg)),Qg}var yS;function VU(){return yS||(yS=1,function(e,t){(function(r,n){e.exports=n(BU(),GU())})(we,function(r,n){return function(){var a={897:function(l){l.exports=r},48:function(l){l.exports=n}},o={};function i(l){var u=o[l];if(u!==void 0)return u.exports;var c=o[l]={exports:{}};return a[l](c,c.exports,i),c.exports}i.d=function(l,u){for(var c in u)i.o(u,c)&&!i.o(l,c)&&Object.defineProperty(l,c,{enumerable:!0,get:u[c]})},i.o=function(l,u){return Object.prototype.hasOwnProperty.call(l,u)},i.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var s={};return function(){i.r(s),i.d(s,{getEntries:function(){return te},getEntry:function(){return j},setContext:function(){return m}});var l=i(897),u=i(48),c={CONTENTFUL:{ENVIRONMENTS_MAPING:{beta:"beta",rc:"rc",live:"master",local:"beta"},LOCALES:{DEFAULT:"en",SUPPORTED:["en","es","fr","pt"]},SPACE:"txbhe1wabmyx",HOSTS:{CDN:"cdn.contentful.com",PREVIEW:"preview.contentful.com"}}};const{CONTENTFUL:{ENVIRONMENTS_MAPING:d,SPACE:f,HOSTS:p}}=c;let h={apiKey:null,previewKey:null,environment:null,isPreview:!1,host:p.CDN,space:f};const m=({apiKey:X,environment:L,isPreview:Y=!1,location:ae,previewKey:ge,space:z=null})=>{h.apiKey=X,h.previewKey=ge,h.environment=(H=>{if(!H)throw new Error("Cannot map environment: Environment not defined");if(!d[H])throw new Error(`Cannot map environment: No mapping found for environment ${H}`);return d[H]})(L),h.isPreview=Y||(H=>{let oe=!1;if(H&&H.search){const le=(0,u.parse)(H.search);oe=le.isPreview&&le.isPreview==="true"}return oe})(ae),h.space=z||f},b=(X=!1)=>{const{apiKey:L,environment:Y,isPreview:ae,previewKey:ge,space:z}=h;return ae===!0||X===!0?{accessToken:ge,environment:Y,host:p.PREVIEW,space:z}:{accessToken:L,environment:Y,host:p.CDN,space:z}},y=X=>typeof X=="object"&&X!==null,v=X=>Array.isArray(X)&&X.length,_=X=>{if(!y(X))throw new Error("Cannot flatten fields");const{fields:L,sys:Y}=X;if(!L)throw new Error("Cannot flatten fields");let ae={...L};if(y(Y)){const{contentType:ge,createdAt:z,updatedAt:H}=Y;ge&&Object.assign(ae,{contentType:ge.sys.id}),z&&Object.assign(ae,{createdAt:z}),H&&Object.assign(ae,{updatedAt:H})}return ae},{CONTENTFUL:{LOCALES:S}}=c,R=(X,L)=>y(X)&&((Y,ae)=>Object.prototype.hasOwnProperty.call(Y,ae))(X,L),T=(X,L)=>{const Y=(ae=>S.SUPPORTED.includes(ae)?ae:S.DEFAULT)(L);return R(X,Y)?X[Y]:R(X,S.DEFAULT)?X[S.DEFAULT]:X},O=X=>y(X)&&X.sys&&X.sys.type==="Asset",$=(X,L,Y)=>{const{title:ae,file:ge}=_(X);if(!ge)throw new Error("Cannot flatten asset");const{contentType:z,fileName:H,url:oe,details:le}=T(ge,L);if(!oe)throw new Error("Cannot flatten asset");return Y?{description:ae||H,height:le&&le.image&&le.image.height,type:z,url:oe,width:le&&le.image&&le.image.width}:oe},D=X=>y(X)&&X.sys&&X.sys.type==="Entry",Q=(X,L,Y)=>{const ae={},ge=((z,H)=>{const oe={};for(const[le,$e]of Object.entries(z))oe[le]=T($e,H);return oe})(_(X),L);for(const[z,H]of Object.entries(ge))O(H)?ae[z]=$(H,L,Y):D(H)?ae[z]=Q(H,L,Y):v(H)?ae[z]=H.map(oe=>O(oe)?$(oe,L,Y):D(oe)?Q(oe,L,Y):oe):ae[z]=H;return ae},V=({items:X})=>{if(!v(X))throw new Error("Cannot read items");return X},G=async(X,L)=>{const Y=b(L);return await(await(0,l.createClient)(Y)).getEntries(X)},j=async(X={},L={},Y=!1)=>((ae,{flatten:ge=!0,locale:z="en",assetDetails:H=!1})=>{const oe=V(ae);return ge?Q(oe[0],z,H):oe[0]})(await G(X,Y),{...X,...L}),te=async(X={},L={},Y=!1)=>((ae,{flatten:ge=!0,locale:z="en",assetDetails:H=!1})=>{const oe=V(ae);return ge?((le,$e,ie)=>le.map(he=>Q(he,$e,ie)))(oe,z,H):oe})(await G(X,Y),{...X,...L})}(),s}()})}(ag)),ag.exports}var Zg={exports:{}},eb={exports:{}},tb={exports:{}},rb={exports:{}},gS;function mw(){return gS||(gS=1,function(e,t){(function(r,n){e.exports=n()})(we,function(){function r(m){return!isNaN(parseFloat(m))&&isFinite(m)}function n(m){return m.charAt(0).toUpperCase()+m.substring(1)}function a(m){return function(){return this[m]}}var o=["isConstructor","isEval","isNative","isToplevel"],i=["columnNumber","lineNumber"],s=["fileName","functionName","source"],l=["args"],u=["evalOrigin"],c=o.concat(i,s,l,u);function d(m){if(m)for(var b=0;b<c.length;b++)m[c[b]]!==void 0&&this["set"+n(c[b])](m[c[b]])}d.prototype={getArgs:function(){return this.args},setArgs:function(m){if(Object.prototype.toString.call(m)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=m},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(m){if(m instanceof d)this.evalOrigin=m;else if(m instanceof Object)this.evalOrigin=new d(m);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var m=this.getFileName()||"",b=this.getLineNumber()||"",y=this.getColumnNumber()||"",v=this.getFunctionName()||"";return this.getIsEval()?m?"[eval] ("+m+":"+b+":"+y+")":"[eval]:"+b+":"+y:v?v+" ("+m+":"+b+":"+y+")":m+":"+b+":"+y}},d.fromString=function(b){var y=b.indexOf("("),v=b.lastIndexOf(")"),_=b.substring(0,y),S=b.substring(y+1,v).split(","),R=b.substring(v+1);if(R.indexOf("@")===0)var T=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(R,""),O=T[1],$=T[2],D=T[3];return new d({functionName:_,args:S||void 0,fileName:O,lineNumber:$||void 0,columnNumber:D||void 0})};for(var f=0;f<o.length;f++)d.prototype["get"+n(o[f])]=a(o[f]),d.prototype["set"+n(o[f])]=function(m){return function(b){this[m]=!!b}}(o[f]);for(var p=0;p<i.length;p++)d.prototype["get"+n(i[p])]=a(i[p]),d.prototype["set"+n(i[p])]=function(m){return function(b){if(!r(b))throw new TypeError(m+" must be a Number");this[m]=Number(b)}}(i[p]);for(var h=0;h<s.length;h++)d.prototype["get"+n(s[h])]=a(s[h]),d.prototype["set"+n(s[h])]=function(m){return function(b){this[m]=String(b)}}(s[h]);return d})}(rb)),rb.exports}var bS;function WU(){return bS||(bS=1,function(e,t){(function(r,n){e.exports=n(mw())})(we,function(n){var a=/(^|@)\S+:\d+/,o=/^\s*at .*(\S+:\d+|\(native\))/m,i=/^(eval@)?(\[native code])?$/;return{parse:function(l){if(typeof l.stacktrace<"u"||typeof l["opera#sourceloc"]<"u")return this.parseOpera(l);if(l.stack&&l.stack.match(o))return this.parseV8OrIE(l);if(l.stack)return this.parseFFOrSafari(l);throw new Error("Cannot parse given Error object")},extractLocation:function(l){if(l.indexOf(":")===-1)return[l];var u=/(.+?)(?::(\d+))?(?::(\d+))?$/,c=u.exec(l.replace(/[()]/g,""));return[c[1],c[2]||void 0,c[3]||void 0]},parseV8OrIE:function(l){var u=l.stack.split(`
|
|
35
|
-
`).filter(function(c){return!!c.match(o)},this);return u.map(function(c){c.indexOf("(eval ")>-1&&(c=c.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var d=c.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),f=d.match(/ (\(.+\)$)/);d=f?d.replace(f[0],""):d;var p=this.extractLocation(f?f[1]:d),h=f&&d||void 0,m=["eval","<anonymous>"].indexOf(p[0])>-1?void 0:p[0];return new n({functionName:h,fileName:m,lineNumber:p[1],columnNumber:p[2],source:c})},this)},parseFFOrSafari:function(l){var u=l.stack.split(`
|
|
36
|
-
`).filter(function(c){return!c.match(i)},this);return u.map(function(c){if(c.indexOf(" > eval")>-1&&(c=c.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),c.indexOf("@")===-1&&c.indexOf(":")===-1)return new n({functionName:c});var d=/((.*".+"[^@]*)?[^@]*)(?:@)/,f=c.match(d),p=f&&f[1]?f[1]:void 0,h=this.extractLocation(c.replace(d,""));return new n({functionName:p,fileName:h[0],lineNumber:h[1],columnNumber:h[2],source:c})},this)},parseOpera:function(l){return!l.stacktrace||l.message.indexOf(`
|
|
37
|
-
`)>-1&&l.message.split(`
|
|
38
|
-
`).length>l.stacktrace.split(`
|
|
39
|
-
`).length?this.parseOpera9(l):l.stack?this.parseOpera11(l):this.parseOpera10(l)},parseOpera9:function(l){for(var u=/Line (\d+).*script (?:in )?(\S+)/i,c=l.message.split(`
|
|
40
|
-
`),d=[],f=2,p=c.length;f<p;f+=2){var h=u.exec(c[f]);h&&d.push(new n({fileName:h[2],lineNumber:h[1],source:c[f]}))}return d},parseOpera10:function(l){for(var u=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,c=l.stacktrace.split(`
|
|
41
|
-
`),d=[],f=0,p=c.length;f<p;f+=2){var h=u.exec(c[f]);h&&d.push(new n({functionName:h[3]||void 0,fileName:h[2],lineNumber:h[1],source:c[f]}))}return d},parseOpera11:function(l){var u=l.stack.split(`
|
|
42
|
-
`).filter(function(c){return!!c.match(a)&&!c.match(/^Error created at/)},this);return u.map(function(c){var d=c.split("@"),f=this.extractLocation(d.pop()),p=d.shift()||"",h=p.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,m;p.match(/\(([^)]*)\)/)&&(m=p.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var b=m===void 0||m==="[arguments not available]"?void 0:m.split(",");return new n({functionName:h,args:b,fileName:f[0],lineNumber:f[1],columnNumber:f[2],source:c})},this)}}})}(tb)),tb.exports}var nb={exports:{}},ES;function zU(){return ES||(ES=1,function(e,t){(function(r,n){e.exports=n(mw())})(we,function(r){return{backtrace:function(a){var o=[],i=10;typeof a=="object"&&typeof a.maxStackSize=="number"&&(i=a.maxStackSize);for(var s=arguments.callee;s&&o.length<i&&s.arguments;){for(var l=new Array(s.arguments.length),u=0;u<l.length;++u)l[u]=s.arguments[u];/function(?:\s+([\w$]+))+\s*\(/.test(s.toString())?o.push(new r({functionName:RegExp.$1||void 0,args:l})):o.push(new r({args:l}));try{s=s.caller}catch{break}}return o}}})}(nb)),nb.exports}var ab={exports:{}},fl={},ob={},_S;function TA(){return _S||(_S=1,function(e){function t(v,_,S){if(_ in v)return v[_];if(arguments.length===3)return S;throw new Error('"'+_+'" is a required argument.')}e.getArg=t;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,n=/^data:.+\,.+$/;function a(v){var _=v.match(r);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}e.urlParse=a;function o(v){var _="";return v.scheme&&(_+=v.scheme+":"),_+="//",v.auth&&(_+=v.auth+"@"),v.host&&(_+=v.host),v.port&&(_+=":"+v.port),v.path&&(_+=v.path),_}e.urlGenerate=o;function i(v){var _=v,S=a(v);if(S){if(!S.path)return v;_=S.path}for(var R=e.isAbsolute(_),T=_.split(/\/+/),O,$=0,D=T.length-1;D>=0;D--)O=T[D],O==="."?T.splice(D,1):O===".."?$++:$>0&&(O===""?(T.splice(D+1,$),$=0):(T.splice(D,2),$--));return _=T.join("/"),_===""&&(_=R?"/":"."),S?(S.path=_,o(S)):_}e.normalize=i;function s(v,_){v===""&&(v="."),_===""&&(_=".");var S=a(_),R=a(v);if(R&&(v=R.path||"/"),S&&!S.scheme)return R&&(S.scheme=R.scheme),o(S);if(S||_.match(n))return _;if(R&&!R.host&&!R.path)return R.host=_,o(R);var T=_.charAt(0)==="/"?_:i(v.replace(/\/+$/,"")+"/"+_);return R?(R.path=T,o(R)):T}e.join=s,e.isAbsolute=function(v){return v.charAt(0)==="/"||!!v.match(r)};function l(v,_){v===""&&(v="."),v=v.replace(/\/$/,"");for(var S=0;_.indexOf(v+"/")!==0;){var R=v.lastIndexOf("/");if(R<0||(v=v.slice(0,R),v.match(/^([^\/]+:\/)?\/*$/)))return _;++S}return Array(S+1).join("../")+_.substr(v.length+1)}e.relative=l;var u=function(){var v=Object.create(null);return!("__proto__"in v)}();function c(v){return v}function d(v){return p(v)?"$"+v:v}e.toSetString=u?c:d;function f(v){return p(v)?v.slice(1):v}e.fromSetString=u?c:f;function p(v){if(!v)return!1;var _=v.length;if(_<9||v.charCodeAt(_-1)!==95||v.charCodeAt(_-2)!==95||v.charCodeAt(_-3)!==111||v.charCodeAt(_-4)!==116||v.charCodeAt(_-5)!==111||v.charCodeAt(_-6)!==114||v.charCodeAt(_-7)!==112||v.charCodeAt(_-8)!==95||v.charCodeAt(_-9)!==95)return!1;for(var S=_-10;S>=0;S--)if(v.charCodeAt(S)!==36)return!1;return!0}function h(v,_,S){var R=v.source-_.source;return R!==0||(R=v.originalLine-_.originalLine,R!==0)||(R=v.originalColumn-_.originalColumn,R!==0||S)||(R=v.generatedColumn-_.generatedColumn,R!==0)||(R=v.generatedLine-_.generatedLine,R!==0)?R:v.name-_.name}e.compareByOriginalPositions=h;function m(v,_,S){var R=v.generatedLine-_.generatedLine;return R!==0||(R=v.generatedColumn-_.generatedColumn,R!==0||S)||(R=v.source-_.source,R!==0)||(R=v.originalLine-_.originalLine,R!==0)||(R=v.originalColumn-_.originalColumn,R!==0)?R:v.name-_.name}e.compareByGeneratedPositionsDeflated=m;function b(v,_){return v===_?0:v>_?1:-1}function y(v,_){var S=v.generatedLine-_.generatedLine;return S!==0||(S=v.generatedColumn-_.generatedColumn,S!==0)||(S=b(v.source,_.source),S!==0)||(S=v.originalLine-_.originalLine,S!==0)||(S=v.originalColumn-_.originalColumn,S!==0)?S:b(v.name,_.name)}e.compareByGeneratedPositionsInflated=y}(ob)),ob}var ib={},wS;function QU(){return wS||(wS=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,n,a,o,i,s){var l=Math.floor((n-r)/2)+r,u=i(a,o[l],!0);return u===0?l:u>0?n-l>1?t(l,n,a,o,i,s):s==e.LEAST_UPPER_BOUND?n<o.length?n:-1:l:l-r>1?t(r,l,a,o,i,s):s==e.LEAST_UPPER_BOUND?l:r<0?-1:r}e.search=function(n,a,o,i){if(a.length===0)return-1;var s=t(-1,a.length,n,a,o,i||e.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&o(a[s],a[s-1],!0)===0;)--s;return s}}(ib)),ib}var sb={},CS;function KU(){if(CS)return sb;CS=1;var e=TA(),t=Object.prototype.hasOwnProperty;function r(){this._array=[],this._set=Object.create(null)}return r.fromArray=function(a,o){for(var i=new r,s=0,l=a.length;s<l;s++)i.add(a[s],o);return i},r.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(a,o){var i=e.toSetString(a),s=t.call(this._set,i),l=this._array.length;(!s||o)&&this._array.push(a),s||(this._set[i]=l)},r.prototype.has=function(a){var o=e.toSetString(a);return t.call(this._set,o)},r.prototype.indexOf=function(a){var o=e.toSetString(a);if(t.call(this._set,o))return this._set[o];throw new Error('"'+a+'" is not in the set.')},r.prototype.at=function(a){if(a>=0&&a<this._array.length)return this._array[a];throw new Error("No element indexed by "+a)},r.prototype.toArray=function(){return this._array.slice()},sb.ArraySet=r,sb}var pc={},hc={},RS;function YU(){if(RS)return hc;RS=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return hc.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},hc.decode=function(t){var r=65,n=90,a=97,o=122,i=48,s=57,l=43,u=47,c=26,d=52;return r<=t&&t<=n?t-r:a<=t&&t<=o?t-a+c:i<=t&&t<=s?t-i+d:t==l?62:t==u?63:-1},hc}var SS;function XU(){if(SS)return pc;SS=1;var e=YU(),t=5,r=1<<t,n=r-1,a=r;function o(s){return s<0?(-s<<1)+1:(s<<1)+0}function i(s){var l=(s&1)===1,u=s>>1;return l?-u:u}return pc.encode=function(l){var u="",c,d=o(l);do c=d&n,d>>>=t,d>0&&(c|=a),u+=e.encode(c);while(d>0);return u},pc.decode=function(l,u,c){var d=l.length,f=0,p=0,h,m;do{if(u>=d)throw new Error("Expected more digits in base 64 VLQ value.");if(m=e.decode(l.charCodeAt(u++)),m===-1)throw new Error("Invalid base64 digit: "+l.charAt(u-1));h=!!(m&a),m&=n,f=f+(m<<p),p+=t}while(h);c.value=i(f),c.rest=u},pc}var lb={},TS;function JU(){if(TS)return lb;TS=1;function e(n,a,o){var i=n[a];n[a]=n[o],n[o]=i}function t(n,a){return Math.round(n+Math.random()*(a-n))}function r(n,a,o,i){if(o<i){var s=t(o,i),l=o-1;e(n,s,i);for(var u=n[i],c=o;c<i;c++)a(n[c],u)<=0&&(l+=1,e(n,l,c));e(n,l+1,c);var d=l+1;r(n,a,o,d-1),r(n,a,d+1,i)}}return lb.quickSort=function(n,a){r(n,a,0,n.length-1)},lb}var xS;function ZU(){if(xS)return fl;xS=1;var e=TA(),t=QU(),r=KU().ArraySet,n=XU(),a=JU().quickSort;function o(u){var c=u;return typeof u=="string"&&(c=JSON.parse(u.replace(/^\)\]\}'/,""))),c.sections!=null?new l(c):new i(c)}o.fromSourceMap=function(u){return i.fromSourceMap(u)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(c,d){var f=c.charAt(d);return f===";"||f===","},o.prototype._parseMappings=function(c,d){throw new Error("Subclasses must implement _parseMappings")},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(c,d,f){var p=d||null,h=f||o.GENERATED_ORDER,m;switch(h){case o.GENERATED_ORDER:m=this._generatedMappings;break;case o.ORIGINAL_ORDER:m=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var b=this.sourceRoot;m.map(function(y){var v=y.source===null?null:this._sources.at(y.source);return v!=null&&b!=null&&(v=e.join(b,v)),{source:v,generatedLine:y.generatedLine,generatedColumn:y.generatedColumn,originalLine:y.originalLine,originalColumn:y.originalColumn,name:y.name===null?null:this._names.at(y.name)}},this).forEach(c,p)},o.prototype.allGeneratedPositionsFor=function(c){var d=e.getArg(c,"line"),f={source:e.getArg(c,"source"),originalLine:d,originalColumn:e.getArg(c,"column",0)};if(this.sourceRoot!=null&&(f.source=e.relative(this.sourceRoot,f.source)),!this._sources.has(f.source))return[];f.source=this._sources.indexOf(f.source);var p=[],h=this._findMapping(f,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(h>=0){var m=this._originalMappings[h];if(c.column===void 0)for(var b=m.originalLine;m&&m.originalLine===b;)p.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++h];else for(var y=m.originalColumn;m&&m.originalLine===d&&m.originalColumn==y;)p.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++h]}return p},fl.SourceMapConsumer=o;function i(u){var c=u;typeof u=="string"&&(c=JSON.parse(u.replace(/^\)\]\}'/,"")));var d=e.getArg(c,"version"),f=e.getArg(c,"sources"),p=e.getArg(c,"names",[]),h=e.getArg(c,"sourceRoot",null),m=e.getArg(c,"sourcesContent",null),b=e.getArg(c,"mappings"),y=e.getArg(c,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);f=f.map(String).map(e.normalize).map(function(v){return h&&e.isAbsolute(h)&&e.isAbsolute(v)?e.relative(h,v):v}),this._names=r.fromArray(p.map(String),!0),this._sources=r.fromArray(f,!0),this.sourceRoot=h,this.sourcesContent=m,this._mappings=b,this.file=y}i.prototype=Object.create(o.prototype),i.prototype.consumer=o,i.fromSourceMap=function(c){var d=Object.create(i.prototype),f=d._names=r.fromArray(c._names.toArray(),!0),p=d._sources=r.fromArray(c._sources.toArray(),!0);d.sourceRoot=c._sourceRoot,d.sourcesContent=c._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=c._file;for(var h=c._mappings.toArray().slice(),m=d.__generatedMappings=[],b=d.__originalMappings=[],y=0,v=h.length;y<v;y++){var _=h[y],S=new s;S.generatedLine=_.generatedLine,S.generatedColumn=_.generatedColumn,_.source&&(S.source=p.indexOf(_.source),S.originalLine=_.originalLine,S.originalColumn=_.originalColumn,_.name&&(S.name=f.indexOf(_.name)),b.push(S)),m.push(S)}return a(d.__originalMappings,e.compareByOriginalPositions),d},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._sources.toArray().map(function(u){return this.sourceRoot!=null?e.join(this.sourceRoot,u):u},this)}});function s(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}i.prototype._parseMappings=function(c,d){for(var f=1,p=0,h=0,m=0,b=0,y=0,v=c.length,_=0,S={},R={},T=[],O=[],$,D,Q,V,G;_<v;)if(c.charAt(_)===";")f++,_++,p=0;else if(c.charAt(_)===",")_++;else{for($=new s,$.generatedLine=f,V=_;V<v&&!this._charIsMappingSeparator(c,V);V++);if(D=c.slice(_,V),Q=S[D],Q)_+=D.length;else{for(Q=[];_<V;)n.decode(c,_,R),G=R.value,_=R.rest,Q.push(G);if(Q.length===2)throw new Error("Found a source, but no line and column");if(Q.length===3)throw new Error("Found a source and line, but no column");S[D]=Q}$.generatedColumn=p+Q[0],p=$.generatedColumn,Q.length>1&&($.source=b+Q[1],b+=Q[1],$.originalLine=h+Q[2],h=$.originalLine,$.originalLine+=1,$.originalColumn=m+Q[3],m=$.originalColumn,Q.length>4&&($.name=y+Q[4],y+=Q[4])),O.push($),typeof $.originalLine=="number"&&T.push($)}a(O,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=O,a(T,e.compareByOriginalPositions),this.__originalMappings=T},i.prototype._findMapping=function(c,d,f,p,h,m){if(c[f]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[f]);if(c[p]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[p]);return t.search(c,d,h,m)},i.prototype.computeColumnSpans=function(){for(var c=0;c<this._generatedMappings.length;++c){var d=this._generatedMappings[c];if(c+1<this._generatedMappings.length){var f=this._generatedMappings[c+1];if(d.generatedLine===f.generatedLine){d.lastGeneratedColumn=f.generatedColumn-1;continue}}d.lastGeneratedColumn=1/0}},i.prototype.originalPositionFor=function(c){var d={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},f=this._findMapping(d,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(c,"bias",o.GREATEST_LOWER_BOUND));if(f>=0){var p=this._generatedMappings[f];if(p.generatedLine===d.generatedLine){var h=e.getArg(p,"source",null);h!==null&&(h=this._sources.at(h),this.sourceRoot!=null&&(h=e.join(this.sourceRoot,h)));var m=e.getArg(p,"name",null);return m!==null&&(m=this._names.at(m)),{source:h,line:e.getArg(p,"originalLine",null),column:e.getArg(p,"originalColumn",null),name:m}}}return{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1},i.prototype.sourceContentFor=function(c,d){if(!this.sourcesContent)return null;if(this.sourceRoot!=null&&(c=e.relative(this.sourceRoot,c)),this._sources.has(c))return this.sourcesContent[this._sources.indexOf(c)];var f;if(this.sourceRoot!=null&&(f=e.urlParse(this.sourceRoot))){var p=c.replace(/^file:\/\//,"");if(f.scheme=="file"&&this._sources.has(p))return this.sourcesContent[this._sources.indexOf(p)];if((!f.path||f.path=="/")&&this._sources.has("/"+c))return this.sourcesContent[this._sources.indexOf("/"+c)]}if(d)return null;throw new Error('"'+c+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(c){var d=e.getArg(c,"source");if(this.sourceRoot!=null&&(d=e.relative(this.sourceRoot,d)),!this._sources.has(d))return{line:null,column:null,lastColumn:null};d=this._sources.indexOf(d);var f={source:d,originalLine:e.getArg(c,"line"),originalColumn:e.getArg(c,"column")},p=this._findMapping(f,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(c,"bias",o.GREATEST_LOWER_BOUND));if(p>=0){var h=this._originalMappings[p];if(h.source===f.source)return{line:e.getArg(h,"generatedLine",null),column:e.getArg(h,"generatedColumn",null),lastColumn:e.getArg(h,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},fl.BasicSourceMapConsumer=i;function l(u){var c=u;typeof u=="string"&&(c=JSON.parse(u.replace(/^\)\]\}'/,"")));var d=e.getArg(c,"version"),f=e.getArg(c,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new r,this._names=new r;var p={line:-1,column:0};this._sections=f.map(function(h){if(h.url)throw new Error("Support for url field in sections not implemented.");var m=e.getArg(h,"offset"),b=e.getArg(m,"line"),y=e.getArg(m,"column");if(b<p.line||b===p.line&&y<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=m,{generatedOffset:{generatedLine:b+1,generatedColumn:y+1},consumer:new o(e.getArg(h,"map"))}})}return l.prototype=Object.create(o.prototype),l.prototype.constructor=o,l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){for(var u=[],c=0;c<this._sections.length;c++)for(var d=0;d<this._sections[c].consumer.sources.length;d++)u.push(this._sections[c].consumer.sources[d]);return u}}),l.prototype.originalPositionFor=function(c){var d={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},f=t.search(d,this._sections,function(h,m){var b=h.generatedLine-m.generatedOffset.generatedLine;return b||h.generatedColumn-m.generatedOffset.generatedColumn}),p=this._sections[f];return p?p.consumer.originalPositionFor({line:d.generatedLine-(p.generatedOffset.generatedLine-1),column:d.generatedColumn-(p.generatedOffset.generatedLine===d.generatedLine?p.generatedOffset.generatedColumn-1:0),bias:c.bias}):{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(c){return c.consumer.hasContentsOfAllSources()})},l.prototype.sourceContentFor=function(c,d){for(var f=0;f<this._sections.length;f++){var p=this._sections[f],h=p.consumer.sourceContentFor(c,!0);if(h)return h}if(d)return null;throw new Error('"'+c+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(c){for(var d=0;d<this._sections.length;d++){var f=this._sections[d];if(f.consumer.sources.indexOf(e.getArg(c,"source"))!==-1){var p=f.consumer.generatedPositionFor(c);if(p){var h={line:p.line+(f.generatedOffset.generatedLine-1),column:p.column+(f.generatedOffset.generatedLine===p.line?f.generatedOffset.generatedColumn-1:0)};return h}}}return{line:null,column:null}},l.prototype._parseMappings=function(c,d){this.__generatedMappings=[],this.__originalMappings=[];for(var f=0;f<this._sections.length;f++)for(var p=this._sections[f],h=p.consumer._generatedMappings,m=0;m<h.length;m++){var b=h[m],y=p.consumer._sources.at(b.source);p.consumer.sourceRoot!==null&&(y=e.join(p.consumer.sourceRoot,y)),this._sources.add(y),y=this._sources.indexOf(y);var v=p.consumer._names.at(b.name);this._names.add(v),v=this._names.indexOf(v);var _={source:y,generatedLine:b.generatedLine+(p.generatedOffset.generatedLine-1),generatedColumn:b.generatedColumn+(p.generatedOffset.generatedLine===b.generatedLine?p.generatedOffset.generatedColumn-1:0),originalLine:b.originalLine,originalColumn:b.originalColumn,name:v};this.__generatedMappings.push(_),typeof _.originalLine=="number"&&this.__originalMappings.push(_)}a(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),a(this.__originalMappings,e.compareByOriginalPositions)},fl.IndexedSourceMapConsumer=l,fl}var PS;function e3(){return PS||(PS=1,function(e,t){(function(r,n){e.exports=n(ZU(),mw())})(we,function(r,n){function a(f){return new Promise(function(p,h){var m=new XMLHttpRequest;m.open("get",f),m.onerror=h,m.onreadystatechange=function(){m.readyState===4&&(m.status>=200&&m.status<300||f.substr(0,7)==="file://"&&m.responseText?p(m.responseText):h(new Error("HTTP status: "+m.status+" retrieving "+f)))},m.send()})}function o(f){if(typeof window<"u"&&window.atob)return window.atob(f);throw new Error("You must supply a polyfill for window.atob in this environment")}function i(f){if(typeof JSON<"u"&&JSON.parse)return JSON.parse(f);throw new Error("You must supply a polyfill for JSON.parse in this environment")}function s(f,p){for(var h=[/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/,/function\s+([^('"`]*?)\s*\(([^)]*)\)/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/,/\b(?!(?:if|for|switch|while|with|catch)\b)(?:(?:static)\s+)?(\S+)\s*\(.*?\)\s*\{/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*\(.*?\)\s*=>/],m=f.split(`
|
|
43
|
-
`),b="",y=Math.min(p,20),v=0;v<y;++v){var _=m[p-v-1],S=_.indexOf("//");if(S>=0&&(_=_.substr(0,S)),_){b=_+b;for(var R=h.length,T=0;T<R;T++){var O=h[T].exec(b);if(O&&O[1])return O[1]}}}}function l(){if(typeof Object.defineProperty!="function"||typeof Object.create!="function")throw new Error("Unable to consume source maps in older browsers")}function u(f){if(typeof f!="object")throw new TypeError("Given StackFrame is not an object");if(typeof f.fileName!="string")throw new TypeError("Given file name is not a String");if(typeof f.lineNumber!="number"||f.lineNumber%1!==0||f.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if(typeof f.columnNumber!="number"||f.columnNumber%1!==0||f.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}function c(f){for(var p=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/mg,h,m;m=p.exec(f);)h=m[1];if(h)return h;throw new Error("sourceMappingURL not found")}function d(f,p,h){return new Promise(function(m,b){var y=p.originalPositionFor({line:f.lineNumber,column:f.columnNumber});if(y.source){var v=p.sourceContentFor(y.source);v&&(h[y.source]=v),m(new n({functionName:y.name||f.functionName,args:f.args,fileName:y.source,lineNumber:y.line,columnNumber:y.column}))}else b(new Error("Could not get original source for given stackframe and source map"))})}return function f(p){if(!(this instanceof f))return new f(p);p=p||{},this.sourceCache=p.sourceCache||{},this.sourceMapConsumerCache=p.sourceMapConsumerCache||{},this.ajax=p.ajax||a,this._atob=p.atob||o,this._get=function(m){return new Promise((function(b,y){var v=m.substr(0,5)==="data:";if(this.sourceCache[m])b(this.sourceCache[m]);else if(p.offline&&!v)y(new Error("Cannot make network requests in offline mode"));else if(v){var _=/^data:application\/json;([\w=:"-]+;)*base64,/,S=m.match(_);if(S){var R=S[0].length,T=m.substr(R),O=this._atob(T);this.sourceCache[m]=O,b(O)}else y(new Error("The encoding of the inline sourcemap is not supported"))}else{var $=this.ajax(m,{method:"get"});this.sourceCache[m]=$,$.then(b,y)}}).bind(this))},this._getSourceMapConsumer=function(m,b){return new Promise((function(y){if(this.sourceMapConsumerCache[m])y(this.sourceMapConsumerCache[m]);else{var v=new Promise((function(_,S){return this._get(m).then(function(R){typeof R=="string"&&(R=i(R.replace(/^\)\]\}'/,""))),typeof R.sourceRoot>"u"&&(R.sourceRoot=b),_(new r.SourceMapConsumer(R))}).catch(S)}).bind(this));this.sourceMapConsumerCache[m]=v,y(v)}}).bind(this))},this.pinpoint=function(m){return new Promise((function(b,y){this.getMappedLocation(m).then((function(v){function _(){b(v)}this.findFunctionName(v).then(b,_).catch(_)}).bind(this),y)}).bind(this))},this.findFunctionName=function(m){return new Promise((function(b,y){u(m),this._get(m.fileName).then(function(_){var S=m.lineNumber,R=m.columnNumber,T=s(_,S);b(T?new n({functionName:T,args:m.args,fileName:m.fileName,lineNumber:S,columnNumber:R}):m)},y).catch(y)}).bind(this))},this.getMappedLocation=function(m){return new Promise((function(b,y){l(),u(m);var v=this.sourceCache,_=m.fileName;this._get(_).then((function(S){var R=c(S),T=R.substr(0,5)==="data:",O=_.substring(0,_.lastIndexOf("/")+1);return R[0]!=="/"&&!T&&!/^https?:\/\/|^\/\//i.test(R)&&(R=O+R),this._getSourceMapConsumer(R,O).then(function($){return d(m,$,v).then(b).catch(function(){b(m)})})}).bind(this),y).catch(y)}).bind(this))}}})}(ab)),ab.exports}var OS;function t3(){return OS||(OS=1,function(e,t){(function(r,n){e.exports=n(WU(),zU(),e3())})(we,function(n,a,o){var i={filter:function(d){return(d.functionName||"").indexOf("StackTrace$$")===-1&&(d.functionName||"").indexOf("ErrorStackParser$$")===-1&&(d.functionName||"").indexOf("StackTraceGPS$$")===-1&&(d.functionName||"").indexOf("StackGenerator$$")===-1},sourceCache:{}},s=function(){try{throw new Error}catch(f){return f}};function l(d,f){var p={};return[d,f].forEach(function(h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(p[m]=h[m]);return p}),p}function u(d){return d.stack||d["opera#sourceloc"]}function c(d,f){return typeof f=="function"?d.filter(f):d}return{get:function(f){var p=s();return u(p)?this.fromError(p,f):this.generateArtificially(f)},getSync:function(f){f=l(i,f);var p=s(),h=u(p)?n.parse(p):a.backtrace(f);return c(h,f.filter)},fromError:function(f,p){p=l(i,p);var h=new o(p);return new Promise((function(m){var b=c(n.parse(f),p.filter);m(Promise.all(b.map(function(y){return new Promise(function(v){function _(){v(y)}h.pinpoint(y).then(v,_).catch(_)})})))}).bind(this))},generateArtificially:function(f){f=l(i,f);var p=a.backtrace(f);return typeof f.filter=="function"&&(p=p.filter(f.filter)),Promise.resolve(p)},instrument:function(f,p,h,m){if(typeof f!="function")throw new Error("Cannot instrument non-function object");if(typeof f.__stacktraceOriginalFn=="function")return f;var b=(function(){try{return this.get().then(p,h).catch(h),f.apply(m||this,arguments)}catch(v){throw u(v)&&this.fromError(v).then(p,h).catch(h),v}}).bind(this);return b.__stacktraceOriginalFn=f,b},deinstrument:function(f){if(typeof f!="function")throw new Error("Cannot de-instrument non-function object");return typeof f.__stacktraceOriginalFn=="function"?f.__stacktraceOriginalFn:f},report:function(f,p,h,m){return new Promise(function(b,y){var v=new XMLHttpRequest;if(v.onerror=y,v.onreadystatechange=function(){v.readyState===4&&(v.status>=200&&v.status<400?b(v.responseText):y(new Error("POST to "+p+" failed with status: "+v.status)))},v.open("post",p),v.setRequestHeader("Content-Type","application/json"),m&&typeof m.headers=="object"){var _=m.headers;for(var S in _)Object.prototype.hasOwnProperty.call(_,S)&&v.setRequestHeader(S,_[S])}var R={stack:f};h!=null&&(R.message=h),v.send(JSON.stringify(R))})}}})}(eb)),eb.exports}var ub,AS;function r3(){if(AS)return ub;AS=1;var e=t3(),t="https://clouderrorreporting.googleapis.com/v1beta1/projects/",r=function(){};r.prototype.start=function(i){if(!i.key&&!i.targetUrl&&!i.customReportingFunction)throw new Error("Cannot initialize: No API key, target url or custom reporting function provided.");if(!i.projectId&&!i.targetUrl&&!i.customReportingFunction)throw new Error("Cannot initialize: No project ID, target url or custom reporting function provided.");this.customReportingFunction=i.customReportingFunction,this.apiKey=i.key,this.projectId=i.projectId,this.targetUrl=i.targetUrl,this.context=i.context||{},this.serviceContext={service:i.service||"web"},i.version&&(this.serviceContext.version=i.version),this.reportUncaughtExceptions=i.reportUncaughtExceptions!==!1,this.reportUnhandledPromiseRejections=i.reportUnhandledPromiseRejections!==!1,this.disabled=!!i.disabled,n(this)};function n(i){var s=function(){};if(i.reportUncaughtExceptions){var l=window.onerror||s;window.onerror=function(c,d,f,p,h){return h&&i.report(h).catch(s),l(c,d,f,p,h),!0}}if(i.reportUnhandledPromiseRejections){var u=window.onunhandledrejection||s;window.onunhandledrejection=function(c){return c&&i.report(c.reason).catch(s),u(c.reason),!0}}}r.prototype.report=function(i,s){if(this.disabled)return Promise.resolve(null);if(!i)return Promise.reject(new Error("no error to report"));s=s||{};var l={};l.serviceContext=this.serviceContext,l.context=this.context,l.context.httpRequest={userAgent:window.navigator.userAgent,url:window.location.href};var u=0;if(typeof i=="string"||i instanceof String){try{throw new Error(i)}catch(f){i=f}u=s.skipLocalFrames||1}var c=this.targetUrl||t+this.projectId+"/events:report?key="+this.apiKey,d=this.customReportingFunction;return a(i,u).then(function(f){return l.message=f,d?d(l):o(c,l)})};function a(i,s){return e.fromError(i).then(function(l){for(var u=[i.toString()],c=s;c<l.length;c++)u.push([" at ",l[c].getFunctionName()||"<anonymous>"," (",l[c].getFileName(),":",l[c].getLineNumber(),":",l[c].getColumnNumber(),")"].join(""));return u.join(`
|
|
44
|
-
`)},function(l){return["Error extracting stack trace: ",l,`
|
|
45
|
-
`,i.toString(),`
|
|
46
|
-
`," (",i.file,":",i.line,":",i.column,")"].join("")})}function o(i,s){var l=new XMLHttpRequest;return l.open("POST",i,!0),l.setRequestHeader("Content-Type","application/json; charset=UTF-8"),new Promise(function(u,c){l.onreadystatechange=function(){if(l.readyState===4){var d=l.status;if(d>=200&&d<300)u({message:s.message});else if(d===429)c({message:"quota or rate limiting error on stackdriver report",name:"Http429FakeError"});else{var f=d?d+" http response":"network error";c(new Error(f+" on stackdriver report"))}}},l.send(JSON.stringify(s))})}return r.prototype.setUser=function(i){this.context.user=i},ub=r,ub}var $S;function n3(){return $S||($S=1,function(e,t){(function(r,n){e.exports=n(r3())})(we,function(r){return function(){var n={542:function(s){s.exports=r}},a={};function o(s){var l=a[s];if(l!==void 0)return l.exports;var u=a[s]={exports:{}};return n[s](u,u.exports,o),u.exports}o.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(l,{a:l}),l},o.d=function(s,l){for(var u in l)o.o(l,u)&&!o.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:l[u]})},o.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var i={};return function(){o.r(i),o.d(i,{reportError:function(){return f},setContext:function(){return d}});var s=o(542),l=o.n(s);const{GCP:{PROJECT_ID:u}}={GCP:{PROJECT_ID:"hazel-tea-194609"}};let c={key:null,environment:null,projectId:u};const d=({apiKey:p,environment:h,projectId:m,serviceName:b})=>{if(!p)throw new Error("Cannot set context: REACT_APP_GCP_ERRORS_API_KEY not defined");if(c.key=p,!h)throw new Error("Cannot set context: Environment not defined");c.environment=h,c.projectId=m||u,b&&(c.service=`${b}:${c.environment}`)},f=async(p,h)=>{try{const m=new(l());m.start(c),typeof h=="string"&&m.setUser(h),await m.report(p)}catch(m){console.warn(`Cannot report error: ${m.message}`)}}}(),i}()})}(Zg)),Zg.exports}var cb={exports:{}},mc={},IS;function a3(){if(IS)return mc;IS=1,Object.defineProperty(mc,"__esModule",{value:!0});var e=function(r){console.warn("[react-gtm]",r)};return mc.default=e,mc}var db,NS;function o3(){if(NS)return db;NS=1;var e=a3(),t=r(e);function r(a){return a&&a.__esModule?a:{default:a}}var n={tags:function(o){var i=o.id,s=o.events,l=o.dataLayer,u=o.dataLayerName,c=o.preview,d=o.auth,f=">m_auth="+d,p=">m_preview="+c;i||(0,t.default)("GTM Id is required");var h=`
|
|
47
|
-
<iframe src="https://www.googletagmanager.com/ns.html?id=`+i+f+p+`>m_cookies_win=x"
|
|
48
|
-
height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>`,m=`
|
|
49
|
-
(function(w,d,s,l,i){w[l]=w[l]||[];
|
|
50
|
-
w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', `+JSON.stringify(s).slice(1,-1)+`});
|
|
51
|
-
var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';
|
|
52
|
-
j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'`+f+p+`>m_cookies_win=x';
|
|
53
|
-
f.parentNode.insertBefore(j,f);
|
|
54
|
-
})(window,document,'script','`+u+"','"+i+"');",b=this.dataLayer(l,u);return{iframe:h,script:m,dataLayerVar:b}},dataLayer:function(o,i){return`
|
|
55
|
-
window.`+i+" = window."+i+` || [];
|
|
56
|
-
window.`+i+".push("+JSON.stringify(o)+")"}};return db=n,db}var fb,MS;function i3(){if(MS)return fb;MS=1;var e=o3(),t=r(e);function r(a){return a&&a.__esModule?a:{default:a}}var n={dataScript:function(o){var i=document.createElement("script");return i.innerHTML=o,i},gtm:function(o){var i=t.default.tags(o),s=function(){var d=document.createElement("noscript");return d.innerHTML=i.iframe,d},l=function(){var d=document.createElement("script");return d.innerHTML=i.script,d},u=this.dataScript(i.dataLayerVar);return{noScript:s,script:l,dataScript:u}},initialize:function(o){var i=o.gtmId,s=o.events,l=s===void 0?{}:s,u=o.dataLayer,c=o.dataLayerName,d=c===void 0?"dataLayer":c,f=o.auth,p=f===void 0?"":f,h=o.preview,m=h===void 0?"":h,b=this.gtm({id:i,events:l,dataLayer:u||void 0,dataLayerName:d,auth:p,preview:m});u&&document.head.appendChild(b.dataScript),document.head.insertBefore(b.script(),document.head.childNodes[0]),document.body.insertBefore(b.noScript(),document.body.childNodes[0])},dataLayer:function(o){var i=o.dataLayer,s=o.dataLayerName,l=s===void 0?"dataLayer":s;if(window[l])return window[l].push(i);var u=t.default.dataLayer(i,l),c=this.dataScript(u);document.head.insertBefore(c,document.head.childNodes[0])}};return fb=n,fb}var pb,qS;function s3(){if(qS)return pb;qS=1;var e=i3(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return pb=t.default,pb}var kS;function l3(){return kS||(kS=1,function(e,t){(function(r,n){e.exports=n(s3())})(we,function(r){return function(){var n={273:function(s){s.exports=r}},a={};function o(s){var l=a[s];if(l!==void 0)return l.exports;var u=a[s]={exports:{}};return n[s](u,u.exports,o),u.exports}o.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(l,{a:l}),l},o.d=function(s,l){for(var u in l)o.o(l,u)&&!o.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:l[u]})},o.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var i={};return function(){o.r(i),o.d(i,{setContext:function(){return c},setupGTM:function(){return f}});var s=o(273),l=o.n(s);let u=null;const c=({configs:p,environment:h})=>{if(!h)throw new Error("Cannot set context: Environment not defined");if(!p)throw new Error("Cannot set context: REACT_APP_GTM_ID not defined");if(!p[h])throw new Error(`Cannot set context: REACT_APP_GTM_ID not defined for environment - ${JSON.stringify({configs:p,environment:h})}`);u=p[h]},d=()=>u,f=()=>{const p=d();l().initialize({gtmId:p.id})}}(),i}()})}(cb)),cb.exports}var xA=202,PA=502,OA=400,AA=409,$A=100,IA=201,NA=417,u3=424,MA=403,qA=504,kA=410,LA=505,DA=418,BA=419,FA=507,jA=500,UA=411,HA=423,GA=420,VA=405,WA=301,zA=302,QA=207,KA=300,YA=511,XA=204,JA=203,ZA=406,e$=404,t$=501,r$=304,n$=200,a$=206,o$=402,i$=308,s$=412,l$=428,u$=102,c$=407,d$=431,f$=408,p$=413,h$=414,m$=416,v$=205,y$=303,g$=503,b$=101,E$=307,_$=429,w$=401,C$=422,R$=415,S$=305;const c3={ACCEPTED:xA,BAD_GATEWAY:PA,BAD_REQUEST:OA,CONFLICT:AA,CONTINUE:$A,CREATED:IA,EXPECTATION_FAILED:NA,FORBIDDEN:MA,GATEWAY_TIMEOUT:qA,GONE:kA,HTTP_VERSION_NOT_SUPPORTED:LA,IM_A_TEAPOT:DA,INSUFFICIENT_SPACE_ON_RESOURCE:BA,INSUFFICIENT_STORAGE:FA,INTERNAL_SERVER_ERROR:jA,LENGTH_REQUIRED:UA,LOCKED:HA,METHOD_FAILURE:GA,METHOD_NOT_ALLOWED:VA,MOVED_PERMANENTLY:WA,MOVED_TEMPORARILY:zA,MULTI_STATUS:QA,MULTIPLE_CHOICES:KA,NETWORK_AUTHENTICATION_REQUIRED:YA,NO_CONTENT:XA,NON_AUTHORITATIVE_INFORMATION:JA,NOT_ACCEPTABLE:ZA,NOT_FOUND:e$,NOT_IMPLEMENTED:t$,NOT_MODIFIED:r$,OK:n$,PARTIAL_CONTENT:a$,PAYMENT_REQUIRED:o$,PERMANENT_REDIRECT:i$,PRECONDITION_FAILED:s$,PRECONDITION_REQUIRED:l$,PROCESSING:u$,PROXY_AUTHENTICATION_REQUIRED:c$,REQUEST_HEADER_FIELDS_TOO_LARGE:d$,REQUEST_TIMEOUT:f$,REQUEST_TOO_LONG:p$,REQUEST_URI_TOO_LONG:h$,REQUESTED_RANGE_NOT_SATISFIABLE:m$,RESET_CONTENT:v$,SEE_OTHER:y$,SERVICE_UNAVAILABLE:g$,SWITCHING_PROTOCOLS:b$,TEMPORARY_REDIRECT:E$,TOO_MANY_REQUESTS:_$,UNAUTHORIZED:w$,UNPROCESSABLE_ENTITY:C$,UNSUPPORTED_MEDIA_TYPE:R$,USE_PROXY:S$};var d3={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy",421:"Misdirected Request"},f3={Accepted:202,"Bad Gateway":502,"Bad Request":400,Conflict:409,Continue:100,Created:201,"Expectation Failed":417,"Failed Dependency":424,Forbidden:403,"Gateway Timeout":504,Gone:410,"HTTP Version Not Supported":505,"I'm a teapot":418,"Insufficient Space on Resource":419,"Insufficient Storage":507,"Internal Server Error":500,"Length Required":411,Locked:423,"Method Failure":420,"Method Not Allowed":405,"Moved Permanently":301,"Moved Temporarily":302,"Multi-Status":207,"Multiple Choices":300,"Network Authentication Required":511,"No Content":204,"Non Authoritative Information":203,"Not Acceptable":406,"Not Found":404,"Not Implemented":501,"Not Modified":304,OK:200,"Partial Content":206,"Payment Required":402,"Permanent Redirect":308,"Precondition Failed":412,"Precondition Required":428,Processing:102,"Proxy Authentication Required":407,"Request Header Fields Too Large":431,"Request Timeout":408,"Request Entity Too Large":413,"Request-URI Too Long":414,"Requested Range Not Satisfiable":416,"Reset Content":205,"See Other":303,"Service Unavailable":503,"Switching Protocols":101,"Temporary Redirect":307,"Too Many Requests":429,Unauthorized:401,"Unavailable For Legal Reasons":451,"Unprocessable Entity":422,"Unsupported Media Type":415,"Use Proxy":305,"Misdirected Request":421};function T$(e){var t=d3[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}function x$(e){var t=f3[e];if(!t)throw new Error("Reason phrase does not exist: "+e);return t}var P$=T$,uE;(function(e){e[e.ACCEPTED=202]="ACCEPTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.CONFLICT=409]="CONFLICT",e[e.CONTINUE=100]="CONTINUE",e[e.CREATED=201]="CREATED",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.GONE=410]="GONE",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.IM_A_TEAPOT=418]="IM_A_TEAPOT",e[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.LOCKED=423]="LOCKED",e[e.METHOD_FAILURE=420]="METHOD_FAILURE",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",e[e.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.OK=200]="OK",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.PROCESSING=102]="PROCESSING",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.USE_PROXY=305]="USE_PROXY",e[e.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST"})(uE||(uE={}));var cE;(function(e){e.ACCEPTED="Accepted",e.BAD_GATEWAY="Bad Gateway",e.BAD_REQUEST="Bad Request",e.CONFLICT="Conflict",e.CONTINUE="Continue",e.CREATED="Created",e.EXPECTATION_FAILED="Expectation Failed",e.FAILED_DEPENDENCY="Failed Dependency",e.FORBIDDEN="Forbidden",e.GATEWAY_TIMEOUT="Gateway Timeout",e.GONE="Gone",e.HTTP_VERSION_NOT_SUPPORTED="HTTP Version Not Supported",e.IM_A_TEAPOT="I'm a teapot",e.INSUFFICIENT_SPACE_ON_RESOURCE="Insufficient Space on Resource",e.INSUFFICIENT_STORAGE="Insufficient Storage",e.INTERNAL_SERVER_ERROR="Internal Server Error",e.LENGTH_REQUIRED="Length Required",e.LOCKED="Locked",e.METHOD_FAILURE="Method Failure",e.METHOD_NOT_ALLOWED="Method Not Allowed",e.MOVED_PERMANENTLY="Moved Permanently",e.MOVED_TEMPORARILY="Moved Temporarily",e.MULTI_STATUS="Multi-Status",e.MULTIPLE_CHOICES="Multiple Choices",e.NETWORK_AUTHENTICATION_REQUIRED="Network Authentication Required",e.NO_CONTENT="No Content",e.NON_AUTHORITATIVE_INFORMATION="Non Authoritative Information",e.NOT_ACCEPTABLE="Not Acceptable",e.NOT_FOUND="Not Found",e.NOT_IMPLEMENTED="Not Implemented",e.NOT_MODIFIED="Not Modified",e.OK="OK",e.PARTIAL_CONTENT="Partial Content",e.PAYMENT_REQUIRED="Payment Required",e.PERMANENT_REDIRECT="Permanent Redirect",e.PRECONDITION_FAILED="Precondition Failed",e.PRECONDITION_REQUIRED="Precondition Required",e.PROCESSING="Processing",e.PROXY_AUTHENTICATION_REQUIRED="Proxy Authentication Required",e.REQUEST_HEADER_FIELDS_TOO_LARGE="Request Header Fields Too Large",e.REQUEST_TIMEOUT="Request Timeout",e.REQUEST_TOO_LONG="Request Entity Too Large",e.REQUEST_URI_TOO_LONG="Request-URI Too Long",e.REQUESTED_RANGE_NOT_SATISFIABLE="Requested Range Not Satisfiable",e.RESET_CONTENT="Reset Content",e.SEE_OTHER="See Other",e.SERVICE_UNAVAILABLE="Service Unavailable",e.SWITCHING_PROTOCOLS="Switching Protocols",e.TEMPORARY_REDIRECT="Temporary Redirect",e.TOO_MANY_REQUESTS="Too Many Requests",e.UNAUTHORIZED="Unauthorized",e.UNAVAILABLE_FOR_LEGAL_REASONS="Unavailable For Legal Reasons",e.UNPROCESSABLE_ENTITY="Unprocessable Entity",e.UNSUPPORTED_MEDIA_TYPE="Unsupported Media Type",e.USE_PROXY="Use Proxy",e.MISDIRECTED_REQUEST="Misdirected Request"})(cE||(cE={}));var id=globalThis&&globalThis.__assign||function(){return id=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},id.apply(this,arguments)};const p3=id(id({},c3),{getStatusCode:x$,getStatusText:P$}),h3=Object.freeze(Object.defineProperty({__proto__:null,ACCEPTED:xA,BAD_GATEWAY:PA,BAD_REQUEST:OA,CONFLICT:AA,CONTINUE:$A,CREATED:IA,EXPECTATION_FAILED:NA,FAILED_DEPENDENCY:u3,FORBIDDEN:MA,GATEWAY_TIMEOUT:qA,GONE:kA,HTTP_VERSION_NOT_SUPPORTED:LA,IM_A_TEAPOT:DA,INSUFFICIENT_SPACE_ON_RESOURCE:BA,INSUFFICIENT_STORAGE:FA,INTERNAL_SERVER_ERROR:jA,LENGTH_REQUIRED:UA,LOCKED:HA,METHOD_FAILURE:GA,METHOD_NOT_ALLOWED:VA,MOVED_PERMANENTLY:WA,MOVED_TEMPORARILY:zA,MULTIPLE_CHOICES:KA,MULTI_STATUS:QA,NETWORK_AUTHENTICATION_REQUIRED:YA,NON_AUTHORITATIVE_INFORMATION:JA,NOT_ACCEPTABLE:ZA,NOT_FOUND:e$,NOT_IMPLEMENTED:t$,NOT_MODIFIED:r$,NO_CONTENT:XA,OK:n$,PARTIAL_CONTENT:a$,PAYMENT_REQUIRED:o$,PERMANENT_REDIRECT:i$,PRECONDITION_FAILED:s$,PRECONDITION_REQUIRED:l$,PROCESSING:u$,PROXY_AUTHENTICATION_REQUIRED:c$,REQUESTED_RANGE_NOT_SATISFIABLE:m$,REQUEST_HEADER_FIELDS_TOO_LARGE:d$,REQUEST_TIMEOUT:f$,REQUEST_TOO_LONG:p$,REQUEST_URI_TOO_LONG:h$,RESET_CONTENT:v$,get ReasonPhrases(){return cE},SEE_OTHER:y$,SERVICE_UNAVAILABLE:g$,SWITCHING_PROTOCOLS:b$,get StatusCodes(){return uE},TEMPORARY_REDIRECT:E$,TOO_MANY_REQUESTS:_$,UNAUTHORIZED:w$,UNPROCESSABLE_ENTITY:C$,UNSUPPORTED_MEDIA_TYPE:R$,USE_PROXY:S$,default:p3,getReasonPhrase:T$,getStatusCode:x$,getStatusText:P$},Symbol.toStringTag,{value:"Module"})),m3=Nu(h3);var vc={exports:{}},pl={},hb={},hl={},ml={},To={},vl={},mb={},xo={},zn={},LS;function vw(){if(LS)return zn;LS=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.ERROR_PACKET=zn.PACKET_TYPES_REVERSE=zn.PACKET_TYPES=void 0;const e=Object.create(null);zn.PACKET_TYPES=e,e.open="0",e.close="1",e.ping="2",e.pong="3",e.message="4",e.upgrade="5",e.noop="6";const t=Object.create(null);zn.PACKET_TYPES_REVERSE=t,Object.keys(e).forEach(n=>{t[e[n]]=n});const r={type:"error",data:"parser error"};return zn.ERROR_PACKET=r,zn}var DS;function v3(){if(DS)return xo;DS=1,Object.defineProperty(xo,"__esModule",{value:!0}),xo.encodePacket=xo.encodePacketToBinary=void 0;const e=vw(),t=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",r=typeof ArrayBuffer=="function",n=u=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(u):u&&u.buffer instanceof ArrayBuffer,a=({type:u,data:c},d,f)=>t&&c instanceof Blob?d?f(c):o(c,f):r&&(c instanceof ArrayBuffer||n(c))?d?f(c):o(new Blob([c]),f):f(e.PACKET_TYPES[u]+(c||""));xo.encodePacket=a;const o=(u,c)=>{const d=new FileReader;return d.onload=function(){const f=d.result.split(",")[1];c("b"+(f||""))},d.readAsDataURL(u)};function i(u){return u instanceof Uint8Array?u:u instanceof ArrayBuffer?new Uint8Array(u):new Uint8Array(u.buffer,u.byteOffset,u.byteLength)}let s;function l(u,c){if(t&&u.data instanceof Blob)return u.data.arrayBuffer().then(i).then(c);if(r&&(u.data instanceof ArrayBuffer||n(u.data)))return c(i(u.data));a(u,!1,d=>{s||(s=new TextEncoder),c(s.encode(d))})}return xo.encodePacketToBinary=l,xo}var yl={},Po={},BS;function y3(){if(BS)return Po;BS=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.decode=Po.encode=void 0;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let a=0;a<e.length;a++)t[e.charCodeAt(a)]=a;const r=a=>{let o=new Uint8Array(a),i,s=o.length,l="";for(i=0;i<s;i+=3)l+=e[o[i]>>2],l+=e[(o[i]&3)<<4|o[i+1]>>4],l+=e[(o[i+1]&15)<<2|o[i+2]>>6],l+=e[o[i+2]&63];return s%3===2?l=l.substring(0,l.length-1)+"=":s%3===1&&(l=l.substring(0,l.length-2)+"=="),l};Po.encode=r;const n=a=>{let o=a.length*.75,i=a.length,s,l=0,u,c,d,f;a[a.length-1]==="="&&(o--,a[a.length-2]==="="&&o--);const p=new ArrayBuffer(o),h=new Uint8Array(p);for(s=0;s<i;s+=4)u=t[a.charCodeAt(s)],c=t[a.charCodeAt(s+1)],d=t[a.charCodeAt(s+2)],f=t[a.charCodeAt(s+3)],h[l++]=u<<2|c>>4,h[l++]=(c&15)<<4|d>>2,h[l++]=(d&3)<<6|f&63;return p};return Po.decode=n,Po}var FS;function g3(){if(FS)return yl;FS=1,Object.defineProperty(yl,"__esModule",{value:!0}),yl.decodePacket=void 0;const e=vw(),t=y3(),r=typeof ArrayBuffer=="function",n=(i,s)=>{if(typeof i!="string")return{type:"message",data:o(i,s)};const l=i.charAt(0);return l==="b"?{type:"message",data:a(i.substring(1),s)}:e.PACKET_TYPES_REVERSE[l]?i.length>1?{type:e.PACKET_TYPES_REVERSE[l],data:i.substring(1)}:{type:e.PACKET_TYPES_REVERSE[l]}:e.ERROR_PACKET};yl.decodePacket=n;const a=(i,s)=>{if(r){const l=(0,t.decode)(i);return o(l,s)}else return{base64:!0,data:i}},o=(i,s)=>{switch(s){case"blob":return i instanceof Blob?i:new Blob([i]);case"arraybuffer":default:return i instanceof ArrayBuffer?i:i.buffer}};return yl}var jS;function qu(){return jS||(jS=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodePayload=e.decodePacket=e.encodePayload=e.encodePacket=e.protocol=e.createPacketDecoderStream=e.createPacketEncoderStream=void 0;const t=v3();Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return t.encodePacket}});const r=g3();Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return r.decodePacket}});const n=vw(),a=String.fromCharCode(30),o=(f,p)=>{const h=f.length,m=new Array(h);let b=0;f.forEach((y,v)=>{(0,t.encodePacket)(y,!1,_=>{m[v]=_,++b===h&&p(m.join(a))})})};e.encodePayload=o;const i=(f,p)=>{const h=f.split(a),m=[];for(let b=0;b<h.length;b++){const y=(0,r.decodePacket)(h[b],p);if(m.push(y),y.type==="error")break}return m};e.decodePayload=i;function s(){return new TransformStream({transform(f,p){(0,t.encodePacketToBinary)(f,h=>{const m=h.length;let b;if(m<126)b=new Uint8Array(1),new DataView(b.buffer).setUint8(0,m);else if(m<65536){b=new Uint8Array(3);const y=new DataView(b.buffer);y.setUint8(0,126),y.setUint16(1,m)}else{b=new Uint8Array(9);const y=new DataView(b.buffer);y.setUint8(0,127),y.setBigUint64(1,BigInt(m))}f.data&&typeof f.data!="string"&&(b[0]|=128),p.enqueue(b),p.enqueue(h)})}})}e.createPacketEncoderStream=s;let l;function u(f){return f.reduce((p,h)=>p+h.length,0)}function c(f,p){if(f[0].length===p)return f.shift();const h=new Uint8Array(p);let m=0;for(let b=0;b<p;b++)h[b]=f[0][m++],m===f[0].length&&(f.shift(),m=0);return f.length&&m<f[0].length&&(f[0]=f[0].slice(m)),h}function d(f,p){l||(l=new TextDecoder);const h=[];let m=0,b=-1,y=!1;return new TransformStream({transform(v,_){for(h.push(v);;){if(m===0){if(u(h)<1)break;const S=c(h,1);y=(S[0]&128)===128,b=S[0]&127,b<126?m=3:b===126?m=1:m=2}else if(m===1){if(u(h)<2)break;const S=c(h,2);b=new DataView(S.buffer,S.byteOffset,S.length).getUint16(0),m=3}else if(m===2){if(u(h)<8)break;const S=c(h,8),R=new DataView(S.buffer,S.byteOffset,S.length),T=R.getUint32(0);if(T>Math.pow(2,53-32)-1){_.enqueue(n.ERROR_PACKET);break}b=T*Math.pow(2,32)+R.getUint32(4),m=3}else{if(u(h)<b)break;const S=c(h,b);_.enqueue((0,r.decodePacket)(y?S:l.decode(S),p)),m=0}if(b===0||b>f){_.enqueue(n.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=d,e.protocol=4}(mb)),mb}function fr(e){if(e)return b3(e)}function b3(e){for(var t in fr.prototype)e[t]=fr.prototype[t];return e}fr.prototype.on=fr.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};fr.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};fr.prototype.off=fr.prototype.removeListener=fr.prototype.removeAllListeners=fr.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,a=0;a<r.length;a++)if(n=r[a],n===t||n.fn===t){r.splice(a,1);break}return r.length===0&&delete this._callbacks["$"+e],this};fr.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,a=r.length;n<a;++n)r[n].apply(this,t)}return this};fr.prototype.emitReserved=fr.prototype.emit;fr.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};fr.prototype.hasListeners=function(e){return!!this.listeners(e).length};const E3=Object.freeze(Object.defineProperty({__proto__:null,Emitter:fr},Symbol.toStringTag,{value:"Module"})),qs=Nu(E3);var Qn={},gl={},US;function Jd(){return US||(US=1,Object.defineProperty(gl,"__esModule",{value:!0}),gl.globalThisShim=void 0,gl.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())()),gl}var HS;function ku(){if(HS)return Qn;HS=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.byteLength=Qn.installTimerFunctions=Qn.pick=void 0;const e=Jd();function t(l,...u){return u.reduce((c,d)=>(l.hasOwnProperty(d)&&(c[d]=l[d]),c),{})}Qn.pick=t;const r=e.globalThisShim.setTimeout,n=e.globalThisShim.clearTimeout;function a(l,u){u.useNativeTimers?(l.setTimeoutFn=r.bind(e.globalThisShim),l.clearTimeoutFn=n.bind(e.globalThisShim)):(l.setTimeoutFn=e.globalThisShim.setTimeout.bind(e.globalThisShim),l.clearTimeoutFn=e.globalThisShim.clearTimeout.bind(e.globalThisShim))}Qn.installTimerFunctions=a;const o=1.33;function i(l){return typeof l=="string"?s(l):Math.ceil((l.byteLength||l.size)*o)}Qn.byteLength=i;function s(l){let u=0,c=0;for(let d=0,f=l.length;d<f;d++)u=l.charCodeAt(d),u<128?c+=1:u<2048?c+=2:u<55296||u>=57344?c+=3:(d++,c+=4);return c}return Qn}var yc={exports:{}},vb,GS;function _3(){if(GS)return vb;GS=1;var e=1e3,t=e*60,r=t*60,n=r*24,a=n*7,o=n*365.25;vb=function(c,d){d=d||{};var f=typeof c;if(f==="string"&&c.length>0)return i(c);if(f==="number"&&isFinite(c))return d.long?l(c):s(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function i(c){if(c=String(c),!(c.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(d){var f=parseFloat(d[1]),p=(d[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return f*o;case"weeks":case"week":case"w":return f*a;case"days":case"day":case"d":return f*n;case"hours":case"hour":case"hrs":case"hr":case"h":return f*r;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function s(c){var d=Math.abs(c);return d>=n?Math.round(c/n)+"d":d>=r?Math.round(c/r)+"h":d>=t?Math.round(c/t)+"m":d>=e?Math.round(c/e)+"s":c+"ms"}function l(c){var d=Math.abs(c);return d>=n?u(c,d,n,"day"):d>=r?u(c,d,r,"hour"):d>=t?u(c,d,t,"minute"):d>=e?u(c,d,e,"second"):c+" ms"}function u(c,d,f,p){var h=d>=f*1.5;return Math.round(c/f)+" "+p+(h?"s":"")}return vb}var yb,VS;function w3(){if(VS)return yb;VS=1;function e(t){n.debug=n,n.default=n,n.coerce=u,n.disable=i,n.enable=o,n.enabled=s,n.humanize=_3(),n.destroy=c,Object.keys(t).forEach(d=>{n[d]=t[d]}),n.names=[],n.skips=[],n.formatters={};function r(d){let f=0;for(let p=0;p<d.length;p++)f=(f<<5)-f+d.charCodeAt(p),f|=0;return n.colors[Math.abs(f)%n.colors.length]}n.selectColor=r;function n(d){let f,p=null,h,m;function b(...y){if(!b.enabled)return;const v=b,_=Number(new Date),S=_-(f||_);v.diff=S,v.prev=f,v.curr=_,f=_,y[0]=n.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let R=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(O,$)=>{if(O==="%%")return"%";R++;const D=n.formatters[$];if(typeof D=="function"){const Q=y[R];O=D.call(v,Q),y.splice(R,1),R--}return O}),n.formatArgs.call(v,y),(v.log||n.log).apply(v,y)}return b.namespace=d,b.useColors=n.useColors(),b.color=n.selectColor(d),b.extend=a,b.destroy=n.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(h!==n.namespaces&&(h=n.namespaces,m=n.enabled(d)),m),set:y=>{p=y}}),typeof n.init=="function"&&n.init(b),b}function a(d,f){const p=n(this.namespace+(typeof f>"u"?":":f)+d);return p.log=this.log,p}function o(d){n.save(d),n.namespaces=d,n.names=[],n.skips=[];let f;const p=(typeof d=="string"?d:"").split(/[\s,]+/),h=p.length;for(f=0;f<h;f++)p[f]&&(d=p[f].replace(/\*/g,".*?"),d[0]==="-"?n.skips.push(new RegExp("^"+d.slice(1)+"$")):n.names.push(new RegExp("^"+d+"$")))}function i(){const d=[...n.names.map(l),...n.skips.map(l).map(f=>"-"+f)].join(",");return n.enable(""),d}function s(d){if(d[d.length-1]==="*")return!0;let f,p;for(f=0,p=n.skips.length;f<p;f++)if(n.skips[f].test(d))return!1;for(f=0,p=n.names.length;f<p;f++)if(n.names[f].test(d))return!0;return!1}function l(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function u(d){return d instanceof Error?d.stack||d.message:d}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}return yb=e,yb}var WS;function In(){return WS||(WS=1,function(e,t){t.formatArgs=n,t.save=a,t.load=o,t.useColors=r,t.storage=i(),t.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;l.splice(1,0,u,"color: inherit");let c=0,d=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(c++,f==="%c"&&(d=c))}),l.splice(d,0,u)}t.log=console.debug||console.log||(()=>{});function a(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug")}catch{}}function o(){let l;try{l=t.storage.getItem("debug")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function i(){try{return localStorage}catch{}}e.exports=w3()(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}}(yc,yc.exports)),yc.exports}var Oo={},zS;function O$(){if(zS)return Oo;zS=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.decode=Oo.encode=void 0;function e(r){let n="";for(let a in r)r.hasOwnProperty(a)&&(n.length&&(n+="&"),n+=encodeURIComponent(a)+"="+encodeURIComponent(r[a]));return n}Oo.encode=e;function t(r){let n={},a=r.split("&");for(let o=0,i=a.length;o<i;o++){let s=a[o].split("=");n[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return n}return Oo.decode=t,Oo}var QS;function Zd(){if(QS)return vl;QS=1;var e=we&&we.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(vl,"__esModule",{value:!0}),vl.Transport=void 0;const t=qu(),r=qs,n=ku(),a=e(In()),o=O$(),i=(0,a.default)("engine.io-client:transport");class s extends Error{constructor(c,d,f){super(c),this.description=d,this.context=f,this.type="TransportError"}}class l extends r.Emitter{constructor(c){super(),this.writable=!1,(0,n.installTimerFunctions)(this,c),this.opts=c,this.query=c.query,this.socket=c.socket}onError(c,d,f){return super.emitReserved("error",new s(c,d,f)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(c){this.readyState==="open"?this.write(c):i("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(c){const d=(0,t.decodePacket)(c,this.socket.binaryType);this.onPacket(d)}onPacket(c){super.emitReserved("packet",c)}onClose(c){this.readyState="closed",super.emitReserved("close",c)}pause(c){}createUri(c,d={}){return c+"://"+this._hostname()+this._port()+this.opts.path+this._query(d)}_hostname(){const c=this.opts.hostname;return c.indexOf(":")===-1?c:"["+c+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(c){const d=(0,o.encode)(c);return d.length?"?"+d:""}}return vl.Transport=l,vl}var Kn={},KS;function A$(){if(KS)return Kn;KS=1,Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.yeast=Kn.decode=Kn.encode=void 0;const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,r={};let n=0,a=0,o;function i(u){let c="";do c=e[u%t]+c,u=Math.floor(u/t);while(u>0);return c}Kn.encode=i;function s(u){let c=0;for(a=0;a<u.length;a++)c=c*t+r[u.charAt(a)];return c}Kn.decode=s;function l(){const u=i(+new Date);return u!==o?(n=0,o=u):u+"."+i(n++)}for(Kn.yeast=l;a<t;a++)r[e[a]]=a;return Kn}var Ao={},bl={},YS;function C3(){if(YS)return bl;YS=1,Object.defineProperty(bl,"__esModule",{value:!0}),bl.hasCORS=void 0;let e=!1;try{e=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}return bl.hasCORS=e,bl}var XS;function R3(){if(XS)return Ao;XS=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.createCookieJar=Ao.XHR=void 0;const e=C3(),t=Jd();function r(a){const o=a.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!o||e.hasCORS))return new XMLHttpRequest}catch{}if(!o)try{return new t.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}Ao.XHR=r;function n(){}return Ao.createCookieJar=n,Ao}var JS;function S3(){if(JS)return To;JS=1;var e=we&&we.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(To,"__esModule",{value:!0}),To.Request=To.Polling=void 0;const t=Zd(),r=e(In()),n=A$(),a=qu(),o=R3(),i=qs,s=ku(),l=Jd(),u=(0,r.default)("engine.io-client:polling");function c(){}const d=function(){return new o.XHR({xdomain:!1}).responseType!=null}();class f extends t.Transport{constructor(b){if(super(b),this.polling=!1,typeof location<"u"){const v=location.protocol==="https:";let _=location.port;_||(_=v?"443":"80"),this.xd=typeof location<"u"&&b.hostname!==location.hostname||_!==b.port}const y=b&&b.forceBase64;this.supportsBinary=d&&!y,this.opts.withCredentials&&(this.cookieJar=(0,o.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(b){this.readyState="pausing";const y=()=>{u("paused"),this.readyState="paused",b()};if(this.polling||!this.writable){let v=0;this.polling&&(u("we are currently polling - waiting to pause"),v++,this.once("pollComplete",function(){u("pre-pause polling complete"),--v||y()})),this.writable||(u("we are currently writing - waiting to pause"),v++,this.once("drain",function(){u("pre-pause writing complete"),--v||y()}))}else y()}poll(){u("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(b){u("polling got data %s",b);const y=v=>{if(this.readyState==="opening"&&v.type==="open"&&this.onOpen(),v.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(v)};(0,a.decodePayload)(b,this.socket.binaryType).forEach(y),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():u('ignoring poll - transport state "%s"',this.readyState))}doClose(){const b=()=>{u("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(u("transport open - closing"),b()):(u("transport not open - deferring close"),this.once("open",b))}write(b){this.writable=!1,(0,a.encodePayload)(b,y=>{this.doWrite(y,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const b=this.opts.secure?"https":"http",y=this.query||{};return this.opts.timestampRequests!==!1&&(y[this.opts.timestampParam]=(0,n.yeast)()),!this.supportsBinary&&!y.sid&&(y.b64=1),this.createUri(b,y)}request(b={}){return Object.assign(b,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new p(this.uri(),b)}doWrite(b,y){const v=this.request({method:"POST",data:b});v.on("success",y),v.on("error",(_,S)=>{this.onError("xhr post error",_,S)})}doPoll(){u("xhr poll");const b=this.request();b.on("data",this.onData.bind(this)),b.on("error",(y,v)=>{this.onError("xhr poll error",y,v)}),this.pollXhr=b}}To.Polling=f;class p extends i.Emitter{constructor(b,y){super(),(0,s.installTimerFunctions)(this,y),this.opts=y,this.method=y.method||"GET",this.uri=b,this.data=y.data!==void 0?y.data:null,this.create()}create(){var b;const y=(0,s.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");y.xdomain=!!this.opts.xd;const v=this.xhr=new o.XHR(y);try{u("xhr open %s: %s",this.method,this.uri),v.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){v.setDisableHeaderCheck&&v.setDisableHeaderCheck(!0);for(let _ in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(_)&&v.setRequestHeader(_,this.opts.extraHeaders[_])}}catch{}if(this.method==="POST")try{v.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{v.setRequestHeader("Accept","*/*")}catch{}(b=this.opts.cookieJar)===null||b===void 0||b.addCookies(v),"withCredentials"in v&&(v.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(v.timeout=this.opts.requestTimeout),v.onreadystatechange=()=>{var _;v.readyState===3&&((_=this.opts.cookieJar)===null||_===void 0||_.parseCookies(v)),v.readyState===4&&(v.status===200||v.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof v.status=="number"?v.status:0)},0))},u("xhr data %s",this.data),v.send(this.data)}catch(_){this.setTimeoutFn(()=>{this.onError(_)},0);return}typeof document<"u"&&(this.index=p.requestsCount++,p.requests[this.index]=this)}onError(b){this.emitReserved("error",b,this.xhr),this.cleanup(!0)}cleanup(b){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=c,b)try{this.xhr.abort()}catch{}typeof document<"u"&&delete p.requests[this.index],this.xhr=null}}onLoad(){const b=this.xhr.responseText;b!==null&&(this.emitReserved("data",b),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(To.Request=p,p.requestsCount=0,p.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",h);else if(typeof addEventListener=="function"){const m="onpagehide"in l.globalThisShim?"pagehide":"unload";addEventListener(m,h,!1)}}function h(){for(let m in p.requests)p.requests.hasOwnProperty(m)&&p.requests[m].abort()}return To}var El={},Zr={},ZS;function ef(){if(ZS)return Zr;ZS=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.defaultBinaryType=Zr.usingBrowserWebSocket=Zr.WebSocket=Zr.nextTick=void 0;const e=Jd();return Zr.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,n)=>n(r,0))(),Zr.WebSocket=e.globalThisShim.WebSocket||e.globalThisShim.MozWebSocket,Zr.usingBrowserWebSocket=!0,Zr.defaultBinaryType="arraybuffer",Zr}var eT;function T3(){if(eT)return El;eT=1;var e=we&&we.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(El,"__esModule",{value:!0}),El.WS=void 0;const t=Zd(),r=A$(),n=ku(),a=ef(),o=e(In()),i=qu(),s=(0,o.default)("engine.io-client:websocket"),l=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class u extends t.Transport{constructor(d){super(d),this.supportsBinary=!d.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const d=this.uri(),f=this.opts.protocols,p=l?{}:(0,n.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(p.headers=this.opts.extraHeaders);try{this.ws=a.usingBrowserWebSocket&&!l?f?new a.WebSocket(d,f):new a.WebSocket(d):new a.WebSocket(d,f,p)}catch(h){return this.emitReserved("error",h)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=d=>this.onClose({description:"websocket connection closed",context:d}),this.ws.onmessage=d=>this.onData(d.data),this.ws.onerror=d=>this.onError("websocket error",d)}write(d){this.writable=!1;for(let f=0;f<d.length;f++){const p=d[f],h=f===d.length-1;(0,i.encodePacket)(p,this.supportsBinary,m=>{const b={};a.usingBrowserWebSocket||(p.options&&(b.compress=p.options.compress),this.opts.perMessageDeflate&&(typeof m=="string"?Buffer.byteLength(m):m.length)<this.opts.perMessageDeflate.threshold&&(b.compress=!1));try{a.usingBrowserWebSocket?this.ws.send(m):this.ws.send(m,b)}catch{s("websocket closed before onclose event")}h&&(0,a.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const d=this.opts.secure?"wss":"ws",f=this.query||{};return this.opts.timestampRequests&&(f[this.opts.timestampParam]=(0,r.yeast)()),this.supportsBinary||(f.b64=1),this.createUri(d,f)}check(){return!!a.WebSocket}}return El.WS=u,El}var _l={},tT;function x3(){if(tT)return _l;tT=1;var e=we&&we.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(_l,"__esModule",{value:!0}),_l.WT=void 0;const t=Zd(),r=ef(),n=qu(),o=(0,e(In()).default)("engine.io-client:webtransport");class i extends t.Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{o("transport closed gracefully"),this.onClose()}).catch(l=>{o("transport closed due to %s",l),this.onError("webtransport error",l)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(l=>{const u=(0,n.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),c=l.readable.pipeThrough(u).getReader(),d=(0,n.createPacketEncoderStream)();d.readable.pipeTo(l.writable),this.writer=d.writable.getWriter();const f=()=>{c.read().then(({done:h,value:m})=>{if(h){o("session is closed");return}o("received chunk: %o",m),this.onPacket(m),f()}).catch(h=>{o("an error occurred while reading: %s",h)})};f();const p={type:"open"};this.query.sid&&(p.data=`{"sid":"${this.query.sid}"}`),this.writer.write(p).then(()=>this.onOpen())})}))}write(l){this.writable=!1;for(let u=0;u<l.length;u++){const c=l[u],d=u===l.length-1;this.writer.write(c).then(()=>{d&&(0,r.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var l;(l=this.transport)===null||l===void 0||l.close()}}return _l.WT=i,_l}var rT;function $$(){if(rT)return ml;rT=1,Object.defineProperty(ml,"__esModule",{value:!0}),ml.transports=void 0;const e=S3(),t=T3(),r=x3();return ml.transports={websocket:t.WS,webtransport:r.WT,polling:e.Polling},ml}var wl={},nT;function I$(){if(nT)return wl;nT=1,Object.defineProperty(wl,"__esModule",{value:!0}),wl.parse=void 0;const e=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,t=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function r(o){const i=o,s=o.indexOf("["),l=o.indexOf("]");s!=-1&&l!=-1&&(o=o.substring(0,s)+o.substring(s,l).replace(/:/g,";")+o.substring(l,o.length));let u=e.exec(o||""),c={},d=14;for(;d--;)c[t[d]]=u[d]||"";return s!=-1&&l!=-1&&(c.source=i,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=n(c,c.path),c.queryKey=a(c,c.query),c}wl.parse=r;function n(o,i){const s=/\/{2,9}/g,l=i.replace(s,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&l.splice(0,1),i.slice(-1)=="/"&&l.splice(l.length-1,1),l}function a(o,i){const s={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,u,c){u&&(s[u]=c)}),s}return wl}var aT;function P3(){if(aT)return hl;aT=1;var e=we&&we.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(hl,"__esModule",{value:!0}),hl.Socket=void 0;const t=$$(),r=ku(),n=O$(),a=I$(),o=e(In()),i=qs,s=qu(),l=ef(),u=(0,o.default)("engine.io-client:socket");class c extends i.Emitter{constructor(f,p={}){super(),this.binaryType=l.defaultBinaryType,this.writeBuffer=[],f&&typeof f=="object"&&(p=f,f=null),f?(f=(0,a.parse)(f),p.hostname=f.host,p.secure=f.protocol==="https"||f.protocol==="wss",p.port=f.port,f.query&&(p.query=f.query)):p.host&&(p.hostname=(0,a.parse)(p.host).host),(0,r.installTimerFunctions)(this,p),this.secure=p.secure!=null?p.secure:typeof location<"u"&&location.protocol==="https:",p.hostname&&!p.port&&(p.port=this.secure?"443":"80"),this.hostname=p.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=p.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=p.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},p),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,n.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(f){u('creating transport "%s"',f);const p=Object.assign({},this.opts.query);p.EIO=s.protocol,p.transport=f,this.id&&(p.sid=this.id);const h=Object.assign({},this.opts,{query:p,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[f]);return u("options: %j",h),new t.transports[f](h)}open(){let f;if(this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)f="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else f=this.transports[0];this.readyState="opening";try{f=this.createTransport(f)}catch(p){u("error while creating transport: %s",p),this.transports.shift(),this.open();return}f.open(),this.setTransport(f)}setTransport(f){u("setting transport %s",f.name),this.transport&&(u("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=f,f.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",p=>this.onClose("transport close",p))}probe(f){u('probing transport "%s"',f);let p=this.createTransport(f),h=!1;c.priorWebsocketSuccess=!1;const m=()=>{h||(u('probe transport "%s" opened',f),p.send([{type:"ping",data:"probe"}]),p.once("packet",T=>{if(!h)if(T.type==="pong"&&T.data==="probe"){if(u('probe transport "%s" pong',f),this.upgrading=!0,this.emitReserved("upgrading",p),!p)return;c.priorWebsocketSuccess=p.name==="websocket",u('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{h||this.readyState!=="closed"&&(u("changing transport and sending upgrade packet"),R(),this.setTransport(p),p.send([{type:"upgrade"}]),this.emitReserved("upgrade",p),p=null,this.upgrading=!1,this.flush())})}else{u('probe transport "%s" failed',f);const O=new Error("probe error");O.transport=p.name,this.emitReserved("upgradeError",O)}}))};function b(){h||(h=!0,R(),p.close(),p=null)}const y=T=>{const O=new Error("probe error: "+T);O.transport=p.name,b(),u('probe transport "%s" failed because of error: %s',f,T),this.emitReserved("upgradeError",O)};function v(){y("transport closed")}function _(){y("socket closed")}function S(T){p&&T.name!==p.name&&(u('"%s" works - aborting "%s"',T.name,p.name),b())}const R=()=>{p.removeListener("open",m),p.removeListener("error",y),p.removeListener("close",v),this.off("close",_),this.off("upgrading",S)};p.once("open",m),p.once("error",y),p.once("close",v),this.once("close",_),this.once("upgrading",S),this.upgrades.indexOf("webtransport")!==-1&&f!=="webtransport"?this.setTimeoutFn(()=>{h||p.open()},200):p.open()}onOpen(){if(u("socket open"),this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){u("starting upgrade probes");let f=0;const p=this.upgrades.length;for(;f<p;f++)this.probe(this.upgrades[f])}}onPacket(f){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(u('socket receive: type "%s", data "%s"',f.type,f.data),this.emitReserved("packet",f),this.emitReserved("heartbeat"),this.resetPingTimeout(),f.type){case"open":this.onHandshake(JSON.parse(f.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const p=new Error("server error");p.code=f.data,this.onError(p);break;case"message":this.emitReserved("data",f.data),this.emitReserved("message",f.data);break}else u('packet received with socket readyState "%s"',this.readyState)}onHandshake(f){this.emitReserved("handshake",f),this.id=f.sid,this.transport.query.sid=f.sid,this.upgrades=this.filterUpgrades(f.upgrades),this.pingInterval=f.pingInterval,this.pingTimeout=f.pingTimeout,this.maxPayload=f.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const f=this.getWritablePackets();u("flushing %d packets in socket",f.length),this.transport.send(f),this.prevBufferLen=f.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let p=1;for(let h=0;h<this.writeBuffer.length;h++){const m=this.writeBuffer[h].data;if(m&&(p+=(0,r.byteLength)(m)),h>0&&p>this.maxPayload)return u("only send %d out of %d packets",h,this.writeBuffer.length),this.writeBuffer.slice(0,h);p+=2}return u("payload size is %d (max: %d)",p,this.maxPayload),this.writeBuffer}write(f,p,h){return this.sendPacket("message",f,p,h),this}send(f,p,h){return this.sendPacket("message",f,p,h),this}sendPacket(f,p,h,m){if(typeof p=="function"&&(m=p,p=void 0),typeof h=="function"&&(m=h,h=null),this.readyState==="closing"||this.readyState==="closed")return;h=h||{},h.compress=h.compress!==!1;const b={type:f,data:p,options:h};this.emitReserved("packetCreate",b),this.writeBuffer.push(b),m&&this.once("flush",m),this.flush()}close(){const f=()=>{this.onClose("forced close"),u("socket closing - telling transport to close"),this.transport.close()},p=()=>{this.off("upgrade",p),this.off("upgradeError",p),f()},h=()=>{this.once("upgrade",p),this.once("upgradeError",p)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?h():f()}):this.upgrading?h():f()),this}onError(f){u("socket error %j",f),c.priorWebsocketSuccess=!1,this.emitReserved("error",f),this.onClose("transport error",f)}onClose(f,p){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(u('socket close with reason: "%s"',f),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",f,p),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(f){const p=[];let h=0;const m=f.length;for(;h<m;h++)~this.transports.indexOf(f[h])&&p.push(f[h]);return p}}return hl.Socket=c,c.protocol=s.protocol,hl}var oT;function N$(){return oT||(oT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.nextTick=e.parse=e.installTimerFunctions=e.transports=e.Transport=e.protocol=e.Socket=void 0;const t=P3();Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return t.Socket}}),e.protocol=t.Socket.protocol;var r=Zd();Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return r.Transport}});var n=$$();Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return n.transports}});var a=ku();Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return a.installTimerFunctions}});var o=I$();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return o.parse}});var i=ef();Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return i.nextTick}})}(hb)),hb}var iT;function O3(){if(iT)return pl;iT=1;var e=we&&we.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(pl,"__esModule",{value:!0}),pl.url=void 0;const t=N$(),n=e(In()).default("socket.io-client:url");function a(o,i="",s){let l=o;s=s||typeof location<"u"&&location,o==null&&(o=s.protocol+"//"+s.host),typeof o=="string"&&(o.charAt(0)==="/"&&(o.charAt(1)==="/"?o=s.protocol+o:o=s.host+o),/^(https?|wss?):\/\//.test(o)||(n("protocol-less url %s",o),typeof s<"u"?o=s.protocol+"//"+o:o="https://"+o),n("parse %s",o),l=t.parse(o)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";const c=l.host.indexOf(":")!==-1?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+c+":"+l.port+i,l.href=l.protocol+"://"+c+(s&&s.port===l.port?"":":"+l.port),l}return pl.url=a,pl}var Cl={},Rl={},gb={},$o={},Io={},sT;function M$(){if(sT)return Io;sT=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.hasBinary=Io.isBinary=void 0;const e=typeof ArrayBuffer=="function",t=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,r=Object.prototype.toString,n=typeof Blob=="function"||typeof Blob<"u"&&r.call(Blob)==="[object BlobConstructor]",a=typeof File=="function"||typeof File<"u"&&r.call(File)==="[object FileConstructor]";function o(s){return e&&(s instanceof ArrayBuffer||t(s))||n&&s instanceof Blob||a&&s instanceof File}Io.isBinary=o;function i(s,l){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let u=0,c=s.length;u<c;u++)if(i(s[u]))return!0;return!1}if(o(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return i(s.toJSON(),!0);for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u)&&i(s[u]))return!0;return!1}return Io.hasBinary=i,Io}var lT;function A3(){if(lT)return $o;lT=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.reconstructPacket=$o.deconstructPacket=void 0;const e=M$();function t(o){const i=[],s=o.data,l=o;return l.data=r(s,i),l.attachments=i.length,{packet:l,buffers:i}}$o.deconstructPacket=t;function r(o,i){if(!o)return o;if((0,e.isBinary)(o)){const s={_placeholder:!0,num:i.length};return i.push(o),s}else if(Array.isArray(o)){const s=new Array(o.length);for(let l=0;l<o.length;l++)s[l]=r(o[l],i);return s}else if(typeof o=="object"&&!(o instanceof Date)){const s={};for(const l in o)Object.prototype.hasOwnProperty.call(o,l)&&(s[l]=r(o[l],i));return s}return o}function n(o,i){return o.data=a(o.data,i),delete o.attachments,o}$o.reconstructPacket=n;function a(o,i){if(!o)return o;if(o&&o._placeholder===!0){if(typeof o.num=="number"&&o.num>=0&&o.num<i.length)return i[o.num];throw new Error("illegal attachments")}else if(Array.isArray(o))for(let s=0;s<o.length;s++)o[s]=a(o[s],i);else if(typeof o=="object")for(const s in o)Object.prototype.hasOwnProperty.call(o,s)&&(o[s]=a(o[s],i));return o}return $o}var uT;function yw(){return uT||(uT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const t=qs,r=A3(),n=M$(),o=(0,In().default)("socket.io-parser"),i=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var s;(function(f){f[f.CONNECT=0]="CONNECT",f[f.DISCONNECT=1]="DISCONNECT",f[f.EVENT=2]="EVENT",f[f.ACK=3]="ACK",f[f.CONNECT_ERROR=4]="CONNECT_ERROR",f[f.BINARY_EVENT=5]="BINARY_EVENT",f[f.BINARY_ACK=6]="BINARY_ACK"})(s=e.PacketType||(e.PacketType={}));class l{constructor(p){this.replacer=p}encode(p){return o("encoding packet %j",p),(p.type===s.EVENT||p.type===s.ACK)&&(0,n.hasBinary)(p)?this.encodeAsBinary({type:p.type===s.EVENT?s.BINARY_EVENT:s.BINARY_ACK,nsp:p.nsp,data:p.data,id:p.id}):[this.encodeAsString(p)]}encodeAsString(p){let h=""+p.type;return(p.type===s.BINARY_EVENT||p.type===s.BINARY_ACK)&&(h+=p.attachments+"-"),p.nsp&&p.nsp!=="/"&&(h+=p.nsp+","),p.id!=null&&(h+=p.id),p.data!=null&&(h+=JSON.stringify(p.data,this.replacer)),o("encoded %j as %s",p,h),h}encodeAsBinary(p){const h=(0,r.deconstructPacket)(p),m=this.encodeAsString(h.packet),b=h.buffers;return b.unshift(m),b}}e.Encoder=l;function u(f){return Object.prototype.toString.call(f)==="[object Object]"}class c extends t.Emitter{constructor(p){super(),this.reviver=p}add(p){let h;if(typeof p=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");h=this.decodeString(p);const m=h.type===s.BINARY_EVENT;m||h.type===s.BINARY_ACK?(h.type=m?s.EVENT:s.ACK,this.reconstructor=new d(h),h.attachments===0&&super.emitReserved("decoded",h)):super.emitReserved("decoded",h)}else if((0,n.isBinary)(p)||p.base64)if(this.reconstructor)h=this.reconstructor.takeBinaryData(p),h&&(this.reconstructor=null,super.emitReserved("decoded",h));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+p)}decodeString(p){let h=0;const m={type:Number(p.charAt(0))};if(s[m.type]===void 0)throw new Error("unknown packet type "+m.type);if(m.type===s.BINARY_EVENT||m.type===s.BINARY_ACK){const y=h+1;for(;p.charAt(++h)!=="-"&&h!=p.length;);const v=p.substring(y,h);if(v!=Number(v)||p.charAt(h)!=="-")throw new Error("Illegal attachments");m.attachments=Number(v)}if(p.charAt(h+1)==="/"){const y=h+1;for(;++h&&!(p.charAt(h)===","||h===p.length););m.nsp=p.substring(y,h)}else m.nsp="/";const b=p.charAt(h+1);if(b!==""&&Number(b)==b){const y=h+1;for(;++h;){const v=p.charAt(h);if(v==null||Number(v)!=v){--h;break}if(h===p.length)break}m.id=Number(p.substring(y,h+1))}if(p.charAt(++h)){const y=this.tryParse(p.substr(h));if(c.isPayloadValid(m.type,y))m.data=y;else throw new Error("invalid payload")}return o("decoded %s as %j",p,m),m}tryParse(p){try{return JSON.parse(p,this.reviver)}catch{return!1}}static isPayloadValid(p,h){switch(p){case s.CONNECT:return u(h);case s.DISCONNECT:return h===void 0;case s.CONNECT_ERROR:return typeof h=="string"||u(h);case s.EVENT:case s.BINARY_EVENT:return Array.isArray(h)&&(typeof h[0]=="number"||typeof h[0]=="string"&&i.indexOf(h[0])===-1);case s.ACK:case s.BINARY_ACK:return Array.isArray(h)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=c;class d{constructor(p){this.packet=p,this.buffers=[],this.reconPack=p}takeBinaryData(p){if(this.buffers.push(p),this.buffers.length===this.reconPack.attachments){const h=(0,r.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),h}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}}(gb)),gb}var Sl={},cT;function q$(){if(cT)return Sl;cT=1,Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.on=void 0;function e(t,r,n){return t.on(r,n),function(){t.off(r,n)}}return Sl.on=e,Sl}var dT;function k$(){if(dT)return Rl;dT=1;var e=we&&we.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.Socket=void 0;const t=yw(),r=q$(),n=qs,o=e(In()).default("socket.io-client:socket"),i=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class s extends n.Emitter{constructor(u,c,d){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=u,this.nsp=c,d&&d.auth&&(this.auth=d.auth),this._opts=Object.assign({},d),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const u=this.io;this.subs=[r.on(u,"open",this.onopen.bind(this)),r.on(u,"packet",this.onpacket.bind(this)),r.on(u,"error",this.onerror.bind(this)),r.on(u,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...u){return u.unshift("message"),this.emit.apply(this,u),this}emit(u,...c){if(i.hasOwnProperty(u))throw new Error('"'+u.toString()+'" is a reserved event name');if(c.unshift(u),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const d={type:t.PacketType.EVENT,data:c};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const h=this.ids++;o("emitting packet with ack id %d",h);const m=c.pop();this._registerAckCallback(h,m),d.id=h}const f=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!f||!this.connected)?o("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d),this.flags={},this}_registerAckCallback(u,c){var d;const f=(d=this.flags.timeout)!==null&&d!==void 0?d:this._opts.ackTimeout;if(f===void 0){this.acks[u]=c;return}const p=this.io.setTimeoutFn(()=>{delete this.acks[u];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===u&&(o("removing packet with ack id %d from the buffer",u),this.sendBuffer.splice(h,1));o("event with ack id %d has timed out after %d ms",u,f),c.call(this,new Error("operation has timed out"))},f);this.acks[u]=(...h)=>{this.io.clearTimeoutFn(p),c.apply(this,[null,...h])}}emitWithAck(u,...c){const d=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((f,p)=>{c.push((h,m)=>d?h?p(h):f(m):f(h)),this.emit(u,...c)})}_addToQueue(u){let c;typeof u[u.length-1]=="function"&&(c=u.pop());const d={id:this._queueSeq++,tryCount:0,pending:!1,args:u,flags:Object.assign({fromQueue:!0},this.flags)};u.push((f,...p)=>d!==this._queue[0]?void 0:(f!==null?d.tryCount>this._opts.retries&&(o("packet [%d] is discarded after %d tries",d.id,d.tryCount),this._queue.shift(),c&&c(f)):(o("packet [%d] was successfully sent",d.id),this._queue.shift(),c&&c(null,...p)),d.pending=!1,this._drainQueue())),this._queue.push(d),this._drainQueue()}_drainQueue(u=!1){if(o("draining queue"),!this.connected||this._queue.length===0)return;const c=this._queue[0];if(c.pending&&!u){o("packet [%d] has already been sent and is waiting for an ack",c.id);return}c.pending=!0,c.tryCount++,o("sending packet [%d] (try n°%d)",c.id,c.tryCount),this.flags=c.flags,this.emit.apply(this,c.args)}packet(u){u.nsp=this.nsp,this.io._packet(u)}onopen(){o("transport is open - connecting"),typeof this.auth=="function"?this.auth(u=>{this._sendConnectPacket(u)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(u){this.packet({type:t.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},u):u})}onerror(u){this.connected||this.emitReserved("connect_error",u)}onclose(u,c){o("close (%s)",u),this.connected=!1,delete this.id,this.emitReserved("disconnect",u,c)}onpacket(u){if(u.nsp===this.nsp)switch(u.type){case t.PacketType.CONNECT:u.data&&u.data.sid?this.onconnect(u.data.sid,u.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case t.PacketType.EVENT:case t.PacketType.BINARY_EVENT:this.onevent(u);break;case t.PacketType.ACK:case t.PacketType.BINARY_ACK:this.onack(u);break;case t.PacketType.DISCONNECT:this.ondisconnect();break;case t.PacketType.CONNECT_ERROR:this.destroy();const d=new Error(u.data.message);d.data=u.data.data,this.emitReserved("connect_error",d);break}}onevent(u){const c=u.data||[];o("emitting event %j",c),u.id!=null&&(o("attaching ack callback to event"),c.push(this.ack(u.id))),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(u){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const d of c)d.apply(this,u)}super.emit.apply(this,u),this._pid&&u.length&&typeof u[u.length-1]=="string"&&(this._lastOffset=u[u.length-1])}ack(u){const c=this;let d=!1;return function(...f){d||(d=!0,o("sending ack %j",f),c.packet({type:t.PacketType.ACK,id:u,data:f}))}}onack(u){const c=this.acks[u.id];typeof c=="function"?(o("calling ack %s with %j",u.id,u.data),c.apply(this,u.data),delete this.acks[u.id]):o("bad ack %s",u.id)}onconnect(u,c){o("socket connected with id %s",u),this.id=u,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(u=>this.emitEvent(u)),this.receiveBuffer=[],this.sendBuffer.forEach(u=>{this.notifyOutgoingListeners(u),this.packet(u)}),this.sendBuffer=[]}ondisconnect(){o("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(u=>u()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(o("performing disconnect (%s)",this.nsp),this.packet({type:t.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(u){return this.flags.compress=u,this}get volatile(){return this.flags.volatile=!0,this}timeout(u){return this.flags.timeout=u,this}onAny(u){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(u),this}prependAny(u){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(u),this}offAny(u){if(!this._anyListeners)return this;if(u){const c=this._anyListeners;for(let d=0;d<c.length;d++)if(u===c[d])return c.splice(d,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(u){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(u),this}prependAnyOutgoing(u){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(u),this}offAnyOutgoing(u){if(!this._anyOutgoingListeners)return this;if(u){const c=this._anyOutgoingListeners;for(let d=0;d<c.length;d++)if(u===c[d])return c.splice(d,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(u){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const d of c)d.apply(this,u.data)}}}return Rl.Socket=s,Rl}var Tl={},fT;function $3(){if(fT)return Tl;fT=1,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.Backoff=void 0;function e(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}return Tl.Backoff=e,e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),n=Math.floor(r*this.jitter*t);t=Math.floor(r*10)&1?t+n:t-n}return Math.min(t,this.max)|0},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t},Tl}var pT;function I3(){if(pT)return Cl;pT=1;var e=we&&we.__createBinding||(Object.create?function(p,h,m,b){b===void 0&&(b=m),Object.defineProperty(p,b,{enumerable:!0,get:function(){return h[m]}})}:function(p,h,m,b){b===void 0&&(b=m),p[b]=h[m]}),t=we&&we.__setModuleDefault||(Object.create?function(p,h){Object.defineProperty(p,"default",{enumerable:!0,value:h})}:function(p,h){p.default=h}),r=we&&we.__importStar||function(p){if(p&&p.__esModule)return p;var h={};if(p!=null)for(var m in p)m!=="default"&&Object.prototype.hasOwnProperty.call(p,m)&&e(h,p,m);return t(h,p),h},n=we&&we.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.Manager=void 0;const a=N$(),o=k$(),i=r(yw()),s=q$(),l=$3(),u=qs,d=n(In()).default("socket.io-client:manager");class f extends u.Emitter{constructor(h,m){var b;super(),this.nsps={},this.subs=[],h&&typeof h=="object"&&(m=h,h=void 0),m=m||{},m.path=m.path||"/socket.io",this.opts=m,a.installTimerFunctions(this,m),this.reconnection(m.reconnection!==!1),this.reconnectionAttempts(m.reconnectionAttempts||1/0),this.reconnectionDelay(m.reconnectionDelay||1e3),this.reconnectionDelayMax(m.reconnectionDelayMax||5e3),this.randomizationFactor((b=m.randomizationFactor)!==null&&b!==void 0?b:.5),this.backoff=new l.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(m.timeout==null?2e4:m.timeout),this._readyState="closed",this.uri=h;const y=m.parser||i;this.encoder=new y.Encoder,this.decoder=new y.Decoder,this._autoConnect=m.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(h){return arguments.length?(this._reconnection=!!h,this):this._reconnection}reconnectionAttempts(h){return h===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=h,this)}reconnectionDelay(h){var m;return h===void 0?this._reconnectionDelay:(this._reconnectionDelay=h,(m=this.backoff)===null||m===void 0||m.setMin(h),this)}randomizationFactor(h){var m;return h===void 0?this._randomizationFactor:(this._randomizationFactor=h,(m=this.backoff)===null||m===void 0||m.setJitter(h),this)}reconnectionDelayMax(h){var m;return h===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=h,(m=this.backoff)===null||m===void 0||m.setMax(h),this)}timeout(h){return arguments.length?(this._timeout=h,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(h){if(d("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;d("opening %s",this.uri),this.engine=new a.Socket(this.uri,this.opts);const m=this.engine,b=this;this._readyState="opening",this.skipReconnect=!1;const y=s.on(m,"open",function(){b.onopen(),h&&h()}),v=S=>{d("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",S),h?h(S):this.maybeReconnectOnOpen()},_=s.on(m,"error",v);if(this._timeout!==!1){const S=this._timeout;d("connect attempt will timeout after %d",S);const R=this.setTimeoutFn(()=>{d("connect attempt timed out after %d",S),y(),v(new Error("timeout")),m.close()},S);this.opts.autoUnref&&R.unref(),this.subs.push(()=>{this.clearTimeoutFn(R)})}return this.subs.push(y),this.subs.push(_),this}connect(h){return this.open(h)}onopen(){d("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const h=this.engine;this.subs.push(s.on(h,"ping",this.onping.bind(this)),s.on(h,"data",this.ondata.bind(this)),s.on(h,"error",this.onerror.bind(this)),s.on(h,"close",this.onclose.bind(this)),s.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(h){try{this.decoder.add(h)}catch(m){this.onclose("parse error",m)}}ondecoded(h){a.nextTick(()=>{this.emitReserved("packet",h)},this.setTimeoutFn)}onerror(h){d("error",h),this.emitReserved("error",h)}socket(h,m){let b=this.nsps[h];return b?this._autoConnect&&!b.active&&b.connect():(b=new o.Socket(this,h,m),this.nsps[h]=b),b}_destroy(h){const m=Object.keys(this.nsps);for(const b of m)if(this.nsps[b].active){d("socket %s is still active, skipping close",b);return}this._close()}_packet(h){d("writing packet %j",h);const m=this.encoder.encode(h);for(let b=0;b<m.length;b++)this.engine.write(m[b],h.options)}cleanup(){d("cleanup"),this.subs.forEach(h=>h()),this.subs.length=0,this.decoder.destroy()}_close(){d("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(h,m){d("closed due to %s",h),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",h,m),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const h=this;if(this.backoff.attempts>=this._reconnectionAttempts)d("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const m=this.backoff.duration();d("will wait %dms before reconnect attempt",m),this._reconnecting=!0;const b=this.setTimeoutFn(()=>{h.skipReconnect||(d("attempting reconnect"),this.emitReserved("reconnect_attempt",h.backoff.attempts),!h.skipReconnect&&h.open(y=>{y?(d("reconnect attempt error"),h._reconnecting=!1,h.reconnect(),this.emitReserved("reconnect_error",y)):(d("reconnect success"),h.onreconnect())}))},m);this.opts.autoUnref&&b.unref(),this.subs.push(()=>{this.clearTimeoutFn(b)})}}onreconnect(){const h=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",h)}}return Cl.Manager=f,Cl}var hT;function N3(){return hT||(hT=1,function(e,t){var r=we&&we.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const n=O3(),a=I3();Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return a.Manager}});const o=k$();Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return o.Socket}});const s=r(In()).default("socket.io-client"),l={};function u(d,f){typeof d=="object"&&(f=d,d=void 0),f=f||{};const p=n.url(d,f.path||"/socket.io"),h=p.source,m=p.id,b=p.path,y=l[m]&&b in l[m].nsps,v=f.forceNew||f["force new connection"]||f.multiplex===!1||y;let _;return v?(s("ignoring socket cache for %s",h),_=new a.Manager(h,f)):(l[m]||(s("new io instance for %s",h),l[m]=new a.Manager(h,f)),_=l[m]),p.query&&!f.query&&(f.query=p.queryKey),_.socket(p.path,f)}t.io=u,t.connect=u,t.default=u,Object.assign(u,{Manager:a.Manager,Socket:o.Socket,io:u,connect:u});var c=yw();Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return c.protocol}}),e.exports=u}(vc,vc.exports)),vc.exports}var bb={},xl={},mT;function M3(){if(mT)return xl;mT=1,xl.byteLength=s,xl.toByteArray=u,xl.fromByteArray=f;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,o=n.length;a<o;++a)e[a]=n[a],t[n.charCodeAt(a)]=a;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function i(p){var h=p.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=p.indexOf("=");m===-1&&(m=h);var b=m===h?0:4-m%4;return[m,b]}function s(p){var h=i(p),m=h[0],b=h[1];return(m+b)*3/4-b}function l(p,h,m){return(h+m)*3/4-m}function u(p){var h,m=i(p),b=m[0],y=m[1],v=new r(l(p,b,y)),_=0,S=y>0?b-4:b,R;for(R=0;R<S;R+=4)h=t[p.charCodeAt(R)]<<18|t[p.charCodeAt(R+1)]<<12|t[p.charCodeAt(R+2)]<<6|t[p.charCodeAt(R+3)],v[_++]=h>>16&255,v[_++]=h>>8&255,v[_++]=h&255;return y===2&&(h=t[p.charCodeAt(R)]<<2|t[p.charCodeAt(R+1)]>>4,v[_++]=h&255),y===1&&(h=t[p.charCodeAt(R)]<<10|t[p.charCodeAt(R+1)]<<4|t[p.charCodeAt(R+2)]>>2,v[_++]=h>>8&255,v[_++]=h&255),v}function c(p){return e[p>>18&63]+e[p>>12&63]+e[p>>6&63]+e[p&63]}function d(p,h,m){for(var b,y=[],v=h;v<m;v+=3)b=(p[v]<<16&16711680)+(p[v+1]<<8&65280)+(p[v+2]&255),y.push(c(b));return y.join("")}function f(p){for(var h,m=p.length,b=m%3,y=[],v=16383,_=0,S=m-b;_<S;_+=v)y.push(d(p,_,_+v>S?S:_+v));return b===1?(h=p[m-1],y.push(e[h>>2]+e[h<<4&63]+"==")):b===2&&(h=(p[m-2]<<8)+p[m-1],y.push(e[h>>10]+e[h>>4&63]+e[h<<2&63]+"=")),y.join("")}return xl}var gc={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var vT;function q3(){return vT||(vT=1,gc.read=function(e,t,r,n,a){var o,i,s=a*8-n-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?a-1:0,f=r?-1:1,p=e[t+d];for(d+=f,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=o*256+e[t+d],d+=f,c-=8);for(i=o&(1<<-c)-1,o>>=-c,c+=n;c>0;i=i*256+e[t+d],d+=f,c-=8);if(o===0)o=1-u;else{if(o===l)return i?NaN:(p?-1:1)*(1/0);i=i+Math.pow(2,n),o=o-u}return(p?-1:1)*i*Math.pow(2,o-n)},gc.write=function(e,t,r,n,a,o){var i,s,l,u=o*8-a-1,c=(1<<u)-1,d=c>>1,f=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,h=n?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),i+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(i++,l/=2),i+d>=c?(s=0,i=c):i+d>=1?(s=(t*l-1)*Math.pow(2,a),i=i+d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),i=0));a>=8;e[r+p]=s&255,p+=h,s/=256,a-=8);for(i=i<<a|s,u+=a;u>0;e[r+p]=i&255,p+=h,i/=256,u-=8);e[r+p-h]|=m*128}),gc}/*!
|
|
57
|
-
* The buffer module from node.js, for the browser.
|
|
58
|
-
*
|
|
59
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
60
|
-
* @license MIT
|
|
61
|
-
*/var yT;function k3(){return yT||(yT=1,function(e){const t=M3(),r=q3(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a,s.TYPED_ARRAY_SUPPORT=o(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const x=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(x,g),x.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function i(x){if(x>a)throw new RangeError('The value "'+x+'" is invalid for option "size"');const g=new Uint8Array(x);return Object.setPrototypeOf(g,s.prototype),g}function s(x,g,w){if(typeof x=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(x)}return l(x,g,w)}s.poolSize=8192;function l(x,g,w){if(typeof x=="string")return f(x,g);if(ArrayBuffer.isView(x))return h(x);if(x==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x);if(ft(x,ArrayBuffer)||x&&ft(x.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ft(x,SharedArrayBuffer)||x&&ft(x.buffer,SharedArrayBuffer)))return m(x,g,w);if(typeof x=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const C=x.valueOf&&x.valueOf();if(C!=null&&C!==x)return s.from(C,g,w);const I=b(x);if(I)return I;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof x[Symbol.toPrimitive]=="function")return s.from(x[Symbol.toPrimitive]("string"),g,w);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x)}s.from=function(x,g,w){return l(x,g,w)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(x){if(typeof x!="number")throw new TypeError('"size" argument must be of type number');if(x<0)throw new RangeError('The value "'+x+'" is invalid for option "size"')}function c(x,g,w){return u(x),x<=0?i(x):g!==void 0?typeof w=="string"?i(x).fill(g,w):i(x).fill(g):i(x)}s.alloc=function(x,g,w){return c(x,g,w)};function d(x){return u(x),i(x<0?0:y(x)|0)}s.allocUnsafe=function(x){return d(x)},s.allocUnsafeSlow=function(x){return d(x)};function f(x,g){if((typeof g!="string"||g==="")&&(g="utf8"),!s.isEncoding(g))throw new TypeError("Unknown encoding: "+g);const w=_(x,g)|0;let C=i(w);const I=C.write(x,g);return I!==w&&(C=C.slice(0,I)),C}function p(x){const g=x.length<0?0:y(x.length)|0,w=i(g);for(let C=0;C<g;C+=1)w[C]=x[C]&255;return w}function h(x){if(ft(x,Uint8Array)){const g=new Uint8Array(x);return m(g.buffer,g.byteOffset,g.byteLength)}return p(x)}function m(x,g,w){if(g<0||x.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(x.byteLength<g+(w||0))throw new RangeError('"length" is outside of buffer bounds');let C;return g===void 0&&w===void 0?C=new Uint8Array(x):w===void 0?C=new Uint8Array(x,g):C=new Uint8Array(x,g,w),Object.setPrototypeOf(C,s.prototype),C}function b(x){if(s.isBuffer(x)){const g=y(x.length)|0,w=i(g);return w.length===0||x.copy(w,0,0,g),w}if(x.length!==void 0)return typeof x.length!="number"||Zt(x.length)?i(0):p(x);if(x.type==="Buffer"&&Array.isArray(x.data))return p(x.data)}function y(x){if(x>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return x|0}function v(x){return+x!=x&&(x=0),s.alloc(+x)}s.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==s.prototype},s.compare=function(g,w){if(ft(g,Uint8Array)&&(g=s.from(g,g.offset,g.byteLength)),ft(w,Uint8Array)&&(w=s.from(w,w.offset,w.byteLength)),!s.isBuffer(g)||!s.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===w)return 0;let C=g.length,I=w.length;for(let N=0,W=Math.min(C,I);N<W;++N)if(g[N]!==w[N]){C=g[N],I=w[N];break}return C<I?-1:I<C?1:0},s.isEncoding=function(g){switch(String(g).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(g,w){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return s.alloc(0);let C;if(w===void 0)for(w=0,C=0;C<g.length;++C)w+=g[C].length;const I=s.allocUnsafe(w);let N=0;for(C=0;C<g.length;++C){let W=g[C];if(ft(W,Uint8Array))N+W.length>I.length?(s.isBuffer(W)||(W=s.from(W)),W.copy(I,N)):Uint8Array.prototype.set.call(I,W,N);else if(s.isBuffer(W))W.copy(I,N);else throw new TypeError('"list" argument must be an Array of Buffers');N+=W.length}return I};function _(x,g){if(s.isBuffer(x))return x.length;if(ArrayBuffer.isView(x)||ft(x,ArrayBuffer))return x.byteLength;if(typeof x!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof x);const w=x.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&w===0)return 0;let I=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return Lt(x).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return Jt(x).length;default:if(I)return C?-1:Lt(x).length;g=(""+g).toLowerCase(),I=!0}}s.byteLength=_;function S(x,g,w){let C=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,g>>>=0,w<=g))return"";for(x||(x="utf8");;)switch(x){case"hex":return ge(this,g,w);case"utf8":case"utf-8":return te(this,g,w);case"ascii":return Y(this,g,w);case"latin1":case"binary":return ae(this,g,w);case"base64":return j(this,g,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,g,w);default:if(C)throw new TypeError("Unknown encoding: "+x);x=(x+"").toLowerCase(),C=!0}}s.prototype._isBuffer=!0;function R(x,g,w){const C=x[g];x[g]=x[w],x[w]=C}s.prototype.swap16=function(){const g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;w<g;w+=2)R(this,w,w+1);return this},s.prototype.swap32=function(){const g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let w=0;w<g;w+=4)R(this,w,w+3),R(this,w+1,w+2);return this},s.prototype.swap64=function(){const g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let w=0;w<g;w+=8)R(this,w,w+7),R(this,w+1,w+6),R(this,w+2,w+5),R(this,w+3,w+4);return this},s.prototype.toString=function(){const g=this.length;return g===0?"":arguments.length===0?te(this,0,g):S.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(g){if(!s.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:s.compare(this,g)===0},s.prototype.inspect=function(){let g="";const w=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(g+=" ... "),"<Buffer "+g+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(g,w,C,I,N){if(ft(g,Uint8Array)&&(g=s.from(g,g.offset,g.byteLength)),!s.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(w===void 0&&(w=0),C===void 0&&(C=g?g.length:0),I===void 0&&(I=0),N===void 0&&(N=this.length),w<0||C>g.length||I<0||N>this.length)throw new RangeError("out of range index");if(I>=N&&w>=C)return 0;if(I>=N)return-1;if(w>=C)return 1;if(w>>>=0,C>>>=0,I>>>=0,N>>>=0,this===g)return 0;let W=N-I,de=C-w;const Ee=Math.min(W,de),ve=this.slice(I,N),Ce=g.slice(w,C);for(let xe=0;xe<Ee;++xe)if(ve[xe]!==Ce[xe]){W=ve[xe],de=Ce[xe];break}return W<de?-1:de<W?1:0};function T(x,g,w,C,I){if(x.length===0)return-1;if(typeof w=="string"?(C=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,Zt(w)&&(w=I?0:x.length-1),w<0&&(w=x.length+w),w>=x.length){if(I)return-1;w=x.length-1}else if(w<0)if(I)w=0;else return-1;if(typeof g=="string"&&(g=s.from(g,C)),s.isBuffer(g))return g.length===0?-1:O(x,g,w,C,I);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?I?Uint8Array.prototype.indexOf.call(x,g,w):Uint8Array.prototype.lastIndexOf.call(x,g,w):O(x,[g],w,C,I);throw new TypeError("val must be string, number or Buffer")}function O(x,g,w,C,I){let N=1,W=x.length,de=g.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(x.length<2||g.length<2)return-1;N=2,W/=2,de/=2,w/=2}function Ee(Ce,xe){return N===1?Ce[xe]:Ce.readUInt16BE(xe*N)}let ve;if(I){let Ce=-1;for(ve=w;ve<W;ve++)if(Ee(x,ve)===Ee(g,Ce===-1?0:ve-Ce)){if(Ce===-1&&(Ce=ve),ve-Ce+1===de)return Ce*N}else Ce!==-1&&(ve-=ve-Ce),Ce=-1}else for(w+de>W&&(w=W-de),ve=w;ve>=0;ve--){let Ce=!0;for(let xe=0;xe<de;xe++)if(Ee(x,ve+xe)!==Ee(g,xe)){Ce=!1;break}if(Ce)return ve}return-1}s.prototype.includes=function(g,w,C){return this.indexOf(g,w,C)!==-1},s.prototype.indexOf=function(g,w,C){return T(this,g,w,C,!0)},s.prototype.lastIndexOf=function(g,w,C){return T(this,g,w,C,!1)};function $(x,g,w,C){w=Number(w)||0;const I=x.length-w;C?(C=Number(C),C>I&&(C=I)):C=I;const N=g.length;C>N/2&&(C=N/2);let W;for(W=0;W<C;++W){const de=parseInt(g.substr(W*2,2),16);if(Zt(de))return W;x[w+W]=de}return W}function D(x,g,w,C){return Wt(Lt(g,x.length-w),x,w,C)}function Q(x,g,w,C){return Wt(ht(g),x,w,C)}function V(x,g,w,C){return Wt(Jt(g),x,w,C)}function G(x,g,w,C){return Wt(mr(g,x.length-w),x,w,C)}s.prototype.write=function(g,w,C,I){if(w===void 0)I="utf8",C=this.length,w=0;else if(C===void 0&&typeof w=="string")I=w,C=this.length,w=0;else if(isFinite(w))w=w>>>0,isFinite(C)?(C=C>>>0,I===void 0&&(I="utf8")):(I=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const N=this.length-w;if((C===void 0||C>N)&&(C=N),g.length>0&&(C<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");let W=!1;for(;;)switch(I){case"hex":return $(this,g,w,C);case"utf8":case"utf-8":return D(this,g,w,C);case"ascii":case"latin1":case"binary":return Q(this,g,w,C);case"base64":return V(this,g,w,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,g,w,C);default:if(W)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),W=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(x,g,w){return g===0&&w===x.length?t.fromByteArray(x):t.fromByteArray(x.slice(g,w))}function te(x,g,w){w=Math.min(x.length,w);const C=[];let I=g;for(;I<w;){const N=x[I];let W=null,de=N>239?4:N>223?3:N>191?2:1;if(I+de<=w){let Ee,ve,Ce,xe;switch(de){case 1:N<128&&(W=N);break;case 2:Ee=x[I+1],(Ee&192)===128&&(xe=(N&31)<<6|Ee&63,xe>127&&(W=xe));break;case 3:Ee=x[I+1],ve=x[I+2],(Ee&192)===128&&(ve&192)===128&&(xe=(N&15)<<12|(Ee&63)<<6|ve&63,xe>2047&&(xe<55296||xe>57343)&&(W=xe));break;case 4:Ee=x[I+1],ve=x[I+2],Ce=x[I+3],(Ee&192)===128&&(ve&192)===128&&(Ce&192)===128&&(xe=(N&15)<<18|(Ee&63)<<12|(ve&63)<<6|Ce&63,xe>65535&&xe<1114112&&(W=xe))}}W===null?(W=65533,de=1):W>65535&&(W-=65536,C.push(W>>>10&1023|55296),W=56320|W&1023),C.push(W),I+=de}return L(C)}const X=4096;function L(x){const g=x.length;if(g<=X)return String.fromCharCode.apply(String,x);let w="",C=0;for(;C<g;)w+=String.fromCharCode.apply(String,x.slice(C,C+=X));return w}function Y(x,g,w){let C="";w=Math.min(x.length,w);for(let I=g;I<w;++I)C+=String.fromCharCode(x[I]&127);return C}function ae(x,g,w){let C="";w=Math.min(x.length,w);for(let I=g;I<w;++I)C+=String.fromCharCode(x[I]);return C}function ge(x,g,w){const C=x.length;(!g||g<0)&&(g=0),(!w||w<0||w>C)&&(w=C);let I="";for(let N=g;N<w;++N)I+=St[x[N]];return I}function z(x,g,w){const C=x.slice(g,w);let I="";for(let N=0;N<C.length-1;N+=2)I+=String.fromCharCode(C[N]+C[N+1]*256);return I}s.prototype.slice=function(g,w){const C=this.length;g=~~g,w=w===void 0?C:~~w,g<0?(g+=C,g<0&&(g=0)):g>C&&(g=C),w<0?(w+=C,w<0&&(w=0)):w>C&&(w=C),w<g&&(w=g);const I=this.subarray(g,w);return Object.setPrototypeOf(I,s.prototype),I};function H(x,g,w){if(x%1!==0||x<0)throw new RangeError("offset is not uint");if(x+g>w)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(g,w,C){g=g>>>0,w=w>>>0,C||H(g,w,this.length);let I=this[g],N=1,W=0;for(;++W<w&&(N*=256);)I+=this[g+W]*N;return I},s.prototype.readUintBE=s.prototype.readUIntBE=function(g,w,C){g=g>>>0,w=w>>>0,C||H(g,w,this.length);let I=this[g+--w],N=1;for(;w>0&&(N*=256);)I+=this[g+--w]*N;return I},s.prototype.readUint8=s.prototype.readUInt8=function(g,w){return g=g>>>0,w||H(g,1,this.length),this[g]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(g,w){return g=g>>>0,w||H(g,2,this.length),this[g]|this[g+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(g,w){return g=g>>>0,w||H(g,2,this.length),this[g]<<8|this[g+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(g,w){return g=g>>>0,w||H(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(g,w){return g=g>>>0,w||H(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},s.prototype.readBigUInt64LE=bt(function(g){g=g>>>0,nt(g,"offset");const w=this[g],C=this[g+7];(w===void 0||C===void 0)&&Ve(g,this.length-8);const I=w+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24,N=this[++g]+this[++g]*2**8+this[++g]*2**16+C*2**24;return BigInt(I)+(BigInt(N)<<BigInt(32))}),s.prototype.readBigUInt64BE=bt(function(g){g=g>>>0,nt(g,"offset");const w=this[g],C=this[g+7];(w===void 0||C===void 0)&&Ve(g,this.length-8);const I=w*2**24+this[++g]*2**16+this[++g]*2**8+this[++g],N=this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C;return(BigInt(I)<<BigInt(32))+BigInt(N)}),s.prototype.readIntLE=function(g,w,C){g=g>>>0,w=w>>>0,C||H(g,w,this.length);let I=this[g],N=1,W=0;for(;++W<w&&(N*=256);)I+=this[g+W]*N;return N*=128,I>=N&&(I-=Math.pow(2,8*w)),I},s.prototype.readIntBE=function(g,w,C){g=g>>>0,w=w>>>0,C||H(g,w,this.length);let I=w,N=1,W=this[g+--I];for(;I>0&&(N*=256);)W+=this[g+--I]*N;return N*=128,W>=N&&(W-=Math.pow(2,8*w)),W},s.prototype.readInt8=function(g,w){return g=g>>>0,w||H(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},s.prototype.readInt16LE=function(g,w){g=g>>>0,w||H(g,2,this.length);const C=this[g]|this[g+1]<<8;return C&32768?C|4294901760:C},s.prototype.readInt16BE=function(g,w){g=g>>>0,w||H(g,2,this.length);const C=this[g+1]|this[g]<<8;return C&32768?C|4294901760:C},s.prototype.readInt32LE=function(g,w){return g=g>>>0,w||H(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},s.prototype.readInt32BE=function(g,w){return g=g>>>0,w||H(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},s.prototype.readBigInt64LE=bt(function(g){g=g>>>0,nt(g,"offset");const w=this[g],C=this[g+7];(w===void 0||C===void 0)&&Ve(g,this.length-8);const I=this[g+4]+this[g+5]*2**8+this[g+6]*2**16+(C<<24);return(BigInt(I)<<BigInt(32))+BigInt(w+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24)}),s.prototype.readBigInt64BE=bt(function(g){g=g>>>0,nt(g,"offset");const w=this[g],C=this[g+7];(w===void 0||C===void 0)&&Ve(g,this.length-8);const I=(w<<24)+this[++g]*2**16+this[++g]*2**8+this[++g];return(BigInt(I)<<BigInt(32))+BigInt(this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C)}),s.prototype.readFloatLE=function(g,w){return g=g>>>0,w||H(g,4,this.length),r.read(this,g,!0,23,4)},s.prototype.readFloatBE=function(g,w){return g=g>>>0,w||H(g,4,this.length),r.read(this,g,!1,23,4)},s.prototype.readDoubleLE=function(g,w){return g=g>>>0,w||H(g,8,this.length),r.read(this,g,!0,52,8)},s.prototype.readDoubleBE=function(g,w){return g=g>>>0,w||H(g,8,this.length),r.read(this,g,!1,52,8)};function oe(x,g,w,C,I,N){if(!s.isBuffer(x))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>I||g<N)throw new RangeError('"value" argument is out of bounds');if(w+C>x.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(g,w,C,I){if(g=+g,w=w>>>0,C=C>>>0,!I){const de=Math.pow(2,8*C)-1;oe(this,g,w,C,de,0)}let N=1,W=0;for(this[w]=g&255;++W<C&&(N*=256);)this[w+W]=g/N&255;return w+C},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(g,w,C,I){if(g=+g,w=w>>>0,C=C>>>0,!I){const de=Math.pow(2,8*C)-1;oe(this,g,w,C,de,0)}let N=C-1,W=1;for(this[w+N]=g&255;--N>=0&&(W*=256);)this[w+N]=g/W&255;return w+C},s.prototype.writeUint8=s.prototype.writeUInt8=function(g,w,C){return g=+g,w=w>>>0,C||oe(this,g,w,1,255,0),this[w]=g&255,w+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(g,w,C){return g=+g,w=w>>>0,C||oe(this,g,w,2,65535,0),this[w]=g&255,this[w+1]=g>>>8,w+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(g,w,C){return g=+g,w=w>>>0,C||oe(this,g,w,2,65535,0),this[w]=g>>>8,this[w+1]=g&255,w+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(g,w,C){return g=+g,w=w>>>0,C||oe(this,g,w,4,4294967295,0),this[w+3]=g>>>24,this[w+2]=g>>>16,this[w+1]=g>>>8,this[w]=g&255,w+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(g,w,C){return g=+g,w=w>>>0,C||oe(this,g,w,4,4294967295,0),this[w]=g>>>24,this[w+1]=g>>>16,this[w+2]=g>>>8,this[w+3]=g&255,w+4};function le(x,g,w,C,I){me(g,C,I,x,w,7);let N=Number(g&BigInt(4294967295));x[w++]=N,N=N>>8,x[w++]=N,N=N>>8,x[w++]=N,N=N>>8,x[w++]=N;let W=Number(g>>BigInt(32)&BigInt(4294967295));return x[w++]=W,W=W>>8,x[w++]=W,W=W>>8,x[w++]=W,W=W>>8,x[w++]=W,w}function $e(x,g,w,C,I){me(g,C,I,x,w,7);let N=Number(g&BigInt(4294967295));x[w+7]=N,N=N>>8,x[w+6]=N,N=N>>8,x[w+5]=N,N=N>>8,x[w+4]=N;let W=Number(g>>BigInt(32)&BigInt(4294967295));return x[w+3]=W,W=W>>8,x[w+2]=W,W=W>>8,x[w+1]=W,W=W>>8,x[w]=W,w+8}s.prototype.writeBigUInt64LE=bt(function(g,w=0){return le(this,g,w,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=bt(function(g,w=0){return $e(this,g,w,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(g,w,C,I){if(g=+g,w=w>>>0,!I){const Ee=Math.pow(2,8*C-1);oe(this,g,w,C,Ee-1,-Ee)}let N=0,W=1,de=0;for(this[w]=g&255;++N<C&&(W*=256);)g<0&&de===0&&this[w+N-1]!==0&&(de=1),this[w+N]=(g/W>>0)-de&255;return w+C},s.prototype.writeIntBE=function(g,w,C,I){if(g=+g,w=w>>>0,!I){const Ee=Math.pow(2,8*C-1);oe(this,g,w,C,Ee-1,-Ee)}let N=C-1,W=1,de=0;for(this[w+N]=g&255;--N>=0&&(W*=256);)g<0&&de===0&&this[w+N+1]!==0&&(de=1),this[w+N]=(g/W>>0)-de&255;return w+C},s.prototype.writeInt8=function(g,w,C){return g=+g,w=w>>>0,C||oe(this,g,w,1,127,-128),g<0&&(g=255+g+1),this[w]=g&255,w+1},s.prototype.writeInt16LE=function(g,w,C){return g=+g,w=w>>>0,C||oe(this,g,w,2,32767,-32768),this[w]=g&255,this[w+1]=g>>>8,w+2},s.prototype.writeInt16BE=function(g,w,C){return g=+g,w=w>>>0,C||oe(this,g,w,2,32767,-32768),this[w]=g>>>8,this[w+1]=g&255,w+2},s.prototype.writeInt32LE=function(g,w,C){return g=+g,w=w>>>0,C||oe(this,g,w,4,2147483647,-2147483648),this[w]=g&255,this[w+1]=g>>>8,this[w+2]=g>>>16,this[w+3]=g>>>24,w+4},s.prototype.writeInt32BE=function(g,w,C){return g=+g,w=w>>>0,C||oe(this,g,w,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[w]=g>>>24,this[w+1]=g>>>16,this[w+2]=g>>>8,this[w+3]=g&255,w+4},s.prototype.writeBigInt64LE=bt(function(g,w=0){return le(this,g,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=bt(function(g,w=0){return $e(this,g,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ie(x,g,w,C,I,N){if(w+C>x.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function he(x,g,w,C,I){return g=+g,w=w>>>0,I||ie(x,g,w,4),r.write(x,g,w,C,23,4),w+4}s.prototype.writeFloatLE=function(g,w,C){return he(this,g,w,!0,C)},s.prototype.writeFloatBE=function(g,w,C){return he(this,g,w,!1,C)};function Ge(x,g,w,C,I){return g=+g,w=w>>>0,I||ie(x,g,w,8),r.write(x,g,w,C,52,8),w+8}s.prototype.writeDoubleLE=function(g,w,C){return Ge(this,g,w,!0,C)},s.prototype.writeDoubleBE=function(g,w,C){return Ge(this,g,w,!1,C)},s.prototype.copy=function(g,w,C,I){if(!s.isBuffer(g))throw new TypeError("argument should be a Buffer");if(C||(C=0),!I&&I!==0&&(I=this.length),w>=g.length&&(w=g.length),w||(w=0),I>0&&I<C&&(I=C),I===C||g.length===0||this.length===0)return 0;if(w<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),g.length-w<I-C&&(I=g.length-w+C);const N=I-C;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(w,C,I):Uint8Array.prototype.set.call(g,this.subarray(C,I),w),N},s.prototype.fill=function(g,w,C,I){if(typeof g=="string"){if(typeof w=="string"?(I=w,w=0,C=this.length):typeof C=="string"&&(I=C,C=this.length),I!==void 0&&typeof I!="string")throw new TypeError("encoding must be a string");if(typeof I=="string"&&!s.isEncoding(I))throw new TypeError("Unknown encoding: "+I);if(g.length===1){const W=g.charCodeAt(0);(I==="utf8"&&W<128||I==="latin1")&&(g=W)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(w<0||this.length<w||this.length<C)throw new RangeError("Out of range index");if(C<=w)return this;w=w>>>0,C=C===void 0?this.length:C>>>0,g||(g=0);let N;if(typeof g=="number")for(N=w;N<C;++N)this[N]=g;else{const W=s.isBuffer(g)?g:s.from(g,I),de=W.length;if(de===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(N=0;N<C-w;++N)this[N+w]=W[N%de]}return this};const Le={};function Rt(x,g,w){Le[x]=class extends w{constructor(){super(),Object.defineProperty(this,"message",{value:g.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${x}]`,this.stack,delete this.name}get code(){return x}set code(I){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:I,writable:!0})}toString(){return`${this.name} [${x}]: ${this.message}`}}}Rt("ERR_BUFFER_OUT_OF_BOUNDS",function(x){return x?`${x} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Rt("ERR_INVALID_ARG_TYPE",function(x,g){return`The "${x}" argument must be of type number. Received type ${typeof g}`},TypeError),Rt("ERR_OUT_OF_RANGE",function(x,g,w){let C=`The value of "${x}" is out of range.`,I=w;return Number.isInteger(w)&&Math.abs(w)>2**32?I=xt(String(w)):typeof w=="bigint"&&(I=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&(I=xt(I)),I+="n"),C+=` It must be ${g}. Received ${I}`,C},RangeError);function xt(x){let g="",w=x.length;const C=x[0]==="-"?1:0;for(;w>=C+4;w-=3)g=`_${x.slice(w-3,w)}${g}`;return`${x.slice(0,w)}${g}`}function ye(x,g,w){nt(g,"offset"),(x[g]===void 0||x[g+w]===void 0)&&Ve(g,x.length-(w+1))}function me(x,g,w,C,I,N){if(x>w||x<g){const W=typeof g=="bigint"?"n":"";let de;throw N>3?g===0||g===BigInt(0)?de=`>= 0${W} and < 2${W} ** ${(N+1)*8}${W}`:de=`>= -(2${W} ** ${(N+1)*8-1}${W}) and < 2 ** ${(N+1)*8-1}${W}`:de=`>= ${g}${W} and <= ${w}${W}`,new Le.ERR_OUT_OF_RANGE("value",de,x)}ye(C,I,N)}function nt(x,g){if(typeof x!="number")throw new Le.ERR_INVALID_ARG_TYPE(g,"number",x)}function Ve(x,g,w){throw Math.floor(x)!==x?(nt(x,w),new Le.ERR_OUT_OF_RANGE(w||"offset","an integer",x)):g<0?new Le.ERR_BUFFER_OUT_OF_BOUNDS:new Le.ERR_OUT_OF_RANGE(w||"offset",`>= ${w?1:0} and <= ${g}`,x)}const kt=/[^+/0-9A-Za-z-_]/g;function Pt(x){if(x=x.split("=")[0],x=x.trim().replace(kt,""),x.length<2)return"";for(;x.length%4!==0;)x=x+"=";return x}function Lt(x,g){g=g||1/0;let w;const C=x.length;let I=null;const N=[];for(let W=0;W<C;++W){if(w=x.charCodeAt(W),w>55295&&w<57344){if(!I){if(w>56319){(g-=3)>-1&&N.push(239,191,189);continue}else if(W+1===C){(g-=3)>-1&&N.push(239,191,189);continue}I=w;continue}if(w<56320){(g-=3)>-1&&N.push(239,191,189),I=w;continue}w=(I-55296<<10|w-56320)+65536}else I&&(g-=3)>-1&&N.push(239,191,189);if(I=null,w<128){if((g-=1)<0)break;N.push(w)}else if(w<2048){if((g-=2)<0)break;N.push(w>>6|192,w&63|128)}else if(w<65536){if((g-=3)<0)break;N.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((g-=4)<0)break;N.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return N}function ht(x){const g=[];for(let w=0;w<x.length;++w)g.push(x.charCodeAt(w)&255);return g}function mr(x,g){let w,C,I;const N=[];for(let W=0;W<x.length&&!((g-=2)<0);++W)w=x.charCodeAt(W),C=w>>8,I=w%256,N.push(I),N.push(C);return N}function Jt(x){return t.toByteArray(Pt(x))}function Wt(x,g,w,C){let I;for(I=0;I<C&&!(I+w>=g.length||I>=x.length);++I)g[I+w]=x[I];return I}function ft(x,g){return x instanceof g||x!=null&&x.constructor!=null&&x.constructor.name!=null&&x.constructor.name===g.name}function Zt(x){return x!==x}const St=function(){const x="0123456789abcdef",g=new Array(256);for(let w=0;w<16;++w){const C=w*16;for(let I=0;I<16;++I)g[C+I]=x[w]+x[I]}return g}();function bt(x){return typeof BigInt>"u"?Cr:x}function Cr(){throw new Error("BigInt not supported")}}(bb)),bb}(function(e,t){(function(r,n){e.exports=n(VU(),n3(),l3(),XO(),m3,N3(),k3())})(we,function(r,n,a,o,i,s,l){return function(){var u={809:function(p){p.exports=r},30:function(p){p.exports=n},36:function(p){p.exports=a},300:function(p){p.exports=o},408:function(p){p.exports=l},25:function(p){p.exports=i},130:function(p){p.exports=s}},c={};function d(p){var h=c[p];if(h!==void 0)return h.exports;var m=c[p]={exports:{}};return u[p](m,m.exports,d),m.exports}d.n=function(p){var h=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(h,{a:h}),h},d.d=function(p,h){for(var m in h)d.o(h,m)&&!d.o(p,m)&&Object.defineProperty(p,m,{enumerable:!0,get:h[m]})},d.o=function(p,h){return Object.prototype.hasOwnProperty.call(p,h)},d.r=function(p){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(p,"__esModule",{value:!0})};var f={};return function(){d.r(f),d.d(f,{assets:function(){return L},auth:function(){return H},buildAnswer:function(){return uD},buildCarouselCard:function(){return lD},buildQuestion:function(){return _t},carouselCards:function(){return Ti},contentInteraction:function(){return bt},decodeBase64:function(){return dD},default:function(){return fD},editorialPages:function(){return Z},features:function(){return w},getEntries:function(){return p.getEntries},getEntry:function(){return p.getEntry},management:function(){return Dn},payments:function(){return cn},people:function(){return hn},peopleEngagement:function(){return Ra},qaQuestions:function(){return Qt},reportError:function(){return h.reportError},search:function(){return Ri}});var p=d(809),h=d(30),m=d(36),b={APOLITICAL:{WEBSITES:{LIVE:"https://apolitical.co",LOCALHOST:"localhost",STAGING:/https:\/\/([\w|\d|-]+)\.apolitical\.co/i,STAGING_SPLITTER:"-"},ENVIRONMENTS:{PRODUCTION:"live",LOCAL:"local"}},APIS:{ASSETS_API:{BASE_URL:"/api/assets-api",ENDPOINTS:{USERS:"/users",CERTIFICATES:"/certificates"}},AUTH_API:{BASE_URL:"/api/auth-api",ENDPOINTS:{USER_PASSWORD:"/password",USERS:"/users"}},CONTENT_INTERACTION_API:{BASE_URL:"/api/content-interaction-api",ENDPOINTS:{QUESTIONS:"/questions",ANSWERS:"/answers",REPLIES:"/replies",LIKES:"/likes"}},FEATURES_API:{BASE_URL:"/api/features-api",ENDPOINTS:{FLAGS:"/features"}},MANAGEMENT_API:{BASE_URL:"/api/management-api",ENDPOINTS:{ACCOUNTS:"/accounts",EVENT_REGISTRATIONS:"/event-registrations",LOGINS:"/logins",LOGIN_PASSWORDLESS:"/passwordless",BULK_ENROLMENTS:"/bulk-enrolments"}},PAYMENTS_API:{BASE_URL:"/api/payments-api",BASE_URL_V2:"/api/payments-api/v2",ENDPOINTS:{PRODUCTS:"/products"}},PEOPLE_API:{BASE_URL:"/api/people-api",BASE_URL_V2:"/api/people-api/v2",ENDPOINTS:{BULK_ENROLMENTS:"/bulk-enrolments",REGISTRATIONS:"/registrations",USERS:"/users",USER_ANSWERS:"/answers",USER_COURSES:"/courses",USER_EVENTS:"/events",USER_LIKES:"/likes",USER_LESSONS:"/lessons",USER_PRODUCTS:"/products",USER_RATINGS:"/ratings",USER_SUBSCRIPTIONS:"/subscriptions"}},PEOPLE_ENGAGEMENT_API:{BASE_URL:"/api/people-engagement-api",ENDPOINTS:{ENQUIRY_EMAILS:"/enquiry-emails",USERS:"/users",USER_PROPERTIES:"/properties"}},SEARCH_API:{BASE_URL:"/api/search-api",ENDPOINTS:{SEARCH:"/search"}}},CONTENTFUL:{ARTICLES:{TYPE:"solutionArticle"},CAROUSELS:{CARD_TYPES:{solutionArticle:{INCLUDE:1,SELECT:"fields.authorIds,fields.authorTag,fields.image,fields.publishedDate,fields.readingTime,fields.slug,fields.title"},microcourse:{INCLUDE:2,SELECT:"fields.banner,fields.freeCourse,fields.partnershipDetails,fields.slug,fields.title"},event:{INCLUDE:1,SELECT:"fields.bannerImage,fields.defaultStartDate,fields.slug,fields.speakers,fields.title,fields.isEventOngoing"},listPage:{INCLUDE:1,SELECT:"fields.hero,fields.slug,fields.title"},qaQuestion:{INCLUDE:0,SELECT:"fields.answers,fields.authorId,fields.slug,fields.title,sys.createdAt,fields.projectNames"},learningHub:{INCLUDE:1,SELECT:"fields.bannerSection,fields.customLabel,fields.slug,fields.title"}}},COURSES:{TYPE:"microcourse"},EDITORIAL_PAGES:{INCLUDE:1,SELECT:"fields.carousels,fields.slug",TYPE:"editorialPage"},EVENTS:{TYPE:"event"},LISTS:{TYPE:"listPage"},QUESTIONS:{TYPE:"qaQuestion",INCLUDE:1,LIMIT:10,ORDER:"-sys.createdAt",SELECT:"sys.createdAt,sys.updatedAt,fields.title,fields.slug,fields.authorId,fields.answers,fields.isEdited,fields.projectNames",SKIP:0},ANSWERS:{TYPE:"qaAnswer"},REPLIES:{TYPE:"reply"},LEARNING_HUB:{TYPE:"learningHub"}},HUBSPOT:{ENVIRONMENTS_MAPPING:{local:"SANDBOX",beta:"SANDBOX",rc:"SANDBOX",live:"LIVE"},EMAIL_IDS:{SANDBOX:{internalEmailId:49099078634,externalEmailId:55196526554},LIVE:{internalEmailId:55233583049,externalEmailId:55231159239}}},USERS:{MYSELF:"me"}};const{APOLITICAL:{WEBSITES:{LIVE:y,LOCALHOST:v,STAGING:_,STAGING_SPLITTER:S},ENVIRONMENTS:{PRODUCTION:R,LOCAL:T}}}=b,{HUBSPOT:{ENVIRONMENTS_MAPPING:O,EMAIL_IDS:$}}=b;let D={emailIds:{}};var Q=d(300),V=d.n(Q);const G=async B=>{try{const{message:U,response:F,request:J}=B;let fe=U;return F?fe+=` - The request was made and the server responded with ${JSON.stringify({status:F.status,data:F.data})}`:J&&(fe+=" - The request was made but no response was received"),console.warn(fe),await(0,h.reportError)(new Error(fe)),fe}catch(U){return console.warn(`Cannot handle error: ${U.message}`),U.message}},{APIS:{ASSETS_API:{BASE_URL:j,ENDPOINTS:{USERS:te,CERTIFICATES:X}}}}=b;var L={certificates:{create:async(B,U)=>{let F=[];try{const{data:J}=await V().post(`${j}${te}/${B}${X}`,U);J&&(F=J)}catch(J){await G(J)}return F}}};const{APIS:{AUTH_API:{BASE_URL:Y,ENDPOINTS:{USER_PASSWORD:ae,USERS:ge}}},USERS:{MYSELF:z}}=b;var H={userPassword:{update:async B=>{let U=null;try{U=await V().put(`${Y}${ge}/${z}${ae}`,B)}catch(F){U={message:(((F||{}).response||{}).data||{}).message},await G(F)}return U}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:oe,ENDPOINTS:{ANSWERS:le,QUESTIONS:$e,LIKES:ie}}}}=b,he=`${oe}${$e}`;var Ge={create:async({questionSlug:B},U)=>{try{await V().post(`${he}/${encodeURIComponent(B)}${le}`,U)}catch(F){const J=await G(F);throw new Error(J)}},remove:async({questionSlug:B,answerSlug:U})=>{try{await V().delete(`${he}/${encodeURIComponent(B)}${le}/${encodeURIComponent(U)}`)}catch(F){const J=await G(F);throw new Error(J)}},update:async({questionSlug:B,answerSlug:U},F)=>{try{return await V().put(`${he}/${encodeURIComponent(B)}${le}/${encodeURIComponent(U)}`,F)}catch(J){const fe=await G(J);throw new Error(fe)}},like:async({questionSlug:B,answerSlug:U},F)=>{try{return await V().post(`${he}/${encodeURIComponent(B)}${le}/${encodeURIComponent(U)}${ie}`,F)}catch(J){const fe=await G(J);throw new Error(fe)}},unlike:async({questionSlug:B,answerSlug:U})=>{try{return await V().delete(`${he}/${encodeURIComponent(B)}${le}/${encodeURIComponent(U)}${ie}`)}catch(F){const J=await G(F);throw new Error(J)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Le,ENDPOINTS:{QUESTIONS:Rt}}}}=b,xt=`${Le}${Rt}`;var ye={create:async B=>{try{return await V().post(xt,B)}catch(U){const F=await G(U);throw new Error(F)}},remove:async({questionSlug:B})=>{try{await V().delete(`${xt}/${encodeURIComponent(B)}`)}catch(U){const F=await G(U);throw new Error(F)}},update:async({questionSlug:B},U)=>{try{return await V().put(`${xt}/${encodeURIComponent(B)}`,U)}catch(F){const J=await G(F);throw new Error(J)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:me,ENDPOINTS:{REPLIES:nt,ANSWERS:Ve,QUESTIONS:kt,LIKES:Pt}}}}=b,Lt=`${me}${kt}`,ht=({questionSlug:B,answerSlug:U,replySlug:F},J=!1)=>{let fe=`${Lt}/${encodeURIComponent(B)}${Ve}/${encodeURIComponent(U)}${nt}`;return F&&(fe=`${fe}/${encodeURIComponent(F)}`,J&&(fe=`${fe}${Pt}`)),fe};var mr={create:async({questionSlug:B,answerSlug:U},F)=>{try{return await V().post(ht({questionSlug:B,answerSlug:U}),F)}catch(J){const fe=await G(J);throw new Error(fe)}},update:async({questionSlug:B,answerSlug:U,replySlug:F},J)=>{try{return await V().put(ht({questionSlug:B,answerSlug:U,replySlug:F}),J)}catch(fe){const Qe=await G(fe);throw new Error(Qe)}},remove:async({questionSlug:B,answerSlug:U,replySlug:F})=>{try{await V().delete(ht({questionSlug:B,answerSlug:U,replySlug:F}))}catch(J){const fe=await G(J);throw new Error(fe)}},like:async({questionSlug:B,answerSlug:U,replySlug:F},J)=>{try{await V().post(ht({questionSlug:B,answerSlug:U,replySlug:F},!0),J)}catch(fe){const Qe=await G(fe);throw new Error(Qe)}},unlike:async({questionSlug:B,answerSlug:U,replySlug:F})=>{try{await V().delete(ht({questionSlug:B,answerSlug:U,replySlug:F},!0))}catch(J){const fe=await G(J);throw new Error(fe)}},getReplyUrl:ht};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Jt,ENDPOINTS:{QUESTIONS:Wt,ANSWERS:ft,LIKES:Zt}}}}=b,St=`${Jt}${Wt}`;var bt={answers:Ge,questions:ye,replies:mr,likes:{create:async(B,U)=>{try{return await V().post(`${St}/${encodeURIComponent(B)}${ft}/${encodeURIComponent(U)}${Zt}`)}catch(F){const J=await G(F);throw new Error(J)}},remove:async(B,U)=>{try{return await V().delete(`${St}/${encodeURIComponent(B)}${ft}/${encodeURIComponent(U)}${Zt}`)}catch(F){const J=await G(F);throw new Error(J)}}}};const{APIS:{FEATURES_API:{BASE_URL:Cr,ENDPOINTS:{FLAGS:x}}}}=b,g=`${Cr}${x}`;var w={flags:{read:async B=>{let U=null;try{const{data:F}=await V().get(`${g}/${encodeURIComponent(B)}`);F!=null&&F.name&&(F!=null&&F.featureState)&&(U=F)}catch(F){await G(F)}return U}}};const{APIS:{MANAGEMENT_API:{BASE_URL:C,ENDPOINTS:{ACCOUNTS:I}}}}=b;var N={create:async B=>{try{await V().post(`${C}${I}`,B)}catch(U){throw await G(U),U}},read:async B=>{let U=null;try{({data:U}=await V().get(`${C}${I}/${encodeURIComponent(B)}`))}catch(F){await G(F)}return U},update:async(B,U)=>{try{await V().put(`${C}${I}/${encodeURIComponent(B)}`,U)}catch(F){throw await G(F),F}}};const{APIS:{MANAGEMENT_API:{BASE_URL:W,ENDPOINTS:{BULK_ENROLMENTS:de}}}}=b;var Ee={create:async B=>{try{await V().post(`${W}${de}`,B)}catch(U){throw await G(U),U}}};const{APIS:{MANAGEMENT_API:{BASE_URL:ve,ENDPOINTS:{EVENT_REGISTRATIONS:Ce}}}}=b;var xe={create:async B=>{try{await V().post(`${ve}${Ce}`,B)}catch(U){const F=await G(U);throw new Error(F)}}};const{APIS:{MANAGEMENT_API:{BASE_URL:ct,ENDPOINTS:{LOGINS:Or,LOGIN_PASSWORDLESS:Ln}}}}=b,vr=`${ct}${Or}`;var Dn={accounts:N,bulkEnrolments:Ee,eventRegistrations:xe,passwordless:{update:async B=>{try{await V().put(`${vr}/${encodeURIComponent(B)}${Ln}`)}catch(U){throw await G(U),U}}}};const{APIS:{PAYMENTS_API:{BASE_URL_V2:Rr,ENDPOINTS:{PRODUCTS:un}}}}=b,Ar=`${Rr}${un}`;var cn={products:{list:async B=>{let U=[],F=B?{params:B}:{params:{}};try{const{data:J}=await V().get(Ar,F);J&&J.length&&(U=J)}catch(J){await G(J)}return U}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:$r,ENDPOINTS:{BULK_ENROLMENTS:Bn}}}}=b;var Sr={list:async B=>{let U=[];try{const{data:F}=await V().get(`${$r}${Bn}`,{params:B});F&&F.length&&(U=F)}catch(F){await G(F)}return U}},ya=d(25);const{OK:po,MULTIPLE_CHOICES:ho,NOT_FOUND:ga,FORBIDDEN:dn}=ya.StatusCodes,mt=B=>B>=po&&B<ho||B===dn||B===ga,{APIS:{PEOPLE_API:{BASE_URL_V2:Fn,ENDPOINTS:{USERS:jn}}}}=b,zr=async B=>{let U=null;try{const{data:F}=await V().get(`${Fn}${jn}/${encodeURIComponent(B)}`,{validateStatus:mt});F&&F.id&&(U=F)}catch(F){await G(F)}return U},Un=async B=>{let U=[];try{if(B&&B.length<2)throw new Error("users list method requires at least two ids");const F=B.map(fe=>`ids=${encodeURIComponent(fe)}`).join("&"),J=await V().get(`${Fn}${jn}?${F}`,{validateStatus:mt});J&&J.length&&(U=J)}catch(F){await G(F)}return U};var mo={read:zr,update:async(B,U)=>{let F=!1;try{const{data:J}=await V().put(`${Fn}${jn}/${encodeURIComponent(B)}`,U);F=!(!J||!J.id)}catch(J){await G(J)}return F},list:Un};const{APIS:{PEOPLE_API:{BASE_URL_V2:Et,ENDPOINTS:{USERS:vo,USER_LIKES:yo}}},USERS:{MYSELF:go}}=b,bo=`${Et}${vo}/${go}${yo}`,Hn=async B=>{let U=[],F=B?{params:B}:{params:{}};try{const{data:J}=await V().get(bo,F);J&&J.length&&(U=J)}catch(J){await G(J)}return U};var Ot={list:Hn},Eo={authors:{readQuestionAuthors:async(B,U,F)=>{try{if(B.author=await zr(B.authorId),B.answers&&B.answers.length&&!F.ignoreAnswersAuthors){B.answers.sort((fe,Qe)=>new Date(Qe.updatedAt)-new Date(fe.updatedAt)),B.totalAnswers=B.answers.length;let J=B.answers;if(F.limit&&F.pageNumber){const fe=F.limit*(F.pageNumber-1);J=B.answers.slice(fe,fe+F.limit)}for(let fe of J){fe.author=fe.authorId&&await zr(fe.authorId)||{};const[Qe]=U?await Hn({contentType:b.CONTENTFUL.ANSWERS.TYPE,contentSlug:fe.slug}):[null];fe.userLiked=!!Qe}B.answers=J}else B.answers||(B.answers=[]);return B}catch(J){throw await G(J),new Error(`Cannot read authors for question: ${J.message}`)}},readAuthors:async(B=[])=>{let U=[];try{if(Array.isArray(B)===!1)throw new Error("authorIds is not an array!");if(B&&B.length===1){const F=await zr(B[0]);F&&U.push(F)}else if(B&&B.length>1){const F=await Un(B);F&&F.length>0&&(U=F)}}catch(F){throw await G(F),new Error(`Cannot read authors: ${F.message}`)}return U}}};const{APIS:{PEOPLE_API:{BASE_URL:_o,ENDPOINTS:{REGISTRATIONS:wo}}}}=b;var Co={list:async B=>{let U=[];try{const{data:F}=await V().get(`${_o}${wo}`,{params:B});F&&F.length&&(U=F)}catch(F){await G(F)}return U}};const{APIS:{PEOPLE_API:{BASE_URL_V2:M,ENDPOINTS:{USERS:ee,USER_COURSES:re}}},USERS:{MYSELF:ne}}=b,_e=`${M}${ee}/${ne}${re}`;var Ae={create:async B=>{try{await V().post(_e,B)}catch(U){await G(U)}},list:async B=>{let U=[],F=B?{params:B}:{params:{}};try{const{data:J}=await V().get(_e,F);J&&J.length&&(U=J)}catch(J){await G(J)}return U},update:async(B,U)=>{try{await V().put(`${_e}/${B}`,U)}catch(F){await G(F)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Je,ENDPOINTS:{USERS:Dt,USER_EVENTS:Bt}}},USERS:{MYSELF:At}}=b,vt=`${Je}${Dt}/${At}${Bt}`;var Ir={list:async B=>{let U=[],F=B?{params:B}:{params:{}};try{const{data:J}=await V().get(vt,F);J&&J.length&&(U=J)}catch(J){await G(J)}return U}};const{APIS:{PEOPLE_API:{BASE_URL_V2:fn,ENDPOINTS:{USERS:Qr,USER_LESSONS:Gn}}},USERS:{MYSELF:Vn}}=b,ba=`${fn}${Qr}/${Vn}${Gn}`;var Ea={create:async B=>{let U=null;try{U=await V().post(ba,B)}catch(F){await G(F)}return U},list:async B=>{let U=[],F=B?{params:B}:{params:{}};try{const{data:J}=await V().get(ba,F);J&&J.length&&(U=J)}catch(J){await G(J)}return U}};const{APIS:{PEOPLE_API:{BASE_URL_V2:yr,ENDPOINTS:{USERS:_a,USER_PRODUCTS:pn}}},USERS:{MYSELF:wa}}=b,Kr=`${yr}${_a}/${wa}${pn}`;var gr={create:async B=>{let U=null;try{U=await V().post(Kr,B)}catch(F){await G(F)}return U},list:async B=>{let U=[],F=B?{params:B}:{params:{}};try{const{data:J}=await V().get(Kr,F);J&&J.length&&(U=J)}catch(J){await G(J)}return U},update:async(B,U)=>{try{await V().put(`${Kr}/${B}`,U)}catch(F){await G(F)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:br,ENDPOINTS:{USERS:Yr,USER_RATINGS:Xr}}},USERS:{MYSELF:Js}}=b,Tr=`${br}${Yr}/${Js}${Xr}`;var hn={bulkEnrolments:Sr,handlers:Eo,registrations:Co,users:mo,userCourses:Ae,userEvents:Ir,userLessons:Ea,userLikes:Ot,userProducts:gr,userRatings:{create:async B=>{let U=null;try{const{data:F}=await V().post(Tr,B);F!=null&&F.id&&(U=F)}catch(F){await G(F)}return U},update:async(B,U)=>{try{await V().put(`${Tr}/${B}`,U)}catch(F){await G(F)}}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:Zs,ENDPOINTS:{ENQUIRY_EMAILS:el}}}}=b;var tl={create:async B=>{let U=null;try{const{data:F}=await V().post(`${Zs}${el}`,B);F&&(U=F)}catch(F){await G(F)}return U}},Ei={forms:{sendEnquiryEmails:async B=>{let U=null;try{const{emailIds:F}=D;U=await Ra.emails.create({...F,...B})}catch(F){await G(F)}return U}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:zt,ENDPOINTS:{USERS:_i,USER_PROPERTIES:wi}}},USERS:{MYSELF:Ca}}=b;var Ra={emails:tl,handlers:Ei,userProperties:{update:async(B,U)=>{try{await V().put(`${zt}${_i}/${Ca}${wi}/${B}`,U)}catch(F){await G(F)}}}},Sa=d(130);const{APIS:{SEARCH_API:{BASE_URL:rl,ENDPOINTS:{SEARCH:Ci}}}}=b,Ro=`${rl}${Ci}`;var Ri={ask:async B=>{try{let U=null;const{data:F}=await V().get(Ro,{params:{question:B}});return F!=null&&F.answer&&(F!=null&&F.references)&&(F!=null&&F.version)&&(U=F),U}catch(U){const F=await G(U);throw new Error(F)}},stream:(B,U,F)=>{const J=(0,Sa.io)(void 0,{path:"/api/search-api/web-sockets"});function fe(){J.emit("search",{question:B})}function Qe(gt){F(gt),st(),J.disconnect()}function st(){J.off("connect",fe),J.off("update",U),J.off("result",Qe)}return J.on("connect",fe),J.on("update",U),J.on("result",Qe),st}};const{CONTENTFUL:Nr}=b,{CARD_TYPES:So}=Nr.CAROUSELS;var Ti={read:async(B,U)=>{try{if(!U||!U.sys||!U.sys.id)throw new Error("Invalid link to card");if(!B||!So[B])throw new Error("Unsupported card content type");const{INCLUDE:F,SELECT:J}=So[B];return await(0,p.getEntry)({content_type:B,"sys.id":U.sys.id,include:F,select:J},{assetDetails:!0})}catch(F){throw await G(F),new Error(`Cannot read carousel card: ${F.message}`)}}};const{CONTENTFUL:nl}=b,{INCLUDE:E,SELECT:A,TYPE:k}=nl.EDITORIAL_PAGES;var Z={read:async B=>{try{return await(0,p.getEntry)({content_type:k,"fields.slug":B,include:E,select:A})}catch(U){throw await G(U),new Error(`Cannot read editorial page: ${U.message}`)}}};const{CONTENTFUL:Pe}=b,{TYPE:Se,ORDER:ke,SELECT:De,SKIP:yt,LIMIT:ze,INCLUDE:Ft}=Pe.QUESTIONS;var Qt={read:async B=>{try{return await(0,p.getEntry)({content_type:Se,"fields.slug":B,include:2,select:De})}catch(U){throw await G(U),new Error(`Cannot read question: ${U.message}`)}},list:async(B={})=>{try{return await(0,p.getEntries)({content_type:Se,include:Ft,limit:ze,order:ke,select:De,skip:yt,...B})}catch(U){throw await G(U),new Error(`Cannot list questions: ${U.message}`)}}},_t=async(B,U,F={ignoreAnswersAuthors:!1})=>{try{let J={};return J=await Qt.read(B),J=await hn.handlers.authors.readQuestionAuthors(J,U,F),J}catch(J){throw await G(J),new Error(`Cannot build question: ${J.message}`)}};const{ARTICLES:{TYPE:jt},COURSES:{TYPE:$t},EVENTS:{TYPE:mn},LISTS:{TYPE:Jr},QUESTIONS:{TYPE:Wn},LEARNING_HUB:{TYPE:Ku}}=b.CONTENTFUL,vn=B=>B&&B.url?(Object.assign(B,{aspect:"responsiveCard",query:"q=90&fit=fill"}),B):null,Ta={[jt]:async B=>{const{authorIds:U,authorTag:F,image:J,publishedDate:fe,readingTime:Qe,slug:st,title:gt}=B,xr=await hn.handlers.authors.readAuthors(U),yn=xr&&xr.length?xr:F?[F]:null;return{banner:vn(J),contributors:yn,publishedDate:fe,readingTime:Qe,slug:st,title:gt}},[$t]:async(B,U)=>{const{banner:F,freeCourse:J,partnershipDetails:fe,slug:Qe,title:st,registered:gt}=B,xr={banner:vn(F),slug:Qe,title:st,pill:J?"free":"premium",registered:!!gt};if(fe){const{partners:yn}=fe;xr.partner=yn&&yn.length&&fe.partners[0]}if(gt===void 0&&U){const[yn]=await hn.userProducts.list({courseSlug:Qe,isEnrolled:!0,scope:"active"});xr.registered=!!yn}return xr},[mn]:async(B,U)=>{const{bannerImage:F,defaultStartDate:J,isEventOngoing:fe,slug:Qe,speakers:st,title:gt,registered:xr}=B,yn=new Date(J),pD=!!yn&&yn<new Date;if(st&&st.length)for(const Yu of st)Yu.image=(tg=Yu.image)&&tg.url?`${tg.url}?w=100&h=100&fit=thumb&f=center`:null;var tg;const qC={banner:vn(F),dateHasPassed:pD,title:gt,slug:Qe,isOngoingEvent:fe,contributors:st,startDate:yn,registered:!!xr};if(xr===void 0&&U){const[Yu]=await hn.userEvents.list({eventSlug:Qe});qC.registered=!!Yu}return qC},[Jr]:async B=>{const{hero:U,slug:F,title:J}=B;return{banner:vn(U),slug:F,title:J}},[Wn]:async B=>{const{answers:U,authorId:F,createdAt:J,slug:fe,title:Qe}=B;let st=null;if(F){const gt=await hn.users.read(F);gt&&(st=gt)}return{answers:U&&U.length?U.length:0,contributors:st?[st]:[],createdAt:J,slug:fe,title:Qe}},[Ku]:B=>{const{bannerSection:U,customLabel:F,slug:J,title:fe}=B;return{banner:vn(U.image),slug:J,title:fe,customLabel:F}},people:B=>{const{id:U,name:F,jobTitle:J,location:fe,image:Qe}=B;return{profile:Qe,slug:U,title:F,text:J,secondaryText:fe}}};var lD=async({contentType:B,...U}={},F)=>{try{if(!Ta[B])throw new Error("Content type not supported");if(typeof Ta[B]!="function")throw new Error("No builder function for content type");return B!=="people"&&U.sys&&U.sys.type&&U.sys.type==="Link"&&(U=await Ti.read(B,U)),{contentType:B,...await Ta[B](U,F)}}catch(J){throw await G(J),new Error(`Cannot build carousel card: ${J.message}`)}},uD=async(B,U,F={})=>{try{if(!B.replies||B.replies.length===0)return B.replies=[],B;B.replies.sort((fe,Qe)=>new Date(fe.createdAt)-new Date(Qe.createdAt)),B.totalReplies=B.totalReplies||B.replies.length;let J=B.replies;if(F.limit&&F.pageNumber){const fe=F.limit*(F.pageNumber-1);J=B.replies.slice(fe,fe+F.limit)}for(const fe of J){if(fe.authorId===B.authorId){fe.author=B.author,fe.userLiked=!1;continue}fe.author=fe.authorId&&await zr(fe.authorId)||{};const[Qe]=U?await Hn({contentType:b.CONTENTFUL.REPLIES.TYPE,contentSlug:fe.slug}):[null];fe.userLiked=!!Qe}return B.replies=J,B}catch(J){throw await G(J),new Error(`Cannot build replies for answer: ${J.message}`)}},cD=d(408);const dD=B=>B&&cD.Buffer.from(B,"base64").toString("ascii");function fD({contentContext:B=null,errorsContext:U=null,gtmContext:F=null,origin:J}){try{const fe=(Qe=>{let st=null;Qe?st=Qe:typeof window<"u"&&(st=window.origin||window.location.origin),st||new Error("Cannot select environment: Website not defined");let gt=null;const xr=st.match(_);return xr?gt=xr[1].split(S)[0]:st===y?gt=R:st.includes(v)&&(gt=T),gt||new Error(`Cannot select environment: No rule for website ${st}`),gt})(J);return B&&(0,p.setContext)(Object.assign({},B,{environment:fe})),U&&(0,h.setContext)(Object.assign({},U,{environment:fe})),F&&((0,m.setContext)(Object.assign({},F,{environment:fe})),(0,m.setupGTM)()),(({environment:Qe})=>{const st=(gt=>{if(!gt)throw new Error("Cannot map environment: Environment not defined");if(!O[gt])throw new Error(`Cannot map environment: No mapping found for environment ${gt}`);return O[gt]})(Qe);D.emailIds=$[st]})(Object.assign({},{environment:fe})),fe}catch(fe){console.warn(`Cannot load SDK: ${fe.message}`)}}}(),f}()})})(UO);var L3=UO.exports;const Pl={Off:"off",On:"on",Cookie:"cookie"},D3=e=>{const[t]=jO(),[r,n]=K.useState(null),[a,o]=K.useState(!1),[i,s]=K.useState(Pl.Off);return K.useEffect(()=>{e&&L3.features.flags.read(e).then(l=>{s(l.featureState),n(null)}).catch(l=>{s(Pl.Off),n(l)})},[e]),K.useEffect(()=>{switch(i){case Pl.Off:o(!1);break;case Pl.On:o(!0);break;case Pl.Cookie:o(!!t[`feature-${e}`]);break;default:o(!1)}},[i,t]),{isFeatureActive:a,error:r}};function B3(e,t,r){var n=this,a=K.useRef(null),o=K.useRef(0),i=K.useRef(null),s=K.useRef([]),l=K.useRef(),u=K.useRef(),c=K.useRef(e),d=K.useRef(!0);K.useEffect(function(){c.current=e},[e]);var f=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var p=!!(r=r||{}).leading,h=!("trailing"in r)||!!r.trailing,m="maxWait"in r,b=m?Math.max(+r.maxWait||0,t):null;K.useEffect(function(){return d.current=!0,function(){d.current=!1}},[]);var y=K.useMemo(function(){var v=function($){var D=s.current,Q=l.current;return s.current=l.current=null,o.current=$,u.current=c.current.apply(Q,D)},_=function($,D){f&&cancelAnimationFrame(i.current),i.current=f?requestAnimationFrame($):setTimeout($,D)},S=function($){if(!d.current)return!1;var D=$-a.current;return!a.current||D>=t||D<0||m&&$-o.current>=b},R=function($){return i.current=null,h&&s.current?v($):(s.current=l.current=null,u.current)},T=function $(){var D=Date.now();if(S(D))return R(D);if(d.current){var Q=t-(D-a.current),V=m?Math.min(Q,b-(D-o.current)):Q;_($,V)}},O=function(){var $=Date.now(),D=S($);if(s.current=[].slice.call(arguments),l.current=n,a.current=$,D){if(!i.current&&d.current)return o.current=a.current,_(T,t),p?v(a.current):u.current;if(m)return _(T,t),v(a.current)}return i.current||_(T,t),u.current};return O.cancel=function(){i.current&&(f?cancelAnimationFrame(i.current):clearTimeout(i.current)),o.current=0,s.current=a.current=l.current=i.current=null},O.isPending=function(){return!!i.current},O.flush=function(){return i.current?R(Date.now()):u.current},O},[p,m,t,b,h,f]);return y}function L$(e,t,r){var n=r===void 0?{}:r,a=n.leading,o=n.trailing;return B3(e,t,{maxWait:t,leading:a===void 0||a,trailing:o===void 0||o})}let Eb;const Lu=(e=!0,t=!1)=>{if(!e)return;const[r,n]=K.useState(0)||[!1,()=>{}];K.useEffect(()=>(o(),window.addEventListener("resize",i),()=>{clearTimeout(Eb),i.flush(),window.removeEventListener("resize",i)}),[]);const a=()=>window.innerWidth,o=()=>{n(a())},i=L$(()=>{a()!==r&&(t&&(clearTimeout(Eb),document.body.classList.add("is-resizing"),Eb=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),o())},500,{leading:!0});return r},D$=({scrollPosition:e=0,offset:t={down:0,up:10},callbacks:{scrollDown:r=()=>{},scrollUp:n=()=>{}}})=>{if(!window)return;const[a,o]=K.useState({current:0,past:0})||[!1,()=>{}],[i,s]=K.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];K.useEffect(()=>(l(),window.addEventListener("scroll",u),()=>{u.flush(),window.removeEventListener("scroll",u)}),[]);const l=()=>{const c=window.scrollY,d=a.current,f=c-d,p=f>0?"down":"up";if(o({current:c,past:d}),p==="down"){c>=e+t.down&&!i.scrollDown&&(!i.scrollUp||f>t.up)&&(r(),s({scrollUp:!1,scrollDown:!0}));return}Math.abs(f)>=t.up&&!i.scrollUp&&(n(),s({scrollUp:!0,scrollDown:!1}))},u=L$(()=>{l()},250);return a},F3=(e=[],t=!0)=>{e=Array.isArray(e)?e:[e];const r=K.useRef(!1);Jo(()=>{if(window&&window.location&&window.location.hash){if(r.current)return;const n=document.getElementById(window.location.hash.replace("#",""));n&&(n.scrollIntoView(t?{behavior:"smooth"}:null),r.current=!0)}},e)};var sd={exports:{}};sd.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=9007199254740991,o="[object Arguments]",i="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",d="[object GeneratorFunction]",f="[object Map]",p="[object Number]",h="[object Object]",m="[object Promise]",b="[object RegExp]",y="[object Set]",v="[object String]",_="[object Symbol]",S="[object WeakMap]",R="[object ArrayBuffer]",T="[object DataView]",O="[object Float32Array]",$="[object Float64Array]",D="[object Int8Array]",Q="[object Int16Array]",V="[object Int32Array]",G="[object Uint8Array]",j="[object Uint8ClampedArray]",te="[object Uint16Array]",X="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,Y=/\w*$/,ae=/^\[object .+?Constructor\]$/,ge=/^(?:0|[1-9]\d*)$/,z={};z[o]=z[i]=z[R]=z[T]=z[s]=z[l]=z[O]=z[$]=z[D]=z[Q]=z[V]=z[f]=z[p]=z[h]=z[b]=z[y]=z[v]=z[_]=z[G]=z[j]=z[te]=z[X]=!0,z[u]=z[c]=z[S]=!1;var H=typeof we=="object"&&we&&we.Object===Object&&we,oe=typeof self=="object"&&self&&self.Object===Object&&self,le=H||oe||Function("return this")(),$e=t&&!t.nodeType&&t,ie=$e&&!0&&e&&!e.nodeType&&e,he=ie&&ie.exports===$e;function Ge(E,A){return E.set(A[0],A[1]),E}function Le(E,A){return E.add(A),E}function Rt(E,A){for(var k=-1,Z=E?E.length:0;++k<Z&&A(E[k],k,E)!==!1;);return E}function xt(E,A){for(var k=-1,Z=A.length,Pe=E.length;++k<Z;)E[Pe+k]=A[k];return E}function ye(E,A,k,Z){var Pe=-1,Se=E?E.length:0;for(Z&&Se&&(k=E[++Pe]);++Pe<Se;)k=A(k,E[Pe],Pe,E);return k}function me(E,A){for(var k=-1,Z=Array(E);++k<E;)Z[k]=A(k);return Z}function nt(E,A){return E==null?void 0:E[A]}function Ve(E){var A=!1;if(E!=null&&typeof E.toString!="function")try{A=!!(E+"")}catch{}return A}function kt(E){var A=-1,k=Array(E.size);return E.forEach(function(Z,Pe){k[++A]=[Pe,Z]}),k}function Pt(E,A){return function(k){return E(A(k))}}function Lt(E){var A=-1,k=Array(E.size);return E.forEach(function(Z){k[++A]=Z}),k}var ht=Array.prototype,mr=Function.prototype,Jt=Object.prototype,Wt=le["__core-js_shared__"],ft=function(){var E=/[^.]+$/.exec(Wt&&Wt.keys&&Wt.keys.IE_PROTO||"");return E?"Symbol(src)_1."+E:""}(),Zt=mr.toString,St=Jt.hasOwnProperty,bt=Jt.toString,Cr=RegExp("^"+Zt.call(St).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=he?le.Buffer:void 0,g=le.Symbol,w=le.Uint8Array,C=Pt(Object.getPrototypeOf,Object),I=Object.create,N=Jt.propertyIsEnumerable,W=ht.splice,de=Object.getOwnPropertySymbols,Ee=x?x.isBuffer:void 0,ve=Pt(Object.keys,Object),Ce=br(le,"DataView"),xe=br(le,"Map"),ct=br(le,"Promise"),Or=br(le,"Set"),Ln=br(le,"WeakMap"),vr=br(Object,"create"),Dn=zt(Ce),Rr=zt(xe),un=zt(ct),Ar=zt(Or),cn=zt(Ln),$r=g?g.prototype:void 0,Bn=$r?$r.valueOf:void 0;function Sr(E){var A=-1,k=E?E.length:0;for(this.clear();++A<k;){var Z=E[A];this.set(Z[0],Z[1])}}function ya(){this.__data__=vr?vr(null):{}}function po(E){return this.has(E)&&delete this.__data__[E]}function ho(E){var A=this.__data__;if(vr){var k=A[E];return k===n?void 0:k}return St.call(A,E)?A[E]:void 0}function ga(E){var A=this.__data__;return vr?A[E]!==void 0:St.call(A,E)}function dn(E,A){var k=this.__data__;return k[E]=vr&&A===void 0?n:A,this}Sr.prototype.clear=ya,Sr.prototype.delete=po,Sr.prototype.get=ho,Sr.prototype.has=ga,Sr.prototype.set=dn;function mt(E){var A=-1,k=E?E.length:0;for(this.clear();++A<k;){var Z=E[A];this.set(Z[0],Z[1])}}function Fn(){this.__data__=[]}function jn(E){var A=this.__data__,k=ne(A,E);if(k<0)return!1;var Z=A.length-1;return k==Z?A.pop():W.call(A,k,1),!0}function zr(E){var A=this.__data__,k=ne(A,E);return k<0?void 0:A[k][1]}function Un(E){return ne(this.__data__,E)>-1}function mo(E,A){var k=this.__data__,Z=ne(k,E);return Z<0?k.push([E,A]):k[Z][1]=A,this}mt.prototype.clear=Fn,mt.prototype.delete=jn,mt.prototype.get=zr,mt.prototype.has=Un,mt.prototype.set=mo;function Et(E){var A=-1,k=E?E.length:0;for(this.clear();++A<k;){var Z=E[A];this.set(Z[0],Z[1])}}function vo(){this.__data__={hash:new Sr,map:new(xe||mt),string:new Sr}}function yo(E){return gr(this,E).delete(E)}function go(E){return gr(this,E).get(E)}function bo(E){return gr(this,E).has(E)}function Hn(E,A){return gr(this,E).set(E,A),this}Et.prototype.clear=vo,Et.prototype.delete=yo,Et.prototype.get=go,Et.prototype.has=bo,Et.prototype.set=Hn;function Ot(E){this.__data__=new mt(E)}function Eo(){this.__data__=new mt}function _o(E){return this.__data__.delete(E)}function wo(E){return this.__data__.get(E)}function Co(E){return this.__data__.has(E)}function M(E,A){var k=this.__data__;if(k instanceof mt){var Z=k.__data__;if(!xe||Z.length<r-1)return Z.push([E,A]),this;k=this.__data__=new Et(Z)}return k.set(E,A),this}Ot.prototype.clear=Eo,Ot.prototype.delete=_o,Ot.prototype.get=wo,Ot.prototype.has=Co,Ot.prototype.set=M;function ee(E,A){var k=Ra(E)||Ca(E)?me(E.length,String):[],Z=k.length,Pe=!!Z;for(var Se in E)(A||St.call(E,Se))&&!(Pe&&(Se=="length"||Zs(Se,Z)))&&k.push(Se);return k}function re(E,A,k){var Z=E[A];(!(St.call(E,A)&&wi(Z,k))||k===void 0&&!(A in E))&&(E[A]=k)}function ne(E,A){for(var k=E.length;k--;)if(wi(E[k][0],A))return k;return-1}function _e(E,A){return E&&pn(A,Si(A),E)}function Ae(E,A,k,Z,Pe,Se,ke){var De;if(Z&&(De=Se?Z(E,Pe,Se,ke):Z(E)),De!==void 0)return De;if(!Nr(E))return E;var yt=Ra(E);if(yt){if(De=Js(E),!A)return _a(E,De)}else{var ze=Xr(E),Ft=ze==c||ze==d;if(Ci(E))return Ir(E,A);if(ze==h||ze==o||Ft&&!Se){if(Ve(E))return Se?E:{};if(De=Tr(Ft?{}:E),!A)return wa(E,_e(De,E))}else{if(!z[ze])return Se?E:{};De=hn(E,ze,Ae,A)}}ke||(ke=new Ot);var Qt=ke.get(E);if(Qt)return Qt;if(ke.set(E,De),!yt)var _t=k?Kr(E):Si(E);return Rt(_t||E,function(jt,$t){_t&&($t=jt,jt=E[$t]),re(De,$t,Ae(jt,A,k,Z,$t,E,ke))}),De}function Je(E){return Nr(E)?I(E):{}}function Dt(E,A,k){var Z=A(E);return Ra(E)?Z:xt(Z,k(E))}function Bt(E){return bt.call(E)}function At(E){if(!Nr(E)||tl(E))return!1;var A=Ro(E)||Ve(E)?Cr:ae;return A.test(zt(E))}function vt(E){if(!Ei(E))return ve(E);var A=[];for(var k in Object(E))St.call(E,k)&&k!="constructor"&&A.push(k);return A}function Ir(E,A){if(A)return E.slice();var k=new E.constructor(E.length);return E.copy(k),k}function fn(E){var A=new E.constructor(E.byteLength);return new w(A).set(new w(E)),A}function Qr(E,A){var k=A?fn(E.buffer):E.buffer;return new E.constructor(k,E.byteOffset,E.byteLength)}function Gn(E,A,k){var Z=A?k(kt(E),!0):kt(E);return ye(Z,Ge,new E.constructor)}function Vn(E){var A=new E.constructor(E.source,Y.exec(E));return A.lastIndex=E.lastIndex,A}function ba(E,A,k){var Z=A?k(Lt(E),!0):Lt(E);return ye(Z,Le,new E.constructor)}function Ea(E){return Bn?Object(Bn.call(E)):{}}function yr(E,A){var k=A?fn(E.buffer):E.buffer;return new E.constructor(k,E.byteOffset,E.length)}function _a(E,A){var k=-1,Z=E.length;for(A||(A=Array(Z));++k<Z;)A[k]=E[k];return A}function pn(E,A,k,Z){k||(k={});for(var Pe=-1,Se=A.length;++Pe<Se;){var ke=A[Pe],De=Z?Z(k[ke],E[ke],ke,k,E):void 0;re(k,ke,De===void 0?E[ke]:De)}return k}function wa(E,A){return pn(E,Yr(E),A)}function Kr(E){return Dt(E,Si,Yr)}function gr(E,A){var k=E.__data__;return el(A)?k[typeof A=="string"?"string":"hash"]:k.map}function br(E,A){var k=nt(E,A);return At(k)?k:void 0}var Yr=de?Pt(de,Object):Ti,Xr=Bt;(Ce&&Xr(new Ce(new ArrayBuffer(1)))!=T||xe&&Xr(new xe)!=f||ct&&Xr(ct.resolve())!=m||Or&&Xr(new Or)!=y||Ln&&Xr(new Ln)!=S)&&(Xr=function(E){var A=bt.call(E),k=A==h?E.constructor:void 0,Z=k?zt(k):void 0;if(Z)switch(Z){case Dn:return T;case Rr:return f;case un:return m;case Ar:return y;case cn:return S}return A});function Js(E){var A=E.length,k=E.constructor(A);return A&&typeof E[0]=="string"&&St.call(E,"index")&&(k.index=E.index,k.input=E.input),k}function Tr(E){return typeof E.constructor=="function"&&!Ei(E)?Je(C(E)):{}}function hn(E,A,k,Z){var Pe=E.constructor;switch(A){case R:return fn(E);case s:case l:return new Pe(+E);case T:return Qr(E,Z);case O:case $:case D:case Q:case V:case G:case j:case te:case X:return yr(E,Z);case f:return Gn(E,Z,k);case p:case v:return new Pe(E);case b:return Vn(E);case y:return ba(E,Z,k);case _:return Ea(E)}}function Zs(E,A){return A=A??a,!!A&&(typeof E=="number"||ge.test(E))&&E>-1&&E%1==0&&E<A}function el(E){var A=typeof E;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?E!=="__proto__":E===null}function tl(E){return!!ft&&ft in E}function Ei(E){var A=E&&E.constructor,k=typeof A=="function"&&A.prototype||Jt;return E===k}function zt(E){if(E!=null){try{return Zt.call(E)}catch{}try{return E+""}catch{}}return""}function _i(E){return Ae(E,!0,!0)}function wi(E,A){return E===A||E!==E&&A!==A}function Ca(E){return rl(E)&&St.call(E,"callee")&&(!N.call(E,"callee")||bt.call(E)==o)}var Ra=Array.isArray;function Sa(E){return E!=null&&Ri(E.length)&&!Ro(E)}function rl(E){return So(E)&&Sa(E)}var Ci=Ee||nl;function Ro(E){var A=Nr(E)?bt.call(E):"";return A==c||A==d}function Ri(E){return typeof E=="number"&&E>-1&&E%1==0&&E<=a}function Nr(E){var A=typeof E;return!!E&&(A=="object"||A=="function")}function So(E){return!!E&&typeof E=="object"}function Si(E){return Sa(E)?ee(E):vt(E)}function Ti(){return[]}function nl(){return!1}e.exports=_i})(sd,sd.exports);var j3=sd.exports;const U3=Yt(j3);var H3="Expected a function",B$="__lodash_hash_undefined__",F$=1/0,G3=9007199254740991,V3="[object Function]",W3="[object GeneratorFunction]",z3="[object Symbol]",Q3=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K3=/^\w*$/,Y3=/^\./,X3=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J3=/[\\^$.*+?()[\]{}|]/g,Z3=/\\(\\)?/g,eH=/^\[object .+?Constructor\]$/,tH=/^(?:0|[1-9]\d*)$/,rH=typeof we=="object"&&we&&we.Object===Object&&we,nH=typeof self=="object"&&self&&self.Object===Object&&self,gw=rH||nH||Function("return this")();function aH(e,t){return e==null?void 0:e[t]}function oH(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var iH=Array.prototype,sH=Function.prototype,j$=Object.prototype,_b=gw["__core-js_shared__"],gT=function(){var e=/[^.]+$/.exec(_b&&_b.keys&&_b.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),U$=sH.toString,tf=j$.hasOwnProperty,H$=j$.toString,lH=RegExp("^"+U$.call(tf).replace(J3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bT=gw.Symbol,uH=iH.splice,cH=G$(gw,"Map"),Jl=G$(Object,"create"),ET=bT?bT.prototype:void 0,_T=ET?ET.toString:void 0;function Zo(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function dH(){this.__data__=Jl?Jl(null):{}}function fH(e){return this.has(e)&&delete this.__data__[e]}function pH(e){var t=this.__data__;if(Jl){var r=t[e];return r===B$?void 0:r}return tf.call(t,e)?t[e]:void 0}function hH(e){var t=this.__data__;return Jl?t[e]!==void 0:tf.call(t,e)}function mH(e,t){var r=this.__data__;return r[e]=Jl&&t===void 0?B$:t,this}Zo.prototype.clear=dH;Zo.prototype.delete=fH;Zo.prototype.get=pH;Zo.prototype.has=hH;Zo.prototype.set=mH;function ks(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function vH(){this.__data__=[]}function yH(e){var t=this.__data__,r=rf(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():uH.call(t,r,1),!0}function gH(e){var t=this.__data__,r=rf(t,e);return r<0?void 0:t[r][1]}function bH(e){return rf(this.__data__,e)>-1}function EH(e,t){var r=this.__data__,n=rf(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}ks.prototype.clear=vH;ks.prototype.delete=yH;ks.prototype.get=gH;ks.prototype.has=bH;ks.prototype.set=EH;function li(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function _H(){this.__data__={hash:new Zo,map:new(cH||ks),string:new Zo}}function wH(e){return nf(this,e).delete(e)}function CH(e){return nf(this,e).get(e)}function RH(e){return nf(this,e).has(e)}function SH(e,t){return nf(this,e).set(e,t),this}li.prototype.clear=_H;li.prototype.delete=wH;li.prototype.get=CH;li.prototype.has=RH;li.prototype.set=SH;function TH(e,t,r){var n=e[t];(!(tf.call(e,t)&&V$(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function rf(e,t){for(var r=e.length;r--;)if(V$(e[r][0],t))return r;return-1}function xH(e){if(!ld(e)||MH(e))return!1;var t=DH(e)||oH(e)?lH:eH;return t.test(LH(e))}function PH(e,t,r,n){if(!ld(e))return e;t=IH(t,e)?[t]:AH(t);for(var a=-1,o=t.length,i=o-1,s=e;s!=null&&++a<o;){var l=kH(t[a]),u=r;if(a!=i){var c=s[l];u=n?n(c,l,s):void 0,u===void 0&&(u=ld(c)?c:$H(t[a+1])?[]:{})}TH(s,l,u),s=s[l]}return e}function OH(e){if(typeof e=="string")return e;if(Ew(e))return _T?_T.call(e):"";var t=e+"";return t=="0"&&1/e==-F$?"-0":t}function AH(e){return W$(e)?e:qH(e)}function nf(e,t){var r=e.__data__;return NH(t)?r[typeof t=="string"?"string":"hash"]:r.map}function G$(e,t){var r=aH(e,t);return xH(r)?r:void 0}function $H(e,t){return t=t??G3,!!t&&(typeof e=="number"||tH.test(e))&&e>-1&&e%1==0&&e<t}function IH(e,t){if(W$(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ew(e)?!0:K3.test(e)||!Q3.test(e)||t!=null&&e in Object(t)}function NH(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function MH(e){return!!gT&&gT in e}var qH=bw(function(e){e=FH(e);var t=[];return Y3.test(e)&&t.push(""),e.replace(X3,function(r,n,a,o){t.push(a?o.replace(Z3,"$1"):n||r)}),t});function kH(e){if(typeof e=="string"||Ew(e))return e;var t=e+"";return t=="0"&&1/e==-F$?"-0":t}function LH(e){if(e!=null){try{return U$.call(e)}catch{}try{return e+""}catch{}}return""}function bw(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(H3);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i),i};return r.cache=new(bw.Cache||li),r}bw.Cache=li;function V$(e,t){return e===t||e!==e&&t!==t}var W$=Array.isArray;function DH(e){var t=ld(e)?H$.call(e):"";return t==V3||t==W3}function ld(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function BH(e){return!!e&&typeof e=="object"}function Ew(e){return typeof e=="symbol"||BH(e)&&H$.call(e)==z3}function FH(e){return e==null?"":OH(e)}function jH(e,t,r){return e==null?e:PH(e,t,r)}var UH=jH;const HH=Yt(UH),GH=(e,t)=>{Array.isArray(t)||(t=[t]);const r=U3(e);return t.forEach(({type:n,value:a})=>{HH(r,n,a)}),r},z$=e=>{const t=[];return e.forEach(r=>{const n=parseInt(r);isNaN(n)||t.push(n)}),t.sort((r,n)=>r-n)},Q$=(e,t,r)=>{let n=r.mobile;for(const a in t){const o=parseInt(String(t[a]));if(e>=o)n=r[o];else if(e<o)break}return n},VH=(e,t="en")=>new Date(e).toLocaleString(t,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),WH=e=>{let o;try{o=new Date().getTime()-new Date(e).getTime()}catch{return""}const i=o/36e5,s=Math.floor(o/864e5);if(s<1)return i<1?{path:"now"}:{path:"hours",number:Math.floor(i)};if(s<7)return{path:"days",number:s};const l=Math.floor(s/7);return l<=52?{path:"weeks",number:l}:{path:"years",number:Math.floor(s/365)}},zH=e=>new Promise(t=>setTimeout(t,e)),_w={apolitical:"Apolitical",breadcrumbs_label:"Go back to:",breadcrumbs_currentPage:"Current page:",card_bootcamp:"Email boot camp",card_ended:"Ended",card_registered:"Registered",card_answers:"{number, plural, =0 {0 answers} one {# answer} other {# answers}}",card_time_ago:"{time} ago",card_time_read:"{time} min read",card_watch:"Watch recording",card_cta_people:"View profile",collapsibleSection_summary:"Find out more",communityDetails_members:"Members",communityDetails_viewAll:"View all",communityDetails_invite:"Invite colleagues",contactFooter_title:"Contact us",contactFooter_text:"We're always open to new ideas, so please reach out to see how we can collaborate.",contactFooter_phone:"+44 203 608 2241",contactFooter_email:"hello@apolitical.co",contactForm_name:"Name",contactForm_email:"Email address",contactForm_organisation:"Government department or organisation",contactForm_interests:"I'm interested in",contactForm_interests_publishingCourse:"Publishing or creating a course",contactForm_interests_buyingCourse:"Buying courses for my team",contactForm_interests_learningExperience:"Customised learning experiences",contactForm_interests_somethingElse:"Something else",contactForm_message:"Message",cookieBanner_title:"Cookies and your privacy",cookieBanner_text:"We take your trust and privacy very seriously. Apolitical uses safe cookies (small files on your device) to run the site. You can reject non-essential cookies, but some site features may not work without them.",cookieBanner_buttons_settings:"Change my settings",cookieBanner_buttons_reject:"Reject all",cookieBanner_buttons_accept:"Accept all",dates_now:"now",dates_hours:"{number}h",dates_days:"{number}d",dates_weeks:"{number}w",dates_years:"{number}y",discussion_action_answer:"answer",discussion_action_comment:"comment",discussion_action_post:"post",discussion_action_response:"response",discussion_action_reply:"reply",discussion_action_question:"question",discussion_edited:"Edited",discussion_delete_title:"Delete {action}",discussion_delete_text:"<p>Are you sure you want to delete your {action}?</p><p>This can't be undone.</p>",discussion_delete_cancel:"Cancel",discussion_delete_delete:"Delete",discussion_delete_error:"We are unable to delete your {action} at the moment. Please try again later or contact us if problem persists.",discussion_reply:"Reply",discussion_report_subject:"Report a post on Apolitical",discussion_report_body:`I'd like to report the {contentType} <{contentSlug}> at {contentUrl}.
|
|
62
|
-
|
|
63
|
-
Please explain why you're reporting this post. Reasons could include: inappropriate language, harassment, spam, hate speech, false information, among others. Include as much detail as you feel comfortable.
|
|
64
|
-
|
|
65
|
-
Thank you for helping to protect the Apolitical community from abusive content.`,discussion_form_title:"Write your {action}",discussion_form_placeholder:"Type your {action} here...",discussion_form_label:"Your {action}",discussion_form_explainer:"Try to make your {action} specific and practical. Be respectful and kind. See our <a>community guidelines</a>",discussion_form_success:"Your {action} has been submitted.",discussion_form_post:"Post",discussion_form_posting:"Posting...",discussion_form_save:"Save",discussion_form_saving:"Saving...",discussion_form_cancel:"Cancel",discussion_form_submitting:"Submitting...",discussion_form_placeholder_post:"Write something...",discussion_form_error:"We are unable to process your {action} right now. Please try again later or contact us if the problem persists",discussion_form_error_tooLong:"Please keep your content to {maxLength, plural, one {1 character} other {# characters}}.",discussion_form_error_tooMany:"You have posted too many times in a row. Please wait and try again.",discussion_form_error_loggedOut:"Please log in to submit your {action}.",discussion_form_error_noPermission:"You do not have permission to {action}.",discussion_form_error_alreadyExists:"This {action} already exists.",discussion_form_title_question:"Start a conversation",discussion_form_placeholder_question:"Ask your question here",discussion_form_explainer_question:"Unsure what you can post? See our <a>community guidelines</a>.",discussion_likes:"{number, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_likes_short:"{number}",discussion_likes_more:"and {number} more...",discussion_likes_like:"Like this {action}",discussion_likes_unlike:"Unlike {action}",discussion_moreMenu_edit:"Edit",discussion_moreMenu_delete:"Delete",discussion_moreMenu_report:"Report",discussion_comments_screenReader:"See {count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_comments:"{count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_responses_answer:"Answers",discussion_responses_comment:"Comments",discussion_responses_title:"{action} ({count})",discussion_responses_empty:"Be the first to respond",discussion_responses_empty_answer:"Be the first to answer this question",discussion_thread_show:"Show {count, plural, =0 {replies} one {# reply} other {# replies}}",discussion_thread_hide:"Hide replies",emailHelperTextBox_fallback_title:"Who can join",emailHelperTextBox_fallback_text:"Apolitical is a private community for public servants and policymakers.",emailHelperTextBox_default_title:"Who can join",emailHelperTextBox_default_text:"Apolitical is a private community for public servants and policymakers. <link>Learn more</link>.",emailHelperTextBox_autoApproved_title:"Email check",emailHelperTextBox_autoApproved_text:"Great! Looks like you are using a **government email domain we recognise.** You will be **auto-approved** once you sign up.",emailHelperTextBox_unrecognisedEmail_title:"Not a recognised government email",emailHelperTextBox_unrecognisedEmail_text:"To confirm you work in government or policy, please add more details below. <link>Learn more</link>.",emailHelperTextBox_pendingApproval_title:"Email is pending approval",emailHelperTextBox_pendingApproval_text:"Looks like this email has been used to sign up to Apolitical before, but <strong>we have not yet approved it.</strong> If you cannot wait to join, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_emailUnverified_title:"Hello again!",emailHelperTextBox_emailUnverified_text:"It looks like you're already an Apolitical member. To access your account, please verify your email address. <link>Click here to get a verification code sent to your email</link>.",emailHelperTextBox_emailAlreadyExists_title:"Email is already registered",emailHelperTextBox_emailAlreadyExists_text:"Looks like this email has been used to sign up to Apolitical before, try <link>logging in</link> instead. If you're still having issues, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_error_verificationFailedToSend_title:"Verification code failed to send",emailHelperTextBox_error_verificationFailedToSend_text:"Error details: <em>{error}</em>{br}<link>Click here to try again</link>.{br}If you continue to have problems, contact us at <mail>concierge@apolitical.co</mail>",emailHelperTextBox_error_noFunction:"Cannot resend verification code.",filters_all:"Show all",filters_disabled:"{name} - no results",footer_platform:"Platform",footer_platform_events:"Events",footer_platform_courses:"Courses",footer_platform_qanda:"Q&A",footer_platform_articles:"Articles",footer_community:"Community",footer_community_support:"Support FAQ",footer_community_post:"Post on Apolitical",footer_community_join:"Who can join",footer_community_guidelines:"Guidelines & values",footer_company:"Company",footer_company_story:"Our story",footer_company_team:"Meet our team",footer_company_careers:"Careers",footer_company_partner:"Partner with us",footer_company_contact:"Get in touch",footer_legal:"Legal",footer_legal_privacy:"Privacy policy",footer_legal_terms:"Terms & conditions",footer_legal_cookie:"Cookie policy",footer_legal_accessibility:"Accessibility statement",footer_legal_dataProtection:"Data protection officer",footer_legal_euDataProtection:"EU data protection officer",footer_contact:"Contact",footer_contact_correspondence:"Correspondence address",footer_contact_correspondence_address:"251 Southwark Bridge Road{br}London, SE1 6FL{br}United Kingdom",footer_contact_registered:"Registered address",footer_contact_registered_address:"20–22 Wenlock Road{br}London, N1 7GU{br}United Kingdom",footer_contact_berlin:"Berlin address",footer_contact_berlin_address:"Torstraße 220{br}10115 Berlin{br}Germany",footer_contact_support:"For platform support",footer_contact_business:"For business inquiries",footer_social_linkedin:"LinkedIn",footer_social_twitter:"Twitter",footer_social_facebook:"Facebook",footer_copyright:"Copyright © {currentYear} Apolitical Group Limited",form_fieldWrapper_required:"required",form_fieldWrapper_characterLimit:"Character limit:",form_error_generalError:"Sorry, something has gone. Please refresh the page and try again.",form_error_required:"Please fill in this required field",form_error_numbers:"Numbers are not allowed in this text field",form_error_email:"Please enter a valid email address",form_error_url:"Please enter a valid URL",form_submit:"Submit",form_submitting:"Submitting form...",form_submitted:"Submitted",header_skip:"Skip to main content",header_search_show:"Show search bar",header_search_hide:"Close search bar",header_menu_show:"Show navigation",header_menu_hide:"Close navigation",header_home_loggedOut:"Home",header_home_loggedIn:"My Home",header_topics:"Topics",header_topics_explore:"Explore",header_topics_explore_events:"Events",header_topics_explore_courses:"Courses","header_topics_explore_q-and-a":"Q&A",header_topics_explore_articles:"Articles",header_topics_topics:"Topics",header_topics_topics_climate:"Climate","header_topics_topics_cities-and-local-government":"Cities and local government","header_topics_topics_digital-and-data":"Digital and data",header_topics_topics_education:"Education","header_topics_topics_equity-justice-and-inclusion":"Equity, justice and inclusion","header_topics_topics_health-and-social-care":"Health and social care",header_topics_topics_innovation:"Innovation","header_topics_topics_leadership-and-skills":"Leadership and skills","header_topics_topics_life-in-government":"Life in government",header_topics_topics_policymaking:"Policymaking","header_topics_topics_transport-and-infrastructure":"Transport and infrastructure","header_topics_topics_work-and-the-economy":"Work and the economy",header_partners:"For partners",header_account:"My account",header_account_show:"Show account menu",header_account_hide:"Close account menu",header_account_profile:"My profile",header_account_settings:"Settings & privacy","header_account_log-out":"Log out",header_buttons_login:"Log in",header_buttons_signup:"Sign up",hideShowTextBox_hide:"View less",hideShowTextBox_show:"View more",joinCommunityButton:"Join community",joinCommunityButton_short:"Join",joinCommunityButton_joining:"Joining...",joinCommunityButton_member:"Member",joinCommunityButton_member_aria:"Leave community",joinCommunityButton_leave:"Leave",joinCommunityButton_leaving:"Leaving...",loadMore_button:"Load more",loadMore_endOfFeed:"You're all caught up",loadMore_error:"We're having trouble loading more content. Please refresh the page or try again later.",loadingBlock_loading:"Loading...",loadingBlock_almostDone:"Almost done...",loadingBlock_complete:"Complete!",markdown_collapsibleSection_summary:"Resources",markdown_skip_video:"Skip past video",markdown_skip_padlet:"Skip past interactive board",markdown_skip_poll:"Skip past poll",markdown_skip:"Skip to next section",markdown_iframe_title:"Course information",markdown_iframe_video:"Video",markdown_iframe_padlet:"Interactive board",markdown_iframe_poll:"Poll",member_apolitical:"Apolitical",member_community:"Community post",membersList:"Members",membersList_admin:"Admin",moreMenu:"See more options",overlay_close:"Close",pageLayout_error:"An error occurred while rendering this page. Please refresh the page or try again later.",passwordRules_intro:"We advise you not to use your name or email in your password.",passwordRules_rule_label:"Password",passwordRules_rule_8Characters:"must be longer than 8 characters",passwordRules_rule_numberSymbol:"must include a number and a symbol",passwordRules_rule_lowercaseUppercase:"must include both lower and upper case characters",passwordRules_notMet:"Your password does not meet this requirement",progressBar:"{number}% loaded",ratings_text:"Rate answer",ratings_stars:"{number} out of {total}",ratings_low:"this is incorrect or confusing",ratings_high:"this is a fantastic answer",ratings_success:"Thank you!",search_label:"Search for:",search_placeholder:"Ask Apolitical",search_clear:"Clear search",search_cta:"Search",signup_title:"Sign up",signup_full_name:"Full name",signup_full_name_placeholder:"Lionel Messi",signup_email_address:"Work email",signup_email_address_placeholder:"lionel.messi@argentina.gov",signup_job_title:"Job title",signup_job_title_placeholder:"e.g. Senior Policy Advisor",signup_organization:"Organisation",signup_organization_placeholder:"e.g. Department of Justice",signup_url:"Link to official government bio / LinkedIn <small>(optional)</small>",signup_url_placeholder:"https://organisation.com/bio",signup_expectation:"What do you want to know<small>Optional, but we will use your response to build the session!</small>",signup_expectation_placeholder:"What do you want to know?",signup_terms:"I accept Apolitical's <terms>Terms of Service</terms>, <privacy>Privacy Policy</privacy> and that I'll get essential emails for my use of Apolitical",signup_error:"We're really sorry, but we've had a problem trying to sign you up. This could be an issue with our system, so we suggest you try again later.",signup_button_join:"Join for free",signup_button_login:"Log in",signup_submitting:"Submitting form...",signup_success_title:"Thank you for applying to join Apolitical!",signup_success_text:"<p>Once we've vetted your application, you'll get a secure login link to help you get started.</p><p>Please note that trust is everything to our community, so you can't login until your identity has been verified.</p>",sharedLinks_copy_text:"Copy link",tags_community:"From the community",tooltip_loading:"Loading..."},QH={collapsibleSection_summary:"En savoir plus"},KH=Object.freeze(Object.defineProperty({__proto__:null,en:_w,fr:QH},Symbol.toStringTag,{value:"Module"})),bn=(e,t,r,n,a={})=>{let o="";return`${t}_${r}`in _w?o=e({id:`${t}_${r}`},a):o=e({id:t},{[n]:r,...a}),o},YH=(e,t,r)=>{if(!e||e===0)return"0";t||(t=0),r||(r=["k","m","b","t"]);let n=e.toString();t=Math.pow(10,t);for(let a=r.length-1;a>=0;a--){const o=Math.pow(10,(a+1)*3);if(o<=e){e=Math.round(e*t/o)/t,e===1e3&&a<r.length-1&&(e=1,a++),n=`${e}${r[a]}`;break}}return n},K$=(e,t)=>K.Children.map(e,r=>K.cloneElement(r,{...t})),XH=e=>e.replace(/\s+/g,"").length>0,Tt=({variant:e="primary",size:t="medium",styling:r={muted:!1,fullWidth:!1},icon:n=!1,href:a=!1,element:o="button",onClick:i=!1,className:s="",disabled:l=!1,screenreaderText:u=!1,children:c=!1,...d})=>{const p=Lu(typeof t=="object");if(typeof t=="object"&&typeof p=="number"){const b=Object.assign({},t),y=z$(Object.keys(b));t=Q$(p,y,b)}const h=[];typeof t=="string"&&h.push(t),n&&(h.push("icon"),typeof n=="object"?(h.push(n.icon),n.position?h.push(n.position):h.push("left"),n.hover&&h.push(`hover_${n.hover}`),n.animate&&(h.push("animate"),typeof n.animate=="string"&&h.push(n.animate))):(h.push(n),!n.includes("right")&&!n.includes("left")&&h.push("left"))),r.muted&&h.push("muted"),r.fullWidth&&h.push("full-width");const m={...d,className:be(e,s,h,{"no-text":!c,disabled:l,button:a}),onClick:b=>{(!a||a[0]==="#")&&i&&(b.preventDefault(),b.stopPropagation()),i&&i(b)},disabled:typeof l=="object"&&"isClickable"in l?!l.isClickable:l};return a&&(o="a",m.href=a),K.createElement(o,m,c||(u?P.jsx(Kt,{showOnFocus:!1,children:u}):null))},Du=({buttons:e,className:t="",...r})=>{const n=e.length>1?"ul":"p",a=e.map((o,i)=>n==="p"?P.jsx(Tt,{...o},i):P.jsx("li",{children:P.jsx(Tt,{...o})},i));return K.createElement(n,{className:be("button-wrapper",t),...r,children:a})};const ud=({maxWidth:e=!1})=>{const t=e?{"--max-width":`${e/16}rem`}:{};return P.jsx("hr",{className:be({"has-max-width":e}),style:t})},af=({href:e,children:t,className:r="",onClick:n,gtmContext:a,gtmType:o,...i})=>{if(e){const s={...i};return n&&(s.onClick=n),a&&(s["data-gtm-event-context"]=a),o&&(s["data-gtm-event-type"]=o),P.jsx("a",{href:e,className:be("gtm-trackable",r),...s,children:t})}return t},wT={card:{range:[{height:320,width:320},{height:425,width:687},{height:510,width:768}],sizes:"(min-width: 1024px) 720px, 30vw"},responsiveCard:{range:[{height:125,width:200},{height:188,width:300},{height:313,width:500}],sizes:"(min-width: 1024px) 720px, 30vw"},banner:{range:[{height:124,width:425},{height:320,width:768},{height:510,width:1368}],sizes:"(min-width: 1024px) 975px, 50vw"},feed:{range:[{height:270,width:124},{height:320,width:425},{height:425,width:687}],sizes:"(min-width: 1024px) 510px, 20vw"},fallback:{range:[{height:124,width:375},{height:320,width:687},{height:510,width:990}],sizes:"(min-width: 1024px) 885px, 35vw"},thumbnail:{range:[{height:124,width:124},{height:320,width:320},{height:510,width:510}],sizes:"(min-width: 1024px) 453px, 20vw"}},JH=({aspect:e,range:t,sizes:r})=>{const{range:n,sizes:a}=e?wT[e]:wT.fallback;return{range:t&&t.length>0?t:n,sizes:r||a}},ZH=({format:e,height:t,query:r,width:n})=>{let a=`w=${n}&h=${t}`;return a=e?`${a}&fm=${e}`:a,a=r?`${a}&${r}`:a,a},wb=({format:e,range:t,url:r,query:n})=>t.map(({height:a,width:o})=>`${r}?${ZH({format:e,height:a,query:n,width:o})} ${o}w`).join(", ");const Y$=({image:e,className:t,testId:r})=>{const{description:n,height:a,type:o,query:i,url:s,width:l,loading:u,decoding:c,fetchPriority:d}=e,{range:f,sizes:p}=JH(e),h=wb({format:"avif",query:i,range:f,url:s}),m=wb({format:"webp",query:i,range:f,url:s}),b=wb({format:"",query:i,range:f,url:s});return P.jsxs("picture",{className:t,children:[o!=="image/gif"&&P.jsx("source",{type:"image/avif",srcSet:h,sizes:p,"data-testid":"source"}),P.jsx("source",{type:"image/webp",srcSet:m,sizes:p,"data-testid":"source"}),P.jsx("img",{srcSet:b,sizes:p,src:s,alt:n,loading:u||"lazy",decoding:c||"async",fetchpriority:d||"auto",width:l,height:a,"data-testid":r||"image"})]})};var dE=function(e,t){return dE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},dE(e,t)};function Hr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");dE(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Re=function(){return Re=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Re.apply(this,arguments)};function ys(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function xn(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function X$(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}var Fe;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Fe||(Fe={}));var ut;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(ut||(ut={}));var gs;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(gs||(gs={}));function CT(e){return e.type===ut.literal}function e5(e){return e.type===ut.argument}function J$(e){return e.type===ut.number}function Z$(e){return e.type===ut.date}function eI(e){return e.type===ut.time}function tI(e){return e.type===ut.select}function rI(e){return e.type===ut.plural}function t5(e){return e.type===ut.pound}function nI(e){return e.type===ut.tag}function aI(e){return!!(e&&typeof e=="object"&&e.type===gs.number)}function fE(e){return!!(e&&typeof e=="object"&&e.type===gs.dateTime)}var oI=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,r5=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function n5(e){var t={};return e.replace(r5,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"short":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var a5=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function o5(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(a5).filter(function(f){return f.length>0}),r=[],n=0,a=t;n<a.length;n++){var o=a[n],i=o.split("/");if(i.length===0)throw new Error("Invalid number skeleton");for(var s=i[0],l=i.slice(1),u=0,c=l;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:l})}return r}function i5(e){return e.replace(/^(.*?)-/,"")}var RT=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,iI=/^(@+)?(\+|#+)?[rs]?$/g,s5=/(\*)(0+)|(#+)(0+)|(0+)/g,sI=/^(0+)$/;function ST(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(iI,function(r,n,a){return typeof a!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):a==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof a=="string"?a.length:0)),""}),t}function lI(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function l5(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!sI.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function TT(e){var t={},r=lI(e);return r||t}function u5(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i5(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Re(Re(Re({},t),{notation:"scientific"}),a.options.reduce(function(l,u){return Re(Re({},l),TT(u))},{}));continue;case"engineering":t=Re(Re(Re({},t),{notation:"engineering"}),a.options.reduce(function(l,u){return Re(Re({},l),TT(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(s5,function(l,u,c,d,f,p){if(u)t.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(sI.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(RT.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(RT,function(l,u,c,d,f,p){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&p?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+p.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=a.options[0];o==="w"?t=Re(Re({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Re(Re({},t),ST(o)));continue}if(iI.test(a.stem)){t=Re(Re({},t),ST(a.stem));continue}var i=lI(a.stem);i&&(t=Re(Re({},t),i));var s=l5(a.stem);s&&(t=Re(Re({},t),s))}return t}var bc={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","h","K"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TL:["H","hB","hb","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function c5(e,t){for(var r="",n=0;n<e.length;n++){var a=e.charAt(n);if(a==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===a;)o++,n++;var i=1+(o&1),s=o<2?1:3+(o>>1),l="a",u=d5(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)r+=l;for(;i-- >0;)r=u+r}else a==="J"?r+="H":r+=a}return r}function d5(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var a=bc[n||""]||bc[r||""]||bc["".concat(r,"-001")]||bc["001"];return a[0]}var Cb,f5=new RegExp("^".concat(oI.source,"*")),p5=new RegExp("".concat(oI.source,"*$"));function Ue(e,t){return{start:e,end:t}}var h5=!!String.prototype.startsWith,m5=!!String.fromCodePoint,v5=!!Object.fromEntries,y5=!!String.prototype.codePointAt,g5=!!String.prototype.trimStart,b5=!!String.prototype.trimEnd,E5=!!Number.isSafeInteger,_5=E5?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},pE=!0;try{var w5=cI("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");pE=((Cb=w5.exec("a"))===null||Cb===void 0?void 0:Cb[0])==="a"}catch{pE=!1}var xT=h5?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},hE=m5?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",a=t.length,o=0,i;a>o;){if(i=t[o++],i>1114111)throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return n},PT=v5?Object.fromEntries:function(t){for(var r={},n=0,a=t;n<a.length;n++){var o=a[n],i=o[0],s=o[1];r[i]=s}return r},uI=y5?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var a=t.charCodeAt(r),o;return a<55296||a>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?a:(a-55296<<10)+(o-56320)+65536}},C5=g5?function(t){return t.trimStart()}:function(t){return t.replace(f5,"")},R5=b5?function(t){return t.trimEnd()}:function(t){return t.replace(p5,"")};function cI(e,t){return new RegExp(e,t)}var mE;if(pE){var OT=cI("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");mE=function(t,r){var n;OT.lastIndex=r;var a=OT.exec(t);return(n=a[1])!==null&&n!==void 0?n:""}}else mE=function(t,r){for(var n=[];;){var a=uI(t,r);if(a===void 0||dI(a)||P5(a))break;n.push(a),r+=a>=65536?2:1}return hE.apply(void 0,n)};var S5=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var a=[];!this.isEOF();){var o=this.char();if(o===123){var i=this.parseArgument(t,n);if(i.err)return i;a.push(i.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),a.push({type:ut.pound,location:Ue(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Fe.UNMATCHED_CLOSING_TAG,Ue(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&vE(this.peek()||0)){var i=this.parseTag(t,r);if(i.err)return i;a.push(i.val)}else{var i=this.parseLiteral(t,r);if(i.err)return i;a.push(i.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ut.literal,value:"<".concat(a,"/>"),location:Ue(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!vE(this.char()))return this.error(Fe.INVALID_TAG,Ue(s,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return a!==u?this.error(Fe.UNMATCHED_CLOSING_TAG,Ue(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ut.tag,value:a,children:i,location:Ue(n,this.clonePosition())},err:null}:this.error(Fe.INVALID_TAG,Ue(s,this.clonePosition())))}else return this.error(Fe.UNCLOSED_TAG,Ue(n,this.clonePosition()))}else return this.error(Fe.INVALID_TAG,Ue(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&x5(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),a="";;){var o=this.tryParseQuote(r);if(o){a+=o;continue}var i=this.tryParseUnquoted(t,r);if(i){a+=i;continue}var s=this.tryParseLeftAngleBracket();if(s){a+=s;continue}break}var l=Ue(n,this.clonePosition());return{val:{type:ut.literal,value:a,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!T5(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return hE.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),hE(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Fe.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Fe.EMPTY_ARGUMENT,Ue(n,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(Fe.MALFORMED_ARGUMENT,Ue(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Fe.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ut.argument,value:a,location:Ue(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Fe.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(n,this.clonePosition())):this.parseArgumentOptions(t,r,a,n);default:return this.error(Fe.MALFORMED_ARGUMENT,Ue(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=mE(this.message,r),a=r+n.length;this.bumpTo(a);var o=this.clonePosition(),i=Ue(t,o);return{value:n,location:i}},e.prototype.parseArgumentOptions=function(t,r,n,a){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(Fe.EXPECT_ARGUMENT_TYPE,Ue(i,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=R5(d.val);if(f.length===0)return this.error(Fe.EXPECT_ARGUMENT_STYLE,Ue(this.clonePosition(),this.clonePosition()));var p=Ue(c,this.clonePosition());u={style:f,styleLocation:p}}var h=this.tryParseArgumentClose(a);if(h.err)return h;var m=Ue(a,this.clonePosition());if(u&&xT(u==null?void 0:u.style,"::",0)){var b=C5(u.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(b,u.styleLocation);return d.err?d:{val:{type:ut.number,value:n,location:m,style:d.val},err:null}}else{if(b.length===0)return this.error(Fe.EXPECT_DATE_TIME_SKELETON,m);var y=b;this.locale&&(y=c5(b,this.locale));var f={type:gs.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?n5(y):{}},v=s==="date"?ut.date:ut.time;return{val:{type:v,value:n,location:m,style:f},err:null}}}return{val:{type:s==="number"?ut.number:s==="date"?ut.date:ut.time,value:n,location:m,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var _=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Fe.EXPECT_SELECT_ARGUMENT_OPTIONS,Ue(_,Re({},_)));this.bumpSpace();var S=this.parseIdentifierIfPossible(),R=0;if(s!=="select"&&S.value==="offset"){if(!this.bumpIf(":"))return this.error(Fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ue(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(Fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Fe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),S=this.parseIdentifierIfPossible(),R=d.val}var T=this.tryParsePluralOrSelectOptions(t,s,r,S);if(T.err)return T;var h=this.tryParseArgumentClose(a);if(h.err)return h;var O=Ue(a,this.clonePosition());return s==="select"?{val:{type:ut.select,value:n,options:PT(T.val),location:O},err:null}:{val:{type:ut.plural,value:n,options:PT(T.val),offset:R,pluralType:s==="plural"?"cardinal":"ordinal",location:O},err:null}}default:return this.error(Fe.INVALID_ARGUMENT_TYPE,Ue(i,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Fe.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Fe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ue(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=o5(t)}catch{return this.error(Fe.INVALID_NUMBER_SKELETON,r)}return{val:{type:gs.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?u5(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,a){for(var o,i=!1,s=[],l=new Set,u=a.value,c=a.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(Fe.EXPECT_PLURAL_ARGUMENT_SELECTOR,Fe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=Ue(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?Fe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Fe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Fe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Fe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ue(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(t+1,r,n);if(h.err)return h;var m=this.tryParseArgumentClose(p);if(m.err)return m;s.push([u,{value:h.val,location:Ue(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return s.length===0?this.error(r==="select"?Fe.EXPECT_SELECT_ARGUMENT_SELECTOR:Fe.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ue(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Fe.MISSING_OTHER_CLAUSE,Ue(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,i=i*10+(s-48),this.bump();else break}var l=Ue(a,this.clonePosition());return o?(i*=n,_5(i)?{val:i,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=uI(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(xT(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&dI(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function vE(e){return e>=97&&e<=122||e>=65&&e<=90}function T5(e){return vE(e)||e===47}function x5(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function dI(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function P5(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function yE(e){e.forEach(function(t){if(delete t.location,tI(t)||rI(t))for(var r in t.options)delete t.options[r].location,yE(t.options[r].value);else J$(t)&&aI(t.style)||(Z$(t)||eI(t))&&fE(t.style)?delete t.style.location:nI(t)&&yE(t.children)})}function O5(e,t){t===void 0&&(t={}),t=Re({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new S5(e,t).parse();if(r.err){var n=SyntaxError(Fe[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||yE(r.val),r.val}function En(e,t){var r=t&&t.cache?t.cache:q5,n=t&&t.serializer?t.serializer:M5,a=t&&t.strategy?t.strategy:$5;return a(e,{cache:r,serializer:n})}function A5(e){return e==null||typeof e=="number"||typeof e=="boolean"}function fI(e,t,r,n){var a=A5(n)?n:r(n),o=t.get(a);return typeof o>"u"&&(o=e.call(this,n),t.set(a,o)),o}function pI(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),o=t.get(a);return typeof o>"u"&&(o=e.apply(this,n),t.set(a,o)),o}function ww(e,t,r,n,a){return r.bind(t,e,n,a)}function $5(e,t){var r=e.length===1?fI:pI;return ww(e,this,r,t.cache.create(),t.serializer)}function I5(e,t){return ww(e,this,pI,t.cache.create(),t.serializer)}function N5(e,t){return ww(e,this,fI,t.cache.create(),t.serializer)}var M5=function(){return JSON.stringify(arguments)};function Cw(){this.cache=Object.create(null)}Cw.prototype.get=function(e){return this.cache[e]};Cw.prototype.set=function(e,t){this.cache[e]=t};var q5={create:function(){return new Cw}},_n={variadic:I5,monadic:N5},Pn;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Pn||(Pn={}));var co=function(e){Hr(t,e);function t(r,n,a){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=a,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),AT=function(e){Hr(t,e);function t(r,n,a,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(a).join('", "'),'"'),Pn.INVALID_VALUE,o)||this}return t}(co),k5=function(e){Hr(t,e);function t(r,n,a){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Pn.INVALID_VALUE,a)||this}return t}(co),L5=function(e){Hr(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Pn.MISSING_VALUE,n)||this}return t}(co),ur;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ur||(ur={}));function D5(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==ur.literal||r.type!==ur.literal?t.push(r):n.value+=r.value,t},[])}function hI(e){return typeof e=="function"}function Fc(e,t,r,n,a,o,i){if(e.length===1&&CT(e[0]))return[{type:ur.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(CT(c)){s.push({type:ur.literal,value:c.value});continue}if(t5(c)){typeof o=="number"&&s.push({type:ur.literal,value:r.getNumberFormat(t).format(o)});continue}var d=c.value;if(!(a&&d in a))throw new L5(d,i);var f=a[d];if(e5(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),s.push({type:typeof f=="string"?ur.literal:ur.object,value:f});continue}if(Z$(c)){var p=typeof c.style=="string"?n.date[c.style]:fE(c.style)?c.style.parsedOptions:void 0;s.push({type:ur.literal,value:r.getDateTimeFormat(t,p).format(f)});continue}if(eI(c)){var p=typeof c.style=="string"?n.time[c.style]:fE(c.style)?c.style.parsedOptions:n.time.medium;s.push({type:ur.literal,value:r.getDateTimeFormat(t,p).format(f)});continue}if(J$(c)){var p=typeof c.style=="string"?n.number[c.style]:aI(c.style)?c.style.parsedOptions:void 0;p&&p.scale&&(f=f*(p.scale||1)),s.push({type:ur.literal,value:r.getNumberFormat(t,p).format(f)});continue}if(nI(c)){var h=c.children,m=c.value,b=a[m];if(!hI(b))throw new k5(m,"function",i);var y=Fc(h,t,r,n,a,o),v=b(y.map(function(R){return R.value}));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map(function(R){return{type:typeof R=="string"?ur.literal:ur.object,value:R}}))}if(tI(c)){var _=c.options[f]||c.options.other;if(!_)throw new AT(c.value,f,Object.keys(c.options),i);s.push.apply(s,Fc(_.value,t,r,n,a));continue}if(rI(c)){var _=c.options["=".concat(f)];if(!_){if(!Intl.PluralRules)throw new co(`Intl.PluralRules is not available in this environment.
|
|
66
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
67
|
-
`,Pn.MISSING_INTL_API,i);var S=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));_=c.options[S]||c.options.other}if(!_)throw new AT(c.value,f,Object.keys(c.options),i);s.push.apply(s,Fc(_.value,t,r,n,a,f-(c.offset||0)));continue}}return D5(s)}function B5(e,t){return t?Re(Re(Re({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Re(Re({},e[n]),t[n]||{}),r},{})):e}function F5(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=B5(e[n],t[n]),r},Re({},e)):e}function Rb(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function j5(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:En(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,xn([void 0],r,!1)))},{cache:Rb(e.number),strategy:_n.variadic}),getDateTimeFormat:En(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,xn([void 0],r,!1)))},{cache:Rb(e.dateTime),strategy:_n.variadic}),getPluralRules:En(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,xn([void 0],r,!1)))},{cache:Rb(e.pluralRules),strategy:_n.variadic})}}var mI=function(){function e(t,r,n,a){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(d,f){return!d.length||f.type!==ur.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return Fc(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var i=a||{};i.formatters;var s=ys(i,["formatters"]);this.ast=e.__parse(t,Re(Re({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=F5(e.formats,n),this.formatters=a&&a.formatters||j5(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=O5,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),ei;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(ei||(ei={}));var Bu=function(e){Hr(t,e);function t(r,n,a){var o=this,i=a?a instanceof Error?a:new Error(String(a)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,`
|
|
68
|
-
`).concat(i?`
|
|
69
|
-
`.concat(i.message,`
|
|
70
|
-
`).concat(i.stack):""))||this,o.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t}(Error),U5=function(e){Hr(t,e);function t(r,n){return e.call(this,ei.UNSUPPORTED_FORMATTER,r,n)||this}return t}(Bu),H5=function(e){Hr(t,e);function t(r,n){return e.call(this,ei.INVALID_CONFIG,r,n)||this}return t}(Bu),$T=function(e){Hr(t,e);function t(r,n){return e.call(this,ei.MISSING_DATA,r,n)||this}return t}(Bu),Gr=function(e){Hr(t,e);function t(r,n,a){var o=e.call(this,ei.FORMAT_ERROR,"".concat(r,`
|
|
71
|
-
Locale: `).concat(n,`
|
|
72
|
-
`),a)||this;return o.locale=n,o}return t}(Bu),Sb=function(e){Hr(t,e);function t(r,n,a,o){var i=e.call(this,"".concat(r,`
|
|
73
|
-
MessageID: `).concat(a==null?void 0:a.id,`
|
|
74
|
-
Default Message: `).concat(a==null?void 0:a.defaultMessage,`
|
|
75
|
-
Description: `).concat(a==null?void 0:a.description,`
|
|
76
|
-
`),n,o)||this;return i.descriptor=a,i.locale=n,i}return t}(Gr),G5=function(e){Hr(t,e);function t(r,n){var a=e.call(this,ei.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(n,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(o){var i;return(i=o.value)!==null&&i!==void 0?i:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return a.descriptor=r,a}return t}(Bu);function ui(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,a){return a in e?n[a]=e[a]:a in r&&(n[a]=r[a]),n},{})}var V5=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},W5=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},vI={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:V5,onWarn:W5};function yI(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function No(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function z5(e){e===void 0&&(e=yI());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,a=En(function(){for(var s,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((s=Intl.DateTimeFormat).bind.apply(s,xn([void 0],l,!1)))},{cache:No(e.dateTime),strategy:_n.variadic}),o=En(function(){for(var s,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((s=Intl.NumberFormat).bind.apply(s,xn([void 0],l,!1)))},{cache:No(e.number),strategy:_n.variadic}),i=En(function(){for(var s,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((s=Intl.PluralRules).bind.apply(s,xn([void 0],l,!1)))},{cache:No(e.pluralRules),strategy:_n.variadic});return{getDateTimeFormat:a,getNumberFormat:o,getMessageFormat:En(function(s,l,u,c){return new mI(s,l,u,Re({formatters:{getNumberFormat:o,getDateTimeFormat:a,getPluralRules:i}},c||{}))},{cache:No(e.message),strategy:_n.variadic}),getRelativeTimeFormat:En(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(t.bind.apply(t,xn([void 0],s,!1)))},{cache:No(e.relativeTime),strategy:_n.variadic}),getPluralRules:i,getListFormat:En(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(r.bind.apply(r,xn([void 0],s,!1)))},{cache:No(e.list),strategy:_n.variadic}),getDisplayNames:En(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(n.bind.apply(n,xn([void 0],s,!1)))},{cache:No(e.displayNames),strategy:_n.variadic})}}function Rw(e,t,r,n){var a=e&&e[t],o;if(a&&(o=a[r]),o)return o;n(new U5("No ".concat(t," format named: ").concat(r)))}function Ec(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=Re({timeZone:t},e[n]),r},{})}function IT(e,t){var r=Object.keys(Re(Re({},e),t));return r.reduce(function(n,a){return n[a]=Re(Re({},e[a]||{}),t[a]||{}),n},{})}function NT(e,t){if(!t)return e;var r=mI.formats;return Re(Re(Re({},r),e),{date:IT(Ec(r.date,t),Ec(e.date||{},t)),time:IT(Ec(r.time,t),Ec(e.time||{},t))})}var gE=function(e,t,r,n,a){var o=e.locale,i=e.formats,s=e.messages,l=e.defaultLocale,u=e.defaultFormats,c=e.fallbackOnEmptyString,d=e.onError,f=e.timeZone,p=e.defaultRichTextElements;r===void 0&&(r={id:""});var h=r.id,m=r.defaultMessage;X$(!!h,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var b=String(h),y=s&&Object.prototype.hasOwnProperty.call(s,b)&&s[b];if(Array.isArray(y)&&y.length===1&&y[0].type===ut.literal)return y[0].value;if(!n&&y&&typeof y=="string"&&!p)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=Re(Re({},p),n||{}),i=NT(i,f),u=NT(u,f),!y){if(c===!1&&y==="")return y;if((!m||o&&o.toLowerCase()!==l.toLowerCase())&&d(new G5(r,o)),m)try{var v=t.getMessageFormat(m,l,u,a);return v.format(n)}catch(_){return d(new Sb('Error formatting default message for: "'.concat(b,'", rendering default message verbatim'),o,r,_)),typeof m=="string"?m:b}return b}try{var v=t.getMessageFormat(y,o,i,Re({formatters:t},a||{}));return v.format(n)}catch(_){d(new Sb('Error formatting message: "'.concat(b,'", using ').concat(m?"default message":"id"," as fallback."),o,r,_))}if(m)try{var v=t.getMessageFormat(m,l,u,a);return v.format(n)}catch(_){d(new Sb('Error formatting the default message for: "'.concat(b,'", rendering message verbatim'),o,r,_))}return typeof y=="string"?y:typeof m=="string"?m:b},gI=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function of(e,t,r,n){var a=e.locale,o=e.formats,i=e.onError,s=e.timeZone;n===void 0&&(n={});var l=n.format,u=Re(Re({},s&&{timeZone:s}),l&&Rw(o,t,l,i)),c=ui(n,gI,u);return t==="time"&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle&&(c=Re(Re({},c),{hour:"numeric",minute:"numeric"})),r(a,c)}function Q5(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=o===void 0?{}:o,s=typeof a=="string"?new Date(a||0):a;try{return of(e,"date",t,i).format(s)}catch(l){e.onError(new Gr("Error formatting date.",e.locale,l))}return String(s)}function K5(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=o===void 0?{}:o,s=typeof a=="string"?new Date(a||0):a;try{return of(e,"time",t,i).format(s)}catch(l){e.onError(new Gr("Error formatting time.",e.locale,l))}return String(s)}function Y5(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=r[2],s=i===void 0?{}:i,l=e.timeZone,u=e.locale,c=e.onError,d=ui(s,gI,l?{timeZone:l}:{});try{return t(u,d).formatRange(a,o)}catch(f){c(new Gr("Error formatting date time range.",e.locale,f))}return String(a)}function X5(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=o===void 0?{}:o,s=typeof a=="string"?new Date(a||0):a;try{return of(e,"date",t,i).formatToParts(s)}catch(l){e.onError(new Gr("Error formatting date.",e.locale,l))}return[]}function J5(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=o===void 0?{}:o,s=typeof a=="string"?new Date(a||0):a;try{return of(e,"time",t,i).formatToParts(s)}catch(l){e.onError(new Gr("Error formatting time.",e.locale,l))}return[]}var Z5=["style","type","fallback","languageDisplay"];function e4(e,t,r,n){var a=e.locale,o=e.onError,i=Intl.DisplayNames;i||o(new co(`Intl.DisplayNames is not available in this environment.
|
|
77
|
-
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
78
|
-
`,Pn.MISSING_INTL_API));var s=ui(n,Z5);try{return t(a,s).of(r)}catch(l){o(new Gr("Error formatting display name.",a,l))}}var t4=["type","style"],MT=Date.now();function r4(e){return"".concat(MT,"_").concat(e,"_").concat(MT)}function n4(e,t,r,n){n===void 0&&(n={});var a=bI(e,t,r,n).reduce(function(o,i){var s=i.value;return typeof s!="string"?o.push(s):typeof o[o.length-1]=="string"?o[o.length-1]+=s:o.push(s),o},[]);return a.length===1?a[0]:a.length===0?"":a}function bI(e,t,r,n){var a=e.locale,o=e.onError;n===void 0&&(n={});var i=Intl.ListFormat;i||o(new co(`Intl.ListFormat is not available in this environment.
|
|
79
|
-
Try polyfilling it using "@formatjs/intl-listformat"
|
|
80
|
-
`,Pn.MISSING_INTL_API));var s=ui(n,t4);try{var l={},u=r.map(function(c,d){if(typeof c=="object"){var f=r4(d);return l[f]=c,f}return String(c)});return t(a,s).formatToParts(u).map(function(c){return c.type==="literal"?c:Re(Re({},c),{value:l[c.value]||c.value})})}catch(c){o(new Gr("Error formatting list.",a,c))}return r}var a4=["type"];function o4(e,t,r,n){var a=e.locale,o=e.onError;n===void 0&&(n={}),Intl.PluralRules||o(new co(`Intl.PluralRules is not available in this environment.
|
|
81
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
82
|
-
`,Pn.MISSING_INTL_API));var i=ui(n,a4);try{return t(a,i).select(r)}catch(s){o(new Gr("Error formatting plural.",a,s))}return"other"}var i4=["numeric","style"];function s4(e,t,r){var n=e.locale,a=e.formats,o=e.onError;r===void 0&&(r={});var i=r.format,s=!!i&&Rw(a,"relative",i,o)||{},l=ui(r,i4,s);return t(n,l)}function l4(e,t,r,n,a){a===void 0&&(a={}),n||(n="second");var o=Intl.RelativeTimeFormat;o||e.onError(new co(`Intl.RelativeTimeFormat is not available in this environment.
|
|
83
|
-
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
84
|
-
`,Pn.MISSING_INTL_API));try{return s4(e,t,a).format(r,n)}catch(i){e.onError(new Gr("Error formatting relative time.",e.locale,i))}return String(r)}var u4=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function EI(e,t,r){var n=e.locale,a=e.formats,o=e.onError;r===void 0&&(r={});var i=r.format,s=i&&Rw(a,"number",i,o)||{},l=ui(r,u4,s);return t(n,l)}function c4(e,t,r,n){n===void 0&&(n={});try{return EI(e,t,n).format(r)}catch(a){e.onError(new Gr("Error formatting number.",e.locale,a))}return String(r)}function d4(e,t,r,n){n===void 0&&(n={});try{return EI(e,t,n).formatToParts(r)}catch(a){e.onError(new Gr("Error formatting number.",e.locale,a))}return[]}function f4(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function p4(e){e.onWarn&&e.defaultRichTextElements&&f4(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
85
|
-
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
86
|
-
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function h4(e,t){var r=z5(t),n=Re(Re({},vI),e),a=n.locale,o=n.defaultLocale,i=n.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&i?i(new $T('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&i&&i(new $T('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(i&&i(new H5('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),p4(n),Re(Re({},n),{formatters:r,formatNumber:c4.bind(null,n,r.getNumberFormat),formatNumberToParts:d4.bind(null,n,r.getNumberFormat),formatRelativeTime:l4.bind(null,n,r.getRelativeTimeFormat),formatDate:Q5.bind(null,n,r.getDateTimeFormat),formatDateToParts:X5.bind(null,n,r.getDateTimeFormat),formatTime:K5.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:Y5.bind(null,n,r.getDateTimeFormat),formatTimeToParts:J5.bind(null,n,r.getDateTimeFormat),formatPlural:o4.bind(null,n,r.getPluralRules),formatMessage:gE.bind(null,n,r),$t:gE.bind(null,n,r),formatList:n4.bind(null,n,r.getListFormat),formatListToParts:bI.bind(null,n,r.getListFormat),formatDisplayName:e4.bind(null,n,r.getDisplayNames)})}function _I(e){X$(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var wI=Re(Re({},vI),{textComponent:Te.Fragment});function m4(e){return function(t){return e(Te.Children.toArray(t))}}function bE(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),a=r.length;if(n.length!==a)return!1;for(var o=0;o<a;o++){var i=r[o];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}var Sw=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=Te.createContext(null)):Te.createContext(null);Sw.Consumer;var v4=Sw.Provider,y4=v4,g4=Sw;function We(){var e=Te.useContext(g4);return _I(e),e}var EE;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(EE||(EE={}));var _E;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(_E||(_E={}));function CI(e){var t=function(r){var n=We(),a=r.value,o=r.children,i=ys(r,["value","children"]),s=typeof a=="string"?new Date(a||0):a,l=e==="formatDate"?n.formatDateToParts(s,i):n.formatTimeToParts(s,i);return o(l)};return t.displayName=_E[e],t}function Fu(e){var t=function(r){var n=We(),a=r.value,o=r.children,i=ys(r,["value","children"]),s=n[e](a,i);if(typeof o=="function")return o(s);var l=n.textComponent||Te.Fragment;return Te.createElement(l,null,s)};return t.displayName=EE[e],t}function Tb(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function RI(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=hI(n)?m4(n):n,t},{})}var qT=function(e,t,r,n){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];var i=RI(n),s=gE.apply(void 0,xn([e,t,r,i],a,!1));return Array.isArray(s)?Te.Children.toArray(s):s},wE=function(e,t){var r=e.defaultRichTextElements,n=ys(e,["defaultRichTextElements"]),a=RI(r),o=h4(Re(Re(Re({},wI),n),{defaultRichTextElements:a}),t),i={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:a};return Re(Re({},o),{formatMessage:qT.bind(null,i,o.formatters),$t:qT.bind(null,i,o.formatters)})},b4=function(e){Hr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=yI(),r.state={cache:r.cache,intl:wE(Tb(r.props),r.cache),prevConfig:Tb(r.props)},r}return t.getDerivedStateFromProps=function(r,n){var a=n.prevConfig,o=n.cache,i=Tb(r);return bE(a,i)?null:{intl:wE(i,o),prevConfig:i}},t.prototype.render=function(){return _I(this.state.intl),Te.createElement(y4,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=wI,t}(Te.PureComponent);function E4(e,t){var r=e.values,n=ys(e,["values"]),a=t.values,o=ys(t,["values"]);return bE(a,r)&&bE(n,o)}function SI(e){var t=We(),r=t.formatMessage,n=t.textComponent,a=n===void 0?Te.Fragment:n,o=e.id,i=e.description,s=e.defaultMessage,l=e.values,u=e.children,c=e.tagName,d=c===void 0?a:c,f=e.ignoreTag,p={id:o,description:i,defaultMessage:s},h=r(p,l,{ignoreTag:f});return typeof u=="function"?u(Array.isArray(h)?h:[h]):d?Te.createElement(d,null,Te.Children.toArray(h)):Te.createElement(Te.Fragment,null,h)}SI.displayName="FormattedMessage";var TI=Te.memo(SI,E4);TI.displayName="MemoizedFormattedMessage";const Qa=TI;Fu("formatDate");Fu("formatTime");Fu("formatNumber");Fu("formatList");Fu("formatDisplayName");CI("formatDate");CI("formatTime");let Ol=!1;const xI=({isOpen:e=!1,isLoading:t=!1,children:r})=>{const n=We(),a=K.useRef(null),[o,i]=K.useState("hidden");K.useEffect(()=>{const l=a.current;if(l)return l.addEventListener("transitionend",s),()=>{l.removeEventListener("transitionend",s)}},[]);const s=({propertyName:l})=>{l==="opacity"&&(Ol!==!1&&clearTimeout(Ol),i(u=>u==="opening"?"open":u==="closing"?"closed":u==="closed"?"hidden":u))};return Jo(()=>{Ol!==!1&&clearTimeout(Ol);let l="open";e?i("opening"):(i("closing"),l="hidden"),Ol=setTimeout(()=>{i(l)},300)},[e]),P.jsx("aside",{ref:a,className:be("tooltip text-medium",o,{loading:t}),hidden:o==="hidden",children:t?P.jsx("p",{children:n.formatMessage({id:"tooltip_loading"})}):typeof r=="string"?P.jsx("p",{children:r}):r})};const Tw=({children:e,className:t="",...r})=>P.jsx("section",{className:be("full-width-section",t),...r,children:e});const _4=({text:e,buttons:t,className:r=""})=>{const n=[];return t.forEach(a=>{n.push({href:a.link,variant:"secondary",size:{mobile:"medium",1024:"large"},className:"gtm-trackable","data-gtm-event-type":"download-click","data-gtm-event-context":a.eventContext||"Download",target:"_blank",children:a.text})}),P.jsx(Tw,{className:be("download-section",r),children:P.jsxs(P.Fragment,{children:[K.createElement(typeof e=="string"?"h2":e.element,{className:"text"},typeof e=="string"?e:e.text),P.jsx(Du,{buttons:n})]})})};const w4=({title:e=!1,logos:t=[],className:r=""})=>{const n=t.length;if(n===0)return null;const a={element:typeof e=="object"?e.element:"h2",text:typeof e=="string"?e:typeof e=="object"?e.text:""};return P.jsxs("div",{className:be("logos",r),children:[e&&K.createElement(a.element,{className:"title"},a.text),P.jsx("ul",{className:be({"two-col":n===2||n===4,"three-col":n===5||n<=10&&n%3===0}),children:t.map(({logo:o,nameOfBusiness:i,link:s=!1,description:l=!1},u)=>{if(!o||!o.url)return null;const c=P.jsx("img",{src:o.url,width:o.width||"auto",height:o.height||"auto",alt:i});return P.jsxs("li",{children:[P.jsx("p",{className:"img-wrapper",children:s?P.jsx("a",{href:s,target:"_blank",rel:"nofollow noreferrer noopener",children:c}):c}),l&&P.jsx("small",{children:l})]},window.btoa(`${o.url}_${u}`))})})]})};const C4=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],R4=({content:e,image:t,variant:r="default",spacing:n="normal",cta:a,children:o})=>{const i=["eyebrow","title","text"],s={eyebrow:"small",title:"h1",text:"p"},l={};return i.forEach(u=>{if(!e[u]){l[u]=!1;return}if(typeof e[u]=="object"){l[u]=e[u];const{text:c,element:d}=e[u];if(d&&C4.includes(d.toLowerCase()))return;l[u]={text:c,element:s[u]};return}l[u]={text:e[u],element:s[u]}}),a&&a.link&&a.link[0]==="#"&&(a.props||(a.props={}),a.props.onClick=u=>{u.preventDefault(),u.stopPropagation();const c=document.getElementById(a.link.substring(1));c&&c.scrollIntoView({behavior:"smooth"})}),P.jsx(Tw,{className:be("banner-section",r,n,{"has-image":t,"has-extra-spacing":n==="normal"&&l.eyebrow&&l.title}),children:P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"content-wrapper",children:[i.map(u=>{if(l[u]&&typeof l[u]=="object"){const{text:c,element:d=""}=l[u];return K.createElement(d.toLowerCase(),{key:u,className:u},c)}return null}),o,a&&a.text&&a.link&&P.jsx(Tt,{variant:t||r==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:a.link,...a.props,children:a.text})]}),t&&P.jsx(Y$,{image:{...t,aspect:"banner"}})]})})},S4=K.memo(R4);const T4=({variant:e="primary",button:t=null,title:r,text:n,gtmContext:a})=>!r&&!n?null:P.jsxs("aside",{className:be("marketing-block",e),children:[r&&P.jsx("p",{className:"title",children:r}),n&&P.jsx("p",{children:n}),t&&P.jsx(Tt,{variant:"secondary",size:"medium",href:t.link,className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":"learn-more-click",children:t.text})]});var PI={exports:{}};(function(e){(function(t,r){var n="…",a=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function o(s,l,u){return u.length===s.length||!l.ellipsis||(u+=l.ellipsis),u}function i(s,l,u){var c="",d=!0,f=l,p,h;if(u=u||{},u.ellipsis=typeof u.ellipsis>"u"?n:u.ellipsis,!s||s.length===0)return"";for(d=!0;d;){if(a.lastIndex=c.length,d=a.exec(s),!d||d.index-c.length>=f||a.lastIndex>=l+3e3)return c+=s.substring(c.length,l),o(s,u,c);if(p=d[0],h=d.index,c+=s.substring(c.length,h+p.length),f-=h+p.length,f<=0)break}return o(s,u,c)}e.exports?e.exports=i:t.truncate=i})(String)})(PI);var x4=PI.exports;const xw=Yt(x4),cd="https://storage.googleapis.com/apolitical-assets/",P4="200,000+";const Pw=({label:e=!1,className:t="",children:r})=>{const n=We();return P.jsxs("details",{className:be("collapsible-section",t),children:[P.jsx("summary",{children:e||n.formatMessage({id:"collapsibleSection_summary"})}),P.jsx("div",{className:"content",children:r})]})};function Do(){return Do=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Do.apply(this,arguments)}const O4=["children","options"],kT=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),LT={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},A4=["style","script"],$4=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,I4=/mailto:/i,N4=/\n{2,}$/,OI=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,M4=/^ *> ?/gm,q4=/^ {2,}\n/,k4=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,AI=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,$I=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,L4=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,D4=/^(?:\n *)*\n/,B4=/\r\n?/g,F4=/^\[\^([^\]]+)](:.*)\n/,j4=/^\[\^([^\]]+)]/,U4=/\f/g,H4=/^\s*?\[(x|\s)\]/,II=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,NI=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,MI=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,CE=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,G4=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,qI=/^<!--[\s\S]*?(?:-->)/,V4=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,RE=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,W4=/^\{.*\}$/,z4=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Q4=/^<([^ >]+@[^ >]+)>/,K4=/^<([^ >]+:\/[^ >]+)>/,Y4=/-([a-z])?/gi,kI=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,X4=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,J4=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Z4=/^\[([^\]]*)\] ?\[([^\]]*)\]/,e6=/(\[|\])/g,t6=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,r6=/\t/g,n6=/^ *\| */,a6=/(^ *\||\| *$)/g,o6=/ *$/,i6=/^ *:-+: *$/,s6=/^ *:-+ *$/,l6=/^ *-+: *$/,u6=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,c6=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,d6=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,f6=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,p6=/^\\([^0-9A-Za-z\s])/,h6=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,m6=/^\n+/,v6=/^([ \t]*)/,y6=/\\([^\\])/g,DT=/ *\n+$/,g6=/(?:^|\n)( *)$/,Ow="(?:\\d+\\.)",Aw="(?:[*+-])";function LI(e){return"( *)("+(e===1?Ow:Aw)+") +"}const DI=LI(1),BI=LI(2);function FI(e){return new RegExp("^"+(e===1?DI:BI))}const b6=FI(1),E6=FI(2);function jI(e){return new RegExp("^"+(e===1?DI:BI)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Ow:Aw)+" )[^\\n]*)*(\\n|$)","gm")}const UI=jI(1),HI=jI(2);function GI(e){const t=e===1?Ow:Aw;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const VI=GI(1),WI=GI(2);function BT(e,t){const r=t===1,n=r?VI:WI,a=r?UI:HI,o=r?b6:E6;return{t(i,s,l){const u=g6.exec(l);return u&&(s.o||!s._&&!s.u)?n.exec(i=u[1]+i):null},i:je.HIGH,l(i,s,l){const u=r?+i[2]:void 0,c=i[0].replace(N4,`
|
|
87
|
-
`).match(a);let d=!1;return{p:c.map(function(f,p){const h=o.exec(f)[0].length,m=new RegExp("^ {1,"+h+"}","gm"),b=f.replace(m,"").replace(o,""),y=p===c.length-1,v=b.indexOf(`
|
|
88
|
-
|
|
89
|
-
`)!==-1||y&&d;d=v;const _=l._,S=l.o;let R;l.o=!0,v?(l._=!1,R=b.replace(DT,`
|
|
90
|
-
|
|
91
|
-
`)):(l._=!0,R=b.replace(DT,""));const T=s(R,l);return l._=_,l.o=S,T}),m:r,g:u}},h:(i,s,l)=>e(i.m?"ol":"ul",{key:l.k,start:i.g},i.p.map(function(u,c){return e("li",{key:c},s(u,l))}))}}const _6=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,w6=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,zI=[OI,AI,$I,II,MI,NI,qI,kI,UI,VI,HI,WI],C6=[...zI,/^[^\n]+(?: \n|\n{2,})/,CE,RE];function R6(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function S6(e){return l6.test(e)?"right":i6.test(e)?"center":s6.test(e)?"left":null}function FT(e,t,r){const n=r.$;r.$=!0;const a=t(e.trim(),r);r.$=n;let o=[[]];return a.forEach(function(i,s){i.type==="tableSeparator"?s!==0&&s!==a.length-1&&o.push([]):(i.type!=="text"||a[s+1]!=null&&a[s+1].type!=="tableSeparator"||(i.v=i.v.replace(o6,"")),o[o.length-1].push(i))}),o}function T6(e,t,r){r._=!0;const n=FT(e[1],t,r),a=e[2].replace(a6,"").split("|").map(S6),o=function(i,s,l){return i.trim().split(`
|
|
92
|
-
`).map(function(u){return FT(u,s,l)})}(e[3],t,r);return r._=!1,{S:a,A:o,L:n,type:"table"}}function jT(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function xa(e){return function(t,r){return r._?e.exec(t):null}}function Pa(e){return function(t,r){return r._||r.u?e.exec(t):null}}function Yn(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function Al(e){return function(t){return e.exec(t)}}function x6(e,t,r){if(t._||t.u||r&&!r.endsWith(`
|
|
93
|
-
`))return null;let n="";e.split(`
|
|
94
|
-
`).every(o=>!zI.some(i=>i.test(o))&&(n+=o+`
|
|
95
|
-
`,o.trim()));const a=n.trimEnd();return a==""?null:[n,a]}function Ai(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function UT(e){return e.replace(y6,"$1")}function jc(e,t,r){const n=r._||!1,a=r.u||!1;r._=!0,r.u=!0;const o=e(t,r);return r._=n,r.u=a,o}function P6(e,t,r){const n=r._||!1,a=r.u||!1;r._=!1,r.u=!0;const o=e(t,r);return r._=n,r.u=a,o}function O6(e,t,r){return r._=!1,e(t,r)}const xb=(e,t,r)=>({v:jc(t,e[1],r)});function Pb(){return{}}function Ob(){return null}function A6(...e){return e.filter(Boolean).join(" ")}function Ab(e,t,r){let n=e;const a=t.split(".");for(;a.length&&(n=n[a[0]],n!==void 0);)a.shift();return n||r}var je;function $6(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||R6,t.namedCodesToUnicode=t.namedCodesToUnicode?Do({},LT,t.namedCodesToUnicode):LT;const r=t.createElement||Te.createElement;function n(p,h,...m){const b=Ab(t.overrides,`${p}.props`,{});return r(function(y,v){const _=Ab(v,y);return _?typeof _=="function"||typeof _=="object"&&"render"in _?_:Ab(v,`${y}.component`,y):y}(p,t.overrides),Do({},h,b,{className:A6(h==null?void 0:h.className,b.className)||void 0}),...m)}function a(p){let h=!1;t.forceInline?h=!0:t.forceBlock||(h=t6.test(p)===!1);const m=c(u(h?p:`${p.trimEnd().replace(m6,"")}
|
|
96
|
-
|
|
97
|
-
`,{_:h}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(t.wrapper===null)return m;const b=t.wrapper||(h?"span":"div");let y;if(m.length>1||t.forceWrapper)y=m;else{if(m.length===1)return y=m[0],typeof y=="string"?n("span",{key:"outer"},y):y;y=null}return Te.createElement(b,{key:"outer"},y)}function o(p){const h=p.match($4);return h?h.reduce(function(m,b,y){const v=b.indexOf("=");if(v!==-1){const _=function(O){return O.indexOf("-")!==-1&&O.match(V4)===null&&(O=O.replace(Y4,function($,D){return D.toUpperCase()})),O}(b.slice(0,v)).trim(),S=function(O){const $=O[0];return($==='"'||$==="'")&&O.length>=2&&O[O.length-1]===$?O.slice(1,-1):O}(b.slice(v+1).trim()),R=kT[_]||_,T=m[R]=function(O,$){return O==="style"?$.split(/;\s?/).reduce(function(D,Q){const V=Q.slice(0,Q.indexOf(":"));return D[V.replace(/(-[a-z])/g,G=>G[1].toUpperCase())]=Q.slice(V.length+1).trim(),D},{}):O==="href"?Ai($):($.match(W4)&&($=$.slice(1,$.length-1)),$==="true"||$!=="false"&&$)}(_,S);typeof T=="string"&&(CE.test(T)||RE.test(T))&&(m[R]=Te.cloneElement(a(T.trim()),{key:y}))}else b!=="style"&&(m[kT[b]||b]=!0);return m},{}):null}const i=[],s={},l={blockQuote:{t:Yn(OI),i:je.HIGH,l:(p,h,m)=>({v:h(p[0].replace(M4,""),m)}),h:(p,h,m)=>n("blockquote",{key:m.k},h(p.v,m))},breakLine:{t:Al(q4),i:je.HIGH,l:Pb,h:(p,h,m)=>n("br",{key:m.k})},breakThematic:{t:Yn(k4),i:je.HIGH,l:Pb,h:(p,h,m)=>n("hr",{key:m.k})},codeBlock:{t:Yn($I),i:je.MAX,l:p=>({v:p[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(p,h,m)=>n("pre",{key:m.k},n("code",Do({},p.O,{className:p.M?`lang-${p.M}`:""}),p.v))},codeFenced:{t:Yn(AI),i:je.MAX,l:p=>({O:o(p[3]||""),v:p[4],M:p[2]||void 0,type:"codeBlock"})},codeInline:{t:Pa(L4),i:je.LOW,l:p=>({v:p[2]}),h:(p,h,m)=>n("code",{key:m.k},p.v)},footnote:{t:Yn(F4),i:je.MAX,l:p=>(i.push({I:p[2],j:p[1]}),{}),h:Ob},footnoteReference:{t:xa(j4),i:je.HIGH,l:p=>({v:p[1],B:`#${t.slugify(p[1])}`}),h:(p,h,m)=>n("a",{key:m.k,href:Ai(p.B)},n("sup",{key:m.k},p.v))},gfmTask:{t:xa(H4),i:je.HIGH,l:p=>({R:p[1].toLowerCase()==="x"}),h:(p,h,m)=>n("input",{checked:p.R,key:m.k,readOnly:!0,type:"checkbox"})},heading:{t:Yn(t.enforceAtxHeadings?NI:II),i:je.HIGH,l:(p,h,m)=>({v:jc(h,p[2],m),T:t.slugify(p[2]),C:p[1].length}),h:(p,h,m)=>n(`h${p.C}`,{id:p.T,key:m.k},h(p.v,m))},headingSetext:{t:Yn(MI),i:je.MAX,l:(p,h,m)=>({v:jc(h,p[1],m),C:p[2]==="="?1:2,type:"heading"})},htmlComment:{t:Al(qI),i:je.HIGH,l:()=>({}),h:Ob},image:{t:Pa(w6),i:je.HIGH,l:p=>({D:p[1],B:UT(p[2]),F:p[3]}),h:(p,h,m)=>n("img",{key:m.k,alt:p.D||void 0,title:p.F||void 0,src:Ai(p.B)})},link:{t:xa(_6),i:je.LOW,l:(p,h,m)=>({v:P6(h,p[1],m),B:UT(p[2]),F:p[3]}),h:(p,h,m)=>n("a",{key:m.k,href:Ai(p.B),title:p.F},h(p.v,m))},linkAngleBraceStyleDetector:{t:xa(K4),i:je.MAX,l:p=>({v:[{v:p[1],type:"text"}],B:p[1],type:"link"})},linkBareUrlDetector:{t:(p,h)=>h.N?null:xa(z4)(p,h),i:je.MAX,l:p=>({v:[{v:p[1],type:"text"}],B:p[1],F:void 0,type:"link"})},linkMailtoDetector:{t:xa(Q4),i:je.MAX,l(p){let h=p[1],m=p[1];return I4.test(m)||(m="mailto:"+m),{v:[{v:h.replace("mailto:",""),type:"text"}],B:m,type:"link"}}},orderedList:BT(n,1),unorderedList:BT(n,2),newlineCoalescer:{t:Yn(D4),i:je.LOW,l:Pb,h:()=>`
|
|
98
|
-
`},paragraph:{t:x6,i:je.LOW,l:xb,h:(p,h,m)=>n("p",{key:m.k},h(p.v,m))},ref:{t:xa(X4),i:je.MAX,l:p=>(s[p[1]]={B:p[2],F:p[4]},{}),h:Ob},refImage:{t:Pa(J4),i:je.MAX,l:p=>({D:p[1]||void 0,P:p[2]}),h:(p,h,m)=>n("img",{key:m.k,alt:p.D,src:Ai(s[p.P].B),title:s[p.P].F})},refLink:{t:xa(Z4),i:je.MAX,l:(p,h,m)=>({v:h(p[1],m),Z:h(p[0].replace(e6,"\\$1"),m),P:p[2]}),h:(p,h,m)=>s[p.P]?n("a",{key:m.k,href:Ai(s[p.P].B),title:s[p.P].F},h(p.v,m)):n("span",{key:m.k},h(p.Z,m))},table:{t:Yn(kI),i:je.HIGH,l:T6,h:(p,h,m)=>n("table",{key:m.k},n("thead",null,n("tr",null,p.L.map(function(b,y){return n("th",{key:y,style:jT(p,y)},h(b,m))}))),n("tbody",null,p.A.map(function(b,y){return n("tr",{key:y},b.map(function(v,_){return n("td",{key:_,style:jT(p,_)},h(v,m))}))})))},tableSeparator:{t:function(p,h){return h.$?(h._=!0,n6.exec(p)):null},i:je.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Al(h6),i:je.MIN,l:p=>({v:p[0].replace(G4,(h,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:h)}),h:p=>p.v},textBolded:{t:Pa(u6),i:je.MED,l:(p,h,m)=>({v:h(p[2],m)}),h:(p,h,m)=>n("strong",{key:m.k},h(p.v,m))},textEmphasized:{t:Pa(c6),i:je.LOW,l:(p,h,m)=>({v:h(p[2],m)}),h:(p,h,m)=>n("em",{key:m.k},h(p.v,m))},textEscaped:{t:Pa(p6),i:je.HIGH,l:p=>({v:p[1],type:"text"})},textMarked:{t:Pa(d6),i:je.LOW,l:xb,h:(p,h,m)=>n("mark",{key:m.k},h(p.v,m))},textStrikethroughed:{t:Pa(f6),i:je.LOW,l:xb,h:(p,h,m)=>n("del",{key:m.k},h(p.v,m))}};t.disableParsingRawHTML!==!0&&(l.htmlBlock={t:Al(CE),i:je.HIGH,l(p,h,m){const[,b]=p[3].match(v6),y=new RegExp(`^${b}`,"gm"),v=p[3].replace(y,""),_=(S=v,C6.some($=>$.test(S))?O6:jc);var S;const R=p[1].toLowerCase(),T=A4.indexOf(R)!==-1;m.N=m.N||R==="a";const O=T?p[3]:_(h,v,m);return m.N=!1,{O:o(p[2]),v:O,G:T,H:T?R:p[1]}},h:(p,h,m)=>n(p.H,Do({key:m.k},p.O),p.G?p.v:h(p.v,m))},l.htmlSelfClosing={t:Al(RE),i:je.HIGH,l:p=>({O:o(p[2]||""),H:p[1]}),h:(p,h,m)=>n(p.H,Do({},p.O,{key:m.k}))});const u=function(p){let h=Object.keys(p);function m(b,y){let v=[],_="";for(;b;){let S=0;for(;S<h.length;){const R=h[S],T=p[R],O=T.t(b,y,_);if(O){const $=O[0];b=b.substring($.length);const D=T.l(O,m,y);D.type==null&&(D.type=R),v.push(D),_=$;break}S++}}return v}return h.sort(function(b,y){let v=p[b].i,_=p[y].i;return v!==_?v-_:b<y?-1:1}),function(b,y){return m(function(v){return v.replace(B4,`
|
|
99
|
-
`).replace(U4,"").replace(r6," ")}(b),y)}}(l),c=(d=function(p){return function(h,m,b){return p[h.type].h(h,m,b)}}(l),function p(h,m={}){if(Array.isArray(h)){const b=m.k,y=[];let v=!1;for(let _=0;_<h.length;_++){m.k=_;const S=p(h[_],m),R=typeof S=="string";R&&v?y[y.length-1]+=S:S!==null&&y.push(S),v=R}return m.k=b,y}return d(h,p,m)});var d;const f=a(e);return i.length?n("div",null,f,n("footer",{key:"footer"},i.map(function(p){return n("div",{id:t.slugify(p.j),key:p.j},p.j,c(u(p.I,{_:!0})))}))):f}(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(je||(je={}));const sf=e=>{let{children:t,options:r}=e,n=function(a,o){if(a==null)return{};var i,s,l={},u=Object.keys(a);for(s=0;s<u.length;s++)o.indexOf(i=u[s])>=0||(l[i]=a[i]);return l}(e,O4);return Te.cloneElement($6(t,r),n)};const ia=({variant:e="primary",className:t="",children:r,...n})=>P.jsx("div",{className:be("highlighted-text-box",e,t),...n,children:r});const ju=({variant:e="empty",text:t=!1,button:r=!1,className:n=""})=>{let a=r&&!!Object.keys(r).length;const o=typeof r=="object"&&"breakpoints"in r,i=Lu(o);if(o&&typeof r=="object"&&typeof i=="number"){const d=Object.assign({},r.breakpoints),f=z$(Object.keys(d));a=Q$(i,f,d)}const{breakpoints:s,text:l="",component:u,...c}=r;return P.jsx(ia,{variant:"subtle",className:be("empty-state-box",e,n),children:P.jsxs(P.Fragment,{children:[t&&P.jsx(sf,{options:{forceBlock:!0},children:t}),a&&typeof r=="object"&&(u||P.jsx(Tt,{...c,variant:r.variant?r.variant:"secondary",children:l}))]})})};const SE=({children:e,...t})=>P.jsx("p",{...t,children:e}),QI={q:SE,blockquote:SE};for(let e=1;e<=6;e++)QI[`h${e}`]={component:SE,props:{className:"title"}};const KI=({type:e="default",className:t="",heading:r=!1,children:n})=>P.jsxs("div",{className:be("helper-text-box text-small",e,t),children:[r&&P.jsx("p",{className:"title",children:r}),typeof n=="string"?P.jsx(sf,{options:{wrapper:K.Fragment,forceBlock:!0,overrides:QI},children:n}):P.jsx("p",{children:n})]});const I6=({className:e="",show:t=!1,hide:r=!1,text:n,children:a})=>{const o=We(),i=K.useRef(null),[s,l]=K.useState(""),[u,c]=K.useState("closed");K.useEffect(()=>{const p=i.current;if(p)return p.addEventListener("transitionend",d),()=>{p.removeEventListener("transitionend",d)}},[]),K.useEffect(()=>{if(!n||typeof n!="string")return;const p=n.split(`
|
|
100
|
-
`);l(p.length<3?`${n.substring(0,400)}...`:p.slice(0,3).join(`
|
|
101
|
-
`))},[n]),K.useEffect(()=>{u==="ready-to-close"&&c("closing")},[u]);const d=({propertyName:p})=>{p==="max-height"&&c(h=>h==="opening"?"open":h==="closing"?"closed":h)};if(!n)return null;const f=["opening","open"].includes(u);return P.jsxs(ia,{variant:"subtle",className:be("hide-show-text-box",e),children:[P.jsxs("div",{ref:i,className:be("content",u),children:[P.jsx(sf,{options:{forceBlock:!0},children:u==="closed"?s:n}),u!=="closed"&&a]}),P.jsx("p",{className:"cta",children:P.jsx(Tt,{variant:"tertiary",icon:{icon:"navigation_arrow",position:"left",animate:!0},styling:{muted:!0},className:be({"rotate-180":f}),onClick:()=>{c(f?"ready-to-close":"opening")},children:f?r||o.formatMessage({id:"hideShowTextBox_hide"}):t||o.formatMessage({id:"hideShowTextBox_show"})})})]})},N6=()=>K.Fragment,M6=({children:e})=>P.jsx(ia,{variant:"secondary",children:e}),q6=["span","strong","h1","h2","h3","h4","h5","h6","p"],k6=({children:e})=>{const t=We();if(!e)return null;let r=t.formatMessage({id:"markdown_collapsibleSection_summary"});const n=[];for(const o of K.Children.toArray(e))if(!(!o||typeof o=="string"||typeof o=="number"))if(K.isValidElement(o)&&o.type==="summary"){if(o.props&&o.props.children){for(const i of K.Children.toArray(o.props.children))if(!(!i||typeof i=="string"||typeof i=="number")&&K.isValidElement(i)){const s=i.type;if(q6.includes(s)){for(r=i.props.children;typeof r!="string"&&(Array.isArray(r)&&r[0].props&&r[0].props.children&&r[0].props.children[0]);)r=r[0].props.children[0];break}}}}else n.push(o);const a=r?r.toString():"";return P.jsx(Pw,{label:a,className:["Sources","Resources"].includes(a)?"discrete-links":"",children:n.map(o=>o)})},L6=({children:e,...t})=>{if(t.class)switch(t.class){case"casestudy":return P.jsx(ia,{variant:"secondary",children:e});case"general-textbox":case"highlight-box":return P.jsx(ia,{variant:"primary",children:e});case"pink-textbox":return P.jsx(ia,{variant:"tertiary",children:e});default:return P.jsx("div",{...t,children:e})}return P.jsx("div",{...t,children:e})},D6=e=>{const t=We(),r=Date.now().toString();let n="default";const a=e.src;return a.includes("youtube")||a.includes("vimeo")?n="video":a.includes("riddle")||a.includes("sli.do")?n="poll":a.includes("padlet")&&(n="padlet"),P.jsxs(P.Fragment,{children:[P.jsx(Kt,{children:P.jsx("a",{href:`#content-after-iframe-${r}`,children:t.formatMessage({id:`markdown_skip${n==="default"?"":`_${n}`}`})})}),P.jsx("iframe",{...e,title:t.formatMessage({id:`markdown_iframe${n==="default"?"":`_${n}`}`})}),P.jsx("span",{id:`content-after-iframe-${r}`,tabIndex:-1})]})},HT=e=>{let t="";return e&&typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"&&"type"in e&&(t=e.type),t},B6=({children:e,...t})=>{let r={...t};t.href&&(t.href.includes("http:")||t.href.includes("https:"))&&!t.target&&(r.target="_blank");let n=e,a=!1;for(const o of K.Children.toArray(e))if(!(!o||typeof o=="string"||typeof o=="number")&&K.isValidElement(o)){const i=o.type;if(["button","center","span","strong"].includes(i)&&o.props&&o.props.children&&o.props.children[0])for((i==="button"||HT(o.props.children[0])==="button")&&(a=!0),n=o.props.children[0];n&&typeof n!="string"&&!(typeof n=="boolean"||typeof n=="number"||!K.isValidElement(n));)if(n.props&&n.props.children&&n.props.children[0])n=n.props.children[0],n&&HT(n)==="button"&&(a=!0);else break}return a?(r={...r,className:"button primary medium"},P.jsx("p",{className:"center",children:P.jsx(Tt,{variant:"primary",size:"medium",...r,children:n})})):P.jsx("a",{...r,children:n})},YI=({children:e})=>P.jsx("span",{children:e});const TE=({className:e="",options:t={},children:r})=>{r=r.replace(/^<br\/?>/,"");const n={wrapper:K.Fragment,forceBlock:!0,overrides:{a:B6,CollapsibleSection:Pw,TextBox:ia,CaseStudy:M6,style:N6,details:k6,div:L6,iframe:D6}};return P.jsx("div",{className:be("markdown-text",e),children:P.jsx(sf,{options:{...n,...t},children:r})})};const XI=({size:e="medium",variant:t="default",className:r="",children:n})=>P.jsx("span",{className:be("pill",e,t,r),children:n});const dd=({element:e="p",children:t=null,className:r="",...n})=>K.createElement(e,{...n,className:be("status-banner text-small",r),"aria-live":"assertive"},t);const F6=({progress:e=0,text:t=!1,className:r=""})=>{const n=We(),a=e>75?100:e>50?75:e>25?50:e>5?25:0,o={"--progress":`${e}%`};return P.jsx("span",{className:be(`progress-bar section-${a}`,r),style:o,children:P.jsx(Kt,{children:t?`${e} ${t}`:n.formatMessage({id:"progressBar"},{number:e})})})},JI=K.memo(F6);const $b="loadingBlock_",j6=({progress:e=0,steps:t=!1,className:r=""})=>{const n=We();t||(t={0:{text:n.formatMessage({id:`${$b}loading`})},75:{text:n.formatMessage({id:`${$b}almostDone`})},100:{text:n.formatMessage({id:`${$b}complete`})}});let a=null;const o=Object.keys(t);for(let s=0;s<o.length&&!(e<parseInt(o[s]));s++)a=o[s];const i=a&&t[a].icon?{"--icon":`url(${cd}icons/${t[a].icon}.svg)`}:{};return P.jsxs(ia,{className:be("loading-block",r,{"has-icon":a&&t[a].icon}),variant:"subtle",style:i,children:[a&&P.jsx("span",{className:"step",children:t[a].text}),P.jsx(JI,{progress:e})]})},U6=K.memo(j6);const On=({element:e="div",className:t="",...r})=>P.jsx(Z_,{element:e,className:be("loading-placeholder",t),...r});const xE={header:["logo","link","link","search"],sidebar:["text","text","text","text","text"],"cards-section":["subtitle","cards"],cards:["card","card","card","card"],"overview-page":["header","sidebar","title","text","cards-section","cards-section","footer"]},ZI=(e,t)=>e in xE?P.jsx("div",{className:e,children:xE[e].map((r,n)=>ZI(r,n))},t):P.jsx(On,{className:e},t),eN=({layout:e="overview-page"})=>P.jsx("div",{className:be("loading-state",e),children:xE[e].map((t,r)=>ZI(t,r))}),tN=e=>{const t=e&&e.toUpperCase().split(" ");return Array.isArray(t)&&t.length>1&&t[0]!==""?t[1]===""?t[0][0]:t[0][0]+t[t.length-1][0]:e?e.substr(0,1):""},_c=["#5AB6A3","#A2D7AF","#806056","#3962B3"],H6=e=>{const t=Math.ceil(26/_c.length),r=tN(e).toLowerCase();if(r==="")return _c[0];const n=r.charCodeAt(0)-96;for(let a=0;a<_c.length;a++)if(n<=t*(a+1))return _c[a]};const GT=256,lf=({className:e="",src:t="",name:r,alt:n,width:a=GT,height:o=GT,...i})=>{const[s,l]=K.useState(!1),u=K.useRef(null);return K.useEffect(()=>{const c=u.current;if(!c)return;const d=c.getContext("2d");if(!d)return;const f=a,p=o;typeof window<"u"&&window.devicePixelRatio&&(c.width=f*window.devicePixelRatio,c.height=p*window.devicePixelRatio,d.scale(window.devicePixelRatio,window.devicePixelRatio)),d.fillStyle=H6(r),d.fillRect(0,0,f,p),d.font=`${f/3}px Arial`,d.textAlign="center",d.fillStyle="white",d.fillText(tN(r),f/2,p/1.6)},[r]),P.jsxs("figure",{className:be("profile-picture",e,{error:s}),...i,children:[t!==""&&!s&&P.jsx("img",{src:t,alt:n||r,onError:()=>{l(!0)},width:a,height:o}),(t===""||s)&&P.jsx("canvas",{ref:u})]})},$w=e=>e==="apolitical"?{image:`${cd}logos/member_apolitical.svg`}:e==="community"||typeof e=="object"&&!e.name?{image:`${cd}logos/member_community.svg`}:{name:e.name,role:e.jobTitle||"",organisation:e.organization||"",country:e.location&&e.location.country||"",url:`/profiles/${e.id}`,image:e.image&&e.image.thumbnail},G6=({role:e="",organisation:t="",country:r="",maximumCharacters:n=80})=>{const a=e!=="",o=t!=="",i=r!=="";if(!a&&!o&&!i)return"";const s=`${e}${a&&o?` — ${t}`:t}`;let l=`${s}${(a||o)&&i?`, ${r}`:r}`;return l.length>n&&(l=s),l.length>n&&(l=xw(l,n)),l};const uf=({element:e="div",member:t="community",additionalContent:r=!1,gtmContext:n="member",gtmType:a="member-click",className:o=""})=>{const i=We(),s=$w(t);s.name||(s.name=i.formatMessage({id:`member_${typeof t=="string"?t:"community"}`}));const{name:l,url:u,image:c}=s,d=G6(s),f=r&&r.createdAt?WH(r.createdAt):!1,p=r&&r.createdAt?VH(r.createdAt):"";return K.createElement(e,{className:be("member text-medium",o),children:P.jsxs(af,{href:u,gtmType:a,gtmContext:n,onClick:h=>{h==null||h.stopPropagation()},children:[P.jsx(lf,{name:l,src:c}),P.jsxs("p",{className:"details",children:[P.jsx("strong",{children:l}),r&&P.jsxs("span",{className:"additional-content",children:[r.createdAt&&f&&P.jsx("span",{className:"date",title:p,"aria-label":p,children:i.formatMessage({id:`dates_${f.path}`},{number:f.number})}),r.didEdit&&P.jsx("em",{children:i.formatMessage({id:"discussion_edited"})})]}),d&&P.jsx("small",{children:d})]})]})})};const VT={small:24,medium:48},rN=({element:e="div",contributors:{total:t,data:r}={total:void 0,data:[]},styling:{showText:n,size:a,showGap:o,showPlaceholders:i}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:s=2,className:l=""})=>{const u=We();return!r||r.length===0?null:K.createElement(e,{className:be("contributors",l,a,{"has-gap":o}),children:P.jsxs(P.Fragment,{children:[P.jsx("ul",{children:r.map((c,d)=>{let f,p="";if(d<s){const{name:h="",image:m=""}=$w(c);if(i)return P.jsx(On,{element:"li",className:"contributor"},d);f=P.jsx(lf,{name:h,src:m,width:VT[a||"medium"],height:VT[a||"medium"]})}else if(d===s){const h=(t||r.length)-s;f=P.jsxs("small",{className:be({"large-number":h>99}),children:["+",YH(h,0)]}),p="number-left"}return f?P.jsx("li",{className:be("contributor",p),children:f},d):null})}),n&&P.jsx("span",{className:"label",children:typeof n=="string"?n:r.length===1?typeof r[0]=="string"?u.formatMessage({id:`member_${r[0]}`}):xw(r[0].name||"",20):null})]})})},nN=({children:e,locale:t,messages:r})=>{const n=t||"en",a={...KH[n],...r||{}};return P.jsx(b4,{locale:n,messages:a,children:e})},da=K.createContext(null),aN=({children:e,user:t})=>P.jsx(da.Provider,{value:t,children:e});var Ls=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},bs=typeof window>"u"||"Deno"in window;function Fr(){}function V6(e,t){return typeof e=="function"?e(t):e}function PE(e){return typeof e=="number"&&e>=0&&e!==1/0}function oN(e,t){return Math.max(e+(t||0)-Date.now(),0)}function WT(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:s}=e;if(i){if(n){if(t.queryHash!==Iw(i,t.options))return!1}else if(!eu(t.queryKey,i))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof a<"u"&&a!==t.state.fetchStatus||o&&!o(t))}function zT(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Zl(t.options.mutationKey)!==Zl(o))return!1}else if(!eu(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function Iw(e,t){return((t==null?void 0:t.queryKeyHashFn)||Zl)(e)}function Zl(e){return JSON.stringify(e,(t,r)=>OE(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function eu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!eu(e[r],t[r])):!1}function iN(e,t){if(e===t)return e;const r=QT(e)&&QT(t);if(r||OE(e)&&OE(t)){const n=r?e.length:Object.keys(e).length,a=r?t:Object.keys(t),o=a.length,i=r?[]:{};let s=0;for(let l=0;l<o;l++){const u=r?l:a[l];i[u]=iN(e[u],t[u]),i[u]===e[u]&&s++}return n===o&&s===n?e:i}return t}function fd(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function QT(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function OE(e){if(!KT(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!KT(r)||!r.hasOwnProperty("isPrototypeOf"))}function KT(e){return Object.prototype.toString.call(e)==="[object Object]"}function sN(e){return new Promise(t=>{setTimeout(t,e)})}function YT(e){sN(0).then(e)}function AE(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?iN(e,t):t}function W6(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function z6(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Bo,Ba,Wi,CO,Q6=(CO=class extends Ls{constructor(){super();pe(this,Bo,void 0);pe(this,Ba,void 0);pe(this,Wi,void 0);se(this,Wi,t=>{if(!bs&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){q(this,Ba)||this.setEventListener(q(this,Wi))}onUnsubscribe(){var t;this.hasListeners()||((t=q(this,Ba))==null||t.call(this),se(this,Ba,void 0))}setEventListener(t){var r;se(this,Wi,t),(r=q(this,Ba))==null||r.call(this),se(this,Ba,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){q(this,Bo)!==t&&(se(this,Bo,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof q(this,Bo)=="boolean"?q(this,Bo):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Bo=new WeakMap,Ba=new WeakMap,Wi=new WeakMap,CO),pd=new Q6,zi,Fa,Qi,RO,K6=(RO=class extends Ls{constructor(){super();pe(this,zi,!0);pe(this,Fa,void 0);pe(this,Qi,void 0);se(this,Qi,t=>{if(!bs&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){q(this,Fa)||this.setEventListener(q(this,Qi))}onUnsubscribe(){var t;this.hasListeners()||((t=q(this,Fa))==null||t.call(this),se(this,Fa,void 0))}setEventListener(t){var r;se(this,Qi,t),(r=q(this,Fa))==null||r.call(this),se(this,Fa,t(this.setOnline.bind(this)))}setOnline(t){q(this,zi)!==t&&(se(this,zi,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return q(this,zi)}},zi=new WeakMap,Fa=new WeakMap,Qi=new WeakMap,RO),tu=new K6;function Y6(e){return Math.min(1e3*2**e,3e4)}function cf(e){return(e??"online")==="online"?tu.isOnline():!0}var lN=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ib(e){return e instanceof lN}function uN(e){let t=!1,r=0,n=!1,a,o,i;const s=new Promise((b,y)=>{o=b,i=y}),l=b=>{var y;n||(p(new lN(b)),(y=e.abort)==null||y.call(e))},u=()=>{t=!0},c=()=>{t=!1},d=()=>!pd.isFocused()||e.networkMode!=="always"&&!tu.isOnline(),f=b=>{var y;n||(n=!0,(y=e.onSuccess)==null||y.call(e,b),a==null||a(),o(b))},p=b=>{var y;n||(n=!0,(y=e.onError)==null||y.call(e,b),a==null||a(),i(b))},h=()=>new Promise(b=>{var y;a=v=>{const _=n||!d();return _&&b(v),_},(y=e.onPause)==null||y.call(e)}).then(()=>{var b;a=void 0,n||(b=e.onContinue)==null||b.call(e)}),m=()=>{if(n)return;let b;try{b=e.fn()}catch(y){b=Promise.reject(y)}Promise.resolve(b).then(f).catch(y=>{var T;if(n)return;const v=e.retry??(bs?0:3),_=e.retryDelay??Y6,S=typeof _=="function"?_(r,y):_,R=v===!0||typeof v=="number"&&r<v||typeof v=="function"&&v(r,y);if(t||!R){p(y);return}r++,(T=e.onFail)==null||T.call(e,r,y),sN(S).then(()=>{if(d())return h()}).then(()=>{t?p(y):m()})})};return cf(e.networkMode)?m():h().then(m),{promise:s,cancel:l,continue:()=>(a==null?void 0:a())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}function X6(){let e=[],t=0,r=c=>{c()},n=c=>{c()};const a=c=>{let d;t++;try{d=c()}finally{t--,t||s()}return d},o=c=>{t?e.push(c):YT(()=>{r(c)})},i=c=>(...d)=>{o(()=>{c(...d)})},s=()=>{const c=e;e=[],c.length&&YT(()=>{n(()=>{c.forEach(d=>{r(d)})})})};return{batch:a,batchCalls:i,schedule:o,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{n=c}}}var Mt=X6(),Fo,SO,cN=(SO=class{constructor(){pe(this,Fo,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),PE(this.gcTime)&&se(this,Fo,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(bs?1/0:5*60*1e3))}clearGcTimeout(){q(this,Fo)&&(clearTimeout(q(this,Fo)),se(this,Fo,void 0))}},Fo=new WeakMap,SO),Ki,Yi,kr,ja,Lr,Ht,yu,jo,Xi,Uc,rn,Zn,TO,J6=(TO=class extends cN{constructor(t){super();pe(this,Xi);pe(this,rn);pe(this,Ki,void 0);pe(this,Yi,void 0);pe(this,kr,void 0);pe(this,ja,void 0);pe(this,Lr,void 0);pe(this,Ht,void 0);pe(this,yu,void 0);pe(this,jo,void 0);se(this,jo,!1),se(this,yu,t.defaultOptions),Oe(this,Xi,Uc).call(this,t.options),se(this,Ht,[]),se(this,kr,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,se(this,Ki,t.state||Z6(this.options)),this.state=q(this,Ki),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!q(this,Ht).length&&this.state.fetchStatus==="idle"&&q(this,kr).remove(this)}setData(t,r){const n=AE(this.state.data,t,this.options);return Oe(this,rn,Zn).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){Oe(this,rn,Zn).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n;const r=q(this,ja);return(n=q(this,Lr))==null||n.cancel(t),r?r.then(Fr).catch(Fr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(q(this,Ki))}isActive(){return q(this,Ht).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||q(this,Ht).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!oN(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=q(this,Ht).find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=q(this,Lr))==null||r.continue()}onOnline(){var r;const t=q(this,Ht).find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=q(this,Lr))==null||r.continue()}addObserver(t){q(this,Ht).includes(t)||(q(this,Ht).push(t),this.clearGcTimeout(),q(this,kr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){q(this,Ht).includes(t)&&(se(this,Ht,q(this,Ht).filter(r=>r!==t)),q(this,Ht).length||(q(this,Lr)&&(q(this,jo)?q(this,Lr).cancel({revert:!0}):q(this,Lr).cancelRetry()),this.scheduleGc()),q(this,kr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return q(this,Ht).length}invalidate(){this.state.isInvalidated||Oe(this,rn,Zn).call(this,{type:"invalidate"})}fetch(t,r){var u,c,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(q(this,ja))return(u=q(this,Lr))==null||u.continueRetry(),q(this,ja)}if(t&&Oe(this,Xi,Uc).call(this,t),!this.options.queryFn){const p=q(this,Ht).find(h=>h.options.queryFn);p&&Oe(this,Xi,Uc).call(this,p.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const n=new AbortController,a={queryKey:this.queryKey,meta:this.meta},o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(se(this,jo,!0),n.signal)})};o(a);const i=()=>this.options.queryFn?(se(this,jo,!1),this.options.persister?this.options.persister(this.options.queryFn,a,this):this.options.queryFn(a)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),s={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};o(s),(c=this.options.behavior)==null||c.onFetch(s,this),se(this,Yi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&Oe(this,rn,Zn).call(this,{type:"fetch",meta:(f=s.fetchOptions)==null?void 0:f.meta});const l=p=>{var h,m,b,y;Ib(p)&&p.silent||Oe(this,rn,Zn).call(this,{type:"error",error:p}),Ib(p)||((m=(h=q(this,kr).config).onError)==null||m.call(h,p,this),(y=(b=q(this,kr).config).onSettled)==null||y.call(b,this.state.data,p,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return se(this,Lr,uN({fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:p=>{var h,m,b,y;if(typeof p>"u"){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),l(new Error(`${this.queryHash} data is undefined`));return}this.setData(p),(m=(h=q(this,kr).config).onSuccess)==null||m.call(h,p,this),(y=(b=q(this,kr).config).onSettled)==null||y.call(b,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(p,h)=>{Oe(this,rn,Zn).call(this,{type:"failed",failureCount:p,error:h})},onPause:()=>{Oe(this,rn,Zn).call(this,{type:"pause"})},onContinue:()=>{Oe(this,rn,Zn).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode})),se(this,ja,q(this,Lr).promise),q(this,ja)}},Ki=new WeakMap,Yi=new WeakMap,kr=new WeakMap,ja=new WeakMap,Lr=new WeakMap,Ht=new WeakMap,yu=new WeakMap,jo=new WeakMap,Xi=new WeakSet,Uc=function(t){this.options={...q(this,yu),...t},this.updateGcTime(this.options.gcTime)},rn=new WeakSet,Zn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:cf(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Ib(a)&&a.revert&&q(this,Yi)?{...q(this,Yi),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Mt.batch(()=>{q(this,Ht).forEach(n=>{n.onQueryUpdate()}),q(this,kr).notify({query:this,type:"updated",action:t})})},TO);function Z6(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var wn,xO,eG=(xO=class extends Ls{constructor(t={}){super();pe(this,wn,void 0);this.config=t,se(this,wn,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??Iw(a,r);let i=this.get(o);return i||(i=new J6({cache:this,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){q(this,wn).has(t.queryHash)||(q(this,wn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=q(this,wn).get(t.queryHash);r&&(t.destroy(),r===t&&q(this,wn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Mt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return q(this,wn).get(t)}getAll(){return[...q(this,wn).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>WT(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>WT(t,n)):r}notify(t){Mt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Mt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Mt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},wn=new WeakMap,xO),Cn,gu,Pr,Ji,Rn,$a,PO,tG=(PO=class extends cN{constructor(t){super();pe(this,Rn);pe(this,Cn,void 0);pe(this,gu,void 0);pe(this,Pr,void 0);pe(this,Ji,void 0);this.mutationId=t.mutationId,se(this,gu,t.defaultOptions),se(this,Pr,t.mutationCache),se(this,Cn,[]),this.state=t.state||dN(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...q(this,gu),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){q(this,Cn).includes(t)||(q(this,Cn).push(t),this.clearGcTimeout(),q(this,Pr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){se(this,Cn,q(this,Cn).filter(r=>r!==t)),this.scheduleGc(),q(this,Pr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){q(this,Cn).length||(this.state.status==="pending"?this.scheduleGc():q(this,Pr).remove(this))}continue(){var t;return((t=q(this,Ji))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,o,i,s,l,u,c,d,f,p,h,m,b,y,v,_,S,R,T,O;const r=()=>(se(this,Ji,uN({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:($,D)=>{Oe(this,Rn,$a).call(this,{type:"failed",failureCount:$,error:D})},onPause:()=>{Oe(this,Rn,$a).call(this,{type:"pause"})},onContinue:()=>{Oe(this,Rn,$a).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),q(this,Ji).promise),n=this.state.status==="pending";try{if(!n){Oe(this,Rn,$a).call(this,{type:"pending",variables:t}),await((o=(a=q(this,Pr).config).onMutate)==null?void 0:o.call(a,t,this));const D=await((s=(i=this.options).onMutate)==null?void 0:s.call(i,t));D!==this.state.context&&Oe(this,Rn,$a).call(this,{type:"pending",context:D,variables:t})}const $=await r();return await((u=(l=q(this,Pr).config).onSuccess)==null?void 0:u.call(l,$,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,$,t,this.state.context)),await((p=(f=q(this,Pr).config).onSettled)==null?void 0:p.call(f,$,null,this.state.variables,this.state.context,this)),await((m=(h=this.options).onSettled)==null?void 0:m.call(h,$,null,t,this.state.context)),Oe(this,Rn,$a).call(this,{type:"success",data:$}),$}catch($){try{throw await((y=(b=q(this,Pr).config).onError)==null?void 0:y.call(b,$,t,this.state.context,this)),await((_=(v=this.options).onError)==null?void 0:_.call(v,$,t,this.state.context)),await((R=(S=q(this,Pr).config).onSettled)==null?void 0:R.call(S,void 0,$,this.state.variables,this.state.context,this)),await((O=(T=this.options).onSettled)==null?void 0:O.call(T,void 0,$,t,this.state.context)),$}finally{Oe(this,Rn,$a).call(this,{type:"error",error:$})}}}},Cn=new WeakMap,gu=new WeakMap,Pr=new WeakMap,Ji=new WeakMap,Rn=new WeakSet,$a=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!cf(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Mt.batch(()=>{q(this,Cn).forEach(n=>{n.onMutationUpdate(t)}),q(this,Pr).notify({mutation:this,type:"updated",action:t})})},PO);function dN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Dr,bu,Uo,OO,rG=(OO=class extends Ls{constructor(t={}){super();pe(this,Dr,void 0);pe(this,bu,void 0);pe(this,Uo,void 0);this.config=t,se(this,Dr,[]),se(this,bu,0)}build(t,r,n){const a=new tG({mutationCache:this,mutationId:++Xu(this,bu)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){q(this,Dr).push(t),this.notify({type:"added",mutation:t})}remove(t){se(this,Dr,q(this,Dr).filter(r=>r!==t)),this.notify({type:"removed",mutation:t})}clear(){Mt.batch(()=>{q(this,Dr).forEach(t=>{this.remove(t)})})}getAll(){return q(this,Dr)}find(t){const r={exact:!0,...t};return q(this,Dr).find(n=>zT(r,n))}findAll(t={}){return q(this,Dr).filter(r=>zT(t,r))}notify(t){Mt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){return se(this,Uo,(q(this,Uo)??Promise.resolve()).then(()=>{const t=q(this,Dr).filter(r=>r.state.isPaused);return Mt.batch(()=>t.reduce((r,n)=>r.then(()=>n.continue().catch(Fr)),Promise.resolve()))}).then(()=>{se(this,Uo,void 0)})),q(this,Uo)}},Dr=new WeakMap,bu=new WeakMap,Uo=new WeakMap,OO);function nG(e){return{onFetch:(t,r)=>{const n=async()=>{var h,m,b,y,v;const a=t.options,o=(b=(m=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:b.direction,i=((y=t.state.data)==null?void 0:y.pages)||[],s=((v=t.state.data)==null?void 0:v.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},d=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),f=async(_,S,R)=>{if(u)return Promise.reject();if(S==null&&_.pages.length)return Promise.resolve(_);const T={queryKey:t.queryKey,pageParam:S,direction:R?"backward":"forward",meta:t.options.meta};c(T);const O=await d(T),{maxPages:$}=t.options,D=R?z6:W6;return{pages:D(_.pages,O,$),pageParams:D(_.pageParams,S,$)}};let p;if(o&&i.length){const _=o==="backward",S=_?aG:XT,R={pages:i,pageParams:s},T=S(a,R);p=await f(R,T,_)}else{p=await f(l,s[0]??a.initialPageParam);const _=e??i.length;for(let S=1;S<_;S++){const R=XT(a,p);p=await f(p,R)}}return p};t.options.persister?t.fetchFn=()=>{var a,o;return(o=(a=t.options).persister)==null?void 0:o.call(a,n,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=n}}}function XT(e,{pages:t,pageParams:r}){const n=t.length-1;return e.getNextPageParam(t[n],t,r[n],r)}function aG(e,{pages:t,pageParams:r}){var n;return(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r)}var Nt,Ua,Ha,Zi,es,Ga,ts,rs,AO,oG=(AO=class{constructor(e={}){pe(this,Nt,void 0);pe(this,Ua,void 0);pe(this,Ha,void 0);pe(this,Zi,void 0);pe(this,es,void 0);pe(this,Ga,void 0);pe(this,ts,void 0);pe(this,rs,void 0);se(this,Nt,e.queryCache||new eG),se(this,Ua,e.mutationCache||new rG),se(this,Ha,e.defaultOptions||{}),se(this,Zi,new Map),se(this,es,new Map),se(this,Ga,0)}mount(){Xu(this,Ga)._++,q(this,Ga)===1&&(se(this,ts,pd.subscribe(()=>{pd.isFocused()&&(this.resumePausedMutations(),q(this,Nt).onFocus())})),se(this,rs,tu.subscribe(()=>{tu.isOnline()&&(this.resumePausedMutations(),q(this,Nt).onOnline())})))}unmount(){var e,t;Xu(this,Ga)._--,q(this,Ga)===0&&((e=q(this,ts))==null||e.call(this),se(this,ts,void 0),(t=q(this,rs))==null||t.call(this),se(this,rs,void 0))}isFetching(e){return q(this,Nt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return q(this,Ua).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=q(this,Nt).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=q(this,Nt).find({queryKey:e}),a=n==null?void 0:n.state.data,o=V6(t,a);if(typeof o>"u")return;const i=this.defaultQueryOptions({queryKey:e});return q(this,Nt).build(this,i).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return Mt.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var t;return(t=q(this,Nt).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=q(this,Nt);Mt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=q(this,Nt),n={type:"active",...e};return Mt.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=Mt.batch(()=>q(this,Nt).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(Fr).catch(Fr)}invalidateQueries(e={},t={}){return Mt.batch(()=>{if(q(this,Nt).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=Mt.batch(()=>q(this,Nt).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(Fr)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Fr)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const r=q(this,Nt).build(this,t);return r.isStaleByTime(t.staleTime)?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Fr).catch(Fr)}fetchInfiniteQuery(e){return e.behavior=nG(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Fr).catch(Fr)}resumePausedMutations(){return q(this,Ua).resumePausedMutations()}getQueryCache(){return q(this,Nt)}getMutationCache(){return q(this,Ua)}getDefaultOptions(){return q(this,Ha)}setDefaultOptions(e){se(this,Ha,e)}setQueryDefaults(e,t){q(this,Zi).set(Zl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...q(this,Zi).values()];let r={};return t.forEach(n=>{eu(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){q(this,es).set(Zl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...q(this,es).values()];let r={};return t.forEach(n=>{eu(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...q(this,Ha).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Iw(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...q(this,Ha).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){q(this,Nt).clear(),q(this,Ua).clear()}},Nt=new WeakMap,Ua=new WeakMap,Ha=new WeakMap,Zi=new WeakMap,es=new WeakMap,Ga=new WeakMap,ts=new WeakMap,rs=new WeakMap,AO),_r,ot,ns,tr,Ho,as,Sn,Eu,os,is,Go,Vo,Va,Wo,zo,Ll,_u,$E,wu,IE,Cu,NE,Ru,ME,Su,qE,Tu,kE,xu,LE,Qd,fN,$O,iG=($O=class extends Ls{constructor(t,r){super();pe(this,zo);pe(this,_u);pe(this,wu);pe(this,Cu);pe(this,Ru);pe(this,Su);pe(this,Tu);pe(this,xu);pe(this,Qd);pe(this,_r,void 0);pe(this,ot,void 0);pe(this,ns,void 0);pe(this,tr,void 0);pe(this,Ho,void 0);pe(this,as,void 0);pe(this,Sn,void 0);pe(this,Eu,void 0);pe(this,os,void 0);pe(this,is,void 0);pe(this,Go,void 0);pe(this,Vo,void 0);pe(this,Va,void 0);pe(this,Wo,void 0);se(this,ot,void 0),se(this,ns,void 0),se(this,tr,void 0),se(this,Wo,new Set),se(this,_r,t),this.options=r,se(this,Sn,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(q(this,ot).addObserver(this),JT(q(this,ot),this.options)&&Oe(this,zo,Ll).call(this),Oe(this,Ru,ME).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return DE(q(this,ot),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return DE(q(this,ot),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Oe(this,Su,qE).call(this),Oe(this,Tu,kE).call(this),q(this,ot).removeObserver(this)}setOptions(t,r){const n=this.options,a=q(this,ot);if(this.options=q(this,_r).defaultQueryOptions(t),fd(n,this.options)||q(this,_r).getQueryCache().notify({type:"observerOptionsUpdated",query:q(this,ot),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),Oe(this,xu,LE).call(this);const o=this.hasListeners();o&&ZT(q(this,ot),a,this.options,n)&&Oe(this,zo,Ll).call(this),this.updateResult(r),o&&(q(this,ot)!==a||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&Oe(this,_u,$E).call(this);const i=Oe(this,wu,IE).call(this);o&&(q(this,ot)!==a||this.options.enabled!==n.enabled||i!==q(this,Va))&&Oe(this,Cu,NE).call(this,i)}getOptimisticResult(t){const r=q(this,_r).getQueryCache().build(q(this,_r),t),n=this.createResult(r,t);return lG(this,n)&&(se(this,tr,n),se(this,as,this.options),se(this,Ho,q(this,ot).state)),n}getCurrentResult(){return q(this,tr)}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(q(this,Wo).add(n),t[n])})}),r}getCurrentQuery(){return q(this,ot)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=q(this,_r).defaultQueryOptions(t),n=q(this,_r).getQueryCache().build(q(this,_r),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return Oe(this,zo,Ll).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),q(this,tr)))}createResult(t,r){var T;const n=q(this,ot),a=this.options,o=q(this,tr),i=q(this,Ho),s=q(this,as),u=t!==n?t.state:q(this,ns),{state:c}=t;let{error:d,errorUpdatedAt:f,fetchStatus:p,status:h}=c,m=!1,b;if(r._optimisticResults){const O=this.hasListeners(),$=!O&&JT(t,r),D=O&&ZT(t,n,r,a);($||D)&&(p=cf(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(h="pending")),r._optimisticResults==="isRestoring"&&(p="idle")}if(r.select&&typeof c.data<"u")if(o&&c.data===(i==null?void 0:i.data)&&r.select===q(this,Eu))b=q(this,os);else try{se(this,Eu,r.select),b=r.select(c.data),b=AE(o==null?void 0:o.data,b,r),se(this,os,b),se(this,Sn,null)}catch(O){se(this,Sn,O)}else b=c.data;if(typeof r.placeholderData<"u"&&typeof b>"u"&&h==="pending"){let O;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))O=o.data;else if(O=typeof r.placeholderData=="function"?r.placeholderData((T=q(this,is))==null?void 0:T.state.data,q(this,is)):r.placeholderData,r.select&&typeof O<"u")try{O=r.select(O),se(this,Sn,null)}catch($){se(this,Sn,$)}typeof O<"u"&&(h="success",b=AE(o==null?void 0:o.data,O,r),m=!0)}q(this,Sn)&&(d=q(this,Sn),b=q(this,os),f=Date.now(),h="error");const y=p==="fetching",v=h==="pending",_=h==="error",S=v&&y;return{status:h,fetchStatus:p,isPending:v,isSuccess:h==="success",isError:_,isInitialLoading:S,isLoading:S,data:b,dataUpdatedAt:c.dataUpdatedAt,error:d,errorUpdatedAt:f,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!v,isLoadingError:_&&c.dataUpdatedAt===0,isPaused:p==="paused",isPlaceholderData:m,isRefetchError:_&&c.dataUpdatedAt!==0,isStale:Nw(t,r),refetch:this.refetch}}updateResult(t){const r=q(this,tr),n=this.createResult(q(this,ot),this.options);if(se(this,Ho,q(this,ot).state),se(this,as,this.options),fd(n,r))return;q(this,Ho).data!==void 0&&se(this,is,q(this,ot)),se(this,tr,n);const a={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!q(this,Wo).size)return!0;const l=new Set(s??q(this,Wo));return this.options.throwOnError&&l.add("error"),Object.keys(q(this,tr)).some(u=>{const c=u;return q(this,tr)[c]!==r[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(a.listeners=!0),Oe(this,Qd,fN).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Oe(this,Ru,ME).call(this)}},_r=new WeakMap,ot=new WeakMap,ns=new WeakMap,tr=new WeakMap,Ho=new WeakMap,as=new WeakMap,Sn=new WeakMap,Eu=new WeakMap,os=new WeakMap,is=new WeakMap,Go=new WeakMap,Vo=new WeakMap,Va=new WeakMap,Wo=new WeakMap,zo=new WeakSet,Ll=function(t){Oe(this,xu,LE).call(this);let r=q(this,ot).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Fr)),r},_u=new WeakSet,$E=function(){if(Oe(this,Su,qE).call(this),bs||q(this,tr).isStale||!PE(this.options.staleTime))return;const r=oN(q(this,tr).dataUpdatedAt,this.options.staleTime)+1;se(this,Go,setTimeout(()=>{q(this,tr).isStale||this.updateResult()},r))},wu=new WeakSet,IE=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(q(this,ot)):this.options.refetchInterval)??!1},Cu=new WeakSet,NE=function(t){Oe(this,Tu,kE).call(this),se(this,Va,t),!(bs||this.options.enabled===!1||!PE(q(this,Va))||q(this,Va)===0)&&se(this,Vo,setInterval(()=>{(this.options.refetchIntervalInBackground||pd.isFocused())&&Oe(this,zo,Ll).call(this)},q(this,Va)))},Ru=new WeakSet,ME=function(){Oe(this,_u,$E).call(this),Oe(this,Cu,NE).call(this,Oe(this,wu,IE).call(this))},Su=new WeakSet,qE=function(){q(this,Go)&&(clearTimeout(q(this,Go)),se(this,Go,void 0))},Tu=new WeakSet,kE=function(){q(this,Vo)&&(clearInterval(q(this,Vo)),se(this,Vo,void 0))},xu=new WeakSet,LE=function(){const t=q(this,_r).getQueryCache().build(q(this,_r),this.options);if(t===q(this,ot))return;const r=q(this,ot);se(this,ot,t),se(this,ns,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},Qd=new WeakSet,fN=function(t){Mt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(q(this,tr))}),q(this,_r).getQueryCache().notify({query:q(this,ot),type:"observerResultsUpdated"})})},$O);function sG(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function JT(e,t){return sG(e,t)||e.state.dataUpdatedAt>0&&DE(e,t,t.refetchOnMount)}function DE(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Nw(e,t)}return!1}function ZT(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&Nw(e,r)}function Nw(e,t){return e.isStaleByTime(t.staleTime)}function lG(e,t){return!fd(e.getCurrentResult(),t)}var Wa,lr,Br,ta,ss,Hc,Pu,BE,IO,uG=(IO=class extends Ls{constructor(t,r){super();pe(this,ss);pe(this,Pu);pe(this,Wa,void 0);pe(this,lr,void 0);pe(this,Br,void 0);pe(this,ta,void 0);se(this,lr,void 0),se(this,Wa,t),this.setOptions(r),this.bindMethods(),Oe(this,ss,Hc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=q(this,Wa).defaultMutationOptions(t),fd(r,this.options)||q(this,Wa).getMutationCache().notify({type:"observerOptionsUpdated",mutation:q(this,Br),observer:this}),(n=q(this,Br))==null||n.setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=q(this,Br))==null||t.removeObserver(this)}onMutationUpdate(t){Oe(this,ss,Hc).call(this),Oe(this,Pu,BE).call(this,t)}getCurrentResult(){return q(this,lr)}reset(){se(this,Br,void 0),Oe(this,ss,Hc).call(this),Oe(this,Pu,BE).call(this)}mutate(t,r){var n;return se(this,ta,r),(n=q(this,Br))==null||n.removeObserver(this),se(this,Br,q(this,Wa).getMutationCache().build(q(this,Wa),this.options)),q(this,Br).addObserver(this),q(this,Br).execute(t)}},Wa=new WeakMap,lr=new WeakMap,Br=new WeakMap,ta=new WeakMap,ss=new WeakSet,Hc=function(){var r;const t=((r=q(this,Br))==null?void 0:r.state)??dN();se(this,lr,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Pu=new WeakSet,BE=function(t){Mt.batch(()=>{var r,n,a,o,i,s,l,u;q(this,ta)&&this.hasListeners()&&((t==null?void 0:t.type)==="success"?((n=(r=q(this,ta)).onSuccess)==null||n.call(r,t.data,q(this,lr).variables,q(this,lr).context),(o=(a=q(this,ta)).onSettled)==null||o.call(a,t.data,null,q(this,lr).variables,q(this,lr).context)):(t==null?void 0:t.type)==="error"&&((s=(i=q(this,ta)).onError)==null||s.call(i,t.error,q(this,lr).variables,q(this,lr).context),(u=(l=q(this,ta)).onSettled)==null||u.call(l,void 0,t.error,q(this,lr).variables,q(this,lr).context))),this.listeners.forEach(c=>{c(q(this,lr))})})},IO),pN=Te.createContext(void 0),Ds=e=>{const t=Te.useContext(pN);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},cG=({client:e,children:t})=>(Te.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Te.createElement(pN.Provider,{value:e},t)),hN=Te.createContext(!1),dG=()=>Te.useContext(hN);hN.Provider;function fG(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var pG=Te.createContext(fG()),hG=()=>Te.useContext(pG);function mN(e,t){return typeof e=="function"?e(...t):!!e}var mG=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},vG=e=>{Te.useEffect(()=>{e.clearReset()},[e])},yG=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&mN(r,[e.error,n]),gG=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},bG=(e,t)=>e.isLoading&&e.isFetching&&!t,EG=(e,t,r)=>(e==null?void 0:e.suspense)&&bG(t,r),_G=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function wG(e,t,r){const n=Ds(r),a=dG(),o=hG(),i=n.defaultQueryOptions(e);i._optimisticResults=a?"isRestoring":"optimistic",gG(i),mG(i,o),vG(o);const[s]=Te.useState(()=>new t(n,i)),l=s.getOptimisticResult(i);if(Te.useSyncExternalStore(Te.useCallback(u=>{const c=a?()=>{}:s.subscribe(Mt.batchCalls(u));return s.updateResult(),c},[s,a]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),Te.useEffect(()=>{s.setOptions(i,{listeners:!1})},[i,s]),EG(i,l,a))throw _G(i,s,o);if(yG({result:l,errorResetBoundary:o,throwOnError:i.throwOnError,query:s.getCurrentQuery()}))throw l.error;return i.notifyOnChangeProps?l:s.trackResult(l)}function vN(e,t){return wG(e,iG,t)}function Ka(e,t){const r=Ds(t),[n]=Te.useState(()=>new uG(r,e));Te.useEffect(()=>{n.setOptions(e)},[n,e]);const a=Te.useSyncExternalStore(Te.useCallback(i=>n.subscribe(Mt.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=Te.useCallback((i,s)=>{n.mutate(i,s).catch(CG)},[n]);if(a.error&&mN(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}function CG(){}var Ie={context:void 0,registry:void 0};function Dl(e){Ie.context=e}var RG=(e,t)=>e===t,ru=Symbol("solid-proxy"),Mw=Symbol("solid-track"),SG=Symbol("solid-dev-component"),hd={equals:RG},yN=_N,fa=1,md=2,gN={owned:null,cleanups:null,context:null,owner:null},Nb={},it=null,Mb=null,Xe=null,nr=null,sa=null,df=0,[TG,eSe]=dr(!1);function Ya(e,t){const r=Xe,n=it,a=e.length===0,o=a?gN:{owned:null,cleanups:null,context:null,owner:t===void 0?n:t},i=a?e:()=>e(()=>qt(()=>pf(o)));it=o,Xe=null;try{return An(i,!0)}finally{Xe=r,it=n}}function dr(e,t){t=t?Object.assign({},hd,t):hd;const r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=a=>(typeof a=="function"&&(a=a(r.value)),EN(r,a));return[bN.bind(r),n]}function FE(e,t,r){const n=ff(e,t,!0,fa);Bs(n)}function Xa(e,t,r){const n=ff(e,t,!1,fa);Bs(n)}function qw(e,t,r){yN=FG;const n=ff(e,t,!1,fa);(!r||!r.render)&&(n.user=!0),sa?sa.push(n):Bs(n)}function hr(e,t,r){r=r?Object.assign({},hd,r):hd;const n=ff(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=r.equals||void 0,Bs(n),bN.bind(n)}function xG(e,t,r){let n,a,o;arguments.length===2&&typeof t=="object"||arguments.length===1?(n=!0,a=e,o=t||{}):(n=e,a=t,o=r||{});let i=null,s=Nb,l=null,u=!1,c="initialValue"in o,d=typeof n=="function"&&hr(n);const f=new Set,[p,h]=(o.storage||dr)(o.initialValue),[m,b]=dr(void 0),[y,v]=dr(void 0,{equals:!1}),[_,S]=dr(c?"ready":"unresolved");if(Ie.context){l=`${Ie.context.id}${Ie.context.count++}`;let D;o.ssrLoadFrom==="initial"?s=o.initialValue:Ie.load&&(D=Ie.load(l))&&(s=D[0])}function R(D,Q,V,G){return i===D&&(i=null,G!==void 0&&(c=!0),(D===s||Q===s)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(G,{value:Q})),s=Nb,T(Q,V)),Q}function T(D,Q){An(()=>{Q===void 0&&h(()=>D),S(Q!==void 0?"errored":c?"ready":"unresolved"),b(Q);for(const V of f.keys())V.decrement();f.clear()},!1)}function O(){const D=LG,Q=p(),V=m();if(V!==void 0&&!i)throw V;return Xe&&!Xe.user&&D&&FE(()=>{y(),i&&(D.resolved||f.has(D)||(D.increment(),f.add(D)))}),Q}function $(D=!0){if(D!==!1&&u)return;u=!1;const Q=d?d():n;if(Q==null||Q===!1){R(i,qt(p));return}const V=s!==Nb?s:qt(()=>a(Q,{value:p(),refetching:D}));return typeof V!="object"||!(V&&"then"in V)?(R(i,V,void 0,Q),V):(i=V,u=!0,queueMicrotask(()=>u=!1),An(()=>{S(c?"refreshing":"pending"),v()},!1),V.then(G=>R(V,G,void 0,Q),G=>R(V,void 0,CN(G),Q)))}return Object.defineProperties(O,{state:{get:()=>_()},error:{get:()=>m()},loading:{get(){const D=_();return D==="pending"||D==="refreshing"}},latest:{get(){if(!c)return O();const D=m();if(D&&!i)throw D;return p()}}}),d?FE(()=>$(!1)):$(!1),[O,{refetch:$,mutate:h}]}function PG(e){return An(e,!1)}function qt(e){if(Xe===null)return e();const t=Xe;Xe=null;try{return e()}finally{Xe=t}}function OG(e,t,r){const n=Array.isArray(e);let a,o=r&&r.defer;return i=>{let s;if(n){s=Array(e.length);for(let u=0;u<e.length;u++)s[u]=e[u]()}else s=e();if(o){o=!1;return}const l=qt(()=>t(s,a,i));return a=s,l}}function AG(e){qw(()=>qt(e))}function nu(e){return it===null||(it.cleanups===null?it.cleanups=[e]:it.cleanups.push(e)),e}function $G(){return Xe}function ex(){return it}function IG(e,t){const r=it,n=Xe;it=e,Xe=null;try{return An(t,!0)}catch(a){Lw(a)}finally{it=r,Xe=n}}function NG(e){const t=Xe,r=it;return Promise.resolve().then(()=>{Xe=t,it=r;let n;return An(e,!1),Xe=it=null,n?n.done:void 0})}function MG(){return[TG,NG]}function qG(e,t){const r=Symbol("context");return{id:r,Provider:jG(r),defaultValue:e}}function kG(e){let t;return(t=RN(it,e.id))!==void 0?t:e.defaultValue}function kw(e){const t=hr(e),r=hr(()=>jE(t()));return r.toArray=()=>{const n=r();return Array.isArray(n)?n:n!=null?[n]:[]},r}var LG;function bN(){if(this.sources&&this.state)if(this.state===fa)Bs(this);else{const e=nr;nr=null,An(()=>yd(this),!1),nr=e}if(Xe){const e=this.observers?this.observers.length:0;Xe.sources?(Xe.sources.push(this),Xe.sourceSlots.push(e)):(Xe.sources=[this],Xe.sourceSlots=[e]),this.observers?(this.observers.push(Xe),this.observerSlots.push(Xe.sources.length-1)):(this.observers=[Xe],this.observerSlots=[Xe.sources.length-1])}return this.value}function EN(e,t,r){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&An(()=>{for(let a=0;a<e.observers.length;a+=1){const o=e.observers[a],i=Mb&&Mb.running;i&&Mb.disposed.has(o),(i?!o.tState:!o.state)&&(o.pure?nr.push(o):sa.push(o),o.observers&&wN(o)),i||(o.state=fa)}if(nr.length>1e6)throw nr=[],new Error},!1)),t}function Bs(e){if(!e.fn)return;pf(e);const t=it,r=Xe,n=df;Xe=it=e,DG(e,e.value,n),Xe=r,it=t}function DG(e,t,r){let n;try{n=e.fn(t)}catch(a){return e.pure&&(e.state=fa,e.owned&&e.owned.forEach(pf),e.owned=null),e.updatedAt=r+1,Lw(a)}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?EN(e,n):e.value=n,e.updatedAt=r)}function ff(e,t,r,n=fa,a){const o={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:it,context:null,pure:r};return it===null||it!==gN&&(it.owned?it.owned.push(o):it.owned=[o]),o}function vd(e){if(e.state===0)return;if(e.state===md)return yd(e);if(e.suspense&&qt(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<df);)e.state&&t.push(e);for(let r=t.length-1;r>=0;r--)if(e=t[r],e.state===fa)Bs(e);else if(e.state===md){const n=nr;nr=null,An(()=>yd(e,t[0]),!1),nr=n}}function An(e,t){if(nr)return e();let r=!1;t||(nr=[]),sa?r=!0:sa=[],df++;try{const n=e();return BG(r),n}catch(n){r||(sa=null),nr=null,Lw(n)}}function BG(e){if(nr&&(_N(nr),nr=null),e)return;const t=sa;sa=null,t.length&&An(()=>yN(t),!1)}function _N(e){for(let t=0;t<e.length;t++)vd(e[t])}function FG(e){let t,r=0;for(t=0;t<e.length;t++){const n=e[t];n.user?e[r++]=n:vd(n)}if(Ie.context){if(Ie.count){Ie.effects||(Ie.effects=[]),Ie.effects.push(...e.slice(0,r));return}else Ie.effects&&(e=[...Ie.effects,...e],r+=Ie.effects.length,delete Ie.effects);Dl()}for(t=0;t<r;t++)vd(e[t])}function yd(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){const n=e.sources[r];if(n.sources){const a=n.state;a===fa?n!==t&&(!n.updatedAt||n.updatedAt<df)&&vd(n):a===md&&yd(n,t)}}}function wN(e){for(let t=0;t<e.observers.length;t+=1){const r=e.observers[t];r.state||(r.state=md,r.pure?nr.push(r):sa.push(r),r.observers&&wN(r))}}function pf(e){let t;if(e.sources)for(;e.sources.length;){const r=e.sources.pop(),n=e.sourceSlots.pop(),a=r.observers;if(a&&a.length){const o=a.pop(),i=r.observerSlots.pop();n<a.length&&(o.sourceSlots[i]=n,a[n]=o,r.observerSlots[n]=i)}}if(e.owned){for(t=e.owned.length-1;t>=0;t--)pf(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function CN(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Lw(e,t=it){throw CN(e)}function RN(e,t){return e?e.context&&e.context[t]!==void 0?e.context[t]:RN(e.owner,t):void 0}function jE(e){if(typeof e=="function"&&!e.length)return jE(e());if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++){const n=jE(e[r]);Array.isArray(n)?t.push.apply(t,n):t.push(n)}return t}return e}function jG(e,t){return function(n){let a;return Xa(()=>a=qt(()=>(it.context={[e]:n.value},kw(()=>n.children))),void 0),a}}var UE=Symbol("fallback");function gd(e){for(let t=0;t<e.length;t++)e[t]()}function UG(e,t,r={}){let n=[],a=[],o=[],i=0,s=t.length>1?[]:null;return nu(()=>gd(o)),()=>{let l=e()||[],u,c;return l[Mw],qt(()=>{let f=l.length,p,h,m,b,y,v,_,S,R;if(f===0)i!==0&&(gd(o),o=[],n=[],a=[],i=0,s&&(s=[])),r.fallback&&(n=[UE],a[0]=Ya(T=>(o[0]=T,r.fallback())),i=1);else if(i===0){for(a=new Array(f),c=0;c<f;c++)n[c]=l[c],a[c]=Ya(d);i=f}else{for(m=new Array(f),b=new Array(f),s&&(y=new Array(f)),v=0,_=Math.min(i,f);v<_&&n[v]===l[v];v++);for(_=i-1,S=f-1;_>=v&&S>=v&&n[_]===l[S];_--,S--)m[S]=a[_],b[S]=o[_],s&&(y[S]=s[_]);for(p=new Map,h=new Array(S+1),c=S;c>=v;c--)R=l[c],u=p.get(R),h[c]=u===void 0?-1:u,p.set(R,c);for(u=v;u<=_;u++)R=n[u],c=p.get(R),c!==void 0&&c!==-1?(m[c]=a[u],b[c]=o[u],s&&(y[c]=s[u]),c=h[c],p.set(R,c)):o[u]();for(c=v;c<f;c++)c in m?(a[c]=m[c],o[c]=b[c],s&&(s[c]=y[c],s[c](c))):a[c]=Ya(d);a=a.slice(0,i=f),n=l.slice(0)}return a});function d(f){if(o[c]=f,s){const[p,h]=dr(c);return s[c]=h,t(l[c],p)}return t(l[c])}}}function HG(e,t,r={}){let n=[],a=[],o=[],i=[],s=0,l;return nu(()=>gd(o)),()=>{const u=e()||[];return u[Mw],qt(()=>{if(u.length===0)return s!==0&&(gd(o),o=[],n=[],a=[],s=0,i=[]),r.fallback&&(n=[UE],a[0]=Ya(d=>(o[0]=d,r.fallback())),s=1),a;for(n[0]===UE&&(o[0](),o=[],n=[],a=[],s=0),l=0;l<u.length;l++)l<n.length&&n[l]!==u[l]?i[l](()=>u[l]):l>=n.length&&(a[l]=Ya(c));for(;l<n.length;l++)o[l]();return s=i.length=o.length=u.length,n=u.slice(0),a=a.slice(0,s)});function c(d){o[l]=d;const[f,p]=dr(u[l]);return i[l]=p,t(f,l)}}}function SN(e,t){return qt(()=>e(t||{}))}function wc(){return!0}var HE={get(e,t,r){return t===ru?r:e.get(t)},has(e,t){return t===ru?!0:e.has(t)},set:wc,deleteProperty:wc,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:wc,deleteProperty:wc}},ownKeys(e){return e.keys()}};function qb(e){return(e=typeof e=="function"?e():e)?e:{}}function GG(){for(let e=0,t=this.length;e<t;++e){const r=this[e]();if(r!==void 0)return r}}function TN(...e){let t=!1;for(let o=0;o<e.length;o++){const i=e[o];t=t||!!i&&ru in i,e[o]=typeof i=="function"?(t=!0,hr(i)):i}if(t)return new Proxy({get(o){for(let i=e.length-1;i>=0;i--){const s=qb(e[i])[o];if(s!==void 0)return s}},has(o){for(let i=e.length-1;i>=0;i--)if(o in qb(e[i]))return!0;return!1},keys(){const o=[];for(let i=0;i<e.length;i++)o.push(...Object.keys(qb(e[i])));return[...new Set(o)]}},HE);const r={},n={},a=new Set;for(let o=e.length-1;o>=0;o--){const i=e[o];if(!i)continue;const s=Object.getOwnPropertyNames(i);for(let l=0,u=s.length;l<u;l++){const c=s[l];if(c==="__proto__"||c==="constructor")continue;const d=Object.getOwnPropertyDescriptor(i,c);if(!a.has(c))d.get?(a.add(c),Object.defineProperty(r,c,{enumerable:!0,configurable:!0,get:GG.bind(n[c]=[d.get.bind(i)])})):(d.value!==void 0&&a.add(c),r[c]=d.value);else{const f=n[c];f?d.get?f.push(d.get.bind(i)):d.value!==void 0&&f.push(()=>d.value):r[c]===void 0&&(r[c]=d.value)}}}return r}function xN(e,...t){if(ru in e){const a=new Set(t.length>1?t.flat():t[0]),o=t.map(i=>new Proxy({get(s){return i.includes(s)?e[s]:void 0},has(s){return i.includes(s)&&s in e},keys(){return i.filter(s=>s in e)}},HE));return o.push(new Proxy({get(i){return a.has(i)?void 0:e[i]},has(i){return a.has(i)?!1:i in e},keys(){return Object.keys(e).filter(i=>!a.has(i))}},HE)),o}const r={},n=t.map(()=>({}));for(const a of Object.getOwnPropertyNames(e)){const o=Object.getOwnPropertyDescriptor(e,a),i=!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable;let s=!1,l=0;for(const u of t)u.includes(a)&&(s=!0,i?n[l][a]=o.value:Object.defineProperty(n[l],a,o)),++l;s||(i?r[a]=o.value:Object.defineProperty(r,a,o))}return[...n,r]}function VG(e){let t,r;const n=a=>{const o=Ie.context;if(o){const[s,l]=dr();Ie.count||(Ie.count=0),Ie.count++,(r||(r=e())).then(u=>{Dl(o),Ie.count--,l(()=>u.default),Dl()}),t=s}else if(!t){const[s]=xG(()=>(r||(r=e())).then(l=>l.default));t=s}let i;return hr(()=>(i=t())&&qt(()=>{if(!o)return i(a);const s=Ie.context;Dl(o);const l=i(a);return Dl(s),l}))};return n.preload=()=>r||((r=e()).then(a=>t=()=>a.default),r),n}var WG=0;function zG(){const e=Ie.context;return e?`${e.id}${e.count++}`:`cl-${WG++}`}var PN=e=>`Stale read from <${e}>.`;function QG(e){const t="fallback"in e&&{fallback:()=>e.fallback};return hr(UG(()=>e.each,e.children,t||void 0))}function KG(e){const t="fallback"in e&&{fallback:()=>e.fallback};return hr(HG(()=>e.each,e.children,t||void 0))}function YG(e){const t=e.keyed,r=hr(()=>e.when,void 0,{equals:(n,a)=>t?n===a:!n==!a});return hr(()=>{const n=r();if(n){const a=e.children;return typeof a=="function"&&a.length>0?qt(()=>a(t?n:()=>{if(!qt(r))throw PN("Show");return e.when})):a}return e.fallback},void 0,void 0)}function XG(e){let t=!1;const r=(o,i)=>o[0]===i[0]&&(t?o[1]===i[1]:!o[1]==!i[1])&&o[2]===i[2],n=kw(()=>e.children),a=hr(()=>{let o=n();Array.isArray(o)||(o=[o]);for(let i=0;i<o.length;i++){const s=o[i].when;if(s)return t=!!o[i].keyed,[i,s,o[i]]}return[-1]},void 0,{equals:r});return hr(()=>{const[o,i,s]=a();if(o<0)return e.fallback;const l=s.children;return typeof l=="function"&&l.length>0?qt(()=>l(t?i:()=>{if(qt(a)[0]!==o)throw PN("Match");return s.when})):l},void 0,void 0)}function JG(e){return e}var ZG=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],e8=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...ZG]),t8=new Set(["innerHTML","textContent","innerText","children"]),r8=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),n8=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function a8(e,t){const r=n8[e];return typeof r=="object"?r[t]?r.$:void 0:r}var o8=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),i8=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),s8={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function l8(e,t,r){let n=r.length,a=t.length,o=n,i=0,s=0,l=t[a-1].nextSibling,u=null;for(;i<a||s<o;){if(t[i]===r[s]){i++,s++;continue}for(;t[a-1]===r[o-1];)a--,o--;if(a===i){const c=o<n?s?r[s-1].nextSibling:r[o-s]:l;for(;s<o;)e.insertBefore(r[s++],c)}else if(o===s)for(;i<a;)(!u||!u.has(t[i]))&&t[i].remove(),i++;else if(t[i]===r[o-1]&&r[s]===t[a-1]){const c=t[--a].nextSibling;e.insertBefore(r[s++],t[i++].nextSibling),e.insertBefore(r[--o],c),t[a]=r[o]}else{if(!u){u=new Map;let d=s;for(;d<o;)u.set(r[d],d++)}const c=u.get(t[i]);if(c!=null)if(s<c&&c<o){let d=i,f=1,p;for(;++d<a&&d<o&&!((p=u.get(t[d]))==null||p!==c+f);)f++;if(f>c-s){const h=t[i];for(;s<c;)e.insertBefore(r[s++],h)}else e.replaceChild(r[s++],t[i++])}else i++;else t[i++].remove()}}}var tx="_$DX_DELEGATE";function u8(e,t,r,n={}){let a;return Ya(o=>{a=o,t===document?e():Ed(t,e(),t.firstChild?null:void 0,r)},n.owner),()=>{a(),t.textContent=""}}function c8(e,t,r){let n;const a=()=>{const i=document.createElement("template");return i.innerHTML=e,r?i.content.firstChild.firstChild:i.content.firstChild},o=t?()=>qt(()=>document.importNode(n||(n=a()),!0)):()=>(n||(n=a())).cloneNode(!0);return o.cloneNode=o,o}function ON(e,t=window.document){const r=t[tx]||(t[tx]=new Set);for(let n=0,a=e.length;n<a;n++){const o=e[n];r.has(o)||(r.add(o),t.addEventListener(o,g8))}}function bd(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)}function d8(e,t,r,n){n==null?e.removeAttributeNS(t,r):e.setAttributeNS(t,r,n)}function AN(e,t){t==null?e.removeAttribute("class"):e.className=t}function $N(e,t,r,n){if(n)Array.isArray(r)?(e[`$$${t}`]=r[0],e[`$$${t}Data`]=r[1]):e[`$$${t}`]=r;else if(Array.isArray(r)){const a=r[0];e.addEventListener(t,r[0]=o=>a.call(e,r[1],o))}else e.addEventListener(t,r)}function f8(e,t,r={}){const n=Object.keys(t||{}),a=Object.keys(r);let o,i;for(o=0,i=a.length;o<i;o++){const s=a[o];!s||s==="undefined"||t[s]||(rx(e,s,!1),delete r[s])}for(o=0,i=n.length;o<i;o++){const s=n[o],l=!!t[s];!s||s==="undefined"||r[s]===l||!l||(rx(e,s,!0),r[s]=l)}return r}function p8(e,t,r){if(!t)return r?bd(e,"style"):t;const n=e.style;if(typeof t=="string")return n.cssText=t;typeof r=="string"&&(n.cssText=r=void 0),r||(r={}),t||(t={});let a,o;for(o in r)t[o]==null&&n.removeProperty(o),delete r[o];for(o in t)a=t[o],a!==r[o]&&(n.setProperty(o,a),r[o]=a);return r}function IN(e,t={},r,n){const a={};return n||Xa(()=>a.children=Es(e,t.children,a.children)),Xa(()=>t.ref&&t.ref(e)),Xa(()=>m8(e,t,r,!0,a,!0)),a}function h8(e,t,r){return qt(()=>e(t,r))}function Ed(e,t,r,n){if(r!==void 0&&!n&&(n=[]),typeof t!="function")return Es(e,t,n,r);Xa(a=>Es(e,t(),a,r),n)}function m8(e,t,r,n,a={},o=!1){t||(t={});for(const i in a)if(!(i in t)){if(i==="children")continue;a[i]=nx(e,i,null,a[i],r,o)}for(const i in t){if(i==="children"){n||Es(e,t.children);continue}const s=t[i];a[i]=nx(e,i,s,a[i],r,o)}}function v8(e){let t,r;if(!Ie.context||!(t=Ie.registry.get(r=b8()))){if(Ie.context,!e)throw new Error("Unrecoverable Hydration Mismatch. No template for key: "+r);return e()}return Ie.completed&&Ie.completed.add(t),Ie.registry.delete(r),t}function y8(e){return e.toLowerCase().replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function rx(e,t,r){const n=t.trim().split(/\s+/);for(let a=0,o=n.length;a<o;a++)e.classList.toggle(n[a],r)}function nx(e,t,r,n,a,o){let i,s,l,u,c;if(t==="style")return p8(e,r,n);if(t==="classList")return f8(e,r,n);if(r===n)return n;if(t==="ref")o||r(e);else if(t.slice(0,3)==="on:"){const d=t.slice(3);n&&e.removeEventListener(d,n),r&&e.addEventListener(d,r)}else if(t.slice(0,10)==="oncapture:"){const d=t.slice(10);n&&e.removeEventListener(d,n,!0),r&&e.addEventListener(d,r,!0)}else if(t.slice(0,2)==="on"){const d=t.slice(2).toLowerCase(),f=o8.has(d);if(!f&&n){const p=Array.isArray(n)?n[0]:n;e.removeEventListener(d,p)}(f||r)&&($N(e,d,r,f),f&&ON([d]))}else if(t.slice(0,5)==="attr:")bd(e,t.slice(5),r);else if((c=t.slice(0,5)==="prop:")||(l=t8.has(t))||!a&&((u=a8(t,e.tagName))||(s=e8.has(t)))||(i=e.nodeName.includes("-")))c&&(t=t.slice(5),s=!0),t==="class"||t==="className"?AN(e,r):i&&!s&&!l?e[y8(t)]=r:e[u||t]=r;else{const d=a&&t.indexOf(":")>-1&&s8[t.split(":")[0]];d?d8(e,d,t,r):bd(e,r8[t]||t,r)}return r}function g8(e){const t=`$$${e.type}`;let r=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==r&&Object.defineProperty(e,"target",{configurable:!0,value:r}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return r||document}}),Ie.registry&&!Ie.done&&(Ie.done=_$HY.done=!0);r;){const n=r[t];if(n&&!r.disabled){const a=r[`${t}Data`];if(a!==void 0?n.call(r,a,e):n.call(r,e),e.cancelBubble)return}r=r._$host||r.parentNode||r.host}}function Es(e,t,r,n,a){if(Ie.context){!r&&(r=[...e.childNodes]);let s=[];for(let l=0;l<r.length;l++){const u=r[l];u.nodeType===8&&u.data.slice(0,2)==="!$"?u.remove():s.push(u)}r=s}for(;typeof r=="function";)r=r();if(t===r)return r;const o=typeof t,i=n!==void 0;if(e=i&&r[0]&&r[0].parentNode||e,o==="string"||o==="number"){if(Ie.context)return r;if(o==="number"&&(t=t.toString()),i){let s=r[0];s&&s.nodeType===3?s.data=t:s=document.createTextNode(t),r=$i(e,r,n,s)}else r!==""&&typeof r=="string"?r=e.firstChild.data=t:r=e.textContent=t}else if(t==null||o==="boolean"){if(Ie.context)return r;r=$i(e,r,n)}else{if(o==="function")return Xa(()=>{let s=t();for(;typeof s=="function";)s=s();r=Es(e,s,r,n)}),()=>r;if(Array.isArray(t)){const s=[],l=r&&Array.isArray(r);if(GE(s,t,r,a))return Xa(()=>r=Es(e,s,r,n,!0)),()=>r;if(Ie.context){if(!s.length)return r;for(let u=0;u<s.length;u++)if(s[u].parentNode)return r=s}if(s.length===0){if(r=$i(e,r,n),i)return r}else l?r.length===0?ax(e,s,n):l8(e,r,s):(r&&$i(e),ax(e,s));r=s}else if(t.nodeType){if(Ie.context&&t.parentNode)return r=i?[t]:t;if(Array.isArray(r)){if(i)return r=$i(e,r,n,t);$i(e,r,null,t)}else r==null||r===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);r=t}}return r}function GE(e,t,r,n){let a=!1;for(let o=0,i=t.length;o<i;o++){let s=t[o],l=r&&r[o],u;if(!(s==null||s===!0||s===!1))if((u=typeof s)=="object"&&s.nodeType)e.push(s);else if(Array.isArray(s))a=GE(e,s,l)||a;else if(u==="function")if(n){for(;typeof s=="function";)s=s();a=GE(e,Array.isArray(s)?s:[s],Array.isArray(l)?l:[l])||a}else e.push(s),a=!0;else{const c=String(s);l&&l.nodeType===3&&l.data===c?e.push(l):e.push(document.createTextNode(c))}}return a}function ax(e,t,r=null){for(let n=0,a=t.length;n<a;n++)e.insertBefore(t[n],r)}function $i(e,t,r,n){if(r===void 0)return e.textContent="";const a=n||document.createTextNode("");if(t.length){let o=!1;for(let i=t.length-1;i>=0;i--){const s=t[i];if(a!==s){const l=s.parentNode===e;!o&&!i?l?e.replaceChild(a,s):e.insertBefore(a,r):l&&s.remove()}else o=!0}}else e.insertBefore(a,r);return[a]}function b8(){const e=Ie.context;return`${e.id}${e.count++}`}var E8="http://www.w3.org/2000/svg";function NN(e,t=!1){return t?document.createElementNS(E8,e):document.createElement(e)}function _8(e){const{useShadow:t}=e,r=document.createTextNode(""),n=()=>e.mount||document.body,a=ex();let o,i=!!Ie.context;return qw(()=>{i&&(ex().user=i=!1),o||(o=IG(a,()=>hr(()=>e.children)));const s=n();if(s instanceof HTMLHeadElement){const[l,u]=dr(!1),c=()=>u(!0);Ya(d=>Ed(s,()=>l()?d():o(),null)),nu(c)}else{const l=NN(e.isSVG?"g":"div",e.isSVG),u=t&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return r.parentNode},configurable:!0}),Ed(u,o),s.appendChild(l),e.ref&&e.ref(l),nu(()=>s.removeChild(l))}},void 0,{render:!i}),r}function w8(e){const[t,r]=xN(e,["component"]),n=hr(()=>t.component);return hr(()=>{const a=n();switch(typeof a){case"function":return Object.assign(a,{[SG]:!0}),qt(()=>a(r));case"string":const o=i8.has(a),i=Ie.context?v8():NN(a,o);return IN(i,r,o),i}})}var ls,Ou,Au,$u,Qo,us,cs,ds,fs,ps,Iu,NO,C8=(NO=class{constructor(e){pe(this,ls,void 0);pe(this,Ou,void 0);pe(this,Au,void 0);pe(this,$u,void 0);pe(this,Qo,!1);pe(this,us,void 0);pe(this,cs,void 0);pe(this,ds,void 0);pe(this,fs,void 0);pe(this,ps,void 0);pe(this,Iu,void 0);const{client:t,queryFlavor:r,version:n,onlineManager:a,buttonPosition:o,position:i,initialIsOpen:s,errorTypes:l}=e;se(this,ls,dr(t)),se(this,Au,r),se(this,$u,n),se(this,Ou,a),se(this,us,dr(o)),se(this,cs,dr(i)),se(this,ds,dr(s)),se(this,fs,dr(l))}setButtonPosition(e){q(this,us)[1](e)}setPosition(e){q(this,cs)[1](e)}setInitialIsOpen(e){q(this,ds)[1](e)}setErrorTypes(e){q(this,fs)[1](e)}setClient(e){q(this,ls)[1](e)}mount(e){if(q(this,Qo))throw new Error("Devtools is already mounted");const t=u8(()=>{const[r]=q(this,us),[n]=q(this,cs),[a]=q(this,ds),[o]=q(this,fs),[i]=q(this,ls);let s;q(this,ps)?s=q(this,ps):(s=VG(()=>Promise.resolve().then(()=>require("./4TNE5QTO-acef2331.js"))),se(this,ps,s));const l=this;return SN(s,TN({get queryFlavor(){return q(l,Au)},get version(){return q(l,$u)},get onlineManager(){return q(l,Ou)}},{get client(){return i()},get buttonPosition(){return r()},get position(){return n()},get initialIsOpen(){return a()},get errorTypes(){return o()}}))},e);se(this,Qo,!0),se(this,Iu,t)}unmount(){var e;if(!q(this,Qo))throw new Error("Devtools is not mounted");(e=q(this,Iu))==null||e.call(this),se(this,Qo,!1)}},ls=new WeakMap,Ou=new WeakMap,Au=new WeakMap,$u=new WeakMap,Qo=new WeakMap,us=new WeakMap,cs=new WeakMap,ds=new WeakMap,fs=new WeakMap,ps=new WeakMap,Iu=new WeakMap,NO);function R8(e){const t=Ds(),r=e.client||t,n=K.useRef(null),{buttonPosition:a,position:o,initialIsOpen:i,errorTypes:s}=e,[l]=K.useState(new C8({client:r,queryFlavor:"React Query",version:"5",onlineManager:tu,buttonPosition:a,position:o,initialIsOpen:i,errorTypes:s}));return K.useEffect(()=>{l.setClient(r)},[r,l]),K.useEffect(()=>{a&&l.setButtonPosition(a)},[a,l]),K.useEffect(()=>{o&&l.setPosition(o)},[o,l]),K.useEffect(()=>{l.setInitialIsOpen(i||!1)},[i,l]),K.useEffect(()=>{l.setErrorTypes(s||[])},[s,l]),K.useEffect(()=>(n.current&&l.mount(n.current),()=>{l.unmount()}),[l]),K.createElement("div",{className:"tsqd-parent-container",ref:n})}var S8=process.env.NODE_ENV!=="development"?function(){return null}:R8;const T8=({showDevTools:e,children:t})=>{const r=new oG({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:6e4}}});return P.jsxs(cG,{client:r,children:[t,e&&P.jsx(S8,{initialIsOpen:!1})]})};const kb="joinCommunityButton",Dw=({isMember:e=!1,isShort:t=!1,functions:{join:r,leave:n}={join:()=>{},leave:()=>{}}})=>{const a=We(),o=K.useContext(da),i=o&&typeof o.id=="string",[s,l]=K.useState(e),[u,c]=K.useState(e?"joined":"notJoined");K.useEffect(()=>{u==="joining"?c("joined"):u==="leaving"&&c("notJoined")},[s]);const d={},f={};return s&&u!=="leaving"&&(d["data-hover-text"]=a.formatMessage({id:`${kb}_leave`}),d["aria-label"]=a.formatMessage({id:`${kb}_member_aria`}),f["aria-hidden"]="true"),P.jsx(Tt,{variant:s?"secondary":"primary",size:"medium",styling:{fullWidth:!0},icon:s&&u!=="leaving"?{icon:"tick",position:"left"}:!1,onClick:async p=>{i&&(p.currentTarget.blur(),s?(c("leaving"),typeof n=="function"&&await n()):(c("joining"),typeof r=="function"&&await r()),l(!s))},className:be("join-community-button",u,{active:u==="joining"}),disabled:!i,...d,children:P.jsx("span",{className:"text",...f,children:a.formatMessage({id:`${kb}${["joining","leaving"].includes(u)?`_${u}`:s?"_member":t?"_short":""}`})})})};const Lb="communityDetails_",x8=({isMember:e=!1,slug:t,members:{number:r,data:n}={number:void 0,data:[]},className:a="",...o})=>{const i=We(),s=r||(n==null?void 0:n.length)||0;return P.jsxs("div",{className:be("community-details",a),children:[P.jsx(ud,{}),P.jsxs("div",{className:"member-details",children:[P.jsxs("div",{className:"top",children:[P.jsxs("h3",{children:[i.formatMessage({id:`${Lb}members`}),P.jsx("span",{className:"count",children:s})]}),P.jsx("p",{className:"text-small",children:P.jsx("a",{href:`/communities/${t}/members`,children:i.formatMessage({id:`${Lb}viewAll`})})})]}),P.jsx(rN,{contributors:{total:r,data:n!=null&&n.length?n:[{},{},{},{},{}]},styling:{size:"medium",showGap:!0,showPlaceholders:s===0},cutoff:5})]}),P.jsx(Dw,{isMember:e,...o}),e&&P.jsx(Tt,{variant:"primary",icon:{icon:"plus"},styling:{fullWidth:!0},children:i.formatMessage({id:`${Lb}invite`})})]})};const P8=({breadcrumbs:e,cutoff:t=20,className:r=""})=>{const n=We();return P.jsxs(P.Fragment,{children:[P.jsx(Kt,{element:"p",children:n.formatMessage({id:"breadcrumbs_label"})}),P.jsx("ul",{className:be("breadcrumbs text-small",r),children:e.map(({text:a,href:o,current:i=!1},s)=>P.jsxs("li",{children:[i&&P.jsx(Kt,{element:"span",children:n.formatMessage({id:"breadcrumbs_currentPage"})}),P.jsx(af,{href:i?void 0:o,children:xw(a,t)})]},`${window.btoa(a)}_${s}`))})]})};const O8=({options:e,allOption:t=!1,allowMultiple:r=!0,onChange:n=()=>{},className:a=""})=>{const o=We(),i=t?[{id:"all",text:typeof t!="boolean"&&t.text||o.formatMessage({id:"filters_all"})},...e]:e,[s,l]=K.useState(t?["all"]:[]),u=(c,d)=>{let f=[];s.includes(c)?f=s.filter(p=>p!==c):c==="all"?f=["all"]:r?f=[...s.filter(p=>p!=="all"),c]:f=[c],l(p=>(n&&typeof n=="function"&&n({current:f,previous:p}),f)),d&&typeof d=="function"&&d()};return P.jsx("ul",{className:be("filters",a),children:i.map(({id:c,text:d,disabled:f=!1,callback:p=()=>{}})=>{let h={};return f&&(h={disabled:!0,"aria-label":o.formatMessage({id:"filters_disabled"},{name:d})}),P.jsx("li",{children:P.jsx("button",{className:be(c,{selected:s.includes(c)}),onClick:m=>{m.preventDefault(),m.stopPropagation(),u(c,p)},...h,children:d})},c)})})};const Db=wE({locale:"en",messages:_w}),MN=({page:e=1,length:t=0,limit:r=10,loadNextPage:n=()=>{},icon:a=!1,messages:o={button:Db.formatMessage({id:"loadMore_button"}),endOfFeed:Db.formatMessage({id:"loadMore_endOfFeed"}),error:Db.formatMessage({id:"loadMore_error"})},className:i="",gtmContext:s="LoadMore"})=>{const[l,u]=K.useState(!1),[c,d]=K.useState(!1);if(t<=0||t<r*e)return null;const f=async p=>{try{await n(p)}catch(h){h instanceof Error&&h.message&&h.message.includes("Cannot read items")?d(!0):u(!0)}};return P.jsxs("footer",{className:be("load-more",i),children:[l&&P.jsx("p",{className:"error",children:o.error}),c?P.jsx("p",{children:o.endOfFeed}):P.jsx(Tt,{variant:"secondary",icon:a,onClick:f,"data-gtm-event-context":s,"data-gtm-event-type":"load-more-click",className:"gtm-trackable","data-testid":"load-more-button",children:o.button})]})};let Cc=!1;const qN=({element:e="div",id:t="more-menu",options:r,className:n=""})=>{const a=We(),o=K.useRef(null),[i,s]=K.useState(!1),l=u=>{o.current&&u.target instanceof HTMLElement&&!o.current.contains(u.target)&&s(!1)};return K.useEffect(()=>(document.addEventListener("click",l,!0),()=>{document.removeEventListener("click",l,!0)})),K.createElement(e,{ref:o,className:be("more-menu text-medium",n),children:P.jsxs(P.Fragment,{children:[P.jsx(Tt,{variant:"tertiary",size:"medium",icon:{icon:"ellipsis"},onClick:()=>s(!i),"aria-haspopup":"true","aria-expanded":i,"aria-controls":t,screenreaderText:a.formatMessage({id:"moreMenu"})}),P.jsx("ul",{id:t,hidden:!i,children:r.map(({href:u,onClick:c,text:d,icon:f,...p},h)=>{const m={...p,onClick:b=>{s(!1),typeof c=="function"&&c(b)},onFocus:()=>{Cc&&(clearTimeout(Cc),Cc=!1)},onBlur:()=>{Cc=setTimeout(()=>{s(!1)},100)}};return u&&(m.href=u),P.jsx("li",{children:P.jsx(Tt,{variant:"tertiary",size:"medium",icon:f?{icon:f,position:"left"}:!1,...m,children:d})},`${window.btoa(d)}_${h}`)})})]})})};const Bw=({variant:e="default",version:t="default",className:r="",...n})=>P.jsx("p",{className:"logo-wrapper",children:P.jsx("a",{href:"/home/",className:be("logo",e,t,r),...n,children:P.jsx(Kt,{children:P.jsx(Qa,{id:"apolitical"})})})});const A8={"2-1":901},$8=({layout:e="2-1",hideOnMobile:t=!1,className:r="",children:n})=>{const a=Lu(!0);let o=n;return K.Children.count(n)===1&&(o=K.Children.toArray(n)[0],o.props&&(o=o.props.children)),P.jsx("section",{className:be("columns",`layout-${e}`,r),children:K.Children.map(o,(i,s)=>t!==!1&&s===t&&a&&a<A8[e]?null:i)})};const Bb="cookieBanner_",Fb=["apol-cookie-banner","apolitical-performance-cookie-consent","functional-cookie-consent"],jb=new Date(Date.now()+12*30*24*60*60*1e3),kN=()=>{const e=We(),[t,r,n]=jO(Fb),[a,o]=K.useState(!t["apol-cookie-banner"]),i=()=>{Fb.forEach(c=>{r(c,!0,{path:"/",expires:jb,domain:c==="apolitical-performance-cookie-consent"?".apolitical.co":void 0})}),o(!1),window.location.reload()},s=()=>{r("apol-cookie-banner",!0,{path:"/",expires:jb}),Fb.forEach(c=>{if(c==="apol-cookie-banner"){r(c,!0,{path:"/",expires:jb});return}n(c)}),o(!1)};if(!a)return null;const l=[{id:"settings",href:"/pages/cookie-policy",gtmType:"policy-page"},{id:"reject",onClick:s,gtmType:"reject-all"},{id:"accept",onClick:i,gtmType:"accepted-all"}],u=[];return l.forEach(c=>{u.push({variant:c.href?"tertiary":"primary",href:c.href,onClick:c.onClick,className:"gtm-trackable","data-gtm-event-context":"cookie-banner","data-gtm-event-type":`cookie-${c.gtmType}-click`,children:e.formatMessage({id:`${Bb}buttons_${c.id}`})})}),P.jsxs("aside",{id:"cookie-banner",className:"text-medium",children:[P.jsx("h6",{children:e.formatMessage({id:`${Bb}title`})}),P.jsx("p",{children:e.formatMessage({id:`${Bb}text`})}),P.jsx(Du,{buttons:u})]})},ra={platform:{order:["events","courses","qanda","articles"],events:{href:"/events/",gtmType:"events-click"},courses:{href:"/microcourses/",gtmType:"microcourses-click"},qanda:{href:"/questions-answers/",gtmType:"q-and-a-click"},articles:{href:"/solution-articles/",gtmType:"articles-click"}},community:{order:["support","post","join","guidelines"],support:{name:"Support FAQ",href:"/pages/support-faq",gtmType:"support-faq-click"},post:{href:"/pages/post-an-article",gtmType:"post-an-article-click"},join:{href:"/pages/who-can-join-the-community",gtmType:"who-can-join-click"},guidelines:{href:"/pages/values-and-guidelines",gtmType:"guidelines-and-values-click"}},company:{order:["story","team","careers","partner","contact"],story:{href:"/pages/our-story",gtmType:"our-story-click"},team:{href:"/pages/meet-our-team",gtmType:"team-click"},careers:{href:"/pages/careers",gtmType:"careers-click"},partner:{href:"/partnerships/",gtmType:"partner-with-us-click"},contact:{href:"/pages/get-in-touch",gtmType:"contact-click"},child:"legal"},legal:{order:["privacy","terms","cookie","accessibility"],privacy:{href:"https://about.apolitical.co/privacy-policy",gtmType:"privacy-policy-link"},terms:{href:"https://about.apolitical.co/terms-and-conditions",gtmType:"terms-conditions-link"},cookie:{href:"/pages/cookie-policy",gtmType:"cookie-policy-link"},accessibility:{href:"/pages/accessibility-statement",gtmType:"accessibility-link"},text:{order:["dataProtection","euDataProtection"],dataProtection:{email:"dpo@apolitical.co",gtmType:"email-dpo-link"},euDataProtection:{email:"dpo.agl@apolitical.foundation",gtmType:"email-eu-dpo-link"}}},contact:{text:{order:["correspondence","registered","berlin","support","business"],correspondence:{address:!0},registered:{address:!0},berlin:{address:!0},support:{email:"concierge@apolitical.co",gtmType:"concierge-email-click"},business:{email:"hello@apolitical.co",gtmType:"hello-email-click"}}},social:{order:["linkedin","twitter","facebook"],linkedin:{href:"https://www.linkedin.com/company/apolitical"},twitter:{href:"https://twitter.com/apoliticalco"},facebook:{href:"https://www.facebook.com/apoliticalco"}}};const Bi="footer_",_d="SiteFooter",ox=({group:e})=>{const t=ra[e].order||[];let r=!1;return"text"in ra[e]&&(r=ra[e].text),P.jsxs(K.Fragment,{children:[P.jsx("p",{className:"pre-title",children:P.jsx(Qa,{id:`${Bi}${e}`})}),Array.isArray(t)&&t.length>0&&P.jsx("ul",{className:"text-medium",children:t.map(n=>{if(["order","child","text"].includes(n))return null;const{href:a,gtmType:o}=ra[e][n],i={};return["legal"].includes(e)&&(i.target="_blank",i.rel="noopener"),P.jsx("li",{children:P.jsx("a",{href:a,className:"gtm-trackable","data-gtm-event-context":_d,"data-gtm-event-type":o,...i,children:P.jsx(Qa,{id:`${Bi}${e}_${n}`})})},`${e}_${n}`)})}),typeof r!="boolean"&&"order"in r&&Array.isArray(r.order)&&P.jsx("dl",{className:"text-medium",children:r.order.map(n=>P.jsxs(K.Fragment,{children:[P.jsx("dt",{children:P.jsx(Qa,{id:`${Bi}${e}_${n}`})}),P.jsxs("dd",{children:[typeof r!="boolean"&&r[n].address&&P.jsx("address",{children:P.jsx(Qa,{id:`${Bi}${e}_${n}_address`,values:{br:P.jsx("br",{})}})}),typeof r!="boolean"&&r[n].email&&P.jsx("a",{href:`mailto:${r[n].email}`,className:"gtm-trackable","data-gtm-event-context":_d,"data-gtm-event-type":r[n].gtmType,children:r[n].email})]})]},`dl-${e}-${n}`))})]},e)},Fw=()=>P.jsx("div",{id:"footer",children:P.jsxs("div",{className:"wrapper",children:[P.jsx(Z_,{element:"hr"}),P.jsx(Bw,{variant:"inverted",version:"full",className:"gtm-trackable","data-gtm-event-context":_d,"data-gtm-event-type":"logo-homepage-link"}),P.jsx("footer",{children:["platform","community","company","contact"].map(e=>P.jsxs("div",{className:"group",children:[P.jsx(ox,{group:e}),Object.keys(ra[e]).includes("child")&&P.jsx(ox,{group:ra[e].child})]},e))}),P.jsx("hr",{}),P.jsxs("div",{className:"sub-footer",children:[P.jsx("ul",{children:Array.isArray(ra.social.order)&&ra.social.order.map(e=>{const t=ra.social[e];return P.jsx("li",{className:e,children:P.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"gtm-trackable","data-gtm-event-context":_d,"data-gtm-event-type":"social-click",children:P.jsx("span",{className:"hidden",children:P.jsx(Qa,{id:`${Bi}social_${e}`})})})},e)})}),P.jsx("small",{children:P.jsx(Qa,{id:`${Bi}copyright`,values:{currentYear:new Date().getFullYear()}})})]})]})});const Rc="emailHelperTextBox_",I8=({type:e,email:t,redirectPath:r,resendVerificationCode:n})=>{const a=We(),[o,i]=K.useState({path:`${Rc}default`,type:"default",link:{},mail:{},error:""}),[s,l]=K.useState(!1),u=K.useCallback(p=>{p.preventDefault(),p.stopPropagation();const h=m=>{i({path:`${Rc}error_verificationFailedToSend`,type:"error",link:{"data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:b=>u(b),href:"#","data-testid":"send-verify-email-click"},mail:{href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"ErrorVerifyingBox","data-gtm-event-type":"email-concierge-click"},error:m})};if(typeof n!="function"){h(a.formatMessage({id:`${Rc}error_noFunction`}));return}l(!0),n(t).then(()=>{localStorage.setItem("email",t),window.location.href=r||"/signup/verify-email"}).catch(m=>{h(m.message)}).finally(()=>{l(!1)})},[t,r,n]);K.useEffect(()=>{let p=Rc,h="default",m={},b={};switch(e){case"gov":p+="autoApproved",h="success";break;case"nonGov":p+="unrecognisedEmail",h="error",m={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"NonGovEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break;case"pending":p+="pendingApproval",h="error",b={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;case"verify":p+="emailUnverified",h="error",m={href:"#","data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:y=>u(y),"data-testid":"send-verify-email-click"};break;case"exists":p+="emailAlreadyExists",h="error",m={href:"/user-onboarding/login","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"login-click"},b={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;default:p+="default",m={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"DefaultEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break}i({...o,path:p,type:h,link:m,mail:b})},[e]);const c={};return["link","mail"].forEach(p=>{c[p]=Object.keys(o[p]).length?h=>P.jsx("a",{...o[p],children:h}):h=>h}),P.jsx(KI,{type:o.type,heading:s?!1:a.formatMessage({id:`${o.path}_title`}),children:s?P.jsxs(P.Fragment,{children:[P.jsx(On,{element:"span"}),P.jsx(On,{element:"span"})]}):a.formatMessage({id:`${o.path}_text`},{...c,strong:p=>P.jsx("strong",{children:p}),em:p=>P.jsx("em",{children:p}),br:P.jsxs(P.Fragment,{children:[P.jsx("br",{}),P.jsx("br",{})]}),error:o.error})})};const Sc="passwordRules_",LN="isMoreThanEightCharacters",DN="includesNumberAndSymbol",BN="includesLowerAndUppercase",N8={[LN]:"8Characters",[DN]:"numberSymbol",[BN]:"lowercaseUppercase"},M8=({matchingRules:e={isMoreThanEightCharacters:!1,includesNumberAndSymbol:!1,includesLowerAndUppercase:!1},className:t=""})=>{const r=We();return P.jsxs("aside",{className:be("password-rules",t),children:[P.jsx("small",{children:r.formatMessage({id:`${Sc}intro`})}),P.jsx("ul",{children:[LN,DN,BN].map(n=>P.jsxs("li",{className:be({matches:e[n]}),children:[P.jsxs(Kt,{children:[r.formatMessage({id:`${Sc}rule_label`})," "]}),P.jsx("span",{children:r.formatMessage({id:`${Sc}rule_${N8[n]}`})}),!e[n]&&P.jsxs(Kt,{element:"strong",children:[" "," ",r.formatMessage({id:`${Sc}notMet`})]})]},`rule-${n}`))})]})},q8=K.memo(M8);const k8=({text:e={},topRating:t=5,functions:{createRating:r=()=>null,updateRating:n=()=>{},reportError:a=()=>{}},className:o="",hasLoaded:i=!1})=>{const s=We(),[l,u]=K.useState({setUp:!1,id:null,rating:null,disabled:!0}),c=async()=>{try{const y=await r();u(v=>({...v,setUp:!0,id:y&&y.id,disabled:!1}))}catch(y){u(v=>({...v,setUp:!0,disabled:!0})),a(y)}};if(K.useEffect(()=>{i&&!l.setUp&&c()},[i]),!i)return P.jsx(On,{className:"rating-placeholder"});const{id:d,rating:f,disabled:p}=l,h="ratings_",m={text:s.formatMessage({id:`${h}text`}),low:s.formatMessage({id:`${h}low`}),high:s.formatMessage({id:`${h}high`}),success:s.formatMessage({id:`${h}success`}),...e},b=async y=>{if(!(!d||p))try{u(v=>({...v,rating:y,disabled:!0})),await n({id:d,value:y})}catch(v){u(_=>({..._,rating:null})),a(v)}finally{u(v=>({...v,disabled:!1}))}};return P.jsxs("div",{className:be("rating",o),children:[P.jsx("span",{className:"label",children:m[f?"success":"text"]}),P.jsx("ol",{children:Array.from(new Array(t).keys()).map(y=>{const v=y+1;return P.jsx("li",{className:be({selected:f&&v<=f}),children:P.jsx(Tt,{variant:"tertiary",size:"small",icon:{icon:`star${!f||v>f?"_empty":""}`,position:"left",hover:"star"},screenreaderText:`${s.formatMessage({id:`${h}stars`},{number:v,total:t})}${v===1||v===t?` - ${m[v===1?"low":"high"]}`:""}`,onClick:_=>{_.preventDefault(),_.stopPropagation(),b(v)},disabled:p})},`rating-${v}`)})})]})};const FN=({id:e="search",className:t="",handleToggle:r=!1,defaultValue:n="",gtmContext:a="search-bar",gtmEvent:o="form-submission"})=>{const{searchIsOpen:i=!0,isDesktopVersion:s=!1}=r||{},l=We(),u=K.useRef(null);Jo(()=>{!r||s||!i||u.current&&u.current.focus()},[i]);const c=d=>{d.preventDefault(),d.stopPropagation(),!(!u.current||!u.current.value||u.current.value.length<1)&&(window.location.href=`/search?search=${encodeURIComponent(u.current.value)}`)};return P.jsx("form",{onSubmit:c,className:be("search-form gtm-trackable",t),"data-gtm-event-context":a,"data-gtm-event-type":o,children:P.jsx("fieldset",{id:`${e}-form`,hidden:r?!i:!1,role:"search",children:P.jsxs("p",{children:[P.jsx(Kt,{element:"label",htmlFor:e,children:l.formatMessage({id:"search_label"})}),P.jsx("input",{ref:u,type:"search",id:e,name:e,defaultValue:n,placeholder:l.formatMessage({id:"search_placeholder"}),onKeyDown:d=>{d.key==="Enter"&&c(d)}}),P.jsx("button",{className:"clear",onClick:d=>{d.preventDefault(),d.stopPropagation(),u.current&&u.current.value&&(u.current.value="")},children:P.jsx(Kt,{children:l.formatMessage({id:"search_clear"})})}),P.jsx("button",{className:"search",onClick:c,children:P.jsx(Kt,{children:l.formatMessage({id:"search_cta"})})})]})})})};var L8="Expected a function",jN="__lodash_hash_undefined__",UN=1/0,D8="[object Function]",B8="[object GeneratorFunction]",F8="[object Symbol]",j8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U8=/^\w*$/,H8=/^\./,G8=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V8=/[\\^$.*+?()[\]{}|]/g,W8=/\\(\\)?/g,z8=/^\[object .+?Constructor\]$/,Q8=typeof we=="object"&&we&&we.Object===Object&&we,K8=typeof self=="object"&&self&&self.Object===Object&&self,jw=Q8||K8||Function("return this")();function Y8(e,t){return e==null?void 0:e[t]}function X8(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var J8=Array.prototype,Z8=Function.prototype,HN=Object.prototype,Ub=jw["__core-js_shared__"],ix=function(){var e=/[^.]+$/.exec(Ub&&Ub.keys&&Ub.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),GN=Z8.toString,Uw=HN.hasOwnProperty,VN=HN.toString,eV=RegExp("^"+GN.call(Uw).replace(V8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),sx=jw.Symbol,tV=J8.splice,rV=WN(jw,"Map"),au=WN(Object,"create"),lx=sx?sx.prototype:void 0,ux=lx?lx.toString:void 0;function ti(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function nV(){this.__data__=au?au(null):{}}function aV(e){return this.has(e)&&delete this.__data__[e]}function oV(e){var t=this.__data__;if(au){var r=t[e];return r===jN?void 0:r}return Uw.call(t,e)?t[e]:void 0}function iV(e){var t=this.__data__;return au?t[e]!==void 0:Uw.call(t,e)}function sV(e,t){var r=this.__data__;return r[e]=au&&t===void 0?jN:t,this}ti.prototype.clear=nV;ti.prototype.delete=aV;ti.prototype.get=oV;ti.prototype.has=iV;ti.prototype.set=sV;function Fs(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function lV(){this.__data__=[]}function uV(e){var t=this.__data__,r=hf(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():tV.call(t,r,1),!0}function cV(e){var t=this.__data__,r=hf(t,e);return r<0?void 0:t[r][1]}function dV(e){return hf(this.__data__,e)>-1}function fV(e,t){var r=this.__data__,n=hf(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Fs.prototype.clear=lV;Fs.prototype.delete=uV;Fs.prototype.get=cV;Fs.prototype.has=dV;Fs.prototype.set=fV;function ci(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function pV(){this.__data__={hash:new ti,map:new(rV||Fs),string:new ti}}function hV(e){return mf(this,e).delete(e)}function mV(e){return mf(this,e).get(e)}function vV(e){return mf(this,e).has(e)}function yV(e,t){return mf(this,e).set(e,t),this}ci.prototype.clear=pV;ci.prototype.delete=hV;ci.prototype.get=mV;ci.prototype.has=vV;ci.prototype.set=yV;function hf(e,t){for(var r=e.length;r--;)if(PV(e[r][0],t))return r;return-1}function gV(e,t){t=wV(t,e)?[t]:_V(t);for(var r=0,n=t.length;e!=null&&r<n;)e=e[TV(t[r++])];return r&&r==n?e:void 0}function bV(e){if(!QN(e)||RV(e))return!1;var t=OV(e)||X8(e)?eV:z8;return t.test(xV(e))}function EV(e){if(typeof e=="string")return e;if(Gw(e))return ux?ux.call(e):"";var t=e+"";return t=="0"&&1/e==-UN?"-0":t}function _V(e){return zN(e)?e:SV(e)}function mf(e,t){var r=e.__data__;return CV(t)?r[typeof t=="string"?"string":"hash"]:r.map}function WN(e,t){var r=Y8(e,t);return bV(r)?r:void 0}function wV(e,t){if(zN(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Gw(e)?!0:U8.test(e)||!j8.test(e)||t!=null&&e in Object(t)}function CV(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function RV(e){return!!ix&&ix in e}var SV=Hw(function(e){e=$V(e);var t=[];return H8.test(e)&&t.push(""),e.replace(G8,function(r,n,a,o){t.push(a?o.replace(W8,"$1"):n||r)}),t});function TV(e){if(typeof e=="string"||Gw(e))return e;var t=e+"";return t=="0"&&1/e==-UN?"-0":t}function xV(e){if(e!=null){try{return GN.call(e)}catch{}try{return e+""}catch{}}return""}function Hw(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(L8);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i),i};return r.cache=new(Hw.Cache||ci),r}Hw.Cache=ci;function PV(e,t){return e===t||e!==e&&t!==t}var zN=Array.isArray;function OV(e){var t=QN(e)?VN.call(e):"";return t==D8||t==B8}function QN(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function AV(e){return!!e&&typeof e=="object"}function Gw(e){return typeof e=="symbol"||AV(e)&&VN.call(e)==F8}function $V(e){return e==null?"":EV(e)}function IV(e,t,r){var n=e==null?void 0:gV(e,t);return n===void 0?r:n}var NV=IV;const KN=Yt(NV),tt={timeouts:{},handlerCalled:{},getIsDesktopVersion:(e,t)=>{const r={navigation:{loggedIn:769,loggedOut:881},search:{loggedIn:961,loggedOut:1121}},n=o=>{const i=`logged${e?"In":"Out"}`;return t>=r[o][i]};let a={};return["navigation","search"].forEach(o=>{a[o]=n(o)}),a},shouldChangeHeaderIsVisible:(e,t,r)=>{Object.values(t).filter(a=>a===!0).length||r([{type:"headerIsVisible",value:e}])},handleMenus:({id:e,value:t,menus:r,dispatch:n})=>{if(r[e]===t||e==="account"&&t===!1&&r.navigation===!0)return;const a=Date.now();if(!t&&tt.handlerCalled[e]&&a-tt.handlerCalled[e]<500)return;tt.handlerCalled[e]=a;let o=[{type:`menus.${e}`,value:t}];t===!0&&Object.keys(r).forEach(i=>{i===e||r[i]===!1||o.push({type:`menus.${i}`,value:!1})}),n(o)},findFirstChild:(e,t,r=!1)=>{if(!e||!e[0])return!1;for(let n=0;n<=e.length;n++){if(!e[n])continue;if(e[n][t]&&(!r||e[n][t].includes(r)))return e[n];if(!t.includes("."))continue;const a=KN(e[n],t);if(!(typeof a>"u")&&(!r||a[t]&&a[t].includes(r)||a.value&&a.value.includes(r)||a.toString().includes(r)))return e[n]}return e[0].children?tt.findFirstChild(e[0].children,t,r):!1},autoFocus:({menu:e,navigationRef:t,isDesktopVersion:r,focusElements:n,dispatch:a})=>{if(!t.current||!t.current.children)return;const o=r?"desktop":"default";if(n[e][o]){n[e][o].focus();return}let i,s;switch(e){case"navigation":if(r){const l=tt.findFirstChild(t.current.children,"attributes.aria-controls","navigation");i=tt.findFirstChild(l.children,"href")}else i=tt.findFirstChild(t.current.children,"href");i||(i=t.current);break;case"account":if(s=tt.findFirstChild(t.current.children,"className","account"),!s||!s.children)return;i=tt.findFirstChild(s.children,"href");break;default:return}i&&(a([{type:`focusElements.${e}.${o}`,value:i}]),i.focus())},events:{onClick:(e,{id:t,callback:r,isOpen:n})=>{e.target&&e.target.attributes&&e.target.attributes.href||(e.preventDefault(),e.stopPropagation(),clearTimeout(tt.timeouts[t]),r(t,!n))},onFocus:({id:e})=>{clearTimeout(tt.timeouts[e])},onMouseEnter:({id:e,callback:t})=>{clearTimeout(tt.timeouts[e]),t(e,!0)},onBlur:({id:e,callback:t})=>{tt.timeouts[e]=setTimeout(()=>{t(e,!1)},250)}}},ou={order:["home","topics","partners","account"],home:{href:"/home/",hasVariantText:!0,gtmType:"homepage-click"},topics:{order:["explore","topics"],menuId:"navigation",explore:{order:["events","courses","q-and-a","articles"],events:{href:"/events/",className:"icon events"},courses:{href:"/microcourses/",gtmType:"microcourses-click",className:"icon courses"},"q-and-a":{href:"/questions-answers/",className:"icon q-and-a"},articles:{href:"/solution-articles/",gtmType:"articles-click",className:"icon articles"}},topics:{order:["climate","cities-and-local-government","digital-and-data","education","equity-justice-and-inclusion","health-and-social-care","innovation","leadership-and-skills","life-in-government","policymaking","transport-and-infrastructure","work-and-the-economy"],className:"columns",climate:{href:"/topics/climate/"},"cities-and-local-government":{href:"/topics/cities-and-local-government/"},"digital-and-data":{href:"/topics/digital-and-data/"},education:{href:"/topics/education/"},"equity-justice-and-inclusion":{href:"/topics/equity-justice-and-inclusion/"},"health-and-social-care":{href:"/topics/health-and-social-care/"},innovation:{href:"/topics/innovation/"},"leadership-and-skills":{href:"/topics/leadership-and-skills/"},"life-in-government":{href:"/topics/life-in-government/"},policymaking:{href:"/topics/policymaking/"},"transport-and-infrastructure":{href:"/topics/transport-and-infrastructure/"},"work-and-the-economy":{href:"/topics/work-and-the-economy/"}}},partners:{href:"/partnerships/",onlyShow:"logged-out"},account:{order:["profile","settings","log-out"],className:"account",onlyShow:"logged-in",doTrack:!1,profile:{href:"/profiles/me"},settings:{href:"/profiles/me/manage-account"},"log-out":{href:"/user-onboarding/logout",className:"divider"}},buttons:{order:["login","signup"],login:{href:"/user-onboarding/login"},signup:{href:"/signup/?ref=header-banner",props:{variant:"primary"}}}},wd=({id:e,isLoggedIn:t=!1,isDesktopVersion:r=!1,menus:n={},callback:a=()=>{},doTrack:o=null})=>{const i=We(),s=KN(ou,e);if(!s||s.onlyShow&&(s.onlyShow==="logged-in"&&!t||s.onlyShow==="logged-out"&&t))return null;const l="doTrack"in s,u=o===null?l?s.doTrack:!0:o,c=e.includes("buttons.");let d=`header_${e.replaceAll(".","_")}`;s.hasVariantText&&(d+=`_logged${t?"In":"Out"}`);let f=!1;if(s.href){let v=s.gtmType||`${e}-click`;if(v.includes(".")){const _=v.split("."),S=_[_.length-2];v=`${S==="topics"?`${S}-`:""}${_[_.length-1]}`}f={href:s.href,role:"menuitem"},u&&(f={...f,className:"gtm-trackable","data-gtm-event-type":v,"data-gtm-event-context":"HeaderButtons"}),c&&(f={...f,variant:"secondary",size:{mobile:"small",881:"large"},...s.props||{}})}const p=s.order&&s.order[0]&&s[s.order[0]],h=p&&s[s.order[0]].order,m=f&&window.location.pathname===s.href;let b={},y={};if(p){const v=s.menuId||e,_={onClick:S=>tt.events.onClick(S,{id:v,callback:a,isOpen:n[v]}),onFocus:()=>tt.events.onFocus({id:v}),onBlur:()=>tt.events.onBlur({id:v,callback:a}),onMouseLeave:()=>tt.events.onBlur({id:v,callback:a}),onMouseEnter:()=>tt.events.onMouseEnter({id:v,callback:a})};r&&(h&&(b={..._,onKeyPress:S=>{S.key==="Enter"&&tt.events.onClick(S,{id:v,callback:a,isOpen:n[v]})},tabIndex:"0","aria-haspopup":!0,"aria-expanded":n[v],"aria-controls":v}),y={hidden:v in n?!n[v]:!0}),h||(y={...y,..._})}return P.jsxs("li",{className:be({[s.className]:s.className,"has-submenu":p,parent:h,active:m}),role:"none",...b,children:[f?K.createElement(c?Tt:"a",f,i.formatMessage({id:d})):i.formatMessage({id:d}),s.order&&P.jsx("ul",{...y,children:s.order.map(v=>{if(!s[v])return null;const _={isLoggedIn:t,isDesktopVersion:r,menus:n,callback:a,doTrack:l?u:null};return s[v].order?P.jsxs("li",{className:be({[s[v].className]:s[v].className}),children:[i.formatMessage({id:`${d}_${v}`}),P.jsx("ul",{children:s[v].order.map(S=>P.jsx(wd,{id:`${e}.${v}.${S}`,..._},S))})]},v):P.jsx(wd,{id:`${e}.${v}`,..._},v)})})]},e)};const MV={height:67,height_desktop:83},Vw=()=>{const e=We(),t=K.useContext(da),r=Lu(!0,!0),n=t&&typeof t.id=="string",a=K.useMemo(()=>tt.getIsDesktopVersion(n,r),[n,r]),[o,i]=K.useReducer(GH,{headerIsVisible:!0,menus:{navigation:!1,search:!1,account:!1},focusElements:{navigation:{desktop:!1,default:!1},account:{desktop:!1,default:!1}}}),{headerIsVisible:s,menus:l,focusElements:u}=o;D$({scrollPosition:MV[`height${a.navigation?"_desktop":""}`],callbacks:{scrollUp:()=>{!a&&l.navigation||tt.shouldChangeHeaderIsVisible(!0,l,i)},scrollDown:()=>{!a&&l.navigation||tt.shouldChangeHeaderIsVisible(!1,l,i)}}});const c=(f,p)=>{tt.handleMenus({id:f,value:p,menus:l,dispatch:i})},d=K.useRef(null);return Jo(()=>{l.navigation&&tt.autoFocus({menu:"navigation",navigationRef:d,isDesktopVersion:a.navigation,focusElements:u,dispatch:i})},[l.navigation]),Jo(()=>{l.account&&tt.autoFocus({menu:"account",navigationRef:d,isDesktopVersion:a.navigation,focusElements:u,dispatch:i})},[l.account]),t&&t.isLoading?null:P.jsxs(P.Fragment,{children:[P.jsxs("nav",{id:"header",className:be({"logged-in":n,"logged-out":!n,visible:s}),children:[P.jsx(Kt,{element:"a",href:"#content-of-page",children:e.formatMessage({id:"header_skip"})}),P.jsx(Bw,{}),!a.navigation&&P.jsx("button",{className:"menu-button gtm-trackable",onClick:f=>{f.preventDefault(),f.stopPropagation(),c("navigation",!l.navigation)},"data-gtm-event-type":"open-tab-menu-click","data-gtm-event-context":"HeaderLeft-Chevron","aria-haspopup":"true","aria-expanded":l.navigation,"aria-controls":"navigation",children:P.jsx(Kt,{children:e.formatMessage({id:`header_menu_${l.navigation?"hide":"show"}`})})}),P.jsx("ul",{ref:d,id:"navigation",hidden:a.navigation||l.account?!1:!l.navigation,role:"menu","data-showing":!a.navigation&&l.account?"account":"default",children:ou.order.map(f=>P.jsx(wd,{id:f,isLoggedIn:n,isDesktopVersion:a.navigation,menus:{navigation:l.navigation,account:l.account},callback:c},f))}),!a.search&&P.jsx("button",{className:"search toggle-search-button",onClick:f=>{f.preventDefault(),f.stopPropagation(),c("search",!l.search)},"aria-haspopup":"true","aria-expanded":l.search,"aria-controls":"search-form",children:P.jsx(Kt,{children:e.formatMessage({id:`header_search_${l.search?"hide":"show"}`})})}),P.jsx(FN,{id:"global-search",handleToggle:{searchIsOpen:l.search,isDesktopVersion:a.search},gtmContext:"search-bar-header",gtmEvent:"form-submission"}),n?P.jsxs("button",{className:"account-button",onClick:f=>tt.events.onClick(f,{id:"account",callback:c,isOpen:l.account}),onMouseEnter:()=>tt.events.onMouseEnter({id:"account",callback:c}),onMouseLeave:()=>tt.events.onBlur({id:"account",callback:c}),"aria-haspopup":"true","aria-expanded":l.account,"aria-controls":"navigation",children:[P.jsx(Kt,{children:e.formatMessage({id:`header_account_${l.account?"hide":"show"}`})}),P.jsx(lf,{name:t&&t.name||"",src:t&&t.image&&t.image.thumbnail||""})]}):P.jsx("ul",{className:"sign-in-buttons",children:ou.buttons.order.map(f=>P.jsx(wd,{id:`buttons.${f}`},f))})]}),P.jsx("hr",{id:"content-of-page"}),P.jsx("div",{className:be("overlay",{open:l.navigation||l.account||!a.search&&l.search})})]})},qV=K.createContext(null),Hb={didCatch:!1,error:null};class kV extends K.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Hb}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:o,reason:"imperative-api"}),this.setState(Hb)}}componentDidCatch(t,r){var n,a;(n=(a=this.props).onError)===null||n===void 0||n.call(a,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:a}=this.props;if(n&&r.error!==null&&LV(t.resetKeys,a)){var o,i;(o=(i=this.props).onReset)===null||o===void 0||o.call(i,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(Hb)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:a}=this.props,{didCatch:o,error:i}=this.state;let s=t;if(o){const l={error:i,resetErrorBoundary:this.resetErrorBoundary};if(K.isValidElement(a))s=a;else if(typeof r=="function")s=r(l);else if(n)s=K.createElement(n,l);else throw i}return K.createElement(qV.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},s)}}function LV(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}const DV=()=>{const e=We();return P.jsxs(P.Fragment,{children:[P.jsx(Vw,{}),P.jsx("div",{className:"content",children:P.jsx(ju,{variant:"error",text:e.formatMessage({id:"pageLayout_error"})})}),P.jsx(Fw,{})]})},BV=({children:e,reportError:t,showFooter:r=!0,background:n="default",className:a="",locale:o="en"})=>{K.useEffect(()=>{window.scrollTo(0,0)},[window.location.pathname]);const i=K$(e,{locale:o});return P.jsx(kV,{onError:t,fallback:P.jsx(DV,{}),children:P.jsx(K.Suspense,{fallback:P.jsx(eN,{layout:"overview-page"}),children:P.jsx("div",{id:"wrapper",className:be(a,{[n]:n!=="default"}),children:P.jsxs($D,{children:[P.jsx(Vw,{}),P.jsx("div",{className:"content",children:i}),r&&P.jsx(Fw,{}),P.jsx(kN,{})]})})})})},cx={default:"tags_",headerTopics:"header_topics_topics_"},Gb={topic:{Climate:"climate",CitiesAndLocalGovernment:"cities-and-local-government",DigitalAndData:"digital-and-data",Education:"education",EquityJusticeAndInclusion:"equity-justice-and-inclusion",HealthAndSocialCare:"health-and-social-care",Innovation:"innovation",LeadershipAndSkills:"leadership-and-skills",LifeInGovernment:"life-in-government",Policymaking:"policymaking",TransportAndInfrastructure:"transport-and-infrastructure",WorkAndTheEconomy:"work-and-the-economy"},"from the community":"community"},FV={getTagDetails:e=>{if(e.includes("topic_")){if(e=Gb.topic[e.replace("topic_","")],e){const t=ou.topics.topics[e].href;return t?{id:e,href:t,text:`${cx.headerTopics}${e}`}:null}return null}return Gb[e]?(e=Gb[e],{id:e,text:`${cx.default}${e}`}):null}};const jV=({tags:e=[],color:t="default",forceOneLine:r=!1,canHaveLinks:n=!0,className:a="",gtmType:o="tag-click",gtmContext:i="tags"})=>{const s=We();if(!e||e.length<1)return null;const l=[];return e.forEach(u=>{if(!u)return;const c=FV.getTagDetails(u);c&&l.push(c)}),l.length<1?null:P.jsx("ul",{className:be("tags text-small",t,a,{"one-line":r}),children:l.map(u=>{const c=s.formatMessage({id:u.text});return P.jsx("li",{children:u.href&&n?P.jsx("a",{href:u.href,className:"gtm-trackable","data-gtm-event-type":o,"data-gtm-event-context":i,children:c}):c},u.id)})})};const UV=({members:{total:e,data:t=[]},pagination:r,gtmContext:n="member",gtmType:a="member-click",className:o=""})=>{const i=We();return t.length===0?null:(e||(e=t.length),P.jsxs("div",{className:be("members-list",o),children:[P.jsxs("h1",{children:[i.formatMessage({id:"membersList"}),P.jsx("span",{className:"count",children:e})]}),P.jsx("ul",{children:t.map((s,l)=>P.jsxs("li",{children:[P.jsx(uf,{member:s,gtmContext:n,gtmType:a}),s.isAdmin&&P.jsx(XI,{children:i.formatMessage({id:"membersList_admin"})})]},l))}),r&&P.jsx(MN,{...r,icon:{icon:"arrow-down",position:"right"},gtmContext:n})]}))};function VE(){return VE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},VE.apply(this,arguments)}function HV(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var GV=K.useLayoutEffect,VV=function(t){var r=Te.useRef(t);return GV(function(){r.current=t}),r},dx=function(t,r){if(typeof t=="function"){t(r);return}t.current=r},WV=function(t,r){var n=K.useRef();return K.useCallback(function(a){t.current=a,n.current&&dx(n.current,null),n.current=r,r&&dx(r,a)},[r])},fx={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},zV=function(t){Object.keys(fx).forEach(function(r){t.style.setProperty(r,fx[r],"important")})},px=zV,sr=null,hx=function(t,r){var n=t.scrollHeight;return r.sizingStyle.boxSizing==="border-box"?n+r.borderSize:n-r.paddingSize};function QV(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),sr||(sr=document.createElement("textarea"),sr.setAttribute("tabindex","-1"),sr.setAttribute("aria-hidden","true"),px(sr)),sr.parentNode===null&&document.body.appendChild(sr);var a=e.paddingSize,o=e.borderSize,i=e.sizingStyle,s=i.boxSizing;Object.keys(i).forEach(function(f){var p=f;sr.style[p]=i[p]}),px(sr),sr.value=t;var l=hx(sr,e);sr.value=t,l=hx(sr,e),sr.value="x";var u=sr.scrollHeight-a,c=u*r;s==="border-box"&&(c=c+a+o),l=Math.max(c,l);var d=u*n;return s==="border-box"&&(d=d+a+o),l=Math.min(d,l),[l,u]}var mx=function(){},KV=function(t,r){return t.reduce(function(n,a){return n[a]=r[a],n},{})},YV=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],XV=!!document.documentElement.currentStyle,JV=function(t){var r=window.getComputedStyle(t);if(r===null)return null;var n=KV(YV,r),a=n.boxSizing;if(a==="")return null;XV&&a==="border-box"&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var o=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),i=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:o,borderSize:i}},ZV=JV;function YN(e,t,r){var n=VV(r);Te.useLayoutEffect(function(){var a=function(i){return n.current(i)};if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}var eW=function(t){YN(window,"resize",t)},tW=function(t){YN(document.fonts,"loadingdone",t)},rW=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],nW=function(t,r){var n=t.cacheMeasurements,a=t.maxRows,o=t.minRows,i=t.onChange,s=i===void 0?mx:i,l=t.onHeightChange,u=l===void 0?mx:l,c=HV(t,rW),d=c.value!==void 0,f=Te.useRef(null),p=WV(f,r),h=Te.useRef(0),m=Te.useRef(),b=function(){var _=f.current,S=n&&m.current?m.current:ZV(_);if(S){m.current=S;var R=QV(S,_.value||_.placeholder||"x",o,a),T=R[0],O=R[1];h.current!==T&&(h.current=T,_.style.setProperty("height",T+"px","important"),u(T,{rowHeight:O}))}},y=function(_){d||b(),s(_)};return Te.useLayoutEffect(b),eW(b),tW(b),Te.createElement("textarea",VE({},c,{onChange:y,ref:p}))},aW=Te.forwardRef(nW);let Tc=null;const Er="discussion_form_",Ww=({content:e={type:"response",slugs:{}},userHasPermissions:t=!0,meta:r={isLoading:!1,isInWrapper:!1,isEditing:!1,showTitle:!1},inputRef:n,maxLength:a=5e4,minRows:o=4,forceShow:i={cancel:!1,error:!1},functions:s={create:()=>{},handleSaveEdit:()=>{},handleCancel:()=>{},callback:()=>{},props:{create:{projectNames:["questions-answers"]}}},gtmContext:l="DiscussionForm"})=>{var D,Q;const u=We(),c=K.useContext(da),[d,f]=K.useState(r.isEditing&&r.isEditing.text||""),[p,h]=K.useState(i.error||!1),[m,b]=K.useState(!1),y=K.useRef(null);if(n||(n=y),r.isLoading)return P.jsx(On,{className:"discussion-card discussion-form","data-testid":"loading-placeholder"});const v=V=>{const G=V.target.value;f(G);let j;!c||!c.id?j=bn(u.formatMessage,`${Er}error_loggedOut`,e.type,"action"):t?G.length>=a&&(j=`${Er}error_tooLong`):j=bn(u.formatMessage,`${Er}error_noPermission`,e.type,"action"),j?h(j):p&&h(!1)};let _=`${e.type}-form`;if(e.type==="response"||e.type==="reply"){const V=e.type==="response"?((D=e.slugs)==null?void 0:D.question)||"":((Q=e.slugs)==null?void 0:Q.answer)||"";V&&(_=`${_}-${V.slice(-15)}`)}const S=async V=>{var j;if(V.preventDefault(),V.stopPropagation(),!c||!c.id||!t||T)return;Tc&&clearTimeout(Tc),b("submitting");const G=window.location.pathname;try{let te;switch(e.type){case"post":te=await s.create({content:d});break;case"question":te=await s.create({title:d,authorId:c&&c.id,...(j=s.props)==null?void 0:j.create});break;case"response":te=await s.create({question:e.slugs.question},{body:d,authorId:c&&c.id,contentPath:G});break;case"reply":te=await s.create({question:e.slugs.question,answer:e.slugs.answer},{body:d,authorId:c&&c.id,contentPath:G});break;default:break}await zH(1e3),s.callback&&await s.callback(te),Tc=setTimeout(()=>{f(""),b("submitted"),R()},500)}catch(te){const X=te;let L=`${Er}error`;X.message.includes("entry already exists")&&(L=bn(u.formatMessage,`${Er}error_alreadyExists`,e.type,"action")),X.message.includes("429")?L=bn(u.formatMessage,`${Er}error_tooMany`,e.type,"action"):X.message.includes("400")&&(L=`${Er}error`),h(L),R()}},R=()=>{Tc=setTimeout(()=>{h(!1),b(!1)},5e3)},T=!d||!XH(d),O=m==="submitting",$=[];return(r.isEditing&&!O||i.cancel)&&$.push({variant:"secondary",size:{mobile:"small",600:"medium"},onClick:s.handleCancel,className:"gtm-trackable","data-gtm-event-context":l,"data-gtm-event-type":`cancel-${e.type}-click`,disabled:!i.cancel&&(!c||!c.id||!d),children:u.formatMessage({id:`${Er}cancel`})}),$.push({variant:"primary",size:{mobile:"small",600:"medium"},onClick:V=>{if(r.isEditing){b("submitting"),s.handleSaveEdit&&s.handleSaveEdit(y.current&&"value"in y.current?y.current.value:"");return}S(V)},className:"gtm-trackable","data-gtm-event-context":l,"data-gtm-event-type":`${r.isEditing?"save":"submit"}-${e.type}-click`,"data-testid":"save-button",disabled:!c||!c.id||!t||T||O||r.isEditing&&d===r.isEditing.text,children:u.formatMessage({id:`${Er}${O?r.isEditing?"saving":"posting":r.isEditing?"save":"post"}`})}),P.jsxs("form",{id:_,className:be("discussion-card discussion-form",{"no-styling":r.isInWrapper&&r.isEditing}),"data-testid":`discussion-${e.type}-form`,children:[(r==null?void 0:r.showTitle)&&!r.isEditing&&["question"].includes(e.type)&&P.jsx("h2",{children:bn(u.formatMessage,`${Er}title`,e.type,"action")}),P.jsx(uf,{member:c||"community",gtmContext:l,gtmType:"profile-click"}),P.jsx(Kt,{element:"label",showOnFocus:!1,htmlFor:`${_}-input`,children:bn(u.formatMessage,`${Er}label`,e.type,"action")}),P.jsx(aW,{ref:n,id:`${_}-input`,name:e.type,placeholder:bn(u.formatMessage,`${Er}placeholder`,e.type,"action"),onChange:v,value:d,maxLength:a,"aria-invalid":!!p,"aria-errormessage":"error-message",minRows:o,autoFocus:!!r.isEditing}),P.jsx("small",{children:bn(u.formatMessage,`${Er}explainer`,e.type,"action",{a:V=>P.jsx("a",{href:"https://about.apolitical.co/q-and-a-community-guidelines",target:"_blank",className:"gtm-trackable","data-gtm-event-context":l,"data-gtm-event-type":"community-guidelines-link",children:V})})}),P.jsx(Du,{buttons:$}),m==="submitted"&&P.jsx(dd,{className:"success","data-testid":"success",children:bn(u.formatMessage,`${Er}success`,e.type,"action")}),p&&P.jsx(dd,{id:"error-message",className:"error","data-testid":"error",children:i.error?i.error:typeof p=="string"?p.includes(" ")?p:u.formatMessage({id:p},{action:u.formatMessage({id:`discussion_action_${e.type}`}),maxLength:a}):p})]})},zw=({contentType:e,createPost:t,membershipRequiredToPost:{isMember:r,required:n,join:a,leave:o,notMemberStateText:i}})=>n&&!r?P.jsx(ju,{text:i,button:{component:P.jsx(Dw,{functions:{join:a,leave:o}})}}):P.jsx(Ww,{content:{type:e,slugs:{}},functions:{create:t}}),oW={showThread:!1,showForm:!1},Qw=K.createContext(oW),iW=({children:e})=>{const[t,r]=K.useState({showThread:!1,showForm:!1});return P.jsx(Qw.Provider,{value:{...t,updateConversation:r},children:e})},sW=({question:e,answer:t,reply:r})=>({...e&&{questionSlug:e},...t&&{answerSlug:t},...r&&{replySlug:r}}),lW=(e,t=10)=>!e||e.length===0?[]:e.slice(0,t);let Wl=!1;const Vb=()=>{Wl!==!1&&(clearTimeout(Wl),Wl=!1)},Wb=10,XN=({element:e="div",likes:t=0,peopleWhoLiked:r=!1,isShort:n=!0,userLiked:a=!1,content:o={type:"reply",slugs:{}},canLike:i=!0,functions:{createLike:s=()=>{},deleteLike:l=()=>{}}={}})=>{const u=We();K.useEffect(()=>{p(a)},[a]);const[c,d]=K.useState(t),[f,p]=K.useState(a),[h,m]=K.useState(!1),[b,y]=K.useState(!1),v=K.useMemo(()=>lW(r,Wb),[r]),_=R=>{if(R.preventDefault(),R.stopPropagation(),y(!1),Wl)return Vb(),!1;if(Vb(),h||!i)return!1;Wl=setTimeout(S,350)},S=async()=>{if(Vb(),h||!i)return!1;let R=f?c-1:c+1;R<0&&(R=0),m(!0),d(R),p(!f);try{if(o&&o.slugs){const T=sW(o.slugs);f?await l(T):await s(T,{contentPath:window.location.pathname})}}catch{d(t),p(a)}finally{m(!1)}};return K.createElement(e,{className:be("likes-wrapper text-medium action-button",{"show-spinner":h,"is-liked":f,disabled:!i}),onClick:_,onMouseEnter:()=>{y(!0)},onMouseLeave:()=>{y(!1)},onFocus:()=>{y(!0)},onBlur:()=>{y(!1)},children:P.jsxs(P.Fragment,{children:[P.jsx(Tt,{variant:"tertiary",size:"medium",icon:{icon:f?"heart":"heart_empty",animate:"bounce"},className:be({"do-animation":f&&!a}),screenreaderText:i?u.formatMessage({id:`discussion_likes_${f?"unlike":"like"}`},{action:u.formatMessage({id:`discussion_action_${o.type}`})}):!1,onClick:_,disabled:!i,"aria-hidden":!i,"data-testid":"like-button","data-gtm-event-context":"Likes","data-gtm-event-type":`like-${o.type}-click`}),P.jsx("span",{className:be("number-of-likes",{"no-likes":c===0}),"data-testid":"number-of-likes",children:u.formatMessage({id:`discussion_likes${n?"_short":""}`},{number:c})}),r&&P.jsx(xI,{isOpen:b,isLoading:r.length===0,children:r.length&&P.jsxs("ul",{children:[v.map(R=>typeof R=="string"||!R.name?null:P.jsx("li",{children:P.jsx(af,{href:R.id?`/profiles/${R.id}`:void 0,gtmContext:"Likes",gtmType:"liked-name-click",children:R.name})},R.id||window.btoa(R.name))),r.length>Wb&&P.jsx("li",{children:u.formatMessage({id:"discussion_likes_more"},{number:r.length-Wb})})]})})]})})};var Cd={exports:{}};Cd.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=1,o=2,i=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",h="[object GeneratorFunction]",m="[object Map]",b="[object Number]",y="[object Null]",v="[object Object]",_="[object Promise]",S="[object Proxy]",R="[object RegExp]",T="[object Set]",O="[object String]",$="[object Symbol]",D="[object Undefined]",Q="[object WeakMap]",V="[object ArrayBuffer]",G="[object DataView]",j="[object Float32Array]",te="[object Float64Array]",X="[object Int8Array]",L="[object Int16Array]",Y="[object Int32Array]",ae="[object Uint8Array]",ge="[object Uint8ClampedArray]",z="[object Uint16Array]",H="[object Uint32Array]",oe=/[\\^$.*+?()[\]{}|]/g,le=/^\[object .+?Constructor\]$/,$e=/^(?:0|[1-9]\d*)$/,ie={};ie[j]=ie[te]=ie[X]=ie[L]=ie[Y]=ie[ae]=ie[ge]=ie[z]=ie[H]=!0,ie[s]=ie[l]=ie[V]=ie[c]=ie[G]=ie[d]=ie[f]=ie[p]=ie[m]=ie[b]=ie[v]=ie[R]=ie[T]=ie[O]=ie[Q]=!1;var he=typeof we=="object"&&we&&we.Object===Object&&we,Ge=typeof self=="object"&&self&&self.Object===Object&&self,Le=he||Ge||Function("return this")(),Rt=t&&!t.nodeType&&t,xt=Rt&&!0&&e&&!e.nodeType&&e,ye=xt&&xt.exports===Rt,me=ye&&he.process,nt=function(){try{return me&&me.binding&&me.binding("util")}catch{}}(),Ve=nt&&nt.isTypedArray;function kt(E,A){for(var k=-1,Z=E==null?0:E.length,Pe=0,Se=[];++k<Z;){var ke=E[k];A(ke,k,E)&&(Se[Pe++]=ke)}return Se}function Pt(E,A){for(var k=-1,Z=A.length,Pe=E.length;++k<Z;)E[Pe+k]=A[k];return E}function Lt(E,A){for(var k=-1,Z=E==null?0:E.length;++k<Z;)if(A(E[k],k,E))return!0;return!1}function ht(E,A){for(var k=-1,Z=Array(E);++k<E;)Z[k]=A(k);return Z}function mr(E){return function(A){return E(A)}}function Jt(E,A){return E.has(A)}function Wt(E,A){return E==null?void 0:E[A]}function ft(E){var A=-1,k=Array(E.size);return E.forEach(function(Z,Pe){k[++A]=[Pe,Z]}),k}function Zt(E,A){return function(k){return E(A(k))}}function St(E){var A=-1,k=Array(E.size);return E.forEach(function(Z){k[++A]=Z}),k}var bt=Array.prototype,Cr=Function.prototype,x=Object.prototype,g=Le["__core-js_shared__"],w=Cr.toString,C=x.hasOwnProperty,I=function(){var E=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return E?"Symbol(src)_1."+E:""}(),N=x.toString,W=RegExp("^"+w.call(C).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),de=ye?Le.Buffer:void 0,Ee=Le.Symbol,ve=Le.Uint8Array,Ce=x.propertyIsEnumerable,xe=bt.splice,ct=Ee?Ee.toStringTag:void 0,Or=Object.getOwnPropertySymbols,Ln=de?de.isBuffer:void 0,vr=Zt(Object.keys,Object),Dn=Yr(Le,"DataView"),Rr=Yr(Le,"Map"),un=Yr(Le,"Promise"),Ar=Yr(Le,"Set"),cn=Yr(Le,"WeakMap"),$r=Yr(Object,"create"),Bn=zt(Dn),Sr=zt(Rr),ya=zt(un),po=zt(Ar),ho=zt(cn),ga=Ee?Ee.prototype:void 0,dn=ga?ga.valueOf:void 0;function mt(E){var A=-1,k=E==null?0:E.length;for(this.clear();++A<k;){var Z=E[A];this.set(Z[0],Z[1])}}function Fn(){this.__data__=$r?$r(null):{},this.size=0}function jn(E){var A=this.has(E)&&delete this.__data__[E];return this.size-=A?1:0,A}function zr(E){var A=this.__data__;if($r){var k=A[E];return k===n?void 0:k}return C.call(A,E)?A[E]:void 0}function Un(E){var A=this.__data__;return $r?A[E]!==void 0:C.call(A,E)}function mo(E,A){var k=this.__data__;return this.size+=this.has(E)?0:1,k[E]=$r&&A===void 0?n:A,this}mt.prototype.clear=Fn,mt.prototype.delete=jn,mt.prototype.get=zr,mt.prototype.has=Un,mt.prototype.set=mo;function Et(E){var A=-1,k=E==null?0:E.length;for(this.clear();++A<k;){var Z=E[A];this.set(Z[0],Z[1])}}function vo(){this.__data__=[],this.size=0}function yo(E){var A=this.__data__,k=Ir(A,E);if(k<0)return!1;var Z=A.length-1;return k==Z?A.pop():xe.call(A,k,1),--this.size,!0}function go(E){var A=this.__data__,k=Ir(A,E);return k<0?void 0:A[k][1]}function bo(E){return Ir(this.__data__,E)>-1}function Hn(E,A){var k=this.__data__,Z=Ir(k,E);return Z<0?(++this.size,k.push([E,A])):k[Z][1]=A,this}Et.prototype.clear=vo,Et.prototype.delete=yo,Et.prototype.get=go,Et.prototype.has=bo,Et.prototype.set=Hn;function Ot(E){var A=-1,k=E==null?0:E.length;for(this.clear();++A<k;){var Z=E[A];this.set(Z[0],Z[1])}}function Eo(){this.size=0,this.__data__={hash:new mt,map:new(Rr||Et),string:new mt}}function _o(E){var A=br(this,E).delete(E);return this.size-=A?1:0,A}function wo(E){return br(this,E).get(E)}function Co(E){return br(this,E).has(E)}function M(E,A){var k=br(this,E),Z=k.size;return k.set(E,A),this.size+=k.size==Z?0:1,this}Ot.prototype.clear=Eo,Ot.prototype.delete=_o,Ot.prototype.get=wo,Ot.prototype.has=Co,Ot.prototype.set=M;function ee(E){var A=-1,k=E==null?0:E.length;for(this.__data__=new Ot;++A<k;)this.add(E[A])}function re(E){return this.__data__.set(E,n),this}function ne(E){return this.__data__.has(E)}ee.prototype.add=ee.prototype.push=re,ee.prototype.has=ne;function _e(E){var A=this.__data__=new Et(E);this.size=A.size}function Ae(){this.__data__=new Et,this.size=0}function Je(E){var A=this.__data__,k=A.delete(E);return this.size=A.size,k}function Dt(E){return this.__data__.get(E)}function Bt(E){return this.__data__.has(E)}function At(E,A){var k=this.__data__;if(k instanceof Et){var Z=k.__data__;if(!Rr||Z.length<r-1)return Z.push([E,A]),this.size=++k.size,this;k=this.__data__=new Ot(Z)}return k.set(E,A),this.size=k.size,this}_e.prototype.clear=Ae,_e.prototype.delete=Je,_e.prototype.get=Dt,_e.prototype.has=Bt,_e.prototype.set=At;function vt(E,A){var k=Ca(E),Z=!k&&wi(E),Pe=!k&&!Z&&Sa(E),Se=!k&&!Z&&!Pe&&So(E),ke=k||Z||Pe||Se,De=ke?ht(E.length,String):[],yt=De.length;for(var ze in E)(A||C.call(E,ze))&&!(ke&&(ze=="length"||Pe&&(ze=="offset"||ze=="parent")||Se&&(ze=="buffer"||ze=="byteLength"||ze=="byteOffset")||hn(ze,yt)))&&De.push(ze);return De}function Ir(E,A){for(var k=E.length;k--;)if(_i(E[k][0],A))return k;return-1}function fn(E,A,k){var Z=A(E);return Ca(E)?Z:Pt(Z,k(E))}function Qr(E){return E==null?E===void 0?D:y:ct&&ct in Object(E)?Xr(E):Ei(E)}function Gn(E){return Nr(E)&&Qr(E)==s}function Vn(E,A,k,Z,Pe){return E===A?!0:E==null||A==null||!Nr(E)&&!Nr(A)?E!==E&&A!==A:ba(E,A,k,Z,Vn,Pe)}function ba(E,A,k,Z,Pe,Se){var ke=Ca(E),De=Ca(A),yt=ke?l:Tr(E),ze=De?l:Tr(A);yt=yt==s?v:yt,ze=ze==s?v:ze;var Ft=yt==v,Qt=ze==v,_t=yt==ze;if(_t&&Sa(E)){if(!Sa(A))return!1;ke=!0,Ft=!1}if(_t&&!Ft)return Se||(Se=new _e),ke||So(E)?pn(E,A,k,Z,Pe,Se):wa(E,A,yt,k,Z,Pe,Se);if(!(k&a)){var jt=Ft&&C.call(E,"__wrapped__"),$t=Qt&&C.call(A,"__wrapped__");if(jt||$t){var mn=jt?E.value():E,Jr=$t?A.value():A;return Se||(Se=new _e),Pe(mn,Jr,k,Z,Se)}}return _t?(Se||(Se=new _e),Kr(E,A,k,Z,Pe,Se)):!1}function Ea(E){if(!Ri(E)||el(E))return!1;var A=Ci(E)?W:le;return A.test(zt(E))}function yr(E){return Nr(E)&&Ro(E.length)&&!!ie[Qr(E)]}function _a(E){if(!tl(E))return vr(E);var A=[];for(var k in Object(E))C.call(E,k)&&k!="constructor"&&A.push(k);return A}function pn(E,A,k,Z,Pe,Se){var ke=k&a,De=E.length,yt=A.length;if(De!=yt&&!(ke&&yt>De))return!1;var ze=Se.get(E);if(ze&&Se.get(A))return ze==A;var Ft=-1,Qt=!0,_t=k&o?new ee:void 0;for(Se.set(E,A),Se.set(A,E);++Ft<De;){var jt=E[Ft],$t=A[Ft];if(Z)var mn=ke?Z($t,jt,Ft,A,E,Se):Z(jt,$t,Ft,E,A,Se);if(mn!==void 0){if(mn)continue;Qt=!1;break}if(_t){if(!Lt(A,function(Jr,Wn){if(!Jt(_t,Wn)&&(jt===Jr||Pe(jt,Jr,k,Z,Se)))return _t.push(Wn)})){Qt=!1;break}}else if(!(jt===$t||Pe(jt,$t,k,Z,Se))){Qt=!1;break}}return Se.delete(E),Se.delete(A),Qt}function wa(E,A,k,Z,Pe,Se,ke){switch(k){case G:if(E.byteLength!=A.byteLength||E.byteOffset!=A.byteOffset)return!1;E=E.buffer,A=A.buffer;case V:return!(E.byteLength!=A.byteLength||!Se(new ve(E),new ve(A)));case c:case d:case b:return _i(+E,+A);case f:return E.name==A.name&&E.message==A.message;case R:case O:return E==A+"";case m:var De=ft;case T:var yt=Z&a;if(De||(De=St),E.size!=A.size&&!yt)return!1;var ze=ke.get(E);if(ze)return ze==A;Z|=o,ke.set(E,A);var Ft=pn(De(E),De(A),Z,Pe,Se,ke);return ke.delete(E),Ft;case $:if(dn)return dn.call(E)==dn.call(A)}return!1}function Kr(E,A,k,Z,Pe,Se){var ke=k&a,De=gr(E),yt=De.length,ze=gr(A),Ft=ze.length;if(yt!=Ft&&!ke)return!1;for(var Qt=yt;Qt--;){var _t=De[Qt];if(!(ke?_t in A:C.call(A,_t)))return!1}var jt=Se.get(E);if(jt&&Se.get(A))return jt==A;var $t=!0;Se.set(E,A),Se.set(A,E);for(var mn=ke;++Qt<yt;){_t=De[Qt];var Jr=E[_t],Wn=A[_t];if(Z)var Ku=ke?Z(Wn,Jr,_t,A,E,Se):Z(Jr,Wn,_t,E,A,Se);if(!(Ku===void 0?Jr===Wn||Pe(Jr,Wn,k,Z,Se):Ku)){$t=!1;break}mn||(mn=_t=="constructor")}if($t&&!mn){var vn=E.constructor,Ta=A.constructor;vn!=Ta&&"constructor"in E&&"constructor"in A&&!(typeof vn=="function"&&vn instanceof vn&&typeof Ta=="function"&&Ta instanceof Ta)&&($t=!1)}return Se.delete(E),Se.delete(A),$t}function gr(E){return fn(E,Si,Js)}function br(E,A){var k=E.__data__;return Zs(A)?k[typeof A=="string"?"string":"hash"]:k.map}function Yr(E,A){var k=Wt(E,A);return Ea(k)?k:void 0}function Xr(E){var A=C.call(E,ct),k=E[ct];try{E[ct]=void 0;var Z=!0}catch{}var Pe=N.call(E);return Z&&(A?E[ct]=k:delete E[ct]),Pe}var Js=Or?function(E){return E==null?[]:(E=Object(E),kt(Or(E),function(A){return Ce.call(E,A)}))}:Ti,Tr=Qr;(Dn&&Tr(new Dn(new ArrayBuffer(1)))!=G||Rr&&Tr(new Rr)!=m||un&&Tr(un.resolve())!=_||Ar&&Tr(new Ar)!=T||cn&&Tr(new cn)!=Q)&&(Tr=function(E){var A=Qr(E),k=A==v?E.constructor:void 0,Z=k?zt(k):"";if(Z)switch(Z){case Bn:return G;case Sr:return m;case ya:return _;case po:return T;case ho:return Q}return A});function hn(E,A){return A=A??i,!!A&&(typeof E=="number"||$e.test(E))&&E>-1&&E%1==0&&E<A}function Zs(E){var A=typeof E;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?E!=="__proto__":E===null}function el(E){return!!I&&I in E}function tl(E){var A=E&&E.constructor,k=typeof A=="function"&&A.prototype||x;return E===k}function Ei(E){return N.call(E)}function zt(E){if(E!=null){try{return w.call(E)}catch{}try{return E+""}catch{}}return""}function _i(E,A){return E===A||E!==E&&A!==A}var wi=Gn(function(){return arguments}())?Gn:function(E){return Nr(E)&&C.call(E,"callee")&&!Ce.call(E,"callee")},Ca=Array.isArray;function Ra(E){return E!=null&&Ro(E.length)&&!Ci(E)}var Sa=Ln||nl;function rl(E,A){return Vn(E,A)}function Ci(E){if(!Ri(E))return!1;var A=Qr(E);return A==p||A==h||A==u||A==S}function Ro(E){return typeof E=="number"&&E>-1&&E%1==0&&E<=i}function Ri(E){var A=typeof E;return E!=null&&(A=="object"||A=="function")}function Nr(E){return E!=null&&typeof E=="object"}var So=Ve?mr(Ve):yr;function Si(E){return Ra(E)?vt(E):_a(E)}function Ti(){return[]}function nl(){return!1}e.exports=rl})(Cd,Cd.exports);var uW=Cd.exports;const cW=Yt(uW);const JN=({element:e="section",children:t,className:r,...n})=>K.createElement(e,{className:be("modal",r),children:typeof t=="string"?P.jsx("p",{children:t}):t,...n});const ZN=({id:e="content-overlay",isOpen:t=!1,maxWidth:r,functions:{onOpen:n=()=>{},onClose:a=()=>{}}={},forceShow:{error:o=!1}={},title:i,children:s,buttons:l,className:u="",gtmContext:c="Modal"})=>{const d=We(),[f,p]=K.useState(t),h=b=>{p(b),b?(n(),document.body.classList.add("has-overlay")):(a(),document.body.classList.remove("has-overlay"))};K.useEffect(()=>{h(t)},[t]);const m=r?{"--max-width":`${r/16}rem`}:{};return P.jsx("div",{className:be("overlay",{open:f}),children:P.jsx(JN,{id:e,className:be("overlay-modal",u,{"has-max-width":r}),hidden:!f,style:m,children:t&&P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"top",children:[P.jsx("h2",{children:i}),P.jsx(Tt,{variant:"tertiary",size:"medium",icon:{icon:"close"},onClick:()=>h(!1),className:"gtm-trackable","data-gtm-event-type":"close-modal-click","data-gtm-event-context":c,screenreaderText:d.formatMessage({id:"overlay_button"})})]}),P.jsx(ud,{}),s,l&&P.jsxs("div",{className:"bottom",children:[P.jsx(ud,{}),P.jsx(Du,{buttons:l})]}),o&&P.jsx(dd,{className:"error",children:o})]})})})},eM=(e,t)=>({"aria-haspopup":!0,"aria-expanded":t,"aria-controls":e}),vx=e=>{const t={};return Object.keys(e).forEach(r=>{t[`${r}Slug`]=e[r]}),t};const Xn="discussion_",vf=({element:e="div",content:t,userHasPermissions:r=!0,isLoading:n=!1,originalAuthorId:a,functions:{content:{createContent:o,deleteContent:i,updateContent:s}={createContent:()=>{},deleteContent:()=>{},updateContent:()=>{}},likes:{createLike:l,deleteLike:u}={createLike:()=>{},deleteLike:()=>{}},comments:{openComments:c}={openComments:()=>{}}},links:d={},className:f,gtmContext:p="DiscussionAnswer",children:h})=>{const m=We(),b=K.useContext(da),y=K.useContext(Qw),[v,_]=K.useState({body:t&&t.body||"",isEditing:!1,didEdit:t&&t.isEdited||!1}),[S,R]=K.useState(!1),[T,O]=K.useState("");if(K.useEffect(()=>{_({...v,body:t&&t.body||"",didEdit:t&&t.isEdited||!1})},[t.isEdited]),n||!t||t.type==="answer"&&(!t.slugs||!t.slugs.question))return P.jsx(On,{className:"discussion-card discussion-post"});const{author:$,canLike:D,createdAt:Q,id:V,likes:G=0,userLiked:j,comments:te=0}=t,X=b&&b.id&&typeof $!="string"&&$.id&&$.id===b.id||!1,L=typeof D=="boolean"?D:r?!X:!1,Y=async H=>{H||(H=""),O("");try{if(!cW(H,v.body)){const oe=t.type==="question"?{title:H}:{body:H};await s(vx(t.slugs),oe)}_({body:H,isEditing:!1,didEdit:!0})}catch{O(`${Xn}form_error`)}},ae=()=>{y&&y.updateConversation&&y.updateConversation({showThread:!0,showForm:!0}),setTimeout(()=>{const oe=`reply-form-${(t.type==="answer"?t.slug:t.slugs.answer||"").toLowerCase().slice(-15)}`,le=document.getElementById(oe),$e=document.getElementById(`${oe}-input`);$e&&$e.focus(),le&&le.scrollIntoView({behavior:"smooth"})},0)},ge=()=>{try{i(vx(t.slugs))}catch{O("delete-error")}},z=[{text:m.formatMessage({id:`${Xn}moreMenu_report`}),href:`mailto:community@apolitical.co?subject=${encodeURI(m.formatMessage({id:`${Xn}report_subject`}))}&body=${encodeURI(m.formatMessage({id:`${Xn}report_body`},{contentType:t.type||"",contentSlug:t.slug||"",contentUrl:`${window.origin}${typeof process<"u"&&process.env.PUBLIC_URL||""}/${t.slugs.question||""}`}))}`,icon:"flag"}];return r&&X&&z.push({text:m.formatMessage({id:`${Xn}moreMenu_edit`}),onClick:()=>_({...v,isEditing:!0}),icon:"pencil-paper",className:"gtm-trackable","data-gtm-event-context":p,"data-gtm-event-type":`edit-${t.type}-click`},{text:m.formatMessage({id:`${Xn}moreMenu_delete`}),onClick:H=>{H.preventDefault(),H.stopPropagation(),R(!0)},icon:"trash",className:"gtm-trackable","data-gtm-event-context":p,"data-gtm-event-type":`delete-${t.type}-click`,...eM(`delete-${t.slug}-modal`,S)}),K.createElement(e,{className:be("discussion-post",f),"data-testid":`discussion-${t.type}-thread`,children:P.jsxs(P.Fragment,{children:[P.jsxs("div",{id:V||t.slug,className:be("discussion-card",t.type,{editing:v.isEditing,"has-link":d.post&&!v.isEditing}),onClick:H=>{!d.post||v.isEditing||(H.preventDefault(),H.stopPropagation(),window.location.href=d.post)},children:[!v.isEditing&&P.jsx(uf,{member:$,additionalContent:{createdAt:Q,didEdit:v.didEdit},className:typeof $!="string"&&$.id===a?"highlighted":"",gtmContext:p,gtmType:"profile-click"}),v.isEditing?P.jsx(Ww,{content:{type:t.type,slugs:t.slugs},userHasPermissions:r,meta:{isLoading:n,isInWrapper:!0,isEditing:{text:v.body}},maxLength:t.type==="question"?250:5e4,forceShow:{error:T!==""&&T!=="delete-error"?m.formatMessage({id:T},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},functions:{create:o,handleSaveEdit:Y,handleCancel:()=>{O(""),_({...v,isEditing:!1})}},gtmContext:`${p}Form`}):d.post?P.jsx("a",{href:d.post,className:"gtm-trackable","data-gtm-event-context":p,"data-gtm-event-type":"title-click",children:P.jsx(TE,{options:{overrides:{a:YI}},children:v.body})}):P.jsx(TE,{options:{wrapper:t.type==="question"?"h1":K.Fragment,forceWrapper:t.type==="question",forceInline:t.type==="question",forceBlock:t.type!=="question"},children:v.body}),!v.isEditing&&P.jsxs("ul",{className:be("actions text-medium",t.type),"data-testid":`${t.type}-actions`,children:[P.jsx(XN,{element:"li",likes:G,isShort:!1,userLiked:j,content:{type:t.type,slugs:t.slugs},canLike:L,functions:{createLike:l,deleteLike:u}}),["question","post"].includes(t.type)||d.comments||typeof c=="function"&&P.jsxs("li",{className:"action-button",onClick:H=>{H.preventDefault(),H.stopPropagation(),d.comments&&(window.location.href=d.comments),typeof c=="function"&&c()},children:[P.jsx(Tt,{variant:"tertiary",size:"medium",styling:{muted:!0},icon:{icon:"speech-bubble_square_thick"},href:d.comments?d.comments:!1,onClick:d.comments||typeof c!="function"?!1:c,className:"gtm-trackable","data-gtm-event-context":p,"data-gtm-event-type":`answer-${t.type}-click`,screenreaderText:m.formatMessage({id:`${Xn}comments_screenReader`},{count:te})}),P.jsx("span",{children:m.formatMessage({id:`${Xn}comments`},{count:te})})]}),(t.type==="answer"||t.type==="reply")&&P.jsx("li",{children:P.jsx(Tt,{variant:"tertiary",size:"medium",styling:{muted:!0},onClick:ae,children:m.formatMessage({id:`${Xn}reply`})})}),P.jsx(qN,{element:"li",id:`more-${t.slug}`,options:z})]})]}),h,P.jsx(ZN,{id:`delete-${t.slug}-modal`,isOpen:S,functions:{onOpen:()=>{},onClose:()=>R(!1)},forceShow:{error:T==="delete-error"?m.formatMessage({id:"discussion_delete_error"},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},title:m.formatMessage({id:"discussion_delete_title"},{action:m.formatMessage({id:`discussion_action_${t.type}`})}),buttons:[{variant:"secondary",onClick:()=>R(!1),children:m.formatMessage({id:"discussion_delete_cancel"})},{variant:"primary",className:"destructive",onClick:ge,children:m.formatMessage({id:"discussion_delete_delete"})}],gtmContext:`${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,children:P.jsx(Qa,{id:"discussion_delete_text",values:{p:H=>P.jsx("p",{children:H}),action:m.formatMessage({id:`discussion_action_${t.type}`})}})})]})})};const zb="discussion_responses_",dW=({type:e="answer",responses:t=0})=>{const r=We();return P.jsxs("div",{className:"responses-heading",children:[P.jsx("h3",{children:r.formatMessage({id:`${zb}title`},{action:r.formatMessage({id:`${zb}${e}`}),count:t})}),t===0&&P.jsx("p",{children:bn(r.formatMessage,`${zb}empty`,e,e)})]})};const fW=({isOpen:e=!1,count:t=0,children:r})=>{const n=We(),a=K.useRef(null),[o,i]=K.useState(e),[s,l]=K.useState("closed");K.useEffect(()=>{const f=a.current;if(f)return f.addEventListener("transitionend",u),()=>{f.removeEventListener("transitionend",u)}},[]),Jo(()=>{s==="closed"&&!o||l(["opening","open"].includes(s)?"ready-to-close":"opening")},[o]),K.useEffect(()=>{s==="ready-to-close"&&l("closing")},[s]);const u=({propertyName:f})=>{f==="max-height"&&l(p=>p==="opening"?"open":p==="closing"?"closed":p)},c=["opening","open"].includes(s),d=K$(r,{element:"li"});return P.jsxs("div",{className:"thread-wrapper",children:[P.jsx(Tt,{variant:"secondary",size:"small",styling:{muted:!0},icon:{icon:`arrow_corner-down_${c?"left":"right"}`},onClick:()=>{i(!o)},children:n.formatMessage({id:`discussion_thread_${c?"hide":"show"}`},{count:t})}),P.jsx("ul",{ref:a,className:be("thread",s),hidden:!o,children:d})]})},pW=({user:e,content:t,verb:r="post"})=>({actor:{id:e.id,data:{name:e.name,organization:e==null?void 0:e.organization,jobTitle:e==null?void 0:e.jobTitle}},content:t,latest_reactions:{like:[]},reaction_counts:{like:0},verb:r}),hW=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({content:s})=>{if(!r)return;const l=pW({user:r,content:s,verb:"post"});await e.cancelQueries({queryKey:t});const u=e.getQueryData(t);return e.setQueryData(t,c=>[...c,l]),{previousActivities:u}},onError:(s,l,u)=>{e.setQueryData(t,u.previousActivities)},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),mW=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async({activityId:s})=>{await e.cancelQueries({queryKey:t});const l=e.getQueryData(t),u=l==null?void 0:l.map(c=>{var d;return(c==null?void 0:c.id)===s&&((d=c.reaction_counts)!=null&&d.like?c.reaction_counts.like+=1:c.reaction_counts.like=1),c});return e.setQueryData(t,()=>u&&[...u]),{previousActivities:u}},onError:(s,l,u)=>{e.setQueryData(t,u.previousActivities)},onSuccess:s=>{const l=e.getQueryData(t),u=l==null?void 0:l.map(c=>((c==null?void 0:c.id)===(s==null?void 0:s.activity_id)&&(c.latest_reactions.like?c.latest_reactions.like.push(s):c.latest_reactions.like=[s]),c));return e.setQueryData(t,()=>u&&[...u]),{previousActivities:l}},onSettled:(s,l,u)=>{e.invalidateQueries({queryKey:[...t,u.activityId]})}}),vW=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({activityId:l})=>{await e.cancelQueries({queryKey:t});const u=e.getQueryData(t),c=u==null?void 0:u.map(d=>{var f;return(d==null?void 0:d.id)===l&&(f=d.reaction_counts)!=null&&f.like&&(d.reaction_counts.like-=1),d});return e.setQueryData(t,()=>c&&[...c]),{previousActivities:c}},onError:(l,u,c)=>{e.setQueryData(t,c.previousActivities)},onSuccess:(l,{activityId:u})=>{const c=e.getQueryData(t),d=c==null?void 0:c.map(f=>{var p,h,m,b;if(f.id===u){const y=(m=(h=(p=f.latest_reactions)==null?void 0:p.like)==null?void 0:h.find(v=>v.user_id===(r==null?void 0:r.id)))==null?void 0:m.id;return f.latest_reactions.like=(b=f.latest_reactions.like)==null?void 0:b.filter(v=>v.id!==y),f}else return f});return e.setQueryData(t,()=>d&&[...d]),{previousActivities:c}},onSettled:(l,u,c)=>{e.invalidateQueries({queryKey:[...t,c.activityId]})}}),yW=({basePath:e,parentId:t,membershipRequiredToPost:{isMember:r,join:n,leave:a},functions:{list:o,create:i,like:s,unlike:l}})=>{const u=Ds(),c=K.useContext(da),{data:d,error:f,isLoading:p,isFetching:h}=vN({queryKey:[e,t],queryFn:o}),m=hW({queryClient:u,queryKey:[e,t],user:c,mutationFn:i}),{mutate:b}=Ka(m),y=mW({queryClient:u,queryKey:[e,t],mutationFn:s}),{mutate:v}=Ka(y),_=vW({queryClient:u,queryKey:[e,t],user:c,mutationFn:async({activityId:O})=>{var Q,V,G;const $=d&&(d==null?void 0:d.find(j=>j.id===O)),D=(G=(V=(Q=$==null?void 0:$.latest_reactions)==null?void 0:Q.like)==null?void 0:V.find(j=>j.user_id===(c==null?void 0:c.id)))==null?void 0:G.id;await l({reactionId:D||"",activityId:O})}}),{mutate:S}=Ka(_),R=K.useCallback(({activityId:O})=>v({activityId:O}),[v]),T=K.useCallback(({activityId:O})=>S({activityId:O}),[S]);return f?P.jsx(ju,{variant:"error",text:f.message}):p?P.jsx(On,{style:{height:"400px"}}):P.jsxs(P.Fragment,{children:[P.jsx(zw,{contentType:"post",createPost:b,membershipRequiredToPost:{isMember:r,required:!0,join:n,leave:a,notMemberStateText:"Join community to create a post."}}),!h&&Array.isArray(d)&&(d==null?void 0:d.map(O=>{var $,D,Q,V,G,j,te,X,L,Y;return P.jsx(vf,{content:{type:"post",body:O==null?void 0:O.content,createdAt:(O==null?void 0:O.time)||"",slugs:{question:t},slug:O==null?void 0:O.id,author:{id:($=O==null?void 0:O.actor)==null?void 0:$.id,name:(Q=(D=O==null?void 0:O.actor)==null?void 0:D.data)==null?void 0:Q.name,organization:(G=(V=O==null?void 0:O.actor)==null?void 0:V.data)==null?void 0:G.organization,jobTitle:(te=(j=O==null?void 0:O.actor)==null?void 0:j.data)==null?void 0:te.jobTitle,image:{thumbnail:((L=(X=O==null?void 0:O.actor)==null?void 0:X.data)==null?void 0:L.thumbnail)||void 0}},userLiked:O.own_reactions.like&&((Y=O==null?void 0:O.own_reactions)==null?void 0:Y.like.length)>0,likes:(O==null?void 0:O.reaction_counts.like)||0,comments:(O==null?void 0:O.reaction_counts.reply)||0},links:{post:`${e}/${t}/${O==null?void 0:O.id}`,comments:`${e}/${t}/${O==null?void 0:O.id}`},functions:{content:{createContent:()=>null,deleteContent:()=>null,updateContent:()=>null},likes:{createLike:()=>{R({activityId:O==null?void 0:O.id})},deleteLike:()=>{T({activityId:O==null?void 0:O.id})}},comments:{openComments:()=>null}}},O==null?void 0:O.id)}))]})},gW=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async()=>{await e.cancelQueries({queryKey:t})},onError:(s,l,u)=>{e.setQueryData(t,u.previousActivity)},onSuccess:s=>{var u;const l=e.getQueryData(t);if(l)return(u=l==null?void 0:l.latest_reactions)!=null&&u.reply?(l.latest_reactions.reply.unshift(s),l&&(l.reaction_counts={reply:l.latest_reactions.reply.length})):(l.latest_reactions={reply:[s]},l.reaction_counts={reply:1}),e.setQueryData(t,()=>({...l})),{previousActivity:l}},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),bW=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async({replyId:i})=>{var u,c;await e.cancelQueries({queryKey:t});const s=e.getQueryData(t),l=(c=(u=s==null?void 0:s.latest_reactions)==null?void 0:u.reply)==null?void 0:c.map(d=>{var f;return d.id===i&&((f=d.children_counts)!=null&&f.like?d.children_counts.like+=1:d.children_counts={like:1}),d});return e.setQueryData(t,()=>({...s,latest_reactions:{reply:l}})),{previousActivity:s}},onError:(i,s,l)=>{e.setQueryData(t,l.previousActivity)},onSuccess:i=>{var u;const s=e.getQueryData(t),l=(u=s==null?void 0:s.latest_reactions.reply)==null?void 0:u.map(c=>(c.id===i.id&&(c.latest_children.like?c.latest_children.like.push(i):c.latest_children.like=[i]),c));return e.setQueryData(t,()=>({...s,latest_reactions:{reply:l}})),{previousActivity:s}}}),EW=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({replyId:s})=>{var c;await e.cancelQueries({queryKey:t});const l=e.getQueryData(t);if(!l)return;const u=(c=l.latest_reactions.reply)==null?void 0:c.map(d=>(d.id===s&&d.children_counts.like&&(d.children_counts.like-=1),d));return e.setQueryData(t,()=>({...l,latest_reactions:{reply:u}})),{previousActivity:l}},onError:(s,l,u)=>{e.setQueryData(t,u.previousActivity)},onSuccess:(s,{replyId:l})=>{var d;const u=e.getQueryData(t);if(!u)return;const c=(d=u.latest_reactions.reply)==null?void 0:d.map(f=>{var p;return f.id===l?(p=f.latest_children.reply)==null?void 0:p.filter(m=>m.user_id!==(r==null?void 0:r.id)):f});return e.setQueryData(t,()=>({...u,latest_reactions:{reply:c}})),{previousActivity:u}}}),tM=({basePath:e,parentId:t,activityId:r,repliesList:n,membershipRequiredToPost:{isMember:a,join:o,leave:i},functions:{createReply:s,like:l,unlike:u}})=>{const c=Ds(),d=K.useContext(da),f=gW({queryClient:c,queryKey:[e,t,r],mutationFn:s}),{mutate:p}=Ka(f),h=bW({queryClient:c,queryKey:[e,t,r],mutationFn:l}),{mutate:m}=Ka(h),b=EW({queryClient:c,queryKey:[e,t,r],user:d,mutationFn:u}),{mutate:y}=Ka(b),v=K.useCallback(({replyId:S})=>m({replyId:S}),[m]),_=K.useCallback(({replyId:S})=>y({replyId:S}),[y]);return P.jsxs(P.Fragment,{children:[P.jsx(zw,{contentType:"post",createPost:p,membershipRequiredToPost:{isMember:a,required:!0,join:o,leave:i,notMemberStateText:"Join community to create a post."}}),(n==null?void 0:n.length)===0||(n==null?void 0:n.map(S=>{var T,O,$,D,Q,V,G,j,te,X,L,Y,ae,ge,z;const R=((T=S==null?void 0:S.latest_children)==null?void 0:T.like)&&((O=S==null?void 0:S.latest_children)==null?void 0:O.like.filter(H=>H.user_id===(d==null?void 0:d.id)));return P.jsx(vf,{content:{type:"post",body:((D=($=S==null?void 0:S.data)==null?void 0:$.content)==null?void 0:D.text)||"",createdAt:S==null?void 0:S.created_at,slugs:{question:`${e}/${t}/${r}`,reply:S==null?void 0:S.id},slug:`${e}/${t}/${r}#${S==null?void 0:S.id}`,author:{id:(Q=S==null?void 0:S.user)==null?void 0:Q.id,name:(G=(V=S==null?void 0:S.user)==null?void 0:V.data)==null?void 0:G.name,organization:(te=(j=S==null?void 0:S.user)==null?void 0:j.data)==null?void 0:te.organization,jobTitle:(L=(X=S==null?void 0:S.user)==null?void 0:X.data)==null?void 0:L.jobTitle,image:{thumbnail:((ae=(Y=S==null?void 0:S.user)==null?void 0:Y.data)==null?void 0:ae.thumbnail)||void 0}},userLiked:!!(R!=null&&R.length),likes:((ge=S==null?void 0:S.children_counts)==null?void 0:ge.like)||0,comments:((z=S==null?void 0:S.children_counts)==null?void 0:z.reply)||0},functions:{content:{createContent:()=>console.log("create"),deleteContent:()=>console.log("delete"),updateContent:()=>console.log("update")},likes:{createLike:()=>v({replyId:S==null?void 0:S.id}),deleteLike:()=>_({replyId:S==null?void 0:S.id})},comments:{openComments:()=>{}}}},S==null?void 0:S.id)}))]})},_W=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async()=>{var l;await e.cancelQueries({queryKey:t});const s=e.getQueryData(t);return(l=s==null?void 0:s.reaction_counts)!=null&&l.like?s.reaction_counts.like+=1:s&&(s.reaction_counts={like:1}),e.setQueryData(t,()=>({...s})),{previousActivity:s}},onError:(s,l,u)=>{e.setQueryData(t,u.previousActivity)},onSuccess:s=>{const l=e.getQueryData(t);return l!=null&&l.latest_reactions.like?l.latest_reactions.like.push(s):l&&(l.latest_reactions={like:[s]}),e.setQueryData(t,()=>({...l})),{previousActivity:l}},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),wW=({queryClient:e,queryKey:t,user:r,activity:n,mutationFn:a})=>({mutationFn:a,onMutate:async()=>{var c;await e.cancelQueries({queryKey:t});const u=e.getQueryData(t);return(c=u==null?void 0:u.reaction_counts)!=null&&c.like&&u.reaction_counts.like>0&&(u.reaction_counts.like-=1),e.setQueryData(t,()=>({...u})),{previousActivity:u}},onError:(u,c,d)=>{e.setQueryData(t,d.previousActivity)},onSuccess:()=>{var d,f,p;if(!n)return;const u=(p=(f=(d=n.latest_reactions)==null?void 0:d.like)==null?void 0:f.find(h=>h.user_id===(r==null?void 0:r.id)))==null?void 0:p.id,c=e.getQueryData(t);if(c!=null&&c.latest_reactions.like)return c.latest_reactions.like=c.latest_reactions.like.filter(h=>h.id!==u),e.setQueryData(t,()=>({...c})),{previousActivity:c}},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),CW=({basePath:e,parentId:t,activityId:r,membershipRequiredToPost:n,functions:{get:a,likeActivity:o,unlikeActivity:i,createReply:s,likeReply:l,unlikeReply:u}})=>{var T,O,$,D,Q,V,G,j,te,X;const c=K.useContext(da),d=Ds(),{data:f,error:p,isLoading:h,isFetching:m}=vN({queryKey:[e,t,r],queryFn:a}),b=_W({queryClient:d,queryKey:[e,t,r],mutationFn:o}),{mutate:y}=Ka(b),v=wW({queryClient:d,queryKey:[e,t,r],user:c,mutationFn:async()=>{var Y,ae,ge;const L=(ge=(ae=(Y=f==null?void 0:f.latest_reactions)==null?void 0:Y.like)==null?void 0:ae.find(z=>z.user_id===(c==null?void 0:c.id)))==null?void 0:ge.id;await i({activityId:r,reactionId:L})},activity:f}),{mutate:_}=Ka(v),S=K.useCallback(({activityId:L})=>y({activityId:L}),[y]),R=K.useCallback(async({activityId:L})=>_({activityId:L}),[_]);return p?P.jsx(ju,{variant:"error",text:p.message}):h||m?P.jsx(On,{style:{height:"400px"}}):P.jsx(vf,{content:{type:"post",body:f==null?void 0:f.content,createdAt:(f==null?void 0:f.time)||"",slugs:{question:`${t}/${r}`},slug:r,author:{id:(T=f==null?void 0:f.actor)==null?void 0:T.id,name:(O=f==null?void 0:f.actor)==null?void 0:O.data.name,organization:($=f==null?void 0:f.actor)==null?void 0:$.data.organization,jobTitle:(D=f==null?void 0:f.actor)==null?void 0:D.data.jobTitle,image:{thumbnail:((Q=f==null?void 0:f.actor)==null?void 0:Q.data.thumbnail)||void 0}},userLiked:((V=f==null?void 0:f.own_reactions)==null?void 0:V.like)&&((G=f==null?void 0:f.own_reactions)==null?void 0:G.like.length)>0,likes:f&&(f==null?void 0:f.reaction_counts.like),comments:f&&(f==null?void 0:f.reaction_counts.reply)},originalAuthorId:(j=f==null?void 0:f.actor)==null?void 0:j.id,functions:{content:{createContent:()=>console.log("create"),deleteContent:()=>console.log("delete"),updateContent:()=>console.log("update")},likes:{createLike:()=>S({activityId:r}),deleteLike:()=>R({activityId:r})},comments:{openComments:()=>{}}},children:P.jsxs(P.Fragment,{children:[P.jsxs("h3",{children:["Comments (",((te=f==null?void 0:f.reaction_counts)==null?void 0:te.reply)||0,")"]}),P.jsx(tM,{basePath:e,parentId:t,activityId:r,repliesList:(X=f==null?void 0:f.latest_reactions)==null?void 0:X.reply,membershipRequiredToPost:n,functions:{createReply:s,like:l,unlike:u}})]})},r)},RW=({id:e,data:{jobTitle:t,name:r,organization:n,thumbnail:a}})=>({id:e,name:r,jobTitle:t,organization:n,image:{thumbnail:a}});var WE={exports:{}},wt={};/**
|
|
102
|
-
* @license React
|
|
103
|
-
* react-dom-test-utils.production.min.js
|
|
104
|
-
*
|
|
105
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the MIT license found in the
|
|
108
|
-
* LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/var yx;function SW(){if(yx)return wt;yx=1;var e=K,t=Ui;function r(C){var I=C,N=C;if(C.alternate)for(;I.return;)I=I.return;else{C=I;do I=C,I.flags&4098&&(N=I.return),C=I.return;while(C)}return I.tag===3?N:null}function n(C){if(r(C)!==C)throw Error("Unable to find node on an unmounted component.")}function a(C){var I=C.alternate;if(!I){if(I=r(C),I===null)throw Error("Unable to find node on an unmounted component.");return I!==C?null:C}for(var N=C,W=I;;){var de=N.return;if(de===null)break;var Ee=de.alternate;if(Ee===null){if(W=de.return,W!==null){N=W;continue}break}if(de.child===Ee.child){for(Ee=de.child;Ee;){if(Ee===N)return n(de),C;if(Ee===W)return n(de),I;Ee=Ee.sibling}throw Error("Unable to find node on an unmounted component.")}if(N.return!==W.return)N=de,W=Ee;else{for(var ve=!1,Ce=de.child;Ce;){if(Ce===N){ve=!0,N=de,W=Ee;break}if(Ce===W){ve=!0,W=de,N=Ee;break}Ce=Ce.sibling}if(!ve){for(Ce=Ee.child;Ce;){if(Ce===N){ve=!0,N=Ee,W=de;break}if(Ce===W){ve=!0,W=Ee,N=de;break}Ce=Ce.sibling}if(!ve)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(N.alternate!==W)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(N.tag!==3)throw Error("Unable to find node on an unmounted component.");return N.stateNode.current===N?C:I}var o=Object.assign;function i(C){var I=C.keyCode;return"charCode"in C?(C=C.charCode,C===0&&I===13&&(C=13)):C=I,C===10&&(C=13),32<=C||C===13?C:0}function s(){return!0}function l(){return!1}function u(C){function I(N,W,de,Ee,ve){this._reactName=N,this._targetInst=de,this.type=W,this.nativeEvent=Ee,this.target=ve,this.currentTarget=null;for(var Ce in C)C.hasOwnProperty(Ce)&&(N=C[Ce],this[Ce]=N?N(Ee):Ee[Ce]);return this.isDefaultPrevented=(Ee.defaultPrevented!=null?Ee.defaultPrevented:Ee.returnValue===!1)?s:l,this.isPropagationStopped=l,this}return o(I.prototype,{preventDefault:function(){this.defaultPrevented=!0;var N=this.nativeEvent;N&&(N.preventDefault?N.preventDefault():typeof N.returnValue!="unknown"&&(N.returnValue=!1),this.isDefaultPrevented=s)},stopPropagation:function(){var N=this.nativeEvent;N&&(N.stopPropagation?N.stopPropagation():typeof N.cancelBubble!="unknown"&&(N.cancelBubble=!0),this.isPropagationStopped=s)},persist:function(){},isPersistent:s}),I}var c={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(C){return C.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},d=u(c),f=o({},c,{view:0,detail:0});u(f);var p,h,m,b=o({},f,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Q,button:0,buttons:0,relatedTarget:function(C){return C.relatedTarget===void 0?C.fromElement===C.srcElement?C.toElement:C.fromElement:C.relatedTarget},movementX:function(C){return"movementX"in C?C.movementX:(C!==m&&(m&&C.type==="mousemove"?(p=C.screenX-m.screenX,h=C.screenY-m.screenY):h=p=0,m=C),p)},movementY:function(C){return"movementY"in C?C.movementY:h}});u(b);var y=o({},b,{dataTransfer:0});u(y);var v=o({},f,{relatedTarget:0});u(v);var _=o({},c,{animationName:0,elapsedTime:0,pseudoElement:0});u(_);var S=o({},c,{clipboardData:function(C){return"clipboardData"in C?C.clipboardData:window.clipboardData}});u(S);var R=o({},c,{data:0});u(R);var T={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function D(C){var I=this.nativeEvent;return I.getModifierState?I.getModifierState(C):(C=$[C])?!!I[C]:!1}function Q(){return D}var V=o({},f,{key:function(C){if(C.key){var I=T[C.key]||C.key;if(I!=="Unidentified")return I}return C.type==="keypress"?(C=i(C),C===13?"Enter":String.fromCharCode(C)):C.type==="keydown"||C.type==="keyup"?O[C.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Q,charCode:function(C){return C.type==="keypress"?i(C):0},keyCode:function(C){return C.type==="keydown"||C.type==="keyup"?C.keyCode:0},which:function(C){return C.type==="keypress"?i(C):C.type==="keydown"||C.type==="keyup"?C.keyCode:0}});u(V);var G=o({},b,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0});u(G);var j=o({},f,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Q});u(j);var te=o({},c,{propertyName:0,elapsedTime:0,pseudoElement:0});u(te);var X=o({},b,{deltaX:function(C){return"deltaX"in C?C.deltaX:"wheelDeltaX"in C?-C.wheelDeltaX:0},deltaY:function(C){return"deltaY"in C?C.deltaY:"wheelDeltaY"in C?-C.wheelDeltaY:"wheelDelta"in C?-C.wheelDelta:0},deltaZ:0,deltaMode:0});u(X);function L(C,I,N,W,de,Ee,ve,Ce,xe){var ct=Array.prototype.slice.call(arguments,3);try{I.apply(N,ct)}catch(Or){this.onError(Or)}}var Y=!1,ae=null,ge=!1,z=null,H={onError:function(C){Y=!0,ae=C}};function oe(C,I,N,W,de,Ee,ve,Ce,xe){Y=!1,ae=null,L.apply(H,arguments)}function le(C,I,N,W,de,Ee,ve,Ce,xe){if(oe.apply(this,arguments),Y){if(Y){var ct=ae;Y=!1,ae=null}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");ge||(ge=!0,z=ct)}}var $e=Array.isArray,ie=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,he=ie[0],Ge=ie[1],Le=ie[2],Rt=ie[3],xt=ie[4],ye=e.unstable_act;function me(){}function nt(C,I){if(!C)return[];if(C=a(C),!C)return[];for(var N=C,W=[];;){if(N.tag===5||N.tag===6||N.tag===1||N.tag===0){var de=N.stateNode;I(de)&&W.push(de)}if(N.child)N.child.return=N,N=N.child;else{if(N===C)return W;for(;!N.sibling;){if(!N.return||N.return===C)return W;N=N.return}N.sibling.return=N.return,N=N.sibling}}}function Ve(C,I){if(C&&!C._reactInternals){var N=String(C);throw C=$e(C)?"an array":C&&C.nodeType===1&&C.tagName?"a DOM node":N==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":N,Error(I+"(...): the first argument must be a React class instance. Instead received: "+(C+"."))}}function kt(C){return!(!C||C.nodeType!==1||!C.tagName)}function Pt(C){return kt(C)?!1:C!=null&&typeof C.render=="function"&&typeof C.setState=="function"}function Lt(C,I){return Pt(C)?C._reactInternals.type===I:!1}function ht(C,I){return Ve(C,"findAllInRenderedTree"),C?nt(C._reactInternals,I):[]}function mr(C,I){return Ve(C,"scryRenderedDOMComponentsWithClass"),ht(C,function(N){if(kt(N)){var W=N.className;typeof W!="string"&&(W=N.getAttribute("class")||"");var de=W.split(/\s+/);if(!$e(I)){if(I===void 0)throw Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");I=I.split(/\s+/)}return I.every(function(Ee){return de.indexOf(Ee)!==-1})}return!1})}function Jt(C,I){return Ve(C,"scryRenderedDOMComponentsWithTag"),ht(C,function(N){return kt(N)&&N.tagName.toUpperCase()===I.toUpperCase()})}function Wt(C,I){return Ve(C,"scryRenderedComponentsWithType"),ht(C,function(N){return Lt(N,I)})}function ft(C,I,N){var W=C.type||"unknown-event";C.currentTarget=Ge(N),le(W,I,void 0,C),C.currentTarget=null}function Zt(C,I,N){for(var W=[];C;){W.push(C);do C=C.return;while(C&&C.tag!==5);C=C||null}for(C=W.length;0<C--;)I(W[C],"captured",N);for(C=0;C<W.length;C++)I(W[C],"bubbled",N)}function St(C,I){var N=C.stateNode;if(!N)return null;var W=Le(N);if(!W)return null;N=W[I];e:switch(I){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(W=!W.disabled)||(C=C.type,W=!(C==="button"||C==="input"||C==="select"||C==="textarea")),C=!W;break e;default:C=!1}if(C)return null;if(N&&typeof N!="function")throw Error("Expected `"+I+"` listener to be a function, instead got a value of `"+typeof N+"` type.");return N}function bt(C,I,N){C&&N&&N._reactName&&(I=St(C,N._reactName))&&(N._dispatchListeners==null&&(N._dispatchListeners=[]),N._dispatchInstances==null&&(N._dispatchInstances=[]),N._dispatchListeners.push(I),N._dispatchInstances.push(C))}function Cr(C,I,N){var W=N._reactName;I==="captured"&&(W+="Capture"),(I=St(C,W))&&(N._dispatchListeners==null&&(N._dispatchListeners=[]),N._dispatchInstances==null&&(N._dispatchInstances=[]),N._dispatchListeners.push(I),N._dispatchInstances.push(C))}var x={},g=new Set(["mouseEnter","mouseLeave","pointerEnter","pointerLeave"]);function w(C){return function(I,N){if(e.isValidElement(I))throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");if(Pt(I))throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.");var W="on"+C[0].toUpperCase()+C.slice(1),de=new me;de.target=I,de.type=C.toLowerCase();var Ee=he(I),ve=new d(W,de.type,Ee,de,I);ve.persist(),o(ve,N),g.has(C)?ve&&ve._reactName&&bt(ve._targetInst,null,ve):ve&&ve._reactName&&Zt(ve._targetInst,Cr,ve),t.unstable_batchedUpdates(function(){if(Rt(I),ve){var Ce=ve._dispatchListeners,xe=ve._dispatchInstances;if($e(Ce))for(var ct=0;ct<Ce.length&&!ve.isPropagationStopped();ct++)ft(ve,Ce[ct],xe[ct]);else Ce&&ft(ve,Ce,xe);ve._dispatchListeners=null,ve._dispatchInstances=null,ve.isPersistent()||ve.constructor.release(ve)}if(ge)throw Ce=z,ge=!1,z=null,Ce}),xt()}}return"blur cancel click close contextMenu copy cut auxClick doubleClick dragEnd dragStart drop focus input invalid keyDown keyPress keyUp mouseDown mouseUp paste pause play pointerCancel pointerDown pointerUp rateChange reset resize seeked submit touchCancel touchEnd touchStart volumeChange drag dragEnter dragExit dragLeave dragOver mouseMove mouseOut mouseOver pointerMove pointerOut pointerOver scroll toggle touchMove wheel abort animationEnd animationIteration animationStart canPlay canPlayThrough durationChange emptied encrypted ended error gotPointerCapture load loadedData loadedMetadata loadStart lostPointerCapture playing progress seeking stalled suspend timeUpdate transitionEnd waiting mouseEnter mouseLeave pointerEnter pointerLeave change select beforeInput compositionEnd compositionStart compositionUpdate".split(" ").forEach(function(C){x[C]=w(C)}),wt.Simulate=x,wt.act=ye,wt.findAllInRenderedTree=ht,wt.findRenderedComponentWithType=function(C,I){if(Ve(C,"findRenderedComponentWithType"),C=Wt(C,I),C.length!==1)throw Error("Did not find exactly one match (found: "+C.length+") for componentType:"+I);return C[0]},wt.findRenderedDOMComponentWithClass=function(C,I){if(Ve(C,"findRenderedDOMComponentWithClass"),C=mr(C,I),C.length!==1)throw Error("Did not find exactly one match (found: "+C.length+") for class:"+I);return C[0]},wt.findRenderedDOMComponentWithTag=function(C,I){if(Ve(C,"findRenderedDOMComponentWithTag"),C=Jt(C,I),C.length!==1)throw Error("Did not find exactly one match (found: "+C.length+") for tag:"+I);return C[0]},wt.isCompositeComponent=Pt,wt.isCompositeComponentWithType=Lt,wt.isDOMComponent=kt,wt.isDOMComponentElement=function(C){return!!(C&&e.isValidElement(C)&&C.tagName)},wt.isElement=function(C){return e.isValidElement(C)},wt.isElementOfType=function(C,I){return e.isValidElement(C)&&C.type===I},wt.mockComponent=function(C,I){return I=I||C.mockTagName||"div",C.prototype.render.mockImplementation(function(){return e.createElement(I,null,this.props.children)}),this},wt.nativeTouchData=function(C,I){return{touches:[{pageX:C,pageY:I}]}},wt.renderIntoDocument=function(C){var I=document.createElement("div");return t.render(C,I)},wt.scryRenderedComponentsWithType=Wt,wt.scryRenderedDOMComponentsWithClass=mr,wt.scryRenderedDOMComponentsWithTag=Jt,wt.traverseTwoPhase=Zt,wt}var Ct={};/**
|
|
110
|
-
* @license React
|
|
111
|
-
* react-dom-test-utils.development.js
|
|
112
|
-
*
|
|
113
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
114
|
-
*
|
|
115
|
-
* This source code is licensed under the MIT license found in the
|
|
116
|
-
* LICENSE file in the root directory of this source tree.
|
|
117
|
-
*/var gx;function TW(){return gx||(gx=1,process.env.NODE_ENV!=="production"&&function(){var e=K,t=Ui,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(M){{for(var ee=arguments.length,re=new Array(ee>1?ee-1:0),ne=1;ne<ee;ne++)re[ne-1]=arguments[ne];o("warn",M,re)}}function a(M){{for(var ee=arguments.length,re=new Array(ee>1?ee-1:0),ne=1;ne<ee;ne++)re[ne-1]=arguments[ne];o("error",M,re)}}function o(M,ee,re){{var ne=r.ReactDebugCurrentFrame,_e=ne.getStackAddendum();_e!==""&&(ee+="%s",re=re.concat([_e]));var Ae=re.map(function(Je){return String(Je)});Ae.unshift("Warning: "+ee),Function.prototype.apply.call(console[M],console,Ae)}}function i(M){return M._reactInternals}var s=0,l=1,u=3,c=5,d=6,f=0,p=2,h=4096;r.ReactCurrentOwner;function m(M){var ee=M,re=M;if(M.alternate)for(;ee.return;)ee=ee.return;else{var ne=ee;do ee=ne,(ee.flags&(p|h))!==f&&(re=ee.return),ne=ee.return;while(ne)}return ee.tag===u?re:null}function b(M){if(m(M)!==M)throw new Error("Unable to find node on an unmounted component.")}function y(M){var ee=M.alternate;if(!ee){var re=m(M);if(re===null)throw new Error("Unable to find node on an unmounted component.");return re!==M?null:M}for(var ne=M,_e=ee;;){var Ae=ne.return;if(Ae===null)break;var Je=Ae.alternate;if(Je===null){var Dt=Ae.return;if(Dt!==null){ne=_e=Dt;continue}break}if(Ae.child===Je.child){for(var Bt=Ae.child;Bt;){if(Bt===ne)return b(Ae),M;if(Bt===_e)return b(Ae),ee;Bt=Bt.sibling}throw new Error("Unable to find node on an unmounted component.")}if(ne.return!==_e.return)ne=Ae,_e=Je;else{for(var At=!1,vt=Ae.child;vt;){if(vt===ne){At=!0,ne=Ae,_e=Je;break}if(vt===_e){At=!0,_e=Ae,ne=Je;break}vt=vt.sibling}if(!At){for(vt=Je.child;vt;){if(vt===ne){At=!0,ne=Je,_e=Ae;break}if(vt===_e){At=!0,_e=Je,ne=Ae;break}vt=vt.sibling}if(!At)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(ne.alternate!==_e)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(ne.tag!==u)throw new Error("Unable to find node on an unmounted component.");return ne.stateNode.current===ne?M:ee}var v=Object.assign;function _(M){var ee,re=M.keyCode;return"charCode"in M?(ee=M.charCode,ee===0&&re===13&&(ee=13)):ee=re,ee===10&&(ee=13),ee>=32||ee===13?ee:0}function S(){return!0}function R(){return!1}function T(M){function ee(re,ne,_e,Ae,Je){this._reactName=re,this._targetInst=_e,this.type=ne,this.nativeEvent=Ae,this.target=Je,this.currentTarget=null;for(var Dt in M)if(M.hasOwnProperty(Dt)){var Bt=M[Dt];Bt?this[Dt]=Bt(Ae):this[Dt]=Ae[Dt]}var At=Ae.defaultPrevented!=null?Ae.defaultPrevented:Ae.returnValue===!1;return At?this.isDefaultPrevented=S:this.isDefaultPrevented=R,this.isPropagationStopped=R,this}return v(ee.prototype,{preventDefault:function(){this.defaultPrevented=!0;var re=this.nativeEvent;re&&(re.preventDefault?re.preventDefault():typeof re.returnValue!="unknown"&&(re.returnValue=!1),this.isDefaultPrevented=S)},stopPropagation:function(){var re=this.nativeEvent;re&&(re.stopPropagation?re.stopPropagation():typeof re.cancelBubble!="unknown"&&(re.cancelBubble=!0),this.isPropagationStopped=S)},persist:function(){},isPersistent:S}),ee}var O={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(M){return M.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$=T(O),D=v({},O,{view:0,detail:0});T(D);var Q,V,G;function j(M){M!==G&&(G&&M.type==="mousemove"?(Q=M.screenX-G.screenX,V=M.screenY-G.screenY):(Q=0,V=0),G=M)}var te=v({},D,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ie,button:0,buttons:0,relatedTarget:function(M){return M.relatedTarget===void 0?M.fromElement===M.srcElement?M.toElement:M.fromElement:M.relatedTarget},movementX:function(M){return"movementX"in M?M.movementX:(j(M),Q)},movementY:function(M){return"movementY"in M?M.movementY:V}});T(te);var X=v({},te,{dataTransfer:0});T(X);var L=v({},D,{relatedTarget:0});T(L);var Y=v({},O,{animationName:0,elapsedTime:0,pseudoElement:0});T(Y);var ae=v({},O,{clipboardData:function(M){return"clipboardData"in M?M.clipboardData:window.clipboardData}});T(ae);var ge=v({},O,{data:0});T(ge);var z={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},H={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function oe(M){if(M.key){var ee=z[M.key]||M.key;if(ee!=="Unidentified")return ee}if(M.type==="keypress"){var re=_(M);return re===13?"Enter":String.fromCharCode(re)}return M.type==="keydown"||M.type==="keyup"?H[M.keyCode]||"Unidentified":""}var le={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $e(M){var ee=this,re=ee.nativeEvent;if(re.getModifierState)return re.getModifierState(M);var ne=le[M];return ne?!!re[ne]:!1}function ie(M){return $e}var he=v({},D,{key:oe,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ie,charCode:function(M){return M.type==="keypress"?_(M):0},keyCode:function(M){return M.type==="keydown"||M.type==="keyup"?M.keyCode:0},which:function(M){return M.type==="keypress"?_(M):M.type==="keydown"||M.type==="keyup"?M.keyCode:0}});T(he);var Ge=v({},te,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0});T(Ge);var Le=v({},D,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ie});T(Le);var Rt=v({},O,{propertyName:0,elapsedTime:0,pseudoElement:0});T(Rt);var xt=v({},te,{deltaX:function(M){return"deltaX"in M?M.deltaX:"wheelDeltaX"in M?-M.wheelDeltaX:0},deltaY:function(M){return"deltaY"in M?M.deltaY:"wheelDeltaY"in M?-M.wheelDeltaY:"wheelDelta"in M?-M.wheelDelta:0},deltaZ:0,deltaMode:0});T(xt);var ye=1;function me(M,ee,re,ne,_e,Ae,Je,Dt,Bt){var At=Array.prototype.slice.call(arguments,3);try{ee.apply(re,At)}catch(vt){this.onError(vt)}}var nt=me;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var Ve=document.createElement("react");nt=function(ee,re,ne,_e,Ae,Je,Dt,Bt,At){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var vt=document.createEvent("Event"),Ir=!1,fn=!0,Qr=window.event,Gn=Object.getOwnPropertyDescriptor(window,"event");function Vn(){Ve.removeEventListener(Kr,Ea,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=Qr)}var ba=Array.prototype.slice.call(arguments,3);function Ea(){Ir=!0,Vn(),re.apply(ne,ba),fn=!1}var yr,_a=!1,pn=!1;function wa(gr){if(yr=gr.error,_a=!0,yr===null&&gr.colno===0&&gr.lineno===0&&(pn=!0),gr.defaultPrevented&&yr!=null&&typeof yr=="object")try{yr._suppressLogging=!0}catch{}}var Kr="react-"+(ee||"invokeguardedcallback");if(window.addEventListener("error",wa),Ve.addEventListener(Kr,Ea,!1),vt.initEvent(Kr,!1,!1),Ve.dispatchEvent(vt),Gn&&Object.defineProperty(window,"event",Gn),Ir&&fn&&(_a?pn&&(yr=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):yr=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(yr)),window.removeEventListener("error",wa),!Ir)return Vn(),me.apply(this,arguments)}}var kt=nt,Pt=!1,Lt=null,ht=!1,mr=null,Jt={onError:function(M){Pt=!0,Lt=M}};function Wt(M,ee,re,ne,_e,Ae,Je,Dt,Bt){Pt=!1,Lt=null,kt.apply(Jt,arguments)}function ft(M,ee,re,ne,_e,Ae,Je,Dt,Bt){if(Wt.apply(this,arguments),Pt){var At=St();ht||(ht=!0,mr=At)}}function Zt(){if(ht){var M=mr;throw ht=!1,mr=null,M}}function St(){if(Pt){var M=Lt;return Pt=!1,Lt=null,M}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}var bt=Array.isArray;function Cr(M){return bt(M)}var x=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,g=x.Events,w=g[0],C=g[1],I=g[2],N=g[3],W=g[4],de=e.unstable_act;function Ee(M){}var ve=!1;function Ce(M,ee){if(!M)return[];var re=y(M);if(!re)return[];for(var ne=re,_e=[];;){if(ne.tag===c||ne.tag===d||ne.tag===l||ne.tag===s){var Ae=ne.stateNode;ee(Ae)&&_e.push(Ae)}if(ne.child){ne.child.return=ne,ne=ne.child;continue}if(ne===re)return _e;for(;!ne.sibling;){if(!ne.return||ne.return===re)return _e;ne=ne.return}ne.sibling.return=ne.return,ne=ne.sibling}}function xe(M,ee){if(M&&!i(M)){var re,ne=String(M);throw Cr(M)?re="an array":M&&M.nodeType===ye&&M.tagName?re="a DOM node":ne==="[object Object]"?re="object with keys {"+Object.keys(M).join(", ")+"}":re=ne,new Error(ee+"(...): the first argument must be a React class instance. "+("Instead received: "+re+"."))}}function ct(M){var ee=document.createElement("div");return t.render(M,ee)}function Or(M){return e.isValidElement(M)}function Ln(M,ee){return e.isValidElement(M)&&M.type===ee}function vr(M){return!!(M&&M.nodeType===ye&&M.tagName)}function Dn(M){return!!(M&&e.isValidElement(M)&&M.tagName)}function Rr(M){return vr(M)?!1:M!=null&&typeof M.render=="function"&&typeof M.setState=="function"}function un(M,ee){if(!Rr(M))return!1;var re=i(M),ne=re.type;return ne===ee}function Ar(M,ee){if(xe(M,"findAllInRenderedTree"),!M)return[];var re=i(M);return Ce(re,ee)}function cn(M,ee){return xe(M,"scryRenderedDOMComponentsWithClass"),Ar(M,function(re){if(vr(re)){var ne=re.className;typeof ne!="string"&&(ne=re.getAttribute("class")||"");var _e=ne.split(/\s+/);if(!Cr(ee)){if(ee===void 0)throw new Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");ee=ee.split(/\s+/)}return ee.every(function(Ae){return _e.indexOf(Ae)!==-1})}return!1})}function $r(M,ee){xe(M,"findRenderedDOMComponentWithClass");var re=cn(M,ee);if(re.length!==1)throw new Error("Did not find exactly one match (found: "+re.length+") for class:"+ee);return re[0]}function Bn(M,ee){return xe(M,"scryRenderedDOMComponentsWithTag"),Ar(M,function(re){return vr(re)&&re.tagName.toUpperCase()===ee.toUpperCase()})}function Sr(M,ee){xe(M,"findRenderedDOMComponentWithTag");var re=Bn(M,ee);if(re.length!==1)throw new Error("Did not find exactly one match (found: "+re.length+") for tag:"+ee);return re[0]}function ya(M,ee){return xe(M,"scryRenderedComponentsWithType"),Ar(M,function(re){return un(re,ee)})}function po(M,ee){xe(M,"findRenderedComponentWithType");var re=ya(M,ee);if(re.length!==1)throw new Error("Did not find exactly one match (found: "+re.length+") for componentType:"+ee);return re[0]}function ho(M,ee){return ve||(ve=!0,n(`ReactTestUtils.mockComponent() is deprecated. Use shallow rendering or jest.mock() instead.
|
|
118
|
-
|
|
119
|
-
See https://reactjs.org/link/test-utils-mock-component for more information.`)),ee=ee||M.mockTagName||"div",M.prototype.render.mockImplementation(function(){return e.createElement(ee,null,this.props.children)}),this}function ga(M,ee){return{touches:[{pageX:M,pageY:ee}]}}function dn(M,ee,re){var ne=M.type||"unknown-event";M.currentTarget=C(re),ft(ne,ee,void 0,M),M.currentTarget=null}function mt(M){var ee=M._dispatchListeners,re=M._dispatchInstances;if(Cr(ee))for(var ne=0;ne<ee.length&&!M.isPropagationStopped();ne++)dn(M,ee[ne],re[ne]);else ee&&dn(M,ee,re);M._dispatchListeners=null,M._dispatchInstances=null}var Fn=function(M){M&&(mt(M),M.isPersistent()||M.constructor.release(M))};function jn(M){return M==="button"||M==="input"||M==="select"||M==="textarea"}function zr(M){do M=M.return;while(M&&M.tag!==c);return M||null}function Un(M,ee,re){for(var ne=[];M;)ne.push(M),M=zr(M);var _e;for(_e=ne.length;_e-- >0;)ee(ne[_e],"captured",re);for(_e=0;_e<ne.length;_e++)ee(ne[_e],"bubbled",re)}function mo(M,ee,re){switch(M){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(re.disabled&&jn(ee));default:return!1}}function Et(M,ee){var re=M.stateNode;if(!re)return null;var ne=I(re);if(!ne)return null;var _e=ne[ee];if(mo(ee,M.type,ne))return null;if(_e&&typeof _e!="function")throw new Error("Expected `"+ee+"` listener to be a function, instead got a value of `"+typeof _e+"` type.");return _e}function vo(M,ee,re){var ne=ee._reactName;return re==="captured"&&(ne+="Capture"),Et(M,ne)}function yo(M,ee,re){if(M&&re&&re._reactName){var ne=re._reactName,_e=Et(M,ne);_e&&(re._dispatchListeners==null&&(re._dispatchListeners=[]),re._dispatchInstances==null&&(re._dispatchInstances=[]),re._dispatchListeners.push(_e),re._dispatchInstances.push(M))}}function go(M,ee,re){M||a("Dispatching inst must not be null");var ne=vo(M,re,ee);ne&&(re._dispatchListeners==null&&(re._dispatchListeners=[]),re._dispatchInstances==null&&(re._dispatchInstances=[]),re._dispatchListeners.push(ne),re._dispatchInstances.push(M))}function bo(M){M&&M._reactName&&yo(M._targetInst,null,M)}function Hn(M){M&&M._reactName&&Un(M._targetInst,go,M)}var Ot={},Eo=new Set(["mouseEnter","mouseLeave","pointerEnter","pointerLeave"]);function _o(M){return function(ee,re){if(e.isValidElement(ee))throw new Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");if(Rr(ee))throw new Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.");var ne="on"+M[0].toUpperCase()+M.slice(1),_e=new Ee;_e.target=ee,_e.type=M.toLowerCase();var Ae=w(ee),Je=new $(ne,_e.type,Ae,_e,ee);Je.persist(),v(Je,re),Eo.has(M)?bo(Je):Hn(Je),t.unstable_batchedUpdates(function(){N(ee),Fn(Je),Zt()}),W()}}var wo=["blur","cancel","click","close","contextMenu","copy","cut","auxClick","doubleClick","dragEnd","dragStart","drop","focus","input","invalid","keyDown","keyPress","keyUp","mouseDown","mouseUp","paste","pause","play","pointerCancel","pointerDown","pointerUp","rateChange","reset","resize","seeked","submit","touchCancel","touchEnd","touchStart","volumeChange","drag","dragEnter","dragExit","dragLeave","dragOver","mouseMove","mouseOut","mouseOver","pointerMove","pointerOut","pointerOver","scroll","toggle","touchMove","wheel","abort","animationEnd","animationIteration","animationStart","canPlay","canPlayThrough","durationChange","emptied","encrypted","ended","error","gotPointerCapture","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","playing","progress","seeking","stalled","suspend","timeUpdate","transitionEnd","waiting","mouseEnter","mouseLeave","pointerEnter","pointerLeave","change","select","beforeInput","compositionEnd","compositionStart","compositionUpdate"];function Co(){wo.forEach(function(M){Ot[M]=_o(M)})}Co(),Ct.Simulate=Ot,Ct.act=de,Ct.findAllInRenderedTree=Ar,Ct.findRenderedComponentWithType=po,Ct.findRenderedDOMComponentWithClass=$r,Ct.findRenderedDOMComponentWithTag=Sr,Ct.isCompositeComponent=Rr,Ct.isCompositeComponentWithType=un,Ct.isDOMComponent=vr,Ct.isDOMComponentElement=Dn,Ct.isElement=Or,Ct.isElementOfType=Ln,Ct.mockComponent=ho,Ct.nativeTouchData=ga,Ct.renderIntoDocument=ct,Ct.scryRenderedComponentsWithType=ya,Ct.scryRenderedDOMComponentsWithClass=cn,Ct.scryRenderedDOMComponentsWithTag=Bn,Ct.traverseTwoPhase=Un}()),Ct}process.env.NODE_ENV==="production"?WE.exports=SW():WE.exports=TW();var xW=WE.exports,zE,QE,$l=Ui;if(process.env.NODE_ENV==="production")QE=$l.createRoot,zE=$l.hydrateRoot;else{var xc=$l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;QE=function(e,t){xc.usingClientEntryPoint=!0;try{return $l.createRoot(e,t)}finally{xc.usingClientEntryPoint=!1}},zE=function(e,t,r){xc.usingClientEntryPoint=!0;try{return $l.hydrateRoot(e,t,r)}finally{xc.usingClientEntryPoint=!1}}}function PW(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 ua={},Kw={exports:{}};Kw.exports;(function(e){const r=(o=0)=>i=>`\x1B[${38+o};5;${i}m`,n=(o=0)=>(i,s,l)=>`\x1B[${38+o};2;${i};${s};${l}m`;function a(){const o=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.gray=i.color.blackBright,i.bgColor.bgGray=i.bgColor.bgBlackBright,i.color.grey=i.color.blackBright,i.bgColor.bgGrey=i.bgColor.bgBlackBright;for(const[s,l]of Object.entries(i)){for(const[u,c]of Object.entries(l))i[u]={open:`\x1B[${c[0]}m`,close:`\x1B[${c[1]}m`},l[u]=i[u],o.set(c[0],c[1]);Object.defineProperty(i,s,{value:l,enumerable:!1})}return Object.defineProperty(i,"codes",{value:o,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi256=r(),i.color.ansi16m=n(),i.bgColor.ansi256=r(10),i.bgColor.ansi16m=n(10),Object.defineProperties(i,{rgbToAnsi256:{value:(s,l,u)=>s===l&&l===u?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(l/255*5)+Math.round(u/255*5),enumerable:!1},hexToRgb:{value:s=>{const l=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(s.toString(16));if(!l)return[0,0,0];let{colorString:u}=l.groups;u.length===3&&(u=u.split("").map(d=>d+d).join(""));const c=Number.parseInt(u,16);return[c>>16&255,c>>8&255,c&255]},enumerable:!1},hexToAnsi256:{value:s=>i.rgbToAnsi256(...i.hexToRgb(s)),enumerable:!1}}),i}Object.defineProperty(e,"exports",{enumerable:!0,get:a})})(Kw);var rM=Kw.exports,pa={};Object.defineProperty(pa,"__esModule",{value:!0});pa.printIteratorEntries=AW;pa.printIteratorValues=$W;pa.printListItems=IW;pa.printObjectProperties=NW;const OW=(e,t)=>{const r=Object.keys(e).sort(t);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n=>{Object.getOwnPropertyDescriptor(e,n).enumerable&&r.push(n)}),r};function AW(e,t,r,n,a,o,i=": "){let s="",l=e.next();if(!l.done){s+=t.spacingOuter;const u=r+t.indent;for(;!l.done;){const c=o(l.value[0],t,u,n,a),d=o(l.value[1],t,u,n,a);s+=u+c+i+d,l=e.next(),l.done?t.min||(s+=","):s+=","+t.spacingInner}s+=t.spacingOuter+r}return s}function $W(e,t,r,n,a,o){let i="",s=e.next();if(!s.done){i+=t.spacingOuter;const l=r+t.indent;for(;!s.done;)i+=l+o(s.value,t,l,n,a),s=e.next(),s.done?t.min||(i+=","):i+=","+t.spacingInner;i+=t.spacingOuter+r}return i}function IW(e,t,r,n,a,o){let i="";if(e.length){i+=t.spacingOuter;const s=r+t.indent;for(let l=0;l<e.length;l++)i+=s,l in e&&(i+=o(e[l],t,s,n,a)),l<e.length-1?i+=","+t.spacingInner:t.min||(i+=",");i+=t.spacingOuter+r}return i}function NW(e,t,r,n,a,o){let i="";const s=OW(e,t.compareKeys);if(s.length){i+=t.spacingOuter;const l=r+t.indent;for(let u=0;u<s.length;u++){const c=s[u],d=o(c,t,l,n,a),f=o(e[c],t,l,n,a);i+=l+d+": "+f,u<s.length-1?i+=","+t.spacingInner:t.min||(i+=",")}i+=t.spacingOuter+r}return i}var Ja={};Object.defineProperty(Ja,"__esModule",{value:!0});Ja.test=Ja.serialize=Ja.default=void 0;var bx=pa,Rd=function(){return typeof globalThis<"u"?globalThis:typeof Rd<"u"?Rd:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),Qb=Rd["jest-symbol-do-not-touch"]||Rd.Symbol;const MW=typeof Qb=="function"&&Qb.for?Qb.for("jest.asymmetricMatcher"):1267621,Pc=" ",nM=(e,t,r,n,a,o)=>{const i=e.toString();return i==="ArrayContaining"||i==="ArrayNotContaining"?++n>t.maxDepth?"["+i+"]":i+Pc+"["+(0,bx.printListItems)(e.sample,t,r,n,a,o)+"]":i==="ObjectContaining"||i==="ObjectNotContaining"?++n>t.maxDepth?"["+i+"]":i+Pc+"{"+(0,bx.printObjectProperties)(e.sample,t,r,n,a,o)+"}":i==="StringMatching"||i==="StringNotMatching"||i==="StringContaining"||i==="StringNotContaining"?i+Pc+o(e.sample,t,r,n,a):e.toAsymmetricMatcher()};Ja.serialize=nM;const aM=e=>e&&e.$$typeof===MW;Ja.test=aM;const qW={serialize:nM,test:aM};var kW=qW;Ja.default=kW;var Za={},LW=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")};Object.defineProperty(Za,"__esModule",{value:!0});Za.test=Za.serialize=Za.default=void 0;var oM=iM(LW),at=iM(rM);function iM(e){return e&&e.__esModule?e:{default:e}}const DW=e=>e.replace((0,oM.default)(),t=>{switch(t){case at.default.red.close:case at.default.green.close:case at.default.cyan.close:case at.default.gray.close:case at.default.white.close:case at.default.yellow.close:case at.default.bgRed.close:case at.default.bgGreen.close:case at.default.bgYellow.close:case at.default.inverse.close:case at.default.dim.close:case at.default.bold.close:case at.default.reset.open:case at.default.reset.close:return"</>";case at.default.red.open:return"<red>";case at.default.green.open:return"<green>";case at.default.cyan.open:return"<cyan>";case at.default.gray.open:return"<gray>";case at.default.white.open:return"<white>";case at.default.yellow.open:return"<yellow>";case at.default.bgRed.open:return"<bgRed>";case at.default.bgGreen.open:return"<bgGreen>";case at.default.bgYellow.open:return"<bgYellow>";case at.default.inverse.open:return"<inverse>";case at.default.dim.open:return"<dim>";case at.default.bold.open:return"<bold>";default:return""}}),sM=e=>typeof e=="string"&&!!e.match((0,oM.default)());Za.test=sM;const lM=(e,t,r,n,a,o)=>o(DW(e),t,r,n,a);Za.serialize=lM;const BW={serialize:lM,test:sM};var FW=BW;Za.default=FW;var eo={};Object.defineProperty(eo,"__esModule",{value:!0});eo.test=eo.serialize=eo.default=void 0;var Ex=pa;const jW=" ",uM=["DOMStringMap","NamedNodeMap"],UW=/^(HTML\w*Collection|NodeList)$/,HW=e=>uM.indexOf(e)!==-1||UW.test(e),cM=e=>e&&e.constructor&&!!e.constructor.name&&HW(e.constructor.name);eo.test=cM;const GW=e=>e.constructor.name==="NamedNodeMap",dM=(e,t,r,n,a,o)=>{const i=e.constructor.name;return++n>t.maxDepth?"["+i+"]":(t.min?"":i+jW)+(uM.indexOf(i)!==-1?"{"+(0,Ex.printObjectProperties)(GW(e)?Array.from(e).reduce((s,l)=>(s[l.name]=l.value,s),{}):{...e},t,r,n,a,o)+"}":"["+(0,Ex.printListItems)(Array.from(e),t,r,n,a,o)+"]")};eo.serialize=dM;const VW={serialize:dM,test:cM};var WW=VW;eo.default=WW;var to={},rr={},Yw={};Object.defineProperty(Yw,"__esModule",{value:!0});Yw.default=zW;function zW(e){return e.replace(/</g,"<").replace(/>/g,">")}Object.defineProperty(rr,"__esModule",{value:!0});rr.printText=rr.printProps=rr.printElementAsLeaf=rr.printElement=rr.printComment=rr.printChildren=void 0;var fM=QW(Yw);function QW(e){return e&&e.__esModule?e:{default:e}}const KW=(e,t,r,n,a,o,i)=>{const s=n+r.indent,l=r.colors;return e.map(u=>{const c=t[u];let d=i(c,r,s,a,o);return typeof c!="string"&&(d.indexOf(`
|
|
120
|
-
`)!==-1&&(d=r.spacingOuter+s+d+r.spacingOuter+n),d="{"+d+"}"),r.spacingInner+n+l.prop.open+u+l.prop.close+"="+l.value.open+d+l.value.close}).join("")};rr.printProps=KW;const YW=(e,t,r,n,a,o)=>e.map(i=>t.spacingOuter+r+(typeof i=="string"?pM(i,t):o(i,t,r,n,a))).join("");rr.printChildren=YW;const pM=(e,t)=>{const r=t.colors.content;return r.open+(0,fM.default)(e)+r.close};rr.printText=pM;const XW=(e,t)=>{const r=t.colors.comment;return r.open+"<!--"+(0,fM.default)(e)+"-->"+r.close};rr.printComment=XW;const JW=(e,t,r,n,a)=>{const o=n.colors.tag;return o.open+"<"+e+(t&&o.close+t+n.spacingOuter+a+o.open)+(r?">"+o.close+r+n.spacingOuter+a+o.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+o.close};rr.printElement=JW;const ZW=(e,t)=>{const r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close};rr.printElementAsLeaf=ZW;Object.defineProperty(to,"__esModule",{value:!0});to.test=to.serialize=to.default=void 0;var Ii=rr;const e9=1,hM=3,mM=8,vM=11,t9=/^((HTML|SVG)\w*)?Element$/,r9=e=>{try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}},n9=e=>{const t=e.constructor.name,{nodeType:r,tagName:n}=e,a=typeof n=="string"&&n.includes("-")||r9(e);return r===e9&&(t9.test(t)||a)||r===hM&&t==="Text"||r===mM&&t==="Comment"||r===vM&&t==="DocumentFragment"},yM=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&n9(e)};to.test=yM;function a9(e){return e.nodeType===hM}function o9(e){return e.nodeType===mM}function Kb(e){return e.nodeType===vM}const gM=(e,t,r,n,a,o)=>{if(a9(e))return(0,Ii.printText)(e.data,t);if(o9(e))return(0,Ii.printComment)(e.data,t);const i=Kb(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?(0,Ii.printElementAsLeaf)(i,t):(0,Ii.printElement)(i,(0,Ii.printProps)(Kb(e)?[]:Array.from(e.attributes).map(s=>s.name).sort(),Kb(e)?{}:Array.from(e.attributes).reduce((s,l)=>(s[l.name]=l.value,s),{}),t,r+t.indent,n,a,o),(0,Ii.printChildren)(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,a,o),t,r)};to.serialize=gM;const i9={serialize:gM,test:yM};var s9=i9;to.default=s9;var ro={};Object.defineProperty(ro,"__esModule",{value:!0});ro.test=ro.serialize=ro.default=void 0;var iu=pa;const l9="@@__IMMUTABLE_ITERABLE__@@",u9="@@__IMMUTABLE_LIST__@@",c9="@@__IMMUTABLE_KEYED__@@",d9="@@__IMMUTABLE_MAP__@@",_x="@@__IMMUTABLE_ORDERED__@@",f9="@@__IMMUTABLE_RECORD__@@",p9="@@__IMMUTABLE_SEQ__@@",h9="@@__IMMUTABLE_SET__@@",m9="@@__IMMUTABLE_STACK__@@",_s=e=>"Immutable."+e,yf=e=>"["+e+"]",su=" ",wx="…",v9=(e,t,r,n,a,o,i)=>++n>t.maxDepth?yf(_s(i)):_s(i)+su+"{"+(0,iu.printIteratorEntries)(e.entries(),t,r,n,a,o)+"}";function y9(e){let t=0;return{next(){if(t<e._keys.length){const r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}const g9=(e,t,r,n,a,o)=>{const i=_s(e._name||"Record");return++n>t.maxDepth?yf(i):i+su+"{"+(0,iu.printIteratorEntries)(y9(e),t,r,n,a,o)+"}"},b9=(e,t,r,n,a,o)=>{const i=_s("Seq");return++n>t.maxDepth?yf(i):e[c9]?i+su+"{"+(e._iter||e._object?(0,iu.printIteratorEntries)(e.entries(),t,r,n,a,o):wx)+"}":i+su+"["+(e._iter||e._array||e._collection||e._iterable?(0,iu.printIteratorValues)(e.values(),t,r,n,a,o):wx)+"]"},Yb=(e,t,r,n,a,o,i)=>++n>t.maxDepth?yf(_s(i)):_s(i)+su+"["+(0,iu.printIteratorValues)(e.values(),t,r,n,a,o)+"]",bM=(e,t,r,n,a,o)=>e[d9]?v9(e,t,r,n,a,o,e[_x]?"OrderedMap":"Map"):e[u9]?Yb(e,t,r,n,a,o,"List"):e[h9]?Yb(e,t,r,n,a,o,e[_x]?"OrderedSet":"Set"):e[m9]?Yb(e,t,r,n,a,o,"Stack"):e[p9]?b9(e,t,r,n,a,o):g9(e,t,r,n,a,o);ro.serialize=bM;const EM=e=>e&&(e[l9]===!0||e[f9]===!0);ro.test=EM;const E9={serialize:bM,test:EM};var _9=E9;ro.default=_9;var no={},KE={exports:{}},Ze={};/** @license React v17.0.2
|
|
121
|
-
* react-is.production.min.js
|
|
122
|
-
*
|
|
123
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
124
|
-
*
|
|
125
|
-
* This source code is licensed under the MIT license found in the
|
|
126
|
-
* LICENSE file in the root directory of this source tree.
|
|
127
|
-
*/var Cx;function w9(){if(Cx)return Ze;Cx=1;var e=60103,t=60106,r=60107,n=60108,a=60114,o=60109,i=60110,s=60112,l=60113,u=60120,c=60115,d=60116,f=60121,p=60122,h=60117,m=60129,b=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;e=y("react.element"),t=y("react.portal"),r=y("react.fragment"),n=y("react.strict_mode"),a=y("react.profiler"),o=y("react.provider"),i=y("react.context"),s=y("react.forward_ref"),l=y("react.suspense"),u=y("react.suspense_list"),c=y("react.memo"),d=y("react.lazy"),f=y("react.block"),p=y("react.server.block"),h=y("react.fundamental"),m=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function v(j){if(typeof j=="object"&&j!==null){var te=j.$$typeof;switch(te){case e:switch(j=j.type,j){case r:case a:case n:case l:case u:return j;default:switch(j=j&&j.$$typeof,j){case i:case s:case d:case c:case o:return j;default:return te}}case t:return te}}}var _=o,S=e,R=s,T=r,O=d,$=c,D=t,Q=a,V=n,G=l;return Ze.ContextConsumer=i,Ze.ContextProvider=_,Ze.Element=S,Ze.ForwardRef=R,Ze.Fragment=T,Ze.Lazy=O,Ze.Memo=$,Ze.Portal=D,Ze.Profiler=Q,Ze.StrictMode=V,Ze.Suspense=G,Ze.isAsyncMode=function(){return!1},Ze.isConcurrentMode=function(){return!1},Ze.isContextConsumer=function(j){return v(j)===i},Ze.isContextProvider=function(j){return v(j)===o},Ze.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===e},Ze.isForwardRef=function(j){return v(j)===s},Ze.isFragment=function(j){return v(j)===r},Ze.isLazy=function(j){return v(j)===d},Ze.isMemo=function(j){return v(j)===c},Ze.isPortal=function(j){return v(j)===t},Ze.isProfiler=function(j){return v(j)===a},Ze.isStrictMode=function(j){return v(j)===n},Ze.isSuspense=function(j){return v(j)===l},Ze.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===r||j===a||j===m||j===n||j===l||j===u||j===b||typeof j=="object"&&j!==null&&(j.$$typeof===d||j.$$typeof===c||j.$$typeof===o||j.$$typeof===i||j.$$typeof===s||j.$$typeof===h||j.$$typeof===f||j[0]===p)},Ze.typeOf=v,Ze}var et={};/** @license React v17.0.2
|
|
128
|
-
* react-is.development.js
|
|
129
|
-
*
|
|
130
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
131
|
-
*
|
|
132
|
-
* This source code is licensed under the MIT license found in the
|
|
133
|
-
* LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/var Rx;function C9(){return Rx||(Rx=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,t=60106,r=60107,n=60108,a=60114,o=60109,i=60110,s=60112,l=60113,u=60120,c=60115,d=60116,f=60121,p=60122,h=60117,m=60129,b=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;e=y("react.element"),t=y("react.portal"),r=y("react.fragment"),n=y("react.strict_mode"),a=y("react.profiler"),o=y("react.provider"),i=y("react.context"),s=y("react.forward_ref"),l=y("react.suspense"),u=y("react.suspense_list"),c=y("react.memo"),d=y("react.lazy"),f=y("react.block"),p=y("react.server.block"),h=y("react.fundamental"),y("react.scope"),y("react.opaque.id"),m=y("react.debug_trace_mode"),y("react.offscreen"),b=y("react.legacy_hidden")}var v=!1;function _(ye){return!!(typeof ye=="string"||typeof ye=="function"||ye===r||ye===a||ye===m||ye===n||ye===l||ye===u||ye===b||v||typeof ye=="object"&&ye!==null&&(ye.$$typeof===d||ye.$$typeof===c||ye.$$typeof===o||ye.$$typeof===i||ye.$$typeof===s||ye.$$typeof===h||ye.$$typeof===f||ye[0]===p))}function S(ye){if(typeof ye=="object"&&ye!==null){var me=ye.$$typeof;switch(me){case e:var nt=ye.type;switch(nt){case r:case a:case n:case l:case u:return nt;default:var Ve=nt&&nt.$$typeof;switch(Ve){case i:case s:case d:case c:case o:return Ve;default:return me}}case t:return me}}}var R=i,T=o,O=e,$=s,D=r,Q=d,V=c,G=t,j=a,te=n,X=l,L=!1,Y=!1;function ae(ye){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ge(ye){return Y||(Y=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function z(ye){return S(ye)===i}function H(ye){return S(ye)===o}function oe(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===e}function le(ye){return S(ye)===s}function $e(ye){return S(ye)===r}function ie(ye){return S(ye)===d}function he(ye){return S(ye)===c}function Ge(ye){return S(ye)===t}function Le(ye){return S(ye)===a}function Rt(ye){return S(ye)===n}function xt(ye){return S(ye)===l}et.ContextConsumer=R,et.ContextProvider=T,et.Element=O,et.ForwardRef=$,et.Fragment=D,et.Lazy=Q,et.Memo=V,et.Portal=G,et.Profiler=j,et.StrictMode=te,et.Suspense=X,et.isAsyncMode=ae,et.isConcurrentMode=ge,et.isContextConsumer=z,et.isContextProvider=H,et.isElement=oe,et.isForwardRef=le,et.isFragment=$e,et.isLazy=ie,et.isMemo=he,et.isPortal=Ge,et.isProfiler=Le,et.isStrictMode=Rt,et.isSuspense=xt,et.isValidElementType=_,et.typeOf=S}()),et}process.env.NODE_ENV==="production"?KE.exports=w9():KE.exports=C9();var R9=KE.exports;Object.defineProperty(no,"__esModule",{value:!0});no.test=no.serialize=no.default=void 0;var Mo=S9(R9),Oc=rr;function _M(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(_M=function(n){return n?r:t})(e)}function S9(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=_M(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}const wM=(e,t=[])=>(Array.isArray(e)?e.forEach(r=>{wM(r,t)}):e!=null&&e!==!1&&t.push(e),t),Sx=e=>{const t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Mo.isFragment(e))return"React.Fragment";if(Mo.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Mo.isContextProvider(e))return"Context.Provider";if(Mo.isContextConsumer(e))return"Context.Consumer";if(Mo.isForwardRef(e)){if(t.displayName)return t.displayName;const r=t.render.displayName||t.render.name||"";return r!==""?"ForwardRef("+r+")":"ForwardRef"}if(Mo.isMemo(e)){const r=t.displayName||t.type.displayName||t.type.name||"";return r!==""?"Memo("+r+")":"Memo"}}return"UNDEFINED"},T9=e=>{const{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()},CM=(e,t,r,n,a,o)=>++n>t.maxDepth?(0,Oc.printElementAsLeaf)(Sx(e),t):(0,Oc.printElement)(Sx(e),(0,Oc.printProps)(T9(e),e.props,t,r+t.indent,n,a,o),(0,Oc.printChildren)(wM(e.props.children),t,r+t.indent,n,a,o),t,r);no.serialize=CM;const RM=e=>e!=null&&Mo.isElement(e);no.test=RM;const x9={serialize:CM,test:RM};var P9=x9;no.default=P9;var ao={};Object.defineProperty(ao,"__esModule",{value:!0});ao.test=ao.serialize=ao.default=void 0;var Ac=rr,Sd=function(){return typeof globalThis<"u"?globalThis:typeof Sd<"u"?Sd:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),Xb=Sd["jest-symbol-do-not-touch"]||Sd.Symbol;const O9=typeof Xb=="function"&&Xb.for?Xb.for("react.test.json"):245830487,A9=e=>{const{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]},SM=(e,t,r,n,a,o)=>++n>t.maxDepth?(0,Ac.printElementAsLeaf)(e.type,t):(0,Ac.printElement)(e.type,e.props?(0,Ac.printProps)(A9(e),e.props,t,r+t.indent,n,a,o):"",e.children?(0,Ac.printChildren)(e.children,t,r+t.indent,n,a,o):"",t,r);ao.serialize=SM;const TM=e=>e&&e.$$typeof===O9;ao.test=TM;const $9={serialize:SM,test:TM};var I9=$9;ao.default=I9;Object.defineProperty(ua,"__esModule",{value:!0});var xM=ua.default=kM=ua.DEFAULT_OPTIONS=void 0,PM=ua.format=FM,Xw=ua.plugins=void 0,N9=fo(rM),Il=pa,M9=fo(Ja),q9=fo(Za),k9=fo(eo),L9=fo(to),D9=fo(ro),B9=fo(no),F9=fo(ao);function fo(e){return e&&e.__esModule?e:{default:e}}const OM=Object.prototype.toString,j9=Date.prototype.toISOString,U9=Error.prototype.toString,Tx=RegExp.prototype.toString,Jb=e=>typeof e.constructor=="function"&&e.constructor.name||"Object",H9=e=>typeof window<"u"&&e===window,G9=/^Symbol\((.*)\)(.*)$/,V9=/\n/gi;class AM extends Error{constructor(t,r){super(t),this.stack=r,this.name=this.constructor.name}}function W9(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function z9(e){return Object.is(e,-0)?"-0":String(e)}function Q9(e){return`${e}n`}function xx(e,t){return t?"[Function "+(e.name||"anonymous")+"]":"[Function]"}function Px(e){return String(e).replace(G9,"Symbol($1)")}function Ox(e){return"["+U9.call(e)+"]"}function $M(e,t,r,n){if(e===!0||e===!1)return""+e;if(e===void 0)return"undefined";if(e===null)return"null";const a=typeof e;if(a==="number")return z9(e);if(a==="bigint")return Q9(e);if(a==="string")return n?'"'+e.replace(/"|\\/g,"\\$&")+'"':'"'+e+'"';if(a==="function")return xx(e,t);if(a==="symbol")return Px(e);const o=OM.call(e);return o==="[object WeakMap]"?"WeakMap {}":o==="[object WeakSet]"?"WeakSet {}":o==="[object Function]"||o==="[object GeneratorFunction]"?xx(e,t):o==="[object Symbol]"?Px(e):o==="[object Date]"?isNaN(+e)?"Date { NaN }":j9.call(e):o==="[object Error]"?Ox(e):o==="[object RegExp]"?r?Tx.call(e).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):Tx.call(e):e instanceof Error?Ox(e):null}function IM(e,t,r,n,a,o){if(a.indexOf(e)!==-1)return"[Circular]";a=a.slice(),a.push(e);const i=++n>t.maxDepth,s=t.min;if(t.callToJSON&&!i&&e.toJSON&&typeof e.toJSON=="function"&&!o)return Na(e.toJSON(),t,r,n,a,!0);const l=OM.call(e);return l==="[object Arguments]"?i?"[Arguments]":(s?"":"Arguments ")+"["+(0,Il.printListItems)(e,t,r,n,a,Na)+"]":W9(l)?i?"["+e.constructor.name+"]":(s||!t.printBasicPrototype&&e.constructor.name==="Array"?"":e.constructor.name+" ")+"["+(0,Il.printListItems)(e,t,r,n,a,Na)+"]":l==="[object Map]"?i?"[Map]":"Map {"+(0,Il.printIteratorEntries)(e.entries(),t,r,n,a,Na," => ")+"}":l==="[object Set]"?i?"[Set]":"Set {"+(0,Il.printIteratorValues)(e.values(),t,r,n,a,Na)+"}":i||H9(e)?"["+Jb(e)+"]":(s||!t.printBasicPrototype&&Jb(e)==="Object"?"":Jb(e)+" ")+"{"+(0,Il.printObjectProperties)(e,t,r,n,a,Na)+"}"}function K9(e){return e.serialize!=null}function NM(e,t,r,n,a,o){let i;try{i=K9(e)?e.serialize(t,r,n,a,o,Na):e.print(t,s=>Na(s,r,n,a,o),s=>{const l=n+r.indent;return l+s.replace(V9,`
|
|
135
|
-
`+l)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new AM(s.message,s.stack)}if(typeof i!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);return i}function MM(e,t){for(let r=0;r<e.length;r++)try{if(e[r].test(t))return e[r]}catch(n){throw new AM(n.message,n.stack)}return null}function Na(e,t,r,n,a,o){const i=MM(t.plugins,e);if(i!==null)return NM(i,e,t,r,n,a);const s=$M(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s!==null?s:IM(e,t,r,n,a,o)}const Jw={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},qM=Object.keys(Jw),nn={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Jw};var kM=ua.DEFAULT_OPTIONS=nn;function Y9(e){if(Object.keys(e).forEach(t=>{if(!nn.hasOwnProperty(t))throw new Error(`pretty-format: Unknown option "${t}".`)}),e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(e.theme!==void 0){if(e.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof e.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof e.theme}".`)}}const X9=e=>qM.reduce((t,r)=>{const n=e.theme&&e.theme[r]!==void 0?e.theme[r]:Jw[r],a=n&&N9.default[n];if(a&&typeof a.close=="string"&&typeof a.open=="string")t[r]=a;else throw new Error(`pretty-format: Option "theme" has a key "${r}" whose value "${n}" is undefined in ansi-styles.`);return t},Object.create(null)),J9=()=>qM.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null)),LM=e=>e&&e.printFunctionName!==void 0?e.printFunctionName:nn.printFunctionName,DM=e=>e&&e.escapeRegex!==void 0?e.escapeRegex:nn.escapeRegex,BM=e=>e&&e.escapeString!==void 0?e.escapeString:nn.escapeString,Ax=e=>{var t;return{callToJSON:e&&e.callToJSON!==void 0?e.callToJSON:nn.callToJSON,colors:e&&e.highlight?X9(e):J9(),compareKeys:e&&typeof e.compareKeys=="function"?e.compareKeys:nn.compareKeys,escapeRegex:DM(e),escapeString:BM(e),indent:e&&e.min?"":Z9(e&&e.indent!==void 0?e.indent:nn.indent),maxDepth:e&&e.maxDepth!==void 0?e.maxDepth:nn.maxDepth,min:e&&e.min!==void 0?e.min:nn.min,plugins:e&&e.plugins!==void 0?e.plugins:nn.plugins,printBasicPrototype:(t=e==null?void 0:e.printBasicPrototype)!==null&&t!==void 0?t:!0,printFunctionName:LM(e),spacingInner:e&&e.min?" ":`
|
|
136
|
-
`,spacingOuter:e&&e.min?"":`
|
|
137
|
-
`}};function Z9(e){return new Array(e+1).join(" ")}function FM(e,t){if(t&&(Y9(t),t.plugins)){const n=MM(t.plugins,e);if(n!==null)return NM(n,e,Ax(t),"",0,[])}const r=$M(e,LM(t),DM(t),BM(t));return r!==null?r:IM(e,Ax(t),"",0,[])}const ez={AsymmetricMatcher:M9.default,ConvertAnsi:q9.default,DOMCollection:k9.default,DOMElement:L9.default,Immutable:D9.default,ReactElement:B9.default,ReactTestComponent:F9.default};Xw=ua.plugins=ez;var tz=FM;xM=ua.default=tz;const rz=mD({__proto__:null,get DEFAULT_OPTIONS(){return kM},get default(){return xM},format:PM,get plugins(){return Xw}},[ua]);var nz=Object.prototype.toString;function $x(e){return typeof e=="function"||nz.call(e)==="[object Function]"}function az(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var oz=Math.pow(2,53)-1;function iz(e){var t=az(e);return Math.min(Math.max(t,0),oz)}function an(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof t<"u"&&!$x(t))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var a=iz(n.length),o=$x(r)?Object(new r(a)):new Array(a),i=0,s;i<a;)s=n[i],t?o[i]=t(s,i):o[i]=s,i+=1;return o.length=a,o}function lu(e){"@babel/helpers - typeof";return lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lu(e)}function sz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ix(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jM(n.key),n)}}function lz(e,t,r){return t&&Ix(e.prototype,t),r&&Ix(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uz(e,t,r){return t=jM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jM(e){var t=cz(e,"string");return lu(t)==="symbol"?t:String(t)}function cz(e,t){if(lu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(lu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dz=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];sz(this,e),uz(this,"items",void 0),this.items=t}return lz(e,[{key:"add",value:function(r){return this.has(r)===!1&&this.items.push(r),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(r){var n=this.items.length;return this.items=this.items.filter(function(a){return a!==r}),n!==this.items.length}},{key:"forEach",value:function(r){var n=this;this.items.forEach(function(a){r(a,a,n)})}},{key:"has",value:function(r){return this.items.indexOf(r)!==-1}},{key:"size",get:function(){return this.items.length}}]),e}();const fz=typeof Set>"u"?Set:dz;function or(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var pz={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},hz={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function mz(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=hz[t])!==null&&n!==void 0&&n.has(r))})}function UM(e,t){return mz(e,t)}function vz(e){var t=gz(e);if(t===null||t==="presentation"){var r=yz(e);if(t!=="presentation"||UM(e,r||""))return r}return t}function yz(e){var t=pz[or(e)];if(t!==void 0)return t;switch(or(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!UM(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function gz(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function dt(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function HM(e){return dt(e)&&or(e)==="caption"}function Gc(e){return dt(e)&&or(e)==="input"}function bz(e){return dt(e)&&or(e)==="optgroup"}function Ez(e){return dt(e)&&or(e)==="select"}function _z(e){return dt(e)&&or(e)==="table"}function wz(e){return dt(e)&&or(e)==="textarea"}function Cz(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function Rz(e){return dt(e)&&or(e)==="fieldset"}function Sz(e){return dt(e)&&or(e)==="legend"}function Tz(e){return dt(e)&&or(e)==="slot"}function xz(e){return dt(e)&&e.ownerSVGElement!==void 0}function Pz(e){return dt(e)&&or(e)==="svg"}function Oz(e){return xz(e)&&or(e)==="title"}function Td(e,t){if(dt(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(a){return n.getElementById(a)}).filter(function(a){return a!==null})}return[]}function aa(e,t){return dt(e)?t.indexOf(vz(e))!==-1:!1}function Az(e){return e.trim().replace(/\s\s+/g," ")}function $z(e,t){if(!dt(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function Iz(e){return aa(e,["button","combobox","listbox","textbox"])||GM(e,"range")}function GM(e,t){if(!dt(e))return!1;switch(t){case"range":return aa(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function Nx(e,t){var r=an(e.querySelectorAll(t));return Td(e,"aria-owns").forEach(function(n){r.push.apply(r,an(n.querySelectorAll(t)))}),r}function Nz(e){return Ez(e)?e.selectedOptions||Nx(e,"[selected]"):Nx(e,'[aria-selected="true"]')}function Mz(e){return aa(e,["none","presentation"])}function qz(e){return HM(e)}function kz(e){return aa(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function Lz(e){return!1}function Dz(e){return Gc(e)||wz(e)?e.value:e.textContent||""}function Mx(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function VM(e){var t=or(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function WM(e){if(VM(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&dt(r)){var n=WM(r);n!==null&&(t=n)}}),t}function Bz(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):WM(e)}function Fz(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return an(t);if(!VM(e))return null;var r=e.ownerDocument;return an(r.querySelectorAll("label")).filter(function(n){return Bz(n)===e})}function jz(e){var t=e.assignedNodes();return t.length===0?an(e.childNodes):t}function zM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new fz,n=Cz(e),a=t.compute,o=a===void 0?"name":a,i=t.computedStyleSupportsPseudoElements,s=i===void 0?t.getComputedStyle!==void 0:i,l=t.getComputedStyle,u=l===void 0?n.getComputedStyle.bind(n):l,c=t.hidden,d=c===void 0?!1:c;function f(y,v){var _="";if(dt(y)&&s){var S=u(y,"::before"),R=Mx(S);_="".concat(R," ").concat(_)}var T=Tz(y)?jz(y):an(y.childNodes).concat(Td(y,"aria-owns"));if(T.forEach(function(D){var Q=b(D,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),V=dt(D)?u(D).getPropertyValue("display"):"inline",G=V!=="inline"?" ":"";_+="".concat(G).concat(Q).concat(G)}),dt(y)&&s){var O=u(y,"::after"),$=Mx(O);_="".concat(_," ").concat($)}return _.trim()}function p(y,v){var _=y.getAttributeNode(v);return _!==null&&!r.has(_)&&_.value.trim()!==""?(r.add(_),_.value):null}function h(y){return dt(y)?p(y,"title"):null}function m(y){if(!dt(y))return null;if(Rz(y)){r.add(y);for(var v=an(y.childNodes),_=0;_<v.length;_+=1){var S=v[_];if(Sz(S))return b(S,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(_z(y)){r.add(y);for(var R=an(y.childNodes),T=0;T<R.length;T+=1){var O=R[T];if(HM(O))return b(O,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Pz(y)){r.add(y);for(var $=an(y.childNodes),D=0;D<$.length;D+=1){var Q=$[D];if(Oz(Q))return Q.textContent}return null}else if(or(y)==="img"||or(y)==="area"){var V=p(y,"alt");if(V!==null)return V}else if(bz(y)){var G=p(y,"label");if(G!==null)return G}if(Gc(y)&&(y.type==="button"||y.type==="submit"||y.type==="reset")){var j=p(y,"value");if(j!==null)return j;if(y.type==="submit")return"Submit";if(y.type==="reset")return"Reset"}var te=Fz(y);if(te!==null&&te.length!==0)return r.add(y),an(te).map(function(ae){return b(ae,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(ae){return ae.length>0}).join(" ");if(Gc(y)&&y.type==="image"){var X=p(y,"alt");if(X!==null)return X;var L=p(y,"title");return L!==null?L:"Submit Query"}if(aa(y,["button"])){var Y=f(y,{isEmbeddedInLabel:!1,isReferenced:!1});if(Y!=="")return Y}return null}function b(y,v){if(r.has(y))return"";if(!d&&$z(y,u)&&!v.isReferenced)return r.add(y),"";var _=dt(y)?y.getAttributeNode("aria-labelledby"):null,S=_!==null&&!r.has(_)?Td(y,"aria-labelledby"):[];if(o==="name"&&!v.isReferenced&&S.length>0)return r.add(_),S.map(function(V){return b(V,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var R=v.recursion&&Iz(y)&&o==="name";if(!R){var T=(dt(y)&&y.getAttribute("aria-label")||"").trim();if(T!==""&&o==="name")return r.add(y),T;if(!Mz(y)){var O=m(y);if(O!==null)return r.add(y),O}}if(aa(y,["menu"]))return r.add(y),"";if(R||v.isEmbeddedInLabel||v.isReferenced){if(aa(y,["combobox","listbox"])){r.add(y);var $=Nz(y);return $.length===0?Gc(y)?y.value:"":an($).map(function(V){return b(V,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(GM(y,"range"))return r.add(y),y.hasAttribute("aria-valuetext")?y.getAttribute("aria-valuetext"):y.hasAttribute("aria-valuenow")?y.getAttribute("aria-valuenow"):y.getAttribute("value")||"";if(aa(y,["textbox"]))return r.add(y),Dz(y)}if(kz(y)||dt(y)&&v.isReferenced||qz(y)||Lz()){var D=f(y,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1});if(D!=="")return r.add(y),D}if(y.nodeType===y.TEXT_NODE)return r.add(y),y.textContent||"";if(v.recursion)return r.add(y),f(y,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1});var Q=h(y);return Q!==null?(r.add(y),Q):(r.add(y),"")}return Az(b(e,{isEmbeddedInLabel:!1,isReferenced:o==="description",recursion:!1}))}function uu(e){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uu(e)}function qx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function kx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qx(Object(r),!0).forEach(function(n){Uz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uz(e,t,r){return t=Hz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hz(e){var t=Gz(e,"string");return uu(t)==="symbol"?t:String(t)}function Gz(e,t){if(uu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(uu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Td(e,"aria-describedby").map(function(a){return zM(a,kx(kx({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function Vz(e){return aa(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function gf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Vz(e)?"":zM(e,t)}var on={},bf={},di={},Ef={};Object.defineProperty(Ef,"__esModule",{value:!0});Ef.default=void 0;function Wz(){var e=this,t=0,r={"@@iterator":function(){return r},next:function(){if(t<e.length){var a=e[t];return t=t+1,{done:!1,value:a}}else return{done:!0}}};return r}var zz=Wz;Ef.default=zz;Object.defineProperty(di,"__esModule",{value:!0});di.default=Yz;var Qz=Kz(Ef);function Kz(e){return e&&e.__esModule?e:{default:e}}function YE(e){"@babel/helpers - typeof";return YE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},YE(e)}function Yz(e,t){return typeof Symbol=="function"&&YE(Symbol.iterator)==="symbol"&&Object.defineProperty(e,Symbol.iterator,{value:Qz.default.bind(t)}),e}Object.defineProperty(bf,"__esModule",{value:!0});bf.default=void 0;var Xz=Jz(di);function Jz(e){return e&&e.__esModule?e:{default:e}}function Zb(e,t){return t7(e)||e7(e,t)||QM(e,t)||Zz()}function Zz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
138
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e7(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,s;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(l){o=!0,s=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function t7(e){if(Array.isArray(e))return e}function r7(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=QM(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
139
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){i=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function QM(e,t){if(e){if(typeof e=="string")return Lx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lx(e,t)}}function Lx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ni=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],XE={entries:function(){return Ni},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=r7(Ni),a;try{for(n.s();!(a=n.n()).done;){var o=Zb(a.value,2),i=o[0],s=o[1];t.call(r,s,i,Ni)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=Ni.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!XE.get(t)},keys:function(){return Ni.map(function(t){var r=Zb(t,1),n=r[0];return n})},values:function(){return Ni.map(function(t){var r=Zb(t,2),n=r[1];return n})}},n7=(0,Xz.default)(XE,XE.entries());bf.default=n7;var _f={};Object.defineProperty(_f,"__esModule",{value:!0});_f.default=void 0;var a7=o7(di);function o7(e){return e&&e.__esModule?e:{default:e}}function e0(e,t){return l7(e)||s7(e,t)||KM(e,t)||i7()}function i7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
140
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s7(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,s;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(l){o=!0,s=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function l7(e){if(Array.isArray(e))return e}function u7(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=KM(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
141
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){i=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function KM(e,t){if(e){if(typeof e=="string")return Dx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dx(e,t)}}function Dx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Mi=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],JE={entries:function(){return Mi},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=u7(Mi),a;try{for(n.s();!(a=n.n()).done;){var o=e0(a.value,2),i=o[0],s=o[1];t.call(r,s,i,Mi)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=Mi.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!JE.get(t)},keys:function(){return Mi.map(function(t){var r=e0(t,1),n=r[0];return n})},values:function(){return Mi.map(function(t){var r=e0(t,2),n=r[1];return n})}},c7=(0,a7.default)(JE,JE.entries());_f.default=c7;var js={},wf={},Cf={};Object.defineProperty(Cf,"__esModule",{value:!0});Cf.default=void 0;var d7={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},f7=d7;Cf.default=f7;var Rf={};Object.defineProperty(Rf,"__esModule",{value:!0});Rf.default=void 0;var p7={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},h7=p7;Rf.default=h7;var Sf={};Object.defineProperty(Sf,"__esModule",{value:!0});Sf.default=void 0;var m7={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},v7=m7;Sf.default=v7;var Tf={};Object.defineProperty(Tf,"__esModule",{value:!0});Tf.default=void 0;var y7={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},g7=y7;Tf.default=g7;var xf={};Object.defineProperty(xf,"__esModule",{value:!0});xf.default=void 0;var b7={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},E7=b7;xf.default=E7;var Pf={};Object.defineProperty(Pf,"__esModule",{value:!0});Pf.default=void 0;var _7={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"rel"},module:"HTML"},{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},w7=_7;Pf.default=w7;var Of={};Object.defineProperty(Of,"__esModule",{value:!0});Of.default=void 0;var C7={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},R7=C7;Of.default=R7;var Af={};Object.defineProperty(Af,"__esModule",{value:!0});Af.default=void 0;var S7={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},T7=S7;Af.default=T7;var $f={};Object.defineProperty($f,"__esModule",{value:!0});$f.default=void 0;var x7={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]},P7=x7;$f.default=P7;var If={};Object.defineProperty(If,"__esModule",{value:!0});If.default=void 0;var O7={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},A7=O7;If.default=A7;var Nf={};Object.defineProperty(Nf,"__esModule",{value:!0});Nf.default=void 0;var $7={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},I7=$7;Nf.default=I7;var Mf={};Object.defineProperty(Mf,"__esModule",{value:!0});Mf.default=void 0;var N7={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},M7=N7;Mf.default=M7;Object.defineProperty(wf,"__esModule",{value:!0});wf.default=void 0;var q7=Vr(Cf),k7=Vr(Rf),L7=Vr(Sf),D7=Vr(Tf),B7=Vr(xf),F7=Vr(Pf),j7=Vr(Of),U7=Vr(Af),H7=Vr($f),G7=Vr(If),V7=Vr(Nf),W7=Vr(Mf);function Vr(e){return e&&e.__esModule?e:{default:e}}var z7=[["command",q7.default],["composite",k7.default],["input",L7.default],["landmark",D7.default],["range",B7.default],["roletype",F7.default],["section",j7.default],["sectionhead",U7.default],["select",H7.default],["structure",G7.default],["widget",V7.default],["window",W7.default]],Q7=z7;wf.default=Q7;var qf={},kf={};Object.defineProperty(kf,"__esModule",{value:!0});kf.default=void 0;var K7={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Y7=K7;kf.default=Y7;var Lf={};Object.defineProperty(Lf,"__esModule",{value:!0});Lf.default=void 0;var X7={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]},J7=X7;Lf.default=J7;var Df={};Object.defineProperty(Df,"__esModule",{value:!0});Df.default=void 0;var Z7={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},eQ=Z7;Df.default=eQ;var Bf={};Object.defineProperty(Bf,"__esModule",{value:!0});Bf.default=void 0;var tQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},rQ=tQ;Bf.default=rQ;var Ff={};Object.defineProperty(Ff,"__esModule",{value:!0});Ff.default=void 0;var nQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["direct descendant of document"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},aQ=nQ;Ff.default=aQ;var jf={};Object.defineProperty(jf,"__esModule",{value:!0});jf.default=void 0;var oQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},iQ=oQ;jf.default=iQ;var Uf={};Object.defineProperty(Uf,"__esModule",{value:!0});Uf.default=void 0;var sQ={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-pressed"},{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"aria-expanded",value:"false"}],name:"summary"},module:"HTML"},{concept:{attributes:[{name:"aria-expanded",value:"true"}],constraints:["direct descendant of details element with the open attribute defined"],name:"summary"},module:"HTML"},{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},lQ=sQ;Uf.default=lQ;var Hf={};Object.defineProperty(Hf,"__esModule",{value:!0});Hf.default=void 0;var uQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},cQ=uQ;Hf.default=cQ;var Gf={};Object.defineProperty(Gf,"__esModule",{value:!0});Gf.default=void 0;var dQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["descendant of table"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},fQ=dQ;Gf.default=fQ;var Vf={};Object.defineProperty(Vf,"__esModule",{value:!0});Vf.default=void 0;var pQ={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},hQ=pQ;Vf.default=hQ;var Wf={};Object.defineProperty(Wf,"__esModule",{value:!0});Wf.default=void 0;var mQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},vQ=mQ;Wf.default=vQ;var zf={};Object.defineProperty(zf,"__esModule",{value:!0});zf.default=void 0;var yQ={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{attributes:[{name:"scope",value:"col"}],concept:{name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},gQ=yQ;zf.default=gQ;var Qf={};Object.defineProperty(Qf,"__esModule",{value:!0});Qf.default=void 0;var bQ={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],name:"select"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{name:"size",value:1}],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]},EQ=bQ;Qf.default=EQ;var Kf={};Object.defineProperty(Kf,"__esModule",{value:!0});Kf.default=void 0;var _Q={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},wQ=_Q;Kf.default=wQ;var Yf={};Object.defineProperty(Yf,"__esModule",{value:!0});Yf.default=void 0;var CQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["direct descendant of document"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},RQ=CQ;Yf.default=RQ;var Xf={};Object.defineProperty(Xf,"__esModule",{value:!0});Xf.default=void 0;var SQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},TQ=SQ;Xf.default=TQ;var Jf={};Object.defineProperty(Jf,"__esModule",{value:!0});Jf.default=void 0;var xQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},PQ=xQ;Jf.default=PQ;var Zf={};Object.defineProperty(Zf,"__esModule",{value:!0});Zf.default=void 0;var OQ={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},AQ=OQ;Zf.default=AQ;var ep={};Object.defineProperty(ep,"__esModule",{value:!0});ep.default=void 0;var $Q={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},IQ=$Q;ep.default=IQ;var tp={};Object.defineProperty(tp,"__esModule",{value:!0});tp.default=void 0;var NQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"body"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},MQ=NQ;tp.default=MQ;var rp={};Object.defineProperty(rp,"__esModule",{value:!0});rp.default=void 0;var qQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},kQ=qQ;rp.default=kQ;var np={};Object.defineProperty(np,"__esModule",{value:!0});np.default=void 0;var LQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},DQ=LQ;np.default=DQ;var ap={};Object.defineProperty(ap,"__esModule",{value:!0});ap.default=void 0;var BQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},FQ=BQ;ap.default=FQ;var op={};Object.defineProperty(op,"__esModule",{value:!0});op.default=void 0;var jQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},UQ=jQ;op.default=UQ;var ip={};Object.defineProperty(ip,"__esModule",{value:!0});ip.default=void 0;var HQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"span"},module:"HTML"},{concept:{name:"div"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},GQ=HQ;ip.default=GQ;var sp={};Object.defineProperty(sp,"__esModule",{value:!0});sp.default=void 0;var VQ={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[{concept:{attributes:[{name:"role",value:"grid"}],name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]},WQ=VQ;sp.default=WQ;var lp={};Object.defineProperty(lp,"__esModule",{value:!0});lp.default=void 0;var zQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{attributes:[{name:"role",value:"gridcell"}],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]},QQ=zQ;lp.default=QQ;var up={};Object.defineProperty(up,"__esModule",{value:!0});up.default=void 0;var KQ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},YQ=KQ;up.default=YQ;var cp={};Object.defineProperty(cp,"__esModule",{value:!0});cp.default=void 0;var XQ={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]},JQ=XQ;cp.default=JQ;var dp={};Object.defineProperty(dp,"__esModule",{value:!0});dp.default=void 0;var ZQ={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},eK=ZQ;dp.default=eK;var fp={};Object.defineProperty(fp,"__esModule",{value:!0});fp.default=void 0;var tK={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},rK=tK;fp.default=rK;var pp={};Object.defineProperty(pp,"__esModule",{value:!0});pp.default=void 0;var nK={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{name:"href"}],name:"area"},module:"HTML"},{concept:{attributes:[{name:"href"}],name:"link"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},aK=nK;pp.default=aK;var hp={};Object.defineProperty(hp,"__esModule",{value:!0});hp.default=void 0;var oK={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]},iK=oK;hp.default=iK;var mp={};Object.defineProperty(mp,"__esModule",{value:!0});mp.default=void 0;var sK={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"},{name:"multiple"}],name:"select"},module:"HTML"},{concept:{attributes:[{constraints:[">1"],name:"size"}],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},lK=sK;mp.default=lK;var vp={};Object.defineProperty(vp,"__esModule",{value:!0});vp.default=void 0;var uK={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol, ul or menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},cK=uK;vp.default=cK;var yp={};Object.defineProperty(yp,"__esModule",{value:!0});yp.default=void 0;var dK={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},fK=dK;yp.default=fK;var gp={};Object.defineProperty(gp,"__esModule",{value:!0});gp.default=void 0;var pK={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},hK=pK;gp.default=hK;var bp={};Object.defineProperty(bp,"__esModule",{value:!0});bp.default=void 0;var mK={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},vK=mK;bp.default=vK;var Ep={};Object.defineProperty(Ep,"__esModule",{value:!0});Ep.default=void 0;var yK={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},gK=yK;Ep.default=gK;var _p={};Object.defineProperty(_p,"__esModule",{value:!0});_p.default=void 0;var bK={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},EK=bK;_p.default=EK;var wp={};Object.defineProperty(wp,"__esModule",{value:!0});wp.default=void 0;var _K={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]},wK=_K;wp.default=wK;var Cp={};Object.defineProperty(Cp,"__esModule",{value:!0});Cp.default=void 0;var CK={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"menuitem"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},RK=CK;Cp.default=RK;var Rp={};Object.defineProperty(Rp,"__esModule",{value:!0});Rp.default=void 0;var SK={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]},TK=SK;Rp.default=TK;var Sp={};Object.defineProperty(Sp,"__esModule",{value:!0});Sp.default=void 0;var xK={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]},PK=xK;Sp.default=PK;var Tp={};Object.defineProperty(Tp,"__esModule",{value:!0});Tp.default=void 0;var OK={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]},AK=OK;Tp.default=AK;var xp={};Object.defineProperty(xp,"__esModule",{value:!0});xp.default=void 0;var $K={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},IK=$K;xp.default=IK;var Pp={};Object.defineProperty(Pp,"__esModule",{value:!0});Pp.default=void 0;var NK={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},MK=NK;Pp.default=MK;var Op={};Object.defineProperty(Op,"__esModule",{value:!0});Op.default=void 0;var qK={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},kK=qK;Op.default=kK;var Ap={};Object.defineProperty(Ap,"__esModule",{value:!0});Ap.default=void 0;var LK={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]},DK=LK;Ap.default=DK;var $p={};Object.defineProperty($p,"__esModule",{value:!0});$p.default=void 0;var BK={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},FK=BK;$p.default=FK;var Ip={};Object.defineProperty(Ip,"__esModule",{value:!0});Ip.default=void 0;var jK={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},UK=jK;Ip.default=UK;var Np={};Object.defineProperty(Np,"__esModule",{value:!0});Np.default=void 0;var HK={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]},GK=HK;Np.default=GK;var Mp={};Object.defineProperty(Mp,"__esModule",{value:!0});Mp.default=void 0;var VK={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},WK=VK;Mp.default=WK;var qp={};Object.defineProperty(qp,"__esModule",{value:!0});qp.default=void 0;var zK={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},QK=zK;qp.default=QK;var kp={};Object.defineProperty(kp,"__esModule",{value:!0});kp.default=void 0;var KK={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}},{concept:{name:"frame"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},YK=KK;kp.default=YK;var Lp={};Object.defineProperty(Lp,"__esModule",{value:!0});Lp.default=void 0;var XK={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]},JK=XK;Lp.default=JK;var Dp={};Object.defineProperty(Dp,"__esModule",{value:!0});Dp.default=void 0;var ZK={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]},eY=ZK;Dp.default=eY;var Bp={};Object.defineProperty(Bp,"__esModule",{value:!0});Bp.default=void 0;var tY={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},rY=tY;Bp.default=rY;var Fp={};Object.defineProperty(Fp,"__esModule",{value:!0});Fp.default=void 0;var nY={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]},aY=nY;Fp.default=aY;var jp={};Object.defineProperty(jp,"__esModule",{value:!0});jp.default=void 0;var oY={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},iY=oY;jp.default=iY;var Up={};Object.defineProperty(Up,"__esModule",{value:!0});Up.default=void 0;var sY={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]},lY=sY;Up.default=lY;var Hp={};Object.defineProperty(Hp,"__esModule",{value:!0});Hp.default=void 0;var uY={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},cY=uY;Hp.default=cY;var Gp={};Object.defineProperty(Gp,"__esModule",{value:!0});Gp.default=void 0;var dY={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]},fY=dY;Gp.default=fY;var Vp={};Object.defineProperty(Vp,"__esModule",{value:!0});Vp.default=void 0;var pY={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]},hY=pY;Vp.default=hY;var Wp={};Object.defineProperty(Wp,"__esModule",{value:!0});Wp.default=void 0;var mY={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},vY=mY;Wp.default=vY;var zp={};Object.defineProperty(zp,"__esModule",{value:!0});zp.default=void 0;var yY={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},gY=yY;zp.default=gY;var Qp={};Object.defineProperty(Qp,"__esModule",{value:!0});Qp.default=void 0;var bY={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},EY=bY;Qp.default=EY;var Kp={};Object.defineProperty(Kp,"__esModule",{value:!0});Kp.default=void 0;var _Y={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},wY=_Y;Kp.default=wY;var Yp={};Object.defineProperty(Yp,"__esModule",{value:!0});Yp.default=void 0;var CY={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]},RY=CY;Yp.default=RY;var Xp={};Object.defineProperty(Xp,"__esModule",{value:!0});Xp.default=void 0;var SY={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]},TY=SY;Xp.default=TY;var Jp={};Object.defineProperty(Jp,"__esModule",{value:!0});Jp.default=void 0;var xY={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]},PY=xY;Jp.default=PY;var Zp={};Object.defineProperty(Zp,"__esModule",{value:!0});Zp.default=void 0;var OY={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]},AY=OY;Zp.default=AY;var eh={};Object.defineProperty(eh,"__esModule",{value:!0});eh.default=void 0;var $Y={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},IY=$Y;eh.default=IY;var th={};Object.defineProperty(th,"__esModule",{value:!0});th.default=void 0;var NY={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},MY=NY;th.default=MY;var rh={};Object.defineProperty(rh,"__esModule",{value:!0});rh.default=void 0;var qY={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]},kY=qY;rh.default=kY;var nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.default=void 0;var LY={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},DY=LY;nh.default=DY;var ah={};Object.defineProperty(ah,"__esModule",{value:!0});ah.default=void 0;var BY={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},FY=BY;ah.default=FY;var oh={};Object.defineProperty(oh,"__esModule",{value:!0});oh.default=void 0;var jY={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},UY=jY;oh.default=UY;var ih={};Object.defineProperty(ih,"__esModule",{value:!0});ih.default=void 0;var HY={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},GY=HY;ih.default=GY;var sh={};Object.defineProperty(sh,"__esModule",{value:!0});sh.default=void 0;var VY={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},WY=VY;sh.default=WY;var lh={};Object.defineProperty(lh,"__esModule",{value:!0});lh.default=void 0;var zY={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]},QY=zY;lh.default=QY;var uh={};Object.defineProperty(uh,"__esModule",{value:!0});uh.default=void 0;var KY={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]},YY=KY;uh.default=YY;Object.defineProperty(qf,"__esModule",{value:!0});qf.default=void 0;var XY=ce(kf),JY=ce(Lf),ZY=ce(Df),eX=ce(Bf),tX=ce(Ff),rX=ce(jf),nX=ce(Uf),aX=ce(Hf),oX=ce(Gf),iX=ce(Vf),sX=ce(Wf),lX=ce(zf),uX=ce(Qf),cX=ce(Kf),dX=ce(Yf),fX=ce(Xf),pX=ce(Jf),hX=ce(Zf),mX=ce(ep),vX=ce(tp),yX=ce(rp),gX=ce(np),bX=ce(ap),EX=ce(op),_X=ce(ip),wX=ce(sp),CX=ce(lp),RX=ce(up),SX=ce(cp),TX=ce(dp),xX=ce(fp),PX=ce(pp),OX=ce(hp),AX=ce(mp),$X=ce(vp),IX=ce(yp),NX=ce(gp),MX=ce(bp),qX=ce(Ep),kX=ce(_p),LX=ce(wp),DX=ce(Cp),BX=ce(Rp),FX=ce(Sp),jX=ce(Tp),UX=ce(xp),HX=ce(Pp),GX=ce(Op),VX=ce(Ap),WX=ce($p),zX=ce(Ip),QX=ce(Np),KX=ce(Mp),YX=ce(qp),XX=ce(kp),JX=ce(Lp),ZX=ce(Dp),eJ=ce(Bp),tJ=ce(Fp),rJ=ce(jp),nJ=ce(Up),aJ=ce(Hp),oJ=ce(Gp),iJ=ce(Vp),sJ=ce(Wp),lJ=ce(zp),uJ=ce(Qp),cJ=ce(Kp),dJ=ce(Yp),fJ=ce(Xp),pJ=ce(Jp),hJ=ce(Zp),mJ=ce(eh),vJ=ce(th),yJ=ce(rh),gJ=ce(nh),bJ=ce(ah),EJ=ce(oh),_J=ce(ih),wJ=ce(sh),CJ=ce(lh),RJ=ce(uh);function ce(e){return e&&e.__esModule?e:{default:e}}var SJ=[["alert",XY.default],["alertdialog",JY.default],["application",ZY.default],["article",eX.default],["banner",tX.default],["blockquote",rX.default],["button",nX.default],["caption",aX.default],["cell",oX.default],["checkbox",iX.default],["code",sX.default],["columnheader",lX.default],["combobox",uX.default],["complementary",cX.default],["contentinfo",dX.default],["definition",fX.default],["deletion",pX.default],["dialog",hX.default],["directory",mX.default],["document",vX.default],["emphasis",yX.default],["feed",gX.default],["figure",bX.default],["form",EX.default],["generic",_X.default],["grid",wX.default],["gridcell",CX.default],["group",RX.default],["heading",SX.default],["img",TX.default],["insertion",xX.default],["link",PX.default],["list",OX.default],["listbox",AX.default],["listitem",$X.default],["log",IX.default],["main",NX.default],["marquee",MX.default],["math",qX.default],["menu",kX.default],["menubar",LX.default],["menuitem",DX.default],["menuitemcheckbox",BX.default],["menuitemradio",FX.default],["meter",jX.default],["navigation",UX.default],["none",HX.default],["note",GX.default],["option",VX.default],["paragraph",WX.default],["presentation",zX.default],["progressbar",QX.default],["radio",KX.default],["radiogroup",YX.default],["region",XX.default],["row",JX.default],["rowgroup",ZX.default],["rowheader",eJ.default],["scrollbar",tJ.default],["search",rJ.default],["searchbox",nJ.default],["separator",aJ.default],["slider",oJ.default],["spinbutton",iJ.default],["status",sJ.default],["strong",lJ.default],["subscript",uJ.default],["superscript",cJ.default],["switch",dJ.default],["tab",fJ.default],["table",pJ.default],["tablist",hJ.default],["tabpanel",mJ.default],["term",vJ.default],["textbox",yJ.default],["time",gJ.default],["timer",bJ.default],["toolbar",EJ.default],["tooltip",_J.default],["tree",wJ.default],["treegrid",CJ.default],["treeitem",RJ.default]],TJ=SJ;qf.default=TJ;var ch={},dh={};Object.defineProperty(dh,"__esModule",{value:!0});dh.default=void 0;var xJ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},PJ=xJ;dh.default=PJ;var fh={};Object.defineProperty(fh,"__esModule",{value:!0});fh.default=void 0;var OJ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},AJ=OJ;fh.default=AJ;var ph={};Object.defineProperty(ph,"__esModule",{value:!0});ph.default=void 0;var $J={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},IJ=$J;ph.default=IJ;var hh={};Object.defineProperty(hh,"__esModule",{value:!0});hh.default=void 0;var NJ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},MJ=NJ;hh.default=MJ;var mh={};Object.defineProperty(mh,"__esModule",{value:!0});mh.default=void 0;var qJ={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","content"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},kJ=qJ;mh.default=kJ;var vh={};Object.defineProperty(vh,"__esModule",{value:!0});vh.default=void 0;var LJ={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},DJ=LJ;vh.default=DJ;var yh={};Object.defineProperty(yh,"__esModule",{value:!0});yh.default=void 0;var BJ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},FJ=BJ;yh.default=FJ;var gh={};Object.defineProperty(gh,"__esModule",{value:!0});gh.default=void 0;var jJ={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},UJ=jJ;gh.default=UJ;var bh={};Object.defineProperty(bh,"__esModule",{value:!0});bh.default=void 0;var HJ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},GJ=HJ;bh.default=GJ;var Eh={};Object.defineProperty(Eh,"__esModule",{value:!0});Eh.default=void 0;var VJ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},WJ=VJ;Eh.default=WJ;var _h={};Object.defineProperty(_h,"__esModule",{value:!0});_h.default=void 0;var zJ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},QJ=zJ;_h.default=QJ;var wh={};Object.defineProperty(wh,"__esModule",{value:!0});wh.default=void 0;var KJ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},YJ=KJ;wh.default=YJ;var Ch={};Object.defineProperty(Ch,"__esModule",{value:!0});Ch.default=void 0;var XJ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},JJ=XJ;Ch.default=JJ;var Rh={};Object.defineProperty(Rh,"__esModule",{value:!0});Rh.default=void 0;var ZJ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},eZ=ZJ;Rh.default=eZ;var Sh={};Object.defineProperty(Sh,"__esModule",{value:!0});Sh.default=void 0;var tZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},rZ=tZ;Sh.default=rZ;var Th={};Object.defineProperty(Th,"__esModule",{value:!0});Th.default=void 0;var nZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},aZ=nZ;Th.default=aZ;var xh={};Object.defineProperty(xh,"__esModule",{value:!0});xh.default=void 0;var oZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},iZ=oZ;xh.default=iZ;var Ph={};Object.defineProperty(Ph,"__esModule",{value:!0});Ph.default=void 0;var sZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},lZ=sZ;Ph.default=lZ;var Oh={};Object.defineProperty(Oh,"__esModule",{value:!0});Oh.default=void 0;var uZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},cZ=uZ;Oh.default=cZ;var Ah={};Object.defineProperty(Ah,"__esModule",{value:!0});Ah.default=void 0;var dZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},fZ=dZ;Ah.default=fZ;var $h={};Object.defineProperty($h,"__esModule",{value:!0});$h.default=void 0;var pZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},hZ=pZ;$h.default=hZ;var Ih={};Object.defineProperty(Ih,"__esModule",{value:!0});Ih.default=void 0;var mZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},vZ=mZ;Ih.default=vZ;var Nh={};Object.defineProperty(Nh,"__esModule",{value:!0});Nh.default=void 0;var yZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},gZ=yZ;Nh.default=gZ;var Mh={};Object.defineProperty(Mh,"__esModule",{value:!0});Mh.default=void 0;var bZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},EZ=bZ;Mh.default=EZ;var qh={};Object.defineProperty(qh,"__esModule",{value:!0});qh.default=void 0;var _Z={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},wZ=_Z;qh.default=wZ;var kh={};Object.defineProperty(kh,"__esModule",{value:!0});kh.default=void 0;var CZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},RZ=CZ;kh.default=RZ;var Lh={};Object.defineProperty(Lh,"__esModule",{value:!0});Lh.default=void 0;var SZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},TZ=SZ;Lh.default=TZ;var Dh={};Object.defineProperty(Dh,"__esModule",{value:!0});Dh.default=void 0;var xZ={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},PZ=xZ;Dh.default=PZ;var Bh={};Object.defineProperty(Bh,"__esModule",{value:!0});Bh.default=void 0;var OZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},AZ=OZ;Bh.default=AZ;var Fh={};Object.defineProperty(Fh,"__esModule",{value:!0});Fh.default=void 0;var $Z={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]},IZ=$Z;Fh.default=IZ;var jh={};Object.defineProperty(jh,"__esModule",{value:!0});jh.default=void 0;var NZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},MZ=NZ;jh.default=MZ;var Uh={};Object.defineProperty(Uh,"__esModule",{value:!0});Uh.default=void 0;var qZ={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},kZ=qZ;Uh.default=kZ;var Hh={};Object.defineProperty(Hh,"__esModule",{value:!0});Hh.default=void 0;var LZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},DZ=LZ;Hh.default=DZ;var Gh={};Object.defineProperty(Gh,"__esModule",{value:!0});Gh.default=void 0;var BZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},FZ=BZ;Gh.default=FZ;var Vh={};Object.defineProperty(Vh,"__esModule",{value:!0});Vh.default=void 0;var jZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]},UZ=jZ;Vh.default=UZ;var Wh={};Object.defineProperty(Wh,"__esModule",{value:!0});Wh.default=void 0;var HZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},GZ=HZ;Wh.default=GZ;var zh={};Object.defineProperty(zh,"__esModule",{value:!0});zh.default=void 0;var VZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]},WZ=VZ;zh.default=WZ;var Qh={};Object.defineProperty(Qh,"__esModule",{value:!0});Qh.default=void 0;var zZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},QZ=zZ;Qh.default=QZ;var Kh={};Object.defineProperty(Kh,"__esModule",{value:!0});Kh.default=void 0;var KZ={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},YZ=KZ;Kh.default=YZ;Object.defineProperty(ch,"__esModule",{value:!0});ch.default=void 0;var XZ=Me(dh),JZ=Me(fh),ZZ=Me(ph),eee=Me(hh),tee=Me(mh),ree=Me(vh),nee=Me(yh),aee=Me(gh),oee=Me(bh),iee=Me(Eh),see=Me(_h),lee=Me(wh),uee=Me(Ch),cee=Me(Rh),dee=Me(Sh),fee=Me(Th),pee=Me(xh),hee=Me(Ph),mee=Me(Oh),vee=Me(Ah),yee=Me($h),gee=Me(Ih),bee=Me(Nh),Eee=Me(Mh),_ee=Me(qh),wee=Me(kh),Cee=Me(Lh),Ree=Me(Dh),See=Me(Bh),Tee=Me(Fh),xee=Me(jh),Pee=Me(Uh),Oee=Me(Hh),Aee=Me(Gh),$ee=Me(Vh),Iee=Me(Wh),Nee=Me(zh),Mee=Me(Qh),qee=Me(Kh);function Me(e){return e&&e.__esModule?e:{default:e}}var kee=[["doc-abstract",XZ.default],["doc-acknowledgments",JZ.default],["doc-afterword",ZZ.default],["doc-appendix",eee.default],["doc-backlink",tee.default],["doc-biblioentry",ree.default],["doc-bibliography",nee.default],["doc-biblioref",aee.default],["doc-chapter",oee.default],["doc-colophon",iee.default],["doc-conclusion",see.default],["doc-cover",lee.default],["doc-credit",uee.default],["doc-credits",cee.default],["doc-dedication",dee.default],["doc-endnote",fee.default],["doc-endnotes",pee.default],["doc-epigraph",hee.default],["doc-epilogue",mee.default],["doc-errata",vee.default],["doc-example",yee.default],["doc-footnote",gee.default],["doc-foreword",bee.default],["doc-glossary",Eee.default],["doc-glossref",_ee.default],["doc-index",wee.default],["doc-introduction",Cee.default],["doc-noteref",Ree.default],["doc-notice",See.default],["doc-pagebreak",Tee.default],["doc-pagelist",xee.default],["doc-part",Pee.default],["doc-preface",Oee.default],["doc-prologue",Aee.default],["doc-pullquote",$ee.default],["doc-qna",Iee.default],["doc-subtitle",Nee.default],["doc-tip",Mee.default],["doc-toc",qee.default]],Lee=kee;ch.default=Lee;var Yh={},Xh={};Object.defineProperty(Xh,"__esModule",{value:!0});Xh.default=void 0;var Dee={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},Bee=Dee;Xh.default=Bee;var Jh={};Object.defineProperty(Jh,"__esModule",{value:!0});Jh.default=void 0;var Fee={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},jee=Fee;Jh.default=jee;var Zh={};Object.defineProperty(Zh,"__esModule",{value:!0});Zh.default=void 0;var Uee={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},Hee=Uee;Zh.default=Hee;Object.defineProperty(Yh,"__esModule",{value:!0});Yh.default=void 0;var Gee=eC(Xh),Vee=eC(Jh),Wee=eC(Zh);function eC(e){return e&&e.__esModule?e:{default:e}}var zee=[["graphics-document",Gee.default],["graphics-object",Vee.default],["graphics-symbol",Wee.default]],Qee=zee;Yh.default=Qee;Object.defineProperty(js,"__esModule",{value:!0});js.default=void 0;var Kee=Uu(wf),Yee=Uu(qf),Xee=Uu(ch),Jee=Uu(Yh),Zee=Uu(di);function Uu(e){return e&&e.__esModule?e:{default:e}}function ete(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZE(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=YM(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
142
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){i=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function zl(e,t){return nte(e)||rte(e,t)||YM(e,t)||tte()}function tte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
143
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YM(e,t){if(e){if(typeof e=="string")return Bx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bx(e,t)}}function Bx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rte(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,s;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(l){o=!0,s=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function nte(e){if(Array.isArray(e))return e}var Ma=[].concat(Kee.default,Yee.default,Xee.default,Jee.default);Ma.forEach(function(e){var t=zl(e,2),r=t[1],n=ZE(r.superClass),a;try{for(n.s();!(a=n.n()).done;){var o=a.value,i=ZE(o),s;try{var l=function(){var c=s.value,d=Ma.find(function(b){var y=zl(b,1),v=y[0];return v===c});if(d)for(var f=d[1],p=0,h=Object.keys(f.props);p<h.length;p++){var m=h[p];Object.prototype.hasOwnProperty.call(r.props,m)||Object.assign(r.props,ete({},m,f.props[m]))}};for(i.s();!(s=i.n()).done;)l()}catch(u){i.e(u)}finally{i.f()}}}catch(u){n.e(u)}finally{n.f()}});var e_={entries:function(){return Ma},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=ZE(Ma),a;try{for(n.s();!(a=n.n()).done;){var o=zl(a.value,2),i=o[0],s=o[1];t.call(r,s,i,Ma)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=Ma.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!e_.get(t)},keys:function(){return Ma.map(function(t){var r=zl(t,1),n=r[0];return n})},values:function(){return Ma.map(function(t){var r=zl(t,2),n=r[1];return n})}},ate=(0,Zee.default)(e_,e_.entries());js.default=ate;var em={},Fx=Object.prototype.toString,XM=function(t){var r=Fx.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Fx.call(t.callee)==="[object Function]"),n},t0,jx;function ote(){if(jx)return t0;jx=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=XM,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),i=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(f){var p=f.constructor;return p&&p.prototype===f},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&t.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{l(window[f])}catch{return!0}}catch{return!0}return!1}(),d=function(f){if(typeof window>"u"||!c)return l(f);try{return l(f)}catch{return!1}};e=function(p){var h=p!==null&&typeof p=="object",m=r.call(p)==="[object Function]",b=n(p),y=h&&r.call(p)==="[object String]",v=[];if(!h&&!m&&!b)throw new TypeError("Object.keys called on a non-object");var _=i&&m;if(y&&p.length>0&&!t.call(p,0))for(var S=0;S<p.length;++S)v.push(String(S));if(b&&p.length>0)for(var R=0;R<p.length;++R)v.push(String(R));else for(var T in p)!(_&&T==="prototype")&&t.call(p,T)&&v.push(String(T));if(o)for(var O=d(p),$=0;$<s.length;++$)!(O&&s[$]==="constructor")&&t.call(p,s[$])&&v.push(s[$]);return v}}return t0=e,t0}var ite=Array.prototype.slice,ste=XM,Ux=Object.keys,Vc=Ux?function(t){return Ux(t)}:ote(),Hx=Object.keys;Vc.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return ste(n)?Hx(ite.call(n)):Hx(n)})}else Object.keys=Vc;return Object.keys||Vc};var tC=Vc,lte=tC,ute=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",cte=Object.prototype.toString,dte=Array.prototype.concat,Gx=iw,fte=function(e){return typeof e=="function"&&cte.call(e)==="[object Function]"},JM=Xd(),pte=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!fte(n)||!n())return}JM?Gx(e,t,r,!0):Gx(e,t,r)},ZM=function(e,t){var r=arguments.length>2?arguments[2]:{},n=lte(t);ute&&(n=dte.call(n,Object.getOwnPropertySymbols(t)));for(var a=0;a<n.length;a+=1)pte(e,n[a],t[n[a]],r[n[a]])};ZM.supportsDescriptors=!!JM;var fi=ZM,hte=tC,eq=Yd(),tq=Ur,Vx=Object,mte=tq("Array.prototype.push"),Wx=tq("Object.prototype.propertyIsEnumerable"),vte=eq?Object.getOwnPropertySymbols:null,rq=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=Vx(t);if(arguments.length===1)return n;for(var a=1;a<arguments.length;++a){var o=Vx(arguments[a]),i=hte(o),s=eq&&(Object.getOwnPropertySymbols||vte);if(s)for(var l=s(o),u=0;u<l.length;++u){var c=l[u];Wx(o,c)&&mte(i,c)}for(var d=0;d<i.length;++d){var f=i[d];if(Wx(o,f)){var p=o[f];n[f]=p}}}return n},r0=rq,yte=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var a=Object.assign({},r),o="";for(var i in a)o+=i;return e!==o},gte=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1},nq=function(){return!Object.assign||yte()||gte()?r0:Object.assign},bte=fi,Ete=nq,_te=function(){var t=Ete();return bte(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},wte=fi,Cte=Is,Rte=rq,aq=nq,Ste=_te,Tte=Cte.apply(aq()),oq=function(t,r){return Tte(Object,arguments)};wte(oq,{getPolyfill:aq,implementation:Rte,shim:Ste});var xte=oq,cu=function(){return typeof(function(){}).name=="string"},Ql=Object.getOwnPropertyDescriptor;if(Ql)try{Ql([],"length")}catch{Ql=null}cu.functionsHaveConfigurableNames=function(){if(!cu()||!Ql)return!1;var t=Ql(function(){},"name");return!!t&&!!t.configurable};var Pte=Function.prototype.bind;cu.boundFunctionsHaveNames=function(){return cu()&&typeof Pte=="function"&&(function(){}).bind().name!==""};var Ote=cu,zx=iw,Ate=Xd(),$te=Ote.functionsHaveConfigurableNames(),Ite=TypeError,Nte=function(t,r){if(typeof t!="function")throw new Ite("`fn` is not a function");var n=arguments.length>2&&!!arguments[2];return(!n||$te)&&(Ate?zx(t,"name",r,!0,!0):zx(t,"name",r)),t},Mte=Nte,qte=Object,kte=TypeError,iq=Mte(function(){if(this!=null&&this!==qte(this))throw new kte("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),Lte=iq,Dte=fi.supportsDescriptors,Bte=Object.getOwnPropertyDescriptor,sq=function(){if(Dte&&/a/mig.flags==="gim"){var t=Bte(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d"}}),Object.defineProperty(n,"sticky",{get:function(){r+="y"}}),r==="dy")return t.get}}return Lte},Fte=fi.supportsDescriptors,jte=sq,Ute=Object.getOwnPropertyDescriptor,Hte=Object.defineProperty,Gte=TypeError,Qx=Object.getPrototypeOf,Vte=/a/,Wte=function(){if(!Fte||!Qx)throw new Gte("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=jte(),r=Qx(Vte),n=Ute(r,"flags");return(!n||n.get!==t)&&Hte(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},zte=fi,Qte=Is,Kte=iq,lq=sq,Yte=Wte,uq=Qte(lq());zte(uq,{getPolyfill:lq,implementation:Kte,shim:Yte});var Xte=uq,Wc={exports:{}},Jte=Yd,pi=function(){return Jte()&&!!Symbol.toStringTag},Zte=pi(),ere=Ur,t_=ere("Object.prototype.toString"),tm=function(t){return Zte&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:t_(t)==="[object Arguments]"},cq=function(t){return tm(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&t_(t)!=="[object Array]"&&t_(t.callee)==="[object Function]"},tre=function(){return tm(arguments)}();tm.isLegacyArguments=cq;var dq=tre?tm:cq,rre=jr,nre=tA,Nl=fw(),Jn=rre("%TypeError%"),rC={assert:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new Jn("`O` is not an object");if(typeof t!="string")throw new Jn("`slot` must be a string");if(Nl.assert(e),!rC.has(e,t))throw new Jn("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new Jn("`O` is not an object");if(typeof t!="string")throw new Jn("`slot` must be a string");var r=Nl.get(e);return r&&r["$"+t]},has:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new Jn("`O` is not an object");if(typeof t!="string")throw new Jn("`slot` must be a string");var r=Nl.get(e);return!!r&&nre(r,"$"+t)},set:function(e,t,r){if(!e||typeof e!="object"&&typeof e!="function")throw new Jn("`O` is not an object");if(typeof t!="string")throw new Jn("`slot` must be a string");var n=Nl.get(e);n||(n={},Nl.set(e,n)),n["$"+t]=r}};Object.freeze&&Object.freeze(rC);var are=rC,Ml=are,ore=SyntaxError,Kx=typeof StopIteration=="object"?StopIteration:null,ire=function(t){if(!Kx)throw new ore("this environment lacks StopIteration");Ml.set(t,"[[Done]]",!1);var r={next:function(){var a=Ml.get(this,"[[Iterator]]"),o=Ml.get(a,"[[Done]]");try{return{done:o,value:o?void 0:a.next()}}catch(i){if(Ml.set(a,"[[Done]]",!0),i!==Kx)throw i;return{done:!0,value:void 0}}}};return Ml.set(r,"[[Iterator]]",t),r},sre={}.toString,fq=Array.isArray||function(e){return sre.call(e)=="[object Array]"},lre=String.prototype.valueOf,ure=function(t){try{return lre.call(t),!0}catch{return!1}},cre=Object.prototype.toString,dre="[object String]",fre=pi(),pq=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:fre?ure(t):cre.call(t)===dre},nC=typeof Map=="function"&&Map.prototype?Map:null,pre=typeof Set=="function"&&Set.prototype?Set:null,xd;nC||(xd=function(t){return!1});var hq=nC?Map.prototype.has:null,Yx=pre?Set.prototype.has:null;!xd&&!hq&&(xd=function(t){return!1});var mq=xd||function(t){if(!t||typeof t!="object")return!1;try{if(hq.call(t),Yx)try{Yx.call(t)}catch{return!0}return t instanceof nC}catch{}return!1},hre=typeof Map=="function"&&Map.prototype?Map:null,aC=typeof Set=="function"&&Set.prototype?Set:null,Pd;aC||(Pd=function(t){return!1});var Xx=hre?Map.prototype.has:null,vq=aC?Set.prototype.has:null;!Pd&&!vq&&(Pd=function(t){return!1});var yq=Pd||function(t){if(!t||typeof t!="object")return!1;try{if(vq.call(t),Xx)try{Xx.call(t)}catch{return!0}return t instanceof aC}catch{}return!1},Jx=dq,Zx=ire;if(rw()||Yd()){var n0=Symbol.iterator;Wc.exports=function(t){if(t!=null&&typeof t[n0]<"u")return t[n0]();if(Jx(t))return Array.prototype[n0].call(t)}}else{var mre=fq,vre=pq,eP=jr,yre=eP("%Map%",!0),gre=eP("%Set%",!0),en=Ur,tP=en("Array.prototype.push"),rP=en("String.prototype.charCodeAt"),bre=en("String.prototype.slice"),Ere=function(t,r){var n=t.length;if(r+1>=n)return r+1;var a=rP(t,r);if(a<55296||a>56319)return r+1;var o=rP(t,r+1);return o<56320||o>57343?r+1:r+2},a0=function(t){var r=0;return{next:function(){var a=r>=t.length,o;return a||(o=t[r],r+=1),{done:a,value:o}}}},nP=function(t,r){if(mre(t)||Jx(t))return a0(t);if(vre(t)){var n=0;return{next:function(){var o=Ere(t,n),i=bre(t,n,o);return n=o,{done:o>t.length,value:i}}}}if(r&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!yre&&!gre)Wc.exports=function(t){if(t!=null)return nP(t,!0)};else{var _re=mq,wre=yq,aP=en("Map.prototype.forEach",!0),oP=en("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var iP=en("Map.prototype.iterator",!0),sP=en("Set.prototype.iterator",!0);var lP=en("Map.prototype.@@iterator",!0)||en("Map.prototype._es6-shim iterator_",!0),uP=en("Set.prototype.@@iterator",!0)||en("Set.prototype._es6-shim iterator_",!0),Cre=function(t){if(_re(t)){if(iP)return Zx(iP(t));if(lP)return lP(t);if(aP){var r=[];return aP(t,function(a,o){tP(r,[o,a])}),a0(r)}}if(wre(t)){if(sP)return Zx(sP(t));if(uP)return uP(t);if(oP){var n=[];return oP(t,function(a){tP(n,a)}),a0(n)}}};Wc.exports=function(t){return Cre(t)||nP(t)}}}var Rre=Wc.exports,cP=function(e){return e!==e},gq=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||cP(t)&&cP(r))},Sre=gq,bq=function(){return typeof Object.is=="function"?Object.is:Sre},Tre=bq,xre=fi,Pre=function(){var t=Tre();return xre(Object,{is:t},{is:function(){return Object.is!==t}}),t},Ore=fi,Are=Is,$re=gq,Eq=bq,Ire=Pre,_q=Are(Eq(),Object);Ore(_q,{getPolyfill:Eq,implementation:$re,shim:Ire});var Nre=_q,wq=Function.prototype.toString,Fi=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r_,zc;if(typeof Fi=="function"&&typeof Object.defineProperty=="function")try{r_=Object.defineProperty({},"length",{get:function(){throw zc}}),zc={},Fi(function(){throw 42},null,r_)}catch(e){e!==zc&&(Fi=null)}else Fi=null;var Mre=/^\s*class\b/,n_=function(t){try{var r=wq.call(t);return Mre.test(r)}catch{return!1}},o0=function(t){try{return n_(t)?!1:(wq.call(t),!0)}catch{return!1}},Qc=Object.prototype.toString,qre="[object Object]",kre="[object Function]",Lre="[object GeneratorFunction]",Dre="[object HTMLAllCollection]",Bre="[object HTML document.all class]",Fre="[object HTMLCollection]",jre=typeof Symbol=="function"&&!!Symbol.toStringTag,Ure=!(0 in[,]),a_=function(){return!1};if(typeof document=="object"){var Hre=document.all;Qc.call(Hre)===Qc.call(document.all)&&(a_=function(t){if((Ure||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Qc.call(t);return(r===Dre||r===Bre||r===Fre||r===qre)&&t("")==null}catch{}return!1})}var Gre=Fi?function(t){if(a_(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Fi(t,null,r_)}catch(r){if(r!==zc)return!1}return!n_(t)&&o0(t)}:function(t){if(a_(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(jre)return o0(t);if(n_(t))return!1;var r=Qc.call(t);return r!==kre&&r!==Lre&&!/^\[object HTML/.test(r)?!1:o0(t)},Vre=Gre,Wre=Object.prototype.toString,Cq=Object.prototype.hasOwnProperty,zre=function(t,r,n){for(var a=0,o=t.length;a<o;a++)Cq.call(t,a)&&(n==null?r(t[a],a,t):r.call(n,t[a],a,t))},Qre=function(t,r,n){for(var a=0,o=t.length;a<o;a++)n==null?r(t.charAt(a),a,t):r.call(n,t.charAt(a),a,t)},Kre=function(t,r,n){for(var a in t)Cq.call(t,a)&&(n==null?r(t[a],a,t):r.call(n,t[a],a,t))},Yre=function(t,r,n){if(!Vre(r))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),Wre.call(t)==="[object Array]"?zre(t,r,a):typeof t=="string"?Qre(t,r,a):Kre(t,r,a)},Xre=Yre,i0=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Jre=typeof globalThis>"u"?we:globalThis,Zre=function(){for(var t=[],r=0;r<i0.length;r++)typeof Jre[i0[r]]=="function"&&(t[t.length]=i0[r]);return t},Od=Xre,ene=Zre,dP=Is,oC=Ur,Kc=aw,tne=oC("Object.prototype.toString"),Rq=pi(),fP=typeof globalThis>"u"?we:globalThis,o_=ene(),iC=oC("String.prototype.slice"),s0=Object.getPrototypeOf,rne=oC("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n<t.length;n+=1)if(t[n]===r)return n;return-1},Ad={__proto__:null};Rq&&Kc&&s0?Od(o_,function(e){var t=new fP[e];if(Symbol.toStringTag in t){var r=s0(t),n=Kc(r,Symbol.toStringTag);if(!n){var a=s0(r);n=Kc(a,Symbol.toStringTag)}Ad["$"+e]=dP(n.get)}}):Od(o_,function(e){var t=new fP[e],r=t.slice||t.set;r&&(Ad["$"+e]=dP(r))});var nne=function(t){var r=!1;return Od(Ad,function(n,a){if(!r)try{"$"+n(t)===a&&(r=iC(a,1))}catch{}}),r},ane=function(t){var r=!1;return Od(Ad,function(n,a){if(!r)try{n(t),r=iC(a,1)}catch{}}),r},Sq=function(t){if(!t||typeof t!="object")return!1;if(!Rq){var r=iC(tne(t),8,-1);return rne(o_,r)>-1?r:r!=="Object"?!1:ane(t)}return Kc?nne(t):null},one=Sq,ine=function(t){return!!one(t)},sne=Is,lne=Ur,Tq=jr,une=ine,pP=Tq("ArrayBuffer",!0),hP=Tq("Float32Array",!0),Yc=lne("ArrayBuffer.prototype.byteLength",!0),mP=pP&&!Yc&&new pP().slice,vP=mP&&sne(mP),xq=Yc||vP?function(t){if(!t||typeof t!="object")return!1;try{return Yc?Yc(t):vP(t,0),!0}catch{return!1}}:hP?function(t){try{return new hP(t).buffer===t&&!une(t)}catch(r){return typeof t=="object"&&r.name==="RangeError"}}:function(t){return!1},cne=Date.prototype.getDay,dne=function(t){try{return cne.call(t),!0}catch{return!1}},fne=Object.prototype.toString,pne="[object Date]",hne=pi(),mne=function(t){return typeof t!="object"||t===null?!1:hne?dne(t):fne.call(t)===pne},i_=Ur,Pq=pi(),Oq,Aq,s_,l_;if(Pq){Oq=i_("Object.prototype.hasOwnProperty"),Aq=i_("RegExp.prototype.exec"),s_={};var l0=function(){throw s_};l_={toString:l0,valueOf:l0},typeof Symbol.toPrimitive=="symbol"&&(l_[Symbol.toPrimitive]=l0)}var vne=i_("Object.prototype.toString"),yne=Object.getOwnPropertyDescriptor,gne="[object RegExp]",bne=Pq?function(t){if(!t||typeof t!="object")return!1;var r=yne(t,"lastIndex"),n=r&&Oq(r,"value");if(!n)return!1;try{Aq(t,l_)}catch(a){return a===s_}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:vne(t)===gne},Ene=Ur,yP=Ene("SharedArrayBuffer.prototype.byteLength",!0),_ne=yP?function(t){if(!t||typeof t!="object")return!1;try{return yP(t),!0}catch{return!1}}:function(t){return!1},wne=Number.prototype.toString,Cne=function(t){try{return wne.call(t),!0}catch{return!1}},Rne=Object.prototype.toString,Sne="[object Number]",Tne=pi(),xne=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:Tne?Cne(t):Rne.call(t)===Sne},$q=Ur,Pne=$q("Boolean.prototype.toString"),One=$q("Object.prototype.toString"),Ane=function(t){try{return Pne(t),!0}catch{return!1}},$ne="[object Boolean]",Ine=pi(),Nne=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:Ine&&Symbol.toStringTag in t?Ane(t):One(t)===$ne},u_={exports:{}},Mne=Object.prototype.toString,qne=rw();if(qne){var kne=Symbol.prototype.toString,Lne=/^Symbol\(.*\)$/,Dne=function(t){return typeof t.valueOf()!="symbol"?!1:Lne.test(kne.call(t))};u_.exports=function(t){if(typeof t=="symbol")return!0;if(Mne.call(t)!=="[object Symbol]")return!1;try{return Dne(t)}catch{return!1}}}else u_.exports=function(t){return!1};var Bne=u_.exports,c_={exports:{}},gP=typeof BigInt<"u"&&BigInt,Fne=function(){return typeof gP=="function"&&typeof BigInt=="function"&&typeof gP(42)=="bigint"&&typeof BigInt(42)=="bigint"},jne=Fne();if(jne){var Une=BigInt.prototype.valueOf,Hne=function(t){try{return Une.call(t),!0}catch{}return!1};c_.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:Hne(t)}}else c_.exports=function(t){return!1};var Gne=c_.exports,Vne=pq,Wne=xne,zne=Nne,Qne=Bne,Kne=Gne,Yne=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(Vne(t))return"String";if(Wne(t))return"Number";if(zne(t))return"Boolean";if(Qne(t))return"Symbol";if(Kne(t))return"BigInt"},$d=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,bP=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Id;$d||(Id=function(t){return!1});var d_=$d?$d.prototype.has:null,u0=bP?bP.prototype.has:null;!Id&&!d_&&(Id=function(t){return!1});var Xne=Id||function(t){if(!t||typeof t!="object")return!1;try{if(d_.call(t,d_),u0)try{u0.call(t,u0)}catch{return!0}return t instanceof $d}catch{}return!1},f_={exports:{}},Jne=jr,Iq=Ur,Zne=Jne("%WeakSet%",!0),c0=Iq("WeakSet.prototype.has",!0);if(c0){var d0=Iq("WeakMap.prototype.has",!0);f_.exports=function(t){if(!t||typeof t!="object")return!1;try{if(c0(t,c0),d0)try{d0(t,d0)}catch{return!0}return t instanceof Zne}catch{}return!1}}else f_.exports=function(t){return!1};var eae=f_.exports,tae=mq,rae=yq,nae=Xne,aae=eae,oae=function(t){if(t&&typeof t=="object"){if(tae(t))return"Map";if(rae(t))return"Set";if(nae(t))return"WeakMap";if(aae(t))return"WeakSet"}return!1},iae=Ur,EP=iae("ArrayBuffer.prototype.byteLength",!0),sae=xq,lae=function(t){return sae(t)?EP?EP(t):t.byteLength:NaN},Nq=xte,Nn=Ur,_P=Xte,uae=jr,ws=Rre,cae=fw,wP=Nre,CP=dq,RP=fq,SP=xq,TP=mne,xP=bne,PP=_ne,OP=tC,AP=Yne,$P=oae,IP=Sq,NP=lae,MP=Nn("SharedArrayBuffer.prototype.byteLength",!0),qP=Nn("Date.prototype.getTime"),f0=Object.getPrototypeOf,kP=Nn("Object.prototype.toString"),Nd=uae("%Set%",!0),p_=Nn("Map.prototype.has",!0),Md=Nn("Map.prototype.get",!0),LP=Nn("Map.prototype.size",!0),qd=Nn("Set.prototype.add",!0),Mq=Nn("Set.prototype.delete",!0),kd=Nn("Set.prototype.has",!0),Xc=Nn("Set.prototype.size",!0);function DP(e,t,r,n){for(var a=ws(e),o;(o=a.next())&&!o.done;)if(ln(t,o.value,r,n))return Mq(e,o.value),!0;return!1}function qq(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function dae(e,t,r,n,a,o){var i=qq(r);if(i!=null)return i;var s=Md(t,i),l=Nq({},a,{strict:!1});return typeof s>"u"&&!p_(t,i)||!ln(n,s,l,o)?!1:!p_(e,i)&&ln(n,s,l,o)}function fae(e,t,r){var n=qq(r);return n??(kd(t,n)&&!kd(e,n))}function BP(e,t,r,n,a,o){for(var i=ws(e),s,l;(s=i.next())&&!s.done;)if(l=s.value,ln(r,l,a,o)&&ln(n,Md(t,l),a,o))return Mq(e,l),!0;return!1}function ln(e,t,r,n){var a=r||{};if(a.strict?wP(e,t):e===t)return!0;var o=AP(e),i=AP(t);if(o!==i)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return a.strict?wP(e,t):e==t;var s=n.has(e),l=n.has(t),u;if(s&&l){if(n.get(e)===n.get(t))return!0}else u={};return s||n.set(e,u),l||n.set(t,u),mae(e,t,a,n)}function FP(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function pae(e,t,r,n){if(Xc(e)!==Xc(t))return!1;for(var a=ws(e),o=ws(t),i,s,l;(i=a.next())&&!i.done;)if(i.value&&typeof i.value=="object")l||(l=new Nd),qd(l,i.value);else if(!kd(t,i.value)){if(r.strict||!fae(e,t,i.value))return!1;l||(l=new Nd),qd(l,i.value)}if(l){for(;(s=o.next())&&!s.done;)if(s.value&&typeof s.value=="object"){if(!DP(l,s.value,r.strict,n))return!1}else if(!r.strict&&!kd(e,s.value)&&!DP(l,s.value,r.strict,n))return!1;return Xc(l)===0}return!0}function hae(e,t,r,n){if(LP(e)!==LP(t))return!1;for(var a=ws(e),o=ws(t),i,s,l,u,c,d;(i=a.next())&&!i.done;)if(u=i.value[0],c=i.value[1],u&&typeof u=="object")l||(l=new Nd),qd(l,u);else if(d=Md(t,u),typeof d>"u"&&!p_(t,u)||!ln(c,d,r,n)){if(r.strict||!dae(e,t,u,c,r,n))return!1;l||(l=new Nd),qd(l,u)}if(l){for(;(s=o.next())&&!s.done;)if(u=s.value[0],d=s.value[1],u&&typeof u=="object"){if(!BP(l,e,u,d,r,n))return!1}else if(!r.strict&&(!e.has(u)||!ln(Md(e,u),d,r,n))&&!BP(l,e,u,d,Nq({},r,{strict:!1}),n))return!1;return Xc(l)===0}return!0}function mae(e,t,r,n){var a,o;if(typeof e!=typeof t||e==null||t==null||kP(e)!==kP(t)||CP(e)!==CP(t))return!1;var i=RP(e),s=RP(t);if(i!==s)return!1;var l=e instanceof Error,u=t instanceof Error;if(l!==u||(l||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=xP(e),d=xP(t);if(c!==d||(c||d)&&(e.source!==t.source||_P(e)!==_P(t)))return!1;var f=TP(e),p=TP(t);if(f!==p||(f||p)&&qP(e)!==qP(t)||r.strict&&f0&&f0(e)!==f0(t))return!1;var h=IP(e),m=IP(t);if(h!==m)return!1;if(h||m){if(e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}var b=FP(e),y=FP(t);if(b!==y)return!1;if(b||y){if(e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}var v=SP(e),_=SP(t);if(v!==_)return!1;if(v||_)return NP(e)!==NP(t)?!1:typeof Uint8Array=="function"&&ln(new Uint8Array(e),new Uint8Array(t),r,n);var S=PP(e),R=PP(t);if(S!==R)return!1;if(S||R)return MP(e)!==MP(t)?!1:typeof Uint8Array=="function"&&ln(new Uint8Array(e),new Uint8Array(t),r,n);if(typeof e!=typeof t)return!1;var T=OP(e),O=OP(t);if(T.length!==O.length)return!1;for(T.sort(),O.sort(),a=T.length-1;a>=0;a--)if(T[a]!=O[a])return!1;for(a=T.length-1;a>=0;a--)if(o=T[a],!ln(e[o],t[o],r,n))return!1;var $=$P(e),D=$P(t);return $!==D?!1:$==="Set"||D==="Set"?pae(e,t,r,n):$==="Map"?hae(e,t,r,n):!0}var vae=function(t,r,n){return ln(t,r,n,cae())};Object.defineProperty(em,"__esModule",{value:!0});em.default=void 0;var yae=sC(vae),gae=sC(di),kq=sC(js);function sC(e){return e&&e.__esModule?e:{default:e}}function p0(e,t){return _ae(e)||Eae(e,t)||Lq(e,t)||bae()}function bae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
144
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eae(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,s;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(l){o=!0,s=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function _ae(e){if(Array.isArray(e))return e}function wae(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Lq(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
145
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){i=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function Lq(e,t){if(e){if(typeof e=="string")return jP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jP(e,t)}}function jP(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var qa=[],UP=kq.default.keys();for(var h0=0;h0<UP.length;h0++){var m0=UP[h0],v0=kq.default.get(m0);if(v0)for(var HP=[].concat(v0.baseConcepts,v0.relatedConcepts),y0=0;y0<HP.length;y0++){var GP=HP[y0];if(GP.module==="HTML"){var g0=GP.concept;g0&&function(){var e=JSON.stringify(g0),t=qa.find(function(o){return JSON.stringify(o[0])===e}),r=void 0;t?r=t[1]:r=[];for(var n=!0,a=0;a<r.length;a++)if(r[a]===m0){n=!1;break}n&&r.push(m0),qa.push([g0,r])}()}}}var h_={entries:function(){return qa},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=wae(qa),a;try{for(n.s();!(a=n.n()).done;){var o=p0(a.value,2),i=o[0],s=o[1];t.call(r,s,i,qa)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=qa.find(function(n){return(0,yae.default)(t,n[0])});return r&&r[1]},has:function(t){return!!h_.get(t)},keys:function(){return qa.map(function(t){var r=p0(t,1),n=r[0];return n})},values:function(){return qa.map(function(t){var r=p0(t,2),n=r[1];return n})}},Cae=(0,gae.default)(h_,h_.entries());em.default=Cae;var rm={};Object.defineProperty(rm,"__esModule",{value:!0});rm.default=void 0;var Rae=Bq(di),Dq=Bq(js);function Bq(e){return e&&e.__esModule?e:{default:e}}function b0(e,t){return xae(e)||Tae(e,t)||Fq(e,t)||Sae()}function Sae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
146
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tae(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,s;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(l){o=!0,s=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function xae(e){if(Array.isArray(e))return e}function Pae(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Fq(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
147
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){i=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function Fq(e,t){if(e){if(typeof e=="string")return VP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return VP(e,t)}}function VP(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ka=[],jq=Dq.default.keys(),Oae=function(t){var r=jq[t],n=Dq.default.get(r);if(n)for(var a=[].concat(n.baseConcepts,n.relatedConcepts),o=0;o<a.length;o++){var i=a[o];if(i.module==="HTML"){var s=i.concept;if(s){var l=ka.find(function(c){return c[0]===r}),u=void 0;l?u=l[1]:u=[],u.push(s),ka.push([r,u])}}}};for(var E0=0;E0<jq.length;E0++)Oae(E0);var m_={entries:function(){return ka},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=Pae(ka),a;try{for(n.s();!(a=n.n()).done;){var o=b0(a.value,2),i=o[0],s=o[1];t.call(r,s,i,ka)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=ka.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!m_.get(t)},keys:function(){return ka.map(function(t){var r=b0(t,1),n=r[0];return n})},values:function(){return ka.map(function(t){var r=b0(t,2),n=r[1];return n})}},Aae=(0,Rae.default)(m_,m_.entries());rm.default=Aae;Object.defineProperty(on,"__esModule",{value:!0});var tn=on.roles=Hq=on.roleElements=Uq=on.elementRoles=on.dom=on.aria=void 0,$ae=Hu(bf),Iae=Hu(_f),Nae=Hu(js),Mae=Hu(em),qae=Hu(rm);function Hu(e){return e&&e.__esModule?e:{default:e}}var kae=$ae.default;on.aria=kae;var Lae=Iae.default;on.dom=Lae;var Dae=Nae.default;tn=on.roles=Dae;var Bae=Mae.default,Uq=on.elementRoles=Bae,Fae=qae.default,Hq=on.roleElements=Fae,lC={exports:{}};lC.exports;(function(e){var t=function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function i(l,u){if(!o[l]){o[l]={};for(var c=0;c<l.length;c++)o[l][l.charAt(c)]=c}return o[l][u]}var s={compressToBase64:function(l){if(l==null)return"";var u=s._compress(l,6,function(c){return n.charAt(c)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:s._decompress(l.length,32,function(u){return i(n,l.charAt(u))})},compressToUTF16:function(l){return l==null?"":s._compress(l,15,function(u){return r(u+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:s._decompress(l.length,16384,function(u){return l.charCodeAt(u)-32})},compressToUint8Array:function(l){for(var u=s.compress(l),c=new Uint8Array(u.length*2),d=0,f=u.length;d<f;d++){var p=u.charCodeAt(d);c[d*2]=p>>>8,c[d*2+1]=p%256}return c},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var u=new Array(l.length/2),c=0,d=u.length;c<d;c++)u[c]=l[c*2]*256+l[c*2+1];var f=[];return u.forEach(function(p){f.push(r(p))}),s.decompress(f.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":s._compress(l,6,function(u){return a.charAt(u)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),s._decompress(l.length,32,function(u){return i(a,l.charAt(u))}))},compress:function(l){return s._compress(l,16,function(u){return r(u)})},_compress:function(l,u,c){if(l==null)return"";var d,f,p={},h={},m="",b="",y="",v=2,_=3,S=2,R=[],T=0,O=0,$;for($=0;$<l.length;$+=1)if(m=l.charAt($),Object.prototype.hasOwnProperty.call(p,m)||(p[m]=_++,h[m]=!0),b=y+m,Object.prototype.hasOwnProperty.call(p,b))y=b;else{if(Object.prototype.hasOwnProperty.call(h,y)){if(y.charCodeAt(0)<256){for(d=0;d<S;d++)T=T<<1,O==u-1?(O=0,R.push(c(T)),T=0):O++;for(f=y.charCodeAt(0),d=0;d<8;d++)T=T<<1|f&1,O==u-1?(O=0,R.push(c(T)),T=0):O++,f=f>>1}else{for(f=1,d=0;d<S;d++)T=T<<1|f,O==u-1?(O=0,R.push(c(T)),T=0):O++,f=0;for(f=y.charCodeAt(0),d=0;d<16;d++)T=T<<1|f&1,O==u-1?(O=0,R.push(c(T)),T=0):O++,f=f>>1}v--,v==0&&(v=Math.pow(2,S),S++),delete h[y]}else for(f=p[y],d=0;d<S;d++)T=T<<1|f&1,O==u-1?(O=0,R.push(c(T)),T=0):O++,f=f>>1;v--,v==0&&(v=Math.pow(2,S),S++),p[b]=_++,y=String(m)}if(y!==""){if(Object.prototype.hasOwnProperty.call(h,y)){if(y.charCodeAt(0)<256){for(d=0;d<S;d++)T=T<<1,O==u-1?(O=0,R.push(c(T)),T=0):O++;for(f=y.charCodeAt(0),d=0;d<8;d++)T=T<<1|f&1,O==u-1?(O=0,R.push(c(T)),T=0):O++,f=f>>1}else{for(f=1,d=0;d<S;d++)T=T<<1|f,O==u-1?(O=0,R.push(c(T)),T=0):O++,f=0;for(f=y.charCodeAt(0),d=0;d<16;d++)T=T<<1|f&1,O==u-1?(O=0,R.push(c(T)),T=0):O++,f=f>>1}v--,v==0&&(v=Math.pow(2,S),S++),delete h[y]}else for(f=p[y],d=0;d<S;d++)T=T<<1|f&1,O==u-1?(O=0,R.push(c(T)),T=0):O++,f=f>>1;v--,v==0&&(v=Math.pow(2,S),S++)}for(f=2,d=0;d<S;d++)T=T<<1|f&1,O==u-1?(O=0,R.push(c(T)),T=0):O++,f=f>>1;for(;;)if(T=T<<1,O==u-1){R.push(c(T));break}else O++;return R.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(u){return l.charCodeAt(u)})},_decompress:function(l,u,c){var d=[],f=4,p=4,h=3,m="",b=[],y,v,_,S,R,T,O,$={val:c(0),position:u,index:1};for(y=0;y<3;y+=1)d[y]=y;for(_=0,R=Math.pow(2,2),T=1;T!=R;)S=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=c($.index++)),_|=(S>0?1:0)*T,T<<=1;switch(_){case 0:for(_=0,R=Math.pow(2,8),T=1;T!=R;)S=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=c($.index++)),_|=(S>0?1:0)*T,T<<=1;O=r(_);break;case 1:for(_=0,R=Math.pow(2,16),T=1;T!=R;)S=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=c($.index++)),_|=(S>0?1:0)*T,T<<=1;O=r(_);break;case 2:return""}for(d[3]=O,v=O,b.push(O);;){if($.index>l)return"";for(_=0,R=Math.pow(2,h),T=1;T!=R;)S=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=c($.index++)),_|=(S>0?1:0)*T,T<<=1;switch(O=_){case 0:for(_=0,R=Math.pow(2,8),T=1;T!=R;)S=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=c($.index++)),_|=(S>0?1:0)*T,T<<=1;d[p++]=r(_),O=p-1,f--;break;case 1:for(_=0,R=Math.pow(2,16),T=1;T!=R;)S=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=c($.index++)),_|=(S>0?1:0)*T,T<<=1;d[p++]=r(_),O=p-1,f--;break;case 2:return b.join("")}if(f==0&&(f=Math.pow(2,h),h++),d[O])m=d[O];else if(O===p)m=v+v.charAt(0);else return null;b.push(m),d[p++]=v+m.charAt(0),f--,v=m,f==0&&(f=Math.pow(2,h),h++)}}};return s}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(lC);var jae=lC.exports;const Uae=Yt(jae);function Gq(e){return e.replace(/</g,"<").replace(/>/g,">")}const Hae=(e,t,r,n,a,o,i)=>{const s=n+r.indent,l=r.colors;return e.map(u=>{const c=t[u];let d=i(c,r,s,a,o);return typeof c!="string"&&(d.indexOf(`
|
|
148
|
-
`)!==-1&&(d=r.spacingOuter+s+d+r.spacingOuter+n),d="{"+d+"}"),r.spacingInner+n+l.prop.open+u+l.prop.close+"="+l.value.open+d+l.value.close}).join("")},Gae=3,Vae=(e,t,r,n,a,o)=>e.map(i=>{const s=typeof i=="string"?Vq(i,t):o(i,t,r,n,a);return s===""&&typeof i=="object"&&i!==null&&i.nodeType!==Gae?"":t.spacingOuter+r+s}).join(""),Vq=(e,t)=>{const r=t.colors.content;return r.open+Gq(e)+r.close},Wae=(e,t)=>{const r=t.colors.comment;return r.open+"<!--"+Gq(e)+"-->"+r.close},zae=(e,t,r,n,a)=>{const o=n.colors.tag;return o.open+"<"+e+(t&&o.close+t+n.spacingOuter+a+o.open)+(r?">"+o.close+r+n.spacingOuter+a+o.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+o.close},Qae=(e,t)=>{const r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},Kae=1,Wq=3,zq=8,Qq=11,Yae=/^((HTML|SVG)\w*)?Element$/,Xae=e=>{const t=e.constructor.name,{nodeType:r,tagName:n}=e,a=typeof n=="string"&&n.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is");return r===Kae&&(Yae.test(t)||a)||r===Wq&&t==="Text"||r===zq&&t==="Comment"||r===Qq&&t==="DocumentFragment"};function Jae(e){return e.nodeType===Wq}function Zae(e){return e.nodeType===zq}function _0(e){return e.nodeType===Qq}function eoe(e){return{test:t=>{var r;return(t==null||(r=t.constructor)==null?void 0:r.name)&&Xae(t)},serialize:(t,r,n,a,o,i)=>{if(Jae(t))return Vq(t.data,r);if(Zae(t))return Wae(t.data,r);const s=_0(t)?"DocumentFragment":t.tagName.toLowerCase();return++a>r.maxDepth?Qae(s,r):zae(s,Hae(_0(t)?[]:Array.from(t.attributes).map(l=>l.name).sort(),_0(t)?{}:Array.from(t.attributes).reduce((l,u)=>(l[u.name]=u.value,l),{}),r,n+r.indent,a,o,i),Vae(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,a,o,i),r,n)}}}let Kq=null,uC=null,cC=null;try{const e=module&&PW;uC=e.call(module,"fs").readFileSync,cC=e.call(module,"@babel/code-frame").codeFrameColumns,Kq=e.call(module,"chalk")}catch{}function toe(e){const t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),a=n.split(":"),[o,i,s]=[a[0],parseInt(a[1],10),parseInt(a[2],10)];let l="";try{l=uC(o,"utf-8")}catch{return""}const u=cC(l,{start:{line:i,column:s}},{highlightCode:!0,linesBelow:0});return Kq.dim(n)+`
|
|
149
|
-
`+u+`
|
|
150
|
-
`}function roe(){if(!uC||!cC)return"";const t=new Error().stack.split(`
|
|
151
|
-
`).slice(1).find(r=>!r.includes("node_modules/"));return toe(t)}const Yq=3;function w0(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function dC(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function Xq(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}function ha(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}}const noe=()=>{let e;try{var t;e=JSON.parse((t=process)==null||(t=t.env)==null?void 0:t.COLORS)}catch{}return typeof e=="boolean"?e:typeof process<"u"&&process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:aoe}=Xw,ooe=1,ioe=8;function soe(e){return e.nodeType!==ioe&&(e.nodeType!==ooe||!e.matches(He().defaultIgnore))}function ri(e,t,r){if(r===void 0&&(r={}),e||(e=dC().body),typeof t!="number"&&(t=typeof process<"u"&&process.env.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);const{filterNode:a=soe,...o}=r,i=PM(e,{plugins:[eoe(a),aoe],printFunctionName:!1,highlight:noe(),...o});return t!==void 0&&e.outerHTML.length>t?i.slice(0,t)+"...":i}const v_=function(){const e=roe();console.log(e?ri(...arguments)+`
|
|
152
|
-
|
|
153
|
-
`+e:ri(...arguments))};let Xo={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:e=>e(),unstable_advanceTimersWrapper:e=>e(),eventWrapper:e=>e(),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){const r=ri(t),n=new Error([e,"Ignored nodes: comments, "+Xo.defaultIgnore+`
|
|
154
|
-
`+r].filter(Boolean).join(`
|
|
155
|
-
|
|
156
|
-
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function loe(e){try{return Xo._disableExpensiveErrorDiagnostics=!0,e()}finally{Xo._disableExpensiveErrorDiagnostics=!1}}function Jq(e){typeof e=="function"&&(e=e(Xo)),Xo={...Xo,...e}}function He(){return Xo}const uoe=["button","meter","output","progress","select","textarea","input"];function Zq(e){return uoe.includes(e.nodeName.toLowerCase())?"":e.nodeType===Yq?e.textContent:Array.from(e.childNodes).map(t=>Zq(t)).join("")}function y_(e){let t;return e.tagName.toLowerCase()==="label"?t=Zq(e):t=e.value||e.textContent,t}function ek(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!coe(e))return[];const r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function coe(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function tk(e,t,r){let{selector:n="*"}=r===void 0?{}:r;const a=t.getAttribute("aria-labelledby"),o=a?a.split(" "):[];return o.length?o.map(i=>{const s=e.querySelector('[id="'+i+'"]');return s?{content:y_(s),formControl:null}:{content:"",formControl:null}}):Array.from(ek(t)).map(i=>{const s=y_(i),l="button, input, meter, output, progress, select, textarea",u=Array.from(i.querySelectorAll(l)).filter(c=>c.matches(n))[0];return{content:s,formControl:u}})}function rk(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}function Us(e,t,r,n){if(typeof e!="string")return!1;rk(r);const a=n(e);return typeof r=="string"||typeof r=="number"?a.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(a,t):nk(r,a)}function la(e,t,r,n){if(typeof e!="string")return!1;rk(r);const a=n(e);return r instanceof Function?r(a,t):r instanceof RegExp?nk(r,a):a===String(r)}function fC(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let a=n;return a=t?a.trim():a,a=r?a.replace(/\s+/g," "):a,a}}function hi(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return fC({trim:t,collapseWhitespace:r});if(typeof t<"u"||typeof r<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return n}function nk(e,t){const r=e.test(t);return e.global&&e.lastIndex!==0&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),e.lastIndex=0),r}function Gu(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===Yq&&!!t.textContent).map(t=>t.textContent).join("")}const doe=foe(Uq);function ak(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function nm(e,t){t===void 0&&(t={});const{isSubtreeInaccessible:r=ak}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let a=e;for(;a;){if(r(a))return!0;a=a.parentElement}return!1}function pC(e){for(const{match:t,roles:r}of doe)if(t(e))return[...r];return[]}function foe(e){function t(i){let{name:s,attributes:l}=i;return""+s+l.map(u=>{let{name:c,value:d,constraints:f=[]}=u;return f.indexOf("undefined")!==-1?":not(["+c+"])":d?"["+c+'="'+d+'"]':"["+c+"]"}).join("")}function r(i){let{attributes:s=[]}=i;return s.length}function n(i,s){let{specificity:l}=i,{specificity:u}=s;return u-l}function a(i){let{attributes:s=[]}=i;const l=s.findIndex(c=>c.value&&c.name==="type"&&c.value==="text");l>=0&&(s=[...s.slice(0,l),...s.slice(l+1)]);const u=t({...i,attributes:s});return c=>l>=0&&c.type!=="text"?!1:c.matches(u)}let o=[];for(const[i,s]of e.entries())o=[...o,{match:a(i),roles:Array.from(s),specificity:r(i)}];return o.sort(n)}function ok(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(a){return[a,...Array.from(a.children).reduce((o,i)=>[...o,...n(i)],[])]}return n(e).filter(a=>r===!1?nm(a)===!1:!0).reduce((a,o)=>{let i=[];return o.hasAttribute("role")?i=o.getAttribute("role").split(" ").slice(0,1):i=pC(o),i.reduce((s,l)=>Array.isArray(s[l])?{...s,[l]:[...s[l],o]}:{...s,[l]:[o]},a)},{})}function ik(e,t){let{hidden:r,includeDescription:n}=t;const a=ok(e,{hidden:r});return Object.entries(a).filter(o=>{let[i]=o;return i!=="generic"}).map(o=>{let[i,s]=o;const l="-".repeat(50),u=s.map(c=>{const d='Name "'+gf(c,{computedStyleSupportsPseudoElements:He().computedStyleSupportsPseudoElements})+`":
|
|
157
|
-
`,f=ri(c.cloneNode(!1));if(n){const p='Description "'+Zw(c,{computedStyleSupportsPseudoElements:He().computedStyleSupportsPseudoElements})+`":
|
|
158
|
-
`;return""+d+p+f}return""+d+f}).join(`
|
|
159
|
-
|
|
160
|
-
`);return i+`:
|
|
161
|
-
|
|
162
|
-
`+u+`
|
|
163
|
-
|
|
164
|
-
`+l}).join(`
|
|
165
|
-
`)}const poe=function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(ik(e,{hidden:r}))};function hoe(e){return e.tagName==="OPTION"?e.selected:Vu(e,"aria-selected")}function moe(e){return e.getAttribute("aria-busy")==="true"}function voe(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:Vu(e,"aria-checked")}function yoe(e){return Vu(e,"aria-pressed")}function goe(e){var t,r;return(t=(r=Vu(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function boe(e){return Vu(e,"aria-expanded")}function Vu(e,t){const r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function Eoe(e){const t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return e.getAttribute("aria-level")&&Number(e.getAttribute("aria-level"))||t[e.tagName]}function _oe(e){const t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function woe(e){const t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function Coe(e){const t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function Roe(e){const t=e.getAttribute("aria-valuetext");return t===null?void 0:t}const WP=fC();function Soe(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function zP(e){return new RegExp(Soe(e.toLowerCase()),"i")}function Oa(e,t,r,n){let{variant:a,name:o}=n,i="";const s={},l=[["Role","TestId"].includes(e)?r:zP(r)];o&&(s.name=zP(o)),e==="Role"&&nm(t)&&(s.hidden=!0,i=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
166
|
-
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
167
|
-
`),Object.keys(s).length>0&&l.push(s);const u=a+"By"+e;return{queryName:e,queryMethod:u,queryArgs:l,variant:a,warning:i,toString(){i&&console.warn(i);let[c,d]=l;return c=typeof c=="string"?"'"+c+"'":c,d=d?", { "+Object.entries(d).map(f=>{let[p,h]=f;return p+": "+h}).join(", ")+" }":"",u+"("+c+d+")"}}}function Aa(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}function Ld(e,t,r){var n,a;if(t===void 0&&(t="get"),e.matches(He().defaultIgnore))return;const o=(n=e.getAttribute("role"))!=null?n:(a=pC(e))==null?void 0:a[0];if(o!=="generic"&&Aa("Role",r,o))return Oa("Role",e,o,{variant:t,name:gf(e,{computedStyleSupportsPseudoElements:He().computedStyleSupportsPseudoElements})});const i=tk(document,e).map(f=>f.content).join(" ");if(Aa("LabelText",r,i))return Oa("LabelText",e,i,{variant:t});const s=e.getAttribute("placeholder");if(Aa("PlaceholderText",r,s))return Oa("PlaceholderText",e,s,{variant:t});const l=WP(Gu(e));if(Aa("Text",r,l))return Oa("Text",e,l,{variant:t});if(Aa("DisplayValue",r,e.value))return Oa("DisplayValue",e,WP(e.value),{variant:t});const u=e.getAttribute("alt");if(Aa("AltText",r,u))return Oa("AltText",e,u,{variant:t});const c=e.getAttribute("title");if(Aa("Title",r,c))return Oa("Title",e,c,{variant:t});const d=e.getAttribute(He().testIdAttribute);if(Aa("TestId",r,d))return Oa("TestId",e,d,{variant:t})}function $c(e,t){e.stack=t.stack.replace(t.message,e.message)}function Toe(e,t){let{container:r=dC(),timeout:n=He().asyncUtilTimeout,showOriginalStackTrace:a=He().showOriginalStackTrace,stackTraceError:o,interval:i=50,onTimeout:s=u=>(Object.defineProperty(u,"message",{value:He().getElementError(u.message,r).message}),u),mutationObserverOptions:l={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(u,c)=>{let d,f,p,h=!1,m="idle";const b=setTimeout(R,n),y=w0();if(y){const{unstable_advanceTimersWrapper:T}=He();for(S();!h;){if(!w0()){const O=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");a||$c(O,o),c(O);return}if(await T(async()=>{jest.advanceTimersByTime(i)}),S(),h)break}}else{try{ha(r)}catch(O){c(O);return}f=setInterval(_,i);const{MutationObserver:T}=Xq(r);p=new T(_),p.observe(r,l),S()}function v(T,O){h=!0,clearTimeout(b),y||(clearInterval(f),p.disconnect()),T?c(T):u(O)}function _(){if(w0()){const T=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return a||$c(T,o),c(T)}else return S()}function S(){if(m!=="pending")try{const T=loe(e);typeof(T==null?void 0:T.then)=="function"?(m="pending",T.then(O=>{m="resolved",v(null,O)},O=>{m="rejected",d=O})):v(null,T)}catch(T){d=T}}function R(){let T;d?(T=d,!a&&T.name==="TestingLibraryElementError"&&$c(T,o)):(T=new Error("Timed out in waitFor."),a||$c(T,o)),v(s(T),null)}})}function hC(e,t){const r=new Error("STACK_TRACE_MESSAGE");return He().asyncWrapper(()=>Toe(e,{stackTraceError:r,...t}))}function am(e,t){return He().getElementError(e,t)}function om(e,t){return am(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function mi(e,t,r,n){let{exact:a=!0,collapseWhitespace:o,trim:i,normalizer:s}=n===void 0?{}:n;const l=a?la:Us,u=hi({collapseWhitespace:o,trim:i,normalizer:s});return Array.from(t.querySelectorAll("["+e+"]")).filter(c=>l(c.getAttribute(e),c,r,u))}function sk(e,t,r,n){const a=mi(e,t,r,n);if(a.length>1)throw om("Found multiple elements by ["+e+"="+r+"]",t);return a[0]||null}function Cs(e,t){return function(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];const i=e(r,...a);if(i.length>1){const s=i.map(l=>am(null,l).message).join(`
|
|
168
|
-
|
|
169
|
-
`);throw om(t(r,...a)+`
|
|
170
|
-
|
|
171
|
-
Here are the matching elements:
|
|
172
|
-
|
|
173
|
-
`+s,r)}return i[0]||null}}function lk(e,t){return He().getElementError(`A better query is available, try this:
|
|
174
|
-
`+e.toString()+`
|
|
175
|
-
`,t)}function mC(e,t){return function(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];const i=e(r,...a);if(!i.length)throw He().getElementError(t(r,...a),r);return i}}function Rs(e){return(t,r,n,a)=>hC(()=>e(t,r,n),{container:t,...a})}const oo=(e,t,r)=>function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];const s=e(n,...o),[{suggest:l=He().throwSuggestions}={}]=o.slice(-1);if(s&&l){const u=Ld(s,r);if(u&&!t.endsWith(u.queryName))throw lk(u.toString(),n)}return s},wr=(e,t,r)=>function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];const s=e(n,...o),[{suggest:l=He().throwSuggestions}={}]=o.slice(-1);if(s.length&&l){const u=[...new Set(s.map(c=>{var d;return(d=Ld(c,r))==null?void 0:d.toString()}))];if(u.length===1&&!t.endsWith(Ld(s[0],r).queryName))throw lk(u[0],n)}return s};function ma(e,t,r){const n=oo(Cs(e,t),e.name,"query"),a=mC(e,r),o=Cs(a,t),i=oo(o,e.name,"get"),s=wr(a,e.name.replace("query","get"),"getAll"),l=Rs(wr(a,e.name,"findAll")),u=Rs(oo(o,e.name,"find"));return[n,s,i,l,u]}var xoe=Object.freeze({__proto__:null,getElementError:am,wrapAllByQueryWithSuggestion:wr,wrapSingleQueryWithSuggestion:oo,getMultipleElementsFoundError:om,queryAllByAttribute:mi,queryByAttribute:sk,makeSingleQuery:Cs,makeGetAllQuery:mC,makeFindQuery:Rs,buildQueries:ma});function Poe(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:y_(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}const Ooe=function(e,t,r){let{exact:n=!0,trim:a,collapseWhitespace:o,normalizer:i}=r===void 0?{}:r;const s=n?la:Us,l=hi({collapseWhitespace:o,trim:a,normalizer:i});return Poe(e).filter(c=>{let{node:d,textToMatch:f}=c;return s(f,d,t,l)}).map(c=>{let{node:d}=c;return d})},du=function(e,t,r){let{selector:n="*",exact:a=!0,collapseWhitespace:o,trim:i,normalizer:s}=r===void 0?{}:r;ha(e);const l=a?la:Us,u=hi({collapseWhitespace:o,trim:i,normalizer:s}),c=Array.from(e.querySelectorAll("*")).filter(d=>ek(d).length||d.hasAttribute("aria-labelledby")).reduce((d,f)=>{const p=tk(e,f,{selector:n});p.filter(m=>!!m.formControl).forEach(m=>{l(m.content,m.formControl,t,u)&&m.formControl&&d.push(m.formControl)});const h=p.filter(m=>!!m.content).map(m=>m.content);return l(h.join(" "),f,t,u)&&d.push(f),h.length>1&&h.forEach((m,b)=>{l(m,f,t,u)&&d.push(f);const y=[...h];y.splice(b,1),y.length>1&&l(y.join(" "),f,t,u)&&d.push(f)}),d},[]).concat(mi("aria-label",e,t,{exact:a,normalizer:u}));return Array.from(new Set(c)).filter(d=>d.matches(n))},ni=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];const o=du(e,t,...n);if(!o.length){const i=Ooe(e,t,...n);if(i.length){const s=i.map(l=>Aoe(e,l)).filter(l=>!!l);throw s.length?He().getElementError(s.map(l=>"Found a label with the text of: "+t+", however the element associated with this label (<"+l+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+l+" />, you can use aria-label or aria-labelledby instead.").join(`
|
|
176
|
-
|
|
177
|
-
`),e):He().getElementError("Found a label with the text of: "+t+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw He().getElementError("Unable to find a label with the text of: "+t,e)}return o};function Aoe(e,t){const r=t.getAttribute("for");if(!r)return null;const n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}const uk=(e,t)=>"Found multiple elements with the text of: "+t,ck=oo(Cs(du,uk),du.name,"query"),dk=Cs(ni,uk),fk=Rs(wr(ni,ni.name,"findAll")),pk=Rs(oo(dk,ni.name,"find")),hk=wr(ni,ni.name,"getAll"),mk=oo(dk,ni.name,"get"),vk=wr(du,du.name,"queryAll"),g_=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ha(t[0]),mi("placeholder",...t)},$oe=(e,t)=>"Found multiple elements with the placeholder text of: "+t,Ioe=(e,t)=>"Unable to find an element with the placeholder text of: "+t,yk=wr(g_,g_.name,"queryAll"),[gk,bk,Ek,_k,wk]=ma(g_,$oe,Ioe),b_=function(e,t,r){let{selector:n="*",exact:a=!0,collapseWhitespace:o,trim:i,ignore:s=He().defaultIgnore,normalizer:l}=r===void 0?{}:r;ha(e);const u=a?la:Us,c=hi({collapseWhitespace:o,trim:i,normalizer:l});let d=[];return typeof e.matches=="function"&&e.matches(n)&&(d=[e]),[...d,...Array.from(e.querySelectorAll(n))].filter(f=>!s||!f.matches(s)).filter(f=>u(Gu(f),f,t,c))},Noe=(e,t)=>"Found multiple elements with the text: "+t,Moe=function(e,t,r){r===void 0&&(r={});const{collapseWhitespace:n,trim:a,normalizer:o,selector:i}=r,l=hi({collapseWhitespace:n,trim:a,normalizer:o})(t.toString()),u=l!==t.toString(),c=(i??"*")!=="*";return"Unable to find an element with the text: "+(u?l+" (normalized from '"+t+"')":t)+(c?", which matches selector '"+i+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."},Ck=wr(b_,b_.name,"queryAll"),[Rk,Sk,Tk,xk,Pk]=ma(b_,Noe,Moe),E_=function(e,t,r){let{exact:n=!0,collapseWhitespace:a,trim:o,normalizer:i}=r===void 0?{}:r;ha(e);const s=n?la:Us,l=hi({collapseWhitespace:a,trim:o,normalizer:i});return Array.from(e.querySelectorAll("input,textarea,select")).filter(u=>u.tagName==="SELECT"?Array.from(u.options).filter(d=>d.selected).some(d=>s(Gu(d),d,t,l)):s(u.value,u,t,l))},qoe=(e,t)=>"Found multiple elements with the display value: "+t+".",koe=(e,t)=>"Unable to find an element with the display value: "+t+".",Ok=wr(E_,E_.name,"queryAll"),[Ak,$k,Ik,Nk,Mk]=ma(E_,qoe,koe),Loe=/^(img|input|area|.+-.+)$/i,__=function(e,t,r){return r===void 0&&(r={}),ha(e),mi("alt",e,t,r).filter(n=>Loe.test(n.tagName))},Doe=(e,t)=>"Found multiple elements with the alt text: "+t,Boe=(e,t)=>"Unable to find an element with the alt text: "+t,qk=wr(__,__.name,"queryAll"),[kk,Lk,Dk,Bk,Fk]=ma(__,Doe,Boe),Foe=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},w_=function(e,t,r){let{exact:n=!0,collapseWhitespace:a,trim:o,normalizer:i}=r===void 0?{}:r;ha(e);const s=n?la:Us,l=hi({collapseWhitespace:a,trim:o,normalizer:i});return Array.from(e.querySelectorAll("[title], svg > title")).filter(u=>s(u.getAttribute("title"),u,t,l)||Foe(u)&&s(Gu(u),u,t,l))},joe=(e,t)=>"Found multiple elements with the title: "+t+".",Uoe=(e,t)=>"Unable to find an element with the title: "+t+".",jk=wr(w_,w_.name,"queryAll"),[Uk,Hk,Gk,Vk,Wk]=ma(w_,joe,Uoe),C_=function(e,t,r){let{hidden:n=He().defaultHidden,name:a,description:o,queryFallbacks:i=!1,selected:s,busy:l,checked:u,pressed:c,current:d,level:f,expanded:p,value:{now:h,min:m,max:b,text:y}={}}=r===void 0?{}:r;if(ha(e),s!==void 0){var v;if(((v=tn.get(t))==null?void 0:v.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(l!==void 0){var _;if(((_=tn.get(t))==null?void 0:_.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(u!==void 0){var S;if(((S=tn.get(t))==null?void 0:S.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(c!==void 0){var R;if(((R=tn.get(t))==null?void 0:R.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(d!==void 0){var T;if(((T=tn.get(t))==null?void 0:T.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(f!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(h!==void 0){var O;if(((O=tn.get(t))==null?void 0:O.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(b!==void 0){var $;if((($=tn.get(t))==null?void 0:$.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(m!==void 0){var D;if(((D=tn.get(t))==null?void 0:D.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(y!==void 0){var Q;if(((Q=tn.get(t))==null?void 0:Q.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(p!==void 0){var V;if(((V=tn.get(t))==null?void 0:V.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}const G=new WeakMap;function j(te){return G.has(te)||G.set(te,ak(te)),G.get(te)}return Array.from(e.querySelectorAll(Hoe(t))).filter(te=>{if(te.hasAttribute("role")){const Y=te.getAttribute("role");if(i)return Y.split(" ").filter(Boolean).some(ge=>ge===t);const[ae]=Y.split(" ");return ae===t}return pC(te).some(Y=>Y===t)}).filter(te=>{if(s!==void 0)return s===hoe(te);if(l!==void 0)return l===moe(te);if(u!==void 0)return u===voe(te);if(c!==void 0)return c===yoe(te);if(d!==void 0)return d===goe(te);if(p!==void 0)return p===boe(te);if(f!==void 0)return f===Eoe(te);if(h!==void 0||b!==void 0||m!==void 0||y!==void 0){let L=!0;if(h!==void 0&&L&&(L=h===_oe(te)),b!==void 0&&L&&(L=b===woe(te)),m!==void 0&&L&&(L=m===Coe(te)),y!==void 0){var X;L&&(L=la((X=Roe(te))!=null?X:null,te,y,Y=>Y))}return L}return!0}).filter(te=>a===void 0?!0:la(gf(te,{computedStyleSupportsPseudoElements:He().computedStyleSupportsPseudoElements}),te,a,X=>X)).filter(te=>o===void 0?!0:la(Zw(te,{computedStyleSupportsPseudoElements:He().computedStyleSupportsPseudoElements}),te,o,X=>X)).filter(te=>n===!1?nm(te,{isSubtreeInaccessible:j})===!1:!0)};function Hoe(e){var t;const r='*[role~="'+e+'"]',n=(t=Hq.get(e))!=null?t:new Set,a=new Set(Array.from(n).map(o=>{let{name:i}=o;return i}));return[r].concat(Array.from(a)).join(",")}const zk=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},Goe=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+zk(n)},Voe=function(e,t,r){let{hidden:n=He().defaultHidden,name:a,description:o}=r===void 0?{}:r;if(He()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+zk(a);let i="";Array.from(e.children).forEach(c=>{i+=ik(c,{hidden:n,includeDescription:o!==void 0})});let s;i.length===0?n===!1?s="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":s="There are no available roles.":s=(`
|
|
178
|
-
Here are the `+(n===!1?"accessible":"available")+` roles:
|
|
179
|
-
|
|
180
|
-
`+i.replace(/\n/g,`
|
|
181
|
-
`).replace(/\n\s\s\n/g,`
|
|
182
|
-
|
|
183
|
-
`)+`
|
|
184
|
-
`).trim();let l="";a===void 0?l="":typeof a=="string"?l=' and name "'+a+'"':l=" and name `"+a+"`";let u="";return o===void 0?u="":typeof o=="string"?u=' and description "'+o+'"':u=" and description `"+o+"`",(`
|
|
185
|
-
Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+l+u+`
|
|
186
|
-
|
|
187
|
-
`+s).trim()},Qk=wr(C_,C_.name,"queryAll"),[Kk,Yk,Xk,Jk,Zk]=ma(C_,Goe,Voe),vC=()=>He().testIdAttribute,R_=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ha(t[0]),mi(vC(),...t)},Woe=(e,t)=>"Found multiple elements by: ["+vC()+'="'+t+'"]',zoe=(e,t)=>"Unable to find an element by: ["+vC()+'="'+t+'"]',e2=wr(R_,R_.name,"queryAll"),[t2,r2,n2,a2,o2]=ma(R_,Woe,zoe);var Dd=Object.freeze({__proto__:null,queryAllByLabelText:vk,queryByLabelText:ck,getAllByLabelText:hk,getByLabelText:mk,findAllByLabelText:fk,findByLabelText:pk,queryByPlaceholderText:gk,queryAllByPlaceholderText:yk,getByPlaceholderText:Ek,getAllByPlaceholderText:bk,findAllByPlaceholderText:_k,findByPlaceholderText:wk,queryByText:Rk,queryAllByText:Ck,getByText:Tk,getAllByText:Sk,findAllByText:xk,findByText:Pk,queryByDisplayValue:Ak,queryAllByDisplayValue:Ok,getByDisplayValue:Ik,getAllByDisplayValue:$k,findAllByDisplayValue:Nk,findByDisplayValue:Mk,queryByAltText:kk,queryAllByAltText:qk,getByAltText:Dk,getAllByAltText:Lk,findAllByAltText:Bk,findByAltText:Fk,queryByTitle:Uk,queryAllByTitle:jk,getByTitle:Gk,getAllByTitle:Hk,findAllByTitle:Vk,findByTitle:Wk,queryByRole:Kk,queryAllByRole:Qk,getAllByRole:Yk,getByRole:Xk,findAllByRole:Jk,findByRole:Zk,queryByTestId:t2,queryAllByTestId:e2,getByTestId:n2,getAllByTestId:r2,findAllByTestId:a2,findByTestId:o2});function yC(e,t,r){return t===void 0&&(t=Dd),r===void 0&&(r={}),Object.keys(t).reduce((n,a)=>{const o=t[a];return n[a]=o.bind(null,e),n},r)}const i2=e=>!e||Array.isArray(e)&&!e.length;function QP(e){if(i2(e))throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.")}async function Qoe(e,t){const r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){QP(e);const a=(Array.isArray(e)?e:[e]).map(o=>{let i=o.parentElement;if(i===null)return()=>null;for(;i.parentElement;)i=i.parentElement;return()=>i.contains(o)?o:null});e=()=>a.map(o=>o()).filter(Boolean)}return QP(e()),hC(()=>{let n;try{n=e()}catch(a){if(a.name==="TestingLibraryElementError")return;throw a}if(!i2(n))throw r},t)}const KP={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}}},YP={doubleClick:"dblClick"};function ai(e,t){return He().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}function Jc(e,t,r,n){let{EventType:a="Event",defaultInit:o={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');const i={...o,...r},{target:{value:s,files:l,...u}={}}=i;s!==void 0&&Koe(t,s),l!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:l}),Object.assign(t,u);const c=Xq(t),d=c[a]||c.Event;let f;if(typeof d=="function")f=new d(e,i);else{f=c.document.createEvent(a);const{bubbles:h,cancelable:m,detail:b,...y}=i;f.initEvent(e,h,m,b),Object.keys(y).forEach(v=>{f[v]=y[v]})}return["dataTransfer","clipboardData"].forEach(h=>{const m=i[h];typeof m=="object"&&(typeof c.DataTransfer=="function"?Object.defineProperty(f,h,{value:Object.getOwnPropertyNames(m).reduce((b,y)=>(Object.defineProperty(b,y,{value:m[y]}),b),new c.DataTransfer)}):Object.defineProperty(f,h,{value:m}))}),f}Object.keys(KP).forEach(e=>{const{EventType:t,defaultInit:r}=KP[e],n=e.toLowerCase();Jc[e]=(a,o)=>Jc(n,a,o,{EventType:t,defaultInit:r}),ai[e]=(a,o)=>ai(a,Jc[e](a,o))});function Koe(e,t){const{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:a}=Object.getOwnPropertyDescriptor(n,"value")||{};if(a&&r!==a)a.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}Object.keys(YP).forEach(e=>{const t=YP[e];ai[e]=function(){return ai[t](...arguments)}});function Yoe(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
188
|
-
`)}function Xoe(e){return Uae.compressToEncodedURIComponent(Yoe(e))}function Joe(e){return"https://testing-playground.com/#markup="+Xoe(e)}const Zoe=(e,t,r)=>Array.isArray(e)?e.forEach(n=>v_(n,t,r)):v_(e,t,r),eie=function(e){if(e===void 0&&(e=dC().body),!e||!("innerHTML"in e)){console.log("The element you're providing isn't a valid DOM element.");return}if(!e.innerHTML){console.log("The provided element doesn't have any children.");return}const t=Joe(e.innerHTML);return console.log(`Open this URL in your browser
|
|
189
|
-
|
|
190
|
-
`+t),t},XP={debug:Zoe,logTestingPlaygroundURL:eie},tie=typeof document<"u"&&document.body?yC(document.body,Dd,XP):Object.keys(Dd).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),XP),rie=xW.act;function s2(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}function na(e){s2().IS_REACT_ACT_ENVIRONMENT=e}function Bd(){return s2().IS_REACT_ACT_ENVIRONMENT}function nie(e){return t=>{const r=Bd();na(!0);try{let n=!1;const a=e(()=>{const o=t();return o!==null&&typeof o=="object"&&typeof o.then=="function"&&(n=!0),o});if(n){const o=a;return{then:(i,s)=>{o.then(l=>{na(r),i(l)},l=>{na(r),s(l)})}}}else return na(r),a}catch(n){throw na(r),n}}}const oi=nie(rie),pt=function(){return ai(...arguments)};Object.keys(ai).forEach(e=>{pt[e]=function(){return ai[e](...arguments)}});const aie=pt.mouseEnter,oie=pt.mouseLeave;pt.mouseEnter=function(){return aie(...arguments),pt.mouseOver(...arguments)};pt.mouseLeave=function(){return oie(...arguments),pt.mouseOut(...arguments)};const iie=pt.pointerEnter,sie=pt.pointerLeave;pt.pointerEnter=function(){return iie(...arguments),pt.pointerOver(...arguments)};pt.pointerLeave=function(){return sie(...arguments),pt.pointerOut(...arguments)};const lie=pt.select;pt.select=(e,t)=>{lie(e,t),e.focus(),pt.keyUp(e,t)};const uie=pt.blur,cie=pt.focus;pt.blur=function(){return pt.focusOut(...arguments),uie(...arguments)};pt.focus=function(){return pt.focusIn(...arguments),cie(...arguments)};function die(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}Jq({unstable_advanceTimersWrapper:e=>oi(e),asyncWrapper:async e=>{const t=Bd();na(!1);try{const r=await e();return await new Promise(n=>{setTimeout(()=>{n()},0),die()&&jest.advanceTimersByTime(0)}),r}finally{na(t)}},eventWrapper:e=>{let t;return oi(()=>{t=e()}),t}});const S_=new Set,Fd=[];function fie(e,t){let{hydrate:r,ui:n,wrapper:a}=t,o;return r?oi(()=>{o=zE(e,a?Te.createElement(a,null,n):n)}):o=QE(e),{hydrate(){if(!r)throw new Error("Attempted to hydrate a non-hydrateable root. This is a bug in `@testing-library/react`.")},render(i){o.render(i)},unmount(){o.unmount()}}}function pie(e){return{hydrate(t){Ui.hydrate(t,e)},render(t){Ui.render(t,e)},unmount(){Ui.unmountComponentAtNode(e)}}}function l2(e,t){let{baseElement:r,container:n,hydrate:a,queries:o,root:i,wrapper:s}=t;const l=u=>s?Te.createElement(s,null,u):u;return oi(()=>{a?i.hydrate(l(e),n):i.render(l(e),n)}),{container:n,baseElement:r,debug:function(u,c,d){return u===void 0&&(u=r),Array.isArray(u)?u.forEach(f=>console.log(ri(f,c,d))):console.log(ri(u,c,d))},unmount:()=>{oi(()=>{i.unmount()})},rerender:u=>{l2(l(u),{container:n,baseElement:r,root:i})},asFragment:()=>{if(typeof document.createRange=="function")return document.createRange().createContextualFragment(n.innerHTML);{const u=document.createElement("template");return u.innerHTML=n.innerHTML,u.content}},...yC(r,o)}}function u2(e,t){let{container:r,baseElement:n=r,legacyRoot:a=!1,queries:o,hydrate:i=!1,wrapper:s}=t===void 0?{}:t;n||(n=document.body),r||(r=n.appendChild(document.createElement("div")));let l;return S_.has(r)?Fd.forEach(u=>{u.container===r&&(l=u.root)}):(l=(a?pie:fie)(r,{hydrate:i,ui:e,wrapper:s}),Fd.push({container:r,root:l}),S_.add(r)),l2(e,{container:r,baseElement:n,queries:o,hydrate:i,wrapper:s,root:l})}function T_(){Fd.forEach(e=>{let{root:t,container:r}=e;oi(()=>{t.unmount()}),r.parentNode===document.body&&document.body.removeChild(r)}),Fd.length=0,S_.clear()}function hie(e,t){t===void 0&&(t={});const{initialProps:r,...n}=t,a=Te.createRef();function o(u){let{renderCallbackProps:c}=u;const d=e(c);return Te.useEffect(()=>{a.current=d}),null}const{rerender:i,unmount:s}=u2(Te.createElement(o,{renderCallbackProps:r}),n);function l(u){return i(Te.createElement(o,{renderCallbackProps:u}))}return{result:a,rerender:l,unmount:s}}var MO;if((typeof process>"u"||!((MO=process.env)!=null&&MO.RTL_SKIP_AUTO_CLEANUP))&&(typeof afterEach=="function"?afterEach(()=>{T_()}):typeof teardown=="function"&&teardown(()=>{T_()}),typeof beforeAll=="function"&&typeof afterAll=="function")){let e=Bd();beforeAll(()=>{e=Bd(),na(!0)}),afterAll(()=>{na(e)})}function Ne(e,t,r){return e.namespaceURI&&e.namespaceURI!=="http://www.w3.org/1999/xhtml"||(t=Array.isArray(t)?t:[t],!t.includes(e.tagName.toLowerCase()))?!1:r?Object.entries(r).every(([n,a])=>e[n]===a):!0}var x_;(function(e){e.button="button",e.color="color",e.file="file",e.image="image",e.reset="reset",e.submit="submit",e.checkbox="checkbox",e.radio="radio"})(x_||(x_={}));function c2(e){return Ne(e,"button")||Ne(e,"input")&&e.type in x_}var vi={};Object.defineProperty(vi,"__esModule",{value:!0});vi.TEXT_NODE=void 0;vi.checkContainerType=Eie;vi.getDocument=gie;var mie=vi.getWindowFromNode=bie;vi.jestFakeTimersAreEnabled=yie;const vie=3;vi.TEXT_NODE=vie;function yie(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function gie(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function bie(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error(`The given node is not an Element, the node type is: ${typeof e}.`)}function Eie(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError(`Expected container to be an Element, a Document or a DocumentFragment but got ${t(e)}.`);function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}}function Mn(e){return mie(e)}function d2(e,t){return new Promise((r,n)=>{const a=new t;a.onerror=n,a.onabort=n,a.onload=()=>{r(String(a.result))},a.readAsText(e)})}function gC(e,t){const r={...t,length:t.length,item:n=>r[n],[Symbol.iterator]:function*(){for(let a=0;a<r.length;a++)yield r[a]}};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}class f2{getAsFile(){return this.file}getAsString(t){typeof this.data=="string"&&t(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(t,r){this.file=null,this.data=void 0,typeof t=="string"?(this.kind="string",this.type=String(r),this.data=t):(this.kind="file",this.type=t.type,this.file=t)}}class _ie extends Array{add(...t){const r=new f2(t[0],t[1]);return this.push(r),r}clear(){this.splice(0,this.length)}remove(t){this.splice(t,1)}}function Ic(e,t){const[r,n]=e.split("/"),a=!n||n==="*";return o=>t?o.type===(a?r:e):a?o.type.startsWith(`${r}/`):o.type===r}function wie(e){return new class{getData(r){var n;const a=(n=this.items.find(Ic(r,!0)))!==null&&n!==void 0?n:this.items.find(Ic(r,!1));let o="";return a==null||a.getAsString(i=>{o=i}),o}setData(r,n){const a=this.items.findIndex(Ic(r,!0)),o=new f2(n,r);a>=0?this.items.splice(a,1,o):this.items.push(o)}clearData(r){if(r){const n=this.items.findIndex(Ic(r,!0));n>=0&&this.items.remove(n)}else this.items.clear()}get types(){const r=[];return this.files.length&&r.push("Files"),this.items.forEach(n=>r.push(n.type)),Object.freeze(r),r}setDragImage(){}constructor(){this.dropEffect="none",this.effectAllowed="uninitialized",this.items=new _ie,this.files=gC(e,[])}}}function bC(e,t=[]){const r=typeof e.DataTransfer>"u"?wie(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>gC(e,t)}),r}function Cie(e,t){if(t.kind==="file")return t.getAsFile();let r="";return t.getAsString(n=>{r=n}),new e.Blob([r],{type:t.type})}function p2(e,...t){const r=Object.fromEntries(t.map(n=>[typeof n=="string"?"text/plain":n.type,Promise.resolve(n)]));return typeof e.ClipboardItem<"u"?new e.ClipboardItem(r):new class{get types(){return Array.from(Object.keys(this.data))}async getType(a){const o=await this.data[a];if(!o)throw new Error(`${a} is not one of the available MIME types on this item.`);return o instanceof e.Blob?o:new e.Blob([o],{type:a})}constructor(a){this.data=a}}(r)}const Ss=Symbol("Manage ClipboardSub");function JP(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let n="";for(const a of this.items){const o=a.types.includes("text/plain")?"text/plain":a.types.find(i=>i.startsWith("text/"));o&&(n+=await a.getType(o).then(i=>d2(i,e.FileReader)))}return n}async write(n){this.items=n}async writeText(n){this.items=[p2(e,n)]}constructor(...n){super(...n),this.items=[]}},{[Ss]:t})}function EC(e){var t;return!!(!((t=e)===null||t===void 0)&&t[Ss])}function Rie(e){if(EC(e.navigator.clipboard))return e.navigator.clipboard[Ss];const t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard");let r;const n={resetClipboardStub:()=>{r=JP(e,n)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})}};return r=JP(e,n),Object.defineProperty(e.navigator,"clipboard",{get:()=>r,configurable:!0}),r[Ss]}function Sie(e){EC(e.navigator.clipboard)&&e.navigator.clipboard[Ss].resetClipboardStub()}function Tie(e){EC(e.navigator.clipboard)&&e.navigator.clipboard[Ss].detachClipboardStub()}async function xie(e){const t=e.defaultView,r=t==null?void 0:t.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");const a=bC(t);for(const o of n)for(const i of o.types)a.setData(i,await o.getType(i).then(s=>d2(s,t.FileReader)));return a}async function h2(e,t){const r=Mn(e),n=r.navigator.clipboard,a=[];for(let i=0;i<t.items.length;i++){const s=t.items[i],l=Cie(r,s);a.push(p2(r,l))}if(!(n&&await n.write(a).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}typeof globalThis.afterEach=="function"&&globalThis.afterEach(()=>Sie(globalThis.window));typeof globalThis.afterAll=="function"&&globalThis.afterAll(()=>Tie(globalThis.window));function ii(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}function fu(e){const t=Pie(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}function Pie(e){return e.nodeType===1?e:e.parentElement}function Ts(e){return m2(e)&&!e.readOnly||ii(e)}var P_;(function(e){e.text="text",e.date="date",e["datetime-local"]="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url",e.week="week"})(P_||(P_={}));function m2(e){return Ne(e,"textarea")||Ne(e,"input")&&e.type in P_}var O_;(function(e){e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url"})(O_||(O_={}));function Oie(e){var t;const r=(t=e.getAttribute("maxlength"))!==null&&t!==void 0?t:"";return/^\d+$/.test(r)&&Number(r)>=0?Number(r):void 0}function Aie(e){return Ne(e,"textarea")||Ne(e,"input")&&e.type in O_}const v2=["input:not([type=hidden]):not([disabled])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable=""]','[contenteditable="true"]',"a[href]","[tabindex]:not([disabled])"].join(", ");function _C(e){return e.matches(v2)}var jd;(function(e){e["{"]="}",e["["]="]"})(jd||(jd={}));function y2(e,t){let r=0;const n=e[r]in jd?e[r]:"";r+=n.length;const o=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:o,...o===""?$ie(e,r,t):Iie(e,r,o,t)}}function $ie(e,t,r){const n=e[t];return g2(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}function Iie(e,t,r,n){var a,o;const i=e[t]==="/"?"/":"";t+=i.length;const s=r==="{"&&e[t]==="\\";t+=Number(s);const l=s?e[t]:(a=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||a===void 0?void 0:a[0];g2(l,e,t,n),t+=l.length;var u;const c=(u=(o=e.slice(t).match(/^>\d+/))===null||o===void 0?void 0:o[0])!==null&&u!==void 0?u:"";t+=c.length;const d=e[t]==="/"||!c&&e[t]===">"?e[t]:"";t+=d.length;const f=jd[r],p=e[t]===f?f:"";if(!p)throw new Error(b2([!c&&"repeat modifier",!d&&"release modifier",`"${f}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=p.length,{consumedLength:t,descriptor:l,releasePrevious:!!i,repeat:c?Math.max(Number(c.substr(1)),1):1,releaseSelf:Nie(d,c)}}function g2(e,t,r,n){if(!e)throw new Error(b2("key descriptor",t[r],t,n))}function Nie(e,t){if(e)return e==="/";if(t)return!1}function b2(e,t,r,n){return`Expected ${e} but found "${t??""}" in "${r}"
|
|
191
|
-
See ${n==="pointer"?"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen":"https://testing-library.com/docs/user-event/keyboard"}
|
|
192
|
-
for more information about how userEvent parses your input.`}function Mie(e){return new e.constructor(e.type,e)}var cr;(function(e){e[e.Trigger=2]="Trigger",e[e.Call=1]="Call"})(cr||(cr={}));function Bl(e,t){e.levelRefs[t]={}}function Nc(e,t){return e.levelRefs[t]}var Gi;(function(e){e[e.EachTrigger=4]="EachTrigger",e[e.EachApiCall=2]="EachApiCall",e[e.EachTarget=1]="EachTarget",e[e.Never=0]="Never"})(Gi||(Gi={}));function ca(e){for(let r=e;r;r=r.parentElement)if(Ne(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(Ne(r,"fieldset")){var t;if(r.hasAttribute("disabled")&&!(!((t=r.querySelector(":scope > legend"))===null||t===void 0)&&t.contains(e)))return!0}else if(r.tagName.includes("-")&&r.constructor.formAssociated&&r.hasAttribute("disabled"))return!0;return!1}function im(e){const t=e.activeElement;return t!=null&&t.shadowRoot?im(t.shadowRoot):ca(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function C0(e){var t;return(t=im(e))!==null&&t!==void 0?t:e.body}function qie(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}function qn(e){return E2(e)&&m2(e)}function kie(e){return E2(e)&&c2(e)}function E2(e){return e.nodeType===1}function Lie(e){const t=e.ownerDocument.getSelection();if(t!=null&&t.focusNode&&qn(e)){const n=fu(t.focusNode);if(n){if(!t.isCollapsed){var r;const a=((r=n.firstChild)===null||r===void 0?void 0:r.nodeType)===3?n.firstChild:n;t.setBaseAndExtent(a,0,a,0)}}else t.setBaseAndExtent(e,0,e,0)}}function xs(e,t){return He().eventWrapper(e)}function lo(e){const t=qie(e,_C),r=im(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(xs(t?()=>t.focus():()=>{var n;return(n=r)===null||n===void 0?void 0:n.blur()}),Lie(t??e.ownerDocument.body))}function Die(e){!_C(e)||!(im(e.ownerDocument)===e)||xs(()=>e.blur())}const yi={};yi.click=(e,t,r)=>{const n=t.closest("button,input,label,select,textarea"),a=n&&Ne(n,"label")&&n.control;if(a)return()=>{_C(a)&&lo(a),r.dispatchEvent(a,Mie(e))};if(Ne(t,"input",{type:"file"}))return()=>{Die(t),t.dispatchEvent(new(Mn(t)).Event("fileDialog")),lo(t)}};const Ps=Symbol("Displayed value in UI"),oa=Symbol("Displayed selection in UI"),Ud=Symbol("Initial value to compare on blur");function Bie(e){return typeof e=="object"&&Ps in e}function Fie(e){return!!e&&typeof e=="object"&&oa in e}function jie(e,t){e[Ud]===void 0&&(e[Ud]=e.value),e[Ps]=t,e.value=Object.assign(new String(t),{[Ps]:!0})}function kn(e){return e[Ps]===void 0?e.value:String(e[Ps])}function wC(e){e[Ps]=void 0}function _2(e){e[Ud]=void 0}function Uie(e){return e[Ud]}function Hie(e,t){e[oa]=t}function Hs(e,{focusOffset:t,anchorOffset:r=t},n="replace"){const a=kn(e).length,o=d=>Math.max(0,Math.min(a,d)),i=n==="replace"||e[oa]===void 0?o(r):e[oa].anchorOffset,s=o(t),l=Math.min(i,s),u=Math.max(i,s);if(e[oa]={anchorOffset:i,focusOffset:s},e.selectionStart===l&&e.selectionEnd===u)return;const c=Object.assign(new Number(l),{[oa]:!0});try{e.setSelectionRange(c,u)}catch{}}function pu(e){var t,r,n;const a=(n=e[oa])!==null&&n!==void 0?n:{anchorOffset:(t=e.selectionStart)!==null&&t!==void 0?t:0,focusOffset:(r=e.selectionEnd)!==null&&r!==void 0?r:0};return{...a,startOffset:Math.min(a.anchorOffset,a.focusOffset),endOffset:Math.max(a.anchorOffset,a.focusOffset)}}function Gie(e){return!!e[oa]}function Zc(e){e[oa]=void 0}const Hd=globalThis.parseInt;function Vie(e){const t=e.replace(/\D/g,"");if(t.length<2)return e;const r=Hd(t[0],10),n=Hd(t[1],10);if(r>=3||r===2&&n>=4){let a;return r>=3?a=1:a=2,ZP(t,a)}return e.length===2?e:ZP(t,2)}function ZP(e,t){const r=e.slice(0,t),n=Math.min(Hd(r,10),23),a=e.slice(t),o=Hd(a,10),i=Math.min(o,59);return`${n.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}function w2(e,t){const r=e.cloneNode();return r.value=t,r.value===t}function C2(e,t,r,n){if(ed(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};const a=e1(e,t,r);if(a){if(ed(a))return{node:a,offset:r>0?Math.min(1,a.nodeValue.length):Math.max(a.nodeValue.length-1,0)};if(Ne(a,"br")){const o=e1(a,void 0,r);return o?ed(o)?{node:o,offset:r>0?0:o.nodeValue.length}:r<0&&Ne(o,"br")?{node:a.parentNode,offset:Mc(a)}:{node:o.parentNode,offset:Mc(o)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:a.parentNode,offset:Mc(a)}:void 0}else return{node:a.parentNode,offset:Mc(a)+(r>0?1:0)}}}function e1(e,t,r){const n=Number(t)+(r<0?-1:0);return t!==void 0&&CC(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),zie(e,r===1?"next":"previous",Wie)}function Wie(e){if(ed(e))return!0;if(CC(e)){if(Ne(e,["input","textarea"]))return e.type!=="hidden";if(Ne(e,"br"))return!0}return!1}function Mc(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function CC(e){return e.nodeType===1}function ed(e){return e.nodeType===3}function zie(e,t,r){for(;;){var n;const a=e[`${t}Sibling`];if(a){if(e=Qie(a,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!CC(e.parentNode)||!ii(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}function Qie(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}const hu=Symbol("Track programmatic changes for React workaround");function Kie(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&Mn(e).REACT_VERSION===17}function Yie(e){Kie(e)&&(e[hu]={previousValue:String(e.value),tracked:[]})}function Xie(e,t){var r,n;(r=e[hu])===null||r===void 0||(n=r.tracked)===null||n===void 0||n.push(t),e[hu]||(wC(e),Hs(e,{focusOffset:t.length}))}function Jie(e,t){var r;const n=e[hu];if(e[hu]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;const a=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;a||wC(e),Gie(e)&&Hs(e,{focusOffset:a?t:e.value.length})}function R2(e){const t=Zie(e);if(t&&qn(t))return{type:"input",selection:pu(t)};const r=t==null?void 0:t.ownerDocument.getSelection();return{type:fu(e)&&(r==null?void 0:r.anchorNode)&&fu(r.anchorNode)?"contenteditable":"default",selection:r}}function Zie(e){return e.nodeType===1?e:e.parentElement}function ese(e){const t=R2(e);if(t.type==="input")return t.selection;if(t.type==="contenteditable"){var r;return(r=t.selection)===null||r===void 0?void 0:r.getRangeAt(0)}}function si({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var a,o;if(R2(e).type==="input")return Hs(e,{anchorOffset:n,focusOffset:t});(o=(a=r.ownerDocument)===null||a===void 0?void 0:a.getSelection())===null||o===void 0||o.setBaseAndExtent(r,n,e,t)}function S2(e){return Ne(e,"input")&&["date","time"].includes(e.type)}function Os(e,t,r,n="insertText"){const a=ese(t);a&&(!S2(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in a?tse(e,t,a,r,n):rse(e,t,a,r,n)))}function tse(e,t,r,n,a){let o=!1;if(!r.collapsed)o=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(a)){const i=C2(r.startContainer,r.startOffset,a==="deleteContentBackward"?-1:1,a);if(i){o=!0;const s=r.cloneRange();s.comparePoint(i.node,i.offset)<0?s.setStart(i.node,i.offset):s.setEnd(i.node,i.offset),s.deleteContents()}}if(n)if(r.endContainer.nodeType===3){const i=r.endOffset;r.endContainer.insertData(i,n),r.setStart(r.endContainer,i+n.length),r.setEnd(r.endContainer,i+n.length)}else{const i=t.ownerDocument.createTextNode(n);r.insertNode(i),r.setStart(i,n.length),r.setEnd(i,n.length)}(o||n)&&e.dispatchUIEvent(t,"input",{inputType:a})}function rse(e,t,r,n,a){let o=n;if(Aie(t)){const u=Oie(t);if(u!==void 0&&n.length>0){const c=u-t.value.length;if(c>0)o=n.substring(0,c);else return}}const{newValue:i,newOffset:s,oldValue:l}=nse(o,t,r,a);i===l&&s===r.startOffset&&s===r.endOffset||Ne(t,"input",{type:"number"})&&!ase(i)||(jie(t,i),si({focusNode:t,anchorOffset:s,focusOffset:s}),S2(t)?w2(t,i)&&(t1(e,t,s,{}),e.dispatchUIEvent(t,"change"),_2(t)):t1(e,t,s,{data:n,inputType:a}))}function nse(e,t,{startOffset:r,endOffset:n},a){const o=kn(t),i=Math.max(0,r===n&&a==="deleteContentBackward"?r-1:r),s=o.substring(0,i),l=Math.min(o.length,r===n&&a==="deleteContentForward"?r+1:n),u=o.substring(l,o.length);let c=`${s}${e}${u}`,d=i+e.length;if(Ne(t,"input",{type:"time"})){const f=Vie(c);f!==""&&w2(t,f)&&(c=f,d=f.length)}return{oldValue:o,newValue:c,newOffset:d}}function t1(e,t,r,n){e.dispatchUIEvent(t,"input",n),Jie(t,r)}function ase(e){var t,r;const n=e.split("e",2);return!(/[^\d.\-e]/.test(e)||Number((t=e.match(/-/g))===null||t===void 0?void 0:t.length)>2||Number((r=e.match(/\./g))===null||r===void 0?void 0:r.length)>1||n[1]&&!/^-?\d*$/.test(n[1]))}yi.cut=(e,t,r)=>()=>{Ts(t)&&Os(r,t,"","deleteByCut")};function ose(e){return e?ii(e)?e.textContent:kn(e):null}function ise(e){const t=Mn(e);for(let r=e;r!=null&&r.ownerDocument;r=r.parentElement){const{display:n,visibility:a}=t.getComputedStyle(r);if(n==="none"||a==="hidden")return!1}return!0}function sse(e,t){const r=e.ownerDocument,n=r.querySelectorAll(v2),a=Array.from(n).filter(l=>l===e||!(Number(l.getAttribute("tabindex"))<0||ca(l)));Number(e.getAttribute("tabindex"))>=0&&a.sort((l,u)=>{const c=Number(l.getAttribute("tabindex")),d=Number(u.getAttribute("tabindex"));return c===d?0:c===0?1:d===0?-1:c-d});const o={};let i=[r.body];const s=Ne(e,"input",{type:"radio"})?e.name:void 0;a.forEach(l=>{const u=l;if(Ne(u,"input",{type:"radio"})&&u.name){if(u===e){i.push(u);return}else if(u.name===s)return;if(u.checked){i=i.filter(c=>!Ne(c,"input",{type:"radio",name:u.name})),i.push(u),o[u.name]=u;return}if(typeof o[u.name]<"u")return}i.push(u)});for(let l=i.findIndex(u=>u===e);;)if(l+=t?-1:1,l===i.length?l=0:l===-1&&(l=i.length-1),i[l]===e||i[l]===r.body||ise(i[l]))return i[l]}function r1(e,t){if(qn(e)){const r=pu(e);si({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{const r=e.ownerDocument.getSelection();if(!(r!=null&&r.focusNode))return;if(r.isCollapsed){const n=C2(r.focusNode,r.focusOffset,t);n&&si({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}function T2(e){if(qn(e))return si({focusNode:e,anchorOffset:0,focusOffset:kn(e).length});var t;const r=(t=fu(e))!==null&&t!==void 0?t:e.ownerDocument.body;si({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}function lse(e){if(qn(e))return pu(e).startOffset===0&&pu(e).endOffset===kn(e).length;var t;const r=(t=fu(e))!==null&&t!==void 0?t:e.ownerDocument.body,n=e.ownerDocument.getSelection();return(n==null?void 0:n.anchorNode)===r&&n.focusNode===r&&n.anchorOffset===0&&n.focusOffset===r.childNodes.length}function Fl(e,t,r){var n;if(qn(e))return si({focusNode:e,anchorOffset:t,focusOffset:r});if(ii(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return si({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function qc(e,t,r){const n=Mn(t),a=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${n.CSS.escape(t.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let o=a.findIndex(i=>i===t)+r;;o+=r){if(a[o]||(o=r>0?0:a.length-1),a[o]===t)return;ca(a[o])||(lo(a[o]),e.dispatchUIEvent(a[o],"click"))}}yi.keydown=(e,t,r)=>{var n,a;return(a=(n=n1[e.key])===null||n===void 0?void 0:n.call(n1,e,t,r))!==null&&a!==void 0?a:use(e,t,r)};const n1={ArrowDown:(e,t,r)=>{if(Ne(t,"input",{type:"radio"}))return()=>qc(r,t,-1)},ArrowLeft:(e,t,r)=>Ne(t,"input",{type:"radio"})?()=>qc(r,t,-1):()=>r1(t,-1),ArrowRight:(e,t,r)=>Ne(t,"input",{type:"radio"})?()=>qc(r,t,1):()=>r1(t,1),ArrowUp:(e,t,r)=>{if(Ne(t,"input",{type:"radio"}))return()=>qc(r,t,1)},Backspace:(e,t,r)=>{if(Ts(t))return()=>{Os(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(Ts(t))return()=>{Os(r,t,"","deleteContentForward")}},End:(e,t)=>{if(Ne(t,["input","textarea"])||ii(t))return()=>{var r,n;const a=(n=(r=ose(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;Fl(t,a,a)}},Home:(e,t)=>{if(Ne(t,["input","textarea"])||ii(t))return()=>{Fl(t,0,0)}},PageDown:(e,t)=>{if(Ne(t,["input"]))return()=>{const r=kn(t).length;Fl(t,r,r)}},PageUp:(e,t)=>{if(Ne(t,["input"]))return()=>{Fl(t,0,0)}},Tab:(e,t,r)=>()=>{const n=sse(t,r.system.keyboard.modifiers.Shift);lo(n),qn(n)&&Hs(n,{anchorOffset:0,focusOffset:n.value.length})}},use=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>T2(t)};yi.keypress=(e,t,r)=>{if(e.key==="Enter"){if(Ne(t,"button")||Ne(t,"input")&&cse.includes(t.type)||Ne(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(Ne(t,"input")){const n=t.form,a=n==null?void 0:n.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return a?()=>r.dispatchUIEvent(a,"click"):n&&dse.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(Ts(t)){const n=e.key==="Enter"?ii(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",a=e.key==="Enter"?`
|
|
193
|
-
`:e.key;return()=>Os(r,t,a,n)}};const cse=["button","color","file","image","reset","submit"],dse=["email","month","password","search","tel","text","url","week"];yi.keyup=(e,t,r)=>{var n;return(n=a1[e.key])===null||n===void 0?void 0:n.call(a1,e,t,r)};const a1={" ":(e,t,r)=>{if(c2(t))return()=>r.dispatchUIEvent(t,"click")}};yi.paste=(e,t,r)=>{if(Ts(t))return()=>{var n;const a=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");a&&Os(r,t,a,"insertFromPaste")}};var mu={};Object.defineProperty(mu,"__esModule",{value:!0});var x2=mu.eventMap=mu.eventAliasMap=void 0;const fse={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}}};x2=mu.eventMap=fse;const pse={doubleClick:"dblClick"};mu.eventAliasMap=pse;const RC={...x2,click:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeInput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}}},P2=Object.fromEntries(Object.keys(RC).map(e=>[e.toLowerCase(),e]));function O2(e){const t=P2[e];return t&&RC[t].EventType}const hse=["MouseEvent","PointerEvent"];function mse(e){return hse.includes(O2(e))}function vse(e){return O2(e)==="KeyboardEvent"}const yse={ClipboardEvent:[bse],InputEvent:[kc,Ese],MouseEvent:[kc,R0,o1],PointerEvent:[kc,R0,o1,wse],KeyboardEvent:[kc,R0,_se]};function A2(e,t,r){var n;const a=Mn(t),{EventType:o,defaultInit:i}=RC[P2[e]],s=new(gse(a))[o](e,i);return(n=yse[o])===null||n===void 0||n.forEach(l=>l(s,r??{})),s}function gse(e){var t;const r=(t=e.Event)!==null&&t!==void 0?t:class{};var n;const a=(n=e.AnimationEvent)!==null&&n!==void 0?n:class extends r{};var o;const i=(o=e.ClipboardEvent)!==null&&o!==void 0?o:class extends r{};var s;const l=(s=e.PopStateEvent)!==null&&s!==void 0?s:class extends r{};var u;const c=(u=e.ProgressEvent)!==null&&u!==void 0?u:class extends r{};var d;const f=(d=e.TransitionEvent)!==null&&d!==void 0?d:class extends r{};var p;const h=(p=e.UIEvent)!==null&&p!==void 0?p:class extends r{};var m;const b=(m=e.CompositionEvent)!==null&&m!==void 0?m:class extends h{};var y;const v=(y=e.FocusEvent)!==null&&y!==void 0?y:class extends h{};var _;const S=(_=e.InputEvent)!==null&&_!==void 0?_:class extends h{};var R;const T=(R=e.KeyboardEvent)!==null&&R!==void 0?R:class extends h{};var O;const $=(O=e.MouseEvent)!==null&&O!==void 0?O:class extends h{};var D;const Q=(D=e.DragEvent)!==null&&D!==void 0?D:class extends ${};var V;const G=(V=e.PointerEvent)!==null&&V!==void 0?V:class extends ${};var j;const te=(j=e.TouchEvent)!==null&&j!==void 0?j:class extends h{};return{Event:r,AnimationEvent:a,ClipboardEvent:i,PopStateEvent:l,ProgressEvent:c,TransitionEvent:f,UIEvent:h,CompositionEvent:b,FocusEvent:v,InputEvent:S,KeyboardEvent:T,MouseEvent:$,DragEvent:Q,PointerEvent:G,TouchEvent:te}}function gi(e,t){for(const[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:()=>n??null})}function Vt(e){return Number(e??0)}function bse(e,{clipboardData:t}){gi(e,{clipboardData:t})}function Ese(e,{data:t,inputType:r,isComposing:n}){gi(e,{data:t,isComposing:!!n,inputType:String(r)})}function kc(e,{view:t,detail:r}){gi(e,{view:t,detail:Vt(r??0)})}function R0(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:a,modifierAltGraph:o,modifierCapsLock:i,modifierFn:s,modifierFnLock:l,modifierNumLock:u,modifierScrollLock:c,modifierSymbol:d,modifierSymbolLock:f}){gi(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!a,getModifierState(p){return!!{Alt:t,AltGraph:o,CapsLock:i,Control:r,Fn:s,FnLock:l,Meta:n,NumLock:u,ScrollLock:c,Shift:a,Symbol:d,SymbolLock:f}[p]}})}function _se(e,{key:t,code:r,location:n,repeat:a,isComposing:o,charCode:i}){gi(e,{key:String(t),code:String(r),location:Vt(n),repeat:!!a,isComposing:!!o,charCode:i})}function o1(e,{x:t,y:r,screenX:n,screenY:a,clientX:o=t,clientY:i=r,button:s,buttons:l,relatedTarget:u}){gi(e,{screenX:Vt(n),screenY:Vt(a),clientX:Vt(o),x:Vt(o),clientY:Vt(i),y:Vt(i),button:Vt(s),buttons:Vt(l),relatedTarget:u})}function wse(e,{pointerId:t,width:r,height:n,pressure:a,tangentialPressure:o,tiltX:i,tiltY:s,twist:l,pointerType:u,isPrimary:c}){gi(e,{pointerId:Vt(t),width:Vt(r),height:Vt(n),pressure:Vt(a),tangentialPressure:Vt(o),tiltX:Vt(i),tiltY:Vt(s),twist:Vt(l),pointerType:String(u),isPrimary:!!c})}function Cse(e,t,r,n=!1){(mse(t)||vse(t))&&(r={...r,...this.system.getUIEventModifiers()});const a=A2(t,e,r);return $2.call(this,e,a,n)}function $2(e,t,r=!1){var n;const a=t.type,o=r?()=>{}:(n=yi[a])===null||n===void 0?void 0:n(t,e,this);if(o){t.preventDefault();let i=!1;return Object.defineProperty(t,"defaultPrevented",{get:()=>i}),Object.defineProperty(t,"preventDefault",{value:()=>{i=t.cancelable}}),xs(()=>e.dispatchEvent(t)),i||o(),!i}return xs(()=>e.dispatchEvent(t))}function Rse(e,t,r){const n=A2(t,e,r);xs(()=>e.dispatchEvent(n))}const S0=Symbol("Interceptor for programmatical calls");function ji(e,t,r){const n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=Object.getOwnPropertyDescriptor(e,t),o=n!=null&&n.set?"set":"value";if(typeof(n==null?void 0:n[o])!="function"||n[o][S0])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function i(...s){const{applyNative:l=!1,realArgs:u,then:c}=r.call(this,...s),d=(!l&&a||n)[o];o==="set"?d.call(this,u):d.call(this,...u),c==null||c()}i[S0]=S0,Object.defineProperty(e,t,{...a??n,[o]:i})}function Sse(e){ji(e,"value",function(r){const n=Bie(r);return n&&Yie(this),{applyNative:!!n,realArgs:Tse(this,r),then:n?void 0:()=>Xie(this,String(r))}})}function Tse(e,t){return Ne(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function xse(e){ji(e,"setSelectionRange",function(r,...n){const a=Fie(r);return{applyNative:!!a,realArgs:[Number(r),...n],then:()=>a?void 0:Zc(e)}}),ji(e,"selectionStart",function(r){return{realArgs:r,then:()=>Zc(e)}}),ji(e,"selectionEnd",function(r){return{realArgs:r,then:()=>Zc(e)}}),ji(e,"select",function(){return{realArgs:[],then:()=>Hie(e,{anchorOffset:0,focusOffset:kn(e).length})}})}function Pse(e){ji(e,"setRangeText",function(...r){return{realArgs:r,then:()=>{wC(e),Zc(e)}}})}const Vi=Symbol("Node prepared with document state workarounds");function I2(e){e[Vi]||(e.addEventListener("focus",t=>{const r=t.target;i1(r)},{capture:!0,passive:!0}),e.activeElement&&i1(e.activeElement),e.addEventListener("blur",t=>{const r=t.target,n=Uie(r);n!==void 0&&(r.value!==n&&Rse(r,"change"),_2(r))},{capture:!0,passive:!0}),e[Vi]=Vi)}function i1(e){e[Vi]||(Ne(e,["input","textarea"])&&(Sse(e),xse(e),Pse(e)),e[Vi]=Vi)}function Ose(e){return Ase(e)?e:e.ownerDocument}function Ase(e){return e.nodeType===9}function As(e){const t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}var s1,l1,u1,qr;(function(e){e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD"})(qr||(qr={}));const $se=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function c1(e){return $se.includes(e)}const Ise=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function d1(e){return Ise.includes(e)}class Nse{isKeyPressed(t){return!!this.pressed[String(t.code)]}getPressedKeys(){return Object.values(this.pressed).map(t=>t.keyDef)}async keydown(t,r){const n=String(r.key),a=String(r.code),o=C0(t.config.document);this.setKeydownTarget(o);var i;(i=(s1=this.pressed)[l1=a])!==null&&i!==void 0||(s1[l1]={keyDef:r,unpreventedDefault:!1}),c1(n)&&(this.modifiers[n]=!0);const s=t.dispatchUIEvent(o,"keydown",{key:n,code:a});d1(n)&&!this.modifiers[n]&&(this.modifiers[n]=!0,this.modifierLockStart[n]=!0),(u1=this.pressed[a]).unpreventedDefault||(u1.unpreventedDefault=s),s&&this.hasKeyPress(n)&&t.dispatchUIEvent(C0(t.config.document),"keypress",{key:n,code:a,charCode:r.key==="Enter"?13:String(r.key).charCodeAt(0)})}async keyup(t,r){const n=String(r.key),a=String(r.code),o=this.pressed[a].unpreventedDefault;delete this.pressed[a],c1(n)&&!Object.values(this.pressed).find(i=>i.keyDef.key===n)&&(this.modifiers[n]=!1),t.dispatchUIEvent(C0(t.config.document),"keyup",{key:n,code:a},!o),d1(n)&&this.modifiers[n]&&(this.modifierLockStart[n]?this.modifierLockStart[n]=!1:this.modifiers[n]=!1)}setKeydownTarget(t){t!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=t}hasKeyPress(t){return(t.length===1||t==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(t){this.modifiers={Alt:!1,AltGraph:!1,CapsLock:!1,Control:!1,Fn:!1,FnLock:!1,Meta:!1,NumLock:!1,ScrollLock:!1,Shift:!1,Symbol:!1,SymbolLock:!1},this.pressed={},this.carryChar="",this.lastKeydownTarget=void 0,this.modifierLockStart={},this.system=t}}const Mse=[..."0123456789".split("").map(e=>({code:`Digit${e}`,key:e})),...")!@#$%^&*(".split("").map((e,t)=>({code:`Digit${t}`,key:e,shiftKey:!0})),..."abcdefghijklmnopqrstuvwxyz".split("").map(e=>({code:`Key${e.toUpperCase()}`,key:e})),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map(e=>({code:`Key${e}`,key:e,shiftKey:!0})),{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:qr.LEFT},{code:"AltRight",key:"Alt",location:qr.RIGHT},{code:"ShiftLeft",key:"Shift",location:qr.LEFT},{code:"ShiftRight",key:"Shift",location:qr.RIGHT},{code:"ControlLeft",key:"Control",location:qr.LEFT},{code:"ControlRight",key:"Control",location:qr.RIGHT},{code:"MetaLeft",key:"Meta",location:qr.LEFT},{code:"MetaRight",key:"Meta",location:qr.RIGHT},{code:"OSLeft",key:"OS",location:qr.LEFT},{code:"OSRight",key:"OS",location:qr.RIGHT},{code:"Tab",key:"Tab"},{code:"CapsLock",key:"CapsLock"},{code:"Backspace",key:"Backspace"},{code:"Enter",key:"Enter"},{code:"Escape",key:"Escape"},{code:"ArrowUp",key:"ArrowUp"},{code:"ArrowDown",key:"ArrowDown"},{code:"ArrowLeft",key:"ArrowLeft"},{code:"ArrowRight",key:"ArrowRight"},{code:"Home",key:"Home"},{code:"End",key:"End"},{code:"Delete",key:"Delete"},{code:"PageUp",key:"PageUp"},{code:"PageDown",key:"PageDown"},{code:"Fn",key:"Fn"},{code:"Symbol",key:"Symbol"},{code:"AltRight",key:"AltGraph"}],qse=[{name:"MouseLeft",pointerType:"mouse",button:"primary"},{name:"MouseRight",pointerType:"mouse",button:"secondary"},{name:"MouseMiddle",pointerType:"mouse",button:"auxiliary"},{name:"TouchA",pointerType:"touch"},{name:"TouchB",pointerType:"touch"},{name:"TouchC",pointerType:"touch"}];class N2{getButtons(){let t=0;for(const r of Object.keys(this.pressed))t|=2**Number(r);return t}down(t){const r=A_(t.button);if(r in this.pressed){this.pressed[r].push(t);return}return this.pressed[r]=[t],r}up(t){const r=A_(t.button);if(r in this.pressed&&(this.pressed[r]=this.pressed[r].filter(n=>n.name!==t.name),this.pressed[r].length===0))return delete this.pressed[r],r}constructor(){this.pressed={}}}const f1={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function A_(e=0){return e in f1?f1[e]:Number(e)}const p1={1:2,2:1};function h1(e){return e=A_(e),e in p1?p1[e]:e}class kse{get countPressed(){return this.pressedKeys.size}isPressed(t){return this.pressedKeys.has(t.name)}addPressed(t){return this.pressedKeys.add(t.name)}removePressed(t){return this.pressedKeys.delete(t.name)}constructor(){this.pressedKeys=new Set}}function Kl(e,t){const r=[];for(let o=e;o;o=o.parentElement)r.push(o);const n=[];for(let o=t;o;o=o.parentElement)n.push(o);let a=0;for(;!(a>=r.length||a>=n.length||r[r.length-1-a]!==n[n.length-1-a]);a++);return[r.slice(0,r.length-a),n.slice(0,n.length-a),n.slice(n.length-a)]}function $_({target:e,node:t,offset:r}){return qn(e)?{node:e,offset:r??kn(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:M2(e,r)}function M2(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0;const a=t===void 0?-1:1;for(;t===void 0?n>=(r?Math.max(e.childNodes.length-1,0):0):n<=e.childNodes.length;){if(t&&n===e.childNodes.length)throw new Error("The given offset is out of bounds.");const o=e.childNodes.item(n),i=String(o.textContent);if(i.length)if(t!==void 0&&i.length<t)t-=i.length;else{if(o.nodeType===1)return M2(o,t,!1);if(o.nodeType===3)return{node:o,offset:t??o.nodeValue.length}}n+=a}return{node:e,offset:e.childNodes.length}}function Lse({document:e,target:t,clickCount:r,node:n,offset:a}){if(kie(t))return;const o=qn(t),i=String(o?kn(t):t.textContent),[s,l]=n?[a,a]:Dse(i,a,r);if(o)return Hs(t,{anchorOffset:s??i.length,focusOffset:l??i.length}),{node:t,start:s??0,end:l??i.length};{const{node:u,offset:c}=$_({target:t,node:n,offset:s}),{node:d,offset:f}=$_({target:t,node:n,offset:l}),p=t.ownerDocument.createRange();try{p.setStart(u,c),p.setEnd(d,f)}catch{throw new Error("The given offset is out of bounds.")}const h=e.getSelection();return h==null||h.removeAllRanges(),h==null||h.addRange(p.cloneRange()),p}}function Dse(e,t,r){if(r%3===1||e.length===0)return[t,t];const n=t??e.length;return r%3===2?[n-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[n-e.substr(0,t).match(/[^\r\n]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\n]*/)[0].length]}function Bse(e,{document:t,target:r,node:n,offset:a}){const o=$_({target:r,node:n,offset:a});if("node"in e){if(o.node===e.node){const i=o.offset<e.start?e.end:e.start,s=o.offset>e.end||o.offset<e.start?o.offset:e.end;Hs(e.node,{anchorOffset:i,focusOffset:s})}}else{const i=e.cloneRange(),s=i.comparePoint(o.node,o.offset);s<0?i.setStart(o.node,o.offset):s>0&&i.setEnd(o.node,o.offset);const l=t.getSelection();l==null||l.removeAllRanges(),l==null||l.addRange(i.cloneRange())}}function q2(e,t){var r,n,a,o,i,s,l,u;return e.target!==t.target||((r=e.coords)===null||r===void 0?void 0:r.x)!==((n=t.coords)===null||n===void 0?void 0:n.y)||((a=e.coords)===null||a===void 0?void 0:a.y)!==((o=t.coords)===null||o===void 0?void 0:o.y)||((i=e.caret)===null||i===void 0?void 0:i.node)!==((s=t.caret)===null||s===void 0?void 0:s.node)||((l=e.caret)===null||l===void 0?void 0:l.offset)!==((u=t.caret)===null||u===void 0?void 0:u.offset)}class Fse{move(t,r){const n=this.position,a=this.getTarget(t);if(this.position=r,!q2(n,r))return;const o=this.getTarget(t),i=this.getEventInit("mousemove"),[s,l]=Kl(a,o);return{leave:()=>{a!==o&&(t.dispatchUIEvent(a,"mouseout",i),s.forEach(u=>t.dispatchUIEvent(u,"mouseleave",i)))},enter:()=>{a!==o&&(t.dispatchUIEvent(o,"mouseover",i),l.forEach(u=>t.dispatchUIEvent(u,"mouseenter",i)))},move:()=>{t.dispatchUIEvent(o,"mousemove",i),this.modifySelecting(t)}}}down(t,r,n){const a=this.buttons.down(r);if(a===void 0)return;const o=this.getTarget(t);this.buttonDownTarget[a]=o;const i=ca(o),s=this.getEventInit("mousedown",r.button);(i||t.dispatchUIEvent(o,"mousedown",s))&&(this.startSelecting(t,s.detail),lo(o)),!i&&h1(r.button)===2&&t.dispatchUIEvent(o,"contextmenu",this.getEventInit("contextmenu",r.button,n))}up(t,r,n){const a=this.buttons.up(r);if(a===void 0)return;const o=this.getTarget(t);if(!ca(o)){t.dispatchUIEvent(o,"mouseup",this.getEventInit("mouseup",r.button)),this.endSelecting();const i=Kl(this.buttonDownTarget[a],o)[2][0];if(i){const s=this.getEventInit("click",r.button,n);s.detail&&(t.dispatchUIEvent(i,s.button===0?"click":"auxclick",s),s.button===0&&s.detail===2&&t.dispatchUIEvent(i,"dblclick",{...this.getEventInit("dblclick",r.button),detail:s.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(t,r,n){const a={...this.position.coords};return n&&(a.pointerId=n.pointerId,a.pointerType=n.pointerType,a.isPrimary=n.isPrimary),a.button=h1(r),a.buttons=this.buttons.getButtons(),t==="mousedown"?a.detail=this.clickCount.getOnDown(a.button):t==="mouseup"?a.detail=this.clickCount.getOnUp(a.button):(t==="click"||t==="auxclick")&&(a.detail=this.clickCount.incOnClick(a.button)),a}getTarget(t){var r;return(r=this.position.target)!==null&&r!==void 0?r:t.config.document.body}startSelecting(t,r){var n,a;this.selecting=Lse({document:t.config.document,target:this.getTarget(t),node:(n=this.position.caret)===null||n===void 0?void 0:n.node,offset:(a=this.position.caret)===null||a===void 0?void 0:a.offset,clickCount:r})}modifySelecting(t){var r,n;this.selecting&&Bse(this.selecting,{document:t.config.document,target:this.getTarget(t),node:(r=this.position.caret)===null||r===void 0?void 0:r.node,offset:(n=this.position.caret)===null||n===void 0?void 0:n.offset})}endSelecting(){this.selecting=void 0}constructor(){this.position={},this.buttons=new N2,this.buttonDownTarget={},this.clickCount=new class{incOnClick(t){const r=this.down[t]===void 0?void 0:Number(this.down[t])+1;return this.count=this.count[t]===void 0?{}:{[t]:Number(this.count[t])+1},r}getOnDown(t){var r;this.down={[t]:(r=this.count[t])!==null&&r!==void 0?r:0};var n;return this.count={[t]:(n=this.count[t])!==null&&n!==void 0?n:0},Number(this.count[t])+1}getOnUp(t){return this.down[t]===void 0?void 0:Number(this.down[t])+1}reset(){this.count={}}constructor(){this.down={},this.count={}}}}}function Gd(e,t){var r;return((r=k2(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function jse(e){const t=Mn(e);for(let r=e,n=[];r!=null&&r.ownerDocument;r=r.parentElement){n.push(r);const a=t.getComputedStyle(r).pointerEvents;if(a&&!["inherit","unset"].includes(a))return{pointerEvents:a,tree:n}}}const m1=Symbol("Last check for pointer-events");function k2(e,t){const r=t[m1];if(!(e.config.pointerEventsCheck!==Gi.Never&&(!r||v1(e.config.pointerEventsCheck,Gi.EachApiCall)&&r[cr.Call]!==Nc(e,cr.Call)||v1(e.config.pointerEventsCheck,Gi.EachTrigger)&&r[cr.Trigger]!==Nc(e,cr.Trigger))))return r==null?void 0:r.result;const a=jse(t);return t[m1]={[cr.Call]:Nc(e,cr.Call),[cr.Trigger]:Nc(e,cr.Trigger),result:a},a}function jl(e,t){const r=k2(e,t);if((r==null?void 0:r.pointerEvents)==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",Use(r.tree)].join(`
|
|
194
|
-
`))}function Use(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,Hse(t),e.length>1&&r===0&&" <-- This element declared `pointer-events: none`",e.length>1&&r===e.length-1&&" <-- Asserted pointer events here"].filter(Boolean).join("")).join(`
|
|
195
|
-
`)}function Hse(e){var t;let r;if(e.hasAttribute("aria-label"))r=e.getAttribute("aria-label");else if(e.hasAttribute("aria-labelledby")){var n,a;r=(n=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))===null||n===void 0||(a=n.textContent)===null||a===void 0?void 0:a.trim()}else if(Ne(e,["button","input","meter","output","progress","select","textarea"])&&(!((t=e.labels)===null||t===void 0)&&t.length))r=Array.from(e.labels).map(i=>{var s;return(s=i.textContent)===null||s===void 0?void 0:s.trim()}).join("|");else if(Ne(e,"button")){var o;r=(o=e.textContent)===null||o===void 0?void 0:o.trim()}return r=r==null?void 0:r.replace(/\n/g," "),Number(r==null?void 0:r.length)>30&&(r=`${r==null?void 0:r.substring(0,29)}…`),r?`(label=${r})`:""}function v1(e,t){return(e&t)>0}class y1{init(t,r){this.position=r;const n=this.getTarget(t),[,a]=Kl(null,n),o=this.getEventInit();return jl(t,n),t.dispatchUIEvent(n,"pointerover",o),a.forEach(i=>t.dispatchUIEvent(i,"pointerenter",o)),this}move(t,r){const n=this.position,a=this.getTarget(t);if(this.position=r,!q2(n,r))return;const o=this.getTarget(t),i=this.getEventInit(),[s,l]=Kl(a,o);return{leave:()=>{Gd(t,a)&&a!==o&&(t.dispatchUIEvent(a,"pointerout",i),s.forEach(u=>t.dispatchUIEvent(u,"pointerleave",i)))},enter:()=>{jl(t,o),a!==o&&(t.dispatchUIEvent(o,"pointerover",i),l.forEach(u=>t.dispatchUIEvent(u,"pointerenter",i)))},move:()=>{t.dispatchUIEvent(o,"pointermove",i)}}}down(t,r){if(this.isDown)return;const n=this.getTarget(t);jl(t,n),this.isDown=!0,this.isPrevented=!t.dispatchUIEvent(n,"pointerdown",this.getEventInit())}up(t,r){if(!this.isDown)return;const n=this.getTarget(t);jl(t,n),this.isDown=!1,t.dispatchUIEvent(n,"pointerup",this.getEventInit())}release(t){const r=this.getTarget(t),[n]=Kl(r,null),a=this.getEventInit();Gd(t,r)&&(t.dispatchUIEvent(r,"pointerout",a),n.forEach(o=>t.dispatchUIEvent(o,"pointerleave",a))),this.isCancelled=!0}getTarget(t){var r;return(r=this.position.target)!==null&&r!==void 0?r:t.config.document.body}getEventInit(){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary}}constructor({pointerId:t,pointerType:r,isPrimary:n}){this.isMultitouch=!1,this.isCancelled=!1,this.isDown=!1,this.isPrevented=!1,this.position={},this.pointerId=t,this.pointerType=r,this.isPrimary=n,this.isMultitouch=!n}}var g1,b1;class Gse{isKeyPressed(t){return this.devices.get(t.pointerType).isPressed(t)}async press(t,r,n){const a=this.getPointerName(r),o=r.pointerType==="touch"?this.pointers.new(a,r).init(t,n):this.pointers.get(a);o.position=n,o.pointerType!=="touch"&&(this.mouse.position=n),this.devices.get(r.pointerType).addPressed(r),this.buttons.down(r),o.down(t,r),o.pointerType!=="touch"&&!o.isPrevented&&this.mouse.down(t,r,o)}async move(t,r,n){const a=this.pointers.get(r),o=a.move(t,n),i=a.pointerType==="touch"||a.isPrevented&&a.isDown?void 0:this.mouse.move(t,n);o==null||o.leave(),i==null||i.leave(),o==null||o.enter(),i==null||i.enter(),o==null||o.move(),i==null||i.move()}async release(t,r,n){const a=this.devices.get(r.pointerType);a.removePressed(r),this.buttons.up(r);const o=this.pointers.get(this.getPointerName(r));if(o.position=n,o.pointerType!=="touch"&&(this.mouse.position=n),a.countPressed===0&&o.up(t,r),o.pointerType==="touch"&&o.release(t),!o.isPrevented){if(o.pointerType==="touch"&&!o.isMultitouch){const i=this.mouse.move(t,o.position);i==null||i.leave(),i==null||i.enter(),i==null||i.move(),this.mouse.down(t,r,o)}if(!o.isMultitouch){const i=this.mouse.move(t,o.position);i==null||i.leave(),i==null||i.enter(),i==null||i.move(),this.mouse.up(t,r,o)}}}getPointerName(t){return t.pointerType==="touch"?t.name:t.pointerType}getPreviousPosition(t){return this.pointers.has(t)?this.pointers.get(t).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(t){var r;return(r=this.mouse.position.target)!==null&&r!==void 0?r:t.config.document.body}setMousePosition(t){this.mouse.position=t,this.pointers.get("mouse").position=t}constructor(t){this.devices=new class{get(r){var n;return(n=(g1=this.registry)[b1=r])!==null&&n!==void 0||(g1[b1]=new kse),this.registry[r]}constructor(){this.registry={}}},this.pointers=new class{new(r,n){const a=n.pointerType!=="touch"||!Object.values(this.registry).some(o=>o.pointerType==="touch"&&!o.isCancelled);return a||Object.values(this.registry).forEach(o=>{o.pointerType===n.pointerType&&!o.isCancelled&&(o.isMultitouch=!0)}),this.registry[r]=new y1({pointerId:this.nextId++,pointerType:n.pointerType,isPrimary:a}),this.registry[r]}get(r){if(!this.has(r))throw new Error(`Trying to access pointer "${r}" which does not exist.`);return this.registry[r]}has(r){return r in this.registry}constructor(){this.registry={mouse:new y1({pointerId:1,pointerType:"mouse",isPrimary:!0})},this.nextId=2}},this.system=t,this.buttons=new N2,this.mouse=new Fse}}class L2{getUIEventModifiers(){return{altKey:this.keyboard.modifiers.Alt,ctrlKey:this.keyboard.modifiers.Control,metaKey:this.keyboard.modifiers.Meta,shiftKey:this.keyboard.modifiers.Shift,modifierAltGraph:this.keyboard.modifiers.AltGraph,modifierCapsLock:this.keyboard.modifiers.CapsLock,modifierFn:this.keyboard.modifiers.Fn,modifierFnLock:this.keyboard.modifiers.FnLock,modifierNumLock:this.keyboard.modifiers.NumLock,modifierScrollLock:this.keyboard.modifiers.ScrollLock,modifierSymbol:this.keyboard.modifiers.Symbol,modifierSymbolLock:this.keyboard.modifiers.SymbolLock}}constructor(){this.keyboard=new Nse(this),this.pointer=new Gse(this)}}async function Vse(e){const t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}async function Wse(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}async function zse(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}async function Qse(e){return this.pointer({target:e})}async function Kse(e){return jl(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function Yse({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}function Xse(e,t){const r=[];do{const{type:a,descriptor:o,consumedLength:i,releasePrevious:s,releaseSelf:l=!0,repeat:u}=y2(t,"keyboard");var n;const c=(n=e.find(d=>{if(a==="["){var f;return((f=d.code)===null||f===void 0?void 0:f.toLowerCase())===o.toLowerCase()}else if(a==="{"){var p;return((p=d.key)===null||p===void 0?void 0:p.toLowerCase())===o.toLowerCase()}return d.key===o}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[a==="["?"code":"key"]:o};r.push({keyDef:c,releasePrevious:s,releaseSelf:l,repeat:u}),t=t.slice(i)}while(t);return r}async function Jse(e){const t=Xse(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await As(this.config),await Zse(this,t[r])}async function Zse(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:a}){const{system:o}=e;if(o.keyboard.isKeyPressed(t)&&await o.keyboard.keyup(e,t),!r){for(let i=1;i<=a;i++)await o.keyboard.keydown(e,t),i<a&&await As(e.config);n&&await o.keyboard.keyup(e,t)}}async function ele(e){for(const t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function D2(e){const t=qn(e)?{"text/plain":tle(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=bC(Mn(e));for(const n in t)t[n]&&r.setData(n,t[n]);return r}function tle(e){const t=pu(e);return kn(e).substring(t.startOffset,t.endOffset)}async function rle(){const e=this.config.document;var t;const r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=D2(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await h2(e,n),n}async function nle(){const e=this.config.document;var t;const r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=D2(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await h2(r.ownerDocument,n),n}async function ale(e){const t=this.config.document;var r;const n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var a;const o=(a=typeof e=="string"?ole(t,e):e)!==null&&a!==void 0?a:await xie(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:o})}function ole(e,t){const r=bC(Mn(e));return r.setData("text",t),r}function E1(e,t){const r=[];do{const{descriptor:n,consumedLength:a,releasePrevious:o,releaseSelf:i=!0}=y2(t,"pointer"),s=e.find(l=>l.name===n);s&&r.push({keyDef:s,releasePrevious:o,releaseSelf:i}),t=t.slice(a)}while(t);return r}async function ile(e){const{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...E1(t,n)):"keys"in n?r.push(...E1(t,n.keys).map(a=>({...n,...a}))):r.push(n)});for(let n=0;n<r.length;n++)await As(this.config),await sle(this,r[n]);this.system.pointer.resetClickCount()}async function sle(e,t){var r,n;const a="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",o=e.system.pointer.getPreviousPosition(a);var i,s,l,u;const c={target:(i=t.target)!==null&&i!==void 0?i:lle(e,o),coords:(s=t.coords)!==null&&s!==void 0?s:o==null?void 0:o.coords,caret:{node:(l=t.node)!==null&&l!==void 0?l:_1(t)||o==null||(r=o.caret)===null||r===void 0?void 0:r.node,offset:(u=t.offset)!==null&&u!==void 0?u:_1(t)||o==null||(n=o.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(Bl(e,cr.Trigger),await e.system.pointer.release(e,t.keyDef,c)),t.releasePrevious||(Bl(e,cr.Trigger),await e.system.pointer.press(e,t.keyDef,c),t.releaseSelf&&(Bl(e,cr.Trigger),await e.system.pointer.release(e,t.keyDef,c)))):(Bl(e,cr.Trigger),await e.system.pointer.move(e,a,c))}function _1(e){var t,r;return!!((r=(t=e.target)!==null&&t!==void 0?t:e.node)!==null&&r!==void 0?r:e.offset!==void 0)}function lle(e,t){if(!t)throw new Error("This pointer has no previous position. Provide a target property!");var r;return(r=t.target)!==null&&r!==void 0?r:e.config.document.body}async function ule(e){if(!Ts(e)||ca(e))throw new Error("clear()` is only supported on editable elements.");if(lo(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(T2(e),!lse(e))throw new Error("The element content to be cleared could not be selected.");Os(this,e,"","deleteContentBackward")}async function cle(e,t){return B2.call(this,!0,e,t)}async function dle(e,t){return B2.call(this,!1,e,t)}async function B2(e,t,r){if(!e&&!t.multiple)throw He().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);const n=Array.isArray(r)?r:[r],a=Array.from(t.querySelectorAll('option, [role="option"]')),o=n.map(s=>{if(typeof s!="string"&&a.includes(s))return s;{const l=a.find(u=>u.value===s||u.innerHTML===s);if(l)return l;throw He().getElementError(`Value "${String(s)}" not found in options`,t)}}).filter(s=>!ca(s));if(ca(t)||!o.length)return;const i=s=>{s.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")};if(Ne(t,"select"))if(t.multiple)for(const s of o){const l=this.config.pointerEventsCheck===0?!0:Gd(this,s);l&&(this.dispatchUIEvent(s,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(s,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(s,"pointermove"),this.dispatchUIEvent(s,"mousemove"),this.dispatchUIEvent(s,"pointerdown"),this.dispatchUIEvent(s,"mousedown")),lo(t),l&&(this.dispatchUIEvent(s,"pointerup"),this.dispatchUIEvent(s,"mouseup")),i(s),l&&this.dispatchUIEvent(s,"click"),await As(this.config)}else if(o.length===1){const s=this.config.pointerEventsCheck===0?!0:Gd(this,t);s?await this.click(t):lo(t),i(o[0]),s&&(this.dispatchUIEvent(t,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(t,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(t,"pointerup"),this.dispatchUIEvent(t,"mouseup"),this.dispatchUIEvent(t,"click")),await As(this.config)}else throw He().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(const s of o)await this.click(s),await this.unhover(s);else throw He().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function fle(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:n=this.config.skipAutoClose,initialSelectionStart:a,initialSelectionEnd:o}={}){e.disabled||(r||await this.click(e),a!==void 0&&Fl(e,a,o??a),await this.keyboard(t),n||await ele(this))}const w1=Symbol("files and value properties are mocked");function T0(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}function ple(e,t){var r;(r=e[w1])===null||r===void 0||r.restore();const n=Object.getOwnPropertyDescriptor(e,"type"),a=Object.getOwnPropertyDescriptor(e,"value"),o=Object.getOwnPropertyDescriptor(e,"files");function i(){T0(e,"type",n),T0(e,"value",a),T0(e,"files",o)}e[w1]={restore:i},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:"",set(s){if(s==="")i();else{var l;a==null||(l=a.set)===null||l===void 0||l.call(e,s)}}},type:{configurable:!0,get:()=>"file",set(s){s!=="file"&&(i(),e.type=s)}}})}async function hle(e,t){const r=Ne(e,"label")?e.control:e;if(!r||!Ne(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r==null?void 0:r.tagName} element does not accept file uploads`);if(ca(e))return;const n=(Array.isArray(t)?t:[t]).filter(o=>!this.config.applyAccept||mle(o,r.accept)).slice(0,r.multiple?void 0:1),a=()=>{var o;n.length===((o=r.files)===null||o===void 0?void 0:o.length)&&n.every((i,s)=>{var l;return i===((l=r.files)===null||l===void 0?void 0:l.item(s))})||(ple(r,gC(Mn(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))};r.addEventListener("fileDialog",a),await this.click(e),r.removeEventListener("fileDialog",a)}function mle(e,t){if(!t)return!0;const r=["audio/*","image/*","video/*"];return t.split(",").some(n=>n.startsWith(".")?e.name.endsWith(n):r.includes(n)?e.type.startsWith(n.substr(0,n.length-1)):e.type===n)}const C1=Object.freeze(Object.defineProperty({__proto__:null,clear:ule,click:Vse,copy:rle,cut:nle,dblClick:Wse,deselectOptions:dle,hover:Qse,keyboard:Jse,paste:ale,pointer:ile,selectOptions:cle,tab:Yse,tripleClick:zse,type:fle,unhover:Kse,upload:hle},Symbol.toStringTag,{value:"Module"}));function vle(e){return He().asyncWrapper(e)}const F2={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:Mse,pointerMap:qse,pointerEventsCheck:Gi.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},yle={...F2,writeToClipboard:!0};function j2(e={},t=yle,r){const n=_le(e,r,t);return{...t,...e,document:n}}function gle(e={}){const t=j2(e);I2(t.document);var r;const n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return Rie(n),SC(t).api}function ir({keyboardState:e,pointerState:t,...r}={},n){const a=j2(r,F2,n);I2(a.document);var o;const i=(o=t??e)!==null&&o!==void 0?o:new L2;return{api:SC(a,i).api,system:i}}function ble(e){return SC({...this.config,...e},this.system).api}function Ele(e,t){function r(...n){return Bl(e,cr.Call),vle(()=>t.apply(e,n).then(async a=>(await As(e.config),a)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function SC(e,t=new L2){const r={};return Object.assign(r,{config:e,dispatchEvent:$2.bind(r),dispatchUIEvent:Cse.bind(r),system:t,levelRefs:{},...C1}),{instance:r,api:{...Object.fromEntries(Object.entries(C1).map(([n,a])=>[n,Ele(r,a)])),setup:ble.bind(r)}}}function _le(e,t,r){var n,a;return(a=(n=e.document)!==null&&n!==void 0?n:t&&Ose(t))!==null&&a!==void 0?a:r.document}function wle(e){return ir().api.clear(e)}function Cle(e,t={}){return ir(t,e).api.click(e)}function Rle(e={}){return ir(e).api.copy()}function Sle(e={}){return ir(e).api.cut()}function Tle(e,t={}){return ir(t).api.dblClick(e)}function xle(e,t,r={}){return ir(r).api.deselectOptions(e,t)}function Ple(e,t={}){return ir(t).api.hover(e)}async function Ole(e,t={}){const{api:r,system:n}=ir(t);return r.keyboard(e).then(()=>n)}async function Ale(e,t={}){const{api:r,system:n}=ir(t);return r.pointer(e).then(()=>n)}function $le(e,t){return ir(t).api.paste(e)}function Ile(e,t,r={}){return ir(r).api.selectOptions(e,t)}function Nle(e,t={}){return ir(t).api.tripleClick(e)}function Mle(e,t,r={}){return ir(r,e).api.type(e,t,r)}function qle(e,t={}){const{api:r,system:n}=ir(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}function kle(e,t,r={}){return ir(r).api.upload(e,t)}function Lle(e={}){return ir().api.tab(e)}const Dle=Object.freeze(Object.defineProperty({__proto__:null,clear:wle,click:Cle,copy:Rle,cut:Sle,dblClick:Tle,deselectOptions:xle,hover:Ple,keyboard:Ole,paste:$le,pointer:Ale,selectOptions:Ile,tab:Lle,tripleClick:Nle,type:Mle,unhover:qle,upload:kle},Symbol.toStringTag,{value:"Module"})),Ble={...Dle,setup:gle};var Fle=e=>{const t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0};const jle=Fle;var Ule=e=>{const t=jle(e);if(t===0)return e;const r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")},Hle=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;const n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))};const Gle=Ule,Vle=Hle;var Wle=(e,t=0,r)=>Vle(Gle(e),t,r);const R1=Yt(Wle);function zle(){this.__data__=[],this.size=0}var Qle=zle;function Kle(e,t){return e===t||e!==e&&t!==t}var U2=Kle,Yle=U2;function Xle(e,t){for(var r=e.length;r--;)if(Yle(e[r][0],t))return r;return-1}var sm=Xle,Jle=sm,Zle=Array.prototype,eue=Zle.splice;function tue(e){var t=this.__data__,r=Jle(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():eue.call(t,r,1),--this.size,!0}var rue=tue,nue=sm;function aue(e){var t=this.__data__,r=nue(t,e);return r<0?void 0:t[r][1]}var oue=aue,iue=sm;function sue(e){return iue(this.__data__,e)>-1}var lue=sue,uue=sm;function cue(e,t){var r=this.__data__,n=uue(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var due=cue,fue=Qle,pue=rue,hue=oue,mue=lue,vue=due;function Gs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Gs.prototype.clear=fue;Gs.prototype.delete=pue;Gs.prototype.get=hue;Gs.prototype.has=mue;Gs.prototype.set=vue;var lm=Gs,yue=lm;function gue(){this.__data__=new yue,this.size=0}var bue=gue;function Eue(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var _ue=Eue;function wue(e){return this.__data__.get(e)}var Cue=wue;function Rue(e){return this.__data__.has(e)}var Sue=Rue,Tue=typeof we=="object"&&we&&we.Object===Object&&we,H2=Tue,xue=H2,Pue=typeof self=="object"&&self&&self.Object===Object&&self,Oue=xue||Pue||Function("return this")(),va=Oue,Aue=va,$ue=Aue.Symbol,TC=$ue,S1=TC,G2=Object.prototype,Iue=G2.hasOwnProperty,Nue=G2.toString,ql=S1?S1.toStringTag:void 0;function Mue(e){var t=Iue.call(e,ql),r=e[ql];try{e[ql]=void 0;var n=!0}catch{}var a=Nue.call(e);return n&&(t?e[ql]=r:delete e[ql]),a}var que=Mue,kue=Object.prototype,Lue=kue.toString;function Due(e){return Lue.call(e)}var Bue=Due,T1=TC,Fue=que,jue=Bue,Uue="[object Null]",Hue="[object Undefined]",x1=T1?T1.toStringTag:void 0;function Gue(e){return e==null?e===void 0?Hue:Uue:x1&&x1 in Object(e)?Fue(e):jue(e)}var um=Gue;function Vue(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var V2=Vue,Wue=um,zue=V2,Que="[object AsyncFunction]",Kue="[object Function]",Yue="[object GeneratorFunction]",Xue="[object Proxy]";function Jue(e){if(!zue(e))return!1;var t=Wue(e);return t==Kue||t==Yue||t==Que||t==Xue}var W2=Jue,Zue=va,ece=Zue["__core-js_shared__"],tce=ece,x0=tce,P1=function(){var e=/[^.]+$/.exec(x0&&x0.keys&&x0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function rce(e){return!!P1&&P1 in e}var nce=rce,ace=Function.prototype,oce=ace.toString;function ice(e){if(e!=null){try{return oce.call(e)}catch{}try{return e+""}catch{}}return""}var z2=ice,sce=W2,lce=nce,uce=V2,cce=z2,dce=/[\\^$.*+?()[\]{}|]/g,fce=/^\[object .+?Constructor\]$/,pce=Function.prototype,hce=Object.prototype,mce=pce.toString,vce=hce.hasOwnProperty,yce=RegExp("^"+mce.call(vce).replace(dce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gce(e){if(!uce(e)||lce(e))return!1;var t=sce(e)?yce:fce;return t.test(cce(e))}var bce=gce;function Ece(e,t){return e==null?void 0:e[t]}var _ce=Ece,wce=bce,Cce=_ce;function Rce(e,t){var r=Cce(e,t);return wce(r)?r:void 0}var Vs=Rce,Sce=Vs,Tce=va,xce=Sce(Tce,"Map"),xC=xce,Pce=Vs,Oce=Pce(Object,"create"),cm=Oce,O1=cm;function Ace(){this.__data__=O1?O1(null):{},this.size=0}var $ce=Ace;function Ice(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Nce=Ice,Mce=cm,qce="__lodash_hash_undefined__",kce=Object.prototype,Lce=kce.hasOwnProperty;function Dce(e){var t=this.__data__;if(Mce){var r=t[e];return r===qce?void 0:r}return Lce.call(t,e)?t[e]:void 0}var Bce=Dce,Fce=cm,jce=Object.prototype,Uce=jce.hasOwnProperty;function Hce(e){var t=this.__data__;return Fce?t[e]!==void 0:Uce.call(t,e)}var Gce=Hce,Vce=cm,Wce="__lodash_hash_undefined__";function zce(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Vce&&t===void 0?Wce:t,this}var Qce=zce,Kce=$ce,Yce=Nce,Xce=Bce,Jce=Gce,Zce=Qce;function Ws(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ws.prototype.clear=Kce;Ws.prototype.delete=Yce;Ws.prototype.get=Xce;Ws.prototype.has=Jce;Ws.prototype.set=Zce;var ede=Ws,A1=ede,tde=lm,rde=xC;function nde(){this.size=0,this.__data__={hash:new A1,map:new(rde||tde),string:new A1}}var ade=nde;function ode(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ide=ode,sde=ide;function lde(e,t){var r=e.__data__;return sde(t)?r[typeof t=="string"?"string":"hash"]:r.map}var dm=lde,ude=dm;function cde(e){var t=ude(this,e).delete(e);return this.size-=t?1:0,t}var dde=cde,fde=dm;function pde(e){return fde(this,e).get(e)}var hde=pde,mde=dm;function vde(e){return mde(this,e).has(e)}var yde=vde,gde=dm;function bde(e,t){var r=gde(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Ede=bde,_de=ade,wde=dde,Cde=hde,Rde=yde,Sde=Ede;function zs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}zs.prototype.clear=_de;zs.prototype.delete=wde;zs.prototype.get=Cde;zs.prototype.has=Rde;zs.prototype.set=Sde;var Q2=zs,Tde=lm,xde=xC,Pde=Q2,Ode=200;function Ade(e,t){var r=this.__data__;if(r instanceof Tde){var n=r.__data__;if(!xde||n.length<Ode-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pde(n)}return r.set(e,t),this.size=r.size,this}var $de=Ade,Ide=lm,Nde=bue,Mde=_ue,qde=Cue,kde=Sue,Lde=$de;function Qs(e){var t=this.__data__=new Ide(e);this.size=t.size}Qs.prototype.clear=Nde;Qs.prototype.delete=Mde;Qs.prototype.get=qde;Qs.prototype.has=kde;Qs.prototype.set=Lde;var Dde=Qs,Bde="__lodash_hash_undefined__";function Fde(e){return this.__data__.set(e,Bde),this}var jde=Fde;function Ude(e){return this.__data__.has(e)}var Hde=Ude,Gde=Q2,Vde=jde,Wde=Hde;function Vd(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Gde;++t<r;)this.add(e[t])}Vd.prototype.add=Vd.prototype.push=Vde;Vd.prototype.has=Wde;var K2=Vd;function zde(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Qde=zde;function Kde(e,t){return e.has(t)}var Y2=Kde,Yde=K2,Xde=Qde,Jde=Y2,Zde=1,efe=2;function tfe(e,t,r,n,a,o){var i=r&Zde,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=r&efe?new Yde:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var h=e[d],m=t[d];if(n)var b=i?n(m,h,d,t,e,o):n(h,m,d,e,t,o);if(b!==void 0){if(b)continue;f=!1;break}if(p){if(!Xde(t,function(y,v){if(!Jde(p,v)&&(h===y||a(h,y,r,n,o)))return p.push(v)})){f=!1;break}}else if(!(h===m||a(h,m,r,n,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var X2=tfe,rfe=va,nfe=rfe.Uint8Array,afe=nfe;function ofe(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var ife=ofe;function sfe(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var PC=sfe,$1=TC,I1=afe,lfe=U2,ufe=X2,cfe=ife,dfe=PC,ffe=1,pfe=2,hfe="[object Boolean]",mfe="[object Date]",vfe="[object Error]",yfe="[object Map]",gfe="[object Number]",bfe="[object RegExp]",Efe="[object Set]",_fe="[object String]",wfe="[object Symbol]",Cfe="[object ArrayBuffer]",Rfe="[object DataView]",N1=$1?$1.prototype:void 0,P0=N1?N1.valueOf:void 0;function Sfe(e,t,r,n,a,o,i){switch(r){case Rfe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Cfe:return!(e.byteLength!=t.byteLength||!o(new I1(e),new I1(t)));case hfe:case mfe:case gfe:return lfe(+e,+t);case vfe:return e.name==t.name&&e.message==t.message;case bfe:case _fe:return e==t+"";case yfe:var s=cfe;case Efe:var l=n&ffe;if(s||(s=dfe),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=pfe,i.set(e,t);var c=ufe(s(e),s(t),n,a,o,i);return i.delete(e),c;case wfe:if(P0)return P0.call(e)==P0.call(t)}return!1}var Tfe=Sfe;function xfe(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Pfe=xfe,Ofe=Array.isArray,OC=Ofe,Afe=Pfe,$fe=OC;function Ife(e,t,r){var n=t(e);return $fe(e)?n:Afe(n,r(e))}var Nfe=Ife;function Mfe(e,t){for(var r=-1,n=e==null?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o}var qfe=Mfe;function kfe(){return[]}var Lfe=kfe,Dfe=qfe,Bfe=Lfe,Ffe=Object.prototype,jfe=Ffe.propertyIsEnumerable,M1=Object.getOwnPropertySymbols,Ufe=M1?function(e){return e==null?[]:(e=Object(e),Dfe(M1(e),function(t){return jfe.call(e,t)}))}:Bfe,Hfe=Ufe;function Gfe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Vfe=Gfe;function Wfe(e){return e!=null&&typeof e=="object"}var fm=Wfe,zfe=um,Qfe=fm,Kfe="[object Arguments]";function Yfe(e){return Qfe(e)&&zfe(e)==Kfe}var Xfe=Yfe,q1=Xfe,Jfe=fm,J2=Object.prototype,Zfe=J2.hasOwnProperty,epe=J2.propertyIsEnumerable,tpe=q1(function(){return arguments}())?q1:function(e){return Jfe(e)&&Zfe.call(e,"callee")&&!epe.call(e,"callee")},rpe=tpe,Wd={exports:{}};function npe(){return!1}var ape=npe;Wd.exports;(function(e,t){var r=va,n=ape,a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===a,s=i?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(Wd,Wd.exports);var Z2=Wd.exports,ope=9007199254740991,ipe=/^(?:0|[1-9]\d*)$/;function spe(e,t){var r=typeof e;return t=t??ope,!!t&&(r=="number"||r!="symbol"&&ipe.test(e))&&e>-1&&e%1==0&&e<t}var lpe=spe,upe=9007199254740991;function cpe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=upe}var eL=cpe,dpe=um,fpe=eL,ppe=fm,hpe="[object Arguments]",mpe="[object Array]",vpe="[object Boolean]",ype="[object Date]",gpe="[object Error]",bpe="[object Function]",Epe="[object Map]",_pe="[object Number]",wpe="[object Object]",Cpe="[object RegExp]",Rpe="[object Set]",Spe="[object String]",Tpe="[object WeakMap]",xpe="[object ArrayBuffer]",Ppe="[object DataView]",Ope="[object Float32Array]",Ape="[object Float64Array]",$pe="[object Int8Array]",Ipe="[object Int16Array]",Npe="[object Int32Array]",Mpe="[object Uint8Array]",qpe="[object Uint8ClampedArray]",kpe="[object Uint16Array]",Lpe="[object Uint32Array]",lt={};lt[Ope]=lt[Ape]=lt[$pe]=lt[Ipe]=lt[Npe]=lt[Mpe]=lt[qpe]=lt[kpe]=lt[Lpe]=!0;lt[hpe]=lt[mpe]=lt[xpe]=lt[vpe]=lt[Ppe]=lt[ype]=lt[gpe]=lt[bpe]=lt[Epe]=lt[_pe]=lt[wpe]=lt[Cpe]=lt[Rpe]=lt[Spe]=lt[Tpe]=!1;function Dpe(e){return ppe(e)&&fpe(e.length)&&!!lt[dpe(e)]}var Bpe=Dpe;function Fpe(e){return function(t){return e(t)}}var jpe=Fpe,zd={exports:{}};zd.exports;(function(e,t){var r=H2,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(zd,zd.exports);var Upe=zd.exports,Hpe=Bpe,Gpe=jpe,k1=Upe,L1=k1&&k1.isTypedArray,Vpe=L1?Gpe(L1):Hpe,tL=Vpe,Wpe=Vfe,zpe=rpe,Qpe=OC,Kpe=Z2,Ype=lpe,Xpe=tL,Jpe=Object.prototype,Zpe=Jpe.hasOwnProperty;function ehe(e,t){var r=Qpe(e),n=!r&&zpe(e),a=!r&&!n&&Kpe(e),o=!r&&!n&&!a&&Xpe(e),i=r||n||a||o,s=i?Wpe(e.length,String):[],l=s.length;for(var u in e)(t||Zpe.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ype(u,l)))&&s.push(u);return s}var the=ehe,rhe=Object.prototype;function nhe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||rhe;return e===r}var ahe=nhe;function ohe(e,t){return function(r){return e(t(r))}}var ihe=ohe,she=ihe,lhe=she(Object.keys,Object),uhe=lhe,che=ahe,dhe=uhe,fhe=Object.prototype,phe=fhe.hasOwnProperty;function hhe(e){if(!che(e))return dhe(e);var t=[];for(var r in Object(e))phe.call(e,r)&&r!="constructor"&&t.push(r);return t}var mhe=hhe,vhe=W2,yhe=eL;function ghe(e){return e!=null&&yhe(e.length)&&!vhe(e)}var bhe=ghe,Ehe=the,_he=mhe,whe=bhe;function Che(e){return whe(e)?Ehe(e):_he(e)}var Rhe=Che,She=Nfe,The=Hfe,xhe=Rhe;function Phe(e){return She(e,xhe,The)}var Ohe=Phe,D1=Ohe,Ahe=1,$he=Object.prototype,Ihe=$he.hasOwnProperty;function Nhe(e,t,r,n,a,o){var i=r&Ahe,s=D1(e),l=s.length,u=D1(t),c=u.length;if(l!=c&&!i)return!1;for(var d=l;d--;){var f=s[d];if(!(i?f in t:Ihe.call(t,f)))return!1}var p=o.get(e),h=o.get(t);if(p&&h)return p==t&&h==e;var m=!0;o.set(e,t),o.set(t,e);for(var b=i;++d<l;){f=s[d];var y=e[f],v=t[f];if(n)var _=i?n(v,y,f,t,e,o):n(y,v,f,e,t,o);if(!(_===void 0?y===v||a(y,v,r,n,o):_)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var S=e.constructor,R=t.constructor;S!=R&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof R=="function"&&R instanceof R)&&(m=!1)}return o.delete(e),o.delete(t),m}var Mhe=Nhe,qhe=Vs,khe=va,Lhe=qhe(khe,"DataView"),Dhe=Lhe,Bhe=Vs,Fhe=va,jhe=Bhe(Fhe,"Promise"),Uhe=jhe,Hhe=Vs,Ghe=va,Vhe=Hhe(Ghe,"Set"),rL=Vhe,Whe=Vs,zhe=va,Qhe=Whe(zhe,"WeakMap"),Khe=Qhe,I_=Dhe,N_=xC,M_=Uhe,q_=rL,k_=Khe,nL=um,Ks=z2,B1="[object Map]",Yhe="[object Object]",F1="[object Promise]",j1="[object Set]",U1="[object WeakMap]",H1="[object DataView]",Xhe=Ks(I_),Jhe=Ks(N_),Zhe=Ks(M_),eme=Ks(q_),tme=Ks(k_),qo=nL;(I_&&qo(new I_(new ArrayBuffer(1)))!=H1||N_&&qo(new N_)!=B1||M_&&qo(M_.resolve())!=F1||q_&&qo(new q_)!=j1||k_&&qo(new k_)!=U1)&&(qo=function(e){var t=nL(e),r=t==Yhe?e.constructor:void 0,n=r?Ks(r):"";if(n)switch(n){case Xhe:return H1;case Jhe:return B1;case Zhe:return F1;case eme:return j1;case tme:return U1}return t});var rme=qo,O0=Dde,nme=X2,ame=Tfe,ome=Mhe,G1=rme,V1=OC,W1=Z2,ime=tL,sme=1,z1="[object Arguments]",Q1="[object Array]",Lc="[object Object]",lme=Object.prototype,K1=lme.hasOwnProperty;function ume(e,t,r,n,a,o){var i=V1(e),s=V1(t),l=i?Q1:G1(e),u=s?Q1:G1(t);l=l==z1?Lc:l,u=u==z1?Lc:u;var c=l==Lc,d=u==Lc,f=l==u;if(f&&W1(e)){if(!W1(t))return!1;i=!0,c=!1}if(f&&!c)return o||(o=new O0),i||ime(e)?nme(e,t,r,n,a,o):ame(e,t,l,r,n,a,o);if(!(r&sme)){var p=c&&K1.call(e,"__wrapped__"),h=d&&K1.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,b=h?t.value():t;return o||(o=new O0),a(m,b,r,n,o)}}return f?(o||(o=new O0),ome(e,t,r,n,a,o)):!1}var cme=ume,dme=cme,Y1=fm;function aL(e,t,r,n,a){return e===t?!0:e==null||t==null||!Y1(e)&&!Y1(t)?e!==e&&t!==t:dme(e,t,r,n,aL,a)}var oL=aL,fme=oL;function pme(e,t){return fme(e,t)}var hme=pme;const mme=Yt(hme);function iL(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}function AC(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var sL={};iL(sL);AC(sL,"default",()=>lL);class lL extends Error{constructor(t,r,n,a,o){super(t+":"+n+":"+a+": "+r),this.reason=r,this.filename=t,this.line=n,this.column=a,this.source=o}}var uL={};iL(uL);AC(uL,"default",()=>cL);class cL{constructor(t,r,n){this.start=t,this.end=r,this.source=n}}var vme={};AC(vme,"CssTypes",()=>It);var It;(function(e){e.stylesheet="stylesheet",e.rule="rule",e.declaration="declaration",e.comment="comment",e.container="container",e.charset="charset",e.document="document",e.customMedia="custom-media",e.fontFace="font-face",e.host="host",e.import="import",e.keyframes="keyframes",e.keyframe="keyframe",e.layer="layer",e.media="media",e.namespace="namespace",e.page="page",e.supports="supports"})(It||(It={}));const A0=/\/\*[^]*?(?:\*\/|$)/g,yme=(e,t)=>{t=t||{};let r=1,n=1;function a(z){const H=z.match(/\n/g);H&&(r+=H.length);const oe=z.lastIndexOf(`
|
|
196
|
-
`);n=~oe?z.length-oe:n+z.length}function o(){const z={line:r,column:n};return function(H){return H.position=new cL(z,{line:r,column:n},(t==null?void 0:t.source)||""),p(),H}}const i=[];function s(z){const H=new lL((t==null?void 0:t.source)||"",z,r,n,e);if(t!=null&&t.silent)i.push(H);else throw H}function l(){const z=d();return{type:It.stylesheet,stylesheet:{source:t==null?void 0:t.source,rules:z,parsingErrors:i}}}function u(){return f(/^{\s*/)}function c(){return f(/^}/)}function d(){let z;const H=[];for(p(),h(H);e.length&&e.charAt(0)!=="}"&&(z=ae()||ge());)z&&(H.push(z),h(H));return H}function f(z){const H=z.exec(e);if(!H)return;const oe=H[0];return a(oe),e=e.slice(oe.length),H}function p(){f(/^\s*/)}function h(z){let H;for(z=z||[];H=m();)H&&z.push(H);return z}function m(){const z=o();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;const H=f(/^\/\*[^]*?\*\//);return H?z({type:It.comment,comment:H[0].slice(2,-2)}):s("End of comment missing")}function b(){const z=f(/^([^{]+)/);if(!z)return;const H=Mr(z[0]).replace(A0,"");return H.indexOf(",")===-1?[H]:H.replace(/("|')(?:\\\1|.)*?\1|\(.*?\)/g,oe=>oe.replace(/,/g,"")).split(",").map(oe=>Mr(oe.replace(/\u200C/g,",")))}function y(){const z=o(),H=f(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!H)return;const oe=Mr(H[0]);if(!f(/^:\s*/))return s("property missing ':'");const le=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),$e=z({type:It.declaration,property:oe.replace(A0,""),value:le?Mr(le[0]).replace(A0,""):""});return f(/^[;\s]*/),$e}function v(){const z=[];if(!u())return s("missing '{'");h(z);let H;for(;H=y();)H&&(z.push(H),h(z));return c()?z:s("missing '}'")}function _(){let z;const H=[],oe=o();for(;z=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)H.push(z[1]),f(/^,\s*/);if(H.length)return oe({type:It.keyframe,values:H,declarations:v()||[]})}function S(){const z=o(),H=f(/^@([-\w]+)?keyframes\s*/);if(!H)return;const oe=H[1],le=f(/^([-\w]+)\s*/);if(!le)return s("@keyframes missing name");const $e=le[1];if(!u())return s("@keyframes missing '{'");let ie,he=h();for(;ie=_();)he.push(ie),he=he.concat(h());return c()?z({type:It.keyframes,name:$e,vendor:oe,keyframes:he}):s("@keyframes missing '}'")}function R(){const z=o(),H=f(/^@supports *([^{]+)/);if(!H)return;const oe=Mr(H[1]);if(!u())return s("@supports missing '{'");const le=h().concat(d());return c()?z({type:It.supports,supports:oe,rules:le}):s("@supports missing '}'")}function T(){const z=o();if(!f(/^@host\s*/))return;if(!u())return s("@host missing '{'");const oe=h().concat(d());return c()?z({type:It.host,rules:oe}):s("@host missing '}'")}function O(){const z=o(),H=f(/^@container *([^{]+)/);if(!H)return;const oe=Mr(H[1]);if(!u())return s("@container missing '{'");const le=h().concat(d());return c()?z({type:It.container,container:oe,rules:le}):s("@container missing '}'")}function $(){const z=o(),H=f(/^@layer *([^{;@]+)/);if(!H)return;const oe=Mr(H[1]);if(!u())return f(/^[;\s]*/),z({type:It.layer,layer:oe});const le=h().concat(d());return c()?z({type:It.layer,layer:oe,rules:le}):s("@layer missing '}'")}function D(){const z=o(),H=f(/^@media *([^{]+)/);if(!H)return;const oe=Mr(H[1]);if(!u())return s("@media missing '{'");const le=h().concat(d());return c()?z({type:It.media,media:oe,rules:le}):s("@media missing '}'")}function Q(){const z=o(),H=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(H)return z({type:It.customMedia,name:Mr(H[1]),media:Mr(H[2])})}function V(){const z=o();if(!f(/^@page */))return;const oe=b()||[];if(!u())return s("@page missing '{'");let le=h(),$e;for(;$e=y();)le.push($e),le=le.concat(h());return c()?z({type:It.page,selectors:oe,declarations:le}):s("@page missing '}'")}function G(){const z=o(),H=f(/^@([-\w]+)?document *([^{]+)/);if(!H)return;const oe=Mr(H[1]),le=Mr(H[2]);if(!u())return s("@document missing '{'");const $e=h().concat(d());return c()?z({type:It.document,document:le,vendor:oe,rules:$e}):s("@document missing '}'")}function j(){const z=o();if(!f(/^@font-face\s*/))return;if(!u())return s("@font-face missing '{'");let oe=h(),le;for(;le=y();)oe.push(le),oe=oe.concat(h());return c()?z({type:It.fontFace,declarations:oe}):s("@font-face missing '}'")}const te=Y("import"),X=Y("charset"),L=Y("namespace");function Y(z){const H=new RegExp("^@"+z+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){const oe=o(),le=f(H);if(!le)return;const $e={type:z};return $e[z]=le[1].trim(),oe($e)}}function ae(){if(e[0]==="@")return S()||D()||Q()||R()||te()||X()||L()||G()||V()||T()||j()||O()||$()}function ge(){const z=o(),H=b();return H?(h(),z({type:It.rule,selectors:H,declarations:v()||[]})):s("selector missing")}return L_(l())};function Mr(e){return e?e.trim():""}function L_(e,t){const r=e&&typeof e.type=="string",n=r?e:t;for(const a in e){const o=e[a];Array.isArray(o)?o.forEach(i=>{L_(i,n)}):o&&typeof o=="object"&&L_(o,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var gme=yme;const bme=gme;var $C={exports:{}},$0,X1;function Eme(){return X1||(X1=1,$0={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),$0}var I0,J1;function dL(){if(J1)return I0;J1=1;const e=Eme(),t={};for(const a of Object.keys(e))t[e[a]]=a;const r={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};I0=r;for(const a of Object.keys(r)){if(!("channels"in r[a]))throw new Error("missing channels property: "+a);if(!("labels"in r[a]))throw new Error("missing channel labels property: "+a);if(r[a].labels.length!==r[a].channels)throw new Error("channel and label counts mismatch: "+a);const{channels:o,labels:i}=r[a];delete r[a].channels,delete r[a].labels,Object.defineProperty(r[a],"channels",{value:o}),Object.defineProperty(r[a],"labels",{value:i})}r.rgb.hsl=function(a){const o=a[0]/255,i=a[1]/255,s=a[2]/255,l=Math.min(o,i,s),u=Math.max(o,i,s),c=u-l;let d,f;u===l?d=0:o===u?d=(i-s)/c:i===u?d=2+(s-o)/c:s===u&&(d=4+(o-i)/c),d=Math.min(d*60,360),d<0&&(d+=360);const p=(l+u)/2;return u===l?f=0:p<=.5?f=c/(u+l):f=c/(2-u-l),[d,f*100,p*100]},r.rgb.hsv=function(a){let o,i,s,l,u;const c=a[0]/255,d=a[1]/255,f=a[2]/255,p=Math.max(c,d,f),h=p-Math.min(c,d,f),m=function(b){return(p-b)/6/h+1/2};return h===0?(l=0,u=0):(u=h/p,o=m(c),i=m(d),s=m(f),c===p?l=s-i:d===p?l=1/3+o-s:f===p&&(l=2/3+i-o),l<0?l+=1:l>1&&(l-=1)),[l*360,u*100,p*100]},r.rgb.hwb=function(a){const o=a[0],i=a[1];let s=a[2];const l=r.rgb.hsl(a)[0],u=1/255*Math.min(o,Math.min(i,s));return s=1-1/255*Math.max(o,Math.max(i,s)),[l,u*100,s*100]},r.rgb.cmyk=function(a){const o=a[0]/255,i=a[1]/255,s=a[2]/255,l=Math.min(1-o,1-i,1-s),u=(1-o-l)/(1-l)||0,c=(1-i-l)/(1-l)||0,d=(1-s-l)/(1-l)||0;return[u*100,c*100,d*100,l*100]};function n(a,o){return(a[0]-o[0])**2+(a[1]-o[1])**2+(a[2]-o[2])**2}return r.rgb.keyword=function(a){const o=t[a];if(o)return o;let i=1/0,s;for(const l of Object.keys(e)){const u=e[l],c=n(a,u);c<i&&(i=c,s=l)}return s},r.keyword.rgb=function(a){return e[a]},r.rgb.xyz=function(a){let o=a[0]/255,i=a[1]/255,s=a[2]/255;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;const l=o*.4124+i*.3576+s*.1805,u=o*.2126+i*.7152+s*.0722,c=o*.0193+i*.1192+s*.9505;return[l*100,u*100,c*100]},r.rgb.lab=function(a){const o=r.rgb.xyz(a);let i=o[0],s=o[1],l=o[2];i/=95.047,s/=100,l/=108.883,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,l=l>.008856?l**(1/3):7.787*l+16/116;const u=116*s-16,c=500*(i-s),d=200*(s-l);return[u,c,d]},r.hsl.rgb=function(a){const o=a[0]/360,i=a[1]/100,s=a[2]/100;let l,u,c;if(i===0)return c=s*255,[c,c,c];s<.5?l=s*(1+i):l=s+i-s*i;const d=2*s-l,f=[0,0,0];for(let p=0;p<3;p++)u=o+1/3*-(p-1),u<0&&u++,u>1&&u--,6*u<1?c=d+(l-d)*6*u:2*u<1?c=l:3*u<2?c=d+(l-d)*(2/3-u)*6:c=d,f[p]=c*255;return f},r.hsl.hsv=function(a){const o=a[0];let i=a[1]/100,s=a[2]/100,l=i;const u=Math.max(s,.01);s*=2,i*=s<=1?s:2-s,l*=u<=1?u:2-u;const c=(s+i)/2,d=s===0?2*l/(u+l):2*i/(s+i);return[o,d*100,c*100]},r.hsv.rgb=function(a){const o=a[0]/60,i=a[1]/100;let s=a[2]/100;const l=Math.floor(o)%6,u=o-Math.floor(o),c=255*s*(1-i),d=255*s*(1-i*u),f=255*s*(1-i*(1-u));switch(s*=255,l){case 0:return[s,f,c];case 1:return[d,s,c];case 2:return[c,s,f];case 3:return[c,d,s];case 4:return[f,c,s];case 5:return[s,c,d]}},r.hsv.hsl=function(a){const o=a[0],i=a[1]/100,s=a[2]/100,l=Math.max(s,.01);let u,c;c=(2-i)*s;const d=(2-i)*l;return u=i*l,u/=d<=1?d:2-d,u=u||0,c/=2,[o,u*100,c*100]},r.hwb.rgb=function(a){const o=a[0]/360;let i=a[1]/100,s=a[2]/100;const l=i+s;let u;l>1&&(i/=l,s/=l);const c=Math.floor(6*o),d=1-s;u=6*o-c,c&1&&(u=1-u);const f=i+u*(d-i);let p,h,m;switch(c){default:case 6:case 0:p=d,h=f,m=i;break;case 1:p=f,h=d,m=i;break;case 2:p=i,h=d,m=f;break;case 3:p=i,h=f,m=d;break;case 4:p=f,h=i,m=d;break;case 5:p=d,h=i,m=f;break}return[p*255,h*255,m*255]},r.cmyk.rgb=function(a){const o=a[0]/100,i=a[1]/100,s=a[2]/100,l=a[3]/100,u=1-Math.min(1,o*(1-l)+l),c=1-Math.min(1,i*(1-l)+l),d=1-Math.min(1,s*(1-l)+l);return[u*255,c*255,d*255]},r.xyz.rgb=function(a){const o=a[0]/100,i=a[1]/100,s=a[2]/100;let l,u,c;return l=o*3.2406+i*-1.5372+s*-.4986,u=o*-.9689+i*1.8758+s*.0415,c=o*.0557+i*-.204+s*1.057,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,l=Math.min(Math.max(0,l),1),u=Math.min(Math.max(0,u),1),c=Math.min(Math.max(0,c),1),[l*255,u*255,c*255]},r.xyz.lab=function(a){let o=a[0],i=a[1],s=a[2];o/=95.047,i/=100,s/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;const l=116*i-16,u=500*(o-i),c=200*(i-s);return[l,u,c]},r.lab.xyz=function(a){const o=a[0],i=a[1],s=a[2];let l,u,c;u=(o+16)/116,l=i/500+u,c=u-s/200;const d=u**3,f=l**3,p=c**3;return u=d>.008856?d:(u-16/116)/7.787,l=f>.008856?f:(l-16/116)/7.787,c=p>.008856?p:(c-16/116)/7.787,l*=95.047,u*=100,c*=108.883,[l,u,c]},r.lab.lch=function(a){const o=a[0],i=a[1],s=a[2];let l;l=Math.atan2(s,i)*360/2/Math.PI,l<0&&(l+=360);const c=Math.sqrt(i*i+s*s);return[o,c,l]},r.lch.lab=function(a){const o=a[0],i=a[1],l=a[2]/360*2*Math.PI,u=i*Math.cos(l),c=i*Math.sin(l);return[o,u,c]},r.rgb.ansi16=function(a,o=null){const[i,s,l]=a;let u=o===null?r.rgb.hsv(a)[2]:o;if(u=Math.round(u/50),u===0)return 30;let c=30+(Math.round(l/255)<<2|Math.round(s/255)<<1|Math.round(i/255));return u===2&&(c+=60),c},r.hsv.ansi16=function(a){return r.rgb.ansi16(r.hsv.rgb(a),a[2])},r.rgb.ansi256=function(a){const o=a[0],i=a[1],s=a[2];return o===i&&i===s?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(i/255*5)+Math.round(s/255*5)},r.ansi16.rgb=function(a){let o=a%10;if(o===0||o===7)return a>50&&(o+=3.5),o=o/10.5*255,[o,o,o];const i=(~~(a>50)+1)*.5,s=(o&1)*i*255,l=(o>>1&1)*i*255,u=(o>>2&1)*i*255;return[s,l,u]},r.ansi256.rgb=function(a){if(a>=232){const u=(a-232)*10+8;return[u,u,u]}a-=16;let o;const i=Math.floor(a/36)/5*255,s=Math.floor((o=a%36)/6)/5*255,l=o%6/5*255;return[i,s,l]},r.rgb.hex=function(a){const i=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(i.length)+i},r.hex.rgb=function(a){const o=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!o)return[0,0,0];let i=o[0];o[0].length===3&&(i=i.split("").map(d=>d+d).join(""));const s=parseInt(i,16),l=s>>16&255,u=s>>8&255,c=s&255;return[l,u,c]},r.rgb.hcg=function(a){const o=a[0]/255,i=a[1]/255,s=a[2]/255,l=Math.max(Math.max(o,i),s),u=Math.min(Math.min(o,i),s),c=l-u;let d,f;return c<1?d=u/(1-c):d=0,c<=0?f=0:l===o?f=(i-s)/c%6:l===i?f=2+(s-o)/c:f=4+(o-i)/c,f/=6,f%=1,[f*360,c*100,d*100]},r.hsl.hcg=function(a){const o=a[1]/100,i=a[2]/100,s=i<.5?2*o*i:2*o*(1-i);let l=0;return s<1&&(l=(i-.5*s)/(1-s)),[a[0],s*100,l*100]},r.hsv.hcg=function(a){const o=a[1]/100,i=a[2]/100,s=o*i;let l=0;return s<1&&(l=(i-s)/(1-s)),[a[0],s*100,l*100]},r.hcg.rgb=function(a){const o=a[0]/360,i=a[1]/100,s=a[2]/100;if(i===0)return[s*255,s*255,s*255];const l=[0,0,0],u=o%1*6,c=u%1,d=1-c;let f=0;switch(Math.floor(u)){case 0:l[0]=1,l[1]=c,l[2]=0;break;case 1:l[0]=d,l[1]=1,l[2]=0;break;case 2:l[0]=0,l[1]=1,l[2]=c;break;case 3:l[0]=0,l[1]=d,l[2]=1;break;case 4:l[0]=c,l[1]=0,l[2]=1;break;default:l[0]=1,l[1]=0,l[2]=d}return f=(1-i)*s,[(i*l[0]+f)*255,(i*l[1]+f)*255,(i*l[2]+f)*255]},r.hcg.hsv=function(a){const o=a[1]/100,i=a[2]/100,s=o+i*(1-o);let l=0;return s>0&&(l=o/s),[a[0],l*100,s*100]},r.hcg.hsl=function(a){const o=a[1]/100,s=a[2]/100*(1-o)+.5*o;let l=0;return s>0&&s<.5?l=o/(2*s):s>=.5&&s<1&&(l=o/(2*(1-s))),[a[0],l*100,s*100]},r.hcg.hwb=function(a){const o=a[1]/100,i=a[2]/100,s=o+i*(1-o);return[a[0],(s-o)*100,(1-s)*100]},r.hwb.hcg=function(a){const o=a[1]/100,s=1-a[2]/100,l=s-o;let u=0;return l<1&&(u=(s-l)/(1-l)),[a[0],l*100,u*100]},r.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},r.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},r.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},r.gray.hsl=function(a){return[0,0,a[0]]},r.gray.hsv=r.gray.hsl,r.gray.hwb=function(a){return[0,100,a[0]]},r.gray.cmyk=function(a){return[0,0,0,a[0]]},r.gray.lab=function(a){return[a[0],0,0]},r.gray.hex=function(a){const o=Math.round(a[0]/100*255)&255,s=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".substring(s.length)+s},r.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]},I0}var N0,Z1;function _me(){if(Z1)return N0;Z1=1;const e=dL();function t(){const o={},i=Object.keys(e);for(let s=i.length,l=0;l<s;l++)o[i[l]]={distance:-1,parent:null};return o}function r(o){const i=t(),s=[o];for(i[o].distance=0;s.length;){const l=s.pop(),u=Object.keys(e[l]);for(let c=u.length,d=0;d<c;d++){const f=u[d],p=i[f];p.distance===-1&&(p.distance=i[l].distance+1,p.parent=l,s.unshift(f))}}return i}function n(o,i){return function(s){return i(o(s))}}function a(o,i){const s=[i[o].parent,o];let l=e[i[o].parent][o],u=i[o].parent;for(;i[u].parent;)s.unshift(i[u].parent),l=n(e[i[u].parent][u],l),u=i[u].parent;return l.conversion=s,l}return N0=function(o){const i=r(o),s={},l=Object.keys(i);for(let u=l.length,c=0;c<u;c++){const d=l[c];i[d].parent!==null&&(s[d]=a(d,i))}return s},N0}var M0,eO;function wme(){if(eO)return M0;eO=1;const e=dL(),t=_me(),r={},n=Object.keys(e);function a(i){const s=function(...l){const u=l[0];return u==null?u:(u.length>1&&(l=u),i(l))};return"conversion"in i&&(s.conversion=i.conversion),s}function o(i){const s=function(...l){const u=l[0];if(u==null)return u;u.length>1&&(l=u);const c=i(l);if(typeof c=="object")for(let d=c.length,f=0;f<d;f++)c[f]=Math.round(c[f]);return c};return"conversion"in i&&(s.conversion=i.conversion),s}return n.forEach(i=>{r[i]={},Object.defineProperty(r[i],"channels",{value:e[i].channels}),Object.defineProperty(r[i],"labels",{value:e[i].labels});const s=t(i);Object.keys(s).forEach(u=>{const c=s[u];r[i][u]=o(c),r[i][u].raw=a(c)})}),M0=r,M0}$C.exports;(function(e){const t=(c,d)=>(...f)=>`\x1B[${c(...f)+d}m`,r=(c,d)=>(...f)=>{const p=c(...f);return`\x1B[${38+d};5;${p}m`},n=(c,d)=>(...f)=>{const p=c(...f);return`\x1B[${38+d};2;${p[0]};${p[1]};${p[2]}m`},a=c=>c,o=(c,d,f)=>[c,d,f],i=(c,d,f)=>{Object.defineProperty(c,d,{get:()=>{const p=f();return Object.defineProperty(c,d,{value:p,enumerable:!0,configurable:!0}),p},enumerable:!0,configurable:!0})};let s;const l=(c,d,f,p)=>{s===void 0&&(s=wme());const h=p?10:0,m={};for(const[b,y]of Object.entries(s)){const v=b==="ansi16"?"ansi":b;b===d?m[v]=c(f,h):typeof y=="object"&&(m[v]=c(y[d],h))}return m};function u(){const c=new Map,d={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};d.color.gray=d.color.blackBright,d.bgColor.bgGray=d.bgColor.bgBlackBright,d.color.grey=d.color.blackBright,d.bgColor.bgGrey=d.bgColor.bgBlackBright;for(const[f,p]of Object.entries(d)){for(const[h,m]of Object.entries(p))d[h]={open:`\x1B[${m[0]}m`,close:`\x1B[${m[1]}m`},p[h]=d[h],c.set(m[0],m[1]);Object.defineProperty(d,f,{value:p,enumerable:!1})}return Object.defineProperty(d,"codes",{value:c,enumerable:!1}),d.color.close="\x1B[39m",d.bgColor.close="\x1B[49m",i(d.color,"ansi",()=>l(t,"ansi16",a,!1)),i(d.color,"ansi256",()=>l(r,"ansi256",a,!1)),i(d.color,"ansi16m",()=>l(n,"rgb",o,!1)),i(d.bgColor,"ansi",()=>l(t,"ansi16",a,!0)),i(d.bgColor,"ansi256",()=>l(r,"ansi256",a,!0)),i(d.bgColor,"ansi16m",()=>l(n,"rgb",o,!0)),d}Object.defineProperty(e,"exports",{enumerable:!0,get:u})})($C);var Cme=$C.exports,Rme={stdout:!1,stderr:!1};const Sme=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;const a=t.length;let o=0,i="";do i+=e.substr(o,n-o)+t+r,o=n+a,n=e.indexOf(t,o);while(n!==-1);return i+=e.substr(o),i},Tme=(e,t,r,n)=>{let a=0,o="";do{const i=e[n-1]==="\r";o+=e.substr(a,(i?n-1:n)-a)+t+(i?`\r
|
|
197
|
-
`:`
|
|
198
|
-
`)+r,a=n+1,n=e.indexOf(`
|
|
199
|
-
`,a)}while(n!==-1);return o+=e.substr(a),o};var xme={stringReplaceAll:Sme,stringEncaseCRLFWithFirstIndex:Tme},q0,tO;function Pme(){if(tO)return q0;tO=1;const e=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,t=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,n=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
|
200
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function o(u){const c=u[0]==="u",d=u[1]==="{";return c&&!d&&u.length===5||u[0]==="x"&&u.length===3?String.fromCharCode(parseInt(u.slice(1),16)):c&&d?String.fromCodePoint(parseInt(u.slice(2,-1),16)):a.get(u)||u}function i(u,c){const d=[],f=c.trim().split(/\s*,\s*/g);let p;for(const h of f){const m=Number(h);if(!Number.isNaN(m))d.push(m);else if(p=h.match(r))d.push(p[2].replace(n,(b,y,v)=>y?o(y):v));else throw new Error(`Invalid Chalk template style argument: ${h} (in style '${u}')`)}return d}function s(u){t.lastIndex=0;const c=[];let d;for(;(d=t.exec(u))!==null;){const f=d[1];if(d[2]){const p=i(f,d[2]);c.push([f].concat(p))}else c.push([f])}return c}function l(u,c){const d={};for(const p of c)for(const h of p.styles)d[h[0]]=p.inverse?null:h.slice(1);let f=u;for(const[p,h]of Object.entries(d))if(Array.isArray(h)){if(!(p in f))throw new Error(`Unknown Chalk style: ${p}`);f=h.length>0?f[p](...h):f[p]}return f}return q0=(u,c)=>{const d=[],f=[];let p=[];if(c.replace(e,(h,m,b,y,v,_)=>{if(m)p.push(o(m));else if(y){const S=p.join("");p=[],f.push(d.length===0?S:l(u,d)(S)),d.push({inverse:b,styles:s(y)})}else if(v){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");f.push(l(u,d)(p.join(""))),p=[],d.pop()}else p.push(_)}),f.push(p.join("")),d.length>0){const h=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(h)}return f.join("")},q0}const vu=Cme,{stdout:D_,stderr:B_}=Rme,{stringReplaceAll:Ome,stringEncaseCRLFWithFirstIndex:Ame}=xme,fL=["ansi","ansi","ansi256","ansi16m"],Ys=Object.create(null),$me=(e,t={})=>{if(t.level>3||t.level<0)throw new Error("The `level` option should be an integer from 0 to 3");const r=D_?D_.level:0;e.level=t.level===void 0?r:t.level};class Ime{constructor(t){return pL(t)}}const pL=e=>{const t={};return $me(t,e),t.template=(...r)=>qme(t.template,...r),Object.setPrototypeOf(t,pm.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Ime,t.template};function pm(e){return pL(e)}for(const[e,t]of Object.entries(vu))Ys[e]={get(){const r=hm(this,IC(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};Ys.visible={get(){const e=hm(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const hL=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of hL)Ys[e]={get(){const{level:t}=this;return function(...r){const n=IC(vu.color[fL[t]][e](...r),vu.color.close,this._styler);return hm(this,n,this._isEmpty)}}};for(const e of hL){const t="bg"+e[0].toUpperCase()+e.slice(1);Ys[t]={get(){const{level:r}=this;return function(...n){const a=IC(vu.bgColor[fL[r]][e](...n),vu.bgColor.close,this._styler);return hm(this,a,this._isEmpty)}}}}const Nme=Object.defineProperties(()=>{},{...Ys,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),IC=(e,t,r)=>{let n,a;return r===void 0?(n=e,a=t):(n=r.openAll+e,a=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:a,parent:r}},hm=(e,t,r)=>{const n=(...a)=>Mme(n,a.length===1?""+a[0]:a.join(" "));return n.__proto__=Nme,n._generator=e,n._styler=t,n._isEmpty=r,n},Mme=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;const{openAll:n,closeAll:a}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=Ome(t,r.close,r.open),r=r.parent;const o=t.indexOf(`
|
|
201
|
-
`);return o!==-1&&(t=Ame(t,a,n,o)),n+t+a};let k0;const qme=(e,...t)=>{const[r]=t;if(!Array.isArray(r))return t.join(" ");const n=t.slice(1),a=[r.raw[0]];for(let o=1;o<r.length;o++)a.push(String(n[o-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[o]));return k0===void 0&&(k0=Pme()),k0(e,a.join(""))};Object.defineProperties(pm.prototype,Ys);const Wu=pm();Wu.supportsColor=D_;Wu.stderr=pm({level:B_?B_.level:0});Wu.stderr.supportsColor=B_;Wu.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};var kme=Wu;const Lme=Yt(kme);var Dme=oL;function Bme(e,t,r){r=typeof r=="function"?r:void 0;var n=r?r(e,t):void 0;return n===void 0?Dme(e,t,void 0,r):!!n}var Fme=Bme;const mL=Yt(Fme);function jme(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o<a;)if(t(e[o],o,e))return o;return-1}var Ume=jme;function Hme(e){return e!==e}var Gme=Hme;function Vme(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}var Wme=Vme,zme=Ume,Qme=Gme,Kme=Wme;function Yme(e,t,r){return t===t?Kme(e,t,r):zme(e,Qme,r)}var Xme=Yme,Jme=Xme;function Zme(e,t){var r=e==null?0:e.length;return!!r&&Jme(e,t,0)>-1}var eve=Zme;function tve(e,t,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}var rve=tve;function nve(){}var ave=nve,L0=rL,ove=ave,ive=PC,sve=1/0,lve=L0&&1/ive(new L0([,-0]))[1]==sve?function(e){return new L0(e)}:ove,uve=lve,cve=K2,dve=eve,fve=rve,pve=Y2,hve=uve,mve=PC,vve=200;function yve(e,t,r){var n=-1,a=dve,o=e.length,i=!0,s=[],l=s;if(r)i=!1,a=fve;else if(o>=vve){var u=t?null:hve(e);if(u)return mve(u);i=!1,a=pve,l=new cve}else l=t?[]:s;e:for(;++n<o;){var c=e[n],d=t?t(c):c;if(c=r||c!==0?c:0,i&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else a(l,d,r)||(l!==s&&l.push(d),s.push(c))}return s}var gve=yve,bve=gve;function Eve(e){return e&&e.length?bve(e):[]}var _ve=Eve;const wve=Yt(_ve);var vL={exports:{}};/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */(function(e,t){(function(r,n){e.exports=n(r)})(we,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=function(a){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var o=String(a),i=o.length,s=-1,l,u="",c=o.charCodeAt(0);++s<i;){if(l=o.charCodeAt(s),l==0){u+="�";continue}if(l>=1&&l<=31||l==127||s==0&&l>=48&&l<=57||s==1&&l>=48&&l<=57&&c==45){u+="\\"+l.toString(16)+" ";continue}if(s==0&&i==1&&l==45){u+="\\"+o.charAt(s);continue}if(l>=128||l==45||l==95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122){u+=o.charAt(s);continue}u+="\\"+o.charAt(s)}return u};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})})(vL);var Cve=vL.exports;const Rve=Yt(Cve);var sn={},mm={},bi={},vm={};Object.defineProperty(vm,"__esModule",{value:!0});vm.default=void 0;function Sve(){var e=this,t=0,r={"@@iterator":function(){return r},next:function(){if(t<e.length){var a=e[t];return t=t+1,{done:!1,value:a}}else return{done:!0}}};return r}var Tve=Sve;vm.default=Tve;Object.defineProperty(bi,"__esModule",{value:!0});bi.default=Ove;var xve=Pve(vm);function Pve(e){return e&&e.__esModule?e:{default:e}}function F_(e){"@babel/helpers - typeof";return F_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F_(e)}function Ove(e,t){return typeof Symbol=="function"&&F_(Symbol.iterator)==="symbol"&&Object.defineProperty(e,Symbol.iterator,{value:xve.default.bind(t)}),e}Object.defineProperty(mm,"__esModule",{value:!0});mm.default=void 0;var Ave=$ve(bi);function $ve(e){return e&&e.__esModule?e:{default:e}}function D0(e,t){return Mve(e)||Nve(e,t)||yL(e,t)||Ive()}function Ive(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
202
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nve(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,s;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(l){o=!0,s=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function Mve(e){if(Array.isArray(e))return e}function qve(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=yL(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
203
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){i=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function yL(e,t){if(e){if(typeof e=="string")return rO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rO(e,t)}}function rO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var qi=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],j_={entries:function(){return qi},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=qve(qi),a;try{for(n.s();!(a=n.n()).done;){var o=D0(a.value,2),i=o[0],s=o[1];t.call(r,s,i,qi)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=qi.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!j_.get(t)},keys:function(){return qi.map(function(t){var r=D0(t,1),n=r[0];return n})},values:function(){return qi.map(function(t){var r=D0(t,2),n=r[1];return n})}},kve=(0,Ave.default)(j_,j_.entries());mm.default=kve;var ym={};Object.defineProperty(ym,"__esModule",{value:!0});ym.default=void 0;var Lve=Dve(bi);function Dve(e){return e&&e.__esModule?e:{default:e}}function B0(e,t){return jve(e)||Fve(e,t)||gL(e,t)||Bve()}function Bve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
204
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fve(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,s;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(l){o=!0,s=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function jve(e){if(Array.isArray(e))return e}function Uve(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=gL(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
205
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){i=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function gL(e,t){if(e){if(typeof e=="string")return nO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nO(e,t)}}function nO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ki=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],U_={entries:function(){return ki},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=Uve(ki),a;try{for(n.s();!(a=n.n()).done;){var o=B0(a.value,2),i=o[0],s=o[1];t.call(r,s,i,ki)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=ki.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!U_.get(t)},keys:function(){return ki.map(function(t){var r=B0(t,1),n=r[0];return n})},values:function(){return ki.map(function(t){var r=B0(t,2),n=r[1];return n})}},Hve=(0,Lve.default)(U_,U_.entries());ym.default=Hve;var Xs={},gm={},bm={};Object.defineProperty(bm,"__esModule",{value:!0});bm.default=void 0;var Gve={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},Vve=Gve;bm.default=Vve;var Em={};Object.defineProperty(Em,"__esModule",{value:!0});Em.default=void 0;var Wve={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},zve=Wve;Em.default=zve;var _m={};Object.defineProperty(_m,"__esModule",{value:!0});_m.default=void 0;var Qve={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},Kve=Qve;_m.default=Kve;var wm={};Object.defineProperty(wm,"__esModule",{value:!0});wm.default=void 0;var Yve={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Xve=Yve;wm.default=Xve;var Cm={};Object.defineProperty(Cm,"__esModule",{value:!0});Cm.default=void 0;var Jve={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},Zve=Jve;Cm.default=Zve;var Rm={};Object.defineProperty(Rm,"__esModule",{value:!0});Rm.default=void 0;var eye={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},tye=eye;Rm.default=tye;var Sm={};Object.defineProperty(Sm,"__esModule",{value:!0});Sm.default=void 0;var rye={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},nye=rye;Sm.default=nye;var Tm={};Object.defineProperty(Tm,"__esModule",{value:!0});Tm.default=void 0;var aye={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},oye=aye;Tm.default=oye;var xm={};Object.defineProperty(xm,"__esModule",{value:!0});xm.default=void 0;var iye={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]},sye=iye;xm.default=sye;var Pm={};Object.defineProperty(Pm,"__esModule",{value:!0});Pm.default=void 0;var lye={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},uye=lye;Pm.default=uye;var Om={};Object.defineProperty(Om,"__esModule",{value:!0});Om.default=void 0;var cye={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},dye=cye;Om.default=dye;var Am={};Object.defineProperty(Am,"__esModule",{value:!0});Am.default=void 0;var fye={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},pye=fye;Am.default=pye;Object.defineProperty(gm,"__esModule",{value:!0});gm.default=void 0;var hye=Wr(bm),mye=Wr(Em),vye=Wr(_m),yye=Wr(wm),gye=Wr(Cm),bye=Wr(Rm),Eye=Wr(Sm),_ye=Wr(Tm),wye=Wr(xm),Cye=Wr(Pm),Rye=Wr(Om),Sye=Wr(Am);function Wr(e){return e&&e.__esModule?e:{default:e}}var Tye=[["command",hye.default],["composite",mye.default],["input",vye.default],["landmark",yye.default],["range",gye.default],["roletype",bye.default],["section",Eye.default],["sectionhead",_ye.default],["select",wye.default],["structure",Cye.default],["widget",Rye.default],["window",Sye.default]],xye=Tye;gm.default=xye;var $m={},Im={};Object.defineProperty(Im,"__esModule",{value:!0});Im.default=void 0;var Pye={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Oye=Pye;Im.default=Oye;var Nm={};Object.defineProperty(Nm,"__esModule",{value:!0});Nm.default=void 0;var Aye={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]},$ye=Aye;Nm.default=$ye;var Mm={};Object.defineProperty(Mm,"__esModule",{value:!0});Mm.default=void 0;var Iye={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},Nye=Iye;Mm.default=Nye;var qm={};Object.defineProperty(qm,"__esModule",{value:!0});qm.default=void 0;var Mye={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},qye=Mye;qm.default=qye;var km={};Object.defineProperty(km,"__esModule",{value:!0});km.default=void 0;var kye={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Lye=kye;km.default=Lye;var Lm={};Object.defineProperty(Lm,"__esModule",{value:!0});Lm.default=void 0;var Dye={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Bye=Dye;Lm.default=Bye;var Dm={};Object.defineProperty(Dm,"__esModule",{value:!0});Dm.default=void 0;var Fye={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},jye=Fye;Dm.default=jye;var Bm={};Object.defineProperty(Bm,"__esModule",{value:!0});Bm.default=void 0;var Uye={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Hye=Uye;Bm.default=Hye;var Fm={};Object.defineProperty(Fm,"__esModule",{value:!0});Fm.default=void 0;var Gye={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Vye=Gye;Fm.default=Vye;var jm={};Object.defineProperty(jm,"__esModule",{value:!0});jm.default=void 0;var Wye={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},zye=Wye;jm.default=zye;var Um={};Object.defineProperty(Um,"__esModule",{value:!0});Um.default=void 0;var Qye={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Kye=Qye;Um.default=Kye;var Hm={};Object.defineProperty(Hm,"__esModule",{value:!0});Hm.default=void 0;var Yye={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},Xye=Yye;Hm.default=Xye;var Gm={};Object.defineProperty(Gm,"__esModule",{value:!0});Gm.default=void 0;var Jye={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]},Zye=Jye;Gm.default=Zye;var Vm={};Object.defineProperty(Vm,"__esModule",{value:!0});Vm.default=void 0;var ege={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},tge=ege;Vm.default=tge;var Wm={};Object.defineProperty(Wm,"__esModule",{value:!0});Wm.default=void 0;var rge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},nge=rge;Wm.default=nge;var zm={};Object.defineProperty(zm,"__esModule",{value:!0});zm.default=void 0;var age={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},oge=age;zm.default=oge;var Qm={};Object.defineProperty(Qm,"__esModule",{value:!0});Qm.default=void 0;var ige={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},sge=ige;Qm.default=sge;var Km={};Object.defineProperty(Km,"__esModule",{value:!0});Km.default=void 0;var lge={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},uge=lge;Km.default=uge;var Ym={};Object.defineProperty(Ym,"__esModule",{value:!0});Ym.default=void 0;var cge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},dge=cge;Ym.default=dge;var Xm={};Object.defineProperty(Xm,"__esModule",{value:!0});Xm.default=void 0;var fge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},pge=fge;Xm.default=pge;var Jm={};Object.defineProperty(Jm,"__esModule",{value:!0});Jm.default=void 0;var hge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},mge=hge;Jm.default=mge;var Zm={};Object.defineProperty(Zm,"__esModule",{value:!0});Zm.default=void 0;var vge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},yge=vge;Zm.default=yge;var ev={};Object.defineProperty(ev,"__esModule",{value:!0});ev.default=void 0;var gge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},bge=gge;ev.default=bge;var tv={};Object.defineProperty(tv,"__esModule",{value:!0});tv.default=void 0;var Ege={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},_ge=Ege;tv.default=_ge;var rv={};Object.defineProperty(rv,"__esModule",{value:!0});rv.default=void 0;var wge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},Cge=wge;rv.default=Cge;var nv={};Object.defineProperty(nv,"__esModule",{value:!0});nv.default=void 0;var Rge={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]},Sge=Rge;nv.default=Sge;var av={};Object.defineProperty(av,"__esModule",{value:!0});av.default=void 0;var Tge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]},xge=Tge;av.default=xge;var ov={};Object.defineProperty(ov,"__esModule",{value:!0});ov.default=void 0;var Pge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Oge=Pge;ov.default=Oge;var iv={};Object.defineProperty(iv,"__esModule",{value:!0});iv.default=void 0;var Age={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]},$ge=Age;iv.default=$ge;var sv={};Object.defineProperty(sv,"__esModule",{value:!0});sv.default=void 0;var Ige={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Nge=Ige;sv.default=Nge;var lv={};Object.defineProperty(lv,"__esModule",{value:!0});lv.default=void 0;var Mge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},qge=Mge;lv.default=qge;var uv={};Object.defineProperty(uv,"__esModule",{value:!0});uv.default=void 0;var kge={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},Lge=kge;uv.default=Lge;var cv={};Object.defineProperty(cv,"__esModule",{value:!0});cv.default=void 0;var Dge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]},Bge=Dge;cv.default=Bge;var dv={};Object.defineProperty(dv,"__esModule",{value:!0});dv.default=void 0;var Fge={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},jge=Fge;dv.default=jge;var fv={};Object.defineProperty(fv,"__esModule",{value:!0});fv.default=void 0;var Uge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Hge=Uge;fv.default=Hge;var pv={};Object.defineProperty(pv,"__esModule",{value:!0});pv.default=void 0;var Gge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Vge=Gge;pv.default=Vge;var hv={};Object.defineProperty(hv,"__esModule",{value:!0});hv.default=void 0;var Wge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},zge=Wge;hv.default=zge;var mv={};Object.defineProperty(mv,"__esModule",{value:!0});mv.default=void 0;var Qge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Kge=Qge;mv.default=Kge;var vv={};Object.defineProperty(vv,"__esModule",{value:!0});vv.default=void 0;var Yge={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Xge=Yge;vv.default=Xge;var yv={};Object.defineProperty(yv,"__esModule",{value:!0});yv.default=void 0;var Jge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Zge=Jge;yv.default=Zge;var gv={};Object.defineProperty(gv,"__esModule",{value:!0});gv.default=void 0;var ebe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},tbe=ebe;gv.default=tbe;var bv={};Object.defineProperty(bv,"__esModule",{value:!0});bv.default=void 0;var rbe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]},nbe=rbe;bv.default=nbe;var Ev={};Object.defineProperty(Ev,"__esModule",{value:!0});Ev.default=void 0;var abe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},obe=abe;Ev.default=obe;var _v={};Object.defineProperty(_v,"__esModule",{value:!0});_v.default=void 0;var ibe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]},sbe=ibe;_v.default=sbe;var wv={};Object.defineProperty(wv,"__esModule",{value:!0});wv.default=void 0;var lbe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]},ube=lbe;wv.default=ube;var Cv={};Object.defineProperty(Cv,"__esModule",{value:!0});Cv.default=void 0;var cbe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]},dbe=cbe;Cv.default=dbe;var Rv={};Object.defineProperty(Rv,"__esModule",{value:!0});Rv.default=void 0;var fbe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},pbe=fbe;Rv.default=pbe;var Sv={};Object.defineProperty(Sv,"__esModule",{value:!0});Sv.default=void 0;var hbe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},mbe=hbe;Sv.default=mbe;var Tv={};Object.defineProperty(Tv,"__esModule",{value:!0});Tv.default=void 0;var vbe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},ybe=vbe;Tv.default=ybe;var xv={};Object.defineProperty(xv,"__esModule",{value:!0});xv.default=void 0;var gbe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]},bbe=gbe;xv.default=bbe;var Pv={};Object.defineProperty(Pv,"__esModule",{value:!0});Pv.default=void 0;var Ebe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},_be=Ebe;Pv.default=_be;var Ov={};Object.defineProperty(Ov,"__esModule",{value:!0});Ov.default=void 0;var wbe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},Cbe=wbe;Ov.default=Cbe;var Av={};Object.defineProperty(Av,"__esModule",{value:!0});Av.default=void 0;var Rbe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]},Sbe=Rbe;Av.default=Sbe;var $v={};Object.defineProperty($v,"__esModule",{value:!0});$v.default=void 0;var Tbe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},xbe=Tbe;$v.default=xbe;var Iv={};Object.defineProperty(Iv,"__esModule",{value:!0});Iv.default=void 0;var Pbe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},Obe=Pbe;Iv.default=Obe;var Nv={};Object.defineProperty(Nv,"__esModule",{value:!0});Nv.default=void 0;var Abe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},$be=Abe;Nv.default=$be;var Mv={};Object.defineProperty(Mv,"__esModule",{value:!0});Mv.default=void 0;var Ibe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]},Nbe=Ibe;Mv.default=Nbe;var qv={};Object.defineProperty(qv,"__esModule",{value:!0});qv.default=void 0;var Mbe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]},qbe=Mbe;qv.default=qbe;var kv={};Object.defineProperty(kv,"__esModule",{value:!0});kv.default=void 0;var kbe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},Lbe=kbe;kv.default=Lbe;var Lv={};Object.defineProperty(Lv,"__esModule",{value:!0});Lv.default=void 0;var Dbe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]},Bbe=Dbe;Lv.default=Bbe;var Dv={};Object.defineProperty(Dv,"__esModule",{value:!0});Dv.default=void 0;var Fbe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},jbe=Fbe;Dv.default=jbe;var Bv={};Object.defineProperty(Bv,"__esModule",{value:!0});Bv.default=void 0;var Ube={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]},Hbe=Ube;Bv.default=Hbe;var Fv={};Object.defineProperty(Fv,"__esModule",{value:!0});Fv.default=void 0;var Gbe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},Vbe=Gbe;Fv.default=Vbe;var jv={};Object.defineProperty(jv,"__esModule",{value:!0});jv.default=void 0;var Wbe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]},zbe=Wbe;jv.default=zbe;var Uv={};Object.defineProperty(Uv,"__esModule",{value:!0});Uv.default=void 0;var Qbe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]},Kbe=Qbe;Uv.default=Kbe;var Hv={};Object.defineProperty(Hv,"__esModule",{value:!0});Hv.default=void 0;var Ybe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Xbe=Ybe;Hv.default=Xbe;var Gv={};Object.defineProperty(Gv,"__esModule",{value:!0});Gv.default=void 0;var Jbe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Zbe=Jbe;Gv.default=Zbe;var Vv={};Object.defineProperty(Vv,"__esModule",{value:!0});Vv.default=void 0;var e0e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t0e=e0e;Vv.default=t0e;var Wv={};Object.defineProperty(Wv,"__esModule",{value:!0});Wv.default=void 0;var r0e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},n0e=r0e;Wv.default=n0e;var zv={};Object.defineProperty(zv,"__esModule",{value:!0});zv.default=void 0;var a0e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]},o0e=a0e;zv.default=o0e;var Qv={};Object.defineProperty(Qv,"__esModule",{value:!0});Qv.default=void 0;var i0e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]},s0e=i0e;Qv.default=s0e;var Kv={};Object.defineProperty(Kv,"__esModule",{value:!0});Kv.default=void 0;var l0e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]},u0e=l0e;Kv.default=u0e;var Yv={};Object.defineProperty(Yv,"__esModule",{value:!0});Yv.default=void 0;var c0e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]},d0e=c0e;Yv.default=d0e;var Xv={};Object.defineProperty(Xv,"__esModule",{value:!0});Xv.default=void 0;var f0e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},p0e=f0e;Xv.default=p0e;var Jv={};Object.defineProperty(Jv,"__esModule",{value:!0});Jv.default=void 0;var h0e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},m0e=h0e;Jv.default=m0e;var Zv={};Object.defineProperty(Zv,"__esModule",{value:!0});Zv.default=void 0;var v0e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]},y0e=v0e;Zv.default=y0e;var ey={};Object.defineProperty(ey,"__esModule",{value:!0});ey.default=void 0;var g0e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},b0e=g0e;ey.default=b0e;var ty={};Object.defineProperty(ty,"__esModule",{value:!0});ty.default=void 0;var E0e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},_0e=E0e;ty.default=_0e;var ry={};Object.defineProperty(ry,"__esModule",{value:!0});ry.default=void 0;var w0e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},C0e=w0e;ry.default=C0e;var ny={};Object.defineProperty(ny,"__esModule",{value:!0});ny.default=void 0;var R0e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},S0e=R0e;ny.default=S0e;var ay={};Object.defineProperty(ay,"__esModule",{value:!0});ay.default=void 0;var T0e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},x0e=T0e;ay.default=x0e;var oy={};Object.defineProperty(oy,"__esModule",{value:!0});oy.default=void 0;var P0e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]},O0e=P0e;oy.default=O0e;var iy={};Object.defineProperty(iy,"__esModule",{value:!0});iy.default=void 0;var A0e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]},$0e=A0e;iy.default=$0e;Object.defineProperty($m,"__esModule",{value:!0});$m.default=void 0;var I0e=ue(Im),N0e=ue(Nm),M0e=ue(Mm),q0e=ue(qm),k0e=ue(km),L0e=ue(Lm),D0e=ue(Dm),B0e=ue(Bm),F0e=ue(Fm),j0e=ue(jm),U0e=ue(Um),H0e=ue(Hm),G0e=ue(Gm),V0e=ue(Vm),W0e=ue(Wm),z0e=ue(zm),Q0e=ue(Qm),K0e=ue(Km),Y0e=ue(Ym),X0e=ue(Xm),J0e=ue(Jm),Z0e=ue(Zm),eEe=ue(ev),tEe=ue(tv),rEe=ue(rv),nEe=ue(nv),aEe=ue(av),oEe=ue(ov),iEe=ue(iv),sEe=ue(sv),lEe=ue(lv),uEe=ue(uv),cEe=ue(cv),dEe=ue(dv),fEe=ue(fv),pEe=ue(pv),hEe=ue(hv),mEe=ue(mv),vEe=ue(vv),yEe=ue(yv),gEe=ue(gv),bEe=ue(bv),EEe=ue(Ev),_Ee=ue(_v),wEe=ue(wv),CEe=ue(Cv),REe=ue(Rv),SEe=ue(Sv),TEe=ue(Tv),xEe=ue(xv),PEe=ue(Pv),OEe=ue(Ov),AEe=ue(Av),$Ee=ue($v),IEe=ue(Iv),NEe=ue(Nv),MEe=ue(Mv),qEe=ue(qv),kEe=ue(kv),LEe=ue(Lv),DEe=ue(Dv),BEe=ue(Bv),FEe=ue(Fv),jEe=ue(jv),UEe=ue(Uv),HEe=ue(Hv),GEe=ue(Gv),VEe=ue(Vv),WEe=ue(Wv),zEe=ue(zv),QEe=ue(Qv),KEe=ue(Kv),YEe=ue(Yv),XEe=ue(Xv),JEe=ue(Jv),ZEe=ue(Zv),e_e=ue(ey),t_e=ue(ty),r_e=ue(ry),n_e=ue(ny),a_e=ue(ay),o_e=ue(oy),i_e=ue(iy);function ue(e){return e&&e.__esModule?e:{default:e}}var s_e=[["alert",I0e.default],["alertdialog",N0e.default],["application",M0e.default],["article",q0e.default],["banner",k0e.default],["blockquote",L0e.default],["button",D0e.default],["caption",B0e.default],["cell",F0e.default],["checkbox",j0e.default],["code",U0e.default],["columnheader",H0e.default],["combobox",G0e.default],["complementary",V0e.default],["contentinfo",W0e.default],["definition",z0e.default],["deletion",Q0e.default],["dialog",K0e.default],["directory",Y0e.default],["document",X0e.default],["emphasis",J0e.default],["feed",Z0e.default],["figure",eEe.default],["form",tEe.default],["generic",rEe.default],["grid",nEe.default],["gridcell",aEe.default],["group",oEe.default],["heading",iEe.default],["img",sEe.default],["insertion",lEe.default],["link",uEe.default],["list",cEe.default],["listbox",dEe.default],["listitem",fEe.default],["log",pEe.default],["main",hEe.default],["mark",mEe.default],["marquee",vEe.default],["math",yEe.default],["menu",gEe.default],["menubar",bEe.default],["menuitem",EEe.default],["menuitemcheckbox",_Ee.default],["menuitemradio",wEe.default],["meter",CEe.default],["navigation",REe.default],["none",SEe.default],["note",TEe.default],["option",xEe.default],["paragraph",PEe.default],["presentation",OEe.default],["progressbar",AEe.default],["radio",$Ee.default],["radiogroup",IEe.default],["region",NEe.default],["row",MEe.default],["rowgroup",qEe.default],["rowheader",kEe.default],["scrollbar",LEe.default],["search",DEe.default],["searchbox",BEe.default],["separator",FEe.default],["slider",jEe.default],["spinbutton",UEe.default],["status",HEe.default],["strong",GEe.default],["subscript",VEe.default],["superscript",WEe.default],["switch",zEe.default],["tab",QEe.default],["table",KEe.default],["tablist",YEe.default],["tabpanel",XEe.default],["term",JEe.default],["textbox",ZEe.default],["time",e_e.default],["timer",t_e.default],["toolbar",r_e.default],["tooltip",n_e.default],["tree",a_e.default],["treegrid",o_e.default],["treeitem",i_e.default]],l_e=s_e;$m.default=l_e;var sy={},ly={};Object.defineProperty(ly,"__esModule",{value:!0});ly.default=void 0;var u_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},c_e=u_e;ly.default=c_e;var uy={};Object.defineProperty(uy,"__esModule",{value:!0});uy.default=void 0;var d_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},f_e=d_e;uy.default=f_e;var cy={};Object.defineProperty(cy,"__esModule",{value:!0});cy.default=void 0;var p_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},h_e=p_e;cy.default=h_e;var dy={};Object.defineProperty(dy,"__esModule",{value:!0});dy.default=void 0;var m_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},v_e=m_e;dy.default=v_e;var fy={};Object.defineProperty(fy,"__esModule",{value:!0});fy.default=void 0;var y_e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},g_e=y_e;fy.default=g_e;var py={};Object.defineProperty(py,"__esModule",{value:!0});py.default=void 0;var b_e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},E_e=b_e;py.default=E_e;var hy={};Object.defineProperty(hy,"__esModule",{value:!0});hy.default=void 0;var __e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},w_e=__e;hy.default=w_e;var my={};Object.defineProperty(my,"__esModule",{value:!0});my.default=void 0;var C_e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},R_e=C_e;my.default=R_e;var vy={};Object.defineProperty(vy,"__esModule",{value:!0});vy.default=void 0;var S_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},T_e=S_e;vy.default=T_e;var yy={};Object.defineProperty(yy,"__esModule",{value:!0});yy.default=void 0;var x_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},P_e=x_e;yy.default=P_e;var gy={};Object.defineProperty(gy,"__esModule",{value:!0});gy.default=void 0;var O_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},A_e=O_e;gy.default=A_e;var by={};Object.defineProperty(by,"__esModule",{value:!0});by.default=void 0;var $_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},I_e=$_e;by.default=I_e;var Ey={};Object.defineProperty(Ey,"__esModule",{value:!0});Ey.default=void 0;var N_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},M_e=N_e;Ey.default=M_e;var _y={};Object.defineProperty(_y,"__esModule",{value:!0});_y.default=void 0;var q_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},k_e=q_e;_y.default=k_e;var wy={};Object.defineProperty(wy,"__esModule",{value:!0});wy.default=void 0;var L_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},D_e=L_e;wy.default=D_e;var Cy={};Object.defineProperty(Cy,"__esModule",{value:!0});Cy.default=void 0;var B_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},F_e=B_e;Cy.default=F_e;var Ry={};Object.defineProperty(Ry,"__esModule",{value:!0});Ry.default=void 0;var j_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},U_e=j_e;Ry.default=U_e;var Sy={};Object.defineProperty(Sy,"__esModule",{value:!0});Sy.default=void 0;var H_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},G_e=H_e;Sy.default=G_e;var Ty={};Object.defineProperty(Ty,"__esModule",{value:!0});Ty.default=void 0;var V_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},W_e=V_e;Ty.default=W_e;var xy={};Object.defineProperty(xy,"__esModule",{value:!0});xy.default=void 0;var z_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Q_e=z_e;xy.default=Q_e;var Py={};Object.defineProperty(Py,"__esModule",{value:!0});Py.default=void 0;var K_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Y_e=K_e;Py.default=Y_e;var Oy={};Object.defineProperty(Oy,"__esModule",{value:!0});Oy.default=void 0;var X_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},J_e=X_e;Oy.default=J_e;var Ay={};Object.defineProperty(Ay,"__esModule",{value:!0});Ay.default=void 0;var Z_e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},ewe=Z_e;Ay.default=ewe;var $y={};Object.defineProperty($y,"__esModule",{value:!0});$y.default=void 0;var twe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},rwe=twe;$y.default=rwe;var Iy={};Object.defineProperty(Iy,"__esModule",{value:!0});Iy.default=void 0;var nwe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},awe=nwe;Iy.default=awe;var Ny={};Object.defineProperty(Ny,"__esModule",{value:!0});Ny.default=void 0;var owe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},iwe=owe;Ny.default=iwe;var My={};Object.defineProperty(My,"__esModule",{value:!0});My.default=void 0;var swe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},lwe=swe;My.default=lwe;var qy={};Object.defineProperty(qy,"__esModule",{value:!0});qy.default=void 0;var uwe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},cwe=uwe;qy.default=cwe;var ky={};Object.defineProperty(ky,"__esModule",{value:!0});ky.default=void 0;var dwe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},fwe=dwe;ky.default=fwe;var Ly={};Object.defineProperty(Ly,"__esModule",{value:!0});Ly.default=void 0;var pwe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]},hwe=pwe;Ly.default=hwe;var Dy={};Object.defineProperty(Dy,"__esModule",{value:!0});Dy.default=void 0;var mwe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},vwe=mwe;Dy.default=vwe;var By={};Object.defineProperty(By,"__esModule",{value:!0});By.default=void 0;var ywe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},gwe=ywe;By.default=gwe;var Fy={};Object.defineProperty(Fy,"__esModule",{value:!0});Fy.default=void 0;var bwe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Ewe=bwe;Fy.default=Ewe;var jy={};Object.defineProperty(jy,"__esModule",{value:!0});jy.default=void 0;var _we={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},wwe=_we;jy.default=wwe;var Uy={};Object.defineProperty(Uy,"__esModule",{value:!0});Uy.default=void 0;var Cwe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]},Rwe=Cwe;Uy.default=Rwe;var Hy={};Object.defineProperty(Hy,"__esModule",{value:!0});Hy.default=void 0;var Swe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Twe=Swe;Hy.default=Twe;var Gy={};Object.defineProperty(Gy,"__esModule",{value:!0});Gy.default=void 0;var xwe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]},Pwe=xwe;Gy.default=Pwe;var Vy={};Object.defineProperty(Vy,"__esModule",{value:!0});Vy.default=void 0;var Owe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},Awe=Owe;Vy.default=Awe;var Wy={};Object.defineProperty(Wy,"__esModule",{value:!0});Wy.default=void 0;var $we={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},Iwe=$we;Wy.default=Iwe;Object.defineProperty(sy,"__esModule",{value:!0});sy.default=void 0;var Nwe=qe(ly),Mwe=qe(uy),qwe=qe(cy),kwe=qe(dy),Lwe=qe(fy),Dwe=qe(py),Bwe=qe(hy),Fwe=qe(my),jwe=qe(vy),Uwe=qe(yy),Hwe=qe(gy),Gwe=qe(by),Vwe=qe(Ey),Wwe=qe(_y),zwe=qe(wy),Qwe=qe(Cy),Kwe=qe(Ry),Ywe=qe(Sy),Xwe=qe(Ty),Jwe=qe(xy),Zwe=qe(Py),eCe=qe(Oy),tCe=qe(Ay),rCe=qe($y),nCe=qe(Iy),aCe=qe(Ny),oCe=qe(My),iCe=qe(qy),sCe=qe(ky),lCe=qe(Ly),uCe=qe(Dy),cCe=qe(By),dCe=qe(Fy),fCe=qe(jy),pCe=qe(Uy),hCe=qe(Hy),mCe=qe(Gy),vCe=qe(Vy),yCe=qe(Wy);function qe(e){return e&&e.__esModule?e:{default:e}}var gCe=[["doc-abstract",Nwe.default],["doc-acknowledgments",Mwe.default],["doc-afterword",qwe.default],["doc-appendix",kwe.default],["doc-backlink",Lwe.default],["doc-biblioentry",Dwe.default],["doc-bibliography",Bwe.default],["doc-biblioref",Fwe.default],["doc-chapter",jwe.default],["doc-colophon",Uwe.default],["doc-conclusion",Hwe.default],["doc-cover",Gwe.default],["doc-credit",Vwe.default],["doc-credits",Wwe.default],["doc-dedication",zwe.default],["doc-endnote",Qwe.default],["doc-endnotes",Kwe.default],["doc-epigraph",Ywe.default],["doc-epilogue",Xwe.default],["doc-errata",Jwe.default],["doc-example",Zwe.default],["doc-footnote",eCe.default],["doc-foreword",tCe.default],["doc-glossary",rCe.default],["doc-glossref",nCe.default],["doc-index",aCe.default],["doc-introduction",oCe.default],["doc-noteref",iCe.default],["doc-notice",sCe.default],["doc-pagebreak",lCe.default],["doc-pagelist",uCe.default],["doc-part",cCe.default],["doc-preface",dCe.default],["doc-prologue",fCe.default],["doc-pullquote",pCe.default],["doc-qna",hCe.default],["doc-subtitle",mCe.default],["doc-tip",vCe.default],["doc-toc",yCe.default]],bCe=gCe;sy.default=bCe;var zy={},Qy={};Object.defineProperty(Qy,"__esModule",{value:!0});Qy.default=void 0;var ECe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},_Ce=ECe;Qy.default=_Ce;var Ky={};Object.defineProperty(Ky,"__esModule",{value:!0});Ky.default=void 0;var wCe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},CCe=wCe;Ky.default=CCe;var Yy={};Object.defineProperty(Yy,"__esModule",{value:!0});Yy.default=void 0;var RCe={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},SCe=RCe;Yy.default=SCe;Object.defineProperty(zy,"__esModule",{value:!0});zy.default=void 0;var TCe=NC(Qy),xCe=NC(Ky),PCe=NC(Yy);function NC(e){return e&&e.__esModule?e:{default:e}}var OCe=[["graphics-document",TCe.default],["graphics-object",xCe.default],["graphics-symbol",PCe.default]],ACe=OCe;zy.default=ACe;Object.defineProperty(Xs,"__esModule",{value:!0});Xs.default=void 0;var $Ce=zu(gm),ICe=zu($m),NCe=zu(sy),MCe=zu(zy),qCe=zu(bi);function zu(e){return e&&e.__esModule?e:{default:e}}function kCe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H_(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=bL(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
206
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){i=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function Yl(e,t){return BCe(e)||DCe(e,t)||bL(e,t)||LCe()}function LCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
207
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bL(e,t){if(e){if(typeof e=="string")return aO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aO(e,t)}}function aO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function DCe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,s;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(l){o=!0,s=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function BCe(e){if(Array.isArray(e))return e}var La=[].concat($Ce.default,ICe.default,NCe.default,MCe.default);La.forEach(function(e){var t=Yl(e,2),r=t[1],n=H_(r.superClass),a;try{for(n.s();!(a=n.n()).done;){var o=a.value,i=H_(o),s;try{var l=function(){var c=s.value,d=La.find(function(b){var y=Yl(b,1),v=y[0];return v===c});if(d)for(var f=d[1],p=0,h=Object.keys(f.props);p<h.length;p++){var m=h[p];Object.prototype.hasOwnProperty.call(r.props,m)||Object.assign(r.props,kCe({},m,f.props[m]))}};for(i.s();!(s=i.n()).done;)l()}catch(u){i.e(u)}finally{i.f()}}}catch(u){n.e(u)}finally{n.f()}});var G_={entries:function(){return La},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=H_(La),a;try{for(n.s();!(a=n.n()).done;){var o=Yl(a.value,2),i=o[0],s=o[1];t.call(r,s,i,La)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=La.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!G_.get(t)},keys:function(){return La.map(function(t){var r=Yl(t,1),n=r[0];return n})},values:function(){return La.map(function(t){var r=Yl(t,2),n=r[1];return n})}},FCe=(0,qCe.default)(G_,G_.entries());Xs.default=FCe;var Xy={},EL={},oO=Object.prototype.hasOwnProperty;function V_(e,t){var r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&V_(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(oO.call(e,r)&&++n&&!oO.call(t,r)||!(r in t)||!V_(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}EL.dequal=V_;Object.defineProperty(Xy,"__esModule",{value:!0});Xy.default=void 0;var _L=EL,jCe=CL(bi),wL=CL(Xs);function CL(e){return e&&e.__esModule?e:{default:e}}function F0(e,t){return GCe(e)||HCe(e,t)||RL(e,t)||UCe()}function UCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
208
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HCe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,s;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(l){o=!0,s=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function GCe(e){if(Array.isArray(e))return e}function VCe(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=RL(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
209
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){i=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function RL(e,t){if(e){if(typeof e=="string")return iO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iO(e,t)}}function iO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Da=[],sO=wL.default.keys();for(var j0=0;j0<sO.length;j0++){var U0=sO[j0],H0=wL.default.get(U0);if(H0)for(var lO=[].concat(H0.baseConcepts,H0.relatedConcepts),G0=0;G0<lO.length;G0++){var uO=lO[G0];uO.module==="HTML"&&function(){var e=uO.concept;if(e){var t=Da.find(function(o){return(0,_L.dequal)(o,e)}),r;t?r=t[1]:r=[];for(var n=!0,a=0;a<r.length;a++)if(r[a]===U0){n=!1;break}n&&r.push(U0),Da.push([e,r])}}()}}var W_={entries:function(){return Da},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=VCe(Da),a;try{for(n.s();!(a=n.n()).done;){var o=F0(a.value,2),i=o[0],s=o[1];t.call(r,s,i,Da)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=Da.find(function(n){return t.name===n[0].name&&(0,_L.dequal)(t.attributes,n[0].attributes)});return r&&r[1]},has:function(t){return!!W_.get(t)},keys:function(){return Da.map(function(t){var r=F0(t,1),n=r[0];return n})},values:function(){return Da.map(function(t){var r=F0(t,2),n=r[1];return n})}},WCe=(0,jCe.default)(W_,W_.entries());Xy.default=WCe;var Jy={};Object.defineProperty(Jy,"__esModule",{value:!0});Jy.default=void 0;var zCe=TL(bi),SL=TL(Xs);function TL(e){return e&&e.__esModule?e:{default:e}}function V0(e,t){return YCe(e)||KCe(e,t)||xL(e,t)||QCe()}function QCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
210
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KCe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,s;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(l){o=!0,s=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function YCe(e){if(Array.isArray(e))return e}function XCe(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=xL(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
211
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){i=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function xL(e,t){if(e){if(typeof e=="string")return cO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cO(e,t)}}function cO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ko=[],dO=SL.default.keys();for(var W0=0;W0<dO.length;W0++){var fO=dO[W0],z0=SL.default.get(fO),Q0=[];if(z0){for(var pO=[].concat(z0.baseConcepts,z0.relatedConcepts),K0=0;K0<pO.length;K0++){var hO=pO[K0];if(hO.module==="HTML"){var mO=hO.concept;mO!=null&&Q0.push(mO)}}Q0.length>0&&ko.push([fO,Q0])}}var z_={entries:function(){return ko},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=XCe(ko),a;try{for(n.s();!(a=n.n()).done;){var o=V0(a.value,2),i=o[0],s=o[1];t.call(r,s,i,ko)}}catch(l){n.e(l)}finally{n.f()}},get:function(t){var r=ko.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!z_.get(t)},keys:function(){return ko.map(function(t){var r=V0(t,1),n=r[0];return n})},values:function(){return ko.map(function(t){var r=V0(t,2),n=r[1];return n})}},JCe=(0,zCe.default)(z_,z_.entries());Jy.default=JCe;Object.defineProperty(sn,"__esModule",{value:!0});var MC=sn.roles=sn.roleElements=sn.elementRoles=sn.dom=sn.aria=void 0,ZCe=Qu(mm),eRe=Qu(ym),tRe=Qu(Xs),rRe=Qu(Xy),nRe=Qu(Jy);function Qu(e){return e&&e.__esModule?e:{default:e}}var aRe=ZCe.default;sn.aria=aRe;var oRe=eRe.default;sn.dom=oRe;var iRe=tRe.default;MC=sn.roles=iRe;var sRe=rRe.default;sn.elementRoles=sRe;var lRe=nRe.default;sn.roleElements=lRe;class PL extends Error{constructor(t,r,n,a){super(),Error.captureStackTrace&&Error.captureStackTrace(this,n);let o="";try{o=a.utils.printWithType("Received",r,a.utils.printReceived)}catch{}this.message=[a.utils.matcherHint(`${a.isNot?".not":""}.${n.name}`,"received",""),"",`${a.utils.RECEIVED_COLOR("received")} value must ${t}.`,o].join(`
|
|
212
|
-
`)}}class vO extends PL{constructor(...t){super("be an HTMLElement or an SVGElement",...t)}}class yO extends PL{constructor(...t){super("be a Node",...t)}}function OL(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}function uRe(e,...t){OL(e,yO,...t);const r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new yO(e,...t)}function rt(e,...t){OL(e,vO,...t);const r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new vO(e,...t)}class cRe extends Error{constructor(t,r,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,r),this.message=[t.message,"",n.utils.RECEIVED_COLOR("Failing css:"),n.utils.RECEIVED_COLOR(`${t.css}`)].join(`
|
|
213
|
-
`)}}function dRe(e,...t){const r=bme(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){const{reason:a,line:o}=r.parsingErrors[0];throw new cRe({css:e,message:`Syntax error parsing expected css: ${a} on line: ${o}`},...t)}return r.rules[0].declarations.filter(a=>a.type==="declaration").reduce((a,{property:o,value:i})=>Object.assign(a,{[o]:i}),{})}function gO(e,t){return typeof t=="string"?t:e.utils.stringify(t)}function pr(e,t,r,n,a,o){return[`${t}
|
|
214
|
-
`,`${r}:
|
|
215
|
-
${e.utils.EXPECTED_COLOR(R1(gO(e,n),2))}`,`${a}:
|
|
216
|
-
${e.utils.RECEIVED_COLOR(R1(gO(e,o),2))}`].join(`
|
|
217
|
-
`)}function fRe(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function Zy(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}function eg(e){return e.replace(/\s+/g," ").trim()}function io(e){return e.tagName&&e.tagName.toLowerCase()}function pRe({multiple:e,options:t}){const r=[...t].filter(n=>n.selected);if(e)return[...r].map(n=>n.value);if(r.length!==0)return r[0].value}function hRe(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}function AL(e){if(e)switch(e.tagName.toLowerCase()){case"input":return hRe(e);case"select":return pRe(e);default:return e.value}}function $L(e,t){if(Array.isArray(e)&&Array.isArray(t))return mme(new Set(e),new Set(t))}function mRe(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}function Q_(e,t){return Zy("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&rt(e,Q_,this),t&&rt(t,Q_,this),{pass:t?t.contains(e):!!e,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDOM`,"element",""),"","Received:",` ${this.utils.printReceived(e&&e.cloneNode(!1))}`].join(`
|
|
218
|
-
`)}}function IL(e){(e!==null||!this.isNot)&&rt(e,IL,this);const t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),r=()=>`expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`,n=()=>"element could not be found in the document";return{pass:t,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDocument`,"element",""),"",this.utils.RECEIVED_COLOR(this.isNot?r():n())].join(`
|
|
219
|
-
`)}}function NL(e){return Zy("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),rt(e,NL,this),{pass:e.innerHTML==="",message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
220
|
-
`)}}function ML(e){return rt(e,ML,this),{pass:vRe(e),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
221
|
-
`)}}function vRe(e){return[...e.childNodes].filter(r=>r.nodeType!==8).length===0}function K_(e,t){return rt(e,K_,this),t!==null&&rt(t,K_,this),{pass:e.contains(t),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainElement`,"element","element"),"",this.utils.RECEIVED_COLOR(`${this.utils.stringify(e.cloneNode(!1))} ${this.isNot?"contains:":"does not contain:"} ${this.utils.stringify(t&&t.cloneNode(!1))}
|
|
222
|
-
`)].join(`
|
|
223
|
-
`)}}function yRe(e,t){const r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}function qL(e,t){if(rt(e,qL,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(yRe(e,t)),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainHTML`,"element",""),"Expected:",` ${this.utils.EXPECTED_COLOR(t)}`,"Received:",` ${this.utils.printReceived(e.cloneNode(!0))}`].join(`
|
|
224
|
-
`)}}function kL(e,t,r={normalizeWhitespace:!0}){uRe(e,kL,this);const n=r.normalizeWhitespace?eg(e.textContent):e.textContent.replace(/\u00a0/g," "),a=n!==""&&t==="";return{pass:!a&&fRe(n,t),message:()=>{const o=this.isNot?"not to":"to";return pr(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveTextContent`,"element",""),a?"Checking with empty string will always match, use .toBeEmptyDOMElement() instead":`Expected element ${o} have text content`,t,"Received",n)}}}function Y_(e,t){rt(e,Y_,this);const r=Zw(e),n=arguments.length===1;let a=!1;return n?a=r!=="":a=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:a,message:()=>{const o=this.isNot?"not to":"to";return pr(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Y_.name}`,"element",""),`Expected element ${o} have accessible description`,t,"Received",r)}}}const kl="aria-invalid",gRe=["false"];function LL(e,t){var u;rt(e,LL,this);const r=this.isNot?"not to":"to",n=this.isNot?".not.toHaveAccessibleErrorMessage":".toHaveAccessibleErrorMessage",a=e.getAttribute("aria-errormessage");if(!!a&&/\s+/.test(a))return{pass:!1,message:()=>pr(this,this.utils.matcherHint(n,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${a}"`)};const i=e.getAttribute(kl);if(!e.hasAttribute(kl)||gRe.includes(i))return{pass:!1,message:()=>pr(this,this.utils.matcherHint(n,"element"),"Expected element to be marked as invalid with attribute",`${kl}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${kl}="${e.getAttribute(kl)}`:null)};const l=eg(((u=e.ownerDocument.getElementById(a))==null?void 0:u.textContent)??"");return{pass:t===void 0?!!l:t instanceof RegExp?t.test(l):this.equals(l,t),message:()=>pr(this,this.utils.matcherHint(n,"element"),`Expected element ${r} have accessible error message`,t??"","Received",l)}}function X_(e,t){rt(e,X_,this);const r=gf(e),n=arguments.length===1;let a=!1;return n?a=r!=="":a=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:a,message:()=>{const o=this.isNot?"not to":"to";return pr(this,this.utils.matcherHint(`${this.isNot?".not":""}.${X_.name}`,"element",""),`Expected element ${o} have accessible name`,t,"Received",r)}}}function bO(e,t,r){return r===void 0?t:`${t}=${e(r)}`}function bRe(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}function DL(e,t,r){rt(e,DL,this);const n=r!==void 0,a=e.hasAttribute(t),o=e.getAttribute(t);return{pass:n?a&&this.equals(o,r):a,message:()=>{const i=this.isNot?"not to":"to",s=a?bO(this.utils.stringify,t,o):null,l=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveAttribute`,"element",this.utils.printExpected(t),{secondArgument:n?this.utils.printExpected(r):void 0,comment:bRe(this.utils.stringify,t,r)});return pr(this,l,`Expected the element ${i} have attribute`,bO(this.utils.stringify,t,r),"Received",s)}}}function ERe(e){const t=e.pop();let r,n;return typeof t=="object"?(r=e,n=t):(r=e.concat(t),n={exact:!1}),{expectedClassNames:r,options:n}}function EO(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}function _O(e,t){return e.every(r=>t.includes(r))}function BL(e,...t){rt(e,BL,this);const{expectedClassNames:r,options:n}=ERe(t),a=EO(e.getAttribute("class")),o=r.reduce((i,s)=>i.concat(EO(s)),[]);return n.exact?{pass:_O(o,a)&&o.length===a.length,message:()=>{const i=this.isNot?"not to":"to";return pr(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(o.join(" "))),`Expected the element ${i} have EXACTLY defined classes`,o.join(" "),"Received",a.join(" "))}}:o.length>0?{pass:_O(o,a),message:()=>{const i=this.isNot?"not to":"to";return pr(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(o.join(" "))),`Expected the element ${i} have class`,o.join(" "),"Received",a.join(" "))}}:{pass:this.isNot?a.length>0:!1,message:()=>this.isNot?pr(this,this.utils.matcherHint(".not.toHaveClass","element",""),"Expected the element to have classes","(none)","Received",a.join(" ")):[this.utils.matcherHint(".toHaveClass","element"),"At least one expected class must be provided."].join(`
|
|
225
|
-
`)}}function _Re(e,t){const r={},n=e.createElement("div");return Object.keys(t).forEach(a=>{n.style[a]=t[a],r[a]=n.style[a]}),r}function wRe(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([r,n])=>t[r]===n||t.getPropertyValue(r.toLowerCase())===n)}function wO(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
|
|
226
|
-
`)}function CRe(e,t,r){const n=Array.from(r).filter(o=>t[o]!==void 0).reduce((o,i)=>Object.assign(o,{[i]:r.getPropertyValue(i)}),{});return e(wO(t),wO(n)).replace(`${Lme.red("+ Received")}
|
|
227
|
-
`,"")}function J_(e,t){rt(e,J_,this);const r=typeof t=="object"?t:dRe(t,J_,this),{getComputedStyle:n}=e.ownerDocument.defaultView,a=_Re(e.ownerDocument,r),o=n(e);return{pass:wRe(a,o),message:()=>{const i=`${this.isNot?".not":""}.toHaveStyle`;return[this.utils.matcherHint(i,"element",""),CRe(this.utils.diff,a,o)].join(`
|
|
228
|
-
|
|
229
|
-
`)}}}function FL(e){return rt(e,FL,this),{pass:e.ownerDocument.activeElement===e,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toHaveFocus`,"element",""),"",...this.isNot?["Received element is focused:",` ${this.utils.printReceived(e)}`]:["Expected element with focus:",` ${this.utils.printExpected(e)}`,"Received element with focus:",` ${this.utils.printReceived(e.ownerDocument.activeElement)}`]].join(`
|
|
230
|
-
`)}}function RRe(e){const t=wve(e.map(r=>r.type));if(t.length!==1)throw new Error("Multiple form elements with the same name must be of the same type");switch(t[0]){case"radio":{const r=e.find(n=>n.checked);return r?r.value:void 0}case"checkbox":return e.filter(r=>r.checked).map(r=>r.value);default:return e.map(r=>r.value)}}function SRe(e,t){const r=[...e.querySelectorAll(`[name="${Rve(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return AL(r[0]);default:return RRe(r)}}function TRe(e){return/\[\]$/.test(e)?e.slice(0,-2):e}function xRe(e){return Array.from(e.elements).map(r=>r.name).reduce((r,n)=>({...r,[TRe(n)]:SRe(e,n)}),{})}function jL(e,t){if(rt(e,jL,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");const r=xRe(e);return{pass:Object.entries(t).every(([n,a])=>mL(r[n],a,$L)),message:()=>{const n=this.isNot?"not to":"to",a=`${this.isNot?".not":""}.toHaveFormValues`,o=Object.keys(r).filter(i=>t.hasOwnProperty(i)).reduce((i,s)=>({...i,[s]:r[s]}),{});return[this.utils.matcherHint(a,"element",""),`Expected the element ${n} have form values`,this.utils.diff(t,o)].join(`
|
|
231
|
-
|
|
232
|
-
`)}}}function PRe(e){const{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n,opacity:a}=t(e);return r!=="none"&&n!=="hidden"&&n!=="collapse"&&a!=="0"&&a!==0}function ORe(e,t){let r;return t?r=e.nodeName==="DETAILS"&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0:r=e.nodeName==="DETAILS"?e.hasAttribute("open"):!0,!e.hasAttribute("hidden")&&r}function UL(e,t){return PRe(e)&&ORe(e,t)&&(!e.parentElement||UL(e.parentElement,e))}function HL(e){rt(e,HL,this);const t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&UL(e);return{pass:r,message:()=>{const n=r?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeVisible`,"element",""),"",`Received element ${n} visible${t?"":" (element is not in the document)"}:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
233
|
-
`)}}}const ARe=["fieldset","input","select","optgroup","option","button","textarea"];function $Re(e,t){return io(e)==="legend"&&io(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>io(r)==="legend"))}function IRe(e,t){return VL(t)&&!$Re(e,t)}function NRe(e){return e.includes("-")}function GL(e){const t=io(e);return ARe.includes(t)||NRe(t)}function VL(e){return GL(e)&&e.hasAttribute("disabled")}function WL(e){const t=e.parentElement;return!!t&&(IRe(e,t)||WL(t))}function zL(e){return GL(e)&&(VL(e)||WL(e))}function QL(e){rt(e,QL,this);const t=zL(e);return{pass:t,message:()=>{const r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeDisabled`,"element",""),"",`Received element ${r} disabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
234
|
-
`)}}}function KL(e){rt(e,KL,this);const t=!zL(e);return{pass:t,message:()=>{const r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEnabled`,"element",""),"",`Received element ${r} enabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
235
|
-
`)}}}const MRe=["select","textarea"],qRe=["input","select","textarea"],kRe=["color","hidden","range","submit","image","reset"],LRe=["combobox","gridcell","radiogroup","spinbutton","tree"];function DRe(e){return MRe.includes(io(e))&&e.hasAttribute("required")}function BRe(e){return io(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!kRe.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}function FRe(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(qRe.includes(io(e))||e.hasAttribute("role")&&LRe.includes(e.getAttribute("role")))}function YL(e){rt(e,YL,this);const t=DRe(e)||BRe(e)||FRe(e);return{pass:t,message:()=>{const r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeRequired`,"element",""),"",`Received element ${r} required:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
236
|
-
`)}}}const jRe=["form","input","select","textarea"];function URe(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}function HRe(e){return jRe.includes(io(e))}function XL(e){const t=URe(e);return HRe(e)?t||!e.checkValidity():t}function JL(e){rt(e,JL,this);const t=XL(e);return{pass:t,message:()=>{const r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInvalid`,"element",""),"",`Received element ${r} currently invalid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
237
|
-
`)}}}function ZL(e){rt(e,ZL,this);const t=!XL(e);return{pass:t,message:()=>{const r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeValid`,"element",""),"",`Received element ${r} currently valid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
238
|
-
`)}}}function eD(e,t){if(rt(e,eD,this),e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type))throw new Error("input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead");const r=AL(e),n=t!==void 0;let a=t,o=r;return t==r&&t!==r&&(a=`${t} (${typeof t})`,o=`${r} (${typeof r})`),{pass:n?mL(r,t,$L):!!r,message:()=>{const i=this.isNot?"not to":"to",s=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return pr(this,s,`Expected the element ${i} have value`,n?a:"(any)","Received",o)}}}function tD(e,t){rt(e,tD,this);const r=e.tagName.toLowerCase();if(!["select","input","textarea"].includes(r))throw new Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");if(r==="input"&&["radio","checkbox"].includes(e.type))throw new Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);const n=GRe(r,e),a=VRe(t),o=a.filter(l=>n.some(u=>l instanceof RegExp?l.test(u):this.equals(u,String(l)))).length,i=o===n.length,s=o===a.length;return{pass:i&&s,message:()=>pr(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",n)}}function GRe(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}function VRe(e){return e instanceof Array?e:[e]}function rD(e){rt(e,rD,this);const t=()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),r=()=>nD(e.getAttribute("role"))&&["true","false"].includes(e.getAttribute("aria-checked"));if(!t()&&!r())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${WRe()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};const n=()=>t()?e.checked:e.getAttribute("aria-checked")==="true";return{pass:n(),message:()=>{const a=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Received element ${a} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
239
|
-
`)}}}function WRe(){return mRe(zRe().map(e=>`role="${e}"`),{lastWordConnector:" or "})}function zRe(){return MC.keys().filter(nD)}function nD(e){var t;return((t=MC.get(e))==null?void 0:t.props["aria-checked"])!==void 0}function aD(e){rt(e,aD,this);const t=()=>e.tagName.toLowerCase()==="input"&&e.type==="checkbox",r=()=>e.getAttribute("role")==="checkbox";if(!t()&&!r())return{pass:!1,message:()=>'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead'};const n=()=>{const a=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||a};return{pass:n(),message:()=>{const a=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Received element ${a} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
240
|
-
`)}}}function oD(e,t){Zy("toHaveDescription","Please use toHaveAccessibleDescription."),rt(e,oD,this);const r=t!==void 0,a=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean);let o="";if(a.length>0){const i=e.ownerDocument,s=a.map(l=>i.getElementById(l)).filter(Boolean);o=eg(s.map(l=>l.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{const i=this.isNot?"not to":"to";return pr(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${i} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}function iD(e,t){if(Zy("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),rt(e,iD,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){const i=this.isNot?".not":"";return{pass:!1,message:()=>pr(this,this.utils.matcherHint(`${i}.toHaveErrorMessage`,"element",""),"Expected the element to have invalid state indicated by",'aria-invalid="true"',"Received",e.hasAttribute("aria-invalid")?`aria-invalid="${e.getAttribute("aria-invalid")}"`:this.utils.printReceived(""))}}const r=t!==void 0,a=(e.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean);let o="";if(a.length>0){const i=e.ownerDocument,s=a.map(l=>i.getElementById(l)).filter(Boolean);o=eg(s.map(l=>l.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{const i=this.isNot?"not to":"to";return pr(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${i} have error message`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}var QRe=Object.freeze({__proto__:null,toBeChecked:rD,toBeDisabled:QL,toBeEmpty:NL,toBeEmptyDOMElement:ML,toBeEnabled:KL,toBeInTheDOM:Q_,toBeInTheDocument:IL,toBeInvalid:JL,toBePartiallyChecked:aD,toBeRequired:YL,toBeValid:ZL,toBeVisible:HL,toContainElement:K_,toContainHTML:qL,toHaveAccessibleDescription:Y_,toHaveAccessibleErrorMessage:LL,toHaveAccessibleName:X_,toHaveAttribute:DL,toHaveClass:BL,toHaveDescription:oD,toHaveDisplayValue:tD,toHaveErrorMessage:iD,toHaveFocus:FL,toHaveFormValues:jL,toHaveStyle:J_,toHaveTextContent:kL,toHaveValue:eD});expect.extend(QRe);const KRe=({user:e,messages:t}={})=>({children:r})=>P.jsx(aN,{user:e||{isLoading:!1},children:P.jsx(nN,{locale:"en",messages:t,children:r})}),sD=(e,t)=>u2(e,{wrapper:KRe(t),...t}),YRe=(e,t)=>{const r=sD(e,t);return{user:Ble.setup(),...r}};exports.$PROXY=ru;exports.$TRACK=Mw;exports.ASSETS_BUCKET=cd;exports.ActivitiesFeed=yW;exports.ActivitySection=CW;exports.AddPost=zw;exports.Breadcrumbs=P8;exports.Button=Tt;exports.ButtonWrapper=Du;exports.CollapsibleSection=Pw;exports.Columns=$8;exports.CommunityDetails=x8;exports.Contributors=rN;exports.Conversation=iW;exports.ConversationContext=Qw;exports.CookieBanner=kN;exports.Divider=ud;exports.DownloadSection=_4;exports.Dynamic=w8;exports.EmailHelperTextBox=I8;exports.EmptyStateBox=ju;exports.Filters=O8;exports.Footer=Fw;exports.For=QG;exports.Form=Ww;exports.FullWidthSection=Tw;exports.Header=Vw;exports.HelperTextBox=KI;exports.HiddenFromScreenReaders=Z_;exports.HideShowTextBox=I6;exports.HighlightedTextBoxWrapper=ia;exports.Index=KG;exports.IntlProvider=nN;exports.JoinButton=Dw;exports.Likes=XN;exports.Link=af;exports.LoadMore=MN;exports.LoadingPlaceholder=On;exports.LoadingState=eN;exports.Logo=Bw;exports.LogoSection=w4;exports.MarkdownText=TE;exports.MarketingBlock=T4;exports.Match=JG;exports.Member=uf;exports.MembersList=UV;exports.Modal=JN;exports.MoreMenu=qN;exports.NUMBER_OF_USERS=P4;exports.Overlay=ZN;exports.PageLayout=BV;exports.Pill=XI;exports.Portal=_8;exports.Post=vf;exports.ProfilePicture=lf;exports.ProgressBar=JI;exports.Rating=k8;exports.ReactQueryProvider=T8;exports.RepliesFeed=tM;exports.ResponsesHeading=dW;exports.ResponsiveImage=Y$;exports.SearchForm=FN;exports.Show=YG;exports.Span=YI;exports.StatusBanner=dd;exports.Switch=XG;exports.Tags=jV;exports.Thread=fW;exports.Tooltip=xI;exports.UserContext=da;exports.UserProvider=aN;exports.VisuallyHidden=Kt;exports.act=oi;exports.addAriaProps=eM;exports.addEventListener=$N;exports.bannerSection=S4;exports.batch=PG;exports.buildQueries=ma;exports.children=kw;exports.className=AN;exports.cleanup=T_;exports.configure=Jq;exports.createComponent=SN;exports.createComputed=FE;exports.createContext=qG;exports.createEffect=qw;exports.createEvent=Jc;exports.createMemo=hr;exports.createRenderEffect=Xa;exports.createRoot=Ya;exports.createSignal=dr;exports.createUniqueId=zG;exports.customRender=sD;exports.delegateEvents=ON;exports.findAllByAltText=Bk;exports.findAllByDisplayValue=Nk;exports.findAllByLabelText=fk;exports.findAllByPlaceholderText=_k;exports.findAllByRole=Jk;exports.findAllByTestId=a2;exports.findAllByText=xk;exports.findAllByTitle=Vk;exports.findByAltText=Fk;exports.findByDisplayValue=Mk;exports.findByLabelText=pk;exports.findByPlaceholderText=wk;exports.findByRole=Zk;exports.findByTestId=o2;exports.findByText=Pk;exports.findByTitle=Wk;exports.fireEvent=pt;exports.getAllByAltText=Lk;exports.getAllByDisplayValue=$k;exports.getAllByLabelTextWithSuggestions=hk;exports.getAllByPlaceholderText=bk;exports.getAllByRole=Yk;exports.getAllByTestId=r2;exports.getAllByText=Sk;exports.getAllByTitle=Hk;exports.getByAltText=Dk;exports.getByDisplayValue=Ik;exports.getByLabelTextWithSuggestions=mk;exports.getByPlaceholderText=Ek;exports.getByRole=Xk;exports.getByTestId=n2;exports.getByText=Tk;exports.getByTitle=Gk;exports.getConfig=He;exports.getDefaultNormalizer=fC;exports.getElementError=am;exports.getListener=$G;exports.getMember=$w;exports.getMultipleElementsFoundError=om;exports.getNodeText=Gu;exports.getQueriesForElement=yC;exports.getRoles=ok;exports.getSuggestedQuery=Ld;exports.headerData=ou;exports.index=rz;exports.insert=Ed;exports.isInaccessible=nm;exports.loadingBlock=U6;exports.logDOM=v_;exports.logRoles=poe;exports.makeFindQuery=Rs;exports.makeGetAllQuery=mC;exports.makeSingleQuery=Cs;exports.mapGetSteamData=RW;exports.mergeProps=TN;exports.on=OG;exports.onCleanup=nu;exports.onMount=AG;exports.passwordRules=q8;exports.prettyDOM=ri;exports.queries=Dd;exports.queryAllByAltTextWithSuggestions=qk;exports.queryAllByAttribute=mi;exports.queryAllByDisplayValueWithSuggestions=Ok;exports.queryAllByLabelTextWithSuggestions=vk;exports.queryAllByPlaceholderTextWithSuggestions=yk;exports.queryAllByRoleWithSuggestions=Qk;exports.queryAllByTestIdWithSuggestions=e2;exports.queryAllByTextWithSuggestions=Ck;exports.queryAllByTitleWithSuggestions=jk;exports.queryByAltText=kk;exports.queryByAttribute=sk;exports.queryByDisplayValue=Ak;exports.queryByLabelText=ck;exports.queryByPlaceholderText=gk;exports.queryByRole=Kk;exports.queryByTestId=t2;exports.queryByText=Rk;exports.queryByTitle=Uk;exports.queryHelpers=xoe;exports.renderHook=hie;exports.screen=tie;exports.setAttribute=bd;exports.setup=YRe;exports.splitProps=xN;exports.spread=IN;exports.template=c8;exports.untrack=qt;exports.use=h8;exports.useContext=kG;exports.useEffectAfterMount=Jo;exports.useFeatureFlag=D3;exports.useScreenWidth=Lu;exports.useScrollListener=D$;exports.useScrollToHash=F3;exports.useTransition=MG;exports.waitForElementToBeRemoved=Qoe;exports.waitForWrapper=hC;exports.wrapAllByQueryWithSuggestion=wr;exports.wrapSingleQueryWithSuggestion=oo;
|