@apolitical/component-library 1.5.0 → 1.6.0

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.
Files changed (37) hide show
  1. package/communities/community-details/community-details.d.ts +11 -1
  2. package/communities/index.d.ts +1 -0
  3. package/communities/join-button/join-button.d.ts +3 -1
  4. package/communities/members-list/index.d.ts +1 -0
  5. package/communities/members-list/members-list.d.ts +23 -0
  6. package/discussion/likes/likes.d.ts +16 -6
  7. package/discussion/likes/likes.helpers.d.ts +2 -0
  8. package/discussion/post/post.d.ts +6 -3
  9. package/general/index.d.ts +1 -0
  10. package/general/link/link.d.ts +1 -1
  11. package/general/tooltip/index.d.ts +1 -0
  12. package/general/tooltip/tooltip.d.ts +11 -0
  13. package/helpers/index.d.ts +1 -0
  14. package/helpers/numbers.d.ts +1 -0
  15. package/hooks/index.d.ts +1 -0
  16. package/hooks/use-scroll-to-hash.d.ts +2 -0
  17. package/index.js +48 -48
  18. package/index.mjs +6885 -6734
  19. package/navigation/breadcrumbs/breadcrumbs.d.ts +16 -0
  20. package/navigation/breadcrumbs/index.d.ts +1 -0
  21. package/navigation/index.d.ts +1 -0
  22. package/navigation/load-more/index.d.ts +1 -0
  23. package/navigation/load-more/load-more.d.ts +7 -5
  24. package/package.json +1 -1
  25. package/style.css +1 -1
  26. package/styles/base/_links.scss +4 -1
  27. package/styles/base/_titles.scss +16 -0
  28. package/styles/base/buttons/_buttons.scss +52 -1
  29. package/styles/base/buttons/_icons.scss +1 -0
  30. package/styles/base/buttons/_sizes.scss +1 -0
  31. package/styles/variables/colors/_theme.scss +18 -2
  32. package/text/empty-state-box/empty-state-box.d.ts +3 -1
  33. package/text/pill/pill.d.ts +5 -1
  34. package/user/contributors/contributors.d.ts +5 -2
  35. package/user/contributors/contributors.mock.d.ts +8 -5
  36. package/user/member/index.d.ts +1 -1
  37. package/user/member/member.d.ts +15 -3
package/index.js CHANGED
@@ -1,101 +1,101 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react"),O=require("react/jsx-runtime");function bg(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const xe=bg($);var ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zi(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Ad={exports:{}};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("react"),O=require("react/jsx-runtime");function Og(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Oe=Og(D);var ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yi(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Nd={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var s=typeof i;if(s==="string"||s==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&r.push(a)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ad);var wg=Ad.exports;const se=jt(wg),Sg=({element:e="span",showOnFocus:t=!0,children:n,...r})=>$.createElement(e,{...r,className:se("hidden",{"show-on-focus":t}),children:n}),ot=$.memo(Sg),Tg=({element:e="span",children:t=null,...n})=>$.createElement(e,{...n,"aria-hidden":!0},t),Tc=$.memo(Tg),Hi=(e,t)=>{const n=$.useRef(!1);$.useEffect(()=>{n.current?e():n.current=!0},t)};/*!
5
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var s=typeof i;if(s==="string"||s==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&r.push(a)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var u in i)t.call(i,u)&&i[u]&&r.push(u)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Nd);var Ag=Nd.exports;const ne=jt(Ag),Cg=({element:e="span",showOnFocus:t=!0,children:n,...r})=>D.createElement(e,{...r,className:ne("hidden",{"show-on-focus":t}),children:n}),Je=D.memo(Cg),Rg=({element:e="span",children:t=null,...n})=>D.createElement(e,{...n,"aria-hidden":!0},t),Cc=D.memo(Rg),Jr=(e,t)=>{const n=D.useRef(!1);D.useEffect(()=>{n.current?e():n.current=!0},t)};/*!
6
6
  * cookie
7
7
  * Copyright(c) 2012-2014 Roman Shtylman
8
8
  * Copyright(c) 2015 Douglas Christopher Wilson
9
9
  * MIT Licensed
10
- */var Cd=Og,cu=Ag,xg=Object.prototype.toString,no=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Og(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},o=r.decode||Cg,i=0;i<e.length;){var s=e.indexOf("=",i);if(s===-1)break;var a=e.indexOf(";",i);if(a===-1)a=e.length;else if(a<s){i=e.lastIndexOf(";",s-1)+1;continue}var l=e.slice(i,s).trim();if(n[l]===void 0){var f=e.slice(s+1,a).trim();f.charCodeAt(0)===34&&(f=f.slice(1,-1)),n[l]=Pg(f,o)}i=a+1}return n}function Ag(e,t,n){var r=n||{},o=r.encode||Rg;if(typeof o!="function")throw new TypeError("option encode is invalid");if(!no.test(e))throw new TypeError("argument name is invalid");var i=o(t);if(i&&!no.test(i))throw new TypeError("argument val is invalid");var s=e+"="+i;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(a)}if(r.domain){if(!no.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!no.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){var l=r.expires;if(!Ng(l)||isNaN(l.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+l.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.priority){var f=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(f){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var c=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(c){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function Cg(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function Rg(e){return encodeURIComponent(e)}function Ng(e){return xg.call(e)==="[object Date]"||e instanceof Date}function Pg(e,t){try{return t(e)}catch{return e}}function Ig(){return typeof document=="object"&&typeof document.cookie=="string"}function Lg(e){return typeof e=="string"?Cd(e):typeof e=="object"&&e!==null?e:{}}function ca(e,t={}){const n=kg(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function kg(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class Rd{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const o=this.cookies;this.cookies=Cd(document.cookie),this._checkChanges(o)};const r=typeof document>"u"?"":document.cookie;this.cookies=Lg(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=Ig()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:ca(t[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),ca(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=ca(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const o=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:o}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=cu(t,o,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign({},n),{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=cu(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}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 n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const Nd=xe.createContext(new Rd),{Provider:Mg,Consumer:NO}=Nd,Bg=Nd;class Fg extends xe.Component{constructor(t){super(t),t.cookies?this.cookies=t.cookies:this.cookies=new Rd(void 0,t.defaultSetOptions)}render(){return xe.createElement(Mg,{value:this.cookies},this.props.children)}}var zs={exports:{}},Ae={};/** @license React v16.13.1
10
+ */var Pd=Pg,du=Ig,Ng=Object.prototype.toString,io=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Pg(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},o=r.decode||Lg,i=0;i<e.length;){var s=e.indexOf("=",i);if(s===-1)break;var a=e.indexOf(";",i);if(a===-1)a=e.length;else if(a<s){i=e.lastIndexOf(";",s-1)+1;continue}var u=e.slice(i,s).trim();if(n[u]===void 0){var f=e.slice(s+1,a).trim();f.charCodeAt(0)===34&&(f=f.slice(1,-1)),n[u]=Bg(f,o)}i=a+1}return n}function Ig(e,t,n){var r=n||{},o=r.encode||Mg;if(typeof o!="function")throw new TypeError("option encode is invalid");if(!io.test(e))throw new TypeError("argument name is invalid");var i=o(t);if(i&&!io.test(i))throw new TypeError("argument val is invalid");var s=e+"="+i;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(a)}if(r.domain){if(!io.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!io.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){var u=r.expires;if(!kg(u)||isNaN(u.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+u.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.priority){var f=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(f){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var c=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(c){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function Lg(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function Mg(e){return encodeURIComponent(e)}function kg(e){return Ng.call(e)==="[object Date]"||e instanceof Date}function Bg(e,t){try{return t(e)}catch{return e}}function Fg(){return typeof document=="object"&&typeof document.cookie=="string"}function Ug(e){return typeof e=="string"?Pd(e):typeof e=="object"&&e!==null?e:{}}function la(e,t={}){const n=Dg(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function Dg(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class Id{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const o=this.cookies;this.cookies=Pd(document.cookie),this._checkChanges(o)};const r=typeof document>"u"?"":document.cookie;this.cookies=Ug(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=Fg()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:la(t[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),la(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=la(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const o=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:o}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=du(t,o,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign({},n),{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=du(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}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 n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const Ld=Oe.createContext(new Id),{Provider:$g,Consumer:DO}=Ld,jg=Ld;class Hg extends Oe.Component{constructor(t){super(t),t.cookies?this.cookies=t.cookies:this.cookies=new Id(void 0,t.defaultSetOptions)}render(){return Oe.createElement($g,{value:this.cookies},this.props.children)}}var Xs={exports:{}},Ce={};/** @license React v16.13.1
11
11
  * react-is.production.min.js
12
12
  *
13
13
  * Copyright (c) Facebook, Inc. and its affiliates.
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var uu;function Ug(){if(uu)return Ae;uu=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,u=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function b(w){if(typeof w=="object"&&w!==null){var P=w.$$typeof;switch(P){case t:switch(w=w.type,w){case l:case f:case r:case i:case o:case h:return w;default:switch(w=w&&w.$$typeof,w){case a:case c:case p:case u:case s:return w;default:return P}}case n:return P}}}function A(w){return b(w)===f}return Ae.AsyncMode=l,Ae.ConcurrentMode=f,Ae.ContextConsumer=a,Ae.ContextProvider=s,Ae.Element=t,Ae.ForwardRef=c,Ae.Fragment=r,Ae.Lazy=p,Ae.Memo=u,Ae.Portal=n,Ae.Profiler=i,Ae.StrictMode=o,Ae.Suspense=h,Ae.isAsyncMode=function(w){return A(w)||b(w)===l},Ae.isConcurrentMode=A,Ae.isContextConsumer=function(w){return b(w)===a},Ae.isContextProvider=function(w){return b(w)===s},Ae.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ae.isForwardRef=function(w){return b(w)===c},Ae.isFragment=function(w){return b(w)===r},Ae.isLazy=function(w){return b(w)===p},Ae.isMemo=function(w){return b(w)===u},Ae.isPortal=function(w){return b(w)===n},Ae.isProfiler=function(w){return b(w)===i},Ae.isStrictMode=function(w){return b(w)===o},Ae.isSuspense=function(w){return b(w)===h},Ae.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===f||w===i||w===o||w===h||w===d||typeof w=="object"&&w!==null&&(w.$$typeof===p||w.$$typeof===u||w.$$typeof===s||w.$$typeof===a||w.$$typeof===c||w.$$typeof===E||w.$$typeof===T||w.$$typeof===_||w.$$typeof===m)},Ae.typeOf=b,Ae}var Ce={};/** @license React v16.13.1
17
+ */var hu;function qg(){if(hu)return Ce;hu=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,l=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function b(w){if(typeof w=="object"&&w!==null){var N=w.$$typeof;switch(N){case t:switch(w=w.type,w){case u:case f:case r:case i:case o:case h:return w;default:switch(w=w&&w.$$typeof,w){case a:case c:case p:case l:case s:return w;default:return N}}case n:return N}}}function A(w){return b(w)===f}return Ce.AsyncMode=u,Ce.ConcurrentMode=f,Ce.ContextConsumer=a,Ce.ContextProvider=s,Ce.Element=t,Ce.ForwardRef=c,Ce.Fragment=r,Ce.Lazy=p,Ce.Memo=l,Ce.Portal=n,Ce.Profiler=i,Ce.StrictMode=o,Ce.Suspense=h,Ce.isAsyncMode=function(w){return A(w)||b(w)===u},Ce.isConcurrentMode=A,Ce.isContextConsumer=function(w){return b(w)===a},Ce.isContextProvider=function(w){return b(w)===s},Ce.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ce.isForwardRef=function(w){return b(w)===c},Ce.isFragment=function(w){return b(w)===r},Ce.isLazy=function(w){return b(w)===p},Ce.isMemo=function(w){return b(w)===l},Ce.isPortal=function(w){return b(w)===n},Ce.isProfiler=function(w){return b(w)===i},Ce.isStrictMode=function(w){return b(w)===o},Ce.isSuspense=function(w){return b(w)===h},Ce.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===f||w===i||w===o||w===h||w===d||typeof w=="object"&&w!==null&&(w.$$typeof===p||w.$$typeof===l||w.$$typeof===s||w.$$typeof===a||w.$$typeof===c||w.$$typeof===E||w.$$typeof===T||w.$$typeof===_||w.$$typeof===m)},Ce.typeOf=b,Ce}var Re={};/** @license React v16.13.1
18
18
  * react-is.development.js
19
19
  *
20
20
  * Copyright (c) Facebook, Inc. and its affiliates.
21
21
  *
22
22
  * This source code is licensed under the MIT license found in the
23
23
  * LICENSE file in the root directory of this source tree.
24
- */var lu;function Dg(){return lu||(lu=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,u=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function b(te){return typeof te=="string"||typeof te=="function"||te===r||te===f||te===i||te===o||te===h||te===d||typeof te=="object"&&te!==null&&(te.$$typeof===p||te.$$typeof===u||te.$$typeof===s||te.$$typeof===a||te.$$typeof===c||te.$$typeof===E||te.$$typeof===T||te.$$typeof===_||te.$$typeof===m)}function A(te){if(typeof te=="object"&&te!==null){var Ye=te.$$typeof;switch(Ye){case t:var $e=te.type;switch($e){case l:case f:case r:case i:case o:case h:return $e;default:var bt=$e&&$e.$$typeof;switch(bt){case a:case c:case p:case u:case s:return bt;default:return Ye}}case n:return Ye}}}var w=l,P=f,F=a,B=s,W=t,G=c,V=r,H=p,Y=u,oe=n,K=i,k=o,z=h,J=!1;function ae(te){return J||(J=!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.")),Q(te)||A(te)===l}function Q(te){return A(te)===f}function Z(te){return A(te)===a}function ce(te){return A(te)===s}function le(te){return typeof te=="object"&&te!==null&&te.$$typeof===t}function ze(te){return A(te)===c}function X(te){return A(te)===r}function re(te){return A(te)===p}function Pe(te){return A(te)===u}function Oe(te){return A(te)===n}function st(te){return A(te)===i}function ut(te){return A(te)===o}function Et(te){return A(te)===h}Ce.AsyncMode=w,Ce.ConcurrentMode=P,Ce.ContextConsumer=F,Ce.ContextProvider=B,Ce.Element=W,Ce.ForwardRef=G,Ce.Fragment=V,Ce.Lazy=H,Ce.Memo=Y,Ce.Portal=oe,Ce.Profiler=K,Ce.StrictMode=k,Ce.Suspense=z,Ce.isAsyncMode=ae,Ce.isConcurrentMode=Q,Ce.isContextConsumer=Z,Ce.isContextProvider=ce,Ce.isElement=le,Ce.isForwardRef=ze,Ce.isFragment=X,Ce.isLazy=re,Ce.isMemo=Pe,Ce.isPortal=Oe,Ce.isProfiler=st,Ce.isStrictMode=ut,Ce.isSuspense=Et,Ce.isValidElementType=b,Ce.typeOf=A}()),Ce}process.env.NODE_ENV==="production"?zs.exports=Ug():zs.exports=Dg();var $g=zs.exports,Pd=$g,jg={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Hg={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Id={};Id[Pd.ForwardRef]=jg;Id[Pd.Memo]=Hg;function qg(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function Ld(e){const t=$.useContext(Bg);if(!t)throw new Error("Missing <CookiesProvider>");const[n,r]=$.useState(()=>t.getAll());qg()&&$.useLayoutEffect(()=>{function a(){const l=t.getAll({doNotUpdate:!0});Gg(e||null,l,n)&&r(l)}return t.addChangeListener(a),()=>{t.removeChangeListener(a)}},[t,n]);const o=$.useMemo(()=>t.set.bind(t),[t]),i=$.useMemo(()=>t.remove.bind(t),[t]),s=$.useMemo(()=>t.update.bind(t),[t]);return[n,o,i,s]}function Gg(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}var kd={exports:{}},ua={exports:{}},io={},oo={exports:{}},la,fu;function Md(){return fu||(fu=1,la=function(t,n){return function(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];return t.apply(n,o)}}),la}var fa,du;function Je(){if(du)return fa;du=1;var e=Md(),t=Object.prototype.toString,n=function(k){return function(z){var J=t.call(z);return k[J]||(k[J]=J.slice(8,-1).toLowerCase())}}(Object.create(null));function r(k){return k=k.toLowerCase(),function(J){return n(J)===k}}function o(k){return Array.isArray(k)}function i(k){return typeof k>"u"}function s(k){return k!==null&&!i(k)&&k.constructor!==null&&!i(k.constructor)&&typeof k.constructor.isBuffer=="function"&&k.constructor.isBuffer(k)}var a=r("ArrayBuffer");function l(k){var z;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?z=ArrayBuffer.isView(k):z=k&&k.buffer&&a(k.buffer),z}function f(k){return typeof k=="string"}function c(k){return typeof k=="number"}function h(k){return k!==null&&typeof k=="object"}function d(k){if(n(k)!=="object")return!1;var z=Object.getPrototypeOf(k);return z===null||z===Object.prototype}var u=r("Date"),p=r("File"),m=r("Blob"),E=r("FileList");function T(k){return t.call(k)==="[object Function]"}function _(k){return h(k)&&T(k.pipe)}function b(k){var z="[object FormData]";return k&&(typeof FormData=="function"&&k instanceof FormData||t.call(k)===z||T(k.toString)&&k.toString()===z)}var A=r("URLSearchParams");function w(k){return k.trim?k.trim():k.replace(/^\s+|\s+$/g,"")}function P(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function F(k,z){if(!(k===null||typeof k>"u"))if(typeof k!="object"&&(k=[k]),o(k))for(var J=0,ae=k.length;J<ae;J++)z.call(null,k[J],J,k);else for(var Q in k)Object.prototype.hasOwnProperty.call(k,Q)&&z.call(null,k[Q],Q,k)}function B(){var k={};function z(Q,Z){d(k[Z])&&d(Q)?k[Z]=B(k[Z],Q):d(Q)?k[Z]=B({},Q):o(Q)?k[Z]=Q.slice():k[Z]=Q}for(var J=0,ae=arguments.length;J<ae;J++)F(arguments[J],z);return k}function W(k,z,J){return F(z,function(Q,Z){J&&typeof Q=="function"?k[Z]=e(Q,J):k[Z]=Q}),k}function G(k){return k.charCodeAt(0)===65279&&(k=k.slice(1)),k}function V(k,z,J,ae){k.prototype=Object.create(z.prototype,ae),k.prototype.constructor=k,J&&Object.assign(k.prototype,J)}function H(k,z,J){var ae,Q,Z,ce={};z=z||{};do{for(ae=Object.getOwnPropertyNames(k),Q=ae.length;Q-- >0;)Z=ae[Q],ce[Z]||(z[Z]=k[Z],ce[Z]=!0);k=Object.getPrototypeOf(k)}while(k&&(!J||J(k,z))&&k!==Object.prototype);return z}function Y(k,z,J){k=String(k),(J===void 0||J>k.length)&&(J=k.length),J-=z.length;var ae=k.indexOf(z,J);return ae!==-1&&ae===J}function oe(k){if(!k)return null;var z=k.length;if(i(z))return null;for(var J=new Array(z);z-- >0;)J[z]=k[z];return J}var K=function(k){return function(z){return k&&z instanceof k}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return fa={isArray:o,isArrayBuffer:a,isBuffer:s,isFormData:b,isArrayBufferView:l,isString:f,isNumber:c,isObject:h,isPlainObject:d,isUndefined:i,isDate:u,isFile:p,isBlob:m,isFunction:T,isStream:_,isURLSearchParams:A,isStandardBrowserEnv:P,forEach:F,merge:B,extend:W,trim:w,stripBOM:G,inherits:V,toFlatObject:H,kindOf:n,kindOfTest:r,endsWith:Y,toArray:oe,isTypedArray:K,isFileList:E},fa}var da,hu;function Bd(){if(hu)return da;hu=1;var e=Je();function t(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return da=function(r,o,i){if(!o)return r;var s;if(i)s=i(o);else if(e.isURLSearchParams(o))s=o.toString();else{var a=[];e.forEach(o,function(c,h){c===null||typeof c>"u"||(e.isArray(c)?h=h+"[]":c=[c],e.forEach(c,function(u){e.isDate(u)?u=u.toISOString():e.isObject(u)&&(u=JSON.stringify(u)),a.push(t(h)+"="+t(u))}))}),s=a.join("&")}if(s){var l=r.indexOf("#");l!==-1&&(r=r.slice(0,l)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r},da}var ha,pu;function Wg(){if(pu)return ha;pu=1;var e=Je();function t(){this.handlers=[]}return t.prototype.use=function(r,o,i){return this.handlers.push({fulfilled:r,rejected:o,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1},t.prototype.eject=function(r){this.handlers[r]&&(this.handlers[r]=null)},t.prototype.forEach=function(r){e.forEach(this.handlers,function(i){i!==null&&r(i)})},ha=t,ha}var pa,mu;function Vg(){if(mu)return pa;mu=1;var e=Je();return pa=function(n,r){e.forEach(n,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(n[r]=i,delete n[s])})},pa}var ma,gu;function Pn(){if(gu)return ma;gu=1;var e=Je();function t(o,i,s,a,l){Error.call(this),this.message=o,this.name="AxiosError",i&&(this.code=i),s&&(this.config=s),a&&(this.request=a),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 n=t.prototype,r={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(o){r[o]={value:o}}),Object.defineProperties(t,r),Object.defineProperty(n,"isAxiosError",{value:!0}),t.from=function(o,i,s,a,l,f){var c=Object.create(n);return e.toFlatObject(o,c,function(d){return d!==Error.prototype}),t.call(c,o.message,i,s,a,l),c.name=o.name,f&&Object.assign(c,f),c},ma=t,ma}var ga,yu;function Fd(){return yu||(yu=1,ga={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),ga}var ya,vu;function Ud(){if(vu)return ya;vu=1;var e=Je();function t(n,r){r=r||new FormData;var o=[];function i(a){return a===null?"":e.isDate(a)?a.toISOString():e.isArrayBuffer(a)||e.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function s(a,l){if(e.isPlainObject(a)||e.isArray(a)){if(o.indexOf(a)!==-1)throw Error("Circular reference detected in "+l);o.push(a),e.forEach(a,function(c,h){if(!e.isUndefined(c)){var d=l?l+"."+h:h,u;if(c&&!l&&typeof c=="object"){if(e.endsWith(h,"{}"))c=JSON.stringify(c);else if(e.endsWith(h,"[]")&&(u=e.toArray(c))){u.forEach(function(p){!e.isUndefined(p)&&r.append(d,i(p))});return}}s(c,d)}}),o.pop()}else r.append(l,i(a))}return s(n),r}return ya=t,ya}var va,_u;function zg(){if(_u)return va;_u=1;var e=Pn();return va=function(n,r,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?n(o):r(new e("Request failed with status code "+o.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))},va}var _a,Eu;function Yg(){if(Eu)return _a;Eu=1;var e=Je();return _a=e.isStandardBrowserEnv()?function(){return{write:function(r,o,i,s,a,l){var f=[];f.push(r+"="+encodeURIComponent(o)),e.isNumber(i)&&f.push("expires="+new Date(i).toGMTString()),e.isString(s)&&f.push("path="+s),e.isString(a)&&f.push("domain="+a),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),_a}var Ea,bu;function Kg(){return bu||(bu=1,Ea=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Ea}var ba,wu;function Qg(){return wu||(wu=1,ba=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),ba}var wa,Su;function Dd(){if(Su)return wa;Su=1;var e=Kg(),t=Qg();return wa=function(r,o){return r&&!e(o)?t(r,o):o},wa}var Sa,Tu;function Xg(){if(Tu)return Sa;Tu=1;var e=Je(),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 Sa=function(r){var o={},i,s,a;return r&&e.forEach(r.split(`
25
- `),function(f){if(a=f.indexOf(":"),i=e.trim(f.substr(0,a)).toLowerCase(),s=e.trim(f.substr(a+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([s]):o[i]=o[i]?o[i]+", "+s:s}}),o},Sa}var Ta,xu;function Jg(){if(xu)return Ta;xu=1;var e=Je();return Ta=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function i(s){var a=s;return n&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=i(window.location.href),function(a){var l=e.isString(a)?i(a):a;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),Ta}var xa,Ou;function Ko(){if(Ou)return xa;Ou=1;var e=Pn(),t=Je();function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),xa=n,xa}var Oa,Au;function Zg(){return Au||(Au=1,Oa=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),Oa}var Aa,Cu;function Ru(){if(Cu)return Aa;Cu=1;var e=Je(),t=zg(),n=Yg(),r=Bd(),o=Dd(),i=Xg(),s=Jg(),a=Fd(),l=Pn(),f=Ko(),c=Zg();return Aa=function(d){return new Promise(function(p,m){var E=d.data,T=d.headers,_=d.responseType,b;function A(){d.cancelToken&&d.cancelToken.unsubscribe(b),d.signal&&d.signal.removeEventListener("abort",b)}e.isFormData(E)&&e.isStandardBrowserEnv()&&delete T["Content-Type"];var w=new XMLHttpRequest;if(d.auth){var P=d.auth.username||"",F=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";T.Authorization="Basic "+btoa(P+":"+F)}var B=o(d.baseURL,d.url);w.open(d.method.toUpperCase(),r(B,d.params,d.paramsSerializer),!0),w.timeout=d.timeout;function W(){if(w){var H="getAllResponseHeaders"in w?i(w.getAllResponseHeaders()):null,Y=!_||_==="text"||_==="json"?w.responseText:w.response,oe={data:Y,status:w.status,statusText:w.statusText,headers:H,config:d,request:w};t(function(k){p(k),A()},function(k){m(k),A()},oe),w=null}}if("onloadend"in w?w.onloadend=W:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(W)},w.onabort=function(){w&&(m(new l("Request aborted",l.ECONNABORTED,d,w)),w=null)},w.onerror=function(){m(new l("Network Error",l.ERR_NETWORK,d,w,w)),w=null},w.ontimeout=function(){var Y=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",oe=d.transitional||a;d.timeoutErrorMessage&&(Y=d.timeoutErrorMessage),m(new l(Y,oe.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,d,w)),w=null},e.isStandardBrowserEnv()){var G=(d.withCredentials||s(B))&&d.xsrfCookieName?n.read(d.xsrfCookieName):void 0;G&&(T[d.xsrfHeaderName]=G)}"setRequestHeader"in w&&e.forEach(T,function(Y,oe){typeof E>"u"&&oe.toLowerCase()==="content-type"?delete T[oe]:w.setRequestHeader(oe,Y)}),e.isUndefined(d.withCredentials)||(w.withCredentials=!!d.withCredentials),_&&_!=="json"&&(w.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&w.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(b=function(H){w&&(m(!H||H&&H.type?new f:H),w.abort(),w=null)},d.cancelToken&&d.cancelToken.subscribe(b),d.signal&&(d.signal.aborted?b():d.signal.addEventListener("abort",b))),E||(E=null);var V=c(B);if(V&&["http","https","file"].indexOf(V)===-1){m(new l("Unsupported protocol "+V+":",l.ERR_BAD_REQUEST,d));return}w.send(E)})},Aa}var Ca,Nu;function ey(){return Nu||(Nu=1,Ca=null),Ca}var Ra,Pu;function xc(){if(Pu)return Ra;Pu=1;var e=Je(),t=Vg(),n=Pn(),r=Fd(),o=Ud(),i={"Content-Type":"application/x-www-form-urlencoded"};function s(c,h){!e.isUndefined(c)&&e.isUndefined(c["Content-Type"])&&(c["Content-Type"]=h)}function a(){var c;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(c=Ru()),c}function l(c,h,d){if(e.isString(c))try{return(h||JSON.parse)(c),e.trim(c)}catch(u){if(u.name!=="SyntaxError")throw u}return(d||JSON.stringify)(c)}var f={transitional:r,adapter:a(),transformRequest:[function(h,d){if(t(d,"Accept"),t(d,"Content-Type"),e.isFormData(h)||e.isArrayBuffer(h)||e.isBuffer(h)||e.isStream(h)||e.isFile(h)||e.isBlob(h))return h;if(e.isArrayBufferView(h))return h.buffer;if(e.isURLSearchParams(h))return s(d,"application/x-www-form-urlencoded;charset=utf-8"),h.toString();var u=e.isObject(h),p=d&&d["Content-Type"],m;if((m=e.isFileList(h))||u&&p==="multipart/form-data"){var E=this.env&&this.env.FormData;return o(m?{"files[]":h}:h,E&&new E)}else if(u||p==="application/json")return s(d,"application/json"),l(h);return h}],transformResponse:[function(h){var d=this.transitional||f.transitional,u=d&&d.silentJSONParsing,p=d&&d.forcedJSONParsing,m=!u&&this.responseType==="json";if(m||p&&e.isString(h)&&h.length)try{return JSON.parse(h)}catch(E){if(m)throw E.name==="SyntaxError"?n.from(E,n.ERR_BAD_RESPONSE,this,null,this.response):E}return h}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ey()},validateStatus:function(h){return h>=200&&h<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(h){f.headers[h]={}}),e.forEach(["post","put","patch"],function(h){f.headers[h]=e.merge(i)}),Ra=f,Ra}var Na,Iu;function ty(){if(Iu)return Na;Iu=1;var e=Je(),t=xc();return Na=function(r,o,i){var s=this||t;return e.forEach(i,function(l){r=l.call(s,r,o)}),r},Na}var Pa,Lu;function $d(){return Lu||(Lu=1,Pa=function(t){return!!(t&&t.__CANCEL__)}),Pa}var Ia,ku;function ry(){if(ku)return Ia;ku=1;var e=Je(),t=ty(),n=$d(),r=xc(),o=Ko();function i(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new o}return Ia=function(a){i(a),a.headers=a.headers||{},a.data=t.call(a,a.data,a.headers,a.transformRequest),a.headers=e.merge(a.headers.common||{},a.headers[a.method]||{},a.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(c){delete a.headers[c]});var l=a.adapter||r.adapter;return l(a).then(function(c){return i(a),c.data=t.call(a,c.data,c.headers,a.transformResponse),c},function(c){return n(c)||(i(a),c&&c.response&&(c.response.data=t.call(a,c.response.data,c.response.headers,a.transformResponse))),Promise.reject(c)})},Ia}var La,Mu;function jd(){if(Mu)return La;Mu=1;var e=Je();return La=function(n,r){r=r||{};var o={};function i(h,d){return e.isPlainObject(h)&&e.isPlainObject(d)?e.merge(h,d):e.isPlainObject(d)?e.merge({},d):e.isArray(d)?d.slice():d}function s(h){if(e.isUndefined(r[h])){if(!e.isUndefined(n[h]))return i(void 0,n[h])}else return i(n[h],r[h])}function a(h){if(!e.isUndefined(r[h]))return i(void 0,r[h])}function l(h){if(e.isUndefined(r[h])){if(!e.isUndefined(n[h]))return i(void 0,n[h])}else return i(void 0,r[h])}function f(h){if(h in r)return i(n[h],r[h]);if(h in n)return i(void 0,n[h])}var c={url:a,method:a,data:a,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:f};return e.forEach(Object.keys(n).concat(Object.keys(r)),function(d){var u=c[d]||s,p=u(d);e.isUndefined(p)&&u!==f||(o[d]=p)}),o},La}var ka,Bu;function Hd(){return Bu||(Bu=1,ka={version:"0.27.2"}),ka}var Ma,Fu;function ny(){if(Fu)return Ma;Fu=1;var e=Hd().version,t=Pn(),n={};["object","boolean","number","function","string","symbol"].forEach(function(i,s){n[i]=function(l){return typeof l===i||"a"+(s<1?"n ":" ")+i}});var r={};n.transitional=function(s,a,l){function f(c,h){return"[Axios v"+e+"] Transitional option '"+c+"'"+h+(l?". "+l:"")}return function(c,h,d){if(s===!1)throw new t(f(h," has been removed"+(a?" in "+a:"")),t.ERR_DEPRECATED);return a&&!r[h]&&(r[h]=!0,console.warn(f(h," has been deprecated since v"+a+" and will be removed in the near future"))),s?s(c,h,d):!0}};function o(i,s,a){if(typeof i!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var l=Object.keys(i),f=l.length;f-- >0;){var c=l[f],h=s[c];if(h){var d=i[c],u=d===void 0||h(d,c,i);if(u!==!0)throw new t("option "+c+" must be "+u,t.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new t("Unknown option "+c,t.ERR_BAD_OPTION)}}return Ma={assertOptions:o,validators:n},Ma}var Ba,Uu;function iy(){if(Uu)return Ba;Uu=1;var e=Je(),t=Bd(),n=Wg(),r=ry(),o=jd(),i=Dd(),s=ny(),a=s.validators;function l(f){this.defaults=f,this.interceptors={request:new n,response:new n}}return l.prototype.request=function(c,h){typeof c=="string"?(h=h||{},h.url=c):h=c||{},h=o(this.defaults,h),h.method?h.method=h.method.toLowerCase():this.defaults.method?h.method=this.defaults.method.toLowerCase():h.method="get";var d=h.transitional;d!==void 0&&s.assertOptions(d,{silentJSONParsing:a.transitional(a.boolean),forcedJSONParsing:a.transitional(a.boolean),clarifyTimeoutError:a.transitional(a.boolean)},!1);var u=[],p=!0;this.interceptors.request.forEach(function(P){typeof P.runWhen=="function"&&P.runWhen(h)===!1||(p=p&&P.synchronous,u.unshift(P.fulfilled,P.rejected))});var m=[];this.interceptors.response.forEach(function(P){m.push(P.fulfilled,P.rejected)});var E;if(!p){var T=[r,void 0];for(Array.prototype.unshift.apply(T,u),T=T.concat(m),E=Promise.resolve(h);T.length;)E=E.then(T.shift(),T.shift());return E}for(var _=h;u.length;){var b=u.shift(),A=u.shift();try{_=b(_)}catch(w){A(w);break}}try{E=r(_)}catch(w){return Promise.reject(w)}for(;m.length;)E=E.then(m.shift(),m.shift());return E},l.prototype.getUri=function(c){c=o(this.defaults,c);var h=i(c.baseURL,c.url);return t(h,c.params,c.paramsSerializer)},e.forEach(["delete","get","head","options"],function(c){l.prototype[c]=function(h,d){return this.request(o(d||{},{method:c,url:h,data:(d||{}).data}))}}),e.forEach(["post","put","patch"],function(c){function h(d){return function(p,m,E){return this.request(o(E||{},{method:c,headers:d?{"Content-Type":"multipart/form-data"}:{},url:p,data:m}))}}l.prototype[c]=h(),l.prototype[c+"Form"]=h(!0)}),Ba=l,Ba}var Fa,Du;function oy(){if(Du)return Fa;Du=1;var e=Ko();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(s){r=s});var o=this;this.promise.then(function(i){if(o._listeners){var s,a=o._listeners.length;for(s=0;s<a;s++)o._listeners[s](i);o._listeners=null}}),this.promise.then=function(i){var s,a=new Promise(function(l){o.subscribe(l),s=l}).then(i);return a.cancel=function(){o.unsubscribe(s)},a},n(function(s){o.reason||(o.reason=new e(s),r(o.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},t.prototype.unsubscribe=function(r){if(this._listeners){var o=this._listeners.indexOf(r);o!==-1&&this._listeners.splice(o,1)}},t.source=function(){var r,o=new t(function(s){r=s});return{token:o,cancel:r}},Fa=t,Fa}var Ua,$u;function ay(){return $u||($u=1,Ua=function(t){return function(r){return t.apply(null,r)}}),Ua}var Da,ju;function sy(){if(ju)return Da;ju=1;var e=Je();return Da=function(n){return e.isObject(n)&&n.isAxiosError===!0},Da}var Hu;function cy(){if(Hu)return oo.exports;Hu=1;var e=Je(),t=Md(),n=iy(),r=jd(),o=xc();function i(a){var l=new n(a),f=t(n.prototype.request,l);return e.extend(f,n.prototype,l),e.extend(f,l),f.create=function(h){return i(r(a,h))},f}var s=i(o);return s.Axios=n,s.CanceledError=Ko(),s.CancelToken=oy(),s.isCancel=$d(),s.VERSION=Hd().version,s.toFormData=Ud(),s.AxiosError=Pn(),s.Cancel=s.CanceledError,s.all=function(l){return Promise.all(l)},s.spread=ay(),s.isAxiosError=sy(),oo.exports=s,oo.exports.default=s,oo.exports}var $a,qu;function qd(){return qu||(qu=1,$a=cy()),$a}var uy=Function.prototype.toString,ja=Object.create,ly=Object.defineProperty,fy=Object.getOwnPropertyDescriptor,Gu=Object.getOwnPropertyNames,Oc=Object.getOwnPropertySymbols,dy=Object.getPrototypeOf,Gd=Object.prototype,hy=Gd.hasOwnProperty,py=Gd.propertyIsEnumerable,Wd=typeof Oc=="function",my=typeof WeakMap=="function",gy=function(){if(my)return function(){return new WeakMap};var e=function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(n){return!!~this._keys.indexOf(n)},t.prototype.get=function(n){return this._values[this._keys.indexOf(n)]},t.prototype.set=function(n,r){this._keys.push(n),this._values.push(r)},t}();return function(){return new e}}(),Vd=function(e,t){var n=e.__proto__||dy(e);if(!n)return ja(null);var r=n.constructor;if(r===t.Object)return n===t.Object.prototype?{}:ja(n);if(~uy.call(r).indexOf("[native code]"))try{return new r}catch{}return ja(n)},yy=function(e,t,n,r){var o=Vd(e,t);r.set(e,o);for(var i in e)hy.call(e,i)&&(o[i]=n(e[i],r));if(Wd)for(var s=Oc(e),a=0,l=s.length,f=void 0;a<l;++a)f=s[a],py.call(e,f)&&(o[f]=n(e[f],r));return o},Wu=function(e,t,n,r){var o=Vd(e,t);r.set(e,o);for(var i=Wd?Gu(e).concat(Oc(e)):Gu(e),s=0,a=i.length,l=void 0,f=void 0;s<a;++s)if(l=i[s],l!=="callee"&&l!=="caller")if(f=fy(e,l),f){!f.get&&!f.set&&(f.value=n(e[l],r));try{ly(o,l,f)}catch{o[l]=f.value}}else o[l]=n(e[l],r);return o},vy=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},_y=Array.isArray,Ey=Object.getPrototypeOf,by=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 _r(e,t){var n=!!(t&&t.isStrict),r=t&&t.realm||by,o=n?Wu:yy,i=function(s,a){if(!s||typeof s!="object")return s;if(a.has(s))return a.get(s);var l=s.__proto__||Ey(s),f=l&&l.constructor;if(!f||f===r.Object)return o(s,r,i,a);var c;if(_y(s)){if(n)return Wu(s,r,i,a);c=new f,a.set(s,c);for(var h=0,d=s.length;h<d;++h)c[h]=i(s[h],a);return c}if(s instanceof r.Date)return new f(s.getTime());if(s instanceof r.RegExp)return c=new f(s.source,s.flags||vy(s)),c.lastIndex=s.lastIndex,c;if(r.Map&&s instanceof r.Map)return c=new f,a.set(s,c),s.forEach(function(u,p){c.set(p,i(u,a))}),c;if(r.Set&&s instanceof r.Set)return c=new f,a.set(s,c),s.forEach(function(u){c.add(i(u,a))}),c;if(r.Blob&&s instanceof r.Blob)return s.slice(0,s.size,s.type);if(r.Buffer&&r.Buffer.isBuffer(s))return c=r.Buffer.allocUnsafe?r.Buffer.allocUnsafe(s.length):new f(s.length),a.set(s,c),s.copy(c),c;if(r.ArrayBuffer){if(r.ArrayBuffer.isView(s))return c=new f(s.buffer.slice(0)),a.set(s,c),c;if(s instanceof r.ArrayBuffer)return c=s.slice(0),a.set(s,c),c}return typeof s.then=="function"||s instanceof Error||r.WeakMap&&s instanceof r.WeakMap||r.WeakSet&&s instanceof r.WeakSet?s:o(s,r,i,a)};return i(e,gy())}_r.default=_r;_r.strict=function(t,n){return _r(t,{isStrict:!0,realm:n?n.realm:void 0})};var wy=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n 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 i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0},Vu=typeof Symbol<"u"&&Symbol,Sy=wy,Ty=function(){return typeof Vu!="function"||typeof Symbol!="function"||typeof Vu("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Sy()},zu={foo:{}},xy=Object,Oy=function(){return{__proto__:zu}.foo===zu.foo&&!({__proto__:null}instanceof xy)},Ay="Function.prototype.bind called on incompatible ",Ha=Array.prototype.slice,Cy=Object.prototype.toString,Ry="[object Function]",Ny=function(t){var n=this;if(typeof n!="function"||Cy.call(n)!==Ry)throw new TypeError(Ay+n);for(var r=Ha.call(arguments,1),o,i=function(){if(this instanceof o){var c=n.apply(this,r.concat(Ha.call(arguments)));return Object(c)===c?c:this}else return n.apply(t,r.concat(Ha.call(arguments)))},s=Math.max(0,n.length-r.length),a=[],l=0;l<s;l++)a.push("$"+l);if(o=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var f=function(){};f.prototype=n.prototype,o.prototype=new f,f.prototype=null}return o},Py=Ny,Ac=Function.prototype.bind||Py,Iy=Ac,Ly=Iy.call(Function.call,Object.prototype.hasOwnProperty),ge,On=SyntaxError,zd=Function,xn=TypeError,qa=function(e){try{return zd('"use strict"; return ('+e+").constructor;")()}catch{}},Qr=Object.getOwnPropertyDescriptor;if(Qr)try{Qr({},"")}catch{Qr=null}var Ga=function(){throw new xn},ky=Qr?function(){try{return arguments.callee,Ga}catch{try{return Qr(arguments,"callee").get}catch{return Ga}}}():Ga,_n=Ty(),My=Oy(),Ve=Object.getPrototypeOf||(My?function(e){return e.__proto__}:null),wn={},By=typeof Uint8Array>"u"||!Ve?ge:Ve(Uint8Array),Xr={"%AggregateError%":typeof AggregateError>"u"?ge:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ge:ArrayBuffer,"%ArrayIteratorPrototype%":_n&&Ve?Ve([][Symbol.iterator]()):ge,"%AsyncFromSyncIteratorPrototype%":ge,"%AsyncFunction%":wn,"%AsyncGenerator%":wn,"%AsyncGeneratorFunction%":wn,"%AsyncIteratorPrototype%":wn,"%Atomics%":typeof Atomics>"u"?ge:Atomics,"%BigInt%":typeof BigInt>"u"?ge:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ge:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ge:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ge:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ge:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ge:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ge:FinalizationRegistry,"%Function%":zd,"%GeneratorFunction%":wn,"%Int8Array%":typeof Int8Array>"u"?ge:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ge:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ge:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_n&&Ve?Ve(Ve([][Symbol.iterator]())):ge,"%JSON%":typeof JSON=="object"?JSON:ge,"%Map%":typeof Map>"u"?ge:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_n||!Ve?ge:Ve(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ge:Promise,"%Proxy%":typeof Proxy>"u"?ge:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ge:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ge:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_n||!Ve?ge:Ve(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ge:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_n&&Ve?Ve(""[Symbol.iterator]()):ge,"%Symbol%":_n?Symbol:ge,"%SyntaxError%":On,"%ThrowTypeError%":ky,"%TypedArray%":By,"%TypeError%":xn,"%Uint8Array%":typeof Uint8Array>"u"?ge:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ge:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ge:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ge:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ge:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ge:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ge:WeakSet};if(Ve)try{null.error}catch(e){var Fy=Ve(Ve(e));Xr["%Error.prototype%"]=Fy}var Uy=function e(t){var n;if(t==="%AsyncFunction%")n=qa("async function () {}");else if(t==="%GeneratorFunction%")n=qa("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=qa("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Ve&&(n=Ve(o.prototype))}return Xr[t]=n,n},Yu={"%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"]},Yi=Ac,Mo=Ly,Dy=Yi.call(Function.call,Array.prototype.concat),$y=Yi.call(Function.apply,Array.prototype.splice),Ku=Yi.call(Function.call,String.prototype.replace),Bo=Yi.call(Function.call,String.prototype.slice),jy=Yi.call(Function.call,RegExp.prototype.exec),Hy=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,qy=/\\(\\)?/g,Gy=function(t){var n=Bo(t,0,1),r=Bo(t,-1);if(n==="%"&&r!=="%")throw new On("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new On("invalid intrinsic syntax, expected opening `%`");var o=[];return Ku(t,Hy,function(i,s,a,l){o[o.length]=a?Ku(l,qy,"$1"):s||i}),o},Wy=function(t,n){var r=t,o;if(Mo(Yu,r)&&(o=Yu[r],r="%"+o[0]+"%"),Mo(Xr,r)){var i=Xr[r];if(i===wn&&(i=Uy(r)),typeof i>"u"&&!n)throw new xn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new On("intrinsic "+t+" does not exist!")},Cc=function(t,n){if(typeof t!="string"||t.length===0)throw new xn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new xn('"allowMissing" argument must be a boolean');if(jy(/^%?[^%]*%?$/,t)===null)throw new On("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Gy(t),o=r.length>0?r[0]:"",i=Wy("%"+o+"%",n),s=i.name,a=i.value,l=!1,f=i.alias;f&&(o=f[0],$y(r,Dy([0,1],f)));for(var c=1,h=!0;c<r.length;c+=1){var d=r[c],u=Bo(d,0,1),p=Bo(d,-1);if((u==='"'||u==="'"||u==="`"||p==='"'||p==="'"||p==="`")&&u!==p)throw new On("property names with quotes must have matching quotes");if((d==="constructor"||!h)&&(l=!0),o+="."+d,s="%"+o+"%",Mo(Xr,s))a=Xr[s];else if(a!=null){if(!(d in a)){if(!n)throw new xn("base intrinsic for "+t+" exists, but the property is not available.");return}if(Qr&&c+1>=r.length){var m=Qr(a,d);h=!!m,h&&"get"in m&&!("originalValue"in m.get)?a=m.get:a=a[d]}else h=Mo(a,d),a=a[d];h&&!l&&(Xr[s]=a)}}return a},Yd={exports:{}};(function(e){var t=Ac,n=Cc,r=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||t.call(o,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var d=i(t,o,arguments);if(s&&a){var u=s(d,"length");u.configurable&&a(d,"length",{value:1+l(0,h.length-(arguments.length-1))})}return d};var f=function(){return i(t,r,arguments)};a?a(e.exports,"apply",{value:f}):e.exports.apply=f})(Yd);var Vy=Yd.exports,Kd=Cc,Qd=Vy,zy=Qd(Kd("String.prototype.indexOf")),Yy=function(t,n){var r=Kd(t,!!n);return typeof r=="function"&&zy(t,".prototype.")>-1?Qd(r):r};const Ky={},Qy=Object.freeze(Object.defineProperty({__proto__:null,default:Ky},Symbol.toStringTag,{value:"Module"})),Xy=zi(Qy);var Rc=typeof Map=="function"&&Map.prototype,Wa=Object.getOwnPropertyDescriptor&&Rc?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Fo=Rc&&Wa&&typeof Wa.get=="function"?Wa.get:null,Qu=Rc&&Map.prototype.forEach,Nc=typeof Set=="function"&&Set.prototype,Va=Object.getOwnPropertyDescriptor&&Nc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Uo=Nc&&Va&&typeof Va.get=="function"?Va.get:null,Xu=Nc&&Set.prototype.forEach,Jy=typeof WeakMap=="function"&&WeakMap.prototype,Ui=Jy?WeakMap.prototype.has:null,Zy=typeof WeakSet=="function"&&WeakSet.prototype,Di=Zy?WeakSet.prototype.has:null,ev=typeof WeakRef=="function"&&WeakRef.prototype,Ju=ev?WeakRef.prototype.deref:null,tv=Boolean.prototype.valueOf,rv=Object.prototype.toString,nv=Function.prototype.toString,iv=String.prototype.match,Pc=String.prototype.slice,yr=String.prototype.replace,ov=String.prototype.toUpperCase,Zu=String.prototype.toLowerCase,Xd=RegExp.prototype.test,el=Array.prototype.concat,Ut=Array.prototype.join,av=Array.prototype.slice,tl=Math.floor,Ys=typeof BigInt=="function"?BigInt.prototype.valueOf:null,za=Object.getOwnPropertySymbols,Ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,An=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===An||"symbol")?Symbol.toStringTag:null,Jd=Object.prototype.propertyIsEnumerable,rl=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function nl(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Xd.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-tl(-e):tl(e);if(r!==e){var o=String(r),i=Pc.call(t,o.length+1);return yr.call(o,n,"$&_")+"."+yr.call(yr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return yr.call(t,n,"$&_")}var Qs=Xy,il=Qs.custom,ol=eh(il)?il:null,sv=function e(t,n,r,o){var i=n||{};if(gr(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(gr(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=gr(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(gr(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(gr(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.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 rh(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?nl(t,l):l}if(typeof t=="bigint"){var f=String(t)+"n";return a?nl(t,f):f}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return Xs(t)?"[Array]":"[Object]";var h=xv(i,r);if(typeof o>"u")o=[];else if(th(o,t)>=0)return"[Circular]";function d(Y,oe,K){if(oe&&(o=av.call(o),o.push(oe)),K){var k={depth:i.depth};return gr(i,"quoteStyle")&&(k.quoteStyle=i.quoteStyle),e(Y,k,r+1,o)}return e(Y,i,r+1,o)}if(typeof t=="function"&&!al(t)){var u=gv(t),p=ao(t,d);return"[Function"+(u?": "+u:" (anonymous)")+"]"+(p.length>0?" { "+Ut.call(p,", ")+" }":"")}if(eh(t)){var m=An?yr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ks.call(t);return typeof t=="object"&&!An?di(m):m}if(wv(t)){for(var E="<"+Zu.call(String(t.nodeName)),T=t.attributes||[],_=0;_<T.length;_++)E+=" "+T[_].name+"="+Zd(cv(T[_].value),"double",i);return E+=">",t.childNodes&&t.childNodes.length&&(E+="..."),E+="</"+Zu.call(String(t.nodeName))+">",E}if(Xs(t)){if(t.length===0)return"[]";var b=ao(t,d);return h&&!Tv(b)?"["+Js(b,h)+"]":"[ "+Ut.call(b,", ")+" ]"}if(lv(t)){var A=ao(t,d);return!("cause"in Error.prototype)&&"cause"in t&&!Jd.call(t,"cause")?"{ ["+String(t)+"] "+Ut.call(el.call("[cause]: "+d(t.cause),A),", ")+" }":A.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ut.call(A,", ")+" }"}if(typeof t=="object"&&s){if(ol&&typeof t[ol]=="function"&&Qs)return Qs(t,{depth:c-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(yv(t)){var w=[];return Qu&&Qu.call(t,function(Y,oe){w.push(d(oe,t,!0)+" => "+d(Y,t))}),sl("Map",Fo.call(t),w,h)}if(Ev(t)){var P=[];return Xu&&Xu.call(t,function(Y){P.push(d(Y,t))}),sl("Set",Uo.call(t),P,h)}if(vv(t))return Ya("WeakMap");if(bv(t))return Ya("WeakSet");if(_v(t))return Ya("WeakRef");if(dv(t))return di(d(Number(t)));if(pv(t))return di(d(Ys.call(t)));if(hv(t))return di(tv.call(t));if(fv(t))return di(d(String(t)));if(!uv(t)&&!al(t)){var F=ao(t,d),B=rl?rl(t)===Object.prototype:t instanceof Object||t.constructor===Object,W=t instanceof Object?"":"null prototype",G=!B&&tt&&Object(t)===t&&tt in t?Pc.call(br(t),8,-1):W?"Object":"",V=B||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",H=V+(G||W?"["+Ut.call(el.call([],G||[],W||[]),": ")+"] ":"");return F.length===0?H+"{}":h?H+"{"+Js(F,h)+"}":H+"{ "+Ut.call(F,", ")+" }"}return String(t)};function Zd(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function cv(e){return yr.call(String(e),/"/g,"&quot;")}function Xs(e){return br(e)==="[object Array]"&&(!tt||!(typeof e=="object"&&tt in e))}function uv(e){return br(e)==="[object Date]"&&(!tt||!(typeof e=="object"&&tt in e))}function al(e){return br(e)==="[object RegExp]"&&(!tt||!(typeof e=="object"&&tt in e))}function lv(e){return br(e)==="[object Error]"&&(!tt||!(typeof e=="object"&&tt in e))}function fv(e){return br(e)==="[object String]"&&(!tt||!(typeof e=="object"&&tt in e))}function dv(e){return br(e)==="[object Number]"&&(!tt||!(typeof e=="object"&&tt in e))}function hv(e){return br(e)==="[object Boolean]"&&(!tt||!(typeof e=="object"&&tt in e))}function eh(e){if(An)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Ks)return!1;try{return Ks.call(e),!0}catch{}return!1}function pv(e){if(!e||typeof e!="object"||!Ys)return!1;try{return Ys.call(e),!0}catch{}return!1}var mv=Object.prototype.hasOwnProperty||function(e){return e in this};function gr(e,t){return mv.call(e,t)}function br(e){return rv.call(e)}function gv(e){if(e.name)return e.name;var t=iv.call(nv.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function th(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function yv(e){if(!Fo||!e||typeof e!="object")return!1;try{Fo.call(e);try{Uo.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function vv(e){if(!Ui||!e||typeof e!="object")return!1;try{Ui.call(e,Ui);try{Di.call(e,Di)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function _v(e){if(!Ju||!e||typeof e!="object")return!1;try{return Ju.call(e),!0}catch{}return!1}function Ev(e){if(!Uo||!e||typeof e!="object")return!1;try{Uo.call(e);try{Fo.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function bv(e){if(!Di||!e||typeof e!="object")return!1;try{Di.call(e,Di);try{Ui.call(e,Ui)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function wv(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function rh(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return rh(Pc.call(e,0,t.maxStringLength),t)+r}var o=yr.call(yr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Sv);return Zd(o,"single",t)}function Sv(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+ov.call(t.toString(16))}function di(e){return"Object("+e+")"}function Ya(e){return e+" { ? }"}function sl(e,t,n,r){var o=r?Js(n,r):Ut.call(n,", ");return e+" ("+t+") {"+o+"}"}function Tv(e){for(var t=0;t<e.length;t++)if(th(e[t],`
26
- `)>=0)return!1;return!0}function xv(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Ut.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Ut.call(Array(t+1),n)}}function Js(e,t){if(e.length===0)return"";var n=`
24
+ */var pu;function Gg(){return pu||(pu=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,l=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function b(te){return typeof te=="string"||typeof te=="function"||te===r||te===f||te===i||te===o||te===h||te===d||typeof te=="object"&&te!==null&&(te.$$typeof===p||te.$$typeof===l||te.$$typeof===s||te.$$typeof===a||te.$$typeof===c||te.$$typeof===E||te.$$typeof===T||te.$$typeof===_||te.$$typeof===m)}function A(te){if(typeof te=="object"&&te!==null){var Ye=te.$$typeof;switch(Ye){case t:var je=te.type;switch(je){case u:case f:case r:case i:case o:case h:return je;default:var bt=je&&je.$$typeof;switch(bt){case a:case c:case p:case l:case s:return bt;default:return Ye}}case n:return Ye}}}var w=u,N=f,F=a,B=s,G=t,W=c,V=r,H=p,Y=l,oe=n,Q=i,M=o,z=h,Z=!1;function de(te){return Z||(Z=!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.")),X(te)||A(te)===u}function X(te){return A(te)===f}function K(te){return A(te)===a}function se(te){return A(te)===s}function ue(te){return typeof te=="object"&&te!==null&&te.$$typeof===t}function Fe(te){return A(te)===c}function J(te){return A(te)===r}function re(te){return A(te)===p}function Pe(te){return A(te)===l}function Ae(te){return A(te)===n}function st(te){return A(te)===i}function ut(te){return A(te)===o}function Et(te){return A(te)===h}Re.AsyncMode=w,Re.ConcurrentMode=N,Re.ContextConsumer=F,Re.ContextProvider=B,Re.Element=G,Re.ForwardRef=W,Re.Fragment=V,Re.Lazy=H,Re.Memo=Y,Re.Portal=oe,Re.Profiler=Q,Re.StrictMode=M,Re.Suspense=z,Re.isAsyncMode=de,Re.isConcurrentMode=X,Re.isContextConsumer=K,Re.isContextProvider=se,Re.isElement=ue,Re.isForwardRef=Fe,Re.isFragment=J,Re.isLazy=re,Re.isMemo=Pe,Re.isPortal=Ae,Re.isProfiler=st,Re.isStrictMode=ut,Re.isSuspense=Et,Re.isValidElementType=b,Re.typeOf=A}()),Re}process.env.NODE_ENV==="production"?Xs.exports=qg():Xs.exports=Gg();var Wg=Xs.exports,Md=Wg,Vg={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},zg={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kd={};kd[Md.ForwardRef]=Vg;kd[Md.Memo]=zg;function Yg(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function Bd(e){const t=D.useContext(jg);if(!t)throw new Error("Missing <CookiesProvider>");const[n,r]=D.useState(()=>t.getAll());Yg()&&D.useLayoutEffect(()=>{function a(){const u=t.getAll({doNotUpdate:!0});Kg(e||null,u,n)&&r(u)}return t.addChangeListener(a),()=>{t.removeChangeListener(a)}},[t,n]);const o=D.useMemo(()=>t.set.bind(t),[t]),i=D.useMemo(()=>t.remove.bind(t),[t]),s=D.useMemo(()=>t.update.bind(t),[t]);return[n,o,i,s]}function Kg(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}var Fd={exports:{}},fa={exports:{}},oo={},ao={exports:{}},da,mu;function Ud(){return mu||(mu=1,da=function(t,n){return function(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];return t.apply(n,o)}}),da}var ha,gu;function Ze(){if(gu)return ha;gu=1;var e=Ud(),t=Object.prototype.toString,n=function(M){return function(z){var Z=t.call(z);return M[Z]||(M[Z]=Z.slice(8,-1).toLowerCase())}}(Object.create(null));function r(M){return M=M.toLowerCase(),function(Z){return n(Z)===M}}function o(M){return Array.isArray(M)}function i(M){return typeof M>"u"}function s(M){return M!==null&&!i(M)&&M.constructor!==null&&!i(M.constructor)&&typeof M.constructor.isBuffer=="function"&&M.constructor.isBuffer(M)}var a=r("ArrayBuffer");function u(M){var z;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?z=ArrayBuffer.isView(M):z=M&&M.buffer&&a(M.buffer),z}function f(M){return typeof M=="string"}function c(M){return typeof M=="number"}function h(M){return M!==null&&typeof M=="object"}function d(M){if(n(M)!=="object")return!1;var z=Object.getPrototypeOf(M);return z===null||z===Object.prototype}var l=r("Date"),p=r("File"),m=r("Blob"),E=r("FileList");function T(M){return t.call(M)==="[object Function]"}function _(M){return h(M)&&T(M.pipe)}function b(M){var z="[object FormData]";return M&&(typeof FormData=="function"&&M instanceof FormData||t.call(M)===z||T(M.toString)&&M.toString()===z)}var A=r("URLSearchParams");function w(M){return M.trim?M.trim():M.replace(/^\s+|\s+$/g,"")}function N(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function F(M,z){if(!(M===null||typeof M>"u"))if(typeof M!="object"&&(M=[M]),o(M))for(var Z=0,de=M.length;Z<de;Z++)z.call(null,M[Z],Z,M);else for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&z.call(null,M[X],X,M)}function B(){var M={};function z(X,K){d(M[K])&&d(X)?M[K]=B(M[K],X):d(X)?M[K]=B({},X):o(X)?M[K]=X.slice():M[K]=X}for(var Z=0,de=arguments.length;Z<de;Z++)F(arguments[Z],z);return M}function G(M,z,Z){return F(z,function(X,K){Z&&typeof X=="function"?M[K]=e(X,Z):M[K]=X}),M}function W(M){return M.charCodeAt(0)===65279&&(M=M.slice(1)),M}function V(M,z,Z,de){M.prototype=Object.create(z.prototype,de),M.prototype.constructor=M,Z&&Object.assign(M.prototype,Z)}function H(M,z,Z){var de,X,K,se={};z=z||{};do{for(de=Object.getOwnPropertyNames(M),X=de.length;X-- >0;)K=de[X],se[K]||(z[K]=M[K],se[K]=!0);M=Object.getPrototypeOf(M)}while(M&&(!Z||Z(M,z))&&M!==Object.prototype);return z}function Y(M,z,Z){M=String(M),(Z===void 0||Z>M.length)&&(Z=M.length),Z-=z.length;var de=M.indexOf(z,Z);return de!==-1&&de===Z}function oe(M){if(!M)return null;var z=M.length;if(i(z))return null;for(var Z=new Array(z);z-- >0;)Z[z]=M[z];return Z}var Q=function(M){return function(z){return M&&z instanceof M}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return ha={isArray:o,isArrayBuffer:a,isBuffer:s,isFormData:b,isArrayBufferView:u,isString:f,isNumber:c,isObject:h,isPlainObject:d,isUndefined:i,isDate:l,isFile:p,isBlob:m,isFunction:T,isStream:_,isURLSearchParams:A,isStandardBrowserEnv:N,forEach:F,merge:B,extend:G,trim:w,stripBOM:W,inherits:V,toFlatObject:H,kindOf:n,kindOfTest:r,endsWith:Y,toArray:oe,isTypedArray:Q,isFileList:E},ha}var pa,yu;function Dd(){if(yu)return pa;yu=1;var e=Ze();function t(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return pa=function(r,o,i){if(!o)return r;var s;if(i)s=i(o);else if(e.isURLSearchParams(o))s=o.toString();else{var a=[];e.forEach(o,function(c,h){c===null||typeof c>"u"||(e.isArray(c)?h=h+"[]":c=[c],e.forEach(c,function(l){e.isDate(l)?l=l.toISOString():e.isObject(l)&&(l=JSON.stringify(l)),a.push(t(h)+"="+t(l))}))}),s=a.join("&")}if(s){var u=r.indexOf("#");u!==-1&&(r=r.slice(0,u)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r},pa}var ma,vu;function Qg(){if(vu)return ma;vu=1;var e=Ze();function t(){this.handlers=[]}return t.prototype.use=function(r,o,i){return this.handlers.push({fulfilled:r,rejected:o,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1},t.prototype.eject=function(r){this.handlers[r]&&(this.handlers[r]=null)},t.prototype.forEach=function(r){e.forEach(this.handlers,function(i){i!==null&&r(i)})},ma=t,ma}var ga,_u;function Xg(){if(_u)return ga;_u=1;var e=Ze();return ga=function(n,r){e.forEach(n,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(n[r]=i,delete n[s])})},ga}var ya,Eu;function In(){if(Eu)return ya;Eu=1;var e=Ze();function t(o,i,s,a,u){Error.call(this),this.message=o,this.name="AxiosError",i&&(this.code=i),s&&(this.config=s),a&&(this.request=a),u&&(this.response=u)}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 n=t.prototype,r={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(o){r[o]={value:o}}),Object.defineProperties(t,r),Object.defineProperty(n,"isAxiosError",{value:!0}),t.from=function(o,i,s,a,u,f){var c=Object.create(n);return e.toFlatObject(o,c,function(d){return d!==Error.prototype}),t.call(c,o.message,i,s,a,u),c.name=o.name,f&&Object.assign(c,f),c},ya=t,ya}var va,bu;function $d(){return bu||(bu=1,va={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),va}var _a,wu;function jd(){if(wu)return _a;wu=1;var e=Ze();function t(n,r){r=r||new FormData;var o=[];function i(a){return a===null?"":e.isDate(a)?a.toISOString():e.isArrayBuffer(a)||e.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function s(a,u){if(e.isPlainObject(a)||e.isArray(a)){if(o.indexOf(a)!==-1)throw Error("Circular reference detected in "+u);o.push(a),e.forEach(a,function(c,h){if(!e.isUndefined(c)){var d=u?u+"."+h:h,l;if(c&&!u&&typeof c=="object"){if(e.endsWith(h,"{}"))c=JSON.stringify(c);else if(e.endsWith(h,"[]")&&(l=e.toArray(c))){l.forEach(function(p){!e.isUndefined(p)&&r.append(d,i(p))});return}}s(c,d)}}),o.pop()}else r.append(u,i(a))}return s(n),r}return _a=t,_a}var Ea,Su;function Jg(){if(Su)return Ea;Su=1;var e=In();return Ea=function(n,r,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?n(o):r(new e("Request failed with status code "+o.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))},Ea}var ba,Tu;function Zg(){if(Tu)return ba;Tu=1;var e=Ze();return ba=e.isStandardBrowserEnv()?function(){return{write:function(r,o,i,s,a,u){var f=[];f.push(r+"="+encodeURIComponent(o)),e.isNumber(i)&&f.push("expires="+new Date(i).toGMTString()),e.isString(s)&&f.push("path="+s),e.isString(a)&&f.push("domain="+a),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),ba}var wa,xu;function ey(){return xu||(xu=1,wa=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),wa}var Sa,Ou;function ty(){return Ou||(Ou=1,Sa=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),Sa}var Ta,Au;function Hd(){if(Au)return Ta;Au=1;var e=ey(),t=ty();return Ta=function(r,o){return r&&!e(o)?t(r,o):o},Ta}var xa,Cu;function ry(){if(Cu)return xa;Cu=1;var e=Ze(),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 xa=function(r){var o={},i,s,a;return r&&e.forEach(r.split(`
25
+ `),function(f){if(a=f.indexOf(":"),i=e.trim(f.substr(0,a)).toLowerCase(),s=e.trim(f.substr(a+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([s]):o[i]=o[i]?o[i]+", "+s:s}}),o},xa}var Oa,Ru;function ny(){if(Ru)return Oa;Ru=1;var e=Ze();return Oa=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function i(s){var a=s;return n&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=i(window.location.href),function(a){var u=e.isString(a)?i(a):a;return u.protocol===o.protocol&&u.host===o.host}}():function(){return function(){return!0}}(),Oa}var Aa,Nu;function Qo(){if(Nu)return Aa;Nu=1;var e=In(),t=Ze();function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),Aa=n,Aa}var Ca,Pu;function iy(){return Pu||(Pu=1,Ca=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),Ca}var Ra,Iu;function Lu(){if(Iu)return Ra;Iu=1;var e=Ze(),t=Jg(),n=Zg(),r=Dd(),o=Hd(),i=ry(),s=ny(),a=$d(),u=In(),f=Qo(),c=iy();return Ra=function(d){return new Promise(function(p,m){var E=d.data,T=d.headers,_=d.responseType,b;function A(){d.cancelToken&&d.cancelToken.unsubscribe(b),d.signal&&d.signal.removeEventListener("abort",b)}e.isFormData(E)&&e.isStandardBrowserEnv()&&delete T["Content-Type"];var w=new XMLHttpRequest;if(d.auth){var N=d.auth.username||"",F=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";T.Authorization="Basic "+btoa(N+":"+F)}var B=o(d.baseURL,d.url);w.open(d.method.toUpperCase(),r(B,d.params,d.paramsSerializer),!0),w.timeout=d.timeout;function G(){if(w){var H="getAllResponseHeaders"in w?i(w.getAllResponseHeaders()):null,Y=!_||_==="text"||_==="json"?w.responseText:w.response,oe={data:Y,status:w.status,statusText:w.statusText,headers:H,config:d,request:w};t(function(M){p(M),A()},function(M){m(M),A()},oe),w=null}}if("onloadend"in w?w.onloadend=G:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(G)},w.onabort=function(){w&&(m(new u("Request aborted",u.ECONNABORTED,d,w)),w=null)},w.onerror=function(){m(new u("Network Error",u.ERR_NETWORK,d,w,w)),w=null},w.ontimeout=function(){var Y=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",oe=d.transitional||a;d.timeoutErrorMessage&&(Y=d.timeoutErrorMessage),m(new u(Y,oe.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,d,w)),w=null},e.isStandardBrowserEnv()){var W=(d.withCredentials||s(B))&&d.xsrfCookieName?n.read(d.xsrfCookieName):void 0;W&&(T[d.xsrfHeaderName]=W)}"setRequestHeader"in w&&e.forEach(T,function(Y,oe){typeof E>"u"&&oe.toLowerCase()==="content-type"?delete T[oe]:w.setRequestHeader(oe,Y)}),e.isUndefined(d.withCredentials)||(w.withCredentials=!!d.withCredentials),_&&_!=="json"&&(w.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&w.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(b=function(H){w&&(m(!H||H&&H.type?new f:H),w.abort(),w=null)},d.cancelToken&&d.cancelToken.subscribe(b),d.signal&&(d.signal.aborted?b():d.signal.addEventListener("abort",b))),E||(E=null);var V=c(B);if(V&&["http","https","file"].indexOf(V)===-1){m(new u("Unsupported protocol "+V+":",u.ERR_BAD_REQUEST,d));return}w.send(E)})},Ra}var Na,Mu;function oy(){return Mu||(Mu=1,Na=null),Na}var Pa,ku;function Rc(){if(ku)return Pa;ku=1;var e=Ze(),t=Xg(),n=In(),r=$d(),o=jd(),i={"Content-Type":"application/x-www-form-urlencoded"};function s(c,h){!e.isUndefined(c)&&e.isUndefined(c["Content-Type"])&&(c["Content-Type"]=h)}function a(){var c;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(c=Lu()),c}function u(c,h,d){if(e.isString(c))try{return(h||JSON.parse)(c),e.trim(c)}catch(l){if(l.name!=="SyntaxError")throw l}return(d||JSON.stringify)(c)}var f={transitional:r,adapter:a(),transformRequest:[function(h,d){if(t(d,"Accept"),t(d,"Content-Type"),e.isFormData(h)||e.isArrayBuffer(h)||e.isBuffer(h)||e.isStream(h)||e.isFile(h)||e.isBlob(h))return h;if(e.isArrayBufferView(h))return h.buffer;if(e.isURLSearchParams(h))return s(d,"application/x-www-form-urlencoded;charset=utf-8"),h.toString();var l=e.isObject(h),p=d&&d["Content-Type"],m;if((m=e.isFileList(h))||l&&p==="multipart/form-data"){var E=this.env&&this.env.FormData;return o(m?{"files[]":h}:h,E&&new E)}else if(l||p==="application/json")return s(d,"application/json"),u(h);return h}],transformResponse:[function(h){var d=this.transitional||f.transitional,l=d&&d.silentJSONParsing,p=d&&d.forcedJSONParsing,m=!l&&this.responseType==="json";if(m||p&&e.isString(h)&&h.length)try{return JSON.parse(h)}catch(E){if(m)throw E.name==="SyntaxError"?n.from(E,n.ERR_BAD_RESPONSE,this,null,this.response):E}return h}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oy()},validateStatus:function(h){return h>=200&&h<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(h){f.headers[h]={}}),e.forEach(["post","put","patch"],function(h){f.headers[h]=e.merge(i)}),Pa=f,Pa}var Ia,Bu;function ay(){if(Bu)return Ia;Bu=1;var e=Ze(),t=Rc();return Ia=function(r,o,i){var s=this||t;return e.forEach(i,function(u){r=u.call(s,r,o)}),r},Ia}var La,Fu;function qd(){return Fu||(Fu=1,La=function(t){return!!(t&&t.__CANCEL__)}),La}var Ma,Uu;function sy(){if(Uu)return Ma;Uu=1;var e=Ze(),t=ay(),n=qd(),r=Rc(),o=Qo();function i(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new o}return Ma=function(a){i(a),a.headers=a.headers||{},a.data=t.call(a,a.data,a.headers,a.transformRequest),a.headers=e.merge(a.headers.common||{},a.headers[a.method]||{},a.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(c){delete a.headers[c]});var u=a.adapter||r.adapter;return u(a).then(function(c){return i(a),c.data=t.call(a,c.data,c.headers,a.transformResponse),c},function(c){return n(c)||(i(a),c&&c.response&&(c.response.data=t.call(a,c.response.data,c.response.headers,a.transformResponse))),Promise.reject(c)})},Ma}var ka,Du;function Gd(){if(Du)return ka;Du=1;var e=Ze();return ka=function(n,r){r=r||{};var o={};function i(h,d){return e.isPlainObject(h)&&e.isPlainObject(d)?e.merge(h,d):e.isPlainObject(d)?e.merge({},d):e.isArray(d)?d.slice():d}function s(h){if(e.isUndefined(r[h])){if(!e.isUndefined(n[h]))return i(void 0,n[h])}else return i(n[h],r[h])}function a(h){if(!e.isUndefined(r[h]))return i(void 0,r[h])}function u(h){if(e.isUndefined(r[h])){if(!e.isUndefined(n[h]))return i(void 0,n[h])}else return i(void 0,r[h])}function f(h){if(h in r)return i(n[h],r[h]);if(h in n)return i(void 0,n[h])}var c={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f};return e.forEach(Object.keys(n).concat(Object.keys(r)),function(d){var l=c[d]||s,p=l(d);e.isUndefined(p)&&l!==f||(o[d]=p)}),o},ka}var Ba,$u;function Wd(){return $u||($u=1,Ba={version:"0.27.2"}),Ba}var Fa,ju;function cy(){if(ju)return Fa;ju=1;var e=Wd().version,t=In(),n={};["object","boolean","number","function","string","symbol"].forEach(function(i,s){n[i]=function(u){return typeof u===i||"a"+(s<1?"n ":" ")+i}});var r={};n.transitional=function(s,a,u){function f(c,h){return"[Axios v"+e+"] Transitional option '"+c+"'"+h+(u?". "+u:"")}return function(c,h,d){if(s===!1)throw new t(f(h," has been removed"+(a?" in "+a:"")),t.ERR_DEPRECATED);return a&&!r[h]&&(r[h]=!0,console.warn(f(h," has been deprecated since v"+a+" and will be removed in the near future"))),s?s(c,h,d):!0}};function o(i,s,a){if(typeof i!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var u=Object.keys(i),f=u.length;f-- >0;){var c=u[f],h=s[c];if(h){var d=i[c],l=d===void 0||h(d,c,i);if(l!==!0)throw new t("option "+c+" must be "+l,t.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new t("Unknown option "+c,t.ERR_BAD_OPTION)}}return Fa={assertOptions:o,validators:n},Fa}var Ua,Hu;function uy(){if(Hu)return Ua;Hu=1;var e=Ze(),t=Dd(),n=Qg(),r=sy(),o=Gd(),i=Hd(),s=cy(),a=s.validators;function u(f){this.defaults=f,this.interceptors={request:new n,response:new n}}return u.prototype.request=function(c,h){typeof c=="string"?(h=h||{},h.url=c):h=c||{},h=o(this.defaults,h),h.method?h.method=h.method.toLowerCase():this.defaults.method?h.method=this.defaults.method.toLowerCase():h.method="get";var d=h.transitional;d!==void 0&&s.assertOptions(d,{silentJSONParsing:a.transitional(a.boolean),forcedJSONParsing:a.transitional(a.boolean),clarifyTimeoutError:a.transitional(a.boolean)},!1);var l=[],p=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(h)===!1||(p=p&&N.synchronous,l.unshift(N.fulfilled,N.rejected))});var m=[];this.interceptors.response.forEach(function(N){m.push(N.fulfilled,N.rejected)});var E;if(!p){var T=[r,void 0];for(Array.prototype.unshift.apply(T,l),T=T.concat(m),E=Promise.resolve(h);T.length;)E=E.then(T.shift(),T.shift());return E}for(var _=h;l.length;){var b=l.shift(),A=l.shift();try{_=b(_)}catch(w){A(w);break}}try{E=r(_)}catch(w){return Promise.reject(w)}for(;m.length;)E=E.then(m.shift(),m.shift());return E},u.prototype.getUri=function(c){c=o(this.defaults,c);var h=i(c.baseURL,c.url);return t(h,c.params,c.paramsSerializer)},e.forEach(["delete","get","head","options"],function(c){u.prototype[c]=function(h,d){return this.request(o(d||{},{method:c,url:h,data:(d||{}).data}))}}),e.forEach(["post","put","patch"],function(c){function h(d){return function(p,m,E){return this.request(o(E||{},{method:c,headers:d?{"Content-Type":"multipart/form-data"}:{},url:p,data:m}))}}u.prototype[c]=h(),u.prototype[c+"Form"]=h(!0)}),Ua=u,Ua}var Da,qu;function ly(){if(qu)return Da;qu=1;var e=Qo();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(s){r=s});var o=this;this.promise.then(function(i){if(o._listeners){var s,a=o._listeners.length;for(s=0;s<a;s++)o._listeners[s](i);o._listeners=null}}),this.promise.then=function(i){var s,a=new Promise(function(u){o.subscribe(u),s=u}).then(i);return a.cancel=function(){o.unsubscribe(s)},a},n(function(s){o.reason||(o.reason=new e(s),r(o.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},t.prototype.unsubscribe=function(r){if(this._listeners){var o=this._listeners.indexOf(r);o!==-1&&this._listeners.splice(o,1)}},t.source=function(){var r,o=new t(function(s){r=s});return{token:o,cancel:r}},Da=t,Da}var $a,Gu;function fy(){return Gu||(Gu=1,$a=function(t){return function(r){return t.apply(null,r)}}),$a}var ja,Wu;function dy(){if(Wu)return ja;Wu=1;var e=Ze();return ja=function(n){return e.isObject(n)&&n.isAxiosError===!0},ja}var Vu;function hy(){if(Vu)return ao.exports;Vu=1;var e=Ze(),t=Ud(),n=uy(),r=Gd(),o=Rc();function i(a){var u=new n(a),f=t(n.prototype.request,u);return e.extend(f,n.prototype,u),e.extend(f,u),f.create=function(h){return i(r(a,h))},f}var s=i(o);return s.Axios=n,s.CanceledError=Qo(),s.CancelToken=ly(),s.isCancel=qd(),s.VERSION=Wd().version,s.toFormData=jd(),s.AxiosError=In(),s.Cancel=s.CanceledError,s.all=function(u){return Promise.all(u)},s.spread=fy(),s.isAxiosError=dy(),ao.exports=s,ao.exports.default=s,ao.exports}var Ha,zu;function Vd(){return zu||(zu=1,Ha=hy()),Ha}var py=Function.prototype.toString,qa=Object.create,my=Object.defineProperty,gy=Object.getOwnPropertyDescriptor,Yu=Object.getOwnPropertyNames,Nc=Object.getOwnPropertySymbols,yy=Object.getPrototypeOf,zd=Object.prototype,vy=zd.hasOwnProperty,_y=zd.propertyIsEnumerable,Yd=typeof Nc=="function",Ey=typeof WeakMap=="function",by=function(){if(Ey)return function(){return new WeakMap};var e=function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(n){return!!~this._keys.indexOf(n)},t.prototype.get=function(n){return this._values[this._keys.indexOf(n)]},t.prototype.set=function(n,r){this._keys.push(n),this._values.push(r)},t}();return function(){return new e}}(),Kd=function(e,t){var n=e.__proto__||yy(e);if(!n)return qa(null);var r=n.constructor;if(r===t.Object)return n===t.Object.prototype?{}:qa(n);if(~py.call(r).indexOf("[native code]"))try{return new r}catch{}return qa(n)},wy=function(e,t,n,r){var o=Kd(e,t);r.set(e,o);for(var i in e)vy.call(e,i)&&(o[i]=n(e[i],r));if(Yd)for(var s=Nc(e),a=0,u=s.length,f=void 0;a<u;++a)f=s[a],_y.call(e,f)&&(o[f]=n(e[f],r));return o},Ku=function(e,t,n,r){var o=Kd(e,t);r.set(e,o);for(var i=Yd?Yu(e).concat(Nc(e)):Yu(e),s=0,a=i.length,u=void 0,f=void 0;s<a;++s)if(u=i[s],u!=="callee"&&u!=="caller")if(f=gy(e,u),f){!f.get&&!f.set&&(f.value=n(e[u],r));try{my(o,u,f)}catch{o[u]=f.value}}else o[u]=n(e[u],r);return o},Sy=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},Ty=Array.isArray,xy=Object.getPrototypeOf,Oy=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 _r(e,t){var n=!!(t&&t.isStrict),r=t&&t.realm||Oy,o=n?Ku:wy,i=function(s,a){if(!s||typeof s!="object")return s;if(a.has(s))return a.get(s);var u=s.__proto__||xy(s),f=u&&u.constructor;if(!f||f===r.Object)return o(s,r,i,a);var c;if(Ty(s)){if(n)return Ku(s,r,i,a);c=new f,a.set(s,c);for(var h=0,d=s.length;h<d;++h)c[h]=i(s[h],a);return c}if(s instanceof r.Date)return new f(s.getTime());if(s instanceof r.RegExp)return c=new f(s.source,s.flags||Sy(s)),c.lastIndex=s.lastIndex,c;if(r.Map&&s instanceof r.Map)return c=new f,a.set(s,c),s.forEach(function(l,p){c.set(p,i(l,a))}),c;if(r.Set&&s instanceof r.Set)return c=new f,a.set(s,c),s.forEach(function(l){c.add(i(l,a))}),c;if(r.Blob&&s instanceof r.Blob)return s.slice(0,s.size,s.type);if(r.Buffer&&r.Buffer.isBuffer(s))return c=r.Buffer.allocUnsafe?r.Buffer.allocUnsafe(s.length):new f(s.length),a.set(s,c),s.copy(c),c;if(r.ArrayBuffer){if(r.ArrayBuffer.isView(s))return c=new f(s.buffer.slice(0)),a.set(s,c),c;if(s instanceof r.ArrayBuffer)return c=s.slice(0),a.set(s,c),c}return typeof s.then=="function"||s instanceof Error||r.WeakMap&&s instanceof r.WeakMap||r.WeakSet&&s instanceof r.WeakSet?s:o(s,r,i,a)};return i(e,by())}_r.default=_r;_r.strict=function(t,n){return _r(t,{isStrict:!0,realm:n?n.realm:void 0})};var Ay=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n 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 i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0},Qu=typeof Symbol<"u"&&Symbol,Cy=Ay,Ry=function(){return typeof Qu!="function"||typeof Symbol!="function"||typeof Qu("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Cy()},Xu={foo:{}},Ny=Object,Py=function(){return{__proto__:Xu}.foo===Xu.foo&&!({__proto__:null}instanceof Ny)},Iy="Function.prototype.bind called on incompatible ",Ga=Array.prototype.slice,Ly=Object.prototype.toString,My="[object Function]",ky=function(t){var n=this;if(typeof n!="function"||Ly.call(n)!==My)throw new TypeError(Iy+n);for(var r=Ga.call(arguments,1),o,i=function(){if(this instanceof o){var c=n.apply(this,r.concat(Ga.call(arguments)));return Object(c)===c?c:this}else return n.apply(t,r.concat(Ga.call(arguments)))},s=Math.max(0,n.length-r.length),a=[],u=0;u<s;u++)a.push("$"+u);if(o=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var f=function(){};f.prototype=n.prototype,o.prototype=new f,f.prototype=null}return o},By=ky,Pc=Function.prototype.bind||By,Fy=Pc,Uy=Fy.call(Function.call,Object.prototype.hasOwnProperty),ge,An=SyntaxError,Qd=Function,On=TypeError,Wa=function(e){try{return Qd('"use strict"; return ('+e+").constructor;")()}catch{}},Qr=Object.getOwnPropertyDescriptor;if(Qr)try{Qr({},"")}catch{Qr=null}var Va=function(){throw new On},Dy=Qr?function(){try{return arguments.callee,Va}catch{try{return Qr(arguments,"callee").get}catch{return Va}}}():Va,En=Ry(),$y=Py(),ze=Object.getPrototypeOf||($y?function(e){return e.__proto__}:null),Sn={},jy=typeof Uint8Array>"u"||!ze?ge:ze(Uint8Array),Xr={"%AggregateError%":typeof AggregateError>"u"?ge:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ge:ArrayBuffer,"%ArrayIteratorPrototype%":En&&ze?ze([][Symbol.iterator]()):ge,"%AsyncFromSyncIteratorPrototype%":ge,"%AsyncFunction%":Sn,"%AsyncGenerator%":Sn,"%AsyncGeneratorFunction%":Sn,"%AsyncIteratorPrototype%":Sn,"%Atomics%":typeof Atomics>"u"?ge:Atomics,"%BigInt%":typeof BigInt>"u"?ge:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ge:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ge:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ge:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ge:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ge:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ge:FinalizationRegistry,"%Function%":Qd,"%GeneratorFunction%":Sn,"%Int8Array%":typeof Int8Array>"u"?ge:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ge:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ge:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":En&&ze?ze(ze([][Symbol.iterator]())):ge,"%JSON%":typeof JSON=="object"?JSON:ge,"%Map%":typeof Map>"u"?ge:Map,"%MapIteratorPrototype%":typeof Map>"u"||!En||!ze?ge:ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ge:Promise,"%Proxy%":typeof Proxy>"u"?ge:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ge:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ge:Set,"%SetIteratorPrototype%":typeof Set>"u"||!En||!ze?ge:ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ge:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":En&&ze?ze(""[Symbol.iterator]()):ge,"%Symbol%":En?Symbol:ge,"%SyntaxError%":An,"%ThrowTypeError%":Dy,"%TypedArray%":jy,"%TypeError%":On,"%Uint8Array%":typeof Uint8Array>"u"?ge:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ge:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ge:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ge:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ge:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ge:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ge:WeakSet};if(ze)try{null.error}catch(e){var Hy=ze(ze(e));Xr["%Error.prototype%"]=Hy}var qy=function e(t){var n;if(t==="%AsyncFunction%")n=Wa("async function () {}");else if(t==="%GeneratorFunction%")n=Wa("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Wa("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&ze&&(n=ze(o.prototype))}return Xr[t]=n,n},Ju={"%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"]},Ki=Pc,Bo=Uy,Gy=Ki.call(Function.call,Array.prototype.concat),Wy=Ki.call(Function.apply,Array.prototype.splice),Zu=Ki.call(Function.call,String.prototype.replace),Fo=Ki.call(Function.call,String.prototype.slice),Vy=Ki.call(Function.call,RegExp.prototype.exec),zy=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Yy=/\\(\\)?/g,Ky=function(t){var n=Fo(t,0,1),r=Fo(t,-1);if(n==="%"&&r!=="%")throw new An("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new An("invalid intrinsic syntax, expected opening `%`");var o=[];return Zu(t,zy,function(i,s,a,u){o[o.length]=a?Zu(u,Yy,"$1"):s||i}),o},Qy=function(t,n){var r=t,o;if(Bo(Ju,r)&&(o=Ju[r],r="%"+o[0]+"%"),Bo(Xr,r)){var i=Xr[r];if(i===Sn&&(i=qy(r)),typeof i>"u"&&!n)throw new On("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new An("intrinsic "+t+" does not exist!")},Ic=function(t,n){if(typeof t!="string"||t.length===0)throw new On("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new On('"allowMissing" argument must be a boolean');if(Vy(/^%?[^%]*%?$/,t)===null)throw new An("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Ky(t),o=r.length>0?r[0]:"",i=Qy("%"+o+"%",n),s=i.name,a=i.value,u=!1,f=i.alias;f&&(o=f[0],Wy(r,Gy([0,1],f)));for(var c=1,h=!0;c<r.length;c+=1){var d=r[c],l=Fo(d,0,1),p=Fo(d,-1);if((l==='"'||l==="'"||l==="`"||p==='"'||p==="'"||p==="`")&&l!==p)throw new An("property names with quotes must have matching quotes");if((d==="constructor"||!h)&&(u=!0),o+="."+d,s="%"+o+"%",Bo(Xr,s))a=Xr[s];else if(a!=null){if(!(d in a)){if(!n)throw new On("base intrinsic for "+t+" exists, but the property is not available.");return}if(Qr&&c+1>=r.length){var m=Qr(a,d);h=!!m,h&&"get"in m&&!("originalValue"in m.get)?a=m.get:a=a[d]}else h=Bo(a,d),a=a[d];h&&!u&&(Xr[s]=a)}}return a},Xd={exports:{}};(function(e){var t=Pc,n=Ic,r=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||t.call(o,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),u=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var d=i(t,o,arguments);if(s&&a){var l=s(d,"length");l.configurable&&a(d,"length",{value:1+u(0,h.length-(arguments.length-1))})}return d};var f=function(){return i(t,r,arguments)};a?a(e.exports,"apply",{value:f}):e.exports.apply=f})(Xd);var Xy=Xd.exports,Jd=Ic,Zd=Xy,Jy=Zd(Jd("String.prototype.indexOf")),Zy=function(t,n){var r=Jd(t,!!n);return typeof r=="function"&&Jy(t,".prototype.")>-1?Zd(r):r};const ev={},tv=Object.freeze(Object.defineProperty({__proto__:null,default:ev},Symbol.toStringTag,{value:"Module"})),rv=Yi(tv);var Lc=typeof Map=="function"&&Map.prototype,za=Object.getOwnPropertyDescriptor&&Lc?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Uo=Lc&&za&&typeof za.get=="function"?za.get:null,el=Lc&&Map.prototype.forEach,Mc=typeof Set=="function"&&Set.prototype,Ya=Object.getOwnPropertyDescriptor&&Mc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Do=Mc&&Ya&&typeof Ya.get=="function"?Ya.get:null,tl=Mc&&Set.prototype.forEach,nv=typeof WeakMap=="function"&&WeakMap.prototype,$i=nv?WeakMap.prototype.has:null,iv=typeof WeakSet=="function"&&WeakSet.prototype,ji=iv?WeakSet.prototype.has:null,ov=typeof WeakRef=="function"&&WeakRef.prototype,rl=ov?WeakRef.prototype.deref:null,av=Boolean.prototype.valueOf,sv=Object.prototype.toString,cv=Function.prototype.toString,uv=String.prototype.match,kc=String.prototype.slice,yr=String.prototype.replace,lv=String.prototype.toUpperCase,nl=String.prototype.toLowerCase,eh=RegExp.prototype.test,il=Array.prototype.concat,Ut=Array.prototype.join,fv=Array.prototype.slice,ol=Math.floor,Js=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ka=Object.getOwnPropertySymbols,Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="object",rt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Cn||"symbol")?Symbol.toStringTag:null,th=Object.prototype.propertyIsEnumerable,al=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function sl(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||eh.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-ol(-e):ol(e);if(r!==e){var o=String(r),i=kc.call(t,o.length+1);return yr.call(o,n,"$&_")+"."+yr.call(yr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return yr.call(t,n,"$&_")}var ec=rv,cl=ec.custom,ul=nh(cl)?cl:null,dv=function e(t,n,r,o){var i=n||{};if(gr(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(gr(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=gr(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(gr(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(gr(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.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 oh(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return a?sl(t,u):u}if(typeof t=="bigint"){var f=String(t)+"n";return a?sl(t,f):f}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return tc(t)?"[Array]":"[Object]";var h=Nv(i,r);if(typeof o>"u")o=[];else if(ih(o,t)>=0)return"[Circular]";function d(Y,oe,Q){if(oe&&(o=fv.call(o),o.push(oe)),Q){var M={depth:i.depth};return gr(i,"quoteStyle")&&(M.quoteStyle=i.quoteStyle),e(Y,M,r+1,o)}return e(Y,i,r+1,o)}if(typeof t=="function"&&!ll(t)){var l=bv(t),p=so(t,d);return"[Function"+(l?": "+l:" (anonymous)")+"]"+(p.length>0?" { "+Ut.call(p,", ")+" }":"")}if(nh(t)){var m=Cn?yr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Zs.call(t);return typeof t=="object"&&!Cn?hi(m):m}if(Av(t)){for(var E="<"+nl.call(String(t.nodeName)),T=t.attributes||[],_=0;_<T.length;_++)E+=" "+T[_].name+"="+rh(hv(T[_].value),"double",i);return E+=">",t.childNodes&&t.childNodes.length&&(E+="..."),E+="</"+nl.call(String(t.nodeName))+">",E}if(tc(t)){if(t.length===0)return"[]";var b=so(t,d);return h&&!Rv(b)?"["+rc(b,h)+"]":"[ "+Ut.call(b,", ")+" ]"}if(mv(t)){var A=so(t,d);return!("cause"in Error.prototype)&&"cause"in t&&!th.call(t,"cause")?"{ ["+String(t)+"] "+Ut.call(il.call("[cause]: "+d(t.cause),A),", ")+" }":A.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ut.call(A,", ")+" }"}if(typeof t=="object"&&s){if(ul&&typeof t[ul]=="function"&&ec)return ec(t,{depth:c-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(wv(t)){var w=[];return el&&el.call(t,function(Y,oe){w.push(d(oe,t,!0)+" => "+d(Y,t))}),fl("Map",Uo.call(t),w,h)}if(xv(t)){var N=[];return tl&&tl.call(t,function(Y){N.push(d(Y,t))}),fl("Set",Do.call(t),N,h)}if(Sv(t))return Qa("WeakMap");if(Ov(t))return Qa("WeakSet");if(Tv(t))return Qa("WeakRef");if(yv(t))return hi(d(Number(t)));if(_v(t))return hi(d(Js.call(t)));if(vv(t))return hi(av.call(t));if(gv(t))return hi(d(String(t)));if(!pv(t)&&!ll(t)){var F=so(t,d),B=al?al(t)===Object.prototype:t instanceof Object||t.constructor===Object,G=t instanceof Object?"":"null prototype",W=!B&&rt&&Object(t)===t&&rt in t?kc.call(br(t),8,-1):G?"Object":"",V=B||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",H=V+(W||G?"["+Ut.call(il.call([],W||[],G||[]),": ")+"] ":"");return F.length===0?H+"{}":h?H+"{"+rc(F,h)+"}":H+"{ "+Ut.call(F,", ")+" }"}return String(t)};function rh(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function hv(e){return yr.call(String(e),/"/g,"&quot;")}function tc(e){return br(e)==="[object Array]"&&(!rt||!(typeof e=="object"&&rt in e))}function pv(e){return br(e)==="[object Date]"&&(!rt||!(typeof e=="object"&&rt in e))}function ll(e){return br(e)==="[object RegExp]"&&(!rt||!(typeof e=="object"&&rt in e))}function mv(e){return br(e)==="[object Error]"&&(!rt||!(typeof e=="object"&&rt in e))}function gv(e){return br(e)==="[object String]"&&(!rt||!(typeof e=="object"&&rt in e))}function yv(e){return br(e)==="[object Number]"&&(!rt||!(typeof e=="object"&&rt in e))}function vv(e){return br(e)==="[object Boolean]"&&(!rt||!(typeof e=="object"&&rt in e))}function nh(e){if(Cn)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Zs)return!1;try{return Zs.call(e),!0}catch{}return!1}function _v(e){if(!e||typeof e!="object"||!Js)return!1;try{return Js.call(e),!0}catch{}return!1}var Ev=Object.prototype.hasOwnProperty||function(e){return e in this};function gr(e,t){return Ev.call(e,t)}function br(e){return sv.call(e)}function bv(e){if(e.name)return e.name;var t=uv.call(cv.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ih(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function wv(e){if(!Uo||!e||typeof e!="object")return!1;try{Uo.call(e);try{Do.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Sv(e){if(!$i||!e||typeof e!="object")return!1;try{$i.call(e,$i);try{ji.call(e,ji)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Tv(e){if(!rl||!e||typeof e!="object")return!1;try{return rl.call(e),!0}catch{}return!1}function xv(e){if(!Do||!e||typeof e!="object")return!1;try{Do.call(e);try{Uo.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Ov(e){if(!ji||!e||typeof e!="object")return!1;try{ji.call(e,ji);try{$i.call(e,$i)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Av(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function oh(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return oh(kc.call(e,0,t.maxStringLength),t)+r}var o=yr.call(yr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Cv);return rh(o,"single",t)}function Cv(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+lv.call(t.toString(16))}function hi(e){return"Object("+e+")"}function Qa(e){return e+" { ? }"}function fl(e,t,n,r){var o=r?rc(n,r):Ut.call(n,", ");return e+" ("+t+") {"+o+"}"}function Rv(e){for(var t=0;t<e.length;t++)if(ih(e[t],`
26
+ `)>=0)return!1;return!0}function Nv(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Ut.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Ut.call(Array(t+1),n)}}function rc(e,t){if(e.length===0)return"";var n=`
27
27
  `+t.prev+t.base;return n+Ut.call(e,","+n)+`
28
- `+t.prev}function ao(e,t){var n=Xs(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=gr(e,o)?t(e[o],e):""}var i=typeof za=="function"?za(e):[],s;if(An){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var l in e)gr(e,l)&&(n&&String(Number(l))===l&&l<e.length||An&&s["$"+l]instanceof Symbol||(Xd.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof za=="function")for(var f=0;f<i.length;f++)Jd.call(e,i[f])&&r.push("["+t(i[f])+"]: "+t(e[i[f]],e));return r}var Ic=Cc,In=Yy,Ov=sv,Av=Ic("%TypeError%"),so=Ic("%WeakMap%",!0),co=Ic("%Map%",!0),Cv=In("WeakMap.prototype.get",!0),Rv=In("WeakMap.prototype.set",!0),Nv=In("WeakMap.prototype.has",!0),Pv=In("Map.prototype.get",!0),Iv=In("Map.prototype.set",!0),Lv=In("Map.prototype.has",!0),Lc=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},kv=function(e,t){var n=Lc(e,t);return n&&n.value},Mv=function(e,t,n){var r=Lc(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},Bv=function(e,t){return!!Lc(e,t)},Fv=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new Av("Side channel does not contain "+Ov(i))},get:function(i){if(so&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Cv(t,i)}else if(co){if(n)return Pv(n,i)}else if(r)return kv(r,i)},has:function(i){if(so&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Nv(t,i)}else if(co){if(n)return Lv(n,i)}else if(r)return Bv(r,i);return!1},set:function(i,s){so&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new so),Rv(t,i,s)):co?(n||(n=new co),Iv(n,i,s)):(r||(r={key:{},next:null}),Mv(r,i,s))}};return o},Uv=String.prototype.replace,Dv=/%20/g,Ka={RFC1738:"RFC1738",RFC3986:"RFC3986"},kc={default:Ka.RFC3986,formatters:{RFC1738:function(e){return Uv.call(e,Dv,"+")},RFC3986:function(e){return String(e)}},RFC1738:Ka.RFC1738,RFC3986:Ka.RFC3986},$v=kc,Qa=Object.prototype.hasOwnProperty,Yr=Array.isArray,Mt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),jv=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Yr(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},nh=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},Hv=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Yr(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Qa.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return Yr(t)&&!Yr(n)&&(o=nh(t,r)),Yr(t)&&Yr(n)?(n.forEach(function(i,s){if(Qa.call(t,s)){var a=t[s];a&&typeof a=="object"&&i&&typeof i=="object"?t[s]=e(a,i,r):t.push(i)}else t[s]=i}),t):Object.keys(n).reduce(function(i,s){var a=n[s];return Qa.call(i,s)?i[s]=e(i[s],a,r):i[s]=a,i},o)},qv=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},Gv=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},Wv=function(t,n,r,o,i){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;++l){var f=s.charCodeAt(l);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===$v.RFC1738&&(f===40||f===41)){a+=s.charAt(l);continue}if(f<128){a=a+Mt[f];continue}if(f<2048){a=a+(Mt[192|f>>6]+Mt[128|f&63]);continue}if(f<55296||f>=57344){a=a+(Mt[224|f>>12]+Mt[128|f>>6&63]+Mt[128|f&63]);continue}l+=1,f=65536+((f&1023)<<10|s.charCodeAt(l)&1023),a+=Mt[240|f>>18]+Mt[128|f>>12&63]+Mt[128|f>>6&63]+Mt[128|f&63]}return a},Vv=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],s=i.obj[i.prop],a=Object.keys(s),l=0;l<a.length;++l){var f=a[l],c=s[f];typeof c=="object"&&c!==null&&r.indexOf(c)===-1&&(n.push({obj:s,prop:f}),r.push(c))}return jv(n),t},zv=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Yv=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Kv=function(t,n){return[].concat(t,n)},Qv=function(t,n){if(Yr(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},ih={arrayToObject:nh,assign:qv,combine:Kv,compact:Vv,decode:Gv,encode:Wv,isBuffer:Yv,isRegExp:zv,maybeMap:Qv,merge:Hv},oh=Fv,Io=ih,$i=kc,Xv=Object.prototype.hasOwnProperty,cl={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},nr=Array.isArray,Jv=Array.prototype.push,ah=function(e,t){Jv.apply(e,nr(t)?t:[t])},Zv=Date.prototype.toISOString,ul=$i.default,et={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Io.encode,encodeValuesOnly:!1,format:ul,formatter:$i.formatters[ul],indices:!1,serializeDate:function(t){return Zv.call(t)},skipNulls:!1,strictNullHandling:!1},e0=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Xa={},t0=function e(t,n,r,o,i,s,a,l,f,c,h,d,u,p,m,E){for(var T=t,_=E,b=0,A=!1;(_=_.get(Xa))!==void 0&&!A;){var w=_.get(t);if(b+=1,typeof w<"u"){if(w===b)throw new RangeError("Cyclic object value");A=!0}typeof _.get(Xa)>"u"&&(b=0)}if(typeof l=="function"?T=l(n,T):T instanceof Date?T=h(T):r==="comma"&&nr(T)&&(T=Io.maybeMap(T,function(k){return k instanceof Date?h(k):k})),T===null){if(i)return a&&!p?a(n,et.encoder,m,"key",d):n;T=""}if(e0(T)||Io.isBuffer(T)){if(a){var P=p?n:a(n,et.encoder,m,"key",d);return[u(P)+"="+u(a(T,et.encoder,m,"value",d))]}return[u(n)+"="+u(String(T))]}var F=[];if(typeof T>"u")return F;var B;if(r==="comma"&&nr(T))p&&a&&(T=Io.maybeMap(T,a)),B=[{value:T.length>0?T.join(",")||null:void 0}];else if(nr(l))B=l;else{var W=Object.keys(T);B=f?W.sort(f):W}for(var G=o&&nr(T)&&T.length===1?n+"[]":n,V=0;V<B.length;++V){var H=B[V],Y=typeof H=="object"&&typeof H.value<"u"?H.value:T[H];if(!(s&&Y===null)){var oe=nr(T)?typeof r=="function"?r(G,H):G:G+(c?"."+H:"["+H+"]");E.set(t,b);var K=oh();K.set(Xa,E),ah(F,e(Y,oe,r,o,i,s,r==="comma"&&p&&nr(T)?null:a,l,f,c,h,d,u,p,m,K))}}return F},r0=function(t){if(!t)return et;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||et.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 r=$i.default;if(typeof t.format<"u"){if(!Xv.call($i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=$i.formatters[r],i=et.filter;return(typeof t.filter=="function"||nr(t.filter))&&(i=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:et.addQueryPrefix,allowDots:typeof t.allowDots>"u"?et.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:et.charsetSentinel,delimiter:typeof t.delimiter>"u"?et.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:et.encode,encoder:typeof t.encoder=="function"?t.encoder:et.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:et.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:et.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:et.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:et.strictNullHandling}},n0=function(e,t){var n=e,r=r0(t),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):nr(r.filter)&&(i=r.filter,o=i);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in cl?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var l=cl[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=l==="comma"&&t&&t.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var c=oh(),h=0;h<o.length;++h){var d=o[h];r.skipNulls&&n[d]===null||ah(s,t0(n[d],d,l,f,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}var u=s.join(r.delimiter),p=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),u.length>0?p+u:""},Cn=ih,Zs=Object.prototype.hasOwnProperty,i0=Array.isArray,We={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Cn.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o0=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},sh=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},a0="utf8=%26%2310003%3B",s0="utf8=%E2%9C%93",c0=function(t,n){var r={__proto__:null},o=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=n.parameterLimit===1/0?void 0:n.parameterLimit,s=o.split(n.delimiter,i),a=-1,l,f=n.charset;if(n.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===s0?f="utf-8":s[l]===a0&&(f="iso-8859-1"),a=l,l=s.length);for(l=0;l<s.length;++l)if(l!==a){var c=s[l],h=c.indexOf("]="),d=h===-1?c.indexOf("="):h+1,u,p;d===-1?(u=n.decoder(c,We.decoder,f,"key"),p=n.strictNullHandling?null:""):(u=n.decoder(c.slice(0,d),We.decoder,f,"key"),p=Cn.maybeMap(sh(c.slice(d+1),n),function(m){return n.decoder(m,We.decoder,f,"value")})),p&&n.interpretNumericEntities&&f==="iso-8859-1"&&(p=o0(p)),c.indexOf("[]=")>-1&&(p=i0(p)?[p]:p),Zs.call(r,u)?r[u]=Cn.combine(r[u],p):r[u]=p}return r},u0=function(e,t,n,r){for(var o=r?t:sh(t,n),i=e.length-1;i>=0;--i){var s,a=e[i];if(a==="[]"&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,f=parseInt(l,10);!n.parseArrays&&l===""?s={0:o}:!isNaN(f)&&a!==l&&String(f)===l&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(s=[],s[f]=o):l!=="__proto__"&&(s[l]=o)}o=s}return o},l0=function(t,n,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=r.depth>0&&s.exec(i),f=l?i.slice(0,l.index):i,c=[];if(f){if(!r.plainObjects&&Zs.call(Object.prototype,f)&&!r.allowPrototypes)return;c.push(f)}for(var h=0;r.depth>0&&(l=a.exec(i))!==null&&h<r.depth;){if(h+=1,!r.plainObjects&&Zs.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(l[1])}return l&&c.push("["+i.slice(l.index)+"]"),u0(c,n,r,o)}},f0=function(t){if(!t)return We;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 n=typeof t.charset>"u"?We.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?We.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:We.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:We.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:We.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:We.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:We.comma,decoder:typeof t.decoder=="function"?t.decoder:We.decoder,delimiter:typeof t.delimiter=="string"||Cn.isRegExp(t.delimiter)?t.delimiter:We.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:We.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:We.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:We.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:We.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:We.strictNullHandling}},d0=function(e,t){var n=f0(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?c0(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),s=0;s<i.length;++s){var a=i[s],l=l0(a,r[a],n,typeof e=="string");o=Cn.merge(o,l,n)}return n.allowSparse===!0?o:Cn.compact(o)},h0=n0,p0=d0,m0=kc,g0={formats:m0,parse:p0,stringify:h0};const y0=jt(g0);var v0="[object String]",_0=Object.prototype,E0=_0.toString,b0=Array.isArray;function w0(e){return!!e&&typeof e=="object"}function S0(e){return typeof e=="string"||!b0(e)&&w0(e)&&E0.call(e)==v0}var T0=S0;const ll=jt(T0);var Mc={exports:{}};class ch extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}const x0=({limit:e,interval:t,strict:n})=>{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 r=new Map;let o=0,i=0;function s(){const c=Date.now();return c-o>t?(i=1,o=c,0):(i<e?i++:(o+=t,i=1),o-c)}const a=[];function l(){const c=Date.now();if(a.length<e)return a.push(c),0;const h=a.shift()+t;return c>=h?(a.push(c),0):(a.push(h),h-c)}const f=n?l:s;return c=>{const h=function(...d){if(!h.isEnabled)return(async()=>c.apply(this,d))();let u;return new Promise((p,m)=>{u=setTimeout(()=>{p(c.apply(this,d)),r.delete(u)},f()),r.set(u,m)})};return h.abort=()=>{for(const d of r.keys())clearTimeout(d),r.get(d)(new ch);r.clear(),a.splice(0,a.length)},h.isEnabled=!0,h}};Mc.exports=x0;Mc.exports.AbortError=ch;var O0=Mc.exports;const A0=jt(O0);var C0="[object Object]";function R0(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function N0(e,t){return function(n){return e(t(n))}}var P0=Function.prototype,uh=Object.prototype,lh=P0.toString,I0=uh.hasOwnProperty,L0=lh.call(Object),k0=uh.toString,M0=N0(Object.getPrototypeOf,Object);function B0(e){return!!e&&typeof e=="object"}function F0(e){if(!B0(e)||k0.call(e)!=C0||R0(e))return!1;var t=M0(e);if(t===null)return!0;var n=I0.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&lh.call(n)==L0}var U0=F0;const uo=jt(U0);function D0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],l=!0,f=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(c){f=!0,o=c}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw o}}return a}}function fl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fl(Object(n),!0).forEach(function(r){$0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ec(e){"@babel/helpers - typeof";return ec=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},ec(e)}function tc(){tc=function(o,i){return new n(o,void 0,i)};var e=RegExp.prototype,t=new WeakMap;function n(o,i,s){var a=new RegExp(o,i);return t.set(a,s||t.get(o)),Do(a,n.prototype)}function r(o,i){var s=t.get(i);return Object.keys(s).reduce(function(a,l){var f=s[l];if(typeof f=="number")a[l]=o[f];else{for(var c=0;o[f[c]]===void 0&&c+1<f.length;)c++;a[l]=o[f[c]]}return a},Object.create(null))}return j0(n,RegExp),n.prototype.exec=function(o){var i=e.exec.call(this,o);if(i){i.groups=r(i,this);var s=i.indices;s&&(s.groups=r(s,this))}return i},n.prototype[Symbol.replace]=function(o,i){if(typeof i=="string"){var s=t.get(this);return e[Symbol.replace].call(this,o,i.replace(/\$<([^>]+)>/g,function(l,f){var c=s[f];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof i=="function"){var a=this;return e[Symbol.replace].call(this,o,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(r(l,a)),i.apply(this,l)})}return e[Symbol.replace].call(this,o,i)},tc.apply(this,arguments)}function $0(e,t,n){return t=z0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j0(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&&Do(e,t)}function Do(e,t){return Do=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Do(e,t)}function H0(e,t){return q0(e)||D0(e,t)||fh(e,t)||G0()}function q0(e){if(Array.isArray(e))return e}function fh(e,t){if(e){if(typeof e=="string")return dl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dl(e,t)}}function dl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function G0(){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 W0(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=fh(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}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 i=!0,s=!1,a;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return i=l.done,l},e:function(l){s=!0,a=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function V0(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function z0(e){var t=V0(e,"string");return typeof t=="symbol"?t:String(t)}function Y0(){return typeof process<"u"&&!process.browser}function K0(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function Q0(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function X0(){return window}function rc(){}var nc=tc(/(\d+)(%)/,{value:1});function Ja(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:7,n=t;if(nc.test(e)){var r,o=(r=e.match(nc))===null||r===void 0?void 0:r.groups;if(o&&o.value){var i=parseInt(o.value)/100;n=Math.round(t*i)}}return Math.min(30,Math.max(1,n))}function hl(e,t){return t("info","Throttle request to ".concat(e,"/s")),A0({limit:e,interval:1e3,strict:!1})}var J0=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",n=e.defaults.logHandler,r=n===void 0?rc:n,o=ll(t)?Ja(t):Ja("auto",t),i=hl(o,r),s=!1,a=e.interceptors.request.use(function(f){return i(function(){return f})()},function(f){return Promise.reject(f)}),l=e.interceptors.response.use(function(f){if(!s&&ll(t)&&(t==="auto"||nc.test(t))&&f.headers&&f.headers["x-contentful-ratelimit-second-limit"]){var c=parseInt(f.headers["x-contentful-ratelimit-second-limit"]),h=Ja(t,c);h!==o&&(a&&e.interceptors.request.eject(a),o=h,i=hl(h,r),a=e.interceptors.request.use(function(d){return i(function(){return d})()},function(d){return Promise.reject(d)})),s=!0}return f},function(f){return Promise.reject(f)});return function(){e.interceptors.request.eject(a),e.interceptors.response.eject(l)}},Z0=function(t){return new Promise(function(n){setTimeout(n,t)})},e_=function(t){return Math.pow(Math.SQRT2,t)};function t_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,n=e.defaults,r=n.responseLogger,o=r===void 0?rc:r,i=n.requestLogger,s=i===void 0?rc:i;e.interceptors.request.use(function(a){return s(a),a},function(a){return s(a),Promise.reject(a)}),e.interceptors.response.use(function(a){return o(a),a},function(a){var l=a.response,f=a.config;if(o(a),!f||!e.defaults.retryOnError)return Promise.reject(a);var c=f.attempts||1;if(c>t)return a.attempts=f.attempts,Promise.reject(a);var h=null,d=e_(c);return l?l.status>=500&&l.status<600?h="Server ".concat(l.status):l.status===429&&(h="Rate limit",l.headers&&a.response.headers["x-contentful-ratelimit-reset"]&&(d=l.headers["x-contentful-ratelimit-reset"])):h="Connection",h?(d=Math.floor(d*1e3+Math.random()*200+500),e.defaults.logHandler("warning","".concat(h," error occurred. Waiting for ").concat(d," ms before retrying...")),f.attempts=c+1,delete f.httpAgent,delete f.httpsAgent,Z0(d).then(function(){return e(f)})):Promise.reject(a)})}function r_(e,t){e.interceptors.request.use(function(n){return t().then(function(r){return n.headers=Sn(Sn({},n.headers),{},{Authorization:"Bearer ".concat(r)}),n})})}var n_=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function dh(e,t){var n={insecure:!1,retryOnError:!0,logHandler:function(m,E){if(m==="error"&&E){var T=[E.name,E.message].filter(function(_){return _}).join(" - ");console.error("[error] ".concat(T)),console.error(E);return}console.log("[".concat(m,"] ").concat(E))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,proxy:!1,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824},r=Sn(Sn({},n),t);if(!r.accessToken){var o=new TypeError("Expected parameter accessToken");throw r.logHandler("error",o),o}var i=r.insecure?"http":"https",s=r.space?"".concat(r.space,"/"):"",a=r.defaultHostname,l=r.insecure?80:443;if(r.host&&n_.test(r.host)){var f=r.host.split(":");if(f.length===2){var c=H0(f,2);a=c[0],l=c[1]}else a=f[0]}r.basePath&&(r.basePath="/".concat(r.basePath.split("/").filter(Boolean).join("/")));var h=t.baseURL||"".concat(i,"://").concat(a,":").concat(l).concat(r.basePath,"/spaces/").concat(s);!r.headers.Authorization&&typeof r.accessToken!="function"&&(r.headers.Authorization="Bearer "+r.accessToken);var d={baseURL:h,headers:r.headers,httpAgent:r.httpAgent,httpsAgent:r.httpsAgent,paramsSerializer:y0.stringify,proxy:r.proxy,timeout:r.timeout,adapter:r.adapter,maxContentLength:r.maxContentLength,maxBodyLength:r.maxBodyLength,logHandler:r.logHandler,responseLogger:r.responseLogger,requestLogger:r.requestLogger,retryOnError:r.retryOnError},u=e.create(d);return u.httpClientParams=t,u.cloneWithNewParams=function(p){return dh(e,Sn(Sn({},_r(t)),p))},r.onBeforeRequest&&u.interceptors.request.use(r.onBeforeRequest),typeof r.accessToken=="function"&&r_(u,r.accessToken),r.throttle&&J0(u,r.throttle),t_(u,r.retryLimit),r.onError&&u.interceptors.response.use(function(p){return p},r.onError),u}function i_(e){var t=e.query,n={};return delete t.resolveLinks,n.params=_r(t),n}function o_(e,t){if(!(t in e)){var n=new Error;throw n.name="PropertyMissing",n.message="Required property ".concat(t,` missing from:
28
+ `+t.prev}function so(e,t){var n=tc(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=gr(e,o)?t(e[o],e):""}var i=typeof Ka=="function"?Ka(e):[],s;if(Cn){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in e)gr(e,u)&&(n&&String(Number(u))===u&&u<e.length||Cn&&s["$"+u]instanceof Symbol||(eh.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if(typeof Ka=="function")for(var f=0;f<i.length;f++)th.call(e,i[f])&&r.push("["+t(i[f])+"]: "+t(e[i[f]],e));return r}var Bc=Ic,Ln=Zy,Pv=dv,Iv=Bc("%TypeError%"),co=Bc("%WeakMap%",!0),uo=Bc("%Map%",!0),Lv=Ln("WeakMap.prototype.get",!0),Mv=Ln("WeakMap.prototype.set",!0),kv=Ln("WeakMap.prototype.has",!0),Bv=Ln("Map.prototype.get",!0),Fv=Ln("Map.prototype.set",!0),Uv=Ln("Map.prototype.has",!0),Fc=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},Dv=function(e,t){var n=Fc(e,t);return n&&n.value},$v=function(e,t,n){var r=Fc(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},jv=function(e,t){return!!Fc(e,t)},Hv=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new Iv("Side channel does not contain "+Pv(i))},get:function(i){if(co&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Lv(t,i)}else if(uo){if(n)return Bv(n,i)}else if(r)return Dv(r,i)},has:function(i){if(co&&i&&(typeof i=="object"||typeof i=="function")){if(t)return kv(t,i)}else if(uo){if(n)return Uv(n,i)}else if(r)return jv(r,i);return!1},set:function(i,s){co&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new co),Mv(t,i,s)):uo?(n||(n=new uo),Fv(n,i,s)):(r||(r={key:{},next:null}),$v(r,i,s))}};return o},qv=String.prototype.replace,Gv=/%20/g,Xa={RFC1738:"RFC1738",RFC3986:"RFC3986"},Uc={default:Xa.RFC3986,formatters:{RFC1738:function(e){return qv.call(e,Gv,"+")},RFC3986:function(e){return String(e)}},RFC1738:Xa.RFC1738,RFC3986:Xa.RFC3986},Wv=Uc,Ja=Object.prototype.hasOwnProperty,Yr=Array.isArray,kt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Vv=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Yr(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},ah=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},zv=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Yr(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Ja.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return Yr(t)&&!Yr(n)&&(o=ah(t,r)),Yr(t)&&Yr(n)?(n.forEach(function(i,s){if(Ja.call(t,s)){var a=t[s];a&&typeof a=="object"&&i&&typeof i=="object"?t[s]=e(a,i,r):t.push(i)}else t[s]=i}),t):Object.keys(n).reduce(function(i,s){var a=n[s];return Ja.call(i,s)?i[s]=e(i[s],a,r):i[s]=a,i},o)},Yv=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},Kv=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},Qv=function(t,n,r,o,i){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var a="",u=0;u<s.length;++u){var f=s.charCodeAt(u);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===Wv.RFC1738&&(f===40||f===41)){a+=s.charAt(u);continue}if(f<128){a=a+kt[f];continue}if(f<2048){a=a+(kt[192|f>>6]+kt[128|f&63]);continue}if(f<55296||f>=57344){a=a+(kt[224|f>>12]+kt[128|f>>6&63]+kt[128|f&63]);continue}u+=1,f=65536+((f&1023)<<10|s.charCodeAt(u)&1023),a+=kt[240|f>>18]+kt[128|f>>12&63]+kt[128|f>>6&63]+kt[128|f&63]}return a},Xv=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],s=i.obj[i.prop],a=Object.keys(s),u=0;u<a.length;++u){var f=a[u],c=s[f];typeof c=="object"&&c!==null&&r.indexOf(c)===-1&&(n.push({obj:s,prop:f}),r.push(c))}return Vv(n),t},Jv=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Zv=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},e0=function(t,n){return[].concat(t,n)},t0=function(t,n){if(Yr(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},sh={arrayToObject:ah,assign:Yv,combine:e0,compact:Xv,decode:Kv,encode:Qv,isBuffer:Zv,isRegExp:Jv,maybeMap:t0,merge:zv},ch=Hv,Lo=sh,Hi=Uc,r0=Object.prototype.hasOwnProperty,dl={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},nr=Array.isArray,n0=Array.prototype.push,uh=function(e,t){n0.apply(e,nr(t)?t:[t])},i0=Date.prototype.toISOString,hl=Hi.default,tt={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Lo.encode,encodeValuesOnly:!1,format:hl,formatter:Hi.formatters[hl],indices:!1,serializeDate:function(t){return i0.call(t)},skipNulls:!1,strictNullHandling:!1},o0=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Za={},a0=function e(t,n,r,o,i,s,a,u,f,c,h,d,l,p,m,E){for(var T=t,_=E,b=0,A=!1;(_=_.get(Za))!==void 0&&!A;){var w=_.get(t);if(b+=1,typeof w<"u"){if(w===b)throw new RangeError("Cyclic object value");A=!0}typeof _.get(Za)>"u"&&(b=0)}if(typeof u=="function"?T=u(n,T):T instanceof Date?T=h(T):r==="comma"&&nr(T)&&(T=Lo.maybeMap(T,function(M){return M instanceof Date?h(M):M})),T===null){if(i)return a&&!p?a(n,tt.encoder,m,"key",d):n;T=""}if(o0(T)||Lo.isBuffer(T)){if(a){var N=p?n:a(n,tt.encoder,m,"key",d);return[l(N)+"="+l(a(T,tt.encoder,m,"value",d))]}return[l(n)+"="+l(String(T))]}var F=[];if(typeof T>"u")return F;var B;if(r==="comma"&&nr(T))p&&a&&(T=Lo.maybeMap(T,a)),B=[{value:T.length>0?T.join(",")||null:void 0}];else if(nr(u))B=u;else{var G=Object.keys(T);B=f?G.sort(f):G}for(var W=o&&nr(T)&&T.length===1?n+"[]":n,V=0;V<B.length;++V){var H=B[V],Y=typeof H=="object"&&typeof H.value<"u"?H.value:T[H];if(!(s&&Y===null)){var oe=nr(T)?typeof r=="function"?r(W,H):W:W+(c?"."+H:"["+H+"]");E.set(t,b);var Q=ch();Q.set(Za,E),uh(F,e(Y,oe,r,o,i,s,r==="comma"&&p&&nr(T)?null:a,u,f,c,h,d,l,p,m,Q))}}return F},s0=function(t){if(!t)return tt;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||tt.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 r=Hi.default;if(typeof t.format<"u"){if(!r0.call(Hi.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=Hi.formatters[r],i=tt.filter;return(typeof t.filter=="function"||nr(t.filter))&&(i=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:tt.addQueryPrefix,allowDots:typeof t.allowDots>"u"?tt.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:tt.charsetSentinel,delimiter:typeof t.delimiter>"u"?tt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:tt.encode,encoder:typeof t.encoder=="function"?t.encoder:tt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:tt.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:tt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:tt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:tt.strictNullHandling}},c0=function(e,t){var n=e,r=s0(t),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):nr(r.filter)&&(i=r.filter,o=i);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in dl?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var u=dl[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=u==="comma"&&t&&t.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var c=ch(),h=0;h<o.length;++h){var d=o[h];r.skipNulls&&n[d]===null||uh(s,a0(n[d],d,u,f,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}var l=s.join(r.delimiter),p=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),l.length>0?p+l:""},Rn=sh,nc=Object.prototype.hasOwnProperty,u0=Array.isArray,Ve={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Rn.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},l0=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},lh=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},f0="utf8=%26%2310003%3B",d0="utf8=%E2%9C%93",h0=function(t,n){var r={__proto__:null},o=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=n.parameterLimit===1/0?void 0:n.parameterLimit,s=o.split(n.delimiter,i),a=-1,u,f=n.charset;if(n.charsetSentinel)for(u=0;u<s.length;++u)s[u].indexOf("utf8=")===0&&(s[u]===d0?f="utf-8":s[u]===f0&&(f="iso-8859-1"),a=u,u=s.length);for(u=0;u<s.length;++u)if(u!==a){var c=s[u],h=c.indexOf("]="),d=h===-1?c.indexOf("="):h+1,l,p;d===-1?(l=n.decoder(c,Ve.decoder,f,"key"),p=n.strictNullHandling?null:""):(l=n.decoder(c.slice(0,d),Ve.decoder,f,"key"),p=Rn.maybeMap(lh(c.slice(d+1),n),function(m){return n.decoder(m,Ve.decoder,f,"value")})),p&&n.interpretNumericEntities&&f==="iso-8859-1"&&(p=l0(p)),c.indexOf("[]=")>-1&&(p=u0(p)?[p]:p),nc.call(r,l)?r[l]=Rn.combine(r[l],p):r[l]=p}return r},p0=function(e,t,n,r){for(var o=r?t:lh(t,n),i=e.length-1;i>=0;--i){var s,a=e[i];if(a==="[]"&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var u=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,f=parseInt(u,10);!n.parseArrays&&u===""?s={0:o}:!isNaN(f)&&a!==u&&String(f)===u&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(s=[],s[f]=o):u!=="__proto__"&&(s[u]=o)}o=s}return o},m0=function(t,n,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,u=r.depth>0&&s.exec(i),f=u?i.slice(0,u.index):i,c=[];if(f){if(!r.plainObjects&&nc.call(Object.prototype,f)&&!r.allowPrototypes)return;c.push(f)}for(var h=0;r.depth>0&&(u=a.exec(i))!==null&&h<r.depth;){if(h+=1,!r.plainObjects&&nc.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+i.slice(u.index)+"]"),p0(c,n,r,o)}},g0=function(t){if(!t)return Ve;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 n=typeof t.charset>"u"?Ve.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Ve.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ve.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ve.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ve.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ve.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ve.comma,decoder:typeof t.decoder=="function"?t.decoder:Ve.decoder,delimiter:typeof t.delimiter=="string"||Rn.isRegExp(t.delimiter)?t.delimiter:Ve.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ve.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ve.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ve.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ve.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ve.strictNullHandling}},y0=function(e,t){var n=g0(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?h0(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),s=0;s<i.length;++s){var a=i[s],u=m0(a,r[a],n,typeof e=="string");o=Rn.merge(o,u,n)}return n.allowSparse===!0?o:Rn.compact(o)},v0=c0,_0=y0,E0=Uc,b0={formats:E0,parse:_0,stringify:v0};const w0=jt(b0);var S0="[object String]",T0=Object.prototype,x0=T0.toString,O0=Array.isArray;function A0(e){return!!e&&typeof e=="object"}function C0(e){return typeof e=="string"||!O0(e)&&A0(e)&&x0.call(e)==S0}var R0=C0;const pl=jt(R0);var Dc={exports:{}};class fh extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}const N0=({limit:e,interval:t,strict:n})=>{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 r=new Map;let o=0,i=0;function s(){const c=Date.now();return c-o>t?(i=1,o=c,0):(i<e?i++:(o+=t,i=1),o-c)}const a=[];function u(){const c=Date.now();if(a.length<e)return a.push(c),0;const h=a.shift()+t;return c>=h?(a.push(c),0):(a.push(h),h-c)}const f=n?u:s;return c=>{const h=function(...d){if(!h.isEnabled)return(async()=>c.apply(this,d))();let l;return new Promise((p,m)=>{l=setTimeout(()=>{p(c.apply(this,d)),r.delete(l)},f()),r.set(l,m)})};return h.abort=()=>{for(const d of r.keys())clearTimeout(d),r.get(d)(new fh);r.clear(),a.splice(0,a.length)},h.isEnabled=!0,h}};Dc.exports=N0;Dc.exports.AbortError=fh;var P0=Dc.exports;const I0=jt(P0);var L0="[object Object]";function M0(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function k0(e,t){return function(n){return e(t(n))}}var B0=Function.prototype,dh=Object.prototype,hh=B0.toString,F0=dh.hasOwnProperty,U0=hh.call(Object),D0=dh.toString,$0=k0(Object.getPrototypeOf,Object);function j0(e){return!!e&&typeof e=="object"}function H0(e){if(!j0(e)||D0.call(e)!=L0||M0(e))return!1;var t=$0(e);if(t===null)return!0;var n=F0.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&hh.call(n)==U0}var q0=H0;const lo=jt(q0);function G0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],u=!0,f=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(c){f=!0,o=c}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw o}}return a}}function ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ml(Object(n),!0).forEach(function(r){W0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ml(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ic(e){"@babel/helpers - typeof";return ic=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},ic(e)}function oc(){oc=function(o,i){return new n(o,void 0,i)};var e=RegExp.prototype,t=new WeakMap;function n(o,i,s){var a=new RegExp(o,i);return t.set(a,s||t.get(o)),$o(a,n.prototype)}function r(o,i){var s=t.get(i);return Object.keys(s).reduce(function(a,u){var f=s[u];if(typeof f=="number")a[u]=o[f];else{for(var c=0;o[f[c]]===void 0&&c+1<f.length;)c++;a[u]=o[f[c]]}return a},Object.create(null))}return V0(n,RegExp),n.prototype.exec=function(o){var i=e.exec.call(this,o);if(i){i.groups=r(i,this);var s=i.indices;s&&(s.groups=r(s,this))}return i},n.prototype[Symbol.replace]=function(o,i){if(typeof i=="string"){var s=t.get(this);return e[Symbol.replace].call(this,o,i.replace(/\$<([^>]+)>/g,function(u,f){var c=s[f];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof i=="function"){var a=this;return e[Symbol.replace].call(this,o,function(){var u=arguments;return typeof u[u.length-1]!="object"&&(u=[].slice.call(u)).push(r(u,a)),i.apply(this,u)})}return e[Symbol.replace].call(this,o,i)},oc.apply(this,arguments)}function W0(e,t,n){return t=J0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V0(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&&$o(e,t)}function $o(e,t){return $o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},$o(e,t)}function z0(e,t){return Y0(e)||G0(e,t)||ph(e,t)||K0()}function Y0(e){if(Array.isArray(e))return e}function ph(e,t){if(e){if(typeof e=="string")return gl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gl(e,t)}}function gl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function K0(){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 Q0(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ph(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:o}}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 i=!0,s=!1,a;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){s=!0,a=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function X0(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J0(e){var t=X0(e,"string");return typeof t=="symbol"?t:String(t)}function Z0(){return typeof process<"u"&&!process.browser}function e_(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function t_(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function r_(){return window}function ac(){}var sc=oc(/(\d+)(%)/,{value:1});function es(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:7,n=t;if(sc.test(e)){var r,o=(r=e.match(sc))===null||r===void 0?void 0:r.groups;if(o&&o.value){var i=parseInt(o.value)/100;n=Math.round(t*i)}}return Math.min(30,Math.max(1,n))}function yl(e,t){return t("info","Throttle request to ".concat(e,"/s")),I0({limit:e,interval:1e3,strict:!1})}var n_=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",n=e.defaults.logHandler,r=n===void 0?ac:n,o=pl(t)?es(t):es("auto",t),i=yl(o,r),s=!1,a=e.interceptors.request.use(function(f){return i(function(){return f})()},function(f){return Promise.reject(f)}),u=e.interceptors.response.use(function(f){if(!s&&pl(t)&&(t==="auto"||sc.test(t))&&f.headers&&f.headers["x-contentful-ratelimit-second-limit"]){var c=parseInt(f.headers["x-contentful-ratelimit-second-limit"]),h=es(t,c);h!==o&&(a&&e.interceptors.request.eject(a),o=h,i=yl(h,r),a=e.interceptors.request.use(function(d){return i(function(){return d})()},function(d){return Promise.reject(d)})),s=!0}return f},function(f){return Promise.reject(f)});return function(){e.interceptors.request.eject(a),e.interceptors.response.eject(u)}},i_=function(t){return new Promise(function(n){setTimeout(n,t)})},o_=function(t){return Math.pow(Math.SQRT2,t)};function a_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,n=e.defaults,r=n.responseLogger,o=r===void 0?ac:r,i=n.requestLogger,s=i===void 0?ac:i;e.interceptors.request.use(function(a){return s(a),a},function(a){return s(a),Promise.reject(a)}),e.interceptors.response.use(function(a){return o(a),a},function(a){var u=a.response,f=a.config;if(o(a),!f||!e.defaults.retryOnError)return Promise.reject(a);var c=f.attempts||1;if(c>t)return a.attempts=f.attempts,Promise.reject(a);var h=null,d=o_(c);return u?u.status>=500&&u.status<600?h="Server ".concat(u.status):u.status===429&&(h="Rate limit",u.headers&&a.response.headers["x-contentful-ratelimit-reset"]&&(d=u.headers["x-contentful-ratelimit-reset"])):h="Connection",h?(d=Math.floor(d*1e3+Math.random()*200+500),e.defaults.logHandler("warning","".concat(h," error occurred. Waiting for ").concat(d," ms before retrying...")),f.attempts=c+1,delete f.httpAgent,delete f.httpsAgent,i_(d).then(function(){return e(f)})):Promise.reject(a)})}function s_(e,t){e.interceptors.request.use(function(n){return t().then(function(r){return n.headers=Tn(Tn({},n.headers),{},{Authorization:"Bearer ".concat(r)}),n})})}var c_=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function mh(e,t){var n={insecure:!1,retryOnError:!0,logHandler:function(m,E){if(m==="error"&&E){var T=[E.name,E.message].filter(function(_){return _}).join(" - ");console.error("[error] ".concat(T)),console.error(E);return}console.log("[".concat(m,"] ").concat(E))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,proxy:!1,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824},r=Tn(Tn({},n),t);if(!r.accessToken){var o=new TypeError("Expected parameter accessToken");throw r.logHandler("error",o),o}var i=r.insecure?"http":"https",s=r.space?"".concat(r.space,"/"):"",a=r.defaultHostname,u=r.insecure?80:443;if(r.host&&c_.test(r.host)){var f=r.host.split(":");if(f.length===2){var c=z0(f,2);a=c[0],u=c[1]}else a=f[0]}r.basePath&&(r.basePath="/".concat(r.basePath.split("/").filter(Boolean).join("/")));var h=t.baseURL||"".concat(i,"://").concat(a,":").concat(u).concat(r.basePath,"/spaces/").concat(s);!r.headers.Authorization&&typeof r.accessToken!="function"&&(r.headers.Authorization="Bearer "+r.accessToken);var d={baseURL:h,headers:r.headers,httpAgent:r.httpAgent,httpsAgent:r.httpsAgent,paramsSerializer:w0.stringify,proxy:r.proxy,timeout:r.timeout,adapter:r.adapter,maxContentLength:r.maxContentLength,maxBodyLength:r.maxBodyLength,logHandler:r.logHandler,responseLogger:r.responseLogger,requestLogger:r.requestLogger,retryOnError:r.retryOnError},l=e.create(d);return l.httpClientParams=t,l.cloneWithNewParams=function(p){return mh(e,Tn(Tn({},_r(t)),p))},r.onBeforeRequest&&l.interceptors.request.use(r.onBeforeRequest),typeof r.accessToken=="function"&&s_(l,r.accessToken),r.throttle&&n_(l,r.throttle),a_(l,r.retryLimit),r.onError&&l.interceptors.response.use(function(p){return p},r.onError),l}function u_(e){var t=e.query,n={};return delete t.resolveLinks,n.params=_r(t),n}function l_(e,t){if(!(t in e)){var n=new Error;throw n.name="PropertyMissing",n.message="Required property ".concat(t,` missing from:
31
31
 
32
32
  `).concat(JSON.stringify(e),`
33
33
 
34
- `),n}return!0}function hh(e){var t=Object.getOwnPropertyNames(e),n=W0(t),r;try{for(n.s();!(r=n.n()).done;){var o=r.value,i=e[o];i&&ec(i)==="object"&&hh(i)}}catch(s){n.e(s)}finally{n.f()}return Object.freeze(e)}function a_(e){return hh(e.sys||{}),e}function pl(){var e=X0();if(!e)return null;var t=e.navigator.userAgent,n=e.navigator.platform,r=["Macintosh","MacIntel","MacPPC","Mac68K"],o=["Win32","Win64","Windows","WinCE"],i=["iPhone","iPad","iPod"];return r.indexOf(n)!==-1?"macOS":i.indexOf(n)!==-1?"iOS":o.indexOf(n)!==-1?"Windows":/Android/.test(t)?"Android":/Linux/.test(n)?"Linux":null}function s_(){var e=process.platform||"linux",t=process.version||"0.0.0",n={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in n?"".concat(n[e]||"Linux","/").concat(t):null}function c_(e,t,n,r){var o=[];t&&o.push("app ".concat(t)),n&&o.push("integration ".concat(n)),r&&o.push("feature "+r),o.push("sdk ".concat(e));var i=null;try{K0()?(i=pl(),o.push("platform ReactNative")):Y0()?(i=s_(),o.push("platform node.js/".concat(Q0()))):(i=pl(),o.push("platform browser"))}catch{i=null}return i&&o.push("os ".concat(i)),"".concat(o.filter(function(s){return s!==""}).join("; "),";")}function u_(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return _r(this)}})}function l_(e){var t=e.config,n=e.response,r;if(t&&t.headers&&t.headers.Authorization){var o="...".concat(t.headers.Authorization.toString().substr(-5));t.headers.Authorization="Bearer ".concat(o)}if(!uo(n)||!uo(t))throw e;var i=n==null?void 0:n.data,s={status:n==null?void 0:n.status,statusText:n==null?void 0:n.statusText,message:"",details:{}};uo(t)&&(s.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),i&&uo(i)&&("requestId"in i&&(s.requestId=i.requestId||"UNKNOWN"),"message"in i&&(s.message=i.message||""),"details"in i&&(s.details=i.details||{}),"sys"in i&&"id"in i.sys&&(r=i.sys.id));var a=new Error;a.name=r&&r!=="Unknown"?r:"".concat(n==null?void 0:n.status," ").concat(n==null?void 0:n.statusText);try{a.message=JSON.stringify(s,null," ")}catch{var l;a.message=(l=s==null?void 0:s.message)!==null&&l!==void 0?l:""}throw a}const f_=Object.freeze(Object.defineProperty({__proto__:null,createHttpClient:dh,createRequestConfig:i_,enforceObjPath:o_,errorHandler:l_,freezeSys:a_,getUserAgentHeader:c_,toPlainObject:u_},Symbol.toStringTag,{value:"Module"})),Ht=zi(f_);var lo={},hi={},fo={},ml;function d_(){if(ml)return fo;ml=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.wrapSpace=t;var e=Ht;function t(n){return(0,e.freezeSys)((0,e.toPlainObject)(n))}return fo}var pi={},Za={exports:{}},gl;function Ln(){return gl||(gl=1,function(e,t){(function(n,r){e.exports=r()})(ue,function(){var n=Function.prototype.toString,r=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,l=Object.getPrototypeOf,f=Object.prototype,c=f.hasOwnProperty,h=f.propertyIsEnumerable,d=typeof a=="function",u=typeof WeakMap=="function",p=function(){if(u)return function(){return new WeakMap};var F=function(){function B(){this._keys=[],this._values=[]}return B.prototype.has=function(W){return!!~this._keys.indexOf(W)},B.prototype.get=function(W){return this._values[this._keys.indexOf(W)]},B.prototype.set=function(W,G){this._keys.push(W),this._values.push(G)},B}();return function(){return new F}}(),m=function(F,B){var W=F.__proto__||l(F);if(!W)return r(null);var G=W.constructor;if(G===B.Object)return W===B.Object.prototype?{}:r(W);if(~n.call(G).indexOf("[native code]"))try{return new G}catch{}return r(W)},E=function(F,B,W,G){var V=m(F,B);G.set(F,V);for(var H in F)c.call(F,H)&&(V[H]=W(F[H],G));if(d)for(var Y=a(F),oe=0,K=Y.length,k=void 0;oe<K;++oe)k=Y[oe],h.call(F,k)&&(V[k]=W(F[k],G));return V},T=function(F,B,W,G){var V=m(F,B);G.set(F,V);for(var H=d?s(F).concat(a(F)):s(F),Y=0,oe=H.length,K=void 0,k=void 0;Y<oe;++Y)if(K=H[Y],K!=="callee"&&K!=="caller")if(k=i(F,K),k){!k.get&&!k.set&&(k.value=W(F[K],G));try{o(V,K,k)}catch{V[K]=k.value}}else V[K]=W(F[K],G);return V},_=function(F){var B="";return F.global&&(B+="g"),F.ignoreCase&&(B+="i"),F.multiline&&(B+="m"),F.unicode&&(B+="u"),F.sticky&&(B+="y"),B},b=Array.isArray,A=Object.getPrototypeOf,w=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof ue<"u"?ue:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function P(F,B){var W=!!(B&&B.isStrict),G=B&&B.realm||w,V=W?T:E,H=function(Y,oe){if(!Y||typeof Y!="object")return Y;if(oe.has(Y))return oe.get(Y);var K=Y.__proto__||A(Y),k=K&&K.constructor;if(!k||k===G.Object)return V(Y,G,H,oe);var z;if(b(Y)){if(W)return T(Y,G,H,oe);z=new k,oe.set(Y,z);for(var J=0,ae=Y.length;J<ae;++J)z[J]=H(Y[J],oe);return z}if(Y instanceof G.Date)return new k(Y.getTime());if(Y instanceof G.RegExp)return z=new k(Y.source,Y.flags||_(Y)),z.lastIndex=Y.lastIndex,z;if(G.Map&&Y instanceof G.Map)return z=new k,oe.set(Y,z),Y.forEach(function(Q,Z){z.set(Z,H(Q,oe))}),z;if(G.Set&&Y instanceof G.Set)return z=new k,oe.set(Y,z),Y.forEach(function(Q){z.add(H(Q,oe))}),z;if(G.Blob&&Y instanceof G.Blob)return Y.slice(0,Y.size,Y.type);if(G.Buffer&&G.Buffer.isBuffer(Y))return z=G.Buffer.allocUnsafe?G.Buffer.allocUnsafe(Y.length):new k(Y.length),oe.set(Y,z),Y.copy(z),z;if(G.ArrayBuffer){if(G.ArrayBuffer.isView(Y))return z=new k(Y.buffer.slice(0)),oe.set(Y,z),z;if(Y instanceof G.ArrayBuffer)return z=Y.slice(0),oe.set(Y,z),z}return typeof Y.then=="function"||Y instanceof Error||G.WeakMap&&Y instanceof G.WeakMap||G.WeakSet&&Y instanceof G.WeakSet?Y:V(Y,G,H,oe)};return H(F,p())}return P.default=P,P.strict=function(B,W){return P(B,{isStrict:!0,realm:W?W.realm:void 0})},P})}(Za)),Za.exports}var ho={},po={exports:{}},yl;function h_(){return yl||(yl=1,function(e,t){t=e.exports=n,t.getSerialize=r;function n(o,i,s,a){return JSON.stringify(o,r(i,a),s)}function r(o,i){var s=[],a=[];return i==null&&(i=function(l,f){return s[0]===f?"[Circular ~]":"[Circular ~."+a.slice(0,s.indexOf(f)).join(".")+"]"}),function(l,f){if(s.length>0){var c=s.indexOf(this);~c?s.splice(c+1):s.push(this),~c?a.splice(c,1/0,l):a.push(l),~s.indexOf(f)&&(f=i.call(this,l,f))}else s.push(f);return o==null?f:o.call(this,l,f)}}}(po,po.exports)),po.exports}var vl;function ph(){if(vl)return ho;vl=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.default=n;var e=t(h_());function t(r){return r&&r.__esModule?r:{default:r}}function n(r){return Object.defineProperty(r,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,e.default)(this,o,i,(s,a)=>({sys:{type:"Link",linkType:"Entry",id:a.sys.id,circular:!0}}))}})}return ho}var p_=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},m_=function(){function e(t,n){var r=[],o=!0,i=!1,s=void 0;try{for(var a=t[Symbol.iterator](),l;!(o=(l=a.next()).done)&&(r.push(l.value),!(n&&r.length===n));o=!0);}catch(f){i=!0,s=f}finally{try{!o&&a.return&&a.return()}finally{if(i)throw s}}return r}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function mi(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var qi={},g_=function(t){return t&&t.sys&&t.sys.type==="Link"},y_=function(t){return t&&t.sys&&t.sys.type==="ResourceLink"},v_=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]},_l=function(t,n){var r=n.entryId,o=n.linkType,i=n.spaceId,s=n.environmentId;return i&&s?t.get(i+"!"+s+"!"+o+"!"+r):t.get(o+"!"+r)},__=function(t){var n=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(n.test(t)){var r=t.match(n),o=m_(r,4);o[0];var i=o[1],s=o[2],a=s===void 0?"master":s,l=o[3];return{spaceId:i,environmentId:a,entryId:l}}},E_=function(t,n){var r=n.sys,o=r.type,i=r.linkType;if(o==="ResourceLink"){var s=n.sys.urn,a=__(s),l=a.spaceId,f=a.environmentId,c=a.entryId,h=i.split(":")[1];return _l(t,{linkType:h,entryId:c,spaceId:l,environmentId:f})||qi}var d=n.sys.id;return _l(t,{linkType:i,entryId:d})||qi},b_=function(t){if(Array.isArray(t))return t.filter(function(r){return r!==qi});for(var n in t)t[n]===qi&&delete t[n];return t},w_=function e(t,n,r,o){if(n(t))return r(t);if(t&&(typeof t>"u"?"undefined":p_(t))==="object"){for(var i in t)t.hasOwnProperty(i)&&(t[i]=e(t[i],n,r,o));o&&(t=b_(t))}return t},S_=function(t,n,r){var o=E_(t,n);return o===qi?r?o:n:o},T_=function(t,n){if(!Array.isArray(n))return t;var r=Object.keys(t).filter(function(o){return n.indexOf(o)!==-1});return r.reduce(function(o,i){return o[i]=t[i],o},{})},x_=function(t,n){if(n=n||{},!t.items)return[];var r=_r(t),o=Object.keys(r.includes||{}).reduce(function(a,l){return[].concat(mi(a),mi(t.includes[l]))},[]),i=[].concat(mi(r.items),mi(o)).filter(function(a){return!!a.sys}),s=new Map(i.reduce(function(a,l){var f=v_(l.sys).map(function(c){return[c,l]});return a.push.apply(a,mi(f)),a},[]));return i.forEach(function(a){var l=T_(a,n.itemEntryPoints);Object.assign(a,w_(l,function(f){return g_(f)||y_(f)},function(f){return S_(s,f,n.removeUnresolved)},n.removeUnresolved))}),r.items};const O_=Object.freeze(Object.defineProperty({__proto__:null,default:x_},Symbol.toStringTag,{value:"Module"})),mh=zi(O_);var El;function A_(){if(El)return pi;El=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.wrapEntry=i,pi.wrapEntryCollection=s;var e=o(Ln()),t=Ht,n=o(ph()),r=o(mh);function o(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(a)))}function s(a,l){let{resolveLinks:f,removeUnresolved:c}=l;const h=(0,n.default)((0,t.toPlainObject)((0,e.default)(a)));return f&&(h.items=(0,r.default)(h,{removeUnresolved:c,itemEntryPoints:["fields"]})),(0,t.freezeSys)(h)}return pi}var gi={},bl;function C_(){if(bl)return gi;bl=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.wrapAsset=r,gi.wrapAssetCollection=o;var e=n(Ln()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return gi}var mo={},wl;function R_(){if(wl)return mo;wl=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.wrapAssetKey=r;var e=n(Ln()),t=Ht;function n(o){return o&&o.__esModule?o:{default:o}}function r(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return mo}var yi={},Sl;function N_(){if(Sl)return yi;Sl=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.wrapContentType=r,yi.wrapContentTypeCollection=o;var e=n(Ln()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return yi}var vi={},Tl;function P_(){if(Tl)return vi;Tl=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.wrapLocale=r,vi.wrapLocaleCollection=o;var e=n(Ln()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return vi}var _i={},xl;function I_(){if(xl)return _i;xl=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.wrapTag=r,_i.wrapTagCollection=o;var e=n(Ln()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return _i}var Ol;function L_(){if(Ol)return hi;Ol=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.default=void 0;var e=l(d_()),t=l(A_()),n=l(C_()),r=l(R_()),o=l(N_()),i=l(P_()),s=l(I_());function a(c){if(typeof WeakMap!="function")return null;var h=new WeakMap,d=new WeakMap;return(a=function(u){return u?d:h})(c)}function l(c,h){if(!h&&c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var d=a(h);if(d&&d.has(c))return d.get(c);var u={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in c)if(m!=="default"&&Object.prototype.hasOwnProperty.call(c,m)){var E=p?Object.getOwnPropertyDescriptor(c,m):null;E&&(E.get||E.set)?Object.defineProperty(u,m,E):u[m]=c[m]}return u.default=c,d&&d.set(c,u),u}var f={space:e,entry:t,asset:n,assetKey:r,contentType:o,locale:i,tag:s};return hi.default=f,hi}var go={},Al;function k_(){if(Al)return go;Al=1,Object.defineProperty(go,"__esModule",{value:!0}),go.default=a;var e=Ht,t=r(mh),n=r(ph());function r(h){return h&&h.__esModule?h:{default:h}}function o(h,d){var u=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(h,m).enumerable})),u.push.apply(u,p)}return u}function i(h){for(var d=1;d<arguments.length;d++){var u=arguments[d]!=null?arguments[d]:{};d%2?o(Object(u),!0).forEach(function(p){s(h,p,u[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(u)):o(Object(u)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(u,p))})}return h}function s(h,d,u){return d in h?Object.defineProperty(h,d,{value:u,enumerable:!0,configurable:!0,writable:!0}):h[d]=u,h}async function a(h,d){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!d||!d.initial&&!d.nextSyncToken&&!d.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(d&&d.content_type&&!d.type)d.type="Entry";else if(d&&d.content_type&&d.type&&d.type!=="Entry")throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");const p={resolveLinks:!0,removeUnresolved:!1,paginate:!0},{resolveLinks:m,removeUnresolved:E,paginate:T}=i(i({},p),u),b=await f(h,[],d,{paginate:T});m&&(b.items=(0,t.default)(b,{removeUnresolved:E,itemEntryPoints:["fields"]}));const A=l(b.items);return b.nextSyncToken&&(A.nextSyncToken=b.nextSyncToken),b.nextPageToken&&(A.nextPageToken=b.nextPageToken),(0,e.freezeSys)((0,n.default)((0,e.toPlainObject)(A)))}function l(h){const d=u=>(p,m)=>(m.sys.type===u&&p.push((0,e.toPlainObject)(m)),p);return{entries:h.reduce(d("Entry"),[]),assets:h.reduce(d("Asset"),[]),deletedEntries:h.reduce(d("DeletedEntry"),[]),deletedAssets:h.reduce(d("DeletedAsset"),[])}}async function f(h,d,u,p){let{paginate:m}=p;u.nextSyncToken&&(u.sync_token=u.nextSyncToken,delete u.nextSyncToken),u.nextPageToken&&(u.sync_token=u.nextPageToken,delete u.nextPageToken),u.sync_token&&(delete u.initial,delete u.type,delete u.content_type,delete u.limit);const T=(await h.get("sync",(0,e.createRequestConfig)({query:u}))).data||{};return d=d.concat(T.items||[]),T.nextPageUrl?m?(delete u.initial,u.sync_token=c(T.nextPageUrl),f(h,d,u,{paginate:m})):{items:d,nextPageToken:c(T.nextPageUrl)}:T.nextSyncUrl?{items:d,nextSyncToken:c(T.nextSyncUrl)}:{items:[]}}function c(h){const d=h.split("?");return d.length>0?d[1].replace("sync_token=",""):""}return go}var yo={},Cl;function M_(){if(Cl)return yo;Cl=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=r;function e(o,i){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(o);i&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),s.push.apply(s,a)}return s}function t(o){for(var i=1;i<arguments.length;i++){var s=arguments[i]!=null?arguments[i]:{};i%2?e(Object(s),!0).forEach(function(a){n(o,a,s[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):e(Object(s)).forEach(function(a){Object.defineProperty(o,a,Object.getOwnPropertyDescriptor(s,a))})}return o}function n(o,i,s){return i in o?Object.defineProperty(o,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[i]=s,o}function r(o){if(!o.select)return o;const i=Array.isArray(o.select)?o.select:o.select.split(","),s=new Set(i);return s.has("sys")?o:(s.add("sys.id"),s.add("sys.type"),t(t({},o),{},{select:[...s].join(",")}))}return yo}var En={},Rl;function B_(){if(Rl)return En;Rl=1,Object.defineProperty(En,"__esModule",{value:!0}),En.ValidationError=void 0,En.default=t;class e extends Error{constructor(r,o){super(`Invalid "${r}" provided, `+o),this.name="ValidationError"}}En.ValidationError=e;function t(n,r,o){if(o=o||{},typeof r!="number")throw new e(n,`only numeric values are allowed for timestamps, provided type was "${typeof r}"`);if(o.maximum&&r>o.maximum)throw new e(n,`value (${r}) cannot be further in the future than expected maximum (${o.maximum})`);if(o.now&&r<o.now)throw new e(n,`value (${r}) cannot be in the past, current time was ${o.now}`)}return En}var Nl;function F_(){if(Nl)return lo;Nl=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.default=c;var e=Ht,t=i(L_()),n=i(k_()),r=i(M_()),o=i(B_());function i(h){return h&&h.__esModule?h:{default:h}}function s(h,d){var u=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(h,m).enumerable})),u.push.apply(u,p)}return u}function a(h){for(var d=1;d<arguments.length;d++){var u=arguments[d]!=null?arguments[d]:{};d%2?s(Object(u),!0).forEach(function(p){l(h,p,u[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(u)):s(Object(u)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(u,p))})}return h}function l(h,d,u){return d in h?Object.defineProperty(h,d,{value:u,enumerable:!0,configurable:!0,writable:!0}):h[d]=u,h}const f=48*60*60;function c(h){let{http:d,getGlobalOptions:u}=h;const{wrapSpace:p}=t.default.space,{wrapContentType:m,wrapContentTypeCollection:E}=t.default.contentType,{wrapEntry:T,wrapEntryCollection:_}=t.default.entry,{wrapAsset:b,wrapAssetCollection:A}=t.default.asset,{wrapTag:w,wrapTagCollection:P}=t.default.tag,{wrapAssetKey:F}=t.default.assetKey,{wrapLocaleCollection:B}=t.default.locale,W=X=>{const re=new Error("The resource could not be found.");return re.sys={type:"Error",id:"NotFound"},re.details={type:"Entry",id:X,environment:u().environment,space:u().space},re};async function G(){ze(d);try{const X=await d.get("/");return p(X.data)}catch(X){(0,e.errorHandler)(X)}}async function V(X){le(d);try{const re=await d.get(`content_types/${X}`);return m(re.data)}catch(re){(0,e.errorHandler)(re)}}async function H(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};le(d);try{const re=await d.get("content_types",(0,e.createRequestConfig)({query:X}));return E(re.data)}catch(re){(0,e.errorHandler)(re)}}async function Y(X){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!X)throw W(X);try{const Pe=await this.getEntries(a({"sys.id":X},re));if(Pe.items.length>0)return T(Pe.items[0]);throw W(X)}catch(Pe){(0,e.errorHandler)(Pe)}}async function oe(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};le(d);const{resolveLinks:re,removeUnresolved:Pe}=u(X);X=(0,r.default)(X);try{const Oe=await d.get("entries",(0,e.createRequestConfig)({query:X}));return _(Oe.data,{resolveLinks:re,removeUnresolved:Pe})}catch(Oe){(0,e.errorHandler)(Oe)}}async function K(X){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};le(d),re=(0,r.default)(re);try{const Pe=await d.get(`assets/${X}`,(0,e.createRequestConfig)({query:re}));return b(Pe.data)}catch(Pe){(0,e.errorHandler)(Pe)}}async function k(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};le(d),X=(0,r.default)(X);try{const re=await d.get("assets",(0,e.createRequestConfig)({query:X}));return A(re.data)}catch(re){(0,e.errorHandler)(re)}}async function z(X){le(d);try{const re=await d.get(`tags/${X}`);return w(re.data)}catch(re){(0,e.errorHandler)(re)}}async function J(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};le(d),X=(0,r.default)(X);try{const re=await d.get("tags",(0,e.createRequestConfig)({query:X}));return P(re.data)}catch(re){(0,e.errorHandler)(re)}}async function ae(X){le(d);try{const re=Math.floor(Date.now()/1e3),Pe=re+f;(0,o.default)("expiresAt",X,{maximum:Pe,now:re});const Oe={expiresAt:X},st=await d.post("asset_keys",Oe);return F(st.data)}catch(re){(0,e.errorHandler)(re)}}async function Q(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};le(d);try{const re=await d.get("locales",(0,e.createRequestConfig)({query:X}));return B(re.data)}catch(re){(0,e.errorHandler)(re)}}async function Z(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{paginate:!0};const{resolveLinks:Pe,removeUnresolved:Oe}=u(X);return le(d),(0,n.default)(d,X,a({resolveLinks:Pe,removeUnresolved:Oe},re))}function ce(X){const{resolveLinks:re,removeUnresolved:Pe}=u({});return _(X,{resolveLinks:re,removeUnresolved:Pe})}function le(X){X.defaults.baseURL=u().environmentBaseUrl}function ze(X){X.defaults.baseURL=u().spaceBaseUrl}return{getSpace:G,getContentType:V,getContentTypes:H,getEntry:Y,getEntries:oe,getAsset:K,getAssets:k,getTag:z,getTags:J,createAssetKey:ae,getLocales:Q,parseEntries:ce,sync:Z}}return lo}var vo={},Pl;function U_(){if(Pl)return vo;Pl=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.default=e;function e(t){return function(r){return Object.assign({},t,r)}}return vo}var Il;function D_(){if(Il)return io;Il=1,Object.defineProperty(io,"__esModule",{value:!0}),io.createClient=l;var e=o(qd()),t=Ht,n=o(F_()),r=o(U_());function o(f){return f&&f.__esModule?f:{default:f}}function i(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(f);c&&(d=d.filter(function(u){return Object.getOwnPropertyDescriptor(f,u).enumerable})),h.push.apply(h,d)}return h}function s(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?i(Object(h),!0).forEach(function(d){a(f,d,h[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):i(Object(h)).forEach(function(d){Object.defineProperty(f,d,Object.getOwnPropertyDescriptor(h,d))})}return f}function a(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function l(f){if(!f.accessToken)throw new TypeError("Expected parameter accessToken");if(!f.space)throw new TypeError("Expected parameter space");const h=s(s({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),f),d=(0,t.getUserAgentHeader)("contentful.js/9.1.34",h.application,h.integration);h.headers=s(s({},h.headers),{},{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":d});const u=(0,t.createHttpClient)(e.default,h),p=(0,r.default)({resolveLinks:h.resolveLinks,environment:h.environment,removeUnresolved:h.removeUnresolved,spaceBaseUrl:u.defaults.baseURL,environmentBaseUrl:`${u.defaults.baseURL}environments/${h.environment}`});return u.defaults.baseURL=p().environmentBaseUrl,(0,n.default)({http:u,getGlobalOptions:p})}return io}var es={},ts,Ll;function $_(){return Ll||(Ll=1,ts=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),ts}var rs,kl;function j_(){if(kl)return rs;kl=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),n=new RegExp("("+e+")+","gi");function r(s,a){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;a=a||1;var l=s.slice(0,a),f=s.slice(a);return Array.prototype.concat.call([],r(l),r(f))}function o(s){try{return decodeURIComponent(s)}catch{for(var a=s.match(t)||[],l=1;l<a.length;l++)s=r(a,l).join(""),a=s.match(t)||[];return s}}function i(s){for(var a={"%FE%FF":"��","%FF%FE":"��"},l=n.exec(s);l;){try{a[l[0]]=decodeURIComponent(l[0])}catch{var f=o(l[0]);f!==l[0]&&(a[l[0]]=f)}l=n.exec(s)}a["%C2"]="�";for(var c=Object.keys(a),h=0;h<c.length;h++){var d=c[h];s=s.replace(new RegExp(d,"g"),a[d])}return s}return rs=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return i(s)}},rs}var ns,Ml;function H_(){return Ml||(Ml=1,ns=(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 n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]}),ns}var is,Bl;function q_(){return Bl||(Bl=1,is=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var s=r[i],a=e[s];(o?t.indexOf(s)!==-1:t(s,a,e))&&(n[s]=a)}return n}),is}var Fl;function G_(){return Fl||(Fl=1,function(e){const t=$_(),n=j_(),r=H_(),o=q_(),i=_=>_==null,s=Symbol("encodeFragmentIdentifier");function a(_){switch(_.arrayFormat){case"index":return b=>(A,w)=>{const P=A.length;return w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,[c(b,_),"[",P,"]"].join("")]:[...A,[c(b,_),"[",c(P,_),"]=",c(w,_)].join("")]};case"bracket":return b=>(A,w)=>w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,[c(b,_),"[]"].join("")]:[...A,[c(b,_),"[]=",c(w,_)].join("")];case"colon-list-separator":return b=>(A,w)=>w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,[c(b,_),":list="].join("")]:[...A,[c(b,_),":list=",c(w,_)].join("")];case"comma":case"separator":case"bracket-separator":{const b=_.arrayFormat==="bracket-separator"?"[]=":"=";return A=>(w,P)=>P===void 0||_.skipNull&&P===null||_.skipEmptyString&&P===""?w:(P=P===null?"":P,w.length===0?[[c(A,_),b,c(P,_)].join("")]:[[w,c(P,_)].join(_.arrayFormatSeparator)])}default:return b=>(A,w)=>w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,c(b,_)]:[...A,[c(b,_),"=",c(w,_)].join("")]}}function l(_){let b;switch(_.arrayFormat){case"index":return(A,w,P)=>{if(b=/\[(\d*)\]$/.exec(A),A=A.replace(/\[\d*\]$/,""),!b){P[A]=w;return}P[A]===void 0&&(P[A]={}),P[A][b[1]]=w};case"bracket":return(A,w,P)=>{if(b=/(\[\])$/.exec(A),A=A.replace(/\[\]$/,""),!b){P[A]=w;return}if(P[A]===void 0){P[A]=[w];return}P[A]=[].concat(P[A],w)};case"colon-list-separator":return(A,w,P)=>{if(b=/(:list)$/.exec(A),A=A.replace(/:list$/,""),!b){P[A]=w;return}if(P[A]===void 0){P[A]=[w];return}P[A]=[].concat(P[A],w)};case"comma":case"separator":return(A,w,P)=>{const F=typeof w=="string"&&w.includes(_.arrayFormatSeparator),B=typeof w=="string"&&!F&&h(w,_).includes(_.arrayFormatSeparator);w=B?h(w,_):w;const W=F||B?w.split(_.arrayFormatSeparator).map(G=>h(G,_)):w===null?w:h(w,_);P[A]=W};case"bracket-separator":return(A,w,P)=>{const F=/(\[\])$/.test(A);if(A=A.replace(/\[\]$/,""),!F){P[A]=w&&h(w,_);return}const B=w===null?[]:w.split(_.arrayFormatSeparator).map(W=>h(W,_));if(P[A]===void 0){P[A]=B;return}P[A]=[].concat(P[A],B)};default:return(A,w,P)=>{if(P[A]===void 0){P[A]=w;return}P[A]=[].concat(P[A],w)}}}function f(_){if(typeof _!="string"||_.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(_,b){return b.encode?b.strict?t(_):encodeURIComponent(_):_}function h(_,b){return b.decode?n(_):_}function d(_){return Array.isArray(_)?_.sort():typeof _=="object"?d(Object.keys(_)).sort((b,A)=>Number(b)-Number(A)).map(b=>_[b]):_}function u(_){const b=_.indexOf("#");return b!==-1&&(_=_.slice(0,b)),_}function p(_){let b="";const A=_.indexOf("#");return A!==-1&&(b=_.slice(A)),b}function m(_){_=u(_);const b=_.indexOf("?");return b===-1?"":_.slice(b+1)}function E(_,b){return b.parseNumbers&&!Number.isNaN(Number(_))&&typeof _=="string"&&_.trim()!==""?_=Number(_):b.parseBooleans&&_!==null&&(_.toLowerCase()==="true"||_.toLowerCase()==="false")&&(_=_.toLowerCase()==="true"),_}function T(_,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),f(b.arrayFormatSeparator);const A=l(b),w=Object.create(null);if(typeof _!="string"||(_=_.trim().replace(/^[?#&]/,""),!_))return w;for(const P of _.split("&")){if(P==="")continue;let[F,B]=r(b.decode?P.replace(/\+/g," "):P,"=");B=B===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?B:h(B,b),A(h(F,b),B,w)}for(const P of Object.keys(w)){const F=w[P];if(typeof F=="object"&&F!==null)for(const B of Object.keys(F))F[B]=E(F[B],b);else w[P]=E(F,b)}return b.sort===!1?w:(b.sort===!0?Object.keys(w).sort():Object.keys(w).sort(b.sort)).reduce((P,F)=>{const B=w[F];return B&&typeof B=="object"&&!Array.isArray(B)?P[F]=d(B):P[F]=B,P},Object.create(null))}e.extract=m,e.parse=T,e.stringify=(_,b)=>{if(!_)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),f(b.arrayFormatSeparator);const A=B=>b.skipNull&&i(_[B])||b.skipEmptyString&&_[B]==="",w=a(b),P={};for(const B of Object.keys(_))A(B)||(P[B]=_[B]);const F=Object.keys(P);return b.sort!==!1&&F.sort(b.sort),F.map(B=>{const W=_[B];return W===void 0?"":W===null?c(B,b):Array.isArray(W)?W.length===0&&b.arrayFormat==="bracket-separator"?c(B,b)+"[]":W.reduce(w(B),[]).join("&"):c(B,b)+"="+c(W,b)}).filter(B=>B.length>0).join("&")},e.parseUrl=(_,b)=>{b=Object.assign({decode:!0},b);const[A,w]=r(_,"#");return Object.assign({url:A.split("?")[0]||"",query:T(m(_),b)},b&&b.parseFragmentIdentifier&&w?{fragmentIdentifier:h(w,b)}:{})},e.stringifyUrl=(_,b)=>{b=Object.assign({encode:!0,strict:!0,[s]:!0},b);const A=u(_.url).split("?")[0]||"",w=e.extract(_.url),P=e.parse(w,{sort:!1}),F=Object.assign(P,_.query);let B=e.stringify(F,b);B&&(B=`?${B}`);let W=p(_.url);return _.fragmentIdentifier&&(W=`#${b[s]?c(_.fragmentIdentifier,b):_.fragmentIdentifier}`),`${A}${B}${W}`},e.pick=(_,b,A)=>{A=Object.assign({parseFragmentIdentifier:!0,[s]:!1},A);const{url:w,query:P,fragmentIdentifier:F}=e.parseUrl(_,A);return e.stringifyUrl({url:w,query:o(P,b),fragmentIdentifier:F},A)},e.exclude=(_,b,A)=>{const w=Array.isArray(b)?P=>!b.includes(P):(P,F)=>!b(P,F);return e.pick(_,w,A)}}(es)),es}var Ul;function W_(){return Ul||(Ul=1,function(e,t){(function(n,r){e.exports=r(D_(),G_())})(ue,function(n,r){return function(){var o={897:function(l){l.exports=n},48:function(l){l.exports=r}},i={};function s(l){var f=i[l];if(f!==void 0)return f.exports;var c=i[l]={exports:{}};return o[l](c,c.exports,s),c.exports}s.d=function(l,f){for(var c in f)s.o(f,c)&&!s.o(l,c)&&Object.defineProperty(l,c,{enumerable:!0,get:f[c]})},s.o=function(l,f){return Object.prototype.hasOwnProperty.call(l,f)},s.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var a={};return function(){s.r(a),s.d(a,{getEntries:function(){return oe},getEntry:function(){return Y},setContext:function(){return m}});var l=s(897),f=s(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:h,SPACE:d,HOSTS:u}}=c;let p={apiKey:null,previewKey:null,environment:null,isPreview:!1,host:u.CDN,space:d};const m=({apiKey:K,environment:k,isPreview:z=!1,location:J,previewKey:ae,space:Q=null})=>{p.apiKey=K,p.previewKey=ae,p.environment=(Z=>{if(!Z)throw new Error("Cannot map environment: Environment not defined");if(!h[Z])throw new Error(`Cannot map environment: No mapping found for environment ${Z}`);return h[Z]})(k),p.isPreview=z||(Z=>{let ce=!1;if(Z&&Z.search){const le=(0,f.parse)(Z.search);ce=le.isPreview&&le.isPreview==="true"}return ce})(J),p.space=Q||d},E=(K=!1)=>{const{apiKey:k,environment:z,isPreview:J,previewKey:ae,space:Q}=p;return J===!0||K===!0?{accessToken:ae,environment:z,host:u.PREVIEW,space:Q}:{accessToken:k,environment:z,host:u.CDN,space:Q}},T=K=>typeof K=="object"&&K!==null,_=K=>Array.isArray(K)&&K.length,b=K=>{if(!T(K))throw new Error("Cannot flatten fields");const{fields:k,sys:z}=K;if(!k)throw new Error("Cannot flatten fields");let J={...k};if(T(z)){const{contentType:ae,createdAt:Q,updatedAt:Z}=z;ae&&Object.assign(J,{contentType:ae.sys.id}),Q&&Object.assign(J,{createdAt:Q}),Z&&Object.assign(J,{updatedAt:Z})}return J},{CONTENTFUL:{LOCALES:A}}=c,w=(K,k)=>T(K)&&((z,J)=>Object.prototype.hasOwnProperty.call(z,J))(K,k),P=(K,k)=>{const z=(J=>A.SUPPORTED.includes(J)?J:A.DEFAULT)(k);return w(K,z)?K[z]:w(K,A.DEFAULT)?K[A.DEFAULT]:K},F=K=>T(K)&&K.sys&&K.sys.type==="Asset",B=(K,k,z)=>{const{title:J,file:ae}=b(K);if(!ae)throw new Error("Cannot flatten asset");const{contentType:Q,fileName:Z,url:ce,details:le}=P(ae,k);if(!ce)throw new Error("Cannot flatten asset");return z?{description:J||Z,height:le&&le.image&&le.image.height,type:Q,url:ce,width:le&&le.image&&le.image.width}:ce},W=K=>T(K)&&K.sys&&K.sys.type==="Entry",G=(K,k,z)=>{const J={},ae=((Q,Z)=>{const ce={};for(const[le,ze]of Object.entries(Q))ce[le]=P(ze,Z);return ce})(b(K),k);for(const[Q,Z]of Object.entries(ae))F(Z)?J[Q]=B(Z,k,z):W(Z)?J[Q]=G(Z,k,z):_(Z)?J[Q]=Z.map(ce=>F(ce)?B(ce,k,z):W(ce)?G(ce,k,z):ce):J[Q]=Z;return J},V=({items:K})=>{if(!_(K))throw new Error("Cannot read items");return K},H=async(K,k)=>{const z=E(k);return await(await(0,l.createClient)(z)).getEntries(K)},Y=async(K={},k={},z=!1)=>((J,{flatten:ae=!0,locale:Q="en",assetDetails:Z=!1})=>{const ce=V(J);return ae?G(ce[0],Q,Z):ce[0]})(await H(K,z),{...K,...k}),oe=async(K={},k={},z=!1)=>((J,{flatten:ae=!0,locale:Q="en",assetDetails:Z=!1})=>{const ce=V(J);return ae?((le,ze,X)=>le.map(re=>G(re,ze,X)))(ce,Q,Z):ce})(await H(K,z),{...K,...k})}(),a}()})}(ua)),ua.exports}var os={exports:{}},as={exports:{}},ss={exports:{}},cs={exports:{}},Dl;function Bc(){return Dl||(Dl=1,function(e,t){(function(n,r){e.exports=r()})(ue,function(){function n(m){return!isNaN(parseFloat(m))&&isFinite(m)}function r(m){return m.charAt(0).toUpperCase()+m.substring(1)}function o(m){return function(){return this[m]}}var i=["isConstructor","isEval","isNative","isToplevel"],s=["columnNumber","lineNumber"],a=["fileName","functionName","source"],l=["args"],f=["evalOrigin"],c=i.concat(s,a,l,f);function h(m){if(m)for(var E=0;E<c.length;E++)m[c[E]]!==void 0&&this["set"+r(c[E])](m[c[E]])}h.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 h)this.evalOrigin=m;else if(m instanceof Object)this.evalOrigin=new h(m);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var m=this.getFileName()||"",E=this.getLineNumber()||"",T=this.getColumnNumber()||"",_=this.getFunctionName()||"";return this.getIsEval()?m?"[eval] ("+m+":"+E+":"+T+")":"[eval]:"+E+":"+T:_?_+" ("+m+":"+E+":"+T+")":m+":"+E+":"+T}},h.fromString=function(E){var T=E.indexOf("("),_=E.lastIndexOf(")"),b=E.substring(0,T),A=E.substring(T+1,_).split(","),w=E.substring(_+1);if(w.indexOf("@")===0)var P=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(w,""),F=P[1],B=P[2],W=P[3];return new h({functionName:b,args:A||void 0,fileName:F,lineNumber:B||void 0,columnNumber:W||void 0})};for(var d=0;d<i.length;d++)h.prototype["get"+r(i[d])]=o(i[d]),h.prototype["set"+r(i[d])]=function(m){return function(E){this[m]=!!E}}(i[d]);for(var u=0;u<s.length;u++)h.prototype["get"+r(s[u])]=o(s[u]),h.prototype["set"+r(s[u])]=function(m){return function(E){if(!n(E))throw new TypeError(m+" must be a Number");this[m]=Number(E)}}(s[u]);for(var p=0;p<a.length;p++)h.prototype["get"+r(a[p])]=o(a[p]),h.prototype["set"+r(a[p])]=function(m){return function(E){this[m]=String(E)}}(a[p]);return h})}(cs)),cs.exports}var $l;function V_(){return $l||($l=1,function(e,t){(function(n,r){e.exports=r(Bc())})(ue,function(r){var o=/(^|@)\S+:\d+/,i=/^\s*at .*(\S+:\d+|\(native\))/m,s=/^(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(i))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 f=/(.+?)(?::(\d+))?(?::(\d+))?$/,c=f.exec(l.replace(/[()]/g,""));return[c[1],c[2]||void 0,c[3]||void 0]},parseV8OrIE:function(l){var f=l.stack.split(`
35
- `).filter(function(c){return!!c.match(i)},this);return f.map(function(c){c.indexOf("(eval ")>-1&&(c=c.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var h=c.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),d=h.match(/ (\(.+\)$)/);h=d?h.replace(d[0],""):h;var u=this.extractLocation(d?d[1]:h),p=d&&h||void 0,m=["eval","<anonymous>"].indexOf(u[0])>-1?void 0:u[0];return new r({functionName:p,fileName:m,lineNumber:u[1],columnNumber:u[2],source:c})},this)},parseFFOrSafari:function(l){var f=l.stack.split(`
36
- `).filter(function(c){return!c.match(s)},this);return f.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 r({functionName:c});var h=/((.*".+"[^@]*)?[^@]*)(?:@)/,d=c.match(h),u=d&&d[1]?d[1]:void 0,p=this.extractLocation(c.replace(h,""));return new r({functionName:u,fileName:p[0],lineNumber:p[1],columnNumber:p[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 f=/Line (\d+).*script (?:in )?(\S+)/i,c=l.message.split(`
40
- `),h=[],d=2,u=c.length;d<u;d+=2){var p=f.exec(c[d]);p&&h.push(new r({fileName:p[2],lineNumber:p[1],source:c[d]}))}return h},parseOpera10:function(l){for(var f=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,c=l.stacktrace.split(`
41
- `),h=[],d=0,u=c.length;d<u;d+=2){var p=f.exec(c[d]);p&&h.push(new r({functionName:p[3]||void 0,fileName:p[2],lineNumber:p[1],source:c[d]}))}return h},parseOpera11:function(l){var f=l.stack.split(`
42
- `).filter(function(c){return!!c.match(o)&&!c.match(/^Error created at/)},this);return f.map(function(c){var h=c.split("@"),d=this.extractLocation(h.pop()),u=h.shift()||"",p=u.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,m;u.match(/\(([^)]*)\)/)&&(m=u.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var E=m===void 0||m==="[arguments not available]"?void 0:m.split(",");return new r({functionName:p,args:E,fileName:d[0],lineNumber:d[1],columnNumber:d[2],source:c})},this)}}})}(ss)),ss.exports}var us={exports:{}},jl;function z_(){return jl||(jl=1,function(e,t){(function(n,r){e.exports=r(Bc())})(ue,function(n){return{backtrace:function(o){var i=[],s=10;typeof o=="object"&&typeof o.maxStackSize=="number"&&(s=o.maxStackSize);for(var a=arguments.callee;a&&i.length<s&&a.arguments;){for(var l=new Array(a.arguments.length),f=0;f<l.length;++f)l[f]=a.arguments[f];/function(?:\s+([\w$]+))+\s*\(/.test(a.toString())?i.push(new n({functionName:RegExp.$1||void 0,args:l})):i.push(new n({args:l}));try{a=a.caller}catch{break}}return i}}})}(us)),us.exports}var ls={exports:{}},Ei={},fs={},Hl;function gh(){return Hl||(Hl=1,function(e){function t(_,b,A){if(b in _)return _[b];if(arguments.length===3)return A;throw new Error('"'+b+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,r=/^data:.+\,.+$/;function o(_){var b=_.match(n);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}e.urlParse=o;function i(_){var b="";return _.scheme&&(b+=_.scheme+":"),b+="//",_.auth&&(b+=_.auth+"@"),_.host&&(b+=_.host),_.port&&(b+=":"+_.port),_.path&&(b+=_.path),b}e.urlGenerate=i;function s(_){var b=_,A=o(_);if(A){if(!A.path)return _;b=A.path}for(var w=e.isAbsolute(b),P=b.split(/\/+/),F,B=0,W=P.length-1;W>=0;W--)F=P[W],F==="."?P.splice(W,1):F===".."?B++:B>0&&(F===""?(P.splice(W+1,B),B=0):(P.splice(W,2),B--));return b=P.join("/"),b===""&&(b=w?"/":"."),A?(A.path=b,i(A)):b}e.normalize=s;function a(_,b){_===""&&(_="."),b===""&&(b=".");var A=o(b),w=o(_);if(w&&(_=w.path||"/"),A&&!A.scheme)return w&&(A.scheme=w.scheme),i(A);if(A||b.match(r))return b;if(w&&!w.host&&!w.path)return w.host=b,i(w);var P=b.charAt(0)==="/"?b:s(_.replace(/\/+$/,"")+"/"+b);return w?(w.path=P,i(w)):P}e.join=a,e.isAbsolute=function(_){return _.charAt(0)==="/"||!!_.match(n)};function l(_,b){_===""&&(_="."),_=_.replace(/\/$/,"");for(var A=0;b.indexOf(_+"/")!==0;){var w=_.lastIndexOf("/");if(w<0||(_=_.slice(0,w),_.match(/^([^\/]+:\/)?\/*$/)))return b;++A}return Array(A+1).join("../")+b.substr(_.length+1)}e.relative=l;var f=function(){var _=Object.create(null);return!("__proto__"in _)}();function c(_){return _}function h(_){return u(_)?"$"+_:_}e.toSetString=f?c:h;function d(_){return u(_)?_.slice(1):_}e.fromSetString=f?c:d;function u(_){if(!_)return!1;var b=_.length;if(b<9||_.charCodeAt(b-1)!==95||_.charCodeAt(b-2)!==95||_.charCodeAt(b-3)!==111||_.charCodeAt(b-4)!==116||_.charCodeAt(b-5)!==111||_.charCodeAt(b-6)!==114||_.charCodeAt(b-7)!==112||_.charCodeAt(b-8)!==95||_.charCodeAt(b-9)!==95)return!1;for(var A=b-10;A>=0;A--)if(_.charCodeAt(A)!==36)return!1;return!0}function p(_,b,A){var w=_.source-b.source;return w!==0||(w=_.originalLine-b.originalLine,w!==0)||(w=_.originalColumn-b.originalColumn,w!==0||A)||(w=_.generatedColumn-b.generatedColumn,w!==0)||(w=_.generatedLine-b.generatedLine,w!==0)?w:_.name-b.name}e.compareByOriginalPositions=p;function m(_,b,A){var w=_.generatedLine-b.generatedLine;return w!==0||(w=_.generatedColumn-b.generatedColumn,w!==0||A)||(w=_.source-b.source,w!==0)||(w=_.originalLine-b.originalLine,w!==0)||(w=_.originalColumn-b.originalColumn,w!==0)?w:_.name-b.name}e.compareByGeneratedPositionsDeflated=m;function E(_,b){return _===b?0:_>b?1:-1}function T(_,b){var A=_.generatedLine-b.generatedLine;return A!==0||(A=_.generatedColumn-b.generatedColumn,A!==0)||(A=E(_.source,b.source),A!==0)||(A=_.originalLine-b.originalLine,A!==0)||(A=_.originalColumn-b.originalColumn,A!==0)?A:E(_.name,b.name)}e.compareByGeneratedPositionsInflated=T}(fs)),fs}var ds={},ql;function Y_(){return ql||(ql=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,o,i,s,a){var l=Math.floor((r-n)/2)+n,f=s(o,i[l],!0);return f===0?l:f>0?r-l>1?t(l,r,o,i,s,a):a==e.LEAST_UPPER_BOUND?r<i.length?r:-1:l:l-n>1?t(n,l,o,i,s,a):a==e.LEAST_UPPER_BOUND?l:n<0?-1:n}e.search=function(r,o,i,s){if(o.length===0)return-1;var a=t(-1,o.length,r,o,i,s||e.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&i(o[a],o[a-1],!0)===0;)--a;return a}}(ds)),ds}var hs={},Gl;function K_(){if(Gl)return hs;Gl=1;var e=gh(),t=Object.prototype.hasOwnProperty;function n(){this._array=[],this._set=Object.create(null)}return n.fromArray=function(o,i){for(var s=new n,a=0,l=o.length;a<l;a++)s.add(o[a],i);return s},n.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},n.prototype.add=function(o,i){var s=e.toSetString(o),a=t.call(this._set,s),l=this._array.length;(!a||i)&&this._array.push(o),a||(this._set[s]=l)},n.prototype.has=function(o){var i=e.toSetString(o);return t.call(this._set,i)},n.prototype.indexOf=function(o){var i=e.toSetString(o);if(t.call(this._set,i))return this._set[i];throw new Error('"'+o+'" is not in the set.')},n.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},n.prototype.toArray=function(){return this._array.slice()},hs.ArraySet=n,hs}var _o={},Eo={},Wl;function Q_(){if(Wl)return Eo;Wl=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Eo.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Eo.decode=function(t){var n=65,r=90,o=97,i=122,s=48,a=57,l=43,f=47,c=26,h=52;return n<=t&&t<=r?t-n:o<=t&&t<=i?t-o+c:s<=t&&t<=a?t-s+h:t==l?62:t==f?63:-1},Eo}var Vl;function X_(){if(Vl)return _o;Vl=1;var e=Q_(),t=5,n=1<<t,r=n-1,o=n;function i(a){return a<0?(-a<<1)+1:(a<<1)+0}function s(a){var l=(a&1)===1,f=a>>1;return l?-f:f}return _o.encode=function(l){var f="",c,h=i(l);do c=h&r,h>>>=t,h>0&&(c|=o),f+=e.encode(c);while(h>0);return f},_o.decode=function(l,f,c){var h=l.length,d=0,u=0,p,m;do{if(f>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(m=e.decode(l.charCodeAt(f++)),m===-1)throw new Error("Invalid base64 digit: "+l.charAt(f-1));p=!!(m&o),m&=r,d=d+(m<<u),u+=t}while(p);c.value=s(d),c.rest=f},_o}var ps={},zl;function J_(){if(zl)return ps;zl=1;function e(r,o,i){var s=r[o];r[o]=r[i],r[i]=s}function t(r,o){return Math.round(r+Math.random()*(o-r))}function n(r,o,i,s){if(i<s){var a=t(i,s),l=i-1;e(r,a,s);for(var f=r[s],c=i;c<s;c++)o(r[c],f)<=0&&(l+=1,e(r,l,c));e(r,l+1,c);var h=l+1;n(r,o,i,h-1),n(r,o,h+1,s)}}return ps.quickSort=function(r,o){n(r,o,0,r.length-1)},ps}var Yl;function Z_(){if(Yl)return Ei;Yl=1;var e=gh(),t=Y_(),n=K_().ArraySet,r=X_(),o=J_().quickSort;function i(f){var c=f;return typeof f=="string"&&(c=JSON.parse(f.replace(/^\)\]\}'/,""))),c.sections!=null?new l(c):new s(c)}i.fromSourceMap=function(f){return s.fromSourceMap(f)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(c,h){var d=c.charAt(h);return d===";"||d===","},i.prototype._parseMappings=function(c,h){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(c,h,d){var u=h||null,p=d||i.GENERATED_ORDER,m;switch(p){case i.GENERATED_ORDER:m=this._generatedMappings;break;case i.ORIGINAL_ORDER:m=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var E=this.sourceRoot;m.map(function(T){var _=T.source===null?null:this._sources.at(T.source);return _!=null&&E!=null&&(_=e.join(E,_)),{source:_,generatedLine:T.generatedLine,generatedColumn:T.generatedColumn,originalLine:T.originalLine,originalColumn:T.originalColumn,name:T.name===null?null:this._names.at(T.name)}},this).forEach(c,u)},i.prototype.allGeneratedPositionsFor=function(c){var h=e.getArg(c,"line"),d={source:e.getArg(c,"source"),originalLine:h,originalColumn:e.getArg(c,"column",0)};if(this.sourceRoot!=null&&(d.source=e.relative(this.sourceRoot,d.source)),!this._sources.has(d.source))return[];d.source=this._sources.indexOf(d.source);var u=[],p=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var m=this._originalMappings[p];if(c.column===void 0)for(var E=m.originalLine;m&&m.originalLine===E;)u.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++p];else for(var T=m.originalColumn;m&&m.originalLine===h&&m.originalColumn==T;)u.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++p]}return u},Ei.SourceMapConsumer=i;function s(f){var c=f;typeof f=="string"&&(c=JSON.parse(f.replace(/^\)\]\}'/,"")));var h=e.getArg(c,"version"),d=e.getArg(c,"sources"),u=e.getArg(c,"names",[]),p=e.getArg(c,"sourceRoot",null),m=e.getArg(c,"sourcesContent",null),E=e.getArg(c,"mappings"),T=e.getArg(c,"file",null);if(h!=this._version)throw new Error("Unsupported version: "+h);d=d.map(String).map(e.normalize).map(function(_){return p&&e.isAbsolute(p)&&e.isAbsolute(_)?e.relative(p,_):_}),this._names=n.fromArray(u.map(String),!0),this._sources=n.fromArray(d,!0),this.sourceRoot=p,this.sourcesContent=m,this._mappings=E,this.file=T}s.prototype=Object.create(i.prototype),s.prototype.consumer=i,s.fromSourceMap=function(c){var h=Object.create(s.prototype),d=h._names=n.fromArray(c._names.toArray(),!0),u=h._sources=n.fromArray(c._sources.toArray(),!0);h.sourceRoot=c._sourceRoot,h.sourcesContent=c._generateSourcesContent(h._sources.toArray(),h.sourceRoot),h.file=c._file;for(var p=c._mappings.toArray().slice(),m=h.__generatedMappings=[],E=h.__originalMappings=[],T=0,_=p.length;T<_;T++){var b=p[T],A=new a;A.generatedLine=b.generatedLine,A.generatedColumn=b.generatedColumn,b.source&&(A.source=u.indexOf(b.source),A.originalLine=b.originalLine,A.originalColumn=b.originalColumn,b.name&&(A.name=d.indexOf(b.name)),E.push(A)),m.push(A)}return o(h.__originalMappings,e.compareByOriginalPositions),h},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._sources.toArray().map(function(f){return this.sourceRoot!=null?e.join(this.sourceRoot,f):f},this)}});function a(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s.prototype._parseMappings=function(c,h){for(var d=1,u=0,p=0,m=0,E=0,T=0,_=c.length,b=0,A={},w={},P=[],F=[],B,W,G,V,H;b<_;)if(c.charAt(b)===";")d++,b++,u=0;else if(c.charAt(b)===",")b++;else{for(B=new a,B.generatedLine=d,V=b;V<_&&!this._charIsMappingSeparator(c,V);V++);if(W=c.slice(b,V),G=A[W],G)b+=W.length;else{for(G=[];b<V;)r.decode(c,b,w),H=w.value,b=w.rest,G.push(H);if(G.length===2)throw new Error("Found a source, but no line and column");if(G.length===3)throw new Error("Found a source and line, but no column");A[W]=G}B.generatedColumn=u+G[0],u=B.generatedColumn,G.length>1&&(B.source=E+G[1],E+=G[1],B.originalLine=p+G[2],p=B.originalLine,B.originalLine+=1,B.originalColumn=m+G[3],m=B.originalColumn,G.length>4&&(B.name=T+G[4],T+=G[4])),F.push(B),typeof B.originalLine=="number"&&P.push(B)}o(F,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=F,o(P,e.compareByOriginalPositions),this.__originalMappings=P},s.prototype._findMapping=function(c,h,d,u,p,m){if(c[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[d]);if(c[u]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[u]);return t.search(c,h,p,m)},s.prototype.computeColumnSpans=function(){for(var c=0;c<this._generatedMappings.length;++c){var h=this._generatedMappings[c];if(c+1<this._generatedMappings.length){var d=this._generatedMappings[c+1];if(h.generatedLine===d.generatedLine){h.lastGeneratedColumn=d.generatedColumn-1;continue}}h.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=this._findMapping(h,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(c,"bias",i.GREATEST_LOWER_BOUND));if(d>=0){var u=this._generatedMappings[d];if(u.generatedLine===h.generatedLine){var p=e.getArg(u,"source",null);p!==null&&(p=this._sources.at(p),this.sourceRoot!=null&&(p=e.join(this.sourceRoot,p)));var m=e.getArg(u,"name",null);return m!==null&&(m=this._names.at(m)),{source:p,line:e.getArg(u,"originalLine",null),column:e.getArg(u,"originalColumn",null),name:m}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1},s.prototype.sourceContentFor=function(c,h){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 d;if(this.sourceRoot!=null&&(d=e.urlParse(this.sourceRoot))){var u=c.replace(/^file:\/\//,"");if(d.scheme=="file"&&this._sources.has(u))return this.sourcesContent[this._sources.indexOf(u)];if((!d.path||d.path=="/")&&this._sources.has("/"+c))return this.sourcesContent[this._sources.indexOf("/"+c)]}if(h)return null;throw new Error('"'+c+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(c){var h=e.getArg(c,"source");if(this.sourceRoot!=null&&(h=e.relative(this.sourceRoot,h)),!this._sources.has(h))return{line:null,column:null,lastColumn:null};h=this._sources.indexOf(h);var d={source:h,originalLine:e.getArg(c,"line"),originalColumn:e.getArg(c,"column")},u=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(c,"bias",i.GREATEST_LOWER_BOUND));if(u>=0){var p=this._originalMappings[u];if(p.source===d.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Ei.BasicSourceMapConsumer=s;function l(f){var c=f;typeof f=="string"&&(c=JSON.parse(f.replace(/^\)\]\}'/,"")));var h=e.getArg(c,"version"),d=e.getArg(c,"sections");if(h!=this._version)throw new Error("Unsupported version: "+h);this._sources=new n,this._names=new n;var u={line:-1,column:0};this._sections=d.map(function(p){if(p.url)throw new Error("Support for url field in sections not implemented.");var m=e.getArg(p,"offset"),E=e.getArg(m,"line"),T=e.getArg(m,"column");if(E<u.line||E===u.line&&T<u.column)throw new Error("Section offsets must be ordered and non-overlapping.");return u=m,{generatedOffset:{generatedLine:E+1,generatedColumn:T+1},consumer:new i(e.getArg(p,"map"))}})}return l.prototype=Object.create(i.prototype),l.prototype.constructor=i,l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){for(var f=[],c=0;c<this._sections.length;c++)for(var h=0;h<this._sections[c].consumer.sources.length;h++)f.push(this._sections[c].consumer.sources[h]);return f}}),l.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=t.search(h,this._sections,function(p,m){var E=p.generatedLine-m.generatedOffset.generatedLine;return E||p.generatedColumn-m.generatedOffset.generatedColumn}),u=this._sections[d];return u?u.consumer.originalPositionFor({line:h.generatedLine-(u.generatedOffset.generatedLine-1),column:h.generatedColumn-(u.generatedOffset.generatedLine===h.generatedLine?u.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,h){for(var d=0;d<this._sections.length;d++){var u=this._sections[d],p=u.consumer.sourceContentFor(c,!0);if(p)return p}if(h)return null;throw new Error('"'+c+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(c){for(var h=0;h<this._sections.length;h++){var d=this._sections[h];if(d.consumer.sources.indexOf(e.getArg(c,"source"))!==-1){var u=d.consumer.generatedPositionFor(c);if(u){var p={line:u.line+(d.generatedOffset.generatedLine-1),column:u.column+(d.generatedOffset.generatedLine===u.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},l.prototype._parseMappings=function(c,h){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var u=this._sections[d],p=u.consumer._generatedMappings,m=0;m<p.length;m++){var E=p[m],T=u.consumer._sources.at(E.source);u.consumer.sourceRoot!==null&&(T=e.join(u.consumer.sourceRoot,T)),this._sources.add(T),T=this._sources.indexOf(T);var _=u.consumer._names.at(E.name);this._names.add(_),_=this._names.indexOf(_);var b={source:T,generatedLine:E.generatedLine+(u.generatedOffset.generatedLine-1),generatedColumn:E.generatedColumn+(u.generatedOffset.generatedLine===E.generatedLine?u.generatedOffset.generatedColumn-1:0),originalLine:E.originalLine,originalColumn:E.originalColumn,name:_};this.__generatedMappings.push(b),typeof b.originalLine=="number"&&this.__originalMappings.push(b)}o(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),o(this.__originalMappings,e.compareByOriginalPositions)},Ei.IndexedSourceMapConsumer=l,Ei}var Kl;function eE(){return Kl||(Kl=1,function(e,t){(function(n,r){e.exports=r(Z_(),Bc())})(ue,function(n,r){function o(d){return new Promise(function(u,p){var m=new XMLHttpRequest;m.open("get",d),m.onerror=p,m.onreadystatechange=function(){m.readyState===4&&(m.status>=200&&m.status<300||d.substr(0,7)==="file://"&&m.responseText?u(m.responseText):p(new Error("HTTP status: "+m.status+" retrieving "+d)))},m.send()})}function i(d){if(typeof window<"u"&&window.atob)return window.atob(d);throw new Error("You must supply a polyfill for window.atob in this environment")}function s(d){if(typeof JSON<"u"&&JSON.parse)return JSON.parse(d);throw new Error("You must supply a polyfill for JSON.parse in this environment")}function a(d,u){for(var p=[/['"]?([$_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=d.split(`
43
- `),E="",T=Math.min(u,20),_=0;_<T;++_){var b=m[u-_-1],A=b.indexOf("//");if(A>=0&&(b=b.substr(0,A)),b){E=b+E;for(var w=p.length,P=0;P<w;P++){var F=p[P].exec(E);if(F&&F[1])return F[1]}}}}function l(){if(typeof Object.defineProperty!="function"||typeof Object.create!="function")throw new Error("Unable to consume source maps in older browsers")}function f(d){if(typeof d!="object")throw new TypeError("Given StackFrame is not an object");if(typeof d.fileName!="string")throw new TypeError("Given file name is not a String");if(typeof d.lineNumber!="number"||d.lineNumber%1!==0||d.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if(typeof d.columnNumber!="number"||d.columnNumber%1!==0||d.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}function c(d){for(var u=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/mg,p,m;m=u.exec(d);)p=m[1];if(p)return p;throw new Error("sourceMappingURL not found")}function h(d,u,p){return new Promise(function(m,E){var T=u.originalPositionFor({line:d.lineNumber,column:d.columnNumber});if(T.source){var _=u.sourceContentFor(T.source);_&&(p[T.source]=_),m(new r({functionName:T.name||d.functionName,args:d.args,fileName:T.source,lineNumber:T.line,columnNumber:T.column}))}else E(new Error("Could not get original source for given stackframe and source map"))})}return function d(u){if(!(this instanceof d))return new d(u);u=u||{},this.sourceCache=u.sourceCache||{},this.sourceMapConsumerCache=u.sourceMapConsumerCache||{},this.ajax=u.ajax||o,this._atob=u.atob||i,this._get=function(m){return new Promise((function(E,T){var _=m.substr(0,5)==="data:";if(this.sourceCache[m])E(this.sourceCache[m]);else if(u.offline&&!_)T(new Error("Cannot make network requests in offline mode"));else if(_){var b=/^data:application\/json;([\w=:"-]+;)*base64,/,A=m.match(b);if(A){var w=A[0].length,P=m.substr(w),F=this._atob(P);this.sourceCache[m]=F,E(F)}else T(new Error("The encoding of the inline sourcemap is not supported"))}else{var B=this.ajax(m,{method:"get"});this.sourceCache[m]=B,B.then(E,T)}}).bind(this))},this._getSourceMapConsumer=function(m,E){return new Promise((function(T){if(this.sourceMapConsumerCache[m])T(this.sourceMapConsumerCache[m]);else{var _=new Promise((function(b,A){return this._get(m).then(function(w){typeof w=="string"&&(w=s(w.replace(/^\)\]\}'/,""))),typeof w.sourceRoot>"u"&&(w.sourceRoot=E),b(new n.SourceMapConsumer(w))}).catch(A)}).bind(this));this.sourceMapConsumerCache[m]=_,T(_)}}).bind(this))},this.pinpoint=function(m){return new Promise((function(E,T){this.getMappedLocation(m).then((function(_){function b(){E(_)}this.findFunctionName(_).then(E,b).catch(b)}).bind(this),T)}).bind(this))},this.findFunctionName=function(m){return new Promise((function(E,T){f(m),this._get(m.fileName).then(function(b){var A=m.lineNumber,w=m.columnNumber,P=a(b,A);E(P?new r({functionName:P,args:m.args,fileName:m.fileName,lineNumber:A,columnNumber:w}):m)},T).catch(T)}).bind(this))},this.getMappedLocation=function(m){return new Promise((function(E,T){l(),f(m);var _=this.sourceCache,b=m.fileName;this._get(b).then((function(A){var w=c(A),P=w.substr(0,5)==="data:",F=b.substring(0,b.lastIndexOf("/")+1);return w[0]!=="/"&&!P&&!/^https?:\/\/|^\/\//i.test(w)&&(w=F+w),this._getSourceMapConsumer(w,F).then(function(B){return h(m,B,_).then(E).catch(function(){E(m)})})}).bind(this),T).catch(T)}).bind(this))}}})}(ls)),ls.exports}var Ql;function tE(){return Ql||(Ql=1,function(e,t){(function(n,r){e.exports=r(V_(),z_(),eE())})(ue,function(r,o,i){var s={filter:function(h){return(h.functionName||"").indexOf("StackTrace$$")===-1&&(h.functionName||"").indexOf("ErrorStackParser$$")===-1&&(h.functionName||"").indexOf("StackTraceGPS$$")===-1&&(h.functionName||"").indexOf("StackGenerator$$")===-1},sourceCache:{}},a=function(){try{throw new Error}catch(d){return d}};function l(h,d){var u={};return[h,d].forEach(function(p){for(var m in p)Object.prototype.hasOwnProperty.call(p,m)&&(u[m]=p[m]);return u}),u}function f(h){return h.stack||h["opera#sourceloc"]}function c(h,d){return typeof d=="function"?h.filter(d):h}return{get:function(d){var u=a();return f(u)?this.fromError(u,d):this.generateArtificially(d)},getSync:function(d){d=l(s,d);var u=a(),p=f(u)?r.parse(u):o.backtrace(d);return c(p,d.filter)},fromError:function(d,u){u=l(s,u);var p=new i(u);return new Promise((function(m){var E=c(r.parse(d),u.filter);m(Promise.all(E.map(function(T){return new Promise(function(_){function b(){_(T)}p.pinpoint(T).then(_,b).catch(b)})})))}).bind(this))},generateArtificially:function(d){d=l(s,d);var u=o.backtrace(d);return typeof d.filter=="function"&&(u=u.filter(d.filter)),Promise.resolve(u)},instrument:function(d,u,p,m){if(typeof d!="function")throw new Error("Cannot instrument non-function object");if(typeof d.__stacktraceOriginalFn=="function")return d;var E=(function(){try{return this.get().then(u,p).catch(p),d.apply(m||this,arguments)}catch(_){throw f(_)&&this.fromError(_).then(u,p).catch(p),_}}).bind(this);return E.__stacktraceOriginalFn=d,E},deinstrument:function(d){if(typeof d!="function")throw new Error("Cannot de-instrument non-function object");return typeof d.__stacktraceOriginalFn=="function"?d.__stacktraceOriginalFn:d},report:function(d,u,p,m){return new Promise(function(E,T){var _=new XMLHttpRequest;if(_.onerror=T,_.onreadystatechange=function(){_.readyState===4&&(_.status>=200&&_.status<400?E(_.responseText):T(new Error("POST to "+u+" failed with status: "+_.status)))},_.open("post",u),_.setRequestHeader("Content-Type","application/json"),m&&typeof m.headers=="object"){var b=m.headers;for(var A in b)Object.prototype.hasOwnProperty.call(b,A)&&_.setRequestHeader(A,b[A])}var w={stack:d};p!=null&&(w.message=p),_.send(JSON.stringify(w))})}}})}(as)),as.exports}var ms,Xl;function rE(){if(Xl)return ms;Xl=1;var e=tE(),t="https://clouderrorreporting.googleapis.com/v1beta1/projects/",n=function(){};n.prototype.start=function(s){if(!s.key&&!s.targetUrl&&!s.customReportingFunction)throw new Error("Cannot initialize: No API key, target url or custom reporting function provided.");if(!s.projectId&&!s.targetUrl&&!s.customReportingFunction)throw new Error("Cannot initialize: No project ID, target url or custom reporting function provided.");this.customReportingFunction=s.customReportingFunction,this.apiKey=s.key,this.projectId=s.projectId,this.targetUrl=s.targetUrl,this.context=s.context||{},this.serviceContext={service:s.service||"web"},s.version&&(this.serviceContext.version=s.version),this.reportUncaughtExceptions=s.reportUncaughtExceptions!==!1,this.reportUnhandledPromiseRejections=s.reportUnhandledPromiseRejections!==!1,this.disabled=!!s.disabled,r(this)};function r(s){var a=function(){};if(s.reportUncaughtExceptions){var l=window.onerror||a;window.onerror=function(c,h,d,u,p){return p&&s.report(p).catch(a),l(c,h,d,u,p),!0}}if(s.reportUnhandledPromiseRejections){var f=window.onunhandledrejection||a;window.onunhandledrejection=function(c){return c&&s.report(c.reason).catch(a),f(c.reason),!0}}}n.prototype.report=function(s,a){if(this.disabled)return Promise.resolve(null);if(!s)return Promise.reject(new Error("no error to report"));a=a||{};var l={};l.serviceContext=this.serviceContext,l.context=this.context,l.context.httpRequest={userAgent:window.navigator.userAgent,url:window.location.href};var f=0;if(typeof s=="string"||s instanceof String){try{throw new Error(s)}catch(d){s=d}f=a.skipLocalFrames||1}var c=this.targetUrl||t+this.projectId+"/events:report?key="+this.apiKey,h=this.customReportingFunction;return o(s,f).then(function(d){return l.message=d,h?h(l):i(c,l)})};function o(s,a){return e.fromError(s).then(function(l){for(var f=[s.toString()],c=a;c<l.length;c++)f.push([" at ",l[c].getFunctionName()||"<anonymous>"," (",l[c].getFileName(),":",l[c].getLineNumber(),":",l[c].getColumnNumber(),")"].join(""));return f.join(`
44
- `)},function(l){return["Error extracting stack trace: ",l,`
34
+ `),n}return!0}function gh(e){var t=Object.getOwnPropertyNames(e),n=Q0(t),r;try{for(n.s();!(r=n.n()).done;){var o=r.value,i=e[o];i&&ic(i)==="object"&&gh(i)}}catch(s){n.e(s)}finally{n.f()}return Object.freeze(e)}function f_(e){return gh(e.sys||{}),e}function vl(){var e=r_();if(!e)return null;var t=e.navigator.userAgent,n=e.navigator.platform,r=["Macintosh","MacIntel","MacPPC","Mac68K"],o=["Win32","Win64","Windows","WinCE"],i=["iPhone","iPad","iPod"];return r.indexOf(n)!==-1?"macOS":i.indexOf(n)!==-1?"iOS":o.indexOf(n)!==-1?"Windows":/Android/.test(t)?"Android":/Linux/.test(n)?"Linux":null}function d_(){var e=process.platform||"linux",t=process.version||"0.0.0",n={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in n?"".concat(n[e]||"Linux","/").concat(t):null}function h_(e,t,n,r){var o=[];t&&o.push("app ".concat(t)),n&&o.push("integration ".concat(n)),r&&o.push("feature "+r),o.push("sdk ".concat(e));var i=null;try{e_()?(i=vl(),o.push("platform ReactNative")):Z0()?(i=d_(),o.push("platform node.js/".concat(t_()))):(i=vl(),o.push("platform browser"))}catch{i=null}return i&&o.push("os ".concat(i)),"".concat(o.filter(function(s){return s!==""}).join("; "),";")}function p_(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return _r(this)}})}function m_(e){var t=e.config,n=e.response,r;if(t&&t.headers&&t.headers.Authorization){var o="...".concat(t.headers.Authorization.toString().substr(-5));t.headers.Authorization="Bearer ".concat(o)}if(!lo(n)||!lo(t))throw e;var i=n==null?void 0:n.data,s={status:n==null?void 0:n.status,statusText:n==null?void 0:n.statusText,message:"",details:{}};lo(t)&&(s.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),i&&lo(i)&&("requestId"in i&&(s.requestId=i.requestId||"UNKNOWN"),"message"in i&&(s.message=i.message||""),"details"in i&&(s.details=i.details||{}),"sys"in i&&"id"in i.sys&&(r=i.sys.id));var a=new Error;a.name=r&&r!=="Unknown"?r:"".concat(n==null?void 0:n.status," ").concat(n==null?void 0:n.statusText);try{a.message=JSON.stringify(s,null," ")}catch{var u;a.message=(u=s==null?void 0:s.message)!==null&&u!==void 0?u:""}throw a}const g_=Object.freeze(Object.defineProperty({__proto__:null,createHttpClient:mh,createRequestConfig:u_,enforceObjPath:l_,errorHandler:m_,freezeSys:f_,getUserAgentHeader:h_,toPlainObject:p_},Symbol.toStringTag,{value:"Module"})),Ht=Yi(g_);var fo={},pi={},ho={},_l;function y_(){if(_l)return ho;_l=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.wrapSpace=t;var e=Ht;function t(n){return(0,e.freezeSys)((0,e.toPlainObject)(n))}return ho}var mi={},ts={exports:{}},El;function Mn(){return El||(El=1,function(e,t){(function(n,r){e.exports=r()})(ce,function(){var n=Function.prototype.toString,r=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,f=Object.prototype,c=f.hasOwnProperty,h=f.propertyIsEnumerable,d=typeof a=="function",l=typeof WeakMap=="function",p=function(){if(l)return function(){return new WeakMap};var F=function(){function B(){this._keys=[],this._values=[]}return B.prototype.has=function(G){return!!~this._keys.indexOf(G)},B.prototype.get=function(G){return this._values[this._keys.indexOf(G)]},B.prototype.set=function(G,W){this._keys.push(G),this._values.push(W)},B}();return function(){return new F}}(),m=function(F,B){var G=F.__proto__||u(F);if(!G)return r(null);var W=G.constructor;if(W===B.Object)return G===B.Object.prototype?{}:r(G);if(~n.call(W).indexOf("[native code]"))try{return new W}catch{}return r(G)},E=function(F,B,G,W){var V=m(F,B);W.set(F,V);for(var H in F)c.call(F,H)&&(V[H]=G(F[H],W));if(d)for(var Y=a(F),oe=0,Q=Y.length,M=void 0;oe<Q;++oe)M=Y[oe],h.call(F,M)&&(V[M]=G(F[M],W));return V},T=function(F,B,G,W){var V=m(F,B);W.set(F,V);for(var H=d?s(F).concat(a(F)):s(F),Y=0,oe=H.length,Q=void 0,M=void 0;Y<oe;++Y)if(Q=H[Y],Q!=="callee"&&Q!=="caller")if(M=i(F,Q),M){!M.get&&!M.set&&(M.value=G(F[Q],W));try{o(V,Q,M)}catch{V[Q]=M.value}}else V[Q]=G(F[Q],W);return V},_=function(F){var B="";return F.global&&(B+="g"),F.ignoreCase&&(B+="i"),F.multiline&&(B+="m"),F.unicode&&(B+="u"),F.sticky&&(B+="y"),B},b=Array.isArray,A=Object.getPrototypeOf,w=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof ce<"u"?ce:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function N(F,B){var G=!!(B&&B.isStrict),W=B&&B.realm||w,V=G?T:E,H=function(Y,oe){if(!Y||typeof Y!="object")return Y;if(oe.has(Y))return oe.get(Y);var Q=Y.__proto__||A(Y),M=Q&&Q.constructor;if(!M||M===W.Object)return V(Y,W,H,oe);var z;if(b(Y)){if(G)return T(Y,W,H,oe);z=new M,oe.set(Y,z);for(var Z=0,de=Y.length;Z<de;++Z)z[Z]=H(Y[Z],oe);return z}if(Y instanceof W.Date)return new M(Y.getTime());if(Y instanceof W.RegExp)return z=new M(Y.source,Y.flags||_(Y)),z.lastIndex=Y.lastIndex,z;if(W.Map&&Y instanceof W.Map)return z=new M,oe.set(Y,z),Y.forEach(function(X,K){z.set(K,H(X,oe))}),z;if(W.Set&&Y instanceof W.Set)return z=new M,oe.set(Y,z),Y.forEach(function(X){z.add(H(X,oe))}),z;if(W.Blob&&Y instanceof W.Blob)return Y.slice(0,Y.size,Y.type);if(W.Buffer&&W.Buffer.isBuffer(Y))return z=W.Buffer.allocUnsafe?W.Buffer.allocUnsafe(Y.length):new M(Y.length),oe.set(Y,z),Y.copy(z),z;if(W.ArrayBuffer){if(W.ArrayBuffer.isView(Y))return z=new M(Y.buffer.slice(0)),oe.set(Y,z),z;if(Y instanceof W.ArrayBuffer)return z=Y.slice(0),oe.set(Y,z),z}return typeof Y.then=="function"||Y instanceof Error||W.WeakMap&&Y instanceof W.WeakMap||W.WeakSet&&Y instanceof W.WeakSet?Y:V(Y,W,H,oe)};return H(F,p())}return N.default=N,N.strict=function(B,G){return N(B,{isStrict:!0,realm:G?G.realm:void 0})},N})}(ts)),ts.exports}var po={},mo={exports:{}},bl;function v_(){return bl||(bl=1,function(e,t){t=e.exports=n,t.getSerialize=r;function n(o,i,s,a){return JSON.stringify(o,r(i,a),s)}function r(o,i){var s=[],a=[];return i==null&&(i=function(u,f){return s[0]===f?"[Circular ~]":"[Circular ~."+a.slice(0,s.indexOf(f)).join(".")+"]"}),function(u,f){if(s.length>0){var c=s.indexOf(this);~c?s.splice(c+1):s.push(this),~c?a.splice(c,1/0,u):a.push(u),~s.indexOf(f)&&(f=i.call(this,u,f))}else s.push(f);return o==null?f:o.call(this,u,f)}}}(mo,mo.exports)),mo.exports}var wl;function yh(){if(wl)return po;wl=1,Object.defineProperty(po,"__esModule",{value:!0}),po.default=n;var e=t(v_());function t(r){return r&&r.__esModule?r:{default:r}}function n(r){return Object.defineProperty(r,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,e.default)(this,o,i,(s,a)=>({sys:{type:"Link",linkType:"Entry",id:a.sys.id,circular:!0}}))}})}return po}var __=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},E_=function(){function e(t,n){var r=[],o=!0,i=!1,s=void 0;try{for(var a=t[Symbol.iterator](),u;!(o=(u=a.next()).done)&&(r.push(u.value),!(n&&r.length===n));o=!0);}catch(f){i=!0,s=f}finally{try{!o&&a.return&&a.return()}finally{if(i)throw s}}return r}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function gi(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var Gi={},b_=function(t){return t&&t.sys&&t.sys.type==="Link"},w_=function(t){return t&&t.sys&&t.sys.type==="ResourceLink"},S_=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]},Sl=function(t,n){var r=n.entryId,o=n.linkType,i=n.spaceId,s=n.environmentId;return i&&s?t.get(i+"!"+s+"!"+o+"!"+r):t.get(o+"!"+r)},T_=function(t){var n=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(n.test(t)){var r=t.match(n),o=E_(r,4);o[0];var i=o[1],s=o[2],a=s===void 0?"master":s,u=o[3];return{spaceId:i,environmentId:a,entryId:u}}},x_=function(t,n){var r=n.sys,o=r.type,i=r.linkType;if(o==="ResourceLink"){var s=n.sys.urn,a=T_(s),u=a.spaceId,f=a.environmentId,c=a.entryId,h=i.split(":")[1];return Sl(t,{linkType:h,entryId:c,spaceId:u,environmentId:f})||Gi}var d=n.sys.id;return Sl(t,{linkType:i,entryId:d})||Gi},O_=function(t){if(Array.isArray(t))return t.filter(function(r){return r!==Gi});for(var n in t)t[n]===Gi&&delete t[n];return t},A_=function e(t,n,r,o){if(n(t))return r(t);if(t&&(typeof t>"u"?"undefined":__(t))==="object"){for(var i in t)t.hasOwnProperty(i)&&(t[i]=e(t[i],n,r,o));o&&(t=O_(t))}return t},C_=function(t,n,r){var o=x_(t,n);return o===Gi?r?o:n:o},R_=function(t,n){if(!Array.isArray(n))return t;var r=Object.keys(t).filter(function(o){return n.indexOf(o)!==-1});return r.reduce(function(o,i){return o[i]=t[i],o},{})},N_=function(t,n){if(n=n||{},!t.items)return[];var r=_r(t),o=Object.keys(r.includes||{}).reduce(function(a,u){return[].concat(gi(a),gi(t.includes[u]))},[]),i=[].concat(gi(r.items),gi(o)).filter(function(a){return!!a.sys}),s=new Map(i.reduce(function(a,u){var f=S_(u.sys).map(function(c){return[c,u]});return a.push.apply(a,gi(f)),a},[]));return i.forEach(function(a){var u=R_(a,n.itemEntryPoints);Object.assign(a,A_(u,function(f){return b_(f)||w_(f)},function(f){return C_(s,f,n.removeUnresolved)},n.removeUnresolved))}),r.items};const P_=Object.freeze(Object.defineProperty({__proto__:null,default:N_},Symbol.toStringTag,{value:"Module"})),vh=Yi(P_);var Tl;function I_(){if(Tl)return mi;Tl=1,Object.defineProperty(mi,"__esModule",{value:!0}),mi.wrapEntry=i,mi.wrapEntryCollection=s;var e=o(Mn()),t=Ht,n=o(yh()),r=o(vh);function o(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(a)))}function s(a,u){let{resolveLinks:f,removeUnresolved:c}=u;const h=(0,n.default)((0,t.toPlainObject)((0,e.default)(a)));return f&&(h.items=(0,r.default)(h,{removeUnresolved:c,itemEntryPoints:["fields"]})),(0,t.freezeSys)(h)}return mi}var yi={},xl;function L_(){if(xl)return yi;xl=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.wrapAsset=r,yi.wrapAssetCollection=o;var e=n(Mn()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return yi}var go={},Ol;function M_(){if(Ol)return go;Ol=1,Object.defineProperty(go,"__esModule",{value:!0}),go.wrapAssetKey=r;var e=n(Mn()),t=Ht;function n(o){return o&&o.__esModule?o:{default:o}}function r(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return go}var vi={},Al;function k_(){if(Al)return vi;Al=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.wrapContentType=r,vi.wrapContentTypeCollection=o;var e=n(Mn()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return vi}var _i={},Cl;function B_(){if(Cl)return _i;Cl=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.wrapLocale=r,_i.wrapLocaleCollection=o;var e=n(Mn()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return _i}var Ei={},Rl;function F_(){if(Rl)return Ei;Rl=1,Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.wrapTag=r,Ei.wrapTagCollection=o;var e=n(Mn()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return Ei}var Nl;function U_(){if(Nl)return pi;Nl=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.default=void 0;var e=u(y_()),t=u(I_()),n=u(L_()),r=u(M_()),o=u(k_()),i=u(B_()),s=u(F_());function a(c){if(typeof WeakMap!="function")return null;var h=new WeakMap,d=new WeakMap;return(a=function(l){return l?d:h})(c)}function u(c,h){if(!h&&c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var d=a(h);if(d&&d.has(c))return d.get(c);var l={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in c)if(m!=="default"&&Object.prototype.hasOwnProperty.call(c,m)){var E=p?Object.getOwnPropertyDescriptor(c,m):null;E&&(E.get||E.set)?Object.defineProperty(l,m,E):l[m]=c[m]}return l.default=c,d&&d.set(c,l),l}var f={space:e,entry:t,asset:n,assetKey:r,contentType:o,locale:i,tag:s};return pi.default=f,pi}var yo={},Pl;function D_(){if(Pl)return yo;Pl=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=a;var e=Ht,t=r(vh),n=r(yh());function r(h){return h&&h.__esModule?h:{default:h}}function o(h,d){var l=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(h,m).enumerable})),l.push.apply(l,p)}return l}function i(h){for(var d=1;d<arguments.length;d++){var l=arguments[d]!=null?arguments[d]:{};d%2?o(Object(l),!0).forEach(function(p){s(h,p,l[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(l)):o(Object(l)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(l,p))})}return h}function s(h,d,l){return d in h?Object.defineProperty(h,d,{value:l,enumerable:!0,configurable:!0,writable:!0}):h[d]=l,h}async function a(h,d){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!d||!d.initial&&!d.nextSyncToken&&!d.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(d&&d.content_type&&!d.type)d.type="Entry";else if(d&&d.content_type&&d.type&&d.type!=="Entry")throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");const p={resolveLinks:!0,removeUnresolved:!1,paginate:!0},{resolveLinks:m,removeUnresolved:E,paginate:T}=i(i({},p),l),b=await f(h,[],d,{paginate:T});m&&(b.items=(0,t.default)(b,{removeUnresolved:E,itemEntryPoints:["fields"]}));const A=u(b.items);return b.nextSyncToken&&(A.nextSyncToken=b.nextSyncToken),b.nextPageToken&&(A.nextPageToken=b.nextPageToken),(0,e.freezeSys)((0,n.default)((0,e.toPlainObject)(A)))}function u(h){const d=l=>(p,m)=>(m.sys.type===l&&p.push((0,e.toPlainObject)(m)),p);return{entries:h.reduce(d("Entry"),[]),assets:h.reduce(d("Asset"),[]),deletedEntries:h.reduce(d("DeletedEntry"),[]),deletedAssets:h.reduce(d("DeletedAsset"),[])}}async function f(h,d,l,p){let{paginate:m}=p;l.nextSyncToken&&(l.sync_token=l.nextSyncToken,delete l.nextSyncToken),l.nextPageToken&&(l.sync_token=l.nextPageToken,delete l.nextPageToken),l.sync_token&&(delete l.initial,delete l.type,delete l.content_type,delete l.limit);const T=(await h.get("sync",(0,e.createRequestConfig)({query:l}))).data||{};return d=d.concat(T.items||[]),T.nextPageUrl?m?(delete l.initial,l.sync_token=c(T.nextPageUrl),f(h,d,l,{paginate:m})):{items:d,nextPageToken:c(T.nextPageUrl)}:T.nextSyncUrl?{items:d,nextSyncToken:c(T.nextSyncUrl)}:{items:[]}}function c(h){const d=h.split("?");return d.length>0?d[1].replace("sync_token=",""):""}return yo}var vo={},Il;function $_(){if(Il)return vo;Il=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.default=r;function e(o,i){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(o);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(o,u).enumerable})),s.push.apply(s,a)}return s}function t(o){for(var i=1;i<arguments.length;i++){var s=arguments[i]!=null?arguments[i]:{};i%2?e(Object(s),!0).forEach(function(a){n(o,a,s[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):e(Object(s)).forEach(function(a){Object.defineProperty(o,a,Object.getOwnPropertyDescriptor(s,a))})}return o}function n(o,i,s){return i in o?Object.defineProperty(o,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[i]=s,o}function r(o){if(!o.select)return o;const i=Array.isArray(o.select)?o.select:o.select.split(","),s=new Set(i);return s.has("sys")?o:(s.add("sys.id"),s.add("sys.type"),t(t({},o),{},{select:[...s].join(",")}))}return vo}var bn={},Ll;function j_(){if(Ll)return bn;Ll=1,Object.defineProperty(bn,"__esModule",{value:!0}),bn.ValidationError=void 0,bn.default=t;class e extends Error{constructor(r,o){super(`Invalid "${r}" provided, `+o),this.name="ValidationError"}}bn.ValidationError=e;function t(n,r,o){if(o=o||{},typeof r!="number")throw new e(n,`only numeric values are allowed for timestamps, provided type was "${typeof r}"`);if(o.maximum&&r>o.maximum)throw new e(n,`value (${r}) cannot be further in the future than expected maximum (${o.maximum})`);if(o.now&&r<o.now)throw new e(n,`value (${r}) cannot be in the past, current time was ${o.now}`)}return bn}var Ml;function H_(){if(Ml)return fo;Ml=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.default=c;var e=Ht,t=i(U_()),n=i(D_()),r=i($_()),o=i(j_());function i(h){return h&&h.__esModule?h:{default:h}}function s(h,d){var l=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(h,m).enumerable})),l.push.apply(l,p)}return l}function a(h){for(var d=1;d<arguments.length;d++){var l=arguments[d]!=null?arguments[d]:{};d%2?s(Object(l),!0).forEach(function(p){u(h,p,l[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(l)):s(Object(l)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(l,p))})}return h}function u(h,d,l){return d in h?Object.defineProperty(h,d,{value:l,enumerable:!0,configurable:!0,writable:!0}):h[d]=l,h}const f=48*60*60;function c(h){let{http:d,getGlobalOptions:l}=h;const{wrapSpace:p}=t.default.space,{wrapContentType:m,wrapContentTypeCollection:E}=t.default.contentType,{wrapEntry:T,wrapEntryCollection:_}=t.default.entry,{wrapAsset:b,wrapAssetCollection:A}=t.default.asset,{wrapTag:w,wrapTagCollection:N}=t.default.tag,{wrapAssetKey:F}=t.default.assetKey,{wrapLocaleCollection:B}=t.default.locale,G=J=>{const re=new Error("The resource could not be found.");return re.sys={type:"Error",id:"NotFound"},re.details={type:"Entry",id:J,environment:l().environment,space:l().space},re};async function W(){Fe(d);try{const J=await d.get("/");return p(J.data)}catch(J){(0,e.errorHandler)(J)}}async function V(J){ue(d);try{const re=await d.get(`content_types/${J}`);return m(re.data)}catch(re){(0,e.errorHandler)(re)}}async function H(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ue(d);try{const re=await d.get("content_types",(0,e.createRequestConfig)({query:J}));return E(re.data)}catch(re){(0,e.errorHandler)(re)}}async function Y(J){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!J)throw G(J);try{const Pe=await this.getEntries(a({"sys.id":J},re));if(Pe.items.length>0)return T(Pe.items[0]);throw G(J)}catch(Pe){(0,e.errorHandler)(Pe)}}async function oe(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ue(d);const{resolveLinks:re,removeUnresolved:Pe}=l(J);J=(0,r.default)(J);try{const Ae=await d.get("entries",(0,e.createRequestConfig)({query:J}));return _(Ae.data,{resolveLinks:re,removeUnresolved:Pe})}catch(Ae){(0,e.errorHandler)(Ae)}}async function Q(J){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ue(d),re=(0,r.default)(re);try{const Pe=await d.get(`assets/${J}`,(0,e.createRequestConfig)({query:re}));return b(Pe.data)}catch(Pe){(0,e.errorHandler)(Pe)}}async function M(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ue(d),J=(0,r.default)(J);try{const re=await d.get("assets",(0,e.createRequestConfig)({query:J}));return A(re.data)}catch(re){(0,e.errorHandler)(re)}}async function z(J){ue(d);try{const re=await d.get(`tags/${J}`);return w(re.data)}catch(re){(0,e.errorHandler)(re)}}async function Z(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ue(d),J=(0,r.default)(J);try{const re=await d.get("tags",(0,e.createRequestConfig)({query:J}));return N(re.data)}catch(re){(0,e.errorHandler)(re)}}async function de(J){ue(d);try{const re=Math.floor(Date.now()/1e3),Pe=re+f;(0,o.default)("expiresAt",J,{maximum:Pe,now:re});const Ae={expiresAt:J},st=await d.post("asset_keys",Ae);return F(st.data)}catch(re){(0,e.errorHandler)(re)}}async function X(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ue(d);try{const re=await d.get("locales",(0,e.createRequestConfig)({query:J}));return B(re.data)}catch(re){(0,e.errorHandler)(re)}}async function K(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{paginate:!0};const{resolveLinks:Pe,removeUnresolved:Ae}=l(J);return ue(d),(0,n.default)(d,J,a({resolveLinks:Pe,removeUnresolved:Ae},re))}function se(J){const{resolveLinks:re,removeUnresolved:Pe}=l({});return _(J,{resolveLinks:re,removeUnresolved:Pe})}function ue(J){J.defaults.baseURL=l().environmentBaseUrl}function Fe(J){J.defaults.baseURL=l().spaceBaseUrl}return{getSpace:W,getContentType:V,getContentTypes:H,getEntry:Y,getEntries:oe,getAsset:Q,getAssets:M,getTag:z,getTags:Z,createAssetKey:de,getLocales:X,parseEntries:se,sync:K}}return fo}var _o={},kl;function q_(){if(kl)return _o;kl=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=e;function e(t){return function(r){return Object.assign({},t,r)}}return _o}var Bl;function G_(){if(Bl)return oo;Bl=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.createClient=u;var e=o(Vd()),t=Ht,n=o(H_()),r=o(q_());function o(f){return f&&f.__esModule?f:{default:f}}function i(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(f);c&&(d=d.filter(function(l){return Object.getOwnPropertyDescriptor(f,l).enumerable})),h.push.apply(h,d)}return h}function s(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?i(Object(h),!0).forEach(function(d){a(f,d,h[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):i(Object(h)).forEach(function(d){Object.defineProperty(f,d,Object.getOwnPropertyDescriptor(h,d))})}return f}function a(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function u(f){if(!f.accessToken)throw new TypeError("Expected parameter accessToken");if(!f.space)throw new TypeError("Expected parameter space");const h=s(s({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),f),d=(0,t.getUserAgentHeader)("contentful.js/9.1.34",h.application,h.integration);h.headers=s(s({},h.headers),{},{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":d});const l=(0,t.createHttpClient)(e.default,h),p=(0,r.default)({resolveLinks:h.resolveLinks,environment:h.environment,removeUnresolved:h.removeUnresolved,spaceBaseUrl:l.defaults.baseURL,environmentBaseUrl:`${l.defaults.baseURL}environments/${h.environment}`});return l.defaults.baseURL=p().environmentBaseUrl,(0,n.default)({http:l,getGlobalOptions:p})}return oo}var rs={},ns,Fl;function W_(){return Fl||(Fl=1,ns=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),ns}var is,Ul;function V_(){if(Ul)return is;Ul=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),n=new RegExp("("+e+")+","gi");function r(s,a){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;a=a||1;var u=s.slice(0,a),f=s.slice(a);return Array.prototype.concat.call([],r(u),r(f))}function o(s){try{return decodeURIComponent(s)}catch{for(var a=s.match(t)||[],u=1;u<a.length;u++)s=r(a,u).join(""),a=s.match(t)||[];return s}}function i(s){for(var a={"%FE%FF":"��","%FF%FE":"��"},u=n.exec(s);u;){try{a[u[0]]=decodeURIComponent(u[0])}catch{var f=o(u[0]);f!==u[0]&&(a[u[0]]=f)}u=n.exec(s)}a["%C2"]="�";for(var c=Object.keys(a),h=0;h<c.length;h++){var d=c[h];s=s.replace(new RegExp(d,"g"),a[d])}return s}return is=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return i(s)}},is}var os,Dl;function z_(){return Dl||(Dl=1,os=(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 n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]}),os}var as,$l;function Y_(){return $l||($l=1,as=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var s=r[i],a=e[s];(o?t.indexOf(s)!==-1:t(s,a,e))&&(n[s]=a)}return n}),as}var jl;function K_(){return jl||(jl=1,function(e){const t=W_(),n=V_(),r=z_(),o=Y_(),i=_=>_==null,s=Symbol("encodeFragmentIdentifier");function a(_){switch(_.arrayFormat){case"index":return b=>(A,w)=>{const N=A.length;return w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,[c(b,_),"[",N,"]"].join("")]:[...A,[c(b,_),"[",c(N,_),"]=",c(w,_)].join("")]};case"bracket":return b=>(A,w)=>w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,[c(b,_),"[]"].join("")]:[...A,[c(b,_),"[]=",c(w,_)].join("")];case"colon-list-separator":return b=>(A,w)=>w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,[c(b,_),":list="].join("")]:[...A,[c(b,_),":list=",c(w,_)].join("")];case"comma":case"separator":case"bracket-separator":{const b=_.arrayFormat==="bracket-separator"?"[]=":"=";return A=>(w,N)=>N===void 0||_.skipNull&&N===null||_.skipEmptyString&&N===""?w:(N=N===null?"":N,w.length===0?[[c(A,_),b,c(N,_)].join("")]:[[w,c(N,_)].join(_.arrayFormatSeparator)])}default:return b=>(A,w)=>w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,c(b,_)]:[...A,[c(b,_),"=",c(w,_)].join("")]}}function u(_){let b;switch(_.arrayFormat){case"index":return(A,w,N)=>{if(b=/\[(\d*)\]$/.exec(A),A=A.replace(/\[\d*\]$/,""),!b){N[A]=w;return}N[A]===void 0&&(N[A]={}),N[A][b[1]]=w};case"bracket":return(A,w,N)=>{if(b=/(\[\])$/.exec(A),A=A.replace(/\[\]$/,""),!b){N[A]=w;return}if(N[A]===void 0){N[A]=[w];return}N[A]=[].concat(N[A],w)};case"colon-list-separator":return(A,w,N)=>{if(b=/(:list)$/.exec(A),A=A.replace(/:list$/,""),!b){N[A]=w;return}if(N[A]===void 0){N[A]=[w];return}N[A]=[].concat(N[A],w)};case"comma":case"separator":return(A,w,N)=>{const F=typeof w=="string"&&w.includes(_.arrayFormatSeparator),B=typeof w=="string"&&!F&&h(w,_).includes(_.arrayFormatSeparator);w=B?h(w,_):w;const G=F||B?w.split(_.arrayFormatSeparator).map(W=>h(W,_)):w===null?w:h(w,_);N[A]=G};case"bracket-separator":return(A,w,N)=>{const F=/(\[\])$/.test(A);if(A=A.replace(/\[\]$/,""),!F){N[A]=w&&h(w,_);return}const B=w===null?[]:w.split(_.arrayFormatSeparator).map(G=>h(G,_));if(N[A]===void 0){N[A]=B;return}N[A]=[].concat(N[A],B)};default:return(A,w,N)=>{if(N[A]===void 0){N[A]=w;return}N[A]=[].concat(N[A],w)}}}function f(_){if(typeof _!="string"||_.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(_,b){return b.encode?b.strict?t(_):encodeURIComponent(_):_}function h(_,b){return b.decode?n(_):_}function d(_){return Array.isArray(_)?_.sort():typeof _=="object"?d(Object.keys(_)).sort((b,A)=>Number(b)-Number(A)).map(b=>_[b]):_}function l(_){const b=_.indexOf("#");return b!==-1&&(_=_.slice(0,b)),_}function p(_){let b="";const A=_.indexOf("#");return A!==-1&&(b=_.slice(A)),b}function m(_){_=l(_);const b=_.indexOf("?");return b===-1?"":_.slice(b+1)}function E(_,b){return b.parseNumbers&&!Number.isNaN(Number(_))&&typeof _=="string"&&_.trim()!==""?_=Number(_):b.parseBooleans&&_!==null&&(_.toLowerCase()==="true"||_.toLowerCase()==="false")&&(_=_.toLowerCase()==="true"),_}function T(_,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),f(b.arrayFormatSeparator);const A=u(b),w=Object.create(null);if(typeof _!="string"||(_=_.trim().replace(/^[?#&]/,""),!_))return w;for(const N of _.split("&")){if(N==="")continue;let[F,B]=r(b.decode?N.replace(/\+/g," "):N,"=");B=B===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?B:h(B,b),A(h(F,b),B,w)}for(const N of Object.keys(w)){const F=w[N];if(typeof F=="object"&&F!==null)for(const B of Object.keys(F))F[B]=E(F[B],b);else w[N]=E(F,b)}return b.sort===!1?w:(b.sort===!0?Object.keys(w).sort():Object.keys(w).sort(b.sort)).reduce((N,F)=>{const B=w[F];return B&&typeof B=="object"&&!Array.isArray(B)?N[F]=d(B):N[F]=B,N},Object.create(null))}e.extract=m,e.parse=T,e.stringify=(_,b)=>{if(!_)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),f(b.arrayFormatSeparator);const A=B=>b.skipNull&&i(_[B])||b.skipEmptyString&&_[B]==="",w=a(b),N={};for(const B of Object.keys(_))A(B)||(N[B]=_[B]);const F=Object.keys(N);return b.sort!==!1&&F.sort(b.sort),F.map(B=>{const G=_[B];return G===void 0?"":G===null?c(B,b):Array.isArray(G)?G.length===0&&b.arrayFormat==="bracket-separator"?c(B,b)+"[]":G.reduce(w(B),[]).join("&"):c(B,b)+"="+c(G,b)}).filter(B=>B.length>0).join("&")},e.parseUrl=(_,b)=>{b=Object.assign({decode:!0},b);const[A,w]=r(_,"#");return Object.assign({url:A.split("?")[0]||"",query:T(m(_),b)},b&&b.parseFragmentIdentifier&&w?{fragmentIdentifier:h(w,b)}:{})},e.stringifyUrl=(_,b)=>{b=Object.assign({encode:!0,strict:!0,[s]:!0},b);const A=l(_.url).split("?")[0]||"",w=e.extract(_.url),N=e.parse(w,{sort:!1}),F=Object.assign(N,_.query);let B=e.stringify(F,b);B&&(B=`?${B}`);let G=p(_.url);return _.fragmentIdentifier&&(G=`#${b[s]?c(_.fragmentIdentifier,b):_.fragmentIdentifier}`),`${A}${B}${G}`},e.pick=(_,b,A)=>{A=Object.assign({parseFragmentIdentifier:!0,[s]:!1},A);const{url:w,query:N,fragmentIdentifier:F}=e.parseUrl(_,A);return e.stringifyUrl({url:w,query:o(N,b),fragmentIdentifier:F},A)},e.exclude=(_,b,A)=>{const w=Array.isArray(b)?N=>!b.includes(N):(N,F)=>!b(N,F);return e.pick(_,w,A)}}(rs)),rs}var Hl;function Q_(){return Hl||(Hl=1,function(e,t){(function(n,r){e.exports=r(G_(),K_())})(ce,function(n,r){return function(){var o={897:function(u){u.exports=n},48:function(u){u.exports=r}},i={};function s(u){var f=i[u];if(f!==void 0)return f.exports;var c=i[u]={exports:{}};return o[u](c,c.exports,s),c.exports}s.d=function(u,f){for(var c in f)s.o(f,c)&&!s.o(u,c)&&Object.defineProperty(u,c,{enumerable:!0,get:f[c]})},s.o=function(u,f){return Object.prototype.hasOwnProperty.call(u,f)},s.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var a={};return function(){s.r(a),s.d(a,{getEntries:function(){return oe},getEntry:function(){return Y},setContext:function(){return m}});var u=s(897),f=s(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:h,SPACE:d,HOSTS:l}}=c;let p={apiKey:null,previewKey:null,environment:null,isPreview:!1,host:l.CDN,space:d};const m=({apiKey:Q,environment:M,isPreview:z=!1,location:Z,previewKey:de,space:X=null})=>{p.apiKey=Q,p.previewKey=de,p.environment=(K=>{if(!K)throw new Error("Cannot map environment: Environment not defined");if(!h[K])throw new Error(`Cannot map environment: No mapping found for environment ${K}`);return h[K]})(M),p.isPreview=z||(K=>{let se=!1;if(K&&K.search){const ue=(0,f.parse)(K.search);se=ue.isPreview&&ue.isPreview==="true"}return se})(Z),p.space=X||d},E=(Q=!1)=>{const{apiKey:M,environment:z,isPreview:Z,previewKey:de,space:X}=p;return Z===!0||Q===!0?{accessToken:de,environment:z,host:l.PREVIEW,space:X}:{accessToken:M,environment:z,host:l.CDN,space:X}},T=Q=>typeof Q=="object"&&Q!==null,_=Q=>Array.isArray(Q)&&Q.length,b=Q=>{if(!T(Q))throw new Error("Cannot flatten fields");const{fields:M,sys:z}=Q;if(!M)throw new Error("Cannot flatten fields");let Z={...M};if(T(z)){const{contentType:de,createdAt:X,updatedAt:K}=z;de&&Object.assign(Z,{contentType:de.sys.id}),X&&Object.assign(Z,{createdAt:X}),K&&Object.assign(Z,{updatedAt:K})}return Z},{CONTENTFUL:{LOCALES:A}}=c,w=(Q,M)=>T(Q)&&((z,Z)=>Object.prototype.hasOwnProperty.call(z,Z))(Q,M),N=(Q,M)=>{const z=(Z=>A.SUPPORTED.includes(Z)?Z:A.DEFAULT)(M);return w(Q,z)?Q[z]:w(Q,A.DEFAULT)?Q[A.DEFAULT]:Q},F=Q=>T(Q)&&Q.sys&&Q.sys.type==="Asset",B=(Q,M,z)=>{const{title:Z,file:de}=b(Q);if(!de)throw new Error("Cannot flatten asset");const{contentType:X,fileName:K,url:se,details:ue}=N(de,M);if(!se)throw new Error("Cannot flatten asset");return z?{description:Z||K,height:ue&&ue.image&&ue.image.height,type:X,url:se,width:ue&&ue.image&&ue.image.width}:se},G=Q=>T(Q)&&Q.sys&&Q.sys.type==="Entry",W=(Q,M,z)=>{const Z={},de=((X,K)=>{const se={};for(const[ue,Fe]of Object.entries(X))se[ue]=N(Fe,K);return se})(b(Q),M);for(const[X,K]of Object.entries(de))F(K)?Z[X]=B(K,M,z):G(K)?Z[X]=W(K,M,z):_(K)?Z[X]=K.map(se=>F(se)?B(se,M,z):G(se)?W(se,M,z):se):Z[X]=K;return Z},V=({items:Q})=>{if(!_(Q))throw new Error("Cannot read items");return Q},H=async(Q,M)=>{const z=E(M);return await(await(0,u.createClient)(z)).getEntries(Q)},Y=async(Q={},M={},z=!1)=>((Z,{flatten:de=!0,locale:X="en",assetDetails:K=!1})=>{const se=V(Z);return de?W(se[0],X,K):se[0]})(await H(Q,z),{...Q,...M}),oe=async(Q={},M={},z=!1)=>((Z,{flatten:de=!0,locale:X="en",assetDetails:K=!1})=>{const se=V(Z);return de?((ue,Fe,J)=>ue.map(re=>W(re,Fe,J)))(se,X,K):se})(await H(Q,z),{...Q,...M})}(),a}()})}(fa)),fa.exports}var ss={exports:{}},cs={exports:{}},us={exports:{}},ls={exports:{}},ql;function $c(){return ql||(ql=1,function(e,t){(function(n,r){e.exports=r()})(ce,function(){function n(m){return!isNaN(parseFloat(m))&&isFinite(m)}function r(m){return m.charAt(0).toUpperCase()+m.substring(1)}function o(m){return function(){return this[m]}}var i=["isConstructor","isEval","isNative","isToplevel"],s=["columnNumber","lineNumber"],a=["fileName","functionName","source"],u=["args"],f=["evalOrigin"],c=i.concat(s,a,u,f);function h(m){if(m)for(var E=0;E<c.length;E++)m[c[E]]!==void 0&&this["set"+r(c[E])](m[c[E]])}h.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 h)this.evalOrigin=m;else if(m instanceof Object)this.evalOrigin=new h(m);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var m=this.getFileName()||"",E=this.getLineNumber()||"",T=this.getColumnNumber()||"",_=this.getFunctionName()||"";return this.getIsEval()?m?"[eval] ("+m+":"+E+":"+T+")":"[eval]:"+E+":"+T:_?_+" ("+m+":"+E+":"+T+")":m+":"+E+":"+T}},h.fromString=function(E){var T=E.indexOf("("),_=E.lastIndexOf(")"),b=E.substring(0,T),A=E.substring(T+1,_).split(","),w=E.substring(_+1);if(w.indexOf("@")===0)var N=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(w,""),F=N[1],B=N[2],G=N[3];return new h({functionName:b,args:A||void 0,fileName:F,lineNumber:B||void 0,columnNumber:G||void 0})};for(var d=0;d<i.length;d++)h.prototype["get"+r(i[d])]=o(i[d]),h.prototype["set"+r(i[d])]=function(m){return function(E){this[m]=!!E}}(i[d]);for(var l=0;l<s.length;l++)h.prototype["get"+r(s[l])]=o(s[l]),h.prototype["set"+r(s[l])]=function(m){return function(E){if(!n(E))throw new TypeError(m+" must be a Number");this[m]=Number(E)}}(s[l]);for(var p=0;p<a.length;p++)h.prototype["get"+r(a[p])]=o(a[p]),h.prototype["set"+r(a[p])]=function(m){return function(E){this[m]=String(E)}}(a[p]);return h})}(ls)),ls.exports}var Gl;function X_(){return Gl||(Gl=1,function(e,t){(function(n,r){e.exports=r($c())})(ce,function(r){var o=/(^|@)\S+:\d+/,i=/^\s*at .*(\S+:\d+|\(native\))/m,s=/^(eval@)?(\[native code])?$/;return{parse:function(u){if(typeof u.stacktrace<"u"||typeof u["opera#sourceloc"]<"u")return this.parseOpera(u);if(u.stack&&u.stack.match(i))return this.parseV8OrIE(u);if(u.stack)return this.parseFFOrSafari(u);throw new Error("Cannot parse given Error object")},extractLocation:function(u){if(u.indexOf(":")===-1)return[u];var f=/(.+?)(?::(\d+))?(?::(\d+))?$/,c=f.exec(u.replace(/[()]/g,""));return[c[1],c[2]||void 0,c[3]||void 0]},parseV8OrIE:function(u){var f=u.stack.split(`
35
+ `).filter(function(c){return!!c.match(i)},this);return f.map(function(c){c.indexOf("(eval ")>-1&&(c=c.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var h=c.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),d=h.match(/ (\(.+\)$)/);h=d?h.replace(d[0],""):h;var l=this.extractLocation(d?d[1]:h),p=d&&h||void 0,m=["eval","<anonymous>"].indexOf(l[0])>-1?void 0:l[0];return new r({functionName:p,fileName:m,lineNumber:l[1],columnNumber:l[2],source:c})},this)},parseFFOrSafari:function(u){var f=u.stack.split(`
36
+ `).filter(function(c){return!c.match(s)},this);return f.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 r({functionName:c});var h=/((.*".+"[^@]*)?[^@]*)(?:@)/,d=c.match(h),l=d&&d[1]?d[1]:void 0,p=this.extractLocation(c.replace(h,""));return new r({functionName:l,fileName:p[0],lineNumber:p[1],columnNumber:p[2],source:c})},this)},parseOpera:function(u){return!u.stacktrace||u.message.indexOf(`
37
+ `)>-1&&u.message.split(`
38
+ `).length>u.stacktrace.split(`
39
+ `).length?this.parseOpera9(u):u.stack?this.parseOpera11(u):this.parseOpera10(u)},parseOpera9:function(u){for(var f=/Line (\d+).*script (?:in )?(\S+)/i,c=u.message.split(`
40
+ `),h=[],d=2,l=c.length;d<l;d+=2){var p=f.exec(c[d]);p&&h.push(new r({fileName:p[2],lineNumber:p[1],source:c[d]}))}return h},parseOpera10:function(u){for(var f=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,c=u.stacktrace.split(`
41
+ `),h=[],d=0,l=c.length;d<l;d+=2){var p=f.exec(c[d]);p&&h.push(new r({functionName:p[3]||void 0,fileName:p[2],lineNumber:p[1],source:c[d]}))}return h},parseOpera11:function(u){var f=u.stack.split(`
42
+ `).filter(function(c){return!!c.match(o)&&!c.match(/^Error created at/)},this);return f.map(function(c){var h=c.split("@"),d=this.extractLocation(h.pop()),l=h.shift()||"",p=l.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,m;l.match(/\(([^)]*)\)/)&&(m=l.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var E=m===void 0||m==="[arguments not available]"?void 0:m.split(",");return new r({functionName:p,args:E,fileName:d[0],lineNumber:d[1],columnNumber:d[2],source:c})},this)}}})}(us)),us.exports}var fs={exports:{}},Wl;function J_(){return Wl||(Wl=1,function(e,t){(function(n,r){e.exports=r($c())})(ce,function(n){return{backtrace:function(o){var i=[],s=10;typeof o=="object"&&typeof o.maxStackSize=="number"&&(s=o.maxStackSize);for(var a=arguments.callee;a&&i.length<s&&a.arguments;){for(var u=new Array(a.arguments.length),f=0;f<u.length;++f)u[f]=a.arguments[f];/function(?:\s+([\w$]+))+\s*\(/.test(a.toString())?i.push(new n({functionName:RegExp.$1||void 0,args:u})):i.push(new n({args:u}));try{a=a.caller}catch{break}}return i}}})}(fs)),fs.exports}var ds={exports:{}},bi={},hs={},Vl;function _h(){return Vl||(Vl=1,function(e){function t(_,b,A){if(b in _)return _[b];if(arguments.length===3)return A;throw new Error('"'+b+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,r=/^data:.+\,.+$/;function o(_){var b=_.match(n);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}e.urlParse=o;function i(_){var b="";return _.scheme&&(b+=_.scheme+":"),b+="//",_.auth&&(b+=_.auth+"@"),_.host&&(b+=_.host),_.port&&(b+=":"+_.port),_.path&&(b+=_.path),b}e.urlGenerate=i;function s(_){var b=_,A=o(_);if(A){if(!A.path)return _;b=A.path}for(var w=e.isAbsolute(b),N=b.split(/\/+/),F,B=0,G=N.length-1;G>=0;G--)F=N[G],F==="."?N.splice(G,1):F===".."?B++:B>0&&(F===""?(N.splice(G+1,B),B=0):(N.splice(G,2),B--));return b=N.join("/"),b===""&&(b=w?"/":"."),A?(A.path=b,i(A)):b}e.normalize=s;function a(_,b){_===""&&(_="."),b===""&&(b=".");var A=o(b),w=o(_);if(w&&(_=w.path||"/"),A&&!A.scheme)return w&&(A.scheme=w.scheme),i(A);if(A||b.match(r))return b;if(w&&!w.host&&!w.path)return w.host=b,i(w);var N=b.charAt(0)==="/"?b:s(_.replace(/\/+$/,"")+"/"+b);return w?(w.path=N,i(w)):N}e.join=a,e.isAbsolute=function(_){return _.charAt(0)==="/"||!!_.match(n)};function u(_,b){_===""&&(_="."),_=_.replace(/\/$/,"");for(var A=0;b.indexOf(_+"/")!==0;){var w=_.lastIndexOf("/");if(w<0||(_=_.slice(0,w),_.match(/^([^\/]+:\/)?\/*$/)))return b;++A}return Array(A+1).join("../")+b.substr(_.length+1)}e.relative=u;var f=function(){var _=Object.create(null);return!("__proto__"in _)}();function c(_){return _}function h(_){return l(_)?"$"+_:_}e.toSetString=f?c:h;function d(_){return l(_)?_.slice(1):_}e.fromSetString=f?c:d;function l(_){if(!_)return!1;var b=_.length;if(b<9||_.charCodeAt(b-1)!==95||_.charCodeAt(b-2)!==95||_.charCodeAt(b-3)!==111||_.charCodeAt(b-4)!==116||_.charCodeAt(b-5)!==111||_.charCodeAt(b-6)!==114||_.charCodeAt(b-7)!==112||_.charCodeAt(b-8)!==95||_.charCodeAt(b-9)!==95)return!1;for(var A=b-10;A>=0;A--)if(_.charCodeAt(A)!==36)return!1;return!0}function p(_,b,A){var w=_.source-b.source;return w!==0||(w=_.originalLine-b.originalLine,w!==0)||(w=_.originalColumn-b.originalColumn,w!==0||A)||(w=_.generatedColumn-b.generatedColumn,w!==0)||(w=_.generatedLine-b.generatedLine,w!==0)?w:_.name-b.name}e.compareByOriginalPositions=p;function m(_,b,A){var w=_.generatedLine-b.generatedLine;return w!==0||(w=_.generatedColumn-b.generatedColumn,w!==0||A)||(w=_.source-b.source,w!==0)||(w=_.originalLine-b.originalLine,w!==0)||(w=_.originalColumn-b.originalColumn,w!==0)?w:_.name-b.name}e.compareByGeneratedPositionsDeflated=m;function E(_,b){return _===b?0:_>b?1:-1}function T(_,b){var A=_.generatedLine-b.generatedLine;return A!==0||(A=_.generatedColumn-b.generatedColumn,A!==0)||(A=E(_.source,b.source),A!==0)||(A=_.originalLine-b.originalLine,A!==0)||(A=_.originalColumn-b.originalColumn,A!==0)?A:E(_.name,b.name)}e.compareByGeneratedPositionsInflated=T}(hs)),hs}var ps={},zl;function Z_(){return zl||(zl=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,o,i,s,a){var u=Math.floor((r-n)/2)+n,f=s(o,i[u],!0);return f===0?u:f>0?r-u>1?t(u,r,o,i,s,a):a==e.LEAST_UPPER_BOUND?r<i.length?r:-1:u:u-n>1?t(n,u,o,i,s,a):a==e.LEAST_UPPER_BOUND?u:n<0?-1:n}e.search=function(r,o,i,s){if(o.length===0)return-1;var a=t(-1,o.length,r,o,i,s||e.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&i(o[a],o[a-1],!0)===0;)--a;return a}}(ps)),ps}var ms={},Yl;function eE(){if(Yl)return ms;Yl=1;var e=_h(),t=Object.prototype.hasOwnProperty;function n(){this._array=[],this._set=Object.create(null)}return n.fromArray=function(o,i){for(var s=new n,a=0,u=o.length;a<u;a++)s.add(o[a],i);return s},n.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},n.prototype.add=function(o,i){var s=e.toSetString(o),a=t.call(this._set,s),u=this._array.length;(!a||i)&&this._array.push(o),a||(this._set[s]=u)},n.prototype.has=function(o){var i=e.toSetString(o);return t.call(this._set,i)},n.prototype.indexOf=function(o){var i=e.toSetString(o);if(t.call(this._set,i))return this._set[i];throw new Error('"'+o+'" is not in the set.')},n.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},n.prototype.toArray=function(){return this._array.slice()},ms.ArraySet=n,ms}var Eo={},bo={},Kl;function tE(){if(Kl)return bo;Kl=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return bo.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},bo.decode=function(t){var n=65,r=90,o=97,i=122,s=48,a=57,u=43,f=47,c=26,h=52;return n<=t&&t<=r?t-n:o<=t&&t<=i?t-o+c:s<=t&&t<=a?t-s+h:t==u?62:t==f?63:-1},bo}var Ql;function rE(){if(Ql)return Eo;Ql=1;var e=tE(),t=5,n=1<<t,r=n-1,o=n;function i(a){return a<0?(-a<<1)+1:(a<<1)+0}function s(a){var u=(a&1)===1,f=a>>1;return u?-f:f}return Eo.encode=function(u){var f="",c,h=i(u);do c=h&r,h>>>=t,h>0&&(c|=o),f+=e.encode(c);while(h>0);return f},Eo.decode=function(u,f,c){var h=u.length,d=0,l=0,p,m;do{if(f>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(m=e.decode(u.charCodeAt(f++)),m===-1)throw new Error("Invalid base64 digit: "+u.charAt(f-1));p=!!(m&o),m&=r,d=d+(m<<l),l+=t}while(p);c.value=s(d),c.rest=f},Eo}var gs={},Xl;function nE(){if(Xl)return gs;Xl=1;function e(r,o,i){var s=r[o];r[o]=r[i],r[i]=s}function t(r,o){return Math.round(r+Math.random()*(o-r))}function n(r,o,i,s){if(i<s){var a=t(i,s),u=i-1;e(r,a,s);for(var f=r[s],c=i;c<s;c++)o(r[c],f)<=0&&(u+=1,e(r,u,c));e(r,u+1,c);var h=u+1;n(r,o,i,h-1),n(r,o,h+1,s)}}return gs.quickSort=function(r,o){n(r,o,0,r.length-1)},gs}var Jl;function iE(){if(Jl)return bi;Jl=1;var e=_h(),t=Z_(),n=eE().ArraySet,r=rE(),o=nE().quickSort;function i(f){var c=f;return typeof f=="string"&&(c=JSON.parse(f.replace(/^\)\]\}'/,""))),c.sections!=null?new u(c):new s(c)}i.fromSourceMap=function(f){return s.fromSourceMap(f)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(c,h){var d=c.charAt(h);return d===";"||d===","},i.prototype._parseMappings=function(c,h){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(c,h,d){var l=h||null,p=d||i.GENERATED_ORDER,m;switch(p){case i.GENERATED_ORDER:m=this._generatedMappings;break;case i.ORIGINAL_ORDER:m=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var E=this.sourceRoot;m.map(function(T){var _=T.source===null?null:this._sources.at(T.source);return _!=null&&E!=null&&(_=e.join(E,_)),{source:_,generatedLine:T.generatedLine,generatedColumn:T.generatedColumn,originalLine:T.originalLine,originalColumn:T.originalColumn,name:T.name===null?null:this._names.at(T.name)}},this).forEach(c,l)},i.prototype.allGeneratedPositionsFor=function(c){var h=e.getArg(c,"line"),d={source:e.getArg(c,"source"),originalLine:h,originalColumn:e.getArg(c,"column",0)};if(this.sourceRoot!=null&&(d.source=e.relative(this.sourceRoot,d.source)),!this._sources.has(d.source))return[];d.source=this._sources.indexOf(d.source);var l=[],p=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var m=this._originalMappings[p];if(c.column===void 0)for(var E=m.originalLine;m&&m.originalLine===E;)l.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++p];else for(var T=m.originalColumn;m&&m.originalLine===h&&m.originalColumn==T;)l.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++p]}return l},bi.SourceMapConsumer=i;function s(f){var c=f;typeof f=="string"&&(c=JSON.parse(f.replace(/^\)\]\}'/,"")));var h=e.getArg(c,"version"),d=e.getArg(c,"sources"),l=e.getArg(c,"names",[]),p=e.getArg(c,"sourceRoot",null),m=e.getArg(c,"sourcesContent",null),E=e.getArg(c,"mappings"),T=e.getArg(c,"file",null);if(h!=this._version)throw new Error("Unsupported version: "+h);d=d.map(String).map(e.normalize).map(function(_){return p&&e.isAbsolute(p)&&e.isAbsolute(_)?e.relative(p,_):_}),this._names=n.fromArray(l.map(String),!0),this._sources=n.fromArray(d,!0),this.sourceRoot=p,this.sourcesContent=m,this._mappings=E,this.file=T}s.prototype=Object.create(i.prototype),s.prototype.consumer=i,s.fromSourceMap=function(c){var h=Object.create(s.prototype),d=h._names=n.fromArray(c._names.toArray(),!0),l=h._sources=n.fromArray(c._sources.toArray(),!0);h.sourceRoot=c._sourceRoot,h.sourcesContent=c._generateSourcesContent(h._sources.toArray(),h.sourceRoot),h.file=c._file;for(var p=c._mappings.toArray().slice(),m=h.__generatedMappings=[],E=h.__originalMappings=[],T=0,_=p.length;T<_;T++){var b=p[T],A=new a;A.generatedLine=b.generatedLine,A.generatedColumn=b.generatedColumn,b.source&&(A.source=l.indexOf(b.source),A.originalLine=b.originalLine,A.originalColumn=b.originalColumn,b.name&&(A.name=d.indexOf(b.name)),E.push(A)),m.push(A)}return o(h.__originalMappings,e.compareByOriginalPositions),h},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._sources.toArray().map(function(f){return this.sourceRoot!=null?e.join(this.sourceRoot,f):f},this)}});function a(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s.prototype._parseMappings=function(c,h){for(var d=1,l=0,p=0,m=0,E=0,T=0,_=c.length,b=0,A={},w={},N=[],F=[],B,G,W,V,H;b<_;)if(c.charAt(b)===";")d++,b++,l=0;else if(c.charAt(b)===",")b++;else{for(B=new a,B.generatedLine=d,V=b;V<_&&!this._charIsMappingSeparator(c,V);V++);if(G=c.slice(b,V),W=A[G],W)b+=G.length;else{for(W=[];b<V;)r.decode(c,b,w),H=w.value,b=w.rest,W.push(H);if(W.length===2)throw new Error("Found a source, but no line and column");if(W.length===3)throw new Error("Found a source and line, but no column");A[G]=W}B.generatedColumn=l+W[0],l=B.generatedColumn,W.length>1&&(B.source=E+W[1],E+=W[1],B.originalLine=p+W[2],p=B.originalLine,B.originalLine+=1,B.originalColumn=m+W[3],m=B.originalColumn,W.length>4&&(B.name=T+W[4],T+=W[4])),F.push(B),typeof B.originalLine=="number"&&N.push(B)}o(F,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=F,o(N,e.compareByOriginalPositions),this.__originalMappings=N},s.prototype._findMapping=function(c,h,d,l,p,m){if(c[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[d]);if(c[l]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[l]);return t.search(c,h,p,m)},s.prototype.computeColumnSpans=function(){for(var c=0;c<this._generatedMappings.length;++c){var h=this._generatedMappings[c];if(c+1<this._generatedMappings.length){var d=this._generatedMappings[c+1];if(h.generatedLine===d.generatedLine){h.lastGeneratedColumn=d.generatedColumn-1;continue}}h.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=this._findMapping(h,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(c,"bias",i.GREATEST_LOWER_BOUND));if(d>=0){var l=this._generatedMappings[d];if(l.generatedLine===h.generatedLine){var p=e.getArg(l,"source",null);p!==null&&(p=this._sources.at(p),this.sourceRoot!=null&&(p=e.join(this.sourceRoot,p)));var m=e.getArg(l,"name",null);return m!==null&&(m=this._names.at(m)),{source:p,line:e.getArg(l,"originalLine",null),column:e.getArg(l,"originalColumn",null),name:m}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1},s.prototype.sourceContentFor=function(c,h){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 d;if(this.sourceRoot!=null&&(d=e.urlParse(this.sourceRoot))){var l=c.replace(/^file:\/\//,"");if(d.scheme=="file"&&this._sources.has(l))return this.sourcesContent[this._sources.indexOf(l)];if((!d.path||d.path=="/")&&this._sources.has("/"+c))return this.sourcesContent[this._sources.indexOf("/"+c)]}if(h)return null;throw new Error('"'+c+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(c){var h=e.getArg(c,"source");if(this.sourceRoot!=null&&(h=e.relative(this.sourceRoot,h)),!this._sources.has(h))return{line:null,column:null,lastColumn:null};h=this._sources.indexOf(h);var d={source:h,originalLine:e.getArg(c,"line"),originalColumn:e.getArg(c,"column")},l=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(c,"bias",i.GREATEST_LOWER_BOUND));if(l>=0){var p=this._originalMappings[l];if(p.source===d.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},bi.BasicSourceMapConsumer=s;function u(f){var c=f;typeof f=="string"&&(c=JSON.parse(f.replace(/^\)\]\}'/,"")));var h=e.getArg(c,"version"),d=e.getArg(c,"sections");if(h!=this._version)throw new Error("Unsupported version: "+h);this._sources=new n,this._names=new n;var l={line:-1,column:0};this._sections=d.map(function(p){if(p.url)throw new Error("Support for url field in sections not implemented.");var m=e.getArg(p,"offset"),E=e.getArg(m,"line"),T=e.getArg(m,"column");if(E<l.line||E===l.line&&T<l.column)throw new Error("Section offsets must be ordered and non-overlapping.");return l=m,{generatedOffset:{generatedLine:E+1,generatedColumn:T+1},consumer:new i(e.getArg(p,"map"))}})}return u.prototype=Object.create(i.prototype),u.prototype.constructor=i,u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){for(var f=[],c=0;c<this._sections.length;c++)for(var h=0;h<this._sections[c].consumer.sources.length;h++)f.push(this._sections[c].consumer.sources[h]);return f}}),u.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=t.search(h,this._sections,function(p,m){var E=p.generatedLine-m.generatedOffset.generatedLine;return E||p.generatedColumn-m.generatedOffset.generatedColumn}),l=this._sections[d];return l?l.consumer.originalPositionFor({line:h.generatedLine-(l.generatedOffset.generatedLine-1),column:h.generatedColumn-(l.generatedOffset.generatedLine===h.generatedLine?l.generatedOffset.generatedColumn-1:0),bias:c.bias}):{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(c){return c.consumer.hasContentsOfAllSources()})},u.prototype.sourceContentFor=function(c,h){for(var d=0;d<this._sections.length;d++){var l=this._sections[d],p=l.consumer.sourceContentFor(c,!0);if(p)return p}if(h)return null;throw new Error('"'+c+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(c){for(var h=0;h<this._sections.length;h++){var d=this._sections[h];if(d.consumer.sources.indexOf(e.getArg(c,"source"))!==-1){var l=d.consumer.generatedPositionFor(c);if(l){var p={line:l.line+(d.generatedOffset.generatedLine-1),column:l.column+(d.generatedOffset.generatedLine===l.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},u.prototype._parseMappings=function(c,h){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var l=this._sections[d],p=l.consumer._generatedMappings,m=0;m<p.length;m++){var E=p[m],T=l.consumer._sources.at(E.source);l.consumer.sourceRoot!==null&&(T=e.join(l.consumer.sourceRoot,T)),this._sources.add(T),T=this._sources.indexOf(T);var _=l.consumer._names.at(E.name);this._names.add(_),_=this._names.indexOf(_);var b={source:T,generatedLine:E.generatedLine+(l.generatedOffset.generatedLine-1),generatedColumn:E.generatedColumn+(l.generatedOffset.generatedLine===E.generatedLine?l.generatedOffset.generatedColumn-1:0),originalLine:E.originalLine,originalColumn:E.originalColumn,name:_};this.__generatedMappings.push(b),typeof b.originalLine=="number"&&this.__originalMappings.push(b)}o(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),o(this.__originalMappings,e.compareByOriginalPositions)},bi.IndexedSourceMapConsumer=u,bi}var Zl;function oE(){return Zl||(Zl=1,function(e,t){(function(n,r){e.exports=r(iE(),$c())})(ce,function(n,r){function o(d){return new Promise(function(l,p){var m=new XMLHttpRequest;m.open("get",d),m.onerror=p,m.onreadystatechange=function(){m.readyState===4&&(m.status>=200&&m.status<300||d.substr(0,7)==="file://"&&m.responseText?l(m.responseText):p(new Error("HTTP status: "+m.status+" retrieving "+d)))},m.send()})}function i(d){if(typeof window<"u"&&window.atob)return window.atob(d);throw new Error("You must supply a polyfill for window.atob in this environment")}function s(d){if(typeof JSON<"u"&&JSON.parse)return JSON.parse(d);throw new Error("You must supply a polyfill for JSON.parse in this environment")}function a(d,l){for(var p=[/['"]?([$_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=d.split(`
43
+ `),E="",T=Math.min(l,20),_=0;_<T;++_){var b=m[l-_-1],A=b.indexOf("//");if(A>=0&&(b=b.substr(0,A)),b){E=b+E;for(var w=p.length,N=0;N<w;N++){var F=p[N].exec(E);if(F&&F[1])return F[1]}}}}function u(){if(typeof Object.defineProperty!="function"||typeof Object.create!="function")throw new Error("Unable to consume source maps in older browsers")}function f(d){if(typeof d!="object")throw new TypeError("Given StackFrame is not an object");if(typeof d.fileName!="string")throw new TypeError("Given file name is not a String");if(typeof d.lineNumber!="number"||d.lineNumber%1!==0||d.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if(typeof d.columnNumber!="number"||d.columnNumber%1!==0||d.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}function c(d){for(var l=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/mg,p,m;m=l.exec(d);)p=m[1];if(p)return p;throw new Error("sourceMappingURL not found")}function h(d,l,p){return new Promise(function(m,E){var T=l.originalPositionFor({line:d.lineNumber,column:d.columnNumber});if(T.source){var _=l.sourceContentFor(T.source);_&&(p[T.source]=_),m(new r({functionName:T.name||d.functionName,args:d.args,fileName:T.source,lineNumber:T.line,columnNumber:T.column}))}else E(new Error("Could not get original source for given stackframe and source map"))})}return function d(l){if(!(this instanceof d))return new d(l);l=l||{},this.sourceCache=l.sourceCache||{},this.sourceMapConsumerCache=l.sourceMapConsumerCache||{},this.ajax=l.ajax||o,this._atob=l.atob||i,this._get=function(m){return new Promise((function(E,T){var _=m.substr(0,5)==="data:";if(this.sourceCache[m])E(this.sourceCache[m]);else if(l.offline&&!_)T(new Error("Cannot make network requests in offline mode"));else if(_){var b=/^data:application\/json;([\w=:"-]+;)*base64,/,A=m.match(b);if(A){var w=A[0].length,N=m.substr(w),F=this._atob(N);this.sourceCache[m]=F,E(F)}else T(new Error("The encoding of the inline sourcemap is not supported"))}else{var B=this.ajax(m,{method:"get"});this.sourceCache[m]=B,B.then(E,T)}}).bind(this))},this._getSourceMapConsumer=function(m,E){return new Promise((function(T){if(this.sourceMapConsumerCache[m])T(this.sourceMapConsumerCache[m]);else{var _=new Promise((function(b,A){return this._get(m).then(function(w){typeof w=="string"&&(w=s(w.replace(/^\)\]\}'/,""))),typeof w.sourceRoot>"u"&&(w.sourceRoot=E),b(new n.SourceMapConsumer(w))}).catch(A)}).bind(this));this.sourceMapConsumerCache[m]=_,T(_)}}).bind(this))},this.pinpoint=function(m){return new Promise((function(E,T){this.getMappedLocation(m).then((function(_){function b(){E(_)}this.findFunctionName(_).then(E,b).catch(b)}).bind(this),T)}).bind(this))},this.findFunctionName=function(m){return new Promise((function(E,T){f(m),this._get(m.fileName).then(function(b){var A=m.lineNumber,w=m.columnNumber,N=a(b,A);E(N?new r({functionName:N,args:m.args,fileName:m.fileName,lineNumber:A,columnNumber:w}):m)},T).catch(T)}).bind(this))},this.getMappedLocation=function(m){return new Promise((function(E,T){u(),f(m);var _=this.sourceCache,b=m.fileName;this._get(b).then((function(A){var w=c(A),N=w.substr(0,5)==="data:",F=b.substring(0,b.lastIndexOf("/")+1);return w[0]!=="/"&&!N&&!/^https?:\/\/|^\/\//i.test(w)&&(w=F+w),this._getSourceMapConsumer(w,F).then(function(B){return h(m,B,_).then(E).catch(function(){E(m)})})}).bind(this),T).catch(T)}).bind(this))}}})}(ds)),ds.exports}var ef;function aE(){return ef||(ef=1,function(e,t){(function(n,r){e.exports=r(X_(),J_(),oE())})(ce,function(r,o,i){var s={filter:function(h){return(h.functionName||"").indexOf("StackTrace$$")===-1&&(h.functionName||"").indexOf("ErrorStackParser$$")===-1&&(h.functionName||"").indexOf("StackTraceGPS$$")===-1&&(h.functionName||"").indexOf("StackGenerator$$")===-1},sourceCache:{}},a=function(){try{throw new Error}catch(d){return d}};function u(h,d){var l={};return[h,d].forEach(function(p){for(var m in p)Object.prototype.hasOwnProperty.call(p,m)&&(l[m]=p[m]);return l}),l}function f(h){return h.stack||h["opera#sourceloc"]}function c(h,d){return typeof d=="function"?h.filter(d):h}return{get:function(d){var l=a();return f(l)?this.fromError(l,d):this.generateArtificially(d)},getSync:function(d){d=u(s,d);var l=a(),p=f(l)?r.parse(l):o.backtrace(d);return c(p,d.filter)},fromError:function(d,l){l=u(s,l);var p=new i(l);return new Promise((function(m){var E=c(r.parse(d),l.filter);m(Promise.all(E.map(function(T){return new Promise(function(_){function b(){_(T)}p.pinpoint(T).then(_,b).catch(b)})})))}).bind(this))},generateArtificially:function(d){d=u(s,d);var l=o.backtrace(d);return typeof d.filter=="function"&&(l=l.filter(d.filter)),Promise.resolve(l)},instrument:function(d,l,p,m){if(typeof d!="function")throw new Error("Cannot instrument non-function object");if(typeof d.__stacktraceOriginalFn=="function")return d;var E=(function(){try{return this.get().then(l,p).catch(p),d.apply(m||this,arguments)}catch(_){throw f(_)&&this.fromError(_).then(l,p).catch(p),_}}).bind(this);return E.__stacktraceOriginalFn=d,E},deinstrument:function(d){if(typeof d!="function")throw new Error("Cannot de-instrument non-function object");return typeof d.__stacktraceOriginalFn=="function"?d.__stacktraceOriginalFn:d},report:function(d,l,p,m){return new Promise(function(E,T){var _=new XMLHttpRequest;if(_.onerror=T,_.onreadystatechange=function(){_.readyState===4&&(_.status>=200&&_.status<400?E(_.responseText):T(new Error("POST to "+l+" failed with status: "+_.status)))},_.open("post",l),_.setRequestHeader("Content-Type","application/json"),m&&typeof m.headers=="object"){var b=m.headers;for(var A in b)Object.prototype.hasOwnProperty.call(b,A)&&_.setRequestHeader(A,b[A])}var w={stack:d};p!=null&&(w.message=p),_.send(JSON.stringify(w))})}}})}(cs)),cs.exports}var ys,tf;function sE(){if(tf)return ys;tf=1;var e=aE(),t="https://clouderrorreporting.googleapis.com/v1beta1/projects/",n=function(){};n.prototype.start=function(s){if(!s.key&&!s.targetUrl&&!s.customReportingFunction)throw new Error("Cannot initialize: No API key, target url or custom reporting function provided.");if(!s.projectId&&!s.targetUrl&&!s.customReportingFunction)throw new Error("Cannot initialize: No project ID, target url or custom reporting function provided.");this.customReportingFunction=s.customReportingFunction,this.apiKey=s.key,this.projectId=s.projectId,this.targetUrl=s.targetUrl,this.context=s.context||{},this.serviceContext={service:s.service||"web"},s.version&&(this.serviceContext.version=s.version),this.reportUncaughtExceptions=s.reportUncaughtExceptions!==!1,this.reportUnhandledPromiseRejections=s.reportUnhandledPromiseRejections!==!1,this.disabled=!!s.disabled,r(this)};function r(s){var a=function(){};if(s.reportUncaughtExceptions){var u=window.onerror||a;window.onerror=function(c,h,d,l,p){return p&&s.report(p).catch(a),u(c,h,d,l,p),!0}}if(s.reportUnhandledPromiseRejections){var f=window.onunhandledrejection||a;window.onunhandledrejection=function(c){return c&&s.report(c.reason).catch(a),f(c.reason),!0}}}n.prototype.report=function(s,a){if(this.disabled)return Promise.resolve(null);if(!s)return Promise.reject(new Error("no error to report"));a=a||{};var u={};u.serviceContext=this.serviceContext,u.context=this.context,u.context.httpRequest={userAgent:window.navigator.userAgent,url:window.location.href};var f=0;if(typeof s=="string"||s instanceof String){try{throw new Error(s)}catch(d){s=d}f=a.skipLocalFrames||1}var c=this.targetUrl||t+this.projectId+"/events:report?key="+this.apiKey,h=this.customReportingFunction;return o(s,f).then(function(d){return u.message=d,h?h(u):i(c,u)})};function o(s,a){return e.fromError(s).then(function(u){for(var f=[s.toString()],c=a;c<u.length;c++)f.push([" at ",u[c].getFunctionName()||"<anonymous>"," (",u[c].getFileName(),":",u[c].getLineNumber(),":",u[c].getColumnNumber(),")"].join(""));return f.join(`
44
+ `)},function(u){return["Error extracting stack trace: ",u,`
45
45
  `,s.toString(),`
46
- `," (",s.file,":",s.line,":",s.column,")"].join("")})}function i(s,a){var l=new XMLHttpRequest;return l.open("POST",s,!0),l.setRequestHeader("Content-Type","application/json; charset=UTF-8"),new Promise(function(f,c){l.onreadystatechange=function(){if(l.readyState===4){var h=l.status;if(h>=200&&h<300)f({message:a.message});else if(h===429)c({message:"quota or rate limiting error on stackdriver report",name:"Http429FakeError"});else{var d=h?h+" http response":"network error";c(new Error(d+" on stackdriver report"))}}},l.send(JSON.stringify(a))})}return n.prototype.setUser=function(s){this.context.user=s},ms=n,ms}var Jl;function nE(){return Jl||(Jl=1,function(e,t){(function(n,r){e.exports=r(rE())})(ue,function(n){return function(){var r={542:function(a){a.exports=n}},o={};function i(a){var l=o[a];if(l!==void 0)return l.exports;var f=o[a]={exports:{}};return r[a](f,f.exports,i),f.exports}i.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(l,{a:l}),l},i.d=function(a,l){for(var f in l)i.o(l,f)&&!i.o(a,f)&&Object.defineProperty(a,f,{enumerable:!0,get:l[f]})},i.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return function(){i.r(s),i.d(s,{reportError:function(){return d},setContext:function(){return h}});var a=i(542),l=i.n(a);const{GCP:{PROJECT_ID:f}}={GCP:{PROJECT_ID:"hazel-tea-194609"}};let c={key:null,environment:null,projectId:f};const h=({apiKey:u,environment:p,projectId:m,serviceName:E})=>{if(!u)throw new Error("Cannot set context: REACT_APP_GCP_ERRORS_API_KEY not defined");if(c.key=u,!p)throw new Error("Cannot set context: Environment not defined");c.environment=p,c.projectId=m||f,E&&(c.service=`${E}:${c.environment}`)},d=async(u,p)=>{try{const m=new(l());m.start(c),typeof p=="string"&&m.setUser(p),await m.report(u)}catch(m){console.warn(`Cannot report error: ${m.message}`)}}}(),s}()})}(os)),os.exports}var gs={exports:{}},bo={},Zl;function iE(){if(Zl)return bo;Zl=1,Object.defineProperty(bo,"__esModule",{value:!0});var e=function(n){console.warn("[react-gtm]",n)};return bo.default=e,bo}var ys,ef;function oE(){if(ef)return ys;ef=1;var e=iE(),t=n(e);function n(o){return o&&o.__esModule?o:{default:o}}var r={tags:function(i){var s=i.id,a=i.events,l=i.dataLayer,f=i.dataLayerName,c=i.preview,h=i.auth,d="&gtm_auth="+h,u="&gtm_preview="+c;s||(0,t.default)("GTM Id is required");var p=`
47
- <iframe src="https://www.googletagmanager.com/ns.html?id=`+s+d+u+`&gtm_cookies_win=x"
46
+ `," (",s.file,":",s.line,":",s.column,")"].join("")})}function i(s,a){var u=new XMLHttpRequest;return u.open("POST",s,!0),u.setRequestHeader("Content-Type","application/json; charset=UTF-8"),new Promise(function(f,c){u.onreadystatechange=function(){if(u.readyState===4){var h=u.status;if(h>=200&&h<300)f({message:a.message});else if(h===429)c({message:"quota or rate limiting error on stackdriver report",name:"Http429FakeError"});else{var d=h?h+" http response":"network error";c(new Error(d+" on stackdriver report"))}}},u.send(JSON.stringify(a))})}return n.prototype.setUser=function(s){this.context.user=s},ys=n,ys}var rf;function cE(){return rf||(rf=1,function(e,t){(function(n,r){e.exports=r(sE())})(ce,function(n){return function(){var r={542:function(a){a.exports=n}},o={};function i(a){var u=o[a];if(u!==void 0)return u.exports;var f=o[a]={exports:{}};return r[a](f,f.exports,i),f.exports}i.n=function(a){var u=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(u,{a:u}),u},i.d=function(a,u){for(var f in u)i.o(u,f)&&!i.o(a,f)&&Object.defineProperty(a,f,{enumerable:!0,get:u[f]})},i.o=function(a,u){return Object.prototype.hasOwnProperty.call(a,u)},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return function(){i.r(s),i.d(s,{reportError:function(){return d},setContext:function(){return h}});var a=i(542),u=i.n(a);const{GCP:{PROJECT_ID:f}}={GCP:{PROJECT_ID:"hazel-tea-194609"}};let c={key:null,environment:null,projectId:f};const h=({apiKey:l,environment:p,projectId:m,serviceName:E})=>{if(!l)throw new Error("Cannot set context: REACT_APP_GCP_ERRORS_API_KEY not defined");if(c.key=l,!p)throw new Error("Cannot set context: Environment not defined");c.environment=p,c.projectId=m||f,E&&(c.service=`${E}:${c.environment}`)},d=async(l,p)=>{try{const m=new(u());m.start(c),typeof p=="string"&&m.setUser(p),await m.report(l)}catch(m){console.warn(`Cannot report error: ${m.message}`)}}}(),s}()})}(ss)),ss.exports}var vs={exports:{}},wo={},nf;function uE(){if(nf)return wo;nf=1,Object.defineProperty(wo,"__esModule",{value:!0});var e=function(n){console.warn("[react-gtm]",n)};return wo.default=e,wo}var _s,of;function lE(){if(of)return _s;of=1;var e=uE(),t=n(e);function n(o){return o&&o.__esModule?o:{default:o}}var r={tags:function(i){var s=i.id,a=i.events,u=i.dataLayer,f=i.dataLayerName,c=i.preview,h=i.auth,d="&gtm_auth="+h,l="&gtm_preview="+c;s||(0,t.default)("GTM Id is required");var p=`
47
+ <iframe src="https://www.googletagmanager.com/ns.html?id=`+s+d+l+`&gtm_cookies_win=x"
48
48
  height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>`,m=`
49
49
  (function(w,d,s,l,i){w[l]=w[l]||[];
50
50
  w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', `+JSON.stringify(a).slice(1,-1)+`});
51
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+'`+d+u+`&gtm_cookies_win=x';
52
+ j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'`+d+l+`&gtm_cookies_win=x';
53
53
  f.parentNode.insertBefore(j,f);
54
- })(window,document,'script','`+f+"','"+s+"');",E=this.dataLayer(l,f);return{iframe:p,script:m,dataLayerVar:E}},dataLayer:function(i,s){return`
54
+ })(window,document,'script','`+f+"','"+s+"');",E=this.dataLayer(u,f);return{iframe:p,script:m,dataLayerVar:E}},dataLayer:function(i,s){return`
55
55
  window.`+s+" = window."+s+` || [];
56
- window.`+s+".push("+JSON.stringify(i)+")"}};return ys=r,ys}var vs,tf;function aE(){if(tf)return vs;tf=1;var e=oE(),t=n(e);function n(o){return o&&o.__esModule?o:{default:o}}var r={dataScript:function(i){var s=document.createElement("script");return s.innerHTML=i,s},gtm:function(i){var s=t.default.tags(i),a=function(){var h=document.createElement("noscript");return h.innerHTML=s.iframe,h},l=function(){var h=document.createElement("script");return h.innerHTML=s.script,h},f=this.dataScript(s.dataLayerVar);return{noScript:a,script:l,dataScript:f}},initialize:function(i){var s=i.gtmId,a=i.events,l=a===void 0?{}:a,f=i.dataLayer,c=i.dataLayerName,h=c===void 0?"dataLayer":c,d=i.auth,u=d===void 0?"":d,p=i.preview,m=p===void 0?"":p,E=this.gtm({id:s,events:l,dataLayer:f||void 0,dataLayerName:h,auth:u,preview:m});f&&document.head.appendChild(E.dataScript),document.head.insertBefore(E.script(),document.head.childNodes[0]),document.body.insertBefore(E.noScript(),document.body.childNodes[0])},dataLayer:function(i){var s=i.dataLayer,a=i.dataLayerName,l=a===void 0?"dataLayer":a;if(window[l])return window[l].push(s);var f=t.default.dataLayer(s,l),c=this.dataScript(f);document.head.insertBefore(c,document.head.childNodes[0])}};return vs=r,vs}var _s,rf;function sE(){if(rf)return _s;rf=1;var e=aE(),t=n(e);function n(r){return r&&r.__esModule?r:{default:r}}return _s=t.default,_s}var nf;function cE(){return nf||(nf=1,function(e,t){(function(n,r){e.exports=r(sE())})(ue,function(n){return function(){var r={273:function(a){a.exports=n}},o={};function i(a){var l=o[a];if(l!==void 0)return l.exports;var f=o[a]={exports:{}};return r[a](f,f.exports,i),f.exports}i.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(l,{a:l}),l},i.d=function(a,l){for(var f in l)i.o(l,f)&&!i.o(a,f)&&Object.defineProperty(a,f,{enumerable:!0,get:l[f]})},i.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return function(){i.r(s),i.d(s,{setContext:function(){return c},setupGTM:function(){return d}});var a=i(273),l=i.n(a);let f=null;const c=({configs:u,environment:p})=>{if(!p)throw new Error("Cannot set context: Environment not defined");if(!u)throw new Error("Cannot set context: REACT_APP_GTM_ID not defined");if(!u[p])throw new Error(`Cannot set context: REACT_APP_GTM_ID not defined for environment - ${JSON.stringify({configs:u,environment:p})}`);f=u[p]},h=()=>f,d=()=>{const u=h();l().initialize({gtmId:u.id})}}(),s}()})}(gs)),gs.exports}var yh=202,vh=502,_h=400,Eh=409,bh=100,wh=201,Sh=417,uE=424,Th=403,xh=504,Oh=410,Ah=505,Ch=418,Rh=419,Nh=507,Ph=500,Ih=411,Lh=423,kh=420,Mh=405,Bh=301,Fh=302,Uh=207,Dh=300,$h=511,jh=204,Hh=203,qh=406,Gh=404,Wh=501,Vh=304,zh=200,Yh=206,Kh=402,Qh=308,Xh=412,Jh=428,Zh=102,ep=407,tp=431,rp=408,np=413,ip=414,op=416,ap=205,sp=303,cp=503,up=101,lp=307,fp=429,dp=401,hp=422,pp=415,mp=305;const lE={ACCEPTED:yh,BAD_GATEWAY:vh,BAD_REQUEST:_h,CONFLICT:Eh,CONTINUE:bh,CREATED:wh,EXPECTATION_FAILED:Sh,FORBIDDEN:Th,GATEWAY_TIMEOUT:xh,GONE:Oh,HTTP_VERSION_NOT_SUPPORTED:Ah,IM_A_TEAPOT:Ch,INSUFFICIENT_SPACE_ON_RESOURCE:Rh,INSUFFICIENT_STORAGE:Nh,INTERNAL_SERVER_ERROR:Ph,LENGTH_REQUIRED:Ih,LOCKED:Lh,METHOD_FAILURE:kh,METHOD_NOT_ALLOWED:Mh,MOVED_PERMANENTLY:Bh,MOVED_TEMPORARILY:Fh,MULTI_STATUS:Uh,MULTIPLE_CHOICES:Dh,NETWORK_AUTHENTICATION_REQUIRED:$h,NO_CONTENT:jh,NON_AUTHORITATIVE_INFORMATION:Hh,NOT_ACCEPTABLE:qh,NOT_FOUND:Gh,NOT_IMPLEMENTED:Wh,NOT_MODIFIED:Vh,OK:zh,PARTIAL_CONTENT:Yh,PAYMENT_REQUIRED:Kh,PERMANENT_REDIRECT:Qh,PRECONDITION_FAILED:Xh,PRECONDITION_REQUIRED:Jh,PROCESSING:Zh,PROXY_AUTHENTICATION_REQUIRED:ep,REQUEST_HEADER_FIELDS_TOO_LARGE:tp,REQUEST_TIMEOUT:rp,REQUEST_TOO_LONG:np,REQUEST_URI_TOO_LONG:ip,REQUESTED_RANGE_NOT_SATISFIABLE:op,RESET_CONTENT:ap,SEE_OTHER:sp,SERVICE_UNAVAILABLE:cp,SWITCHING_PROTOCOLS:up,TEMPORARY_REDIRECT:lp,TOO_MANY_REQUESTS:fp,UNAUTHORIZED:dp,UNPROCESSABLE_ENTITY:hp,UNSUPPORTED_MEDIA_TYPE:pp,USE_PROXY:mp};var fE={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"},dE={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 gp(e){var t=fE[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}function yp(e){var t=dE[e];if(!t)throw new Error("Reason phrase does not exist: "+e);return t}var vp=gp,ic;(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"})(ic||(ic={}));var oc;(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"})(oc||(oc={}));var $o=globalThis&&globalThis.__assign||function(){return $o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},$o.apply(this,arguments)};const hE=$o($o({},lE),{getStatusCode:yp,getStatusText:vp}),pE=Object.freeze(Object.defineProperty({__proto__:null,ACCEPTED:yh,BAD_GATEWAY:vh,BAD_REQUEST:_h,CONFLICT:Eh,CONTINUE:bh,CREATED:wh,EXPECTATION_FAILED:Sh,FAILED_DEPENDENCY:uE,FORBIDDEN:Th,GATEWAY_TIMEOUT:xh,GONE:Oh,HTTP_VERSION_NOT_SUPPORTED:Ah,IM_A_TEAPOT:Ch,INSUFFICIENT_SPACE_ON_RESOURCE:Rh,INSUFFICIENT_STORAGE:Nh,INTERNAL_SERVER_ERROR:Ph,LENGTH_REQUIRED:Ih,LOCKED:Lh,METHOD_FAILURE:kh,METHOD_NOT_ALLOWED:Mh,MOVED_PERMANENTLY:Bh,MOVED_TEMPORARILY:Fh,MULTIPLE_CHOICES:Dh,MULTI_STATUS:Uh,NETWORK_AUTHENTICATION_REQUIRED:$h,NON_AUTHORITATIVE_INFORMATION:Hh,NOT_ACCEPTABLE:qh,NOT_FOUND:Gh,NOT_IMPLEMENTED:Wh,NOT_MODIFIED:Vh,NO_CONTENT:jh,OK:zh,PARTIAL_CONTENT:Yh,PAYMENT_REQUIRED:Kh,PERMANENT_REDIRECT:Qh,PRECONDITION_FAILED:Xh,PRECONDITION_REQUIRED:Jh,PROCESSING:Zh,PROXY_AUTHENTICATION_REQUIRED:ep,REQUESTED_RANGE_NOT_SATISFIABLE:op,REQUEST_HEADER_FIELDS_TOO_LARGE:tp,REQUEST_TIMEOUT:rp,REQUEST_TOO_LONG:np,REQUEST_URI_TOO_LONG:ip,RESET_CONTENT:ap,get ReasonPhrases(){return oc},SEE_OTHER:sp,SERVICE_UNAVAILABLE:cp,SWITCHING_PROTOCOLS:up,get StatusCodes(){return ic},TEMPORARY_REDIRECT:lp,TOO_MANY_REQUESTS:fp,UNAUTHORIZED:dp,UNPROCESSABLE_ENTITY:hp,UNSUPPORTED_MEDIA_TYPE:pp,USE_PROXY:mp,default:hE,getReasonPhrase:gp,getStatusCode:yp,getStatusText:vp},Symbol.toStringTag,{value:"Module"})),mE=zi(pE);var wo={exports:{}},bi={},Es={},wi={},Si={},$r={},Ti={},bs={},jr={},Xt={},of;function Fc(){if(of)return Xt;of=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.ERROR_PACKET=Xt.PACKET_TYPES_REVERSE=Xt.PACKET_TYPES=void 0;const e=Object.create(null);Xt.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);Xt.PACKET_TYPES_REVERSE=t,Object.keys(e).forEach(r=>{t[e[r]]=r});const n={type:"error",data:"parser error"};return Xt.ERROR_PACKET=n,Xt}var af;function gE(){if(af)return jr;af=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.encodePacket=jr.encodePacketToBinary=void 0;const e=Fc(),t=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",n=typeof ArrayBuffer=="function",r=f=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(f):f&&f.buffer instanceof ArrayBuffer,o=({type:f,data:c},h,d)=>t&&c instanceof Blob?h?d(c):i(c,d):n&&(c instanceof ArrayBuffer||r(c))?h?d(c):i(new Blob([c]),d):d(e.PACKET_TYPES[f]+(c||""));jr.encodePacket=o;const i=(f,c)=>{const h=new FileReader;return h.onload=function(){const d=h.result.split(",")[1];c("b"+(d||""))},h.readAsDataURL(f)};function s(f){return f instanceof Uint8Array?f:f instanceof ArrayBuffer?new Uint8Array(f):new Uint8Array(f.buffer,f.byteOffset,f.byteLength)}let a;function l(f,c){if(t&&f.data instanceof Blob)return f.data.arrayBuffer().then(s).then(c);if(n&&(f.data instanceof ArrayBuffer||r(f.data)))return c(s(f.data));o(f,!1,h=>{a||(a=new TextEncoder),c(a.encode(h))})}return jr.encodePacketToBinary=l,jr}var xi={},Hr={},sf;function yE(){if(sf)return Hr;sf=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.decode=Hr.encode=void 0;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let o=0;o<e.length;o++)t[e.charCodeAt(o)]=o;const n=o=>{let i=new Uint8Array(o),s,a=i.length,l="";for(s=0;s<a;s+=3)l+=e[i[s]>>2],l+=e[(i[s]&3)<<4|i[s+1]>>4],l+=e[(i[s+1]&15)<<2|i[s+2]>>6],l+=e[i[s+2]&63];return a%3===2?l=l.substring(0,l.length-1)+"=":a%3===1&&(l=l.substring(0,l.length-2)+"=="),l};Hr.encode=n;const r=o=>{let i=o.length*.75,s=o.length,a,l=0,f,c,h,d;o[o.length-1]==="="&&(i--,o[o.length-2]==="="&&i--);const u=new ArrayBuffer(i),p=new Uint8Array(u);for(a=0;a<s;a+=4)f=t[o.charCodeAt(a)],c=t[o.charCodeAt(a+1)],h=t[o.charCodeAt(a+2)],d=t[o.charCodeAt(a+3)],p[l++]=f<<2|c>>4,p[l++]=(c&15)<<4|h>>2,p[l++]=(h&3)<<6|d&63;return u};return Hr.decode=r,Hr}var cf;function vE(){if(cf)return xi;cf=1,Object.defineProperty(xi,"__esModule",{value:!0}),xi.decodePacket=void 0;const e=Fc(),t=yE(),n=typeof ArrayBuffer=="function",r=(s,a)=>{if(typeof s!="string")return{type:"message",data:i(s,a)};const l=s.charAt(0);return l==="b"?{type:"message",data:o(s.substring(1),a)}:e.PACKET_TYPES_REVERSE[l]?s.length>1?{type:e.PACKET_TYPES_REVERSE[l],data:s.substring(1)}:{type:e.PACKET_TYPES_REVERSE[l]}:e.ERROR_PACKET};xi.decodePacket=r;const o=(s,a)=>{if(n){const l=(0,t.decode)(s);return i(l,a)}else return{base64:!0,data:s}},i=(s,a)=>{switch(a){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}};return xi}var uf;function Ki(){return uf||(uf=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=gE();Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return t.encodePacket}});const n=vE();Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return n.decodePacket}});const r=Fc(),o=String.fromCharCode(30),i=(d,u)=>{const p=d.length,m=new Array(p);let E=0;d.forEach((T,_)=>{(0,t.encodePacket)(T,!1,b=>{m[_]=b,++E===p&&u(m.join(o))})})};e.encodePayload=i;const s=(d,u)=>{const p=d.split(o),m=[];for(let E=0;E<p.length;E++){const T=(0,n.decodePacket)(p[E],u);if(m.push(T),T.type==="error")break}return m};e.decodePayload=s;function a(){return new TransformStream({transform(d,u){(0,t.encodePacketToBinary)(d,p=>{const m=p.length;let E;if(m<126)E=new Uint8Array(1),new DataView(E.buffer).setUint8(0,m);else if(m<65536){E=new Uint8Array(3);const T=new DataView(E.buffer);T.setUint8(0,126),T.setUint16(1,m)}else{E=new Uint8Array(9);const T=new DataView(E.buffer);T.setUint8(0,127),T.setBigUint64(1,BigInt(m))}d.data&&typeof d.data!="string"&&(E[0]|=128),u.enqueue(E),u.enqueue(p)})}})}e.createPacketEncoderStream=a;let l;function f(d){return d.reduce((u,p)=>u+p.length,0)}function c(d,u){if(d[0].length===u)return d.shift();const p=new Uint8Array(u);let m=0;for(let E=0;E<u;E++)p[E]=d[0][m++],m===d[0].length&&(d.shift(),m=0);return d.length&&m<d[0].length&&(d[0]=d[0].slice(m)),p}function h(d,u){l||(l=new TextDecoder);const p=[];let m=0,E=-1,T=!1;return new TransformStream({transform(_,b){for(p.push(_);;){if(m===0){if(f(p)<1)break;const A=c(p,1);T=(A[0]&128)===128,E=A[0]&127,E<126?m=3:E===126?m=1:m=2}else if(m===1){if(f(p)<2)break;const A=c(p,2);E=new DataView(A.buffer,A.byteOffset,A.length).getUint16(0),m=3}else if(m===2){if(f(p)<8)break;const A=c(p,8),w=new DataView(A.buffer,A.byteOffset,A.length),P=w.getUint32(0);if(P>Math.pow(2,53-32)-1){b.enqueue(r.ERROR_PACKET);break}E=P*Math.pow(2,32)+w.getUint32(4),m=3}else{if(f(p)<E)break;const A=c(p,E);b.enqueue((0,n.decodePacket)(T?A:l.decode(A),u)),m=0}if(E===0||E>d){b.enqueue(r.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=h,e.protocol=4}(bs)),bs}function at(e){if(e)return _E(e)}function _E(e){for(var t in at.prototype)e[t]=at.prototype[t];return e}at.prototype.on=at.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};at.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};at.prototype.off=at.prototype.removeListener=at.prototype.removeAllListeners=at.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};at.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};at.prototype.emitReserved=at.prototype.emit;at.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};at.prototype.hasListeners=function(e){return!!this.listeners(e).length};const EE=Object.freeze(Object.defineProperty({__proto__:null,Emitter:at},Symbol.toStringTag,{value:"Module"})),kn=zi(EE);var Jt={},Oi={},lf;function Qo(){return lf||(lf=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.globalThisShim=void 0,Oi.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())()),Oi}var ff;function Qi(){if(ff)return Jt;ff=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.byteLength=Jt.installTimerFunctions=Jt.pick=void 0;const e=Qo();function t(l,...f){return f.reduce((c,h)=>(l.hasOwnProperty(h)&&(c[h]=l[h]),c),{})}Jt.pick=t;const n=e.globalThisShim.setTimeout,r=e.globalThisShim.clearTimeout;function o(l,f){f.useNativeTimers?(l.setTimeoutFn=n.bind(e.globalThisShim),l.clearTimeoutFn=r.bind(e.globalThisShim)):(l.setTimeoutFn=e.globalThisShim.setTimeout.bind(e.globalThisShim),l.clearTimeoutFn=e.globalThisShim.clearTimeout.bind(e.globalThisShim))}Jt.installTimerFunctions=o;const i=1.33;function s(l){return typeof l=="string"?a(l):Math.ceil((l.byteLength||l.size)*i)}Jt.byteLength=s;function a(l){let f=0,c=0;for(let h=0,d=l.length;h<d;h++)f=l.charCodeAt(h),f<128?c+=1:f<2048?c+=2:f<55296||f>=57344?c+=3:(h++,c+=4);return c}return Jt}var So={exports:{}},ws,df;function bE(){if(df)return ws;df=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;ws=function(c,h){h=h||{};var d=typeof c;if(d==="string"&&c.length>0)return s(c);if(d==="number"&&isFinite(c))return h.long?l(c):a(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function s(c){if(c=String(c),!(c.length>100)){var h=/^(-?(?:\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(h){var d=parseFloat(h[1]),u=(h[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return d*i;case"weeks":case"week":case"w":return d*o;case"days":case"day":case"d":return d*r;case"hours":case"hour":case"hrs":case"hr":case"h":return d*n;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function a(c){var h=Math.abs(c);return h>=r?Math.round(c/r)+"d":h>=n?Math.round(c/n)+"h":h>=t?Math.round(c/t)+"m":h>=e?Math.round(c/e)+"s":c+"ms"}function l(c){var h=Math.abs(c);return h>=r?f(c,h,r,"day"):h>=n?f(c,h,n,"hour"):h>=t?f(c,h,t,"minute"):h>=e?f(c,h,e,"second"):c+" ms"}function f(c,h,d,u){var p=h>=d*1.5;return Math.round(c/d)+" "+u+(p?"s":"")}return ws}var Ss,hf;function wE(){if(hf)return Ss;hf=1;function e(t){r.debug=r,r.default=r,r.coerce=f,r.disable=s,r.enable=i,r.enabled=a,r.humanize=bE(),r.destroy=c,Object.keys(t).forEach(h=>{r[h]=t[h]}),r.names=[],r.skips=[],r.formatters={};function n(h){let d=0;for(let u=0;u<h.length;u++)d=(d<<5)-d+h.charCodeAt(u),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=n;function r(h){let d,u=null,p,m;function E(...T){if(!E.enabled)return;const _=E,b=Number(new Date),A=b-(d||b);_.diff=A,_.prev=d,_.curr=b,d=b,T[0]=r.coerce(T[0]),typeof T[0]!="string"&&T.unshift("%O");let w=0;T[0]=T[0].replace(/%([a-zA-Z%])/g,(F,B)=>{if(F==="%%")return"%";w++;const W=r.formatters[B];if(typeof W=="function"){const G=T[w];F=W.call(_,G),T.splice(w,1),w--}return F}),r.formatArgs.call(_,T),(_.log||r.log).apply(_,T)}return E.namespace=h,E.useColors=r.useColors(),E.color=r.selectColor(h),E.extend=o,E.destroy=r.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(p!==r.namespaces&&(p=r.namespaces,m=r.enabled(h)),m),set:T=>{u=T}}),typeof r.init=="function"&&r.init(E),E}function o(h,d){const u=r(this.namespace+(typeof d>"u"?":":d)+h);return u.log=this.log,u}function i(h){r.save(h),r.namespaces=h,r.names=[],r.skips=[];let d;const u=(typeof h=="string"?h:"").split(/[\s,]+/),p=u.length;for(d=0;d<p;d++)u[d]&&(h=u[d].replace(/\*/g,".*?"),h[0]==="-"?r.skips.push(new RegExp("^"+h.slice(1)+"$")):r.names.push(new RegExp("^"+h+"$")))}function s(){const h=[...r.names.map(l),...r.skips.map(l).map(d=>"-"+d)].join(",");return r.enable(""),h}function a(h){if(h[h.length-1]==="*")return!0;let d,u;for(d=0,u=r.skips.length;d<u;d++)if(r.skips[d].test(h))return!1;for(d=0,u=r.names.length;d<u;d++)if(r.names[d].test(h))return!0;return!1}function l(h){return h.toString().substring(2,h.toString().length-2).replace(/\.\*\?$/,"*")}function f(h){return h instanceof Error?h.stack||h.message:h}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 r.enable(r.load()),r}return Ss=e,Ss}var pf;function qt(){return pf||(pf=1,function(e,t){t.formatArgs=r,t.save=o,t.load=i,t.useColors=n,t.storage=s(),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 n(){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 r(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 f="color: "+this.color;l.splice(1,0,f,"color: inherit");let c=0,h=0;l[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&(c++,d==="%c"&&(h=c))}),l.splice(h,0,f)}t.log=console.debug||console.log||(()=>{});function o(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug")}catch{}}function i(){let l;try{l=t.storage.getItem("debug")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function s(){try{return localStorage}catch{}}e.exports=wE()(t);const{formatters:a}=e.exports;a.j=function(l){try{return JSON.stringify(l)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}}(So,So.exports)),So.exports}var qr={},mf;function _p(){if(mf)return qr;mf=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.decode=qr.encode=void 0;function e(n){let r="";for(let o in n)n.hasOwnProperty(o)&&(r.length&&(r+="&"),r+=encodeURIComponent(o)+"="+encodeURIComponent(n[o]));return r}qr.encode=e;function t(n){let r={},o=n.split("&");for(let i=0,s=o.length;i<s;i++){let a=o[i].split("=");r[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return r}return qr.decode=t,qr}var gf;function Xo(){if(gf)return Ti;gf=1;var e=ue&&ue.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.Transport=void 0;const t=Ki(),n=kn,r=Qi(),o=e(qt()),i=_p(),s=(0,o.default)("engine.io-client:transport");class a extends Error{constructor(c,h,d){super(c),this.description=h,this.context=d,this.type="TransportError"}}class l extends n.Emitter{constructor(c){super(),this.writable=!1,(0,r.installTimerFunctions)(this,c),this.opts=c,this.query=c.query,this.socket=c.socket}onError(c,h,d){return super.emitReserved("error",new a(c,h,d)),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):s("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(c){const h=(0,t.decodePacket)(c,this.socket.binaryType);this.onPacket(h)}onPacket(c){super.emitReserved("packet",c)}onClose(c){this.readyState="closed",super.emitReserved("close",c)}pause(c){}createUri(c,h={}){return c+"://"+this._hostname()+this._port()+this.opts.path+this._query(h)}_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 h=(0,i.encode)(c);return h.length?"?"+h:""}}return Ti.Transport=l,Ti}var Zt={},yf;function Ep(){if(yf)return Zt;yf=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.yeast=Zt.decode=Zt.encode=void 0;const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,n={};let r=0,o=0,i;function s(f){let c="";do c=e[f%t]+c,f=Math.floor(f/t);while(f>0);return c}Zt.encode=s;function a(f){let c=0;for(o=0;o<f.length;o++)c=c*t+n[f.charAt(o)];return c}Zt.decode=a;function l(){const f=s(+new Date);return f!==i?(r=0,i=f):f+"."+s(r++)}for(Zt.yeast=l;o<t;o++)n[e[o]]=o;return Zt}var Gr={},Ai={},vf;function SE(){if(vf)return Ai;vf=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.hasCORS=void 0;let e=!1;try{e=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}return Ai.hasCORS=e,Ai}var _f;function TE(){if(_f)return Gr;_f=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.createCookieJar=Gr.XHR=void 0;const e=SE(),t=Qo();function n(o){const i=o.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||e.hasCORS))return new XMLHttpRequest}catch{}if(!i)try{return new t.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}Gr.XHR=n;function r(){}return Gr.createCookieJar=r,Gr}var Ef;function xE(){if(Ef)return $r;Ef=1;var e=ue&&ue.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty($r,"__esModule",{value:!0}),$r.Request=$r.Polling=void 0;const t=Xo(),n=e(qt()),r=Ep(),o=Ki(),i=TE(),s=kn,a=Qi(),l=Qo(),f=(0,n.default)("engine.io-client:polling");function c(){}const h=function(){return new i.XHR({xdomain:!1}).responseType!=null}();class d extends t.Transport{constructor(E){if(super(E),this.polling=!1,typeof location<"u"){const _=location.protocol==="https:";let b=location.port;b||(b=_?"443":"80"),this.xd=typeof location<"u"&&E.hostname!==location.hostname||b!==E.port}const T=E&&E.forceBase64;this.supportsBinary=h&&!T,this.opts.withCredentials&&(this.cookieJar=(0,i.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(E){this.readyState="pausing";const T=()=>{f("paused"),this.readyState="paused",E()};if(this.polling||!this.writable){let _=0;this.polling&&(f("we are currently polling - waiting to pause"),_++,this.once("pollComplete",function(){f("pre-pause polling complete"),--_||T()})),this.writable||(f("we are currently writing - waiting to pause"),_++,this.once("drain",function(){f("pre-pause writing complete"),--_||T()}))}else T()}poll(){f("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(E){f("polling got data %s",E);const T=_=>{if(this.readyState==="opening"&&_.type==="open"&&this.onOpen(),_.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(_)};(0,o.decodePayload)(E,this.socket.binaryType).forEach(T),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():f('ignoring poll - transport state "%s"',this.readyState))}doClose(){const E=()=>{f("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(f("transport open - closing"),E()):(f("transport not open - deferring close"),this.once("open",E))}write(E){this.writable=!1,(0,o.encodePayload)(E,T=>{this.doWrite(T,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const E=this.opts.secure?"https":"http",T=this.query||{};return this.opts.timestampRequests!==!1&&(T[this.opts.timestampParam]=(0,r.yeast)()),!this.supportsBinary&&!T.sid&&(T.b64=1),this.createUri(E,T)}request(E={}){return Object.assign(E,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new u(this.uri(),E)}doWrite(E,T){const _=this.request({method:"POST",data:E});_.on("success",T),_.on("error",(b,A)=>{this.onError("xhr post error",b,A)})}doPoll(){f("xhr poll");const E=this.request();E.on("data",this.onData.bind(this)),E.on("error",(T,_)=>{this.onError("xhr poll error",T,_)}),this.pollXhr=E}}$r.Polling=d;class u extends s.Emitter{constructor(E,T){super(),(0,a.installTimerFunctions)(this,T),this.opts=T,this.method=T.method||"GET",this.uri=E,this.data=T.data!==void 0?T.data:null,this.create()}create(){var E;const T=(0,a.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");T.xdomain=!!this.opts.xd;const _=this.xhr=new i.XHR(T);try{f("xhr open %s: %s",this.method,this.uri),_.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){_.setDisableHeaderCheck&&_.setDisableHeaderCheck(!0);for(let b in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(b)&&_.setRequestHeader(b,this.opts.extraHeaders[b])}}catch{}if(this.method==="POST")try{_.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{_.setRequestHeader("Accept","*/*")}catch{}(E=this.opts.cookieJar)===null||E===void 0||E.addCookies(_),"withCredentials"in _&&(_.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(_.timeout=this.opts.requestTimeout),_.onreadystatechange=()=>{var b;_.readyState===3&&((b=this.opts.cookieJar)===null||b===void 0||b.parseCookies(_)),_.readyState===4&&(_.status===200||_.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof _.status=="number"?_.status:0)},0))},f("xhr data %s",this.data),_.send(this.data)}catch(b){this.setTimeoutFn(()=>{this.onError(b)},0);return}typeof document<"u"&&(this.index=u.requestsCount++,u.requests[this.index]=this)}onError(E){this.emitReserved("error",E,this.xhr),this.cleanup(!0)}cleanup(E){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=c,E)try{this.xhr.abort()}catch{}typeof document<"u"&&delete u.requests[this.index],this.xhr=null}}onLoad(){const E=this.xhr.responseText;E!==null&&(this.emitReserved("data",E),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if($r.Request=u,u.requestsCount=0,u.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",p);else if(typeof addEventListener=="function"){const m="onpagehide"in l.globalThisShim?"pagehide":"unload";addEventListener(m,p,!1)}}function p(){for(let m in u.requests)u.requests.hasOwnProperty(m)&&u.requests[m].abort()}return $r}var Ci={},Ct={},bf;function Jo(){if(bf)return Ct;bf=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.defaultBinaryType=Ct.usingBrowserWebSocket=Ct.WebSocket=Ct.nextTick=void 0;const e=Qo();return Ct.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,r)=>r(n,0))(),Ct.WebSocket=e.globalThisShim.WebSocket||e.globalThisShim.MozWebSocket,Ct.usingBrowserWebSocket=!0,Ct.defaultBinaryType="arraybuffer",Ct}var wf;function OE(){if(wf)return Ci;wf=1;var e=ue&&ue.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.WS=void 0;const t=Xo(),n=Ep(),r=Qi(),o=Jo(),i=e(qt()),s=Ki(),a=(0,i.default)("engine.io-client:websocket"),l=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class f extends t.Transport{constructor(h){super(h),this.supportsBinary=!h.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const h=this.uri(),d=this.opts.protocols,u=l?{}:(0,r.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(u.headers=this.opts.extraHeaders);try{this.ws=o.usingBrowserWebSocket&&!l?d?new o.WebSocket(h,d):new o.WebSocket(h):new o.WebSocket(h,d,u)}catch(p){return this.emitReserved("error",p)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=h=>this.onClose({description:"websocket connection closed",context:h}),this.ws.onmessage=h=>this.onData(h.data),this.ws.onerror=h=>this.onError("websocket error",h)}write(h){this.writable=!1;for(let d=0;d<h.length;d++){const u=h[d],p=d===h.length-1;(0,s.encodePacket)(u,this.supportsBinary,m=>{const E={};o.usingBrowserWebSocket||(u.options&&(E.compress=u.options.compress),this.opts.perMessageDeflate&&(typeof m=="string"?Buffer.byteLength(m):m.length)<this.opts.perMessageDeflate.threshold&&(E.compress=!1));try{o.usingBrowserWebSocket?this.ws.send(m):this.ws.send(m,E)}catch{a("websocket closed before onclose event")}p&&(0,o.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const h=this.opts.secure?"wss":"ws",d=this.query||{};return this.opts.timestampRequests&&(d[this.opts.timestampParam]=(0,n.yeast)()),this.supportsBinary||(d.b64=1),this.createUri(h,d)}check(){return!!o.WebSocket}}return Ci.WS=f,Ci}var Ri={},Sf;function AE(){if(Sf)return Ri;Sf=1;var e=ue&&ue.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.WT=void 0;const t=Xo(),n=Jo(),r=Ki(),i=(0,e(qt()).default)("engine.io-client:webtransport");class s 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(()=>{i("transport closed gracefully"),this.onClose()}).catch(l=>{i("transport closed due to %s",l),this.onError("webtransport error",l)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(l=>{const f=(0,r.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),c=l.readable.pipeThrough(f).getReader(),h=(0,r.createPacketEncoderStream)();h.readable.pipeTo(l.writable),this.writer=h.writable.getWriter();const d=()=>{c.read().then(({done:p,value:m})=>{if(p){i("session is closed");return}i("received chunk: %o",m),this.onPacket(m),d()}).catch(p=>{i("an error occurred while reading: %s",p)})};d();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this.writer.write(u).then(()=>this.onOpen())})}))}write(l){this.writable=!1;for(let f=0;f<l.length;f++){const c=l[f],h=f===l.length-1;this.writer.write(c).then(()=>{h&&(0,n.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var l;(l=this.transport)===null||l===void 0||l.close()}}return Ri.WT=s,Ri}var Tf;function bp(){if(Tf)return Si;Tf=1,Object.defineProperty(Si,"__esModule",{value:!0}),Si.transports=void 0;const e=xE(),t=OE(),n=AE();return Si.transports={websocket:t.WS,webtransport:n.WT,polling:e.Polling},Si}var Ni={},xf;function wp(){if(xf)return Ni;xf=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.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 n(i){const s=i,a=i.indexOf("["),l=i.indexOf("]");a!=-1&&l!=-1&&(i=i.substring(0,a)+i.substring(a,l).replace(/:/g,";")+i.substring(l,i.length));let f=e.exec(i||""),c={},h=14;for(;h--;)c[t[h]]=f[h]||"";return a!=-1&&l!=-1&&(c.source=s,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=r(c,c.path),c.queryKey=o(c,c.query),c}Ni.parse=n;function r(i,s){const a=/\/{2,9}/g,l=s.replace(a,"/").split("/");return(s.slice(0,1)=="/"||s.length===0)&&l.splice(0,1),s.slice(-1)=="/"&&l.splice(l.length-1,1),l}function o(i,s){const a={};return s.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,f,c){f&&(a[f]=c)}),a}return Ni}var Of;function CE(){if(Of)return wi;Of=1;var e=ue&&ue.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(wi,"__esModule",{value:!0}),wi.Socket=void 0;const t=bp(),n=Qi(),r=_p(),o=wp(),i=e(qt()),s=kn,a=Ki(),l=Jo(),f=(0,i.default)("engine.io-client:socket");class c extends s.Emitter{constructor(d,u={}){super(),this.binaryType=l.defaultBinaryType,this.writeBuffer=[],d&&typeof d=="object"&&(u=d,d=null),d?(d=(0,o.parse)(d),u.hostname=d.host,u.secure=d.protocol==="https"||d.protocol==="wss",u.port=d.port,d.query&&(u.query=d.query)):u.host&&(u.hostname=(0,o.parse)(u.host).host),(0,n.installTimerFunctions)(this,u),this.secure=u.secure!=null?u.secure:typeof location<"u"&&location.protocol==="https:",u.hostname&&!u.port&&(u.port=this.secure?"443":"80"),this.hostname=u.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=u.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=u.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},u),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,r.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(d){f('creating transport "%s"',d);const u=Object.assign({},this.opts.query);u.EIO=a.protocol,u.transport=d,this.id&&(u.sid=this.id);const p=Object.assign({},this.opts,{query:u,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[d]);return f("options: %j",p),new t.transports[d](p)}open(){let d;if(this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)d="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else d=this.transports[0];this.readyState="opening";try{d=this.createTransport(d)}catch(u){f("error while creating transport: %s",u),this.transports.shift(),this.open();return}d.open(),this.setTransport(d)}setTransport(d){f("setting transport %s",d.name),this.transport&&(f("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=d,d.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",u=>this.onClose("transport close",u))}probe(d){f('probing transport "%s"',d);let u=this.createTransport(d),p=!1;c.priorWebsocketSuccess=!1;const m=()=>{p||(f('probe transport "%s" opened',d),u.send([{type:"ping",data:"probe"}]),u.once("packet",P=>{if(!p)if(P.type==="pong"&&P.data==="probe"){if(f('probe transport "%s" pong',d),this.upgrading=!0,this.emitReserved("upgrading",u),!u)return;c.priorWebsocketSuccess=u.name==="websocket",f('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{p||this.readyState!=="closed"&&(f("changing transport and sending upgrade packet"),w(),this.setTransport(u),u.send([{type:"upgrade"}]),this.emitReserved("upgrade",u),u=null,this.upgrading=!1,this.flush())})}else{f('probe transport "%s" failed',d);const F=new Error("probe error");F.transport=u.name,this.emitReserved("upgradeError",F)}}))};function E(){p||(p=!0,w(),u.close(),u=null)}const T=P=>{const F=new Error("probe error: "+P);F.transport=u.name,E(),f('probe transport "%s" failed because of error: %s',d,P),this.emitReserved("upgradeError",F)};function _(){T("transport closed")}function b(){T("socket closed")}function A(P){u&&P.name!==u.name&&(f('"%s" works - aborting "%s"',P.name,u.name),E())}const w=()=>{u.removeListener("open",m),u.removeListener("error",T),u.removeListener("close",_),this.off("close",b),this.off("upgrading",A)};u.once("open",m),u.once("error",T),u.once("close",_),this.once("close",b),this.once("upgrading",A),this.upgrades.indexOf("webtransport")!==-1&&d!=="webtransport"?this.setTimeoutFn(()=>{p||u.open()},200):u.open()}onOpen(){if(f("socket open"),this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){f("starting upgrade probes");let d=0;const u=this.upgrades.length;for(;d<u;d++)this.probe(this.upgrades[d])}}onPacket(d){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(f('socket receive: type "%s", data "%s"',d.type,d.data),this.emitReserved("packet",d),this.emitReserved("heartbeat"),this.resetPingTimeout(),d.type){case"open":this.onHandshake(JSON.parse(d.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const u=new Error("server error");u.code=d.data,this.onError(u);break;case"message":this.emitReserved("data",d.data),this.emitReserved("message",d.data);break}else f('packet received with socket readyState "%s"',this.readyState)}onHandshake(d){this.emitReserved("handshake",d),this.id=d.sid,this.transport.query.sid=d.sid,this.upgrades=this.filterUpgrades(d.upgrades),this.pingInterval=d.pingInterval,this.pingTimeout=d.pingTimeout,this.maxPayload=d.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 d=this.getWritablePackets();f("flushing %d packets in socket",d.length),this.transport.send(d),this.prevBufferLen=d.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let u=1;for(let p=0;p<this.writeBuffer.length;p++){const m=this.writeBuffer[p].data;if(m&&(u+=(0,n.byteLength)(m)),p>0&&u>this.maxPayload)return f("only send %d out of %d packets",p,this.writeBuffer.length),this.writeBuffer.slice(0,p);u+=2}return f("payload size is %d (max: %d)",u,this.maxPayload),this.writeBuffer}write(d,u,p){return this.sendPacket("message",d,u,p),this}send(d,u,p){return this.sendPacket("message",d,u,p),this}sendPacket(d,u,p,m){if(typeof u=="function"&&(m=u,u=void 0),typeof p=="function"&&(m=p,p=null),this.readyState==="closing"||this.readyState==="closed")return;p=p||{},p.compress=p.compress!==!1;const E={type:d,data:u,options:p};this.emitReserved("packetCreate",E),this.writeBuffer.push(E),m&&this.once("flush",m),this.flush()}close(){const d=()=>{this.onClose("forced close"),f("socket closing - telling transport to close"),this.transport.close()},u=()=>{this.off("upgrade",u),this.off("upgradeError",u),d()},p=()=>{this.once("upgrade",u),this.once("upgradeError",u)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?p():d()}):this.upgrading?p():d()),this}onError(d){f("socket error %j",d),c.priorWebsocketSuccess=!1,this.emitReserved("error",d),this.onClose("transport error",d)}onClose(d,u){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(f('socket close with reason: "%s"',d),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",d,u),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(d){const u=[];let p=0;const m=d.length;for(;p<m;p++)~this.transports.indexOf(d[p])&&u.push(d[p]);return u}}return wi.Socket=c,c.protocol=a.protocol,wi}var Af;function Sp(){return Af||(Af=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=CE();Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return t.Socket}}),e.protocol=t.Socket.protocol;var n=Xo();Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return n.Transport}});var r=bp();Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return r.transports}});var o=Qi();Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return o.installTimerFunctions}});var i=wp();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return i.parse}});var s=Jo();Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return s.nextTick}})}(Es)),Es}var Cf;function RE(){if(Cf)return bi;Cf=1;var e=ue&&ue.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(bi,"__esModule",{value:!0}),bi.url=void 0;const t=Sp(),r=e(qt()).default("socket.io-client:url");function o(i,s="",a){let l=i;a=a||typeof location<"u"&&location,i==null&&(i=a.protocol+"//"+a.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=a.protocol+i:i=a.host+i),/^(https?|wss?):\/\//.test(i)||(r("protocol-less url %s",i),typeof a<"u"?i=a.protocol+"//"+i:i="https://"+i),r("parse %s",i),l=t.parse(i)),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+s,l.href=l.protocol+"://"+c+(a&&a.port===l.port?"":":"+l.port),l}return bi.url=o,bi}var Pi={},Ii={},Ts={},Wr={},Vr={},Rf;function Tp(){if(Rf)return Vr;Rf=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.hasBinary=Vr.isBinary=void 0;const e=typeof ArrayBuffer=="function",t=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a.buffer instanceof ArrayBuffer,n=Object.prototype.toString,r=typeof Blob=="function"||typeof Blob<"u"&&n.call(Blob)==="[object BlobConstructor]",o=typeof File=="function"||typeof File<"u"&&n.call(File)==="[object FileConstructor]";function i(a){return e&&(a instanceof ArrayBuffer||t(a))||r&&a instanceof Blob||o&&a instanceof File}Vr.isBinary=i;function s(a,l){if(!a||typeof a!="object")return!1;if(Array.isArray(a)){for(let f=0,c=a.length;f<c;f++)if(s(a[f]))return!0;return!1}if(i(a))return!0;if(a.toJSON&&typeof a.toJSON=="function"&&arguments.length===1)return s(a.toJSON(),!0);for(const f in a)if(Object.prototype.hasOwnProperty.call(a,f)&&s(a[f]))return!0;return!1}return Vr.hasBinary=s,Vr}var Nf;function NE(){if(Nf)return Wr;Nf=1,Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.reconstructPacket=Wr.deconstructPacket=void 0;const e=Tp();function t(i){const s=[],a=i.data,l=i;return l.data=n(a,s),l.attachments=s.length,{packet:l,buffers:s}}Wr.deconstructPacket=t;function n(i,s){if(!i)return i;if((0,e.isBinary)(i)){const a={_placeholder:!0,num:s.length};return s.push(i),a}else if(Array.isArray(i)){const a=new Array(i.length);for(let l=0;l<i.length;l++)a[l]=n(i[l],s);return a}else if(typeof i=="object"&&!(i instanceof Date)){const a={};for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&&(a[l]=n(i[l],s));return a}return i}function r(i,s){return i.data=o(i.data,s),delete i.attachments,i}Wr.reconstructPacket=r;function o(i,s){if(!i)return i;if(i&&i._placeholder===!0){if(typeof i.num=="number"&&i.num>=0&&i.num<s.length)return s[i.num];throw new Error("illegal attachments")}else if(Array.isArray(i))for(let a=0;a<i.length;a++)i[a]=o(i[a],s);else if(typeof i=="object")for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&(i[a]=o(i[a],s));return i}return Wr}var Pf;function Uc(){return Pf||(Pf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const t=kn,n=NE(),r=Tp(),i=(0,qt().default)("socket.io-parser"),s=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var a;(function(d){d[d.CONNECT=0]="CONNECT",d[d.DISCONNECT=1]="DISCONNECT",d[d.EVENT=2]="EVENT",d[d.ACK=3]="ACK",d[d.CONNECT_ERROR=4]="CONNECT_ERROR",d[d.BINARY_EVENT=5]="BINARY_EVENT",d[d.BINARY_ACK=6]="BINARY_ACK"})(a=e.PacketType||(e.PacketType={}));class l{constructor(u){this.replacer=u}encode(u){return i("encoding packet %j",u),(u.type===a.EVENT||u.type===a.ACK)&&(0,r.hasBinary)(u)?this.encodeAsBinary({type:u.type===a.EVENT?a.BINARY_EVENT:a.BINARY_ACK,nsp:u.nsp,data:u.data,id:u.id}):[this.encodeAsString(u)]}encodeAsString(u){let p=""+u.type;return(u.type===a.BINARY_EVENT||u.type===a.BINARY_ACK)&&(p+=u.attachments+"-"),u.nsp&&u.nsp!=="/"&&(p+=u.nsp+","),u.id!=null&&(p+=u.id),u.data!=null&&(p+=JSON.stringify(u.data,this.replacer)),i("encoded %j as %s",u,p),p}encodeAsBinary(u){const p=(0,n.deconstructPacket)(u),m=this.encodeAsString(p.packet),E=p.buffers;return E.unshift(m),E}}e.Encoder=l;function f(d){return Object.prototype.toString.call(d)==="[object Object]"}class c extends t.Emitter{constructor(u){super(),this.reviver=u}add(u){let p;if(typeof u=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");p=this.decodeString(u);const m=p.type===a.BINARY_EVENT;m||p.type===a.BINARY_ACK?(p.type=m?a.EVENT:a.ACK,this.reconstructor=new h(p),p.attachments===0&&super.emitReserved("decoded",p)):super.emitReserved("decoded",p)}else if((0,r.isBinary)(u)||u.base64)if(this.reconstructor)p=this.reconstructor.takeBinaryData(u),p&&(this.reconstructor=null,super.emitReserved("decoded",p));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+u)}decodeString(u){let p=0;const m={type:Number(u.charAt(0))};if(a[m.type]===void 0)throw new Error("unknown packet type "+m.type);if(m.type===a.BINARY_EVENT||m.type===a.BINARY_ACK){const T=p+1;for(;u.charAt(++p)!=="-"&&p!=u.length;);const _=u.substring(T,p);if(_!=Number(_)||u.charAt(p)!=="-")throw new Error("Illegal attachments");m.attachments=Number(_)}if(u.charAt(p+1)==="/"){const T=p+1;for(;++p&&!(u.charAt(p)===","||p===u.length););m.nsp=u.substring(T,p)}else m.nsp="/";const E=u.charAt(p+1);if(E!==""&&Number(E)==E){const T=p+1;for(;++p;){const _=u.charAt(p);if(_==null||Number(_)!=_){--p;break}if(p===u.length)break}m.id=Number(u.substring(T,p+1))}if(u.charAt(++p)){const T=this.tryParse(u.substr(p));if(c.isPayloadValid(m.type,T))m.data=T;else throw new Error("invalid payload")}return i("decoded %s as %j",u,m),m}tryParse(u){try{return JSON.parse(u,this.reviver)}catch{return!1}}static isPayloadValid(u,p){switch(u){case a.CONNECT:return f(p);case a.DISCONNECT:return p===void 0;case a.CONNECT_ERROR:return typeof p=="string"||f(p);case a.EVENT:case a.BINARY_EVENT:return Array.isArray(p)&&(typeof p[0]=="number"||typeof p[0]=="string"&&s.indexOf(p[0])===-1);case a.ACK:case a.BINARY_ACK:return Array.isArray(p)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=c;class h{constructor(u){this.packet=u,this.buffers=[],this.reconPack=u}takeBinaryData(u){if(this.buffers.push(u),this.buffers.length===this.reconPack.attachments){const p=(0,n.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),p}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}}(Ts)),Ts}var Li={},If;function xp(){if(If)return Li;If=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.on=void 0;function e(t,n,r){return t.on(n,r),function(){t.off(n,r)}}return Li.on=e,Li}var Lf;function Op(){if(Lf)return Ii;Lf=1;var e=ue&&ue.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.Socket=void 0;const t=Uc(),n=xp(),r=kn,i=e(qt()).default("socket.io-client:socket"),s=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class a extends r.Emitter{constructor(f,c,h){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=f,this.nsp=c,h&&h.auth&&(this.auth=h.auth),this._opts=Object.assign({},h),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const f=this.io;this.subs=[n.on(f,"open",this.onopen.bind(this)),n.on(f,"packet",this.onpacket.bind(this)),n.on(f,"error",this.onerror.bind(this)),n.on(f,"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(...f){return f.unshift("message"),this.emit.apply(this,f),this}emit(f,...c){if(s.hasOwnProperty(f))throw new Error('"'+f.toString()+'" is a reserved event name');if(c.unshift(f),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const h={type:t.PacketType.EVENT,data:c};if(h.options={},h.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const p=this.ids++;i("emitting packet with ack id %d",p);const m=c.pop();this._registerAckCallback(p,m),h.id=p}const d=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!d||!this.connected)?i("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h),this.flags={},this}_registerAckCallback(f,c){var h;const d=(h=this.flags.timeout)!==null&&h!==void 0?h:this._opts.ackTimeout;if(d===void 0){this.acks[f]=c;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[f];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===f&&(i("removing packet with ack id %d from the buffer",f),this.sendBuffer.splice(p,1));i("event with ack id %d has timed out after %d ms",f,d),c.call(this,new Error("operation has timed out"))},d);this.acks[f]=(...p)=>{this.io.clearTimeoutFn(u),c.apply(this,[null,...p])}}emitWithAck(f,...c){const h=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((d,u)=>{c.push((p,m)=>h?p?u(p):d(m):d(p)),this.emit(f,...c)})}_addToQueue(f){let c;typeof f[f.length-1]=="function"&&(c=f.pop());const h={id:this._queueSeq++,tryCount:0,pending:!1,args:f,flags:Object.assign({fromQueue:!0},this.flags)};f.push((d,...u)=>h!==this._queue[0]?void 0:(d!==null?h.tryCount>this._opts.retries&&(i("packet [%d] is discarded after %d tries",h.id,h.tryCount),this._queue.shift(),c&&c(d)):(i("packet [%d] was successfully sent",h.id),this._queue.shift(),c&&c(null,...u)),h.pending=!1,this._drainQueue())),this._queue.push(h),this._drainQueue()}_drainQueue(f=!1){if(i("draining queue"),!this.connected||this._queue.length===0)return;const c=this._queue[0];if(c.pending&&!f){i("packet [%d] has already been sent and is waiting for an ack",c.id);return}c.pending=!0,c.tryCount++,i("sending packet [%d] (try n°%d)",c.id,c.tryCount),this.flags=c.flags,this.emit.apply(this,c.args)}packet(f){f.nsp=this.nsp,this.io._packet(f)}onopen(){i("transport is open - connecting"),typeof this.auth=="function"?this.auth(f=>{this._sendConnectPacket(f)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(f){this.packet({type:t.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},f):f})}onerror(f){this.connected||this.emitReserved("connect_error",f)}onclose(f,c){i("close (%s)",f),this.connected=!1,delete this.id,this.emitReserved("disconnect",f,c)}onpacket(f){if(f.nsp===this.nsp)switch(f.type){case t.PacketType.CONNECT:f.data&&f.data.sid?this.onconnect(f.data.sid,f.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(f);break;case t.PacketType.ACK:case t.PacketType.BINARY_ACK:this.onack(f);break;case t.PacketType.DISCONNECT:this.ondisconnect();break;case t.PacketType.CONNECT_ERROR:this.destroy();const h=new Error(f.data.message);h.data=f.data.data,this.emitReserved("connect_error",h);break}}onevent(f){const c=f.data||[];i("emitting event %j",c),f.id!=null&&(i("attaching ack callback to event"),c.push(this.ack(f.id))),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(f){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const h of c)h.apply(this,f)}super.emit.apply(this,f),this._pid&&f.length&&typeof f[f.length-1]=="string"&&(this._lastOffset=f[f.length-1])}ack(f){const c=this;let h=!1;return function(...d){h||(h=!0,i("sending ack %j",d),c.packet({type:t.PacketType.ACK,id:f,data:d}))}}onack(f){const c=this.acks[f.id];typeof c=="function"?(i("calling ack %s with %j",f.id,f.data),c.apply(this,f.data),delete this.acks[f.id]):i("bad ack %s",f.id)}onconnect(f,c){i("socket connected with id %s",f),this.id=f,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(f=>this.emitEvent(f)),this.receiveBuffer=[],this.sendBuffer.forEach(f=>{this.notifyOutgoingListeners(f),this.packet(f)}),this.sendBuffer=[]}ondisconnect(){i("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(f=>f()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(i("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(f){return this.flags.compress=f,this}get volatile(){return this.flags.volatile=!0,this}timeout(f){return this.flags.timeout=f,this}onAny(f){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(f),this}prependAny(f){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(f),this}offAny(f){if(!this._anyListeners)return this;if(f){const c=this._anyListeners;for(let h=0;h<c.length;h++)if(f===c[h])return c.splice(h,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(f){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(f),this}prependAnyOutgoing(f){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(f),this}offAnyOutgoing(f){if(!this._anyOutgoingListeners)return this;if(f){const c=this._anyOutgoingListeners;for(let h=0;h<c.length;h++)if(f===c[h])return c.splice(h,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(f){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const h of c)h.apply(this,f.data)}}}return Ii.Socket=a,Ii}var ki={},kf;function PE(){if(kf)return ki;kf=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.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 ki.Backoff=e,e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*t);t=Math.floor(n*10)&1?t+r:t-r}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},ki}var Mf;function IE(){if(Mf)return Pi;Mf=1;var e=ue&&ue.__createBinding||(Object.create?function(u,p,m,E){E===void 0&&(E=m),Object.defineProperty(u,E,{enumerable:!0,get:function(){return p[m]}})}:function(u,p,m,E){E===void 0&&(E=m),u[E]=p[m]}),t=ue&&ue.__setModuleDefault||(Object.create?function(u,p){Object.defineProperty(u,"default",{enumerable:!0,value:p})}:function(u,p){u.default=p}),n=ue&&ue.__importStar||function(u){if(u&&u.__esModule)return u;var p={};if(u!=null)for(var m in u)m!=="default"&&Object.prototype.hasOwnProperty.call(u,m)&&e(p,u,m);return t(p,u),p},r=ue&&ue.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.Manager=void 0;const o=Sp(),i=Op(),s=n(Uc()),a=xp(),l=PE(),f=kn,h=r(qt()).default("socket.io-client:manager");class d extends f.Emitter{constructor(p,m){var E;super(),this.nsps={},this.subs=[],p&&typeof p=="object"&&(m=p,p=void 0),m=m||{},m.path=m.path||"/socket.io",this.opts=m,o.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((E=m.randomizationFactor)!==null&&E!==void 0?E:.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=p;const T=m.parser||s;this.encoder=new T.Encoder,this.decoder=new T.Decoder,this._autoConnect=m.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(p){return arguments.length?(this._reconnection=!!p,this):this._reconnection}reconnectionAttempts(p){return p===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=p,this)}reconnectionDelay(p){var m;return p===void 0?this._reconnectionDelay:(this._reconnectionDelay=p,(m=this.backoff)===null||m===void 0||m.setMin(p),this)}randomizationFactor(p){var m;return p===void 0?this._randomizationFactor:(this._randomizationFactor=p,(m=this.backoff)===null||m===void 0||m.setJitter(p),this)}reconnectionDelayMax(p){var m;return p===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=p,(m=this.backoff)===null||m===void 0||m.setMax(p),this)}timeout(p){return arguments.length?(this._timeout=p,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(p){if(h("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;h("opening %s",this.uri),this.engine=new o.Socket(this.uri,this.opts);const m=this.engine,E=this;this._readyState="opening",this.skipReconnect=!1;const T=a.on(m,"open",function(){E.onopen(),p&&p()}),_=A=>{h("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",A),p?p(A):this.maybeReconnectOnOpen()},b=a.on(m,"error",_);if(this._timeout!==!1){const A=this._timeout;h("connect attempt will timeout after %d",A);const w=this.setTimeoutFn(()=>{h("connect attempt timed out after %d",A),T(),_(new Error("timeout")),m.close()},A);this.opts.autoUnref&&w.unref(),this.subs.push(()=>{this.clearTimeoutFn(w)})}return this.subs.push(T),this.subs.push(b),this}connect(p){return this.open(p)}onopen(){h("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const p=this.engine;this.subs.push(a.on(p,"ping",this.onping.bind(this)),a.on(p,"data",this.ondata.bind(this)),a.on(p,"error",this.onerror.bind(this)),a.on(p,"close",this.onclose.bind(this)),a.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(p){try{this.decoder.add(p)}catch(m){this.onclose("parse error",m)}}ondecoded(p){o.nextTick(()=>{this.emitReserved("packet",p)},this.setTimeoutFn)}onerror(p){h("error",p),this.emitReserved("error",p)}socket(p,m){let E=this.nsps[p];return E?this._autoConnect&&!E.active&&E.connect():(E=new i.Socket(this,p,m),this.nsps[p]=E),E}_destroy(p){const m=Object.keys(this.nsps);for(const E of m)if(this.nsps[E].active){h("socket %s is still active, skipping close",E);return}this._close()}_packet(p){h("writing packet %j",p);const m=this.encoder.encode(p);for(let E=0;E<m.length;E++)this.engine.write(m[E],p.options)}cleanup(){h("cleanup"),this.subs.forEach(p=>p()),this.subs.length=0,this.decoder.destroy()}_close(){h("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(p,m){h("closed due to %s",p),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",p,m),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const p=this;if(this.backoff.attempts>=this._reconnectionAttempts)h("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const m=this.backoff.duration();h("will wait %dms before reconnect attempt",m),this._reconnecting=!0;const E=this.setTimeoutFn(()=>{p.skipReconnect||(h("attempting reconnect"),this.emitReserved("reconnect_attempt",p.backoff.attempts),!p.skipReconnect&&p.open(T=>{T?(h("reconnect attempt error"),p._reconnecting=!1,p.reconnect(),this.emitReserved("reconnect_error",T)):(h("reconnect success"),p.onreconnect())}))},m);this.opts.autoUnref&&E.unref(),this.subs.push(()=>{this.clearTimeoutFn(E)})}}onreconnect(){const p=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",p)}}return Pi.Manager=d,Pi}var Bf;function LE(){return Bf||(Bf=1,function(e,t){var n=ue&&ue.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const r=RE(),o=IE();Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});const i=Op();Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}});const a=n(qt()).default("socket.io-client"),l={};function f(h,d){typeof h=="object"&&(d=h,h=void 0),d=d||{};const u=r.url(h,d.path||"/socket.io"),p=u.source,m=u.id,E=u.path,T=l[m]&&E in l[m].nsps,_=d.forceNew||d["force new connection"]||d.multiplex===!1||T;let b;return _?(a("ignoring socket cache for %s",p),b=new o.Manager(p,d)):(l[m]||(a("new io instance for %s",p),l[m]=new o.Manager(p,d)),b=l[m]),u.query&&!d.query&&(d.query=u.queryKey),b.socket(u.path,d)}t.io=f,t.connect=f,t.default=f,Object.assign(f,{Manager:o.Manager,Socket:i.Socket,io:f,connect:f});var c=Uc();Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return c.protocol}}),e.exports=f}(wo,wo.exports)),wo.exports}var xs={},Mi={},Ff;function kE(){if(Ff)return Mi;Ff=1,Mi.byteLength=a,Mi.toByteArray=f,Mi.fromByteArray=d;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o<i;++o)e[o]=r[o],t[r.charCodeAt(o)]=o;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function s(u){var p=u.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=u.indexOf("=");m===-1&&(m=p);var E=m===p?0:4-m%4;return[m,E]}function a(u){var p=s(u),m=p[0],E=p[1];return(m+E)*3/4-E}function l(u,p,m){return(p+m)*3/4-m}function f(u){var p,m=s(u),E=m[0],T=m[1],_=new n(l(u,E,T)),b=0,A=T>0?E-4:E,w;for(w=0;w<A;w+=4)p=t[u.charCodeAt(w)]<<18|t[u.charCodeAt(w+1)]<<12|t[u.charCodeAt(w+2)]<<6|t[u.charCodeAt(w+3)],_[b++]=p>>16&255,_[b++]=p>>8&255,_[b++]=p&255;return T===2&&(p=t[u.charCodeAt(w)]<<2|t[u.charCodeAt(w+1)]>>4,_[b++]=p&255),T===1&&(p=t[u.charCodeAt(w)]<<10|t[u.charCodeAt(w+1)]<<4|t[u.charCodeAt(w+2)]>>2,_[b++]=p>>8&255,_[b++]=p&255),_}function c(u){return e[u>>18&63]+e[u>>12&63]+e[u>>6&63]+e[u&63]}function h(u,p,m){for(var E,T=[],_=p;_<m;_+=3)E=(u[_]<<16&16711680)+(u[_+1]<<8&65280)+(u[_+2]&255),T.push(c(E));return T.join("")}function d(u){for(var p,m=u.length,E=m%3,T=[],_=16383,b=0,A=m-E;b<A;b+=_)T.push(h(u,b,b+_>A?A:b+_));return E===1?(p=u[m-1],T.push(e[p>>2]+e[p<<4&63]+"==")):E===2&&(p=(u[m-2]<<8)+u[m-1],T.push(e[p>>10]+e[p>>4&63]+e[p<<2&63]+"=")),T.join("")}return Mi}var To={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Uf;function ME(){return Uf||(Uf=1,To.read=function(e,t,n,r,o){var i,s,a=o*8-r-1,l=(1<<a)-1,f=l>>1,c=-7,h=n?o-1:0,d=n?-1:1,u=e[t+h];for(h+=d,i=u&(1<<-c)-1,u>>=-c,c+=a;c>0;i=i*256+e[t+h],h+=d,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=r;c>0;s=s*256+e[t+h],h+=d,c-=8);if(i===0)i=1-f;else{if(i===l)return s?NaN:(u?-1:1)*(1/0);s=s+Math.pow(2,r),i=i-f}return(u?-1:1)*s*Math.pow(2,i-r)},To.write=function(e,t,n,r,o,i){var s,a,l,f=i*8-o-1,c=(1<<f)-1,h=c>>1,d=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=r?0:i-1,p=r?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?t+=d/l:t+=d*Math.pow(2,1-h),t*l>=2&&(s++,l/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(t*l-1)*Math.pow(2,o),s=s+h):(a=t*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;e[n+u]=a&255,u+=p,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;e[n+u]=s&255,u+=p,s/=256,f-=8);e[n+u-p]|=m*128}),To}/*!
56
+ window.`+s+".push("+JSON.stringify(i)+")"}};return _s=r,_s}var Es,af;function fE(){if(af)return Es;af=1;var e=lE(),t=n(e);function n(o){return o&&o.__esModule?o:{default:o}}var r={dataScript:function(i){var s=document.createElement("script");return s.innerHTML=i,s},gtm:function(i){var s=t.default.tags(i),a=function(){var h=document.createElement("noscript");return h.innerHTML=s.iframe,h},u=function(){var h=document.createElement("script");return h.innerHTML=s.script,h},f=this.dataScript(s.dataLayerVar);return{noScript:a,script:u,dataScript:f}},initialize:function(i){var s=i.gtmId,a=i.events,u=a===void 0?{}:a,f=i.dataLayer,c=i.dataLayerName,h=c===void 0?"dataLayer":c,d=i.auth,l=d===void 0?"":d,p=i.preview,m=p===void 0?"":p,E=this.gtm({id:s,events:u,dataLayer:f||void 0,dataLayerName:h,auth:l,preview:m});f&&document.head.appendChild(E.dataScript),document.head.insertBefore(E.script(),document.head.childNodes[0]),document.body.insertBefore(E.noScript(),document.body.childNodes[0])},dataLayer:function(i){var s=i.dataLayer,a=i.dataLayerName,u=a===void 0?"dataLayer":a;if(window[u])return window[u].push(s);var f=t.default.dataLayer(s,u),c=this.dataScript(f);document.head.insertBefore(c,document.head.childNodes[0])}};return Es=r,Es}var bs,sf;function dE(){if(sf)return bs;sf=1;var e=fE(),t=n(e);function n(r){return r&&r.__esModule?r:{default:r}}return bs=t.default,bs}var cf;function hE(){return cf||(cf=1,function(e,t){(function(n,r){e.exports=r(dE())})(ce,function(n){return function(){var r={273:function(a){a.exports=n}},o={};function i(a){var u=o[a];if(u!==void 0)return u.exports;var f=o[a]={exports:{}};return r[a](f,f.exports,i),f.exports}i.n=function(a){var u=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(u,{a:u}),u},i.d=function(a,u){for(var f in u)i.o(u,f)&&!i.o(a,f)&&Object.defineProperty(a,f,{enumerable:!0,get:u[f]})},i.o=function(a,u){return Object.prototype.hasOwnProperty.call(a,u)},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return function(){i.r(s),i.d(s,{setContext:function(){return c},setupGTM:function(){return d}});var a=i(273),u=i.n(a);let f=null;const c=({configs:l,environment:p})=>{if(!p)throw new Error("Cannot set context: Environment not defined");if(!l)throw new Error("Cannot set context: REACT_APP_GTM_ID not defined");if(!l[p])throw new Error(`Cannot set context: REACT_APP_GTM_ID not defined for environment - ${JSON.stringify({configs:l,environment:p})}`);f=l[p]},h=()=>f,d=()=>{const l=h();u().initialize({gtmId:l.id})}}(),s}()})}(vs)),vs.exports}var Eh=202,bh=502,wh=400,Sh=409,Th=100,xh=201,Oh=417,pE=424,Ah=403,Ch=504,Rh=410,Nh=505,Ph=418,Ih=419,Lh=507,Mh=500,kh=411,Bh=423,Fh=420,Uh=405,Dh=301,$h=302,jh=207,Hh=300,qh=511,Gh=204,Wh=203,Vh=406,zh=404,Yh=501,Kh=304,Qh=200,Xh=206,Jh=402,Zh=308,ep=412,tp=428,rp=102,np=407,ip=431,op=408,ap=413,sp=414,cp=416,up=205,lp=303,fp=503,dp=101,hp=307,pp=429,mp=401,gp=422,yp=415,vp=305;const mE={ACCEPTED:Eh,BAD_GATEWAY:bh,BAD_REQUEST:wh,CONFLICT:Sh,CONTINUE:Th,CREATED:xh,EXPECTATION_FAILED:Oh,FORBIDDEN:Ah,GATEWAY_TIMEOUT:Ch,GONE:Rh,HTTP_VERSION_NOT_SUPPORTED:Nh,IM_A_TEAPOT:Ph,INSUFFICIENT_SPACE_ON_RESOURCE:Ih,INSUFFICIENT_STORAGE:Lh,INTERNAL_SERVER_ERROR:Mh,LENGTH_REQUIRED:kh,LOCKED:Bh,METHOD_FAILURE:Fh,METHOD_NOT_ALLOWED:Uh,MOVED_PERMANENTLY:Dh,MOVED_TEMPORARILY:$h,MULTI_STATUS:jh,MULTIPLE_CHOICES:Hh,NETWORK_AUTHENTICATION_REQUIRED:qh,NO_CONTENT:Gh,NON_AUTHORITATIVE_INFORMATION:Wh,NOT_ACCEPTABLE:Vh,NOT_FOUND:zh,NOT_IMPLEMENTED:Yh,NOT_MODIFIED:Kh,OK:Qh,PARTIAL_CONTENT:Xh,PAYMENT_REQUIRED:Jh,PERMANENT_REDIRECT:Zh,PRECONDITION_FAILED:ep,PRECONDITION_REQUIRED:tp,PROCESSING:rp,PROXY_AUTHENTICATION_REQUIRED:np,REQUEST_HEADER_FIELDS_TOO_LARGE:ip,REQUEST_TIMEOUT:op,REQUEST_TOO_LONG:ap,REQUEST_URI_TOO_LONG:sp,REQUESTED_RANGE_NOT_SATISFIABLE:cp,RESET_CONTENT:up,SEE_OTHER:lp,SERVICE_UNAVAILABLE:fp,SWITCHING_PROTOCOLS:dp,TEMPORARY_REDIRECT:hp,TOO_MANY_REQUESTS:pp,UNAUTHORIZED:mp,UNPROCESSABLE_ENTITY:gp,UNSUPPORTED_MEDIA_TYPE:yp,USE_PROXY:vp};var gE={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"},yE={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 _p(e){var t=gE[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}function Ep(e){var t=yE[e];if(!t)throw new Error("Reason phrase does not exist: "+e);return t}var bp=_p,cc;(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"})(cc||(cc={}));var uc;(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"})(uc||(uc={}));var jo=globalThis&&globalThis.__assign||function(){return jo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},jo.apply(this,arguments)};const vE=jo(jo({},mE),{getStatusCode:Ep,getStatusText:bp}),_E=Object.freeze(Object.defineProperty({__proto__:null,ACCEPTED:Eh,BAD_GATEWAY:bh,BAD_REQUEST:wh,CONFLICT:Sh,CONTINUE:Th,CREATED:xh,EXPECTATION_FAILED:Oh,FAILED_DEPENDENCY:pE,FORBIDDEN:Ah,GATEWAY_TIMEOUT:Ch,GONE:Rh,HTTP_VERSION_NOT_SUPPORTED:Nh,IM_A_TEAPOT:Ph,INSUFFICIENT_SPACE_ON_RESOURCE:Ih,INSUFFICIENT_STORAGE:Lh,INTERNAL_SERVER_ERROR:Mh,LENGTH_REQUIRED:kh,LOCKED:Bh,METHOD_FAILURE:Fh,METHOD_NOT_ALLOWED:Uh,MOVED_PERMANENTLY:Dh,MOVED_TEMPORARILY:$h,MULTIPLE_CHOICES:Hh,MULTI_STATUS:jh,NETWORK_AUTHENTICATION_REQUIRED:qh,NON_AUTHORITATIVE_INFORMATION:Wh,NOT_ACCEPTABLE:Vh,NOT_FOUND:zh,NOT_IMPLEMENTED:Yh,NOT_MODIFIED:Kh,NO_CONTENT:Gh,OK:Qh,PARTIAL_CONTENT:Xh,PAYMENT_REQUIRED:Jh,PERMANENT_REDIRECT:Zh,PRECONDITION_FAILED:ep,PRECONDITION_REQUIRED:tp,PROCESSING:rp,PROXY_AUTHENTICATION_REQUIRED:np,REQUESTED_RANGE_NOT_SATISFIABLE:cp,REQUEST_HEADER_FIELDS_TOO_LARGE:ip,REQUEST_TIMEOUT:op,REQUEST_TOO_LONG:ap,REQUEST_URI_TOO_LONG:sp,RESET_CONTENT:up,get ReasonPhrases(){return uc},SEE_OTHER:lp,SERVICE_UNAVAILABLE:fp,SWITCHING_PROTOCOLS:dp,get StatusCodes(){return cc},TEMPORARY_REDIRECT:hp,TOO_MANY_REQUESTS:pp,UNAUTHORIZED:mp,UNPROCESSABLE_ENTITY:gp,UNSUPPORTED_MEDIA_TYPE:yp,USE_PROXY:vp,default:vE,getReasonPhrase:_p,getStatusCode:Ep,getStatusText:bp},Symbol.toStringTag,{value:"Module"})),EE=Yi(_E);var So={exports:{}},wi={},ws={},Si={},Ti={},$r={},xi={},Ss={},jr={},Xt={},uf;function jc(){if(uf)return Xt;uf=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.ERROR_PACKET=Xt.PACKET_TYPES_REVERSE=Xt.PACKET_TYPES=void 0;const e=Object.create(null);Xt.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);Xt.PACKET_TYPES_REVERSE=t,Object.keys(e).forEach(r=>{t[e[r]]=r});const n={type:"error",data:"parser error"};return Xt.ERROR_PACKET=n,Xt}var lf;function bE(){if(lf)return jr;lf=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.encodePacket=jr.encodePacketToBinary=void 0;const e=jc(),t=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",n=typeof ArrayBuffer=="function",r=f=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(f):f&&f.buffer instanceof ArrayBuffer,o=({type:f,data:c},h,d)=>t&&c instanceof Blob?h?d(c):i(c,d):n&&(c instanceof ArrayBuffer||r(c))?h?d(c):i(new Blob([c]),d):d(e.PACKET_TYPES[f]+(c||""));jr.encodePacket=o;const i=(f,c)=>{const h=new FileReader;return h.onload=function(){const d=h.result.split(",")[1];c("b"+(d||""))},h.readAsDataURL(f)};function s(f){return f instanceof Uint8Array?f:f instanceof ArrayBuffer?new Uint8Array(f):new Uint8Array(f.buffer,f.byteOffset,f.byteLength)}let a;function u(f,c){if(t&&f.data instanceof Blob)return f.data.arrayBuffer().then(s).then(c);if(n&&(f.data instanceof ArrayBuffer||r(f.data)))return c(s(f.data));o(f,!1,h=>{a||(a=new TextEncoder),c(a.encode(h))})}return jr.encodePacketToBinary=u,jr}var Oi={},Hr={},ff;function wE(){if(ff)return Hr;ff=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.decode=Hr.encode=void 0;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let o=0;o<e.length;o++)t[e.charCodeAt(o)]=o;const n=o=>{let i=new Uint8Array(o),s,a=i.length,u="";for(s=0;s<a;s+=3)u+=e[i[s]>>2],u+=e[(i[s]&3)<<4|i[s+1]>>4],u+=e[(i[s+1]&15)<<2|i[s+2]>>6],u+=e[i[s+2]&63];return a%3===2?u=u.substring(0,u.length-1)+"=":a%3===1&&(u=u.substring(0,u.length-2)+"=="),u};Hr.encode=n;const r=o=>{let i=o.length*.75,s=o.length,a,u=0,f,c,h,d;o[o.length-1]==="="&&(i--,o[o.length-2]==="="&&i--);const l=new ArrayBuffer(i),p=new Uint8Array(l);for(a=0;a<s;a+=4)f=t[o.charCodeAt(a)],c=t[o.charCodeAt(a+1)],h=t[o.charCodeAt(a+2)],d=t[o.charCodeAt(a+3)],p[u++]=f<<2|c>>4,p[u++]=(c&15)<<4|h>>2,p[u++]=(h&3)<<6|d&63;return l};return Hr.decode=r,Hr}var df;function SE(){if(df)return Oi;df=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.decodePacket=void 0;const e=jc(),t=wE(),n=typeof ArrayBuffer=="function",r=(s,a)=>{if(typeof s!="string")return{type:"message",data:i(s,a)};const u=s.charAt(0);return u==="b"?{type:"message",data:o(s.substring(1),a)}:e.PACKET_TYPES_REVERSE[u]?s.length>1?{type:e.PACKET_TYPES_REVERSE[u],data:s.substring(1)}:{type:e.PACKET_TYPES_REVERSE[u]}:e.ERROR_PACKET};Oi.decodePacket=r;const o=(s,a)=>{if(n){const u=(0,t.decode)(s);return i(u,a)}else return{base64:!0,data:s}},i=(s,a)=>{switch(a){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}};return Oi}var hf;function Qi(){return hf||(hf=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=bE();Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return t.encodePacket}});const n=SE();Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return n.decodePacket}});const r=jc(),o=String.fromCharCode(30),i=(d,l)=>{const p=d.length,m=new Array(p);let E=0;d.forEach((T,_)=>{(0,t.encodePacket)(T,!1,b=>{m[_]=b,++E===p&&l(m.join(o))})})};e.encodePayload=i;const s=(d,l)=>{const p=d.split(o),m=[];for(let E=0;E<p.length;E++){const T=(0,n.decodePacket)(p[E],l);if(m.push(T),T.type==="error")break}return m};e.decodePayload=s;function a(){return new TransformStream({transform(d,l){(0,t.encodePacketToBinary)(d,p=>{const m=p.length;let E;if(m<126)E=new Uint8Array(1),new DataView(E.buffer).setUint8(0,m);else if(m<65536){E=new Uint8Array(3);const T=new DataView(E.buffer);T.setUint8(0,126),T.setUint16(1,m)}else{E=new Uint8Array(9);const T=new DataView(E.buffer);T.setUint8(0,127),T.setBigUint64(1,BigInt(m))}d.data&&typeof d.data!="string"&&(E[0]|=128),l.enqueue(E),l.enqueue(p)})}})}e.createPacketEncoderStream=a;let u;function f(d){return d.reduce((l,p)=>l+p.length,0)}function c(d,l){if(d[0].length===l)return d.shift();const p=new Uint8Array(l);let m=0;for(let E=0;E<l;E++)p[E]=d[0][m++],m===d[0].length&&(d.shift(),m=0);return d.length&&m<d[0].length&&(d[0]=d[0].slice(m)),p}function h(d,l){u||(u=new TextDecoder);const p=[];let m=0,E=-1,T=!1;return new TransformStream({transform(_,b){for(p.push(_);;){if(m===0){if(f(p)<1)break;const A=c(p,1);T=(A[0]&128)===128,E=A[0]&127,E<126?m=3:E===126?m=1:m=2}else if(m===1){if(f(p)<2)break;const A=c(p,2);E=new DataView(A.buffer,A.byteOffset,A.length).getUint16(0),m=3}else if(m===2){if(f(p)<8)break;const A=c(p,8),w=new DataView(A.buffer,A.byteOffset,A.length),N=w.getUint32(0);if(N>Math.pow(2,53-32)-1){b.enqueue(r.ERROR_PACKET);break}E=N*Math.pow(2,32)+w.getUint32(4),m=3}else{if(f(p)<E)break;const A=c(p,E);b.enqueue((0,n.decodePacket)(T?A:u.decode(A),l)),m=0}if(E===0||E>d){b.enqueue(r.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=h,e.protocol=4}(Ss)),Ss}function at(e){if(e)return TE(e)}function TE(e){for(var t in at.prototype)e[t]=at.prototype[t];return e}at.prototype.on=at.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};at.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};at.prototype.off=at.prototype.removeListener=at.prototype.removeAllListeners=at.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};at.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};at.prototype.emitReserved=at.prototype.emit;at.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};at.prototype.hasListeners=function(e){return!!this.listeners(e).length};const xE=Object.freeze(Object.defineProperty({__proto__:null,Emitter:at},Symbol.toStringTag,{value:"Module"})),kn=Yi(xE);var Jt={},Ai={},pf;function Xo(){return pf||(pf=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.globalThisShim=void 0,Ai.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())()),Ai}var mf;function Xi(){if(mf)return Jt;mf=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.byteLength=Jt.installTimerFunctions=Jt.pick=void 0;const e=Xo();function t(u,...f){return f.reduce((c,h)=>(u.hasOwnProperty(h)&&(c[h]=u[h]),c),{})}Jt.pick=t;const n=e.globalThisShim.setTimeout,r=e.globalThisShim.clearTimeout;function o(u,f){f.useNativeTimers?(u.setTimeoutFn=n.bind(e.globalThisShim),u.clearTimeoutFn=r.bind(e.globalThisShim)):(u.setTimeoutFn=e.globalThisShim.setTimeout.bind(e.globalThisShim),u.clearTimeoutFn=e.globalThisShim.clearTimeout.bind(e.globalThisShim))}Jt.installTimerFunctions=o;const i=1.33;function s(u){return typeof u=="string"?a(u):Math.ceil((u.byteLength||u.size)*i)}Jt.byteLength=s;function a(u){let f=0,c=0;for(let h=0,d=u.length;h<d;h++)f=u.charCodeAt(h),f<128?c+=1:f<2048?c+=2:f<55296||f>=57344?c+=3:(h++,c+=4);return c}return Jt}var To={exports:{}},Ts,gf;function OE(){if(gf)return Ts;gf=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;Ts=function(c,h){h=h||{};var d=typeof c;if(d==="string"&&c.length>0)return s(c);if(d==="number"&&isFinite(c))return h.long?u(c):a(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function s(c){if(c=String(c),!(c.length>100)){var h=/^(-?(?:\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(h){var d=parseFloat(h[1]),l=(h[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return d*i;case"weeks":case"week":case"w":return d*o;case"days":case"day":case"d":return d*r;case"hours":case"hour":case"hrs":case"hr":case"h":return d*n;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function a(c){var h=Math.abs(c);return h>=r?Math.round(c/r)+"d":h>=n?Math.round(c/n)+"h":h>=t?Math.round(c/t)+"m":h>=e?Math.round(c/e)+"s":c+"ms"}function u(c){var h=Math.abs(c);return h>=r?f(c,h,r,"day"):h>=n?f(c,h,n,"hour"):h>=t?f(c,h,t,"minute"):h>=e?f(c,h,e,"second"):c+" ms"}function f(c,h,d,l){var p=h>=d*1.5;return Math.round(c/d)+" "+l+(p?"s":"")}return Ts}var xs,yf;function AE(){if(yf)return xs;yf=1;function e(t){r.debug=r,r.default=r,r.coerce=f,r.disable=s,r.enable=i,r.enabled=a,r.humanize=OE(),r.destroy=c,Object.keys(t).forEach(h=>{r[h]=t[h]}),r.names=[],r.skips=[],r.formatters={};function n(h){let d=0;for(let l=0;l<h.length;l++)d=(d<<5)-d+h.charCodeAt(l),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=n;function r(h){let d,l=null,p,m;function E(...T){if(!E.enabled)return;const _=E,b=Number(new Date),A=b-(d||b);_.diff=A,_.prev=d,_.curr=b,d=b,T[0]=r.coerce(T[0]),typeof T[0]!="string"&&T.unshift("%O");let w=0;T[0]=T[0].replace(/%([a-zA-Z%])/g,(F,B)=>{if(F==="%%")return"%";w++;const G=r.formatters[B];if(typeof G=="function"){const W=T[w];F=G.call(_,W),T.splice(w,1),w--}return F}),r.formatArgs.call(_,T),(_.log||r.log).apply(_,T)}return E.namespace=h,E.useColors=r.useColors(),E.color=r.selectColor(h),E.extend=o,E.destroy=r.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:()=>l!==null?l:(p!==r.namespaces&&(p=r.namespaces,m=r.enabled(h)),m),set:T=>{l=T}}),typeof r.init=="function"&&r.init(E),E}function o(h,d){const l=r(this.namespace+(typeof d>"u"?":":d)+h);return l.log=this.log,l}function i(h){r.save(h),r.namespaces=h,r.names=[],r.skips=[];let d;const l=(typeof h=="string"?h:"").split(/[\s,]+/),p=l.length;for(d=0;d<p;d++)l[d]&&(h=l[d].replace(/\*/g,".*?"),h[0]==="-"?r.skips.push(new RegExp("^"+h.slice(1)+"$")):r.names.push(new RegExp("^"+h+"$")))}function s(){const h=[...r.names.map(u),...r.skips.map(u).map(d=>"-"+d)].join(",");return r.enable(""),h}function a(h){if(h[h.length-1]==="*")return!0;let d,l;for(d=0,l=r.skips.length;d<l;d++)if(r.skips[d].test(h))return!1;for(d=0,l=r.names.length;d<l;d++)if(r.names[d].test(h))return!0;return!1}function u(h){return h.toString().substring(2,h.toString().length-2).replace(/\.\*\?$/,"*")}function f(h){return h instanceof Error?h.stack||h.message:h}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 r.enable(r.load()),r}return xs=e,xs}var vf;function qt(){return vf||(vf=1,function(e,t){t.formatArgs=r,t.save=o,t.load=i,t.useColors=n,t.storage=s(),t.destroy=(()=>{let u=!1;return()=>{u||(u=!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 n(){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 r(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const f="color: "+this.color;u.splice(1,0,f,"color: inherit");let c=0,h=0;u[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&(c++,d==="%c"&&(h=c))}),u.splice(h,0,f)}t.log=console.debug||console.log||(()=>{});function o(u){try{u?t.storage.setItem("debug",u):t.storage.removeItem("debug")}catch{}}function i(){let u;try{u=t.storage.getItem("debug")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}function s(){try{return localStorage}catch{}}e.exports=AE()(t);const{formatters:a}=e.exports;a.j=function(u){try{return JSON.stringify(u)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}}(To,To.exports)),To.exports}var qr={},_f;function wp(){if(_f)return qr;_f=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.decode=qr.encode=void 0;function e(n){let r="";for(let o in n)n.hasOwnProperty(o)&&(r.length&&(r+="&"),r+=encodeURIComponent(o)+"="+encodeURIComponent(n[o]));return r}qr.encode=e;function t(n){let r={},o=n.split("&");for(let i=0,s=o.length;i<s;i++){let a=o[i].split("=");r[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return r}return qr.decode=t,qr}var Ef;function Jo(){if(Ef)return xi;Ef=1;var e=ce&&ce.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(xi,"__esModule",{value:!0}),xi.Transport=void 0;const t=Qi(),n=kn,r=Xi(),o=e(qt()),i=wp(),s=(0,o.default)("engine.io-client:transport");class a extends Error{constructor(c,h,d){super(c),this.description=h,this.context=d,this.type="TransportError"}}class u extends n.Emitter{constructor(c){super(),this.writable=!1,(0,r.installTimerFunctions)(this,c),this.opts=c,this.query=c.query,this.socket=c.socket}onError(c,h,d){return super.emitReserved("error",new a(c,h,d)),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):s("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(c){const h=(0,t.decodePacket)(c,this.socket.binaryType);this.onPacket(h)}onPacket(c){super.emitReserved("packet",c)}onClose(c){this.readyState="closed",super.emitReserved("close",c)}pause(c){}createUri(c,h={}){return c+"://"+this._hostname()+this._port()+this.opts.path+this._query(h)}_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 h=(0,i.encode)(c);return h.length?"?"+h:""}}return xi.Transport=u,xi}var Zt={},bf;function Sp(){if(bf)return Zt;bf=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.yeast=Zt.decode=Zt.encode=void 0;const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,n={};let r=0,o=0,i;function s(f){let c="";do c=e[f%t]+c,f=Math.floor(f/t);while(f>0);return c}Zt.encode=s;function a(f){let c=0;for(o=0;o<f.length;o++)c=c*t+n[f.charAt(o)];return c}Zt.decode=a;function u(){const f=s(+new Date);return f!==i?(r=0,i=f):f+"."+s(r++)}for(Zt.yeast=u;o<t;o++)n[e[o]]=o;return Zt}var Gr={},Ci={},wf;function CE(){if(wf)return Ci;wf=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.hasCORS=void 0;let e=!1;try{e=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}return Ci.hasCORS=e,Ci}var Sf;function RE(){if(Sf)return Gr;Sf=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.createCookieJar=Gr.XHR=void 0;const e=CE(),t=Xo();function n(o){const i=o.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||e.hasCORS))return new XMLHttpRequest}catch{}if(!i)try{return new t.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}Gr.XHR=n;function r(){}return Gr.createCookieJar=r,Gr}var Tf;function NE(){if(Tf)return $r;Tf=1;var e=ce&&ce.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty($r,"__esModule",{value:!0}),$r.Request=$r.Polling=void 0;const t=Jo(),n=e(qt()),r=Sp(),o=Qi(),i=RE(),s=kn,a=Xi(),u=Xo(),f=(0,n.default)("engine.io-client:polling");function c(){}const h=function(){return new i.XHR({xdomain:!1}).responseType!=null}();class d extends t.Transport{constructor(E){if(super(E),this.polling=!1,typeof location<"u"){const _=location.protocol==="https:";let b=location.port;b||(b=_?"443":"80"),this.xd=typeof location<"u"&&E.hostname!==location.hostname||b!==E.port}const T=E&&E.forceBase64;this.supportsBinary=h&&!T,this.opts.withCredentials&&(this.cookieJar=(0,i.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(E){this.readyState="pausing";const T=()=>{f("paused"),this.readyState="paused",E()};if(this.polling||!this.writable){let _=0;this.polling&&(f("we are currently polling - waiting to pause"),_++,this.once("pollComplete",function(){f("pre-pause polling complete"),--_||T()})),this.writable||(f("we are currently writing - waiting to pause"),_++,this.once("drain",function(){f("pre-pause writing complete"),--_||T()}))}else T()}poll(){f("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(E){f("polling got data %s",E);const T=_=>{if(this.readyState==="opening"&&_.type==="open"&&this.onOpen(),_.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(_)};(0,o.decodePayload)(E,this.socket.binaryType).forEach(T),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():f('ignoring poll - transport state "%s"',this.readyState))}doClose(){const E=()=>{f("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(f("transport open - closing"),E()):(f("transport not open - deferring close"),this.once("open",E))}write(E){this.writable=!1,(0,o.encodePayload)(E,T=>{this.doWrite(T,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const E=this.opts.secure?"https":"http",T=this.query||{};return this.opts.timestampRequests!==!1&&(T[this.opts.timestampParam]=(0,r.yeast)()),!this.supportsBinary&&!T.sid&&(T.b64=1),this.createUri(E,T)}request(E={}){return Object.assign(E,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new l(this.uri(),E)}doWrite(E,T){const _=this.request({method:"POST",data:E});_.on("success",T),_.on("error",(b,A)=>{this.onError("xhr post error",b,A)})}doPoll(){f("xhr poll");const E=this.request();E.on("data",this.onData.bind(this)),E.on("error",(T,_)=>{this.onError("xhr poll error",T,_)}),this.pollXhr=E}}$r.Polling=d;class l extends s.Emitter{constructor(E,T){super(),(0,a.installTimerFunctions)(this,T),this.opts=T,this.method=T.method||"GET",this.uri=E,this.data=T.data!==void 0?T.data:null,this.create()}create(){var E;const T=(0,a.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");T.xdomain=!!this.opts.xd;const _=this.xhr=new i.XHR(T);try{f("xhr open %s: %s",this.method,this.uri),_.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){_.setDisableHeaderCheck&&_.setDisableHeaderCheck(!0);for(let b in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(b)&&_.setRequestHeader(b,this.opts.extraHeaders[b])}}catch{}if(this.method==="POST")try{_.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{_.setRequestHeader("Accept","*/*")}catch{}(E=this.opts.cookieJar)===null||E===void 0||E.addCookies(_),"withCredentials"in _&&(_.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(_.timeout=this.opts.requestTimeout),_.onreadystatechange=()=>{var b;_.readyState===3&&((b=this.opts.cookieJar)===null||b===void 0||b.parseCookies(_)),_.readyState===4&&(_.status===200||_.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof _.status=="number"?_.status:0)},0))},f("xhr data %s",this.data),_.send(this.data)}catch(b){this.setTimeoutFn(()=>{this.onError(b)},0);return}typeof document<"u"&&(this.index=l.requestsCount++,l.requests[this.index]=this)}onError(E){this.emitReserved("error",E,this.xhr),this.cleanup(!0)}cleanup(E){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=c,E)try{this.xhr.abort()}catch{}typeof document<"u"&&delete l.requests[this.index],this.xhr=null}}onLoad(){const E=this.xhr.responseText;E!==null&&(this.emitReserved("data",E),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if($r.Request=l,l.requestsCount=0,l.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",p);else if(typeof addEventListener=="function"){const m="onpagehide"in u.globalThisShim?"pagehide":"unload";addEventListener(m,p,!1)}}function p(){for(let m in l.requests)l.requests.hasOwnProperty(m)&&l.requests[m].abort()}return $r}var Ri={},Ct={},xf;function Zo(){if(xf)return Ct;xf=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.defaultBinaryType=Ct.usingBrowserWebSocket=Ct.WebSocket=Ct.nextTick=void 0;const e=Xo();return Ct.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,r)=>r(n,0))(),Ct.WebSocket=e.globalThisShim.WebSocket||e.globalThisShim.MozWebSocket,Ct.usingBrowserWebSocket=!0,Ct.defaultBinaryType="arraybuffer",Ct}var Of;function PE(){if(Of)return Ri;Of=1;var e=ce&&ce.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.WS=void 0;const t=Jo(),n=Sp(),r=Xi(),o=Zo(),i=e(qt()),s=Qi(),a=(0,i.default)("engine.io-client:websocket"),u=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class f extends t.Transport{constructor(h){super(h),this.supportsBinary=!h.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const h=this.uri(),d=this.opts.protocols,l=u?{}:(0,r.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(l.headers=this.opts.extraHeaders);try{this.ws=o.usingBrowserWebSocket&&!u?d?new o.WebSocket(h,d):new o.WebSocket(h):new o.WebSocket(h,d,l)}catch(p){return this.emitReserved("error",p)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=h=>this.onClose({description:"websocket connection closed",context:h}),this.ws.onmessage=h=>this.onData(h.data),this.ws.onerror=h=>this.onError("websocket error",h)}write(h){this.writable=!1;for(let d=0;d<h.length;d++){const l=h[d],p=d===h.length-1;(0,s.encodePacket)(l,this.supportsBinary,m=>{const E={};o.usingBrowserWebSocket||(l.options&&(E.compress=l.options.compress),this.opts.perMessageDeflate&&(typeof m=="string"?Buffer.byteLength(m):m.length)<this.opts.perMessageDeflate.threshold&&(E.compress=!1));try{o.usingBrowserWebSocket?this.ws.send(m):this.ws.send(m,E)}catch{a("websocket closed before onclose event")}p&&(0,o.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const h=this.opts.secure?"wss":"ws",d=this.query||{};return this.opts.timestampRequests&&(d[this.opts.timestampParam]=(0,n.yeast)()),this.supportsBinary||(d.b64=1),this.createUri(h,d)}check(){return!!o.WebSocket}}return Ri.WS=f,Ri}var Ni={},Af;function IE(){if(Af)return Ni;Af=1;var e=ce&&ce.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.WT=void 0;const t=Jo(),n=Zo(),r=Qi(),i=(0,e(qt()).default)("engine.io-client:webtransport");class s 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(()=>{i("transport closed gracefully"),this.onClose()}).catch(u=>{i("transport closed due to %s",u),this.onError("webtransport error",u)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(u=>{const f=(0,r.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),c=u.readable.pipeThrough(f).getReader(),h=(0,r.createPacketEncoderStream)();h.readable.pipeTo(u.writable),this.writer=h.writable.getWriter();const d=()=>{c.read().then(({done:p,value:m})=>{if(p){i("session is closed");return}i("received chunk: %o",m),this.onPacket(m),d()}).catch(p=>{i("an error occurred while reading: %s",p)})};d();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this.writer.write(l).then(()=>this.onOpen())})}))}write(u){this.writable=!1;for(let f=0;f<u.length;f++){const c=u[f],h=f===u.length-1;this.writer.write(c).then(()=>{h&&(0,n.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var u;(u=this.transport)===null||u===void 0||u.close()}}return Ni.WT=s,Ni}var Cf;function Tp(){if(Cf)return Ti;Cf=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.transports=void 0;const e=NE(),t=PE(),n=IE();return Ti.transports={websocket:t.WS,webtransport:n.WT,polling:e.Polling},Ti}var Pi={},Rf;function xp(){if(Rf)return Pi;Rf=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.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 n(i){const s=i,a=i.indexOf("["),u=i.indexOf("]");a!=-1&&u!=-1&&(i=i.substring(0,a)+i.substring(a,u).replace(/:/g,";")+i.substring(u,i.length));let f=e.exec(i||""),c={},h=14;for(;h--;)c[t[h]]=f[h]||"";return a!=-1&&u!=-1&&(c.source=s,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=r(c,c.path),c.queryKey=o(c,c.query),c}Pi.parse=n;function r(i,s){const a=/\/{2,9}/g,u=s.replace(a,"/").split("/");return(s.slice(0,1)=="/"||s.length===0)&&u.splice(0,1),s.slice(-1)=="/"&&u.splice(u.length-1,1),u}function o(i,s){const a={};return s.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(u,f,c){f&&(a[f]=c)}),a}return Pi}var Nf;function LE(){if(Nf)return Si;Nf=1;var e=ce&&ce.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(Si,"__esModule",{value:!0}),Si.Socket=void 0;const t=Tp(),n=Xi(),r=wp(),o=xp(),i=e(qt()),s=kn,a=Qi(),u=Zo(),f=(0,i.default)("engine.io-client:socket");class c extends s.Emitter{constructor(d,l={}){super(),this.binaryType=u.defaultBinaryType,this.writeBuffer=[],d&&typeof d=="object"&&(l=d,d=null),d?(d=(0,o.parse)(d),l.hostname=d.host,l.secure=d.protocol==="https"||d.protocol==="wss",l.port=d.port,d.query&&(l.query=d.query)):l.host&&(l.hostname=(0,o.parse)(l.host).host),(0,n.installTimerFunctions)(this,l),this.secure=l.secure!=null?l.secure:typeof location<"u"&&location.protocol==="https:",l.hostname&&!l.port&&(l.port=this.secure?"443":"80"),this.hostname=l.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=l.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=l.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},l),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,r.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(d){f('creating transport "%s"',d);const l=Object.assign({},this.opts.query);l.EIO=a.protocol,l.transport=d,this.id&&(l.sid=this.id);const p=Object.assign({},this.opts,{query:l,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[d]);return f("options: %j",p),new t.transports[d](p)}open(){let d;if(this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)d="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else d=this.transports[0];this.readyState="opening";try{d=this.createTransport(d)}catch(l){f("error while creating transport: %s",l),this.transports.shift(),this.open();return}d.open(),this.setTransport(d)}setTransport(d){f("setting transport %s",d.name),this.transport&&(f("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=d,d.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",l=>this.onClose("transport close",l))}probe(d){f('probing transport "%s"',d);let l=this.createTransport(d),p=!1;c.priorWebsocketSuccess=!1;const m=()=>{p||(f('probe transport "%s" opened',d),l.send([{type:"ping",data:"probe"}]),l.once("packet",N=>{if(!p)if(N.type==="pong"&&N.data==="probe"){if(f('probe transport "%s" pong',d),this.upgrading=!0,this.emitReserved("upgrading",l),!l)return;c.priorWebsocketSuccess=l.name==="websocket",f('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{p||this.readyState!=="closed"&&(f("changing transport and sending upgrade packet"),w(),this.setTransport(l),l.send([{type:"upgrade"}]),this.emitReserved("upgrade",l),l=null,this.upgrading=!1,this.flush())})}else{f('probe transport "%s" failed',d);const F=new Error("probe error");F.transport=l.name,this.emitReserved("upgradeError",F)}}))};function E(){p||(p=!0,w(),l.close(),l=null)}const T=N=>{const F=new Error("probe error: "+N);F.transport=l.name,E(),f('probe transport "%s" failed because of error: %s',d,N),this.emitReserved("upgradeError",F)};function _(){T("transport closed")}function b(){T("socket closed")}function A(N){l&&N.name!==l.name&&(f('"%s" works - aborting "%s"',N.name,l.name),E())}const w=()=>{l.removeListener("open",m),l.removeListener("error",T),l.removeListener("close",_),this.off("close",b),this.off("upgrading",A)};l.once("open",m),l.once("error",T),l.once("close",_),this.once("close",b),this.once("upgrading",A),this.upgrades.indexOf("webtransport")!==-1&&d!=="webtransport"?this.setTimeoutFn(()=>{p||l.open()},200):l.open()}onOpen(){if(f("socket open"),this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){f("starting upgrade probes");let d=0;const l=this.upgrades.length;for(;d<l;d++)this.probe(this.upgrades[d])}}onPacket(d){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(f('socket receive: type "%s", data "%s"',d.type,d.data),this.emitReserved("packet",d),this.emitReserved("heartbeat"),this.resetPingTimeout(),d.type){case"open":this.onHandshake(JSON.parse(d.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const l=new Error("server error");l.code=d.data,this.onError(l);break;case"message":this.emitReserved("data",d.data),this.emitReserved("message",d.data);break}else f('packet received with socket readyState "%s"',this.readyState)}onHandshake(d){this.emitReserved("handshake",d),this.id=d.sid,this.transport.query.sid=d.sid,this.upgrades=this.filterUpgrades(d.upgrades),this.pingInterval=d.pingInterval,this.pingTimeout=d.pingTimeout,this.maxPayload=d.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 d=this.getWritablePackets();f("flushing %d packets in socket",d.length),this.transport.send(d),this.prevBufferLen=d.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let l=1;for(let p=0;p<this.writeBuffer.length;p++){const m=this.writeBuffer[p].data;if(m&&(l+=(0,n.byteLength)(m)),p>0&&l>this.maxPayload)return f("only send %d out of %d packets",p,this.writeBuffer.length),this.writeBuffer.slice(0,p);l+=2}return f("payload size is %d (max: %d)",l,this.maxPayload),this.writeBuffer}write(d,l,p){return this.sendPacket("message",d,l,p),this}send(d,l,p){return this.sendPacket("message",d,l,p),this}sendPacket(d,l,p,m){if(typeof l=="function"&&(m=l,l=void 0),typeof p=="function"&&(m=p,p=null),this.readyState==="closing"||this.readyState==="closed")return;p=p||{},p.compress=p.compress!==!1;const E={type:d,data:l,options:p};this.emitReserved("packetCreate",E),this.writeBuffer.push(E),m&&this.once("flush",m),this.flush()}close(){const d=()=>{this.onClose("forced close"),f("socket closing - telling transport to close"),this.transport.close()},l=()=>{this.off("upgrade",l),this.off("upgradeError",l),d()},p=()=>{this.once("upgrade",l),this.once("upgradeError",l)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?p():d()}):this.upgrading?p():d()),this}onError(d){f("socket error %j",d),c.priorWebsocketSuccess=!1,this.emitReserved("error",d),this.onClose("transport error",d)}onClose(d,l){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(f('socket close with reason: "%s"',d),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",d,l),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(d){const l=[];let p=0;const m=d.length;for(;p<m;p++)~this.transports.indexOf(d[p])&&l.push(d[p]);return l}}return Si.Socket=c,c.protocol=a.protocol,Si}var Pf;function Op(){return Pf||(Pf=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=LE();Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return t.Socket}}),e.protocol=t.Socket.protocol;var n=Jo();Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return n.Transport}});var r=Tp();Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return r.transports}});var o=Xi();Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return o.installTimerFunctions}});var i=xp();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return i.parse}});var s=Zo();Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return s.nextTick}})}(ws)),ws}var If;function ME(){if(If)return wi;If=1;var e=ce&&ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(wi,"__esModule",{value:!0}),wi.url=void 0;const t=Op(),r=e(qt()).default("socket.io-client:url");function o(i,s="",a){let u=i;a=a||typeof location<"u"&&location,i==null&&(i=a.protocol+"//"+a.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=a.protocol+i:i=a.host+i),/^(https?|wss?):\/\//.test(i)||(r("protocol-less url %s",i),typeof a<"u"?i=a.protocol+"//"+i:i="https://"+i),r("parse %s",i),u=t.parse(i)),u.port||(/^(http|ws)$/.test(u.protocol)?u.port="80":/^(http|ws)s$/.test(u.protocol)&&(u.port="443")),u.path=u.path||"/";const c=u.host.indexOf(":")!==-1?"["+u.host+"]":u.host;return u.id=u.protocol+"://"+c+":"+u.port+s,u.href=u.protocol+"://"+c+(a&&a.port===u.port?"":":"+u.port),u}return wi.url=o,wi}var Ii={},Li={},Os={},Wr={},Vr={},Lf;function Ap(){if(Lf)return Vr;Lf=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.hasBinary=Vr.isBinary=void 0;const e=typeof ArrayBuffer=="function",t=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a.buffer instanceof ArrayBuffer,n=Object.prototype.toString,r=typeof Blob=="function"||typeof Blob<"u"&&n.call(Blob)==="[object BlobConstructor]",o=typeof File=="function"||typeof File<"u"&&n.call(File)==="[object FileConstructor]";function i(a){return e&&(a instanceof ArrayBuffer||t(a))||r&&a instanceof Blob||o&&a instanceof File}Vr.isBinary=i;function s(a,u){if(!a||typeof a!="object")return!1;if(Array.isArray(a)){for(let f=0,c=a.length;f<c;f++)if(s(a[f]))return!0;return!1}if(i(a))return!0;if(a.toJSON&&typeof a.toJSON=="function"&&arguments.length===1)return s(a.toJSON(),!0);for(const f in a)if(Object.prototype.hasOwnProperty.call(a,f)&&s(a[f]))return!0;return!1}return Vr.hasBinary=s,Vr}var Mf;function kE(){if(Mf)return Wr;Mf=1,Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.reconstructPacket=Wr.deconstructPacket=void 0;const e=Ap();function t(i){const s=[],a=i.data,u=i;return u.data=n(a,s),u.attachments=s.length,{packet:u,buffers:s}}Wr.deconstructPacket=t;function n(i,s){if(!i)return i;if((0,e.isBinary)(i)){const a={_placeholder:!0,num:s.length};return s.push(i),a}else if(Array.isArray(i)){const a=new Array(i.length);for(let u=0;u<i.length;u++)a[u]=n(i[u],s);return a}else if(typeof i=="object"&&!(i instanceof Date)){const a={};for(const u in i)Object.prototype.hasOwnProperty.call(i,u)&&(a[u]=n(i[u],s));return a}return i}function r(i,s){return i.data=o(i.data,s),delete i.attachments,i}Wr.reconstructPacket=r;function o(i,s){if(!i)return i;if(i&&i._placeholder===!0){if(typeof i.num=="number"&&i.num>=0&&i.num<s.length)return s[i.num];throw new Error("illegal attachments")}else if(Array.isArray(i))for(let a=0;a<i.length;a++)i[a]=o(i[a],s);else if(typeof i=="object")for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&(i[a]=o(i[a],s));return i}return Wr}var kf;function Hc(){return kf||(kf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const t=kn,n=kE(),r=Ap(),i=(0,qt().default)("socket.io-parser"),s=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var a;(function(d){d[d.CONNECT=0]="CONNECT",d[d.DISCONNECT=1]="DISCONNECT",d[d.EVENT=2]="EVENT",d[d.ACK=3]="ACK",d[d.CONNECT_ERROR=4]="CONNECT_ERROR",d[d.BINARY_EVENT=5]="BINARY_EVENT",d[d.BINARY_ACK=6]="BINARY_ACK"})(a=e.PacketType||(e.PacketType={}));class u{constructor(l){this.replacer=l}encode(l){return i("encoding packet %j",l),(l.type===a.EVENT||l.type===a.ACK)&&(0,r.hasBinary)(l)?this.encodeAsBinary({type:l.type===a.EVENT?a.BINARY_EVENT:a.BINARY_ACK,nsp:l.nsp,data:l.data,id:l.id}):[this.encodeAsString(l)]}encodeAsString(l){let p=""+l.type;return(l.type===a.BINARY_EVENT||l.type===a.BINARY_ACK)&&(p+=l.attachments+"-"),l.nsp&&l.nsp!=="/"&&(p+=l.nsp+","),l.id!=null&&(p+=l.id),l.data!=null&&(p+=JSON.stringify(l.data,this.replacer)),i("encoded %j as %s",l,p),p}encodeAsBinary(l){const p=(0,n.deconstructPacket)(l),m=this.encodeAsString(p.packet),E=p.buffers;return E.unshift(m),E}}e.Encoder=u;function f(d){return Object.prototype.toString.call(d)==="[object Object]"}class c extends t.Emitter{constructor(l){super(),this.reviver=l}add(l){let p;if(typeof l=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");p=this.decodeString(l);const m=p.type===a.BINARY_EVENT;m||p.type===a.BINARY_ACK?(p.type=m?a.EVENT:a.ACK,this.reconstructor=new h(p),p.attachments===0&&super.emitReserved("decoded",p)):super.emitReserved("decoded",p)}else if((0,r.isBinary)(l)||l.base64)if(this.reconstructor)p=this.reconstructor.takeBinaryData(l),p&&(this.reconstructor=null,super.emitReserved("decoded",p));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+l)}decodeString(l){let p=0;const m={type:Number(l.charAt(0))};if(a[m.type]===void 0)throw new Error("unknown packet type "+m.type);if(m.type===a.BINARY_EVENT||m.type===a.BINARY_ACK){const T=p+1;for(;l.charAt(++p)!=="-"&&p!=l.length;);const _=l.substring(T,p);if(_!=Number(_)||l.charAt(p)!=="-")throw new Error("Illegal attachments");m.attachments=Number(_)}if(l.charAt(p+1)==="/"){const T=p+1;for(;++p&&!(l.charAt(p)===","||p===l.length););m.nsp=l.substring(T,p)}else m.nsp="/";const E=l.charAt(p+1);if(E!==""&&Number(E)==E){const T=p+1;for(;++p;){const _=l.charAt(p);if(_==null||Number(_)!=_){--p;break}if(p===l.length)break}m.id=Number(l.substring(T,p+1))}if(l.charAt(++p)){const T=this.tryParse(l.substr(p));if(c.isPayloadValid(m.type,T))m.data=T;else throw new Error("invalid payload")}return i("decoded %s as %j",l,m),m}tryParse(l){try{return JSON.parse(l,this.reviver)}catch{return!1}}static isPayloadValid(l,p){switch(l){case a.CONNECT:return f(p);case a.DISCONNECT:return p===void 0;case a.CONNECT_ERROR:return typeof p=="string"||f(p);case a.EVENT:case a.BINARY_EVENT:return Array.isArray(p)&&(typeof p[0]=="number"||typeof p[0]=="string"&&s.indexOf(p[0])===-1);case a.ACK:case a.BINARY_ACK:return Array.isArray(p)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=c;class h{constructor(l){this.packet=l,this.buffers=[],this.reconPack=l}takeBinaryData(l){if(this.buffers.push(l),this.buffers.length===this.reconPack.attachments){const p=(0,n.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),p}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}}(Os)),Os}var Mi={},Bf;function Cp(){if(Bf)return Mi;Bf=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.on=void 0;function e(t,n,r){return t.on(n,r),function(){t.off(n,r)}}return Mi.on=e,Mi}var Ff;function Rp(){if(Ff)return Li;Ff=1;var e=ce&&ce.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Li,"__esModule",{value:!0}),Li.Socket=void 0;const t=Hc(),n=Cp(),r=kn,i=e(qt()).default("socket.io-client:socket"),s=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class a extends r.Emitter{constructor(f,c,h){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=f,this.nsp=c,h&&h.auth&&(this.auth=h.auth),this._opts=Object.assign({},h),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const f=this.io;this.subs=[n.on(f,"open",this.onopen.bind(this)),n.on(f,"packet",this.onpacket.bind(this)),n.on(f,"error",this.onerror.bind(this)),n.on(f,"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(...f){return f.unshift("message"),this.emit.apply(this,f),this}emit(f,...c){if(s.hasOwnProperty(f))throw new Error('"'+f.toString()+'" is a reserved event name');if(c.unshift(f),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const h={type:t.PacketType.EVENT,data:c};if(h.options={},h.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const p=this.ids++;i("emitting packet with ack id %d",p);const m=c.pop();this._registerAckCallback(p,m),h.id=p}const d=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!d||!this.connected)?i("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h),this.flags={},this}_registerAckCallback(f,c){var h;const d=(h=this.flags.timeout)!==null&&h!==void 0?h:this._opts.ackTimeout;if(d===void 0){this.acks[f]=c;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[f];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===f&&(i("removing packet with ack id %d from the buffer",f),this.sendBuffer.splice(p,1));i("event with ack id %d has timed out after %d ms",f,d),c.call(this,new Error("operation has timed out"))},d);this.acks[f]=(...p)=>{this.io.clearTimeoutFn(l),c.apply(this,[null,...p])}}emitWithAck(f,...c){const h=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((d,l)=>{c.push((p,m)=>h?p?l(p):d(m):d(p)),this.emit(f,...c)})}_addToQueue(f){let c;typeof f[f.length-1]=="function"&&(c=f.pop());const h={id:this._queueSeq++,tryCount:0,pending:!1,args:f,flags:Object.assign({fromQueue:!0},this.flags)};f.push((d,...l)=>h!==this._queue[0]?void 0:(d!==null?h.tryCount>this._opts.retries&&(i("packet [%d] is discarded after %d tries",h.id,h.tryCount),this._queue.shift(),c&&c(d)):(i("packet [%d] was successfully sent",h.id),this._queue.shift(),c&&c(null,...l)),h.pending=!1,this._drainQueue())),this._queue.push(h),this._drainQueue()}_drainQueue(f=!1){if(i("draining queue"),!this.connected||this._queue.length===0)return;const c=this._queue[0];if(c.pending&&!f){i("packet [%d] has already been sent and is waiting for an ack",c.id);return}c.pending=!0,c.tryCount++,i("sending packet [%d] (try n°%d)",c.id,c.tryCount),this.flags=c.flags,this.emit.apply(this,c.args)}packet(f){f.nsp=this.nsp,this.io._packet(f)}onopen(){i("transport is open - connecting"),typeof this.auth=="function"?this.auth(f=>{this._sendConnectPacket(f)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(f){this.packet({type:t.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},f):f})}onerror(f){this.connected||this.emitReserved("connect_error",f)}onclose(f,c){i("close (%s)",f),this.connected=!1,delete this.id,this.emitReserved("disconnect",f,c)}onpacket(f){if(f.nsp===this.nsp)switch(f.type){case t.PacketType.CONNECT:f.data&&f.data.sid?this.onconnect(f.data.sid,f.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(f);break;case t.PacketType.ACK:case t.PacketType.BINARY_ACK:this.onack(f);break;case t.PacketType.DISCONNECT:this.ondisconnect();break;case t.PacketType.CONNECT_ERROR:this.destroy();const h=new Error(f.data.message);h.data=f.data.data,this.emitReserved("connect_error",h);break}}onevent(f){const c=f.data||[];i("emitting event %j",c),f.id!=null&&(i("attaching ack callback to event"),c.push(this.ack(f.id))),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(f){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const h of c)h.apply(this,f)}super.emit.apply(this,f),this._pid&&f.length&&typeof f[f.length-1]=="string"&&(this._lastOffset=f[f.length-1])}ack(f){const c=this;let h=!1;return function(...d){h||(h=!0,i("sending ack %j",d),c.packet({type:t.PacketType.ACK,id:f,data:d}))}}onack(f){const c=this.acks[f.id];typeof c=="function"?(i("calling ack %s with %j",f.id,f.data),c.apply(this,f.data),delete this.acks[f.id]):i("bad ack %s",f.id)}onconnect(f,c){i("socket connected with id %s",f),this.id=f,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(f=>this.emitEvent(f)),this.receiveBuffer=[],this.sendBuffer.forEach(f=>{this.notifyOutgoingListeners(f),this.packet(f)}),this.sendBuffer=[]}ondisconnect(){i("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(f=>f()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(i("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(f){return this.flags.compress=f,this}get volatile(){return this.flags.volatile=!0,this}timeout(f){return this.flags.timeout=f,this}onAny(f){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(f),this}prependAny(f){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(f),this}offAny(f){if(!this._anyListeners)return this;if(f){const c=this._anyListeners;for(let h=0;h<c.length;h++)if(f===c[h])return c.splice(h,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(f){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(f),this}prependAnyOutgoing(f){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(f),this}offAnyOutgoing(f){if(!this._anyOutgoingListeners)return this;if(f){const c=this._anyOutgoingListeners;for(let h=0;h<c.length;h++)if(f===c[h])return c.splice(h,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(f){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const h of c)h.apply(this,f.data)}}}return Li.Socket=a,Li}var ki={},Uf;function BE(){if(Uf)return ki;Uf=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.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 ki.Backoff=e,e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*t);t=Math.floor(n*10)&1?t+r:t-r}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},ki}var Df;function FE(){if(Df)return Ii;Df=1;var e=ce&&ce.__createBinding||(Object.create?function(l,p,m,E){E===void 0&&(E=m),Object.defineProperty(l,E,{enumerable:!0,get:function(){return p[m]}})}:function(l,p,m,E){E===void 0&&(E=m),l[E]=p[m]}),t=ce&&ce.__setModuleDefault||(Object.create?function(l,p){Object.defineProperty(l,"default",{enumerable:!0,value:p})}:function(l,p){l.default=p}),n=ce&&ce.__importStar||function(l){if(l&&l.__esModule)return l;var p={};if(l!=null)for(var m in l)m!=="default"&&Object.prototype.hasOwnProperty.call(l,m)&&e(p,l,m);return t(p,l),p},r=ce&&ce.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.Manager=void 0;const o=Op(),i=Rp(),s=n(Hc()),a=Cp(),u=BE(),f=kn,h=r(qt()).default("socket.io-client:manager");class d extends f.Emitter{constructor(p,m){var E;super(),this.nsps={},this.subs=[],p&&typeof p=="object"&&(m=p,p=void 0),m=m||{},m.path=m.path||"/socket.io",this.opts=m,o.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((E=m.randomizationFactor)!==null&&E!==void 0?E:.5),this.backoff=new u.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(m.timeout==null?2e4:m.timeout),this._readyState="closed",this.uri=p;const T=m.parser||s;this.encoder=new T.Encoder,this.decoder=new T.Decoder,this._autoConnect=m.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(p){return arguments.length?(this._reconnection=!!p,this):this._reconnection}reconnectionAttempts(p){return p===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=p,this)}reconnectionDelay(p){var m;return p===void 0?this._reconnectionDelay:(this._reconnectionDelay=p,(m=this.backoff)===null||m===void 0||m.setMin(p),this)}randomizationFactor(p){var m;return p===void 0?this._randomizationFactor:(this._randomizationFactor=p,(m=this.backoff)===null||m===void 0||m.setJitter(p),this)}reconnectionDelayMax(p){var m;return p===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=p,(m=this.backoff)===null||m===void 0||m.setMax(p),this)}timeout(p){return arguments.length?(this._timeout=p,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(p){if(h("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;h("opening %s",this.uri),this.engine=new o.Socket(this.uri,this.opts);const m=this.engine,E=this;this._readyState="opening",this.skipReconnect=!1;const T=a.on(m,"open",function(){E.onopen(),p&&p()}),_=A=>{h("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",A),p?p(A):this.maybeReconnectOnOpen()},b=a.on(m,"error",_);if(this._timeout!==!1){const A=this._timeout;h("connect attempt will timeout after %d",A);const w=this.setTimeoutFn(()=>{h("connect attempt timed out after %d",A),T(),_(new Error("timeout")),m.close()},A);this.opts.autoUnref&&w.unref(),this.subs.push(()=>{this.clearTimeoutFn(w)})}return this.subs.push(T),this.subs.push(b),this}connect(p){return this.open(p)}onopen(){h("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const p=this.engine;this.subs.push(a.on(p,"ping",this.onping.bind(this)),a.on(p,"data",this.ondata.bind(this)),a.on(p,"error",this.onerror.bind(this)),a.on(p,"close",this.onclose.bind(this)),a.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(p){try{this.decoder.add(p)}catch(m){this.onclose("parse error",m)}}ondecoded(p){o.nextTick(()=>{this.emitReserved("packet",p)},this.setTimeoutFn)}onerror(p){h("error",p),this.emitReserved("error",p)}socket(p,m){let E=this.nsps[p];return E?this._autoConnect&&!E.active&&E.connect():(E=new i.Socket(this,p,m),this.nsps[p]=E),E}_destroy(p){const m=Object.keys(this.nsps);for(const E of m)if(this.nsps[E].active){h("socket %s is still active, skipping close",E);return}this._close()}_packet(p){h("writing packet %j",p);const m=this.encoder.encode(p);for(let E=0;E<m.length;E++)this.engine.write(m[E],p.options)}cleanup(){h("cleanup"),this.subs.forEach(p=>p()),this.subs.length=0,this.decoder.destroy()}_close(){h("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(p,m){h("closed due to %s",p),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",p,m),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const p=this;if(this.backoff.attempts>=this._reconnectionAttempts)h("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const m=this.backoff.duration();h("will wait %dms before reconnect attempt",m),this._reconnecting=!0;const E=this.setTimeoutFn(()=>{p.skipReconnect||(h("attempting reconnect"),this.emitReserved("reconnect_attempt",p.backoff.attempts),!p.skipReconnect&&p.open(T=>{T?(h("reconnect attempt error"),p._reconnecting=!1,p.reconnect(),this.emitReserved("reconnect_error",T)):(h("reconnect success"),p.onreconnect())}))},m);this.opts.autoUnref&&E.unref(),this.subs.push(()=>{this.clearTimeoutFn(E)})}}onreconnect(){const p=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",p)}}return Ii.Manager=d,Ii}var $f;function UE(){return $f||($f=1,function(e,t){var n=ce&&ce.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const r=ME(),o=FE();Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});const i=Rp();Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}});const a=n(qt()).default("socket.io-client"),u={};function f(h,d){typeof h=="object"&&(d=h,h=void 0),d=d||{};const l=r.url(h,d.path||"/socket.io"),p=l.source,m=l.id,E=l.path,T=u[m]&&E in u[m].nsps,_=d.forceNew||d["force new connection"]||d.multiplex===!1||T;let b;return _?(a("ignoring socket cache for %s",p),b=new o.Manager(p,d)):(u[m]||(a("new io instance for %s",p),u[m]=new o.Manager(p,d)),b=u[m]),l.query&&!d.query&&(d.query=l.queryKey),b.socket(l.path,d)}t.io=f,t.connect=f,t.default=f,Object.assign(f,{Manager:o.Manager,Socket:i.Socket,io:f,connect:f});var c=Hc();Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return c.protocol}}),e.exports=f}(So,So.exports)),So.exports}var As={},Bi={},jf;function DE(){if(jf)return Bi;jf=1,Bi.byteLength=a,Bi.toByteArray=f,Bi.fromByteArray=d;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o<i;++o)e[o]=r[o],t[r.charCodeAt(o)]=o;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function s(l){var p=l.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=l.indexOf("=");m===-1&&(m=p);var E=m===p?0:4-m%4;return[m,E]}function a(l){var p=s(l),m=p[0],E=p[1];return(m+E)*3/4-E}function u(l,p,m){return(p+m)*3/4-m}function f(l){var p,m=s(l),E=m[0],T=m[1],_=new n(u(l,E,T)),b=0,A=T>0?E-4:E,w;for(w=0;w<A;w+=4)p=t[l.charCodeAt(w)]<<18|t[l.charCodeAt(w+1)]<<12|t[l.charCodeAt(w+2)]<<6|t[l.charCodeAt(w+3)],_[b++]=p>>16&255,_[b++]=p>>8&255,_[b++]=p&255;return T===2&&(p=t[l.charCodeAt(w)]<<2|t[l.charCodeAt(w+1)]>>4,_[b++]=p&255),T===1&&(p=t[l.charCodeAt(w)]<<10|t[l.charCodeAt(w+1)]<<4|t[l.charCodeAt(w+2)]>>2,_[b++]=p>>8&255,_[b++]=p&255),_}function c(l){return e[l>>18&63]+e[l>>12&63]+e[l>>6&63]+e[l&63]}function h(l,p,m){for(var E,T=[],_=p;_<m;_+=3)E=(l[_]<<16&16711680)+(l[_+1]<<8&65280)+(l[_+2]&255),T.push(c(E));return T.join("")}function d(l){for(var p,m=l.length,E=m%3,T=[],_=16383,b=0,A=m-E;b<A;b+=_)T.push(h(l,b,b+_>A?A:b+_));return E===1?(p=l[m-1],T.push(e[p>>2]+e[p<<4&63]+"==")):E===2&&(p=(l[m-2]<<8)+l[m-1],T.push(e[p>>10]+e[p>>4&63]+e[p<<2&63]+"=")),T.join("")}return Bi}var xo={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Hf;function $E(){return Hf||(Hf=1,xo.read=function(e,t,n,r,o){var i,s,a=o*8-r-1,u=(1<<a)-1,f=u>>1,c=-7,h=n?o-1:0,d=n?-1:1,l=e[t+h];for(h+=d,i=l&(1<<-c)-1,l>>=-c,c+=a;c>0;i=i*256+e[t+h],h+=d,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=r;c>0;s=s*256+e[t+h],h+=d,c-=8);if(i===0)i=1-f;else{if(i===u)return s?NaN:(l?-1:1)*(1/0);s=s+Math.pow(2,r),i=i-f}return(l?-1:1)*s*Math.pow(2,i-r)},xo.write=function(e,t,n,r,o,i){var s,a,u,f=i*8-o-1,c=(1<<f)-1,h=c>>1,d=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=r?0:i-1,p=r?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+h>=1?t+=d/u:t+=d*Math.pow(2,1-h),t*u>=2&&(s++,u/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(t*u-1)*Math.pow(2,o),s=s+h):(a=t*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;e[n+l]=a&255,l+=p,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;e[n+l]=s&255,l+=p,s/=256,f-=8);e[n+l-p]|=m*128}),xo}/*!
57
57
  * The buffer module from node.js, for the browser.
58
58
  *
59
59
  * @author Feross Aboukhadijeh <https://feross.org>
60
60
  * @license MIT
61
- */var Df;function BE(){return Df||(Df=1,function(e){const t=kE(),n=ME(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const S=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(S,g),S.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(S){if(S>o)throw new RangeError('The value "'+S+'" is invalid for option "size"');const g=new Uint8Array(S);return Object.setPrototypeOf(g,a.prototype),g}function a(S,g,v){if(typeof S=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(S)}return l(S,g,v)}a.poolSize=8192;function l(S,g,v){if(typeof S=="string")return d(S,g);if(ArrayBuffer.isView(S))return p(S);if(S==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S);if(je(S,ArrayBuffer)||S&&je(S.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(je(S,SharedArrayBuffer)||S&&je(S.buffer,SharedArrayBuffer)))return m(S,g,v);if(typeof S=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const C=S.valueOf&&S.valueOf();if(C!=null&&C!==S)return a.from(C,g,v);const N=E(S);if(N)return N;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof S[Symbol.toPrimitive]=="function")return a.from(S[Symbol.toPrimitive]("string"),g,v);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S)}a.from=function(S,g,v){return l(S,g,v)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function f(S){if(typeof S!="number")throw new TypeError('"size" argument must be of type number');if(S<0)throw new RangeError('The value "'+S+'" is invalid for option "size"')}function c(S,g,v){return f(S),S<=0?s(S):g!==void 0?typeof v=="string"?s(S).fill(g,v):s(S).fill(g):s(S)}a.alloc=function(S,g,v){return c(S,g,v)};function h(S){return f(S),s(S<0?0:T(S)|0)}a.allocUnsafe=function(S){return h(S)},a.allocUnsafeSlow=function(S){return h(S)};function d(S,g){if((typeof g!="string"||g==="")&&(g="utf8"),!a.isEncoding(g))throw new TypeError("Unknown encoding: "+g);const v=b(S,g)|0;let C=s(v);const N=C.write(S,g);return N!==v&&(C=C.slice(0,N)),C}function u(S){const g=S.length<0?0:T(S.length)|0,v=s(g);for(let C=0;C<g;C+=1)v[C]=S[C]&255;return v}function p(S){if(je(S,Uint8Array)){const g=new Uint8Array(S);return m(g.buffer,g.byteOffset,g.byteLength)}return u(S)}function m(S,g,v){if(g<0||S.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(S.byteLength<g+(v||0))throw new RangeError('"length" is outside of buffer bounds');let C;return g===void 0&&v===void 0?C=new Uint8Array(S):v===void 0?C=new Uint8Array(S,g):C=new Uint8Array(S,g,v),Object.setPrototypeOf(C,a.prototype),C}function E(S){if(a.isBuffer(S)){const g=T(S.length)|0,v=s(g);return v.length===0||S.copy(v,0,0,g),v}if(S.length!==void 0)return typeof S.length!="number"||St(S.length)?s(0):u(S);if(S.type==="Buffer"&&Array.isArray(S.data))return u(S.data)}function T(S){if(S>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return S|0}function _(S){return+S!=S&&(S=0),a.alloc(+S)}a.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==a.prototype},a.compare=function(g,v){if(je(g,Uint8Array)&&(g=a.from(g,g.offset,g.byteLength)),je(v,Uint8Array)&&(v=a.from(v,v.offset,v.byteLength)),!a.isBuffer(g)||!a.isBuffer(v))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===v)return 0;let C=g.length,N=v.length;for(let U=0,q=Math.min(C,N);U<q;++U)if(g[U]!==v[U]){C=g[U],N=v[U];break}return C<N?-1:N<C?1:0},a.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}},a.concat=function(g,v){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return a.alloc(0);let C;if(v===void 0)for(v=0,C=0;C<g.length;++C)v+=g[C].length;const N=a.allocUnsafe(v);let U=0;for(C=0;C<g.length;++C){let q=g[C];if(je(q,Uint8Array))U+q.length>N.length?(a.isBuffer(q)||(q=a.from(q)),q.copy(N,U)):Uint8Array.prototype.set.call(N,q,U);else if(a.isBuffer(q))q.copy(N,U);else throw new TypeError('"list" argument must be an Array of Buffers');U+=q.length}return N};function b(S,g){if(a.isBuffer(S))return S.length;if(ArrayBuffer.isView(S)||je(S,ArrayBuffer))return S.byteLength;if(typeof S!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof S);const v=S.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&v===0)return 0;let N=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":return Rt(S).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v*2;case"hex":return v>>>1;case"base64":return wt(S).length;default:if(N)return C?-1:Rt(S).length;g=(""+g).toLowerCase(),N=!0}}a.byteLength=b;function A(S,g,v){let C=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((v===void 0||v>this.length)&&(v=this.length),v<=0)||(v>>>=0,g>>>=0,v<=g))return"";for(S||(S="utf8");;)switch(S){case"hex":return ae(this,g,v);case"utf8":case"utf-8":return oe(this,g,v);case"ascii":return z(this,g,v);case"latin1":case"binary":return J(this,g,v);case"base64":return Y(this,g,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,g,v);default:if(C)throw new TypeError("Unknown encoding: "+S);S=(S+"").toLowerCase(),C=!0}}a.prototype._isBuffer=!0;function w(S,g,v){const C=S[g];S[g]=S[v],S[v]=C}a.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 v=0;v<g;v+=2)w(this,v,v+1);return this},a.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 v=0;v<g;v+=4)w(this,v,v+3),w(this,v+1,v+2);return this},a.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 v=0;v<g;v+=8)w(this,v,v+7),w(this,v+1,v+6),w(this,v+2,v+5),w(this,v+3,v+4);return this},a.prototype.toString=function(){const g=this.length;return g===0?"":arguments.length===0?oe(this,0,g):A.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(g){if(!a.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:a.compare(this,g)===0},a.prototype.inspect=function(){let g="";const v=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,v).replace(/(.{2})/g,"$1 ").trim(),this.length>v&&(g+=" ... "),"<Buffer "+g+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(g,v,C,N,U){if(je(g,Uint8Array)&&(g=a.from(g,g.offset,g.byteLength)),!a.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(v===void 0&&(v=0),C===void 0&&(C=g?g.length:0),N===void 0&&(N=0),U===void 0&&(U=this.length),v<0||C>g.length||N<0||U>this.length)throw new RangeError("out of range index");if(N>=U&&v>=C)return 0;if(N>=U)return-1;if(v>=C)return 1;if(v>>>=0,C>>>=0,N>>>=0,U>>>=0,this===g)return 0;let q=U-N,fe=C-v;const be=Math.min(q,fe),we=this.slice(N,U),Se=g.slice(v,C);for(let he=0;he<be;++he)if(we[he]!==Se[he]){q=we[he],fe=Se[he];break}return q<fe?-1:fe<q?1:0};function P(S,g,v,C,N){if(S.length===0)return-1;if(typeof v=="string"?(C=v,v=0):v>2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),v=+v,St(v)&&(v=N?0:S.length-1),v<0&&(v=S.length+v),v>=S.length){if(N)return-1;v=S.length-1}else if(v<0)if(N)v=0;else return-1;if(typeof g=="string"&&(g=a.from(g,C)),a.isBuffer(g))return g.length===0?-1:F(S,g,v,C,N);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(S,g,v):Uint8Array.prototype.lastIndexOf.call(S,g,v):F(S,[g],v,C,N);throw new TypeError("val must be string, number or Buffer")}function F(S,g,v,C,N){let U=1,q=S.length,fe=g.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(S.length<2||g.length<2)return-1;U=2,q/=2,fe/=2,v/=2}function be(Se,he){return U===1?Se[he]:Se.readUInt16BE(he*U)}let we;if(N){let Se=-1;for(we=v;we<q;we++)if(be(S,we)===be(g,Se===-1?0:we-Se)){if(Se===-1&&(Se=we),we-Se+1===fe)return Se*U}else Se!==-1&&(we-=we-Se),Se=-1}else for(v+fe>q&&(v=q-fe),we=v;we>=0;we--){let Se=!0;for(let he=0;he<fe;he++)if(be(S,we+he)!==be(g,he)){Se=!1;break}if(Se)return we}return-1}a.prototype.includes=function(g,v,C){return this.indexOf(g,v,C)!==-1},a.prototype.indexOf=function(g,v,C){return P(this,g,v,C,!0)},a.prototype.lastIndexOf=function(g,v,C){return P(this,g,v,C,!1)};function B(S,g,v,C){v=Number(v)||0;const N=S.length-v;C?(C=Number(C),C>N&&(C=N)):C=N;const U=g.length;C>U/2&&(C=U/2);let q;for(q=0;q<C;++q){const fe=parseInt(g.substr(q*2,2),16);if(St(fe))return q;S[v+q]=fe}return q}function W(S,g,v,C){return gt(Rt(g,S.length-v),S,v,C)}function G(S,g,v,C){return gt(mt(g),S,v,C)}function V(S,g,v,C){return gt(wt(g),S,v,C)}function H(S,g,v,C){return gt(Sr(g,S.length-v),S,v,C)}a.prototype.write=function(g,v,C,N){if(v===void 0)N="utf8",C=this.length,v=0;else if(C===void 0&&typeof v=="string")N=v,C=this.length,v=0;else if(isFinite(v))v=v>>>0,isFinite(C)?(C=C>>>0,N===void 0&&(N="utf8")):(N=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const U=this.length-v;if((C===void 0||C>U)&&(C=U),g.length>0&&(C<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let q=!1;for(;;)switch(N){case"hex":return B(this,g,v,C);case"utf8":case"utf-8":return W(this,g,v,C);case"ascii":case"latin1":case"binary":return G(this,g,v,C);case"base64":return V(this,g,v,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,g,v,C);default:if(q)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),q=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(S,g,v){return g===0&&v===S.length?t.fromByteArray(S):t.fromByteArray(S.slice(g,v))}function oe(S,g,v){v=Math.min(S.length,v);const C=[];let N=g;for(;N<v;){const U=S[N];let q=null,fe=U>239?4:U>223?3:U>191?2:1;if(N+fe<=v){let be,we,Se,he;switch(fe){case 1:U<128&&(q=U);break;case 2:be=S[N+1],(be&192)===128&&(he=(U&31)<<6|be&63,he>127&&(q=he));break;case 3:be=S[N+1],we=S[N+2],(be&192)===128&&(we&192)===128&&(he=(U&15)<<12|(be&63)<<6|we&63,he>2047&&(he<55296||he>57343)&&(q=he));break;case 4:be=S[N+1],we=S[N+2],Se=S[N+3],(be&192)===128&&(we&192)===128&&(Se&192)===128&&(he=(U&15)<<18|(be&63)<<12|(we&63)<<6|Se&63,he>65535&&he<1114112&&(q=he))}}q===null?(q=65533,fe=1):q>65535&&(q-=65536,C.push(q>>>10&1023|55296),q=56320|q&1023),C.push(q),N+=fe}return k(C)}const K=4096;function k(S){const g=S.length;if(g<=K)return String.fromCharCode.apply(String,S);let v="",C=0;for(;C<g;)v+=String.fromCharCode.apply(String,S.slice(C,C+=K));return v}function z(S,g,v){let C="";v=Math.min(S.length,v);for(let N=g;N<v;++N)C+=String.fromCharCode(S[N]&127);return C}function J(S,g,v){let C="";v=Math.min(S.length,v);for(let N=g;N<v;++N)C+=String.fromCharCode(S[N]);return C}function ae(S,g,v){const C=S.length;(!g||g<0)&&(g=0),(!v||v<0||v>C)&&(v=C);let N="";for(let U=g;U<v;++U)N+=rt[S[U]];return N}function Q(S,g,v){const C=S.slice(g,v);let N="";for(let U=0;U<C.length-1;U+=2)N+=String.fromCharCode(C[U]+C[U+1]*256);return N}a.prototype.slice=function(g,v){const C=this.length;g=~~g,v=v===void 0?C:~~v,g<0?(g+=C,g<0&&(g=0)):g>C&&(g=C),v<0?(v+=C,v<0&&(v=0)):v>C&&(v=C),v<g&&(v=g);const N=this.subarray(g,v);return Object.setPrototypeOf(N,a.prototype),N};function Z(S,g,v){if(S%1!==0||S<0)throw new RangeError("offset is not uint");if(S+g>v)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(g,v,C){g=g>>>0,v=v>>>0,C||Z(g,v,this.length);let N=this[g],U=1,q=0;for(;++q<v&&(U*=256);)N+=this[g+q]*U;return N},a.prototype.readUintBE=a.prototype.readUIntBE=function(g,v,C){g=g>>>0,v=v>>>0,C||Z(g,v,this.length);let N=this[g+--v],U=1;for(;v>0&&(U*=256);)N+=this[g+--v]*U;return N},a.prototype.readUint8=a.prototype.readUInt8=function(g,v){return g=g>>>0,v||Z(g,1,this.length),this[g]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(g,v){return g=g>>>0,v||Z(g,2,this.length),this[g]|this[g+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(g,v){return g=g>>>0,v||Z(g,2,this.length),this[g]<<8|this[g+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(g,v){return g=g>>>0,v||Z(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(g,v){return g=g>>>0,v||Z(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},a.prototype.readBigUInt64LE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&$e(g,this.length-8);const N=v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24,U=this[++g]+this[++g]*2**8+this[++g]*2**16+C*2**24;return BigInt(N)+(BigInt(U)<<BigInt(32))}),a.prototype.readBigUInt64BE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&$e(g,this.length-8);const N=v*2**24+this[++g]*2**16+this[++g]*2**8+this[++g],U=this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C;return(BigInt(N)<<BigInt(32))+BigInt(U)}),a.prototype.readIntLE=function(g,v,C){g=g>>>0,v=v>>>0,C||Z(g,v,this.length);let N=this[g],U=1,q=0;for(;++q<v&&(U*=256);)N+=this[g+q]*U;return U*=128,N>=U&&(N-=Math.pow(2,8*v)),N},a.prototype.readIntBE=function(g,v,C){g=g>>>0,v=v>>>0,C||Z(g,v,this.length);let N=v,U=1,q=this[g+--N];for(;N>0&&(U*=256);)q+=this[g+--N]*U;return U*=128,q>=U&&(q-=Math.pow(2,8*v)),q},a.prototype.readInt8=function(g,v){return g=g>>>0,v||Z(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},a.prototype.readInt16LE=function(g,v){g=g>>>0,v||Z(g,2,this.length);const C=this[g]|this[g+1]<<8;return C&32768?C|4294901760:C},a.prototype.readInt16BE=function(g,v){g=g>>>0,v||Z(g,2,this.length);const C=this[g+1]|this[g]<<8;return C&32768?C|4294901760:C},a.prototype.readInt32LE=function(g,v){return g=g>>>0,v||Z(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},a.prototype.readInt32BE=function(g,v){return g=g>>>0,v||Z(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},a.prototype.readBigInt64LE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&$e(g,this.length-8);const N=this[g+4]+this[g+5]*2**8+this[g+6]*2**16+(C<<24);return(BigInt(N)<<BigInt(32))+BigInt(v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24)}),a.prototype.readBigInt64BE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&$e(g,this.length-8);const N=(v<<24)+this[++g]*2**16+this[++g]*2**8+this[++g];return(BigInt(N)<<BigInt(32))+BigInt(this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C)}),a.prototype.readFloatLE=function(g,v){return g=g>>>0,v||Z(g,4,this.length),n.read(this,g,!0,23,4)},a.prototype.readFloatBE=function(g,v){return g=g>>>0,v||Z(g,4,this.length),n.read(this,g,!1,23,4)},a.prototype.readDoubleLE=function(g,v){return g=g>>>0,v||Z(g,8,this.length),n.read(this,g,!0,52,8)},a.prototype.readDoubleBE=function(g,v){return g=g>>>0,v||Z(g,8,this.length),n.read(this,g,!1,52,8)};function ce(S,g,v,C,N,U){if(!a.isBuffer(S))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>N||g<U)throw new RangeError('"value" argument is out of bounds');if(v+C>S.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(g,v,C,N){if(g=+g,v=v>>>0,C=C>>>0,!N){const fe=Math.pow(2,8*C)-1;ce(this,g,v,C,fe,0)}let U=1,q=0;for(this[v]=g&255;++q<C&&(U*=256);)this[v+q]=g/U&255;return v+C},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(g,v,C,N){if(g=+g,v=v>>>0,C=C>>>0,!N){const fe=Math.pow(2,8*C)-1;ce(this,g,v,C,fe,0)}let U=C-1,q=1;for(this[v+U]=g&255;--U>=0&&(q*=256);)this[v+U]=g/q&255;return v+C},a.prototype.writeUint8=a.prototype.writeUInt8=function(g,v,C){return g=+g,v=v>>>0,C||ce(this,g,v,1,255,0),this[v]=g&255,v+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(g,v,C){return g=+g,v=v>>>0,C||ce(this,g,v,2,65535,0),this[v]=g&255,this[v+1]=g>>>8,v+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(g,v,C){return g=+g,v=v>>>0,C||ce(this,g,v,2,65535,0),this[v]=g>>>8,this[v+1]=g&255,v+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(g,v,C){return g=+g,v=v>>>0,C||ce(this,g,v,4,4294967295,0),this[v+3]=g>>>24,this[v+2]=g>>>16,this[v+1]=g>>>8,this[v]=g&255,v+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(g,v,C){return g=+g,v=v>>>0,C||ce(this,g,v,4,4294967295,0),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4};function le(S,g,v,C,N){te(g,C,N,S,v,7);let U=Number(g&BigInt(4294967295));S[v++]=U,U=U>>8,S[v++]=U,U=U>>8,S[v++]=U,U=U>>8,S[v++]=U;let q=Number(g>>BigInt(32)&BigInt(4294967295));return S[v++]=q,q=q>>8,S[v++]=q,q=q>>8,S[v++]=q,q=q>>8,S[v++]=q,v}function ze(S,g,v,C,N){te(g,C,N,S,v,7);let U=Number(g&BigInt(4294967295));S[v+7]=U,U=U>>8,S[v+6]=U,U=U>>8,S[v+5]=U,U=U>>8,S[v+4]=U;let q=Number(g>>BigInt(32)&BigInt(4294967295));return S[v+3]=q,q=q>>8,S[v+2]=q,q=q>>8,S[v+1]=q,q=q>>8,S[v]=q,v+8}a.prototype.writeBigUInt64LE=Ke(function(g,v=0){return le(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Ke(function(g,v=0){return ze(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(g,v,C,N){if(g=+g,v=v>>>0,!N){const be=Math.pow(2,8*C-1);ce(this,g,v,C,be-1,-be)}let U=0,q=1,fe=0;for(this[v]=g&255;++U<C&&(q*=256);)g<0&&fe===0&&this[v+U-1]!==0&&(fe=1),this[v+U]=(g/q>>0)-fe&255;return v+C},a.prototype.writeIntBE=function(g,v,C,N){if(g=+g,v=v>>>0,!N){const be=Math.pow(2,8*C-1);ce(this,g,v,C,be-1,-be)}let U=C-1,q=1,fe=0;for(this[v+U]=g&255;--U>=0&&(q*=256);)g<0&&fe===0&&this[v+U+1]!==0&&(fe=1),this[v+U]=(g/q>>0)-fe&255;return v+C},a.prototype.writeInt8=function(g,v,C){return g=+g,v=v>>>0,C||ce(this,g,v,1,127,-128),g<0&&(g=255+g+1),this[v]=g&255,v+1},a.prototype.writeInt16LE=function(g,v,C){return g=+g,v=v>>>0,C||ce(this,g,v,2,32767,-32768),this[v]=g&255,this[v+1]=g>>>8,v+2},a.prototype.writeInt16BE=function(g,v,C){return g=+g,v=v>>>0,C||ce(this,g,v,2,32767,-32768),this[v]=g>>>8,this[v+1]=g&255,v+2},a.prototype.writeInt32LE=function(g,v,C){return g=+g,v=v>>>0,C||ce(this,g,v,4,2147483647,-2147483648),this[v]=g&255,this[v+1]=g>>>8,this[v+2]=g>>>16,this[v+3]=g>>>24,v+4},a.prototype.writeInt32BE=function(g,v,C){return g=+g,v=v>>>0,C||ce(this,g,v,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4},a.prototype.writeBigInt64LE=Ke(function(g,v=0){return le(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Ke(function(g,v=0){return ze(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function X(S,g,v,C,N,U){if(v+C>S.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function re(S,g,v,C,N){return g=+g,v=v>>>0,N||X(S,g,v,4),n.write(S,g,v,C,23,4),v+4}a.prototype.writeFloatLE=function(g,v,C){return re(this,g,v,!0,C)},a.prototype.writeFloatBE=function(g,v,C){return re(this,g,v,!1,C)};function Pe(S,g,v,C,N){return g=+g,v=v>>>0,N||X(S,g,v,8),n.write(S,g,v,C,52,8),v+8}a.prototype.writeDoubleLE=function(g,v,C){return Pe(this,g,v,!0,C)},a.prototype.writeDoubleBE=function(g,v,C){return Pe(this,g,v,!1,C)},a.prototype.copy=function(g,v,C,N){if(!a.isBuffer(g))throw new TypeError("argument should be a Buffer");if(C||(C=0),!N&&N!==0&&(N=this.length),v>=g.length&&(v=g.length),v||(v=0),N>0&&N<C&&(N=C),N===C||g.length===0||this.length===0)return 0;if(v<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),g.length-v<N-C&&(N=g.length-v+C);const U=N-C;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(v,C,N):Uint8Array.prototype.set.call(g,this.subarray(C,N),v),U},a.prototype.fill=function(g,v,C,N){if(typeof g=="string"){if(typeof v=="string"?(N=v,v=0,C=this.length):typeof C=="string"&&(N=C,C=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!a.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(g.length===1){const q=g.charCodeAt(0);(N==="utf8"&&q<128||N==="latin1")&&(g=q)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(v<0||this.length<v||this.length<C)throw new RangeError("Out of range index");if(C<=v)return this;v=v>>>0,C=C===void 0?this.length:C>>>0,g||(g=0);let U;if(typeof g=="number")for(U=v;U<C;++U)this[U]=g;else{const q=a.isBuffer(g)?g:a.from(g,N),fe=q.length;if(fe===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(U=0;U<C-v;++U)this[U+v]=q[U%fe]}return this};const Oe={};function st(S,g,v){Oe[S]=class extends v{constructor(){super(),Object.defineProperty(this,"message",{value:g.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${S}]`,this.stack,delete this.name}get code(){return S}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${S}]: ${this.message}`}}}st("ERR_BUFFER_OUT_OF_BOUNDS",function(S){return S?`${S} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),st("ERR_INVALID_ARG_TYPE",function(S,g){return`The "${S}" argument must be of type number. Received type ${typeof g}`},TypeError),st("ERR_OUT_OF_RANGE",function(S,g,v){let C=`The value of "${S}" is out of range.`,N=v;return Number.isInteger(v)&&Math.abs(v)>2**32?N=ut(String(v)):typeof v=="bigint"&&(N=String(v),(v>BigInt(2)**BigInt(32)||v<-(BigInt(2)**BigInt(32)))&&(N=ut(N)),N+="n"),C+=` It must be ${g}. Received ${N}`,C},RangeError);function ut(S){let g="",v=S.length;const C=S[0]==="-"?1:0;for(;v>=C+4;v-=3)g=`_${S.slice(v-3,v)}${g}`;return`${S.slice(0,v)}${g}`}function Et(S,g,v){Ye(g,"offset"),(S[g]===void 0||S[g+v]===void 0)&&$e(g,S.length-(v+1))}function te(S,g,v,C,N,U){if(S>v||S<g){const q=typeof g=="bigint"?"n":"";let fe;throw U>3?g===0||g===BigInt(0)?fe=`>= 0${q} and < 2${q} ** ${(U+1)*8}${q}`:fe=`>= -(2${q} ** ${(U+1)*8-1}${q}) and < 2 ** ${(U+1)*8-1}${q}`:fe=`>= ${g}${q} and <= ${v}${q}`,new Oe.ERR_OUT_OF_RANGE("value",fe,S)}Et(C,N,U)}function Ye(S,g){if(typeof S!="number")throw new Oe.ERR_INVALID_ARG_TYPE(g,"number",S)}function $e(S,g,v){throw Math.floor(S)!==S?(Ye(S,v),new Oe.ERR_OUT_OF_RANGE(v||"offset","an integer",S)):g<0?new Oe.ERR_BUFFER_OUT_OF_BOUNDS:new Oe.ERR_OUT_OF_RANGE(v||"offset",`>= ${v?1:0} and <= ${g}`,S)}const bt=/[^+/0-9A-Za-z-_]/g;function Gt(S){if(S=S.split("=")[0],S=S.trim().replace(bt,""),S.length<2)return"";for(;S.length%4!==0;)S=S+"=";return S}function Rt(S,g){g=g||1/0;let v;const C=S.length;let N=null;const U=[];for(let q=0;q<C;++q){if(v=S.charCodeAt(q),v>55295&&v<57344){if(!N){if(v>56319){(g-=3)>-1&&U.push(239,191,189);continue}else if(q+1===C){(g-=3)>-1&&U.push(239,191,189);continue}N=v;continue}if(v<56320){(g-=3)>-1&&U.push(239,191,189),N=v;continue}v=(N-55296<<10|v-56320)+65536}else N&&(g-=3)>-1&&U.push(239,191,189);if(N=null,v<128){if((g-=1)<0)break;U.push(v)}else if(v<2048){if((g-=2)<0)break;U.push(v>>6|192,v&63|128)}else if(v<65536){if((g-=3)<0)break;U.push(v>>12|224,v>>6&63|128,v&63|128)}else if(v<1114112){if((g-=4)<0)break;U.push(v>>18|240,v>>12&63|128,v>>6&63|128,v&63|128)}else throw new Error("Invalid code point")}return U}function mt(S){const g=[];for(let v=0;v<S.length;++v)g.push(S.charCodeAt(v)&255);return g}function Sr(S,g){let v,C,N;const U=[];for(let q=0;q<S.length&&!((g-=2)<0);++q)v=S.charCodeAt(q),C=v>>8,N=v%256,U.push(N),U.push(C);return U}function wt(S){return t.toByteArray(Gt(S))}function gt(S,g,v,C){let N;for(N=0;N<C&&!(N+v>=g.length||N>=S.length);++N)g[N+v]=S[N];return N}function je(S,g){return S instanceof g||S!=null&&S.constructor!=null&&S.constructor.name!=null&&S.constructor.name===g.name}function St(S){return S!==S}const rt=function(){const S="0123456789abcdef",g=new Array(256);for(let v=0;v<16;++v){const C=v*16;for(let N=0;N<16;++N)g[C+N]=S[v]+S[N]}return g}();function Ke(S){return typeof BigInt>"u"?Tr:S}function Tr(){throw new Error("BigInt not supported")}}(xs)),xs}(function(e,t){(function(n,r){e.exports=r(W_(),nE(),cE(),qd(),mE,LE(),BE())})(ue,function(n,r,o,i,s,a,l){return function(){var f={809:function(u){u.exports=n},30:function(u){u.exports=r},36:function(u){u.exports=o},300:function(u){u.exports=i},408:function(u){u.exports=l},25:function(u){u.exports=s},130:function(u){u.exports=a}},c={};function h(u){var p=c[u];if(p!==void 0)return p.exports;var m=c[u]={exports:{}};return f[u](m,m.exports,h),m.exports}h.n=function(u){var p=u&&u.__esModule?function(){return u.default}:function(){return u};return h.d(p,{a:p}),p},h.d=function(u,p){for(var m in p)h.o(p,m)&&!h.o(u,m)&&Object.defineProperty(u,m,{enumerable:!0,get:p[m]})},h.o=function(u,p){return Object.prototype.hasOwnProperty.call(u,p)},h.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var d={};return function(){h.r(d),h.d(d,{assets:function(){return k},auth:function(){return Z},buildAnswer:function(){return gg},buildCarouselCard:function(){return mg},buildQuestion:function(){return Be},carouselCards:function(){return vn},contentInteraction:function(){return Ke},decodeBase64:function(){return vg},default:function(){return _g},editorialPages:function(){return j},features:function(){return v},getEntries:function(){return u.getEntries},getEntry:function(){return u.getEntry},management:function(){return Or},payments:function(){return Rr},people:function(){return Pt},peopleEngagement:function(){return fr},qaQuestions:function(){return Xe},reportError:function(){return p.reportError},search:function(){return gn}});var u=h(809),p=h(30),m=h(36),E={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:T,LOCALHOST:_,STAGING:b,STAGING_SPLITTER:A},ENVIRONMENTS:{PRODUCTION:w,LOCAL:P}}}=E,{HUBSPOT:{ENVIRONMENTS_MAPPING:F,EMAIL_IDS:B}}=E;let W={emailIds:{}};var G=h(300),V=h.n(G);const H=async I=>{try{const{message:M,response:L,request:D}=I;let ee=M;return L?ee+=` - The request was made and the server responded with ${JSON.stringify({status:L.status,data:L.data})}`:D&&(ee+=" - The request was made but no response was received"),console.warn(ee),await(0,p.reportError)(new Error(ee)),ee}catch(M){return console.warn(`Cannot handle error: ${M.message}`),M.message}},{APIS:{ASSETS_API:{BASE_URL:Y,ENDPOINTS:{USERS:oe,CERTIFICATES:K}}}}=E;var k={certificates:{create:async(I,M)=>{let L=[];try{const{data:D}=await V().post(`${Y}${oe}/${I}${K}`,M);D&&(L=D)}catch(D){await H(D)}return L}}};const{APIS:{AUTH_API:{BASE_URL:z,ENDPOINTS:{USER_PASSWORD:J,USERS:ae}}},USERS:{MYSELF:Q}}=E;var Z={userPassword:{update:async I=>{let M=null;try{M=await V().put(`${z}${ae}/${Q}${J}`,I)}catch(L){M={message:(((L||{}).response||{}).data||{}).message},await H(L)}return M}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:ce,ENDPOINTS:{ANSWERS:le,QUESTIONS:ze,LIKES:X}}}}=E,re=`${ce}${ze}`;var Pe={create:async({questionSlug:I},M)=>{try{await V().post(`${re}/${encodeURIComponent(I)}${le}`,M)}catch(L){const D=await H(L);throw new Error(D)}},remove:async({questionSlug:I,answerSlug:M})=>{try{await V().delete(`${re}/${encodeURIComponent(I)}${le}/${encodeURIComponent(M)}`)}catch(L){const D=await H(L);throw new Error(D)}},update:async({questionSlug:I,answerSlug:M},L)=>{try{return await V().put(`${re}/${encodeURIComponent(I)}${le}/${encodeURIComponent(M)}`,L)}catch(D){const ee=await H(D);throw new Error(ee)}},like:async({questionSlug:I,answerSlug:M},L)=>{try{return await V().post(`${re}/${encodeURIComponent(I)}${le}/${encodeURIComponent(M)}${X}`,L)}catch(D){const ee=await H(D);throw new Error(ee)}},unlike:async({questionSlug:I,answerSlug:M})=>{try{return await V().delete(`${re}/${encodeURIComponent(I)}${le}/${encodeURIComponent(M)}${X}`)}catch(L){const D=await H(L);throw new Error(D)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Oe,ENDPOINTS:{QUESTIONS:st}}}}=E,ut=`${Oe}${st}`;var Et={create:async I=>{try{return await V().post(ut,I)}catch(M){const L=await H(M);throw new Error(L)}},remove:async({questionSlug:I})=>{try{await V().delete(`${ut}/${encodeURIComponent(I)}`)}catch(M){const L=await H(M);throw new Error(L)}},update:async({questionSlug:I},M)=>{try{return await V().put(`${ut}/${encodeURIComponent(I)}`,M)}catch(L){const D=await H(L);throw new Error(D)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:te,ENDPOINTS:{REPLIES:Ye,ANSWERS:$e,QUESTIONS:bt,LIKES:Gt}}}}=E,Rt=`${te}${bt}`,mt=({questionSlug:I,answerSlug:M,replySlug:L},D=!1)=>{let ee=`${Rt}/${encodeURIComponent(I)}${$e}/${encodeURIComponent(M)}${Ye}`;return L&&(ee=`${ee}/${encodeURIComponent(L)}`,D&&(ee=`${ee}${Gt}`)),ee};var Sr={create:async({questionSlug:I,answerSlug:M},L)=>{try{return await V().post(mt({questionSlug:I,answerSlug:M}),L)}catch(D){const ee=await H(D);throw new Error(ee)}},update:async({questionSlug:I,answerSlug:M,replySlug:L},D)=>{try{return await V().put(mt({questionSlug:I,answerSlug:M,replySlug:L}),D)}catch(ee){const Te=await H(ee);throw new Error(Te)}},remove:async({questionSlug:I,answerSlug:M,replySlug:L})=>{try{await V().delete(mt({questionSlug:I,answerSlug:M,replySlug:L}))}catch(D){const ee=await H(D);throw new Error(ee)}},like:async({questionSlug:I,answerSlug:M,replySlug:L},D)=>{try{await V().post(mt({questionSlug:I,answerSlug:M,replySlug:L},!0),D)}catch(ee){const Te=await H(ee);throw new Error(Te)}},unlike:async({questionSlug:I,answerSlug:M,replySlug:L})=>{try{await V().delete(mt({questionSlug:I,answerSlug:M,replySlug:L},!0))}catch(D){const ee=await H(D);throw new Error(ee)}},getReplyUrl:mt};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:wt,ENDPOINTS:{QUESTIONS:gt,ANSWERS:je,LIKES:St}}}}=E,rt=`${wt}${gt}`;var Ke={answers:Pe,questions:Et,replies:Sr,likes:{create:async(I,M)=>{try{return await V().post(`${rt}/${encodeURIComponent(I)}${je}/${encodeURIComponent(M)}${St}`)}catch(L){const D=await H(L);throw new Error(D)}},remove:async(I,M)=>{try{return await V().delete(`${rt}/${encodeURIComponent(I)}${je}/${encodeURIComponent(M)}${St}`)}catch(L){const D=await H(L);throw new Error(D)}}}};const{APIS:{FEATURES_API:{BASE_URL:Tr,ENDPOINTS:{FLAGS:S}}}}=E,g=`${Tr}${S}`;var v={flags:{read:async I=>{let M=null;try{const{data:L}=await V().get(`${g}/${encodeURIComponent(I)}`);L!=null&&L.name&&(L!=null&&L.featureState)&&(M=L)}catch(L){await H(L)}return M}}};const{APIS:{MANAGEMENT_API:{BASE_URL:C,ENDPOINTS:{ACCOUNTS:N}}}}=E;var U={create:async I=>{try{await V().post(`${C}${N}`,I)}catch(M){throw await H(M),M}},read:async I=>{let M=null;try{({data:M}=await V().get(`${C}${N}/${encodeURIComponent(I)}`))}catch(L){await H(L)}return M},update:async(I,M)=>{try{await V().put(`${C}${N}/${encodeURIComponent(I)}`,M)}catch(L){throw await H(L),L}}};const{APIS:{MANAGEMENT_API:{BASE_URL:q,ENDPOINTS:{BULK_ENROLMENTS:fe}}}}=E;var be={create:async I=>{try{await V().post(`${q}${fe}`,I)}catch(M){throw await H(M),M}}};const{APIS:{MANAGEMENT_API:{BASE_URL:we,ENDPOINTS:{EVENT_REGISTRATIONS:Se}}}}=E;var he={create:async I=>{try{await V().post(`${we}${Se}`,I)}catch(M){const L=await H(M);throw new Error(L)}}};const{APIS:{MANAGEMENT_API:{BASE_URL:lt,ENDPOINTS:{LOGINS:ar,LOGIN_PASSWORDLESS:xr}}}}=E,Wt=`${lt}${ar}`;var Or={accounts:U,bulkEnrolments:be,eventRegistrations:he,passwordless:{update:async I=>{try{await V().put(`${Wt}/${encodeURIComponent(I)}${xr}`)}catch(M){throw await H(M),M}}}};const{APIS:{PAYMENTS_API:{BASE_URL_V2:Vt,ENDPOINTS:{PRODUCTS:Ar}}}}=E,Cr=`${Vt}${Ar}`;var Rr={products:{list:async I=>{let M=[],L=I?{params:I}:{params:{}};try{const{data:D}=await V().get(Cr,L);D&&D.length&&(M=D)}catch(D){await H(D)}return M}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Nt,ENDPOINTS:{BULK_ENROLMENTS:on}}}}=E;var Tt={list:async I=>{let M=[];try{const{data:L}=await V().get(`${Nt}${on}`,{params:I});L&&L.length&&(M=L)}catch(L){await H(L)}return M}},Un=h(25);const{OK:Dn,MULTIPLE_CHOICES:$n,NOT_FOUND:an,FORBIDDEN:Nr}=Un.StatusCodes,Fe=I=>I>=Dn&&I<$n||I===Nr||I===an,{APIS:{PEOPLE_API:{BASE_URL_V2:Pr,ENDPOINTS:{USERS:Ir}}}}=E,zt=async I=>{let M=null;try{const{data:L}=await V().get(`${Pr}${Ir}/${encodeURIComponent(I)}`,{validateStatus:Fe});L&&L.id&&(M=L)}catch(L){await H(L)}return M},sn=async I=>{let M=[];try{if(I&&I.length<2)throw new Error("users list method requires at least two ids");const L=I.map(ee=>`ids=${encodeURIComponent(ee)}`).join("&"),D=await V().get(`${Pr}${Ir}?${L}`,{validateStatus:Fe});D&&D.length&&(M=D)}catch(L){await H(L)}return M};var jn={read:zt,update:async(I,M)=>{let L=!1;try{const{data:D}=await V().put(`${Pr}${Ir}/${encodeURIComponent(I)}`,M);L=!(!D||!D.id)}catch(D){await H(D)}return L},list:sn};const{APIS:{PEOPLE_API:{BASE_URL_V2:He,ENDPOINTS:{USERS:Hn,USER_LIKES:qn}}},USERS:{MYSELF:Gn}}=E,Wn=`${He}${Hn}/${Gn}${qn}`,Lr=async I=>{let M=[],L=I?{params:I}:{params:{}};try{const{data:D}=await V().get(Wn,L);D&&D.length&&(M=D)}catch(D){await H(D)}return M};var Ze={list:Lr},Vn={authors:{readQuestionAuthors:async(I,M,L)=>{try{if(I.author=await zt(I.authorId),I.answers&&I.answers.length&&!L.ignoreAnswersAuthors){I.answers.sort((ee,Te)=>new Date(Te.updatedAt)-new Date(ee.updatedAt)),I.totalAnswers=I.answers.length;let D=I.answers;if(L.limit&&L.pageNumber){const ee=L.limit*(L.pageNumber-1);D=I.answers.slice(ee,ee+L.limit)}for(let ee of D){ee.author=ee.authorId&&await zt(ee.authorId)||{};const[Te]=M?await Lr({contentType:E.CONTENTFUL.ANSWERS.TYPE,contentSlug:ee.slug}):[null];ee.userLiked=!!Te}I.answers=D}else I.answers||(I.answers=[]);return I}catch(D){throw await H(D),new Error(`Cannot read authors for question: ${D.message}`)}},readAuthors:async(I=[])=>{let M=[];try{if(Array.isArray(I)===!1)throw new Error("authorIds is not an array!");if(I&&I.length===1){const L=await zt(I[0]);L&&M.push(L)}else if(I&&I.length>1){const L=await sn(I);L&&L.length>0&&(M=L)}}catch(L){throw await H(L),new Error(`Cannot read authors: ${L.message}`)}return M}}};const{APIS:{PEOPLE_API:{BASE_URL:zn,ENDPOINTS:{REGISTRATIONS:Yn}}}}=E;var Kn={list:async I=>{let M=[];try{const{data:L}=await V().get(`${zn}${Yn}`,{params:I});L&&L.length&&(M=L)}catch(L){await H(L)}return M}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Qn,ENDPOINTS:{USERS:sr,USER_COURSES:cn}}},USERS:{MYSELF:cr}}=E,ct=`${Qn}${sr}/${cr}${cn}`;var kr={create:async I=>{try{await V().post(ct,I)}catch(M){await H(M)}},list:async I=>{let M=[],L=I?{params:I}:{params:{}};try{const{data:D}=await V().get(ct,L);D&&D.length&&(M=D)}catch(D){await H(D)}return M},update:async(I,M)=>{try{await V().put(`${ct}/${I}`,M)}catch(L){await H(L)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Xn,ENDPOINTS:{USERS:Jn,USER_EVENTS:Zn}}},USERS:{MYSELF:ei}}=E,ti=`${Xn}${Jn}/${ei}${Zn}`;var ur={list:async I=>{let M=[],L=I?{params:I}:{params:{}};try{const{data:D}=await V().get(ti,L);D&&D.length&&(M=D)}catch(D){await H(D)}return M}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Mr,ENDPOINTS:{USERS:Yt,USER_LESSONS:un}}},USERS:{MYSELF:ln}}=E,fn=`${Mr}${Yt}/${ln}${un}`;var ri={create:async I=>{let M=null;try{M=await V().post(fn,I)}catch(L){await H(L)}return M},list:async I=>{let M=[],L=I?{params:I}:{params:{}};try{const{data:D}=await V().get(fn,L);D&&D.length&&(M=D)}catch(D){await H(D)}return M}};const{APIS:{PEOPLE_API:{BASE_URL_V2:ni,ENDPOINTS:{USERS:ii,USER_PRODUCTS:Br}}},USERS:{MYSELF:oi}}=E,Fr=`${ni}${ii}/${oi}${Br}`;var Kt={create:async I=>{let M=null;try{M=await V().post(Fr,I)}catch(L){await H(L)}return M},list:async I=>{let M=[],L=I?{params:I}:{params:{}};try{const{data:D}=await V().get(Fr,L);D&&D.length&&(M=D)}catch(D){await H(D)}return M},update:async(I,M)=>{try{await V().put(`${Fr}/${I}`,M)}catch(L){await H(L)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:ft,ENDPOINTS:{USERS:xt,USER_RATINGS:Ot}}},USERS:{MYSELF:ai}}=E,dt=`${ft}${xt}/${ai}${Ot}`;var Pt={bulkEnrolments:Tt,handlers:Vn,registrations:Kn,users:jn,userCourses:kr,userEvents:ur,userLessons:ri,userLikes:Ze,userProducts:Kt,userRatings:{create:async I=>{let M=null;try{const{data:L}=await V().post(dt,I);L!=null&&L.id&&(M=L)}catch(L){await H(L)}return M},update:async(I,M)=>{try{await V().put(`${dt}/${I}`,M)}catch(L){await H(L)}}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:si,ENDPOINTS:{ENQUIRY_EMAILS:ci}}}}=E;var ui={create:async I=>{let M=null;try{const{data:L}=await V().post(`${si}${ci}`,I);L&&(M=L)}catch(L){await H(L)}return M}},dn={forms:{sendEnquiryEmails:async I=>{let M=null;try{const{emailIds:L}=W;M=await fr.emails.create({...L,...I})}catch(L){await H(L)}return M}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:Qe,ENDPOINTS:{USERS:hn,USER_PROPERTIES:pn}}},USERS:{MYSELF:lr}}=E;var fr={emails:ui,handlers:dn,userProperties:{update:async(I,M)=>{try{await V().put(`${Qe}${hn}/${lr}${pn}/${I}`,M)}catch(L){await H(L)}}}},dr=h(130);const{APIS:{SEARCH_API:{BASE_URL:li,ENDPOINTS:{SEARCH:mn}}}}=E,Ur=`${li}${mn}`;var gn={ask:async I=>{try{let M=null;const{data:L}=await V().get(Ur,{params:{question:I}});return L!=null&&L.answer&&(L!=null&&L.references)&&(L!=null&&L.version)&&(M=L),M}catch(M){const L=await H(M);throw new Error(L)}},stream:(I,M,L)=>{const D=(0,dr.io)(void 0,{path:"/api/search-api/web-sockets"});function ee(){D.emit("search",{question:I})}function Te(Me){L(Me),Ie(),D.disconnect()}function Ie(){D.off("connect",ee),D.off("update",M),D.off("result",Te)}return D.on("connect",ee),D.on("update",M),D.on("result",Te),Ie}};const{CONTENTFUL:yt}=E,{CARD_TYPES:Dr}=yt.CAROUSELS;var vn={read:async(I,M)=>{try{if(!M||!M.sys||!M.sys.id)throw new Error("Invalid link to card");if(!I||!Dr[I])throw new Error("Unsupported card content type");const{INCLUDE:L,SELECT:D}=Dr[I];return await(0,u.getEntry)({content_type:I,"sys.id":M.sys.id,include:L,select:D},{assetDetails:!0})}catch(L){throw await H(L),new Error(`Cannot read carousel card: ${L.message}`)}}};const{CONTENTFUL:fi}=E,{INCLUDE:y,SELECT:x,TYPE:R}=fi.EDITORIAL_PAGES;var j={read:async I=>{try{return await(0,u.getEntry)({content_type:R,"fields.slug":I,include:y,select:x})}catch(M){throw await H(M),new Error(`Cannot read editorial page: ${M.message}`)}}};const{CONTENTFUL:de}=E,{TYPE:ie,ORDER:pe,SELECT:me,SKIP:ke,LIMIT:Ee,INCLUDE:qe}=de.QUESTIONS;var Xe={read:async I=>{try{return await(0,u.getEntry)({content_type:ie,"fields.slug":I,include:2,select:me})}catch(M){throw await H(M),new Error(`Cannot read question: ${M.message}`)}},list:async(I={})=>{try{return await(0,u.getEntries)({content_type:ie,include:qe,limit:Ee,order:pe,select:me,skip:ke,...I})}catch(M){throw await H(M),new Error(`Cannot list questions: ${M.message}`)}}},Be=async(I,M,L={ignoreAnswersAuthors:!1})=>{try{let D={};return D=await Xe.read(I),D=await Pt.handlers.authors.readQuestionAuthors(D,M,L),D}catch(D){throw await H(D),new Error(`Cannot build question: ${D.message}`)}};const{ARTICLES:{TYPE:Ge},COURSES:{TYPE:Ue},EVENTS:{TYPE:It},LISTS:{TYPE:At},QUESTIONS:{TYPE:Qt},LEARNING_HUB:{TYPE:to}}=E.CONTENTFUL,Lt=I=>I&&I.url?(Object.assign(I,{aspect:"responsiveCard",query:"q=90&fit=fill"}),I):null,hr={[Ge]:async I=>{const{authorIds:M,authorTag:L,image:D,publishedDate:ee,readingTime:Te,slug:Ie,title:Me}=I,ht=await Pt.handlers.authors.readAuthors(M),kt=ht&&ht.length?ht:L?[L]:null;return{banner:Lt(D),contributors:kt,publishedDate:ee,readingTime:Te,slug:Ie,title:Me}},[Ue]:async(I,M)=>{const{banner:L,freeCourse:D,partnershipDetails:ee,slug:Te,title:Ie,registered:Me}=I,ht={banner:Lt(L),slug:Te,title:Ie,pill:D?"free":"premium",registered:!!Me};if(ee){const{partners:kt}=ee;ht.partner=kt&&kt.length&&ee.partners[0]}if(Me===void 0&&M){const[kt]=await Pt.userProducts.list({courseSlug:Te,isEnrolled:!0,scope:"active"});ht.registered=!!kt}return ht},[It]:async(I,M)=>{const{bannerImage:L,defaultStartDate:D,isEventOngoing:ee,slug:Te,speakers:Ie,title:Me,registered:ht}=I,kt=new Date(D),Eg=!!kt&&kt<new Date;if(Ie&&Ie.length)for(const ro of Ie)ro.image=(sa=ro.image)&&sa.url?`${sa.url}?w=100&h=100&fit=thumb&f=center`:null;var sa;const su={banner:Lt(L),dateHasPassed:Eg,title:Me,slug:Te,isOngoingEvent:ee,contributors:Ie,startDate:kt,registered:!!ht};if(ht===void 0&&M){const[ro]=await Pt.userEvents.list({eventSlug:Te});su.registered=!!ro}return su},[At]:async I=>{const{hero:M,slug:L,title:D}=I;return{banner:Lt(M),slug:L,title:D}},[Qt]:async I=>{const{answers:M,authorId:L,createdAt:D,slug:ee,title:Te}=I;let Ie=null;if(L){const Me=await Pt.users.read(L);Me&&(Ie=Me)}return{answers:M&&M.length?M.length:0,contributors:Ie?[Ie]:[],createdAt:D,slug:ee,title:Te}},[to]:I=>{const{bannerSection:M,customLabel:L,slug:D,title:ee}=I;return{banner:Lt(M.image),slug:D,title:ee,customLabel:L}},people:I=>{const{id:M,name:L,jobTitle:D,location:ee,image:Te}=I;return{profile:Te,slug:M,title:L,text:D,secondaryText:ee}}};var mg=async({contentType:I,...M}={},L)=>{try{if(!hr[I])throw new Error("Content type not supported");if(typeof hr[I]!="function")throw new Error("No builder function for content type");return I!=="people"&&M.sys&&M.sys.type&&M.sys.type==="Link"&&(M=await vn.read(I,M)),{contentType:I,...await hr[I](M,L)}}catch(D){throw await H(D),new Error(`Cannot build carousel card: ${D.message}`)}},gg=async(I,M,L={})=>{try{if(!I.replies||I.replies.length===0)return I.replies=[],I;I.replies.sort((ee,Te)=>new Date(ee.createdAt)-new Date(Te.createdAt)),I.totalReplies=I.totalReplies||I.replies.length;let D=I.replies;if(L.limit&&L.pageNumber){const ee=L.limit*(L.pageNumber-1);D=I.replies.slice(ee,ee+L.limit)}for(const ee of D){if(ee.authorId===I.authorId){ee.author=I.author,ee.userLiked=!1;continue}ee.author=ee.authorId&&await zt(ee.authorId)||{};const[Te]=M?await Lr({contentType:E.CONTENTFUL.REPLIES.TYPE,contentSlug:ee.slug}):[null];ee.userLiked=!!Te}return I.replies=D,I}catch(D){throw await H(D),new Error(`Cannot build replies for answer: ${D.message}`)}},yg=h(408);const vg=I=>I&&yg.Buffer.from(I,"base64").toString("ascii");function _g({contentContext:I=null,errorsContext:M=null,gtmContext:L=null,origin:D}){try{const ee=(Te=>{let Ie=null;Te?Ie=Te:typeof window<"u"&&(Ie=window.origin||window.location.origin),Ie||new Error("Cannot select environment: Website not defined");let Me=null;const ht=Ie.match(b);return ht?Me=ht[1].split(A)[0]:Ie===T?Me=w:Ie.includes(_)&&(Me=P),Me||new Error(`Cannot select environment: No rule for website ${Ie}`),Me})(D);return I&&(0,u.setContext)(Object.assign({},I,{environment:ee})),M&&(0,p.setContext)(Object.assign({},M,{environment:ee})),L&&((0,m.setContext)(Object.assign({},L,{environment:ee})),(0,m.setupGTM)()),(({environment:Te})=>{const Ie=(Me=>{if(!Me)throw new Error("Cannot map environment: Environment not defined");if(!F[Me])throw new Error(`Cannot map environment: No mapping found for environment ${Me}`);return F[Me]})(Te);W.emailIds=B[Ie]})(Object.assign({},{environment:ee})),ee}catch(ee){console.warn(`Cannot load SDK: ${ee.message}`)}}}(),d}()})})(kd);var FE=kd.exports;const Bi={Off:"off",On:"on",Cookie:"cookie"},UE=e=>{const[t]=Ld(),[n,r]=$.useState(null),[o,i]=$.useState(!1),[s,a]=$.useState(Bi.Off);return $.useEffect(()=>{e&&FE.features.flags.read(e).then(l=>{a(l.featureState),r(null)}).catch(l=>{a(Bi.Off),r(l)})},[e]),$.useEffect(()=>{switch(s){case Bi.Off:i(!1);break;case Bi.On:i(!0);break;case Bi.Cookie:i(!!t[`feature-${e}`]);break;default:i(!1)}},[s,t]),{isFeatureActive:o,error:n}};function DE(e,t,n){var r=this,o=$.useRef(null),i=$.useRef(0),s=$.useRef(null),a=$.useRef([]),l=$.useRef(),f=$.useRef(),c=$.useRef(e),h=$.useRef(!0);$.useEffect(function(){c.current=e},[e]);var d=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var u=!!(n=n||{}).leading,p=!("trailing"in n)||!!n.trailing,m="maxWait"in n,E=m?Math.max(+n.maxWait||0,t):null;$.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var T=$.useMemo(function(){var _=function(B){var W=a.current,G=l.current;return a.current=l.current=null,i.current=B,f.current=c.current.apply(G,W)},b=function(B,W){d&&cancelAnimationFrame(s.current),s.current=d?requestAnimationFrame(B):setTimeout(B,W)},A=function(B){if(!h.current)return!1;var W=B-o.current;return!o.current||W>=t||W<0||m&&B-i.current>=E},w=function(B){return s.current=null,p&&a.current?_(B):(a.current=l.current=null,f.current)},P=function B(){var W=Date.now();if(A(W))return w(W);if(h.current){var G=t-(W-o.current),V=m?Math.min(G,E-(W-i.current)):G;b(B,V)}},F=function(){var B=Date.now(),W=A(B);if(a.current=[].slice.call(arguments),l.current=r,o.current=B,W){if(!s.current&&h.current)return i.current=o.current,b(P,t),u?_(o.current):f.current;if(m)return b(P,t),_(o.current)}return s.current||b(P,t),f.current};return F.cancel=function(){s.current&&(d?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,a.current=o.current=l.current=s.current=null},F.isPending=function(){return!!s.current},F.flush=function(){return s.current?w(Date.now()):f.current},F},[u,m,t,E,p,d]);return T}function Ap(e,t,n){var r=n===void 0?{}:n,o=r.leading,i=r.trailing;return DE(e,t,{maxWait:t,leading:o===void 0||o,trailing:i===void 0||i})}let Os;const Xi=(e=!0,t=!1)=>{if(!e)return;const[n,r]=$.useState(0)||[!1,()=>{}];$.useEffect(()=>(i(),window.addEventListener("resize",s),()=>{clearTimeout(Os),s.flush(),window.removeEventListener("resize",s)}),[]);const o=()=>window.innerWidth,i=()=>{r(o())},s=Ap(()=>{o()!==n&&(t&&(clearTimeout(Os),document.body.classList.add("is-resizing"),Os=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),i())},500,{leading:!0});return n},Cp=({scrollPosition:e=0,offset:t={down:0,up:10},callbacks:{scrollDown:n=()=>{},scrollUp:r=()=>{}}})=>{if(!window)return;const[o,i]=$.useState({current:0,past:0})||[!1,()=>{}],[s,a]=$.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];$.useEffect(()=>(l(),window.addEventListener("scroll",f),()=>{f.flush(),window.removeEventListener("scroll",f)}),[]);const l=()=>{const c=window.scrollY,h=o.current,d=c-h,u=d>0?"down":"up";if(i({current:c,past:h}),u==="down"){c>=e+t.down&&!s.scrollDown&&(!s.scrollUp||d>t.up)&&(n(),a({scrollUp:!1,scrollDown:!0}));return}Math.abs(d)>=t.up&&!s.scrollUp&&(r(),a({scrollUp:!0,scrollDown:!1}))},f=Ap(()=>{l()},250);return o};var jo={exports:{}};jo.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",f="[object Error]",c="[object Function]",h="[object GeneratorFunction]",d="[object Map]",u="[object Number]",p="[object Object]",m="[object Promise]",E="[object RegExp]",T="[object Set]",_="[object String]",b="[object Symbol]",A="[object WeakMap]",w="[object ArrayBuffer]",P="[object DataView]",F="[object Float32Array]",B="[object Float64Array]",W="[object Int8Array]",G="[object Int16Array]",V="[object Int32Array]",H="[object Uint8Array]",Y="[object Uint8ClampedArray]",oe="[object Uint16Array]",K="[object Uint32Array]",k=/[\\^$.*+?()[\]{}|]/g,z=/\w*$/,J=/^\[object .+?Constructor\]$/,ae=/^(?:0|[1-9]\d*)$/,Q={};Q[i]=Q[s]=Q[w]=Q[P]=Q[a]=Q[l]=Q[F]=Q[B]=Q[W]=Q[G]=Q[V]=Q[d]=Q[u]=Q[p]=Q[E]=Q[T]=Q[_]=Q[b]=Q[H]=Q[Y]=Q[oe]=Q[K]=!0,Q[f]=Q[c]=Q[A]=!1;var Z=typeof ue=="object"&&ue&&ue.Object===Object&&ue,ce=typeof self=="object"&&self&&self.Object===Object&&self,le=Z||ce||Function("return this")(),ze=t&&!t.nodeType&&t,X=ze&&!0&&e&&!e.nodeType&&e,re=X&&X.exports===ze;function Pe(y,x){return y.set(x[0],x[1]),y}function Oe(y,x){return y.add(x),y}function st(y,x){for(var R=-1,j=y?y.length:0;++R<j&&x(y[R],R,y)!==!1;);return y}function ut(y,x){for(var R=-1,j=x.length,de=y.length;++R<j;)y[de+R]=x[R];return y}function Et(y,x,R,j){var de=-1,ie=y?y.length:0;for(j&&ie&&(R=y[++de]);++de<ie;)R=x(R,y[de],de,y);return R}function te(y,x){for(var R=-1,j=Array(y);++R<y;)j[R]=x(R);return j}function Ye(y,x){return y==null?void 0:y[x]}function $e(y){var x=!1;if(y!=null&&typeof y.toString!="function")try{x=!!(y+"")}catch{}return x}function bt(y){var x=-1,R=Array(y.size);return y.forEach(function(j,de){R[++x]=[de,j]}),R}function Gt(y,x){return function(R){return y(x(R))}}function Rt(y){var x=-1,R=Array(y.size);return y.forEach(function(j){R[++x]=j}),R}var mt=Array.prototype,Sr=Function.prototype,wt=Object.prototype,gt=le["__core-js_shared__"],je=function(){var y=/[^.]+$/.exec(gt&&gt.keys&&gt.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),St=Sr.toString,rt=wt.hasOwnProperty,Ke=wt.toString,Tr=RegExp("^"+St.call(rt).replace(k,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=re?le.Buffer:void 0,g=le.Symbol,v=le.Uint8Array,C=Gt(Object.getPrototypeOf,Object),N=Object.create,U=wt.propertyIsEnumerable,q=mt.splice,fe=Object.getOwnPropertySymbols,be=S?S.isBuffer:void 0,we=Gt(Object.keys,Object),Se=ft(le,"DataView"),he=ft(le,"Map"),lt=ft(le,"Promise"),ar=ft(le,"Set"),xr=ft(le,"WeakMap"),Wt=ft(Object,"create"),Or=Qe(Se),Vt=Qe(he),Ar=Qe(lt),Cr=Qe(ar),Rr=Qe(xr),Nt=g?g.prototype:void 0,on=Nt?Nt.valueOf:void 0;function Tt(y){var x=-1,R=y?y.length:0;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Un(){this.__data__=Wt?Wt(null):{}}function Dn(y){return this.has(y)&&delete this.__data__[y]}function $n(y){var x=this.__data__;if(Wt){var R=x[y];return R===r?void 0:R}return rt.call(x,y)?x[y]:void 0}function an(y){var x=this.__data__;return Wt?x[y]!==void 0:rt.call(x,y)}function Nr(y,x){var R=this.__data__;return R[y]=Wt&&x===void 0?r:x,this}Tt.prototype.clear=Un,Tt.prototype.delete=Dn,Tt.prototype.get=$n,Tt.prototype.has=an,Tt.prototype.set=Nr;function Fe(y){var x=-1,R=y?y.length:0;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Pr(){this.__data__=[]}function Ir(y){var x=this.__data__,R=cr(x,y);if(R<0)return!1;var j=x.length-1;return R==j?x.pop():q.call(x,R,1),!0}function zt(y){var x=this.__data__,R=cr(x,y);return R<0?void 0:x[R][1]}function sn(y){return cr(this.__data__,y)>-1}function jn(y,x){var R=this.__data__,j=cr(R,y);return j<0?R.push([y,x]):R[j][1]=x,this}Fe.prototype.clear=Pr,Fe.prototype.delete=Ir,Fe.prototype.get=zt,Fe.prototype.has=sn,Fe.prototype.set=jn;function He(y){var x=-1,R=y?y.length:0;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Hn(){this.__data__={hash:new Tt,map:new(he||Fe),string:new Tt}}function qn(y){return Kt(this,y).delete(y)}function Gn(y){return Kt(this,y).get(y)}function Wn(y){return Kt(this,y).has(y)}function Lr(y,x){return Kt(this,y).set(y,x),this}He.prototype.clear=Hn,He.prototype.delete=qn,He.prototype.get=Gn,He.prototype.has=Wn,He.prototype.set=Lr;function Ze(y){this.__data__=new Fe(y)}function Vn(){this.__data__=new Fe}function zn(y){return this.__data__.delete(y)}function Yn(y){return this.__data__.get(y)}function Kn(y){return this.__data__.has(y)}function Qn(y,x){var R=this.__data__;if(R instanceof Fe){var j=R.__data__;if(!he||j.length<n-1)return j.push([y,x]),this;R=this.__data__=new He(j)}return R.set(y,x),this}Ze.prototype.clear=Vn,Ze.prototype.delete=zn,Ze.prototype.get=Yn,Ze.prototype.has=Kn,Ze.prototype.set=Qn;function sr(y,x){var R=fr(y)||lr(y)?te(y.length,String):[],j=R.length,de=!!j;for(var ie in y)(x||rt.call(y,ie))&&!(de&&(ie=="length"||si(ie,j)))&&R.push(ie);return R}function cn(y,x,R){var j=y[x];(!(rt.call(y,x)&&pn(j,R))||R===void 0&&!(x in y))&&(y[x]=R)}function cr(y,x){for(var R=y.length;R--;)if(pn(y[R][0],x))return R;return-1}function ct(y,x){return y&&Br(x,yn(x),y)}function kr(y,x,R,j,de,ie,pe){var me;if(j&&(me=ie?j(y,de,ie,pe):j(y)),me!==void 0)return me;if(!yt(y))return y;var ke=fr(y);if(ke){if(me=ai(y),!x)return ii(y,me)}else{var Ee=Ot(y),qe=Ee==c||Ee==h;if(mn(y))return ur(y,x);if(Ee==p||Ee==i||qe&&!ie){if($e(y))return ie?y:{};if(me=dt(qe?{}:y),!x)return oi(y,ct(me,y))}else{if(!Q[Ee])return ie?y:{};me=Pt(y,Ee,kr,x)}}pe||(pe=new Ze);var Xe=pe.get(y);if(Xe)return Xe;if(pe.set(y,me),!ke)var Be=R?Fr(y):yn(y);return st(Be||y,function(Ge,Ue){Be&&(Ue=Ge,Ge=y[Ue]),cn(me,Ue,kr(Ge,x,R,j,Ue,y,pe))}),me}function Xn(y){return yt(y)?N(y):{}}function Jn(y,x,R){var j=x(y);return fr(y)?j:ut(j,R(y))}function Zn(y){return Ke.call(y)}function ei(y){if(!yt(y)||ui(y))return!1;var x=Ur(y)||$e(y)?Tr:J;return x.test(Qe(y))}function ti(y){if(!dn(y))return we(y);var x=[];for(var R in Object(y))rt.call(y,R)&&R!="constructor"&&x.push(R);return x}function ur(y,x){if(x)return y.slice();var R=new y.constructor(y.length);return y.copy(R),R}function Mr(y){var x=new y.constructor(y.byteLength);return new v(x).set(new v(y)),x}function Yt(y,x){var R=x?Mr(y.buffer):y.buffer;return new y.constructor(R,y.byteOffset,y.byteLength)}function un(y,x,R){var j=x?R(bt(y),!0):bt(y);return Et(j,Pe,new y.constructor)}function ln(y){var x=new y.constructor(y.source,z.exec(y));return x.lastIndex=y.lastIndex,x}function fn(y,x,R){var j=x?R(Rt(y),!0):Rt(y);return Et(j,Oe,new y.constructor)}function ri(y){return on?Object(on.call(y)):{}}function ni(y,x){var R=x?Mr(y.buffer):y.buffer;return new y.constructor(R,y.byteOffset,y.length)}function ii(y,x){var R=-1,j=y.length;for(x||(x=Array(j));++R<j;)x[R]=y[R];return x}function Br(y,x,R,j){R||(R={});for(var de=-1,ie=x.length;++de<ie;){var pe=x[de],me=j?j(R[pe],y[pe],pe,R,y):void 0;cn(R,pe,me===void 0?y[pe]:me)}return R}function oi(y,x){return Br(y,xt(y),x)}function Fr(y){return Jn(y,yn,xt)}function Kt(y,x){var R=y.__data__;return ci(x)?R[typeof x=="string"?"string":"hash"]:R.map}function ft(y,x){var R=Ye(y,x);return ei(R)?R:void 0}var xt=fe?Gt(fe,Object):vn,Ot=Zn;(Se&&Ot(new Se(new ArrayBuffer(1)))!=P||he&&Ot(new he)!=d||lt&&Ot(lt.resolve())!=m||ar&&Ot(new ar)!=T||xr&&Ot(new xr)!=A)&&(Ot=function(y){var x=Ke.call(y),R=x==p?y.constructor:void 0,j=R?Qe(R):void 0;if(j)switch(j){case Or:return P;case Vt:return d;case Ar:return m;case Cr:return T;case Rr:return A}return x});function ai(y){var x=y.length,R=y.constructor(x);return x&&typeof y[0]=="string"&&rt.call(y,"index")&&(R.index=y.index,R.input=y.input),R}function dt(y){return typeof y.constructor=="function"&&!dn(y)?Xn(C(y)):{}}function Pt(y,x,R,j){var de=y.constructor;switch(x){case w:return Mr(y);case a:case l:return new de(+y);case P:return Yt(y,j);case F:case B:case W:case G:case V:case H:case Y:case oe:case K:return ni(y,j);case d:return un(y,j,R);case u:case _:return new de(y);case E:return ln(y);case T:return fn(y,j,R);case b:return ri(y)}}function si(y,x){return x=x??o,!!x&&(typeof y=="number"||ae.test(y))&&y>-1&&y%1==0&&y<x}function ci(y){var x=typeof y;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?y!=="__proto__":y===null}function ui(y){return!!je&&je in y}function dn(y){var x=y&&y.constructor,R=typeof x=="function"&&x.prototype||wt;return y===R}function Qe(y){if(y!=null){try{return St.call(y)}catch{}try{return y+""}catch{}}return""}function hn(y){return kr(y,!0,!0)}function pn(y,x){return y===x||y!==y&&x!==x}function lr(y){return li(y)&&rt.call(y,"callee")&&(!U.call(y,"callee")||Ke.call(y)==i)}var fr=Array.isArray;function dr(y){return y!=null&&gn(y.length)&&!Ur(y)}function li(y){return Dr(y)&&dr(y)}var mn=be||fi;function Ur(y){var x=yt(y)?Ke.call(y):"";return x==c||x==h}function gn(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=o}function yt(y){var x=typeof y;return!!y&&(x=="object"||x=="function")}function Dr(y){return!!y&&typeof y=="object"}function yn(y){return dr(y)?sr(y):ti(y)}function vn(){return[]}function fi(){return!1}e.exports=hn})(jo,jo.exports);var $E=jo.exports;const jE=jt($E);var HE="Expected a function",Rp="__lodash_hash_undefined__",Np=1/0,qE=9007199254740991,GE="[object Function]",WE="[object GeneratorFunction]",VE="[object Symbol]",zE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YE=/^\w*$/,KE=/^\./,QE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,XE=/[\\^$.*+?()[\]{}|]/g,JE=/\\(\\)?/g,ZE=/^\[object .+?Constructor\]$/,eb=/^(?:0|[1-9]\d*)$/,tb=typeof ue=="object"&&ue&&ue.Object===Object&&ue,rb=typeof self=="object"&&self&&self.Object===Object&&self,Dc=tb||rb||Function("return this")();function nb(e,t){return e==null?void 0:e[t]}function ib(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var ob=Array.prototype,ab=Function.prototype,Pp=Object.prototype,As=Dc["__core-js_shared__"],$f=function(){var e=/[^.]+$/.exec(As&&As.keys&&As.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ip=ab.toString,Zo=Pp.hasOwnProperty,Lp=Pp.toString,sb=RegExp("^"+Ip.call(Zo).replace(XE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jf=Dc.Symbol,cb=ob.splice,ub=kp(Dc,"Map"),Gi=kp(Object,"create"),Hf=jf?jf.prototype:void 0,qf=Hf?Hf.toString:void 0;function Jr(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function lb(){this.__data__=Gi?Gi(null):{}}function fb(e){return this.has(e)&&delete this.__data__[e]}function db(e){var t=this.__data__;if(Gi){var n=t[e];return n===Rp?void 0:n}return Zo.call(t,e)?t[e]:void 0}function hb(e){var t=this.__data__;return Gi?t[e]!==void 0:Zo.call(t,e)}function pb(e,t){var n=this.__data__;return n[e]=Gi&&t===void 0?Rp:t,this}Jr.prototype.clear=lb;Jr.prototype.delete=fb;Jr.prototype.get=db;Jr.prototype.has=hb;Jr.prototype.set=pb;function Mn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function mb(){this.__data__=[]}function gb(e){var t=this.__data__,n=ea(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():cb.call(t,n,1),!0}function yb(e){var t=this.__data__,n=ea(t,e);return n<0?void 0:t[n][1]}function vb(e){return ea(this.__data__,e)>-1}function _b(e,t){var n=this.__data__,r=ea(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Mn.prototype.clear=mb;Mn.prototype.delete=gb;Mn.prototype.get=yb;Mn.prototype.has=vb;Mn.prototype.set=_b;function tn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Eb(){this.__data__={hash:new Jr,map:new(ub||Mn),string:new Jr}}function bb(e){return ta(this,e).delete(e)}function wb(e){return ta(this,e).get(e)}function Sb(e){return ta(this,e).has(e)}function Tb(e,t){return ta(this,e).set(e,t),this}tn.prototype.clear=Eb;tn.prototype.delete=bb;tn.prototype.get=wb;tn.prototype.has=Sb;tn.prototype.set=Tb;function xb(e,t,n){var r=e[t];(!(Zo.call(e,t)&&Mp(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function ea(e,t){for(var n=e.length;n--;)if(Mp(e[n][0],t))return n;return-1}function Ob(e){if(!Ho(e)||Lb(e))return!1;var t=Fb(e)||ib(e)?sb:ZE;return t.test(Bb(e))}function Ab(e,t,n,r){if(!Ho(e))return e;t=Pb(t,e)?[t]:Rb(t);for(var o=-1,i=t.length,s=i-1,a=e;a!=null&&++o<i;){var l=Mb(t[o]),f=n;if(o!=s){var c=a[l];f=r?r(c,l,a):void 0,f===void 0&&(f=Ho(c)?c:Nb(t[o+1])?[]:{})}xb(a,l,f),a=a[l]}return e}function Cb(e){if(typeof e=="string")return e;if(jc(e))return qf?qf.call(e):"";var t=e+"";return t=="0"&&1/e==-Np?"-0":t}function Rb(e){return Bp(e)?e:kb(e)}function ta(e,t){var n=e.__data__;return Ib(t)?n[typeof t=="string"?"string":"hash"]:n.map}function kp(e,t){var n=nb(e,t);return Ob(n)?n:void 0}function Nb(e,t){return t=t??qE,!!t&&(typeof e=="number"||eb.test(e))&&e>-1&&e%1==0&&e<t}function Pb(e,t){if(Bp(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||jc(e)?!0:YE.test(e)||!zE.test(e)||t!=null&&e in Object(t)}function Ib(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Lb(e){return!!$f&&$f in e}var kb=$c(function(e){e=Db(e);var t=[];return KE.test(e)&&t.push(""),e.replace(QE,function(n,r,o,i){t.push(o?i.replace(JE,"$1"):r||n)}),t});function Mb(e){if(typeof e=="string"||jc(e))return e;var t=e+"";return t=="0"&&1/e==-Np?"-0":t}function Bb(e){if(e!=null){try{return Ip.call(e)}catch{}try{return e+""}catch{}}return""}function $c(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(HE);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new($c.Cache||tn),n}$c.Cache=tn;function Mp(e,t){return e===t||e!==e&&t!==t}var Bp=Array.isArray;function Fb(e){var t=Ho(e)?Lp.call(e):"";return t==GE||t==WE}function Ho(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Ub(e){return!!e&&typeof e=="object"}function jc(e){return typeof e=="symbol"||Ub(e)&&Lp.call(e)==VE}function Db(e){return e==null?"":Cb(e)}function $b(e,t,n){return e==null?e:Ab(e,t,n)}var jb=$b;const Hb=jt(jb),qb=(e,t)=>{Array.isArray(t)||(t=[t]);const n=jE(e);return t.forEach(({type:r,value:o})=>{Hb(n,r,o)}),n},Fp=e=>{const t=[];return e.forEach(n=>{const r=parseInt(n);isNaN(r)||t.push(r)}),t.sort((n,r)=>n-r)},Up=(e,t,n)=>{let r=n.mobile;for(const o in t){const i=parseInt(String(t[o]));if(e>=i)r=n[i];else if(e<i)break}return r},Gf=(e,t="en")=>new Date(e).toLocaleString(t,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),Gb=e=>{let i;try{i=new Date().getTime()-new Date(e).getTime()}catch{return""}const s=i/36e5,a=Math.floor(i/864e5);if(a<1)return s<1?{path:"now"}:{path:"hours",number:Math.floor(s)};if(a<7)return{path:"days",number:a};const l=Math.floor(a/7);return l<=52?{path:"weeks",number:l}:{path:"years",number:Math.floor(a/365)}},Wb=e=>new Promise(t=>setTimeout(t,e)),Hc={apolitical:"Apolitical",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 (coming soon)",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_answer_likes:"{count, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_answer_likes_like:"Like this answer",discussion_answer_likes_unlike:"Unlike answer",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_reply_likes:"{count, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_reply_likes_like:"Like this reply",discussion_reply_likes_unlike:"Unlike reply",discussion_report_subject:"Report a post on Apolitical",discussion_report_body:`I'd like to report the {contentType} <{contentSlug}> at {contentUrl}.
61
+ */var qf;function jE(){return qf||(qf=1,function(e){const t=DE(),n=$E(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const S=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(S,g),S.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(S){if(S>o)throw new RangeError('The value "'+S+'" is invalid for option "size"');const g=new Uint8Array(S);return Object.setPrototypeOf(g,a.prototype),g}function a(S,g,v){if(typeof S=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(S)}return u(S,g,v)}a.poolSize=8192;function u(S,g,v){if(typeof S=="string")return d(S,g);if(ArrayBuffer.isView(S))return p(S);if(S==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S);if(He(S,ArrayBuffer)||S&&He(S.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(He(S,SharedArrayBuffer)||S&&He(S.buffer,SharedArrayBuffer)))return m(S,g,v);if(typeof S=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const C=S.valueOf&&S.valueOf();if(C!=null&&C!==S)return a.from(C,g,v);const P=E(S);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof S[Symbol.toPrimitive]=="function")return a.from(S[Symbol.toPrimitive]("string"),g,v);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S)}a.from=function(S,g,v){return u(S,g,v)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function f(S){if(typeof S!="number")throw new TypeError('"size" argument must be of type number');if(S<0)throw new RangeError('The value "'+S+'" is invalid for option "size"')}function c(S,g,v){return f(S),S<=0?s(S):g!==void 0?typeof v=="string"?s(S).fill(g,v):s(S).fill(g):s(S)}a.alloc=function(S,g,v){return c(S,g,v)};function h(S){return f(S),s(S<0?0:T(S)|0)}a.allocUnsafe=function(S){return h(S)},a.allocUnsafeSlow=function(S){return h(S)};function d(S,g){if((typeof g!="string"||g==="")&&(g="utf8"),!a.isEncoding(g))throw new TypeError("Unknown encoding: "+g);const v=b(S,g)|0;let C=s(v);const P=C.write(S,g);return P!==v&&(C=C.slice(0,P)),C}function l(S){const g=S.length<0?0:T(S.length)|0,v=s(g);for(let C=0;C<g;C+=1)v[C]=S[C]&255;return v}function p(S){if(He(S,Uint8Array)){const g=new Uint8Array(S);return m(g.buffer,g.byteOffset,g.byteLength)}return l(S)}function m(S,g,v){if(g<0||S.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(S.byteLength<g+(v||0))throw new RangeError('"length" is outside of buffer bounds');let C;return g===void 0&&v===void 0?C=new Uint8Array(S):v===void 0?C=new Uint8Array(S,g):C=new Uint8Array(S,g,v),Object.setPrototypeOf(C,a.prototype),C}function E(S){if(a.isBuffer(S)){const g=T(S.length)|0,v=s(g);return v.length===0||S.copy(v,0,0,g),v}if(S.length!==void 0)return typeof S.length!="number"||St(S.length)?s(0):l(S);if(S.type==="Buffer"&&Array.isArray(S.data))return l(S.data)}function T(S){if(S>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return S|0}function _(S){return+S!=S&&(S=0),a.alloc(+S)}a.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==a.prototype},a.compare=function(g,v){if(He(g,Uint8Array)&&(g=a.from(g,g.offset,g.byteLength)),He(v,Uint8Array)&&(v=a.from(v,v.offset,v.byteLength)),!a.isBuffer(g)||!a.isBuffer(v))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===v)return 0;let C=g.length,P=v.length;for(let U=0,q=Math.min(C,P);U<q;++U)if(g[U]!==v[U]){C=g[U],P=v[U];break}return C<P?-1:P<C?1:0},a.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}},a.concat=function(g,v){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return a.alloc(0);let C;if(v===void 0)for(v=0,C=0;C<g.length;++C)v+=g[C].length;const P=a.allocUnsafe(v);let U=0;for(C=0;C<g.length;++C){let q=g[C];if(He(q,Uint8Array))U+q.length>P.length?(a.isBuffer(q)||(q=a.from(q)),q.copy(P,U)):Uint8Array.prototype.set.call(P,q,U);else if(a.isBuffer(q))q.copy(P,U);else throw new TypeError('"list" argument must be an Array of Buffers');U+=q.length}return P};function b(S,g){if(a.isBuffer(S))return S.length;if(ArrayBuffer.isView(S)||He(S,ArrayBuffer))return S.byteLength;if(typeof S!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof S);const v=S.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&v===0)return 0;let P=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":return Rt(S).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v*2;case"hex":return v>>>1;case"base64":return wt(S).length;default:if(P)return C?-1:Rt(S).length;g=(""+g).toLowerCase(),P=!0}}a.byteLength=b;function A(S,g,v){let C=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((v===void 0||v>this.length)&&(v=this.length),v<=0)||(v>>>=0,g>>>=0,v<=g))return"";for(S||(S="utf8");;)switch(S){case"hex":return de(this,g,v);case"utf8":case"utf-8":return oe(this,g,v);case"ascii":return z(this,g,v);case"latin1":case"binary":return Z(this,g,v);case"base64":return Y(this,g,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,g,v);default:if(C)throw new TypeError("Unknown encoding: "+S);S=(S+"").toLowerCase(),C=!0}}a.prototype._isBuffer=!0;function w(S,g,v){const C=S[g];S[g]=S[v],S[v]=C}a.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 v=0;v<g;v+=2)w(this,v,v+1);return this},a.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 v=0;v<g;v+=4)w(this,v,v+3),w(this,v+1,v+2);return this},a.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 v=0;v<g;v+=8)w(this,v,v+7),w(this,v+1,v+6),w(this,v+2,v+5),w(this,v+3,v+4);return this},a.prototype.toString=function(){const g=this.length;return g===0?"":arguments.length===0?oe(this,0,g):A.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(g){if(!a.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:a.compare(this,g)===0},a.prototype.inspect=function(){let g="";const v=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,v).replace(/(.{2})/g,"$1 ").trim(),this.length>v&&(g+=" ... "),"<Buffer "+g+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(g,v,C,P,U){if(He(g,Uint8Array)&&(g=a.from(g,g.offset,g.byteLength)),!a.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(v===void 0&&(v=0),C===void 0&&(C=g?g.length:0),P===void 0&&(P=0),U===void 0&&(U=this.length),v<0||C>g.length||P<0||U>this.length)throw new RangeError("out of range index");if(P>=U&&v>=C)return 0;if(P>=U)return-1;if(v>=C)return 1;if(v>>>=0,C>>>=0,P>>>=0,U>>>=0,this===g)return 0;let q=U-P,le=C-v;const we=Math.min(q,le),Se=this.slice(P,U),Te=g.slice(v,C);for(let he=0;he<we;++he)if(Se[he]!==Te[he]){q=Se[he],le=Te[he];break}return q<le?-1:le<q?1:0};function N(S,g,v,C,P){if(S.length===0)return-1;if(typeof v=="string"?(C=v,v=0):v>2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),v=+v,St(v)&&(v=P?0:S.length-1),v<0&&(v=S.length+v),v>=S.length){if(P)return-1;v=S.length-1}else if(v<0)if(P)v=0;else return-1;if(typeof g=="string"&&(g=a.from(g,C)),a.isBuffer(g))return g.length===0?-1:F(S,g,v,C,P);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(S,g,v):Uint8Array.prototype.lastIndexOf.call(S,g,v):F(S,[g],v,C,P);throw new TypeError("val must be string, number or Buffer")}function F(S,g,v,C,P){let U=1,q=S.length,le=g.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(S.length<2||g.length<2)return-1;U=2,q/=2,le/=2,v/=2}function we(Te,he){return U===1?Te[he]:Te.readUInt16BE(he*U)}let Se;if(P){let Te=-1;for(Se=v;Se<q;Se++)if(we(S,Se)===we(g,Te===-1?0:Se-Te)){if(Te===-1&&(Te=Se),Se-Te+1===le)return Te*U}else Te!==-1&&(Se-=Se-Te),Te=-1}else for(v+le>q&&(v=q-le),Se=v;Se>=0;Se--){let Te=!0;for(let he=0;he<le;he++)if(we(S,Se+he)!==we(g,he)){Te=!1;break}if(Te)return Se}return-1}a.prototype.includes=function(g,v,C){return this.indexOf(g,v,C)!==-1},a.prototype.indexOf=function(g,v,C){return N(this,g,v,C,!0)},a.prototype.lastIndexOf=function(g,v,C){return N(this,g,v,C,!1)};function B(S,g,v,C){v=Number(v)||0;const P=S.length-v;C?(C=Number(C),C>P&&(C=P)):C=P;const U=g.length;C>U/2&&(C=U/2);let q;for(q=0;q<C;++q){const le=parseInt(g.substr(q*2,2),16);if(St(le))return q;S[v+q]=le}return q}function G(S,g,v,C){return gt(Rt(g,S.length-v),S,v,C)}function W(S,g,v,C){return gt(mt(g),S,v,C)}function V(S,g,v,C){return gt(wt(g),S,v,C)}function H(S,g,v,C){return gt(Sr(g,S.length-v),S,v,C)}a.prototype.write=function(g,v,C,P){if(v===void 0)P="utf8",C=this.length,v=0;else if(C===void 0&&typeof v=="string")P=v,C=this.length,v=0;else if(isFinite(v))v=v>>>0,isFinite(C)?(C=C>>>0,P===void 0&&(P="utf8")):(P=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const U=this.length-v;if((C===void 0||C>U)&&(C=U),g.length>0&&(C<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");let q=!1;for(;;)switch(P){case"hex":return B(this,g,v,C);case"utf8":case"utf-8":return G(this,g,v,C);case"ascii":case"latin1":case"binary":return W(this,g,v,C);case"base64":return V(this,g,v,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,g,v,C);default:if(q)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),q=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(S,g,v){return g===0&&v===S.length?t.fromByteArray(S):t.fromByteArray(S.slice(g,v))}function oe(S,g,v){v=Math.min(S.length,v);const C=[];let P=g;for(;P<v;){const U=S[P];let q=null,le=U>239?4:U>223?3:U>191?2:1;if(P+le<=v){let we,Se,Te,he;switch(le){case 1:U<128&&(q=U);break;case 2:we=S[P+1],(we&192)===128&&(he=(U&31)<<6|we&63,he>127&&(q=he));break;case 3:we=S[P+1],Se=S[P+2],(we&192)===128&&(Se&192)===128&&(he=(U&15)<<12|(we&63)<<6|Se&63,he>2047&&(he<55296||he>57343)&&(q=he));break;case 4:we=S[P+1],Se=S[P+2],Te=S[P+3],(we&192)===128&&(Se&192)===128&&(Te&192)===128&&(he=(U&15)<<18|(we&63)<<12|(Se&63)<<6|Te&63,he>65535&&he<1114112&&(q=he))}}q===null?(q=65533,le=1):q>65535&&(q-=65536,C.push(q>>>10&1023|55296),q=56320|q&1023),C.push(q),P+=le}return M(C)}const Q=4096;function M(S){const g=S.length;if(g<=Q)return String.fromCharCode.apply(String,S);let v="",C=0;for(;C<g;)v+=String.fromCharCode.apply(String,S.slice(C,C+=Q));return v}function z(S,g,v){let C="";v=Math.min(S.length,v);for(let P=g;P<v;++P)C+=String.fromCharCode(S[P]&127);return C}function Z(S,g,v){let C="";v=Math.min(S.length,v);for(let P=g;P<v;++P)C+=String.fromCharCode(S[P]);return C}function de(S,g,v){const C=S.length;(!g||g<0)&&(g=0),(!v||v<0||v>C)&&(v=C);let P="";for(let U=g;U<v;++U)P+=nt[S[U]];return P}function X(S,g,v){const C=S.slice(g,v);let P="";for(let U=0;U<C.length-1;U+=2)P+=String.fromCharCode(C[U]+C[U+1]*256);return P}a.prototype.slice=function(g,v){const C=this.length;g=~~g,v=v===void 0?C:~~v,g<0?(g+=C,g<0&&(g=0)):g>C&&(g=C),v<0?(v+=C,v<0&&(v=0)):v>C&&(v=C),v<g&&(v=g);const P=this.subarray(g,v);return Object.setPrototypeOf(P,a.prototype),P};function K(S,g,v){if(S%1!==0||S<0)throw new RangeError("offset is not uint");if(S+g>v)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(g,v,C){g=g>>>0,v=v>>>0,C||K(g,v,this.length);let P=this[g],U=1,q=0;for(;++q<v&&(U*=256);)P+=this[g+q]*U;return P},a.prototype.readUintBE=a.prototype.readUIntBE=function(g,v,C){g=g>>>0,v=v>>>0,C||K(g,v,this.length);let P=this[g+--v],U=1;for(;v>0&&(U*=256);)P+=this[g+--v]*U;return P},a.prototype.readUint8=a.prototype.readUInt8=function(g,v){return g=g>>>0,v||K(g,1,this.length),this[g]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(g,v){return g=g>>>0,v||K(g,2,this.length),this[g]|this[g+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(g,v){return g=g>>>0,v||K(g,2,this.length),this[g]<<8|this[g+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(g,v){return g=g>>>0,v||K(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(g,v){return g=g>>>0,v||K(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},a.prototype.readBigUInt64LE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&je(g,this.length-8);const P=v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24,U=this[++g]+this[++g]*2**8+this[++g]*2**16+C*2**24;return BigInt(P)+(BigInt(U)<<BigInt(32))}),a.prototype.readBigUInt64BE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&je(g,this.length-8);const P=v*2**24+this[++g]*2**16+this[++g]*2**8+this[++g],U=this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C;return(BigInt(P)<<BigInt(32))+BigInt(U)}),a.prototype.readIntLE=function(g,v,C){g=g>>>0,v=v>>>0,C||K(g,v,this.length);let P=this[g],U=1,q=0;for(;++q<v&&(U*=256);)P+=this[g+q]*U;return U*=128,P>=U&&(P-=Math.pow(2,8*v)),P},a.prototype.readIntBE=function(g,v,C){g=g>>>0,v=v>>>0,C||K(g,v,this.length);let P=v,U=1,q=this[g+--P];for(;P>0&&(U*=256);)q+=this[g+--P]*U;return U*=128,q>=U&&(q-=Math.pow(2,8*v)),q},a.prototype.readInt8=function(g,v){return g=g>>>0,v||K(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},a.prototype.readInt16LE=function(g,v){g=g>>>0,v||K(g,2,this.length);const C=this[g]|this[g+1]<<8;return C&32768?C|4294901760:C},a.prototype.readInt16BE=function(g,v){g=g>>>0,v||K(g,2,this.length);const C=this[g+1]|this[g]<<8;return C&32768?C|4294901760:C},a.prototype.readInt32LE=function(g,v){return g=g>>>0,v||K(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},a.prototype.readInt32BE=function(g,v){return g=g>>>0,v||K(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},a.prototype.readBigInt64LE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&je(g,this.length-8);const P=this[g+4]+this[g+5]*2**8+this[g+6]*2**16+(C<<24);return(BigInt(P)<<BigInt(32))+BigInt(v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24)}),a.prototype.readBigInt64BE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&je(g,this.length-8);const P=(v<<24)+this[++g]*2**16+this[++g]*2**8+this[++g];return(BigInt(P)<<BigInt(32))+BigInt(this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C)}),a.prototype.readFloatLE=function(g,v){return g=g>>>0,v||K(g,4,this.length),n.read(this,g,!0,23,4)},a.prototype.readFloatBE=function(g,v){return g=g>>>0,v||K(g,4,this.length),n.read(this,g,!1,23,4)},a.prototype.readDoubleLE=function(g,v){return g=g>>>0,v||K(g,8,this.length),n.read(this,g,!0,52,8)},a.prototype.readDoubleBE=function(g,v){return g=g>>>0,v||K(g,8,this.length),n.read(this,g,!1,52,8)};function se(S,g,v,C,P,U){if(!a.isBuffer(S))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>P||g<U)throw new RangeError('"value" argument is out of bounds');if(v+C>S.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(g,v,C,P){if(g=+g,v=v>>>0,C=C>>>0,!P){const le=Math.pow(2,8*C)-1;se(this,g,v,C,le,0)}let U=1,q=0;for(this[v]=g&255;++q<C&&(U*=256);)this[v+q]=g/U&255;return v+C},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(g,v,C,P){if(g=+g,v=v>>>0,C=C>>>0,!P){const le=Math.pow(2,8*C)-1;se(this,g,v,C,le,0)}let U=C-1,q=1;for(this[v+U]=g&255;--U>=0&&(q*=256);)this[v+U]=g/q&255;return v+C},a.prototype.writeUint8=a.prototype.writeUInt8=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,1,255,0),this[v]=g&255,v+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,2,65535,0),this[v]=g&255,this[v+1]=g>>>8,v+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,2,65535,0),this[v]=g>>>8,this[v+1]=g&255,v+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,4,4294967295,0),this[v+3]=g>>>24,this[v+2]=g>>>16,this[v+1]=g>>>8,this[v]=g&255,v+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,4,4294967295,0),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4};function ue(S,g,v,C,P){te(g,C,P,S,v,7);let U=Number(g&BigInt(4294967295));S[v++]=U,U=U>>8,S[v++]=U,U=U>>8,S[v++]=U,U=U>>8,S[v++]=U;let q=Number(g>>BigInt(32)&BigInt(4294967295));return S[v++]=q,q=q>>8,S[v++]=q,q=q>>8,S[v++]=q,q=q>>8,S[v++]=q,v}function Fe(S,g,v,C,P){te(g,C,P,S,v,7);let U=Number(g&BigInt(4294967295));S[v+7]=U,U=U>>8,S[v+6]=U,U=U>>8,S[v+5]=U,U=U>>8,S[v+4]=U;let q=Number(g>>BigInt(32)&BigInt(4294967295));return S[v+3]=q,q=q>>8,S[v+2]=q,q=q>>8,S[v+1]=q,q=q>>8,S[v]=q,v+8}a.prototype.writeBigUInt64LE=Ke(function(g,v=0){return ue(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Ke(function(g,v=0){return Fe(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(g,v,C,P){if(g=+g,v=v>>>0,!P){const we=Math.pow(2,8*C-1);se(this,g,v,C,we-1,-we)}let U=0,q=1,le=0;for(this[v]=g&255;++U<C&&(q*=256);)g<0&&le===0&&this[v+U-1]!==0&&(le=1),this[v+U]=(g/q>>0)-le&255;return v+C},a.prototype.writeIntBE=function(g,v,C,P){if(g=+g,v=v>>>0,!P){const we=Math.pow(2,8*C-1);se(this,g,v,C,we-1,-we)}let U=C-1,q=1,le=0;for(this[v+U]=g&255;--U>=0&&(q*=256);)g<0&&le===0&&this[v+U+1]!==0&&(le=1),this[v+U]=(g/q>>0)-le&255;return v+C},a.prototype.writeInt8=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,1,127,-128),g<0&&(g=255+g+1),this[v]=g&255,v+1},a.prototype.writeInt16LE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,2,32767,-32768),this[v]=g&255,this[v+1]=g>>>8,v+2},a.prototype.writeInt16BE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,2,32767,-32768),this[v]=g>>>8,this[v+1]=g&255,v+2},a.prototype.writeInt32LE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,4,2147483647,-2147483648),this[v]=g&255,this[v+1]=g>>>8,this[v+2]=g>>>16,this[v+3]=g>>>24,v+4},a.prototype.writeInt32BE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4},a.prototype.writeBigInt64LE=Ke(function(g,v=0){return ue(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Ke(function(g,v=0){return Fe(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function J(S,g,v,C,P,U){if(v+C>S.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function re(S,g,v,C,P){return g=+g,v=v>>>0,P||J(S,g,v,4),n.write(S,g,v,C,23,4),v+4}a.prototype.writeFloatLE=function(g,v,C){return re(this,g,v,!0,C)},a.prototype.writeFloatBE=function(g,v,C){return re(this,g,v,!1,C)};function Pe(S,g,v,C,P){return g=+g,v=v>>>0,P||J(S,g,v,8),n.write(S,g,v,C,52,8),v+8}a.prototype.writeDoubleLE=function(g,v,C){return Pe(this,g,v,!0,C)},a.prototype.writeDoubleBE=function(g,v,C){return Pe(this,g,v,!1,C)},a.prototype.copy=function(g,v,C,P){if(!a.isBuffer(g))throw new TypeError("argument should be a Buffer");if(C||(C=0),!P&&P!==0&&(P=this.length),v>=g.length&&(v=g.length),v||(v=0),P>0&&P<C&&(P=C),P===C||g.length===0||this.length===0)return 0;if(v<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),g.length-v<P-C&&(P=g.length-v+C);const U=P-C;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(v,C,P):Uint8Array.prototype.set.call(g,this.subarray(C,P),v),U},a.prototype.fill=function(g,v,C,P){if(typeof g=="string"){if(typeof v=="string"?(P=v,v=0,C=this.length):typeof C=="string"&&(P=C,C=this.length),P!==void 0&&typeof P!="string")throw new TypeError("encoding must be a string");if(typeof P=="string"&&!a.isEncoding(P))throw new TypeError("Unknown encoding: "+P);if(g.length===1){const q=g.charCodeAt(0);(P==="utf8"&&q<128||P==="latin1")&&(g=q)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(v<0||this.length<v||this.length<C)throw new RangeError("Out of range index");if(C<=v)return this;v=v>>>0,C=C===void 0?this.length:C>>>0,g||(g=0);let U;if(typeof g=="number")for(U=v;U<C;++U)this[U]=g;else{const q=a.isBuffer(g)?g:a.from(g,P),le=q.length;if(le===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(U=0;U<C-v;++U)this[U+v]=q[U%le]}return this};const Ae={};function st(S,g,v){Ae[S]=class extends v{constructor(){super(),Object.defineProperty(this,"message",{value:g.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${S}]`,this.stack,delete this.name}get code(){return S}set code(P){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:P,writable:!0})}toString(){return`${this.name} [${S}]: ${this.message}`}}}st("ERR_BUFFER_OUT_OF_BOUNDS",function(S){return S?`${S} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),st("ERR_INVALID_ARG_TYPE",function(S,g){return`The "${S}" argument must be of type number. Received type ${typeof g}`},TypeError),st("ERR_OUT_OF_RANGE",function(S,g,v){let C=`The value of "${S}" is out of range.`,P=v;return Number.isInteger(v)&&Math.abs(v)>2**32?P=ut(String(v)):typeof v=="bigint"&&(P=String(v),(v>BigInt(2)**BigInt(32)||v<-(BigInt(2)**BigInt(32)))&&(P=ut(P)),P+="n"),C+=` It must be ${g}. Received ${P}`,C},RangeError);function ut(S){let g="",v=S.length;const C=S[0]==="-"?1:0;for(;v>=C+4;v-=3)g=`_${S.slice(v-3,v)}${g}`;return`${S.slice(0,v)}${g}`}function Et(S,g,v){Ye(g,"offset"),(S[g]===void 0||S[g+v]===void 0)&&je(g,S.length-(v+1))}function te(S,g,v,C,P,U){if(S>v||S<g){const q=typeof g=="bigint"?"n":"";let le;throw U>3?g===0||g===BigInt(0)?le=`>= 0${q} and < 2${q} ** ${(U+1)*8}${q}`:le=`>= -(2${q} ** ${(U+1)*8-1}${q}) and < 2 ** ${(U+1)*8-1}${q}`:le=`>= ${g}${q} and <= ${v}${q}`,new Ae.ERR_OUT_OF_RANGE("value",le,S)}Et(C,P,U)}function Ye(S,g){if(typeof S!="number")throw new Ae.ERR_INVALID_ARG_TYPE(g,"number",S)}function je(S,g,v){throw Math.floor(S)!==S?(Ye(S,v),new Ae.ERR_OUT_OF_RANGE(v||"offset","an integer",S)):g<0?new Ae.ERR_BUFFER_OUT_OF_BOUNDS:new Ae.ERR_OUT_OF_RANGE(v||"offset",`>= ${v?1:0} and <= ${g}`,S)}const bt=/[^+/0-9A-Za-z-_]/g;function Gt(S){if(S=S.split("=")[0],S=S.trim().replace(bt,""),S.length<2)return"";for(;S.length%4!==0;)S=S+"=";return S}function Rt(S,g){g=g||1/0;let v;const C=S.length;let P=null;const U=[];for(let q=0;q<C;++q){if(v=S.charCodeAt(q),v>55295&&v<57344){if(!P){if(v>56319){(g-=3)>-1&&U.push(239,191,189);continue}else if(q+1===C){(g-=3)>-1&&U.push(239,191,189);continue}P=v;continue}if(v<56320){(g-=3)>-1&&U.push(239,191,189),P=v;continue}v=(P-55296<<10|v-56320)+65536}else P&&(g-=3)>-1&&U.push(239,191,189);if(P=null,v<128){if((g-=1)<0)break;U.push(v)}else if(v<2048){if((g-=2)<0)break;U.push(v>>6|192,v&63|128)}else if(v<65536){if((g-=3)<0)break;U.push(v>>12|224,v>>6&63|128,v&63|128)}else if(v<1114112){if((g-=4)<0)break;U.push(v>>18|240,v>>12&63|128,v>>6&63|128,v&63|128)}else throw new Error("Invalid code point")}return U}function mt(S){const g=[];for(let v=0;v<S.length;++v)g.push(S.charCodeAt(v)&255);return g}function Sr(S,g){let v,C,P;const U=[];for(let q=0;q<S.length&&!((g-=2)<0);++q)v=S.charCodeAt(q),C=v>>8,P=v%256,U.push(P),U.push(C);return U}function wt(S){return t.toByteArray(Gt(S))}function gt(S,g,v,C){let P;for(P=0;P<C&&!(P+v>=g.length||P>=S.length);++P)g[P+v]=S[P];return P}function He(S,g){return S instanceof g||S!=null&&S.constructor!=null&&S.constructor.name!=null&&S.constructor.name===g.name}function St(S){return S!==S}const nt=function(){const S="0123456789abcdef",g=new Array(256);for(let v=0;v<16;++v){const C=v*16;for(let P=0;P<16;++P)g[C+P]=S[v]+S[P]}return g}();function Ke(S){return typeof BigInt>"u"?Tr:S}function Tr(){throw new Error("BigInt not supported")}}(As)),As}(function(e,t){(function(n,r){e.exports=r(Q_(),cE(),hE(),Vd(),EE,UE(),jE())})(ce,function(n,r,o,i,s,a,u){return function(){var f={809:function(l){l.exports=n},30:function(l){l.exports=r},36:function(l){l.exports=o},300:function(l){l.exports=i},408:function(l){l.exports=u},25:function(l){l.exports=s},130:function(l){l.exports=a}},c={};function h(l){var p=c[l];if(p!==void 0)return p.exports;var m=c[l]={exports:{}};return f[l](m,m.exports,h),m.exports}h.n=function(l){var p=l&&l.__esModule?function(){return l.default}:function(){return l};return h.d(p,{a:p}),p},h.d=function(l,p){for(var m in p)h.o(p,m)&&!h.o(l,m)&&Object.defineProperty(l,m,{enumerable:!0,get:p[m]})},h.o=function(l,p){return Object.prototype.hasOwnProperty.call(l,p)},h.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var d={};return function(){h.r(d),h.d(d,{assets:function(){return M},auth:function(){return K},buildAnswer:function(){return bg},buildCarouselCard:function(){return Eg},buildQuestion:function(){return Be},carouselCards:function(){return _n},contentInteraction:function(){return Ke},decodeBase64:function(){return Sg},default:function(){return Tg},editorialPages:function(){return j},features:function(){return v},getEntries:function(){return l.getEntries},getEntry:function(){return l.getEntry},management:function(){return Or},payments:function(){return Rr},people:function(){return Pt},peopleEngagement:function(){return fr},qaQuestions:function(){return Xe},reportError:function(){return p.reportError},search:function(){return yn}});var l=h(809),p=h(30),m=h(36),E={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:T,LOCALHOST:_,STAGING:b,STAGING_SPLITTER:A},ENVIRONMENTS:{PRODUCTION:w,LOCAL:N}}}=E,{HUBSPOT:{ENVIRONMENTS_MAPPING:F,EMAIL_IDS:B}}=E;let G={emailIds:{}};var W=h(300),V=h.n(W);const H=async I=>{try{const{message:k,response:L,request:$}=I;let ee=k;return L?ee+=` - The request was made and the server responded with ${JSON.stringify({status:L.status,data:L.data})}`:$&&(ee+=" - The request was made but no response was received"),console.warn(ee),await(0,p.reportError)(new Error(ee)),ee}catch(k){return console.warn(`Cannot handle error: ${k.message}`),k.message}},{APIS:{ASSETS_API:{BASE_URL:Y,ENDPOINTS:{USERS:oe,CERTIFICATES:Q}}}}=E;var M={certificates:{create:async(I,k)=>{let L=[];try{const{data:$}=await V().post(`${Y}${oe}/${I}${Q}`,k);$&&(L=$)}catch($){await H($)}return L}}};const{APIS:{AUTH_API:{BASE_URL:z,ENDPOINTS:{USER_PASSWORD:Z,USERS:de}}},USERS:{MYSELF:X}}=E;var K={userPassword:{update:async I=>{let k=null;try{k=await V().put(`${z}${de}/${X}${Z}`,I)}catch(L){k={message:(((L||{}).response||{}).data||{}).message},await H(L)}return k}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:se,ENDPOINTS:{ANSWERS:ue,QUESTIONS:Fe,LIKES:J}}}}=E,re=`${se}${Fe}`;var Pe={create:async({questionSlug:I},k)=>{try{await V().post(`${re}/${encodeURIComponent(I)}${ue}`,k)}catch(L){const $=await H(L);throw new Error($)}},remove:async({questionSlug:I,answerSlug:k})=>{try{await V().delete(`${re}/${encodeURIComponent(I)}${ue}/${encodeURIComponent(k)}`)}catch(L){const $=await H(L);throw new Error($)}},update:async({questionSlug:I,answerSlug:k},L)=>{try{return await V().put(`${re}/${encodeURIComponent(I)}${ue}/${encodeURIComponent(k)}`,L)}catch($){const ee=await H($);throw new Error(ee)}},like:async({questionSlug:I,answerSlug:k},L)=>{try{return await V().post(`${re}/${encodeURIComponent(I)}${ue}/${encodeURIComponent(k)}${J}`,L)}catch($){const ee=await H($);throw new Error(ee)}},unlike:async({questionSlug:I,answerSlug:k})=>{try{return await V().delete(`${re}/${encodeURIComponent(I)}${ue}/${encodeURIComponent(k)}${J}`)}catch(L){const $=await H(L);throw new Error($)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Ae,ENDPOINTS:{QUESTIONS:st}}}}=E,ut=`${Ae}${st}`;var Et={create:async I=>{try{return await V().post(ut,I)}catch(k){const L=await H(k);throw new Error(L)}},remove:async({questionSlug:I})=>{try{await V().delete(`${ut}/${encodeURIComponent(I)}`)}catch(k){const L=await H(k);throw new Error(L)}},update:async({questionSlug:I},k)=>{try{return await V().put(`${ut}/${encodeURIComponent(I)}`,k)}catch(L){const $=await H(L);throw new Error($)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:te,ENDPOINTS:{REPLIES:Ye,ANSWERS:je,QUESTIONS:bt,LIKES:Gt}}}}=E,Rt=`${te}${bt}`,mt=({questionSlug:I,answerSlug:k,replySlug:L},$=!1)=>{let ee=`${Rt}/${encodeURIComponent(I)}${je}/${encodeURIComponent(k)}${Ye}`;return L&&(ee=`${ee}/${encodeURIComponent(L)}`,$&&(ee=`${ee}${Gt}`)),ee};var Sr={create:async({questionSlug:I,answerSlug:k},L)=>{try{return await V().post(mt({questionSlug:I,answerSlug:k}),L)}catch($){const ee=await H($);throw new Error(ee)}},update:async({questionSlug:I,answerSlug:k,replySlug:L},$)=>{try{return await V().put(mt({questionSlug:I,answerSlug:k,replySlug:L}),$)}catch(ee){const xe=await H(ee);throw new Error(xe)}},remove:async({questionSlug:I,answerSlug:k,replySlug:L})=>{try{await V().delete(mt({questionSlug:I,answerSlug:k,replySlug:L}))}catch($){const ee=await H($);throw new Error(ee)}},like:async({questionSlug:I,answerSlug:k,replySlug:L},$)=>{try{await V().post(mt({questionSlug:I,answerSlug:k,replySlug:L},!0),$)}catch(ee){const xe=await H(ee);throw new Error(xe)}},unlike:async({questionSlug:I,answerSlug:k,replySlug:L})=>{try{await V().delete(mt({questionSlug:I,answerSlug:k,replySlug:L},!0))}catch($){const ee=await H($);throw new Error(ee)}},getReplyUrl:mt};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:wt,ENDPOINTS:{QUESTIONS:gt,ANSWERS:He,LIKES:St}}}}=E,nt=`${wt}${gt}`;var Ke={answers:Pe,questions:Et,replies:Sr,likes:{create:async(I,k)=>{try{return await V().post(`${nt}/${encodeURIComponent(I)}${He}/${encodeURIComponent(k)}${St}`)}catch(L){const $=await H(L);throw new Error($)}},remove:async(I,k)=>{try{return await V().delete(`${nt}/${encodeURIComponent(I)}${He}/${encodeURIComponent(k)}${St}`)}catch(L){const $=await H(L);throw new Error($)}}}};const{APIS:{FEATURES_API:{BASE_URL:Tr,ENDPOINTS:{FLAGS:S}}}}=E,g=`${Tr}${S}`;var v={flags:{read:async I=>{let k=null;try{const{data:L}=await V().get(`${g}/${encodeURIComponent(I)}`);L!=null&&L.name&&(L!=null&&L.featureState)&&(k=L)}catch(L){await H(L)}return k}}};const{APIS:{MANAGEMENT_API:{BASE_URL:C,ENDPOINTS:{ACCOUNTS:P}}}}=E;var U={create:async I=>{try{await V().post(`${C}${P}`,I)}catch(k){throw await H(k),k}},read:async I=>{let k=null;try{({data:k}=await V().get(`${C}${P}/${encodeURIComponent(I)}`))}catch(L){await H(L)}return k},update:async(I,k)=>{try{await V().put(`${C}${P}/${encodeURIComponent(I)}`,k)}catch(L){throw await H(L),L}}};const{APIS:{MANAGEMENT_API:{BASE_URL:q,ENDPOINTS:{BULK_ENROLMENTS:le}}}}=E;var we={create:async I=>{try{await V().post(`${q}${le}`,I)}catch(k){throw await H(k),k}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Se,ENDPOINTS:{EVENT_REGISTRATIONS:Te}}}}=E;var he={create:async I=>{try{await V().post(`${Se}${Te}`,I)}catch(k){const L=await H(k);throw new Error(L)}}};const{APIS:{MANAGEMENT_API:{BASE_URL:lt,ENDPOINTS:{LOGINS:ar,LOGIN_PASSWORDLESS:xr}}}}=E,Wt=`${lt}${ar}`;var Or={accounts:U,bulkEnrolments:we,eventRegistrations:he,passwordless:{update:async I=>{try{await V().put(`${Wt}/${encodeURIComponent(I)}${xr}`)}catch(k){throw await H(k),k}}}};const{APIS:{PAYMENTS_API:{BASE_URL_V2:Vt,ENDPOINTS:{PRODUCTS:Ar}}}}=E,Cr=`${Vt}${Ar}`;var Rr={products:{list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(Cr,L);$&&$.length&&(k=$)}catch($){await H($)}return k}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Nt,ENDPOINTS:{BULK_ENROLMENTS:an}}}}=E;var Tt={list:async I=>{let k=[];try{const{data:L}=await V().get(`${Nt}${an}`,{params:I});L&&L.length&&(k=L)}catch(L){await H(L)}return k}},Dn=h(25);const{OK:$n,MULTIPLE_CHOICES:jn,NOT_FOUND:sn,FORBIDDEN:Nr}=Dn.StatusCodes,Ue=I=>I>=$n&&I<jn||I===Nr||I===sn,{APIS:{PEOPLE_API:{BASE_URL_V2:Pr,ENDPOINTS:{USERS:Ir}}}}=E,zt=async I=>{let k=null;try{const{data:L}=await V().get(`${Pr}${Ir}/${encodeURIComponent(I)}`,{validateStatus:Ue});L&&L.id&&(k=L)}catch(L){await H(L)}return k},cn=async I=>{let k=[];try{if(I&&I.length<2)throw new Error("users list method requires at least two ids");const L=I.map(ee=>`ids=${encodeURIComponent(ee)}`).join("&"),$=await V().get(`${Pr}${Ir}?${L}`,{validateStatus:Ue});$&&$.length&&(k=$)}catch(L){await H(L)}return k};var Hn={read:zt,update:async(I,k)=>{let L=!1;try{const{data:$}=await V().put(`${Pr}${Ir}/${encodeURIComponent(I)}`,k);L=!(!$||!$.id)}catch($){await H($)}return L},list:cn};const{APIS:{PEOPLE_API:{BASE_URL_V2:qe,ENDPOINTS:{USERS:qn,USER_LIKES:Gn}}},USERS:{MYSELF:Wn}}=E,Vn=`${qe}${qn}/${Wn}${Gn}`,Lr=async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(Vn,L);$&&$.length&&(k=$)}catch($){await H($)}return k};var et={list:Lr},zn={authors:{readQuestionAuthors:async(I,k,L)=>{try{if(I.author=await zt(I.authorId),I.answers&&I.answers.length&&!L.ignoreAnswersAuthors){I.answers.sort((ee,xe)=>new Date(xe.updatedAt)-new Date(ee.updatedAt)),I.totalAnswers=I.answers.length;let $=I.answers;if(L.limit&&L.pageNumber){const ee=L.limit*(L.pageNumber-1);$=I.answers.slice(ee,ee+L.limit)}for(let ee of $){ee.author=ee.authorId&&await zt(ee.authorId)||{};const[xe]=k?await Lr({contentType:E.CONTENTFUL.ANSWERS.TYPE,contentSlug:ee.slug}):[null];ee.userLiked=!!xe}I.answers=$}else I.answers||(I.answers=[]);return I}catch($){throw await H($),new Error(`Cannot read authors for question: ${$.message}`)}},readAuthors:async(I=[])=>{let k=[];try{if(Array.isArray(I)===!1)throw new Error("authorIds is not an array!");if(I&&I.length===1){const L=await zt(I[0]);L&&k.push(L)}else if(I&&I.length>1){const L=await cn(I);L&&L.length>0&&(k=L)}}catch(L){throw await H(L),new Error(`Cannot read authors: ${L.message}`)}return k}}};const{APIS:{PEOPLE_API:{BASE_URL:Yn,ENDPOINTS:{REGISTRATIONS:Kn}}}}=E;var Qn={list:async I=>{let k=[];try{const{data:L}=await V().get(`${Yn}${Kn}`,{params:I});L&&L.length&&(k=L)}catch(L){await H(L)}return k}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Xn,ENDPOINTS:{USERS:sr,USER_COURSES:un}}},USERS:{MYSELF:cr}}=E,ct=`${Xn}${sr}/${cr}${un}`;var Mr={create:async I=>{try{await V().post(ct,I)}catch(k){await H(k)}},list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(ct,L);$&&$.length&&(k=$)}catch($){await H($)}return k},update:async(I,k)=>{try{await V().put(`${ct}/${I}`,k)}catch(L){await H(L)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Jn,ENDPOINTS:{USERS:Zn,USER_EVENTS:ei}}},USERS:{MYSELF:ti}}=E,ri=`${Jn}${Zn}/${ti}${ei}`;var ur={list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(ri,L);$&&$.length&&(k=$)}catch($){await H($)}return k}};const{APIS:{PEOPLE_API:{BASE_URL_V2:kr,ENDPOINTS:{USERS:Yt,USER_LESSONS:ln}}},USERS:{MYSELF:fn}}=E,dn=`${kr}${Yt}/${fn}${ln}`;var ni={create:async I=>{let k=null;try{k=await V().post(dn,I)}catch(L){await H(L)}return k},list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(dn,L);$&&$.length&&(k=$)}catch($){await H($)}return k}};const{APIS:{PEOPLE_API:{BASE_URL_V2:ii,ENDPOINTS:{USERS:oi,USER_PRODUCTS:Br}}},USERS:{MYSELF:ai}}=E,Fr=`${ii}${oi}/${ai}${Br}`;var Kt={create:async I=>{let k=null;try{k=await V().post(Fr,I)}catch(L){await H(L)}return k},list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(Fr,L);$&&$.length&&(k=$)}catch($){await H($)}return k},update:async(I,k)=>{try{await V().put(`${Fr}/${I}`,k)}catch(L){await H(L)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:ft,ENDPOINTS:{USERS:xt,USER_RATINGS:Ot}}},USERS:{MYSELF:si}}=E,dt=`${ft}${xt}/${si}${Ot}`;var Pt={bulkEnrolments:Tt,handlers:zn,registrations:Qn,users:Hn,userCourses:Mr,userEvents:ur,userLessons:ni,userLikes:et,userProducts:Kt,userRatings:{create:async I=>{let k=null;try{const{data:L}=await V().post(dt,I);L!=null&&L.id&&(k=L)}catch(L){await H(L)}return k},update:async(I,k)=>{try{await V().put(`${dt}/${I}`,k)}catch(L){await H(L)}}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:ci,ENDPOINTS:{ENQUIRY_EMAILS:ui}}}}=E;var li={create:async I=>{let k=null;try{const{data:L}=await V().post(`${ci}${ui}`,I);L&&(k=L)}catch(L){await H(L)}return k}},hn={forms:{sendEnquiryEmails:async I=>{let k=null;try{const{emailIds:L}=G;k=await fr.emails.create({...L,...I})}catch(L){await H(L)}return k}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:Qe,ENDPOINTS:{USERS:pn,USER_PROPERTIES:mn}}},USERS:{MYSELF:lr}}=E;var fr={emails:li,handlers:hn,userProperties:{update:async(I,k)=>{try{await V().put(`${Qe}${pn}/${lr}${mn}/${I}`,k)}catch(L){await H(L)}}}},dr=h(130);const{APIS:{SEARCH_API:{BASE_URL:fi,ENDPOINTS:{SEARCH:gn}}}}=E,Ur=`${fi}${gn}`;var yn={ask:async I=>{try{let k=null;const{data:L}=await V().get(Ur,{params:{question:I}});return L!=null&&L.answer&&(L!=null&&L.references)&&(L!=null&&L.version)&&(k=L),k}catch(k){const L=await H(k);throw new Error(L)}},stream:(I,k,L)=>{const $=(0,dr.io)(void 0,{path:"/api/search-api/web-sockets"});function ee(){$.emit("search",{question:I})}function xe(ke){L(ke),Ie(),$.disconnect()}function Ie(){$.off("connect",ee),$.off("update",k),$.off("result",xe)}return $.on("connect",ee),$.on("update",k),$.on("result",xe),Ie}};const{CONTENTFUL:yt}=E,{CARD_TYPES:Dr}=yt.CAROUSELS;var _n={read:async(I,k)=>{try{if(!k||!k.sys||!k.sys.id)throw new Error("Invalid link to card");if(!I||!Dr[I])throw new Error("Unsupported card content type");const{INCLUDE:L,SELECT:$}=Dr[I];return await(0,l.getEntry)({content_type:I,"sys.id":k.sys.id,include:L,select:$},{assetDetails:!0})}catch(L){throw await H(L),new Error(`Cannot read carousel card: ${L.message}`)}}};const{CONTENTFUL:di}=E,{INCLUDE:y,SELECT:x,TYPE:R}=di.EDITORIAL_PAGES;var j={read:async I=>{try{return await(0,l.getEntry)({content_type:R,"fields.slug":I,include:y,select:x})}catch(k){throw await H(k),new Error(`Cannot read editorial page: ${k.message}`)}}};const{CONTENTFUL:fe}=E,{TYPE:ae,ORDER:pe,SELECT:me,SKIP:Me,LIMIT:be,INCLUDE:Ge}=fe.QUESTIONS;var Xe={read:async I=>{try{return await(0,l.getEntry)({content_type:ae,"fields.slug":I,include:2,select:me})}catch(k){throw await H(k),new Error(`Cannot read question: ${k.message}`)}},list:async(I={})=>{try{return await(0,l.getEntries)({content_type:ae,include:Ge,limit:be,order:pe,select:me,skip:Me,...I})}catch(k){throw await H(k),new Error(`Cannot list questions: ${k.message}`)}}},Be=async(I,k,L={ignoreAnswersAuthors:!1})=>{try{let $={};return $=await Xe.read(I),$=await Pt.handlers.authors.readQuestionAuthors($,k,L),$}catch($){throw await H($),new Error(`Cannot build question: ${$.message}`)}};const{ARTICLES:{TYPE:We},COURSES:{TYPE:$e},EVENTS:{TYPE:It},LISTS:{TYPE:At},QUESTIONS:{TYPE:Qt},LEARNING_HUB:{TYPE:ro}}=E.CONTENTFUL,Lt=I=>I&&I.url?(Object.assign(I,{aspect:"responsiveCard",query:"q=90&fit=fill"}),I):null,hr={[We]:async I=>{const{authorIds:k,authorTag:L,image:$,publishedDate:ee,readingTime:xe,slug:Ie,title:ke}=I,ht=await Pt.handlers.authors.readAuthors(k),Mt=ht&&ht.length?ht:L?[L]:null;return{banner:Lt($),contributors:Mt,publishedDate:ee,readingTime:xe,slug:Ie,title:ke}},[$e]:async(I,k)=>{const{banner:L,freeCourse:$,partnershipDetails:ee,slug:xe,title:Ie,registered:ke}=I,ht={banner:Lt(L),slug:xe,title:Ie,pill:$?"free":"premium",registered:!!ke};if(ee){const{partners:Mt}=ee;ht.partner=Mt&&Mt.length&&ee.partners[0]}if(ke===void 0&&k){const[Mt]=await Pt.userProducts.list({courseSlug:xe,isEnrolled:!0,scope:"active"});ht.registered=!!Mt}return ht},[It]:async(I,k)=>{const{bannerImage:L,defaultStartDate:$,isEventOngoing:ee,slug:xe,speakers:Ie,title:ke,registered:ht}=I,Mt=new Date($),xg=!!Mt&&Mt<new Date;if(Ie&&Ie.length)for(const no of Ie)no.image=(ua=no.image)&&ua.url?`${ua.url}?w=100&h=100&fit=thumb&f=center`:null;var ua;const fu={banner:Lt(L),dateHasPassed:xg,title:ke,slug:xe,isOngoingEvent:ee,contributors:Ie,startDate:Mt,registered:!!ht};if(ht===void 0&&k){const[no]=await Pt.userEvents.list({eventSlug:xe});fu.registered=!!no}return fu},[At]:async I=>{const{hero:k,slug:L,title:$}=I;return{banner:Lt(k),slug:L,title:$}},[Qt]:async I=>{const{answers:k,authorId:L,createdAt:$,slug:ee,title:xe}=I;let Ie=null;if(L){const ke=await Pt.users.read(L);ke&&(Ie=ke)}return{answers:k&&k.length?k.length:0,contributors:Ie?[Ie]:[],createdAt:$,slug:ee,title:xe}},[ro]:I=>{const{bannerSection:k,customLabel:L,slug:$,title:ee}=I;return{banner:Lt(k.image),slug:$,title:ee,customLabel:L}},people:I=>{const{id:k,name:L,jobTitle:$,location:ee,image:xe}=I;return{profile:xe,slug:k,title:L,text:$,secondaryText:ee}}};var Eg=async({contentType:I,...k}={},L)=>{try{if(!hr[I])throw new Error("Content type not supported");if(typeof hr[I]!="function")throw new Error("No builder function for content type");return I!=="people"&&k.sys&&k.sys.type&&k.sys.type==="Link"&&(k=await _n.read(I,k)),{contentType:I,...await hr[I](k,L)}}catch($){throw await H($),new Error(`Cannot build carousel card: ${$.message}`)}},bg=async(I,k,L={})=>{try{if(!I.replies||I.replies.length===0)return I.replies=[],I;I.replies.sort((ee,xe)=>new Date(ee.createdAt)-new Date(xe.createdAt)),I.totalReplies=I.totalReplies||I.replies.length;let $=I.replies;if(L.limit&&L.pageNumber){const ee=L.limit*(L.pageNumber-1);$=I.replies.slice(ee,ee+L.limit)}for(const ee of $){if(ee.authorId===I.authorId){ee.author=I.author,ee.userLiked=!1;continue}ee.author=ee.authorId&&await zt(ee.authorId)||{};const[xe]=k?await Lr({contentType:E.CONTENTFUL.REPLIES.TYPE,contentSlug:ee.slug}):[null];ee.userLiked=!!xe}return I.replies=$,I}catch($){throw await H($),new Error(`Cannot build replies for answer: ${$.message}`)}},wg=h(408);const Sg=I=>I&&wg.Buffer.from(I,"base64").toString("ascii");function Tg({contentContext:I=null,errorsContext:k=null,gtmContext:L=null,origin:$}){try{const ee=(xe=>{let Ie=null;xe?Ie=xe:typeof window<"u"&&(Ie=window.origin||window.location.origin),Ie||new Error("Cannot select environment: Website not defined");let ke=null;const ht=Ie.match(b);return ht?ke=ht[1].split(A)[0]:Ie===T?ke=w:Ie.includes(_)&&(ke=N),ke||new Error(`Cannot select environment: No rule for website ${Ie}`),ke})($);return I&&(0,l.setContext)(Object.assign({},I,{environment:ee})),k&&(0,p.setContext)(Object.assign({},k,{environment:ee})),L&&((0,m.setContext)(Object.assign({},L,{environment:ee})),(0,m.setupGTM)()),(({environment:xe})=>{const Ie=(ke=>{if(!ke)throw new Error("Cannot map environment: Environment not defined");if(!F[ke])throw new Error(`Cannot map environment: No mapping found for environment ${ke}`);return F[ke]})(xe);G.emailIds=B[Ie]})(Object.assign({},{environment:ee})),ee}catch(ee){console.warn(`Cannot load SDK: ${ee.message}`)}}}(),d}()})})(Fd);var HE=Fd.exports;const Fi={Off:"off",On:"on",Cookie:"cookie"},qE=e=>{const[t]=Bd(),[n,r]=D.useState(null),[o,i]=D.useState(!1),[s,a]=D.useState(Fi.Off);return D.useEffect(()=>{e&&HE.features.flags.read(e).then(u=>{a(u.featureState),r(null)}).catch(u=>{a(Fi.Off),r(u)})},[e]),D.useEffect(()=>{switch(s){case Fi.Off:i(!1);break;case Fi.On:i(!0);break;case Fi.Cookie:i(!!t[`feature-${e}`]);break;default:i(!1)}},[s,t]),{isFeatureActive:o,error:n}};function GE(e,t,n){var r=this,o=D.useRef(null),i=D.useRef(0),s=D.useRef(null),a=D.useRef([]),u=D.useRef(),f=D.useRef(),c=D.useRef(e),h=D.useRef(!0);D.useEffect(function(){c.current=e},[e]);var d=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var l=!!(n=n||{}).leading,p=!("trailing"in n)||!!n.trailing,m="maxWait"in n,E=m?Math.max(+n.maxWait||0,t):null;D.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var T=D.useMemo(function(){var _=function(B){var G=a.current,W=u.current;return a.current=u.current=null,i.current=B,f.current=c.current.apply(W,G)},b=function(B,G){d&&cancelAnimationFrame(s.current),s.current=d?requestAnimationFrame(B):setTimeout(B,G)},A=function(B){if(!h.current)return!1;var G=B-o.current;return!o.current||G>=t||G<0||m&&B-i.current>=E},w=function(B){return s.current=null,p&&a.current?_(B):(a.current=u.current=null,f.current)},N=function B(){var G=Date.now();if(A(G))return w(G);if(h.current){var W=t-(G-o.current),V=m?Math.min(W,E-(G-i.current)):W;b(B,V)}},F=function(){var B=Date.now(),G=A(B);if(a.current=[].slice.call(arguments),u.current=r,o.current=B,G){if(!s.current&&h.current)return i.current=o.current,b(N,t),l?_(o.current):f.current;if(m)return b(N,t),_(o.current)}return s.current||b(N,t),f.current};return F.cancel=function(){s.current&&(d?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,a.current=o.current=u.current=s.current=null},F.isPending=function(){return!!s.current},F.flush=function(){return s.current?w(Date.now()):f.current},F},[l,m,t,E,p,d]);return T}function Np(e,t,n){var r=n===void 0?{}:n,o=r.leading,i=r.trailing;return GE(e,t,{maxWait:t,leading:o===void 0||o,trailing:i===void 0||i})}let Cs;const Ji=(e=!0,t=!1)=>{if(!e)return;const[n,r]=D.useState(0)||[!1,()=>{}];D.useEffect(()=>(i(),window.addEventListener("resize",s),()=>{clearTimeout(Cs),s.flush(),window.removeEventListener("resize",s)}),[]);const o=()=>window.innerWidth,i=()=>{r(o())},s=Np(()=>{o()!==n&&(t&&(clearTimeout(Cs),document.body.classList.add("is-resizing"),Cs=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),i())},500,{leading:!0});return n},Pp=({scrollPosition:e=0,offset:t={down:0,up:10},callbacks:{scrollDown:n=()=>{},scrollUp:r=()=>{}}})=>{if(!window)return;const[o,i]=D.useState({current:0,past:0})||[!1,()=>{}],[s,a]=D.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];D.useEffect(()=>(u(),window.addEventListener("scroll",f),()=>{f.flush(),window.removeEventListener("scroll",f)}),[]);const u=()=>{const c=window.scrollY,h=o.current,d=c-h,l=d>0?"down":"up";if(i({current:c,past:h}),l==="down"){c>=e+t.down&&!s.scrollDown&&(!s.scrollUp||d>t.up)&&(n(),a({scrollUp:!1,scrollDown:!0}));return}Math.abs(d)>=t.up&&!s.scrollUp&&(r(),a({scrollUp:!0,scrollDown:!1}))},f=Np(()=>{u()},250);return o},WE=(e=[],t=!0)=>{e=Array.isArray(e)?e:[e];const n=D.useRef(!1);Jr(()=>{if(window&&window.location&&window.location.hash){if(n.current)return;const r=window.location.hash.replace("#",""),o=document.getElementById(r);o&&(o.scrollIntoView(t?{behavior:"smooth"}:null),n.current=!0)}},e)};var Ho={exports:{}};Ho.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s="[object Array]",a="[object Boolean]",u="[object Date]",f="[object Error]",c="[object Function]",h="[object GeneratorFunction]",d="[object Map]",l="[object Number]",p="[object Object]",m="[object Promise]",E="[object RegExp]",T="[object Set]",_="[object String]",b="[object Symbol]",A="[object WeakMap]",w="[object ArrayBuffer]",N="[object DataView]",F="[object Float32Array]",B="[object Float64Array]",G="[object Int8Array]",W="[object Int16Array]",V="[object Int32Array]",H="[object Uint8Array]",Y="[object Uint8ClampedArray]",oe="[object Uint16Array]",Q="[object Uint32Array]",M=/[\\^$.*+?()[\]{}|]/g,z=/\w*$/,Z=/^\[object .+?Constructor\]$/,de=/^(?:0|[1-9]\d*)$/,X={};X[i]=X[s]=X[w]=X[N]=X[a]=X[u]=X[F]=X[B]=X[G]=X[W]=X[V]=X[d]=X[l]=X[p]=X[E]=X[T]=X[_]=X[b]=X[H]=X[Y]=X[oe]=X[Q]=!0,X[f]=X[c]=X[A]=!1;var K=typeof ce=="object"&&ce&&ce.Object===Object&&ce,se=typeof self=="object"&&self&&self.Object===Object&&self,ue=K||se||Function("return this")(),Fe=t&&!t.nodeType&&t,J=Fe&&!0&&e&&!e.nodeType&&e,re=J&&J.exports===Fe;function Pe(y,x){return y.set(x[0],x[1]),y}function Ae(y,x){return y.add(x),y}function st(y,x){for(var R=-1,j=y?y.length:0;++R<j&&x(y[R],R,y)!==!1;);return y}function ut(y,x){for(var R=-1,j=x.length,fe=y.length;++R<j;)y[fe+R]=x[R];return y}function Et(y,x,R,j){var fe=-1,ae=y?y.length:0;for(j&&ae&&(R=y[++fe]);++fe<ae;)R=x(R,y[fe],fe,y);return R}function te(y,x){for(var R=-1,j=Array(y);++R<y;)j[R]=x(R);return j}function Ye(y,x){return y==null?void 0:y[x]}function je(y){var x=!1;if(y!=null&&typeof y.toString!="function")try{x=!!(y+"")}catch{}return x}function bt(y){var x=-1,R=Array(y.size);return y.forEach(function(j,fe){R[++x]=[fe,j]}),R}function Gt(y,x){return function(R){return y(x(R))}}function Rt(y){var x=-1,R=Array(y.size);return y.forEach(function(j){R[++x]=j}),R}var mt=Array.prototype,Sr=Function.prototype,wt=Object.prototype,gt=ue["__core-js_shared__"],He=function(){var y=/[^.]+$/.exec(gt&&gt.keys&&gt.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),St=Sr.toString,nt=wt.hasOwnProperty,Ke=wt.toString,Tr=RegExp("^"+St.call(nt).replace(M,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=re?ue.Buffer:void 0,g=ue.Symbol,v=ue.Uint8Array,C=Gt(Object.getPrototypeOf,Object),P=Object.create,U=wt.propertyIsEnumerable,q=mt.splice,le=Object.getOwnPropertySymbols,we=S?S.isBuffer:void 0,Se=Gt(Object.keys,Object),Te=ft(ue,"DataView"),he=ft(ue,"Map"),lt=ft(ue,"Promise"),ar=ft(ue,"Set"),xr=ft(ue,"WeakMap"),Wt=ft(Object,"create"),Or=Qe(Te),Vt=Qe(he),Ar=Qe(lt),Cr=Qe(ar),Rr=Qe(xr),Nt=g?g.prototype:void 0,an=Nt?Nt.valueOf:void 0;function Tt(y){var x=-1,R=y?y.length:0;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Dn(){this.__data__=Wt?Wt(null):{}}function $n(y){return this.has(y)&&delete this.__data__[y]}function jn(y){var x=this.__data__;if(Wt){var R=x[y];return R===r?void 0:R}return nt.call(x,y)?x[y]:void 0}function sn(y){var x=this.__data__;return Wt?x[y]!==void 0:nt.call(x,y)}function Nr(y,x){var R=this.__data__;return R[y]=Wt&&x===void 0?r:x,this}Tt.prototype.clear=Dn,Tt.prototype.delete=$n,Tt.prototype.get=jn,Tt.prototype.has=sn,Tt.prototype.set=Nr;function Ue(y){var x=-1,R=y?y.length:0;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Pr(){this.__data__=[]}function Ir(y){var x=this.__data__,R=cr(x,y);if(R<0)return!1;var j=x.length-1;return R==j?x.pop():q.call(x,R,1),!0}function zt(y){var x=this.__data__,R=cr(x,y);return R<0?void 0:x[R][1]}function cn(y){return cr(this.__data__,y)>-1}function Hn(y,x){var R=this.__data__,j=cr(R,y);return j<0?R.push([y,x]):R[j][1]=x,this}Ue.prototype.clear=Pr,Ue.prototype.delete=Ir,Ue.prototype.get=zt,Ue.prototype.has=cn,Ue.prototype.set=Hn;function qe(y){var x=-1,R=y?y.length:0;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function qn(){this.__data__={hash:new Tt,map:new(he||Ue),string:new Tt}}function Gn(y){return Kt(this,y).delete(y)}function Wn(y){return Kt(this,y).get(y)}function Vn(y){return Kt(this,y).has(y)}function Lr(y,x){return Kt(this,y).set(y,x),this}qe.prototype.clear=qn,qe.prototype.delete=Gn,qe.prototype.get=Wn,qe.prototype.has=Vn,qe.prototype.set=Lr;function et(y){this.__data__=new Ue(y)}function zn(){this.__data__=new Ue}function Yn(y){return this.__data__.delete(y)}function Kn(y){return this.__data__.get(y)}function Qn(y){return this.__data__.has(y)}function Xn(y,x){var R=this.__data__;if(R instanceof Ue){var j=R.__data__;if(!he||j.length<n-1)return j.push([y,x]),this;R=this.__data__=new qe(j)}return R.set(y,x),this}et.prototype.clear=zn,et.prototype.delete=Yn,et.prototype.get=Kn,et.prototype.has=Qn,et.prototype.set=Xn;function sr(y,x){var R=fr(y)||lr(y)?te(y.length,String):[],j=R.length,fe=!!j;for(var ae in y)(x||nt.call(y,ae))&&!(fe&&(ae=="length"||ci(ae,j)))&&R.push(ae);return R}function un(y,x,R){var j=y[x];(!(nt.call(y,x)&&mn(j,R))||R===void 0&&!(x in y))&&(y[x]=R)}function cr(y,x){for(var R=y.length;R--;)if(mn(y[R][0],x))return R;return-1}function ct(y,x){return y&&Br(x,vn(x),y)}function Mr(y,x,R,j,fe,ae,pe){var me;if(j&&(me=ae?j(y,fe,ae,pe):j(y)),me!==void 0)return me;if(!yt(y))return y;var Me=fr(y);if(Me){if(me=si(y),!x)return oi(y,me)}else{var be=Ot(y),Ge=be==c||be==h;if(gn(y))return ur(y,x);if(be==p||be==i||Ge&&!ae){if(je(y))return ae?y:{};if(me=dt(Ge?{}:y),!x)return ai(y,ct(me,y))}else{if(!X[be])return ae?y:{};me=Pt(y,be,Mr,x)}}pe||(pe=new et);var Xe=pe.get(y);if(Xe)return Xe;if(pe.set(y,me),!Me)var Be=R?Fr(y):vn(y);return st(Be||y,function(We,$e){Be&&($e=We,We=y[$e]),un(me,$e,Mr(We,x,R,j,$e,y,pe))}),me}function Jn(y){return yt(y)?P(y):{}}function Zn(y,x,R){var j=x(y);return fr(y)?j:ut(j,R(y))}function ei(y){return Ke.call(y)}function ti(y){if(!yt(y)||li(y))return!1;var x=Ur(y)||je(y)?Tr:Z;return x.test(Qe(y))}function ri(y){if(!hn(y))return Se(y);var x=[];for(var R in Object(y))nt.call(y,R)&&R!="constructor"&&x.push(R);return x}function ur(y,x){if(x)return y.slice();var R=new y.constructor(y.length);return y.copy(R),R}function kr(y){var x=new y.constructor(y.byteLength);return new v(x).set(new v(y)),x}function Yt(y,x){var R=x?kr(y.buffer):y.buffer;return new y.constructor(R,y.byteOffset,y.byteLength)}function ln(y,x,R){var j=x?R(bt(y),!0):bt(y);return Et(j,Pe,new y.constructor)}function fn(y){var x=new y.constructor(y.source,z.exec(y));return x.lastIndex=y.lastIndex,x}function dn(y,x,R){var j=x?R(Rt(y),!0):Rt(y);return Et(j,Ae,new y.constructor)}function ni(y){return an?Object(an.call(y)):{}}function ii(y,x){var R=x?kr(y.buffer):y.buffer;return new y.constructor(R,y.byteOffset,y.length)}function oi(y,x){var R=-1,j=y.length;for(x||(x=Array(j));++R<j;)x[R]=y[R];return x}function Br(y,x,R,j){R||(R={});for(var fe=-1,ae=x.length;++fe<ae;){var pe=x[fe],me=j?j(R[pe],y[pe],pe,R,y):void 0;un(R,pe,me===void 0?y[pe]:me)}return R}function ai(y,x){return Br(y,xt(y),x)}function Fr(y){return Zn(y,vn,xt)}function Kt(y,x){var R=y.__data__;return ui(x)?R[typeof x=="string"?"string":"hash"]:R.map}function ft(y,x){var R=Ye(y,x);return ti(R)?R:void 0}var xt=le?Gt(le,Object):_n,Ot=ei;(Te&&Ot(new Te(new ArrayBuffer(1)))!=N||he&&Ot(new he)!=d||lt&&Ot(lt.resolve())!=m||ar&&Ot(new ar)!=T||xr&&Ot(new xr)!=A)&&(Ot=function(y){var x=Ke.call(y),R=x==p?y.constructor:void 0,j=R?Qe(R):void 0;if(j)switch(j){case Or:return N;case Vt:return d;case Ar:return m;case Cr:return T;case Rr:return A}return x});function si(y){var x=y.length,R=y.constructor(x);return x&&typeof y[0]=="string"&&nt.call(y,"index")&&(R.index=y.index,R.input=y.input),R}function dt(y){return typeof y.constructor=="function"&&!hn(y)?Jn(C(y)):{}}function Pt(y,x,R,j){var fe=y.constructor;switch(x){case w:return kr(y);case a:case u:return new fe(+y);case N:return Yt(y,j);case F:case B:case G:case W:case V:case H:case Y:case oe:case Q:return ii(y,j);case d:return ln(y,j,R);case l:case _:return new fe(y);case E:return fn(y);case T:return dn(y,j,R);case b:return ni(y)}}function ci(y,x){return x=x??o,!!x&&(typeof y=="number"||de.test(y))&&y>-1&&y%1==0&&y<x}function ui(y){var x=typeof y;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?y!=="__proto__":y===null}function li(y){return!!He&&He in y}function hn(y){var x=y&&y.constructor,R=typeof x=="function"&&x.prototype||wt;return y===R}function Qe(y){if(y!=null){try{return St.call(y)}catch{}try{return y+""}catch{}}return""}function pn(y){return Mr(y,!0,!0)}function mn(y,x){return y===x||y!==y&&x!==x}function lr(y){return fi(y)&&nt.call(y,"callee")&&(!U.call(y,"callee")||Ke.call(y)==i)}var fr=Array.isArray;function dr(y){return y!=null&&yn(y.length)&&!Ur(y)}function fi(y){return Dr(y)&&dr(y)}var gn=we||di;function Ur(y){var x=yt(y)?Ke.call(y):"";return x==c||x==h}function yn(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=o}function yt(y){var x=typeof y;return!!y&&(x=="object"||x=="function")}function Dr(y){return!!y&&typeof y=="object"}function vn(y){return dr(y)?sr(y):ri(y)}function _n(){return[]}function di(){return!1}e.exports=pn})(Ho,Ho.exports);var VE=Ho.exports;const zE=jt(VE);var YE="Expected a function",Ip="__lodash_hash_undefined__",Lp=1/0,KE=9007199254740991,QE="[object Function]",XE="[object GeneratorFunction]",JE="[object Symbol]",ZE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eb=/^\w*$/,tb=/^\./,rb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nb=/[\\^$.*+?()[\]{}|]/g,ib=/\\(\\)?/g,ob=/^\[object .+?Constructor\]$/,ab=/^(?:0|[1-9]\d*)$/,sb=typeof ce=="object"&&ce&&ce.Object===Object&&ce,cb=typeof self=="object"&&self&&self.Object===Object&&self,qc=sb||cb||Function("return this")();function ub(e,t){return e==null?void 0:e[t]}function lb(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var fb=Array.prototype,db=Function.prototype,Mp=Object.prototype,Rs=qc["__core-js_shared__"],Gf=function(){var e=/[^.]+$/.exec(Rs&&Rs.keys&&Rs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),kp=db.toString,ea=Mp.hasOwnProperty,Bp=Mp.toString,hb=RegExp("^"+kp.call(ea).replace(nb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wf=qc.Symbol,pb=fb.splice,mb=Fp(qc,"Map"),Wi=Fp(Object,"create"),Vf=Wf?Wf.prototype:void 0,zf=Vf?Vf.toString:void 0;function Zr(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function gb(){this.__data__=Wi?Wi(null):{}}function yb(e){return this.has(e)&&delete this.__data__[e]}function vb(e){var t=this.__data__;if(Wi){var n=t[e];return n===Ip?void 0:n}return ea.call(t,e)?t[e]:void 0}function _b(e){var t=this.__data__;return Wi?t[e]!==void 0:ea.call(t,e)}function Eb(e,t){var n=this.__data__;return n[e]=Wi&&t===void 0?Ip:t,this}Zr.prototype.clear=gb;Zr.prototype.delete=yb;Zr.prototype.get=vb;Zr.prototype.has=_b;Zr.prototype.set=Eb;function Bn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function bb(){this.__data__=[]}function wb(e){var t=this.__data__,n=ta(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():pb.call(t,n,1),!0}function Sb(e){var t=this.__data__,n=ta(t,e);return n<0?void 0:t[n][1]}function Tb(e){return ta(this.__data__,e)>-1}function xb(e,t){var n=this.__data__,r=ta(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Bn.prototype.clear=bb;Bn.prototype.delete=wb;Bn.prototype.get=Sb;Bn.prototype.has=Tb;Bn.prototype.set=xb;function rn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ob(){this.__data__={hash:new Zr,map:new(mb||Bn),string:new Zr}}function Ab(e){return ra(this,e).delete(e)}function Cb(e){return ra(this,e).get(e)}function Rb(e){return ra(this,e).has(e)}function Nb(e,t){return ra(this,e).set(e,t),this}rn.prototype.clear=Ob;rn.prototype.delete=Ab;rn.prototype.get=Cb;rn.prototype.has=Rb;rn.prototype.set=Nb;function Pb(e,t,n){var r=e[t];(!(ea.call(e,t)&&Up(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function ta(e,t){for(var n=e.length;n--;)if(Up(e[n][0],t))return n;return-1}function Ib(e){if(!qo(e)||Db(e))return!1;var t=qb(e)||lb(e)?hb:ob;return t.test(Hb(e))}function Lb(e,t,n,r){if(!qo(e))return e;t=Fb(t,e)?[t]:kb(t);for(var o=-1,i=t.length,s=i-1,a=e;a!=null&&++o<i;){var u=jb(t[o]),f=n;if(o!=s){var c=a[u];f=r?r(c,u,a):void 0,f===void 0&&(f=qo(c)?c:Bb(t[o+1])?[]:{})}Pb(a,u,f),a=a[u]}return e}function Mb(e){if(typeof e=="string")return e;if(Wc(e))return zf?zf.call(e):"";var t=e+"";return t=="0"&&1/e==-Lp?"-0":t}function kb(e){return Dp(e)?e:$b(e)}function ra(e,t){var n=e.__data__;return Ub(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Fp(e,t){var n=ub(e,t);return Ib(n)?n:void 0}function Bb(e,t){return t=t??KE,!!t&&(typeof e=="number"||ab.test(e))&&e>-1&&e%1==0&&e<t}function Fb(e,t){if(Dp(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Wc(e)?!0:eb.test(e)||!ZE.test(e)||t!=null&&e in Object(t)}function Ub(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Db(e){return!!Gf&&Gf in e}var $b=Gc(function(e){e=Wb(e);var t=[];return tb.test(e)&&t.push(""),e.replace(rb,function(n,r,o,i){t.push(o?i.replace(ib,"$1"):r||n)}),t});function jb(e){if(typeof e=="string"||Wc(e))return e;var t=e+"";return t=="0"&&1/e==-Lp?"-0":t}function Hb(e){if(e!=null){try{return kp.call(e)}catch{}try{return e+""}catch{}}return""}function Gc(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(YE);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new(Gc.Cache||rn),n}Gc.Cache=rn;function Up(e,t){return e===t||e!==e&&t!==t}var Dp=Array.isArray;function qb(e){var t=qo(e)?Bp.call(e):"";return t==QE||t==XE}function qo(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Gb(e){return!!e&&typeof e=="object"}function Wc(e){return typeof e=="symbol"||Gb(e)&&Bp.call(e)==JE}function Wb(e){return e==null?"":Mb(e)}function Vb(e,t,n){return e==null?e:Lb(e,t,n)}var zb=Vb;const Yb=jt(zb),Kb=(e,t)=>{Array.isArray(t)||(t=[t]);const n=zE(e);return t.forEach(({type:r,value:o})=>{Yb(n,r,o)}),n},$p=e=>{const t=[];return e.forEach(n=>{const r=parseInt(n);isNaN(r)||t.push(r)}),t.sort((n,r)=>n-r)},jp=(e,t,n)=>{let r=n.mobile;for(const o in t){const i=parseInt(String(t[o]));if(e>=i)r=n[i];else if(e<i)break}return r},Qb=(e,t="en")=>new Date(e).toLocaleString(t,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),Xb=e=>{let i;try{i=new Date().getTime()-new Date(e).getTime()}catch{return""}const s=i/36e5,a=Math.floor(i/864e5);if(a<1)return s<1?{path:"now"}:{path:"hours",number:Math.floor(s)};if(a<7)return{path:"days",number:a};const u=Math.floor(a/7);return u<=52?{path:"weeks",number:u}:{path:"years",number:Math.floor(a/365)}},Jb=e=>new Promise(t=>setTimeout(t,e)),Vc={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_answer_likes:"{count, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_answer_likes_like:"Like this answer",discussion_answer_likes_unlike:"Unlike answer",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_reply_likes:"{count, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_reply_likes_like:"Like this reply",discussion_reply_likes_unlike:"Unlike reply",discussion_report_subject:"Report a post on Apolitical",discussion_report_body:`I'd like to report the {contentType} <{contentSlug}> at {contentUrl}.
62
62
 
63
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
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_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_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_member:"Member",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",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"},Vb={collapsibleSection_summary:"En savoir plus"},zb=Object.freeze(Object.defineProperty({__proto__:null,en:Hc,fr:Vb},Symbol.toStringTag,{value:"Module"})),rr=(e,t,n,r,o={})=>{let i="";return`${t}_${n}`in Hc?i=e({id:`${t}_${n}`},o):i=e({id:t},{[r]:n,...o}),i},Dp=(e,t)=>$.Children.map(e,n=>$.cloneElement(n,{...t})),Yb=e=>e.replace(/\s+/g,"").length>0,De=({variant:e="primary",size:t="medium",styling:n={muted:!1,fullWidth:!1},icon:r=!1,href:o=!1,element:i="button",onClick:s=!1,className:a="",disabled:l=!1,screenreaderText:f=!1,children:c=!1,...h})=>{const u=Xi(typeof t=="object");if(typeof t=="object"&&typeof u=="number"){const E=Object.assign({},t),T=Fp(Object.keys(E));t=Up(u,T,E)}const p=[];typeof t=="string"&&p.push(t),r&&(p.push("icon"),typeof r=="object"?(p.push(r.icon),r.position?p.push(r.position):p.push("left"),r.hover&&p.push(`hover_${r.hover}`),r.animate&&(p.push("animate"),typeof r.animate=="string"&&p.push(r.animate))):(p.push(r),!r.includes("right")&&!r.includes("left")&&p.push("left"))),n.muted&&p.push("muted"),n.fullWidth&&p.push("full-width");const m={...h,className:se(e,a,p,{"no-text":!c,disabled:l,button:o}),onClick:E=>{(!o||o[0]==="#")&&s&&(E.preventDefault(),E.stopPropagation()),s&&s(E)},disabled:typeof l=="object"&&"isClickable"in l?!l.isClickable:l};return o&&(i="a",m.href=o),$.createElement(i,m,c||(f?O.jsx(ot,{showOnFocus:!1,children:f}):null))},Ji=({buttons:e,className:t="",...n})=>{const r=e.length>1?"ul":"p",o=e.map((i,s)=>r==="p"?O.jsx(De,{...i},s):O.jsx("li",{children:O.jsx(De,{...i})},s));return $.createElement(r,{className:se("button-wrapper",t),...n,children:o})};const qo=({maxWidth:e=!1})=>{const t=e?{"--max-width":`${e/16}rem`}:{};return O.jsx("hr",{className:se({"has-max-width":e}),style:t})},$p=({href:e,children:t,className:n="",onClick:r=()=>{},gtmContext:o,gtmType:i,...s})=>e?O.jsx("a",{href:e,className:se("gtm-trackable",n),onClick:r,"data-gtm-event-context":o,"data-gtm-event-type":i,...s,children:t}):t,Wf={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"}},Kb=({aspect:e,range:t,sizes:n})=>{const{range:r,sizes:o}=e?Wf[e]:Wf.fallback;return{range:t&&t.length>0?t:r,sizes:n||o}},Qb=({format:e,height:t,query:n,width:r})=>{let o=`w=${r}&h=${t}`;return o=e?`${o}&fm=${e}`:o,o=n?`${o}&${n}`:o,o},Cs=({format:e,range:t,url:n,query:r})=>t.map(({height:o,width:i})=>`${n}?${Qb({format:e,height:o,query:r,width:i})} ${i}w`).join(", ");const jp=({image:e,className:t,testId:n})=>{const{description:r,height:o,type:i,query:s,url:a,width:l,loading:f,decoding:c,fetchPriority:h}=e,{range:d,sizes:u}=Kb(e),p=Cs({format:"avif",query:s,range:d,url:a}),m=Cs({format:"webp",query:s,range:d,url:a}),E=Cs({format:"",query:s,range:d,url:a});return O.jsxs("picture",{className:t,children:[i!=="image/gif"&&O.jsx("source",{type:"image/avif",srcSet:p,sizes:u,"data-testid":"source"}),O.jsx("source",{type:"image/webp",srcSet:m,sizes:u,"data-testid":"source"}),O.jsx("img",{srcSet:E,sizes:u,src:a,alt:r,loading:f||"lazy",decoding:c||"async",fetchpriority:h||"auto",width:l,height:o,"data-testid":n||"image"})]})};const qc=({children:e,className:t="",...n})=>O.jsx("section",{className:se("full-width-section",t),...n,children:e});const Xb=({text:e,buttons:t,className:n=""})=>{const r=[];return t.forEach(o=>{r.push({href:o.link,variant:"secondary",size:{mobile:"medium",1024:"large"},className:"gtm-trackable","data-gtm-event-type":"download-click","data-gtm-event-context":o.eventContext||"Download",target:"_blank",children:o.text})}),O.jsx(qc,{className:se("download-section",n),children:O.jsxs(O.Fragment,{children:[$.createElement(typeof e=="string"?"h2":e.element,{className:"text"},typeof e=="string"?e:e.text),O.jsx(Ji,{buttons:r})]})})};const Jb=({title:e=!1,logos:t=[],className:n=""})=>{const r=t.length;if(r===0)return null;const o={element:typeof e=="object"?e.element:"h2",text:typeof e=="string"?e:typeof e=="object"?e.text:""};return O.jsxs("div",{className:se("logos",n),children:[e&&$.createElement(o.element,{className:"title"},o.text),O.jsx("ul",{className:se({"two-col":r===2||r===4,"three-col":r===5||r<=10&&r%3===0}),children:t.map(({logo:i,nameOfBusiness:s,link:a=!1,description:l=!1},f)=>{if(!i||!i.url)return null;const c=O.jsx("img",{src:i.url,width:i.width||"auto",height:i.height||"auto",alt:s});return O.jsxs("li",{children:[O.jsx("p",{className:"img-wrapper",children:a?O.jsx("a",{href:a,target:"_blank",rel:"nofollow noreferrer noopener",children:c}):c}),l&&O.jsx("small",{children:l})]},window.btoa(`${i.url}_${f}`))})})]})};const Zb=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],ew=({content:e,image:t,variant:n="default",spacing:r="normal",cta:o,children:i})=>{const s=["eyebrow","title","text"],a={eyebrow:"small",title:"h1",text:"p"},l={};return s.forEach(f=>{if(!e[f]){l[f]=!1;return}if(typeof e[f]=="object"){l[f]=e[f];const{text:c,element:h}=e[f];if(h&&Zb.includes(h.toLowerCase()))return;l[f]={text:c,element:a[f]};return}l[f]={text:e[f],element:a[f]}}),o&&o.link&&o.link[0]==="#"&&(o.props||(o.props={}),o.props.onClick=f=>{f.preventDefault(),f.stopPropagation();const c=document.getElementById(o.link.substring(1));c&&c.scrollIntoView({behavior:"smooth"})}),O.jsx(qc,{className:se("banner-section",n,r,{"has-image":t,"has-extra-spacing":r==="normal"&&l.eyebrow&&l.title}),children:O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"content-wrapper",children:[s.map(f=>{if(l[f]&&typeof l[f]=="object"){const{text:c,element:h=""}=l[f];return $.createElement(h.toLowerCase(),{key:f,className:f},c)}return null}),i,o&&o.text&&o.link&&O.jsx(De,{variant:t||n==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:o.link,...o.props,children:o.text})]}),t&&O.jsx(jp,{image:{...t,aspect:"banner"}})]})})},tw=$.memo(ew);const rw=({variant:e="primary",button:t=null,title:n,text:r,gtmContext:o})=>!n&&!r?null:O.jsxs("aside",{className:se("marketing-block",e),children:[n&&O.jsx("p",{className:"title",children:n}),r&&O.jsx("p",{children:r}),t&&O.jsx(De,{variant:"secondary",size:"medium",href:t.link,className:"gtm-trackable","data-gtm-event-context":o,"data-gtm-event-type":"learn-more-click",children:t.text})]});var ac=function(e,t){return ac=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},ac(e,t)};function vt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ac(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ne=function(){return ne=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ne.apply(this,arguments)};function Rn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Dt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function Hp(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var ye;(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"})(ye||(ye={}));var Le;(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"})(Le||(Le={}));var Nn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Nn||(Nn={}));function Vf(e){return e.type===Le.literal}function nw(e){return e.type===Le.argument}function qp(e){return e.type===Le.number}function Gp(e){return e.type===Le.date}function Wp(e){return e.type===Le.time}function Vp(e){return e.type===Le.select}function zp(e){return e.type===Le.plural}function iw(e){return e.type===Le.pound}function Yp(e){return e.type===Le.tag}function Kp(e){return!!(e&&typeof e=="object"&&e.type===Nn.number)}function sc(e){return!!(e&&typeof e=="object"&&e.type===Nn.dateTime)}var Qp=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ow=/(?:[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 aw(e){var t={};return e.replace(ow,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===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"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-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=r===4?"short":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-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"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-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"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<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 sw=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function cw(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(sw).filter(function(d){return d.length>0}),n=[],r=0,o=t;r<o.length;r++){var i=o[r],s=i.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),f=0,c=l;f<c.length;f++){var h=c[f];if(h.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:l})}return n}function uw(e){return e.replace(/^(.*?)-/,"")}var zf=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Xp=/^(@+)?(\+|#+)?[rs]?$/g,lw=/(\*)(0+)|(#+)(0+)|(0+)/g,Jp=/^(0+)$/;function Yf(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Xp,function(n,r,o){return typeof o!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):o==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof o=="string"?o.length:0)),""}),t}function Zp(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 fw(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 n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Jp.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Kf(e){var t={},n=Zp(e);return n||t}function dw(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.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=uw(o.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=ne(ne(ne({},t),{notation:"scientific"}),o.options.reduce(function(l,f){return ne(ne({},l),Kf(f))},{}));continue;case"engineering":t=ne(ne(ne({},t),{notation:"engineering"}),o.options.reduce(function(l,f){return ne(ne({},l),Kf(f))},{}));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(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(lw,function(l,f,c,h,d,u){if(f)t.minimumIntegerDigits=c.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(u)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Jp.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(zf.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(zf,function(l,f,c,h,d,u){return c==="*"?t.minimumFractionDigits=f.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:d&&u?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+u.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});var i=o.options[0];i==="w"?t=ne(ne({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=ne(ne({},t),Yf(i)));continue}if(Xp.test(o.stem)){t=ne(ne({},t),Yf(o.stem));continue}var s=Zp(o.stem);s&&(t=ne(ne({},t),s));var a=fw(o.stem);a&&(t=ne(ne({},t),a))}return t}var xo={"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 hw(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if(o==="j"){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var s=1+(i&1),a=i<2?1:3+(i>>1),l="a",f=pw(t);for((f=="H"||f=="k")&&(a=0);a-- >0;)n+=l;for(;s-- >0;)n=f+n}else o==="J"?n+="H":n+=o}return n}function pw(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 n=e.language,r;n!=="root"&&(r=e.maximize().region);var o=xo[r||""]||xo[n||""]||xo["".concat(n,"-001")]||xo["001"];return o[0]}var Rs,mw=new RegExp("^".concat(Qp.source,"*")),gw=new RegExp("".concat(Qp.source,"*$"));function _e(e,t){return{start:e,end:t}}var yw=!!String.prototype.startsWith,vw=!!String.fromCodePoint,_w=!!Object.fromEntries,Ew=!!String.prototype.codePointAt,bw=!!String.prototype.trimStart,ww=!!String.prototype.trimEnd,Sw=!!Number.isSafeInteger,Tw=Sw?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},cc=!0;try{var xw=tm("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");cc=((Rs=xw.exec("a"))===null||Rs===void 0?void 0:Rs[0])==="a"}catch{cc=!1}var Qf=yw?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},uc=vw?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",o=t.length,i=0,s;o>i;){if(s=t[i++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Xf=_w?Object.fromEntries:function(t){for(var n={},r=0,o=t;r<o.length;r++){var i=o[r],s=i[0],a=i[1];n[s]=a}return n},em=Ew?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var o=t.charCodeAt(n),i;return o<55296||o>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},Ow=bw?function(t){return t.trimStart()}:function(t){return t.replace(mw,"")},Aw=ww?function(t){return t.trimEnd()}:function(t){return t.replace(gw,"")};function tm(e,t){return new RegExp(e,t)}var lc;if(cc){var Jf=tm("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");lc=function(t,n){var r;Jf.lastIndex=n;var o=Jf.exec(t);return(r=o[1])!==null&&r!==void 0?r:""}}else lc=function(t,n){for(var r=[];;){var o=em(t,n);if(o===void 0||rm(o)||Pw(o))break;r.push(o),n+=o>=65536?2:1}return uc.apply(void 0,r)};var Cw=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.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,n,r){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var s=this.parseArgument(t,r);if(s.err)return s;o.push(s.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:Le.pound,location:_e(a,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ye.UNMATCHED_CLOSING_TAG,_e(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&fc(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Le.literal,value:"<".concat(o,"/>"),location:_e(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var s=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!fc(this.char()))return this.error(ye.INVALID_TAG,_e(a,this.clonePosition()));var l=this.clonePosition(),f=this.parseTagName();return o!==f?this.error(ye.UNMATCHED_CLOSING_TAG,_e(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Le.tag,value:o,children:s,location:_e(r,this.clonePosition())},err:null}:this.error(ye.INVALID_TAG,_e(a,this.clonePosition())))}else return this.error(ye.UNCLOSED_TAG,_e(r,this.clonePosition()))}else return this.error(ye.INVALID_TAG,_e(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Nw(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),o="";;){var i=this.tryParseQuote(n);if(i){o+=i;continue}var s=this.tryParseUnquoted(t,n);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=_e(r,this.clonePosition());return{val:{type:Le.literal,value:o,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Rw(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 n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return uc.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),uc(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ye.EMPTY_ARGUMENT,_e(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ye.MALFORMED_ARGUMENT,_e(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Le.argument,value:o,location:_e(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition())):this.parseArgumentOptions(t,n,o,r);default:return this.error(ye.MALFORMED_ARGUMENT,_e(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=lc(this.message,n),o=n+r.length;this.bumpTo(o);var i=this.clonePosition(),s=_e(t,i);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,o){var i,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(ye.EXPECT_ARGUMENT_TYPE,_e(s,l));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=Aw(h.val);if(d.length===0)return this.error(ye.EXPECT_ARGUMENT_STYLE,_e(this.clonePosition(),this.clonePosition()));var u=_e(c,this.clonePosition());f={style:d,styleLocation:u}}var p=this.tryParseArgumentClose(o);if(p.err)return p;var m=_e(o,this.clonePosition());if(f&&Qf(f==null?void 0:f.style,"::",0)){var E=Ow(f.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(E,f.styleLocation);return h.err?h:{val:{type:Le.number,value:r,location:m,style:h.val},err:null}}else{if(E.length===0)return this.error(ye.EXPECT_DATE_TIME_SKELETON,m);var T=E;this.locale&&(T=hw(E,this.locale));var d={type:Nn.dateTime,pattern:T,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?aw(T):{}},_=a==="date"?Le.date:Le.time;return{val:{type:_,value:r,location:m,style:d},err:null}}}return{val:{type:a==="number"?Le.number:a==="date"?Le.date:Le.time,value:r,location:m,style:(i=f==null?void 0:f.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ye.EXPECT_SELECT_ARGUMENT_OPTIONS,_e(b,ne({},b)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),w=0;if(a!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ye.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),A=this.parseIdentifierIfPossible(),w=h.val}var P=this.tryParsePluralOrSelectOptions(t,a,n,A);if(P.err)return P;var p=this.tryParseArgumentClose(o);if(p.err)return p;var F=_e(o,this.clonePosition());return a==="select"?{val:{type:Le.select,value:r,options:Xf(P.val),location:F},err:null}:{val:{type:Le.plural,value:r,options:Xf(P.val),offset:w,pluralType:a==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(ye.INVALID_ARGUMENT_TYPE,_e(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ye.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,_e(o,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(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=cw(t)}catch{return this.error(ye.INVALID_NUMBER_SKELETON,n)}return{val:{type:Nn.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?dw(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,o){for(var i,s=!1,a=[],l=new Set,f=o.value,c=o.location;;){if(f.length===0){var h=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,ye.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=_e(h,this.clonePosition()),f=this.message.slice(h.offset,this.offset())}else break}if(l.has(f))return this.error(n==="select"?ye.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ye.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);f==="other"&&(s=!0),this.bumpSpace();var u=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ye.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,_e(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,n,r);if(p.err)return p;var m=this.tryParseArgumentClose(u);if(m.err)return m;a.push([f,{value:p.val,location:_e(u,this.clonePosition())}]),l.add(f),this.bumpSpace(),i=this.parseIdentifierIfPossible(),f=i.value,c=i.location}return a.length===0?this.error(n==="select"?ye.EXPECT_SELECT_ARGUMENT_SELECTOR:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,_e(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ye.MISSING_OTHER_CLAUSE,_e(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,s=s*10+(a-48),this.bump();else break}var l=_e(o,this.clonePosition());return i?(s*=r,Tw(s)?{val:s,err:null}:this.error(n,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 n=em(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},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(Qf(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!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 n=this.offset();if(n===t)break;if(n>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()&&rm(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function fc(e){return e>=97&&e<=122||e>=65&&e<=90}function Rw(e){return fc(e)||e===47}function Nw(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 rm(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Pw(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 dc(e){e.forEach(function(t){if(delete t.location,Vp(t)||zp(t))for(var n in t.options)delete t.options[n].location,dc(t.options[n].value);else qp(t)&&Kp(t.style)||(Gp(t)||Wp(t))&&sc(t.style)?delete t.style.location:Yp(t)&&dc(t.children)})}function Iw(e,t){t===void 0&&(t={}),t=ne({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Cw(e,t).parse();if(n.err){var r=SyntaxError(ye[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||dc(n.val),n.val}function Bt(e,t){var n=t&&t.cache?t.cache:Uw,r=t&&t.serializer?t.serializer:Fw,o=t&&t.strategy?t.strategy:kw;return o(e,{cache:n,serializer:r})}function Lw(e){return e==null||typeof e=="number"||typeof e=="boolean"}function nm(e,t,n,r){var o=Lw(r)?r:n(r),i=t.get(o);return typeof i>"u"&&(i=e.call(this,r),t.set(o,i)),i}function im(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,r),t.set(o,i)),i}function Gc(e,t,n,r,o){return n.bind(t,e,r,o)}function kw(e,t){var n=e.length===1?nm:im;return Gc(e,this,n,t.cache.create(),t.serializer)}function Mw(e,t){return Gc(e,this,im,t.cache.create(),t.serializer)}function Bw(e,t){return Gc(e,this,nm,t.cache.create(),t.serializer)}var Fw=function(){return JSON.stringify(arguments)};function Wc(){this.cache=Object.create(null)}Wc.prototype.get=function(e){return this.cache[e]};Wc.prototype.set=function(e,t){this.cache[e]=t};var Uw={create:function(){return new Wc}},Ft={variadic:Mw,monadic:Bw},$t;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})($t||($t={}));var wr=function(e){vt(t,e);function t(n,r,o){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Zf=function(e){vt(t,e);function t(n,r,o,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),$t.INVALID_VALUE,i)||this}return t}(wr),Dw=function(e){vt(t,e);function t(n,r,o){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),$t.INVALID_VALUE,o)||this}return t}(wr),$w=function(e){vt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),$t.MISSING_VALUE,r)||this}return t}(wr),it;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(it||(it={}));function jw(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==it.literal||n.type!==it.literal?t.push(n):r.value+=n.value,t},[])}function om(e){return typeof e=="function"}function Lo(e,t,n,r,o,i,s){if(e.length===1&&Vf(e[0]))return[{type:it.literal,value:e[0].value}];for(var a=[],l=0,f=e;l<f.length;l++){var c=f[l];if(Vf(c)){a.push({type:it.literal,value:c.value});continue}if(iw(c)){typeof i=="number"&&a.push({type:it.literal,value:n.getNumberFormat(t).format(i)});continue}var h=c.value;if(!(o&&h in o))throw new $w(h,s);var d=o[h];if(nw(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?it.literal:it.object,value:d});continue}if(Gp(c)){var u=typeof c.style=="string"?r.date[c.style]:sc(c.style)?c.style.parsedOptions:void 0;a.push({type:it.literal,value:n.getDateTimeFormat(t,u).format(d)});continue}if(Wp(c)){var u=typeof c.style=="string"?r.time[c.style]:sc(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:it.literal,value:n.getDateTimeFormat(t,u).format(d)});continue}if(qp(c)){var u=typeof c.style=="string"?r.number[c.style]:Kp(c.style)?c.style.parsedOptions:void 0;u&&u.scale&&(d=d*(u.scale||1)),a.push({type:it.literal,value:n.getNumberFormat(t,u).format(d)});continue}if(Yp(c)){var p=c.children,m=c.value,E=o[m];if(!om(E))throw new Dw(m,"function",s);var T=Lo(p,t,n,r,o,i),_=E(T.map(function(w){return w.value}));Array.isArray(_)||(_=[_]),a.push.apply(a,_.map(function(w){return{type:typeof w=="string"?it.literal:it.object,value:w}}))}if(Vp(c)){var b=c.options[d]||c.options.other;if(!b)throw new Zf(c.value,d,Object.keys(c.options),s);a.push.apply(a,Lo(b.value,t,n,r,o));continue}if(zp(c)){var b=c.options["=".concat(d)];if(!b){if(!Intl.PluralRules)throw new wr(`Intl.PluralRules is not available in this environment.
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_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_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..."},Zb={collapsibleSection_summary:"En savoir plus"},ew=Object.freeze(Object.defineProperty({__proto__:null,en:Vc,fr:Zb},Symbol.toStringTag,{value:"Module"})),rr=(e,t,n,r,o={})=>{let i="";return`${t}_${n}`in Vc?i=e({id:`${t}_${n}`},o):i=e({id:t},{[r]:n,...o}),i},tw=(e,t,n)=>{if(!e||e===0)return"0";t||(t=0),n||(n=["k","m","b","t"]);let r=e.toString();t=Math.pow(10,t);for(let o=n.length-1;o>=0;o--){const i=Math.pow(10,(o+1)*3);if(i<=e){e=Math.round(e*t/i)/t,e===1e3&&o<n.length-1&&(e=1,o++),r=`${e}${n[o]}`;break}}return r},Hp=(e,t)=>D.Children.map(e,n=>D.cloneElement(n,{...t})),rw=e=>e.replace(/\s+/g,"").length>0,De=({variant:e="primary",size:t="medium",styling:n={muted:!1,fullWidth:!1},icon:r=!1,href:o=!1,element:i="button",onClick:s=!1,className:a="",disabled:u=!1,screenreaderText:f=!1,children:c=!1,...h})=>{const l=Ji(typeof t=="object");if(typeof t=="object"&&typeof l=="number"){const E=Object.assign({},t),T=$p(Object.keys(E));t=jp(l,T,E)}const p=[];typeof t=="string"&&p.push(t),r&&(p.push("icon"),typeof r=="object"?(p.push(r.icon),r.position?p.push(r.position):p.push("left"),r.hover&&p.push(`hover_${r.hover}`),r.animate&&(p.push("animate"),typeof r.animate=="string"&&p.push(r.animate))):(p.push(r),!r.includes("right")&&!r.includes("left")&&p.push("left"))),n.muted&&p.push("muted"),n.fullWidth&&p.push("full-width");const m={...h,className:ne(e,a,p,{"no-text":!c,disabled:u,button:o}),onClick:E=>{(!o||o[0]==="#")&&s&&(E.preventDefault(),E.stopPropagation()),s&&s(E)},disabled:typeof u=="object"&&"isClickable"in u?!u.isClickable:u};return o&&(i="a",m.href=o),D.createElement(i,m,c||(f?O.jsx(Je,{showOnFocus:!1,children:f}):null))},Zi=({buttons:e,className:t="",...n})=>{const r=e.length>1?"ul":"p",o=e.map((i,s)=>r==="p"?O.jsx(De,{...i},s):O.jsx("li",{children:O.jsx(De,{...i})},s));return D.createElement(r,{className:ne("button-wrapper",t),...n,children:o})};const Go=({maxWidth:e=!1})=>{const t=e?{"--max-width":`${e/16}rem`}:{};return O.jsx("hr",{className:ne({"has-max-width":e}),style:t})},zc=({href:e,children:t,className:n="",onClick:r,gtmContext:o,gtmType:i,...s})=>{if(e){const a={...s};return r&&(a.onClick=r),o&&(a["data-gtm-event-context"]=o),i&&(a["data-gtm-event-type"]=i),O.jsx("a",{href:e,className:ne("gtm-trackable",n),...a,children:t})}return t},Yf={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"}},nw=({aspect:e,range:t,sizes:n})=>{const{range:r,sizes:o}=e?Yf[e]:Yf.fallback;return{range:t&&t.length>0?t:r,sizes:n||o}},iw=({format:e,height:t,query:n,width:r})=>{let o=`w=${r}&h=${t}`;return o=e?`${o}&fm=${e}`:o,o=n?`${o}&${n}`:o,o},Ns=({format:e,range:t,url:n,query:r})=>t.map(({height:o,width:i})=>`${n}?${iw({format:e,height:o,query:r,width:i})} ${i}w`).join(", ");const qp=({image:e,className:t,testId:n})=>{const{description:r,height:o,type:i,query:s,url:a,width:u,loading:f,decoding:c,fetchPriority:h}=e,{range:d,sizes:l}=nw(e),p=Ns({format:"avif",query:s,range:d,url:a}),m=Ns({format:"webp",query:s,range:d,url:a}),E=Ns({format:"",query:s,range:d,url:a});return O.jsxs("picture",{className:t,children:[i!=="image/gif"&&O.jsx("source",{type:"image/avif",srcSet:p,sizes:l,"data-testid":"source"}),O.jsx("source",{type:"image/webp",srcSet:m,sizes:l,"data-testid":"source"}),O.jsx("img",{srcSet:E,sizes:l,src:a,alt:r,loading:f||"lazy",decoding:c||"async",fetchpriority:h||"auto",width:u,height:o,"data-testid":n||"image"})]})};var lc=function(e,t){return lc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},lc(e,t)};function vt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lc(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return ie=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ie.apply(this,arguments)};function Nn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Dt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function Gp(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var ye;(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"})(ye||(ye={}));var Le;(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"})(Le||(Le={}));var Pn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Pn||(Pn={}));function Kf(e){return e.type===Le.literal}function ow(e){return e.type===Le.argument}function Wp(e){return e.type===Le.number}function Vp(e){return e.type===Le.date}function zp(e){return e.type===Le.time}function Yp(e){return e.type===Le.select}function Kp(e){return e.type===Le.plural}function aw(e){return e.type===Le.pound}function Qp(e){return e.type===Le.tag}function Xp(e){return!!(e&&typeof e=="object"&&e.type===Pn.number)}function fc(e){return!!(e&&typeof e=="object"&&e.type===Pn.dateTime)}var Jp=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,sw=/(?:[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 cw(e){var t={};return e.replace(sw,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===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"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-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=r===4?"short":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-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"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-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"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<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 uw=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function lw(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(uw).filter(function(d){return d.length>0}),n=[],r=0,o=t;r<o.length;r++){var i=o[r],s=i.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),f=0,c=u;f<c.length;f++){var h=c[f];if(h.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:u})}return n}function fw(e){return e.replace(/^(.*?)-/,"")}var Qf=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zp=/^(@+)?(\+|#+)?[rs]?$/g,dw=/(\*)(0+)|(#+)(0+)|(0+)/g,em=/^(0+)$/;function Xf(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Zp,function(n,r,o){return typeof o!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):o==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof o=="string"?o.length:0)),""}),t}function tm(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 hw(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 n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!em.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Jf(e){var t={},n=tm(e);return n||t}function pw(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.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=fw(o.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=ie(ie(ie({},t),{notation:"scientific"}),o.options.reduce(function(u,f){return ie(ie({},u),Jf(f))},{}));continue;case"engineering":t=ie(ie(ie({},t),{notation:"engineering"}),o.options.reduce(function(u,f){return ie(ie({},u),Jf(f))},{}));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(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(dw,function(u,f,c,h,d,l){if(f)t.minimumIntegerDigits=c.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(l)throw new Error("We currently do not support exact integer digits")}return""});continue}if(em.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Qf.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Qf,function(u,f,c,h,d,l){return c==="*"?t.minimumFractionDigits=f.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:d&&l?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+l.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});var i=o.options[0];i==="w"?t=ie(ie({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=ie(ie({},t),Xf(i)));continue}if(Zp.test(o.stem)){t=ie(ie({},t),Xf(o.stem));continue}var s=tm(o.stem);s&&(t=ie(ie({},t),s));var a=hw(o.stem);a&&(t=ie(ie({},t),a))}return t}var Oo={"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 mw(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if(o==="j"){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var s=1+(i&1),a=i<2?1:3+(i>>1),u="a",f=gw(t);for((f=="H"||f=="k")&&(a=0);a-- >0;)n+=u;for(;s-- >0;)n=f+n}else o==="J"?n+="H":n+=o}return n}function gw(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 n=e.language,r;n!=="root"&&(r=e.maximize().region);var o=Oo[r||""]||Oo[n||""]||Oo["".concat(n,"-001")]||Oo["001"];return o[0]}var Ps,yw=new RegExp("^".concat(Jp.source,"*")),vw=new RegExp("".concat(Jp.source,"*$"));function _e(e,t){return{start:e,end:t}}var _w=!!String.prototype.startsWith,Ew=!!String.fromCodePoint,bw=!!Object.fromEntries,ww=!!String.prototype.codePointAt,Sw=!!String.prototype.trimStart,Tw=!!String.prototype.trimEnd,xw=!!Number.isSafeInteger,Ow=xw?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},dc=!0;try{var Aw=nm("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");dc=((Ps=Aw.exec("a"))===null||Ps===void 0?void 0:Ps[0])==="a"}catch{dc=!1}var Zf=_w?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},hc=Ew?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",o=t.length,i=0,s;o>i;){if(s=t[i++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},ed=bw?Object.fromEntries:function(t){for(var n={},r=0,o=t;r<o.length;r++){var i=o[r],s=i[0],a=i[1];n[s]=a}return n},rm=ww?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var o=t.charCodeAt(n),i;return o<55296||o>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},Cw=Sw?function(t){return t.trimStart()}:function(t){return t.replace(yw,"")},Rw=Tw?function(t){return t.trimEnd()}:function(t){return t.replace(vw,"")};function nm(e,t){return new RegExp(e,t)}var pc;if(dc){var td=nm("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");pc=function(t,n){var r;td.lastIndex=n;var o=td.exec(t);return(r=o[1])!==null&&r!==void 0?r:""}}else pc=function(t,n){for(var r=[];;){var o=rm(t,n);if(o===void 0||im(o)||Lw(o))break;r.push(o),n+=o>=65536?2:1}return hc.apply(void 0,r)};var Nw=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.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,n,r){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var s=this.parseArgument(t,r);if(s.err)return s;o.push(s.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:Le.pound,location:_e(a,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ye.UNMATCHED_CLOSING_TAG,_e(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&mc(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Le.literal,value:"<".concat(o,"/>"),location:_e(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var s=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!mc(this.char()))return this.error(ye.INVALID_TAG,_e(a,this.clonePosition()));var u=this.clonePosition(),f=this.parseTagName();return o!==f?this.error(ye.UNMATCHED_CLOSING_TAG,_e(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Le.tag,value:o,children:s,location:_e(r,this.clonePosition())},err:null}:this.error(ye.INVALID_TAG,_e(a,this.clonePosition())))}else return this.error(ye.UNCLOSED_TAG,_e(r,this.clonePosition()))}else return this.error(ye.INVALID_TAG,_e(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Iw(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),o="";;){var i=this.tryParseQuote(n);if(i){o+=i;continue}var s=this.tryParseUnquoted(t,n);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var u=_e(r,this.clonePosition());return{val:{type:Le.literal,value:o,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Pw(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 n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return hc.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),hc(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ye.EMPTY_ARGUMENT,_e(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ye.MALFORMED_ARGUMENT,_e(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Le.argument,value:o,location:_e(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition())):this.parseArgumentOptions(t,n,o,r);default:return this.error(ye.MALFORMED_ARGUMENT,_e(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=pc(this.message,n),o=n+r.length;this.bumpTo(o);var i=this.clonePosition(),s=_e(t,i);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,o){var i,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(ye.EXPECT_ARGUMENT_TYPE,_e(s,u));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=Rw(h.val);if(d.length===0)return this.error(ye.EXPECT_ARGUMENT_STYLE,_e(this.clonePosition(),this.clonePosition()));var l=_e(c,this.clonePosition());f={style:d,styleLocation:l}}var p=this.tryParseArgumentClose(o);if(p.err)return p;var m=_e(o,this.clonePosition());if(f&&Zf(f==null?void 0:f.style,"::",0)){var E=Cw(f.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(E,f.styleLocation);return h.err?h:{val:{type:Le.number,value:r,location:m,style:h.val},err:null}}else{if(E.length===0)return this.error(ye.EXPECT_DATE_TIME_SKELETON,m);var T=E;this.locale&&(T=mw(E,this.locale));var d={type:Pn.dateTime,pattern:T,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?cw(T):{}},_=a==="date"?Le.date:Le.time;return{val:{type:_,value:r,location:m,style:d},err:null}}}return{val:{type:a==="number"?Le.number:a==="date"?Le.date:Le.time,value:r,location:m,style:(i=f==null?void 0:f.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ye.EXPECT_SELECT_ARGUMENT_OPTIONS,_e(b,ie({},b)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),w=0;if(a!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ye.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),A=this.parseIdentifierIfPossible(),w=h.val}var N=this.tryParsePluralOrSelectOptions(t,a,n,A);if(N.err)return N;var p=this.tryParseArgumentClose(o);if(p.err)return p;var F=_e(o,this.clonePosition());return a==="select"?{val:{type:Le.select,value:r,options:ed(N.val),location:F},err:null}:{val:{type:Le.plural,value:r,options:ed(N.val),offset:w,pluralType:a==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(ye.INVALID_ARGUMENT_TYPE,_e(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ye.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,_e(o,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(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=lw(t)}catch{return this.error(ye.INVALID_NUMBER_SKELETON,n)}return{val:{type:Pn.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?pw(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,o){for(var i,s=!1,a=[],u=new Set,f=o.value,c=o.location;;){if(f.length===0){var h=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,ye.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=_e(h,this.clonePosition()),f=this.message.slice(h.offset,this.offset())}else break}if(u.has(f))return this.error(n==="select"?ye.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ye.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);f==="other"&&(s=!0),this.bumpSpace();var l=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ye.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,_e(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,n,r);if(p.err)return p;var m=this.tryParseArgumentClose(l);if(m.err)return m;a.push([f,{value:p.val,location:_e(l,this.clonePosition())}]),u.add(f),this.bumpSpace(),i=this.parseIdentifierIfPossible(),f=i.value,c=i.location}return a.length===0?this.error(n==="select"?ye.EXPECT_SELECT_ARGUMENT_SELECTOR:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,_e(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ye.MISSING_OTHER_CLAUSE,_e(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,s=s*10+(a-48),this.bump();else break}var u=_e(o,this.clonePosition());return i?(s*=r,Ow(s)?{val:s,err:null}:this.error(n,u)):this.error(t,u)},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 n=rm(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},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(Zf(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!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 n=this.offset();if(n===t)break;if(n>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()&&im(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function mc(e){return e>=97&&e<=122||e>=65&&e<=90}function Pw(e){return mc(e)||e===47}function Iw(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 im(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Lw(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 gc(e){e.forEach(function(t){if(delete t.location,Yp(t)||Kp(t))for(var n in t.options)delete t.options[n].location,gc(t.options[n].value);else Wp(t)&&Xp(t.style)||(Vp(t)||zp(t))&&fc(t.style)?delete t.style.location:Qp(t)&&gc(t.children)})}function Mw(e,t){t===void 0&&(t={}),t=ie({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Nw(e,t).parse();if(n.err){var r=SyntaxError(ye[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||gc(n.val),n.val}function Bt(e,t){var n=t&&t.cache?t.cache:$w,r=t&&t.serializer?t.serializer:Dw,o=t&&t.strategy?t.strategy:Bw;return o(e,{cache:n,serializer:r})}function kw(e){return e==null||typeof e=="number"||typeof e=="boolean"}function om(e,t,n,r){var o=kw(r)?r:n(r),i=t.get(o);return typeof i>"u"&&(i=e.call(this,r),t.set(o,i)),i}function am(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,r),t.set(o,i)),i}function Yc(e,t,n,r,o){return n.bind(t,e,r,o)}function Bw(e,t){var n=e.length===1?om:am;return Yc(e,this,n,t.cache.create(),t.serializer)}function Fw(e,t){return Yc(e,this,am,t.cache.create(),t.serializer)}function Uw(e,t){return Yc(e,this,om,t.cache.create(),t.serializer)}var Dw=function(){return JSON.stringify(arguments)};function Kc(){this.cache=Object.create(null)}Kc.prototype.get=function(e){return this.cache[e]};Kc.prototype.set=function(e,t){this.cache[e]=t};var $w={create:function(){return new Kc}},Ft={variadic:Fw,monadic:Uw},$t;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})($t||($t={}));var wr=function(e){vt(t,e);function t(n,r,o){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),rd=function(e){vt(t,e);function t(n,r,o,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),$t.INVALID_VALUE,i)||this}return t}(wr),jw=function(e){vt(t,e);function t(n,r,o){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),$t.INVALID_VALUE,o)||this}return t}(wr),Hw=function(e){vt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),$t.MISSING_VALUE,r)||this}return t}(wr),ot;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ot||(ot={}));function qw(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==ot.literal||n.type!==ot.literal?t.push(n):r.value+=n.value,t},[])}function sm(e){return typeof e=="function"}function Mo(e,t,n,r,o,i,s){if(e.length===1&&Kf(e[0]))return[{type:ot.literal,value:e[0].value}];for(var a=[],u=0,f=e;u<f.length;u++){var c=f[u];if(Kf(c)){a.push({type:ot.literal,value:c.value});continue}if(aw(c)){typeof i=="number"&&a.push({type:ot.literal,value:n.getNumberFormat(t).format(i)});continue}var h=c.value;if(!(o&&h in o))throw new Hw(h,s);var d=o[h];if(ow(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?ot.literal:ot.object,value:d});continue}if(Vp(c)){var l=typeof c.style=="string"?r.date[c.style]:fc(c.style)?c.style.parsedOptions:void 0;a.push({type:ot.literal,value:n.getDateTimeFormat(t,l).format(d)});continue}if(zp(c)){var l=typeof c.style=="string"?r.time[c.style]:fc(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:ot.literal,value:n.getDateTimeFormat(t,l).format(d)});continue}if(Wp(c)){var l=typeof c.style=="string"?r.number[c.style]:Xp(c.style)?c.style.parsedOptions:void 0;l&&l.scale&&(d=d*(l.scale||1)),a.push({type:ot.literal,value:n.getNumberFormat(t,l).format(d)});continue}if(Qp(c)){var p=c.children,m=c.value,E=o[m];if(!sm(E))throw new jw(m,"function",s);var T=Mo(p,t,n,r,o,i),_=E(T.map(function(w){return w.value}));Array.isArray(_)||(_=[_]),a.push.apply(a,_.map(function(w){return{type:typeof w=="string"?ot.literal:ot.object,value:w}}))}if(Yp(c)){var b=c.options[d]||c.options.other;if(!b)throw new rd(c.value,d,Object.keys(c.options),s);a.push.apply(a,Mo(b.value,t,n,r,o));continue}if(Kp(c)){var b=c.options["=".concat(d)];if(!b){if(!Intl.PluralRules)throw new wr(`Intl.PluralRules is not available in this environment.
66
66
  Try polyfilling it using "@formatjs/intl-pluralrules"
67
- `,$t.MISSING_INTL_API,s);var A=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));b=c.options[A]||c.options.other}if(!b)throw new Zf(c.value,d,Object.keys(c.options),s);a.push.apply(a,Lo(b.value,t,n,r,o,d-(c.offset||0)));continue}}return jw(a)}function Hw(e,t){return t?ne(ne(ne({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=ne(ne({},e[r]),t[r]||{}),n},{})):e}function qw(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Hw(e[r],t[r]),n},ne({},e)):e}function Ns(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Gw(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Bt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Dt([void 0],n,!1)))},{cache:Ns(e.number),strategy:Ft.variadic}),getDateTimeFormat:Bt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Dt([void 0],n,!1)))},{cache:Ns(e.dateTime),strategy:Ft.variadic}),getPluralRules:Bt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Dt([void 0],n,!1)))},{cache:Ns(e.pluralRules),strategy:Ft.variadic})}}var am=function(){function e(t,n,r,o){n===void 0&&(n=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var f=i.formatToParts(l);if(f.length===1)return f[0].value;var c=f.reduce(function(h,d){return!h.length||d.type!==it.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return Lo(i.ast,i.locales,i.formatters,i.formats,l,void 0,i.message)},this.resolvedOptions=function(){var l;return{locale:((l=i.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{};s.formatters;var a=Rn(s,["formatters"]);this.ast=e.__parse(t,ne(ne({},a),{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=qw(e.formats,r),this.formatters=o&&o.formatters||Gw(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 n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Iw,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}(),Zr;(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"})(Zr||(Zr={}));var Zi=function(e){vt(t,e);function t(n,r,o){var i=this,s=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
67
+ `,$t.MISSING_INTL_API,s);var A=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));b=c.options[A]||c.options.other}if(!b)throw new rd(c.value,d,Object.keys(c.options),s);a.push.apply(a,Mo(b.value,t,n,r,o,d-(c.offset||0)));continue}}return qw(a)}function Gw(e,t){return t?ie(ie(ie({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=ie(ie({},e[r]),t[r]||{}),n},{})):e}function Ww(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Gw(e[r],t[r]),n},ie({},e)):e}function Is(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Vw(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Bt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Dt([void 0],n,!1)))},{cache:Is(e.number),strategy:Ft.variadic}),getDateTimeFormat:Bt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Dt([void 0],n,!1)))},{cache:Is(e.dateTime),strategy:Ft.variadic}),getPluralRules:Bt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Dt([void 0],n,!1)))},{cache:Is(e.pluralRules),strategy:Ft.variadic})}}var cm=function(){function e(t,n,r,o){n===void 0&&(n=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var f=i.formatToParts(u);if(f.length===1)return f[0].value;var c=f.reduce(function(h,d){return!h.length||d.type!==ot.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(u){return Mo(i.ast,i.locales,i.formatters,i.formats,u,void 0,i.message)},this.resolvedOptions=function(){var u;return{locale:((u=i.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{};s.formatters;var a=Nn(s,["formatters"]);this.ast=e.__parse(t,ie(ie({},a),{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=Ww(e.formats,r),this.formatters=o&&o.formatters||Vw(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 n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Mw,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}(),en;(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"})(en||(en={}));var eo=function(e){vt(t,e);function t(n,r,o){var i=this,s=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
68
68
  `).concat(s?`
69
69
  `.concat(s.message,`
70
- `).concat(s.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),Ww=function(e){vt(t,e);function t(n,r){return e.call(this,Zr.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Zi),Vw=function(e){vt(t,e);function t(n,r){return e.call(this,Zr.INVALID_CONFIG,n,r)||this}return t}(Zi),ed=function(e){vt(t,e);function t(n,r){return e.call(this,Zr.MISSING_DATA,n,r)||this}return t}(Zi),_t=function(e){vt(t,e);function t(n,r,o){var i=e.call(this,Zr.FORMAT_ERROR,"".concat(n,`
70
+ `).concat(s.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),zw=function(e){vt(t,e);function t(n,r){return e.call(this,en.UNSUPPORTED_FORMATTER,n,r)||this}return t}(eo),Yw=function(e){vt(t,e);function t(n,r){return e.call(this,en.INVALID_CONFIG,n,r)||this}return t}(eo),nd=function(e){vt(t,e);function t(n,r){return e.call(this,en.MISSING_DATA,n,r)||this}return t}(eo),_t=function(e){vt(t,e);function t(n,r,o){var i=e.call(this,en.FORMAT_ERROR,"".concat(n,`
71
71
  Locale: `).concat(r,`
72
- `),o)||this;return i.locale=r,i}return t}(Zi),Ps=function(e){vt(t,e);function t(n,r,o,i){var s=e.call(this,"".concat(n,`
72
+ `),o)||this;return i.locale=r,i}return t}(eo),Ls=function(e){vt(t,e);function t(n,r,o,i){var s=e.call(this,"".concat(n,`
73
73
  MessageID: `).concat(o==null?void 0:o.id,`
74
74
  Default Message: `).concat(o==null?void 0:o.defaultMessage,`
75
75
  Description: `).concat(o==null?void 0:o.description,`
76
- `),r,i)||this;return s.descriptor=o,s.locale=r,s}return t}(_t),zw=function(e){vt(t,e);function t(n,r){var o=e.call(this,Zr.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(i){var s;return(s=i.value)!==null&&s!==void 0?s:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=n,o}return t}(Zi);function rn(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,o){return o in e?r[o]=e[o]:o in n&&(r[o]=n[o]),r},{})}var Yw=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},Kw=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},sm={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:Yw,onWarn:Kw};function cm(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function zr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Qw(e){e===void 0&&(e=cm());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,o=Bt(function(){for(var a,l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new((a=Intl.DateTimeFormat).bind.apply(a,Dt([void 0],l,!1)))},{cache:zr(e.dateTime),strategy:Ft.variadic}),i=Bt(function(){for(var a,l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new((a=Intl.NumberFormat).bind.apply(a,Dt([void 0],l,!1)))},{cache:zr(e.number),strategy:Ft.variadic}),s=Bt(function(){for(var a,l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new((a=Intl.PluralRules).bind.apply(a,Dt([void 0],l,!1)))},{cache:zr(e.pluralRules),strategy:Ft.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:Bt(function(a,l,f,c){return new am(a,l,f,ne({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:s}},c||{}))},{cache:zr(e.message),strategy:Ft.variadic}),getRelativeTimeFormat:Bt(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(t.bind.apply(t,Dt([void 0],a,!1)))},{cache:zr(e.relativeTime),strategy:Ft.variadic}),getPluralRules:s,getListFormat:Bt(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(n.bind.apply(n,Dt([void 0],a,!1)))},{cache:zr(e.list),strategy:Ft.variadic}),getDisplayNames:Bt(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(r.bind.apply(r,Dt([void 0],a,!1)))},{cache:zr(e.displayNames),strategy:Ft.variadic})}}function Vc(e,t,n,r){var o=e&&e[t],i;if(o&&(i=o[n]),i)return i;r(new Ww("No ".concat(t," format named: ").concat(n)))}function Oo(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=ne({timeZone:t},e[r]),n},{})}function td(e,t){var n=Object.keys(ne(ne({},e),t));return n.reduce(function(r,o){return r[o]=ne(ne({},e[o]||{}),t[o]||{}),r},{})}function rd(e,t){if(!t)return e;var n=am.formats;return ne(ne(ne({},n),e),{date:td(Oo(n.date,t),Oo(e.date||{},t)),time:td(Oo(n.time,t),Oo(e.time||{},t))})}var hc=function(e,t,n,r,o){var i=e.locale,s=e.formats,a=e.messages,l=e.defaultLocale,f=e.defaultFormats,c=e.fallbackOnEmptyString,h=e.onError,d=e.timeZone,u=e.defaultRichTextElements;n===void 0&&(n={id:""});var p=n.id,m=n.defaultMessage;Hp(!!p,"[@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 E=String(p),T=a&&Object.prototype.hasOwnProperty.call(a,E)&&a[E];if(Array.isArray(T)&&T.length===1&&T[0].type===Le.literal)return T[0].value;if(!r&&T&&typeof T=="string"&&!u)return T.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=ne(ne({},u),r||{}),s=rd(s,d),f=rd(f,d),!T){if(c===!1&&T==="")return T;if((!m||i&&i.toLowerCase()!==l.toLowerCase())&&h(new zw(n,i)),m)try{var _=t.getMessageFormat(m,l,f,o);return _.format(r)}catch(b){return h(new Ps('Error formatting default message for: "'.concat(E,'", rendering default message verbatim'),i,n,b)),typeof m=="string"?m:E}return E}try{var _=t.getMessageFormat(T,i,s,ne({formatters:t},o||{}));return _.format(r)}catch(b){h(new Ps('Error formatting message: "'.concat(E,'", using ').concat(m?"default message":"id"," as fallback."),i,n,b))}if(m)try{var _=t.getMessageFormat(m,l,f,o);return _.format(r)}catch(b){h(new Ps('Error formatting the default message for: "'.concat(E,'", rendering message verbatim'),i,n,b))}return typeof T=="string"?T:typeof m=="string"?m:E},um=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ra(e,t,n,r){var o=e.locale,i=e.formats,s=e.onError,a=e.timeZone;r===void 0&&(r={});var l=r.format,f=ne(ne({},a&&{timeZone:a}),l&&Vc(i,t,l,s)),c=rn(r,um,f);return t==="time"&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle&&(c=ne(ne({},c),{hour:"numeric",minute:"numeric"})),n(o,c)}function Xw(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return ra(e,"date",t,s).format(a)}catch(l){e.onError(new _t("Error formatting date.",e.locale,l))}return String(a)}function Jw(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return ra(e,"time",t,s).format(a)}catch(l){e.onError(new _t("Error formatting time.",e.locale,l))}return String(a)}function Zw(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=n[2],a=s===void 0?{}:s,l=e.timeZone,f=e.locale,c=e.onError,h=rn(a,um,l?{timeZone:l}:{});try{return t(f,h).formatRange(o,i)}catch(d){c(new _t("Error formatting date time range.",e.locale,d))}return String(o)}function eS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return ra(e,"date",t,s).formatToParts(a)}catch(l){e.onError(new _t("Error formatting date.",e.locale,l))}return[]}function tS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return ra(e,"time",t,s).formatToParts(a)}catch(l){e.onError(new _t("Error formatting time.",e.locale,l))}return[]}var rS=["style","type","fallback","languageDisplay"];function nS(e,t,n,r){var o=e.locale,i=e.onError,s=Intl.DisplayNames;s||i(new wr(`Intl.DisplayNames is not available in this environment.
76
+ `),r,i)||this;return s.descriptor=o,s.locale=r,s}return t}(_t),Kw=function(e){vt(t,e);function t(n,r){var o=e.call(this,en.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(i){var s;return(s=i.value)!==null&&s!==void 0?s:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=n,o}return t}(eo);function nn(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,o){return o in e?r[o]=e[o]:o in n&&(r[o]=n[o]),r},{})}var Qw=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},Xw=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},um={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:Qw,onWarn:Xw};function lm(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function zr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Jw(e){e===void 0&&(e=lm());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,o=Bt(function(){for(var a,u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return new((a=Intl.DateTimeFormat).bind.apply(a,Dt([void 0],u,!1)))},{cache:zr(e.dateTime),strategy:Ft.variadic}),i=Bt(function(){for(var a,u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return new((a=Intl.NumberFormat).bind.apply(a,Dt([void 0],u,!1)))},{cache:zr(e.number),strategy:Ft.variadic}),s=Bt(function(){for(var a,u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return new((a=Intl.PluralRules).bind.apply(a,Dt([void 0],u,!1)))},{cache:zr(e.pluralRules),strategy:Ft.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:Bt(function(a,u,f,c){return new cm(a,u,f,ie({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:s}},c||{}))},{cache:zr(e.message),strategy:Ft.variadic}),getRelativeTimeFormat:Bt(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return new(t.bind.apply(t,Dt([void 0],a,!1)))},{cache:zr(e.relativeTime),strategy:Ft.variadic}),getPluralRules:s,getListFormat:Bt(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return new(n.bind.apply(n,Dt([void 0],a,!1)))},{cache:zr(e.list),strategy:Ft.variadic}),getDisplayNames:Bt(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return new(r.bind.apply(r,Dt([void 0],a,!1)))},{cache:zr(e.displayNames),strategy:Ft.variadic})}}function Qc(e,t,n,r){var o=e&&e[t],i;if(o&&(i=o[n]),i)return i;r(new zw("No ".concat(t," format named: ").concat(n)))}function Ao(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=ie({timeZone:t},e[r]),n},{})}function id(e,t){var n=Object.keys(ie(ie({},e),t));return n.reduce(function(r,o){return r[o]=ie(ie({},e[o]||{}),t[o]||{}),r},{})}function od(e,t){if(!t)return e;var n=cm.formats;return ie(ie(ie({},n),e),{date:id(Ao(n.date,t),Ao(e.date||{},t)),time:id(Ao(n.time,t),Ao(e.time||{},t))})}var yc=function(e,t,n,r,o){var i=e.locale,s=e.formats,a=e.messages,u=e.defaultLocale,f=e.defaultFormats,c=e.fallbackOnEmptyString,h=e.onError,d=e.timeZone,l=e.defaultRichTextElements;n===void 0&&(n={id:""});var p=n.id,m=n.defaultMessage;Gp(!!p,"[@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 E=String(p),T=a&&Object.prototype.hasOwnProperty.call(a,E)&&a[E];if(Array.isArray(T)&&T.length===1&&T[0].type===Le.literal)return T[0].value;if(!r&&T&&typeof T=="string"&&!l)return T.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=ie(ie({},l),r||{}),s=od(s,d),f=od(f,d),!T){if(c===!1&&T==="")return T;if((!m||i&&i.toLowerCase()!==u.toLowerCase())&&h(new Kw(n,i)),m)try{var _=t.getMessageFormat(m,u,f,o);return _.format(r)}catch(b){return h(new Ls('Error formatting default message for: "'.concat(E,'", rendering default message verbatim'),i,n,b)),typeof m=="string"?m:E}return E}try{var _=t.getMessageFormat(T,i,s,ie({formatters:t},o||{}));return _.format(r)}catch(b){h(new Ls('Error formatting message: "'.concat(E,'", using ').concat(m?"default message":"id"," as fallback."),i,n,b))}if(m)try{var _=t.getMessageFormat(m,u,f,o);return _.format(r)}catch(b){h(new Ls('Error formatting the default message for: "'.concat(E,'", rendering message verbatim'),i,n,b))}return typeof T=="string"?T:typeof m=="string"?m:E},fm=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function na(e,t,n,r){var o=e.locale,i=e.formats,s=e.onError,a=e.timeZone;r===void 0&&(r={});var u=r.format,f=ie(ie({},a&&{timeZone:a}),u&&Qc(i,t,u,s)),c=nn(r,fm,f);return t==="time"&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle&&(c=ie(ie({},c),{hour:"numeric",minute:"numeric"})),n(o,c)}function Zw(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return na(e,"date",t,s).format(a)}catch(u){e.onError(new _t("Error formatting date.",e.locale,u))}return String(a)}function eS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return na(e,"time",t,s).format(a)}catch(u){e.onError(new _t("Error formatting time.",e.locale,u))}return String(a)}function tS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=n[2],a=s===void 0?{}:s,u=e.timeZone,f=e.locale,c=e.onError,h=nn(a,fm,u?{timeZone:u}:{});try{return t(f,h).formatRange(o,i)}catch(d){c(new _t("Error formatting date time range.",e.locale,d))}return String(o)}function rS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return na(e,"date",t,s).formatToParts(a)}catch(u){e.onError(new _t("Error formatting date.",e.locale,u))}return[]}function nS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return na(e,"time",t,s).formatToParts(a)}catch(u){e.onError(new _t("Error formatting time.",e.locale,u))}return[]}var iS=["style","type","fallback","languageDisplay"];function oS(e,t,n,r){var o=e.locale,i=e.onError,s=Intl.DisplayNames;s||i(new wr(`Intl.DisplayNames is not available in this environment.
77
77
  Try polyfilling it using "@formatjs/intl-displaynames"
78
- `,$t.MISSING_INTL_API));var a=rn(r,rS);try{return t(o,a).of(n)}catch(l){i(new _t("Error formatting display name.",o,l))}}var iS=["type","style"],nd=Date.now();function oS(e){return"".concat(nd,"_").concat(e,"_").concat(nd)}function aS(e,t,n,r){r===void 0&&(r={});var o=lm(e,t,n,r).reduce(function(i,s){var a=s.value;return typeof a!="string"?i.push(a):typeof i[i.length-1]=="string"?i[i.length-1]+=a:i.push(a),i},[]);return o.length===1?o[0]:o.length===0?"":o}function lm(e,t,n,r){var o=e.locale,i=e.onError;r===void 0&&(r={});var s=Intl.ListFormat;s||i(new wr(`Intl.ListFormat is not available in this environment.
78
+ `,$t.MISSING_INTL_API));var a=nn(r,iS);try{return t(o,a).of(n)}catch(u){i(new _t("Error formatting display name.",o,u))}}var aS=["type","style"],ad=Date.now();function sS(e){return"".concat(ad,"_").concat(e,"_").concat(ad)}function cS(e,t,n,r){r===void 0&&(r={});var o=dm(e,t,n,r).reduce(function(i,s){var a=s.value;return typeof a!="string"?i.push(a):typeof i[i.length-1]=="string"?i[i.length-1]+=a:i.push(a),i},[]);return o.length===1?o[0]:o.length===0?"":o}function dm(e,t,n,r){var o=e.locale,i=e.onError;r===void 0&&(r={});var s=Intl.ListFormat;s||i(new wr(`Intl.ListFormat is not available in this environment.
79
79
  Try polyfilling it using "@formatjs/intl-listformat"
80
- `,$t.MISSING_INTL_API));var a=rn(r,iS);try{var l={},f=n.map(function(c,h){if(typeof c=="object"){var d=oS(h);return l[d]=c,d}return String(c)});return t(o,a).formatToParts(f).map(function(c){return c.type==="literal"?c:ne(ne({},c),{value:l[c.value]||c.value})})}catch(c){i(new _t("Error formatting list.",o,c))}return n}var sS=["type"];function cS(e,t,n,r){var o=e.locale,i=e.onError;r===void 0&&(r={}),Intl.PluralRules||i(new wr(`Intl.PluralRules is not available in this environment.
80
+ `,$t.MISSING_INTL_API));var a=nn(r,aS);try{var u={},f=n.map(function(c,h){if(typeof c=="object"){var d=sS(h);return u[d]=c,d}return String(c)});return t(o,a).formatToParts(f).map(function(c){return c.type==="literal"?c:ie(ie({},c),{value:u[c.value]||c.value})})}catch(c){i(new _t("Error formatting list.",o,c))}return n}var uS=["type"];function lS(e,t,n,r){var o=e.locale,i=e.onError;r===void 0&&(r={}),Intl.PluralRules||i(new wr(`Intl.PluralRules is not available in this environment.
81
81
  Try polyfilling it using "@formatjs/intl-pluralrules"
82
- `,$t.MISSING_INTL_API));var s=rn(r,sS);try{return t(o,s).select(n)}catch(a){i(new _t("Error formatting plural.",o,a))}return"other"}var uS=["numeric","style"];function lS(e,t,n){var r=e.locale,o=e.formats,i=e.onError;n===void 0&&(n={});var s=n.format,a=!!s&&Vc(o,"relative",s,i)||{},l=rn(n,uS,a);return t(r,l)}function fS(e,t,n,r,o){o===void 0&&(o={}),r||(r="second");var i=Intl.RelativeTimeFormat;i||e.onError(new wr(`Intl.RelativeTimeFormat is not available in this environment.
82
+ `,$t.MISSING_INTL_API));var s=nn(r,uS);try{return t(o,s).select(n)}catch(a){i(new _t("Error formatting plural.",o,a))}return"other"}var fS=["numeric","style"];function dS(e,t,n){var r=e.locale,o=e.formats,i=e.onError;n===void 0&&(n={});var s=n.format,a=!!s&&Qc(o,"relative",s,i)||{},u=nn(n,fS,a);return t(r,u)}function hS(e,t,n,r,o){o===void 0&&(o={}),r||(r="second");var i=Intl.RelativeTimeFormat;i||e.onError(new wr(`Intl.RelativeTimeFormat is not available in this environment.
83
83
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
84
- `,$t.MISSING_INTL_API));try{return lS(e,t,o).format(n,r)}catch(s){e.onError(new _t("Error formatting relative time.",e.locale,s))}return String(n)}var dS=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function fm(e,t,n){var r=e.locale,o=e.formats,i=e.onError;n===void 0&&(n={});var s=n.format,a=s&&Vc(o,"number",s,i)||{},l=rn(n,dS,a);return t(r,l)}function hS(e,t,n,r){r===void 0&&(r={});try{return fm(e,t,r).format(n)}catch(o){e.onError(new _t("Error formatting number.",e.locale,o))}return String(n)}function pS(e,t,n,r){r===void 0&&(r={});try{return fm(e,t,r).formatToParts(n)}catch(o){e.onError(new _t("Error formatting number.",e.locale,o))}return[]}function mS(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function gS(e){e.onWarn&&e.defaultRichTextElements&&mS(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
84
+ `,$t.MISSING_INTL_API));try{return dS(e,t,o).format(n,r)}catch(s){e.onError(new _t("Error formatting relative time.",e.locale,s))}return String(n)}var pS=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function hm(e,t,n){var r=e.locale,o=e.formats,i=e.onError;n===void 0&&(n={});var s=n.format,a=s&&Qc(o,"number",s,i)||{},u=nn(n,pS,a);return t(r,u)}function mS(e,t,n,r){r===void 0&&(r={});try{return hm(e,t,r).format(n)}catch(o){e.onError(new _t("Error formatting number.",e.locale,o))}return String(n)}function gS(e,t,n,r){r===void 0&&(r={});try{return hm(e,t,r).formatToParts(n)}catch(o){e.onError(new _t("Error formatting number.",e.locale,o))}return[]}function yS(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function vS(e){e.onWarn&&e.defaultRichTextElements&&yS(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
85
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 yS(e,t){var n=Qw(t),r=ne(ne({},sm),e),o=r.locale,i=r.defaultLocale,s=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&s?s(new ed('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&s&&s(new ed('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new Vw('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),gS(r),ne(ne({},r),{formatters:n,formatNumber:hS.bind(null,r,n.getNumberFormat),formatNumberToParts:pS.bind(null,r,n.getNumberFormat),formatRelativeTime:fS.bind(null,r,n.getRelativeTimeFormat),formatDate:Xw.bind(null,r,n.getDateTimeFormat),formatDateToParts:eS.bind(null,r,n.getDateTimeFormat),formatTime:Jw.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:Zw.bind(null,r,n.getDateTimeFormat),formatTimeToParts:tS.bind(null,r,n.getDateTimeFormat),formatPlural:cS.bind(null,r,n.getPluralRules),formatMessage:hc.bind(null,r,n),$t:hc.bind(null,r,n),formatList:aS.bind(null,r,n.getListFormat),formatListToParts:lm.bind(null,r,n.getListFormat),formatDisplayName:nS.bind(null,r,n.getDisplayNames)})}function dm(e){Hp(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var hm=ne(ne({},sm),{textComponent:xe.Fragment});function vS(e){return function(t){return e(xe.Children.toArray(t))}}function pc(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var s=n[i];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var zc=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=xe.createContext(null)):xe.createContext(null);zc.Consumer;var _S=zc.Provider,ES=_S,bS=zc;function Re(){var e=xe.useContext(bS);return dm(e),e}var mc;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(mc||(mc={}));var gc;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(gc||(gc={}));function pm(e){var t=function(n){var r=Re(),o=n.value,i=n.children,s=Rn(n,["value","children"]),a=typeof o=="string"?new Date(o||0):o,l=e==="formatDate"?r.formatDateToParts(a,s):r.formatTimeToParts(a,s);return i(l)};return t.displayName=gc[e],t}function eo(e){var t=function(n){var r=Re(),o=n.value,i=n.children,s=Rn(n,["value","children"]),a=r[e](o,s);if(typeof i=="function")return i(a);var l=r.textComponent||xe.Fragment;return xe.createElement(l,null,a)};return t.displayName=mc[e],t}function Is(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 mm(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=om(r)?vS(r):r,t},{})}var id=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var s=mm(r),a=hc.apply(void 0,Dt([e,t,n,s],o,!1));return Array.isArray(a)?xe.Children.toArray(a):a},yc=function(e,t){var n=e.defaultRichTextElements,r=Rn(e,["defaultRichTextElements"]),o=mm(n),i=yS(ne(ne(ne({},hm),r),{defaultRichTextElements:o}),t),s={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o};return ne(ne({},i),{formatMessage:id.bind(null,s,i.formatters),$t:id.bind(null,s,i.formatters)})},wS=function(e){vt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=cm(),n.state={cache:n.cache,intl:yc(Is(n.props),n.cache),prevConfig:Is(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var o=r.prevConfig,i=r.cache,s=Is(n);return pc(o,s)?null:{intl:yc(s,i),prevConfig:s}},t.prototype.render=function(){return dm(this.state.intl),xe.createElement(ES,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=hm,t}(xe.PureComponent);function SS(e,t){var n=e.values,r=Rn(e,["values"]),o=t.values,i=Rn(t,["values"]);return pc(o,n)&&pc(r,i)}function gm(e){var t=Re(),n=t.formatMessage,r=t.textComponent,o=r===void 0?xe.Fragment:r,i=e.id,s=e.description,a=e.defaultMessage,l=e.values,f=e.children,c=e.tagName,h=c===void 0?o:c,d=e.ignoreTag,u={id:i,description:s,defaultMessage:a},p=n(u,l,{ignoreTag:d});return typeof f=="function"?f(Array.isArray(p)?p:[p]):h?xe.createElement(h,null,xe.Children.toArray(p)):xe.createElement(xe.Fragment,null,p)}gm.displayName="FormattedMessage";var ym=xe.memo(gm,SS);ym.displayName="MemoizedFormattedMessage";const vr=ym;eo("formatDate");eo("formatTime");eo("formatNumber");eo("formatList");eo("formatDisplayName");pm("formatDate");pm("formatTime");var vm={exports:{}};(function(e){(function(t,n){var r="…",o=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function i(a,l,f){return f.length===a.length||!l.ellipsis||(f+=l.ellipsis),f}function s(a,l,f){var c="",h=!0,d=l,u,p;if(f=f||{},f.ellipsis=typeof f.ellipsis>"u"?r:f.ellipsis,!a||a.length===0)return"";for(h=!0;h;){if(o.lastIndex=c.length,h=o.exec(a),!h||h.index-c.length>=d||o.lastIndex>=l+3e3)return c+=a.substring(c.length,l),i(a,f,c);if(u=h[0],p=h.index,c+=a.substring(c.length,p+u.length),d-=p+u.length,d<=0)break}return i(a,f,c)}e.exports?e.exports=s:t.truncate=s})(String)})(vm);var TS=vm.exports;const _m=jt(TS),Go="https://storage.googleapis.com/apolitical-assets/",xS="200,000+";const Yc=({label:e=!1,className:t="",children:n})=>{const r=Re();return O.jsxs("details",{className:se("collapsible-section",t),children:[O.jsx("summary",{children:e||r.formatMessage({id:"collapsibleSection_summary"})}),O.jsx("div",{className:"content",children:n})]})};function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kr.apply(this,arguments)}const OS=["children","options"],od=["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"}),ad={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},AS=["style","script"],CS=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,RS=/mailto:/i,NS=/\n{2,}$/,Em=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,PS=/^ *> ?/gm,IS=/^ {2,}\n/,LS=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,bm=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,wm=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,kS=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,MS=/^(?:\n *)*\n/,BS=/\r\n?/g,FS=/^\[\^([^\]]+)](:.*)\n/,US=/^\[\^([^\]]+)]/,DS=/\f/g,$S=/^\s*?\[(x|\s)\]/,Sm=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Tm=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,xm=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,vc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,jS=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Om=/^<!--[\s\S]*?(?:-->)/,HS=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,_c=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,qS=/^\{.*\}$/,GS=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,WS=/^<([^ >]+@[^ >]+)>/,VS=/^<([^ >]+:\/[^ >]+)>/,zS=/-([a-z])?/gi,Am=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,YS=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,KS=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,QS=/^\[([^\]]*)\] ?\[([^\]]*)\]/,XS=/(\[|\])/g,JS=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,ZS=/\t/g,eT=/^ *\| */,tT=/(^ *\||\| *$)/g,rT=/ *$/,nT=/^ *:-+: *$/,iT=/^ *:-+ *$/,oT=/^ *-+: *$/,aT=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,sT=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,cT=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,uT=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,lT=/^\\([^0-9A-Za-z\s])/,fT=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,dT=/^\n+/,hT=/^([ \t]*)/,pT=/\\([^\\])/g,sd=/ *\n+$/,mT=/(?:^|\n)( *)$/,Kc="(?:\\d+\\.)",Qc="(?:[*+-])";function Cm(e){return"( *)("+(e===1?Kc:Qc)+") +"}const Rm=Cm(1),Nm=Cm(2);function Pm(e){return new RegExp("^"+(e===1?Rm:Nm))}const gT=Pm(1),yT=Pm(2);function Im(e){return new RegExp("^"+(e===1?Rm:Nm)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Kc:Qc)+" )[^\\n]*)*(\\n|$)","gm")}const Lm=Im(1),km=Im(2);function Mm(e){const t=e===1?Kc:Qc;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Bm=Mm(1),Fm=Mm(2);function cd(e,t){const n=t===1,r=n?Bm:Fm,o=n?Lm:km,i=n?gT:yT;return{t(s,a,l){const f=mT.exec(l);return f&&(a.o||!a._&&!a.u)?r.exec(s=f[1]+s):null},i:ve.HIGH,l(s,a,l){const f=n?+s[2]:void 0,c=s[0].replace(NS,`
87
- `).match(o);let h=!1;return{p:c.map(function(d,u){const p=i.exec(d)[0].length,m=new RegExp("^ {1,"+p+"}","gm"),E=d.replace(m,"").replace(i,""),T=u===c.length-1,_=E.indexOf(`
86
+ For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function _S(e,t){var n=Jw(t),r=ie(ie({},um),e),o=r.locale,i=r.defaultLocale,s=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&s?s(new nd('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&s&&s(new nd('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new Yw('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),vS(r),ie(ie({},r),{formatters:n,formatNumber:mS.bind(null,r,n.getNumberFormat),formatNumberToParts:gS.bind(null,r,n.getNumberFormat),formatRelativeTime:hS.bind(null,r,n.getRelativeTimeFormat),formatDate:Zw.bind(null,r,n.getDateTimeFormat),formatDateToParts:rS.bind(null,r,n.getDateTimeFormat),formatTime:eS.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:tS.bind(null,r,n.getDateTimeFormat),formatTimeToParts:nS.bind(null,r,n.getDateTimeFormat),formatPlural:lS.bind(null,r,n.getPluralRules),formatMessage:yc.bind(null,r,n),$t:yc.bind(null,r,n),formatList:cS.bind(null,r,n.getListFormat),formatListToParts:dm.bind(null,r,n.getListFormat),formatDisplayName:oS.bind(null,r,n.getDisplayNames)})}function pm(e){Gp(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var mm=ie(ie({},um),{textComponent:Oe.Fragment});function ES(e){return function(t){return e(Oe.Children.toArray(t))}}function vc(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var s=n[i];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var Xc=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=Oe.createContext(null)):Oe.createContext(null);Xc.Consumer;var bS=Xc.Provider,wS=bS,SS=Xc;function Ee(){var e=Oe.useContext(SS);return pm(e),e}var _c;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(_c||(_c={}));var Ec;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Ec||(Ec={}));function gm(e){var t=function(n){var r=Ee(),o=n.value,i=n.children,s=Nn(n,["value","children"]),a=typeof o=="string"?new Date(o||0):o,u=e==="formatDate"?r.formatDateToParts(a,s):r.formatTimeToParts(a,s);return i(u)};return t.displayName=Ec[e],t}function to(e){var t=function(n){var r=Ee(),o=n.value,i=n.children,s=Nn(n,["value","children"]),a=r[e](o,s);if(typeof i=="function")return i(a);var u=r.textComponent||Oe.Fragment;return Oe.createElement(u,null,a)};return t.displayName=_c[e],t}function Ms(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 ym(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=sm(r)?ES(r):r,t},{})}var sd=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var s=ym(r),a=yc.apply(void 0,Dt([e,t,n,s],o,!1));return Array.isArray(a)?Oe.Children.toArray(a):a},bc=function(e,t){var n=e.defaultRichTextElements,r=Nn(e,["defaultRichTextElements"]),o=ym(n),i=_S(ie(ie(ie({},mm),r),{defaultRichTextElements:o}),t),s={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o};return ie(ie({},i),{formatMessage:sd.bind(null,s,i.formatters),$t:sd.bind(null,s,i.formatters)})},TS=function(e){vt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=lm(),n.state={cache:n.cache,intl:bc(Ms(n.props),n.cache),prevConfig:Ms(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var o=r.prevConfig,i=r.cache,s=Ms(n);return vc(o,s)?null:{intl:bc(s,i),prevConfig:s}},t.prototype.render=function(){return pm(this.state.intl),Oe.createElement(wS,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=mm,t}(Oe.PureComponent);function xS(e,t){var n=e.values,r=Nn(e,["values"]),o=t.values,i=Nn(t,["values"]);return vc(o,n)&&vc(r,i)}function vm(e){var t=Ee(),n=t.formatMessage,r=t.textComponent,o=r===void 0?Oe.Fragment:r,i=e.id,s=e.description,a=e.defaultMessage,u=e.values,f=e.children,c=e.tagName,h=c===void 0?o:c,d=e.ignoreTag,l={id:i,description:s,defaultMessage:a},p=n(l,u,{ignoreTag:d});return typeof f=="function"?f(Array.isArray(p)?p:[p]):h?Oe.createElement(h,null,Oe.Children.toArray(p)):Oe.createElement(Oe.Fragment,null,p)}vm.displayName="FormattedMessage";var _m=Oe.memo(vm,xS);_m.displayName="MemoizedFormattedMessage";const vr=_m;to("formatDate");to("formatTime");to("formatNumber");to("formatList");to("formatDisplayName");gm("formatDate");gm("formatTime");let Ui=!1;const Em=({isOpen:e=!1,isLoading:t=!1,children:n})=>{const r=Ee(),o=D.useRef(null),[i,s]=D.useState("hidden");D.useEffect(()=>{const u=o.current;if(u)return u.addEventListener("transitionend",a),()=>{u.removeEventListener("transitionend",a)}},[]);const a=({propertyName:u})=>{u==="opacity"&&(Ui!==!1&&clearTimeout(Ui),s(f=>f==="opening"?"open":f==="closing"?"closed":f==="closed"?"hidden":f))};return Jr(()=>{Ui!==!1&&clearTimeout(Ui);let u="open";e?s("opening"):(s("closing"),u="hidden"),Ui=setTimeout(()=>{s(u)},300)},[e]),O.jsx("aside",{ref:o,className:ne("tooltip text-medium",i,{loading:t}),hidden:i==="hidden",children:t?O.jsx("p",{children:r.formatMessage({id:"tooltip_loading"})}):typeof n=="string"?O.jsx("p",{children:n}):n})};const Jc=({children:e,className:t="",...n})=>O.jsx("section",{className:ne("full-width-section",t),...n,children:e});const OS=({text:e,buttons:t,className:n=""})=>{const r=[];return t.forEach(o=>{r.push({href:o.link,variant:"secondary",size:{mobile:"medium",1024:"large"},className:"gtm-trackable","data-gtm-event-type":"download-click","data-gtm-event-context":o.eventContext||"Download",target:"_blank",children:o.text})}),O.jsx(Jc,{className:ne("download-section",n),children:O.jsxs(O.Fragment,{children:[D.createElement(typeof e=="string"?"h2":e.element,{className:"text"},typeof e=="string"?e:e.text),O.jsx(Zi,{buttons:r})]})})};const AS=({title:e=!1,logos:t=[],className:n=""})=>{const r=t.length;if(r===0)return null;const o={element:typeof e=="object"?e.element:"h2",text:typeof e=="string"?e:typeof e=="object"?e.text:""};return O.jsxs("div",{className:ne("logos",n),children:[e&&D.createElement(o.element,{className:"title"},o.text),O.jsx("ul",{className:ne({"two-col":r===2||r===4,"three-col":r===5||r<=10&&r%3===0}),children:t.map(({logo:i,nameOfBusiness:s,link:a=!1,description:u=!1},f)=>{if(!i||!i.url)return null;const c=O.jsx("img",{src:i.url,width:i.width||"auto",height:i.height||"auto",alt:s});return O.jsxs("li",{children:[O.jsx("p",{className:"img-wrapper",children:a?O.jsx("a",{href:a,target:"_blank",rel:"nofollow noreferrer noopener",children:c}):c}),u&&O.jsx("small",{children:u})]},window.btoa(`${i.url}_${f}`))})})]})};const CS=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],RS=({content:e,image:t,variant:n="default",spacing:r="normal",cta:o,children:i})=>{const s=["eyebrow","title","text"],a={eyebrow:"small",title:"h1",text:"p"},u={};return s.forEach(f=>{if(!e[f]){u[f]=!1;return}if(typeof e[f]=="object"){u[f]=e[f];const{text:c,element:h}=e[f];if(h&&CS.includes(h.toLowerCase()))return;u[f]={text:c,element:a[f]};return}u[f]={text:e[f],element:a[f]}}),o&&o.link&&o.link[0]==="#"&&(o.props||(o.props={}),o.props.onClick=f=>{f.preventDefault(),f.stopPropagation();const c=document.getElementById(o.link.substring(1));c&&c.scrollIntoView({behavior:"smooth"})}),O.jsx(Jc,{className:ne("banner-section",n,r,{"has-image":t,"has-extra-spacing":r==="normal"&&u.eyebrow&&u.title}),children:O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"content-wrapper",children:[s.map(f=>{if(u[f]&&typeof u[f]=="object"){const{text:c,element:h=""}=u[f];return D.createElement(h.toLowerCase(),{key:f,className:f},c)}return null}),i,o&&o.text&&o.link&&O.jsx(De,{variant:t||n==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:o.link,...o.props,children:o.text})]}),t&&O.jsx(qp,{image:{...t,aspect:"banner"}})]})})},NS=D.memo(RS);const PS=({variant:e="primary",button:t=null,title:n,text:r,gtmContext:o})=>!n&&!r?null:O.jsxs("aside",{className:ne("marketing-block",e),children:[n&&O.jsx("p",{className:"title",children:n}),r&&O.jsx("p",{children:r}),t&&O.jsx(De,{variant:"secondary",size:"medium",href:t.link,className:"gtm-trackable","data-gtm-event-context":o,"data-gtm-event-type":"learn-more-click",children:t.text})]});var bm={exports:{}};(function(e){(function(t,n){var r="…",o=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function i(a,u,f){return f.length===a.length||!u.ellipsis||(f+=u.ellipsis),f}function s(a,u,f){var c="",h=!0,d=u,l,p;if(f=f||{},f.ellipsis=typeof f.ellipsis>"u"?r:f.ellipsis,!a||a.length===0)return"";for(h=!0;h;){if(o.lastIndex=c.length,h=o.exec(a),!h||h.index-c.length>=d||o.lastIndex>=u+3e3)return c+=a.substring(c.length,u),i(a,f,c);if(l=h[0],p=h.index,c+=a.substring(c.length,p+l.length),d-=p+l.length,d<=0)break}return i(a,f,c)}e.exports?e.exports=s:t.truncate=s})(String)})(bm);var IS=bm.exports;const wm=jt(IS),Wo="https://storage.googleapis.com/apolitical-assets/",LS="200,000+";const Zc=({label:e=!1,className:t="",children:n})=>{const r=Ee();return O.jsxs("details",{className:ne("collapsible-section",t),children:[O.jsx("summary",{children:e||r.formatMessage({id:"collapsibleSection_summary"})}),O.jsx("div",{className:"content",children:n})]})};function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kr.apply(this,arguments)}const MS=["children","options"],cd=["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"}),ud={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},kS=["style","script"],BS=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,FS=/mailto:/i,US=/\n{2,}$/,Sm=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,DS=/^ *> ?/gm,$S=/^ {2,}\n/,jS=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Tm=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,xm=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,HS=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,qS=/^(?:\n *)*\n/,GS=/\r\n?/g,WS=/^\[\^([^\]]+)](:.*)\n/,VS=/^\[\^([^\]]+)]/,zS=/\f/g,YS=/^\s*?\[(x|\s)\]/,Om=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Am=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Cm=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,wc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,KS=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Rm=/^<!--[\s\S]*?(?:-->)/,QS=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Sc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,XS=/^\{.*\}$/,JS=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ZS=/^<([^ >]+@[^ >]+)>/,eT=/^<([^ >]+:\/[^ >]+)>/,tT=/-([a-z])?/gi,Nm=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,rT=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,nT=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,iT=/^\[([^\]]*)\] ?\[([^\]]*)\]/,oT=/(\[|\])/g,aT=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,sT=/\t/g,cT=/^ *\| */,uT=/(^ *\||\| *$)/g,lT=/ *$/,fT=/^ *:-+: *$/,dT=/^ *:-+ *$/,hT=/^ *-+: *$/,pT=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,mT=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,gT=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,yT=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,vT=/^\\([^0-9A-Za-z\s])/,_T=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ET=/^\n+/,bT=/^([ \t]*)/,wT=/\\([^\\])/g,ld=/ *\n+$/,ST=/(?:^|\n)( *)$/,eu="(?:\\d+\\.)",tu="(?:[*+-])";function Pm(e){return"( *)("+(e===1?eu:tu)+") +"}const Im=Pm(1),Lm=Pm(2);function Mm(e){return new RegExp("^"+(e===1?Im:Lm))}const TT=Mm(1),xT=Mm(2);function km(e){return new RegExp("^"+(e===1?Im:Lm)+"[^\\n]*(?:\\n(?!\\1"+(e===1?eu:tu)+" )[^\\n]*)*(\\n|$)","gm")}const Bm=km(1),Fm=km(2);function Um(e){const t=e===1?eu:tu;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Dm=Um(1),$m=Um(2);function fd(e,t){const n=t===1,r=n?Dm:$m,o=n?Bm:Fm,i=n?TT:xT;return{t(s,a,u){const f=ST.exec(u);return f&&(a.o||!a._&&!a.u)?r.exec(s=f[1]+s):null},i:ve.HIGH,l(s,a,u){const f=n?+s[2]:void 0,c=s[0].replace(US,`
87
+ `).match(o);let h=!1;return{p:c.map(function(d,l){const p=i.exec(d)[0].length,m=new RegExp("^ {1,"+p+"}","gm"),E=d.replace(m,"").replace(i,""),T=l===c.length-1,_=E.indexOf(`
88
88
 
89
- `)!==-1||T&&h;h=_;const b=l._,A=l.o;let w;l.o=!0,_?(l._=!1,w=E.replace(sd,`
89
+ `)!==-1||T&&h;h=_;const b=u._,A=u.o;let w;u.o=!0,_?(u._=!1,w=E.replace(ld,`
90
90
 
91
- `)):(l._=!0,w=E.replace(sd,""));const P=a(w,l);return l._=b,l.o=A,P}),m:n,g:f}},h:(s,a,l)=>e(s.m?"ol":"ul",{key:l.k,start:s.g},s.p.map(function(f,c){return e("li",{key:c},a(f,l))}))}}const vT=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,_T=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Um=[Em,bm,wm,Sm,xm,Tm,Om,Am,Lm,Bm,km,Fm],ET=[...Um,/^[^\n]+(?: \n|\n{2,})/,vc,_c];function bT(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 wT(e){return oT.test(e)?"right":nT.test(e)?"center":iT.test(e)?"left":null}function ud(e,t,n){const r=n.$;n.$=!0;const o=t(e.trim(),n);n.$=r;let i=[[]];return o.forEach(function(s,a){s.type==="tableSeparator"?a!==0&&a!==o.length-1&&i.push([]):(s.type!=="text"||o[a+1]!=null&&o[a+1].type!=="tableSeparator"||(s.v=s.v.replace(rT,"")),i[i.length-1].push(s))}),i}function ST(e,t,n){n._=!0;const r=ud(e[1],t,n),o=e[2].replace(tT,"").split("|").map(wT),i=function(s,a,l){return s.trim().split(`
92
- `).map(function(f){return ud(f,a,l)})}(e[3],t,n);return n._=!1,{S:o,A:i,L:r,type:"table"}}function ld(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function pr(e){return function(t,n){return n._?e.exec(t):null}}function mr(e){return function(t,n){return n._||n.u?e.exec(t):null}}function er(e){return function(t,n){return n._||n.u?null:e.exec(t)}}function Fi(e){return function(t){return e.exec(t)}}function TT(e,t,n){if(t._||t.u||n&&!n.endsWith(`
91
+ `)):(u._=!0,w=E.replace(ld,""));const N=a(w,u);return u._=b,u.o=A,N}),m:n,g:f}},h:(s,a,u)=>e(s.m?"ol":"ul",{key:u.k,start:s.g},s.p.map(function(f,c){return e("li",{key:c},a(f,u))}))}}const OT=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,AT=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,jm=[Sm,Tm,xm,Om,Cm,Am,Rm,Nm,Bm,Dm,Fm,$m],CT=[...jm,/^[^\n]+(?: \n|\n{2,})/,wc,Sc];function RT(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 NT(e){return hT.test(e)?"right":fT.test(e)?"center":dT.test(e)?"left":null}function dd(e,t,n){const r=n.$;n.$=!0;const o=t(e.trim(),n);n.$=r;let i=[[]];return o.forEach(function(s,a){s.type==="tableSeparator"?a!==0&&a!==o.length-1&&i.push([]):(s.type!=="text"||o[a+1]!=null&&o[a+1].type!=="tableSeparator"||(s.v=s.v.replace(lT,"")),i[i.length-1].push(s))}),i}function PT(e,t,n){n._=!0;const r=dd(e[1],t,n),o=e[2].replace(uT,"").split("|").map(NT),i=function(s,a,u){return s.trim().split(`
92
+ `).map(function(f){return dd(f,a,u)})}(e[3],t,n);return n._=!1,{S:o,A:i,L:r,type:"table"}}function hd(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function pr(e){return function(t,n){return n._?e.exec(t):null}}function mr(e){return function(t,n){return n._||n.u?e.exec(t):null}}function er(e){return function(t,n){return n._||n.u?null:e.exec(t)}}function Di(e){return function(t){return e.exec(t)}}function IT(e,t,n){if(t._||t.u||n&&!n.endsWith(`
93
93
  `))return null;let r="";e.split(`
94
- `).every(i=>!Um.some(s=>s.test(i))&&(r+=i+`
95
- `,i.trim()));const o=r.trimEnd();return o==""?null:[r,o]}function bn(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 fd(e){return e.replace(pT,"$1")}function ko(e,t,n){const r=n._||!1,o=n.u||!1;n._=!0,n.u=!0;const i=e(t,n);return n._=r,n.u=o,i}function xT(e,t,n){const r=n._||!1,o=n.u||!1;n._=!1,n.u=!0;const i=e(t,n);return n._=r,n.u=o,i}function OT(e,t,n){return n._=!1,e(t,n)}const Ls=(e,t,n)=>({v:ko(t,e[1],n)});function ks(){return{}}function Ms(){return null}function AT(...e){return e.filter(Boolean).join(" ")}function Bs(e,t,n){let r=e;const o=t.split(".");for(;o.length&&(r=r[o[0]],r!==void 0);)o.shift();return r||n}var ve;function CT(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||bT,t.namedCodesToUnicode=t.namedCodesToUnicode?Kr({},ad,t.namedCodesToUnicode):ad;const n=t.createElement||xe.createElement;function r(u,p,...m){const E=Bs(t.overrides,`${u}.props`,{});return n(function(T,_){const b=Bs(_,T);return b?typeof b=="function"||typeof b=="object"&&"render"in b?b:Bs(_,`${T}.component`,T):T}(u,t.overrides),Kr({},p,E,{className:AT(p==null?void 0:p.className,E.className)||void 0}),...m)}function o(u){let p=!1;t.forceInline?p=!0:t.forceBlock||(p=JS.test(u)===!1);const m=c(f(p?u:`${u.trimEnd().replace(dT,"")}
94
+ `).every(i=>!jm.some(s=>s.test(i))&&(r+=i+`
95
+ `,i.trim()));const o=r.trimEnd();return o==""?null:[r,o]}function wn(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 pd(e){return e.replace(wT,"$1")}function ko(e,t,n){const r=n._||!1,o=n.u||!1;n._=!0,n.u=!0;const i=e(t,n);return n._=r,n.u=o,i}function LT(e,t,n){const r=n._||!1,o=n.u||!1;n._=!1,n.u=!0;const i=e(t,n);return n._=r,n.u=o,i}function MT(e,t,n){return n._=!1,e(t,n)}const ks=(e,t,n)=>({v:ko(t,e[1],n)});function Bs(){return{}}function Fs(){return null}function kT(...e){return e.filter(Boolean).join(" ")}function Us(e,t,n){let r=e;const o=t.split(".");for(;o.length&&(r=r[o[0]],r!==void 0);)o.shift();return r||n}var ve;function BT(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||RT,t.namedCodesToUnicode=t.namedCodesToUnicode?Kr({},ud,t.namedCodesToUnicode):ud;const n=t.createElement||Oe.createElement;function r(l,p,...m){const E=Us(t.overrides,`${l}.props`,{});return n(function(T,_){const b=Us(_,T);return b?typeof b=="function"||typeof b=="object"&&"render"in b?b:Us(_,`${T}.component`,T):T}(l,t.overrides),Kr({},p,E,{className:kT(p==null?void 0:p.className,E.className)||void 0}),...m)}function o(l){let p=!1;t.forceInline?p=!0:t.forceBlock||(p=aT.test(l)===!1);const m=c(f(p?l:`${l.trimEnd().replace(ET,"")}
96
96
 
97
- `,{_:p}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(t.wrapper===null)return m;const E=t.wrapper||(p?"span":"div");let T;if(m.length>1||t.forceWrapper)T=m;else{if(m.length===1)return T=m[0],typeof T=="string"?r("span",{key:"outer"},T):T;T=null}return xe.createElement(E,{key:"outer"},T)}function i(u){const p=u.match(CS);return p?p.reduce(function(m,E,T){const _=E.indexOf("=");if(_!==-1){const b=function(F){return F.indexOf("-")!==-1&&F.match(HS)===null&&(F=F.replace(zS,function(B,W){return W.toUpperCase()})),F}(E.slice(0,_)).trim(),A=function(F){const B=F[0];return(B==='"'||B==="'")&&F.length>=2&&F[F.length-1]===B?F.slice(1,-1):F}(E.slice(_+1).trim()),w=od[b]||b,P=m[w]=function(F,B){return F==="style"?B.split(/;\s?/).reduce(function(W,G){const V=G.slice(0,G.indexOf(":"));return W[V.replace(/(-[a-z])/g,H=>H[1].toUpperCase())]=G.slice(V.length+1).trim(),W},{}):F==="href"?bn(B):(B.match(qS)&&(B=B.slice(1,B.length-1)),B==="true"||B!=="false"&&B)}(b,A);typeof P=="string"&&(vc.test(P)||_c.test(P))&&(m[w]=xe.cloneElement(o(P.trim()),{key:T}))}else E!=="style"&&(m[od[E]||E]=!0);return m},{}):null}const s=[],a={},l={blockQuote:{t:er(Em),i:ve.HIGH,l:(u,p,m)=>({v:p(u[0].replace(PS,""),m)}),h:(u,p,m)=>r("blockquote",{key:m.k},p(u.v,m))},breakLine:{t:Fi(IS),i:ve.HIGH,l:ks,h:(u,p,m)=>r("br",{key:m.k})},breakThematic:{t:er(LS),i:ve.HIGH,l:ks,h:(u,p,m)=>r("hr",{key:m.k})},codeBlock:{t:er(wm),i:ve.MAX,l:u=>({v:u[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(u,p,m)=>r("pre",{key:m.k},r("code",Kr({},u.O,{className:u.M?`lang-${u.M}`:""}),u.v))},codeFenced:{t:er(bm),i:ve.MAX,l:u=>({O:i(u[3]||""),v:u[4],M:u[2]||void 0,type:"codeBlock"})},codeInline:{t:mr(kS),i:ve.LOW,l:u=>({v:u[2]}),h:(u,p,m)=>r("code",{key:m.k},u.v)},footnote:{t:er(FS),i:ve.MAX,l:u=>(s.push({I:u[2],j:u[1]}),{}),h:Ms},footnoteReference:{t:pr(US),i:ve.HIGH,l:u=>({v:u[1],B:`#${t.slugify(u[1])}`}),h:(u,p,m)=>r("a",{key:m.k,href:bn(u.B)},r("sup",{key:m.k},u.v))},gfmTask:{t:pr($S),i:ve.HIGH,l:u=>({R:u[1].toLowerCase()==="x"}),h:(u,p,m)=>r("input",{checked:u.R,key:m.k,readOnly:!0,type:"checkbox"})},heading:{t:er(t.enforceAtxHeadings?Tm:Sm),i:ve.HIGH,l:(u,p,m)=>({v:ko(p,u[2],m),T:t.slugify(u[2]),C:u[1].length}),h:(u,p,m)=>r(`h${u.C}`,{id:u.T,key:m.k},p(u.v,m))},headingSetext:{t:er(xm),i:ve.MAX,l:(u,p,m)=>({v:ko(p,u[1],m),C:u[2]==="="?1:2,type:"heading"})},htmlComment:{t:Fi(Om),i:ve.HIGH,l:()=>({}),h:Ms},image:{t:mr(_T),i:ve.HIGH,l:u=>({D:u[1],B:fd(u[2]),F:u[3]}),h:(u,p,m)=>r("img",{key:m.k,alt:u.D||void 0,title:u.F||void 0,src:bn(u.B)})},link:{t:pr(vT),i:ve.LOW,l:(u,p,m)=>({v:xT(p,u[1],m),B:fd(u[2]),F:u[3]}),h:(u,p,m)=>r("a",{key:m.k,href:bn(u.B),title:u.F},p(u.v,m))},linkAngleBraceStyleDetector:{t:pr(VS),i:ve.MAX,l:u=>({v:[{v:u[1],type:"text"}],B:u[1],type:"link"})},linkBareUrlDetector:{t:(u,p)=>p.N?null:pr(GS)(u,p),i:ve.MAX,l:u=>({v:[{v:u[1],type:"text"}],B:u[1],F:void 0,type:"link"})},linkMailtoDetector:{t:pr(WS),i:ve.MAX,l(u){let p=u[1],m=u[1];return RS.test(m)||(m="mailto:"+m),{v:[{v:p.replace("mailto:",""),type:"text"}],B:m,type:"link"}}},orderedList:cd(r,1),unorderedList:cd(r,2),newlineCoalescer:{t:er(MS),i:ve.LOW,l:ks,h:()=>`
98
- `},paragraph:{t:TT,i:ve.LOW,l:Ls,h:(u,p,m)=>r("p",{key:m.k},p(u.v,m))},ref:{t:pr(YS),i:ve.MAX,l:u=>(a[u[1]]={B:u[2],F:u[4]},{}),h:Ms},refImage:{t:mr(KS),i:ve.MAX,l:u=>({D:u[1]||void 0,P:u[2]}),h:(u,p,m)=>r("img",{key:m.k,alt:u.D,src:bn(a[u.P].B),title:a[u.P].F})},refLink:{t:pr(QS),i:ve.MAX,l:(u,p,m)=>({v:p(u[1],m),Z:p(u[0].replace(XS,"\\$1"),m),P:u[2]}),h:(u,p,m)=>a[u.P]?r("a",{key:m.k,href:bn(a[u.P].B),title:a[u.P].F},p(u.v,m)):r("span",{key:m.k},p(u.Z,m))},table:{t:er(Am),i:ve.HIGH,l:ST,h:(u,p,m)=>r("table",{key:m.k},r("thead",null,r("tr",null,u.L.map(function(E,T){return r("th",{key:T,style:ld(u,T)},p(E,m))}))),r("tbody",null,u.A.map(function(E,T){return r("tr",{key:T},E.map(function(_,b){return r("td",{key:b,style:ld(u,b)},p(_,m))}))})))},tableSeparator:{t:function(u,p){return p.$?(p._=!0,eT.exec(u)):null},i:ve.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Fi(fT),i:ve.MIN,l:u=>({v:u[0].replace(jS,(p,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:p)}),h:u=>u.v},textBolded:{t:mr(aT),i:ve.MED,l:(u,p,m)=>({v:p(u[2],m)}),h:(u,p,m)=>r("strong",{key:m.k},p(u.v,m))},textEmphasized:{t:mr(sT),i:ve.LOW,l:(u,p,m)=>({v:p(u[2],m)}),h:(u,p,m)=>r("em",{key:m.k},p(u.v,m))},textEscaped:{t:mr(lT),i:ve.HIGH,l:u=>({v:u[1],type:"text"})},textMarked:{t:mr(cT),i:ve.LOW,l:Ls,h:(u,p,m)=>r("mark",{key:m.k},p(u.v,m))},textStrikethroughed:{t:mr(uT),i:ve.LOW,l:Ls,h:(u,p,m)=>r("del",{key:m.k},p(u.v,m))}};t.disableParsingRawHTML!==!0&&(l.htmlBlock={t:Fi(vc),i:ve.HIGH,l(u,p,m){const[,E]=u[3].match(hT),T=new RegExp(`^${E}`,"gm"),_=u[3].replace(T,""),b=(A=_,ET.some(B=>B.test(A))?OT:ko);var A;const w=u[1].toLowerCase(),P=AS.indexOf(w)!==-1;m.N=m.N||w==="a";const F=P?u[3]:b(p,_,m);return m.N=!1,{O:i(u[2]),v:F,G:P,H:P?w:u[1]}},h:(u,p,m)=>r(u.H,Kr({key:m.k},u.O),u.G?u.v:p(u.v,m))},l.htmlSelfClosing={t:Fi(_c),i:ve.HIGH,l:u=>({O:i(u[2]||""),H:u[1]}),h:(u,p,m)=>r(u.H,Kr({},u.O,{key:m.k}))});const f=function(u){let p=Object.keys(u);function m(E,T){let _=[],b="";for(;E;){let A=0;for(;A<p.length;){const w=p[A],P=u[w],F=P.t(E,T,b);if(F){const B=F[0];E=E.substring(B.length);const W=P.l(F,m,T);W.type==null&&(W.type=w),_.push(W),b=B;break}A++}}return _}return p.sort(function(E,T){let _=u[E].i,b=u[T].i;return _!==b?_-b:E<T?-1:1}),function(E,T){return m(function(_){return _.replace(BS,`
99
- `).replace(DS,"").replace(ZS," ")}(E),T)}}(l),c=(h=function(u){return function(p,m,E){return u[p.type].h(p,m,E)}}(l),function u(p,m={}){if(Array.isArray(p)){const E=m.k,T=[];let _=!1;for(let b=0;b<p.length;b++){m.k=b;const A=u(p[b],m),w=typeof A=="string";w&&_?T[T.length-1]+=A:A!==null&&T.push(A),_=w}return m.k=E,T}return h(p,u,m)});var h;const d=o(e);return s.length?r("div",null,d,r("footer",{key:"footer"},s.map(function(u){return r("div",{id:t.slugify(u.j),key:u.j},u.j,c(f(u.I,{_:!0})))}))):d}(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"})(ve||(ve={}));const na=e=>{let{children:t,options:n}=e,r=function(o,i){if(o==null)return{};var s,a,l={},f=Object.keys(o);for(a=0;a<f.length;a++)i.indexOf(s=f[a])>=0||(l[s]=o[s]);return l}(e,OS);return xe.cloneElement(CT(t,n),r)};const or=({variant:e="primary",className:t="",children:n,...r})=>O.jsx("div",{className:se("highlighted-text-box",e,t),...r,children:n});const Dm=({variant:e="empty",text:t=!1,button:n=!1,className:r=""})=>{let o=n&&!!Object.keys(n).length;const i=typeof n=="object"&&"breakpoints"in n,s=Xi(i);if(i&&typeof n=="object"&&typeof s=="number"){const c=Object.assign({},n.breakpoints),h=Fp(Object.keys(c));o=Up(s,h,c)}const{breakpoints:a,text:l,...f}=n;return O.jsx(or,{variant:"subtle",className:se("empty-state-box",e,r),children:O.jsxs(O.Fragment,{children:[t&&O.jsx(na,{options:{forceBlock:!0},children:t}),o&&typeof n=="object"&&O.jsx(De,{...f,variant:n.variant?n.variant:"secondary",children:l})]})})};const Ec=({children:e,...t})=>O.jsx("p",{...t,children:e}),$m={q:Ec,blockquote:Ec};for(let e=1;e<=6;e++)$m[`h${e}`]={component:Ec,props:{className:"title"}};const jm=({type:e="default",className:t="",heading:n=!1,children:r})=>O.jsxs("div",{className:se("helper-text-box text-small",e,t),children:[n&&O.jsx("p",{className:"title",children:n}),typeof r=="string"?O.jsx(na,{options:{wrapper:$.Fragment,forceBlock:!0,overrides:$m},children:r}):O.jsx("p",{children:r})]});const RT=({className:e="",show:t=!1,hide:n=!1,text:r,children:o})=>{const i=Re(),s=$.useRef(null),[a,l]=$.useState(""),[f,c]=$.useState("closed");$.useEffect(()=>{const u=s.current;if(u)return u.addEventListener("transitionend",h),()=>{u.removeEventListener("transitionend",h)}},[]),$.useEffect(()=>{if(!r||typeof r!="string")return;const u=r.split(`
100
- `);l(u.length<3?`${r.substring(0,400)}...`:u.slice(0,3).join(`
101
- `))},[r]),$.useEffect(()=>{f==="ready-to-close"&&c("closing")},[f]);const h=({propertyName:u})=>{u==="max-height"&&c(p=>p==="opening"?"open":p==="closing"?"closed":p)};if(!r)return null;const d=["opening","open"].includes(f);return O.jsxs(or,{variant:"subtle",className:se("hide-show-text-box",e),children:[O.jsxs("div",{ref:s,className:se("content",f),children:[O.jsx(na,{options:{forceBlock:!0},children:f==="closed"?a:r}),f!=="closed"&&o]}),O.jsx("p",{className:"cta",children:O.jsx(De,{variant:"tertiary",icon:{icon:"navigation_arrow",position:"left",animate:!0},styling:{muted:!0},className:se({"rotate-180":d}),onClick:()=>{c(d?"ready-to-close":"opening")},children:d?n||i.formatMessage({id:"hideShowTextBox_hide"}):t||i.formatMessage({id:"hideShowTextBox_show"})})})]})},NT=()=>$.Fragment,PT=({children:e})=>O.jsx(or,{variant:"secondary",children:e}),IT=["span","strong","h1","h2","h3","h4","h5","h6","p"],LT=({children:e})=>{const t=Re();if(!e)return null;let n=t.formatMessage({id:"markdown_collapsibleSection_summary"});const r=[];for(const i of $.Children.toArray(e))if(!(!i||typeof i=="string"||typeof i=="number"))if($.isValidElement(i)&&i.type==="summary"){if(i.props&&i.props.children){for(const s of $.Children.toArray(i.props.children))if(!(!s||typeof s=="string"||typeof s=="number")&&$.isValidElement(s)){const a=s.type;if(IT.includes(a)){for(n=s.props.children;typeof n!="string"&&(Array.isArray(n)&&n[0].props&&n[0].props.children&&n[0].props.children[0]);)n=n[0].props.children[0];break}}}}else r.push(i);const o=n?n.toString():"";return O.jsx(Yc,{label:o,className:["Sources","Resources"].includes(o)?"discrete-links":"",children:r.map(i=>i)})},kT=({children:e,...t})=>{if(t.class)switch(t.class){case"casestudy":return O.jsx(or,{variant:"secondary",children:e});case"general-textbox":case"highlight-box":return O.jsx(or,{variant:"primary",children:e});case"pink-textbox":return O.jsx(or,{variant:"tertiary",children:e});default:return O.jsx("div",{...t,children:e})}return O.jsx("div",{...t,children:e})},MT=e=>{const t=Re(),n=Date.now().toString();let r="default";const o=e.src;return o.includes("youtube")||o.includes("vimeo")?r="video":o.includes("riddle")||o.includes("sli.do")?r="poll":o.includes("padlet")&&(r="padlet"),O.jsxs(O.Fragment,{children:[O.jsx(ot,{children:O.jsx("a",{href:`#content-after-iframe-${n}`,children:t.formatMessage({id:`markdown_skip${r==="default"?"":`_${r}`}`})})}),O.jsx("iframe",{...e,title:t.formatMessage({id:`markdown_iframe${r==="default"?"":`_${r}`}`})}),O.jsx("span",{id:`content-after-iframe-${n}`,tabIndex:-1})]})},dd=e=>{let t="";return e&&typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"&&"type"in e&&(t=e.type),t},BT=({children:e,...t})=>{let n={...t};t.href&&(t.href.includes("http:")||t.href.includes("https:"))&&!t.target&&(n.target="_blank");let r=e,o=!1;for(const i of $.Children.toArray(e))if(!(!i||typeof i=="string"||typeof i=="number")&&$.isValidElement(i)){const s=i.type;if(["button","center","span","strong"].includes(s)&&i.props&&i.props.children&&i.props.children[0])for((s==="button"||dd(i.props.children[0])==="button")&&(o=!0),r=i.props.children[0];r&&typeof r!="string"&&!(typeof r=="boolean"||typeof r=="number"||!$.isValidElement(r));)if(r.props&&r.props.children&&r.props.children[0])r=r.props.children[0],r&&dd(r)==="button"&&(o=!0);else break}return o?(n={...n,className:"button primary medium"},O.jsx("p",{className:"center",children:O.jsx(De,{variant:"primary",size:"medium",...n,children:r})})):O.jsx("a",{...n,children:r})};const bc=({className:e="",options:t={},children:n})=>{n=n.replace(/^<br\/?>/,"");const r={wrapper:$.Fragment,forceBlock:!0,overrides:{a:BT,CollapsibleSection:Yc,TextBox:or,CaseStudy:PT,style:NT,details:LT,div:kT,iframe:MT}};return O.jsx("div",{className:se("markdown-text",e),children:O.jsx(na,{options:{...r,...t},children:n})})};const FT=({className:e="",children:t})=>O.jsx("span",{className:se("pill",e),children:t});const Wo=({element:e="p",children:t=null,className:n="",...r})=>$.createElement(e,{...r,className:se("status-banner text-small",n),"aria-live":"assertive"},t);const UT=({progress:e=0,text:t=!1,className:n=""})=>{const r=Re(),o=e>75?100:e>50?75:e>25?50:e>5?25:0,i={"--progress":`${e}%`};return O.jsx("span",{className:se(`progress-bar section-${o}`,n),style:i,children:O.jsx(ot,{children:t?`${e} ${t}`:r.formatMessage({id:"progressBar"},{number:e})})})},Hm=$.memo(UT);const Fs="loadingBlock_",DT=({progress:e=0,steps:t=!1,className:n=""})=>{const r=Re();t||(t={0:{text:r.formatMessage({id:`${Fs}loading`})},75:{text:r.formatMessage({id:`${Fs}almostDone`})},100:{text:r.formatMessage({id:`${Fs}complete`})}});let o=null;const i=Object.keys(t);for(let a=0;a<i.length&&!(e<parseInt(i[a]));a++)o=i[a];const s=o&&t[o].icon?{"--icon":`url(${Go}icons/${t[o].icon}.svg)`}:{};return O.jsxs(or,{className:se("loading-block",n,{"has-icon":o&&t[o].icon}),variant:"subtle",style:s,children:[o&&O.jsx("span",{className:"step",children:t[o].text}),O.jsx(Hm,{progress:e})]})},$T=$.memo(DT);const Er=({element:e="div",className:t="",...n})=>O.jsx(Tc,{element:e,className:se("loading-placeholder",t),...n});const wc={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"]},qm=(e,t)=>e in wc?O.jsx("div",{className:e,children:wc[e].map((n,r)=>qm(n,r))},t):O.jsx(Er,{className:e},t),Gm=({layout:e="overview-page"})=>O.jsx("div",{className:se("loading-state",e),children:wc[e].map((t,n)=>qm(t,n))}),Wm=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):""},Ao=["#5AB6A3","#A2D7AF","#806056","#3962B3"],jT=e=>{const t=Math.ceil(26/Ao.length),n=Wm(e).toLowerCase();if(n==="")return Ao[0];const r=n.charCodeAt(0)-96;for(let o=0;o<Ao.length;o++)if(r<=t*(o+1))return Ao[o]};const hd=256,ia=({className:e="",src:t="",name:n,alt:r,width:o=hd,height:i=hd,...s})=>{const[a,l]=$.useState(!1),f=$.useRef(null);return $.useEffect(()=>{const c=f.current;if(!c)return;const h=c.getContext("2d");if(!h)return;const d=o,u=i;typeof window<"u"&&window.devicePixelRatio&&(c.width=d*window.devicePixelRatio,c.height=u*window.devicePixelRatio,h.scale(window.devicePixelRatio,window.devicePixelRatio)),h.fillStyle=jT(n),h.fillRect(0,0,d,u),h.font=`${d/3}px Arial`,h.textAlign="center",h.fillStyle="white",h.fillText(Wm(n),d/2,u/1.6)},[n]),O.jsxs("figure",{className:se("profile-picture",e,{error:a}),...s,children:[t!==""&&!a&&O.jsx("img",{src:t,alt:r||n,onError:()=>{l(!0)},width:o,height:i}),(t===""||a)&&O.jsx("canvas",{ref:f})]})},Xc=e=>e==="apolitical"?{image:`${Go}logos/member_apolitical.svg`}:e==="community"||typeof e=="object"&&!e.name?{image:`${Go}logos/member_community.svg`}:{name:e.name,role:e.jobTitle||"",organisation:e.organization||"",country:e.location&&e.location.country||"",url:`/profiles/${e.id||e.slug}`,image:e.image&&e.image.thumbnail},HT=({role:e="",organisation:t="",country:n="",maximumCharacters:r=80})=>{const o=e!=="",i=t!=="",s=n!=="";if(!o&&!i&&!s)return"";const a=`${e}${o&&i?` — ${t}`:t}`;let l=`${a}${(o||i)&&s?`, ${n}`:n}`;return l.length>r&&(l=a),l.length>r&&(l=_m(l,r)),l};const Jc=({member:e="community",additionalContent:t=!1,gtmContext:n="member",gtmType:r="member-click",className:o=""})=>{const i=Re(),s=Xc(e);s.name||(s.name=i.formatMessage({id:`member_${typeof e=="string"?e:"community"}`}));const{name:a,url:l,image:f}=s,c=HT(s),h=t&&t.createdAt?Gb(t.createdAt):!1;return O.jsx("div",{className:se("member text-medium",o),children:O.jsxs($p,{href:l,gtmType:r,gtmContext:n,children:[O.jsx(ia,{name:a,src:f}),O.jsxs("p",{className:"details",children:[O.jsx("strong",{children:a}),t&&O.jsxs("span",{className:"additional-content",children:[t.createdAt&&h&&O.jsx("span",{className:"date",title:Gf(t&&t.createdAt),"aria-label":Gf(t&&t.createdAt),children:i.formatMessage({id:`dates_${h.path}`},{number:h.number})}),t.didEdit&&O.jsx("em",{children:i.formatMessage({id:"discussion_edited"})})]}),c&&O.jsx("small",{children:c})]})]})})};const pd={small:24,medium:48},Vm=({element:e="div",contributors:t=[],styling:{showText:n,size:r,showGap:o,showPlaceholders:i}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:s=2,className:a=""})=>{const l=Re();return t.length===0?null:$.createElement(e,{className:se("contributors",a,r,{"has-gap":o}),children:O.jsxs(O.Fragment,{children:[O.jsx("ul",{children:t.map((f,c)=>{let h,d="";if(c<s){const{name:u="",image:p=""}=Xc(f);if(i)return O.jsx(Er,{element:"li",className:"contributor"},c);h=O.jsx(ia,{name:u,src:p,width:pd[r||"medium"],height:pd[r||"medium"]})}else c===s&&(h=O.jsxs("small",{children:["+",t.length-s]}),d="number-left");return h?O.jsx("li",{className:se("contributor",d),children:h},c):null})}),n&&O.jsx("span",{className:"label",children:typeof n=="string"?n:t.length===1?typeof t[0]=="string"?l.formatMessage({id:`member_${t[0]}`}):_m(t[0].name||"",20):null})]})})},qT=({children:e,locale:t,messages:n})=>{const r=t||"en",o={...zb[r],...n||{}};return O.jsx(wS,{locale:r,messages:o,children:e})},Bn=$.createContext(null),GT=({children:e,user:t})=>O.jsx(Bn.Provider,{value:t,children:e});const zm=({isMember:e=!1,functions:{join:t,leave:n}={join:()=>{},leave:()=>{}}})=>{const r=Re(),o=$.useContext(Bn),i=o&&typeof o.id=="string",[s,a]=$.useState(e);return O.jsx(De,{variant:s?"secondary":"primary",size:"medium",styling:{fullWidth:!0},icon:s?{icon:"tick",position:"left"}:!1,onClick:async()=>{s?typeof n=="function"&&await n():typeof t=="function"&&await t(),a(!s)},className:"join-community-button",disabled:!i,children:r.formatMessage({id:`joinCommunityButton${s?"_member":""}`})})};const WT=({className:e="",...t})=>{const n=Re();return O.jsxs("div",{className:se("community-details",e),children:[O.jsx(zm,{...t}),O.jsxs("div",{className:"additional-details",children:[O.jsx(qo,{}),O.jsx("h3",{children:n.formatMessage({id:"communityDetails_members"})}),O.jsx(Vm,{contributors:[{},{},{},{},{}],styling:{size:"medium",showGap:!0,showPlaceholders:!0},cutoff:5})]})]})},VT={showThread:!1,showForm:!1},Zc=$.createContext(VT),zT=({children:e})=>{const[t,n]=$.useState({showThread:!1,showForm:!1});return O.jsx(Zc.Provider,{value:{...t,updateConversation:n},children:e})};function Sc(){return Sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sc.apply(this,arguments)}function YT(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var KT=$.useLayoutEffect,QT=function(t){var n=xe.useRef(t);return KT(function(){n.current=t}),n},md=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},XT=function(t,n){var r=$.useRef();return $.useCallback(function(o){t.current=o,r.current&&md(r.current,null),r.current=n,n&&md(n,o)},[n])},gd={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},JT=function(t){Object.keys(gd).forEach(function(n){t.style.setProperty(n,gd[n],"important")})},yd=JT,nt=null,vd=function(t,n){var r=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function ZT(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),nt||(nt=document.createElement("textarea"),nt.setAttribute("tabindex","-1"),nt.setAttribute("aria-hidden","true"),yd(nt)),nt.parentNode===null&&document.body.appendChild(nt);var o=e.paddingSize,i=e.borderSize,s=e.sizingStyle,a=s.boxSizing;Object.keys(s).forEach(function(d){var u=d;nt.style[u]=s[u]}),yd(nt),nt.value=t;var l=vd(nt,e);nt.value=t,l=vd(nt,e),nt.value="x";var f=nt.scrollHeight-o,c=f*n;a==="border-box"&&(c=c+o+i),l=Math.max(c,l);var h=f*r;return a==="border-box"&&(h=h+o+i),l=Math.min(h,l),[l,f]}var _d=function(){},ex=function(t,n){return t.reduce(function(r,o){return r[o]=n[o],r},{})},tx=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],rx=!!document.documentElement.currentStyle,nx=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var r=ex(tx,n),o=r.boxSizing;if(o==="")return null;rx&&o==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var i=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),s=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:i,borderSize:s}},ix=nx;function Ym(e,t,n){var r=QT(n);xe.useLayoutEffect(function(){var o=function(s){return r.current(s)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var ox=function(t){Ym(window,"resize",t)},ax=function(t){Ym(document.fonts,"loadingdone",t)},sx=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],cx=function(t,n){var r=t.cacheMeasurements,o=t.maxRows,i=t.minRows,s=t.onChange,a=s===void 0?_d:s,l=t.onHeightChange,f=l===void 0?_d:l,c=YT(t,sx),h=c.value!==void 0,d=xe.useRef(null),u=XT(d,n),p=xe.useRef(0),m=xe.useRef(),E=function(){var b=d.current,A=r&&m.current?m.current:ix(b);if(A){m.current=A;var w=ZT(A,b.value||b.placeholder||"x",i,o),P=w[0],F=w[1];p.current!==P&&(p.current=P,b.style.setProperty("height",P+"px","important"),f(P,{rowHeight:F}))}},T=function(b){h||E(),a(b)};return xe.useLayoutEffect(E),ox(E),ax(E),xe.createElement("textarea",Sc({},c,{onChange:T,ref:u}))},ux=xe.forwardRef(cx);let Co=null;const pt="discussion_form_",Km=({content:e={type:"response",slugs:{}},meta:t={isLoading:!1,isInWrapper:!1,isEditing:!1},inputRef:n,maxLength:r=5e4,minRows:o=4,forceShow:i={cancel:!1,error:!1},functions:s={create:()=>{},handleSaveEdit:()=>{},handleCancel:()=>{},callback:()=>{},props:{create:{projectNames:["questions-answers"]}}},gtmContext:a="DiscussionForm"})=>{var B,W;const l=Re(),f=$.useContext(Bn),[c,h]=$.useState(t.isEditing&&t.isEditing.text||""),[d,u]=$.useState(i.error||!1),[p,m]=$.useState(!1),E=$.useRef(null);if(n||(n=E),t.isLoading)return O.jsx(Er,{className:"discussion-card discussion-form","data-testid":"loading-placeholder"});const T=G=>{const V=G.target.value;h(V);let H;!f||!f.id?H=rr(l.formatMessage,`${pt}error_loggedOut`,e.type,"action"):V.length>=r&&(H=`${pt}error_tooLong`),H?u(H):d&&u(!1)};let _=`${e.type}-form`;if(e.type==="response"||e.type==="reply"){const G=e.type==="response"?((B=e.slugs)==null?void 0:B.question)||"":((W=e.slugs)==null?void 0:W.answer)||"";G&&(_=`${_}-${G.slice(-15)}`)}const b=async G=>{var H;if(G.preventDefault(),G.stopPropagation(),w)return;Co&&clearTimeout(Co),m("submitting");const V=window.location.pathname;try{let Y;switch(e.type){case"post":Y=await s.create({content:c});break;case"question":Y=await s.create({title:c,authorId:f&&f.id,...(H=s.props)==null?void 0:H.create});break;case"response":Y=await s.create({question:e.slugs.question},{body:c,authorId:f&&f.id,contentPath:V});break;case"reply":Y=await s.create({question:e.slugs.question,answer:e.slugs.answer},{body:c,authorId:f&&f.id,contentPath:V});break;default:break}await Wb(1e3),s.callback&&await s.callback(Y),Co=setTimeout(()=>{h(""),m("submitted"),A()},500)}catch(Y){const oe=Y;let K=`${pt}error`;oe.message.includes("entry already exists")&&(K=rr(l.formatMessage,`${pt}error_alreadyExists`,e.type,"action")),oe.message.includes("429")?K=rr(l.formatMessage,`${pt}error_tooMany`,e.type,"action"):oe.message.includes("400")&&(K=`${pt}error`),u(K),A()}},A=()=>{Co=setTimeout(()=>{u(!1),m(!1)},5e3)},w=!c||!Yb(c),P=p==="submitting",F=[];return(t.isEditing&&!P||i.cancel)&&F.push({variant:"secondary",size:{mobile:"small",600:"medium"},onClick:s.handleCancel,className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":`cancel-${e.type}-click`,disabled:!i.cancel&&(!f||!f.id||!c),children:l.formatMessage({id:`${pt}cancel`})}),F.push({variant:"primary",size:{mobile:"small",600:"medium"},onClick:G=>{if(t.isEditing){m("submitting"),s.handleSaveEdit&&s.handleSaveEdit(E.current&&"value"in E.current?E.current.value:"");return}b(G)},className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":`${t.isEditing?"save":"submit"}-${e.type}-click`,"data-testid":"save-button",disabled:!f||!f.id||w||P||t.isEditing&&c===t.isEditing.text,children:l.formatMessage({id:`${pt}${P?t.isEditing?"saving":"posting":t.isEditing?"save":"post"}`})}),O.jsxs("form",{id:_,className:se("discussion-card discussion-form",{"no-styling":t.isInWrapper&&t.isEditing}),"data-testid":`discussion-${e.type}-form`,children:[!t.isEditing&&["question"].includes(e.type)&&O.jsx("h2",{children:rr(l.formatMessage,`${pt}title`,e.type,"action")}),O.jsx(Jc,{member:f||"community",gtmContext:a,gtmType:"profile-click"}),O.jsx(ot,{element:"label",showOnFocus:!1,htmlFor:`${_}-input`,children:rr(l.formatMessage,`${pt}label`,e.type,"action")}),O.jsx(ux,{ref:n,id:`${_}-input`,name:e.type,placeholder:rr(l.formatMessage,`${pt}placeholder`,e.type,"action"),onChange:T,value:c,maxLength:r,"aria-invalid":!!d,"aria-errormessage":"error-message",minRows:o,autoFocus:!!t.isEditing}),O.jsx("small",{children:rr(l.formatMessage,`${pt}explainer`,e.type,"action",{a:G=>O.jsx("a",{href:"https://about.apolitical.co/q-and-a-community-guidelines",className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":"community-guidelines-link",children:G})})}),O.jsx(Ji,{buttons:F}),p==="submitted"&&O.jsx(Wo,{className:"success","data-testid":"success",children:rr(l.formatMessage,`${pt}success`,e.type,"action")}),d&&O.jsx(Wo,{id:"error-message",className:"error","data-testid":"error",children:i.error?i.error:typeof d=="string"?d.includes(" ")?d:l.formatMessage({id:d},{action:l.formatMessage({id:`discussion_action_${e.type}`}),maxLength:r}):d})]})},lx=({question:e,answer:t,reply:n})=>({...e&&{questionSlug:e},...t&&{answerSlug:t},...n&&{replySlug:n}});let ji=!1;const Us=()=>{ji!==!1&&(clearTimeout(ji),ji=!1)},Qm=({element:e="p",likes:t=0,isShort:n=!0,userLiked:r=!1,content:o={type:"reply",slugs:{}},canLike:i=!0,createLike:s=()=>{},deleteLike:a=()=>{}})=>{const l=Re();$.useEffect(()=>{d(r)},[r]);const[f,c]=$.useState(t),[h,d]=$.useState(r),[u,p]=$.useState(!1),m=window.location.pathname,E=_=>{if(_.preventDefault(),_.stopPropagation(),ji)return Us(),!1;if(Us(),u||!i)return!1;ji=setTimeout(T,350)},T=async()=>{if(Us(),u||!i)return!1;let _=h?f-1:f+1;_<0&&(_=0),p(!0),c(_),d(!h);try{if(o&&o.slugs){const b=lx(o.slugs);h?await a(b):await s(b,{contentPath:m})}}catch{c(t),d(r)}finally{p(!1)}};return $.createElement(e,{className:se("likes-wrapper text-medium action-button",{"show-spinner":u,"is-liked":h,disabled:!i}),onClick:E,children:O.jsxs(O.Fragment,{children:[O.jsx(De,{variant:"tertiary",size:"medium",icon:{icon:h?"heart":"heart_empty",animate:"bounce"},className:se({"do-animation":h&&!r}),screenreaderText:i?l.formatMessage({id:`discussion_${o.type}_likes_${h?"unlike":"like"}`}):!1,onClick:E,disabled:!i,"aria-hidden":!i,"data-testid":"like-button","data-gtm-event-context":"Likes","data-gtm-event-type":`like-${o.type}-click`}),O.jsx("span",{className:"number-of-likes","data-testid":"number-of-likes",children:l.formatMessage({id:`discussion_likes${n?"_short":""}`},{number:f})})]})})};var Vo={exports:{}};Vo.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=1,i=2,s=9007199254740991,a="[object Arguments]",l="[object Array]",f="[object AsyncFunction]",c="[object Boolean]",h="[object Date]",d="[object Error]",u="[object Function]",p="[object GeneratorFunction]",m="[object Map]",E="[object Number]",T="[object Null]",_="[object Object]",b="[object Promise]",A="[object Proxy]",w="[object RegExp]",P="[object Set]",F="[object String]",B="[object Symbol]",W="[object Undefined]",G="[object WeakMap]",V="[object ArrayBuffer]",H="[object DataView]",Y="[object Float32Array]",oe="[object Float64Array]",K="[object Int8Array]",k="[object Int16Array]",z="[object Int32Array]",J="[object Uint8Array]",ae="[object Uint8ClampedArray]",Q="[object Uint16Array]",Z="[object Uint32Array]",ce=/[\\^$.*+?()[\]{}|]/g,le=/^\[object .+?Constructor\]$/,ze=/^(?:0|[1-9]\d*)$/,X={};X[Y]=X[oe]=X[K]=X[k]=X[z]=X[J]=X[ae]=X[Q]=X[Z]=!0,X[a]=X[l]=X[V]=X[c]=X[H]=X[h]=X[d]=X[u]=X[m]=X[E]=X[_]=X[w]=X[P]=X[F]=X[G]=!1;var re=typeof ue=="object"&&ue&&ue.Object===Object&&ue,Pe=typeof self=="object"&&self&&self.Object===Object&&self,Oe=re||Pe||Function("return this")(),st=t&&!t.nodeType&&t,ut=st&&!0&&e&&!e.nodeType&&e,Et=ut&&ut.exports===st,te=Et&&re.process,Ye=function(){try{return te&&te.binding&&te.binding("util")}catch{}}(),$e=Ye&&Ye.isTypedArray;function bt(y,x){for(var R=-1,j=y==null?0:y.length,de=0,ie=[];++R<j;){var pe=y[R];x(pe,R,y)&&(ie[de++]=pe)}return ie}function Gt(y,x){for(var R=-1,j=x.length,de=y.length;++R<j;)y[de+R]=x[R];return y}function Rt(y,x){for(var R=-1,j=y==null?0:y.length;++R<j;)if(x(y[R],R,y))return!0;return!1}function mt(y,x){for(var R=-1,j=Array(y);++R<y;)j[R]=x(R);return j}function Sr(y){return function(x){return y(x)}}function wt(y,x){return y.has(x)}function gt(y,x){return y==null?void 0:y[x]}function je(y){var x=-1,R=Array(y.size);return y.forEach(function(j,de){R[++x]=[de,j]}),R}function St(y,x){return function(R){return y(x(R))}}function rt(y){var x=-1,R=Array(y.size);return y.forEach(function(j){R[++x]=j}),R}var Ke=Array.prototype,Tr=Function.prototype,S=Object.prototype,g=Oe["__core-js_shared__"],v=Tr.toString,C=S.hasOwnProperty,N=function(){var y=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),U=S.toString,q=RegExp("^"+v.call(C).replace(ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fe=Et?Oe.Buffer:void 0,be=Oe.Symbol,we=Oe.Uint8Array,Se=S.propertyIsEnumerable,he=Ke.splice,lt=be?be.toStringTag:void 0,ar=Object.getOwnPropertySymbols,xr=fe?fe.isBuffer:void 0,Wt=St(Object.keys,Object),Or=xt(Oe,"DataView"),Vt=xt(Oe,"Map"),Ar=xt(Oe,"Promise"),Cr=xt(Oe,"Set"),Rr=xt(Oe,"WeakMap"),Nt=xt(Object,"create"),on=Qe(Or),Tt=Qe(Vt),Un=Qe(Ar),Dn=Qe(Cr),$n=Qe(Rr),an=be?be.prototype:void 0,Nr=an?an.valueOf:void 0;function Fe(y){var x=-1,R=y==null?0:y.length;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Pr(){this.__data__=Nt?Nt(null):{},this.size=0}function Ir(y){var x=this.has(y)&&delete this.__data__[y];return this.size-=x?1:0,x}function zt(y){var x=this.__data__;if(Nt){var R=x[y];return R===r?void 0:R}return C.call(x,y)?x[y]:void 0}function sn(y){var x=this.__data__;return Nt?x[y]!==void 0:C.call(x,y)}function jn(y,x){var R=this.__data__;return this.size+=this.has(y)?0:1,R[y]=Nt&&x===void 0?r:x,this}Fe.prototype.clear=Pr,Fe.prototype.delete=Ir,Fe.prototype.get=zt,Fe.prototype.has=sn,Fe.prototype.set=jn;function He(y){var x=-1,R=y==null?0:y.length;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Hn(){this.__data__=[],this.size=0}function qn(y){var x=this.__data__,R=ur(x,y);if(R<0)return!1;var j=x.length-1;return R==j?x.pop():he.call(x,R,1),--this.size,!0}function Gn(y){var x=this.__data__,R=ur(x,y);return R<0?void 0:x[R][1]}function Wn(y){return ur(this.__data__,y)>-1}function Lr(y,x){var R=this.__data__,j=ur(R,y);return j<0?(++this.size,R.push([y,x])):R[j][1]=x,this}He.prototype.clear=Hn,He.prototype.delete=qn,He.prototype.get=Gn,He.prototype.has=Wn,He.prototype.set=Lr;function Ze(y){var x=-1,R=y==null?0:y.length;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Vn(){this.size=0,this.__data__={hash:new Fe,map:new(Vt||He),string:new Fe}}function zn(y){var x=ft(this,y).delete(y);return this.size-=x?1:0,x}function Yn(y){return ft(this,y).get(y)}function Kn(y){return ft(this,y).has(y)}function Qn(y,x){var R=ft(this,y),j=R.size;return R.set(y,x),this.size+=R.size==j?0:1,this}Ze.prototype.clear=Vn,Ze.prototype.delete=zn,Ze.prototype.get=Yn,Ze.prototype.has=Kn,Ze.prototype.set=Qn;function sr(y){var x=-1,R=y==null?0:y.length;for(this.__data__=new Ze;++x<R;)this.add(y[x])}function cn(y){return this.__data__.set(y,r),this}function cr(y){return this.__data__.has(y)}sr.prototype.add=sr.prototype.push=cn,sr.prototype.has=cr;function ct(y){var x=this.__data__=new He(y);this.size=x.size}function kr(){this.__data__=new He,this.size=0}function Xn(y){var x=this.__data__,R=x.delete(y);return this.size=x.size,R}function Jn(y){return this.__data__.get(y)}function Zn(y){return this.__data__.has(y)}function ei(y,x){var R=this.__data__;if(R instanceof He){var j=R.__data__;if(!Vt||j.length<n-1)return j.push([y,x]),this.size=++R.size,this;R=this.__data__=new Ze(j)}return R.set(y,x),this.size=R.size,this}ct.prototype.clear=kr,ct.prototype.delete=Xn,ct.prototype.get=Jn,ct.prototype.has=Zn,ct.prototype.set=ei;function ti(y,x){var R=lr(y),j=!R&&pn(y),de=!R&&!j&&dr(y),ie=!R&&!j&&!de&&Dr(y),pe=R||j||de||ie,me=pe?mt(y.length,String):[],ke=me.length;for(var Ee in y)(x||C.call(y,Ee))&&!(pe&&(Ee=="length"||de&&(Ee=="offset"||Ee=="parent")||ie&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||Pt(Ee,ke)))&&me.push(Ee);return me}function ur(y,x){for(var R=y.length;R--;)if(hn(y[R][0],x))return R;return-1}function Mr(y,x,R){var j=x(y);return lr(y)?j:Gt(j,R(y))}function Yt(y){return y==null?y===void 0?W:T:lt&&lt in Object(y)?Ot(y):dn(y)}function un(y){return yt(y)&&Yt(y)==a}function ln(y,x,R,j,de){return y===x?!0:y==null||x==null||!yt(y)&&!yt(x)?y!==y&&x!==x:fn(y,x,R,j,ln,de)}function fn(y,x,R,j,de,ie){var pe=lr(y),me=lr(x),ke=pe?l:dt(y),Ee=me?l:dt(x);ke=ke==a?_:ke,Ee=Ee==a?_:Ee;var qe=ke==_,Xe=Ee==_,Be=ke==Ee;if(Be&&dr(y)){if(!dr(x))return!1;pe=!0,qe=!1}if(Be&&!qe)return ie||(ie=new ct),pe||Dr(y)?Br(y,x,R,j,de,ie):oi(y,x,ke,R,j,de,ie);if(!(R&o)){var Ge=qe&&C.call(y,"__wrapped__"),Ue=Xe&&C.call(x,"__wrapped__");if(Ge||Ue){var It=Ge?y.value():y,At=Ue?x.value():x;return ie||(ie=new ct),de(It,At,R,j,ie)}}return Be?(ie||(ie=new ct),Fr(y,x,R,j,de,ie)):!1}function ri(y){if(!gn(y)||ci(y))return!1;var x=mn(y)?q:le;return x.test(Qe(y))}function ni(y){return yt(y)&&Ur(y.length)&&!!X[Yt(y)]}function ii(y){if(!ui(y))return Wt(y);var x=[];for(var R in Object(y))C.call(y,R)&&R!="constructor"&&x.push(R);return x}function Br(y,x,R,j,de,ie){var pe=R&o,me=y.length,ke=x.length;if(me!=ke&&!(pe&&ke>me))return!1;var Ee=ie.get(y);if(Ee&&ie.get(x))return Ee==x;var qe=-1,Xe=!0,Be=R&i?new sr:void 0;for(ie.set(y,x),ie.set(x,y);++qe<me;){var Ge=y[qe],Ue=x[qe];if(j)var It=pe?j(Ue,Ge,qe,x,y,ie):j(Ge,Ue,qe,y,x,ie);if(It!==void 0){if(It)continue;Xe=!1;break}if(Be){if(!Rt(x,function(At,Qt){if(!wt(Be,Qt)&&(Ge===At||de(Ge,At,R,j,ie)))return Be.push(Qt)})){Xe=!1;break}}else if(!(Ge===Ue||de(Ge,Ue,R,j,ie))){Xe=!1;break}}return ie.delete(y),ie.delete(x),Xe}function oi(y,x,R,j,de,ie,pe){switch(R){case H:if(y.byteLength!=x.byteLength||y.byteOffset!=x.byteOffset)return!1;y=y.buffer,x=x.buffer;case V:return!(y.byteLength!=x.byteLength||!ie(new we(y),new we(x)));case c:case h:case E:return hn(+y,+x);case d:return y.name==x.name&&y.message==x.message;case w:case F:return y==x+"";case m:var me=je;case P:var ke=j&o;if(me||(me=rt),y.size!=x.size&&!ke)return!1;var Ee=pe.get(y);if(Ee)return Ee==x;j|=i,pe.set(y,x);var qe=Br(me(y),me(x),j,de,ie,pe);return pe.delete(y),qe;case B:if(Nr)return Nr.call(y)==Nr.call(x)}return!1}function Fr(y,x,R,j,de,ie){var pe=R&o,me=Kt(y),ke=me.length,Ee=Kt(x),qe=Ee.length;if(ke!=qe&&!pe)return!1;for(var Xe=ke;Xe--;){var Be=me[Xe];if(!(pe?Be in x:C.call(x,Be)))return!1}var Ge=ie.get(y);if(Ge&&ie.get(x))return Ge==x;var Ue=!0;ie.set(y,x),ie.set(x,y);for(var It=pe;++Xe<ke;){Be=me[Xe];var At=y[Be],Qt=x[Be];if(j)var to=pe?j(Qt,At,Be,x,y,ie):j(At,Qt,Be,y,x,ie);if(!(to===void 0?At===Qt||de(At,Qt,R,j,ie):to)){Ue=!1;break}It||(It=Be=="constructor")}if(Ue&&!It){var Lt=y.constructor,hr=x.constructor;Lt!=hr&&"constructor"in y&&"constructor"in x&&!(typeof Lt=="function"&&Lt instanceof Lt&&typeof hr=="function"&&hr instanceof hr)&&(Ue=!1)}return ie.delete(y),ie.delete(x),Ue}function Kt(y){return Mr(y,yn,ai)}function ft(y,x){var R=y.__data__;return si(x)?R[typeof x=="string"?"string":"hash"]:R.map}function xt(y,x){var R=gt(y,x);return ri(R)?R:void 0}function Ot(y){var x=C.call(y,lt),R=y[lt];try{y[lt]=void 0;var j=!0}catch{}var de=U.call(y);return j&&(x?y[lt]=R:delete y[lt]),de}var ai=ar?function(y){return y==null?[]:(y=Object(y),bt(ar(y),function(x){return Se.call(y,x)}))}:vn,dt=Yt;(Or&&dt(new Or(new ArrayBuffer(1)))!=H||Vt&&dt(new Vt)!=m||Ar&&dt(Ar.resolve())!=b||Cr&&dt(new Cr)!=P||Rr&&dt(new Rr)!=G)&&(dt=function(y){var x=Yt(y),R=x==_?y.constructor:void 0,j=R?Qe(R):"";if(j)switch(j){case on:return H;case Tt:return m;case Un:return b;case Dn:return P;case $n:return G}return x});function Pt(y,x){return x=x??s,!!x&&(typeof y=="number"||ze.test(y))&&y>-1&&y%1==0&&y<x}function si(y){var x=typeof y;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?y!=="__proto__":y===null}function ci(y){return!!N&&N in y}function ui(y){var x=y&&y.constructor,R=typeof x=="function"&&x.prototype||S;return y===R}function dn(y){return U.call(y)}function Qe(y){if(y!=null){try{return v.call(y)}catch{}try{return y+""}catch{}}return""}function hn(y,x){return y===x||y!==y&&x!==x}var pn=un(function(){return arguments}())?un:function(y){return yt(y)&&C.call(y,"callee")&&!Se.call(y,"callee")},lr=Array.isArray;function fr(y){return y!=null&&Ur(y.length)&&!mn(y)}var dr=xr||fi;function li(y,x){return ln(y,x)}function mn(y){if(!gn(y))return!1;var x=Yt(y);return x==u||x==p||x==f||x==A}function Ur(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=s}function gn(y){var x=typeof y;return y!=null&&(x=="object"||x=="function")}function yt(y){return y!=null&&typeof y=="object"}var Dr=$e?Sr($e):ni;function yn(y){return fr(y)?ti(y):ii(y)}function vn(){return[]}function fi(){return!1}e.exports=li})(Vo,Vo.exports);var fx=Vo.exports;const dx=jt(fx);const Xm=({element:e="section",children:t,className:n,...r})=>$.createElement(e,{className:se("modal",n),children:typeof t=="string"?O.jsx("p",{children:t}):t,...r});const Jm=({id:e="content-overlay",isOpen:t=!1,maxWidth:n,functions:{onOpen:r=()=>{},onClose:o=()=>{}}={},forceShow:{error:i=!1}={},title:s,children:a,buttons:l,className:f="",gtmContext:c="Modal"})=>{const h=Re(),[d,u]=$.useState(t),p=E=>{u(E),document.body.classList.toggle("has-overlay"),E?r():o()};$.useEffect(()=>{p(t)},[t]);const m=n?{"--max-width":`${n/16}rem`}:{};return O.jsx("div",{className:se("overlay",{open:d}),children:O.jsx(Xm,{id:e,className:se("overlay-modal",f,{"has-max-width":n}),hidden:!d,style:m,children:t&&O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"top",children:[O.jsx("h2",{children:s}),O.jsx(De,{variant:"tertiary",size:"medium",icon:{icon:"close"},onClick:()=>p(!1),className:"gtm-trackable","data-gtm-event-type":"close-modal-click","data-gtm-event-context":c,screenreaderText:h.formatMessage({id:"overlay_button"})})]}),O.jsx(qo,{}),a,l&&O.jsxs("div",{className:"bottom",children:[O.jsx(qo,{}),O.jsx(Ji,{buttons:l})]}),i&&O.jsx(Wo,{className:"error",children:i})]})})})},Zm=(e,t)=>({"aria-haspopup":!0,"aria-expanded":t,"aria-controls":e});const hx=({options:e,allOption:t=!1,allowMultiple:n=!0,onChange:r=()=>{},className:o=""})=>{const i=Re(),s=t?[{id:"all",text:typeof t!="boolean"&&t.text||i.formatMessage({id:"filters_all"})},...e]:e,[a,l]=$.useState(t?["all"]:[]),f=(c,h)=>{let d=[];a.includes(c)?d=a.filter(u=>u!==c):c==="all"?d=["all"]:n?d=[...a.filter(u=>u!=="all"),c]:d=[c],l(u=>(r&&typeof r=="function"&&r({current:d,previous:u}),d)),h&&typeof h=="function"&&h()};return O.jsx("ul",{className:se("filters",o),children:s.map(({id:c,text:h,disabled:d=!1,callback:u=()=>{}})=>{let p={};return d&&(p={disabled:!0,"aria-label":i.formatMessage({id:"filters_disabled"},{name:h})}),O.jsx("li",{children:O.jsx("button",{className:se(c,{selected:a.includes(c)}),onClick:m=>{m.preventDefault(),m.stopPropagation(),f(c,u)},...p,children:h})},c)})})};const Ds=yc({locale:"en",messages:Hc}),px=({page:e=1,length:t=0,limit:n=10,loadNextPage:r=()=>{},icon:o=!1,messages:i={button:Ds.formatMessage({id:"loadMore_button"}),endOfFeed:Ds.formatMessage({id:"loadMore_endOfFeed"}),error:Ds.formatMessage({id:"loadMore_error"})},className:s="",gtmContext:a="LoadMore"})=>{const[l,f]=$.useState(!1),[c,h]=$.useState(!1);if(t<=0||t<n*e)return null;const d=async u=>{try{await r(u)}catch(p){p instanceof Error&&p.message&&p.message.includes("Cannot read items")?h(!0):f(!0)}};return O.jsxs("footer",{className:se("load-more",s),children:[l&&O.jsx("p",{className:"error",children:i.error}),c?O.jsx("p",{children:i.endOfFeed}):O.jsx(De,{variant:"secondary",icon:o,onClick:d,"data-gtm-event-context":a,"data-gtm-event-type":"load-more-click",className:"gtm-trackable","data-testid":"load-more-button",children:i.button})]})};let Ro=!1;const eg=({element:e="div",id:t="more-menu",options:n,className:r=""})=>{const o=Re(),i=$.useRef(null),[s,a]=$.useState(!1),l=f=>{i.current&&f.target instanceof HTMLElement&&!i.current.contains(f.target)&&a(!1)};return $.useEffect(()=>(document.addEventListener("click",l,!0),()=>{document.removeEventListener("click",l,!0)})),$.createElement(e,{ref:i,className:se("more-menu text-medium",r),children:O.jsxs(O.Fragment,{children:[O.jsx(De,{variant:"tertiary",size:"medium",icon:{icon:"ellipsis"},onClick:()=>a(!s),"aria-haspopup":"true","aria-expanded":s,"aria-controls":t,screenreaderText:o.formatMessage({id:"moreMenu"})}),O.jsx("ul",{id:t,hidden:!s,children:n.map(({href:f,onClick:c,text:h,icon:d,...u},p)=>{const m={...u,onClick:E=>{a(!1),typeof c=="function"&&c(E)},onFocus:()=>{Ro&&(clearTimeout(Ro),Ro=!1)},onBlur:()=>{Ro=setTimeout(()=>{a(!1)},100)}};return f&&(m.href=f),O.jsx("li",{children:O.jsx(De,{variant:"tertiary",size:"medium",icon:d?{icon:d,position:"left"}:!1,...m,children:h})},`${window.btoa(h)}_${p}`)})})]})})};const eu=({variant:e="default",version:t="default",className:n="",...r})=>O.jsx("p",{className:"logo-wrapper",children:O.jsx("a",{className:se("logo",e,t,n),href:"/home/",...r,children:O.jsx(ot,{children:O.jsx(vr,{id:"apolitical"})})})});const mx={"2-1":901},gx=({layout:e="2-1",hideOnMobile:t=!1,className:n="",children:r})=>{const o=Xi(!0);let i=r;return $.Children.count(r)===1&&(i=$.Children.toArray(r)[0],i.props&&(i=i.props.children)),O.jsx("section",{className:se("columns",`layout-${e}`,n),children:$.Children.map(i,(s,a)=>t!==!1&&a===t&&o&&o<mx[e]?null:s)})};const $s="cookieBanner_",js=["apol-cookie-banner","apolitical-performance-cookie-consent","functional-cookie-consent"],Hs=new Date(Date.now()+12*30*24*60*60*1e3),tg=()=>{const e=Re(),[t,n,r]=Ld(js),[o,i]=$.useState(!t["apol-cookie-banner"]),s=()=>{js.forEach(c=>{n(c,!0,{path:"/",expires:Hs,domain:c==="apolitical-performance-cookie-consent"?".apolitical.co":void 0})}),i(!1),window.location.reload()},a=()=>{n("apol-cookie-banner",!0,{path:"/",expires:Hs}),js.forEach(c=>{if(c==="apol-cookie-banner"){n(c,!0,{path:"/",expires:Hs});return}r(c)}),i(!1)};if(!o)return null;const l=[{id:"settings",href:"/pages/cookie-policy",gtmType:"policy-page"},{id:"reject",onClick:a,gtmType:"reject-all"},{id:"accept",onClick:s,gtmType:"accepted-all"}],f=[];return l.forEach(c=>{f.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:`${$s}buttons_${c.id}`})})}),O.jsxs("aside",{id:"cookie-banner",className:"text-medium",children:[O.jsx("h6",{children:e.formatMessage({id:`${$s}title`})}),O.jsx("p",{children:e.formatMessage({id:`${$s}text`})}),O.jsx(Ji,{buttons:f})]})},ir={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 Tn="footer_",zo="SiteFooter",Ed=({group:e})=>{const t=ir[e].order||[];let n=!1;return"text"in ir[e]&&(n=ir[e].text),O.jsxs($.Fragment,{children:[O.jsx("p",{className:"pre-title",children:O.jsx(vr,{id:`${Tn}${e}`})}),Array.isArray(t)&&t.length>0&&O.jsx("ul",{className:"text-medium",children:t.map(r=>{if(["order","child","text"].includes(r))return null;const{href:o,gtmType:i}=ir[e][r],s={};return["legal"].includes(e)&&(s.target="_blank",s.rel="noopener"),O.jsx("li",{children:O.jsx("a",{href:o,className:"gtm-trackable","data-gtm-event-context":zo,"data-gtm-event-type":i,...s,children:O.jsx(vr,{id:`${Tn}${e}_${r}`})})},`${e}_${r}`)})}),typeof n!="boolean"&&"order"in n&&Array.isArray(n.order)&&O.jsx("dl",{className:"text-medium",children:n.order.map(r=>O.jsxs($.Fragment,{children:[O.jsx("dt",{children:O.jsx(vr,{id:`${Tn}${e}_${r}`})}),O.jsxs("dd",{children:[typeof n!="boolean"&&n[r].address&&O.jsx("address",{children:O.jsx(vr,{id:`${Tn}${e}_${r}_address`,values:{br:O.jsx("br",{})}})}),typeof n!="boolean"&&n[r].email&&O.jsx("a",{href:`mailto:${n[r].email}`,className:"gtm-trackable","data-gtm-event-context":zo,"data-gtm-event-type":n[r].gtmType,children:n[r].email})]})]},`dl-${e}-${r}`))})]},e)},tu=()=>O.jsx("div",{id:"footer",children:O.jsxs("div",{className:"wrapper",children:[O.jsx(Tc,{element:"hr"}),O.jsx(eu,{variant:"inverted",version:"full",className:"gtm-trackable","data-gtm-event-context":zo,"data-gtm-event-type":"logo-homepage-link"}),O.jsx("footer",{children:["platform","community","company","contact"].map(e=>O.jsxs("div",{className:"group",children:[O.jsx(Ed,{group:e}),Object.keys(ir[e]).includes("child")&&O.jsx(Ed,{group:ir[e].child})]},e))}),O.jsx("hr",{}),O.jsxs("div",{className:"sub-footer",children:[O.jsx("ul",{children:Array.isArray(ir.social.order)&&ir.social.order.map(e=>{const t=ir.social[e];return O.jsx("li",{className:e,children:O.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"gtm-trackable","data-gtm-event-context":zo,"data-gtm-event-type":"social-click",children:O.jsx("span",{className:"hidden",children:O.jsx(vr,{id:`${Tn}social_${e}`})})})},e)})}),O.jsx("small",{children:O.jsx(vr,{id:`${Tn}copyright`,values:{currentYear:new Date().getFullYear()}})})]})]})});const No="emailHelperTextBox_",yx=({type:e,email:t,redirectPath:n,resendVerificationCode:r})=>{const o=Re(),[i,s]=$.useState({path:`${No}default`,type:"default",link:{},mail:{},error:""}),[a,l]=$.useState(!1),f=$.useCallback(u=>{u.preventDefault(),u.stopPropagation();const p=m=>{s({path:`${No}error_verificationFailedToSend`,type:"error",link:{"data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:E=>f(E),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 r!="function"){p(o.formatMessage({id:`${No}error_noFunction`}));return}l(!0),r(t).then(()=>{localStorage.setItem("email",t),window.location.href=n||"/signup/verify-email"}).catch(m=>{p(m.message)}).finally(()=>{l(!1)})},[t,n,r]);$.useEffect(()=>{let u=No,p="default",m={},E={};switch(e){case"gov":u+="autoApproved",p="success";break;case"nonGov":u+="unrecognisedEmail",p="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":u+="pendingApproval",p="error",E={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;case"verify":u+="emailUnverified",p="error",m={href:"#","data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:T=>f(T),"data-testid":"send-verify-email-click"};break;case"exists":u+="emailAlreadyExists",p="error",m={href:"/user-onboarding/login","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"login-click"},E={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;default:u+="default",m={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"DefaultEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break}s({...i,path:u,type:p,link:m,mail:E})},[e]);const c={};return["link","mail"].forEach(u=>{c[u]=Object.keys(i[u]).length?p=>O.jsx("a",{...i[u],children:p}):p=>p}),O.jsx(jm,{type:i.type,heading:a?!1:o.formatMessage({id:`${i.path}_title`}),children:a?O.jsxs(O.Fragment,{children:[O.jsx(Er,{element:"span"}),O.jsx(Er,{element:"span"})]}):o.formatMessage({id:`${i.path}_text`},{...c,strong:u=>O.jsx("strong",{children:u}),em:u=>O.jsx("em",{children:u}),br:O.jsxs(O.Fragment,{children:[O.jsx("br",{}),O.jsx("br",{})]}),error:i.error})})};const Po="passwordRules_",rg="isMoreThanEightCharacters",ng="includesNumberAndSymbol",ig="includesLowerAndUppercase",vx={[rg]:"8Characters",[ng]:"numberSymbol",[ig]:"lowercaseUppercase"},_x=({matchingRules:e={isMoreThanEightCharacters:!1,includesNumberAndSymbol:!1,includesLowerAndUppercase:!1},className:t=""})=>{const n=Re();return O.jsxs("aside",{className:se("password-rules",t),children:[O.jsx("small",{children:n.formatMessage({id:`${Po}intro`})}),O.jsx("ul",{children:[rg,ng,ig].map(r=>O.jsxs("li",{className:se({matches:e[r]}),children:[O.jsxs(ot,{children:[n.formatMessage({id:`${Po}rule_label`})," "]}),O.jsx("span",{children:n.formatMessage({id:`${Po}rule_${vx[r]}`})}),!e[r]&&O.jsxs(ot,{element:"strong",children:[" "," ",n.formatMessage({id:`${Po}notMet`})]})]},`rule-${r}`))})]})},Ex=$.memo(_x);const bx=({text:e={},topRating:t=5,functions:{createRating:n=()=>null,updateRating:r=()=>{},reportError:o=()=>{}},className:i="",hasLoaded:s=!1})=>{const a=Re(),[l,f]=$.useState({setUp:!1,id:null,rating:null,disabled:!0}),c=async()=>{try{const T=await n();f(_=>({..._,setUp:!0,id:T&&T.id,disabled:!1}))}catch(T){f(_=>({..._,setUp:!0,disabled:!0})),o(T)}};if($.useEffect(()=>{s&&!l.setUp&&c()},[s]),!s)return O.jsx(Er,{className:"rating-placeholder"});const{id:h,rating:d,disabled:u}=l,p="ratings_",m={text:a.formatMessage({id:`${p}text`}),low:a.formatMessage({id:`${p}low`}),high:a.formatMessage({id:`${p}high`}),success:a.formatMessage({id:`${p}success`}),...e},E=async T=>{if(!(!h||u))try{f(_=>({..._,rating:T,disabled:!0})),await r({id:h,value:T})}catch(_){f(b=>({...b,rating:null})),o(_)}finally{f(_=>({..._,disabled:!1}))}};return O.jsxs("div",{className:se("rating",i),children:[O.jsx("span",{className:"label",children:m[d?"success":"text"]}),O.jsx("ol",{children:Array.from(new Array(t).keys()).map(T=>{const _=T+1;return O.jsx("li",{className:se({selected:d&&_<=d}),children:O.jsx(De,{variant:"tertiary",size:"small",icon:{icon:`star${!d||_>d?"_empty":""}`,position:"left",hover:"star"},screenreaderText:`${a.formatMessage({id:`${p}stars`},{number:_,total:t})}${_===1||_===t?` - ${m[_===1?"low":"high"]}`:""}`,onClick:b=>{b.preventDefault(),b.stopPropagation(),E(_)},disabled:u})},`rating-${_}`)})})]})};const og=({id:e="search",className:t="",handleToggle:n=!1,defaultValue:r="",gtmContext:o="search-bar",gtmEvent:i="form-submission"})=>{const{searchIsOpen:s=!0,isDesktopVersion:a=!1}=n||{},l=Re(),f=$.useRef(null);Hi(()=>{!n||a||!s||f.current&&f.current.focus()},[s]);const c=h=>{if(h.preventDefault(),h.stopPropagation(),!(!f.current||!f.current.value||f.current.value.length<1))return window&&window.location&&window.location.replace(`/search?search=${encodeURIComponent(f.current.value)}`)};return O.jsx("form",{onSubmit:c,className:se("search-form gtm-trackable",t),"data-gtm-event-context":o,"data-gtm-event-type":i,children:O.jsx("fieldset",{id:`${e}-form`,hidden:n?!s:!1,role:"search",children:O.jsxs("p",{children:[O.jsx(ot,{element:"label",htmlFor:e,children:l.formatMessage({id:"search_label"})}),O.jsx("input",{ref:f,type:"search",id:e,name:e,defaultValue:r,placeholder:l.formatMessage({id:"search_placeholder"}),onKeyDown:h=>{h.key==="Enter"&&c(h)}}),O.jsx("button",{className:"clear",onClick:h=>{h.preventDefault(),h.stopPropagation(),f.current&&f.current.value&&(f.current.value="")},children:O.jsx(ot,{children:l.formatMessage({id:"search_clear"})})}),O.jsx("button",{className:"search",onClick:c,children:O.jsx(ot,{children:l.formatMessage({id:"search_cta"})})})]})})})};var wx="Expected a function",ag="__lodash_hash_undefined__",sg=1/0,Sx="[object Function]",Tx="[object GeneratorFunction]",xx="[object Symbol]",Ox=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ax=/^\w*$/,Cx=/^\./,Rx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nx=/[\\^$.*+?()[\]{}|]/g,Px=/\\(\\)?/g,Ix=/^\[object .+?Constructor\]$/,Lx=typeof ue=="object"&&ue&&ue.Object===Object&&ue,kx=typeof self=="object"&&self&&self.Object===Object&&self,ru=Lx||kx||Function("return this")();function Mx(e,t){return e==null?void 0:e[t]}function Bx(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Fx=Array.prototype,Ux=Function.prototype,cg=Object.prototype,qs=ru["__core-js_shared__"],bd=function(){var e=/[^.]+$/.exec(qs&&qs.keys&&qs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ug=Ux.toString,nu=cg.hasOwnProperty,lg=cg.toString,Dx=RegExp("^"+ug.call(nu).replace(Nx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wd=ru.Symbol,$x=Fx.splice,jx=fg(ru,"Map"),Wi=fg(Object,"create"),Sd=wd?wd.prototype:void 0,Td=Sd?Sd.toString:void 0;function en(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hx(){this.__data__=Wi?Wi(null):{}}function qx(e){return this.has(e)&&delete this.__data__[e]}function Gx(e){var t=this.__data__;if(Wi){var n=t[e];return n===ag?void 0:n}return nu.call(t,e)?t[e]:void 0}function Wx(e){var t=this.__data__;return Wi?t[e]!==void 0:nu.call(t,e)}function Vx(e,t){var n=this.__data__;return n[e]=Wi&&t===void 0?ag:t,this}en.prototype.clear=Hx;en.prototype.delete=qx;en.prototype.get=Gx;en.prototype.has=Wx;en.prototype.set=Vx;function Fn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zx(){this.__data__=[]}function Yx(e){var t=this.__data__,n=oa(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():$x.call(t,n,1),!0}function Kx(e){var t=this.__data__,n=oa(t,e);return n<0?void 0:t[n][1]}function Qx(e){return oa(this.__data__,e)>-1}function Xx(e,t){var n=this.__data__,r=oa(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Fn.prototype.clear=zx;Fn.prototype.delete=Yx;Fn.prototype.get=Kx;Fn.prototype.has=Qx;Fn.prototype.set=Xx;function nn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Jx(){this.__data__={hash:new en,map:new(jx||Fn),string:new en}}function Zx(e){return aa(this,e).delete(e)}function eO(e){return aa(this,e).get(e)}function tO(e){return aa(this,e).has(e)}function rO(e,t){return aa(this,e).set(e,t),this}nn.prototype.clear=Jx;nn.prototype.delete=Zx;nn.prototype.get=eO;nn.prototype.has=tO;nn.prototype.set=rO;function oa(e,t){for(var n=e.length;n--;)if(hO(e[n][0],t))return n;return-1}function nO(e,t){t=sO(t,e)?[t]:aO(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[fO(t[n++])];return n&&n==r?e:void 0}function iO(e){if(!hg(e)||uO(e))return!1;var t=pO(e)||Bx(e)?Dx:Ix;return t.test(dO(e))}function oO(e){if(typeof e=="string")return e;if(ou(e))return Td?Td.call(e):"";var t=e+"";return t=="0"&&1/e==-sg?"-0":t}function aO(e){return dg(e)?e:lO(e)}function aa(e,t){var n=e.__data__;return cO(t)?n[typeof t=="string"?"string":"hash"]:n.map}function fg(e,t){var n=Mx(e,t);return iO(n)?n:void 0}function sO(e,t){if(dg(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ou(e)?!0:Ax.test(e)||!Ox.test(e)||t!=null&&e in Object(t)}function cO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function uO(e){return!!bd&&bd in e}var lO=iu(function(e){e=gO(e);var t=[];return Cx.test(e)&&t.push(""),e.replace(Rx,function(n,r,o,i){t.push(o?i.replace(Px,"$1"):r||n)}),t});function fO(e){if(typeof e=="string"||ou(e))return e;var t=e+"";return t=="0"&&1/e==-sg?"-0":t}function dO(e){if(e!=null){try{return ug.call(e)}catch{}try{return e+""}catch{}}return""}function iu(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(wx);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new(iu.Cache||nn),n}iu.Cache=nn;function hO(e,t){return e===t||e!==e&&t!==t}var dg=Array.isArray;function pO(e){var t=hg(e)?lg.call(e):"";return t==Sx||t==Tx}function hg(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function mO(e){return!!e&&typeof e=="object"}function ou(e){return typeof e=="symbol"||mO(e)&&lg.call(e)==xx}function gO(e){return e==null?"":oO(e)}function yO(e,t,n){var r=e==null?void 0:nO(e,t);return r===void 0?n:r}var vO=yO;const pg=jt(vO),Ne={timeouts:{},handlerCalled:{},getIsDesktopVersion:(e,t)=>{const n={navigation:{loggedIn:769,loggedOut:881},search:{loggedIn:961,loggedOut:1121}},r=i=>{const s=`logged${e?"In":"Out"}`;return t>=n[i][s]};let o={};return["navigation","search"].forEach(i=>{o[i]=r(i)}),o},shouldChangeHeaderIsVisible:(e,t,n)=>{Object.values(t).filter(o=>o===!0).length||n([{type:"headerIsVisible",value:e}])},handleMenus:({id:e,value:t,menus:n,dispatch:r})=>{if(n[e]===t||e==="account"&&t===!1&&n.navigation===!0)return;const o=Date.now();if(!t&&Ne.handlerCalled[e]&&o-Ne.handlerCalled[e]<500)return;Ne.handlerCalled[e]=o;let i=[{type:`menus.${e}`,value:t}];t===!0&&Object.keys(n).forEach(s=>{s===e||n[s]===!1||i.push({type:`menus.${s}`,value:!1})}),r(i)},findFirstChild:(e,t,n=!1)=>{if(!e||!e[0])return!1;for(let r=0;r<=e.length;r++){if(!e[r])continue;if(e[r][t]&&(!n||e[r][t].includes(n)))return e[r];if(!t.includes("."))continue;const o=pg(e[r],t);if(!(typeof o>"u")&&(!n||o[t]&&o[t].includes(n)||o.value&&o.value.includes(n)||o.toString().includes(n)))return e[r]}return e[0].children?Ne.findFirstChild(e[0].children,t,n):!1},autoFocus:({menu:e,navigationRef:t,isDesktopVersion:n,focusElements:r,dispatch:o})=>{if(!t.current||!t.current.children)return;const i=n?"desktop":"default";if(r[e][i]){r[e][i].focus();return}let s,a;switch(e){case"navigation":if(n){const l=Ne.findFirstChild(t.current.children,"attributes.aria-controls","navigation");s=Ne.findFirstChild(l.children,"href")}else s=Ne.findFirstChild(t.current.children,"href");s||(s=t.current);break;case"account":if(a=Ne.findFirstChild(t.current.children,"className","account"),!a||!a.children)return;s=Ne.findFirstChild(a.children,"href");break;default:return}s&&(o([{type:`focusElements.${e}.${i}`,value:s}]),s.focus())},events:{onClick:(e,{id:t,callback:n,isOpen:r})=>{e.target&&e.target.attributes&&e.target.attributes.href||(e.preventDefault(),e.stopPropagation(),clearTimeout(Ne.timeouts[t]),n(t,!r))},onFocus:({id:e})=>{clearTimeout(Ne.timeouts[e])},onMouseEnter:({id:e,callback:t})=>{clearTimeout(Ne.timeouts[e]),t(e,!0)},onBlur:({id:e,callback:t})=>{Ne.timeouts[e]=setTimeout(()=>{t(e,!1)},250)}}},Vi={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"}}}},Yo=({id:e,isLoggedIn:t=!1,isDesktopVersion:n=!1,menus:r={},callback:o=()=>{},doTrack:i=null})=>{const s=Re(),a=pg(Vi,e);if(!a||a.onlyShow&&(a.onlyShow==="logged-in"&&!t||a.onlyShow==="logged-out"&&t))return null;const l="doTrack"in a,f=i===null?l?a.doTrack:!0:i,c=e.includes("buttons.");let h=`header_${e.replaceAll(".","_")}`;a.hasVariantText&&(h+=`_logged${t?"In":"Out"}`);let d=!1;if(a.href){let _=a.gtmType||`${e}-click`;if(_.includes(".")){const b=_.split("."),A=b[b.length-2];_=`${A==="topics"?`${A}-`:""}${b[b.length-1]}`}d={href:a.href,role:"menuitem"},f&&(d={...d,className:"gtm-trackable","data-gtm-event-type":_,"data-gtm-event-context":"HeaderButtons"}),c&&(d={...d,variant:"secondary",size:{mobile:"small",881:"large"},...a.props||{}})}const u=a.order&&a.order[0]&&a[a.order[0]],p=u&&a[a.order[0]].order,m=d&&typeof window<"u"&&window.location&&window.location.pathname===a.href;let E={},T={};if(u){const _=a.menuId||e,b={onClick:A=>Ne.events.onClick(A,{id:_,callback:o,isOpen:r[_]}),onFocus:()=>Ne.events.onFocus({id:_}),onBlur:()=>Ne.events.onBlur({id:_,callback:o}),onMouseLeave:()=>Ne.events.onBlur({id:_,callback:o}),onMouseEnter:()=>Ne.events.onMouseEnter({id:_,callback:o})};n&&(p&&(E={...b,onKeyPress:A=>{A.key==="Enter"&&Ne.events.onClick(A,{id:_,callback:o,isOpen:r[_]})},tabIndex:"0","aria-haspopup":!0,"aria-expanded":r[_],"aria-controls":_}),T={hidden:_ in r?!r[_]:!0}),p||(T={...T,...b})}return O.jsxs("li",{className:se({[a.className]:a.className,"has-submenu":u,parent:p,active:m}),role:"none",...E,children:[d?$.createElement(c?De:"a",d,s.formatMessage({id:h})):s.formatMessage({id:h}),a.order&&O.jsx("ul",{...T,children:a.order.map(_=>{if(!a[_])return null;const b={isLoggedIn:t,isDesktopVersion:n,menus:r,callback:o,doTrack:l?f:null};return a[_].order?O.jsxs("li",{className:se({[a[_].className]:a[_].className}),children:[s.formatMessage({id:`${h}_${_}`}),O.jsx("ul",{children:a[_].order.map(A=>O.jsx(Yo,{id:`${e}.${_}.${A}`,...b},A))})]},_):O.jsx(Yo,{id:`${e}.${_}`,...b},_)})})]},e)};const _O={height:67,height_desktop:83},au=()=>{const e=Re(),t=$.useContext(Bn),n=Xi(!0,!0),r=t&&typeof t.id=="string",o=$.useMemo(()=>Ne.getIsDesktopVersion(r,n),[r,n]),[i,s]=$.useReducer(qb,{headerIsVisible:!0,menus:{navigation:!1,search:!1,account:!1},focusElements:{navigation:{desktop:!1,default:!1},account:{desktop:!1,default:!1}}}),{headerIsVisible:a,menus:l,focusElements:f}=i;Cp({scrollPosition:_O[`height${o.navigation?"_desktop":""}`],callbacks:{scrollUp:()=>{!o&&l.navigation||Ne.shouldChangeHeaderIsVisible(!0,l,s)},scrollDown:()=>{!o&&l.navigation||Ne.shouldChangeHeaderIsVisible(!1,l,s)}}});const c=(d,u)=>{Ne.handleMenus({id:d,value:u,menus:l,dispatch:s})},h=$.useRef(null);return Hi(()=>{l.navigation&&Ne.autoFocus({menu:"navigation",navigationRef:h,isDesktopVersion:o.navigation,focusElements:f,dispatch:s})},[l.navigation]),Hi(()=>{l.account&&Ne.autoFocus({menu:"account",navigationRef:h,isDesktopVersion:o.navigation,focusElements:f,dispatch:s})},[l.account]),t&&t.isLoading?null:O.jsxs(O.Fragment,{children:[O.jsxs("nav",{id:"header",className:se({"logged-in":r,"logged-out":!r,visible:a}),children:[O.jsx(ot,{element:"a",href:"#content-of-page",children:e.formatMessage({id:"header_skip"})}),O.jsx(eu,{}),!o.navigation&&O.jsx("button",{className:"menu-button gtm-trackable",onClick:d=>{d.preventDefault(),d.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:O.jsx(ot,{children:e.formatMessage({id:`header_menu_${l.navigation?"hide":"show"}`})})}),O.jsx("ul",{ref:h,id:"navigation",hidden:o.navigation||l.account?!1:!l.navigation,role:"menu","data-showing":!o.navigation&&l.account?"account":"default",children:Vi.order.map(d=>O.jsx(Yo,{id:d,isLoggedIn:r,isDesktopVersion:o.navigation,menus:{navigation:l.navigation,account:l.account},callback:c},d))}),!o.search&&O.jsx("button",{className:"search toggle-search-button",onClick:d=>{d.preventDefault(),d.stopPropagation(),c("search",!l.search)},"aria-haspopup":"true","aria-expanded":l.search,"aria-controls":"search-form",children:O.jsx(ot,{children:e.formatMessage({id:`header_search_${l.search?"hide":"show"}`})})}),O.jsx(og,{id:"global-search",handleToggle:{searchIsOpen:l.search,isDesktopVersion:o.search},gtmContext:"search-bar-header",gtmEvent:"form-submission"}),r?O.jsxs("button",{className:"account-button",onClick:d=>Ne.events.onClick(d,{id:"account",callback:c,isOpen:l.account}),onMouseEnter:()=>Ne.events.onMouseEnter({id:"account",callback:c}),onMouseLeave:()=>Ne.events.onBlur({id:"account",callback:c}),"aria-haspopup":"true","aria-expanded":l.account,"aria-controls":"navigation",children:[O.jsx(ot,{children:e.formatMessage({id:`header_account_${l.account?"hide":"show"}`})}),O.jsx(ia,{name:t&&t.name||"",src:t&&t.image&&t.image.thumbnail||""})]}):O.jsx("ul",{className:"sign-in-buttons",children:Vi.buttons.order.map(d=>O.jsx(Yo,{id:`buttons.${d}`},d))})]}),O.jsx("hr",{id:"content-of-page"}),O.jsx("div",{className:se("overlay",{open:l.navigation||l.account||!o.search&&l.search})})]})},EO=$.createContext(null),Gs={didCatch:!1,error:null};class bO extends $.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Gs}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];(n=(r=this.props).onReset)===null||n===void 0||n.call(r,{args:i,reason:"imperative-api"}),this.setState(Gs)}}componentDidCatch(t,n){var r,o;(r=(o=this.props).onError)===null||r===void 0||r.call(o,t,n)}componentDidUpdate(t,n){const{didCatch:r}=this.state,{resetKeys:o}=this.props;if(r&&n.error!==null&&wO(t.resetKeys,o)){var i,s;(i=(s=this.props).onReset)===null||i===void 0||i.call(s,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(Gs)}}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let a=t;if(i){const l={error:s,resetErrorBoundary:this.resetErrorBoundary};if($.isValidElement(o))a=o;else if(typeof n=="function")a=n(l);else if(r)a=$.createElement(r,l);else throw s}return $.createElement(EO.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function wO(){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((n,r)=>!Object.is(n,t[r]))}const SO=()=>{const e=Re();return O.jsxs(O.Fragment,{children:[O.jsx(au,{}),O.jsx("div",{className:"content",children:O.jsx(Dm,{variant:"error",text:e.formatMessage({id:"pageLayout_error"})})}),O.jsx(tu,{})]})},TO=({children:e,reportError:t,showFooter:n=!0,background:r="default",className:o="",locale:i="en"})=>{const s=Dp(e,{locale:i});return O.jsx(bO,{onError:t,fallback:O.jsx(SO,{}),children:O.jsx($.Suspense,{fallback:O.jsx(Gm,{layout:"overview-page"}),children:O.jsx("div",{id:"wrapper",className:se(o,{[r]:r!=="default"}),children:O.jsxs(Fg,{children:[O.jsx(au,{}),O.jsx("div",{className:"content",children:s}),n&&O.jsx(tu,{}),O.jsx(tg,{})]})})})})},xd={default:"tags_",headerTopics:"header_topics_topics_"},Ws={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"},xO={getTagDetails:e=>{if(e.includes("topic_")){if(e=Ws.topic[e.replace("topic_","")],e){const t=Vi.topics.topics[e].href;return t?{id:e,href:t,text:`${xd.headerTopics}${e}`}:null}return null}return Ws[e]?(e=Ws[e],{id:e,text:`${xd.default}${e}`}):null}};const OO=({tags:e=[],color:t="default",forceOneLine:n=!1,canHaveLinks:r=!0,className:o="",gtmType:i="tag-click",gtmContext:s="tags"})=>{const a=Re();if(!e||e.length<1)return null;const l=[];return e.forEach(f=>{if(!f)return;const c=xO.getTagDetails(f);c&&l.push(c)}),l.length<1?null:O.jsx("ul",{className:se("tags text-small",t,o,{"one-line":n}),children:l.map(f=>{const c=a.formatMessage({id:f.text});return O.jsx("li",{children:f.href&&r?O.jsx("a",{href:f.href,className:"gtm-trackable","data-gtm-event-type":i,"data-gtm-event-context":s,children:c}):c},f.id)})})},Od=e=>{const t={};return Object.keys(e).forEach(n=>{t[`${n}Slug`]=e[n]}),t};const tr="discussion_",AO=({element:e="div",content:t,isLoading:n=!1,originalAuthorId:r,functions:{content:{createContent:o,deleteContent:i,updateContent:s}={createContent:()=>{},deleteContent:()=>{},updateContent:()=>{}},likes:{createLike:a,deleteLike:l}={createLike:()=>{},deleteLike:()=>{}},comments:{openComments:f}={openComments:()=>{}}},link:c,className:h,gtmContext:d="DiscussionAnswer",locale:u="en",children:p})=>{const m=Re(),E=$.useContext(Bn),T=$.useContext(Zc),[_,b]=$.useState({body:t&&t.body||"",isEditing:!1,didEdit:t&&t.isEdited||!1}),[A,w]=$.useState(!1),[P,F]=$.useState("");if($.useEffect(()=>{b({..._,body:t&&t.body||"",didEdit:t&&t.isEdited||!1})},[t.isEdited]),n||!t||t.type==="answer"&&(!t.slugs||!t.slugs.question))return O.jsx(Er,{className:"discussion-card discussion-post"});const{author:B,createdAt:W,likes:G=0,userLiked:V,comments:H=0}=t,Y=E&&E.id&&typeof B!="string"&&B.id&&B.id===E.id||!1,oe=!Y,K=async ae=>{ae||(ae=""),F("");try{if(!dx(ae,_.body)){const Q=t.type==="question"?{title:ae}:{body:ae};await s(Od(t.slugs),Q)}b({body:ae,isEditing:!1,didEdit:!0})}catch{F(`${tr}form_error`)}},k=()=>{T&&T.updateConversation&&T.updateConversation({showThread:!0,showForm:!0}),setTimeout(()=>{const Q=`reply-form-${(t.type==="answer"?t.slug:t.slugs.answer||"").toLowerCase().slice(-15)}`,Z=document.getElementById(Q),ce=document.getElementById(`${Q}-input`);ce&&ce.focus(),Z&&Z.scrollIntoView({behavior:"smooth"})},0)},z=()=>{try{i(Od(t.slugs))}catch{F("delete-error")}},J=[{text:m.formatMessage({id:`${tr}moreMenu_report`}),href:`mailto:community@apolitical.co?subject=${encodeURI(m.formatMessage({id:`${tr}report_subject`}))}&body=${encodeURI(m.formatMessage({id:`${tr}report_body`},{contentType:t.type||"",contentSlug:t.slug||"",contentUrl:`${window.origin}${typeof process<"u"&&process.env.PUBLIC_URL||""}/${t.slugs.question||""}`}))}`,icon:"flag"}];return Y&&J.push({text:m.formatMessage({id:`${tr}moreMenu_edit`}),onClick:()=>b({..._,isEditing:!0}),icon:"pencil-paper",className:"gtm-trackable","data-gtm-event-context":d,"data-gtm-event-type":`edit-${t.type}-click`},{text:m.formatMessage({id:`${tr}moreMenu_delete`}),onClick:ae=>{ae.preventDefault(),ae.stopPropagation(),w(!0)},icon:"trash",className:"gtm-trackable","data-gtm-event-context":d,"data-gtm-event-type":`delete-${t.type}-click`,...Zm(`delete-${t.slug}-modal`,A)}),$.createElement(e,{className:se("discussion-post",h),"data-testid":`discussion-${t.type}-thread`,children:O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:se("discussion-card",t.type,{editing:_.isEditing}),children:[!_.isEditing&&O.jsx(Jc,{member:B,additionalContent:{createdAt:W,didEdit:_.didEdit},className:typeof B!="string"&&B.id===r?"highlighted":"",gtmContext:d,gtmType:"profile-click"}),_.isEditing?O.jsx(Km,{content:{type:t.type,slugs:t.slugs},meta:{isLoading:n,isInWrapper:!0,isEditing:{text:_.body}},maxLength:t.type==="question"?250:5e4,forceShow:{error:P!==""&&P!=="delete-error"?m.formatMessage({id:P},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},functions:{create:o,handleSaveEdit:K,handleCancel:()=>{F(""),b({..._,isEditing:!1})}},gtmContext:`${d}Form`}):c?O.jsx("a",{href:c,className:"gtm-trackable","data-gtm-event-context":d,"data-gtm-event-type":"title-click",children:O.jsx(bc,{options:{overrides:{a:null}},children:_.body})}):O.jsx(bc,{options:{wrapper:t.type==="question"?"h1":$.Fragment,forceWrapper:t.type==="question",forceInline:t.type==="question",forceBlock:t.type!=="question"},children:_.body}),!_.isEditing&&O.jsxs("ul",{className:se("actions text-medium",t.type),"data-testid":`${t.type}-actions`,children:[O.jsx(Qm,{element:"li",likes:G,isShort:!1,userLiked:V,content:{type:t.type,slugs:t.slugs},canLike:oe,createLike:a,deleteLike:l,locale:u}),t.type==="question"&&O.jsxs("li",{className:"action-button",children:[O.jsx(De,{variant:"tertiary",size:"medium",styling:{muted:!0},icon:{icon:"speech-bubble_square_thick"},href:c||!1,onClick:c||typeof f!="function"?!1:f,className:"gtm-trackable","data-gtm-event-context":d,"data-gtm-event-type":`answer-${t.type}-click`,screenreaderText:m.formatMessage({id:`${tr}comments_screenReader`},{count:H})}),O.jsx("span",{children:m.formatMessage({id:`${tr}comments`},{count:H})})]}),(t.type==="answer"||t.type==="reply")&&O.jsx("li",{children:O.jsx(De,{variant:"tertiary",size:"medium",styling:{muted:!0},onClick:k,children:m.formatMessage({id:`${tr}reply`})})}),O.jsx(eg,{element:"li",id:`more-${t.slug}`,options:J})]})]}),p,O.jsx(Jm,{id:`delete-${t.slug}-modal`,isOpen:A,functions:{onOpen:()=>{},onClose:()=>w(!1)},forceShow:{error:P==="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:()=>w(!1),children:m.formatMessage({id:"discussion_delete_cancel"})},{variant:"primary",className:"destructive",onClick:z,children:m.formatMessage({id:"discussion_delete_delete"})}],gtmContext:`${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,children:O.jsx(vr,{id:"discussion_delete_text",values:{p:ae=>O.jsx("p",{children:ae}),action:m.formatMessage({id:`discussion_action_${t.type}`})}})})]})})};const Vs="discussion_responses_",CO=({type:e="answer",responses:t=0})=>{const n=Re();return O.jsxs("div",{className:"responses-heading",children:[O.jsx("h3",{children:n.formatMessage({id:`${Vs}title`},{action:n.formatMessage({id:`${Vs}${e}`}),count:t})}),t===0&&O.jsx("p",{children:rr(n.formatMessage,`${Vs}empty`,e,e)})]})};const RO=({isOpen:e=!1,count:t=0,children:n})=>{const r=Re(),o=$.useRef(null),[i,s]=$.useState(e),[a,l]=$.useState("closed");$.useEffect(()=>{const d=o.current;if(d)return d.addEventListener("transitionend",f),()=>{d.removeEventListener("transitionend",f)}},[]),Hi(()=>{a==="closed"&&!i||l(["opening","open"].includes(a)?"ready-to-close":"opening")},[i]),$.useEffect(()=>{a==="ready-to-close"&&l("closing")},[a]);const f=({propertyName:d})=>{d==="max-height"&&l(u=>u==="opening"?"open":u==="closing"?"closed":u)},c=["opening","open"].includes(a),h=Dp(n,{element:"li"});return O.jsxs("div",{className:"thread-wrapper",children:[O.jsx(De,{variant:"secondary",size:"small",styling:{muted:!0},icon:{icon:`arrow_corner-down_${c?"left":"right"}`},onClick:()=>{s(!i)},children:r.formatMessage({id:`discussion_thread_${c?"hide":"show"}`},{count:t})}),O.jsx("ul",{ref:o,className:se("thread",a),hidden:!i,children:h})]})};exports.ASSETS_BUCKET=Go;exports.BannerSection=tw;exports.Button=De;exports.ButtonWrapper=Ji;exports.CollapsibleSection=Yc;exports.Columns=gx;exports.CommunityDetails=WT;exports.Contributors=Vm;exports.ConversationContext=Zc;exports.CookieBanner=tg;exports.DiscussionConversation=zT;exports.DiscussionForm=Km;exports.DiscussionLikes=Qm;exports.DiscussionPost=AO;exports.DiscussionThread=RO;exports.Divider=qo;exports.DownloadSection=Xb;exports.EmailHelperTextBox=yx;exports.EmptyStateBox=Dm;exports.Filters=hx;exports.Footer=tu;exports.FullWidthSection=qc;exports.Header=au;exports.HelperTextBox=jm;exports.HiddenFromScreenReaders=Tc;exports.HideShowTextBox=RT;exports.HighlightedTextBox=or;exports.IntlProvider=qT;exports.JoinButton=zm;exports.Link=$p;exports.LoadMore=px;exports.LoadingBlock=$T;exports.LoadingPlaceholder=Er;exports.LoadingState=Gm;exports.Logo=eu;exports.LogoSection=Jb;exports.MarkdownText=bc;exports.MarketingBox=rw;exports.Member=Jc;exports.Modal=Xm;exports.MoreMenu=eg;exports.NUMBER_OF_USERS=xS;exports.Overlay=Jm;exports.PageLayout=TO;exports.PasswordRules=Ex;exports.Pill=FT;exports.ProfilePicture=ia;exports.ProgressBar=Hm;exports.Rating=bx;exports.ResponsesHeading=CO;exports.ResponsiveImage=jp;exports.SearchForm=og;exports.StatusBanner=Wo;exports.Tags=OO;exports.UserContext=Bn;exports.UserProvider=GT;exports.VisuallyHidden=ot;exports.addAriaProps=Zm;exports.getMember=Xc;exports.headerData=Vi;exports.useEffectAfterMount=Hi;exports.useFeatureFlag=UE;exports.useScreenWidth=Xi;exports.useScrollListener=Cp;
97
+ `,{_:p}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(t.wrapper===null)return m;const E=t.wrapper||(p?"span":"div");let T;if(m.length>1||t.forceWrapper)T=m;else{if(m.length===1)return T=m[0],typeof T=="string"?r("span",{key:"outer"},T):T;T=null}return Oe.createElement(E,{key:"outer"},T)}function i(l){const p=l.match(BS);return p?p.reduce(function(m,E,T){const _=E.indexOf("=");if(_!==-1){const b=function(F){return F.indexOf("-")!==-1&&F.match(QS)===null&&(F=F.replace(tT,function(B,G){return G.toUpperCase()})),F}(E.slice(0,_)).trim(),A=function(F){const B=F[0];return(B==='"'||B==="'")&&F.length>=2&&F[F.length-1]===B?F.slice(1,-1):F}(E.slice(_+1).trim()),w=cd[b]||b,N=m[w]=function(F,B){return F==="style"?B.split(/;\s?/).reduce(function(G,W){const V=W.slice(0,W.indexOf(":"));return G[V.replace(/(-[a-z])/g,H=>H[1].toUpperCase())]=W.slice(V.length+1).trim(),G},{}):F==="href"?wn(B):(B.match(XS)&&(B=B.slice(1,B.length-1)),B==="true"||B!=="false"&&B)}(b,A);typeof N=="string"&&(wc.test(N)||Sc.test(N))&&(m[w]=Oe.cloneElement(o(N.trim()),{key:T}))}else E!=="style"&&(m[cd[E]||E]=!0);return m},{}):null}const s=[],a={},u={blockQuote:{t:er(Sm),i:ve.HIGH,l:(l,p,m)=>({v:p(l[0].replace(DS,""),m)}),h:(l,p,m)=>r("blockquote",{key:m.k},p(l.v,m))},breakLine:{t:Di($S),i:ve.HIGH,l:Bs,h:(l,p,m)=>r("br",{key:m.k})},breakThematic:{t:er(jS),i:ve.HIGH,l:Bs,h:(l,p,m)=>r("hr",{key:m.k})},codeBlock:{t:er(xm),i:ve.MAX,l:l=>({v:l[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(l,p,m)=>r("pre",{key:m.k},r("code",Kr({},l.O,{className:l.M?`lang-${l.M}`:""}),l.v))},codeFenced:{t:er(Tm),i:ve.MAX,l:l=>({O:i(l[3]||""),v:l[4],M:l[2]||void 0,type:"codeBlock"})},codeInline:{t:mr(HS),i:ve.LOW,l:l=>({v:l[2]}),h:(l,p,m)=>r("code",{key:m.k},l.v)},footnote:{t:er(WS),i:ve.MAX,l:l=>(s.push({I:l[2],j:l[1]}),{}),h:Fs},footnoteReference:{t:pr(VS),i:ve.HIGH,l:l=>({v:l[1],B:`#${t.slugify(l[1])}`}),h:(l,p,m)=>r("a",{key:m.k,href:wn(l.B)},r("sup",{key:m.k},l.v))},gfmTask:{t:pr(YS),i:ve.HIGH,l:l=>({R:l[1].toLowerCase()==="x"}),h:(l,p,m)=>r("input",{checked:l.R,key:m.k,readOnly:!0,type:"checkbox"})},heading:{t:er(t.enforceAtxHeadings?Am:Om),i:ve.HIGH,l:(l,p,m)=>({v:ko(p,l[2],m),T:t.slugify(l[2]),C:l[1].length}),h:(l,p,m)=>r(`h${l.C}`,{id:l.T,key:m.k},p(l.v,m))},headingSetext:{t:er(Cm),i:ve.MAX,l:(l,p,m)=>({v:ko(p,l[1],m),C:l[2]==="="?1:2,type:"heading"})},htmlComment:{t:Di(Rm),i:ve.HIGH,l:()=>({}),h:Fs},image:{t:mr(AT),i:ve.HIGH,l:l=>({D:l[1],B:pd(l[2]),F:l[3]}),h:(l,p,m)=>r("img",{key:m.k,alt:l.D||void 0,title:l.F||void 0,src:wn(l.B)})},link:{t:pr(OT),i:ve.LOW,l:(l,p,m)=>({v:LT(p,l[1],m),B:pd(l[2]),F:l[3]}),h:(l,p,m)=>r("a",{key:m.k,href:wn(l.B),title:l.F},p(l.v,m))},linkAngleBraceStyleDetector:{t:pr(eT),i:ve.MAX,l:l=>({v:[{v:l[1],type:"text"}],B:l[1],type:"link"})},linkBareUrlDetector:{t:(l,p)=>p.N?null:pr(JS)(l,p),i:ve.MAX,l:l=>({v:[{v:l[1],type:"text"}],B:l[1],F:void 0,type:"link"})},linkMailtoDetector:{t:pr(ZS),i:ve.MAX,l(l){let p=l[1],m=l[1];return FS.test(m)||(m="mailto:"+m),{v:[{v:p.replace("mailto:",""),type:"text"}],B:m,type:"link"}}},orderedList:fd(r,1),unorderedList:fd(r,2),newlineCoalescer:{t:er(qS),i:ve.LOW,l:Bs,h:()=>`
98
+ `},paragraph:{t:IT,i:ve.LOW,l:ks,h:(l,p,m)=>r("p",{key:m.k},p(l.v,m))},ref:{t:pr(rT),i:ve.MAX,l:l=>(a[l[1]]={B:l[2],F:l[4]},{}),h:Fs},refImage:{t:mr(nT),i:ve.MAX,l:l=>({D:l[1]||void 0,P:l[2]}),h:(l,p,m)=>r("img",{key:m.k,alt:l.D,src:wn(a[l.P].B),title:a[l.P].F})},refLink:{t:pr(iT),i:ve.MAX,l:(l,p,m)=>({v:p(l[1],m),Z:p(l[0].replace(oT,"\\$1"),m),P:l[2]}),h:(l,p,m)=>a[l.P]?r("a",{key:m.k,href:wn(a[l.P].B),title:a[l.P].F},p(l.v,m)):r("span",{key:m.k},p(l.Z,m))},table:{t:er(Nm),i:ve.HIGH,l:PT,h:(l,p,m)=>r("table",{key:m.k},r("thead",null,r("tr",null,l.L.map(function(E,T){return r("th",{key:T,style:hd(l,T)},p(E,m))}))),r("tbody",null,l.A.map(function(E,T){return r("tr",{key:T},E.map(function(_,b){return r("td",{key:b,style:hd(l,b)},p(_,m))}))})))},tableSeparator:{t:function(l,p){return p.$?(p._=!0,cT.exec(l)):null},i:ve.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Di(_T),i:ve.MIN,l:l=>({v:l[0].replace(KS,(p,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:p)}),h:l=>l.v},textBolded:{t:mr(pT),i:ve.MED,l:(l,p,m)=>({v:p(l[2],m)}),h:(l,p,m)=>r("strong",{key:m.k},p(l.v,m))},textEmphasized:{t:mr(mT),i:ve.LOW,l:(l,p,m)=>({v:p(l[2],m)}),h:(l,p,m)=>r("em",{key:m.k},p(l.v,m))},textEscaped:{t:mr(vT),i:ve.HIGH,l:l=>({v:l[1],type:"text"})},textMarked:{t:mr(gT),i:ve.LOW,l:ks,h:(l,p,m)=>r("mark",{key:m.k},p(l.v,m))},textStrikethroughed:{t:mr(yT),i:ve.LOW,l:ks,h:(l,p,m)=>r("del",{key:m.k},p(l.v,m))}};t.disableParsingRawHTML!==!0&&(u.htmlBlock={t:Di(wc),i:ve.HIGH,l(l,p,m){const[,E]=l[3].match(bT),T=new RegExp(`^${E}`,"gm"),_=l[3].replace(T,""),b=(A=_,CT.some(B=>B.test(A))?MT:ko);var A;const w=l[1].toLowerCase(),N=kS.indexOf(w)!==-1;m.N=m.N||w==="a";const F=N?l[3]:b(p,_,m);return m.N=!1,{O:i(l[2]),v:F,G:N,H:N?w:l[1]}},h:(l,p,m)=>r(l.H,Kr({key:m.k},l.O),l.G?l.v:p(l.v,m))},u.htmlSelfClosing={t:Di(Sc),i:ve.HIGH,l:l=>({O:i(l[2]||""),H:l[1]}),h:(l,p,m)=>r(l.H,Kr({},l.O,{key:m.k}))});const f=function(l){let p=Object.keys(l);function m(E,T){let _=[],b="";for(;E;){let A=0;for(;A<p.length;){const w=p[A],N=l[w],F=N.t(E,T,b);if(F){const B=F[0];E=E.substring(B.length);const G=N.l(F,m,T);G.type==null&&(G.type=w),_.push(G),b=B;break}A++}}return _}return p.sort(function(E,T){let _=l[E].i,b=l[T].i;return _!==b?_-b:E<T?-1:1}),function(E,T){return m(function(_){return _.replace(GS,`
99
+ `).replace(zS,"").replace(sT," ")}(E),T)}}(u),c=(h=function(l){return function(p,m,E){return l[p.type].h(p,m,E)}}(u),function l(p,m={}){if(Array.isArray(p)){const E=m.k,T=[];let _=!1;for(let b=0;b<p.length;b++){m.k=b;const A=l(p[b],m),w=typeof A=="string";w&&_?T[T.length-1]+=A:A!==null&&T.push(A),_=w}return m.k=E,T}return h(p,l,m)});var h;const d=o(e);return s.length?r("div",null,d,r("footer",{key:"footer"},s.map(function(l){return r("div",{id:t.slugify(l.j),key:l.j},l.j,c(f(l.I,{_:!0})))}))):d}(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"})(ve||(ve={}));const ia=e=>{let{children:t,options:n}=e,r=function(o,i){if(o==null)return{};var s,a,u={},f=Object.keys(o);for(a=0;a<f.length;a++)i.indexOf(s=f[a])>=0||(u[s]=o[s]);return u}(e,MS);return Oe.cloneElement(BT(t,n),r)};const or=({variant:e="primary",className:t="",children:n,...r})=>O.jsx("div",{className:ne("highlighted-text-box",e,t),...r,children:n});const Hm=({variant:e="empty",text:t=!1,button:n=!1,className:r=""})=>{let o=n&&!!Object.keys(n).length;const i=typeof n=="object"&&"breakpoints"in n,s=Ji(i);if(i&&typeof n=="object"&&typeof s=="number"){const h=Object.assign({},n.breakpoints),d=$p(Object.keys(h));o=jp(s,d,h)}const{breakpoints:a,text:u="",component:f,...c}=n;return O.jsx(or,{variant:"subtle",className:ne("empty-state-box",e,r),children:O.jsxs(O.Fragment,{children:[t&&O.jsx(ia,{options:{forceBlock:!0},children:t}),o&&typeof n=="object"&&(f||O.jsx(De,{...c,variant:n.variant?n.variant:"secondary",children:u}))]})})};const Tc=({children:e,...t})=>O.jsx("p",{...t,children:e}),qm={q:Tc,blockquote:Tc};for(let e=1;e<=6;e++)qm[`h${e}`]={component:Tc,props:{className:"title"}};const Gm=({type:e="default",className:t="",heading:n=!1,children:r})=>O.jsxs("div",{className:ne("helper-text-box text-small",e,t),children:[n&&O.jsx("p",{className:"title",children:n}),typeof r=="string"?O.jsx(ia,{options:{wrapper:D.Fragment,forceBlock:!0,overrides:qm},children:r}):O.jsx("p",{children:r})]});const FT=({className:e="",show:t=!1,hide:n=!1,text:r,children:o})=>{const i=Ee(),s=D.useRef(null),[a,u]=D.useState(""),[f,c]=D.useState("closed");D.useEffect(()=>{const l=s.current;if(l)return l.addEventListener("transitionend",h),()=>{l.removeEventListener("transitionend",h)}},[]),D.useEffect(()=>{if(!r||typeof r!="string")return;const l=r.split(`
100
+ `);u(l.length<3?`${r.substring(0,400)}...`:l.slice(0,3).join(`
101
+ `))},[r]),D.useEffect(()=>{f==="ready-to-close"&&c("closing")},[f]);const h=({propertyName:l})=>{l==="max-height"&&c(p=>p==="opening"?"open":p==="closing"?"closed":p)};if(!r)return null;const d=["opening","open"].includes(f);return O.jsxs(or,{variant:"subtle",className:ne("hide-show-text-box",e),children:[O.jsxs("div",{ref:s,className:ne("content",f),children:[O.jsx(ia,{options:{forceBlock:!0},children:f==="closed"?a:r}),f!=="closed"&&o]}),O.jsx("p",{className:"cta",children:O.jsx(De,{variant:"tertiary",icon:{icon:"navigation_arrow",position:"left",animate:!0},styling:{muted:!0},className:ne({"rotate-180":d}),onClick:()=>{c(d?"ready-to-close":"opening")},children:d?n||i.formatMessage({id:"hideShowTextBox_hide"}):t||i.formatMessage({id:"hideShowTextBox_show"})})})]})},UT=()=>D.Fragment,DT=({children:e})=>O.jsx(or,{variant:"secondary",children:e}),$T=["span","strong","h1","h2","h3","h4","h5","h6","p"],jT=({children:e})=>{const t=Ee();if(!e)return null;let n=t.formatMessage({id:"markdown_collapsibleSection_summary"});const r=[];for(const i of D.Children.toArray(e))if(!(!i||typeof i=="string"||typeof i=="number"))if(D.isValidElement(i)&&i.type==="summary"){if(i.props&&i.props.children){for(const s of D.Children.toArray(i.props.children))if(!(!s||typeof s=="string"||typeof s=="number")&&D.isValidElement(s)){const a=s.type;if($T.includes(a)){for(n=s.props.children;typeof n!="string"&&(Array.isArray(n)&&n[0].props&&n[0].props.children&&n[0].props.children[0]);)n=n[0].props.children[0];break}}}}else r.push(i);const o=n?n.toString():"";return O.jsx(Zc,{label:o,className:["Sources","Resources"].includes(o)?"discrete-links":"",children:r.map(i=>i)})},HT=({children:e,...t})=>{if(t.class)switch(t.class){case"casestudy":return O.jsx(or,{variant:"secondary",children:e});case"general-textbox":case"highlight-box":return O.jsx(or,{variant:"primary",children:e});case"pink-textbox":return O.jsx(or,{variant:"tertiary",children:e});default:return O.jsx("div",{...t,children:e})}return O.jsx("div",{...t,children:e})},qT=e=>{const t=Ee(),n=Date.now().toString();let r="default";const o=e.src;return o.includes("youtube")||o.includes("vimeo")?r="video":o.includes("riddle")||o.includes("sli.do")?r="poll":o.includes("padlet")&&(r="padlet"),O.jsxs(O.Fragment,{children:[O.jsx(Je,{children:O.jsx("a",{href:`#content-after-iframe-${n}`,children:t.formatMessage({id:`markdown_skip${r==="default"?"":`_${r}`}`})})}),O.jsx("iframe",{...e,title:t.formatMessage({id:`markdown_iframe${r==="default"?"":`_${r}`}`})}),O.jsx("span",{id:`content-after-iframe-${n}`,tabIndex:-1})]})},md=e=>{let t="";return e&&typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"&&"type"in e&&(t=e.type),t},GT=({children:e,...t})=>{let n={...t};t.href&&(t.href.includes("http:")||t.href.includes("https:"))&&!t.target&&(n.target="_blank");let r=e,o=!1;for(const i of D.Children.toArray(e))if(!(!i||typeof i=="string"||typeof i=="number")&&D.isValidElement(i)){const s=i.type;if(["button","center","span","strong"].includes(s)&&i.props&&i.props.children&&i.props.children[0])for((s==="button"||md(i.props.children[0])==="button")&&(o=!0),r=i.props.children[0];r&&typeof r!="string"&&!(typeof r=="boolean"||typeof r=="number"||!D.isValidElement(r));)if(r.props&&r.props.children&&r.props.children[0])r=r.props.children[0],r&&md(r)==="button"&&(o=!0);else break}return o?(n={...n,className:"button primary medium"},O.jsx("p",{className:"center",children:O.jsx(De,{variant:"primary",size:"medium",...n,children:r})})):O.jsx("a",{...n,children:r})};const xc=({className:e="",options:t={},children:n})=>{n=n.replace(/^<br\/?>/,"");const r={wrapper:D.Fragment,forceBlock:!0,overrides:{a:GT,CollapsibleSection:Zc,TextBox:or,CaseStudy:DT,style:UT,details:jT,div:HT,iframe:qT}};return O.jsx("div",{className:ne("markdown-text",e),children:O.jsx(ia,{options:{...r,...t},children:n})})};const Wm=({size:e="medium",variant:t="default",className:n="",children:r})=>O.jsx("span",{className:ne("pill",e,t,n),children:r});const Vo=({element:e="p",children:t=null,className:n="",...r})=>D.createElement(e,{...r,className:ne("status-banner text-small",n),"aria-live":"assertive"},t);const WT=({progress:e=0,text:t=!1,className:n=""})=>{const r=Ee(),o=e>75?100:e>50?75:e>25?50:e>5?25:0,i={"--progress":`${e}%`};return O.jsx("span",{className:ne(`progress-bar section-${o}`,n),style:i,children:O.jsx(Je,{children:t?`${e} ${t}`:r.formatMessage({id:"progressBar"},{number:e})})})},Vm=D.memo(WT);const Ds="loadingBlock_",VT=({progress:e=0,steps:t=!1,className:n=""})=>{const r=Ee();t||(t={0:{text:r.formatMessage({id:`${Ds}loading`})},75:{text:r.formatMessage({id:`${Ds}almostDone`})},100:{text:r.formatMessage({id:`${Ds}complete`})}});let o=null;const i=Object.keys(t);for(let a=0;a<i.length&&!(e<parseInt(i[a]));a++)o=i[a];const s=o&&t[o].icon?{"--icon":`url(${Wo}icons/${t[o].icon}.svg)`}:{};return O.jsxs(or,{className:ne("loading-block",n,{"has-icon":o&&t[o].icon}),variant:"subtle",style:s,children:[o&&O.jsx("span",{className:"step",children:t[o].text}),O.jsx(Vm,{progress:e})]})},zT=D.memo(VT);const Er=({element:e="div",className:t="",...n})=>O.jsx(Cc,{element:e,className:ne("loading-placeholder",t),...n});const Oc={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"]},zm=(e,t)=>e in Oc?O.jsx("div",{className:e,children:Oc[e].map((n,r)=>zm(n,r))},t):O.jsx(Er,{className:e},t),Ym=({layout:e="overview-page"})=>O.jsx("div",{className:ne("loading-state",e),children:Oc[e].map((t,n)=>zm(t,n))}),Km=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):""},Co=["#5AB6A3","#A2D7AF","#806056","#3962B3"],YT=e=>{const t=Math.ceil(26/Co.length),n=Km(e).toLowerCase();if(n==="")return Co[0];const r=n.charCodeAt(0)-96;for(let o=0;o<Co.length;o++)if(r<=t*(o+1))return Co[o]};const gd=256,oa=({className:e="",src:t="",name:n,alt:r,width:o=gd,height:i=gd,...s})=>{const[a,u]=D.useState(!1),f=D.useRef(null);return D.useEffect(()=>{const c=f.current;if(!c)return;const h=c.getContext("2d");if(!h)return;const d=o,l=i;typeof window<"u"&&window.devicePixelRatio&&(c.width=d*window.devicePixelRatio,c.height=l*window.devicePixelRatio,h.scale(window.devicePixelRatio,window.devicePixelRatio)),h.fillStyle=YT(n),h.fillRect(0,0,d,l),h.font=`${d/3}px Arial`,h.textAlign="center",h.fillStyle="white",h.fillText(Km(n),d/2,l/1.6)},[n]),O.jsxs("figure",{className:ne("profile-picture",e,{error:a}),...s,children:[t!==""&&!a&&O.jsx("img",{src:t,alt:r||n,onError:()=>{u(!0)},width:o,height:i}),(t===""||a)&&O.jsx("canvas",{ref:f})]})},ru=e=>e==="apolitical"?{image:`${Wo}logos/member_apolitical.svg`}:e==="community"||typeof e=="object"&&!e.name?{image:`${Wo}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},KT=({role:e="",organisation:t="",country:n="",maximumCharacters:r=80})=>{const o=e!=="",i=t!=="",s=n!=="";if(!o&&!i&&!s)return"";const a=`${e}${o&&i?` — ${t}`:t}`;let u=`${a}${(o||i)&&s?`, ${n}`:n}`;return u.length>r&&(u=a),u.length>r&&(u=wm(u,r)),u};const aa=({element:e="div",member:t="community",additionalContent:n=!1,gtmContext:r="member",gtmType:o="member-click",className:i=""})=>{const s=Ee(),a=ru(t);a.name||(a.name=s.formatMessage({id:`member_${typeof t=="string"?t:"community"}`}));const{name:u,url:f,image:c}=a,h=KT(a),d=n&&n.createdAt?Xb(n.createdAt):!1,l=n&&n.createdAt?Qb(n.createdAt):"";return D.createElement(e,{className:ne("member text-medium",i),children:O.jsxs(zc,{href:f,gtmType:o,gtmContext:r,onClick:p=>{p==null||p.stopPropagation()},children:[O.jsx(oa,{name:u,src:c}),O.jsxs("p",{className:"details",children:[O.jsx("strong",{children:u}),n&&O.jsxs("span",{className:"additional-content",children:[n.createdAt&&d&&O.jsx("span",{className:"date",title:l,"aria-label":l,children:s.formatMessage({id:`dates_${d.path}`},{number:d.number})}),n.didEdit&&O.jsx("em",{children:s.formatMessage({id:"discussion_edited"})})]}),h&&O.jsx("small",{children:h})]})]})})};const yd={small:24,medium:48},Qm=({element:e="div",contributors:{total:t,data:n}={total:void 0,data:[]},styling:{showText:r,size:o,showGap:i,showPlaceholders:s}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:a=2,className:u=""})=>{const f=Ee();return!n||n.length===0?null:D.createElement(e,{className:ne("contributors",u,o,{"has-gap":i}),children:O.jsxs(O.Fragment,{children:[O.jsx("ul",{children:n.map((c,h)=>{let d,l="";if(h<a){const{name:p="",image:m=""}=ru(c);if(s)return O.jsx(Er,{element:"li",className:"contributor"},h);d=O.jsx(oa,{name:p,src:m,width:yd[o||"medium"],height:yd[o||"medium"]})}else if(h===a){const p=(t||n.length)-a;d=O.jsxs("small",{className:ne({"large-number":p>99}),children:["+",tw(p,0)]}),l="number-left"}return d?O.jsx("li",{className:ne("contributor",l),children:d},h):null})}),r&&O.jsx("span",{className:"label",children:typeof r=="string"?r:n.length===1?typeof n[0]=="string"?f.formatMessage({id:`member_${n[0]}`}):wm(n[0].name||"",20):null})]})})},QT=({children:e,locale:t,messages:n})=>{const r=t||"en",o={...ew[r],...n||{}};return O.jsx(TS,{locale:r,messages:o,children:e})},Fn=D.createContext(null),XT=({children:e,user:t})=>O.jsx(Fn.Provider,{value:t,children:e});const $s="joinCommunityButton",Xm=({isMember:e=!1,isShort:t=!1,functions:{join:n,leave:r}={join:()=>{},leave:()=>{}}})=>{const o=Ee(),i=D.useContext(Fn),s=i&&typeof i.id=="string",[a,u]=D.useState(e),[f,c]=D.useState(e?"joined":"notJoined");D.useEffect(()=>{f==="joining"?c("joined"):f==="leaving"&&c("notJoined")},[a]);const h={},d={};return a&&f!=="leaving"&&(h["data-hover-text"]=o.formatMessage({id:`${$s}_leave`}),h["aria-label"]=o.formatMessage({id:`${$s}_member_aria`}),d["aria-hidden"]="true"),O.jsx(De,{variant:a?"secondary":"primary",size:"medium",styling:{fullWidth:!0},icon:a&&f!=="leaving"?{icon:"tick",position:"left"}:!1,onClick:async l=>{s&&(l.currentTarget.blur(),a?(c("leaving"),typeof r=="function"&&await r()):(c("joining"),typeof n=="function"&&await n()),u(!a))},className:ne("join-community-button",f,{active:f==="joining"}),disabled:!s,...h,children:O.jsx("span",{className:"text",...d,children:o.formatMessage({id:`${$s}${["joining","leaving"].includes(f)?`_${f}`:a?"_member":t?"_short":""}`})})})};const js="communityDetails_",JT=({isMember:e=!1,slug:t,members:{number:n,data:r}={number:void 0,data:[]},className:o="",...i})=>{const s=Ee(),a=n||(r==null?void 0:r.length)||0;return O.jsxs("div",{className:ne("community-details",o),children:[O.jsx(Go,{}),O.jsxs("div",{className:"member-details",children:[O.jsxs("div",{className:"top",children:[O.jsxs("h3",{children:[s.formatMessage({id:`${js}members`}),O.jsx("span",{className:"count",children:a})]}),O.jsx("p",{className:"text-small",children:O.jsx("a",{href:`/communities/${t}/members`,children:s.formatMessage({id:`${js}viewAll`})})})]}),O.jsx(Qm,{contributors:{total:n,data:r!=null&&r.length?r.reverse():[{},{},{},{},{}]},styling:{size:"medium",showGap:!0,showPlaceholders:a===0},cutoff:5})]}),O.jsx(Xm,{isMember:e,...i}),e&&O.jsx(De,{variant:"primary",icon:{icon:"plus"},styling:{fullWidth:!0},children:s.formatMessage({id:`${js}invite`})})]})};const ZT=({breadcrumbs:e,className:t=""})=>{const n=Ee();return O.jsxs(O.Fragment,{children:[O.jsx(Je,{element:"p",children:n.formatMessage({id:"breadcrumbs_label"})}),O.jsx("ul",{className:ne("breadcrumbs text-small",t),children:e.map(({text:r,href:o,current:i=!1},s)=>O.jsxs("li",{children:[i&&O.jsx(Je,{element:"span",children:n.formatMessage({id:"breadcrumbs_currentPage"})}),O.jsx(zc,{href:i?void 0:o,children:r})]},`${window.btoa(r)}_${s}`))})]})};const ex=({options:e,allOption:t=!1,allowMultiple:n=!0,onChange:r=()=>{},className:o=""})=>{const i=Ee(),s=t?[{id:"all",text:typeof t!="boolean"&&t.text||i.formatMessage({id:"filters_all"})},...e]:e,[a,u]=D.useState(t?["all"]:[]),f=(c,h)=>{let d=[];a.includes(c)?d=a.filter(l=>l!==c):c==="all"?d=["all"]:n?d=[...a.filter(l=>l!=="all"),c]:d=[c],u(l=>(r&&typeof r=="function"&&r({current:d,previous:l}),d)),h&&typeof h=="function"&&h()};return O.jsx("ul",{className:ne("filters",o),children:s.map(({id:c,text:h,disabled:d=!1,callback:l=()=>{}})=>{let p={};return d&&(p={disabled:!0,"aria-label":i.formatMessage({id:"filters_disabled"},{name:h})}),O.jsx("li",{children:O.jsx("button",{className:ne(c,{selected:a.includes(c)}),onClick:m=>{m.preventDefault(),m.stopPropagation(),f(c,l)},...p,children:h})},c)})})};const Hs=bc({locale:"en",messages:Vc}),Jm=({page:e=1,length:t=0,limit:n=10,loadNextPage:r=()=>{},icon:o=!1,messages:i={button:Hs.formatMessage({id:"loadMore_button"}),endOfFeed:Hs.formatMessage({id:"loadMore_endOfFeed"}),error:Hs.formatMessage({id:"loadMore_error"})},className:s="",gtmContext:a="LoadMore"})=>{const[u,f]=D.useState(!1),[c,h]=D.useState(!1);if(t<=0||t<n*e)return null;const d=async l=>{try{await r(l)}catch(p){p instanceof Error&&p.message&&p.message.includes("Cannot read items")?h(!0):f(!0)}};return O.jsxs("footer",{className:ne("load-more",s),children:[u&&O.jsx("p",{className:"error",children:i.error}),c?O.jsx("p",{children:i.endOfFeed}):O.jsx(De,{variant:"secondary",icon:o,onClick:d,"data-gtm-event-context":a,"data-gtm-event-type":"load-more-click",className:"gtm-trackable","data-testid":"load-more-button",children:i.button})]})};let Ro=!1;const Zm=({element:e="div",id:t="more-menu",options:n,className:r=""})=>{const o=Ee(),i=D.useRef(null),[s,a]=D.useState(!1),u=f=>{i.current&&f.target instanceof HTMLElement&&!i.current.contains(f.target)&&a(!1)};return D.useEffect(()=>(document.addEventListener("click",u,!0),()=>{document.removeEventListener("click",u,!0)})),D.createElement(e,{ref:i,className:ne("more-menu text-medium",r),children:O.jsxs(O.Fragment,{children:[O.jsx(De,{variant:"tertiary",size:"medium",icon:{icon:"ellipsis"},onClick:()=>a(!s),"aria-haspopup":"true","aria-expanded":s,"aria-controls":t,screenreaderText:o.formatMessage({id:"moreMenu"})}),O.jsx("ul",{id:t,hidden:!s,children:n.map(({href:f,onClick:c,text:h,icon:d,...l},p)=>{const m={...l,onClick:E=>{a(!1),typeof c=="function"&&c(E)},onFocus:()=>{Ro&&(clearTimeout(Ro),Ro=!1)},onBlur:()=>{Ro=setTimeout(()=>{a(!1)},100)}};return f&&(m.href=f),O.jsx("li",{children:O.jsx(De,{variant:"tertiary",size:"medium",icon:d?{icon:d,position:"left"}:!1,...m,children:h})},`${window.btoa(h)}_${p}`)})})]})})};const nu=({variant:e="default",version:t="default",className:n="",...r})=>O.jsx("p",{className:"logo-wrapper",children:O.jsx("a",{className:ne("logo",e,t,n),href:"/home/",...r,children:O.jsx(Je,{children:O.jsx(vr,{id:"apolitical"})})})});const tx={"2-1":901},rx=({layout:e="2-1",hideOnMobile:t=!1,className:n="",children:r})=>{const o=Ji(!0);let i=r;return D.Children.count(r)===1&&(i=D.Children.toArray(r)[0],i.props&&(i=i.props.children)),O.jsx("section",{className:ne("columns",`layout-${e}`,n),children:D.Children.map(i,(s,a)=>t!==!1&&a===t&&o&&o<tx[e]?null:s)})};const qs="cookieBanner_",Gs=["apol-cookie-banner","apolitical-performance-cookie-consent","functional-cookie-consent"],Ws=new Date(Date.now()+12*30*24*60*60*1e3),eg=()=>{const e=Ee(),[t,n,r]=Bd(Gs),[o,i]=D.useState(!t["apol-cookie-banner"]),s=()=>{Gs.forEach(c=>{n(c,!0,{path:"/",expires:Ws,domain:c==="apolitical-performance-cookie-consent"?".apolitical.co":void 0})}),i(!1),window.location.reload()},a=()=>{n("apol-cookie-banner",!0,{path:"/",expires:Ws}),Gs.forEach(c=>{if(c==="apol-cookie-banner"){n(c,!0,{path:"/",expires:Ws});return}r(c)}),i(!1)};if(!o)return null;const u=[{id:"settings",href:"/pages/cookie-policy",gtmType:"policy-page"},{id:"reject",onClick:a,gtmType:"reject-all"},{id:"accept",onClick:s,gtmType:"accepted-all"}],f=[];return u.forEach(c=>{f.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:`${qs}buttons_${c.id}`})})}),O.jsxs("aside",{id:"cookie-banner",className:"text-medium",children:[O.jsx("h6",{children:e.formatMessage({id:`${qs}title`})}),O.jsx("p",{children:e.formatMessage({id:`${qs}text`})}),O.jsx(Zi,{buttons:f})]})},ir={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 xn="footer_",zo="SiteFooter",vd=({group:e})=>{const t=ir[e].order||[];let n=!1;return"text"in ir[e]&&(n=ir[e].text),O.jsxs(D.Fragment,{children:[O.jsx("p",{className:"pre-title",children:O.jsx(vr,{id:`${xn}${e}`})}),Array.isArray(t)&&t.length>0&&O.jsx("ul",{className:"text-medium",children:t.map(r=>{if(["order","child","text"].includes(r))return null;const{href:o,gtmType:i}=ir[e][r],s={};return["legal"].includes(e)&&(s.target="_blank",s.rel="noopener"),O.jsx("li",{children:O.jsx("a",{href:o,className:"gtm-trackable","data-gtm-event-context":zo,"data-gtm-event-type":i,...s,children:O.jsx(vr,{id:`${xn}${e}_${r}`})})},`${e}_${r}`)})}),typeof n!="boolean"&&"order"in n&&Array.isArray(n.order)&&O.jsx("dl",{className:"text-medium",children:n.order.map(r=>O.jsxs(D.Fragment,{children:[O.jsx("dt",{children:O.jsx(vr,{id:`${xn}${e}_${r}`})}),O.jsxs("dd",{children:[typeof n!="boolean"&&n[r].address&&O.jsx("address",{children:O.jsx(vr,{id:`${xn}${e}_${r}_address`,values:{br:O.jsx("br",{})}})}),typeof n!="boolean"&&n[r].email&&O.jsx("a",{href:`mailto:${n[r].email}`,className:"gtm-trackable","data-gtm-event-context":zo,"data-gtm-event-type":n[r].gtmType,children:n[r].email})]})]},`dl-${e}-${r}`))})]},e)},iu=()=>O.jsx("div",{id:"footer",children:O.jsxs("div",{className:"wrapper",children:[O.jsx(Cc,{element:"hr"}),O.jsx(nu,{variant:"inverted",version:"full",className:"gtm-trackable","data-gtm-event-context":zo,"data-gtm-event-type":"logo-homepage-link"}),O.jsx("footer",{children:["platform","community","company","contact"].map(e=>O.jsxs("div",{className:"group",children:[O.jsx(vd,{group:e}),Object.keys(ir[e]).includes("child")&&O.jsx(vd,{group:ir[e].child})]},e))}),O.jsx("hr",{}),O.jsxs("div",{className:"sub-footer",children:[O.jsx("ul",{children:Array.isArray(ir.social.order)&&ir.social.order.map(e=>{const t=ir.social[e];return O.jsx("li",{className:e,children:O.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"gtm-trackable","data-gtm-event-context":zo,"data-gtm-event-type":"social-click",children:O.jsx("span",{className:"hidden",children:O.jsx(vr,{id:`${xn}social_${e}`})})})},e)})}),O.jsx("small",{children:O.jsx(vr,{id:`${xn}copyright`,values:{currentYear:new Date().getFullYear()}})})]})]})});const No="emailHelperTextBox_",nx=({type:e,email:t,redirectPath:n,resendVerificationCode:r})=>{const o=Ee(),[i,s]=D.useState({path:`${No}default`,type:"default",link:{},mail:{},error:""}),[a,u]=D.useState(!1),f=D.useCallback(l=>{l.preventDefault(),l.stopPropagation();const p=m=>{s({path:`${No}error_verificationFailedToSend`,type:"error",link:{"data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:E=>f(E),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 r!="function"){p(o.formatMessage({id:`${No}error_noFunction`}));return}u(!0),r(t).then(()=>{localStorage.setItem("email",t),window.location.href=n||"/signup/verify-email"}).catch(m=>{p(m.message)}).finally(()=>{u(!1)})},[t,n,r]);D.useEffect(()=>{let l=No,p="default",m={},E={};switch(e){case"gov":l+="autoApproved",p="success";break;case"nonGov":l+="unrecognisedEmail",p="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":l+="pendingApproval",p="error",E={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;case"verify":l+="emailUnverified",p="error",m={href:"#","data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:T=>f(T),"data-testid":"send-verify-email-click"};break;case"exists":l+="emailAlreadyExists",p="error",m={href:"/user-onboarding/login","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"login-click"},E={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;default:l+="default",m={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"DefaultEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break}s({...i,path:l,type:p,link:m,mail:E})},[e]);const c={};return["link","mail"].forEach(l=>{c[l]=Object.keys(i[l]).length?p=>O.jsx("a",{...i[l],children:p}):p=>p}),O.jsx(Gm,{type:i.type,heading:a?!1:o.formatMessage({id:`${i.path}_title`}),children:a?O.jsxs(O.Fragment,{children:[O.jsx(Er,{element:"span"}),O.jsx(Er,{element:"span"})]}):o.formatMessage({id:`${i.path}_text`},{...c,strong:l=>O.jsx("strong",{children:l}),em:l=>O.jsx("em",{children:l}),br:O.jsxs(O.Fragment,{children:[O.jsx("br",{}),O.jsx("br",{})]}),error:i.error})})};const Po="passwordRules_",tg="isMoreThanEightCharacters",rg="includesNumberAndSymbol",ng="includesLowerAndUppercase",ix={[tg]:"8Characters",[rg]:"numberSymbol",[ng]:"lowercaseUppercase"},ox=({matchingRules:e={isMoreThanEightCharacters:!1,includesNumberAndSymbol:!1,includesLowerAndUppercase:!1},className:t=""})=>{const n=Ee();return O.jsxs("aside",{className:ne("password-rules",t),children:[O.jsx("small",{children:n.formatMessage({id:`${Po}intro`})}),O.jsx("ul",{children:[tg,rg,ng].map(r=>O.jsxs("li",{className:ne({matches:e[r]}),children:[O.jsxs(Je,{children:[n.formatMessage({id:`${Po}rule_label`})," "]}),O.jsx("span",{children:n.formatMessage({id:`${Po}rule_${ix[r]}`})}),!e[r]&&O.jsxs(Je,{element:"strong",children:[" "," ",n.formatMessage({id:`${Po}notMet`})]})]},`rule-${r}`))})]})},ax=D.memo(ox);const sx=({text:e={},topRating:t=5,functions:{createRating:n=()=>null,updateRating:r=()=>{},reportError:o=()=>{}},className:i="",hasLoaded:s=!1})=>{const a=Ee(),[u,f]=D.useState({setUp:!1,id:null,rating:null,disabled:!0}),c=async()=>{try{const T=await n();f(_=>({..._,setUp:!0,id:T&&T.id,disabled:!1}))}catch(T){f(_=>({..._,setUp:!0,disabled:!0})),o(T)}};if(D.useEffect(()=>{s&&!u.setUp&&c()},[s]),!s)return O.jsx(Er,{className:"rating-placeholder"});const{id:h,rating:d,disabled:l}=u,p="ratings_",m={text:a.formatMessage({id:`${p}text`}),low:a.formatMessage({id:`${p}low`}),high:a.formatMessage({id:`${p}high`}),success:a.formatMessage({id:`${p}success`}),...e},E=async T=>{if(!(!h||l))try{f(_=>({..._,rating:T,disabled:!0})),await r({id:h,value:T})}catch(_){f(b=>({...b,rating:null})),o(_)}finally{f(_=>({..._,disabled:!1}))}};return O.jsxs("div",{className:ne("rating",i),children:[O.jsx("span",{className:"label",children:m[d?"success":"text"]}),O.jsx("ol",{children:Array.from(new Array(t).keys()).map(T=>{const _=T+1;return O.jsx("li",{className:ne({selected:d&&_<=d}),children:O.jsx(De,{variant:"tertiary",size:"small",icon:{icon:`star${!d||_>d?"_empty":""}`,position:"left",hover:"star"},screenreaderText:`${a.formatMessage({id:`${p}stars`},{number:_,total:t})}${_===1||_===t?` - ${m[_===1?"low":"high"]}`:""}`,onClick:b=>{b.preventDefault(),b.stopPropagation(),E(_)},disabled:l})},`rating-${_}`)})})]})};const ig=({id:e="search",className:t="",handleToggle:n=!1,defaultValue:r="",gtmContext:o="search-bar",gtmEvent:i="form-submission"})=>{const{searchIsOpen:s=!0,isDesktopVersion:a=!1}=n||{},u=Ee(),f=D.useRef(null);Jr(()=>{!n||a||!s||f.current&&f.current.focus()},[s]);const c=h=>{if(h.preventDefault(),h.stopPropagation(),!(!f.current||!f.current.value||f.current.value.length<1))return window&&window.location&&window.location.replace(`/search?search=${encodeURIComponent(f.current.value)}`)};return O.jsx("form",{onSubmit:c,className:ne("search-form gtm-trackable",t),"data-gtm-event-context":o,"data-gtm-event-type":i,children:O.jsx("fieldset",{id:`${e}-form`,hidden:n?!s:!1,role:"search",children:O.jsxs("p",{children:[O.jsx(Je,{element:"label",htmlFor:e,children:u.formatMessage({id:"search_label"})}),O.jsx("input",{ref:f,type:"search",id:e,name:e,defaultValue:r,placeholder:u.formatMessage({id:"search_placeholder"}),onKeyDown:h=>{h.key==="Enter"&&c(h)}}),O.jsx("button",{className:"clear",onClick:h=>{h.preventDefault(),h.stopPropagation(),f.current&&f.current.value&&(f.current.value="")},children:O.jsx(Je,{children:u.formatMessage({id:"search_clear"})})}),O.jsx("button",{className:"search",onClick:c,children:O.jsx(Je,{children:u.formatMessage({id:"search_cta"})})})]})})})};var cx="Expected a function",og="__lodash_hash_undefined__",ag=1/0,ux="[object Function]",lx="[object GeneratorFunction]",fx="[object Symbol]",dx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hx=/^\w*$/,px=/^\./,mx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gx=/[\\^$.*+?()[\]{}|]/g,yx=/\\(\\)?/g,vx=/^\[object .+?Constructor\]$/,_x=typeof ce=="object"&&ce&&ce.Object===Object&&ce,Ex=typeof self=="object"&&self&&self.Object===Object&&self,ou=_x||Ex||Function("return this")();function bx(e,t){return e==null?void 0:e[t]}function wx(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Sx=Array.prototype,Tx=Function.prototype,sg=Object.prototype,Vs=ou["__core-js_shared__"],_d=function(){var e=/[^.]+$/.exec(Vs&&Vs.keys&&Vs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),cg=Tx.toString,au=sg.hasOwnProperty,ug=sg.toString,xx=RegExp("^"+cg.call(au).replace(gx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ed=ou.Symbol,Ox=Sx.splice,Ax=lg(ou,"Map"),Vi=lg(Object,"create"),bd=Ed?Ed.prototype:void 0,wd=bd?bd.toString:void 0;function tn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Cx(){this.__data__=Vi?Vi(null):{}}function Rx(e){return this.has(e)&&delete this.__data__[e]}function Nx(e){var t=this.__data__;if(Vi){var n=t[e];return n===og?void 0:n}return au.call(t,e)?t[e]:void 0}function Px(e){var t=this.__data__;return Vi?t[e]!==void 0:au.call(t,e)}function Ix(e,t){var n=this.__data__;return n[e]=Vi&&t===void 0?og:t,this}tn.prototype.clear=Cx;tn.prototype.delete=Rx;tn.prototype.get=Nx;tn.prototype.has=Px;tn.prototype.set=Ix;function Un(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Lx(){this.__data__=[]}function Mx(e){var t=this.__data__,n=sa(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ox.call(t,n,1),!0}function kx(e){var t=this.__data__,n=sa(t,e);return n<0?void 0:t[n][1]}function Bx(e){return sa(this.__data__,e)>-1}function Fx(e,t){var n=this.__data__,r=sa(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Un.prototype.clear=Lx;Un.prototype.delete=Mx;Un.prototype.get=kx;Un.prototype.has=Bx;Un.prototype.set=Fx;function on(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ux(){this.__data__={hash:new tn,map:new(Ax||Un),string:new tn}}function Dx(e){return ca(this,e).delete(e)}function $x(e){return ca(this,e).get(e)}function jx(e){return ca(this,e).has(e)}function Hx(e,t){return ca(this,e).set(e,t),this}on.prototype.clear=Ux;on.prototype.delete=Dx;on.prototype.get=$x;on.prototype.has=jx;on.prototype.set=Hx;function sa(e,t){for(var n=e.length;n--;)if(Zx(e[n][0],t))return n;return-1}function qx(e,t){t=zx(t,e)?[t]:Vx(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Xx(t[n++])];return n&&n==r?e:void 0}function Gx(e){if(!dg(e)||Kx(e))return!1;var t=eO(e)||wx(e)?xx:vx;return t.test(Jx(e))}function Wx(e){if(typeof e=="string")return e;if(cu(e))return wd?wd.call(e):"";var t=e+"";return t=="0"&&1/e==-ag?"-0":t}function Vx(e){return fg(e)?e:Qx(e)}function ca(e,t){var n=e.__data__;return Yx(t)?n[typeof t=="string"?"string":"hash"]:n.map}function lg(e,t){var n=bx(e,t);return Gx(n)?n:void 0}function zx(e,t){if(fg(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||cu(e)?!0:hx.test(e)||!dx.test(e)||t!=null&&e in Object(t)}function Yx(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Kx(e){return!!_d&&_d in e}var Qx=su(function(e){e=rO(e);var t=[];return px.test(e)&&t.push(""),e.replace(mx,function(n,r,o,i){t.push(o?i.replace(yx,"$1"):r||n)}),t});function Xx(e){if(typeof e=="string"||cu(e))return e;var t=e+"";return t=="0"&&1/e==-ag?"-0":t}function Jx(e){if(e!=null){try{return cg.call(e)}catch{}try{return e+""}catch{}}return""}function su(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(cx);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new(su.Cache||on),n}su.Cache=on;function Zx(e,t){return e===t||e!==e&&t!==t}var fg=Array.isArray;function eO(e){var t=dg(e)?ug.call(e):"";return t==ux||t==lx}function dg(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function tO(e){return!!e&&typeof e=="object"}function cu(e){return typeof e=="symbol"||tO(e)&&ug.call(e)==fx}function rO(e){return e==null?"":Wx(e)}function nO(e,t,n){var r=e==null?void 0:qx(e,t);return r===void 0?n:r}var iO=nO;const hg=jt(iO),Ne={timeouts:{},handlerCalled:{},getIsDesktopVersion:(e,t)=>{const n={navigation:{loggedIn:769,loggedOut:881},search:{loggedIn:961,loggedOut:1121}},r=i=>{const s=`logged${e?"In":"Out"}`;return t>=n[i][s]};let o={};return["navigation","search"].forEach(i=>{o[i]=r(i)}),o},shouldChangeHeaderIsVisible:(e,t,n)=>{Object.values(t).filter(o=>o===!0).length||n([{type:"headerIsVisible",value:e}])},handleMenus:({id:e,value:t,menus:n,dispatch:r})=>{if(n[e]===t||e==="account"&&t===!1&&n.navigation===!0)return;const o=Date.now();if(!t&&Ne.handlerCalled[e]&&o-Ne.handlerCalled[e]<500)return;Ne.handlerCalled[e]=o;let i=[{type:`menus.${e}`,value:t}];t===!0&&Object.keys(n).forEach(s=>{s===e||n[s]===!1||i.push({type:`menus.${s}`,value:!1})}),r(i)},findFirstChild:(e,t,n=!1)=>{if(!e||!e[0])return!1;for(let r=0;r<=e.length;r++){if(!e[r])continue;if(e[r][t]&&(!n||e[r][t].includes(n)))return e[r];if(!t.includes("."))continue;const o=hg(e[r],t);if(!(typeof o>"u")&&(!n||o[t]&&o[t].includes(n)||o.value&&o.value.includes(n)||o.toString().includes(n)))return e[r]}return e[0].children?Ne.findFirstChild(e[0].children,t,n):!1},autoFocus:({menu:e,navigationRef:t,isDesktopVersion:n,focusElements:r,dispatch:o})=>{if(!t.current||!t.current.children)return;const i=n?"desktop":"default";if(r[e][i]){r[e][i].focus();return}let s,a;switch(e){case"navigation":if(n){const u=Ne.findFirstChild(t.current.children,"attributes.aria-controls","navigation");s=Ne.findFirstChild(u.children,"href")}else s=Ne.findFirstChild(t.current.children,"href");s||(s=t.current);break;case"account":if(a=Ne.findFirstChild(t.current.children,"className","account"),!a||!a.children)return;s=Ne.findFirstChild(a.children,"href");break;default:return}s&&(o([{type:`focusElements.${e}.${i}`,value:s}]),s.focus())},events:{onClick:(e,{id:t,callback:n,isOpen:r})=>{e.target&&e.target.attributes&&e.target.attributes.href||(e.preventDefault(),e.stopPropagation(),clearTimeout(Ne.timeouts[t]),n(t,!r))},onFocus:({id:e})=>{clearTimeout(Ne.timeouts[e])},onMouseEnter:({id:e,callback:t})=>{clearTimeout(Ne.timeouts[e]),t(e,!0)},onBlur:({id:e,callback:t})=>{Ne.timeouts[e]=setTimeout(()=>{t(e,!1)},250)}}},zi={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"}}}},Yo=({id:e,isLoggedIn:t=!1,isDesktopVersion:n=!1,menus:r={},callback:o=()=>{},doTrack:i=null})=>{const s=Ee(),a=hg(zi,e);if(!a||a.onlyShow&&(a.onlyShow==="logged-in"&&!t||a.onlyShow==="logged-out"&&t))return null;const u="doTrack"in a,f=i===null?u?a.doTrack:!0:i,c=e.includes("buttons.");let h=`header_${e.replaceAll(".","_")}`;a.hasVariantText&&(h+=`_logged${t?"In":"Out"}`);let d=!1;if(a.href){let _=a.gtmType||`${e}-click`;if(_.includes(".")){const b=_.split("."),A=b[b.length-2];_=`${A==="topics"?`${A}-`:""}${b[b.length-1]}`}d={href:a.href,role:"menuitem"},f&&(d={...d,className:"gtm-trackable","data-gtm-event-type":_,"data-gtm-event-context":"HeaderButtons"}),c&&(d={...d,variant:"secondary",size:{mobile:"small",881:"large"},...a.props||{}})}const l=a.order&&a.order[0]&&a[a.order[0]],p=l&&a[a.order[0]].order,m=d&&typeof window<"u"&&window.location&&window.location.pathname===a.href;let E={},T={};if(l){const _=a.menuId||e,b={onClick:A=>Ne.events.onClick(A,{id:_,callback:o,isOpen:r[_]}),onFocus:()=>Ne.events.onFocus({id:_}),onBlur:()=>Ne.events.onBlur({id:_,callback:o}),onMouseLeave:()=>Ne.events.onBlur({id:_,callback:o}),onMouseEnter:()=>Ne.events.onMouseEnter({id:_,callback:o})};n&&(p&&(E={...b,onKeyPress:A=>{A.key==="Enter"&&Ne.events.onClick(A,{id:_,callback:o,isOpen:r[_]})},tabIndex:"0","aria-haspopup":!0,"aria-expanded":r[_],"aria-controls":_}),T={hidden:_ in r?!r[_]:!0}),p||(T={...T,...b})}return O.jsxs("li",{className:ne({[a.className]:a.className,"has-submenu":l,parent:p,active:m}),role:"none",...E,children:[d?D.createElement(c?De:"a",d,s.formatMessage({id:h})):s.formatMessage({id:h}),a.order&&O.jsx("ul",{...T,children:a.order.map(_=>{if(!a[_])return null;const b={isLoggedIn:t,isDesktopVersion:n,menus:r,callback:o,doTrack:u?f:null};return a[_].order?O.jsxs("li",{className:ne({[a[_].className]:a[_].className}),children:[s.formatMessage({id:`${h}_${_}`}),O.jsx("ul",{children:a[_].order.map(A=>O.jsx(Yo,{id:`${e}.${_}.${A}`,...b},A))})]},_):O.jsx(Yo,{id:`${e}.${_}`,...b},_)})})]},e)};const oO={height:67,height_desktop:83},uu=()=>{const e=Ee(),t=D.useContext(Fn),n=Ji(!0,!0),r=t&&typeof t.id=="string",o=D.useMemo(()=>Ne.getIsDesktopVersion(r,n),[r,n]),[i,s]=D.useReducer(Kb,{headerIsVisible:!0,menus:{navigation:!1,search:!1,account:!1},focusElements:{navigation:{desktop:!1,default:!1},account:{desktop:!1,default:!1}}}),{headerIsVisible:a,menus:u,focusElements:f}=i;Pp({scrollPosition:oO[`height${o.navigation?"_desktop":""}`],callbacks:{scrollUp:()=>{!o&&u.navigation||Ne.shouldChangeHeaderIsVisible(!0,u,s)},scrollDown:()=>{!o&&u.navigation||Ne.shouldChangeHeaderIsVisible(!1,u,s)}}});const c=(d,l)=>{Ne.handleMenus({id:d,value:l,menus:u,dispatch:s})},h=D.useRef(null);return Jr(()=>{u.navigation&&Ne.autoFocus({menu:"navigation",navigationRef:h,isDesktopVersion:o.navigation,focusElements:f,dispatch:s})},[u.navigation]),Jr(()=>{u.account&&Ne.autoFocus({menu:"account",navigationRef:h,isDesktopVersion:o.navigation,focusElements:f,dispatch:s})},[u.account]),t&&t.isLoading?null:O.jsxs(O.Fragment,{children:[O.jsxs("nav",{id:"header",className:ne({"logged-in":r,"logged-out":!r,visible:a}),children:[O.jsx(Je,{element:"a",href:"#content-of-page",children:e.formatMessage({id:"header_skip"})}),O.jsx(nu,{}),!o.navigation&&O.jsx("button",{className:"menu-button gtm-trackable",onClick:d=>{d.preventDefault(),d.stopPropagation(),c("navigation",!u.navigation)},"data-gtm-event-type":"open-tab-menu-click","data-gtm-event-context":"HeaderLeft-Chevron","aria-haspopup":"true","aria-expanded":u.navigation,"aria-controls":"navigation",children:O.jsx(Je,{children:e.formatMessage({id:`header_menu_${u.navigation?"hide":"show"}`})})}),O.jsx("ul",{ref:h,id:"navigation",hidden:o.navigation||u.account?!1:!u.navigation,role:"menu","data-showing":!o.navigation&&u.account?"account":"default",children:zi.order.map(d=>O.jsx(Yo,{id:d,isLoggedIn:r,isDesktopVersion:o.navigation,menus:{navigation:u.navigation,account:u.account},callback:c},d))}),!o.search&&O.jsx("button",{className:"search toggle-search-button",onClick:d=>{d.preventDefault(),d.stopPropagation(),c("search",!u.search)},"aria-haspopup":"true","aria-expanded":u.search,"aria-controls":"search-form",children:O.jsx(Je,{children:e.formatMessage({id:`header_search_${u.search?"hide":"show"}`})})}),O.jsx(ig,{id:"global-search",handleToggle:{searchIsOpen:u.search,isDesktopVersion:o.search},gtmContext:"search-bar-header",gtmEvent:"form-submission"}),r?O.jsxs("button",{className:"account-button",onClick:d=>Ne.events.onClick(d,{id:"account",callback:c,isOpen:u.account}),onMouseEnter:()=>Ne.events.onMouseEnter({id:"account",callback:c}),onMouseLeave:()=>Ne.events.onBlur({id:"account",callback:c}),"aria-haspopup":"true","aria-expanded":u.account,"aria-controls":"navigation",children:[O.jsx(Je,{children:e.formatMessage({id:`header_account_${u.account?"hide":"show"}`})}),O.jsx(oa,{name:t&&t.name||"",src:t&&t.image&&t.image.thumbnail||""})]}):O.jsx("ul",{className:"sign-in-buttons",children:zi.buttons.order.map(d=>O.jsx(Yo,{id:`buttons.${d}`},d))})]}),O.jsx("hr",{id:"content-of-page"}),O.jsx("div",{className:ne("overlay",{open:u.navigation||u.account||!o.search&&u.search})})]})},aO=D.createContext(null),zs={didCatch:!1,error:null};class sO extends D.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=zs}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];(n=(r=this.props).onReset)===null||n===void 0||n.call(r,{args:i,reason:"imperative-api"}),this.setState(zs)}}componentDidCatch(t,n){var r,o;(r=(o=this.props).onError)===null||r===void 0||r.call(o,t,n)}componentDidUpdate(t,n){const{didCatch:r}=this.state,{resetKeys:o}=this.props;if(r&&n.error!==null&&cO(t.resetKeys,o)){var i,s;(i=(s=this.props).onReset)===null||i===void 0||i.call(s,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(zs)}}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let a=t;if(i){const u={error:s,resetErrorBoundary:this.resetErrorBoundary};if(D.isValidElement(o))a=o;else if(typeof n=="function")a=n(u);else if(r)a=D.createElement(r,u);else throw s}return D.createElement(aO.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function cO(){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((n,r)=>!Object.is(n,t[r]))}const uO=()=>{const e=Ee();return O.jsxs(O.Fragment,{children:[O.jsx(uu,{}),O.jsx("div",{className:"content",children:O.jsx(Hm,{variant:"error",text:e.formatMessage({id:"pageLayout_error"})})}),O.jsx(iu,{})]})},lO=({children:e,reportError:t,showFooter:n=!0,background:r="default",className:o="",locale:i="en"})=>{const s=Hp(e,{locale:i});return O.jsx(sO,{onError:t,fallback:O.jsx(uO,{}),children:O.jsx(D.Suspense,{fallback:O.jsx(Ym,{layout:"overview-page"}),children:O.jsx("div",{id:"wrapper",className:ne(o,{[r]:r!=="default"}),children:O.jsxs(Hg,{children:[O.jsx(uu,{}),O.jsx("div",{className:"content",children:s}),n&&O.jsx(iu,{}),O.jsx(eg,{})]})})})})},Sd={default:"tags_",headerTopics:"header_topics_topics_"},Ys={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"},fO={getTagDetails:e=>{if(e.includes("topic_")){if(e=Ys.topic[e.replace("topic_","")],e){const t=zi.topics.topics[e].href;return t?{id:e,href:t,text:`${Sd.headerTopics}${e}`}:null}return null}return Ys[e]?(e=Ys[e],{id:e,text:`${Sd.default}${e}`}):null}};const dO=({tags:e=[],color:t="default",forceOneLine:n=!1,canHaveLinks:r=!0,className:o="",gtmType:i="tag-click",gtmContext:s="tags"})=>{const a=Ee();if(!e||e.length<1)return null;const u=[];return e.forEach(f=>{if(!f)return;const c=fO.getTagDetails(f);c&&u.push(c)}),u.length<1?null:O.jsx("ul",{className:ne("tags text-small",t,o,{"one-line":n}),children:u.map(f=>{const c=a.formatMessage({id:f.text});return O.jsx("li",{children:f.href&&r?O.jsx("a",{href:f.href,className:"gtm-trackable","data-gtm-event-type":i,"data-gtm-event-context":s,children:c}):c},f.id)})})};const hO=({members:{total:e,data:t=[]},pagination:n,gtmContext:r="member",gtmType:o="member-click",className:i=""})=>{const s=Ee();return t.length===0?null:(e||(e=t.length),O.jsxs("div",{className:ne("members-list",i),children:[O.jsxs("h1",{children:[s.formatMessage({id:"membersList"}),O.jsx("span",{className:"count",children:e})]}),O.jsx("ul",{children:t.map((a,u)=>O.jsxs("li",{children:[O.jsx(aa,{member:a,gtmContext:r,gtmType:o}),a.isAdmin&&O.jsx(Wm,{children:s.formatMessage({id:"membersList_admin"})})]},u))}),n&&O.jsx(Jm,{...n,icon:{icon:"arrow-down",position:"right"},gtmContext:r})]}))},pO={showThread:!1,showForm:!1},lu=D.createContext(pO),mO=({children:e})=>{const[t,n]=D.useState({showThread:!1,showForm:!1});return O.jsx(lu.Provider,{value:{...t,updateConversation:n},children:e})};function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ac.apply(this,arguments)}function gO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var yO=D.useLayoutEffect,vO=function(t){var n=Oe.useRef(t);return yO(function(){n.current=t}),n},Td=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},_O=function(t,n){var r=D.useRef();return D.useCallback(function(o){t.current=o,r.current&&Td(r.current,null),r.current=n,n&&Td(n,o)},[n])},xd={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},EO=function(t){Object.keys(xd).forEach(function(n){t.style.setProperty(n,xd[n],"important")})},Od=EO,it=null,Ad=function(t,n){var r=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function bO(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),it||(it=document.createElement("textarea"),it.setAttribute("tabindex","-1"),it.setAttribute("aria-hidden","true"),Od(it)),it.parentNode===null&&document.body.appendChild(it);var o=e.paddingSize,i=e.borderSize,s=e.sizingStyle,a=s.boxSizing;Object.keys(s).forEach(function(d){var l=d;it.style[l]=s[l]}),Od(it),it.value=t;var u=Ad(it,e);it.value=t,u=Ad(it,e),it.value="x";var f=it.scrollHeight-o,c=f*n;a==="border-box"&&(c=c+o+i),u=Math.max(c,u);var h=f*r;return a==="border-box"&&(h=h+o+i),u=Math.min(h,u),[u,f]}var Cd=function(){},wO=function(t,n){return t.reduce(function(r,o){return r[o]=n[o],r},{})},SO=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],TO=!!document.documentElement.currentStyle,xO=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var r=wO(SO,n),o=r.boxSizing;if(o==="")return null;TO&&o==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var i=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),s=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:i,borderSize:s}},OO=xO;function pg(e,t,n){var r=vO(n);Oe.useLayoutEffect(function(){var o=function(s){return r.current(s)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var AO=function(t){pg(window,"resize",t)},CO=function(t){pg(document.fonts,"loadingdone",t)},RO=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],NO=function(t,n){var r=t.cacheMeasurements,o=t.maxRows,i=t.minRows,s=t.onChange,a=s===void 0?Cd:s,u=t.onHeightChange,f=u===void 0?Cd:u,c=gO(t,RO),h=c.value!==void 0,d=Oe.useRef(null),l=_O(d,n),p=Oe.useRef(0),m=Oe.useRef(),E=function(){var b=d.current,A=r&&m.current?m.current:OO(b);if(A){m.current=A;var w=bO(A,b.value||b.placeholder||"x",i,o),N=w[0],F=w[1];p.current!==N&&(p.current=N,b.style.setProperty("height",N+"px","important"),f(N,{rowHeight:F}))}},T=function(b){h||E(),a(b)};return Oe.useLayoutEffect(E),AO(E),CO(E),Oe.createElement("textarea",Ac({},c,{onChange:T,ref:l}))},PO=Oe.forwardRef(NO);let Io=null;const pt="discussion_form_",mg=({content:e={type:"response",slugs:{}},meta:t={isLoading:!1,isInWrapper:!1,isEditing:!1},inputRef:n,maxLength:r=5e4,minRows:o=4,forceShow:i={cancel:!1,error:!1},functions:s={create:()=>{},handleSaveEdit:()=>{},handleCancel:()=>{},callback:()=>{},props:{create:{projectNames:["questions-answers"]}}},gtmContext:a="DiscussionForm"})=>{var B,G;const u=Ee(),f=D.useContext(Fn),[c,h]=D.useState(t.isEditing&&t.isEditing.text||""),[d,l]=D.useState(i.error||!1),[p,m]=D.useState(!1),E=D.useRef(null);if(n||(n=E),t.isLoading)return O.jsx(Er,{className:"discussion-card discussion-form","data-testid":"loading-placeholder"});const T=W=>{const V=W.target.value;h(V);let H;!f||!f.id?H=rr(u.formatMessage,`${pt}error_loggedOut`,e.type,"action"):V.length>=r&&(H=`${pt}error_tooLong`),H?l(H):d&&l(!1)};let _=`${e.type}-form`;if(e.type==="response"||e.type==="reply"){const W=e.type==="response"?((B=e.slugs)==null?void 0:B.question)||"":((G=e.slugs)==null?void 0:G.answer)||"";W&&(_=`${_}-${W.slice(-15)}`)}const b=async W=>{var H;if(W.preventDefault(),W.stopPropagation(),w)return;Io&&clearTimeout(Io),m("submitting");const V=window.location.pathname;try{let Y;switch(e.type){case"post":Y=await s.create({content:c});break;case"question":Y=await s.create({title:c,authorId:f&&f.id,...(H=s.props)==null?void 0:H.create});break;case"response":Y=await s.create({question:e.slugs.question},{body:c,authorId:f&&f.id,contentPath:V});break;case"reply":Y=await s.create({question:e.slugs.question,answer:e.slugs.answer},{body:c,authorId:f&&f.id,contentPath:V});break;default:break}await Jb(1e3),s.callback&&await s.callback(Y),Io=setTimeout(()=>{h(""),m("submitted"),A()},500)}catch(Y){const oe=Y;let Q=`${pt}error`;oe.message.includes("entry already exists")&&(Q=rr(u.formatMessage,`${pt}error_alreadyExists`,e.type,"action")),oe.message.includes("429")?Q=rr(u.formatMessage,`${pt}error_tooMany`,e.type,"action"):oe.message.includes("400")&&(Q=`${pt}error`),l(Q),A()}},A=()=>{Io=setTimeout(()=>{l(!1),m(!1)},5e3)},w=!c||!rw(c),N=p==="submitting",F=[];return(t.isEditing&&!N||i.cancel)&&F.push({variant:"secondary",size:{mobile:"small",600:"medium"},onClick:s.handleCancel,className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":`cancel-${e.type}-click`,disabled:!i.cancel&&(!f||!f.id||!c),children:u.formatMessage({id:`${pt}cancel`})}),F.push({variant:"primary",size:{mobile:"small",600:"medium"},onClick:W=>{if(t.isEditing){m("submitting"),s.handleSaveEdit&&s.handleSaveEdit(E.current&&"value"in E.current?E.current.value:"");return}b(W)},className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":`${t.isEditing?"save":"submit"}-${e.type}-click`,"data-testid":"save-button",disabled:!f||!f.id||w||N||t.isEditing&&c===t.isEditing.text,children:u.formatMessage({id:`${pt}${N?t.isEditing?"saving":"posting":t.isEditing?"save":"post"}`})}),O.jsxs("form",{id:_,className:ne("discussion-card discussion-form",{"no-styling":t.isInWrapper&&t.isEditing}),"data-testid":`discussion-${e.type}-form`,children:[!t.isEditing&&["question"].includes(e.type)&&O.jsx("h2",{children:rr(u.formatMessage,`${pt}title`,e.type,"action")}),O.jsx(aa,{member:f||"community",gtmContext:a,gtmType:"profile-click"}),O.jsx(Je,{element:"label",showOnFocus:!1,htmlFor:`${_}-input`,children:rr(u.formatMessage,`${pt}label`,e.type,"action")}),O.jsx(PO,{ref:n,id:`${_}-input`,name:e.type,placeholder:rr(u.formatMessage,`${pt}placeholder`,e.type,"action"),onChange:T,value:c,maxLength:r,"aria-invalid":!!d,"aria-errormessage":"error-message",minRows:o,autoFocus:!!t.isEditing}),O.jsx("small",{children:rr(u.formatMessage,`${pt}explainer`,e.type,"action",{a:W=>O.jsx("a",{href:"https://about.apolitical.co/q-and-a-community-guidelines",className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":"community-guidelines-link",children:W})})}),O.jsx(Zi,{buttons:F}),p==="submitted"&&O.jsx(Vo,{className:"success","data-testid":"success",children:rr(u.formatMessage,`${pt}success`,e.type,"action")}),d&&O.jsx(Vo,{id:"error-message",className:"error","data-testid":"error",children:i.error?i.error:typeof d=="string"?d.includes(" ")?d:u.formatMessage({id:d},{action:u.formatMessage({id:`discussion_action_${e.type}`}),maxLength:r}):d})]})},IO=({question:e,answer:t,reply:n})=>({...e&&{questionSlug:e},...t&&{answerSlug:t},...n&&{replySlug:n}}),LO=(e,t=10)=>!e||e.length===0?[]:e.reverse().slice(0,t);let qi=!1;const Ks=()=>{qi!==!1&&(clearTimeout(qi),qi=!1)},gg=({element:e="div",likes:t=0,peopleWhoLiked:n=!1,isShort:r=!0,userLiked:o=!1,content:i={type:"reply",slugs:{}},canLike:s=!0,functions:{createLike:a=()=>{},deleteLike:u=()=>{}}={}})=>{const f=Ee();D.useEffect(()=>{l(o)},[o]);const[c,h]=D.useState(t),[d,l]=D.useState(o),[p,m]=D.useState(!1),[E,T]=D.useState(!1),_=D.useMemo(()=>LO(n),[n]),b=window.location.pathname,A=N=>{if(N.preventDefault(),N.stopPropagation(),T(!1),qi)return Ks(),!1;if(Ks(),p||!s)return!1;qi=setTimeout(w,350)},w=async()=>{if(Ks(),p||!s)return!1;let N=d?c-1:c+1;N<0&&(N=0),m(!0),h(N),l(!d);try{if(i&&i.slugs){const F=IO(i.slugs);d?await u(F):await a(F,{contentPath:b})}}catch{h(t),l(o)}finally{m(!1)}};return D.createElement(e,{className:ne("likes-wrapper text-medium action-button",{"show-spinner":p,"is-liked":d,disabled:!s}),onClick:A,onMouseEnter:()=>{T(!0)},onMouseLeave:()=>{T(!1)},onFocus:()=>{T(!0)},onBlur:()=>{T(!1)},children:O.jsxs(O.Fragment,{children:[O.jsx(De,{variant:"tertiary",size:"medium",icon:{icon:d?"heart":"heart_empty",animate:"bounce"},className:ne({"do-animation":d&&!o}),screenreaderText:s?f.formatMessage({id:`discussion_${i.type}_likes_${d?"unlike":"like"}`}):!1,onClick:A,disabled:!s,"aria-hidden":!s,"data-testid":"like-button","data-gtm-event-context":"Likes","data-gtm-event-type":`like-${i.type}-click`}),O.jsx("span",{className:"number-of-likes","data-testid":"number-of-likes",children:f.formatMessage({id:`discussion_likes${r?"_short":""}`},{number:c})}),n&&O.jsx(Em,{isOpen:E,isLoading:n.length===0,children:n.length&&O.jsx("ul",{children:_.map(N=>typeof N=="string"||!N.name?null:O.jsx("li",{children:N.name},N.id||window.btoa(N.name)))})})]})})};var Ko={exports:{}};Ko.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=1,i=2,s=9007199254740991,a="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",c="[object Boolean]",h="[object Date]",d="[object Error]",l="[object Function]",p="[object GeneratorFunction]",m="[object Map]",E="[object Number]",T="[object Null]",_="[object Object]",b="[object Promise]",A="[object Proxy]",w="[object RegExp]",N="[object Set]",F="[object String]",B="[object Symbol]",G="[object Undefined]",W="[object WeakMap]",V="[object ArrayBuffer]",H="[object DataView]",Y="[object Float32Array]",oe="[object Float64Array]",Q="[object Int8Array]",M="[object Int16Array]",z="[object Int32Array]",Z="[object Uint8Array]",de="[object Uint8ClampedArray]",X="[object Uint16Array]",K="[object Uint32Array]",se=/[\\^$.*+?()[\]{}|]/g,ue=/^\[object .+?Constructor\]$/,Fe=/^(?:0|[1-9]\d*)$/,J={};J[Y]=J[oe]=J[Q]=J[M]=J[z]=J[Z]=J[de]=J[X]=J[K]=!0,J[a]=J[u]=J[V]=J[c]=J[H]=J[h]=J[d]=J[l]=J[m]=J[E]=J[_]=J[w]=J[N]=J[F]=J[W]=!1;var re=typeof ce=="object"&&ce&&ce.Object===Object&&ce,Pe=typeof self=="object"&&self&&self.Object===Object&&self,Ae=re||Pe||Function("return this")(),st=t&&!t.nodeType&&t,ut=st&&!0&&e&&!e.nodeType&&e,Et=ut&&ut.exports===st,te=Et&&re.process,Ye=function(){try{return te&&te.binding&&te.binding("util")}catch{}}(),je=Ye&&Ye.isTypedArray;function bt(y,x){for(var R=-1,j=y==null?0:y.length,fe=0,ae=[];++R<j;){var pe=y[R];x(pe,R,y)&&(ae[fe++]=pe)}return ae}function Gt(y,x){for(var R=-1,j=x.length,fe=y.length;++R<j;)y[fe+R]=x[R];return y}function Rt(y,x){for(var R=-1,j=y==null?0:y.length;++R<j;)if(x(y[R],R,y))return!0;return!1}function mt(y,x){for(var R=-1,j=Array(y);++R<y;)j[R]=x(R);return j}function Sr(y){return function(x){return y(x)}}function wt(y,x){return y.has(x)}function gt(y,x){return y==null?void 0:y[x]}function He(y){var x=-1,R=Array(y.size);return y.forEach(function(j,fe){R[++x]=[fe,j]}),R}function St(y,x){return function(R){return y(x(R))}}function nt(y){var x=-1,R=Array(y.size);return y.forEach(function(j){R[++x]=j}),R}var Ke=Array.prototype,Tr=Function.prototype,S=Object.prototype,g=Ae["__core-js_shared__"],v=Tr.toString,C=S.hasOwnProperty,P=function(){var y=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),U=S.toString,q=RegExp("^"+v.call(C).replace(se,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=Et?Ae.Buffer:void 0,we=Ae.Symbol,Se=Ae.Uint8Array,Te=S.propertyIsEnumerable,he=Ke.splice,lt=we?we.toStringTag:void 0,ar=Object.getOwnPropertySymbols,xr=le?le.isBuffer:void 0,Wt=St(Object.keys,Object),Or=xt(Ae,"DataView"),Vt=xt(Ae,"Map"),Ar=xt(Ae,"Promise"),Cr=xt(Ae,"Set"),Rr=xt(Ae,"WeakMap"),Nt=xt(Object,"create"),an=Qe(Or),Tt=Qe(Vt),Dn=Qe(Ar),$n=Qe(Cr),jn=Qe(Rr),sn=we?we.prototype:void 0,Nr=sn?sn.valueOf:void 0;function Ue(y){var x=-1,R=y==null?0:y.length;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Pr(){this.__data__=Nt?Nt(null):{},this.size=0}function Ir(y){var x=this.has(y)&&delete this.__data__[y];return this.size-=x?1:0,x}function zt(y){var x=this.__data__;if(Nt){var R=x[y];return R===r?void 0:R}return C.call(x,y)?x[y]:void 0}function cn(y){var x=this.__data__;return Nt?x[y]!==void 0:C.call(x,y)}function Hn(y,x){var R=this.__data__;return this.size+=this.has(y)?0:1,R[y]=Nt&&x===void 0?r:x,this}Ue.prototype.clear=Pr,Ue.prototype.delete=Ir,Ue.prototype.get=zt,Ue.prototype.has=cn,Ue.prototype.set=Hn;function qe(y){var x=-1,R=y==null?0:y.length;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function qn(){this.__data__=[],this.size=0}function Gn(y){var x=this.__data__,R=ur(x,y);if(R<0)return!1;var j=x.length-1;return R==j?x.pop():he.call(x,R,1),--this.size,!0}function Wn(y){var x=this.__data__,R=ur(x,y);return R<0?void 0:x[R][1]}function Vn(y){return ur(this.__data__,y)>-1}function Lr(y,x){var R=this.__data__,j=ur(R,y);return j<0?(++this.size,R.push([y,x])):R[j][1]=x,this}qe.prototype.clear=qn,qe.prototype.delete=Gn,qe.prototype.get=Wn,qe.prototype.has=Vn,qe.prototype.set=Lr;function et(y){var x=-1,R=y==null?0:y.length;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function zn(){this.size=0,this.__data__={hash:new Ue,map:new(Vt||qe),string:new Ue}}function Yn(y){var x=ft(this,y).delete(y);return this.size-=x?1:0,x}function Kn(y){return ft(this,y).get(y)}function Qn(y){return ft(this,y).has(y)}function Xn(y,x){var R=ft(this,y),j=R.size;return R.set(y,x),this.size+=R.size==j?0:1,this}et.prototype.clear=zn,et.prototype.delete=Yn,et.prototype.get=Kn,et.prototype.has=Qn,et.prototype.set=Xn;function sr(y){var x=-1,R=y==null?0:y.length;for(this.__data__=new et;++x<R;)this.add(y[x])}function un(y){return this.__data__.set(y,r),this}function cr(y){return this.__data__.has(y)}sr.prototype.add=sr.prototype.push=un,sr.prototype.has=cr;function ct(y){var x=this.__data__=new qe(y);this.size=x.size}function Mr(){this.__data__=new qe,this.size=0}function Jn(y){var x=this.__data__,R=x.delete(y);return this.size=x.size,R}function Zn(y){return this.__data__.get(y)}function ei(y){return this.__data__.has(y)}function ti(y,x){var R=this.__data__;if(R instanceof qe){var j=R.__data__;if(!Vt||j.length<n-1)return j.push([y,x]),this.size=++R.size,this;R=this.__data__=new et(j)}return R.set(y,x),this.size=R.size,this}ct.prototype.clear=Mr,ct.prototype.delete=Jn,ct.prototype.get=Zn,ct.prototype.has=ei,ct.prototype.set=ti;function ri(y,x){var R=lr(y),j=!R&&mn(y),fe=!R&&!j&&dr(y),ae=!R&&!j&&!fe&&Dr(y),pe=R||j||fe||ae,me=pe?mt(y.length,String):[],Me=me.length;for(var be in y)(x||C.call(y,be))&&!(pe&&(be=="length"||fe&&(be=="offset"||be=="parent")||ae&&(be=="buffer"||be=="byteLength"||be=="byteOffset")||Pt(be,Me)))&&me.push(be);return me}function ur(y,x){for(var R=y.length;R--;)if(pn(y[R][0],x))return R;return-1}function kr(y,x,R){var j=x(y);return lr(y)?j:Gt(j,R(y))}function Yt(y){return y==null?y===void 0?G:T:lt&&lt in Object(y)?Ot(y):hn(y)}function ln(y){return yt(y)&&Yt(y)==a}function fn(y,x,R,j,fe){return y===x?!0:y==null||x==null||!yt(y)&&!yt(x)?y!==y&&x!==x:dn(y,x,R,j,fn,fe)}function dn(y,x,R,j,fe,ae){var pe=lr(y),me=lr(x),Me=pe?u:dt(y),be=me?u:dt(x);Me=Me==a?_:Me,be=be==a?_:be;var Ge=Me==_,Xe=be==_,Be=Me==be;if(Be&&dr(y)){if(!dr(x))return!1;pe=!0,Ge=!1}if(Be&&!Ge)return ae||(ae=new ct),pe||Dr(y)?Br(y,x,R,j,fe,ae):ai(y,x,Me,R,j,fe,ae);if(!(R&o)){var We=Ge&&C.call(y,"__wrapped__"),$e=Xe&&C.call(x,"__wrapped__");if(We||$e){var It=We?y.value():y,At=$e?x.value():x;return ae||(ae=new ct),fe(It,At,R,j,ae)}}return Be?(ae||(ae=new ct),Fr(y,x,R,j,fe,ae)):!1}function ni(y){if(!yn(y)||ui(y))return!1;var x=gn(y)?q:ue;return x.test(Qe(y))}function ii(y){return yt(y)&&Ur(y.length)&&!!J[Yt(y)]}function oi(y){if(!li(y))return Wt(y);var x=[];for(var R in Object(y))C.call(y,R)&&R!="constructor"&&x.push(R);return x}function Br(y,x,R,j,fe,ae){var pe=R&o,me=y.length,Me=x.length;if(me!=Me&&!(pe&&Me>me))return!1;var be=ae.get(y);if(be&&ae.get(x))return be==x;var Ge=-1,Xe=!0,Be=R&i?new sr:void 0;for(ae.set(y,x),ae.set(x,y);++Ge<me;){var We=y[Ge],$e=x[Ge];if(j)var It=pe?j($e,We,Ge,x,y,ae):j(We,$e,Ge,y,x,ae);if(It!==void 0){if(It)continue;Xe=!1;break}if(Be){if(!Rt(x,function(At,Qt){if(!wt(Be,Qt)&&(We===At||fe(We,At,R,j,ae)))return Be.push(Qt)})){Xe=!1;break}}else if(!(We===$e||fe(We,$e,R,j,ae))){Xe=!1;break}}return ae.delete(y),ae.delete(x),Xe}function ai(y,x,R,j,fe,ae,pe){switch(R){case H:if(y.byteLength!=x.byteLength||y.byteOffset!=x.byteOffset)return!1;y=y.buffer,x=x.buffer;case V:return!(y.byteLength!=x.byteLength||!ae(new Se(y),new Se(x)));case c:case h:case E:return pn(+y,+x);case d:return y.name==x.name&&y.message==x.message;case w:case F:return y==x+"";case m:var me=He;case N:var Me=j&o;if(me||(me=nt),y.size!=x.size&&!Me)return!1;var be=pe.get(y);if(be)return be==x;j|=i,pe.set(y,x);var Ge=Br(me(y),me(x),j,fe,ae,pe);return pe.delete(y),Ge;case B:if(Nr)return Nr.call(y)==Nr.call(x)}return!1}function Fr(y,x,R,j,fe,ae){var pe=R&o,me=Kt(y),Me=me.length,be=Kt(x),Ge=be.length;if(Me!=Ge&&!pe)return!1;for(var Xe=Me;Xe--;){var Be=me[Xe];if(!(pe?Be in x:C.call(x,Be)))return!1}var We=ae.get(y);if(We&&ae.get(x))return We==x;var $e=!0;ae.set(y,x),ae.set(x,y);for(var It=pe;++Xe<Me;){Be=me[Xe];var At=y[Be],Qt=x[Be];if(j)var ro=pe?j(Qt,At,Be,x,y,ae):j(At,Qt,Be,y,x,ae);if(!(ro===void 0?At===Qt||fe(At,Qt,R,j,ae):ro)){$e=!1;break}It||(It=Be=="constructor")}if($e&&!It){var Lt=y.constructor,hr=x.constructor;Lt!=hr&&"constructor"in y&&"constructor"in x&&!(typeof Lt=="function"&&Lt instanceof Lt&&typeof hr=="function"&&hr instanceof hr)&&($e=!1)}return ae.delete(y),ae.delete(x),$e}function Kt(y){return kr(y,vn,si)}function ft(y,x){var R=y.__data__;return ci(x)?R[typeof x=="string"?"string":"hash"]:R.map}function xt(y,x){var R=gt(y,x);return ni(R)?R:void 0}function Ot(y){var x=C.call(y,lt),R=y[lt];try{y[lt]=void 0;var j=!0}catch{}var fe=U.call(y);return j&&(x?y[lt]=R:delete y[lt]),fe}var si=ar?function(y){return y==null?[]:(y=Object(y),bt(ar(y),function(x){return Te.call(y,x)}))}:_n,dt=Yt;(Or&&dt(new Or(new ArrayBuffer(1)))!=H||Vt&&dt(new Vt)!=m||Ar&&dt(Ar.resolve())!=b||Cr&&dt(new Cr)!=N||Rr&&dt(new Rr)!=W)&&(dt=function(y){var x=Yt(y),R=x==_?y.constructor:void 0,j=R?Qe(R):"";if(j)switch(j){case an:return H;case Tt:return m;case Dn:return b;case $n:return N;case jn:return W}return x});function Pt(y,x){return x=x??s,!!x&&(typeof y=="number"||Fe.test(y))&&y>-1&&y%1==0&&y<x}function ci(y){var x=typeof y;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?y!=="__proto__":y===null}function ui(y){return!!P&&P in y}function li(y){var x=y&&y.constructor,R=typeof x=="function"&&x.prototype||S;return y===R}function hn(y){return U.call(y)}function Qe(y){if(y!=null){try{return v.call(y)}catch{}try{return y+""}catch{}}return""}function pn(y,x){return y===x||y!==y&&x!==x}var mn=ln(function(){return arguments}())?ln:function(y){return yt(y)&&C.call(y,"callee")&&!Te.call(y,"callee")},lr=Array.isArray;function fr(y){return y!=null&&Ur(y.length)&&!gn(y)}var dr=xr||di;function fi(y,x){return fn(y,x)}function gn(y){if(!yn(y))return!1;var x=Yt(y);return x==l||x==p||x==f||x==A}function Ur(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=s}function yn(y){var x=typeof y;return y!=null&&(x=="object"||x=="function")}function yt(y){return y!=null&&typeof y=="object"}var Dr=je?Sr(je):ii;function vn(y){return fr(y)?ri(y):oi(y)}function _n(){return[]}function di(){return!1}e.exports=fi})(Ko,Ko.exports);var MO=Ko.exports;const kO=jt(MO);const yg=({element:e="section",children:t,className:n,...r})=>D.createElement(e,{className:ne("modal",n),children:typeof t=="string"?O.jsx("p",{children:t}):t,...r});const vg=({id:e="content-overlay",isOpen:t=!1,maxWidth:n,functions:{onOpen:r=()=>{},onClose:o=()=>{}}={},forceShow:{error:i=!1}={},title:s,children:a,buttons:u,className:f="",gtmContext:c="Modal"})=>{const h=Ee(),[d,l]=D.useState(t),p=E=>{l(E),document.body.classList.toggle("has-overlay"),E?r():o()};D.useEffect(()=>{p(t)},[t]);const m=n?{"--max-width":`${n/16}rem`}:{};return O.jsx("div",{className:ne("overlay",{open:d}),children:O.jsx(yg,{id:e,className:ne("overlay-modal",f,{"has-max-width":n}),hidden:!d,style:m,children:t&&O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"top",children:[O.jsx("h2",{children:s}),O.jsx(De,{variant:"tertiary",size:"medium",icon:{icon:"close"},onClick:()=>p(!1),className:"gtm-trackable","data-gtm-event-type":"close-modal-click","data-gtm-event-context":c,screenreaderText:h.formatMessage({id:"overlay_button"})})]}),O.jsx(Go,{}),a,u&&O.jsxs("div",{className:"bottom",children:[O.jsx(Go,{}),O.jsx(Zi,{buttons:u})]}),i&&O.jsx(Vo,{className:"error",children:i})]})})})},_g=(e,t)=>({"aria-haspopup":!0,"aria-expanded":t,"aria-controls":e}),Rd=e=>{const t={};return Object.keys(e).forEach(n=>{t[`${n}Slug`]=e[n]}),t};const tr="discussion_",BO=({element:e="div",content:t,isLoading:n=!1,originalAuthorId:r,functions:{content:{createContent:o,deleteContent:i,updateContent:s}={createContent:()=>{},deleteContent:()=>{},updateContent:()=>{}},likes:{createLike:a,deleteLike:u}={createLike:()=>{},deleteLike:()=>{}},comments:{openComments:f}={openComments:()=>{}}},links:c={},className:h,gtmContext:d="DiscussionAnswer",locale:l="en",children:p})=>{const m=Ee(),E=D.useContext(Fn),T=D.useContext(lu),[_,b]=D.useState({body:t&&t.body||"",isEditing:!1,didEdit:t&&t.isEdited||!1}),[A,w]=D.useState(!1),[N,F]=D.useState("");if(D.useEffect(()=>{b({..._,body:t&&t.body||"",didEdit:t&&t.isEdited||!1})},[t.isEdited]),n||!t||t.type==="answer"&&(!t.slugs||!t.slugs.question))return O.jsx(Er,{className:"discussion-card discussion-post"});const{author:B,canLike:G,createdAt:W,id:V,likes:H=0,userLiked:Y,comments:oe=0}=t,Q=E&&E.id&&typeof B!="string"&&B.id&&B.id===E.id||!1,M=typeof G=="boolean"?G:!Q,z=async K=>{K||(K=""),F("");try{if(!kO(K,_.body)){const se=t.type==="question"?{title:K}:{body:K};await s(Rd(t.slugs),se)}b({body:K,isEditing:!1,didEdit:!0})}catch{F(`${tr}form_error`)}},Z=()=>{T&&T.updateConversation&&T.updateConversation({showThread:!0,showForm:!0}),setTimeout(()=>{const se=`reply-form-${(t.type==="answer"?t.slug:t.slugs.answer||"").toLowerCase().slice(-15)}`,ue=document.getElementById(se),Fe=document.getElementById(`${se}-input`);Fe&&Fe.focus(),ue&&ue.scrollIntoView({behavior:"smooth"})},0)},de=()=>{try{i(Rd(t.slugs))}catch{F("delete-error")}},X=[{text:m.formatMessage({id:`${tr}moreMenu_report`}),href:`mailto:community@apolitical.co?subject=${encodeURI(m.formatMessage({id:`${tr}report_subject`}))}&body=${encodeURI(m.formatMessage({id:`${tr}report_body`},{contentType:t.type||"",contentSlug:t.slug||"",contentUrl:`${window.origin}${typeof process<"u"&&process.env.PUBLIC_URL||""}/${t.slugs.question||""}`}))}`,icon:"flag"}];return Q&&X.push({text:m.formatMessage({id:`${tr}moreMenu_edit`}),onClick:()=>b({..._,isEditing:!0}),icon:"pencil-paper",className:"gtm-trackable","data-gtm-event-context":d,"data-gtm-event-type":`edit-${t.type}-click`},{text:m.formatMessage({id:`${tr}moreMenu_delete`}),onClick:K=>{K.preventDefault(),K.stopPropagation(),w(!0)},icon:"trash",className:"gtm-trackable","data-gtm-event-context":d,"data-gtm-event-type":`delete-${t.type}-click`,..._g(`delete-${t.slug}-modal`,A)}),D.createElement(e,{className:ne("discussion-post",h),"data-testid":`discussion-${t.type}-thread`,children:O.jsxs(O.Fragment,{children:[O.jsxs("div",{id:V||t.slug,className:ne("discussion-card",t.type,{editing:_.isEditing,"has-link":c.post&&!_.isEditing}),onClick:K=>{!c.post||_.isEditing||(K.preventDefault(),K.stopPropagation(),window.location.href=c.post)},children:[!_.isEditing&&O.jsx(aa,{member:B,additionalContent:{createdAt:W,didEdit:_.didEdit},className:typeof B!="string"&&B.id===r?"highlighted":"",gtmContext:d,gtmType:"profile-click"}),_.isEditing?O.jsx(mg,{content:{type:t.type,slugs:t.slugs},meta:{isLoading:n,isInWrapper:!0,isEditing:{text:_.body}},maxLength:t.type==="question"?250:5e4,forceShow:{error:N!==""&&N!=="delete-error"?m.formatMessage({id:N},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},functions:{create:o,handleSaveEdit:z,handleCancel:()=>{F(""),b({..._,isEditing:!1})}},gtmContext:`${d}Form`}):c.post?O.jsx("a",{href:c.post,className:"gtm-trackable","data-gtm-event-context":d,"data-gtm-event-type":"title-click",children:O.jsx(xc,{options:{overrides:{a:null}},children:_.body})}):O.jsx(xc,{options:{wrapper:t.type==="question"?"h1":D.Fragment,forceWrapper:t.type==="question",forceInline:t.type==="question",forceBlock:t.type!=="question"},children:_.body}),!_.isEditing&&O.jsxs("ul",{className:ne("actions text-medium",t.type),"data-testid":`${t.type}-actions`,children:[O.jsx(gg,{element:"li",likes:H,isShort:!1,userLiked:Y,content:{type:t.type,slugs:t.slugs},canLike:M,functions:{createLike:a,deleteLike:u}}),t.type==="question"&&O.jsxs("li",{className:"action-button",onClick:K=>{K.preventDefault(),K.stopPropagation(),c.comments&&(window.location.href=c.comments),typeof f=="function"&&f()},children:[O.jsx(De,{variant:"tertiary",size:"medium",styling:{muted:!0},icon:{icon:"speech-bubble_square_thick"},href:c.comments?c.comments:!1,onClick:c.comments||typeof f!="function"?!1:f,className:"gtm-trackable","data-gtm-event-context":d,"data-gtm-event-type":`answer-${t.type}-click`,screenreaderText:m.formatMessage({id:`${tr}comments_screenReader`},{count:oe})}),O.jsx("span",{children:m.formatMessage({id:`${tr}comments`},{count:oe})})]}),(t.type==="answer"||t.type==="reply")&&O.jsx("li",{children:O.jsx(De,{variant:"tertiary",size:"medium",styling:{muted:!0},onClick:Z,children:m.formatMessage({id:`${tr}reply`})})}),O.jsx(Zm,{element:"li",id:`more-${t.slug}`,options:X})]})]}),p,O.jsx(vg,{id:`delete-${t.slug}-modal`,isOpen:A,functions:{onOpen:()=>{},onClose:()=>w(!1)},forceShow:{error:N==="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:()=>w(!1),children:m.formatMessage({id:"discussion_delete_cancel"})},{variant:"primary",className:"destructive",onClick:de,children:m.formatMessage({id:"discussion_delete_delete"})}],gtmContext:`${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,children:O.jsx(vr,{id:"discussion_delete_text",values:{p:K=>O.jsx("p",{children:K}),action:m.formatMessage({id:`discussion_action_${t.type}`})}})})]})})};const Qs="discussion_responses_",FO=({type:e="answer",responses:t=0})=>{const n=Ee();return O.jsxs("div",{className:"responses-heading",children:[O.jsx("h3",{children:n.formatMessage({id:`${Qs}title`},{action:n.formatMessage({id:`${Qs}${e}`}),count:t})}),t===0&&O.jsx("p",{children:rr(n.formatMessage,`${Qs}empty`,e,e)})]})};const UO=({isOpen:e=!1,count:t=0,children:n})=>{const r=Ee(),o=D.useRef(null),[i,s]=D.useState(e),[a,u]=D.useState("closed");D.useEffect(()=>{const d=o.current;if(d)return d.addEventListener("transitionend",f),()=>{d.removeEventListener("transitionend",f)}},[]),Jr(()=>{a==="closed"&&!i||u(["opening","open"].includes(a)?"ready-to-close":"opening")},[i]),D.useEffect(()=>{a==="ready-to-close"&&u("closing")},[a]);const f=({propertyName:d})=>{d==="max-height"&&u(l=>l==="opening"?"open":l==="closing"?"closed":l)},c=["opening","open"].includes(a),h=Hp(n,{element:"li"});return O.jsxs("div",{className:"thread-wrapper",children:[O.jsx(De,{variant:"secondary",size:"small",styling:{muted:!0},icon:{icon:`arrow_corner-down_${c?"left":"right"}`},onClick:()=>{s(!i)},children:r.formatMessage({id:`discussion_thread_${c?"hide":"show"}`},{count:t})}),O.jsx("ul",{ref:o,className:ne("thread",a),hidden:!i,children:h})]})};exports.ASSETS_BUCKET=Wo;exports.BannerSection=NS;exports.Breadcrumbs=ZT;exports.Button=De;exports.ButtonWrapper=Zi;exports.CollapsibleSection=Zc;exports.Columns=rx;exports.CommunityDetails=JT;exports.Contributors=Qm;exports.ConversationContext=lu;exports.CookieBanner=eg;exports.DiscussionConversation=mO;exports.DiscussionForm=mg;exports.DiscussionLikes=gg;exports.DiscussionPost=BO;exports.DiscussionThread=UO;exports.Divider=Go;exports.DownloadSection=OS;exports.EmailHelperTextBox=nx;exports.EmptyStateBox=Hm;exports.Filters=ex;exports.Footer=iu;exports.FullWidthSection=Jc;exports.Header=uu;exports.HelperTextBox=Gm;exports.HiddenFromScreenReaders=Cc;exports.HideShowTextBox=FT;exports.HighlightedTextBox=or;exports.IntlProvider=QT;exports.JoinButton=Xm;exports.Link=zc;exports.LoadMore=Jm;exports.LoadingBlock=zT;exports.LoadingPlaceholder=Er;exports.LoadingState=Ym;exports.Logo=nu;exports.LogoSection=AS;exports.MarkdownText=xc;exports.MarketingBox=PS;exports.Member=aa;exports.MembersList=hO;exports.Modal=yg;exports.MoreMenu=Zm;exports.NUMBER_OF_USERS=LS;exports.Overlay=vg;exports.PageLayout=lO;exports.PasswordRules=ax;exports.Pill=Wm;exports.ProfilePicture=oa;exports.ProgressBar=Vm;exports.Rating=sx;exports.ResponsesHeading=FO;exports.ResponsiveImage=qp;exports.SearchForm=ig;exports.StatusBanner=Vo;exports.Tags=dO;exports.Tooltip=Em;exports.UserContext=Fn;exports.UserProvider=XT;exports.VisuallyHidden=Je;exports.addAriaProps=_g;exports.getMember=ru;exports.headerData=zi;exports.useEffectAfterMount=Jr;exports.useFeatureFlag=qE;exports.useScreenWidth=Ji;exports.useScrollListener=Pp;exports.useScrollToHash=WE;