@apolitical/component-library 1.8.0 → 1.8.1-beta.1

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 (44) hide show
  1. package/4TNE5QTO-f43be2ee.js +987 -0
  2. package/4TNE5QTO-fa22459d.mjs +9078 -0
  3. package/context/index.d.ts +1 -0
  4. package/context/react-query/index.d.ts +1 -0
  5. package/context/react-query/react-query.provider.d.ts +7 -0
  6. package/context/user/user.context.d.ts +2 -0
  7. package/discussion/components/add-post/add-post.d.ts +16 -0
  8. package/discussion/components/add-post/index.d.ts +1 -0
  9. package/discussion/{form → components/form}/form.d.ts +1 -1
  10. package/discussion/components/index.d.ts +7 -0
  11. package/discussion/{likes → components/likes}/likes.d.ts +3 -3
  12. package/discussion/{likes → components/likes}/likes.helpers.d.ts +1 -1
  13. package/discussion/{post → components/post}/post.d.ts +1 -1
  14. package/discussion/feeds/activities-feed/activities-feed.d.ts +24 -0
  15. package/discussion/feeds/activities-feed/activities-feed.handlers.d.ts +28 -0
  16. package/discussion/feeds/activities-feed/activities-feed.helpers.d.ts +23 -0
  17. package/discussion/feeds/activities-feed/activities-feed.mock.d.ts +318 -0
  18. package/discussion/feeds/activities-feed/index.d.ts +1 -0
  19. package/discussion/feeds/index.d.ts +2 -0
  20. package/discussion/feeds/replies-feed/index.d.ts +1 -0
  21. package/discussion/feeds/replies-feed/replies-feed.d.ts +24 -0
  22. package/discussion/feeds/replies-feed/replies-feed.handlers.d.ts +81 -0
  23. package/discussion/feeds/replies-feed/replies-feed.mock.d.ts +2 -0
  24. package/discussion/index.d.ts +3 -6
  25. package/discussion/sections/activity-section/activity-section.d.ts +32 -0
  26. package/discussion/sections/activity-section/activity-section.handlers.d.ts +58 -0
  27. package/discussion/sections/activity-section/activity.mock.d.ts +2 -0
  28. package/discussion/sections/activity-section/index.d.ts +1 -0
  29. package/discussion/sections/index.d.ts +1 -0
  30. package/index-297b0b41.mjs +23340 -0
  31. package/index-9771dd05.js +101 -0
  32. package/index.js +1 -101
  33. package/index.mjs +79 -19591
  34. package/package.json +4 -1
  35. /package/discussion/{conversation → components/conversation}/conversation.d.ts +0 -0
  36. /package/discussion/{conversation → components/conversation}/index.d.ts +0 -0
  37. /package/discussion/{form → components/form}/index.d.ts +0 -0
  38. /package/discussion/{likes → components/likes}/index.d.ts +0 -0
  39. /package/discussion/{post → components/post}/index.d.ts +0 -0
  40. /package/discussion/{post → components/post}/post.mock.d.ts +0 -0
  41. /package/discussion/{responses-heading → components/responses-heading}/index.d.ts +0 -0
  42. /package/discussion/{responses-heading → components/responses-heading}/responses-heading.d.ts +0 -0
  43. /package/discussion/{thread → components/thread}/index.d.ts +0 -0
  44. /package/discussion/{thread → components/thread}/thread.d.ts +0 -0
@@ -0,0 +1,101 @@
1
+ "use strict";var Mu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var N=(e,t,r)=>(Mu(e,t,"read from private field"),r?r.call(e):t.get(e)),ie=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},J=(e,t,r,n)=>(Mu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var ca=(e,t,r,n)=>({set _(i){J(e,t,i,r)},get _(){return N(e,t,n)}}),ye=(e,t,r)=>(Mu(e,t,"access private method"),r);const $=require("react"),O=require("react/jsx-runtime"),ft=require("react-router-dom");function ME(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const pe=ME($);var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Js(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var cg={exports:{}};/*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")n.push(o);else if(Array.isArray(o)){if(o.length){var s=r.apply(null,o);s&&n.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var u in o)t.call(o,u)&&o[u]&&n.push(u)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(cg);var FE=cg.exports;const ae=_r(FE),DE=({element:e="span",showOnFocus:t=!0,children:r,...n})=>$.createElement(e,{...n,className:ae("hidden",{"show-on-focus":t}),children:r}),lt=$.memo(DE),BE=({element:e="span",children:t=null,...r})=>$.createElement(e,{...r,"aria-hidden":!0},t),Tf=$.memo(BE),ni=(e,t)=>{const r=$.useRef(!1);$.useEffect(()=>{r.current?e():r.current=!0},t)};/*!
6
+ * cookie
7
+ * Copyright(c) 2012-2014 Roman Shtylman
8
+ * Copyright(c) 2015 Douglas Christopher Wilson
9
+ * MIT Licensed
10
+ */var lg=$E,yh=jE,UE=Object.prototype.toString,la=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function $E(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var r={},n=t||{},i=n.decode||HE,o=0;o<e.length;){var a=e.indexOf("=",o);if(a===-1)break;var s=e.indexOf(";",o);if(s===-1)s=e.length;else if(s<a){o=e.lastIndexOf(";",a-1)+1;continue}var u=e.slice(o,a).trim();if(r[u]===void 0){var l=e.slice(a+1,s).trim();l.charCodeAt(0)===34&&(l=l.slice(1,-1)),r[u]=VE(l,i)}o=s+1}return r}function jE(e,t,r){var n=r||{},i=n.encode||qE;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!la.test(e))throw new TypeError("argument name is invalid");var o=i(t);if(o&&!la.test(o))throw new TypeError("argument val is invalid");var a=e+"="+o;if(n.maxAge!=null){var s=n.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");a+="; Max-Age="+Math.floor(s)}if(n.domain){if(!la.test(n.domain))throw new TypeError("option domain is invalid");a+="; Domain="+n.domain}if(n.path){if(!la.test(n.path))throw new TypeError("option path is invalid");a+="; Path="+n.path}if(n.expires){var u=n.expires;if(!GE(u)||isNaN(u.valueOf()))throw new TypeError("option expires is invalid");a+="; Expires="+u.toUTCString()}if(n.httpOnly&&(a+="; HttpOnly"),n.secure&&(a+="; Secure"),n.priority){var l=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(l){case"low":a+="; Priority=Low";break;case"medium":a+="; Priority=Medium";break;case"high":a+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){var c=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(c){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a}function HE(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function qE(e){return encodeURIComponent(e)}function GE(e){return UE.call(e)==="[object Date]"||e instanceof Date}function VE(e,t){try{return t(e)}catch{return e}}function WE(){return typeof document=="object"&&typeof document.cookie=="string"}function zE(e){return typeof e=="string"?lg(e):typeof e=="object"&&e!==null?e:{}}function Fu(e,t={}){const r=QE(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function QE(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class fg{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=lg(document.cookie),this._checkChanges(i)};const n=typeof document>"u"?"":document.cookie;this.cookies=zE(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=WE()}_emitChange(t){for(let r=0;r<this.changeListeners.length;++r)this.changeListeners[r](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(n=>{t[n]!==this.cookies[n]&&this._emitChange({name:n,value:Fu(t[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),Fu(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=Fu(this.cookies[n],t);return r}set(t,r,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const i=typeof r=="string"?r:JSON.stringify(r);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=yh(t,i,n)),this._emitChange({name:t,value:r,options:n})}remove(t,r){const n=r=Object.assign(Object.assign({},r),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=yh(t,"",n)),this._emitChange({name:t,value:void 0,options:r})}addChangeListener(t){this.changeListeners.push(t),this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const r=this.changeListeners.indexOf(t);r>=0&&this.changeListeners.splice(r,1),this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const hg=pe.createContext(new fg),{Provider:YE,Consumer:tI}=hg,KE=hg;class XE extends pe.Component{constructor(t){super(t),t.cookies?this.cookies=t.cookies:this.cookies=new fg(void 0,t.defaultSetOptions)}render(){return pe.createElement(YE,{value:this.cookies},this.props.children)}}var Al={exports:{}},Le={};/** @license React v16.13.1
11
+ * react-is.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var vh;function JE(){if(vh)return Le;vh=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,E=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 u:case l:case n:case o:case i:case d:return w;default:switch(w=w&&w.$$typeof,w){case s:case c:case p:case f:case a:return w;default:return P}}case r:return P}}}function T(w){return b(w)===l}return Le.AsyncMode=u,Le.ConcurrentMode=l,Le.ContextConsumer=s,Le.ContextProvider=a,Le.Element=t,Le.ForwardRef=c,Le.Fragment=n,Le.Lazy=p,Le.Memo=f,Le.Portal=r,Le.Profiler=o,Le.StrictMode=i,Le.Suspense=d,Le.isAsyncMode=function(w){return T(w)||b(w)===u},Le.isConcurrentMode=T,Le.isContextConsumer=function(w){return b(w)===s},Le.isContextProvider=function(w){return b(w)===a},Le.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Le.isForwardRef=function(w){return b(w)===c},Le.isFragment=function(w){return b(w)===n},Le.isLazy=function(w){return b(w)===p},Le.isMemo=function(w){return b(w)===f},Le.isPortal=function(w){return b(w)===r},Le.isProfiler=function(w){return b(w)===o},Le.isStrictMode=function(w){return b(w)===i},Le.isSuspense=function(w){return b(w)===d},Le.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===l||w===o||w===i||w===d||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===p||w.$$typeof===f||w.$$typeof===a||w.$$typeof===s||w.$$typeof===c||w.$$typeof===_||w.$$typeof===S||w.$$typeof===E||w.$$typeof===m)},Le.typeOf=b,Le}var ke={};/** @license React v16.13.1
18
+ * react-is.development.js
19
+ *
20
+ * Copyright (c) Facebook, Inc. and its affiliates.
21
+ *
22
+ * This source code is licensed under the MIT license found in the
23
+ * LICENSE file in the root directory of this source tree.
24
+ */var Eh;function ZE(){return Eh||(Eh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function b(se){return typeof se=="string"||typeof se=="function"||se===n||se===l||se===o||se===i||se===d||se===h||typeof se=="object"&&se!==null&&(se.$$typeof===p||se.$$typeof===f||se.$$typeof===a||se.$$typeof===s||se.$$typeof===c||se.$$typeof===_||se.$$typeof===S||se.$$typeof===E||se.$$typeof===m)}function T(se){if(typeof se=="object"&&se!==null){var st=se.$$typeof;switch(st){case t:var Je=se.type;switch(Je){case u:case l:case n:case o:case i:case d:return Je;default:var Wt=Je&&Je.$$typeof;switch(Wt){case s:case c:case p:case f:case a:return Wt;default:return st}}case r:return st}}}var w=u,P=l,R=s,L=a,U=t,q=c,G=n,j=p,Y=f,re=r,K=o,M=i,z=d,Z=!1;function fe(se){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(se)||T(se)===u}function X(se){return T(se)===l}function te(se){return T(se)===s}function oe(se){return T(se)===a}function he(se){return typeof se=="object"&&se!==null&&se.$$typeof===t}function Ve(se){return T(se)===c}function ee(se){return T(se)===n}function ue(se){return T(se)===p}function De(se){return T(se)===f}function Ie(se){return T(se)===r}function xt(se){return T(se)===o}function Rt(se){return T(se)===i}function Vt(se){return T(se)===d}ke.AsyncMode=w,ke.ConcurrentMode=P,ke.ContextConsumer=R,ke.ContextProvider=L,ke.Element=U,ke.ForwardRef=q,ke.Fragment=G,ke.Lazy=j,ke.Memo=Y,ke.Portal=re,ke.Profiler=K,ke.StrictMode=M,ke.Suspense=z,ke.isAsyncMode=fe,ke.isConcurrentMode=X,ke.isContextConsumer=te,ke.isContextProvider=oe,ke.isElement=he,ke.isForwardRef=Ve,ke.isFragment=ee,ke.isLazy=ue,ke.isMemo=De,ke.isPortal=Ie,ke.isProfiler=xt,ke.isStrictMode=Rt,ke.isSuspense=Vt,ke.isValidElementType=b,ke.typeOf=T}()),ke}process.env.NODE_ENV==="production"?Al.exports=JE():Al.exports=ZE();var e_=Al.exports,dg=e_,t_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pg={};pg[dg.ForwardRef]=t_;pg[dg.Memo]=r_;function n_(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function mg(e){const t=$.useContext(KE);if(!t)throw new Error("Missing <CookiesProvider>");const[r,n]=$.useState(()=>t.getAll());n_()&&$.useLayoutEffect(()=>{function s(){const u=t.getAll({doNotUpdate:!0});i_(e||null,u,r)&&n(u)}return t.addChangeListener(s),()=>{t.removeChangeListener(s)}},[t,r]);const i=$.useMemo(()=>t.set.bind(t),[t]),o=$.useMemo(()=>t.remove.bind(t),[t]),a=$.useMemo(()=>t.update.bind(t),[t]);return[r,i,o,a]}function i_(e,t,r){if(!e)return!0;for(let n of e)if(t[n]!==r[n])return!0;return!1}var gg={exports:{}},Du={exports:{}},fa={},ha={exports:{}},Bu,_h;function yg(){return _h||(_h=1,Bu=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];return t.apply(r,i)}}),Bu}var Uu,bh;function ht(){if(bh)return Uu;bh=1;var e=yg(),t=Object.prototype.toString,r=function(M){return function(z){var Z=t.call(z);return M[Z]||(M[Z]=Z.slice(8,-1).toLowerCase())}}(Object.create(null));function n(M){return M=M.toLowerCase(),function(Z){return r(Z)===M}}function i(M){return Array.isArray(M)}function o(M){return typeof M>"u"}function a(M){return M!==null&&!o(M)&&M.constructor!==null&&!o(M.constructor)&&typeof M.constructor.isBuffer=="function"&&M.constructor.isBuffer(M)}var s=n("ArrayBuffer");function u(M){var z;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?z=ArrayBuffer.isView(M):z=M&&M.buffer&&s(M.buffer),z}function l(M){return typeof M=="string"}function c(M){return typeof M=="number"}function d(M){return M!==null&&typeof M=="object"}function h(M){if(r(M)!=="object")return!1;var z=Object.getPrototypeOf(M);return z===null||z===Object.prototype}var f=n("Date"),p=n("File"),m=n("Blob"),_=n("FileList");function S(M){return t.call(M)==="[object Function]"}function E(M){return d(M)&&S(M.pipe)}function b(M){var z="[object FormData]";return M&&(typeof FormData=="function"&&M instanceof FormData||t.call(M)===z||S(M.toString)&&M.toString()===z)}var T=n("URLSearchParams");function w(M){return M.trim?M.trim():M.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 R(M,z){if(!(M===null||typeof M>"u"))if(typeof M!="object"&&(M=[M]),i(M))for(var Z=0,fe=M.length;Z<fe;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 L(){var M={};function z(X,te){h(M[te])&&h(X)?M[te]=L(M[te],X):h(X)?M[te]=L({},X):i(X)?M[te]=X.slice():M[te]=X}for(var Z=0,fe=arguments.length;Z<fe;Z++)R(arguments[Z],z);return M}function U(M,z,Z){return R(z,function(X,te){Z&&typeof X=="function"?M[te]=e(X,Z):M[te]=X}),M}function q(M){return M.charCodeAt(0)===65279&&(M=M.slice(1)),M}function G(M,z,Z,fe){M.prototype=Object.create(z.prototype,fe),M.prototype.constructor=M,Z&&Object.assign(M.prototype,Z)}function j(M,z,Z){var fe,X,te,oe={};z=z||{};do{for(fe=Object.getOwnPropertyNames(M),X=fe.length;X-- >0;)te=fe[X],oe[te]||(z[te]=M[te],oe[te]=!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 fe=M.indexOf(z,Z);return fe!==-1&&fe===Z}function re(M){if(!M)return null;var z=M.length;if(o(z))return null;for(var Z=new Array(z);z-- >0;)Z[z]=M[z];return Z}var K=function(M){return function(z){return M&&z instanceof M}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return Uu={isArray:i,isArrayBuffer:s,isBuffer:a,isFormData:b,isArrayBufferView:u,isString:l,isNumber:c,isObject:d,isPlainObject:h,isUndefined:o,isDate:f,isFile:p,isBlob:m,isFunction:S,isStream:E,isURLSearchParams:T,isStandardBrowserEnv:P,forEach:R,merge:L,extend:U,trim:w,stripBOM:q,inherits:G,toFlatObject:j,kindOf:r,kindOfTest:n,endsWith:Y,toArray:re,isTypedArray:K,isFileList:_},Uu}var $u,wh;function vg(){if(wh)return $u;wh=1;var e=ht();function t(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return $u=function(n,i,o){if(!i)return n;var a;if(o)a=o(i);else if(e.isURLSearchParams(i))a=i.toString();else{var s=[];e.forEach(i,function(c,d){c===null||typeof c>"u"||(e.isArray(c)?d=d+"[]":c=[c],e.forEach(c,function(f){e.isDate(f)?f=f.toISOString():e.isObject(f)&&(f=JSON.stringify(f)),s.push(t(d)+"="+t(f))}))}),a=s.join("&")}if(a){var u=n.indexOf("#");u!==-1&&(n=n.slice(0,u)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n},$u}var ju,Sh;function o_(){if(Sh)return ju;Sh=1;var e=ht();function t(){this.handlers=[]}return t.prototype.use=function(n,i,o){return this.handlers.push({fulfilled:n,rejected:i,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1},t.prototype.eject=function(n){this.handlers[n]&&(this.handlers[n]=null)},t.prototype.forEach=function(n){e.forEach(this.handlers,function(o){o!==null&&n(o)})},ju=t,ju}var Hu,Th;function s_(){if(Th)return Hu;Th=1;var e=ht();return Hu=function(r,n){e.forEach(r,function(o,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(r[n]=o,delete r[a])})},Hu}var qu,xh;function co(){if(xh)return qu;xh=1;var e=ht();function t(i,o,a,s,u){Error.call(this),this.message=i,this.name="AxiosError",o&&(this.code=o),a&&(this.config=a),s&&(this.request=s),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 r=t.prototype,n={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(i){n[i]={value:i}}),Object.defineProperties(t,n),Object.defineProperty(r,"isAxiosError",{value:!0}),t.from=function(i,o,a,s,u,l){var c=Object.create(r);return e.toFlatObject(i,c,function(h){return h!==Error.prototype}),t.call(c,i.message,o,a,s,u),c.name=i.name,l&&Object.assign(c,l),c},qu=t,qu}var Gu,Oh;function Eg(){return Oh||(Oh=1,Gu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),Gu}var Vu,Ah;function _g(){if(Ah)return Vu;Ah=1;var e=ht();function t(r,n){n=n||new FormData;var i=[];function o(s){return s===null?"":e.isDate(s)?s.toISOString():e.isArrayBuffer(s)||e.isTypedArray(s)?typeof Blob=="function"?new Blob([s]):Buffer.from(s):s}function a(s,u){if(e.isPlainObject(s)||e.isArray(s)){if(i.indexOf(s)!==-1)throw Error("Circular reference detected in "+u);i.push(s),e.forEach(s,function(c,d){if(!e.isUndefined(c)){var h=u?u+"."+d:d,f;if(c&&!u&&typeof c=="object"){if(e.endsWith(d,"{}"))c=JSON.stringify(c);else if(e.endsWith(d,"[]")&&(f=e.toArray(c))){f.forEach(function(p){!e.isUndefined(p)&&n.append(h,o(p))});return}}a(c,h)}}),i.pop()}else n.append(u,o(s))}return a(r),n}return Vu=t,Vu}var Wu,Ch;function a_(){if(Ch)return Wu;Ch=1;var e=co();return Wu=function(r,n,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(new e("Request failed with status code "+i.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},Wu}var zu,Rh;function u_(){if(Rh)return zu;Rh=1;var e=ht();return zu=e.isStandardBrowserEnv()?function(){return{write:function(n,i,o,a,s,u){var l=[];l.push(n+"="+encodeURIComponent(i)),e.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),zu}var Qu,Ph;function c_(){return Ph||(Ph=1,Qu=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Qu}var Yu,Nh;function l_(){return Nh||(Nh=1,Yu=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),Yu}var Ku,Ih;function bg(){if(Ih)return Ku;Ih=1;var e=c_(),t=l_();return Ku=function(n,i){return n&&!e(i)?t(n,i):i},Ku}var Xu,Lh;function f_(){if(Lh)return Xu;Lh=1;var e=ht(),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 Xu=function(n){var i={},o,a,s;return n&&e.forEach(n.split(`
25
+ `),function(l){if(s=l.indexOf(":"),o=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([a]):i[o]=i[o]?i[o]+", "+a:a}}),i},Xu}var Ju,kh;function h_(){if(kh)return Ju;kh=1;var e=ht();return Ju=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function o(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(s){var u=e.isString(s)?o(s):s;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),Ju}var Zu,Mh;function mu(){if(Mh)return Zu;Mh=1;var e=co(),t=ht();function r(n){e.call(this,n??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(r,e,{__CANCEL__:!0}),Zu=r,Zu}var ec,Fh;function d_(){return Fh||(Fh=1,ec=function(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}),ec}var tc,Dh;function Bh(){if(Dh)return tc;Dh=1;var e=ht(),t=a_(),r=u_(),n=vg(),i=bg(),o=f_(),a=h_(),s=Eg(),u=co(),l=mu(),c=d_();return tc=function(h){return new Promise(function(p,m){var _=h.data,S=h.headers,E=h.responseType,b;function T(){h.cancelToken&&h.cancelToken.unsubscribe(b),h.signal&&h.signal.removeEventListener("abort",b)}e.isFormData(_)&&e.isStandardBrowserEnv()&&delete S["Content-Type"];var w=new XMLHttpRequest;if(h.auth){var P=h.auth.username||"",R=h.auth.password?unescape(encodeURIComponent(h.auth.password)):"";S.Authorization="Basic "+btoa(P+":"+R)}var L=i(h.baseURL,h.url);w.open(h.method.toUpperCase(),n(L,h.params,h.paramsSerializer),!0),w.timeout=h.timeout;function U(){if(w){var j="getAllResponseHeaders"in w?o(w.getAllResponseHeaders()):null,Y=!E||E==="text"||E==="json"?w.responseText:w.response,re={data:Y,status:w.status,statusText:w.statusText,headers:j,config:h,request:w};t(function(M){p(M),T()},function(M){m(M),T()},re),w=null}}if("onloadend"in w?w.onloadend=U:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(U)},w.onabort=function(){w&&(m(new u("Request aborted",u.ECONNABORTED,h,w)),w=null)},w.onerror=function(){m(new u("Network Error",u.ERR_NETWORK,h,w,w)),w=null},w.ontimeout=function(){var Y=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded",re=h.transitional||s;h.timeoutErrorMessage&&(Y=h.timeoutErrorMessage),m(new u(Y,re.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,h,w)),w=null},e.isStandardBrowserEnv()){var q=(h.withCredentials||a(L))&&h.xsrfCookieName?r.read(h.xsrfCookieName):void 0;q&&(S[h.xsrfHeaderName]=q)}"setRequestHeader"in w&&e.forEach(S,function(Y,re){typeof _>"u"&&re.toLowerCase()==="content-type"?delete S[re]:w.setRequestHeader(re,Y)}),e.isUndefined(h.withCredentials)||(w.withCredentials=!!h.withCredentials),E&&E!=="json"&&(w.responseType=h.responseType),typeof h.onDownloadProgress=="function"&&w.addEventListener("progress",h.onDownloadProgress),typeof h.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",h.onUploadProgress),(h.cancelToken||h.signal)&&(b=function(j){w&&(m(!j||j&&j.type?new l:j),w.abort(),w=null)},h.cancelToken&&h.cancelToken.subscribe(b),h.signal&&(h.signal.aborted?b():h.signal.addEventListener("abort",b))),_||(_=null);var G=c(L);if(G&&["http","https","file"].indexOf(G)===-1){m(new u("Unsupported protocol "+G+":",u.ERR_BAD_REQUEST,h));return}w.send(_)})},tc}var rc,Uh;function p_(){return Uh||(Uh=1,rc=null),rc}var nc,$h;function xf(){if($h)return nc;$h=1;var e=ht(),t=s_(),r=co(),n=Eg(),i=_g(),o={"Content-Type":"application/x-www-form-urlencoded"};function a(c,d){!e.isUndefined(c)&&e.isUndefined(c["Content-Type"])&&(c["Content-Type"]=d)}function s(){var c;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(c=Bh()),c}function u(c,d,h){if(e.isString(c))try{return(d||JSON.parse)(c),e.trim(c)}catch(f){if(f.name!=="SyntaxError")throw f}return(h||JSON.stringify)(c)}var l={transitional:n,adapter:s(),transformRequest:[function(d,h){if(t(h,"Accept"),t(h,"Content-Type"),e.isFormData(d)||e.isArrayBuffer(d)||e.isBuffer(d)||e.isStream(d)||e.isFile(d)||e.isBlob(d))return d;if(e.isArrayBufferView(d))return d.buffer;if(e.isURLSearchParams(d))return a(h,"application/x-www-form-urlencoded;charset=utf-8"),d.toString();var f=e.isObject(d),p=h&&h["Content-Type"],m;if((m=e.isFileList(d))||f&&p==="multipart/form-data"){var _=this.env&&this.env.FormData;return i(m?{"files[]":d}:d,_&&new _)}else if(f||p==="application/json")return a(h,"application/json"),u(d);return d}],transformResponse:[function(d){var h=this.transitional||l.transitional,f=h&&h.silentJSONParsing,p=h&&h.forcedJSONParsing,m=!f&&this.responseType==="json";if(m||p&&e.isString(d)&&d.length)try{return JSON.parse(d)}catch(_){if(m)throw _.name==="SyntaxError"?r.from(_,r.ERR_BAD_RESPONSE,this,null,this.response):_}return d}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:p_()},validateStatus:function(d){return d>=200&&d<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(d){l.headers[d]={}}),e.forEach(["post","put","patch"],function(d){l.headers[d]=e.merge(o)}),nc=l,nc}var ic,jh;function m_(){if(jh)return ic;jh=1;var e=ht(),t=xf();return ic=function(n,i,o){var a=this||t;return e.forEach(o,function(u){n=u.call(a,n,i)}),n},ic}var oc,Hh;function wg(){return Hh||(Hh=1,oc=function(t){return!!(t&&t.__CANCEL__)}),oc}var sc,qh;function g_(){if(qh)return sc;qh=1;var e=ht(),t=m_(),r=wg(),n=xf(),i=mu();function o(a){if(a.cancelToken&&a.cancelToken.throwIfRequested(),a.signal&&a.signal.aborted)throw new i}return sc=function(s){o(s),s.headers=s.headers||{},s.data=t.call(s,s.data,s.headers,s.transformRequest),s.headers=e.merge(s.headers.common||{},s.headers[s.method]||{},s.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(c){delete s.headers[c]});var u=s.adapter||n.adapter;return u(s).then(function(c){return o(s),c.data=t.call(s,c.data,c.headers,s.transformResponse),c},function(c){return r(c)||(o(s),c&&c.response&&(c.response.data=t.call(s,c.response.data,c.response.headers,s.transformResponse))),Promise.reject(c)})},sc}var ac,Gh;function Sg(){if(Gh)return ac;Gh=1;var e=ht();return ac=function(r,n){n=n||{};var i={};function o(d,h){return e.isPlainObject(d)&&e.isPlainObject(h)?e.merge(d,h):e.isPlainObject(h)?e.merge({},h):e.isArray(h)?h.slice():h}function a(d){if(e.isUndefined(n[d])){if(!e.isUndefined(r[d]))return o(void 0,r[d])}else return o(r[d],n[d])}function s(d){if(!e.isUndefined(n[d]))return o(void 0,n[d])}function u(d){if(e.isUndefined(n[d])){if(!e.isUndefined(r[d]))return o(void 0,r[d])}else return o(void 0,n[d])}function l(d){if(d in n)return o(r[d],n[d]);if(d in r)return o(void 0,r[d])}var c={url:s,method:s,data:s,baseURL: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:l};return e.forEach(Object.keys(r).concat(Object.keys(n)),function(h){var f=c[h]||a,p=f(h);e.isUndefined(p)&&f!==l||(i[h]=p)}),i},ac}var uc,Vh;function Tg(){return Vh||(Vh=1,uc={version:"0.27.2"}),uc}var cc,Wh;function y_(){if(Wh)return cc;Wh=1;var e=Tg().version,t=co(),r={};["object","boolean","number","function","string","symbol"].forEach(function(o,a){r[o]=function(u){return typeof u===o||"a"+(a<1?"n ":" ")+o}});var n={};r.transitional=function(a,s,u){function l(c,d){return"[Axios v"+e+"] Transitional option '"+c+"'"+d+(u?". "+u:"")}return function(c,d,h){if(a===!1)throw new t(l(d," has been removed"+(s?" in "+s:"")),t.ERR_DEPRECATED);return s&&!n[d]&&(n[d]=!0,console.warn(l(d," has been deprecated since v"+s+" and will be removed in the near future"))),a?a(c,d,h):!0}};function i(o,a,s){if(typeof o!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var u=Object.keys(o),l=u.length;l-- >0;){var c=u[l],d=a[c];if(d){var h=o[c],f=h===void 0||d(h,c,o);if(f!==!0)throw new t("option "+c+" must be "+f,t.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new t("Unknown option "+c,t.ERR_BAD_OPTION)}}return cc={assertOptions:i,validators:r},cc}var lc,zh;function v_(){if(zh)return lc;zh=1;var e=ht(),t=vg(),r=o_(),n=g_(),i=Sg(),o=bg(),a=y_(),s=a.validators;function u(l){this.defaults=l,this.interceptors={request:new r,response:new r}}return u.prototype.request=function(c,d){typeof c=="string"?(d=d||{},d.url=c):d=c||{},d=i(this.defaults,d),d.method?d.method=d.method.toLowerCase():this.defaults.method?d.method=this.defaults.method.toLowerCase():d.method="get";var h=d.transitional;h!==void 0&&a.assertOptions(h,{silentJSONParsing:s.transitional(s.boolean),forcedJSONParsing:s.transitional(s.boolean),clarifyTimeoutError:s.transitional(s.boolean)},!1);var f=[],p=!0;this.interceptors.request.forEach(function(P){typeof P.runWhen=="function"&&P.runWhen(d)===!1||(p=p&&P.synchronous,f.unshift(P.fulfilled,P.rejected))});var m=[];this.interceptors.response.forEach(function(P){m.push(P.fulfilled,P.rejected)});var _;if(!p){var S=[n,void 0];for(Array.prototype.unshift.apply(S,f),S=S.concat(m),_=Promise.resolve(d);S.length;)_=_.then(S.shift(),S.shift());return _}for(var E=d;f.length;){var b=f.shift(),T=f.shift();try{E=b(E)}catch(w){T(w);break}}try{_=n(E)}catch(w){return Promise.reject(w)}for(;m.length;)_=_.then(m.shift(),m.shift());return _},u.prototype.getUri=function(c){c=i(this.defaults,c);var d=o(c.baseURL,c.url);return t(d,c.params,c.paramsSerializer)},e.forEach(["delete","get","head","options"],function(c){u.prototype[c]=function(d,h){return this.request(i(h||{},{method:c,url:d,data:(h||{}).data}))}}),e.forEach(["post","put","patch"],function(c){function d(h){return function(p,m,_){return this.request(i(_||{},{method:c,headers:h?{"Content-Type":"multipart/form-data"}:{},url:p,data:m}))}}u.prototype[c]=d(),u.prototype[c+"Form"]=d(!0)}),lc=u,lc}var fc,Qh;function E_(){if(Qh)return fc;Qh=1;var e=mu();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(o){if(i._listeners){var a,s=i._listeners.length;for(a=0;a<s;a++)i._listeners[a](o);i._listeners=null}}),this.promise.then=function(o){var a,s=new Promise(function(u){i.subscribe(u),a=u}).then(o);return s.cancel=function(){i.unsubscribe(a)},s},r(function(a){i.reason||(i.reason=new e(a),n(i.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},t.prototype.unsubscribe=function(n){if(this._listeners){var i=this._listeners.indexOf(n);i!==-1&&this._listeners.splice(i,1)}},t.source=function(){var n,i=new t(function(a){n=a});return{token:i,cancel:n}},fc=t,fc}var hc,Yh;function __(){return Yh||(Yh=1,hc=function(t){return function(n){return t.apply(null,n)}}),hc}var dc,Kh;function b_(){if(Kh)return dc;Kh=1;var e=ht();return dc=function(r){return e.isObject(r)&&r.isAxiosError===!0},dc}var Xh;function w_(){if(Xh)return ha.exports;Xh=1;var e=ht(),t=yg(),r=v_(),n=Sg(),i=xf();function o(s){var u=new r(s),l=t(r.prototype.request,u);return e.extend(l,r.prototype,u),e.extend(l,u),l.create=function(d){return o(n(s,d))},l}var a=o(i);return a.Axios=r,a.CanceledError=mu(),a.CancelToken=E_(),a.isCancel=wg(),a.VERSION=Tg().version,a.toFormData=_g(),a.AxiosError=co(),a.Cancel=a.CanceledError,a.all=function(u){return Promise.all(u)},a.spread=__(),a.isAxiosError=b_(),ha.exports=a,ha.exports.default=a,ha.exports}var pc,Jh;function xg(){return Jh||(Jh=1,pc=w_()),pc}var S_=Function.prototype.toString,mc=Object.create,T_=Object.defineProperty,x_=Object.getOwnPropertyDescriptor,Zh=Object.getOwnPropertyNames,Of=Object.getOwnPropertySymbols,O_=Object.getPrototypeOf,Og=Object.prototype,A_=Og.hasOwnProperty,C_=Og.propertyIsEnumerable,Ag=typeof Of=="function",R_=typeof WeakMap=="function",P_=function(){if(R_)return function(){return new WeakMap};var e=function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(r){return!!~this._keys.indexOf(r)},t.prototype.get=function(r){return this._values[this._keys.indexOf(r)]},t.prototype.set=function(r,n){this._keys.push(r),this._values.push(n)},t}();return function(){return new e}}(),Cg=function(e,t){var r=e.__proto__||O_(e);if(!r)return mc(null);var n=r.constructor;if(n===t.Object)return r===t.Object.prototype?{}:mc(r);if(~S_.call(n).indexOf("[native code]"))try{return new n}catch{}return mc(r)},N_=function(e,t,r,n){var i=Cg(e,t);n.set(e,i);for(var o in e)A_.call(e,o)&&(i[o]=r(e[o],n));if(Ag)for(var a=Of(e),s=0,u=a.length,l=void 0;s<u;++s)l=a[s],C_.call(e,l)&&(i[l]=r(e[l],n));return i},ed=function(e,t,r,n){var i=Cg(e,t);n.set(e,i);for(var o=Ag?Zh(e).concat(Of(e)):Zh(e),a=0,s=o.length,u=void 0,l=void 0;a<s;++a)if(u=o[a],u!=="callee"&&u!=="caller")if(l=x_(e,u),l){!l.get&&!l.set&&(l.value=r(e[u],n));try{T_(i,u,l)}catch{i[u]=l.value}}else i[u]=r(e[u],n);return i},I_=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},L_=Array.isArray,k_=Object.getPrototypeOf,M_=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 mn(e,t){var r=!!(t&&t.isStrict),n=t&&t.realm||M_,i=r?ed:N_,o=function(a,s){if(!a||typeof a!="object")return a;if(s.has(a))return s.get(a);var u=a.__proto__||k_(a),l=u&&u.constructor;if(!l||l===n.Object)return i(a,n,o,s);var c;if(L_(a)){if(r)return ed(a,n,o,s);c=new l,s.set(a,c);for(var d=0,h=a.length;d<h;++d)c[d]=o(a[d],s);return c}if(a instanceof n.Date)return new l(a.getTime());if(a instanceof n.RegExp)return c=new l(a.source,a.flags||I_(a)),c.lastIndex=a.lastIndex,c;if(n.Map&&a instanceof n.Map)return c=new l,s.set(a,c),a.forEach(function(f,p){c.set(p,o(f,s))}),c;if(n.Set&&a instanceof n.Set)return c=new l,s.set(a,c),a.forEach(function(f){c.add(o(f,s))}),c;if(n.Blob&&a instanceof n.Blob)return a.slice(0,a.size,a.type);if(n.Buffer&&n.Buffer.isBuffer(a))return c=n.Buffer.allocUnsafe?n.Buffer.allocUnsafe(a.length):new l(a.length),s.set(a,c),a.copy(c),c;if(n.ArrayBuffer){if(n.ArrayBuffer.isView(a))return c=new l(a.buffer.slice(0)),s.set(a,c),c;if(a instanceof n.ArrayBuffer)return c=a.slice(0),s.set(a,c),c}return typeof a.then=="function"||a instanceof Error||n.WeakMap&&a instanceof n.WeakMap||n.WeakSet&&a instanceof n.WeakSet?a:i(a,n,o,s)};return o(e,P_())}mn.default=mn;mn.strict=function(t,r){return mn(t,{isStrict:!0,realm:r?r.realm:void 0})};var F_=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0},td=typeof Symbol<"u"&&Symbol,D_=F_,B_=function(){return typeof td!="function"||typeof Symbol!="function"||typeof td("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:D_()},rd={foo:{}},U_=Object,$_=function(){return{__proto__:rd}.foo===rd.foo&&!({__proto__:null}instanceof U_)},j_="Function.prototype.bind called on incompatible ",H_=Object.prototype.toString,q_=Math.max,G_="[object Function]",nd=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var o=0;o<r.length;o+=1)n[o+t.length]=r[o];return n},V_=function(t,r){for(var n=[],i=r||0,o=0;i<t.length;i+=1,o+=1)n[o]=t[i];return n},W_=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},z_=function(t){var r=this;if(typeof r!="function"||H_.apply(r)!==G_)throw new TypeError(j_+r);for(var n=V_(arguments,1),i,o=function(){if(this instanceof i){var c=r.apply(this,nd(n,arguments));return Object(c)===c?c:this}return r.apply(t,nd(n,arguments))},a=q_(0,r.length-n.length),s=[],u=0;u<a;u++)s[u]="$"+u;if(i=Function("binder","return function ("+W_(s,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var l=function(){};l.prototype=r.prototype,i.prototype=new l,l.prototype=null}return i},Q_=z_,Af=Function.prototype.bind||Q_,Y_=Function.prototype.call,K_=Object.prototype.hasOwnProperty,X_=Af,J_=X_.call(Y_,K_),we,ro=SyntaxError,Rg=Function,Li=TypeError,gc=function(e){try{return Rg('"use strict"; return ('+e+").constructor;")()}catch{}},ti=Object.getOwnPropertyDescriptor;if(ti)try{ti({},"")}catch{ti=null}var yc=function(){throw new Li},Z_=ti?function(){try{return arguments.callee,yc}catch{try{return ti(arguments,"callee").get}catch{return yc}}}():yc,xi=B_(),eb=$_(),ot=Object.getPrototypeOf||(eb?function(e){return e.__proto__}:null),Pi={},tb=typeof Uint8Array>"u"||!ot?we:ot(Uint8Array),ri={"%AggregateError%":typeof AggregateError>"u"?we:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?we:ArrayBuffer,"%ArrayIteratorPrototype%":xi&&ot?ot([][Symbol.iterator]()):we,"%AsyncFromSyncIteratorPrototype%":we,"%AsyncFunction%":Pi,"%AsyncGenerator%":Pi,"%AsyncGeneratorFunction%":Pi,"%AsyncIteratorPrototype%":Pi,"%Atomics%":typeof Atomics>"u"?we:Atomics,"%BigInt%":typeof BigInt>"u"?we:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?we:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?we:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?we:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?we:Float32Array,"%Float64Array%":typeof Float64Array>"u"?we:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?we:FinalizationRegistry,"%Function%":Rg,"%GeneratorFunction%":Pi,"%Int8Array%":typeof Int8Array>"u"?we:Int8Array,"%Int16Array%":typeof Int16Array>"u"?we:Int16Array,"%Int32Array%":typeof Int32Array>"u"?we:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xi&&ot?ot(ot([][Symbol.iterator]())):we,"%JSON%":typeof JSON=="object"?JSON:we,"%Map%":typeof Map>"u"?we:Map,"%MapIteratorPrototype%":typeof Map>"u"||!xi||!ot?we:ot(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?we:Promise,"%Proxy%":typeof Proxy>"u"?we:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?we:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?we:Set,"%SetIteratorPrototype%":typeof Set>"u"||!xi||!ot?we:ot(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?we:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xi&&ot?ot(""[Symbol.iterator]()):we,"%Symbol%":xi?Symbol:we,"%SyntaxError%":ro,"%ThrowTypeError%":Z_,"%TypedArray%":tb,"%TypeError%":Li,"%Uint8Array%":typeof Uint8Array>"u"?we:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?we:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?we:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?we:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?we:WeakMap,"%WeakRef%":typeof WeakRef>"u"?we:WeakRef,"%WeakSet%":typeof WeakSet>"u"?we:WeakSet};if(ot)try{null.error}catch(e){var rb=ot(ot(e));ri["%Error.prototype%"]=rb}var nb=function e(t){var r;if(t==="%AsyncFunction%")r=gc("async function () {}");else if(t==="%GeneratorFunction%")r=gc("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=gc("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&ot&&(r=ot(i.prototype))}return ri[t]=r,r},id={"%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"]},Zs=Af,Va=J_,ib=Zs.call(Function.call,Array.prototype.concat),ob=Zs.call(Function.apply,Array.prototype.splice),od=Zs.call(Function.call,String.prototype.replace),Wa=Zs.call(Function.call,String.prototype.slice),sb=Zs.call(Function.call,RegExp.prototype.exec),ab=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ub=/\\(\\)?/g,cb=function(t){var r=Wa(t,0,1),n=Wa(t,-1);if(r==="%"&&n!=="%")throw new ro("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ro("invalid intrinsic syntax, expected opening `%`");var i=[];return od(t,ab,function(o,a,s,u){i[i.length]=s?od(u,ub,"$1"):a||o}),i},lb=function(t,r){var n=t,i;if(Va(id,n)&&(i=id[n],n="%"+i[0]+"%"),Va(ri,n)){var o=ri[n];if(o===Pi&&(o=nb(n)),typeof o>"u"&&!r)throw new Li("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new ro("intrinsic "+t+" does not exist!")},ai=function(t,r){if(typeof t!="string"||t.length===0)throw new Li("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Li('"allowMissing" argument must be a boolean');if(sb(/^%?[^%]*%?$/,t)===null)throw new ro("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=cb(t),i=n.length>0?n[0]:"",o=lb("%"+i+"%",r),a=o.name,s=o.value,u=!1,l=o.alias;l&&(i=l[0],ob(n,ib([0,1],l)));for(var c=1,d=!0;c<n.length;c+=1){var h=n[c],f=Wa(h,0,1),p=Wa(h,-1);if((f==='"'||f==="'"||f==="`"||p==='"'||p==="'"||p==="`")&&f!==p)throw new ro("property names with quotes must have matching quotes");if((h==="constructor"||!d)&&(u=!0),i+="."+h,a="%"+i+"%",Va(ri,a))s=ri[a];else if(s!=null){if(!(h in s)){if(!r)throw new Li("base intrinsic for "+t+" exists, but the property is not available.");return}if(ti&&c+1>=n.length){var m=ti(s,h);d=!!m,d&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[h]}else d=Va(s,h),s=s[h];d&&!u&&(ri[a]=s)}}return s},Pg={exports:{}},fb=ai,Cl=fb("%Object.defineProperty%",!0),Rl=function(){if(Cl)try{return Cl({},"a",{value:1}),!0}catch{return!1}return!1};Rl.hasArrayLengthDefineBug=function(){if(!Rl())return null;try{return Cl([],"length",{value:1}).length!==1}catch{return!0}};var Ng=Rl,hb=ai,Ua=hb("%Object.getOwnPropertyDescriptor%",!0);if(Ua)try{Ua([],"length")}catch{Ua=null}var Ig=Ua,db=Ng(),Cf=ai,ws=db&&Cf("%Object.defineProperty%",!0);if(ws)try{ws({},"a",{value:1})}catch{ws=!1}var pb=Cf("%SyntaxError%"),Oi=Cf("%TypeError%"),sd=Ig,mb=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Oi("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Oi("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Oi("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Oi("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Oi("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Oi("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!sd&&sd(t,r);if(ws)ws(t,r,{configurable:a===null&&u?u.configurable:!a,enumerable:i===null&&u?u.enumerable:!i,value:n,writable:o===null&&u?u.writable:!o});else if(s||!i&&!o&&!a)t[r]=n;else throw new pb("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Lg=ai,ad=mb,gb=Ng(),ud=Ig,cd=Lg("%TypeError%"),yb=Lg("%Math.floor%"),vb=function(t,r){if(typeof t!="function")throw new cd("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||yb(r)!==r)throw new cd("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in t&&ud){var a=ud(t,"length");a&&!a.configurable&&(i=!1),a&&!a.writable&&(o=!1)}return(i||o||!n)&&(gb?ad(t,"length",r,!0,!0):ad(t,"length",r)),t};(function(e){var t=Af,r=ai,n=vb,i=r("%TypeError%"),o=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(a,o),u=r("%Object.defineProperty%",!0),l=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}e.exports=function(h){if(typeof h!="function")throw new i("a function is required");var f=s(t,a,arguments);return n(f,1+l(0,h.length-(arguments.length-1)),!0)};var c=function(){return s(t,o,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(Pg);var Eb=Pg.exports,kg=ai,Mg=Eb,_b=Mg(kg("String.prototype.indexOf")),bb=function(t,r){var n=kg(t,!!r);return typeof n=="function"&&_b(t,".prototype.")>-1?Mg(n):n};const wb={},Sb=Object.freeze(Object.defineProperty({__proto__:null,default:wb},Symbol.toStringTag,{value:"Module"})),Tb=Js(Sb);var Rf=typeof Map=="function"&&Map.prototype,vc=Object.getOwnPropertyDescriptor&&Rf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,za=Rf&&vc&&typeof vc.get=="function"?vc.get:null,ld=Rf&&Map.prototype.forEach,Pf=typeof Set=="function"&&Set.prototype,Ec=Object.getOwnPropertyDescriptor&&Pf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Qa=Pf&&Ec&&typeof Ec.get=="function"?Ec.get:null,fd=Pf&&Set.prototype.forEach,xb=typeof WeakMap=="function"&&WeakMap.prototype,Ss=xb?WeakMap.prototype.has:null,Ob=typeof WeakSet=="function"&&WeakSet.prototype,Ts=Ob?WeakSet.prototype.has:null,Ab=typeof WeakRef=="function"&&WeakRef.prototype,hd=Ab?WeakRef.prototype.deref:null,Cb=Boolean.prototype.valueOf,Rb=Object.prototype.toString,Pb=Function.prototype.toString,Nb=String.prototype.match,Nf=String.prototype.slice,ln=String.prototype.replace,Ib=String.prototype.toUpperCase,dd=String.prototype.toLowerCase,Fg=RegExp.prototype.test,pd=Array.prototype.concat,mr=Array.prototype.join,Lb=Array.prototype.slice,md=Math.floor,Pl=typeof BigInt=="function"?BigInt.prototype.valueOf:null,_c=Object.getOwnPropertySymbols,Nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,no=typeof Symbol=="function"&&typeof Symbol.iterator=="object",yt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===no||"symbol")?Symbol.toStringTag:null,Dg=Object.prototype.propertyIsEnumerable,gd=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function yd(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Fg.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-md(-e):md(e);if(n!==e){var i=String(n),o=Nf.call(t,i.length+1);return ln.call(i,r,"$&_")+"."+ln.call(ln.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ln.call(t,r,"$&_")}var Il=Tb,vd=Il.custom,Ed=Ug(vd)?vd:null,kb=function e(t,r,n,i){var o=r||{};if(en(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(en(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=en(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(en(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(en(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return jg(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return s?yd(t,u):u}if(typeof t=="bigint"){var l=String(t)+"n";return s?yd(t,l):l}var c=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return Ll(t)?"[Array]":"[Object]";var d=Jb(o,n);if(typeof i>"u")i=[];else if($g(i,t)>=0)return"[Circular]";function h(Y,re,K){if(re&&(i=Lb.call(i),i.push(re)),K){var M={depth:o.depth};return en(o,"quoteStyle")&&(M.quoteStyle=o.quoteStyle),e(Y,M,n+1,i)}return e(Y,o,n+1,i)}if(typeof t=="function"&&!_d(t)){var f=qb(t),p=da(t,h);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(p.length>0?" { "+mr.call(p,", ")+" }":"")}if(Ug(t)){var m=no?ln.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Nl.call(t);return typeof t=="object"&&!no?zo(m):m}if(Yb(t)){for(var _="<"+dd.call(String(t.nodeName)),S=t.attributes||[],E=0;E<S.length;E++)_+=" "+S[E].name+"="+Bg(Mb(S[E].value),"double",o);return _+=">",t.childNodes&&t.childNodes.length&&(_+="..."),_+="</"+dd.call(String(t.nodeName))+">",_}if(Ll(t)){if(t.length===0)return"[]";var b=da(t,h);return d&&!Xb(b)?"["+kl(b,d)+"]":"[ "+mr.call(b,", ")+" ]"}if(Db(t)){var T=da(t,h);return!("cause"in Error.prototype)&&"cause"in t&&!Dg.call(t,"cause")?"{ ["+String(t)+"] "+mr.call(pd.call("[cause]: "+h(t.cause),T),", ")+" }":T.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+mr.call(T,", ")+" }"}if(typeof t=="object"&&a){if(Ed&&typeof t[Ed]=="function"&&Il)return Il(t,{depth:c-n});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Gb(t)){var w=[];return ld&&ld.call(t,function(Y,re){w.push(h(re,t,!0)+" => "+h(Y,t))}),bd("Map",za.call(t),w,d)}if(zb(t)){var P=[];return fd&&fd.call(t,function(Y){P.push(h(Y,t))}),bd("Set",Qa.call(t),P,d)}if(Vb(t))return bc("WeakMap");if(Qb(t))return bc("WeakSet");if(Wb(t))return bc("WeakRef");if(Ub(t))return zo(h(Number(t)));if(jb(t))return zo(h(Pl.call(t)));if($b(t))return zo(Cb.call(t));if(Bb(t))return zo(h(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===de)return"{ [object globalThis] }";if(!Fb(t)&&!_d(t)){var R=da(t,h),L=gd?gd(t)===Object.prototype:t instanceof Object||t.constructor===Object,U=t instanceof Object?"":"null prototype",q=!L&&yt&&Object(t)===t&&yt in t?Nf.call(gn(t),8,-1):U?"Object":"",G=L||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",j=G+(q||U?"["+mr.call(pd.call([],q||[],U||[]),": ")+"] ":"");return R.length===0?j+"{}":d?j+"{"+kl(R,d)+"}":j+"{ "+mr.call(R,", ")+" }"}return String(t)};function Bg(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function Mb(e){return ln.call(String(e),/"/g,"&quot;")}function Ll(e){return gn(e)==="[object Array]"&&(!yt||!(typeof e=="object"&&yt in e))}function Fb(e){return gn(e)==="[object Date]"&&(!yt||!(typeof e=="object"&&yt in e))}function _d(e){return gn(e)==="[object RegExp]"&&(!yt||!(typeof e=="object"&&yt in e))}function Db(e){return gn(e)==="[object Error]"&&(!yt||!(typeof e=="object"&&yt in e))}function Bb(e){return gn(e)==="[object String]"&&(!yt||!(typeof e=="object"&&yt in e))}function Ub(e){return gn(e)==="[object Number]"&&(!yt||!(typeof e=="object"&&yt in e))}function $b(e){return gn(e)==="[object Boolean]"&&(!yt||!(typeof e=="object"&&yt in e))}function Ug(e){if(no)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Nl)return!1;try{return Nl.call(e),!0}catch{}return!1}function jb(e){if(!e||typeof e!="object"||!Pl)return!1;try{return Pl.call(e),!0}catch{}return!1}var Hb=Object.prototype.hasOwnProperty||function(e){return e in this};function en(e,t){return Hb.call(e,t)}function gn(e){return Rb.call(e)}function qb(e){if(e.name)return e.name;var t=Nb.call(Pb.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function $g(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Gb(e){if(!za||!e||typeof e!="object")return!1;try{za.call(e);try{Qa.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Vb(e){if(!Ss||!e||typeof e!="object")return!1;try{Ss.call(e,Ss);try{Ts.call(e,Ts)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Wb(e){if(!hd||!e||typeof e!="object")return!1;try{return hd.call(e),!0}catch{}return!1}function zb(e){if(!Qa||!e||typeof e!="object")return!1;try{Qa.call(e);try{za.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Qb(e){if(!Ts||!e||typeof e!="object")return!1;try{Ts.call(e,Ts);try{Ss.call(e,Ss)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Yb(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function jg(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return jg(Nf.call(e,0,t.maxStringLength),t)+n}var i=ln.call(ln.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Kb);return Bg(i,"single",t)}function Kb(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Ib.call(t.toString(16))}function zo(e){return"Object("+e+")"}function bc(e){return e+" { ? }"}function bd(e,t,r,n){var i=n?kl(r,n):mr.call(r,", ");return e+" ("+t+") {"+i+"}"}function Xb(e){for(var t=0;t<e.length;t++)if($g(e[t],`
26
+ `)>=0)return!1;return!0}function Jb(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=mr.call(Array(e.indent+1)," ");else return null;return{base:r,prev:mr.call(Array(t+1),r)}}function kl(e,t){if(e.length===0)return"";var r=`
27
+ `+t.prev+t.base;return r+mr.call(e,","+r)+`
28
+ `+t.prev}function da(e,t){var r=Ll(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=en(e,i)?t(e[i],e):""}var o=typeof _c=="function"?_c(e):[],a;if(no){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var u in e)en(e,u)&&(r&&String(Number(u))===u&&u<e.length||no&&a["$"+u]instanceof Symbol||(Fg.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if(typeof _c=="function")for(var l=0;l<o.length;l++)Dg.call(e,o[l])&&n.push("["+t(o[l])+"]: "+t(e[o[l]],e));return n}var If=ai,lo=bb,Zb=kb,ew=If("%TypeError%"),pa=If("%WeakMap%",!0),ma=If("%Map%",!0),tw=lo("WeakMap.prototype.get",!0),rw=lo("WeakMap.prototype.set",!0),nw=lo("WeakMap.prototype.has",!0),iw=lo("Map.prototype.get",!0),ow=lo("Map.prototype.set",!0),sw=lo("Map.prototype.has",!0),Lf=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},aw=function(e,t){var r=Lf(e,t);return r&&r.value},uw=function(e,t,r){var n=Lf(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},cw=function(e,t){return!!Lf(e,t)},lw=function(){var t,r,n,i={assert:function(o){if(!i.has(o))throw new ew("Side channel does not contain "+Zb(o))},get:function(o){if(pa&&o&&(typeof o=="object"||typeof o=="function")){if(t)return tw(t,o)}else if(ma){if(r)return iw(r,o)}else if(n)return aw(n,o)},has:function(o){if(pa&&o&&(typeof o=="object"||typeof o=="function")){if(t)return nw(t,o)}else if(ma){if(r)return sw(r,o)}else if(n)return cw(n,o);return!1},set:function(o,a){pa&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new pa),rw(t,o,a)):ma?(r||(r=new ma),ow(r,o,a)):(n||(n={key:{},next:null}),uw(n,o,a))}};return i},fw=String.prototype.replace,hw=/%20/g,wc={RFC1738:"RFC1738",RFC3986:"RFC3986"},kf={default:wc.RFC3986,formatters:{RFC1738:function(e){return fw.call(e,hw,"+")},RFC3986:function(e){return String(e)}},RFC1738:wc.RFC1738,RFC3986:wc.RFC3986},dw=kf,Sc=Object.prototype.hasOwnProperty,qn=Array.isArray,ar=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),pw=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(qn(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]<"u"&&i.push(n[o]);r.obj[r.prop]=i}}},Hg=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},mw=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(qn(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Sc.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return qn(t)&&!qn(r)&&(i=Hg(t,n)),qn(t)&&qn(r)?(r.forEach(function(o,a){if(Sc.call(t,a)){var s=t[a];s&&typeof s=="object"&&o&&typeof o=="object"?t[a]=e(s,o,n):t.push(o)}else t[a]=o}),t):Object.keys(r).reduce(function(o,a){var s=r[a];return Sc.call(o,a)?o[a]=e(o[a],s,n):o[a]=s,o},i)},gw=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},yw=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},vw=function(t,r,n,i,o){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var s="",u=0;u<a.length;++u){var l=a.charCodeAt(u);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===dw.RFC1738&&(l===40||l===41)){s+=a.charAt(u);continue}if(l<128){s=s+ar[l];continue}if(l<2048){s=s+(ar[192|l>>6]+ar[128|l&63]);continue}if(l<55296||l>=57344){s=s+(ar[224|l>>12]+ar[128|l>>6&63]+ar[128|l&63]);continue}u+=1,l=65536+((l&1023)<<10|a.charCodeAt(u)&1023),s+=ar[240|l>>18]+ar[128|l>>12&63]+ar[128|l>>6&63]+ar[128|l&63]}return s},Ew=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],a=o.obj[o.prop],s=Object.keys(a),u=0;u<s.length;++u){var l=s[u],c=a[l];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:a,prop:l}),n.push(c))}return pw(r),t},_w=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},bw=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},ww=function(t,r){return[].concat(t,r)},Sw=function(t,r){if(qn(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)},qg={arrayToObject:Hg,assign:gw,combine:ww,compact:Ew,decode:yw,encode:vw,isBuffer:bw,isRegExp:_w,maybeMap:Sw,merge:mw},Gg=lw,$a=qg,xs=kf,Tw=Object.prototype.hasOwnProperty,wd={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Fr=Array.isArray,xw=Array.prototype.push,Vg=function(e,t){xw.apply(e,Fr(t)?t:[t])},Ow=Date.prototype.toISOString,Sd=xs.default,pt={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:$a.encode,encodeValuesOnly:!1,format:Sd,formatter:xs.formatters[Sd],indices:!1,serializeDate:function(t){return Ow.call(t)},skipNulls:!1,strictNullHandling:!1},Aw=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Tc={},Cw=function e(t,r,n,i,o,a,s,u,l,c,d,h,f,p,m,_){for(var S=t,E=_,b=0,T=!1;(E=E.get(Tc))!==void 0&&!T;){var w=E.get(t);if(b+=1,typeof w<"u"){if(w===b)throw new RangeError("Cyclic object value");T=!0}typeof E.get(Tc)>"u"&&(b=0)}if(typeof u=="function"?S=u(r,S):S instanceof Date?S=d(S):n==="comma"&&Fr(S)&&(S=$a.maybeMap(S,function(M){return M instanceof Date?d(M):M})),S===null){if(o)return s&&!p?s(r,pt.encoder,m,"key",h):r;S=""}if(Aw(S)||$a.isBuffer(S)){if(s){var P=p?r:s(r,pt.encoder,m,"key",h);return[f(P)+"="+f(s(S,pt.encoder,m,"value",h))]}return[f(r)+"="+f(String(S))]}var R=[];if(typeof S>"u")return R;var L;if(n==="comma"&&Fr(S))p&&s&&(S=$a.maybeMap(S,s)),L=[{value:S.length>0?S.join(",")||null:void 0}];else if(Fr(u))L=u;else{var U=Object.keys(S);L=l?U.sort(l):U}for(var q=i&&Fr(S)&&S.length===1?r+"[]":r,G=0;G<L.length;++G){var j=L[G],Y=typeof j=="object"&&typeof j.value<"u"?j.value:S[j];if(!(a&&Y===null)){var re=Fr(S)?typeof n=="function"?n(q,j):q:q+(c?"."+j:"["+j+"]");_.set(t,b);var K=Gg();K.set(Tc,_),Vg(R,e(Y,re,n,i,o,a,n==="comma"&&p&&Fr(S)?null:s,u,l,c,d,h,f,p,m,K))}}return R},Rw=function(t){if(!t)return pt;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||pt.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=xs.default;if(typeof t.format<"u"){if(!Tw.call(xs.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=xs.formatters[n],o=pt.filter;return(typeof t.filter=="function"||Fr(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:pt.addQueryPrefix,allowDots:typeof t.allowDots>"u"?pt.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:pt.charsetSentinel,delimiter:typeof t.delimiter>"u"?pt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:pt.encode,encoder:typeof t.encoder=="function"?t.encoder:pt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:pt.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:pt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:pt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:pt.strictNullHandling}},Pw=function(e,t){var r=e,n=Rw(t),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Fr(n.filter)&&(o=n.filter,i=o);var a=[];if(typeof r!="object"||r===null)return"";var s;t&&t.arrayFormat in wd?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var u=wd[s];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=u==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var c=Gg(),d=0;d<i.length;++d){var h=i[d];n.skipNulls&&r[h]===null||Vg(a,Cw(r[h],h,u,l,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,c))}var f=a.join(n.delimiter),p=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),f.length>0?p+f:""},io=qg,Ml=Object.prototype.hasOwnProperty,Nw=Array.isArray,nt={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:io.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Iw=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Wg=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Lw="utf8=%26%2310003%3B",kw="utf8=%E2%9C%93",Mw=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=r.parameterLimit===1/0?void 0:r.parameterLimit,a=i.split(r.delimiter,o),s=-1,u,l=r.charset;if(r.charsetSentinel)for(u=0;u<a.length;++u)a[u].indexOf("utf8=")===0&&(a[u]===kw?l="utf-8":a[u]===Lw&&(l="iso-8859-1"),s=u,u=a.length);for(u=0;u<a.length;++u)if(u!==s){var c=a[u],d=c.indexOf("]="),h=d===-1?c.indexOf("="):d+1,f,p;h===-1?(f=r.decoder(c,nt.decoder,l,"key"),p=r.strictNullHandling?null:""):(f=r.decoder(c.slice(0,h),nt.decoder,l,"key"),p=io.maybeMap(Wg(c.slice(h+1),r),function(m){return r.decoder(m,nt.decoder,l,"value")})),p&&r.interpretNumericEntities&&l==="iso-8859-1"&&(p=Iw(p)),c.indexOf("[]=")>-1&&(p=Nw(p)?[p]:p),Ml.call(n,f)?n[f]=io.combine(n[f],p):n[f]=p}return n},Fw=function(e,t,r,n){for(var i=n?t:Wg(t,r),o=e.length-1;o>=0;--o){var a,s=e[o];if(s==="[]"&&r.parseArrays)a=[].concat(i);else{a=r.plainObjects?Object.create(null):{};var u=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,l=parseInt(u,10);!r.parseArrays&&u===""?a={0:i}:!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[],a[l]=i):u!=="__proto__"&&(a[u]=i)}i=a}return i},Dw=function(t,r,n,i){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,u=n.depth>0&&a.exec(o),l=u?o.slice(0,u.index):o,c=[];if(l){if(!n.plainObjects&&Ml.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var d=0;n.depth>0&&(u=s.exec(o))!==null&&d<n.depth;){if(d+=1,!n.plainObjects&&Ml.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+o.slice(u.index)+"]"),Fw(c,r,n,i)}},Bw=function(t){if(!t)return nt;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?nt.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?nt.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:nt.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:nt.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:nt.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:nt.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:nt.comma,decoder:typeof t.decoder=="function"?t.decoder:nt.decoder,delimiter:typeof t.delimiter=="string"||io.isRegExp(t.delimiter)?t.delimiter:nt.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:nt.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:nt.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:nt.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:nt.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:nt.strictNullHandling}},Uw=function(e,t){var r=Bw(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?Mw(e,r):e,i=r.plainObjects?Object.create(null):{},o=Object.keys(n),a=0;a<o.length;++a){var s=o[a],u=Dw(s,n[s],r,typeof e=="string");i=io.merge(i,u,r)}return r.allowSparse===!0?i:io.compact(i)},$w=Pw,jw=Uw,Hw=kf,qw={formats:Hw,parse:jw,stringify:$w};const Gw=_r(qw);var Vw="[object String]",Ww=Object.prototype,zw=Ww.toString,Qw=Array.isArray;function Yw(e){return!!e&&typeof e=="object"}function Kw(e){return typeof e=="string"||!Qw(e)&&Yw(e)&&zw.call(e)==Vw}var Xw=Kw;const Td=_r(Xw);var Mf={exports:{}};class zg extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}const Jw=({limit:e,interval:t,strict:r})=>{if(!Number.isFinite(e))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw new TypeError("Expected `interval` to be a finite number");const n=new Map;let i=0,o=0;function a(){const c=Date.now();return c-i>t?(o=1,i=c,0):(o<e?o++:(i+=t,o=1),i-c)}const s=[];function u(){const c=Date.now();if(s.length<e)return s.push(c),0;const d=s.shift()+t;return c>=d?(s.push(c),0):(s.push(d),d-c)}const l=r?u:a;return c=>{const d=function(...h){if(!d.isEnabled)return(async()=>c.apply(this,h))();let f;return new Promise((p,m)=>{f=setTimeout(()=>{p(c.apply(this,h)),n.delete(f)},l()),n.set(f,m)})};return d.abort=()=>{for(const h of n.keys())clearTimeout(h),n.get(h)(new zg);n.clear(),s.splice(0,s.length)},d.isEnabled=!0,d}};Mf.exports=Jw;Mf.exports.AbortError=zg;var Zw=Mf.exports;const eS=_r(Zw);var tS="[object Object]";function rS(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function nS(e,t){return function(r){return e(t(r))}}var iS=Function.prototype,Qg=Object.prototype,Yg=iS.toString,oS=Qg.hasOwnProperty,sS=Yg.call(Object),aS=Qg.toString,uS=nS(Object.getPrototypeOf,Object);function cS(e){return!!e&&typeof e=="object"}function lS(e){if(!cS(e)||aS.call(e)!=tS||rS(e))return!1;var t=uS(e);if(t===null)return!0;var r=oS.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Yg.call(r)==sS}var fS=lS;const ga=_r(fS);function hS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function xd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ni(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xd(Object(r),!0).forEach(function(n){dS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fl(e){"@babel/helpers - typeof";return Fl=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},Fl(e)}function Dl(){Dl=function(i,o){return new r(i,void 0,o)};var e=RegExp.prototype,t=new WeakMap;function r(i,o,a){var s=new RegExp(i,o);return t.set(s,a||t.get(i)),Ya(s,r.prototype)}function n(i,o){var a=t.get(o);return Object.keys(a).reduce(function(s,u){var l=a[u];if(typeof l=="number")s[u]=i[l];else{for(var c=0;i[l[c]]===void 0&&c+1<l.length;)c++;s[u]=i[l[c]]}return s},Object.create(null))}return pS(r,RegExp),r.prototype.exec=function(i){var o=e.exec.call(this,i);if(o){o.groups=n(o,this);var a=o.indices;a&&(a.groups=n(a,this))}return o},r.prototype[Symbol.replace]=function(i,o){if(typeof o=="string"){var a=t.get(this);return e[Symbol.replace].call(this,i,o.replace(/\$<([^>]+)>/g,function(u,l){var c=a[l];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof o=="function"){var s=this;return e[Symbol.replace].call(this,i,function(){var u=arguments;return typeof u[u.length-1]!="object"&&(u=[].slice.call(u)).push(n(u,s)),o.apply(this,u)})}return e[Symbol.replace].call(this,i,o)},Dl.apply(this,arguments)}function dS(e,t,r){return t=_S(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pS(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&&Ya(e,t)}function Ya(e,t){return Ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ya(e,t)}function mS(e,t){return gS(e)||hS(e,t)||Kg(e,t)||yS()}function gS(e){if(Array.isArray(e))return e}function Kg(e,t){if(e){if(typeof e=="string")return Od(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Od(e,t)}}function Od(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yS(){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 vS(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Kg(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function ES(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _S(e){var t=ES(e,"string");return typeof t=="symbol"?t:String(t)}function bS(){return typeof process<"u"&&!process.browser}function wS(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function SS(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function TS(){return window}function Bl(){}var Ul=Dl(/(\d+)(%)/,{value:1});function xc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:7,r=t;if(Ul.test(e)){var n,i=(n=e.match(Ul))===null||n===void 0?void 0:n.groups;if(i&&i.value){var o=parseInt(i.value)/100;r=Math.round(t*o)}}return Math.min(30,Math.max(1,r))}function Ad(e,t){return t("info","Throttle request to ".concat(e,"/s")),eS({limit:e,interval:1e3,strict:!1})}var xS=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",r=e.defaults.logHandler,n=r===void 0?Bl:r,i=Td(t)?xc(t):xc("auto",t),o=Ad(i,n),a=!1,s=e.interceptors.request.use(function(l){return o(function(){return l})()},function(l){return Promise.reject(l)}),u=e.interceptors.response.use(function(l){if(!a&&Td(t)&&(t==="auto"||Ul.test(t))&&l.headers&&l.headers["x-contentful-ratelimit-second-limit"]){var c=parseInt(l.headers["x-contentful-ratelimit-second-limit"]),d=xc(t,c);d!==i&&(s&&e.interceptors.request.eject(s),i=d,o=Ad(d,n),s=e.interceptors.request.use(function(h){return o(function(){return h})()},function(h){return Promise.reject(h)})),a=!0}return l},function(l){return Promise.reject(l)});return function(){e.interceptors.request.eject(s),e.interceptors.response.eject(u)}},OS=function(t){return new Promise(function(r){setTimeout(r,t)})},AS=function(t){return Math.pow(Math.SQRT2,t)};function CS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,r=e.defaults,n=r.responseLogger,i=n===void 0?Bl:n,o=r.requestLogger,a=o===void 0?Bl:o;e.interceptors.request.use(function(s){return a(s),s},function(s){return a(s),Promise.reject(s)}),e.interceptors.response.use(function(s){return i(s),s},function(s){var u=s.response,l=s.config;if(i(s),!l||!e.defaults.retryOnError)return Promise.reject(s);var c=l.attempts||1;if(c>t)return s.attempts=l.attempts,Promise.reject(s);var d=null,h=AS(c);return u?u.status>=500&&u.status<600?d="Server ".concat(u.status):u.status===429&&(d="Rate limit",u.headers&&s.response.headers["x-contentful-ratelimit-reset"]&&(h=u.headers["x-contentful-ratelimit-reset"])):d="Connection",d?(h=Math.floor(h*1e3+Math.random()*200+500),e.defaults.logHandler("warning","".concat(d," error occurred. Waiting for ").concat(h," ms before retrying...")),l.attempts=c+1,delete l.httpAgent,delete l.httpsAgent,OS(h).then(function(){return e(l)})):Promise.reject(s)})}function RS(e,t){e.interceptors.request.use(function(r){return t().then(function(n){return r.headers=Ni(Ni({},r.headers),{},{Authorization:"Bearer ".concat(n)}),r})})}var PS=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function Xg(e,t){var r={insecure:!1,retryOnError:!0,logHandler:function(m,_){if(m==="error"&&_){var S=[_.name,_.message].filter(function(E){return E}).join(" - ");console.error("[error] ".concat(S)),console.error(_);return}console.log("[".concat(m,"] ").concat(_))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,proxy:!1,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824},n=Ni(Ni({},r),t);if(!n.accessToken){var i=new TypeError("Expected parameter accessToken");throw n.logHandler("error",i),i}var o=n.insecure?"http":"https",a=n.space?"".concat(n.space,"/"):"",s=n.defaultHostname,u=n.insecure?80:443;if(n.host&&PS.test(n.host)){var l=n.host.split(":");if(l.length===2){var c=mS(l,2);s=c[0],u=c[1]}else s=l[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var d=t.baseURL||"".concat(o,"://").concat(s,":").concat(u).concat(n.basePath,"/spaces/").concat(a);!n.headers.Authorization&&typeof n.accessToken!="function"&&(n.headers.Authorization="Bearer "+n.accessToken);var h={baseURL:d,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,paramsSerializer:Gw.stringify,proxy:n.proxy,timeout:n.timeout,adapter:n.adapter,maxContentLength:n.maxContentLength,maxBodyLength:n.maxBodyLength,logHandler:n.logHandler,responseLogger:n.responseLogger,requestLogger:n.requestLogger,retryOnError:n.retryOnError},f=e.create(h);return f.httpClientParams=t,f.cloneWithNewParams=function(p){return Xg(e,Ni(Ni({},mn(t)),p))},n.onBeforeRequest&&f.interceptors.request.use(n.onBeforeRequest),typeof n.accessToken=="function"&&RS(f,n.accessToken),n.throttle&&xS(f,n.throttle),CS(f,n.retryLimit),n.onError&&f.interceptors.response.use(function(p){return p},n.onError),f}function NS(e){var t=e.query,r={};return delete t.resolveLinks,r.params=mn(t),r}function IS(e,t){if(!(t in e)){var r=new Error;throw r.name="PropertyMissing",r.message="Required property ".concat(t,` missing from:
31
+
32
+ `).concat(JSON.stringify(e),`
33
+
34
+ `),r}return!0}function Jg(e){var t=Object.getOwnPropertyNames(e),r=vS(t),n;try{for(r.s();!(n=r.n()).done;){var i=n.value,o=e[i];o&&Fl(o)==="object"&&Jg(o)}}catch(a){r.e(a)}finally{r.f()}return Object.freeze(e)}function LS(e){return Jg(e.sys||{}),e}function Cd(){var e=TS();if(!e)return null;var t=e.navigator.userAgent,r=e.navigator.platform,n=["Macintosh","MacIntel","MacPPC","Mac68K"],i=["Win32","Win64","Windows","WinCE"],o=["iPhone","iPad","iPod"];return n.indexOf(r)!==-1?"macOS":o.indexOf(r)!==-1?"iOS":i.indexOf(r)!==-1?"Windows":/Android/.test(t)?"Android":/Linux/.test(r)?"Linux":null}function kS(){var e=process.platform||"linux",t=process.version||"0.0.0",r={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in r?"".concat(r[e]||"Linux","/").concat(t):null}function MS(e,t,r,n){var i=[];t&&i.push("app ".concat(t)),r&&i.push("integration ".concat(r)),n&&i.push("feature "+n),i.push("sdk ".concat(e));var o=null;try{wS()?(o=Cd(),i.push("platform ReactNative")):bS()?(o=kS(),i.push("platform node.js/".concat(SS()))):(o=Cd(),i.push("platform browser"))}catch{o=null}return o&&i.push("os ".concat(o)),"".concat(i.filter(function(a){return a!==""}).join("; "),";")}function FS(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return mn(this)}})}function DS(e){var t=e.config,r=e.response,n;if(t&&t.headers&&t.headers.Authorization){var i="...".concat(t.headers.Authorization.toString().substr(-5));t.headers.Authorization="Bearer ".concat(i)}if(!ga(r)||!ga(t))throw e;var o=r==null?void 0:r.data,a={status:r==null?void 0:r.status,statusText:r==null?void 0:r.statusText,message:"",details:{}};ga(t)&&(a.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),o&&ga(o)&&("requestId"in o&&(a.requestId=o.requestId||"UNKNOWN"),"message"in o&&(a.message=o.message||""),"details"in o&&(a.details=o.details||{}),"sys"in o&&"id"in o.sys&&(n=o.sys.id));var s=new Error;s.name=n&&n!=="Unknown"?n:"".concat(r==null?void 0:r.status," ").concat(r==null?void 0:r.statusText);try{s.message=JSON.stringify(a,null," ")}catch{var u;s.message=(u=a==null?void 0:a.message)!==null&&u!==void 0?u:""}throw s}const BS=Object.freeze(Object.defineProperty({__proto__:null,createHttpClient:Xg,createRequestConfig:NS,enforceObjPath:IS,errorHandler:DS,freezeSys:LS,getUserAgentHeader:MS,toPlainObject:FS},Symbol.toStringTag,{value:"Module"})),br=Js(BS);var ya={},Qo={},va={},Rd;function US(){if(Rd)return va;Rd=1,Object.defineProperty(va,"__esModule",{value:!0}),va.wrapSpace=t;var e=br;function t(r){return(0,e.freezeSys)((0,e.toPlainObject)(r))}return va}var Yo={},Oc={exports:{}},Pd;function fo(){return Pd||(Pd=1,function(e,t){(function(r,n){e.exports=n()})(de,function(){var r=Function.prototype.toString,n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,l=Object.prototype,c=l.hasOwnProperty,d=l.propertyIsEnumerable,h=typeof s=="function",f=typeof WeakMap=="function",p=function(){if(f)return function(){return new WeakMap};var R=function(){function L(){this._keys=[],this._values=[]}return L.prototype.has=function(U){return!!~this._keys.indexOf(U)},L.prototype.get=function(U){return this._values[this._keys.indexOf(U)]},L.prototype.set=function(U,q){this._keys.push(U),this._values.push(q)},L}();return function(){return new R}}(),m=function(R,L){var U=R.__proto__||u(R);if(!U)return n(null);var q=U.constructor;if(q===L.Object)return U===L.Object.prototype?{}:n(U);if(~r.call(q).indexOf("[native code]"))try{return new q}catch{}return n(U)},_=function(R,L,U,q){var G=m(R,L);q.set(R,G);for(var j in R)c.call(R,j)&&(G[j]=U(R[j],q));if(h)for(var Y=s(R),re=0,K=Y.length,M=void 0;re<K;++re)M=Y[re],d.call(R,M)&&(G[M]=U(R[M],q));return G},S=function(R,L,U,q){var G=m(R,L);q.set(R,G);for(var j=h?a(R).concat(s(R)):a(R),Y=0,re=j.length,K=void 0,M=void 0;Y<re;++Y)if(K=j[Y],K!=="callee"&&K!=="caller")if(M=o(R,K),M){!M.get&&!M.set&&(M.value=U(R[K],q));try{i(G,K,M)}catch{G[K]=M.value}}else G[K]=U(R[K],q);return G},E=function(R){var L="";return R.global&&(L+="g"),R.ignoreCase&&(L+="i"),R.multiline&&(L+="m"),R.unicode&&(L+="u"),R.sticky&&(L+="y"),L},b=Array.isArray,T=Object.getPrototypeOf,w=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof de<"u"?de:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function P(R,L){var U=!!(L&&L.isStrict),q=L&&L.realm||w,G=U?S:_,j=function(Y,re){if(!Y||typeof Y!="object")return Y;if(re.has(Y))return re.get(Y);var K=Y.__proto__||T(Y),M=K&&K.constructor;if(!M||M===q.Object)return G(Y,q,j,re);var z;if(b(Y)){if(U)return S(Y,q,j,re);z=new M,re.set(Y,z);for(var Z=0,fe=Y.length;Z<fe;++Z)z[Z]=j(Y[Z],re);return z}if(Y instanceof q.Date)return new M(Y.getTime());if(Y instanceof q.RegExp)return z=new M(Y.source,Y.flags||E(Y)),z.lastIndex=Y.lastIndex,z;if(q.Map&&Y instanceof q.Map)return z=new M,re.set(Y,z),Y.forEach(function(X,te){z.set(te,j(X,re))}),z;if(q.Set&&Y instanceof q.Set)return z=new M,re.set(Y,z),Y.forEach(function(X){z.add(j(X,re))}),z;if(q.Blob&&Y instanceof q.Blob)return Y.slice(0,Y.size,Y.type);if(q.Buffer&&q.Buffer.isBuffer(Y))return z=q.Buffer.allocUnsafe?q.Buffer.allocUnsafe(Y.length):new M(Y.length),re.set(Y,z),Y.copy(z),z;if(q.ArrayBuffer){if(q.ArrayBuffer.isView(Y))return z=new M(Y.buffer.slice(0)),re.set(Y,z),z;if(Y instanceof q.ArrayBuffer)return z=Y.slice(0),re.set(Y,z),z}return typeof Y.then=="function"||Y instanceof Error||q.WeakMap&&Y instanceof q.WeakMap||q.WeakSet&&Y instanceof q.WeakSet?Y:G(Y,q,j,re)};return j(R,p())}return P.default=P,P.strict=function(L,U){return P(L,{isStrict:!0,realm:U?U.realm:void 0})},P})}(Oc)),Oc.exports}var Ea={},_a={exports:{}},Nd;function $S(){return Nd||(Nd=1,function(e,t){t=e.exports=r,t.getSerialize=n;function r(i,o,a,s){return JSON.stringify(i,n(o,s),a)}function n(i,o){var a=[],s=[];return o==null&&(o=function(u,l){return a[0]===l?"[Circular ~]":"[Circular ~."+s.slice(0,a.indexOf(l)).join(".")+"]"}),function(u,l){if(a.length>0){var c=a.indexOf(this);~c?a.splice(c+1):a.push(this),~c?s.splice(c,1/0,u):s.push(u),~a.indexOf(l)&&(l=o.call(this,u,l))}else a.push(l);return i==null?l:i.call(this,u,l)}}}(_a,_a.exports)),_a.exports}var Id;function Zg(){if(Id)return Ea;Id=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.default=r;var e=t($S());function t(n){return n&&n.__esModule?n:{default:n}}function r(n){return Object.defineProperty(n,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,e.default)(this,i,o,(a,s)=>({sys:{type:"Link",linkType:"Entry",id:s.sys.id,circular:!0}}))}})}return Ea}var jS=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},HS=function(){function e(t,r){var n=[],i=!0,o=!1,a=void 0;try{for(var s=t[Symbol.iterator](),u;!(i=(u=s.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function Ko(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else return Array.from(e)}var As={},qS=function(t){return t&&t.sys&&t.sys.type==="Link"},GS=function(t){return t&&t.sys&&t.sys.type==="ResourceLink"},VS=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]},Ld=function(t,r){var n=r.entryId,i=r.linkType,o=r.spaceId,a=r.environmentId;return o&&a?t.get(o+"!"+a+"!"+i+"!"+n):t.get(i+"!"+n)},WS=function(t){var r=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(r.test(t)){var n=t.match(r),i=HS(n,4);i[0];var o=i[1],a=i[2],s=a===void 0?"master":a,u=i[3];return{spaceId:o,environmentId:s,entryId:u}}},zS=function(t,r){var n=r.sys,i=n.type,o=n.linkType;if(i==="ResourceLink"){var a=r.sys.urn,s=WS(a),u=s.spaceId,l=s.environmentId,c=s.entryId,d=o.split(":")[1];return Ld(t,{linkType:d,entryId:c,spaceId:u,environmentId:l})||As}var h=r.sys.id;return Ld(t,{linkType:o,entryId:h})||As},QS=function(t){if(Array.isArray(t))return t.filter(function(n){return n!==As});for(var r in t)t[r]===As&&delete t[r];return t},YS=function e(t,r,n,i){if(r(t))return n(t);if(t&&(typeof t>"u"?"undefined":jS(t))==="object"){for(var o in t)t.hasOwnProperty(o)&&(t[o]=e(t[o],r,n,i));i&&(t=QS(t))}return t},KS=function(t,r,n){var i=zS(t,r);return i===As?n?i:r:i},XS=function(t,r){if(!Array.isArray(r))return t;var n=Object.keys(t).filter(function(i){return r.indexOf(i)!==-1});return n.reduce(function(i,o){return i[o]=t[o],i},{})},JS=function(t,r){if(r=r||{},!t.items)return[];var n=mn(t),i=Object.keys(n.includes||{}).reduce(function(s,u){return[].concat(Ko(s),Ko(t.includes[u]))},[]),o=[].concat(Ko(n.items),Ko(i)).filter(function(s){return!!s.sys}),a=new Map(o.reduce(function(s,u){var l=VS(u.sys).map(function(c){return[c,u]});return s.push.apply(s,Ko(l)),s},[]));return o.forEach(function(s){var u=XS(s,r.itemEntryPoints);Object.assign(s,YS(u,function(l){return qS(l)||GS(l)},function(l){return KS(a,l,r.removeUnresolved)},r.removeUnresolved))}),n.items};const ZS=Object.freeze(Object.defineProperty({__proto__:null,default:JS},Symbol.toStringTag,{value:"Module"})),ey=Js(ZS);var kd;function eT(){if(kd)return Yo;kd=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.wrapEntry=o,Yo.wrapEntryCollection=a;var e=i(fo()),t=br,r=i(Zg()),n=i(ey);function i(s){return s&&s.__esModule?s:{default:s}}function o(s){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(s)))}function a(s,u){let{resolveLinks:l,removeUnresolved:c}=u;const d=(0,r.default)((0,t.toPlainObject)((0,e.default)(s)));return l&&(d.items=(0,n.default)(d,{removeUnresolved:c,itemEntryPoints:["fields"]})),(0,t.freezeSys)(d)}return Yo}var Xo={},Md;function tT(){if(Md)return Xo;Md=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.wrapAsset=n,Xo.wrapAssetCollection=i;var e=r(fo()),t=br;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}function i(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return Xo}var ba={},Fd;function rT(){if(Fd)return ba;Fd=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.wrapAssetKey=n;var e=r(fo()),t=br;function r(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return ba}var Jo={},Dd;function nT(){if(Dd)return Jo;Dd=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.wrapContentType=n,Jo.wrapContentTypeCollection=i;var e=r(fo()),t=br;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}function i(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return Jo}var Zo={},Bd;function iT(){if(Bd)return Zo;Bd=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.wrapLocale=n,Zo.wrapLocaleCollection=i;var e=r(fo()),t=br;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}function i(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return Zo}var es={},Ud;function oT(){if(Ud)return es;Ud=1,Object.defineProperty(es,"__esModule",{value:!0}),es.wrapTag=n,es.wrapTagCollection=i;var e=r(fo()),t=br;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}function i(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return es}var $d;function sT(){if($d)return Qo;$d=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.default=void 0;var e=u(US()),t=u(eT()),r=u(tT()),n=u(rT()),i=u(nT()),o=u(iT()),a=u(oT());function s(c){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return(s=function(f){return f?h:d})(c)}function u(c,d){if(!d&&c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var h=s(d);if(h&&h.has(c))return h.get(c);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in c)if(m!=="default"&&Object.prototype.hasOwnProperty.call(c,m)){var _=p?Object.getOwnPropertyDescriptor(c,m):null;_&&(_.get||_.set)?Object.defineProperty(f,m,_):f[m]=c[m]}return f.default=c,h&&h.set(c,f),f}var l={space:e,entry:t,asset:r,assetKey:n,contentType:i,locale:o,tag:a};return Qo.default=l,Qo}var wa={},jd;function aT(){if(jd)return wa;jd=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.default=s;var e=br,t=n(ey),r=n(Zg());function n(d){return d&&d.__esModule?d:{default:d}}function i(d,h){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(d);h&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(d,m).enumerable})),f.push.apply(f,p)}return f}function o(d){for(var h=1;h<arguments.length;h++){var f=arguments[h]!=null?arguments[h]:{};h%2?i(Object(f),!0).forEach(function(p){a(d,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):i(Object(f)).forEach(function(p){Object.defineProperty(d,p,Object.getOwnPropertyDescriptor(f,p))})}return d}function a(d,h,f){return h in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f,d}async function s(d,h){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!h||!h.initial&&!h.nextSyncToken&&!h.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(h&&h.content_type&&!h.type)h.type="Entry";else if(h&&h.content_type&&h.type&&h.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:_,paginate:S}=o(o({},p),f),b=await l(d,[],h,{paginate:S});m&&(b.items=(0,t.default)(b,{removeUnresolved:_,itemEntryPoints:["fields"]}));const T=u(b.items);return b.nextSyncToken&&(T.nextSyncToken=b.nextSyncToken),b.nextPageToken&&(T.nextPageToken=b.nextPageToken),(0,e.freezeSys)((0,r.default)((0,e.toPlainObject)(T)))}function u(d){const h=f=>(p,m)=>(m.sys.type===f&&p.push((0,e.toPlainObject)(m)),p);return{entries:d.reduce(h("Entry"),[]),assets:d.reduce(h("Asset"),[]),deletedEntries:d.reduce(h("DeletedEntry"),[]),deletedAssets:d.reduce(h("DeletedAsset"),[])}}async function l(d,h,f,p){let{paginate:m}=p;f.nextSyncToken&&(f.sync_token=f.nextSyncToken,delete f.nextSyncToken),f.nextPageToken&&(f.sync_token=f.nextPageToken,delete f.nextPageToken),f.sync_token&&(delete f.initial,delete f.type,delete f.content_type,delete f.limit);const S=(await d.get("sync",(0,e.createRequestConfig)({query:f}))).data||{};return h=h.concat(S.items||[]),S.nextPageUrl?m?(delete f.initial,f.sync_token=c(S.nextPageUrl),l(d,h,f,{paginate:m})):{items:h,nextPageToken:c(S.nextPageUrl)}:S.nextSyncUrl?{items:h,nextSyncToken:c(S.nextSyncUrl)}:{items:[]}}function c(d){const h=d.split("?");return h.length>0?h[1].replace("sync_token=",""):""}return wa}var Sa={},Hd;function uT(){if(Hd)return Sa;Hd=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.default=n;function e(i,o){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);o&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),a.push.apply(a,s)}return a}function t(i){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?e(Object(a),!0).forEach(function(s){r(i,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(a,s))})}return i}function r(i,o,a){return o in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,i}function n(i){if(!i.select)return i;const o=Array.isArray(i.select)?i.select:i.select.split(","),a=new Set(o);return a.has("sys")?i:(a.add("sys.id"),a.add("sys.type"),t(t({},i),{},{select:[...a].join(",")}))}return Sa}var Ai={},qd;function cT(){if(qd)return Ai;qd=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.ValidationError=void 0,Ai.default=t;class e extends Error{constructor(n,i){super(`Invalid "${n}" provided, `+i),this.name="ValidationError"}}Ai.ValidationError=e;function t(r,n,i){if(i=i||{},typeof n!="number")throw new e(r,`only numeric values are allowed for timestamps, provided type was "${typeof n}"`);if(i.maximum&&n>i.maximum)throw new e(r,`value (${n}) cannot be further in the future than expected maximum (${i.maximum})`);if(i.now&&n<i.now)throw new e(r,`value (${n}) cannot be in the past, current time was ${i.now}`)}return Ai}var Gd;function lT(){if(Gd)return ya;Gd=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.default=c;var e=br,t=o(sT()),r=o(aT()),n=o(uT()),i=o(cT());function o(d){return d&&d.__esModule?d:{default:d}}function a(d,h){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(d);h&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(d,m).enumerable})),f.push.apply(f,p)}return f}function s(d){for(var h=1;h<arguments.length;h++){var f=arguments[h]!=null?arguments[h]:{};h%2?a(Object(f),!0).forEach(function(p){u(d,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):a(Object(f)).forEach(function(p){Object.defineProperty(d,p,Object.getOwnPropertyDescriptor(f,p))})}return d}function u(d,h,f){return h in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f,d}const l=48*60*60;function c(d){let{http:h,getGlobalOptions:f}=d;const{wrapSpace:p}=t.default.space,{wrapContentType:m,wrapContentTypeCollection:_}=t.default.contentType,{wrapEntry:S,wrapEntryCollection:E}=t.default.entry,{wrapAsset:b,wrapAssetCollection:T}=t.default.asset,{wrapTag:w,wrapTagCollection:P}=t.default.tag,{wrapAssetKey:R}=t.default.assetKey,{wrapLocaleCollection:L}=t.default.locale,U=ee=>{const ue=new Error("The resource could not be found.");return ue.sys={type:"Error",id:"NotFound"},ue.details={type:"Entry",id:ee,environment:f().environment,space:f().space},ue};async function q(){Ve(h);try{const ee=await h.get("/");return p(ee.data)}catch(ee){(0,e.errorHandler)(ee)}}async function G(ee){he(h);try{const ue=await h.get(`content_types/${ee}`);return m(ue.data)}catch(ue){(0,e.errorHandler)(ue)}}async function j(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};he(h);try{const ue=await h.get("content_types",(0,e.createRequestConfig)({query:ee}));return _(ue.data)}catch(ue){(0,e.errorHandler)(ue)}}async function Y(ee){let ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ee)throw U(ee);try{const De=await this.getEntries(s({"sys.id":ee},ue));if(De.items.length>0)return S(De.items[0]);throw U(ee)}catch(De){(0,e.errorHandler)(De)}}async function re(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};he(h);const{resolveLinks:ue,removeUnresolved:De}=f(ee);ee=(0,n.default)(ee);try{const Ie=await h.get("entries",(0,e.createRequestConfig)({query:ee}));return E(Ie.data,{resolveLinks:ue,removeUnresolved:De})}catch(Ie){(0,e.errorHandler)(Ie)}}async function K(ee){let ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};he(h),ue=(0,n.default)(ue);try{const De=await h.get(`assets/${ee}`,(0,e.createRequestConfig)({query:ue}));return b(De.data)}catch(De){(0,e.errorHandler)(De)}}async function M(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};he(h),ee=(0,n.default)(ee);try{const ue=await h.get("assets",(0,e.createRequestConfig)({query:ee}));return T(ue.data)}catch(ue){(0,e.errorHandler)(ue)}}async function z(ee){he(h);try{const ue=await h.get(`tags/${ee}`);return w(ue.data)}catch(ue){(0,e.errorHandler)(ue)}}async function Z(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};he(h),ee=(0,n.default)(ee);try{const ue=await h.get("tags",(0,e.createRequestConfig)({query:ee}));return P(ue.data)}catch(ue){(0,e.errorHandler)(ue)}}async function fe(ee){he(h);try{const ue=Math.floor(Date.now()/1e3),De=ue+l;(0,i.default)("expiresAt",ee,{maximum:De,now:ue});const Ie={expiresAt:ee},xt=await h.post("asset_keys",Ie);return R(xt.data)}catch(ue){(0,e.errorHandler)(ue)}}async function X(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};he(h);try{const ue=await h.get("locales",(0,e.createRequestConfig)({query:ee}));return L(ue.data)}catch(ue){(0,e.errorHandler)(ue)}}async function te(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{paginate:!0};const{resolveLinks:De,removeUnresolved:Ie}=f(ee);return he(h),(0,r.default)(h,ee,s({resolveLinks:De,removeUnresolved:Ie},ue))}function oe(ee){const{resolveLinks:ue,removeUnresolved:De}=f({});return E(ee,{resolveLinks:ue,removeUnresolved:De})}function he(ee){ee.defaults.baseURL=f().environmentBaseUrl}function Ve(ee){ee.defaults.baseURL=f().spaceBaseUrl}return{getSpace:q,getContentType:G,getContentTypes:j,getEntry:Y,getEntries:re,getAsset:K,getAssets:M,getTag:z,getTags:Z,createAssetKey:fe,getLocales:X,parseEntries:oe,sync:te}}return ya}var Ta={},Vd;function fT(){if(Vd)return Ta;Vd=1,Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.default=e;function e(t){return function(n){return Object.assign({},t,n)}}return Ta}var Wd;function hT(){if(Wd)return fa;Wd=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.createClient=u;var e=i(xg()),t=br,r=i(lT()),n=i(fT());function i(l){return l&&l.__esModule?l:{default:l}}function o(l,c){var d=Object.keys(l);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(l);c&&(h=h.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),d.push.apply(d,h)}return d}function a(l){for(var c=1;c<arguments.length;c++){var d=arguments[c]!=null?arguments[c]:{};c%2?o(Object(d),!0).forEach(function(h){s(l,h,d[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(d)):o(Object(d)).forEach(function(h){Object.defineProperty(l,h,Object.getOwnPropertyDescriptor(d,h))})}return l}function s(l,c,d){return c in l?Object.defineProperty(l,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):l[c]=d,l}function u(l){if(!l.accessToken)throw new TypeError("Expected parameter accessToken");if(!l.space)throw new TypeError("Expected parameter space");const d=a(a({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),l),h=(0,t.getUserAgentHeader)("contentful.js/9.1.34",d.application,d.integration);d.headers=a(a({},d.headers),{},{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":h});const f=(0,t.createHttpClient)(e.default,d),p=(0,n.default)({resolveLinks:d.resolveLinks,environment:d.environment,removeUnresolved:d.removeUnresolved,spaceBaseUrl:f.defaults.baseURL,environmentBaseUrl:`${f.defaults.baseURL}environments/${d.environment}`});return f.defaults.baseURL=p().environmentBaseUrl,(0,r.default)({http:f,getGlobalOptions:p})}return fa}var Ac={},Cc,zd;function dT(){return zd||(zd=1,Cc=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Cc}var Rc,Qd;function pT(){if(Qd)return Rc;Qd=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(a,s){try{return[decodeURIComponent(a.join(""))]}catch{}if(a.length===1)return a;s=s||1;var u=a.slice(0,s),l=a.slice(s);return Array.prototype.concat.call([],n(u),n(l))}function i(a){try{return decodeURIComponent(a)}catch{for(var s=a.match(t)||[],u=1;u<s.length;u++)a=n(s,u).join(""),s=a.match(t)||[];return a}}function o(a){for(var s={"%FE%FF":"��","%FF%FE":"��"},u=r.exec(a);u;){try{s[u[0]]=decodeURIComponent(u[0])}catch{var l=i(u[0]);l!==u[0]&&(s[u[0]]=l)}u=r.exec(a)}s["%C2"]="�";for(var c=Object.keys(s),d=0;d<c.length;d++){var h=c[d];a=a.replace(new RegExp(h,"g"),s[h])}return a}return Rc=function(a){if(typeof a!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof a+"`");try{return a=a.replace(/\+/g," "),decodeURIComponent(a)}catch{return o(a)}},Rc}var Pc,Yd;function mT(){return Yd||(Yd=1,Pc=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),Pc}var Nc,Kd;function gT(){return Kd||(Kd=1,Nc=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var a=n[o],s=e[a];(i?t.indexOf(a)!==-1:t(a,s,e))&&(r[a]=s)}return r}),Nc}var Xd;function yT(){return Xd||(Xd=1,function(e){const t=dT(),r=pT(),n=mT(),i=gT(),o=E=>E==null,a=Symbol("encodeFragmentIdentifier");function s(E){switch(E.arrayFormat){case"index":return b=>(T,w)=>{const P=T.length;return w===void 0||E.skipNull&&w===null||E.skipEmptyString&&w===""?T:w===null?[...T,[c(b,E),"[",P,"]"].join("")]:[...T,[c(b,E),"[",c(P,E),"]=",c(w,E)].join("")]};case"bracket":return b=>(T,w)=>w===void 0||E.skipNull&&w===null||E.skipEmptyString&&w===""?T:w===null?[...T,[c(b,E),"[]"].join("")]:[...T,[c(b,E),"[]=",c(w,E)].join("")];case"colon-list-separator":return b=>(T,w)=>w===void 0||E.skipNull&&w===null||E.skipEmptyString&&w===""?T:w===null?[...T,[c(b,E),":list="].join("")]:[...T,[c(b,E),":list=",c(w,E)].join("")];case"comma":case"separator":case"bracket-separator":{const b=E.arrayFormat==="bracket-separator"?"[]=":"=";return T=>(w,P)=>P===void 0||E.skipNull&&P===null||E.skipEmptyString&&P===""?w:(P=P===null?"":P,w.length===0?[[c(T,E),b,c(P,E)].join("")]:[[w,c(P,E)].join(E.arrayFormatSeparator)])}default:return b=>(T,w)=>w===void 0||E.skipNull&&w===null||E.skipEmptyString&&w===""?T:w===null?[...T,c(b,E)]:[...T,[c(b,E),"=",c(w,E)].join("")]}}function u(E){let b;switch(E.arrayFormat){case"index":return(T,w,P)=>{if(b=/\[(\d*)\]$/.exec(T),T=T.replace(/\[\d*\]$/,""),!b){P[T]=w;return}P[T]===void 0&&(P[T]={}),P[T][b[1]]=w};case"bracket":return(T,w,P)=>{if(b=/(\[\])$/.exec(T),T=T.replace(/\[\]$/,""),!b){P[T]=w;return}if(P[T]===void 0){P[T]=[w];return}P[T]=[].concat(P[T],w)};case"colon-list-separator":return(T,w,P)=>{if(b=/(:list)$/.exec(T),T=T.replace(/:list$/,""),!b){P[T]=w;return}if(P[T]===void 0){P[T]=[w];return}P[T]=[].concat(P[T],w)};case"comma":case"separator":return(T,w,P)=>{const R=typeof w=="string"&&w.includes(E.arrayFormatSeparator),L=typeof w=="string"&&!R&&d(w,E).includes(E.arrayFormatSeparator);w=L?d(w,E):w;const U=R||L?w.split(E.arrayFormatSeparator).map(q=>d(q,E)):w===null?w:d(w,E);P[T]=U};case"bracket-separator":return(T,w,P)=>{const R=/(\[\])$/.test(T);if(T=T.replace(/\[\]$/,""),!R){P[T]=w&&d(w,E);return}const L=w===null?[]:w.split(E.arrayFormatSeparator).map(U=>d(U,E));if(P[T]===void 0){P[T]=L;return}P[T]=[].concat(P[T],L)};default:return(T,w,P)=>{if(P[T]===void 0){P[T]=w;return}P[T]=[].concat(P[T],w)}}}function l(E){if(typeof E!="string"||E.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(E,b){return b.encode?b.strict?t(E):encodeURIComponent(E):E}function d(E,b){return b.decode?r(E):E}function h(E){return Array.isArray(E)?E.sort():typeof E=="object"?h(Object.keys(E)).sort((b,T)=>Number(b)-Number(T)).map(b=>E[b]):E}function f(E){const b=E.indexOf("#");return b!==-1&&(E=E.slice(0,b)),E}function p(E){let b="";const T=E.indexOf("#");return T!==-1&&(b=E.slice(T)),b}function m(E){E=f(E);const b=E.indexOf("?");return b===-1?"":E.slice(b+1)}function _(E,b){return b.parseNumbers&&!Number.isNaN(Number(E))&&typeof E=="string"&&E.trim()!==""?E=Number(E):b.parseBooleans&&E!==null&&(E.toLowerCase()==="true"||E.toLowerCase()==="false")&&(E=E.toLowerCase()==="true"),E}function S(E,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),l(b.arrayFormatSeparator);const T=u(b),w=Object.create(null);if(typeof E!="string"||(E=E.trim().replace(/^[?#&]/,""),!E))return w;for(const P of E.split("&")){if(P==="")continue;let[R,L]=n(b.decode?P.replace(/\+/g," "):P,"=");L=L===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?L:d(L,b),T(d(R,b),L,w)}for(const P of Object.keys(w)){const R=w[P];if(typeof R=="object"&&R!==null)for(const L of Object.keys(R))R[L]=_(R[L],b);else w[P]=_(R,b)}return b.sort===!1?w:(b.sort===!0?Object.keys(w).sort():Object.keys(w).sort(b.sort)).reduce((P,R)=>{const L=w[R];return L&&typeof L=="object"&&!Array.isArray(L)?P[R]=h(L):P[R]=L,P},Object.create(null))}e.extract=m,e.parse=S,e.stringify=(E,b)=>{if(!E)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),l(b.arrayFormatSeparator);const T=L=>b.skipNull&&o(E[L])||b.skipEmptyString&&E[L]==="",w=s(b),P={};for(const L of Object.keys(E))T(L)||(P[L]=E[L]);const R=Object.keys(P);return b.sort!==!1&&R.sort(b.sort),R.map(L=>{const U=E[L];return U===void 0?"":U===null?c(L,b):Array.isArray(U)?U.length===0&&b.arrayFormat==="bracket-separator"?c(L,b)+"[]":U.reduce(w(L),[]).join("&"):c(L,b)+"="+c(U,b)}).filter(L=>L.length>0).join("&")},e.parseUrl=(E,b)=>{b=Object.assign({decode:!0},b);const[T,w]=n(E,"#");return Object.assign({url:T.split("?")[0]||"",query:S(m(E),b)},b&&b.parseFragmentIdentifier&&w?{fragmentIdentifier:d(w,b)}:{})},e.stringifyUrl=(E,b)=>{b=Object.assign({encode:!0,strict:!0,[a]:!0},b);const T=f(E.url).split("?")[0]||"",w=e.extract(E.url),P=e.parse(w,{sort:!1}),R=Object.assign(P,E.query);let L=e.stringify(R,b);L&&(L=`?${L}`);let U=p(E.url);return E.fragmentIdentifier&&(U=`#${b[a]?c(E.fragmentIdentifier,b):E.fragmentIdentifier}`),`${T}${L}${U}`},e.pick=(E,b,T)=>{T=Object.assign({parseFragmentIdentifier:!0,[a]:!1},T);const{url:w,query:P,fragmentIdentifier:R}=e.parseUrl(E,T);return e.stringifyUrl({url:w,query:i(P,b),fragmentIdentifier:R},T)},e.exclude=(E,b,T)=>{const w=Array.isArray(b)?P=>!b.includes(P):(P,R)=>!b(P,R);return e.pick(E,w,T)}}(Ac)),Ac}var Jd;function vT(){return Jd||(Jd=1,function(e,t){(function(r,n){e.exports=n(hT(),yT())})(de,function(r,n){return function(){var i={897:function(u){u.exports=r},48:function(u){u.exports=n}},o={};function a(u){var l=o[u];if(l!==void 0)return l.exports;var c=o[u]={exports:{}};return i[u](c,c.exports,a),c.exports}a.d=function(u,l){for(var c in l)a.o(l,c)&&!a.o(u,c)&&Object.defineProperty(u,c,{enumerable:!0,get:l[c]})},a.o=function(u,l){return Object.prototype.hasOwnProperty.call(u,l)},a.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var s={};return function(){a.r(s),a.d(s,{getEntries:function(){return re},getEntry:function(){return Y},setContext:function(){return m}});var u=a(897),l=a(48),c={CONTENTFUL:{ENVIRONMENTS_MAPING:{beta:"beta",rc:"rc",live:"master",local:"beta"},LOCALES:{DEFAULT:"en",SUPPORTED:["en","es","fr","pt"]},SPACE:"txbhe1wabmyx",HOSTS:{CDN:"cdn.contentful.com",PREVIEW:"preview.contentful.com"}}};const{CONTENTFUL:{ENVIRONMENTS_MAPING:d,SPACE:h,HOSTS:f}}=c;let p={apiKey:null,previewKey:null,environment:null,isPreview:!1,host:f.CDN,space:h};const m=({apiKey:K,environment:M,isPreview:z=!1,location:Z,previewKey:fe,space:X=null})=>{p.apiKey=K,p.previewKey=fe,p.environment=(te=>{if(!te)throw new Error("Cannot map environment: Environment not defined");if(!d[te])throw new Error(`Cannot map environment: No mapping found for environment ${te}`);return d[te]})(M),p.isPreview=z||(te=>{let oe=!1;if(te&&te.search){const he=(0,l.parse)(te.search);oe=he.isPreview&&he.isPreview==="true"}return oe})(Z),p.space=X||h},_=(K=!1)=>{const{apiKey:M,environment:z,isPreview:Z,previewKey:fe,space:X}=p;return Z===!0||K===!0?{accessToken:fe,environment:z,host:f.PREVIEW,space:X}:{accessToken:M,environment:z,host:f.CDN,space:X}},S=K=>typeof K=="object"&&K!==null,E=K=>Array.isArray(K)&&K.length,b=K=>{if(!S(K))throw new Error("Cannot flatten fields");const{fields:M,sys:z}=K;if(!M)throw new Error("Cannot flatten fields");let Z={...M};if(S(z)){const{contentType:fe,createdAt:X,updatedAt:te}=z;fe&&Object.assign(Z,{contentType:fe.sys.id}),X&&Object.assign(Z,{createdAt:X}),te&&Object.assign(Z,{updatedAt:te})}return Z},{CONTENTFUL:{LOCALES:T}}=c,w=(K,M)=>S(K)&&((z,Z)=>Object.prototype.hasOwnProperty.call(z,Z))(K,M),P=(K,M)=>{const z=(Z=>T.SUPPORTED.includes(Z)?Z:T.DEFAULT)(M);return w(K,z)?K[z]:w(K,T.DEFAULT)?K[T.DEFAULT]:K},R=K=>S(K)&&K.sys&&K.sys.type==="Asset",L=(K,M,z)=>{const{title:Z,file:fe}=b(K);if(!fe)throw new Error("Cannot flatten asset");const{contentType:X,fileName:te,url:oe,details:he}=P(fe,M);if(!oe)throw new Error("Cannot flatten asset");return z?{description:Z||te,height:he&&he.image&&he.image.height,type:X,url:oe,width:he&&he.image&&he.image.width}:oe},U=K=>S(K)&&K.sys&&K.sys.type==="Entry",q=(K,M,z)=>{const Z={},fe=((X,te)=>{const oe={};for(const[he,Ve]of Object.entries(X))oe[he]=P(Ve,te);return oe})(b(K),M);for(const[X,te]of Object.entries(fe))R(te)?Z[X]=L(te,M,z):U(te)?Z[X]=q(te,M,z):E(te)?Z[X]=te.map(oe=>R(oe)?L(oe,M,z):U(oe)?q(oe,M,z):oe):Z[X]=te;return Z},G=({items:K})=>{if(!E(K))throw new Error("Cannot read items");return K},j=async(K,M)=>{const z=_(M);return await(await(0,u.createClient)(z)).getEntries(K)},Y=async(K={},M={},z=!1)=>((Z,{flatten:fe=!0,locale:X="en",assetDetails:te=!1})=>{const oe=G(Z);return fe?q(oe[0],X,te):oe[0]})(await j(K,z),{...K,...M}),re=async(K={},M={},z=!1)=>((Z,{flatten:fe=!0,locale:X="en",assetDetails:te=!1})=>{const oe=G(Z);return fe?((he,Ve,ee)=>he.map(ue=>q(ue,Ve,ee)))(oe,X,te):oe})(await j(K,z),{...K,...M})}(),s}()})}(Du)),Du.exports}var Ic={exports:{}},Lc={exports:{}},kc={exports:{}},Mc={exports:{}},Zd;function Ff(){return Zd||(Zd=1,function(e,t){(function(r,n){e.exports=n()})(de,function(){function r(m){return!isNaN(parseFloat(m))&&isFinite(m)}function n(m){return m.charAt(0).toUpperCase()+m.substring(1)}function i(m){return function(){return this[m]}}var o=["isConstructor","isEval","isNative","isToplevel"],a=["columnNumber","lineNumber"],s=["fileName","functionName","source"],u=["args"],l=["evalOrigin"],c=o.concat(a,s,u,l);function d(m){if(m)for(var _=0;_<c.length;_++)m[c[_]]!==void 0&&this["set"+n(c[_])](m[c[_]])}d.prototype={getArgs:function(){return this.args},setArgs:function(m){if(Object.prototype.toString.call(m)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=m},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(m){if(m instanceof d)this.evalOrigin=m;else if(m instanceof Object)this.evalOrigin=new d(m);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var m=this.getFileName()||"",_=this.getLineNumber()||"",S=this.getColumnNumber()||"",E=this.getFunctionName()||"";return this.getIsEval()?m?"[eval] ("+m+":"+_+":"+S+")":"[eval]:"+_+":"+S:E?E+" ("+m+":"+_+":"+S+")":m+":"+_+":"+S}},d.fromString=function(_){var S=_.indexOf("("),E=_.lastIndexOf(")"),b=_.substring(0,S),T=_.substring(S+1,E).split(","),w=_.substring(E+1);if(w.indexOf("@")===0)var P=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(w,""),R=P[1],L=P[2],U=P[3];return new d({functionName:b,args:T||void 0,fileName:R,lineNumber:L||void 0,columnNumber:U||void 0})};for(var h=0;h<o.length;h++)d.prototype["get"+n(o[h])]=i(o[h]),d.prototype["set"+n(o[h])]=function(m){return function(_){this[m]=!!_}}(o[h]);for(var f=0;f<a.length;f++)d.prototype["get"+n(a[f])]=i(a[f]),d.prototype["set"+n(a[f])]=function(m){return function(_){if(!r(_))throw new TypeError(m+" must be a Number");this[m]=Number(_)}}(a[f]);for(var p=0;p<s.length;p++)d.prototype["get"+n(s[p])]=i(s[p]),d.prototype["set"+n(s[p])]=function(m){return function(_){this[m]=String(_)}}(s[p]);return d})}(Mc)),Mc.exports}var ep;function ET(){return ep||(ep=1,function(e,t){(function(r,n){e.exports=n(Ff())})(de,function(n){var i=/(^|@)\S+:\d+/,o=/^\s*at .*(\S+:\d+|\(native\))/m,a=/^(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(o))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 l=/(.+?)(?::(\d+))?(?::(\d+))?$/,c=l.exec(u.replace(/[()]/g,""));return[c[1],c[2]||void 0,c[3]||void 0]},parseV8OrIE:function(u){var l=u.stack.split(`
35
+ `).filter(function(c){return!!c.match(o)},this);return l.map(function(c){c.indexOf("(eval ")>-1&&(c=c.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var d=c.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),h=d.match(/ (\(.+\)$)/);d=h?d.replace(h[0],""):d;var f=this.extractLocation(h?h[1]:d),p=h&&d||void 0,m=["eval","<anonymous>"].indexOf(f[0])>-1?void 0:f[0];return new n({functionName:p,fileName:m,lineNumber:f[1],columnNumber:f[2],source:c})},this)},parseFFOrSafari:function(u){var l=u.stack.split(`
36
+ `).filter(function(c){return!c.match(a)},this);return l.map(function(c){if(c.indexOf(" > eval")>-1&&(c=c.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),c.indexOf("@")===-1&&c.indexOf(":")===-1)return new n({functionName:c});var d=/((.*".+"[^@]*)?[^@]*)(?:@)/,h=c.match(d),f=h&&h[1]?h[1]:void 0,p=this.extractLocation(c.replace(d,""));return new n({functionName:f,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 l=/Line (\d+).*script (?:in )?(\S+)/i,c=u.message.split(`
40
+ `),d=[],h=2,f=c.length;h<f;h+=2){var p=l.exec(c[h]);p&&d.push(new n({fileName:p[2],lineNumber:p[1],source:c[h]}))}return d},parseOpera10:function(u){for(var l=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,c=u.stacktrace.split(`
41
+ `),d=[],h=0,f=c.length;h<f;h+=2){var p=l.exec(c[h]);p&&d.push(new n({functionName:p[3]||void 0,fileName:p[2],lineNumber:p[1],source:c[h]}))}return d},parseOpera11:function(u){var l=u.stack.split(`
42
+ `).filter(function(c){return!!c.match(i)&&!c.match(/^Error created at/)},this);return l.map(function(c){var d=c.split("@"),h=this.extractLocation(d.pop()),f=d.shift()||"",p=f.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,m;f.match(/\(([^)]*)\)/)&&(m=f.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var _=m===void 0||m==="[arguments not available]"?void 0:m.split(",");return new n({functionName:p,args:_,fileName:h[0],lineNumber:h[1],columnNumber:h[2],source:c})},this)}}})}(kc)),kc.exports}var Fc={exports:{}},tp;function _T(){return tp||(tp=1,function(e,t){(function(r,n){e.exports=n(Ff())})(de,function(r){return{backtrace:function(i){var o=[],a=10;typeof i=="object"&&typeof i.maxStackSize=="number"&&(a=i.maxStackSize);for(var s=arguments.callee;s&&o.length<a&&s.arguments;){for(var u=new Array(s.arguments.length),l=0;l<u.length;++l)u[l]=s.arguments[l];/function(?:\s+([\w$]+))+\s*\(/.test(s.toString())?o.push(new r({functionName:RegExp.$1||void 0,args:u})):o.push(new r({args:u}));try{s=s.caller}catch{break}}return o}}})}(Fc)),Fc.exports}var Dc={exports:{}},ts={},Bc={},rp;function ty(){return rp||(rp=1,function(e){function t(E,b,T){if(b in E)return E[b];if(arguments.length===3)return T;throw new Error('"'+b+'" is a required argument.')}e.getArg=t;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,n=/^data:.+\,.+$/;function i(E){var b=E.match(r);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}e.urlParse=i;function o(E){var b="";return E.scheme&&(b+=E.scheme+":"),b+="//",E.auth&&(b+=E.auth+"@"),E.host&&(b+=E.host),E.port&&(b+=":"+E.port),E.path&&(b+=E.path),b}e.urlGenerate=o;function a(E){var b=E,T=i(E);if(T){if(!T.path)return E;b=T.path}for(var w=e.isAbsolute(b),P=b.split(/\/+/),R,L=0,U=P.length-1;U>=0;U--)R=P[U],R==="."?P.splice(U,1):R===".."?L++:L>0&&(R===""?(P.splice(U+1,L),L=0):(P.splice(U,2),L--));return b=P.join("/"),b===""&&(b=w?"/":"."),T?(T.path=b,o(T)):b}e.normalize=a;function s(E,b){E===""&&(E="."),b===""&&(b=".");var T=i(b),w=i(E);if(w&&(E=w.path||"/"),T&&!T.scheme)return w&&(T.scheme=w.scheme),o(T);if(T||b.match(n))return b;if(w&&!w.host&&!w.path)return w.host=b,o(w);var P=b.charAt(0)==="/"?b:a(E.replace(/\/+$/,"")+"/"+b);return w?(w.path=P,o(w)):P}e.join=s,e.isAbsolute=function(E){return E.charAt(0)==="/"||!!E.match(r)};function u(E,b){E===""&&(E="."),E=E.replace(/\/$/,"");for(var T=0;b.indexOf(E+"/")!==0;){var w=E.lastIndexOf("/");if(w<0||(E=E.slice(0,w),E.match(/^([^\/]+:\/)?\/*$/)))return b;++T}return Array(T+1).join("../")+b.substr(E.length+1)}e.relative=u;var l=function(){var E=Object.create(null);return!("__proto__"in E)}();function c(E){return E}function d(E){return f(E)?"$"+E:E}e.toSetString=l?c:d;function h(E){return f(E)?E.slice(1):E}e.fromSetString=l?c:h;function f(E){if(!E)return!1;var b=E.length;if(b<9||E.charCodeAt(b-1)!==95||E.charCodeAt(b-2)!==95||E.charCodeAt(b-3)!==111||E.charCodeAt(b-4)!==116||E.charCodeAt(b-5)!==111||E.charCodeAt(b-6)!==114||E.charCodeAt(b-7)!==112||E.charCodeAt(b-8)!==95||E.charCodeAt(b-9)!==95)return!1;for(var T=b-10;T>=0;T--)if(E.charCodeAt(T)!==36)return!1;return!0}function p(E,b,T){var w=E.source-b.source;return w!==0||(w=E.originalLine-b.originalLine,w!==0)||(w=E.originalColumn-b.originalColumn,w!==0||T)||(w=E.generatedColumn-b.generatedColumn,w!==0)||(w=E.generatedLine-b.generatedLine,w!==0)?w:E.name-b.name}e.compareByOriginalPositions=p;function m(E,b,T){var w=E.generatedLine-b.generatedLine;return w!==0||(w=E.generatedColumn-b.generatedColumn,w!==0||T)||(w=E.source-b.source,w!==0)||(w=E.originalLine-b.originalLine,w!==0)||(w=E.originalColumn-b.originalColumn,w!==0)?w:E.name-b.name}e.compareByGeneratedPositionsDeflated=m;function _(E,b){return E===b?0:E>b?1:-1}function S(E,b){var T=E.generatedLine-b.generatedLine;return T!==0||(T=E.generatedColumn-b.generatedColumn,T!==0)||(T=_(E.source,b.source),T!==0)||(T=E.originalLine-b.originalLine,T!==0)||(T=E.originalColumn-b.originalColumn,T!==0)?T:_(E.name,b.name)}e.compareByGeneratedPositionsInflated=S}(Bc)),Bc}var Uc={},np;function bT(){return np||(np=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,n,i,o,a,s){var u=Math.floor((n-r)/2)+r,l=a(i,o[u],!0);return l===0?u:l>0?n-u>1?t(u,n,i,o,a,s):s==e.LEAST_UPPER_BOUND?n<o.length?n:-1:u:u-r>1?t(r,u,i,o,a,s):s==e.LEAST_UPPER_BOUND?u:r<0?-1:r}e.search=function(n,i,o,a){if(i.length===0)return-1;var s=t(-1,i.length,n,i,o,a||e.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&o(i[s],i[s-1],!0)===0;)--s;return s}}(Uc)),Uc}var $c={},ip;function wT(){if(ip)return $c;ip=1;var e=ty(),t=Object.prototype.hasOwnProperty;function r(){this._array=[],this._set=Object.create(null)}return r.fromArray=function(i,o){for(var a=new r,s=0,u=i.length;s<u;s++)a.add(i[s],o);return a},r.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(i,o){var a=e.toSetString(i),s=t.call(this._set,a),u=this._array.length;(!s||o)&&this._array.push(i),s||(this._set[a]=u)},r.prototype.has=function(i){var o=e.toSetString(i);return t.call(this._set,o)},r.prototype.indexOf=function(i){var o=e.toSetString(i);if(t.call(this._set,o))return this._set[o];throw new Error('"'+i+'" is not in the set.')},r.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},r.prototype.toArray=function(){return this._array.slice()},$c.ArraySet=r,$c}var xa={},Oa={},op;function ST(){if(op)return Oa;op=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Oa.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Oa.decode=function(t){var r=65,n=90,i=97,o=122,a=48,s=57,u=43,l=47,c=26,d=52;return r<=t&&t<=n?t-r:i<=t&&t<=o?t-i+c:a<=t&&t<=s?t-a+d:t==u?62:t==l?63:-1},Oa}var sp;function TT(){if(sp)return xa;sp=1;var e=ST(),t=5,r=1<<t,n=r-1,i=r;function o(s){return s<0?(-s<<1)+1:(s<<1)+0}function a(s){var u=(s&1)===1,l=s>>1;return u?-l:l}return xa.encode=function(u){var l="",c,d=o(u);do c=d&n,d>>>=t,d>0&&(c|=i),l+=e.encode(c);while(d>0);return l},xa.decode=function(u,l,c){var d=u.length,h=0,f=0,p,m;do{if(l>=d)throw new Error("Expected more digits in base 64 VLQ value.");if(m=e.decode(u.charCodeAt(l++)),m===-1)throw new Error("Invalid base64 digit: "+u.charAt(l-1));p=!!(m&i),m&=n,h=h+(m<<f),f+=t}while(p);c.value=a(h),c.rest=l},xa}var jc={},ap;function xT(){if(ap)return jc;ap=1;function e(n,i,o){var a=n[i];n[i]=n[o],n[o]=a}function t(n,i){return Math.round(n+Math.random()*(i-n))}function r(n,i,o,a){if(o<a){var s=t(o,a),u=o-1;e(n,s,a);for(var l=n[a],c=o;c<a;c++)i(n[c],l)<=0&&(u+=1,e(n,u,c));e(n,u+1,c);var d=u+1;r(n,i,o,d-1),r(n,i,d+1,a)}}return jc.quickSort=function(n,i){r(n,i,0,n.length-1)},jc}var up;function OT(){if(up)return ts;up=1;var e=ty(),t=bT(),r=wT().ArraySet,n=TT(),i=xT().quickSort;function o(l){var c=l;return typeof l=="string"&&(c=JSON.parse(l.replace(/^\)\]\}'/,""))),c.sections!=null?new u(c):new a(c)}o.fromSourceMap=function(l){return a.fromSourceMap(l)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(c,d){var h=c.charAt(d);return h===";"||h===","},o.prototype._parseMappings=function(c,d){throw new Error("Subclasses must implement _parseMappings")},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(c,d,h){var f=d||null,p=h||o.GENERATED_ORDER,m;switch(p){case o.GENERATED_ORDER:m=this._generatedMappings;break;case o.ORIGINAL_ORDER:m=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var _=this.sourceRoot;m.map(function(S){var E=S.source===null?null:this._sources.at(S.source);return E!=null&&_!=null&&(E=e.join(_,E)),{source:E,generatedLine:S.generatedLine,generatedColumn:S.generatedColumn,originalLine:S.originalLine,originalColumn:S.originalColumn,name:S.name===null?null:this._names.at(S.name)}},this).forEach(c,f)},o.prototype.allGeneratedPositionsFor=function(c){var d=e.getArg(c,"line"),h={source:e.getArg(c,"source"),originalLine:d,originalColumn:e.getArg(c,"column",0)};if(this.sourceRoot!=null&&(h.source=e.relative(this.sourceRoot,h.source)),!this._sources.has(h.source))return[];h.source=this._sources.indexOf(h.source);var f=[],p=this._findMapping(h,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 _=m.originalLine;m&&m.originalLine===_;)f.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 S=m.originalColumn;m&&m.originalLine===d&&m.originalColumn==S;)f.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++p]}return f},ts.SourceMapConsumer=o;function a(l){var c=l;typeof l=="string"&&(c=JSON.parse(l.replace(/^\)\]\}'/,"")));var d=e.getArg(c,"version"),h=e.getArg(c,"sources"),f=e.getArg(c,"names",[]),p=e.getArg(c,"sourceRoot",null),m=e.getArg(c,"sourcesContent",null),_=e.getArg(c,"mappings"),S=e.getArg(c,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);h=h.map(String).map(e.normalize).map(function(E){return p&&e.isAbsolute(p)&&e.isAbsolute(E)?e.relative(p,E):E}),this._names=r.fromArray(f.map(String),!0),this._sources=r.fromArray(h,!0),this.sourceRoot=p,this.sourcesContent=m,this._mappings=_,this.file=S}a.prototype=Object.create(o.prototype),a.prototype.consumer=o,a.fromSourceMap=function(c){var d=Object.create(a.prototype),h=d._names=r.fromArray(c._names.toArray(),!0),f=d._sources=r.fromArray(c._sources.toArray(),!0);d.sourceRoot=c._sourceRoot,d.sourcesContent=c._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=c._file;for(var p=c._mappings.toArray().slice(),m=d.__generatedMappings=[],_=d.__originalMappings=[],S=0,E=p.length;S<E;S++){var b=p[S],T=new s;T.generatedLine=b.generatedLine,T.generatedColumn=b.generatedColumn,b.source&&(T.source=f.indexOf(b.source),T.originalLine=b.originalLine,T.originalColumn=b.originalColumn,b.name&&(T.name=h.indexOf(b.name)),_.push(T)),m.push(T)}return i(d.__originalMappings,e.compareByOriginalPositions),d},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._sources.toArray().map(function(l){return this.sourceRoot!=null?e.join(this.sourceRoot,l):l},this)}});function s(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(c,d){for(var h=1,f=0,p=0,m=0,_=0,S=0,E=c.length,b=0,T={},w={},P=[],R=[],L,U,q,G,j;b<E;)if(c.charAt(b)===";")h++,b++,f=0;else if(c.charAt(b)===",")b++;else{for(L=new s,L.generatedLine=h,G=b;G<E&&!this._charIsMappingSeparator(c,G);G++);if(U=c.slice(b,G),q=T[U],q)b+=U.length;else{for(q=[];b<G;)n.decode(c,b,w),j=w.value,b=w.rest,q.push(j);if(q.length===2)throw new Error("Found a source, but no line and column");if(q.length===3)throw new Error("Found a source and line, but no column");T[U]=q}L.generatedColumn=f+q[0],f=L.generatedColumn,q.length>1&&(L.source=_+q[1],_+=q[1],L.originalLine=p+q[2],p=L.originalLine,L.originalLine+=1,L.originalColumn=m+q[3],m=L.originalColumn,q.length>4&&(L.name=S+q[4],S+=q[4])),R.push(L),typeof L.originalLine=="number"&&P.push(L)}i(R,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=R,i(P,e.compareByOriginalPositions),this.__originalMappings=P},a.prototype._findMapping=function(c,d,h,f,p,m){if(c[h]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[h]);if(c[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[f]);return t.search(c,d,p,m)},a.prototype.computeColumnSpans=function(){for(var c=0;c<this._generatedMappings.length;++c){var d=this._generatedMappings[c];if(c+1<this._generatedMappings.length){var h=this._generatedMappings[c+1];if(d.generatedLine===h.generatedLine){d.lastGeneratedColumn=h.generatedColumn-1;continue}}d.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(c){var d={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},h=this._findMapping(d,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(c,"bias",o.GREATEST_LOWER_BOUND));if(h>=0){var f=this._generatedMappings[h];if(f.generatedLine===d.generatedLine){var p=e.getArg(f,"source",null);p!==null&&(p=this._sources.at(p),this.sourceRoot!=null&&(p=e.join(this.sourceRoot,p)));var m=e.getArg(f,"name",null);return m!==null&&(m=this._names.at(m)),{source:p,line:e.getArg(f,"originalLine",null),column:e.getArg(f,"originalColumn",null),name:m}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1},a.prototype.sourceContentFor=function(c,d){if(!this.sourcesContent)return null;if(this.sourceRoot!=null&&(c=e.relative(this.sourceRoot,c)),this._sources.has(c))return this.sourcesContent[this._sources.indexOf(c)];var h;if(this.sourceRoot!=null&&(h=e.urlParse(this.sourceRoot))){var f=c.replace(/^file:\/\//,"");if(h.scheme=="file"&&this._sources.has(f))return this.sourcesContent[this._sources.indexOf(f)];if((!h.path||h.path=="/")&&this._sources.has("/"+c))return this.sourcesContent[this._sources.indexOf("/"+c)]}if(d)return null;throw new Error('"'+c+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(c){var d=e.getArg(c,"source");if(this.sourceRoot!=null&&(d=e.relative(this.sourceRoot,d)),!this._sources.has(d))return{line:null,column:null,lastColumn:null};d=this._sources.indexOf(d);var h={source:d,originalLine:e.getArg(c,"line"),originalColumn:e.getArg(c,"column")},f=this._findMapping(h,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(c,"bias",o.GREATEST_LOWER_BOUND));if(f>=0){var p=this._originalMappings[f];if(p.source===h.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}},ts.BasicSourceMapConsumer=a;function u(l){var c=l;typeof l=="string"&&(c=JSON.parse(l.replace(/^\)\]\}'/,"")));var d=e.getArg(c,"version"),h=e.getArg(c,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new r,this._names=new r;var f={line:-1,column:0};this._sections=h.map(function(p){if(p.url)throw new Error("Support for url field in sections not implemented.");var m=e.getArg(p,"offset"),_=e.getArg(m,"line"),S=e.getArg(m,"column");if(_<f.line||_===f.line&&S<f.column)throw new Error("Section offsets must be ordered and non-overlapping.");return f=m,{generatedOffset:{generatedLine:_+1,generatedColumn:S+1},consumer:new o(e.getArg(p,"map"))}})}return u.prototype=Object.create(o.prototype),u.prototype.constructor=o,u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){for(var l=[],c=0;c<this._sections.length;c++)for(var d=0;d<this._sections[c].consumer.sources.length;d++)l.push(this._sections[c].consumer.sources[d]);return l}}),u.prototype.originalPositionFor=function(c){var d={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},h=t.search(d,this._sections,function(p,m){var _=p.generatedLine-m.generatedOffset.generatedLine;return _||p.generatedColumn-m.generatedOffset.generatedColumn}),f=this._sections[h];return f?f.consumer.originalPositionFor({line:d.generatedLine-(f.generatedOffset.generatedLine-1),column:d.generatedColumn-(f.generatedOffset.generatedLine===d.generatedLine?f.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,d){for(var h=0;h<this._sections.length;h++){var f=this._sections[h],p=f.consumer.sourceContentFor(c,!0);if(p)return p}if(d)return null;throw new Error('"'+c+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(c){for(var d=0;d<this._sections.length;d++){var h=this._sections[d];if(h.consumer.sources.indexOf(e.getArg(c,"source"))!==-1){var f=h.consumer.generatedPositionFor(c);if(f){var p={line:f.line+(h.generatedOffset.generatedLine-1),column:f.column+(h.generatedOffset.generatedLine===f.line?h.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},u.prototype._parseMappings=function(c,d){this.__generatedMappings=[],this.__originalMappings=[];for(var h=0;h<this._sections.length;h++)for(var f=this._sections[h],p=f.consumer._generatedMappings,m=0;m<p.length;m++){var _=p[m],S=f.consumer._sources.at(_.source);f.consumer.sourceRoot!==null&&(S=e.join(f.consumer.sourceRoot,S)),this._sources.add(S),S=this._sources.indexOf(S);var E=f.consumer._names.at(_.name);this._names.add(E),E=this._names.indexOf(E);var b={source:S,generatedLine:_.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:_.generatedColumn+(f.generatedOffset.generatedLine===_.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:_.originalLine,originalColumn:_.originalColumn,name:E};this.__generatedMappings.push(b),typeof b.originalLine=="number"&&this.__originalMappings.push(b)}i(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),i(this.__originalMappings,e.compareByOriginalPositions)},ts.IndexedSourceMapConsumer=u,ts}var cp;function AT(){return cp||(cp=1,function(e,t){(function(r,n){e.exports=n(OT(),Ff())})(de,function(r,n){function i(h){return new Promise(function(f,p){var m=new XMLHttpRequest;m.open("get",h),m.onerror=p,m.onreadystatechange=function(){m.readyState===4&&(m.status>=200&&m.status<300||h.substr(0,7)==="file://"&&m.responseText?f(m.responseText):p(new Error("HTTP status: "+m.status+" retrieving "+h)))},m.send()})}function o(h){if(typeof window<"u"&&window.atob)return window.atob(h);throw new Error("You must supply a polyfill for window.atob in this environment")}function a(h){if(typeof JSON<"u"&&JSON.parse)return JSON.parse(h);throw new Error("You must supply a polyfill for JSON.parse in this environment")}function s(h,f){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=h.split(`
43
+ `),_="",S=Math.min(f,20),E=0;E<S;++E){var b=m[f-E-1],T=b.indexOf("//");if(T>=0&&(b=b.substr(0,T)),b){_=b+_;for(var w=p.length,P=0;P<w;P++){var R=p[P].exec(_);if(R&&R[1])return R[1]}}}}function u(){if(typeof Object.defineProperty!="function"||typeof Object.create!="function")throw new Error("Unable to consume source maps in older browsers")}function l(h){if(typeof h!="object")throw new TypeError("Given StackFrame is not an object");if(typeof h.fileName!="string")throw new TypeError("Given file name is not a String");if(typeof h.lineNumber!="number"||h.lineNumber%1!==0||h.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if(typeof h.columnNumber!="number"||h.columnNumber%1!==0||h.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}function c(h){for(var f=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/mg,p,m;m=f.exec(h);)p=m[1];if(p)return p;throw new Error("sourceMappingURL not found")}function d(h,f,p){return new Promise(function(m,_){var S=f.originalPositionFor({line:h.lineNumber,column:h.columnNumber});if(S.source){var E=f.sourceContentFor(S.source);E&&(p[S.source]=E),m(new n({functionName:S.name||h.functionName,args:h.args,fileName:S.source,lineNumber:S.line,columnNumber:S.column}))}else _(new Error("Could not get original source for given stackframe and source map"))})}return function h(f){if(!(this instanceof h))return new h(f);f=f||{},this.sourceCache=f.sourceCache||{},this.sourceMapConsumerCache=f.sourceMapConsumerCache||{},this.ajax=f.ajax||i,this._atob=f.atob||o,this._get=function(m){return new Promise((function(_,S){var E=m.substr(0,5)==="data:";if(this.sourceCache[m])_(this.sourceCache[m]);else if(f.offline&&!E)S(new Error("Cannot make network requests in offline mode"));else if(E){var b=/^data:application\/json;([\w=:"-]+;)*base64,/,T=m.match(b);if(T){var w=T[0].length,P=m.substr(w),R=this._atob(P);this.sourceCache[m]=R,_(R)}else S(new Error("The encoding of the inline sourcemap is not supported"))}else{var L=this.ajax(m,{method:"get"});this.sourceCache[m]=L,L.then(_,S)}}).bind(this))},this._getSourceMapConsumer=function(m,_){return new Promise((function(S){if(this.sourceMapConsumerCache[m])S(this.sourceMapConsumerCache[m]);else{var E=new Promise((function(b,T){return this._get(m).then(function(w){typeof w=="string"&&(w=a(w.replace(/^\)\]\}'/,""))),typeof w.sourceRoot>"u"&&(w.sourceRoot=_),b(new r.SourceMapConsumer(w))}).catch(T)}).bind(this));this.sourceMapConsumerCache[m]=E,S(E)}}).bind(this))},this.pinpoint=function(m){return new Promise((function(_,S){this.getMappedLocation(m).then((function(E){function b(){_(E)}this.findFunctionName(E).then(_,b).catch(b)}).bind(this),S)}).bind(this))},this.findFunctionName=function(m){return new Promise((function(_,S){l(m),this._get(m.fileName).then(function(b){var T=m.lineNumber,w=m.columnNumber,P=s(b,T);_(P?new n({functionName:P,args:m.args,fileName:m.fileName,lineNumber:T,columnNumber:w}):m)},S).catch(S)}).bind(this))},this.getMappedLocation=function(m){return new Promise((function(_,S){u(),l(m);var E=this.sourceCache,b=m.fileName;this._get(b).then((function(T){var w=c(T),P=w.substr(0,5)==="data:",R=b.substring(0,b.lastIndexOf("/")+1);return w[0]!=="/"&&!P&&!/^https?:\/\/|^\/\//i.test(w)&&(w=R+w),this._getSourceMapConsumer(w,R).then(function(L){return d(m,L,E).then(_).catch(function(){_(m)})})}).bind(this),S).catch(S)}).bind(this))}}})}(Dc)),Dc.exports}var lp;function CT(){return lp||(lp=1,function(e,t){(function(r,n){e.exports=n(ET(),_T(),AT())})(de,function(n,i,o){var a={filter:function(d){return(d.functionName||"").indexOf("StackTrace$$")===-1&&(d.functionName||"").indexOf("ErrorStackParser$$")===-1&&(d.functionName||"").indexOf("StackTraceGPS$$")===-1&&(d.functionName||"").indexOf("StackGenerator$$")===-1},sourceCache:{}},s=function(){try{throw new Error}catch(h){return h}};function u(d,h){var f={};return[d,h].forEach(function(p){for(var m in p)Object.prototype.hasOwnProperty.call(p,m)&&(f[m]=p[m]);return f}),f}function l(d){return d.stack||d["opera#sourceloc"]}function c(d,h){return typeof h=="function"?d.filter(h):d}return{get:function(h){var f=s();return l(f)?this.fromError(f,h):this.generateArtificially(h)},getSync:function(h){h=u(a,h);var f=s(),p=l(f)?n.parse(f):i.backtrace(h);return c(p,h.filter)},fromError:function(h,f){f=u(a,f);var p=new o(f);return new Promise((function(m){var _=c(n.parse(h),f.filter);m(Promise.all(_.map(function(S){return new Promise(function(E){function b(){E(S)}p.pinpoint(S).then(E,b).catch(b)})})))}).bind(this))},generateArtificially:function(h){h=u(a,h);var f=i.backtrace(h);return typeof h.filter=="function"&&(f=f.filter(h.filter)),Promise.resolve(f)},instrument:function(h,f,p,m){if(typeof h!="function")throw new Error("Cannot instrument non-function object");if(typeof h.__stacktraceOriginalFn=="function")return h;var _=(function(){try{return this.get().then(f,p).catch(p),h.apply(m||this,arguments)}catch(E){throw l(E)&&this.fromError(E).then(f,p).catch(p),E}}).bind(this);return _.__stacktraceOriginalFn=h,_},deinstrument:function(h){if(typeof h!="function")throw new Error("Cannot de-instrument non-function object");return typeof h.__stacktraceOriginalFn=="function"?h.__stacktraceOriginalFn:h},report:function(h,f,p,m){return new Promise(function(_,S){var E=new XMLHttpRequest;if(E.onerror=S,E.onreadystatechange=function(){E.readyState===4&&(E.status>=200&&E.status<400?_(E.responseText):S(new Error("POST to "+f+" failed with status: "+E.status)))},E.open("post",f),E.setRequestHeader("Content-Type","application/json"),m&&typeof m.headers=="object"){var b=m.headers;for(var T in b)Object.prototype.hasOwnProperty.call(b,T)&&E.setRequestHeader(T,b[T])}var w={stack:h};p!=null&&(w.message=p),E.send(JSON.stringify(w))})}}})}(Lc)),Lc.exports}var Hc,fp;function RT(){if(fp)return Hc;fp=1;var e=CT(),t="https://clouderrorreporting.googleapis.com/v1beta1/projects/",r=function(){};r.prototype.start=function(a){if(!a.key&&!a.targetUrl&&!a.customReportingFunction)throw new Error("Cannot initialize: No API key, target url or custom reporting function provided.");if(!a.projectId&&!a.targetUrl&&!a.customReportingFunction)throw new Error("Cannot initialize: No project ID, target url or custom reporting function provided.");this.customReportingFunction=a.customReportingFunction,this.apiKey=a.key,this.projectId=a.projectId,this.targetUrl=a.targetUrl,this.context=a.context||{},this.serviceContext={service:a.service||"web"},a.version&&(this.serviceContext.version=a.version),this.reportUncaughtExceptions=a.reportUncaughtExceptions!==!1,this.reportUnhandledPromiseRejections=a.reportUnhandledPromiseRejections!==!1,this.disabled=!!a.disabled,n(this)};function n(a){var s=function(){};if(a.reportUncaughtExceptions){var u=window.onerror||s;window.onerror=function(c,d,h,f,p){return p&&a.report(p).catch(s),u(c,d,h,f,p),!0}}if(a.reportUnhandledPromiseRejections){var l=window.onunhandledrejection||s;window.onunhandledrejection=function(c){return c&&a.report(c.reason).catch(s),l(c.reason),!0}}}r.prototype.report=function(a,s){if(this.disabled)return Promise.resolve(null);if(!a)return Promise.reject(new Error("no error to report"));s=s||{};var u={};u.serviceContext=this.serviceContext,u.context=this.context,u.context.httpRequest={userAgent:window.navigator.userAgent,url:window.location.href};var l=0;if(typeof a=="string"||a instanceof String){try{throw new Error(a)}catch(h){a=h}l=s.skipLocalFrames||1}var c=this.targetUrl||t+this.projectId+"/events:report?key="+this.apiKey,d=this.customReportingFunction;return i(a,l).then(function(h){return u.message=h,d?d(u):o(c,u)})};function i(a,s){return e.fromError(a).then(function(u){for(var l=[a.toString()],c=s;c<u.length;c++)l.push([" at ",u[c].getFunctionName()||"<anonymous>"," (",u[c].getFileName(),":",u[c].getLineNumber(),":",u[c].getColumnNumber(),")"].join(""));return l.join(`
44
+ `)},function(u){return["Error extracting stack trace: ",u,`
45
+ `,a.toString(),`
46
+ `," (",a.file,":",a.line,":",a.column,")"].join("")})}function o(a,s){var u=new XMLHttpRequest;return u.open("POST",a,!0),u.setRequestHeader("Content-Type","application/json; charset=UTF-8"),new Promise(function(l,c){u.onreadystatechange=function(){if(u.readyState===4){var d=u.status;if(d>=200&&d<300)l({message:s.message});else if(d===429)c({message:"quota or rate limiting error on stackdriver report",name:"Http429FakeError"});else{var h=d?d+" http response":"network error";c(new Error(h+" on stackdriver report"))}}},u.send(JSON.stringify(s))})}return r.prototype.setUser=function(a){this.context.user=a},Hc=r,Hc}var hp;function PT(){return hp||(hp=1,function(e,t){(function(r,n){e.exports=n(RT())})(de,function(r){return function(){var n={542:function(s){s.exports=r}},i={};function o(s){var u=i[s];if(u!==void 0)return u.exports;var l=i[s]={exports:{}};return n[s](l,l.exports,o),l.exports}o.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(u,{a:u}),u},o.d=function(s,u){for(var l in u)o.o(u,l)&&!o.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:u[l]})},o.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return function(){o.r(a),o.d(a,{reportError:function(){return h},setContext:function(){return d}});var s=o(542),u=o.n(s);const{GCP:{PROJECT_ID:l}}={GCP:{PROJECT_ID:"hazel-tea-194609"}};let c={key:null,environment:null,projectId:l};const d=({apiKey:f,environment:p,projectId:m,serviceName:_})=>{if(!f)throw new Error("Cannot set context: REACT_APP_GCP_ERRORS_API_KEY not defined");if(c.key=f,!p)throw new Error("Cannot set context: Environment not defined");c.environment=p,c.projectId=m||l,_&&(c.service=`${_}:${c.environment}`)},h=async(f,p)=>{try{const m=new(u());m.start(c),typeof p=="string"&&m.setUser(p),await m.report(f)}catch(m){console.warn(`Cannot report error: ${m.message}`)}}}(),a}()})}(Ic)),Ic.exports}var qc={exports:{}},Aa={},dp;function NT(){if(dp)return Aa;dp=1,Object.defineProperty(Aa,"__esModule",{value:!0});var e=function(r){console.warn("[react-gtm]",r)};return Aa.default=e,Aa}var Gc,pp;function IT(){if(pp)return Gc;pp=1;var e=NT(),t=r(e);function r(i){return i&&i.__esModule?i:{default:i}}var n={tags:function(o){var a=o.id,s=o.events,u=o.dataLayer,l=o.dataLayerName,c=o.preview,d=o.auth,h="&gtm_auth="+d,f="&gtm_preview="+c;a||(0,t.default)("GTM Id is required");var p=`
47
+ <iframe src="https://www.googletagmanager.com/ns.html?id=`+a+h+f+`&gtm_cookies_win=x"
48
+ height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>`,m=`
49
+ (function(w,d,s,l,i){w[l]=w[l]||[];
50
+ w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', `+JSON.stringify(s).slice(1,-1)+`});
51
+ var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';
52
+ j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'`+h+f+`&gtm_cookies_win=x';
53
+ f.parentNode.insertBefore(j,f);
54
+ })(window,document,'script','`+l+"','"+a+"');",_=this.dataLayer(u,l);return{iframe:p,script:m,dataLayerVar:_}},dataLayer:function(o,a){return`
55
+ window.`+a+" = window."+a+` || [];
56
+ window.`+a+".push("+JSON.stringify(o)+")"}};return Gc=n,Gc}var Vc,mp;function LT(){if(mp)return Vc;mp=1;var e=IT(),t=r(e);function r(i){return i&&i.__esModule?i:{default:i}}var n={dataScript:function(o){var a=document.createElement("script");return a.innerHTML=o,a},gtm:function(o){var a=t.default.tags(o),s=function(){var d=document.createElement("noscript");return d.innerHTML=a.iframe,d},u=function(){var d=document.createElement("script");return d.innerHTML=a.script,d},l=this.dataScript(a.dataLayerVar);return{noScript:s,script:u,dataScript:l}},initialize:function(o){var a=o.gtmId,s=o.events,u=s===void 0?{}:s,l=o.dataLayer,c=o.dataLayerName,d=c===void 0?"dataLayer":c,h=o.auth,f=h===void 0?"":h,p=o.preview,m=p===void 0?"":p,_=this.gtm({id:a,events:u,dataLayer:l||void 0,dataLayerName:d,auth:f,preview:m});l&&document.head.appendChild(_.dataScript),document.head.insertBefore(_.script(),document.head.childNodes[0]),document.body.insertBefore(_.noScript(),document.body.childNodes[0])},dataLayer:function(o){var a=o.dataLayer,s=o.dataLayerName,u=s===void 0?"dataLayer":s;if(window[u])return window[u].push(a);var l=t.default.dataLayer(a,u),c=this.dataScript(l);document.head.insertBefore(c,document.head.childNodes[0])}};return Vc=n,Vc}var Wc,gp;function kT(){if(gp)return Wc;gp=1;var e=LT(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return Wc=t.default,Wc}var yp;function MT(){return yp||(yp=1,function(e,t){(function(r,n){e.exports=n(kT())})(de,function(r){return function(){var n={273:function(s){s.exports=r}},i={};function o(s){var u=i[s];if(u!==void 0)return u.exports;var l=i[s]={exports:{}};return n[s](l,l.exports,o),l.exports}o.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(u,{a:u}),u},o.d=function(s,u){for(var l in u)o.o(u,l)&&!o.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:u[l]})},o.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return function(){o.r(a),o.d(a,{setContext:function(){return c},setupGTM:function(){return h}});var s=o(273),u=o.n(s);let l=null;const c=({configs:f,environment:p})=>{if(!p)throw new Error("Cannot set context: Environment not defined");if(!f)throw new Error("Cannot set context: REACT_APP_GTM_ID not defined");if(!f[p])throw new Error(`Cannot set context: REACT_APP_GTM_ID not defined for environment - ${JSON.stringify({configs:f,environment:p})}`);l=f[p]},d=()=>l,h=()=>{const f=d();u().initialize({gtmId:f.id})}}(),a}()})}(qc)),qc.exports}var ry=202,ny=502,iy=400,oy=409,sy=100,ay=201,uy=417,FT=424,cy=403,ly=504,fy=410,hy=505,dy=418,py=419,my=507,gy=500,yy=411,vy=423,Ey=420,_y=405,by=301,wy=302,Sy=207,Ty=300,xy=511,Oy=204,Ay=203,Cy=406,Ry=404,Py=501,Ny=304,Iy=200,Ly=206,ky=402,My=308,Fy=412,Dy=428,By=102,Uy=407,$y=431,jy=408,Hy=413,qy=414,Gy=416,Vy=205,Wy=303,zy=503,Qy=101,Yy=307,Ky=429,Xy=401,Jy=422,Zy=415,ev=305;const DT={ACCEPTED:ry,BAD_GATEWAY:ny,BAD_REQUEST:iy,CONFLICT:oy,CONTINUE:sy,CREATED:ay,EXPECTATION_FAILED:uy,FORBIDDEN:cy,GATEWAY_TIMEOUT:ly,GONE:fy,HTTP_VERSION_NOT_SUPPORTED:hy,IM_A_TEAPOT:dy,INSUFFICIENT_SPACE_ON_RESOURCE:py,INSUFFICIENT_STORAGE:my,INTERNAL_SERVER_ERROR:gy,LENGTH_REQUIRED:yy,LOCKED:vy,METHOD_FAILURE:Ey,METHOD_NOT_ALLOWED:_y,MOVED_PERMANENTLY:by,MOVED_TEMPORARILY:wy,MULTI_STATUS:Sy,MULTIPLE_CHOICES:Ty,NETWORK_AUTHENTICATION_REQUIRED:xy,NO_CONTENT:Oy,NON_AUTHORITATIVE_INFORMATION:Ay,NOT_ACCEPTABLE:Cy,NOT_FOUND:Ry,NOT_IMPLEMENTED:Py,NOT_MODIFIED:Ny,OK:Iy,PARTIAL_CONTENT:Ly,PAYMENT_REQUIRED:ky,PERMANENT_REDIRECT:My,PRECONDITION_FAILED:Fy,PRECONDITION_REQUIRED:Dy,PROCESSING:By,PROXY_AUTHENTICATION_REQUIRED:Uy,REQUEST_HEADER_FIELDS_TOO_LARGE:$y,REQUEST_TIMEOUT:jy,REQUEST_TOO_LONG:Hy,REQUEST_URI_TOO_LONG:qy,REQUESTED_RANGE_NOT_SATISFIABLE:Gy,RESET_CONTENT:Vy,SEE_OTHER:Wy,SERVICE_UNAVAILABLE:zy,SWITCHING_PROTOCOLS:Qy,TEMPORARY_REDIRECT:Yy,TOO_MANY_REQUESTS:Ky,UNAUTHORIZED:Xy,UNPROCESSABLE_ENTITY:Jy,UNSUPPORTED_MEDIA_TYPE:Zy,USE_PROXY:ev};var BT={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"},UT={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 tv(e){var t=BT[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}function rv(e){var t=UT[e];if(!t)throw new Error("Reason phrase does not exist: "+e);return t}var nv=tv,$l;(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"})($l||($l={}));var jl;(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"})(jl||(jl={}));var Ka=globalThis&&globalThis.__assign||function(){return Ka=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ka.apply(this,arguments)};const $T=Ka(Ka({},DT),{getStatusCode:rv,getStatusText:nv}),jT=Object.freeze(Object.defineProperty({__proto__:null,ACCEPTED:ry,BAD_GATEWAY:ny,BAD_REQUEST:iy,CONFLICT:oy,CONTINUE:sy,CREATED:ay,EXPECTATION_FAILED:uy,FAILED_DEPENDENCY:FT,FORBIDDEN:cy,GATEWAY_TIMEOUT:ly,GONE:fy,HTTP_VERSION_NOT_SUPPORTED:hy,IM_A_TEAPOT:dy,INSUFFICIENT_SPACE_ON_RESOURCE:py,INSUFFICIENT_STORAGE:my,INTERNAL_SERVER_ERROR:gy,LENGTH_REQUIRED:yy,LOCKED:vy,METHOD_FAILURE:Ey,METHOD_NOT_ALLOWED:_y,MOVED_PERMANENTLY:by,MOVED_TEMPORARILY:wy,MULTIPLE_CHOICES:Ty,MULTI_STATUS:Sy,NETWORK_AUTHENTICATION_REQUIRED:xy,NON_AUTHORITATIVE_INFORMATION:Ay,NOT_ACCEPTABLE:Cy,NOT_FOUND:Ry,NOT_IMPLEMENTED:Py,NOT_MODIFIED:Ny,NO_CONTENT:Oy,OK:Iy,PARTIAL_CONTENT:Ly,PAYMENT_REQUIRED:ky,PERMANENT_REDIRECT:My,PRECONDITION_FAILED:Fy,PRECONDITION_REQUIRED:Dy,PROCESSING:By,PROXY_AUTHENTICATION_REQUIRED:Uy,REQUESTED_RANGE_NOT_SATISFIABLE:Gy,REQUEST_HEADER_FIELDS_TOO_LARGE:$y,REQUEST_TIMEOUT:jy,REQUEST_TOO_LONG:Hy,REQUEST_URI_TOO_LONG:qy,RESET_CONTENT:Vy,get ReasonPhrases(){return jl},SEE_OTHER:Wy,SERVICE_UNAVAILABLE:zy,SWITCHING_PROTOCOLS:Qy,get StatusCodes(){return $l},TEMPORARY_REDIRECT:Yy,TOO_MANY_REQUESTS:Ky,UNAUTHORIZED:Xy,UNPROCESSABLE_ENTITY:Jy,UNSUPPORTED_MEDIA_TYPE:Zy,USE_PROXY:ev,default:$T,getReasonPhrase:tv,getStatusCode:rv,getStatusText:nv},Symbol.toStringTag,{value:"Module"})),HT=Js(jT);var Ca={exports:{}},rs={},zc={},ns={},is={},Mn={},os={},Qc={},Fn={},Pr={},vp;function Df(){if(vp)return Pr;vp=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.ERROR_PACKET=Pr.PACKET_TYPES_REVERSE=Pr.PACKET_TYPES=void 0;const e=Object.create(null);Pr.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);Pr.PACKET_TYPES_REVERSE=t,Object.keys(e).forEach(n=>{t[e[n]]=n});const r={type:"error",data:"parser error"};return Pr.ERROR_PACKET=r,Pr}var Ep;function qT(){if(Ep)return Fn;Ep=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.encodePacket=Fn.encodePacketToBinary=void 0;const e=Df(),t=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",r=typeof ArrayBuffer=="function",n=l=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer,i=({type:l,data:c},d,h)=>t&&c instanceof Blob?d?h(c):o(c,h):r&&(c instanceof ArrayBuffer||n(c))?d?h(c):o(new Blob([c]),h):h(e.PACKET_TYPES[l]+(c||""));Fn.encodePacket=i;const o=(l,c)=>{const d=new FileReader;return d.onload=function(){const h=d.result.split(",")[1];c("b"+(h||""))},d.readAsDataURL(l)};function a(l){return l instanceof Uint8Array?l:l instanceof ArrayBuffer?new Uint8Array(l):new Uint8Array(l.buffer,l.byteOffset,l.byteLength)}let s;function u(l,c){if(t&&l.data instanceof Blob)return l.data.arrayBuffer().then(a).then(c);if(r&&(l.data instanceof ArrayBuffer||n(l.data)))return c(a(l.data));i(l,!1,d=>{s||(s=new TextEncoder),c(s.encode(d))})}return Fn.encodePacketToBinary=u,Fn}var ss={},Dn={},_p;function GT(){if(_p)return Dn;_p=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.decode=Dn.encode=void 0;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let i=0;i<e.length;i++)t[e.charCodeAt(i)]=i;const r=i=>{let o=new Uint8Array(i),a,s=o.length,u="";for(a=0;a<s;a+=3)u+=e[o[a]>>2],u+=e[(o[a]&3)<<4|o[a+1]>>4],u+=e[(o[a+1]&15)<<2|o[a+2]>>6],u+=e[o[a+2]&63];return s%3===2?u=u.substring(0,u.length-1)+"=":s%3===1&&(u=u.substring(0,u.length-2)+"=="),u};Dn.encode=r;const n=i=>{let o=i.length*.75,a=i.length,s,u=0,l,c,d,h;i[i.length-1]==="="&&(o--,i[i.length-2]==="="&&o--);const f=new ArrayBuffer(o),p=new Uint8Array(f);for(s=0;s<a;s+=4)l=t[i.charCodeAt(s)],c=t[i.charCodeAt(s+1)],d=t[i.charCodeAt(s+2)],h=t[i.charCodeAt(s+3)],p[u++]=l<<2|c>>4,p[u++]=(c&15)<<4|d>>2,p[u++]=(d&3)<<6|h&63;return f};return Dn.decode=n,Dn}var bp;function VT(){if(bp)return ss;bp=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.decodePacket=void 0;const e=Df(),t=GT(),r=typeof ArrayBuffer=="function",n=(a,s)=>{if(typeof a!="string")return{type:"message",data:o(a,s)};const u=a.charAt(0);return u==="b"?{type:"message",data:i(a.substring(1),s)}:e.PACKET_TYPES_REVERSE[u]?a.length>1?{type:e.PACKET_TYPES_REVERSE[u],data:a.substring(1)}:{type:e.PACKET_TYPES_REVERSE[u]}:e.ERROR_PACKET};ss.decodePacket=n;const i=(a,s)=>{if(r){const u=(0,t.decode)(a);return o(u,s)}else return{base64:!0,data:a}},o=(a,s)=>{switch(s){case"blob":return a instanceof Blob?a:new Blob([a]);case"arraybuffer":default:return a instanceof ArrayBuffer?a:a.buffer}};return ss}var wp;function ea(){return wp||(wp=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=qT();Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return t.encodePacket}});const r=VT();Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return r.decodePacket}});const n=Df(),i=String.fromCharCode(30),o=(h,f)=>{const p=h.length,m=new Array(p);let _=0;h.forEach((S,E)=>{(0,t.encodePacket)(S,!1,b=>{m[E]=b,++_===p&&f(m.join(i))})})};e.encodePayload=o;const a=(h,f)=>{const p=h.split(i),m=[];for(let _=0;_<p.length;_++){const S=(0,r.decodePacket)(p[_],f);if(m.push(S),S.type==="error")break}return m};e.decodePayload=a;function s(){return new TransformStream({transform(h,f){(0,t.encodePacketToBinary)(h,p=>{const m=p.length;let _;if(m<126)_=new Uint8Array(1),new DataView(_.buffer).setUint8(0,m);else if(m<65536){_=new Uint8Array(3);const S=new DataView(_.buffer);S.setUint8(0,126),S.setUint16(1,m)}else{_=new Uint8Array(9);const S=new DataView(_.buffer);S.setUint8(0,127),S.setBigUint64(1,BigInt(m))}h.data&&typeof h.data!="string"&&(_[0]|=128),f.enqueue(_),f.enqueue(p)})}})}e.createPacketEncoderStream=s;let u;function l(h){return h.reduce((f,p)=>f+p.length,0)}function c(h,f){if(h[0].length===f)return h.shift();const p=new Uint8Array(f);let m=0;for(let _=0;_<f;_++)p[_]=h[0][m++],m===h[0].length&&(h.shift(),m=0);return h.length&&m<h[0].length&&(h[0]=h[0].slice(m)),p}function d(h,f){u||(u=new TextDecoder);const p=[];let m=0,_=-1,S=!1;return new TransformStream({transform(E,b){for(p.push(E);;){if(m===0){if(l(p)<1)break;const T=c(p,1);S=(T[0]&128)===128,_=T[0]&127,_<126?m=3:_===126?m=1:m=2}else if(m===1){if(l(p)<2)break;const T=c(p,2);_=new DataView(T.buffer,T.byteOffset,T.length).getUint16(0),m=3}else if(m===2){if(l(p)<8)break;const T=c(p,8),w=new DataView(T.buffer,T.byteOffset,T.length),P=w.getUint32(0);if(P>Math.pow(2,53-32)-1){b.enqueue(n.ERROR_PACKET);break}_=P*Math.pow(2,32)+w.getUint32(4),m=3}else{if(l(p)<_)break;const T=c(p,_);b.enqueue((0,r.decodePacket)(S?T:u.decode(T),f)),m=0}if(_===0||_>h){b.enqueue(n.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=d,e.protocol=4}(Qc)),Qc}function St(e){if(e)return WT(e)}function WT(e){for(var t in St.prototype)e[t]=St.prototype[t];return e}St.prototype.on=St.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};St.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};St.prototype.off=St.prototype.removeListener=St.prototype.removeAllListeners=St.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,i=0;i<r.length;i++)if(n=r[i],n===t||n.fn===t){r.splice(i,1);break}return r.length===0&&delete this._callbacks["$"+e],this};St.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this};St.prototype.emitReserved=St.prototype.emit;St.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};St.prototype.hasListeners=function(e){return!!this.listeners(e).length};const zT=Object.freeze(Object.defineProperty({__proto__:null,Emitter:St},Symbol.toStringTag,{value:"Module"})),ho=Js(zT);var Nr={},as={},Sp;function gu(){return Sp||(Sp=1,Object.defineProperty(as,"__esModule",{value:!0}),as.globalThisShim=void 0,as.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())()),as}var Tp;function ta(){if(Tp)return Nr;Tp=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.byteLength=Nr.installTimerFunctions=Nr.pick=void 0;const e=gu();function t(u,...l){return l.reduce((c,d)=>(u.hasOwnProperty(d)&&(c[d]=u[d]),c),{})}Nr.pick=t;const r=e.globalThisShim.setTimeout,n=e.globalThisShim.clearTimeout;function i(u,l){l.useNativeTimers?(u.setTimeoutFn=r.bind(e.globalThisShim),u.clearTimeoutFn=n.bind(e.globalThisShim)):(u.setTimeoutFn=e.globalThisShim.setTimeout.bind(e.globalThisShim),u.clearTimeoutFn=e.globalThisShim.clearTimeout.bind(e.globalThisShim))}Nr.installTimerFunctions=i;const o=1.33;function a(u){return typeof u=="string"?s(u):Math.ceil((u.byteLength||u.size)*o)}Nr.byteLength=a;function s(u){let l=0,c=0;for(let d=0,h=u.length;d<h;d++)l=u.charCodeAt(d),l<128?c+=1:l<2048?c+=2:l<55296||l>=57344?c+=3:(d++,c+=4);return c}return Nr}var Ra={exports:{}},Yc,xp;function QT(){if(xp)return Yc;xp=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,o=n*365.25;Yc=function(c,d){d=d||{};var h=typeof c;if(h==="string"&&c.length>0)return a(c);if(h==="number"&&isFinite(c))return d.long?u(c):s(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function a(c){if(c=String(c),!(c.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(d){var h=parseFloat(d[1]),f=(d[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return h*o;case"weeks":case"week":case"w":return h*i;case"days":case"day":case"d":return h*n;case"hours":case"hour":case"hrs":case"hr":case"h":return h*r;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function s(c){var d=Math.abs(c);return d>=n?Math.round(c/n)+"d":d>=r?Math.round(c/r)+"h":d>=t?Math.round(c/t)+"m":d>=e?Math.round(c/e)+"s":c+"ms"}function u(c){var d=Math.abs(c);return d>=n?l(c,d,n,"day"):d>=r?l(c,d,r,"hour"):d>=t?l(c,d,t,"minute"):d>=e?l(c,d,e,"second"):c+" ms"}function l(c,d,h,f){var p=d>=h*1.5;return Math.round(c/h)+" "+f+(p?"s":"")}return Yc}var Kc,Op;function YT(){if(Op)return Kc;Op=1;function e(t){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=o,n.enabled=s,n.humanize=QT(),n.destroy=c,Object.keys(t).forEach(d=>{n[d]=t[d]}),n.names=[],n.skips=[],n.formatters={};function r(d){let h=0;for(let f=0;f<d.length;f++)h=(h<<5)-h+d.charCodeAt(f),h|=0;return n.colors[Math.abs(h)%n.colors.length]}n.selectColor=r;function n(d){let h,f=null,p,m;function _(...S){if(!_.enabled)return;const E=_,b=Number(new Date),T=b-(h||b);E.diff=T,E.prev=h,E.curr=b,h=b,S[0]=n.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let w=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(R,L)=>{if(R==="%%")return"%";w++;const U=n.formatters[L];if(typeof U=="function"){const q=S[w];R=U.call(E,q),S.splice(w,1),w--}return R}),n.formatArgs.call(E,S),(E.log||n.log).apply(E,S)}return _.namespace=d,_.useColors=n.useColors(),_.color=n.selectColor(d),_.extend=i,_.destroy=n.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==n.namespaces&&(p=n.namespaces,m=n.enabled(d)),m),set:S=>{f=S}}),typeof n.init=="function"&&n.init(_),_}function i(d,h){const f=n(this.namespace+(typeof h>"u"?":":h)+d);return f.log=this.log,f}function o(d){n.save(d),n.namespaces=d,n.names=[],n.skips=[];let h;const f=(typeof d=="string"?d:"").split(/[\s,]+/),p=f.length;for(h=0;h<p;h++)f[h]&&(d=f[h].replace(/\*/g,".*?"),d[0]==="-"?n.skips.push(new RegExp("^"+d.slice(1)+"$")):n.names.push(new RegExp("^"+d+"$")))}function a(){const d=[...n.names.map(u),...n.skips.map(u).map(h=>"-"+h)].join(",");return n.enable(""),d}function s(d){if(d[d.length-1]==="*")return!0;let h,f;for(h=0,f=n.skips.length;h<f;h++)if(n.skips[h].test(d))return!1;for(h=0,f=n.names.length;h<f;h++)if(n.names[h].test(d))return!0;return!1}function u(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function l(d){return d instanceof Error?d.stack||d.message:d}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}return Kc=e,Kc}var Ap;function wr(){return Ap||(Ap=1,function(e,t){t.formatArgs=n,t.save=i,t.load=o,t.useColors=r,t.storage=a(),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 r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(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 l="color: "+this.color;u.splice(1,0,l,"color: inherit");let c=0,d=0;u[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(c++,h==="%c"&&(d=c))}),u.splice(d,0,l)}t.log=console.debug||console.log||(()=>{});function i(u){try{u?t.storage.setItem("debug",u):t.storage.removeItem("debug")}catch{}}function o(){let u;try{u=t.storage.getItem("debug")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}function a(){try{return localStorage}catch{}}e.exports=YT()(t);const{formatters:s}=e.exports;s.j=function(u){try{return JSON.stringify(u)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(Ra,Ra.exports)),Ra.exports}var Bn={},Cp;function iv(){if(Cp)return Bn;Cp=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.decode=Bn.encode=void 0;function e(r){let n="";for(let i in r)r.hasOwnProperty(i)&&(n.length&&(n+="&"),n+=encodeURIComponent(i)+"="+encodeURIComponent(r[i]));return n}Bn.encode=e;function t(r){let n={},i=r.split("&");for(let o=0,a=i.length;o<a;o++){let s=i[o].split("=");n[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return n}return Bn.decode=t,Bn}var Rp;function yu(){if(Rp)return os;Rp=1;var e=de&&de.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(os,"__esModule",{value:!0}),os.Transport=void 0;const t=ea(),r=ho,n=ta(),i=e(wr()),o=iv(),a=(0,i.default)("engine.io-client:transport");class s extends Error{constructor(c,d,h){super(c),this.description=d,this.context=h,this.type="TransportError"}}class u extends r.Emitter{constructor(c){super(),this.writable=!1,(0,n.installTimerFunctions)(this,c),this.opts=c,this.query=c.query,this.socket=c.socket}onError(c,d,h){return super.emitReserved("error",new s(c,d,h)),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):a("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(c){const d=(0,t.decodePacket)(c,this.socket.binaryType);this.onPacket(d)}onPacket(c){super.emitReserved("packet",c)}onClose(c){this.readyState="closed",super.emitReserved("close",c)}pause(c){}createUri(c,d={}){return c+"://"+this._hostname()+this._port()+this.opts.path+this._query(d)}_hostname(){const c=this.opts.hostname;return c.indexOf(":")===-1?c:"["+c+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(c){const d=(0,o.encode)(c);return d.length?"?"+d:""}}return os.Transport=u,os}var Ir={},Pp;function ov(){if(Pp)return Ir;Pp=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.yeast=Ir.decode=Ir.encode=void 0;const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,r={};let n=0,i=0,o;function a(l){let c="";do c=e[l%t]+c,l=Math.floor(l/t);while(l>0);return c}Ir.encode=a;function s(l){let c=0;for(i=0;i<l.length;i++)c=c*t+r[l.charAt(i)];return c}Ir.decode=s;function u(){const l=a(+new Date);return l!==o?(n=0,o=l):l+"."+a(n++)}for(Ir.yeast=u;i<t;i++)r[e[i]]=i;return Ir}var Un={},us={},Np;function KT(){if(Np)return us;Np=1,Object.defineProperty(us,"__esModule",{value:!0}),us.hasCORS=void 0;let e=!1;try{e=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}return us.hasCORS=e,us}var Ip;function XT(){if(Ip)return Un;Ip=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.createCookieJar=Un.XHR=void 0;const e=KT(),t=gu();function r(i){const o=i.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!o||e.hasCORS))return new XMLHttpRequest}catch{}if(!o)try{return new t.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}Un.XHR=r;function n(){}return Un.createCookieJar=n,Un}var Lp;function JT(){if(Lp)return Mn;Lp=1;var e=de&&de.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.Request=Mn.Polling=void 0;const t=yu(),r=e(wr()),n=ov(),i=ea(),o=XT(),a=ho,s=ta(),u=gu(),l=(0,r.default)("engine.io-client:polling");function c(){}const d=function(){return new o.XHR({xdomain:!1}).responseType!=null}();class h extends t.Transport{constructor(_){if(super(_),this.polling=!1,typeof location<"u"){const E=location.protocol==="https:";let b=location.port;b||(b=E?"443":"80"),this.xd=typeof location<"u"&&_.hostname!==location.hostname||b!==_.port}const S=_&&_.forceBase64;this.supportsBinary=d&&!S,this.opts.withCredentials&&(this.cookieJar=(0,o.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(_){this.readyState="pausing";const S=()=>{l("paused"),this.readyState="paused",_()};if(this.polling||!this.writable){let E=0;this.polling&&(l("we are currently polling - waiting to pause"),E++,this.once("pollComplete",function(){l("pre-pause polling complete"),--E||S()})),this.writable||(l("we are currently writing - waiting to pause"),E++,this.once("drain",function(){l("pre-pause writing complete"),--E||S()}))}else S()}poll(){l("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(_){l("polling got data %s",_);const S=E=>{if(this.readyState==="opening"&&E.type==="open"&&this.onOpen(),E.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(E)};(0,i.decodePayload)(_,this.socket.binaryType).forEach(S),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():l('ignoring poll - transport state "%s"',this.readyState))}doClose(){const _=()=>{l("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(l("transport open - closing"),_()):(l("transport not open - deferring close"),this.once("open",_))}write(_){this.writable=!1,(0,i.encodePayload)(_,S=>{this.doWrite(S,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const _=this.opts.secure?"https":"http",S=this.query||{};return this.opts.timestampRequests!==!1&&(S[this.opts.timestampParam]=(0,n.yeast)()),!this.supportsBinary&&!S.sid&&(S.b64=1),this.createUri(_,S)}request(_={}){return Object.assign(_,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new f(this.uri(),_)}doWrite(_,S){const E=this.request({method:"POST",data:_});E.on("success",S),E.on("error",(b,T)=>{this.onError("xhr post error",b,T)})}doPoll(){l("xhr poll");const _=this.request();_.on("data",this.onData.bind(this)),_.on("error",(S,E)=>{this.onError("xhr poll error",S,E)}),this.pollXhr=_}}Mn.Polling=h;class f extends a.Emitter{constructor(_,S){super(),(0,s.installTimerFunctions)(this,S),this.opts=S,this.method=S.method||"GET",this.uri=_,this.data=S.data!==void 0?S.data:null,this.create()}create(){var _;const S=(0,s.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");S.xdomain=!!this.opts.xd;const E=this.xhr=new o.XHR(S);try{l("xhr open %s: %s",this.method,this.uri),E.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){E.setDisableHeaderCheck&&E.setDisableHeaderCheck(!0);for(let b in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(b)&&E.setRequestHeader(b,this.opts.extraHeaders[b])}}catch{}if(this.method==="POST")try{E.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{E.setRequestHeader("Accept","*/*")}catch{}(_=this.opts.cookieJar)===null||_===void 0||_.addCookies(E),"withCredentials"in E&&(E.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(E.timeout=this.opts.requestTimeout),E.onreadystatechange=()=>{var b;E.readyState===3&&((b=this.opts.cookieJar)===null||b===void 0||b.parseCookies(E)),E.readyState===4&&(E.status===200||E.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof E.status=="number"?E.status:0)},0))},l("xhr data %s",this.data),E.send(this.data)}catch(b){this.setTimeoutFn(()=>{this.onError(b)},0);return}typeof document<"u"&&(this.index=f.requestsCount++,f.requests[this.index]=this)}onError(_){this.emitReserved("error",_,this.xhr),this.cleanup(!0)}cleanup(_){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=c,_)try{this.xhr.abort()}catch{}typeof document<"u"&&delete f.requests[this.index],this.xhr=null}}onLoad(){const _=this.xhr.responseText;_!==null&&(this.emitReserved("data",_),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Mn.Request=f,f.requestsCount=0,f.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 f.requests)f.requests.hasOwnProperty(m)&&f.requests[m].abort()}return Mn}var cs={},Zt={},kp;function vu(){if(kp)return Zt;kp=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.defaultBinaryType=Zt.usingBrowserWebSocket=Zt.WebSocket=Zt.nextTick=void 0;const e=gu();return Zt.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,n)=>n(r,0))(),Zt.WebSocket=e.globalThisShim.WebSocket||e.globalThisShim.MozWebSocket,Zt.usingBrowserWebSocket=!0,Zt.defaultBinaryType="arraybuffer",Zt}var Mp;function ZT(){if(Mp)return cs;Mp=1;var e=de&&de.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(cs,"__esModule",{value:!0}),cs.WS=void 0;const t=yu(),r=ov(),n=ta(),i=vu(),o=e(wr()),a=ea(),s=(0,o.default)("engine.io-client:websocket"),u=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class l extends t.Transport{constructor(d){super(d),this.supportsBinary=!d.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const d=this.uri(),h=this.opts.protocols,f=u?{}:(0,n.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(f.headers=this.opts.extraHeaders);try{this.ws=i.usingBrowserWebSocket&&!u?h?new i.WebSocket(d,h):new i.WebSocket(d):new i.WebSocket(d,h,f)}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=d=>this.onClose({description:"websocket connection closed",context:d}),this.ws.onmessage=d=>this.onData(d.data),this.ws.onerror=d=>this.onError("websocket error",d)}write(d){this.writable=!1;for(let h=0;h<d.length;h++){const f=d[h],p=h===d.length-1;(0,a.encodePacket)(f,this.supportsBinary,m=>{const _={};i.usingBrowserWebSocket||(f.options&&(_.compress=f.options.compress),this.opts.perMessageDeflate&&(typeof m=="string"?Buffer.byteLength(m):m.length)<this.opts.perMessageDeflate.threshold&&(_.compress=!1));try{i.usingBrowserWebSocket?this.ws.send(m):this.ws.send(m,_)}catch{s("websocket closed before onclose event")}p&&(0,i.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const d=this.opts.secure?"wss":"ws",h=this.query||{};return this.opts.timestampRequests&&(h[this.opts.timestampParam]=(0,r.yeast)()),this.supportsBinary||(h.b64=1),this.createUri(d,h)}check(){return!!i.WebSocket}}return cs.WS=l,cs}var ls={},Fp;function ex(){if(Fp)return ls;Fp=1;var e=de&&de.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ls,"__esModule",{value:!0}),ls.WT=void 0;const t=yu(),r=vu(),n=ea(),o=(0,e(wr()).default)("engine.io-client:webtransport");class a extends t.Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{o("transport closed gracefully"),this.onClose()}).catch(u=>{o("transport closed due to %s",u),this.onError("webtransport error",u)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(u=>{const l=(0,n.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),c=u.readable.pipeThrough(l).getReader(),d=(0,n.createPacketEncoderStream)();d.readable.pipeTo(u.writable),this.writer=d.writable.getWriter();const h=()=>{c.read().then(({done:p,value:m})=>{if(p){o("session is closed");return}o("received chunk: %o",m),this.onPacket(m),h()}).catch(p=>{o("an error occurred while reading: %s",p)})};h();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this.writer.write(f).then(()=>this.onOpen())})}))}write(u){this.writable=!1;for(let l=0;l<u.length;l++){const c=u[l],d=l===u.length-1;this.writer.write(c).then(()=>{d&&(0,r.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var u;(u=this.transport)===null||u===void 0||u.close()}}return ls.WT=a,ls}var Dp;function sv(){if(Dp)return is;Dp=1,Object.defineProperty(is,"__esModule",{value:!0}),is.transports=void 0;const e=JT(),t=ZT(),r=ex();return is.transports={websocket:t.WS,webtransport:r.WT,polling:e.Polling},is}var fs={},Bp;function av(){if(Bp)return fs;Bp=1,Object.defineProperty(fs,"__esModule",{value:!0}),fs.parse=void 0;const e=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,t=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function r(o){const a=o,s=o.indexOf("["),u=o.indexOf("]");s!=-1&&u!=-1&&(o=o.substring(0,s)+o.substring(s,u).replace(/:/g,";")+o.substring(u,o.length));let l=e.exec(o||""),c={},d=14;for(;d--;)c[t[d]]=l[d]||"";return s!=-1&&u!=-1&&(c.source=a,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=n(c,c.path),c.queryKey=i(c,c.query),c}fs.parse=r;function n(o,a){const s=/\/{2,9}/g,u=a.replace(s,"/").split("/");return(a.slice(0,1)=="/"||a.length===0)&&u.splice(0,1),a.slice(-1)=="/"&&u.splice(u.length-1,1),u}function i(o,a){const s={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(u,l,c){l&&(s[l]=c)}),s}return fs}var Up;function tx(){if(Up)return ns;Up=1;var e=de&&de.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(ns,"__esModule",{value:!0}),ns.Socket=void 0;const t=sv(),r=ta(),n=iv(),i=av(),o=e(wr()),a=ho,s=ea(),u=vu(),l=(0,o.default)("engine.io-client:socket");class c extends a.Emitter{constructor(h,f={}){super(),this.binaryType=u.defaultBinaryType,this.writeBuffer=[],h&&typeof h=="object"&&(f=h,h=null),h?(h=(0,i.parse)(h),f.hostname=h.host,f.secure=h.protocol==="https"||h.protocol==="wss",f.port=h.port,h.query&&(f.query=h.query)):f.host&&(f.hostname=(0,i.parse)(f.host).host),(0,r.installTimerFunctions)(this,f),this.secure=f.secure!=null?f.secure:typeof location<"u"&&location.protocol==="https:",f.hostname&&!f.port&&(f.port=this.secure?"443":"80"),this.hostname=f.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=f.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=f.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},f),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,n.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(h){l('creating transport "%s"',h);const f=Object.assign({},this.opts.query);f.EIO=s.protocol,f.transport=h,this.id&&(f.sid=this.id);const p=Object.assign({},this.opts,{query:f,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[h]);return l("options: %j",p),new t.transports[h](p)}open(){let h;if(this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)h="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else h=this.transports[0];this.readyState="opening";try{h=this.createTransport(h)}catch(f){l("error while creating transport: %s",f),this.transports.shift(),this.open();return}h.open(),this.setTransport(h)}setTransport(h){l("setting transport %s",h.name),this.transport&&(l("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=h,h.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",f=>this.onClose("transport close",f))}probe(h){l('probing transport "%s"',h);let f=this.createTransport(h),p=!1;c.priorWebsocketSuccess=!1;const m=()=>{p||(l('probe transport "%s" opened',h),f.send([{type:"ping",data:"probe"}]),f.once("packet",P=>{if(!p)if(P.type==="pong"&&P.data==="probe"){if(l('probe transport "%s" pong',h),this.upgrading=!0,this.emitReserved("upgrading",f),!f)return;c.priorWebsocketSuccess=f.name==="websocket",l('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{p||this.readyState!=="closed"&&(l("changing transport and sending upgrade packet"),w(),this.setTransport(f),f.send([{type:"upgrade"}]),this.emitReserved("upgrade",f),f=null,this.upgrading=!1,this.flush())})}else{l('probe transport "%s" failed',h);const R=new Error("probe error");R.transport=f.name,this.emitReserved("upgradeError",R)}}))};function _(){p||(p=!0,w(),f.close(),f=null)}const S=P=>{const R=new Error("probe error: "+P);R.transport=f.name,_(),l('probe transport "%s" failed because of error: %s',h,P),this.emitReserved("upgradeError",R)};function E(){S("transport closed")}function b(){S("socket closed")}function T(P){f&&P.name!==f.name&&(l('"%s" works - aborting "%s"',P.name,f.name),_())}const w=()=>{f.removeListener("open",m),f.removeListener("error",S),f.removeListener("close",E),this.off("close",b),this.off("upgrading",T)};f.once("open",m),f.once("error",S),f.once("close",E),this.once("close",b),this.once("upgrading",T),this.upgrades.indexOf("webtransport")!==-1&&h!=="webtransport"?this.setTimeoutFn(()=>{p||f.open()},200):f.open()}onOpen(){if(l("socket open"),this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){l("starting upgrade probes");let h=0;const f=this.upgrades.length;for(;h<f;h++)this.probe(this.upgrades[h])}}onPacket(h){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(l('socket receive: type "%s", data "%s"',h.type,h.data),this.emitReserved("packet",h),this.emitReserved("heartbeat"),this.resetPingTimeout(),h.type){case"open":this.onHandshake(JSON.parse(h.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const f=new Error("server error");f.code=h.data,this.onError(f);break;case"message":this.emitReserved("data",h.data),this.emitReserved("message",h.data);break}else l('packet received with socket readyState "%s"',this.readyState)}onHandshake(h){this.emitReserved("handshake",h),this.id=h.sid,this.transport.query.sid=h.sid,this.upgrades=this.filterUpgrades(h.upgrades),this.pingInterval=h.pingInterval,this.pingTimeout=h.pingTimeout,this.maxPayload=h.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 h=this.getWritablePackets();l("flushing %d packets in socket",h.length),this.transport.send(h),this.prevBufferLen=h.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let f=1;for(let p=0;p<this.writeBuffer.length;p++){const m=this.writeBuffer[p].data;if(m&&(f+=(0,r.byteLength)(m)),p>0&&f>this.maxPayload)return l("only send %d out of %d packets",p,this.writeBuffer.length),this.writeBuffer.slice(0,p);f+=2}return l("payload size is %d (max: %d)",f,this.maxPayload),this.writeBuffer}write(h,f,p){return this.sendPacket("message",h,f,p),this}send(h,f,p){return this.sendPacket("message",h,f,p),this}sendPacket(h,f,p,m){if(typeof f=="function"&&(m=f,f=void 0),typeof p=="function"&&(m=p,p=null),this.readyState==="closing"||this.readyState==="closed")return;p=p||{},p.compress=p.compress!==!1;const _={type:h,data:f,options:p};this.emitReserved("packetCreate",_),this.writeBuffer.push(_),m&&this.once("flush",m),this.flush()}close(){const h=()=>{this.onClose("forced close"),l("socket closing - telling transport to close"),this.transport.close()},f=()=>{this.off("upgrade",f),this.off("upgradeError",f),h()},p=()=>{this.once("upgrade",f),this.once("upgradeError",f)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?p():h()}):this.upgrading?p():h()),this}onError(h){l("socket error %j",h),c.priorWebsocketSuccess=!1,this.emitReserved("error",h),this.onClose("transport error",h)}onClose(h,f){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(l('socket close with reason: "%s"',h),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",h,f),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(h){const f=[];let p=0;const m=h.length;for(;p<m;p++)~this.transports.indexOf(h[p])&&f.push(h[p]);return f}}return ns.Socket=c,c.protocol=s.protocol,ns}var $p;function uv(){return $p||($p=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=tx();Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return t.Socket}}),e.protocol=t.Socket.protocol;var r=yu();Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return r.Transport}});var n=sv();Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return n.transports}});var i=ta();Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return i.installTimerFunctions}});var o=av();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return o.parse}});var a=vu();Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return a.nextTick}})}(zc)),zc}var jp;function rx(){if(jp)return rs;jp=1;var e=de&&de.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(rs,"__esModule",{value:!0}),rs.url=void 0;const t=uv(),n=e(wr()).default("socket.io-client:url");function i(o,a="",s){let u=o;s=s||typeof location<"u"&&location,o==null&&(o=s.protocol+"//"+s.host),typeof o=="string"&&(o.charAt(0)==="/"&&(o.charAt(1)==="/"?o=s.protocol+o:o=s.host+o),/^(https?|wss?):\/\//.test(o)||(n("protocol-less url %s",o),typeof s<"u"?o=s.protocol+"//"+o:o="https://"+o),n("parse %s",o),u=t.parse(o)),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+a,u.href=u.protocol+"://"+c+(s&&s.port===u.port?"":":"+u.port),u}return rs.url=i,rs}var hs={},ds={},Xc={},$n={},jn={},Hp;function cv(){if(Hp)return jn;Hp=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.hasBinary=jn.isBinary=void 0;const e=typeof ArrayBuffer=="function",t=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,r=Object.prototype.toString,n=typeof Blob=="function"||typeof Blob<"u"&&r.call(Blob)==="[object BlobConstructor]",i=typeof File=="function"||typeof File<"u"&&r.call(File)==="[object FileConstructor]";function o(s){return e&&(s instanceof ArrayBuffer||t(s))||n&&s instanceof Blob||i&&s instanceof File}jn.isBinary=o;function a(s,u){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let l=0,c=s.length;l<c;l++)if(a(s[l]))return!0;return!1}if(o(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return a(s.toJSON(),!0);for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)&&a(s[l]))return!0;return!1}return jn.hasBinary=a,jn}var qp;function nx(){if(qp)return $n;qp=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.reconstructPacket=$n.deconstructPacket=void 0;const e=cv();function t(o){const a=[],s=o.data,u=o;return u.data=r(s,a),u.attachments=a.length,{packet:u,buffers:a}}$n.deconstructPacket=t;function r(o,a){if(!o)return o;if((0,e.isBinary)(o)){const s={_placeholder:!0,num:a.length};return a.push(o),s}else if(Array.isArray(o)){const s=new Array(o.length);for(let u=0;u<o.length;u++)s[u]=r(o[u],a);return s}else if(typeof o=="object"&&!(o instanceof Date)){const s={};for(const u in o)Object.prototype.hasOwnProperty.call(o,u)&&(s[u]=r(o[u],a));return s}return o}function n(o,a){return o.data=i(o.data,a),delete o.attachments,o}$n.reconstructPacket=n;function i(o,a){if(!o)return o;if(o&&o._placeholder===!0){if(typeof o.num=="number"&&o.num>=0&&o.num<a.length)return a[o.num];throw new Error("illegal attachments")}else if(Array.isArray(o))for(let s=0;s<o.length;s++)o[s]=i(o[s],a);else if(typeof o=="object")for(const s in o)Object.prototype.hasOwnProperty.call(o,s)&&(o[s]=i(o[s],a));return o}return $n}var Gp;function Bf(){return Gp||(Gp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const t=ho,r=nx(),n=cv(),o=(0,wr().default)("socket.io-parser"),a=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var s;(function(h){h[h.CONNECT=0]="CONNECT",h[h.DISCONNECT=1]="DISCONNECT",h[h.EVENT=2]="EVENT",h[h.ACK=3]="ACK",h[h.CONNECT_ERROR=4]="CONNECT_ERROR",h[h.BINARY_EVENT=5]="BINARY_EVENT",h[h.BINARY_ACK=6]="BINARY_ACK"})(s=e.PacketType||(e.PacketType={}));class u{constructor(f){this.replacer=f}encode(f){return o("encoding packet %j",f),(f.type===s.EVENT||f.type===s.ACK)&&(0,n.hasBinary)(f)?this.encodeAsBinary({type:f.type===s.EVENT?s.BINARY_EVENT:s.BINARY_ACK,nsp:f.nsp,data:f.data,id:f.id}):[this.encodeAsString(f)]}encodeAsString(f){let p=""+f.type;return(f.type===s.BINARY_EVENT||f.type===s.BINARY_ACK)&&(p+=f.attachments+"-"),f.nsp&&f.nsp!=="/"&&(p+=f.nsp+","),f.id!=null&&(p+=f.id),f.data!=null&&(p+=JSON.stringify(f.data,this.replacer)),o("encoded %j as %s",f,p),p}encodeAsBinary(f){const p=(0,r.deconstructPacket)(f),m=this.encodeAsString(p.packet),_=p.buffers;return _.unshift(m),_}}e.Encoder=u;function l(h){return Object.prototype.toString.call(h)==="[object Object]"}class c extends t.Emitter{constructor(f){super(),this.reviver=f}add(f){let p;if(typeof f=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");p=this.decodeString(f);const m=p.type===s.BINARY_EVENT;m||p.type===s.BINARY_ACK?(p.type=m?s.EVENT:s.ACK,this.reconstructor=new d(p),p.attachments===0&&super.emitReserved("decoded",p)):super.emitReserved("decoded",p)}else if((0,n.isBinary)(f)||f.base64)if(this.reconstructor)p=this.reconstructor.takeBinaryData(f),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: "+f)}decodeString(f){let p=0;const m={type:Number(f.charAt(0))};if(s[m.type]===void 0)throw new Error("unknown packet type "+m.type);if(m.type===s.BINARY_EVENT||m.type===s.BINARY_ACK){const S=p+1;for(;f.charAt(++p)!=="-"&&p!=f.length;);const E=f.substring(S,p);if(E!=Number(E)||f.charAt(p)!=="-")throw new Error("Illegal attachments");m.attachments=Number(E)}if(f.charAt(p+1)==="/"){const S=p+1;for(;++p&&!(f.charAt(p)===","||p===f.length););m.nsp=f.substring(S,p)}else m.nsp="/";const _=f.charAt(p+1);if(_!==""&&Number(_)==_){const S=p+1;for(;++p;){const E=f.charAt(p);if(E==null||Number(E)!=E){--p;break}if(p===f.length)break}m.id=Number(f.substring(S,p+1))}if(f.charAt(++p)){const S=this.tryParse(f.substr(p));if(c.isPayloadValid(m.type,S))m.data=S;else throw new Error("invalid payload")}return o("decoded %s as %j",f,m),m}tryParse(f){try{return JSON.parse(f,this.reviver)}catch{return!1}}static isPayloadValid(f,p){switch(f){case s.CONNECT:return l(p);case s.DISCONNECT:return p===void 0;case s.CONNECT_ERROR:return typeof p=="string"||l(p);case s.EVENT:case s.BINARY_EVENT:return Array.isArray(p)&&(typeof p[0]=="number"||typeof p[0]=="string"&&a.indexOf(p[0])===-1);case s.ACK:case s.BINARY_ACK:return Array.isArray(p)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=c;class d{constructor(f){this.packet=f,this.buffers=[],this.reconPack=f}takeBinaryData(f){if(this.buffers.push(f),this.buffers.length===this.reconPack.attachments){const p=(0,r.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),p}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}}(Xc)),Xc}var ps={},Vp;function lv(){if(Vp)return ps;Vp=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.on=void 0;function e(t,r,n){return t.on(r,n),function(){t.off(r,n)}}return ps.on=e,ps}var Wp;function fv(){if(Wp)return ds;Wp=1;var e=de&&de.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(ds,"__esModule",{value:!0}),ds.Socket=void 0;const t=Bf(),r=lv(),n=ho,o=e(wr()).default("socket.io-client:socket"),a=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class s extends n.Emitter{constructor(l,c,d){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=l,this.nsp=c,d&&d.auth&&(this.auth=d.auth),this._opts=Object.assign({},d),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const l=this.io;this.subs=[r.on(l,"open",this.onopen.bind(this)),r.on(l,"packet",this.onpacket.bind(this)),r.on(l,"error",this.onerror.bind(this)),r.on(l,"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(...l){return l.unshift("message"),this.emit.apply(this,l),this}emit(l,...c){if(a.hasOwnProperty(l))throw new Error('"'+l.toString()+'" is a reserved event name');if(c.unshift(l),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const d={type:t.PacketType.EVENT,data:c};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const p=this.ids++;o("emitting packet with ack id %d",p);const m=c.pop();this._registerAckCallback(p,m),d.id=p}const h=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!h||!this.connected)?o("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d),this.flags={},this}_registerAckCallback(l,c){var d;const h=(d=this.flags.timeout)!==null&&d!==void 0?d:this._opts.ackTimeout;if(h===void 0){this.acks[l]=c;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[l];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===l&&(o("removing packet with ack id %d from the buffer",l),this.sendBuffer.splice(p,1));o("event with ack id %d has timed out after %d ms",l,h),c.call(this,new Error("operation has timed out"))},h);this.acks[l]=(...p)=>{this.io.clearTimeoutFn(f),c.apply(this,[null,...p])}}emitWithAck(l,...c){const d=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((h,f)=>{c.push((p,m)=>d?p?f(p):h(m):h(p)),this.emit(l,...c)})}_addToQueue(l){let c;typeof l[l.length-1]=="function"&&(c=l.pop());const d={id:this._queueSeq++,tryCount:0,pending:!1,args:l,flags:Object.assign({fromQueue:!0},this.flags)};l.push((h,...f)=>d!==this._queue[0]?void 0:(h!==null?d.tryCount>this._opts.retries&&(o("packet [%d] is discarded after %d tries",d.id,d.tryCount),this._queue.shift(),c&&c(h)):(o("packet [%d] was successfully sent",d.id),this._queue.shift(),c&&c(null,...f)),d.pending=!1,this._drainQueue())),this._queue.push(d),this._drainQueue()}_drainQueue(l=!1){if(o("draining queue"),!this.connected||this._queue.length===0)return;const c=this._queue[0];if(c.pending&&!l){o("packet [%d] has already been sent and is waiting for an ack",c.id);return}c.pending=!0,c.tryCount++,o("sending packet [%d] (try n°%d)",c.id,c.tryCount),this.flags=c.flags,this.emit.apply(this,c.args)}packet(l){l.nsp=this.nsp,this.io._packet(l)}onopen(){o("transport is open - connecting"),typeof this.auth=="function"?this.auth(l=>{this._sendConnectPacket(l)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(l){this.packet({type:t.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},l):l})}onerror(l){this.connected||this.emitReserved("connect_error",l)}onclose(l,c){o("close (%s)",l),this.connected=!1,delete this.id,this.emitReserved("disconnect",l,c)}onpacket(l){if(l.nsp===this.nsp)switch(l.type){case t.PacketType.CONNECT:l.data&&l.data.sid?this.onconnect(l.data.sid,l.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(l);break;case t.PacketType.ACK:case t.PacketType.BINARY_ACK:this.onack(l);break;case t.PacketType.DISCONNECT:this.ondisconnect();break;case t.PacketType.CONNECT_ERROR:this.destroy();const d=new Error(l.data.message);d.data=l.data.data,this.emitReserved("connect_error",d);break}}onevent(l){const c=l.data||[];o("emitting event %j",c),l.id!=null&&(o("attaching ack callback to event"),c.push(this.ack(l.id))),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(l){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const d of c)d.apply(this,l)}super.emit.apply(this,l),this._pid&&l.length&&typeof l[l.length-1]=="string"&&(this._lastOffset=l[l.length-1])}ack(l){const c=this;let d=!1;return function(...h){d||(d=!0,o("sending ack %j",h),c.packet({type:t.PacketType.ACK,id:l,data:h}))}}onack(l){const c=this.acks[l.id];typeof c=="function"?(o("calling ack %s with %j",l.id,l.data),c.apply(this,l.data),delete this.acks[l.id]):o("bad ack %s",l.id)}onconnect(l,c){o("socket connected with id %s",l),this.id=l,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(l=>this.emitEvent(l)),this.receiveBuffer=[],this.sendBuffer.forEach(l=>{this.notifyOutgoingListeners(l),this.packet(l)}),this.sendBuffer=[]}ondisconnect(){o("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(l=>l()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(o("performing disconnect (%s)",this.nsp),this.packet({type:t.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(l){return this.flags.compress=l,this}get volatile(){return this.flags.volatile=!0,this}timeout(l){return this.flags.timeout=l,this}onAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(l),this}prependAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(l),this}offAny(l){if(!this._anyListeners)return this;if(l){const c=this._anyListeners;for(let d=0;d<c.length;d++)if(l===c[d])return c.splice(d,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(l),this}prependAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(l),this}offAnyOutgoing(l){if(!this._anyOutgoingListeners)return this;if(l){const c=this._anyOutgoingListeners;for(let d=0;d<c.length;d++)if(l===c[d])return c.splice(d,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(l){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const d of c)d.apply(this,l.data)}}}return ds.Socket=s,ds}var ms={},zp;function ix(){if(zp)return ms;zp=1,Object.defineProperty(ms,"__esModule",{value:!0}),ms.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 ms.Backoff=e,e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),n=Math.floor(r*this.jitter*t);t=Math.floor(r*10)&1?t+n:t-n}return Math.min(t,this.max)|0},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t},ms}var Qp;function ox(){if(Qp)return hs;Qp=1;var e=de&&de.__createBinding||(Object.create?function(f,p,m,_){_===void 0&&(_=m),Object.defineProperty(f,_,{enumerable:!0,get:function(){return p[m]}})}:function(f,p,m,_){_===void 0&&(_=m),f[_]=p[m]}),t=de&&de.__setModuleDefault||(Object.create?function(f,p){Object.defineProperty(f,"default",{enumerable:!0,value:p})}:function(f,p){f.default=p}),r=de&&de.__importStar||function(f){if(f&&f.__esModule)return f;var p={};if(f!=null)for(var m in f)m!=="default"&&Object.prototype.hasOwnProperty.call(f,m)&&e(p,f,m);return t(p,f),p},n=de&&de.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(hs,"__esModule",{value:!0}),hs.Manager=void 0;const i=uv(),o=fv(),a=r(Bf()),s=lv(),u=ix(),l=ho,d=n(wr()).default("socket.io-client:manager");class h extends l.Emitter{constructor(p,m){var _;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,i.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((_=m.randomizationFactor)!==null&&_!==void 0?_:.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 S=m.parser||a;this.encoder=new S.Encoder,this.decoder=new S.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(d("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;d("opening %s",this.uri),this.engine=new i.Socket(this.uri,this.opts);const m=this.engine,_=this;this._readyState="opening",this.skipReconnect=!1;const S=s.on(m,"open",function(){_.onopen(),p&&p()}),E=T=>{d("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",T),p?p(T):this.maybeReconnectOnOpen()},b=s.on(m,"error",E);if(this._timeout!==!1){const T=this._timeout;d("connect attempt will timeout after %d",T);const w=this.setTimeoutFn(()=>{d("connect attempt timed out after %d",T),S(),E(new Error("timeout")),m.close()},T);this.opts.autoUnref&&w.unref(),this.subs.push(()=>{this.clearTimeoutFn(w)})}return this.subs.push(S),this.subs.push(b),this}connect(p){return this.open(p)}onopen(){d("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const p=this.engine;this.subs.push(s.on(p,"ping",this.onping.bind(this)),s.on(p,"data",this.ondata.bind(this)),s.on(p,"error",this.onerror.bind(this)),s.on(p,"close",this.onclose.bind(this)),s.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){i.nextTick(()=>{this.emitReserved("packet",p)},this.setTimeoutFn)}onerror(p){d("error",p),this.emitReserved("error",p)}socket(p,m){let _=this.nsps[p];return _?this._autoConnect&&!_.active&&_.connect():(_=new o.Socket(this,p,m),this.nsps[p]=_),_}_destroy(p){const m=Object.keys(this.nsps);for(const _ of m)if(this.nsps[_].active){d("socket %s is still active, skipping close",_);return}this._close()}_packet(p){d("writing packet %j",p);const m=this.encoder.encode(p);for(let _=0;_<m.length;_++)this.engine.write(m[_],p.options)}cleanup(){d("cleanup"),this.subs.forEach(p=>p()),this.subs.length=0,this.decoder.destroy()}_close(){d("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(p,m){d("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)d("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const m=this.backoff.duration();d("will wait %dms before reconnect attempt",m),this._reconnecting=!0;const _=this.setTimeoutFn(()=>{p.skipReconnect||(d("attempting reconnect"),this.emitReserved("reconnect_attempt",p.backoff.attempts),!p.skipReconnect&&p.open(S=>{S?(d("reconnect attempt error"),p._reconnecting=!1,p.reconnect(),this.emitReserved("reconnect_error",S)):(d("reconnect success"),p.onreconnect())}))},m);this.opts.autoUnref&&_.unref(),this.subs.push(()=>{this.clearTimeoutFn(_)})}}onreconnect(){const p=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",p)}}return hs.Manager=h,hs}var Yp;function sx(){return Yp||(Yp=1,function(e,t){var r=de&&de.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const n=rx(),i=ox();Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return i.Manager}});const o=fv();Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return o.Socket}});const s=r(wr()).default("socket.io-client"),u={};function l(d,h){typeof d=="object"&&(h=d,d=void 0),h=h||{};const f=n.url(d,h.path||"/socket.io"),p=f.source,m=f.id,_=f.path,S=u[m]&&_ in u[m].nsps,E=h.forceNew||h["force new connection"]||h.multiplex===!1||S;let b;return E?(s("ignoring socket cache for %s",p),b=new i.Manager(p,h)):(u[m]||(s("new io instance for %s",p),u[m]=new i.Manager(p,h)),b=u[m]),f.query&&!h.query&&(h.query=f.queryKey),b.socket(f.path,h)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:i.Manager,Socket:o.Socket,io:l,connect:l});var c=Bf();Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return c.protocol}}),e.exports=l}(Ca,Ca.exports)),Ca.exports}var Jc={},gs={},Kp;function ax(){if(Kp)return gs;Kp=1,gs.byteLength=s,gs.toByteArray=l,gs.fromByteArray=h;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i<o;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function a(f){var p=f.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=f.indexOf("=");m===-1&&(m=p);var _=m===p?0:4-m%4;return[m,_]}function s(f){var p=a(f),m=p[0],_=p[1];return(m+_)*3/4-_}function u(f,p,m){return(p+m)*3/4-m}function l(f){var p,m=a(f),_=m[0],S=m[1],E=new r(u(f,_,S)),b=0,T=S>0?_-4:_,w;for(w=0;w<T;w+=4)p=t[f.charCodeAt(w)]<<18|t[f.charCodeAt(w+1)]<<12|t[f.charCodeAt(w+2)]<<6|t[f.charCodeAt(w+3)],E[b++]=p>>16&255,E[b++]=p>>8&255,E[b++]=p&255;return S===2&&(p=t[f.charCodeAt(w)]<<2|t[f.charCodeAt(w+1)]>>4,E[b++]=p&255),S===1&&(p=t[f.charCodeAt(w)]<<10|t[f.charCodeAt(w+1)]<<4|t[f.charCodeAt(w+2)]>>2,E[b++]=p>>8&255,E[b++]=p&255),E}function c(f){return e[f>>18&63]+e[f>>12&63]+e[f>>6&63]+e[f&63]}function d(f,p,m){for(var _,S=[],E=p;E<m;E+=3)_=(f[E]<<16&16711680)+(f[E+1]<<8&65280)+(f[E+2]&255),S.push(c(_));return S.join("")}function h(f){for(var p,m=f.length,_=m%3,S=[],E=16383,b=0,T=m-_;b<T;b+=E)S.push(d(f,b,b+E>T?T:b+E));return _===1?(p=f[m-1],S.push(e[p>>2]+e[p<<4&63]+"==")):_===2&&(p=(f[m-2]<<8)+f[m-1],S.push(e[p>>10]+e[p>>4&63]+e[p<<2&63]+"=")),S.join("")}return gs}var Pa={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Xp;function ux(){return Xp||(Xp=1,Pa.read=function(e,t,r,n,i){var o,a,s=i*8-n-1,u=(1<<s)-1,l=u>>1,c=-7,d=r?i-1:0,h=r?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=o*256+e[t+d],d+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=a*256+e[t+d],d+=h,c-=8);if(o===0)o=1-l;else{if(o===u)return a?NaN:(f?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-l}return(f?-1:1)*a*Math.pow(2,o-n)},Pa.write=function(e,t,r,n,i,o){var a,s,u,l=o*8-i-1,c=(1<<l)-1,d=c>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+d>=1?t+=h/u:t+=h*Math.pow(2,1-d),t*u>=2&&(a++,u/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a=a+d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+f]=s&255,f+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[r+f]=a&255,f+=p,a/=256,l-=8);e[r+f-p]|=m*128}),Pa}/*!
57
+ * The buffer module from node.js, for the browser.
58
+ *
59
+ * @author Feross Aboukhadijeh <https://feross.org>
60
+ * @license MIT
61
+ */var Jp;function cx(){return Jp||(Jp=1,function(e){const t=ax(),r=ux(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=E,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=o(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const x=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(x,g),x.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(x){if(x>i)throw new RangeError('The value "'+x+'" is invalid for option "size"');const g=new Uint8Array(x);return Object.setPrototypeOf(g,s.prototype),g}function s(x,g,v){if(typeof x=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(x)}return u(x,g,v)}s.poolSize=8192;function u(x,g,v){if(typeof x=="string")return h(x,g);if(ArrayBuffer.isView(x))return p(x);if(x==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x);if(Ze(x,ArrayBuffer)||x&&Ze(x.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ze(x,SharedArrayBuffer)||x&&Ze(x.buffer,SharedArrayBuffer)))return m(x,g,v);if(typeof x=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const C=x.valueOf&&x.valueOf();if(C!=null&&C!==x)return s.from(C,g,v);const k=_(x);if(k)return k;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof x[Symbol.toPrimitive]=="function")return s.from(x[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 x)}s.from=function(x,g,v){return u(x,g,v)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(x){if(typeof x!="number")throw new TypeError('"size" argument must be of type number');if(x<0)throw new RangeError('The value "'+x+'" is invalid for option "size"')}function c(x,g,v){return l(x),x<=0?a(x):g!==void 0?typeof v=="string"?a(x).fill(g,v):a(x).fill(g):a(x)}s.alloc=function(x,g,v){return c(x,g,v)};function d(x){return l(x),a(x<0?0:S(x)|0)}s.allocUnsafe=function(x){return d(x)},s.allocUnsafeSlow=function(x){return d(x)};function h(x,g){if((typeof g!="string"||g==="")&&(g="utf8"),!s.isEncoding(g))throw new TypeError("Unknown encoding: "+g);const v=b(x,g)|0;let C=a(v);const k=C.write(x,g);return k!==v&&(C=C.slice(0,k)),C}function f(x){const g=x.length<0?0:S(x.length)|0,v=a(g);for(let C=0;C<g;C+=1)v[C]=x[C]&255;return v}function p(x){if(Ze(x,Uint8Array)){const g=new Uint8Array(x);return m(g.buffer,g.byteOffset,g.byteLength)}return f(x)}function m(x,g,v){if(g<0||x.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(x.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(x):v===void 0?C=new Uint8Array(x,g):C=new Uint8Array(x,g,v),Object.setPrototypeOf(C,s.prototype),C}function _(x){if(s.isBuffer(x)){const g=S(x.length)|0,v=a(g);return v.length===0||x.copy(v,0,0,g),v}if(x.length!==void 0)return typeof x.length!="number"||Qt(x.length)?a(0):f(x);if(x.type==="Buffer"&&Array.isArray(x.data))return f(x.data)}function S(x){if(x>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return x|0}function E(x){return+x!=x&&(x=0),s.alloc(+x)}s.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==s.prototype},s.compare=function(g,v){if(Ze(g,Uint8Array)&&(g=s.from(g,g.offset,g.byteLength)),Ze(v,Uint8Array)&&(v=s.from(v,v.offset,v.byteLength)),!s.isBuffer(g)||!s.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,k=v.length;for(let H=0,Q=Math.min(C,k);H<Q;++H)if(g[H]!==v[H]){C=g[H],k=v[H];break}return C<k?-1:k<C?1:0},s.isEncoding=function(g){switch(String(g).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(g,v){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return s.alloc(0);let C;if(v===void 0)for(v=0,C=0;C<g.length;++C)v+=g[C].length;const k=s.allocUnsafe(v);let H=0;for(C=0;C<g.length;++C){let Q=g[C];if(Ze(Q,Uint8Array))H+Q.length>k.length?(s.isBuffer(Q)||(Q=s.from(Q)),Q.copy(k,H)):Uint8Array.prototype.set.call(k,Q,H);else if(s.isBuffer(Q))Q.copy(k,H);else throw new TypeError('"list" argument must be an Array of Buffers');H+=Q.length}return k};function b(x,g){if(s.isBuffer(x))return x.length;if(ArrayBuffer.isView(x)||Ze(x,ArrayBuffer))return x.byteLength;if(typeof x!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof x);const v=x.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&v===0)return 0;let k=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":return tr(x).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v*2;case"hex":return v>>>1;case"base64":return zt(x).length;default:if(k)return C?-1:tr(x).length;g=(""+g).toLowerCase(),k=!0}}s.byteLength=b;function T(x,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(x||(x="utf8");;)switch(x){case"hex":return fe(this,g,v);case"utf8":case"utf-8":return re(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: "+x);x=(x+"").toLowerCase(),C=!0}}s.prototype._isBuffer=!0;function w(x,g,v){const C=x[g];x[g]=x[v],x[v]=C}s.prototype.swap16=function(){const g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let v=0;v<g;v+=2)w(this,v,v+1);return this},s.prototype.swap32=function(){const g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let v=0;v<g;v+=4)w(this,v,v+3),w(this,v+1,v+2);return this},s.prototype.swap64=function(){const g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let 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},s.prototype.toString=function(){const g=this.length;return g===0?"":arguments.length===0?re(this,0,g):T.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(g){if(!s.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:s.compare(this,g)===0},s.prototype.inspect=function(){let g="";const v=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,v).replace(/(.{2})/g,"$1 ").trim(),this.length>v&&(g+=" ... "),"<Buffer "+g+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(g,v,C,k,H){if(Ze(g,Uint8Array)&&(g=s.from(g,g.offset,g.byteLength)),!s.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(v===void 0&&(v=0),C===void 0&&(C=g?g.length:0),k===void 0&&(k=0),H===void 0&&(H=this.length),v<0||C>g.length||k<0||H>this.length)throw new RangeError("out of range index");if(k>=H&&v>=C)return 0;if(k>=H)return-1;if(v>=C)return 1;if(v>>>=0,C>>>=0,k>>>=0,H>>>=0,this===g)return 0;let Q=H-k,me=C-v;const Ce=Math.min(Q,me),Re=this.slice(k,H),Pe=g.slice(v,C);for(let Ee=0;Ee<Ce;++Ee)if(Re[Ee]!==Pe[Ee]){Q=Re[Ee],me=Pe[Ee];break}return Q<me?-1:me<Q?1:0};function P(x,g,v,C,k){if(x.length===0)return-1;if(typeof v=="string"?(C=v,v=0):v>2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),v=+v,Qt(v)&&(v=k?0:x.length-1),v<0&&(v=x.length+v),v>=x.length){if(k)return-1;v=x.length-1}else if(v<0)if(k)v=0;else return-1;if(typeof g=="string"&&(g=s.from(g,C)),s.isBuffer(g))return g.length===0?-1:R(x,g,v,C,k);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?k?Uint8Array.prototype.indexOf.call(x,g,v):Uint8Array.prototype.lastIndexOf.call(x,g,v):R(x,[g],v,C,k);throw new TypeError("val must be string, number or Buffer")}function R(x,g,v,C,k){let H=1,Q=x.length,me=g.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(x.length<2||g.length<2)return-1;H=2,Q/=2,me/=2,v/=2}function Ce(Pe,Ee){return H===1?Pe[Ee]:Pe.readUInt16BE(Ee*H)}let Re;if(k){let Pe=-1;for(Re=v;Re<Q;Re++)if(Ce(x,Re)===Ce(g,Pe===-1?0:Re-Pe)){if(Pe===-1&&(Pe=Re),Re-Pe+1===me)return Pe*H}else Pe!==-1&&(Re-=Re-Pe),Pe=-1}else for(v+me>Q&&(v=Q-me),Re=v;Re>=0;Re--){let Pe=!0;for(let Ee=0;Ee<me;Ee++)if(Ce(x,Re+Ee)!==Ce(g,Ee)){Pe=!1;break}if(Pe)return Re}return-1}s.prototype.includes=function(g,v,C){return this.indexOf(g,v,C)!==-1},s.prototype.indexOf=function(g,v,C){return P(this,g,v,C,!0)},s.prototype.lastIndexOf=function(g,v,C){return P(this,g,v,C,!1)};function L(x,g,v,C){v=Number(v)||0;const k=x.length-v;C?(C=Number(C),C>k&&(C=k)):C=k;const H=g.length;C>H/2&&(C=H/2);let Q;for(Q=0;Q<C;++Q){const me=parseInt(g.substr(Q*2,2),16);if(Qt(me))return Q;x[v+Q]=me}return Q}function U(x,g,v,C){return Ft(tr(g,x.length-v),x,v,C)}function q(x,g,v,C){return Ft(Mt(g),x,v,C)}function G(x,g,v,C){return Ft(zt(g),x,v,C)}function j(x,g,v,C){return Ft(vn(g,x.length-v),x,v,C)}s.prototype.write=function(g,v,C,k){if(v===void 0)k="utf8",C=this.length,v=0;else if(C===void 0&&typeof v=="string")k=v,C=this.length,v=0;else if(isFinite(v))v=v>>>0,isFinite(C)?(C=C>>>0,k===void 0&&(k="utf8")):(k=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const H=this.length-v;if((C===void 0||C>H)&&(C=H),g.length>0&&(C<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");k||(k="utf8");let Q=!1;for(;;)switch(k){case"hex":return L(this,g,v,C);case"utf8":case"utf-8":return U(this,g,v,C);case"ascii":case"latin1":case"binary":return q(this,g,v,C);case"base64":return G(this,g,v,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,g,v,C);default:if(Q)throw new TypeError("Unknown encoding: "+k);k=(""+k).toLowerCase(),Q=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(x,g,v){return g===0&&v===x.length?t.fromByteArray(x):t.fromByteArray(x.slice(g,v))}function re(x,g,v){v=Math.min(x.length,v);const C=[];let k=g;for(;k<v;){const H=x[k];let Q=null,me=H>239?4:H>223?3:H>191?2:1;if(k+me<=v){let Ce,Re,Pe,Ee;switch(me){case 1:H<128&&(Q=H);break;case 2:Ce=x[k+1],(Ce&192)===128&&(Ee=(H&31)<<6|Ce&63,Ee>127&&(Q=Ee));break;case 3:Ce=x[k+1],Re=x[k+2],(Ce&192)===128&&(Re&192)===128&&(Ee=(H&15)<<12|(Ce&63)<<6|Re&63,Ee>2047&&(Ee<55296||Ee>57343)&&(Q=Ee));break;case 4:Ce=x[k+1],Re=x[k+2],Pe=x[k+3],(Ce&192)===128&&(Re&192)===128&&(Pe&192)===128&&(Ee=(H&15)<<18|(Ce&63)<<12|(Re&63)<<6|Pe&63,Ee>65535&&Ee<1114112&&(Q=Ee))}}Q===null?(Q=65533,me=1):Q>65535&&(Q-=65536,C.push(Q>>>10&1023|55296),Q=56320|Q&1023),C.push(Q),k+=me}return M(C)}const K=4096;function M(x){const g=x.length;if(g<=K)return String.fromCharCode.apply(String,x);let v="",C=0;for(;C<g;)v+=String.fromCharCode.apply(String,x.slice(C,C+=K));return v}function z(x,g,v){let C="";v=Math.min(x.length,v);for(let k=g;k<v;++k)C+=String.fromCharCode(x[k]&127);return C}function Z(x,g,v){let C="";v=Math.min(x.length,v);for(let k=g;k<v;++k)C+=String.fromCharCode(x[k]);return C}function fe(x,g,v){const C=x.length;(!g||g<0)&&(g=0),(!v||v<0||v>C)&&(v=C);let k="";for(let H=g;H<v;++H)k+=vt[x[H]];return k}function X(x,g,v){const C=x.slice(g,v);let k="";for(let H=0;H<C.length-1;H+=2)k+=String.fromCharCode(C[H]+C[H+1]*256);return k}s.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 k=this.subarray(g,v);return Object.setPrototypeOf(k,s.prototype),k};function te(x,g,v){if(x%1!==0||x<0)throw new RangeError("offset is not uint");if(x+g>v)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(g,v,C){g=g>>>0,v=v>>>0,C||te(g,v,this.length);let k=this[g],H=1,Q=0;for(;++Q<v&&(H*=256);)k+=this[g+Q]*H;return k},s.prototype.readUintBE=s.prototype.readUIntBE=function(g,v,C){g=g>>>0,v=v>>>0,C||te(g,v,this.length);let k=this[g+--v],H=1;for(;v>0&&(H*=256);)k+=this[g+--v]*H;return k},s.prototype.readUint8=s.prototype.readUInt8=function(g,v){return g=g>>>0,v||te(g,1,this.length),this[g]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(g,v){return g=g>>>0,v||te(g,2,this.length),this[g]|this[g+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(g,v){return g=g>>>0,v||te(g,2,this.length),this[g]<<8|this[g+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(g,v){return g=g>>>0,v||te(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(g,v){return g=g>>>0,v||te(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},s.prototype.readBigUInt64LE=at(function(g){g=g>>>0,st(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&Je(g,this.length-8);const k=v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24,H=this[++g]+this[++g]*2**8+this[++g]*2**16+C*2**24;return BigInt(k)+(BigInt(H)<<BigInt(32))}),s.prototype.readBigUInt64BE=at(function(g){g=g>>>0,st(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&Je(g,this.length-8);const k=v*2**24+this[++g]*2**16+this[++g]*2**8+this[++g],H=this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C;return(BigInt(k)<<BigInt(32))+BigInt(H)}),s.prototype.readIntLE=function(g,v,C){g=g>>>0,v=v>>>0,C||te(g,v,this.length);let k=this[g],H=1,Q=0;for(;++Q<v&&(H*=256);)k+=this[g+Q]*H;return H*=128,k>=H&&(k-=Math.pow(2,8*v)),k},s.prototype.readIntBE=function(g,v,C){g=g>>>0,v=v>>>0,C||te(g,v,this.length);let k=v,H=1,Q=this[g+--k];for(;k>0&&(H*=256);)Q+=this[g+--k]*H;return H*=128,Q>=H&&(Q-=Math.pow(2,8*v)),Q},s.prototype.readInt8=function(g,v){return g=g>>>0,v||te(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},s.prototype.readInt16LE=function(g,v){g=g>>>0,v||te(g,2,this.length);const C=this[g]|this[g+1]<<8;return C&32768?C|4294901760:C},s.prototype.readInt16BE=function(g,v){g=g>>>0,v||te(g,2,this.length);const C=this[g+1]|this[g]<<8;return C&32768?C|4294901760:C},s.prototype.readInt32LE=function(g,v){return g=g>>>0,v||te(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},s.prototype.readInt32BE=function(g,v){return g=g>>>0,v||te(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},s.prototype.readBigInt64LE=at(function(g){g=g>>>0,st(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&Je(g,this.length-8);const k=this[g+4]+this[g+5]*2**8+this[g+6]*2**16+(C<<24);return(BigInt(k)<<BigInt(32))+BigInt(v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24)}),s.prototype.readBigInt64BE=at(function(g){g=g>>>0,st(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&Je(g,this.length-8);const k=(v<<24)+this[++g]*2**16+this[++g]*2**8+this[++g];return(BigInt(k)<<BigInt(32))+BigInt(this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C)}),s.prototype.readFloatLE=function(g,v){return g=g>>>0,v||te(g,4,this.length),r.read(this,g,!0,23,4)},s.prototype.readFloatBE=function(g,v){return g=g>>>0,v||te(g,4,this.length),r.read(this,g,!1,23,4)},s.prototype.readDoubleLE=function(g,v){return g=g>>>0,v||te(g,8,this.length),r.read(this,g,!0,52,8)},s.prototype.readDoubleBE=function(g,v){return g=g>>>0,v||te(g,8,this.length),r.read(this,g,!1,52,8)};function oe(x,g,v,C,k,H){if(!s.isBuffer(x))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>k||g<H)throw new RangeError('"value" argument is out of bounds');if(v+C>x.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(g,v,C,k){if(g=+g,v=v>>>0,C=C>>>0,!k){const me=Math.pow(2,8*C)-1;oe(this,g,v,C,me,0)}let H=1,Q=0;for(this[v]=g&255;++Q<C&&(H*=256);)this[v+Q]=g/H&255;return v+C},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(g,v,C,k){if(g=+g,v=v>>>0,C=C>>>0,!k){const me=Math.pow(2,8*C)-1;oe(this,g,v,C,me,0)}let H=C-1,Q=1;for(this[v+H]=g&255;--H>=0&&(Q*=256);)this[v+H]=g/Q&255;return v+C},s.prototype.writeUint8=s.prototype.writeUInt8=function(g,v,C){return g=+g,v=v>>>0,C||oe(this,g,v,1,255,0),this[v]=g&255,v+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(g,v,C){return g=+g,v=v>>>0,C||oe(this,g,v,2,65535,0),this[v]=g&255,this[v+1]=g>>>8,v+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(g,v,C){return g=+g,v=v>>>0,C||oe(this,g,v,2,65535,0),this[v]=g>>>8,this[v+1]=g&255,v+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(g,v,C){return g=+g,v=v>>>0,C||oe(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},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(g,v,C){return g=+g,v=v>>>0,C||oe(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 he(x,g,v,C,k){se(g,C,k,x,v,7);let H=Number(g&BigInt(4294967295));x[v++]=H,H=H>>8,x[v++]=H,H=H>>8,x[v++]=H,H=H>>8,x[v++]=H;let Q=Number(g>>BigInt(32)&BigInt(4294967295));return x[v++]=Q,Q=Q>>8,x[v++]=Q,Q=Q>>8,x[v++]=Q,Q=Q>>8,x[v++]=Q,v}function Ve(x,g,v,C,k){se(g,C,k,x,v,7);let H=Number(g&BigInt(4294967295));x[v+7]=H,H=H>>8,x[v+6]=H,H=H>>8,x[v+5]=H,H=H>>8,x[v+4]=H;let Q=Number(g>>BigInt(32)&BigInt(4294967295));return x[v+3]=Q,Q=Q>>8,x[v+2]=Q,Q=Q>>8,x[v+1]=Q,Q=Q>>8,x[v]=Q,v+8}s.prototype.writeBigUInt64LE=at(function(g,v=0){return he(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=at(function(g,v=0){return Ve(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(g,v,C,k){if(g=+g,v=v>>>0,!k){const Ce=Math.pow(2,8*C-1);oe(this,g,v,C,Ce-1,-Ce)}let H=0,Q=1,me=0;for(this[v]=g&255;++H<C&&(Q*=256);)g<0&&me===0&&this[v+H-1]!==0&&(me=1),this[v+H]=(g/Q>>0)-me&255;return v+C},s.prototype.writeIntBE=function(g,v,C,k){if(g=+g,v=v>>>0,!k){const Ce=Math.pow(2,8*C-1);oe(this,g,v,C,Ce-1,-Ce)}let H=C-1,Q=1,me=0;for(this[v+H]=g&255;--H>=0&&(Q*=256);)g<0&&me===0&&this[v+H+1]!==0&&(me=1),this[v+H]=(g/Q>>0)-me&255;return v+C},s.prototype.writeInt8=function(g,v,C){return g=+g,v=v>>>0,C||oe(this,g,v,1,127,-128),g<0&&(g=255+g+1),this[v]=g&255,v+1},s.prototype.writeInt16LE=function(g,v,C){return g=+g,v=v>>>0,C||oe(this,g,v,2,32767,-32768),this[v]=g&255,this[v+1]=g>>>8,v+2},s.prototype.writeInt16BE=function(g,v,C){return g=+g,v=v>>>0,C||oe(this,g,v,2,32767,-32768),this[v]=g>>>8,this[v+1]=g&255,v+2},s.prototype.writeInt32LE=function(g,v,C){return g=+g,v=v>>>0,C||oe(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},s.prototype.writeInt32BE=function(g,v,C){return g=+g,v=v>>>0,C||oe(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},s.prototype.writeBigInt64LE=at(function(g,v=0){return he(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=at(function(g,v=0){return Ve(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ee(x,g,v,C,k,H){if(v+C>x.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function ue(x,g,v,C,k){return g=+g,v=v>>>0,k||ee(x,g,v,4),r.write(x,g,v,C,23,4),v+4}s.prototype.writeFloatLE=function(g,v,C){return ue(this,g,v,!0,C)},s.prototype.writeFloatBE=function(g,v,C){return ue(this,g,v,!1,C)};function De(x,g,v,C,k){return g=+g,v=v>>>0,k||ee(x,g,v,8),r.write(x,g,v,C,52,8),v+8}s.prototype.writeDoubleLE=function(g,v,C){return De(this,g,v,!0,C)},s.prototype.writeDoubleBE=function(g,v,C){return De(this,g,v,!1,C)},s.prototype.copy=function(g,v,C,k){if(!s.isBuffer(g))throw new TypeError("argument should be a Buffer");if(C||(C=0),!k&&k!==0&&(k=this.length),v>=g.length&&(v=g.length),v||(v=0),k>0&&k<C&&(k=C),k===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(k<0)throw new RangeError("sourceEnd out of bounds");k>this.length&&(k=this.length),g.length-v<k-C&&(k=g.length-v+C);const H=k-C;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(v,C,k):Uint8Array.prototype.set.call(g,this.subarray(C,k),v),H},s.prototype.fill=function(g,v,C,k){if(typeof g=="string"){if(typeof v=="string"?(k=v,v=0,C=this.length):typeof C=="string"&&(k=C,C=this.length),k!==void 0&&typeof k!="string")throw new TypeError("encoding must be a string");if(typeof k=="string"&&!s.isEncoding(k))throw new TypeError("Unknown encoding: "+k);if(g.length===1){const Q=g.charCodeAt(0);(k==="utf8"&&Q<128||k==="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 H;if(typeof g=="number")for(H=v;H<C;++H)this[H]=g;else{const Q=s.isBuffer(g)?g:s.from(g,k),me=Q.length;if(me===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(H=0;H<C-v;++H)this[H+v]=Q[H%me]}return this};const Ie={};function xt(x,g,v){Ie[x]=class extends v{constructor(){super(),Object.defineProperty(this,"message",{value:g.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${x}]`,this.stack,delete this.name}get code(){return x}set code(k){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:k,writable:!0})}toString(){return`${this.name} [${x}]: ${this.message}`}}}xt("ERR_BUFFER_OUT_OF_BOUNDS",function(x){return x?`${x} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),xt("ERR_INVALID_ARG_TYPE",function(x,g){return`The "${x}" argument must be of type number. Received type ${typeof g}`},TypeError),xt("ERR_OUT_OF_RANGE",function(x,g,v){let C=`The value of "${x}" is out of range.`,k=v;return Number.isInteger(v)&&Math.abs(v)>2**32?k=Rt(String(v)):typeof v=="bigint"&&(k=String(v),(v>BigInt(2)**BigInt(32)||v<-(BigInt(2)**BigInt(32)))&&(k=Rt(k)),k+="n"),C+=` It must be ${g}. Received ${k}`,C},RangeError);function Rt(x){let g="",v=x.length;const C=x[0]==="-"?1:0;for(;v>=C+4;v-=3)g=`_${x.slice(v-3,v)}${g}`;return`${x.slice(0,v)}${g}`}function Vt(x,g,v){st(g,"offset"),(x[g]===void 0||x[g+v]===void 0)&&Je(g,x.length-(v+1))}function se(x,g,v,C,k,H){if(x>v||x<g){const Q=typeof g=="bigint"?"n":"";let me;throw H>3?g===0||g===BigInt(0)?me=`>= 0${Q} and < 2${Q} ** ${(H+1)*8}${Q}`:me=`>= -(2${Q} ** ${(H+1)*8-1}${Q}) and < 2 ** ${(H+1)*8-1}${Q}`:me=`>= ${g}${Q} and <= ${v}${Q}`,new Ie.ERR_OUT_OF_RANGE("value",me,x)}Vt(C,k,H)}function st(x,g){if(typeof x!="number")throw new Ie.ERR_INVALID_ARG_TYPE(g,"number",x)}function Je(x,g,v){throw Math.floor(x)!==x?(st(x,v),new Ie.ERR_OUT_OF_RANGE(v||"offset","an integer",x)):g<0?new Ie.ERR_BUFFER_OUT_OF_BOUNDS:new Ie.ERR_OUT_OF_RANGE(v||"offset",`>= ${v?1:0} and <= ${g}`,x)}const Wt=/[^+/0-9A-Za-z-_]/g;function Sr(x){if(x=x.split("=")[0],x=x.trim().replace(Wt,""),x.length<2)return"";for(;x.length%4!==0;)x=x+"=";return x}function tr(x,g){g=g||1/0;let v;const C=x.length;let k=null;const H=[];for(let Q=0;Q<C;++Q){if(v=x.charCodeAt(Q),v>55295&&v<57344){if(!k){if(v>56319){(g-=3)>-1&&H.push(239,191,189);continue}else if(Q+1===C){(g-=3)>-1&&H.push(239,191,189);continue}k=v;continue}if(v<56320){(g-=3)>-1&&H.push(239,191,189),k=v;continue}v=(k-55296<<10|v-56320)+65536}else k&&(g-=3)>-1&&H.push(239,191,189);if(k=null,v<128){if((g-=1)<0)break;H.push(v)}else if(v<2048){if((g-=2)<0)break;H.push(v>>6|192,v&63|128)}else if(v<65536){if((g-=3)<0)break;H.push(v>>12|224,v>>6&63|128,v&63|128)}else if(v<1114112){if((g-=4)<0)break;H.push(v>>18|240,v>>12&63|128,v>>6&63|128,v&63|128)}else throw new Error("Invalid code point")}return H}function Mt(x){const g=[];for(let v=0;v<x.length;++v)g.push(x.charCodeAt(v)&255);return g}function vn(x,g){let v,C,k;const H=[];for(let Q=0;Q<x.length&&!((g-=2)<0);++Q)v=x.charCodeAt(Q),C=v>>8,k=v%256,H.push(k),H.push(C);return H}function zt(x){return t.toByteArray(Sr(x))}function Ft(x,g,v,C){let k;for(k=0;k<C&&!(k+v>=g.length||k>=x.length);++k)g[k+v]=x[k];return k}function Ze(x,g){return x instanceof g||x!=null&&x.constructor!=null&&x.constructor.name!=null&&x.constructor.name===g.name}function Qt(x){return x!==x}const vt=function(){const x="0123456789abcdef",g=new Array(256);for(let v=0;v<16;++v){const C=v*16;for(let k=0;k<16;++k)g[C+k]=x[v]+x[k]}return g}();function at(x){return typeof BigInt>"u"?En:x}function En(){throw new Error("BigInt not supported")}}(Jc)),Jc}(function(e,t){(function(r,n){e.exports=n(vT(),PT(),MT(),xg(),HT,sx(),cx())})(de,function(r,n,i,o,a,s,u){return function(){var l={809:function(f){f.exports=r},30:function(f){f.exports=n},36:function(f){f.exports=i},300:function(f){f.exports=o},408:function(f){f.exports=u},25:function(f){f.exports=a},130:function(f){f.exports=s}},c={};function d(f){var p=c[f];if(p!==void 0)return p.exports;var m=c[f]={exports:{}};return l[f](m,m.exports,d),m.exports}d.n=function(f){var p=f&&f.__esModule?function(){return f.default}:function(){return f};return d.d(p,{a:p}),p},d.d=function(f,p){for(var m in p)d.o(p,m)&&!d.o(f,m)&&Object.defineProperty(f,m,{enumerable:!0,get:p[m]})},d.o=function(f,p){return Object.prototype.hasOwnProperty.call(f,p)},d.r=function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})};var h={};return function(){d.r(h),d.d(h,{assets:function(){return M},auth:function(){return te},buildAnswer:function(){return PE},buildCarouselCard:function(){return RE},buildQuestion:function(){return Ge},carouselCards:function(){return Ti},contentInteraction:function(){return at},decodeBase64:function(){return IE},default:function(){return LE},editorialPages:function(){return W},features:function(){return v},getEntries:function(){return f.getEntries},getEntry:function(){return f.getEntry},management:function(){return bn},payments:function(){return Tn},people:function(){return nr},peopleEngagement:function(){return Qr},qaQuestions:function(){return ct},reportError:function(){return p.reportError},search:function(){return wi}});var f=d(809),p=d(30),m=d(36),_={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:S,LOCALHOST:E,STAGING:b,STAGING_SPLITTER:T},ENVIRONMENTS:{PRODUCTION:w,LOCAL:P}}}=_,{HUBSPOT:{ENVIRONMENTS_MAPPING:R,EMAIL_IDS:L}}=_;let U={emailIds:{}};var q=d(300),G=d.n(q);const j=async F=>{try{const{message:B,response:D,request:V}=F;let ne=B;return D?ne+=` - The request was made and the server responded with ${JSON.stringify({status:D.status,data:D.data})}`:V&&(ne+=" - The request was made but no response was received"),console.warn(ne),await(0,p.reportError)(new Error(ne)),ne}catch(B){return console.warn(`Cannot handle error: ${B.message}`),B.message}},{APIS:{ASSETS_API:{BASE_URL:Y,ENDPOINTS:{USERS:re,CERTIFICATES:K}}}}=_;var M={certificates:{create:async(F,B)=>{let D=[];try{const{data:V}=await G().post(`${Y}${re}/${F}${K}`,B);V&&(D=V)}catch(V){await j(V)}return D}}};const{APIS:{AUTH_API:{BASE_URL:z,ENDPOINTS:{USER_PASSWORD:Z,USERS:fe}}},USERS:{MYSELF:X}}=_;var te={userPassword:{update:async F=>{let B=null;try{B=await G().put(`${z}${fe}/${X}${Z}`,F)}catch(D){B={message:(((D||{}).response||{}).data||{}).message},await j(D)}return B}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:oe,ENDPOINTS:{ANSWERS:he,QUESTIONS:Ve,LIKES:ee}}}}=_,ue=`${oe}${Ve}`;var De={create:async({questionSlug:F},B)=>{try{await G().post(`${ue}/${encodeURIComponent(F)}${he}`,B)}catch(D){const V=await j(D);throw new Error(V)}},remove:async({questionSlug:F,answerSlug:B})=>{try{await G().delete(`${ue}/${encodeURIComponent(F)}${he}/${encodeURIComponent(B)}`)}catch(D){const V=await j(D);throw new Error(V)}},update:async({questionSlug:F,answerSlug:B},D)=>{try{return await G().put(`${ue}/${encodeURIComponent(F)}${he}/${encodeURIComponent(B)}`,D)}catch(V){const ne=await j(V);throw new Error(ne)}},like:async({questionSlug:F,answerSlug:B},D)=>{try{return await G().post(`${ue}/${encodeURIComponent(F)}${he}/${encodeURIComponent(B)}${ee}`,D)}catch(V){const ne=await j(V);throw new Error(ne)}},unlike:async({questionSlug:F,answerSlug:B})=>{try{return await G().delete(`${ue}/${encodeURIComponent(F)}${he}/${encodeURIComponent(B)}${ee}`)}catch(D){const V=await j(D);throw new Error(V)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Ie,ENDPOINTS:{QUESTIONS:xt}}}}=_,Rt=`${Ie}${xt}`;var Vt={create:async F=>{try{return await G().post(Rt,F)}catch(B){const D=await j(B);throw new Error(D)}},remove:async({questionSlug:F})=>{try{await G().delete(`${Rt}/${encodeURIComponent(F)}`)}catch(B){const D=await j(B);throw new Error(D)}},update:async({questionSlug:F},B)=>{try{return await G().put(`${Rt}/${encodeURIComponent(F)}`,B)}catch(D){const V=await j(D);throw new Error(V)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:se,ENDPOINTS:{REPLIES:st,ANSWERS:Je,QUESTIONS:Wt,LIKES:Sr}}}}=_,tr=`${se}${Wt}`,Mt=({questionSlug:F,answerSlug:B,replySlug:D},V=!1)=>{let ne=`${tr}/${encodeURIComponent(F)}${Je}/${encodeURIComponent(B)}${st}`;return D&&(ne=`${ne}/${encodeURIComponent(D)}`,V&&(ne=`${ne}${Sr}`)),ne};var vn={create:async({questionSlug:F,answerSlug:B},D)=>{try{return await G().post(Mt({questionSlug:F,answerSlug:B}),D)}catch(V){const ne=await j(V);throw new Error(ne)}},update:async({questionSlug:F,answerSlug:B,replySlug:D},V)=>{try{return await G().put(Mt({questionSlug:F,answerSlug:B,replySlug:D}),V)}catch(ne){const Ne=await j(ne);throw new Error(Ne)}},remove:async({questionSlug:F,answerSlug:B,replySlug:D})=>{try{await G().delete(Mt({questionSlug:F,answerSlug:B,replySlug:D}))}catch(V){const ne=await j(V);throw new Error(ne)}},like:async({questionSlug:F,answerSlug:B,replySlug:D},V)=>{try{await G().post(Mt({questionSlug:F,answerSlug:B,replySlug:D},!0),V)}catch(ne){const Ne=await j(ne);throw new Error(Ne)}},unlike:async({questionSlug:F,answerSlug:B,replySlug:D})=>{try{await G().delete(Mt({questionSlug:F,answerSlug:B,replySlug:D},!0))}catch(V){const ne=await j(V);throw new Error(ne)}},getReplyUrl:Mt};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:zt,ENDPOINTS:{QUESTIONS:Ft,ANSWERS:Ze,LIKES:Qt}}}}=_,vt=`${zt}${Ft}`;var at={answers:De,questions:Vt,replies:vn,likes:{create:async(F,B)=>{try{return await G().post(`${vt}/${encodeURIComponent(F)}${Ze}/${encodeURIComponent(B)}${Qt}`)}catch(D){const V=await j(D);throw new Error(V)}},remove:async(F,B)=>{try{return await G().delete(`${vt}/${encodeURIComponent(F)}${Ze}/${encodeURIComponent(B)}${Qt}`)}catch(D){const V=await j(D);throw new Error(V)}}}};const{APIS:{FEATURES_API:{BASE_URL:En,ENDPOINTS:{FLAGS:x}}}}=_,g=`${En}${x}`;var v={flags:{read:async F=>{let B=null;try{const{data:D}=await G().get(`${g}/${encodeURIComponent(F)}`);D!=null&&D.name&&(D!=null&&D.featureState)&&(B=D)}catch(D){await j(D)}return B}}};const{APIS:{MANAGEMENT_API:{BASE_URL:C,ENDPOINTS:{ACCOUNTS:k}}}}=_;var H={create:async F=>{try{await G().post(`${C}${k}`,F)}catch(B){throw await j(B),B}},read:async F=>{let B=null;try{({data:B}=await G().get(`${C}${k}/${encodeURIComponent(F)}`))}catch(D){await j(D)}return B},update:async(F,B)=>{try{await G().put(`${C}${k}/${encodeURIComponent(F)}`,B)}catch(D){throw await j(D),D}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Q,ENDPOINTS:{BULK_ENROLMENTS:me}}}}=_;var Ce={create:async F=>{try{await G().post(`${Q}${me}`,F)}catch(B){throw await j(B),B}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Re,ENDPOINTS:{EVENT_REGISTRATIONS:Pe}}}}=_;var Ee={create:async F=>{try{await G().post(`${Re}${Pe}`,F)}catch(B){const D=await j(B);throw new Error(D)}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Pt,ENDPOINTS:{LOGINS:qr,LOGIN_PASSWORDLESS:_n}}}}=_,Tr=`${Pt}${qr}`;var bn={accounts:H,bulkEnrolments:Ce,eventRegistrations:Ee,passwordless:{update:async F=>{try{await G().put(`${Tr}/${encodeURIComponent(F)}${_n}`)}catch(B){throw await j(B),B}}}};const{APIS:{PAYMENTS_API:{BASE_URL_V2:xr,ENDPOINTS:{PRODUCTS:wn}}}}=_,Sn=`${xr}${wn}`;var Tn={products:{list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await G().get(Sn,D);V&&V.length&&(B=V)}catch(V){await j(V)}return B}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:rr,ENDPOINTS:{BULK_ENROLMENTS:fi}}}}=_;var Yt={list:async F=>{let B=[];try{const{data:D}=await G().get(`${rr}${fi}`,{params:F});D&&D.length&&(B=D)}catch(D){await j(D)}return B}},Eo=d(25);const{OK:_o,MULTIPLE_CHOICES:bo,NOT_FOUND:hi,FORBIDDEN:xn}=Eo.StatusCodes,We=F=>F>=_o&&F<bo||F===xn||F===hi,{APIS:{PEOPLE_API:{BASE_URL_V2:On,ENDPOINTS:{USERS:An}}}}=_,Or=async F=>{let B=null;try{const{data:D}=await G().get(`${On}${An}/${encodeURIComponent(F)}`,{validateStatus:We});D&&D.id&&(B=D)}catch(D){await j(D)}return B},di=async F=>{let B=[];try{if(F&&F.length<2)throw new Error("users list method requires at least two ids");const D=F.map(ne=>`ids=${encodeURIComponent(ne)}`).join("&"),V=await G().get(`${On}${An}?${D}`,{validateStatus:We});V&&V.length&&(B=V)}catch(D){await j(D)}return B};var wo={read:Or,update:async(F,B)=>{let D=!1;try{const{data:V}=await G().put(`${On}${An}/${encodeURIComponent(F)}`,B);D=!(!V||!V.id)}catch(V){await j(V)}return D},list:di};const{APIS:{PEOPLE_API:{BASE_URL_V2:et,ENDPOINTS:{USERS:So,USER_LIKES:To}}},USERS:{MYSELF:xo}}=_,Oo=`${et}${So}/${xo}${To}`,Cn=async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await G().get(Oo,D);V&&V.length&&(B=V)}catch(V){await j(V)}return B};var dt={list:Cn},Ao={authors:{readQuestionAuthors:async(F,B,D)=>{try{if(F.author=await Or(F.authorId),F.answers&&F.answers.length&&!D.ignoreAnswersAuthors){F.answers.sort((ne,Ne)=>new Date(Ne.updatedAt)-new Date(ne.updatedAt)),F.totalAnswers=F.answers.length;let V=F.answers;if(D.limit&&D.pageNumber){const ne=D.limit*(D.pageNumber-1);V=F.answers.slice(ne,ne+D.limit)}for(let ne of V){ne.author=ne.authorId&&await Or(ne.authorId)||{};const[Ne]=B?await Cn({contentType:_.CONTENTFUL.ANSWERS.TYPE,contentSlug:ne.slug}):[null];ne.userLiked=!!Ne}F.answers=V}else F.answers||(F.answers=[]);return F}catch(V){throw await j(V),new Error(`Cannot read authors for question: ${V.message}`)}},readAuthors:async(F=[])=>{let B=[];try{if(Array.isArray(F)===!1)throw new Error("authorIds is not an array!");if(F&&F.length===1){const D=await Or(F[0]);D&&B.push(D)}else if(F&&F.length>1){const D=await di(F);D&&D.length>0&&(B=D)}}catch(D){throw await j(D),new Error(`Cannot read authors: ${D.message}`)}return B}}};const{APIS:{PEOPLE_API:{BASE_URL:Co,ENDPOINTS:{REGISTRATIONS:Ro}}}}=_;var Po={list:async F=>{let B=[];try{const{data:D}=await G().get(`${Co}${Ro}`,{params:F});D&&D.length&&(B=D)}catch(D){await j(D)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:No,ENDPOINTS:{USERS:Gr,USER_COURSES:pi}}},USERS:{MYSELF:Vr}}=_,Ot=`${No}${Gr}/${Vr}${pi}`;var Rn={create:async F=>{try{await G().post(Ot,F)}catch(B){await j(B)}},list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await G().get(Ot,D);V&&V.length&&(B=V)}catch(V){await j(V)}return B},update:async(F,B)=>{try{await G().put(`${Ot}/${F}`,B)}catch(D){await j(D)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Io,ENDPOINTS:{USERS:Lo,USER_EVENTS:ko}}},USERS:{MYSELF:Mo}}=_,Fo=`${Io}${Lo}/${Mo}${ko}`;var Wr={list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await G().get(Fo,D);V&&V.length&&(B=V)}catch(V){await j(V)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Pn,ENDPOINTS:{USERS:Ar,USER_LESSONS:mi}}},USERS:{MYSELF:gi}}=_,yi=`${Pn}${Ar}/${gi}${mi}`;var Do={create:async F=>{let B=null;try{B=await G().post(yi,F)}catch(D){await j(D)}return B},list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await G().get(yi,D);V&&V.length&&(B=V)}catch(V){await j(V)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Bo,ENDPOINTS:{USERS:Uo,USER_PRODUCTS:Nn}}},USERS:{MYSELF:$o}}=_,In=`${Bo}${Uo}/${$o}${Nn}`;var Cr={create:async F=>{let B=null;try{B=await G().post(In,F)}catch(D){await j(D)}return B},list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await G().get(In,D);V&&V.length&&(B=V)}catch(V){await j(V)}return B},update:async(F,B)=>{try{await G().put(`${In}/${F}`,B)}catch(D){await j(D)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Nt,ENDPOINTS:{USERS:Kt,USER_RATINGS:Xt}}},USERS:{MYSELF:jo}}=_,It=`${Nt}${Kt}/${jo}${Xt}`;var nr={bulkEnrolments:Yt,handlers:Ao,registrations:Po,users:wo,userCourses:Rn,userEvents:Wr,userLessons:Do,userLikes:dt,userProducts:Cr,userRatings:{create:async F=>{let B=null;try{const{data:D}=await G().post(It,F);D!=null&&D.id&&(B=D)}catch(D){await j(D)}return B},update:async(F,B)=>{try{await G().put(`${It}/${F}`,B)}catch(D){await j(D)}}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:Ho,ENDPOINTS:{ENQUIRY_EMAILS:qo}}}}=_;var Go={create:async F=>{let B=null;try{const{data:D}=await G().post(`${Ho}${qo}`,F);D&&(B=D)}catch(D){await j(D)}return B}},vi={forms:{sendEnquiryEmails:async F=>{let B=null;try{const{emailIds:D}=U;B=await Qr.emails.create({...D,...F})}catch(D){await j(D)}return B}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:ut,ENDPOINTS:{USERS:Ei,USER_PROPERTIES:_i}}},USERS:{MYSELF:zr}}=_;var Qr={emails:Go,handlers:vi,userProperties:{update:async(F,B)=>{try{await G().put(`${ut}${Ei}/${zr}${_i}/${F}`,B)}catch(D){await j(D)}}}},Yr=d(130);const{APIS:{SEARCH_API:{BASE_URL:Vo,ENDPOINTS:{SEARCH:bi}}}}=_,Ln=`${Vo}${bi}`;var wi={ask:async F=>{try{let B=null;const{data:D}=await G().get(Ln,{params:{question:F}});return D!=null&&D.answer&&(D!=null&&D.references)&&(D!=null&&D.version)&&(B=D),B}catch(B){const D=await j(B);throw new Error(D)}},stream:(F,B,D)=>{const V=(0,Yr.io)(void 0,{path:"/api/search-api/web-sockets"});function ne(){V.emit("search",{question:F})}function Ne(qe){D(qe),$e(),V.disconnect()}function $e(){V.off("connect",ne),V.off("update",B),V.off("result",Ne)}return V.on("connect",ne),V.on("update",B),V.on("result",Ne),$e}};const{CONTENTFUL:Dt}=_,{CARD_TYPES:kn}=Dt.CAROUSELS;var Ti={read:async(F,B)=>{try{if(!B||!B.sys||!B.sys.id)throw new Error("Invalid link to card");if(!F||!kn[F])throw new Error("Unsupported card content type");const{INCLUDE:D,SELECT:V}=kn[F];return await(0,f.getEntry)({content_type:F,"sys.id":B.sys.id,include:D,select:V},{assetDetails:!0})}catch(D){throw await j(D),new Error(`Cannot read carousel card: ${D.message}`)}}};const{CONTENTFUL:Wo}=_,{INCLUDE:y,SELECT:A,TYPE:I}=Wo.EDITORIAL_PAGES;var W={read:async F=>{try{return await(0,f.getEntry)({content_type:I,"fields.slug":F,include:y,select:A})}catch(B){throw await j(B),new Error(`Cannot read editorial page: ${B.message}`)}}};const{CONTENTFUL:ge}=_,{TYPE:le,ORDER:_e,SELECT:be,SKIP:He,LIMIT:Ae,INCLUDE:tt}=ge.QUESTIONS;var ct={read:async F=>{try{return await(0,f.getEntry)({content_type:le,"fields.slug":F,include:2,select:be})}catch(B){throw await j(B),new Error(`Cannot read question: ${B.message}`)}},list:async(F={})=>{try{return await(0,f.getEntries)({content_type:le,include:tt,limit:Ae,order:_e,select:be,skip:He,...F})}catch(B){throw await j(B),new Error(`Cannot list questions: ${B.message}`)}}},Ge=async(F,B,D={ignoreAnswersAuthors:!1})=>{try{let V={};return V=await ct.read(F),V=await nr.handlers.authors.readQuestionAuthors(V,B,D),V}catch(V){throw await j(V),new Error(`Cannot build question: ${V.message}`)}};const{ARTICLES:{TYPE:rt},COURSES:{TYPE:Qe},EVENTS:{TYPE:ir},LISTS:{TYPE:Jt},QUESTIONS:{TYPE:Rr},LEARNING_HUB:{TYPE:aa}}=_.CONTENTFUL,or=F=>F&&F.url?(Object.assign(F,{aspect:"responsiveCard",query:"q=90&fit=fill"}),F):null,Kr={[rt]:async F=>{const{authorIds:B,authorTag:D,image:V,publishedDate:ne,readingTime:Ne,slug:$e,title:qe}=F,Lt=await nr.handlers.authors.readAuthors(B),sr=Lt&&Lt.length?Lt:D?[D]:null;return{banner:or(V),contributors:sr,publishedDate:ne,readingTime:Ne,slug:$e,title:qe}},[Qe]:async(F,B)=>{const{banner:D,freeCourse:V,partnershipDetails:ne,slug:Ne,title:$e,registered:qe}=F,Lt={banner:or(D),slug:Ne,title:$e,pill:V?"free":"premium",registered:!!qe};if(ne){const{partners:sr}=ne;Lt.partner=sr&&sr.length&&ne.partners[0]}if(qe===void 0&&B){const[sr]=await nr.userProducts.list({courseSlug:Ne,isEnrolled:!0,scope:"active"});Lt.registered=!!sr}return Lt},[ir]:async(F,B)=>{const{bannerImage:D,defaultStartDate:V,isEventOngoing:ne,slug:Ne,speakers:$e,title:qe,registered:Lt}=F,sr=new Date(V),kE=!!sr&&sr<new Date;if($e&&$e.length)for(const ua of $e)ua.image=(ku=ua.image)&&ku.url?`${ku.url}?w=100&h=100&fit=thumb&f=center`:null;var ku;const gh={banner:or(D),dateHasPassed:kE,title:qe,slug:Ne,isOngoingEvent:ne,contributors:$e,startDate:sr,registered:!!Lt};if(Lt===void 0&&B){const[ua]=await nr.userEvents.list({eventSlug:Ne});gh.registered=!!ua}return gh},[Jt]:async F=>{const{hero:B,slug:D,title:V}=F;return{banner:or(B),slug:D,title:V}},[Rr]:async F=>{const{answers:B,authorId:D,createdAt:V,slug:ne,title:Ne}=F;let $e=null;if(D){const qe=await nr.users.read(D);qe&&($e=qe)}return{answers:B&&B.length?B.length:0,contributors:$e?[$e]:[],createdAt:V,slug:ne,title:Ne}},[aa]:F=>{const{bannerSection:B,customLabel:D,slug:V,title:ne}=F;return{banner:or(B.image),slug:V,title:ne,customLabel:D}},people:F=>{const{id:B,name:D,jobTitle:V,location:ne,image:Ne}=F;return{profile:Ne,slug:B,title:D,text:V,secondaryText:ne}}};var RE=async({contentType:F,...B}={},D)=>{try{if(!Kr[F])throw new Error("Content type not supported");if(typeof Kr[F]!="function")throw new Error("No builder function for content type");return F!=="people"&&B.sys&&B.sys.type&&B.sys.type==="Link"&&(B=await Ti.read(F,B)),{contentType:F,...await Kr[F](B,D)}}catch(V){throw await j(V),new Error(`Cannot build carousel card: ${V.message}`)}},PE=async(F,B,D={})=>{try{if(!F.replies||F.replies.length===0)return F.replies=[],F;F.replies.sort((ne,Ne)=>new Date(ne.createdAt)-new Date(Ne.createdAt)),F.totalReplies=F.totalReplies||F.replies.length;let V=F.replies;if(D.limit&&D.pageNumber){const ne=D.limit*(D.pageNumber-1);V=F.replies.slice(ne,ne+D.limit)}for(const ne of V){if(ne.authorId===F.authorId){ne.author=F.author,ne.userLiked=!1;continue}ne.author=ne.authorId&&await Or(ne.authorId)||{};const[Ne]=B?await Cn({contentType:_.CONTENTFUL.REPLIES.TYPE,contentSlug:ne.slug}):[null];ne.userLiked=!!Ne}return F.replies=V,F}catch(V){throw await j(V),new Error(`Cannot build replies for answer: ${V.message}`)}},NE=d(408);const IE=F=>F&&NE.Buffer.from(F,"base64").toString("ascii");function LE({contentContext:F=null,errorsContext:B=null,gtmContext:D=null,origin:V}){try{const ne=(Ne=>{let $e=null;Ne?$e=Ne:typeof window<"u"&&($e=window.origin||window.location.origin),$e||new Error("Cannot select environment: Website not defined");let qe=null;const Lt=$e.match(b);return Lt?qe=Lt[1].split(T)[0]:$e===S?qe=w:$e.includes(E)&&(qe=P),qe||new Error(`Cannot select environment: No rule for website ${$e}`),qe})(V);return F&&(0,f.setContext)(Object.assign({},F,{environment:ne})),B&&(0,p.setContext)(Object.assign({},B,{environment:ne})),D&&((0,m.setContext)(Object.assign({},D,{environment:ne})),(0,m.setupGTM)()),(({environment:Ne})=>{const $e=(qe=>{if(!qe)throw new Error("Cannot map environment: Environment not defined");if(!R[qe])throw new Error(`Cannot map environment: No mapping found for environment ${qe}`);return R[qe]})(Ne);U.emailIds=L[$e]})(Object.assign({},{environment:ne})),ne}catch(ne){console.warn(`Cannot load SDK: ${ne.message}`)}}}(),h}()})})(gg);var lx=gg.exports;const ys={Off:"off",On:"on",Cookie:"cookie"},fx=e=>{const[t]=mg(),[r,n]=$.useState(null),[i,o]=$.useState(!1),[a,s]=$.useState(ys.Off);return $.useEffect(()=>{e&&lx.features.flags.read(e).then(u=>{s(u.featureState),n(null)}).catch(u=>{s(ys.Off),n(u)})},[e]),$.useEffect(()=>{switch(a){case ys.Off:o(!1);break;case ys.On:o(!0);break;case ys.Cookie:o(!!t[`feature-${e}`]);break;default:o(!1)}},[a,t]),{isFeatureActive:i,error:r}};function hx(e,t,r){var n=this,i=$.useRef(null),o=$.useRef(0),a=$.useRef(null),s=$.useRef([]),u=$.useRef(),l=$.useRef(),c=$.useRef(e),d=$.useRef(!0);$.useEffect(function(){c.current=e},[e]);var h=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var f=!!(r=r||{}).leading,p=!("trailing"in r)||!!r.trailing,m="maxWait"in r,_=m?Math.max(+r.maxWait||0,t):null;$.useEffect(function(){return d.current=!0,function(){d.current=!1}},[]);var S=$.useMemo(function(){var E=function(L){var U=s.current,q=u.current;return s.current=u.current=null,o.current=L,l.current=c.current.apply(q,U)},b=function(L,U){h&&cancelAnimationFrame(a.current),a.current=h?requestAnimationFrame(L):setTimeout(L,U)},T=function(L){if(!d.current)return!1;var U=L-i.current;return!i.current||U>=t||U<0||m&&L-o.current>=_},w=function(L){return a.current=null,p&&s.current?E(L):(s.current=u.current=null,l.current)},P=function L(){var U=Date.now();if(T(U))return w(U);if(d.current){var q=t-(U-i.current),G=m?Math.min(q,_-(U-o.current)):q;b(L,G)}},R=function(){var L=Date.now(),U=T(L);if(s.current=[].slice.call(arguments),u.current=n,i.current=L,U){if(!a.current&&d.current)return o.current=i.current,b(P,t),f?E(i.current):l.current;if(m)return b(P,t),E(i.current)}return a.current||b(P,t),l.current};return R.cancel=function(){a.current&&(h?cancelAnimationFrame(a.current):clearTimeout(a.current)),o.current=0,s.current=i.current=u.current=a.current=null},R.isPending=function(){return!!a.current},R.flush=function(){return a.current?w(Date.now()):l.current},R},[f,m,t,_,p,h]);return S}function hv(e,t,r){var n=r===void 0?{}:r,i=n.leading,o=n.trailing;return hx(e,t,{maxWait:t,leading:i===void 0||i,trailing:o===void 0||o})}let Zc;const ra=(e=!0,t=!1)=>{if(!e)return;const[r,n]=$.useState(0)||[!1,()=>{}];$.useEffect(()=>(o(),window.addEventListener("resize",a),()=>{clearTimeout(Zc),a.flush(),window.removeEventListener("resize",a)}),[]);const i=()=>window.innerWidth,o=()=>{n(i())},a=hv(()=>{i()!==r&&(t&&(clearTimeout(Zc),document.body.classList.add("is-resizing"),Zc=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),o())},500,{leading:!0});return r},dv=({scrollPosition:e=0,offset:t={down:0,up:10},callbacks:{scrollDown:r=()=>{},scrollUp:n=()=>{}}})=>{if(!window)return;const[i,o]=$.useState({current:0,past:0})||[!1,()=>{}],[a,s]=$.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];$.useEffect(()=>(u(),window.addEventListener("scroll",l),()=>{l.flush(),window.removeEventListener("scroll",l)}),[]);const u=()=>{const c=window.scrollY,d=i.current,h=c-d,f=h>0?"down":"up";if(o({current:c,past:d}),f==="down"){c>=e+t.down&&!a.scrollDown&&(!a.scrollUp||h>t.up)&&(r(),s({scrollUp:!1,scrollDown:!0}));return}Math.abs(h)>=t.up&&!a.scrollUp&&(n(),s({scrollUp:!0,scrollDown:!1}))},l=hv(()=>{u()},250);return i},dx=(e=[],t=!0)=>{e=Array.isArray(e)?e:[e];const r=$.useRef(!1),{hash:n}=ft.useLocation();ni(()=>{if(n){if(r.current)return;const i=document.getElementById(n.replace("#",""));i&&(i.scrollIntoView(t?{behavior:"smooth"}:null),r.current=!0)}},e)};var Xa={exports:{}};Xa.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",u="[object Date]",l="[object Error]",c="[object Function]",d="[object GeneratorFunction]",h="[object Map]",f="[object Number]",p="[object Object]",m="[object Promise]",_="[object RegExp]",S="[object Set]",E="[object String]",b="[object Symbol]",T="[object WeakMap]",w="[object ArrayBuffer]",P="[object DataView]",R="[object Float32Array]",L="[object Float64Array]",U="[object Int8Array]",q="[object Int16Array]",G="[object Int32Array]",j="[object Uint8Array]",Y="[object Uint8ClampedArray]",re="[object Uint16Array]",K="[object Uint32Array]",M=/[\\^$.*+?()[\]{}|]/g,z=/\w*$/,Z=/^\[object .+?Constructor\]$/,fe=/^(?:0|[1-9]\d*)$/,X={};X[o]=X[a]=X[w]=X[P]=X[s]=X[u]=X[R]=X[L]=X[U]=X[q]=X[G]=X[h]=X[f]=X[p]=X[_]=X[S]=X[E]=X[b]=X[j]=X[Y]=X[re]=X[K]=!0,X[l]=X[c]=X[T]=!1;var te=typeof de=="object"&&de&&de.Object===Object&&de,oe=typeof self=="object"&&self&&self.Object===Object&&self,he=te||oe||Function("return this")(),Ve=t&&!t.nodeType&&t,ee=Ve&&!0&&e&&!e.nodeType&&e,ue=ee&&ee.exports===Ve;function De(y,A){return y.set(A[0],A[1]),y}function Ie(y,A){return y.add(A),y}function xt(y,A){for(var I=-1,W=y?y.length:0;++I<W&&A(y[I],I,y)!==!1;);return y}function Rt(y,A){for(var I=-1,W=A.length,ge=y.length;++I<W;)y[ge+I]=A[I];return y}function Vt(y,A,I,W){var ge=-1,le=y?y.length:0;for(W&&le&&(I=y[++ge]);++ge<le;)I=A(I,y[ge],ge,y);return I}function se(y,A){for(var I=-1,W=Array(y);++I<y;)W[I]=A(I);return W}function st(y,A){return y==null?void 0:y[A]}function Je(y){var A=!1;if(y!=null&&typeof y.toString!="function")try{A=!!(y+"")}catch{}return A}function Wt(y){var A=-1,I=Array(y.size);return y.forEach(function(W,ge){I[++A]=[ge,W]}),I}function Sr(y,A){return function(I){return y(A(I))}}function tr(y){var A=-1,I=Array(y.size);return y.forEach(function(W){I[++A]=W}),I}var Mt=Array.prototype,vn=Function.prototype,zt=Object.prototype,Ft=he["__core-js_shared__"],Ze=function(){var y=/[^.]+$/.exec(Ft&&Ft.keys&&Ft.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),Qt=vn.toString,vt=zt.hasOwnProperty,at=zt.toString,En=RegExp("^"+Qt.call(vt).replace(M,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=ue?he.Buffer:void 0,g=he.Symbol,v=he.Uint8Array,C=Sr(Object.getPrototypeOf,Object),k=Object.create,H=zt.propertyIsEnumerable,Q=Mt.splice,me=Object.getOwnPropertySymbols,Ce=x?x.isBuffer:void 0,Re=Sr(Object.keys,Object),Pe=Nt(he,"DataView"),Ee=Nt(he,"Map"),Pt=Nt(he,"Promise"),qr=Nt(he,"Set"),_n=Nt(he,"WeakMap"),Tr=Nt(Object,"create"),bn=ut(Pe),xr=ut(Ee),wn=ut(Pt),Sn=ut(qr),Tn=ut(_n),rr=g?g.prototype:void 0,fi=rr?rr.valueOf:void 0;function Yt(y){var A=-1,I=y?y.length:0;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function Eo(){this.__data__=Tr?Tr(null):{}}function _o(y){return this.has(y)&&delete this.__data__[y]}function bo(y){var A=this.__data__;if(Tr){var I=A[y];return I===n?void 0:I}return vt.call(A,y)?A[y]:void 0}function hi(y){var A=this.__data__;return Tr?A[y]!==void 0:vt.call(A,y)}function xn(y,A){var I=this.__data__;return I[y]=Tr&&A===void 0?n:A,this}Yt.prototype.clear=Eo,Yt.prototype.delete=_o,Yt.prototype.get=bo,Yt.prototype.has=hi,Yt.prototype.set=xn;function We(y){var A=-1,I=y?y.length:0;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function On(){this.__data__=[]}function An(y){var A=this.__data__,I=Vr(A,y);if(I<0)return!1;var W=A.length-1;return I==W?A.pop():Q.call(A,I,1),!0}function Or(y){var A=this.__data__,I=Vr(A,y);return I<0?void 0:A[I][1]}function di(y){return Vr(this.__data__,y)>-1}function wo(y,A){var I=this.__data__,W=Vr(I,y);return W<0?I.push([y,A]):I[W][1]=A,this}We.prototype.clear=On,We.prototype.delete=An,We.prototype.get=Or,We.prototype.has=di,We.prototype.set=wo;function et(y){var A=-1,I=y?y.length:0;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function So(){this.__data__={hash:new Yt,map:new(Ee||We),string:new Yt}}function To(y){return Cr(this,y).delete(y)}function xo(y){return Cr(this,y).get(y)}function Oo(y){return Cr(this,y).has(y)}function Cn(y,A){return Cr(this,y).set(y,A),this}et.prototype.clear=So,et.prototype.delete=To,et.prototype.get=xo,et.prototype.has=Oo,et.prototype.set=Cn;function dt(y){this.__data__=new We(y)}function Ao(){this.__data__=new We}function Co(y){return this.__data__.delete(y)}function Ro(y){return this.__data__.get(y)}function Po(y){return this.__data__.has(y)}function No(y,A){var I=this.__data__;if(I instanceof We){var W=I.__data__;if(!Ee||W.length<r-1)return W.push([y,A]),this;I=this.__data__=new et(W)}return I.set(y,A),this}dt.prototype.clear=Ao,dt.prototype.delete=Co,dt.prototype.get=Ro,dt.prototype.has=Po,dt.prototype.set=No;function Gr(y,A){var I=Qr(y)||zr(y)?se(y.length,String):[],W=I.length,ge=!!W;for(var le in y)(A||vt.call(y,le))&&!(ge&&(le=="length"||Ho(le,W)))&&I.push(le);return I}function pi(y,A,I){var W=y[A];(!(vt.call(y,A)&&_i(W,I))||I===void 0&&!(A in y))&&(y[A]=I)}function Vr(y,A){for(var I=y.length;I--;)if(_i(y[I][0],A))return I;return-1}function Ot(y,A){return y&&Nn(A,Si(A),y)}function Rn(y,A,I,W,ge,le,_e){var be;if(W&&(be=le?W(y,ge,le,_e):W(y)),be!==void 0)return be;if(!Dt(y))return y;var He=Qr(y);if(He){if(be=jo(y),!A)return Uo(y,be)}else{var Ae=Xt(y),tt=Ae==c||Ae==d;if(bi(y))return Wr(y,A);if(Ae==p||Ae==o||tt&&!le){if(Je(y))return le?y:{};if(be=It(tt?{}:y),!A)return $o(y,Ot(be,y))}else{if(!X[Ae])return le?y:{};be=nr(y,Ae,Rn,A)}}_e||(_e=new dt);var ct=_e.get(y);if(ct)return ct;if(_e.set(y,be),!He)var Ge=I?In(y):Si(y);return xt(Ge||y,function(rt,Qe){Ge&&(Qe=rt,rt=y[Qe]),pi(be,Qe,Rn(rt,A,I,W,Qe,y,_e))}),be}function Io(y){return Dt(y)?k(y):{}}function Lo(y,A,I){var W=A(y);return Qr(y)?W:Rt(W,I(y))}function ko(y){return at.call(y)}function Mo(y){if(!Dt(y)||Go(y))return!1;var A=Ln(y)||Je(y)?En:Z;return A.test(ut(y))}function Fo(y){if(!vi(y))return Re(y);var A=[];for(var I in Object(y))vt.call(y,I)&&I!="constructor"&&A.push(I);return A}function Wr(y,A){if(A)return y.slice();var I=new y.constructor(y.length);return y.copy(I),I}function Pn(y){var A=new y.constructor(y.byteLength);return new v(A).set(new v(y)),A}function Ar(y,A){var I=A?Pn(y.buffer):y.buffer;return new y.constructor(I,y.byteOffset,y.byteLength)}function mi(y,A,I){var W=A?I(Wt(y),!0):Wt(y);return Vt(W,De,new y.constructor)}function gi(y){var A=new y.constructor(y.source,z.exec(y));return A.lastIndex=y.lastIndex,A}function yi(y,A,I){var W=A?I(tr(y),!0):tr(y);return Vt(W,Ie,new y.constructor)}function Do(y){return fi?Object(fi.call(y)):{}}function Bo(y,A){var I=A?Pn(y.buffer):y.buffer;return new y.constructor(I,y.byteOffset,y.length)}function Uo(y,A){var I=-1,W=y.length;for(A||(A=Array(W));++I<W;)A[I]=y[I];return A}function Nn(y,A,I,W){I||(I={});for(var ge=-1,le=A.length;++ge<le;){var _e=A[ge],be=W?W(I[_e],y[_e],_e,I,y):void 0;pi(I,_e,be===void 0?y[_e]:be)}return I}function $o(y,A){return Nn(y,Kt(y),A)}function In(y){return Lo(y,Si,Kt)}function Cr(y,A){var I=y.__data__;return qo(A)?I[typeof A=="string"?"string":"hash"]:I.map}function Nt(y,A){var I=st(y,A);return Mo(I)?I:void 0}var Kt=me?Sr(me,Object):Ti,Xt=ko;(Pe&&Xt(new Pe(new ArrayBuffer(1)))!=P||Ee&&Xt(new Ee)!=h||Pt&&Xt(Pt.resolve())!=m||qr&&Xt(new qr)!=S||_n&&Xt(new _n)!=T)&&(Xt=function(y){var A=at.call(y),I=A==p?y.constructor:void 0,W=I?ut(I):void 0;if(W)switch(W){case bn:return P;case xr:return h;case wn:return m;case Sn:return S;case Tn:return T}return A});function jo(y){var A=y.length,I=y.constructor(A);return A&&typeof y[0]=="string"&&vt.call(y,"index")&&(I.index=y.index,I.input=y.input),I}function It(y){return typeof y.constructor=="function"&&!vi(y)?Io(C(y)):{}}function nr(y,A,I,W){var ge=y.constructor;switch(A){case w:return Pn(y);case s:case u:return new ge(+y);case P:return Ar(y,W);case R:case L:case U:case q:case G:case j:case Y:case re:case K:return Bo(y,W);case h:return mi(y,W,I);case f:case E:return new ge(y);case _:return gi(y);case S:return yi(y,W,I);case b:return Do(y)}}function Ho(y,A){return A=A??i,!!A&&(typeof y=="number"||fe.test(y))&&y>-1&&y%1==0&&y<A}function qo(y){var A=typeof y;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?y!=="__proto__":y===null}function Go(y){return!!Ze&&Ze in y}function vi(y){var A=y&&y.constructor,I=typeof A=="function"&&A.prototype||zt;return y===I}function ut(y){if(y!=null){try{return Qt.call(y)}catch{}try{return y+""}catch{}}return""}function Ei(y){return Rn(y,!0,!0)}function _i(y,A){return y===A||y!==y&&A!==A}function zr(y){return Vo(y)&&vt.call(y,"callee")&&(!H.call(y,"callee")||at.call(y)==o)}var Qr=Array.isArray;function Yr(y){return y!=null&&wi(y.length)&&!Ln(y)}function Vo(y){return kn(y)&&Yr(y)}var bi=Ce||Wo;function Ln(y){var A=Dt(y)?at.call(y):"";return A==c||A==d}function wi(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=i}function Dt(y){var A=typeof y;return!!y&&(A=="object"||A=="function")}function kn(y){return!!y&&typeof y=="object"}function Si(y){return Yr(y)?Gr(y):Fo(y)}function Ti(){return[]}function Wo(){return!1}e.exports=Ei})(Xa,Xa.exports);var px=Xa.exports;const mx=_r(px);var gx="Expected a function",pv="__lodash_hash_undefined__",mv=1/0,yx=9007199254740991,vx="[object Function]",Ex="[object GeneratorFunction]",_x="[object Symbol]",bx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wx=/^\w*$/,Sx=/^\./,Tx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xx=/[\\^$.*+?()[\]{}|]/g,Ox=/\\(\\)?/g,Ax=/^\[object .+?Constructor\]$/,Cx=/^(?:0|[1-9]\d*)$/,Rx=typeof de=="object"&&de&&de.Object===Object&&de,Px=typeof self=="object"&&self&&self.Object===Object&&self,Uf=Rx||Px||Function("return this")();function Nx(e,t){return e==null?void 0:e[t]}function Ix(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Lx=Array.prototype,kx=Function.prototype,gv=Object.prototype,el=Uf["__core-js_shared__"],Zp=function(){var e=/[^.]+$/.exec(el&&el.keys&&el.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yv=kx.toString,Eu=gv.hasOwnProperty,vv=gv.toString,Mx=RegExp("^"+yv.call(Eu).replace(xx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),em=Uf.Symbol,Fx=Lx.splice,Dx=Ev(Uf,"Map"),Cs=Ev(Object,"create"),tm=em?em.prototype:void 0,rm=tm?tm.toString:void 0;function ii(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Bx(){this.__data__=Cs?Cs(null):{}}function Ux(e){return this.has(e)&&delete this.__data__[e]}function $x(e){var t=this.__data__;if(Cs){var r=t[e];return r===pv?void 0:r}return Eu.call(t,e)?t[e]:void 0}function jx(e){var t=this.__data__;return Cs?t[e]!==void 0:Eu.call(t,e)}function Hx(e,t){var r=this.__data__;return r[e]=Cs&&t===void 0?pv:t,this}ii.prototype.clear=Bx;ii.prototype.delete=Ux;ii.prototype.get=$x;ii.prototype.has=jx;ii.prototype.set=Hx;function po(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function qx(){this.__data__=[]}function Gx(e){var t=this.__data__,r=_u(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Fx.call(t,r,1),!0}function Vx(e){var t=this.__data__,r=_u(t,e);return r<0?void 0:t[r][1]}function Wx(e){return _u(this.__data__,e)>-1}function zx(e,t){var r=this.__data__,n=_u(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}po.prototype.clear=qx;po.prototype.delete=Gx;po.prototype.get=Vx;po.prototype.has=Wx;po.prototype.set=zx;function ui(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Qx(){this.__data__={hash:new ii,map:new(Dx||po),string:new ii}}function Yx(e){return bu(this,e).delete(e)}function Kx(e){return bu(this,e).get(e)}function Xx(e){return bu(this,e).has(e)}function Jx(e,t){return bu(this,e).set(e,t),this}ui.prototype.clear=Qx;ui.prototype.delete=Yx;ui.prototype.get=Kx;ui.prototype.has=Xx;ui.prototype.set=Jx;function Zx(e,t,r){var n=e[t];(!(Eu.call(e,t)&&_v(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function _u(e,t){for(var r=e.length;r--;)if(_v(e[r][0],t))return r;return-1}function eO(e){if(!Ja(e)||aO(e))return!1;var t=fO(e)||Ix(e)?Mx:Ax;return t.test(lO(e))}function tO(e,t,r,n){if(!Ja(e))return e;t=oO(t,e)?[t]:nO(t);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var u=cO(t[i]),l=r;if(i!=a){var c=s[u];l=n?n(c,u,s):void 0,l===void 0&&(l=Ja(c)?c:iO(t[i+1])?[]:{})}Zx(s,u,l),s=s[u]}return e}function rO(e){if(typeof e=="string")return e;if(jf(e))return rm?rm.call(e):"";var t=e+"";return t=="0"&&1/e==-mv?"-0":t}function nO(e){return bv(e)?e:uO(e)}function bu(e,t){var r=e.__data__;return sO(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ev(e,t){var r=Nx(e,t);return eO(r)?r:void 0}function iO(e,t){return t=t??yx,!!t&&(typeof e=="number"||Cx.test(e))&&e>-1&&e%1==0&&e<t}function oO(e,t){if(bv(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||jf(e)?!0:wx.test(e)||!bx.test(e)||t!=null&&e in Object(t)}function sO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function aO(e){return!!Zp&&Zp in e}var uO=$f(function(e){e=dO(e);var t=[];return Sx.test(e)&&t.push(""),e.replace(Tx,function(r,n,i,o){t.push(i?o.replace(Ox,"$1"):n||r)}),t});function cO(e){if(typeof e=="string"||jf(e))return e;var t=e+"";return t=="0"&&1/e==-mv?"-0":t}function lO(e){if(e!=null){try{return yv.call(e)}catch{}try{return e+""}catch{}}return""}function $f(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(gx);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new($f.Cache||ui),r}$f.Cache=ui;function _v(e,t){return e===t||e!==e&&t!==t}var bv=Array.isArray;function fO(e){var t=Ja(e)?vv.call(e):"";return t==vx||t==Ex}function Ja(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function hO(e){return!!e&&typeof e=="object"}function jf(e){return typeof e=="symbol"||hO(e)&&vv.call(e)==_x}function dO(e){return e==null?"":rO(e)}function pO(e,t,r){return e==null?e:tO(e,t,r)}var mO=pO;const gO=_r(mO),yO=(e,t)=>{Array.isArray(t)||(t=[t]);const r=mx(e);return t.forEach(({type:n,value:i})=>{gO(r,n,i)}),r},wv=e=>{const t=[];return e.forEach(r=>{const n=parseInt(r);isNaN(n)||t.push(n)}),t.sort((r,n)=>r-n)},Sv=(e,t,r)=>{let n=r.mobile;for(const i in t){const o=parseInt(String(t[i]));if(e>=o)n=r[o];else if(e<o)break}return n},vO=(e,t="en")=>new Date(e).toLocaleString(t,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),EO=e=>{let o;try{o=new Date().getTime()-new Date(e).getTime()}catch{return""}const a=o/36e5,s=Math.floor(o/864e5);if(s<1)return a<1?{path:"now"}:{path:"hours",number:Math.floor(a)};if(s<7)return{path:"days",number:s};const u=Math.floor(s/7);return u<=52?{path:"weeks",number:u}:{path:"years",number:Math.floor(s/365)}},_O=e=>new Promise(t=>setTimeout(t,e)),Hf={apolitical:"Apolitical",breadcrumbs_label:"Go back to:",breadcrumbs_currentPage:"Current page:",card_bootcamp:"Email boot camp",card_ended:"Ended",card_registered:"Registered",card_answers:"{number, plural, =0 {0 answers} one {# answer} other {# answers}}",card_time_ago:"{time} ago",card_time_read:"{time} min read",card_watch:"Watch recording",card_cta_people:"View profile",collapsibleSection_summary:"Find out more",communityDetails_members:"Members",communityDetails_viewAll:"View all",communityDetails_invite:"Invite colleagues",contactFooter_title:"Contact us",contactFooter_text:"We're always open to new ideas, so please reach out to see how we can collaborate.",contactFooter_phone:"+44 203 608 2241",contactFooter_email:"hello@apolitical.co",contactForm_name:"Name",contactForm_email:"Email address",contactForm_organisation:"Government department or organisation",contactForm_interests:"I'm interested in",contactForm_interests_publishingCourse:"Publishing or creating a course",contactForm_interests_buyingCourse:"Buying courses for my team",contactForm_interests_learningExperience:"Customised learning experiences",contactForm_interests_somethingElse:"Something else",contactForm_message:"Message",cookieBanner_title:"Cookies and your privacy",cookieBanner_text:"We take your trust and privacy very seriously. Apolitical uses safe cookies (small files on your device) to run the site. You can reject non-essential cookies, but some site features may not work without them.",cookieBanner_buttons_settings:"Change my settings",cookieBanner_buttons_reject:"Reject all",cookieBanner_buttons_accept:"Accept all",dates_now:"now",dates_hours:"{number}h",dates_days:"{number}d",dates_weeks:"{number}w",dates_years:"{number}y",discussion_action_answer:"answer",discussion_action_comment:"comment",discussion_action_post:"post",discussion_action_response:"response",discussion_action_reply:"reply",discussion_action_question:"question",discussion_edited:"Edited",discussion_delete_title:"Delete {action}",discussion_delete_text:"<p>Are you sure you want to delete your {action}?</p><p>This can't be undone.</p>",discussion_delete_cancel:"Cancel",discussion_delete_delete:"Delete",discussion_delete_error:"We are unable to delete your {action} at the moment. Please try again later or contact us if problem persists.",discussion_reply:"Reply",discussion_report_subject:"Report a post on Apolitical",discussion_report_body:`I'd like to report the {contentType} <{contentSlug}> at {contentUrl}.
62
+
63
+ Please explain why you're reporting this post. Reasons could include: inappropriate language, harassment, spam, hate speech, false information, among others. Include as much detail as you feel comfortable.
64
+
65
+ Thank you for helping to protect the Apolitical community from abusive content.`,discussion_form_title:"Write your {action}",discussion_form_placeholder:"Type your {action} here...",discussion_form_label:"Your {action}",discussion_form_explainer:"Try to make your {action} specific and practical. Be respectful and kind. See our <a>community guidelines</a>",discussion_form_success:"Your {action} has been submitted.",discussion_form_post:"Post",discussion_form_posting:"Posting...",discussion_form_save:"Save",discussion_form_saving:"Saving...",discussion_form_cancel:"Cancel",discussion_form_submitting:"Submitting...",discussion_form_placeholder_post:"Write something...",discussion_form_error:"We are unable to process your {action} right now. Please try again later or contact us if the problem persists",discussion_form_error_tooLong:"Please keep your content to {maxLength, plural, one {1 character} other {# characters}}.",discussion_form_error_tooMany:"You have posted too many times in a row. Please wait and try again.",discussion_form_error_loggedOut:"Please log in to submit your {action}.",discussion_form_error_noPermission:"You do not have permission to {action}.",discussion_form_error_alreadyExists:"This {action} already exists.",discussion_form_title_question:"Start a conversation",discussion_form_placeholder_question:"Ask your question here",discussion_form_explainer_question:"Unsure what you can post? See our <a>community guidelines</a>.",discussion_likes:"{number, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_likes_short:"{number}",discussion_likes_more:"and {number} more...",discussion_likes_like:"Like this {action}",discussion_likes_unlike:"Unlike {action}",discussion_moreMenu_edit:"Edit",discussion_moreMenu_delete:"Delete",discussion_moreMenu_report:"Report",discussion_comments_screenReader:"See {count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_comments:"{count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_responses_answer:"Answers",discussion_responses_comment:"Comments",discussion_responses_title:"{action} ({count})",discussion_responses_empty:"Be the first to respond",discussion_responses_empty_answer:"Be the first to answer this question",discussion_thread_show:"Show {count, plural, =0 {replies} one {# reply} other {# replies}}",discussion_thread_hide:"Hide replies",emailHelperTextBox_fallback_title:"Who can join",emailHelperTextBox_fallback_text:"Apolitical is a private community for public servants and policymakers.",emailHelperTextBox_default_title:"Who can join",emailHelperTextBox_default_text:"Apolitical is a private community for public servants and policymakers. <link>Learn more</link>.",emailHelperTextBox_autoApproved_title:"Email check",emailHelperTextBox_autoApproved_text:"Great! Looks like you are using a **government email domain we recognise.** You will be **auto-approved** once you sign up.",emailHelperTextBox_unrecognisedEmail_title:"Not a recognised government email",emailHelperTextBox_unrecognisedEmail_text:"To confirm you work in government or policy, please add more details below. <link>Learn more</link>.",emailHelperTextBox_pendingApproval_title:"Email is pending approval",emailHelperTextBox_pendingApproval_text:"Looks like this email has been used to sign up to Apolitical before, but <strong>we have not yet approved it.</strong> If you cannot wait to join, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_emailUnverified_title:"Hello again!",emailHelperTextBox_emailUnverified_text:"It looks like you're already an Apolitical member. To access your account, please verify your email address. <link>Click here to get a verification code sent to your email</link>.",emailHelperTextBox_emailAlreadyExists_title:"Email is already registered",emailHelperTextBox_emailAlreadyExists_text:"Looks like this email has been used to sign up to Apolitical before, try <link>logging in</link> instead. If you're still having issues, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_error_verificationFailedToSend_title:"Verification code failed to send",emailHelperTextBox_error_verificationFailedToSend_text:"Error details: <em>{error}</em>{br}<link>Click here to try again</link>.{br}If you continue to have problems, contact us at <mail>concierge@apolitical.co</mail>",emailHelperTextBox_error_noFunction:"Cannot resend verification code.",filters_all:"Show all",filters_disabled:"{name} - no results",footer_platform:"Platform",footer_platform_events:"Events",footer_platform_courses:"Courses",footer_platform_qanda:"Q&A",footer_platform_articles:"Articles",footer_community:"Community",footer_community_support:"Support FAQ",footer_community_post:"Post on Apolitical",footer_community_join:"Who can join",footer_community_guidelines:"Guidelines & values",footer_company:"Company",footer_company_story:"Our story",footer_company_team:"Meet our team",footer_company_careers:"Careers",footer_company_partner:"Partner with us",footer_company_contact:"Get in touch",footer_legal:"Legal",footer_legal_privacy:"Privacy policy",footer_legal_terms:"Terms & conditions",footer_legal_cookie:"Cookie policy",footer_legal_accessibility:"Accessibility statement",footer_legal_dataProtection:"Data protection officer",footer_legal_euDataProtection:"EU data protection officer",footer_contact:"Contact",footer_contact_correspondence:"Correspondence address",footer_contact_correspondence_address:"251 Southwark Bridge Road{br}London, SE1 6FL{br}United Kingdom",footer_contact_registered:"Registered address",footer_contact_registered_address:"20–22 Wenlock Road{br}London, N1 7GU{br}United Kingdom",footer_contact_berlin:"Berlin address",footer_contact_berlin_address:"Torstraße 220{br}10115 Berlin{br}Germany",footer_contact_support:"For platform support",footer_contact_business:"For business inquiries",footer_social_linkedin:"LinkedIn",footer_social_twitter:"Twitter",footer_social_facebook:"Facebook",footer_copyright:"Copyright © {currentYear} Apolitical Group Limited",form_fieldWrapper_required:"required",form_fieldWrapper_characterLimit:"Character limit:",form_error_generalError:"Sorry, something has gone. Please refresh the page and try again.",form_error_required:"Please fill in this required field",form_error_numbers:"Numbers are not allowed in this text field",form_error_email:"Please enter a valid email address",form_error_url:"Please enter a valid URL",form_submit:"Submit",form_submitting:"Submitting form...",form_submitted:"Submitted",header_skip:"Skip to main content",header_search_show:"Show search bar",header_search_hide:"Close search bar",header_menu_show:"Show navigation",header_menu_hide:"Close navigation",header_home_loggedOut:"Home",header_home_loggedIn:"My Home",header_topics:"Topics",header_topics_explore:"Explore",header_topics_explore_events:"Events",header_topics_explore_courses:"Courses","header_topics_explore_q-and-a":"Q&A",header_topics_explore_articles:"Articles",header_topics_topics:"Topics",header_topics_topics_climate:"Climate","header_topics_topics_cities-and-local-government":"Cities and local government","header_topics_topics_digital-and-data":"Digital and data",header_topics_topics_education:"Education","header_topics_topics_equity-justice-and-inclusion":"Equity, justice and inclusion","header_topics_topics_health-and-social-care":"Health and social care",header_topics_topics_innovation:"Innovation","header_topics_topics_leadership-and-skills":"Leadership and skills","header_topics_topics_life-in-government":"Life in government",header_topics_topics_policymaking:"Policymaking","header_topics_topics_transport-and-infrastructure":"Transport and infrastructure","header_topics_topics_work-and-the-economy":"Work and the economy",header_partners:"For partners",header_account:"My account",header_account_show:"Show account menu",header_account_hide:"Close account menu",header_account_profile:"My profile",header_account_settings:"Settings & privacy","header_account_log-out":"Log out",header_buttons_login:"Log in",header_buttons_signup:"Sign up",hideShowTextBox_hide:"View less",hideShowTextBox_show:"View more",joinCommunityButton:"Join community",joinCommunityButton_short:"Join",joinCommunityButton_joining:"Joining...",joinCommunityButton_member:"Member",joinCommunityButton_member_aria:"Leave community",joinCommunityButton_leave:"Leave",joinCommunityButton_leaving:"Leaving...",loadMore_button:"Load more",loadMore_endOfFeed:"You're all caught up",loadMore_error:"We're having trouble loading more content. Please refresh the page or try again later.",loadingBlock_loading:"Loading...",loadingBlock_almostDone:"Almost done...",loadingBlock_complete:"Complete!",markdown_collapsibleSection_summary:"Resources",markdown_skip_video:"Skip past video",markdown_skip_padlet:"Skip past interactive board",markdown_skip_poll:"Skip past poll",markdown_skip:"Skip to next section",markdown_iframe_title:"Course information",markdown_iframe_video:"Video",markdown_iframe_padlet:"Interactive board",markdown_iframe_poll:"Poll",member_apolitical:"Apolitical",member_community:"Community post",membersList:"Members",membersList_admin:"Admin",moreMenu:"See more options",overlay_close:"Close",pageLayout_error:"An error occurred while rendering this page. Please refresh the page or try again later.",passwordRules_intro:"We advise you not to use your name or email in your password.",passwordRules_rule_label:"Password",passwordRules_rule_8Characters:"must be longer than 8 characters",passwordRules_rule_numberSymbol:"must include a number and a symbol",passwordRules_rule_lowercaseUppercase:"must include both lower and upper case characters",passwordRules_notMet:"Your password does not meet this requirement",progressBar:"{number}% loaded",ratings_text:"Rate answer",ratings_stars:"{number} out of {total}",ratings_low:"this is incorrect or confusing",ratings_high:"this is a fantastic answer",ratings_success:"Thank you!",search_label:"Search for:",search_placeholder:"Ask Apolitical",search_clear:"Clear search",search_cta:"Search",signup_title:"Sign up",signup_full_name:"Full name",signup_full_name_placeholder:"Lionel Messi",signup_email_address:"Work email",signup_email_address_placeholder:"lionel.messi@argentina.gov",signup_job_title:"Job title",signup_job_title_placeholder:"e.g. Senior Policy Advisor",signup_organization:"Organisation",signup_organization_placeholder:"e.g. Department of Justice",signup_url:"Link to official government bio / LinkedIn <small>(optional)</small>",signup_url_placeholder:"https://organisation.com/bio",signup_expectation:"What do you want to know<small>Optional, but we will use your response to build the session!</small>",signup_expectation_placeholder:"What do you want to know?",signup_terms:"I accept Apolitical's <terms>Terms of Service</terms>, <privacy>Privacy Policy</privacy> and that I'll get essential emails for my use of Apolitical",signup_error:"We're really sorry, but we've had a problem trying to sign you up. This could be an issue with our system, so we suggest you try again later.",signup_button_join:"Join for free",signup_button_login:"Log in",signup_submitting:"Submitting form...",signup_success_title:"Thank you for applying to join Apolitical!",signup_success_text:"<p>Once we've vetted your application, you'll get a secure login link to help you get started.</p><p>Please note that trust is everything to our community, so you can't login until your identity has been verified.</p>",sharedLinks_copy_text:"Copy link",tags_community:"From the community",tooltip_loading:"Loading..."},bO={collapsibleSection_summary:"En savoir plus"},wO=Object.freeze(Object.defineProperty({__proto__:null,en:Hf,fr:bO},Symbol.toStringTag,{value:"Module"})),ur=(e,t,r,n,i={})=>{let o="";return`${t}_${r}`in Hf?o=e({id:`${t}_${r}`},i):o=e({id:t},{[n]:r,...i}),o},SO=(e,t,r)=>{if(!e||e===0)return"0";t||(t=0),r||(r=["k","m","b","t"]);let n=e.toString();t=Math.pow(10,t);for(let i=r.length-1;i>=0;i--){const o=Math.pow(10,(i+1)*3);if(o<=e){e=Math.round(e*t/o)/t,e===1e3&&i<r.length-1&&(e=1,i++),n=`${e}${r[i]}`;break}}return n},Tv=(e,t)=>$.Children.map(e,r=>$.cloneElement(r,{...t})),TO=e=>e.replace(/\s+/g,"").length>0,ze=({variant:e="primary",size:t="medium",styling:r={muted:!1,fullWidth:!1},icon:n=!1,href:i=!1,element:o="button",onClick:a=!1,className:s="",disabled:u=!1,screenreaderText:l=!1,children:c=!1,...d})=>{const f=ra(typeof t=="object");if(typeof t=="object"&&typeof f=="number"){const _=Object.assign({},t),S=wv(Object.keys(_));t=Sv(f,S,_)}const p=[];typeof t=="string"&&p.push(t),n&&(p.push("icon"),typeof n=="object"?(p.push(n.icon),n.position?p.push(n.position):p.push("left"),n.hover&&p.push(`hover_${n.hover}`),n.animate&&(p.push("animate"),typeof n.animate=="string"&&p.push(n.animate))):(p.push(n),!n.includes("right")&&!n.includes("left")&&p.push("left"))),r.muted&&p.push("muted"),r.fullWidth&&p.push("full-width");const m={...d,className:ae(e,s,p,{"no-text":!c,disabled:u,button:i}),onClick:_=>{(!i||i[0]==="#")&&a&&(_.preventDefault(),_.stopPropagation()),a&&a(_)},disabled:typeof u=="object"&&"isClickable"in u?!u.isClickable:u};return i&&(o="a",m.href=i),$.createElement(o,m,c||(l?O.jsx(lt,{showOnFocus:!1,children:l}):null))},na=({buttons:e,className:t="",...r})=>{const n=e.length>1?"ul":"p",i=e.map((o,a)=>n==="p"?O.jsx(ze,{...o},a):O.jsx("li",{children:O.jsx(ze,{...o})},a));return $.createElement(n,{className:ae("button-wrapper",t),...r,children:i})};const Za=({maxWidth:e=!1})=>{const t=e?{"--max-width":`${e/16}rem`}:{};return O.jsx("hr",{className:ae({"has-max-width":e}),style:t})},wu=({href:e,children:t,className:r="",onClick:n,gtmContext:i,gtmType:o,...a})=>{if(e){const s={...a};return n&&(s.onClick=n),i&&(s["data-gtm-event-context"]=i),o&&(s["data-gtm-event-type"]=o),O.jsx(ft.Link,{to:e,className:ae("gtm-trackable",r),...s,children:t})}return t},nm={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"}},xO=({aspect:e,range:t,sizes:r})=>{const{range:n,sizes:i}=e?nm[e]:nm.fallback;return{range:t&&t.length>0?t:n,sizes:r||i}},OO=({format:e,height:t,query:r,width:n})=>{let i=`w=${n}&h=${t}`;return i=e?`${i}&fm=${e}`:i,i=r?`${i}&${r}`:i,i},tl=({format:e,range:t,url:r,query:n})=>t.map(({height:i,width:o})=>`${r}?${OO({format:e,height:i,query:n,width:o})} ${o}w`).join(", ");const xv=({image:e,className:t,testId:r})=>{const{description:n,height:i,type:o,query:a,url:s,width:u,loading:l,decoding:c,fetchPriority:d}=e,{range:h,sizes:f}=xO(e),p=tl({format:"avif",query:a,range:h,url:s}),m=tl({format:"webp",query:a,range:h,url:s}),_=tl({format:"",query:a,range:h,url:s});return O.jsxs("picture",{className:t,children:[o!=="image/gif"&&O.jsx("source",{type:"image/avif",srcSet:p,sizes:f,"data-testid":"source"}),O.jsx("source",{type:"image/webp",srcSet:m,sizes:f,"data-testid":"source"}),O.jsx("img",{srcSet:_,sizes:f,src:s,alt:n,loading:l||"lazy",decoding:c||"async",fetchpriority:d||"auto",width:u,height:i,"data-testid":r||"image"})]})};var Hl=function(e,t){return Hl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Hl(e,t)};function qt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Hl(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ce=function(){return ce=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ce.apply(this,arguments)};function oo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function gr(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Ov(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}var Se;(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"})(Se||(Se={}));var je;(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"})(je||(je={}));var so;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(so||(so={}));function im(e){return e.type===je.literal}function AO(e){return e.type===je.argument}function Av(e){return e.type===je.number}function Cv(e){return e.type===je.date}function Rv(e){return e.type===je.time}function Pv(e){return e.type===je.select}function Nv(e){return e.type===je.plural}function CO(e){return e.type===je.pound}function Iv(e){return e.type===je.tag}function Lv(e){return!!(e&&typeof e=="object"&&e.type===so.number)}function ql(e){return!!(e&&typeof e=="object"&&e.type===so.dateTime)}var kv=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,RO=/(?:[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 PO(e){var t={};return e.replace(RO,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"short":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var NO=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function IO(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(NO).filter(function(h){return h.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var s=a[0],u=a.slice(1),l=0,c=u;l<c.length;l++){var d=c[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:u})}return r}function LO(e){return e.replace(/^(.*?)-/,"")}var om=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Mv=/^(@+)?(\+|#+)?[rs]?$/g,kO=/(\*)(0+)|(#+)(0+)|(0+)/g,Fv=/^(0+)$/;function sm(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Mv,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function Dv(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 MO(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Fv.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function am(e){var t={},r=Dv(e);return r||t}function FO(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.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=LO(i.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=ce(ce(ce({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return ce(ce({},u),am(l))},{}));continue;case"engineering":t=ce(ce(ce({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return ce(ce({},u),am(l))},{}));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(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(kO,function(u,l,c,d,h,f){if(l)t.minimumIntegerDigits=c.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Fv.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(om.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(om,function(u,l,c,d,h,f){return c==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&f?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+f.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=ce(ce({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ce(ce({},t),sm(o)));continue}if(Mv.test(i.stem)){t=ce(ce({},t),sm(i.stem));continue}var a=Dv(i.stem);a&&(t=ce(ce({},t),a));var s=MO(i.stem);s&&(t=ce(ce({},t),s))}return t}var Na={"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 DO(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(o&1),s=o<2?1:3+(o>>1),u="a",l=BO(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=u;for(;a-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function BO(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Na[n||""]||Na[r||""]||Na["".concat(r,"-001")]||Na["001"];return i[0]}var rl,UO=new RegExp("^".concat(kv.source,"*")),$O=new RegExp("".concat(kv.source,"*$"));function xe(e,t){return{start:e,end:t}}var jO=!!String.prototype.startsWith,HO=!!String.fromCodePoint,qO=!!Object.fromEntries,GO=!!String.prototype.codePointAt,VO=!!String.prototype.trimStart,WO=!!String.prototype.trimEnd,zO=!!Number.isSafeInteger,QO=zO?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Gl=!0;try{var YO=Uv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Gl=((rl=YO.exec("a"))===null||rl===void 0?void 0:rl[0])==="a"}catch{Gl=!1}var um=jO?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Vl=HO?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,a;i>o;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},cm=qO?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],a=o[0],s=o[1];r[a]=s}return r},Bv=GO?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},KO=VO?function(t){return t.trimStart()}:function(t){return t.replace(UO,"")},XO=WO?function(t){return t.trimEnd()}:function(t){return t.replace($O,"")};function Uv(e,t){return new RegExp(e,t)}var Wl;if(Gl){var lm=Uv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Wl=function(t,r){var n;lm.lastIndex=r;var i=lm.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Wl=function(t,r){for(var n=[];;){var i=Bv(t,r);if(i===void 0||$v(i)||tA(i))break;n.push(i),r+=i>=65536?2:1}return Vl.apply(void 0,n)};var JO=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:je.pound,location:xe(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Se.UNMATCHED_CLOSING_TAG,xe(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&zl(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:je.literal,value:"<".concat(i,"/>"),location:xe(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var a=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!zl(this.char()))return this.error(Se.INVALID_TAG,xe(s,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(Se.UNMATCHED_CLOSING_TAG,xe(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:je.tag,value:i,children:a,location:xe(n,this.clonePosition())},err:null}:this.error(Se.INVALID_TAG,xe(s,this.clonePosition())))}else return this.error(Se.UNCLOSED_TAG,xe(n,this.clonePosition()))}else return this.error(Se.INVALID_TAG,xe(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&eA(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var u=xe(n,this.clonePosition());return{val:{type:je.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ZO(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Vl.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Vl(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Se.EXPECT_ARGUMENT_CLOSING_BRACE,xe(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Se.EMPTY_ARGUMENT,xe(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Se.MALFORMED_ARGUMENT,xe(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Se.EXPECT_ARGUMENT_CLOSING_BRACE,xe(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:je.argument,value:i,location:xe(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Se.EXPECT_ARGUMENT_CLOSING_BRACE,xe(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(Se.MALFORMED_ARGUMENT,xe(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Wl(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),a=xe(t,o);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(s){case"":return this.error(Se.EXPECT_ARGUMENT_TYPE,xe(a,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=XO(d.val);if(h.length===0)return this.error(Se.EXPECT_ARGUMENT_STYLE,xe(this.clonePosition(),this.clonePosition()));var f=xe(c,this.clonePosition());l={style:h,styleLocation:f}}var p=this.tryParseArgumentClose(i);if(p.err)return p;var m=xe(i,this.clonePosition());if(l&&um(l==null?void 0:l.style,"::",0)){var _=KO(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(_,l.styleLocation);return d.err?d:{val:{type:je.number,value:n,location:m,style:d.val},err:null}}else{if(_.length===0)return this.error(Se.EXPECT_DATE_TIME_SKELETON,m);var S=_;this.locale&&(S=DO(_,this.locale));var h={type:so.dateTime,pattern:S,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?PO(S):{}},E=s==="date"?je.date:je.time;return{val:{type:E,value:n,location:m,style:h},err:null}}}return{val:{type:s==="number"?je.number:s==="date"?je.date:je.time,value:n,location:m,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Se.EXPECT_SELECT_ARGUMENT_OPTIONS,xe(b,ce({},b)));this.bumpSpace();var T=this.parseIdentifierIfPossible(),w=0;if(s!=="select"&&T.value==="offset"){if(!this.bumpIf(":"))return this.error(Se.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(Se.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Se.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),T=this.parseIdentifierIfPossible(),w=d.val}var P=this.tryParsePluralOrSelectOptions(t,s,r,T);if(P.err)return P;var p=this.tryParseArgumentClose(i);if(p.err)return p;var R=xe(i,this.clonePosition());return s==="select"?{val:{type:je.select,value:n,options:cm(P.val),location:R},err:null}:{val:{type:je.plural,value:n,options:cm(P.val),offset:w,pluralType:s==="plural"?"cardinal":"ordinal",location:R},err:null}}default:return this.error(Se.INVALID_ARGUMENT_TYPE,xe(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Se.EXPECT_ARGUMENT_CLOSING_BRACE,xe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Se.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,xe(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=IO(t)}catch{return this.error(Se.INVALID_NUMBER_SKELETON,r)}return{val:{type:so.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?FO(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,a=!1,s=[],u=new Set,l=i.value,c=i.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(Se.EXPECT_PLURAL_ARGUMENT_SELECTOR,Se.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=xe(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?Se.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Se.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);l==="other"&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Se.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Se.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,xe(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,r,n);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([l,{value:p.val,location:xe(f,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,c=o.location}return s.length===0?this.error(r==="select"?Se.EXPECT_SELECT_ARGUMENT_SELECTOR:Se.EXPECT_PLURAL_ARGUMENT_SELECTOR,xe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Se.MISSING_OTHER_CLAUSE,xe(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,a=a*10+(s-48),this.bump();else break}var u=xe(i,this.clonePosition());return o?(a*=n,QO(a)?{val:a,err:null}:this.error(r,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 r=Bv(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(um(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&$v(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function zl(e){return e>=97&&e<=122||e>=65&&e<=90}function ZO(e){return zl(e)||e===47}function eA(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 $v(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function tA(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 Ql(e){e.forEach(function(t){if(delete t.location,Pv(t)||Nv(t))for(var r in t.options)delete t.options[r].location,Ql(t.options[r].value);else Av(t)&&Lv(t.style)||(Cv(t)||Rv(t))&&ql(t.style)?delete t.style.location:Iv(t)&&Ql(t.children)})}function rA(e,t){t===void 0&&(t={}),t=ce({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new JO(e,t).parse();if(r.err){var n=SyntaxError(Se[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Ql(r.val),r.val}function cr(e,t){var r=t&&t.cache?t.cache:uA,n=t&&t.serializer?t.serializer:aA,i=t&&t.strategy?t.strategy:iA;return i(e,{cache:r,serializer:n})}function nA(e){return e==null||typeof e=="number"||typeof e=="boolean"}function jv(e,t,r,n){var i=nA(n)?n:r(n),o=t.get(i);return typeof o>"u"&&(o=e.call(this,n),t.set(i,o)),o}function Hv(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,n),t.set(i,o)),o}function qf(e,t,r,n,i){return r.bind(t,e,n,i)}function iA(e,t){var r=e.length===1?jv:Hv;return qf(e,this,r,t.cache.create(),t.serializer)}function oA(e,t){return qf(e,this,Hv,t.cache.create(),t.serializer)}function sA(e,t){return qf(e,this,jv,t.cache.create(),t.serializer)}var aA=function(){return JSON.stringify(arguments)};function Gf(){this.cache=Object.create(null)}Gf.prototype.get=function(e){return this.cache[e]};Gf.prototype.set=function(e,t){this.cache[e]=t};var uA={create:function(){return new Gf}},lr={variadic:oA,monadic:sA},yr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(yr||(yr={}));var yn=function(e){qt(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),fm=function(e){qt(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),yr.INVALID_VALUE,o)||this}return t}(yn),cA=function(e){qt(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),yr.INVALID_VALUE,i)||this}return t}(yn),lA=function(e){qt(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),yr.MISSING_VALUE,n)||this}return t}(yn),bt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(bt||(bt={}));function fA(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==bt.literal||r.type!==bt.literal?t.push(r):n.value+=r.value,t},[])}function qv(e){return typeof e=="function"}function ja(e,t,r,n,i,o,a){if(e.length===1&&im(e[0]))return[{type:bt.literal,value:e[0].value}];for(var s=[],u=0,l=e;u<l.length;u++){var c=l[u];if(im(c)){s.push({type:bt.literal,value:c.value});continue}if(CO(c)){typeof o=="number"&&s.push({type:bt.literal,value:r.getNumberFormat(t).format(o)});continue}var d=c.value;if(!(i&&d in i))throw new lA(d,a);var h=i[d];if(AO(c)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),s.push({type:typeof h=="string"?bt.literal:bt.object,value:h});continue}if(Cv(c)){var f=typeof c.style=="string"?n.date[c.style]:ql(c.style)?c.style.parsedOptions:void 0;s.push({type:bt.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(Rv(c)){var f=typeof c.style=="string"?n.time[c.style]:ql(c.style)?c.style.parsedOptions:n.time.medium;s.push({type:bt.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(Av(c)){var f=typeof c.style=="string"?n.number[c.style]:Lv(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),s.push({type:bt.literal,value:r.getNumberFormat(t,f).format(h)});continue}if(Iv(c)){var p=c.children,m=c.value,_=i[m];if(!qv(_))throw new cA(m,"function",a);var S=ja(p,t,r,n,i,o),E=_(S.map(function(w){return w.value}));Array.isArray(E)||(E=[E]),s.push.apply(s,E.map(function(w){return{type:typeof w=="string"?bt.literal:bt.object,value:w}}))}if(Pv(c)){var b=c.options[h]||c.options.other;if(!b)throw new fm(c.value,h,Object.keys(c.options),a);s.push.apply(s,ja(b.value,t,r,n,i));continue}if(Nv(c)){var b=c.options["=".concat(h)];if(!b){if(!Intl.PluralRules)throw new yn(`Intl.PluralRules is not available in this environment.
66
+ Try polyfilling it using "@formatjs/intl-pluralrules"
67
+ `,yr.MISSING_INTL_API,a);var T=r.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0));b=c.options[T]||c.options.other}if(!b)throw new fm(c.value,h,Object.keys(c.options),a);s.push.apply(s,ja(b.value,t,r,n,i,h-(c.offset||0)));continue}}return fA(s)}function hA(e,t){return t?ce(ce(ce({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=ce(ce({},e[n]),t[n]||{}),r},{})):e}function dA(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=hA(e[n],t[n]),r},ce({},e)):e}function nl(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function pA(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:cr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,gr([void 0],r,!1)))},{cache:nl(e.number),strategy:lr.variadic}),getDateTimeFormat:cr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,gr([void 0],r,!1)))},{cache:nl(e.dateTime),strategy:lr.variadic}),getPluralRules:cr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,gr([void 0],r,!1)))},{cache:nl(e.pluralRules),strategy:lr.variadic})}}var Gv=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=o.formatToParts(u);if(l.length===1)return l[0].value;var c=l.reduce(function(d,h){return!d.length||h.type!==bt.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(u){return ja(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var s=oo(a,["formatters"]);this.ast=e.__parse(t,ce(ce({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=dA(e.formats,n),this.formatters=i&&i.formatters||pA(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=rA,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}(),oi;(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"})(oi||(oi={}));var ia=function(e){qt(t,e);function t(r,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,`
68
+ `).concat(a?`
69
+ `.concat(a.message,`
70
+ `).concat(a.stack):""))||this,o.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t}(Error),mA=function(e){qt(t,e);function t(r,n){return e.call(this,oi.UNSUPPORTED_FORMATTER,r,n)||this}return t}(ia),gA=function(e){qt(t,e);function t(r,n){return e.call(this,oi.INVALID_CONFIG,r,n)||this}return t}(ia),hm=function(e){qt(t,e);function t(r,n){return e.call(this,oi.MISSING_DATA,r,n)||this}return t}(ia),Gt=function(e){qt(t,e);function t(r,n,i){var o=e.call(this,oi.FORMAT_ERROR,"".concat(r,`
71
+ Locale: `).concat(n,`
72
+ `),i)||this;return o.locale=n,o}return t}(ia),il=function(e){qt(t,e);function t(r,n,i,o){var a=e.call(this,"".concat(r,`
73
+ MessageID: `).concat(i==null?void 0:i.id,`
74
+ Default Message: `).concat(i==null?void 0:i.defaultMessage,`
75
+ Description: `).concat(i==null?void 0:i.description,`
76
+ `),n,o)||this;return a.descriptor=i,a.locale=n,a}return t}(Gt),yA=function(e){qt(t,e);function t(r,n){var i=e.call(this,oi.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(n,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(o){var a;return(a=o.value)!==null&&a!==void 0?a:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=r,i}return t}(ia);function ci(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,i){return i in e?n[i]=e[i]:i in r&&(n[i]=r[i]),n},{})}var vA=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},EA=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},Vv={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:vA,onWarn:EA};function Wv(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Hn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function _A(e){e===void 0&&(e=Wv());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=cr(function(){for(var s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new((s=Intl.DateTimeFormat).bind.apply(s,gr([void 0],u,!1)))},{cache:Hn(e.dateTime),strategy:lr.variadic}),o=cr(function(){for(var s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new((s=Intl.NumberFormat).bind.apply(s,gr([void 0],u,!1)))},{cache:Hn(e.number),strategy:lr.variadic}),a=cr(function(){for(var s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new((s=Intl.PluralRules).bind.apply(s,gr([void 0],u,!1)))},{cache:Hn(e.pluralRules),strategy:lr.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:cr(function(s,u,l,c){return new Gv(s,u,l,ce({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},c||{}))},{cache:Hn(e.message),strategy:lr.variadic}),getRelativeTimeFormat:cr(function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return new(t.bind.apply(t,gr([void 0],s,!1)))},{cache:Hn(e.relativeTime),strategy:lr.variadic}),getPluralRules:a,getListFormat:cr(function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return new(r.bind.apply(r,gr([void 0],s,!1)))},{cache:Hn(e.list),strategy:lr.variadic}),getDisplayNames:cr(function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return new(n.bind.apply(n,gr([void 0],s,!1)))},{cache:Hn(e.displayNames),strategy:lr.variadic})}}function Vf(e,t,r,n){var i=e&&e[t],o;if(i&&(o=i[r]),o)return o;n(new mA("No ".concat(t," format named: ").concat(r)))}function Ia(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=ce({timeZone:t},e[n]),r},{})}function dm(e,t){var r=Object.keys(ce(ce({},e),t));return r.reduce(function(n,i){return n[i]=ce(ce({},e[i]||{}),t[i]||{}),n},{})}function pm(e,t){if(!t)return e;var r=Gv.formats;return ce(ce(ce({},r),e),{date:dm(Ia(r.date,t),Ia(e.date||{},t)),time:dm(Ia(r.time,t),Ia(e.time||{},t))})}var Yl=function(e,t,r,n,i){var o=e.locale,a=e.formats,s=e.messages,u=e.defaultLocale,l=e.defaultFormats,c=e.fallbackOnEmptyString,d=e.onError,h=e.timeZone,f=e.defaultRichTextElements;r===void 0&&(r={id:""});var p=r.id,m=r.defaultMessage;Ov(!!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 _=String(p),S=s&&Object.prototype.hasOwnProperty.call(s,_)&&s[_];if(Array.isArray(S)&&S.length===1&&S[0].type===je.literal)return S[0].value;if(!n&&S&&typeof S=="string"&&!f)return S.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=ce(ce({},f),n||{}),a=pm(a,h),l=pm(l,h),!S){if(c===!1&&S==="")return S;if((!m||o&&o.toLowerCase()!==u.toLowerCase())&&d(new yA(r,o)),m)try{var E=t.getMessageFormat(m,u,l,i);return E.format(n)}catch(b){return d(new il('Error formatting default message for: "'.concat(_,'", rendering default message verbatim'),o,r,b)),typeof m=="string"?m:_}return _}try{var E=t.getMessageFormat(S,o,a,ce({formatters:t},i||{}));return E.format(n)}catch(b){d(new il('Error formatting message: "'.concat(_,'", using ').concat(m?"default message":"id"," as fallback."),o,r,b))}if(m)try{var E=t.getMessageFormat(m,u,l,i);return E.format(n)}catch(b){d(new il('Error formatting the default message for: "'.concat(_,'", rendering message verbatim'),o,r,b))}return typeof S=="string"?S:typeof m=="string"?m:_},zv=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Su(e,t,r,n){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;n===void 0&&(n={});var u=n.format,l=ce(ce({},s&&{timeZone:s}),u&&Vf(o,t,u,a)),c=ci(n,zv,l);return t==="time"&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle&&(c=ce(ce({},c),{hour:"numeric",minute:"numeric"})),r(i,c)}function bA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return Su(e,"date",t,a).format(s)}catch(u){e.onError(new Gt("Error formatting date.",e.locale,u))}return String(s)}function wA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return Su(e,"time",t,a).format(s)}catch(u){e.onError(new Gt("Error formatting time.",e.locale,u))}return String(s)}function SA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=r[2],s=a===void 0?{}:a,u=e.timeZone,l=e.locale,c=e.onError,d=ci(s,zv,u?{timeZone:u}:{});try{return t(l,d).formatRange(i,o)}catch(h){c(new Gt("Error formatting date time range.",e.locale,h))}return String(i)}function TA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return Su(e,"date",t,a).formatToParts(s)}catch(u){e.onError(new Gt("Error formatting date.",e.locale,u))}return[]}function xA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return Su(e,"time",t,a).formatToParts(s)}catch(u){e.onError(new Gt("Error formatting time.",e.locale,u))}return[]}var OA=["style","type","fallback","languageDisplay"];function AA(e,t,r,n){var i=e.locale,o=e.onError,a=Intl.DisplayNames;a||o(new yn(`Intl.DisplayNames is not available in this environment.
77
+ Try polyfilling it using "@formatjs/intl-displaynames"
78
+ `,yr.MISSING_INTL_API));var s=ci(n,OA);try{return t(i,s).of(r)}catch(u){o(new Gt("Error formatting display name.",i,u))}}var CA=["type","style"],mm=Date.now();function RA(e){return"".concat(mm,"_").concat(e,"_").concat(mm)}function PA(e,t,r,n){n===void 0&&(n={});var i=Qv(e,t,r,n).reduce(function(o,a){var s=a.value;return typeof s!="string"?o.push(s):typeof o[o.length-1]=="string"?o[o.length-1]+=s:o.push(s),o},[]);return i.length===1?i[0]:i.length===0?"":i}function Qv(e,t,r,n){var i=e.locale,o=e.onError;n===void 0&&(n={});var a=Intl.ListFormat;a||o(new yn(`Intl.ListFormat is not available in this environment.
79
+ Try polyfilling it using "@formatjs/intl-listformat"
80
+ `,yr.MISSING_INTL_API));var s=ci(n,CA);try{var u={},l=r.map(function(c,d){if(typeof c=="object"){var h=RA(d);return u[h]=c,h}return String(c)});return t(i,s).formatToParts(l).map(function(c){return c.type==="literal"?c:ce(ce({},c),{value:u[c.value]||c.value})})}catch(c){o(new Gt("Error formatting list.",i,c))}return r}var NA=["type"];function IA(e,t,r,n){var i=e.locale,o=e.onError;n===void 0&&(n={}),Intl.PluralRules||o(new yn(`Intl.PluralRules is not available in this environment.
81
+ Try polyfilling it using "@formatjs/intl-pluralrules"
82
+ `,yr.MISSING_INTL_API));var a=ci(n,NA);try{return t(i,a).select(r)}catch(s){o(new Gt("Error formatting plural.",i,s))}return"other"}var LA=["numeric","style"];function kA(e,t,r){var n=e.locale,i=e.formats,o=e.onError;r===void 0&&(r={});var a=r.format,s=!!a&&Vf(i,"relative",a,o)||{},u=ci(r,LA,s);return t(n,u)}function MA(e,t,r,n,i){i===void 0&&(i={}),n||(n="second");var o=Intl.RelativeTimeFormat;o||e.onError(new yn(`Intl.RelativeTimeFormat is not available in this environment.
83
+ Try polyfilling it using "@formatjs/intl-relativetimeformat"
84
+ `,yr.MISSING_INTL_API));try{return kA(e,t,i).format(r,n)}catch(a){e.onError(new Gt("Error formatting relative time.",e.locale,a))}return String(r)}var FA=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Yv(e,t,r){var n=e.locale,i=e.formats,o=e.onError;r===void 0&&(r={});var a=r.format,s=a&&Vf(i,"number",a,o)||{},u=ci(r,FA,s);return t(n,u)}function DA(e,t,r,n){n===void 0&&(n={});try{return Yv(e,t,n).format(r)}catch(i){e.onError(new Gt("Error formatting number.",e.locale,i))}return String(r)}function BA(e,t,r,n){n===void 0&&(n={});try{return Yv(e,t,n).formatToParts(r)}catch(i){e.onError(new Gt("Error formatting number.",e.locale,i))}return[]}function UA(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function $A(e){e.onWarn&&e.defaultRichTextElements&&UA(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
85
+ Please consider using "@formatjs/cli" to pre-compile your messages for performance.
86
+ For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function jA(e,t){var r=_A(t),n=ce(ce({},Vv),e),i=n.locale,o=n.defaultLocale,a=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new hm('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new hm('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new gA('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),$A(n),ce(ce({},n),{formatters:r,formatNumber:DA.bind(null,n,r.getNumberFormat),formatNumberToParts:BA.bind(null,n,r.getNumberFormat),formatRelativeTime:MA.bind(null,n,r.getRelativeTimeFormat),formatDate:bA.bind(null,n,r.getDateTimeFormat),formatDateToParts:TA.bind(null,n,r.getDateTimeFormat),formatTime:wA.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:SA.bind(null,n,r.getDateTimeFormat),formatTimeToParts:xA.bind(null,n,r.getDateTimeFormat),formatPlural:IA.bind(null,n,r.getPluralRules),formatMessage:Yl.bind(null,n,r),$t:Yl.bind(null,n,r),formatList:PA.bind(null,n,r.getListFormat),formatListToParts:Qv.bind(null,n,r.getListFormat),formatDisplayName:AA.bind(null,n,r.getDisplayNames)})}function Kv(e){Ov(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Xv=ce(ce({},Vv),{textComponent:pe.Fragment});function HA(e){return function(t){return e(pe.Children.toArray(t))}}function Kl(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var o=0;o<i;o++){var a=r[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}var Wf=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=pe.createContext(null)):pe.createContext(null);Wf.Consumer;var qA=Wf.Provider,GA=qA,VA=Wf;function Oe(){var e=pe.useContext(VA);return Kv(e),e}var Xl;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Xl||(Xl={}));var Jl;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Jl||(Jl={}));function Jv(e){var t=function(r){var n=Oe(),i=r.value,o=r.children,a=oo(r,["value","children"]),s=typeof i=="string"?new Date(i||0):i,u=e==="formatDate"?n.formatDateToParts(s,a):n.formatTimeToParts(s,a);return o(u)};return t.displayName=Jl[e],t}function oa(e){var t=function(r){var n=Oe(),i=r.value,o=r.children,a=oo(r,["value","children"]),s=n[e](i,a);if(typeof o=="function")return o(s);var u=n.textComponent||pe.Fragment;return pe.createElement(u,null,s)};return t.displayName=Xl[e],t}function ol(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 Zv(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=qv(n)?HA(n):n,t},{})}var gm=function(e,t,r,n){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var a=Zv(n),s=Yl.apply(void 0,gr([e,t,r,a],i,!1));return Array.isArray(s)?pe.Children.toArray(s):s},Zl=function(e,t){var r=e.defaultRichTextElements,n=oo(e,["defaultRichTextElements"]),i=Zv(r),o=jA(ce(ce(ce({},Xv),n),{defaultRichTextElements:i}),t),a={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i};return ce(ce({},o),{formatMessage:gm.bind(null,a,o.formatters),$t:gm.bind(null,a,o.formatters)})},WA=function(e){qt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=Wv(),r.state={cache:r.cache,intl:Zl(ol(r.props),r.cache),prevConfig:ol(r.props)},r}return t.getDerivedStateFromProps=function(r,n){var i=n.prevConfig,o=n.cache,a=ol(r);return Kl(i,a)?null:{intl:Zl(a,o),prevConfig:a}},t.prototype.render=function(){return Kv(this.state.intl),pe.createElement(GA,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Xv,t}(pe.PureComponent);function zA(e,t){var r=e.values,n=oo(e,["values"]),i=t.values,o=oo(t,["values"]);return Kl(i,r)&&Kl(n,o)}function e0(e){var t=Oe(),r=t.formatMessage,n=t.textComponent,i=n===void 0?pe.Fragment:n,o=e.id,a=e.description,s=e.defaultMessage,u=e.values,l=e.children,c=e.tagName,d=c===void 0?i:c,h=e.ignoreTag,f={id:o,description:a,defaultMessage:s},p=r(f,u,{ignoreTag:h});return typeof l=="function"?l(Array.isArray(p)?p:[p]):d?pe.createElement(d,null,pe.Children.toArray(p)):pe.createElement(pe.Fragment,null,p)}e0.displayName="FormattedMessage";var t0=pe.memo(e0,zA);t0.displayName="MemoizedFormattedMessage";const fn=t0;oa("formatDate");oa("formatTime");oa("formatNumber");oa("formatList");oa("formatDisplayName");Jv("formatDate");Jv("formatTime");let vs=!1;const r0=({isOpen:e=!1,isLoading:t=!1,children:r})=>{const n=Oe(),i=$.useRef(null),[o,a]=$.useState("hidden");$.useEffect(()=>{const u=i.current;if(u)return u.addEventListener("transitionend",s),()=>{u.removeEventListener("transitionend",s)}},[]);const s=({propertyName:u})=>{u==="opacity"&&(vs!==!1&&clearTimeout(vs),a(l=>l==="opening"?"open":l==="closing"?"closed":l==="closed"?"hidden":l))};return ni(()=>{vs!==!1&&clearTimeout(vs);let u="open";e?a("opening"):(a("closing"),u="hidden"),vs=setTimeout(()=>{a(u)},300)},[e]),O.jsx("aside",{ref:i,className:ae("tooltip text-medium",o,{loading:t}),hidden:o==="hidden",children:t?O.jsx("p",{children:n.formatMessage({id:"tooltip_loading"})}):typeof r=="string"?O.jsx("p",{children:r}):r})};const zf=({children:e,className:t="",...r})=>O.jsx("section",{className:ae("full-width-section",t),...r,children:e});const QA=({text:e,buttons:t,className:r=""})=>{const n=[];return t.forEach(i=>{n.push({href:i.link,variant:"secondary",size:{mobile:"medium",1024:"large"},className:"gtm-trackable","data-gtm-event-type":"download-click","data-gtm-event-context":i.eventContext||"Download",target:"_blank",children:i.text})}),O.jsx(zf,{className:ae("download-section",r),children:O.jsxs(O.Fragment,{children:[$.createElement(typeof e=="string"?"h2":e.element,{className:"text"},typeof e=="string"?e:e.text),O.jsx(na,{buttons:n})]})})};const YA=({title:e=!1,logos:t=[],className:r=""})=>{const n=t.length;if(n===0)return null;const i={element:typeof e=="object"?e.element:"h2",text:typeof e=="string"?e:typeof e=="object"?e.text:""};return O.jsxs("div",{className:ae("logos",r),children:[e&&$.createElement(i.element,{className:"title"},i.text),O.jsx("ul",{className:ae({"two-col":n===2||n===4,"three-col":n===5||n<=10&&n%3===0}),children:t.map(({logo:o,nameOfBusiness:a,link:s=!1,description:u=!1},l)=>{if(!o||!o.url)return null;const c=O.jsx("img",{src:o.url,width:o.width||"auto",height:o.height||"auto",alt:a});return O.jsxs("li",{children:[O.jsx("p",{className:"img-wrapper",children:s?O.jsx("a",{href:s,target:"_blank",rel:"nofollow noreferrer noopener",children:c}):c}),u&&O.jsx("small",{children:u})]},window.btoa(`${o.url}_${l}`))})})]})};const KA=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],XA=({content:e,image:t,variant:r="default",spacing:n="normal",cta:i,children:o})=>{const a=["eyebrow","title","text"],s={eyebrow:"small",title:"h1",text:"p"},u={};return a.forEach(l=>{if(!e[l]){u[l]=!1;return}if(typeof e[l]=="object"){u[l]=e[l];const{text:c,element:d}=e[l];if(d&&KA.includes(d.toLowerCase()))return;u[l]={text:c,element:s[l]};return}u[l]={text:e[l],element:s[l]}}),i&&i.link&&i.link[0]==="#"&&(i.props||(i.props={}),i.props.onClick=l=>{l.preventDefault(),l.stopPropagation();const c=document.getElementById(i.link.substring(1));c&&c.scrollIntoView({behavior:"smooth"})}),O.jsx(zf,{className:ae("banner-section",r,n,{"has-image":t,"has-extra-spacing":n==="normal"&&u.eyebrow&&u.title}),children:O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"content-wrapper",children:[a.map(l=>{if(u[l]&&typeof u[l]=="object"){const{text:c,element:d=""}=u[l];return $.createElement(d.toLowerCase(),{key:l,className:l},c)}return null}),o,i&&i.text&&i.link&&O.jsx(ze,{variant:t||r==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:i.link,...i.props,children:i.text})]}),t&&O.jsx(xv,{image:{...t,aspect:"banner"}})]})})},JA=$.memo(XA);const ZA=({variant:e="primary",button:t=null,title:r,text:n,gtmContext:i})=>!r&&!n?null:O.jsxs("aside",{className:ae("marketing-block",e),children:[r&&O.jsx("p",{className:"title",children:r}),n&&O.jsx("p",{children:n}),t&&O.jsx(ze,{variant:"secondary",size:"medium",href:t.link,className:"gtm-trackable","data-gtm-event-context":i,"data-gtm-event-type":"learn-more-click",children:t.text})]});var n0={exports:{}};(function(e){(function(t,r){var n="…",i=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function o(s,u,l){return l.length===s.length||!u.ellipsis||(l+=u.ellipsis),l}function a(s,u,l){var c="",d=!0,h=u,f,p;if(l=l||{},l.ellipsis=typeof l.ellipsis>"u"?n:l.ellipsis,!s||s.length===0)return"";for(d=!0;d;){if(i.lastIndex=c.length,d=i.exec(s),!d||d.index-c.length>=h||i.lastIndex>=u+3e3)return c+=s.substring(c.length,u),o(s,l,c);if(f=d[0],p=d.index,c+=s.substring(c.length,p+f.length),h-=p+f.length,h<=0)break}return o(s,l,c)}e.exports?e.exports=a:t.truncate=a})(String)})(n0);var eC=n0.exports;const Qf=_r(eC),eu="https://storage.googleapis.com/apolitical-assets/",tC="200,000+";const Yf=({label:e=!1,className:t="",children:r})=>{const n=Oe();return O.jsxs("details",{className:ae("collapsible-section",t),children:[O.jsx("summary",{children:e||n.formatMessage({id:"collapsibleSection_summary"})}),O.jsx("div",{className:"content",children:r})]})};function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gn.apply(this,arguments)}const rC=["children","options"],ym=["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"}),vm={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},nC=["style","script"],iC=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,oC=/mailto:/i,sC=/\n{2,}$/,i0=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,aC=/^ *> ?/gm,uC=/^ {2,}\n/,cC=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,o0=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,s0=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,lC=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,fC=/^(?:\n *)*\n/,hC=/\r\n?/g,dC=/^\[\^([^\]]+)](:.*)\n/,pC=/^\[\^([^\]]+)]/,mC=/\f/g,gC=/^\s*?\[(x|\s)\]/,a0=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,u0=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,c0=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,ef=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,yC=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,l0=/^<!--[\s\S]*?(?:-->)/,vC=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,tf=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,EC=/^\{.*\}$/,_C=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,bC=/^<([^ >]+@[^ >]+)>/,wC=/^<([^ >]+:\/[^ >]+)>/,SC=/-([a-z])?/gi,f0=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,TC=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,xC=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,OC=/^\[([^\]]*)\] ?\[([^\]]*)\]/,AC=/(\[|\])/g,CC=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,RC=/\t/g,PC=/^ *\| */,NC=/(^ *\||\| *$)/g,IC=/ *$/,LC=/^ *:-+: *$/,kC=/^ *:-+ *$/,MC=/^ *-+: *$/,FC=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,DC=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,BC=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,UC=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,$C=/^\\([^0-9A-Za-z\s])/,jC=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,HC=/^\n+/,qC=/^([ \t]*)/,GC=/\\([^\\])/g,Em=/ *\n+$/,VC=/(?:^|\n)( *)$/,Kf="(?:\\d+\\.)",Xf="(?:[*+-])";function h0(e){return"( *)("+(e===1?Kf:Xf)+") +"}const d0=h0(1),p0=h0(2);function m0(e){return new RegExp("^"+(e===1?d0:p0))}const WC=m0(1),zC=m0(2);function g0(e){return new RegExp("^"+(e===1?d0:p0)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Kf:Xf)+" )[^\\n]*)*(\\n|$)","gm")}const y0=g0(1),v0=g0(2);function E0(e){const t=e===1?Kf:Xf;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const _0=E0(1),b0=E0(2);function _m(e,t){const r=t===1,n=r?_0:b0,i=r?y0:v0,o=r?WC:zC;return{t(a,s,u){const l=VC.exec(u);return l&&(s.o||!s._&&!s.u)?n.exec(a=l[1]+a):null},i:Te.HIGH,l(a,s,u){const l=r?+a[2]:void 0,c=a[0].replace(sC,`
87
+ `).match(i);let d=!1;return{p:c.map(function(h,f){const p=o.exec(h)[0].length,m=new RegExp("^ {1,"+p+"}","gm"),_=h.replace(m,"").replace(o,""),S=f===c.length-1,E=_.indexOf(`
88
+
89
+ `)!==-1||S&&d;d=E;const b=u._,T=u.o;let w;u.o=!0,E?(u._=!1,w=_.replace(Em,`
90
+
91
+ `)):(u._=!0,w=_.replace(Em,""));const P=s(w,u);return u._=b,u.o=T,P}),m:r,g:l}},h:(a,s,u)=>e(a.m?"ol":"ul",{key:u.k,start:a.g},a.p.map(function(l,c){return e("li",{key:c},s(l,u))}))}}const QC=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,YC=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,w0=[i0,o0,s0,a0,c0,u0,l0,f0,y0,_0,v0,b0],KC=[...w0,/^[^\n]+(?: \n|\n{2,})/,ef,tf];function XC(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 JC(e){return MC.test(e)?"right":LC.test(e)?"center":kC.test(e)?"left":null}function bm(e,t,r){const n=r.$;r.$=!0;const i=t(e.trim(),r);r.$=n;let o=[[]];return i.forEach(function(a,s){a.type==="tableSeparator"?s!==0&&s!==i.length-1&&o.push([]):(a.type!=="text"||i[s+1]!=null&&i[s+1].type!=="tableSeparator"||(a.v=a.v.replace(IC,"")),o[o.length-1].push(a))}),o}function ZC(e,t,r){r._=!0;const n=bm(e[1],t,r),i=e[2].replace(NC,"").split("|").map(JC),o=function(a,s,u){return a.trim().split(`
92
+ `).map(function(l){return bm(l,s,u)})}(e[3],t,r);return r._=!1,{S:i,A:o,L:n,type:"table"}}function wm(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function Xr(e){return function(t,r){return r._?e.exec(t):null}}function Jr(e){return function(t,r){return r._||r.u?e.exec(t):null}}function Lr(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function Es(e){return function(t){return e.exec(t)}}function e1(e,t,r){if(t._||t.u||r&&!r.endsWith(`
93
+ `))return null;let n="";e.split(`
94
+ `).every(o=>!w0.some(a=>a.test(o))&&(n+=o+`
95
+ `,o.trim()));const i=n.trimEnd();return i==""?null:[n,i]}function Ci(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 Sm(e){return e.replace(GC,"$1")}function Ha(e,t,r){const n=r._||!1,i=r.u||!1;r._=!0,r.u=!0;const o=e(t,r);return r._=n,r.u=i,o}function t1(e,t,r){const n=r._||!1,i=r.u||!1;r._=!1,r.u=!0;const o=e(t,r);return r._=n,r.u=i,o}function r1(e,t,r){return r._=!1,e(t,r)}const sl=(e,t,r)=>({v:Ha(t,e[1],r)});function al(){return{}}function ul(){return null}function n1(...e){return e.filter(Boolean).join(" ")}function cl(e,t,r){let n=e;const i=t.split(".");for(;i.length&&(n=n[i[0]],n!==void 0);)i.shift();return n||r}var Te;function i1(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||XC,t.namedCodesToUnicode=t.namedCodesToUnicode?Gn({},vm,t.namedCodesToUnicode):vm;const r=t.createElement||pe.createElement;function n(f,p,...m){const _=cl(t.overrides,`${f}.props`,{});return r(function(S,E){const b=cl(E,S);return b?typeof b=="function"||typeof b=="object"&&"render"in b?b:cl(E,`${S}.component`,S):S}(f,t.overrides),Gn({},p,_,{className:n1(p==null?void 0:p.className,_.className)||void 0}),...m)}function i(f){let p=!1;t.forceInline?p=!0:t.forceBlock||(p=CC.test(f)===!1);const m=c(l(p?f:`${f.trimEnd().replace(HC,"")}
96
+
97
+ `,{_:p}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(t.wrapper===null)return m;const _=t.wrapper||(p?"span":"div");let S;if(m.length>1||t.forceWrapper)S=m;else{if(m.length===1)return S=m[0],typeof S=="string"?n("span",{key:"outer"},S):S;S=null}return pe.createElement(_,{key:"outer"},S)}function o(f){const p=f.match(iC);return p?p.reduce(function(m,_,S){const E=_.indexOf("=");if(E!==-1){const b=function(R){return R.indexOf("-")!==-1&&R.match(vC)===null&&(R=R.replace(SC,function(L,U){return U.toUpperCase()})),R}(_.slice(0,E)).trim(),T=function(R){const L=R[0];return(L==='"'||L==="'")&&R.length>=2&&R[R.length-1]===L?R.slice(1,-1):R}(_.slice(E+1).trim()),w=ym[b]||b,P=m[w]=function(R,L){return R==="style"?L.split(/;\s?/).reduce(function(U,q){const G=q.slice(0,q.indexOf(":"));return U[G.replace(/(-[a-z])/g,j=>j[1].toUpperCase())]=q.slice(G.length+1).trim(),U},{}):R==="href"?Ci(L):(L.match(EC)&&(L=L.slice(1,L.length-1)),L==="true"||L!=="false"&&L)}(b,T);typeof P=="string"&&(ef.test(P)||tf.test(P))&&(m[w]=pe.cloneElement(i(P.trim()),{key:S}))}else _!=="style"&&(m[ym[_]||_]=!0);return m},{}):null}const a=[],s={},u={blockQuote:{t:Lr(i0),i:Te.HIGH,l:(f,p,m)=>({v:p(f[0].replace(aC,""),m)}),h:(f,p,m)=>n("blockquote",{key:m.k},p(f.v,m))},breakLine:{t:Es(uC),i:Te.HIGH,l:al,h:(f,p,m)=>n("br",{key:m.k})},breakThematic:{t:Lr(cC),i:Te.HIGH,l:al,h:(f,p,m)=>n("hr",{key:m.k})},codeBlock:{t:Lr(s0),i:Te.MAX,l:f=>({v:f[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(f,p,m)=>n("pre",{key:m.k},n("code",Gn({},f.O,{className:f.M?`lang-${f.M}`:""}),f.v))},codeFenced:{t:Lr(o0),i:Te.MAX,l:f=>({O:o(f[3]||""),v:f[4],M:f[2]||void 0,type:"codeBlock"})},codeInline:{t:Jr(lC),i:Te.LOW,l:f=>({v:f[2]}),h:(f,p,m)=>n("code",{key:m.k},f.v)},footnote:{t:Lr(dC),i:Te.MAX,l:f=>(a.push({I:f[2],j:f[1]}),{}),h:ul},footnoteReference:{t:Xr(pC),i:Te.HIGH,l:f=>({v:f[1],B:`#${t.slugify(f[1])}`}),h:(f,p,m)=>n("a",{key:m.k,href:Ci(f.B)},n("sup",{key:m.k},f.v))},gfmTask:{t:Xr(gC),i:Te.HIGH,l:f=>({R:f[1].toLowerCase()==="x"}),h:(f,p,m)=>n("input",{checked:f.R,key:m.k,readOnly:!0,type:"checkbox"})},heading:{t:Lr(t.enforceAtxHeadings?u0:a0),i:Te.HIGH,l:(f,p,m)=>({v:Ha(p,f[2],m),T:t.slugify(f[2]),C:f[1].length}),h:(f,p,m)=>n(`h${f.C}`,{id:f.T,key:m.k},p(f.v,m))},headingSetext:{t:Lr(c0),i:Te.MAX,l:(f,p,m)=>({v:Ha(p,f[1],m),C:f[2]==="="?1:2,type:"heading"})},htmlComment:{t:Es(l0),i:Te.HIGH,l:()=>({}),h:ul},image:{t:Jr(YC),i:Te.HIGH,l:f=>({D:f[1],B:Sm(f[2]),F:f[3]}),h:(f,p,m)=>n("img",{key:m.k,alt:f.D||void 0,title:f.F||void 0,src:Ci(f.B)})},link:{t:Xr(QC),i:Te.LOW,l:(f,p,m)=>({v:t1(p,f[1],m),B:Sm(f[2]),F:f[3]}),h:(f,p,m)=>n("a",{key:m.k,href:Ci(f.B),title:f.F},p(f.v,m))},linkAngleBraceStyleDetector:{t:Xr(wC),i:Te.MAX,l:f=>({v:[{v:f[1],type:"text"}],B:f[1],type:"link"})},linkBareUrlDetector:{t:(f,p)=>p.N?null:Xr(_C)(f,p),i:Te.MAX,l:f=>({v:[{v:f[1],type:"text"}],B:f[1],F:void 0,type:"link"})},linkMailtoDetector:{t:Xr(bC),i:Te.MAX,l(f){let p=f[1],m=f[1];return oC.test(m)||(m="mailto:"+m),{v:[{v:p.replace("mailto:",""),type:"text"}],B:m,type:"link"}}},orderedList:_m(n,1),unorderedList:_m(n,2),newlineCoalescer:{t:Lr(fC),i:Te.LOW,l:al,h:()=>`
98
+ `},paragraph:{t:e1,i:Te.LOW,l:sl,h:(f,p,m)=>n("p",{key:m.k},p(f.v,m))},ref:{t:Xr(TC),i:Te.MAX,l:f=>(s[f[1]]={B:f[2],F:f[4]},{}),h:ul},refImage:{t:Jr(xC),i:Te.MAX,l:f=>({D:f[1]||void 0,P:f[2]}),h:(f,p,m)=>n("img",{key:m.k,alt:f.D,src:Ci(s[f.P].B),title:s[f.P].F})},refLink:{t:Xr(OC),i:Te.MAX,l:(f,p,m)=>({v:p(f[1],m),Z:p(f[0].replace(AC,"\\$1"),m),P:f[2]}),h:(f,p,m)=>s[f.P]?n("a",{key:m.k,href:Ci(s[f.P].B),title:s[f.P].F},p(f.v,m)):n("span",{key:m.k},p(f.Z,m))},table:{t:Lr(f0),i:Te.HIGH,l:ZC,h:(f,p,m)=>n("table",{key:m.k},n("thead",null,n("tr",null,f.L.map(function(_,S){return n("th",{key:S,style:wm(f,S)},p(_,m))}))),n("tbody",null,f.A.map(function(_,S){return n("tr",{key:S},_.map(function(E,b){return n("td",{key:b,style:wm(f,b)},p(E,m))}))})))},tableSeparator:{t:function(f,p){return p.$?(p._=!0,PC.exec(f)):null},i:Te.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Es(jC),i:Te.MIN,l:f=>({v:f[0].replace(yC,(p,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:p)}),h:f=>f.v},textBolded:{t:Jr(FC),i:Te.MED,l:(f,p,m)=>({v:p(f[2],m)}),h:(f,p,m)=>n("strong",{key:m.k},p(f.v,m))},textEmphasized:{t:Jr(DC),i:Te.LOW,l:(f,p,m)=>({v:p(f[2],m)}),h:(f,p,m)=>n("em",{key:m.k},p(f.v,m))},textEscaped:{t:Jr($C),i:Te.HIGH,l:f=>({v:f[1],type:"text"})},textMarked:{t:Jr(BC),i:Te.LOW,l:sl,h:(f,p,m)=>n("mark",{key:m.k},p(f.v,m))},textStrikethroughed:{t:Jr(UC),i:Te.LOW,l:sl,h:(f,p,m)=>n("del",{key:m.k},p(f.v,m))}};t.disableParsingRawHTML!==!0&&(u.htmlBlock={t:Es(ef),i:Te.HIGH,l(f,p,m){const[,_]=f[3].match(qC),S=new RegExp(`^${_}`,"gm"),E=f[3].replace(S,""),b=(T=E,KC.some(L=>L.test(T))?r1:Ha);var T;const w=f[1].toLowerCase(),P=nC.indexOf(w)!==-1;m.N=m.N||w==="a";const R=P?f[3]:b(p,E,m);return m.N=!1,{O:o(f[2]),v:R,G:P,H:P?w:f[1]}},h:(f,p,m)=>n(f.H,Gn({key:m.k},f.O),f.G?f.v:p(f.v,m))},u.htmlSelfClosing={t:Es(tf),i:Te.HIGH,l:f=>({O:o(f[2]||""),H:f[1]}),h:(f,p,m)=>n(f.H,Gn({},f.O,{key:m.k}))});const l=function(f){let p=Object.keys(f);function m(_,S){let E=[],b="";for(;_;){let T=0;for(;T<p.length;){const w=p[T],P=f[w],R=P.t(_,S,b);if(R){const L=R[0];_=_.substring(L.length);const U=P.l(R,m,S);U.type==null&&(U.type=w),E.push(U),b=L;break}T++}}return E}return p.sort(function(_,S){let E=f[_].i,b=f[S].i;return E!==b?E-b:_<S?-1:1}),function(_,S){return m(function(E){return E.replace(hC,`
99
+ `).replace(mC,"").replace(RC," ")}(_),S)}}(u),c=(d=function(f){return function(p,m,_){return f[p.type].h(p,m,_)}}(u),function f(p,m={}){if(Array.isArray(p)){const _=m.k,S=[];let E=!1;for(let b=0;b<p.length;b++){m.k=b;const T=f(p[b],m),w=typeof T=="string";w&&E?S[S.length-1]+=T:T!==null&&S.push(T),E=w}return m.k=_,S}return d(p,f,m)});var d;const h=i(e);return a.length?n("div",null,h,n("footer",{key:"footer"},a.map(function(f){return n("div",{id:t.slugify(f.j),key:f.j},f.j,c(l(f.I,{_:!0})))}))):h}(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"})(Te||(Te={}));const Tu=e=>{let{children:t,options:r}=e,n=function(i,o){if(i==null)return{};var a,s,u={},l=Object.keys(i);for(s=0;s<l.length;s++)o.indexOf(a=l[s])>=0||(u[a]=i[a]);return u}(e,rC);return pe.cloneElement(i1(t,r),n)};const Ur=({variant:e="primary",className:t="",children:r,...n})=>O.jsx("div",{className:ae("highlighted-text-box",e,t),...n,children:r});const sa=({variant:e="empty",text:t=!1,button:r=!1,className:n=""})=>{let i=r&&!!Object.keys(r).length;const o=typeof r=="object"&&"breakpoints"in r,a=ra(o);if(o&&typeof r=="object"&&typeof a=="number"){const d=Object.assign({},r.breakpoints),h=wv(Object.keys(d));i=Sv(a,h,d)}const{breakpoints:s,text:u="",component:l,...c}=r;return O.jsx(Ur,{variant:"subtle",className:ae("empty-state-box",e,n),children:O.jsxs(O.Fragment,{children:[t&&O.jsx(Tu,{options:{forceBlock:!0},children:t}),i&&typeof r=="object"&&(l||O.jsx(ze,{...c,variant:r.variant?r.variant:"secondary",children:u}))]})})};const rf=({children:e,...t})=>O.jsx("p",{...t,children:e}),S0={q:rf,blockquote:rf};for(let e=1;e<=6;e++)S0[`h${e}`]={component:rf,props:{className:"title"}};const T0=({type:e="default",className:t="",heading:r=!1,children:n})=>O.jsxs("div",{className:ae("helper-text-box text-small",e,t),children:[r&&O.jsx("p",{className:"title",children:r}),typeof n=="string"?O.jsx(Tu,{options:{wrapper:$.Fragment,forceBlock:!0,overrides:S0},children:n}):O.jsx("p",{children:n})]});const o1=({className:e="",show:t=!1,hide:r=!1,text:n,children:i})=>{const o=Oe(),a=$.useRef(null),[s,u]=$.useState(""),[l,c]=$.useState("closed");$.useEffect(()=>{const f=a.current;if(f)return f.addEventListener("transitionend",d),()=>{f.removeEventListener("transitionend",d)}},[]),$.useEffect(()=>{if(!n||typeof n!="string")return;const f=n.split(`
100
+ `);u(f.length<3?`${n.substring(0,400)}...`:f.slice(0,3).join(`
101
+ `))},[n]),$.useEffect(()=>{l==="ready-to-close"&&c("closing")},[l]);const d=({propertyName:f})=>{f==="max-height"&&c(p=>p==="opening"?"open":p==="closing"?"closed":p)};if(!n)return null;const h=["opening","open"].includes(l);return O.jsxs(Ur,{variant:"subtle",className:ae("hide-show-text-box",e),children:[O.jsxs("div",{ref:a,className:ae("content",l),children:[O.jsx(Tu,{options:{forceBlock:!0},children:l==="closed"?s:n}),l!=="closed"&&i]}),O.jsx("p",{className:"cta",children:O.jsx(ze,{variant:"tertiary",icon:{icon:"navigation_arrow",position:"left",animate:!0},styling:{muted:!0},className:ae({"rotate-180":h}),onClick:()=>{c(h?"ready-to-close":"opening")},children:h?r||o.formatMessage({id:"hideShowTextBox_hide"}):t||o.formatMessage({id:"hideShowTextBox_show"})})})]})},s1=()=>$.Fragment,a1=({children:e})=>O.jsx(Ur,{variant:"secondary",children:e}),u1=["span","strong","h1","h2","h3","h4","h5","h6","p"],c1=({children:e})=>{const t=Oe();if(!e)return null;let r=t.formatMessage({id:"markdown_collapsibleSection_summary"});const n=[];for(const o of $.Children.toArray(e))if(!(!o||typeof o=="string"||typeof o=="number"))if($.isValidElement(o)&&o.type==="summary"){if(o.props&&o.props.children){for(const a of $.Children.toArray(o.props.children))if(!(!a||typeof a=="string"||typeof a=="number")&&$.isValidElement(a)){const s=a.type;if(u1.includes(s)){for(r=a.props.children;typeof r!="string"&&(Array.isArray(r)&&r[0].props&&r[0].props.children&&r[0].props.children[0]);)r=r[0].props.children[0];break}}}}else n.push(o);const i=r?r.toString():"";return O.jsx(Yf,{label:i,className:["Sources","Resources"].includes(i)?"discrete-links":"",children:n.map(o=>o)})},l1=({children:e,...t})=>{if(t.class)switch(t.class){case"casestudy":return O.jsx(Ur,{variant:"secondary",children:e});case"general-textbox":case"highlight-box":return O.jsx(Ur,{variant:"primary",children:e});case"pink-textbox":return O.jsx(Ur,{variant:"tertiary",children:e});default:return O.jsx("div",{...t,children:e})}return O.jsx("div",{...t,children:e})},f1=e=>{const t=Oe(),r=Date.now().toString();let n="default";const i=e.src;return i.includes("youtube")||i.includes("vimeo")?n="video":i.includes("riddle")||i.includes("sli.do")?n="poll":i.includes("padlet")&&(n="padlet"),O.jsxs(O.Fragment,{children:[O.jsx(lt,{children:O.jsx(ft.Link,{to:`#content-after-iframe-${r}`,children:t.formatMessage({id:`markdown_skip${n==="default"?"":`_${n}`}`})})}),O.jsx("iframe",{...e,title:t.formatMessage({id:`markdown_iframe${n==="default"?"":`_${n}`}`})}),O.jsx("span",{id:`content-after-iframe-${r}`,tabIndex:-1})]})},Tm=e=>{let t="";return e&&typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"&&"type"in e&&(t=e.type),t},h1=({children:e,...t})=>{let r={...t};t.href&&(t.href.includes("http:")||t.href.includes("https:"))&&!t.target&&(r.target="_blank");let n=e,i=!1;for(const o of $.Children.toArray(e))if(!(!o||typeof o=="string"||typeof o=="number")&&$.isValidElement(o)){const a=o.type;if(["button","center","span","strong"].includes(a)&&o.props&&o.props.children&&o.props.children[0])for((a==="button"||Tm(o.props.children[0])==="button")&&(i=!0),n=o.props.children[0];n&&typeof n!="string"&&!(typeof n=="boolean"||typeof n=="number"||!$.isValidElement(n));)if(n.props&&n.props.children&&n.props.children[0])n=n.props.children[0],n&&Tm(n)==="button"&&(i=!0);else break}return i?(r={...r,className:"button primary medium"},O.jsx("p",{className:"center",children:O.jsx(ze,{variant:"primary",size:"medium",...r,children:n})})):O.jsx(ft.Link,{to:r.href||"#",...r,children:n})},x0=({children:e})=>O.jsx("span",{children:e});const nf=({className:e="",options:t={},children:r})=>{r=r.replace(/^<br\/?>/,"");const n={wrapper:$.Fragment,forceBlock:!0,overrides:{a:h1,CollapsibleSection:Yf,TextBox:Ur,CaseStudy:a1,style:s1,details:c1,div:l1,iframe:f1}};return O.jsx("div",{className:ae("markdown-text",e),children:O.jsx(Tu,{options:{...n,...t},children:r})})};const O0=({size:e="medium",variant:t="default",className:r="",children:n})=>O.jsx("span",{className:ae("pill",e,t,r),children:n});const tu=({element:e="p",children:t=null,className:r="",...n})=>$.createElement(e,{...n,className:ae("status-banner text-small",r),"aria-live":"assertive"},t);const d1=({progress:e=0,text:t=!1,className:r=""})=>{const n=Oe(),i=e>75?100:e>50?75:e>25?50:e>5?25:0,o={"--progress":`${e}%`};return O.jsx("span",{className:ae(`progress-bar section-${i}`,r),style:o,children:O.jsx(lt,{children:t?`${e} ${t}`:n.formatMessage({id:"progressBar"},{number:e})})})},A0=$.memo(d1);const ll="loadingBlock_",p1=({progress:e=0,steps:t=!1,className:r=""})=>{const n=Oe();t||(t={0:{text:n.formatMessage({id:`${ll}loading`})},75:{text:n.formatMessage({id:`${ll}almostDone`})},100:{text:n.formatMessage({id:`${ll}complete`})}});let i=null;const o=Object.keys(t);for(let s=0;s<o.length&&!(e<parseInt(o[s]));s++)i=o[s];const a=i&&t[i].icon?{"--icon":`url(${eu}icons/${t[i].icon}.svg)`}:{};return O.jsxs(Ur,{className:ae("loading-block",r,{"has-icon":i&&t[i].icon}),variant:"subtle",style:a,children:[i&&O.jsx("span",{className:"step",children:t[i].text}),O.jsx(A0,{progress:e})]})},m1=$.memo(p1);const vr=({element:e="div",className:t="",...r})=>O.jsx(Tf,{element:e,className:ae("loading-placeholder",t),...r});const of={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"]},C0=(e,t)=>e in of?O.jsx("div",{className:e,children:of[e].map((r,n)=>C0(r,n))},t):O.jsx(vr,{className:e},t),R0=({layout:e="overview-page"})=>O.jsx("div",{className:ae("loading-state",e),children:of[e].map((t,r)=>C0(t,r))}),P0=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):""},La=["#5AB6A3","#A2D7AF","#806056","#3962B3"],g1=e=>{const t=Math.ceil(26/La.length),r=P0(e).toLowerCase();if(r==="")return La[0];const n=r.charCodeAt(0)-96;for(let i=0;i<La.length;i++)if(n<=t*(i+1))return La[i]};const xm=256,xu=({className:e="",src:t="",name:r,alt:n,width:i=xm,height:o=xm,...a})=>{const[s,u]=$.useState(!1),l=$.useRef(null);return $.useEffect(()=>{const c=l.current;if(!c)return;const d=c.getContext("2d");if(!d)return;const h=i,f=o;typeof window<"u"&&window.devicePixelRatio&&(c.width=h*window.devicePixelRatio,c.height=f*window.devicePixelRatio,d.scale(window.devicePixelRatio,window.devicePixelRatio)),d.fillStyle=g1(r),d.fillRect(0,0,h,f),d.font=`${h/3}px Arial`,d.textAlign="center",d.fillStyle="white",d.fillText(P0(r),h/2,f/1.6)},[r]),O.jsxs("figure",{className:ae("profile-picture",e,{error:s}),...a,children:[t!==""&&!s&&O.jsx("img",{src:t,alt:n||r,onError:()=>{u(!0)},width:i,height:o}),(t===""||s)&&O.jsx("canvas",{ref:l})]})},Jf=e=>e==="apolitical"?{image:`${eu}logos/member_apolitical.svg`}:e==="community"||typeof e=="object"&&!e.name?{image:`${eu}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},y1=({role:e="",organisation:t="",country:r="",maximumCharacters:n=80})=>{const i=e!=="",o=t!=="",a=r!=="";if(!i&&!o&&!a)return"";const s=`${e}${i&&o?` — ${t}`:t}`;let u=`${s}${(i||o)&&a?`, ${r}`:r}`;return u.length>n&&(u=s),u.length>n&&(u=Qf(u,n)),u};const Ou=({element:e="div",member:t="community",additionalContent:r=!1,gtmContext:n="member",gtmType:i="member-click",className:o=""})=>{const a=Oe(),s=Jf(t);s.name||(s.name=a.formatMessage({id:`member_${typeof t=="string"?t:"community"}`}));const{name:u,url:l,image:c}=s,d=y1(s),h=r&&r.createdAt?EO(r.createdAt):!1,f=r&&r.createdAt?vO(r.createdAt):"";return $.createElement(e,{className:ae("member text-medium",o),children:O.jsxs(wu,{href:l,gtmType:i,gtmContext:n,onClick:p=>{p==null||p.stopPropagation()},children:[O.jsx(xu,{name:u,src:c}),O.jsxs("p",{className:"details",children:[O.jsx("strong",{children:u}),r&&O.jsxs("span",{className:"additional-content",children:[r.createdAt&&h&&O.jsx("span",{className:"date",title:f,"aria-label":f,children:a.formatMessage({id:`dates_${h.path}`},{number:h.number})}),r.didEdit&&O.jsx("em",{children:a.formatMessage({id:"discussion_edited"})})]}),d&&O.jsx("small",{children:d})]})]})})};const Om={small:24,medium:48},N0=({element:e="div",contributors:{total:t,data:r}={total:void 0,data:[]},styling:{showText:n,size:i,showGap:o,showPlaceholders:a}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:s=2,className:u=""})=>{const l=Oe();return!r||r.length===0?null:$.createElement(e,{className:ae("contributors",u,i,{"has-gap":o}),children:O.jsxs(O.Fragment,{children:[O.jsx("ul",{children:r.map((c,d)=>{let h,f="";if(d<s){const{name:p="",image:m=""}=Jf(c);if(a)return O.jsx(vr,{element:"li",className:"contributor"},d);h=O.jsx(xu,{name:p,src:m,width:Om[i||"medium"],height:Om[i||"medium"]})}else if(d===s){const p=(t||r.length)-s;h=O.jsxs("small",{className:ae({"large-number":p>99}),children:["+",SO(p,0)]}),f="number-left"}return h?O.jsx("li",{className:ae("contributor",f),children:h},d):null})}),n&&O.jsx("span",{className:"label",children:typeof n=="string"?n:r.length===1?typeof r[0]=="string"?l.formatMessage({id:`member_${r[0]}`}):Qf(r[0].name||"",20):null})]})})},v1=({children:e,locale:t,messages:r})=>{const n=t||"en",i={...wO[n],...r||{}};return O.jsx(WA,{locale:n,messages:i,children:e})},jr=$.createContext(null),E1=({children:e,user:t})=>O.jsx(jr.Provider,{value:t,children:e});var mo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ao=typeof window>"u"||"Deno"in window;function Ht(){}function _1(e,t){return typeof e=="function"?e(t):e}function sf(e){return typeof e=="number"&&e>=0&&e!==1/0}function I0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Am(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(n){if(t.queryHash!==Zf(a,t.options))return!1}else if(!Ps(t.queryKey,a))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function Cm(e,t){const{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Rs(t.options.mutationKey)!==Rs(o))return!1}else if(!Ps(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function Zf(e,t){return((t==null?void 0:t.queryKeyHashFn)||Rs)(e)}function Rs(e){return JSON.stringify(e,(t,r)=>af(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Ps(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!Ps(e[r],t[r])):!1}function L0(e,t){if(e===t)return e;const r=Rm(e)&&Rm(t);if(r||af(e)&&af(t)){const n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),o=i.length,a=r?[]:{};let s=0;for(let u=0;u<o;u++){const l=r?u:i[u];a[l]=L0(e[l],t[l]),a[l]===e[l]&&s++}return n===o&&s===n?e:a}return t}function ru(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Rm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function af(e){if(!Pm(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!Pm(r)||!r.hasOwnProperty("isPrototypeOf"))}function Pm(e){return Object.prototype.toString.call(e)==="[object Object]"}function k0(e){return new Promise(t=>{setTimeout(t,e)})}function Nm(e){k0(0).then(e)}function uf(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?L0(e,t):t}function b1(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function w1(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Vn,tn,ki,Jm,S1=(Jm=class extends mo{constructor(){super();ie(this,Vn,void 0);ie(this,tn,void 0);ie(this,ki,void 0);J(this,ki,t=>{if(!ao&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){N(this,tn)||this.setEventListener(N(this,ki))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,tn))==null||t.call(this),J(this,tn,void 0))}setEventListener(t){var r;J(this,ki,t),(r=N(this,tn))==null||r.call(this),J(this,tn,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){N(this,Vn)!==t&&(J(this,Vn,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof N(this,Vn)=="boolean"?N(this,Vn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Vn=new WeakMap,tn=new WeakMap,ki=new WeakMap,Jm),nu=new S1,Mi,rn,Fi,Zm,T1=(Zm=class extends mo{constructor(){super();ie(this,Mi,!0);ie(this,rn,void 0);ie(this,Fi,void 0);J(this,Fi,t=>{if(!ao&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){N(this,rn)||this.setEventListener(N(this,Fi))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,rn))==null||t.call(this),J(this,rn,void 0))}setEventListener(t){var r;J(this,Fi,t),(r=N(this,rn))==null||r.call(this),J(this,rn,t(this.setOnline.bind(this)))}setOnline(t){N(this,Mi)!==t&&(J(this,Mi,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return N(this,Mi)}},Mi=new WeakMap,rn=new WeakMap,Fi=new WeakMap,Zm),Ns=new T1;function x1(e){return Math.min(1e3*2**e,3e4)}function Au(e){return(e??"online")==="online"?Ns.isOnline():!0}var M0=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function fl(e){return e instanceof M0}function F0(e){let t=!1,r=0,n=!1,i,o,a;const s=new Promise((_,S)=>{o=_,a=S}),u=_=>{var S;n||(f(new M0(_)),(S=e.abort)==null||S.call(e))},l=()=>{t=!0},c=()=>{t=!1},d=()=>!nu.isFocused()||e.networkMode!=="always"&&!Ns.isOnline(),h=_=>{var S;n||(n=!0,(S=e.onSuccess)==null||S.call(e,_),i==null||i(),o(_))},f=_=>{var S;n||(n=!0,(S=e.onError)==null||S.call(e,_),i==null||i(),a(_))},p=()=>new Promise(_=>{var S;i=E=>{const b=n||!d();return b&&_(E),b},(S=e.onPause)==null||S.call(e)}).then(()=>{var _;i=void 0,n||(_=e.onContinue)==null||_.call(e)}),m=()=>{if(n)return;let _;try{_=e.fn()}catch(S){_=Promise.reject(S)}Promise.resolve(_).then(h).catch(S=>{var P;if(n)return;const E=e.retry??(ao?0:3),b=e.retryDelay??x1,T=typeof b=="function"?b(r,S):b,w=E===!0||typeof E=="number"&&r<E||typeof E=="function"&&E(r,S);if(t||!w){f(S);return}r++,(P=e.onFail)==null||P.call(e,r,S),k0(T).then(()=>{if(d())return p()}).then(()=>{t?f(S):m()})})};return Au(e.networkMode)?m():p().then(m),{promise:s,cancel:u,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:l,continueRetry:c}}function O1(){let e=[],t=0,r=c=>{c()},n=c=>{c()};const i=c=>{let d;t++;try{d=c()}finally{t--,t||s()}return d},o=c=>{t?e.push(c):Nm(()=>{r(c)})},a=c=>(...d)=>{o(()=>{c(...d)})},s=()=>{const c=e;e=[],c.length&&Nm(()=>{n(()=>{c.forEach(d=>{r(d)})})})};return{batch:i,batchCalls:a,schedule:o,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{n=c}}}var Ke=O1(),Wn,eg,D0=(eg=class{constructor(){ie(this,Wn,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),sf(this.gcTime)&&J(this,Wn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ao?1/0:5*60*1e3))}clearGcTimeout(){N(this,Wn)&&(clearTimeout(N(this,Wn)),J(this,Wn,void 0))}},Wn=new WeakMap,eg),Di,Bi,Bt,nn,Ut,it,Fs,zn,Ui,qa,er,Mr,tg,A1=(tg=class extends D0{constructor(t){super();ie(this,Ui);ie(this,er);ie(this,Di,void 0);ie(this,Bi,void 0);ie(this,Bt,void 0);ie(this,nn,void 0);ie(this,Ut,void 0);ie(this,it,void 0);ie(this,Fs,void 0);ie(this,zn,void 0);J(this,zn,!1),J(this,Fs,t.defaultOptions),ye(this,Ui,qa).call(this,t.options),J(this,it,[]),J(this,Bt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,J(this,Di,t.state||C1(this.options)),this.state=N(this,Di),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!N(this,it).length&&this.state.fetchStatus==="idle"&&N(this,Bt).remove(this)}setData(t,r){const n=uf(this.state.data,t,this.options);return ye(this,er,Mr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ye(this,er,Mr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n;const r=N(this,nn);return(n=N(this,Ut))==null||n.cancel(t),r?r.then(Ht).catch(Ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,Di))}isActive(){return N(this,it).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||N(this,it).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!I0(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=N(this,it).find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=N(this,Ut))==null||r.continue()}onOnline(){var r;const t=N(this,it).find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=N(this,Ut))==null||r.continue()}addObserver(t){N(this,it).includes(t)||(N(this,it).push(t),this.clearGcTimeout(),N(this,Bt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){N(this,it).includes(t)&&(J(this,it,N(this,it).filter(r=>r!==t)),N(this,it).length||(N(this,Ut)&&(N(this,zn)?N(this,Ut).cancel({revert:!0}):N(this,Ut).cancelRetry()),this.scheduleGc()),N(this,Bt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return N(this,it).length}invalidate(){this.state.isInvalidated||ye(this,er,Mr).call(this,{type:"invalidate"})}fetch(t,r){var l,c,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(N(this,nn))return(l=N(this,Ut))==null||l.continueRetry(),N(this,nn)}if(t&&ye(this,Ui,qa).call(this,t),!this.options.queryFn){const f=N(this,it).find(p=>p.options.queryFn);f&&ye(this,Ui,qa).call(this,f.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const n=new AbortController,i={queryKey:this.queryKey,meta:this.meta},o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(J(this,zn,!0),n.signal)})};o(i);const a=()=>this.options.queryFn?(J(this,zn,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),s={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};o(s),(c=this.options.behavior)==null||c.onFetch(s,this),J(this,Bi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&ye(this,er,Mr).call(this,{type:"fetch",meta:(h=s.fetchOptions)==null?void 0:h.meta});const u=f=>{var p,m,_,S;fl(f)&&f.silent||ye(this,er,Mr).call(this,{type:"error",error:f}),fl(f)||((m=(p=N(this,Bt).config).onError)==null||m.call(p,f,this),(S=(_=N(this,Bt).config).onSettled)==null||S.call(_,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return J(this,Ut,F0({fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var p,m,_,S;if(typeof f>"u"){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),u(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(m=(p=N(this,Bt).config).onSuccess)==null||m.call(p,f,this),(S=(_=N(this,Bt).config).onSettled)==null||S.call(_,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:u,onFail:(f,p)=>{ye(this,er,Mr).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{ye(this,er,Mr).call(this,{type:"pause"})},onContinue:()=>{ye(this,er,Mr).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode})),J(this,nn,N(this,Ut).promise),N(this,nn)}},Di=new WeakMap,Bi=new WeakMap,Bt=new WeakMap,nn=new WeakMap,Ut=new WeakMap,it=new WeakMap,Fs=new WeakMap,zn=new WeakMap,Ui=new WeakSet,qa=function(t){this.options={...N(this,Fs),...t},this.updateGcTime(this.options.gcTime)},er=new WeakSet,Mr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:Au(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return fl(i)&&i.revert&&N(this,Bi)?{...N(this,Bi),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Ke.batch(()=>{N(this,it).forEach(n=>{n.onQueryUpdate()}),N(this,Bt).notify({query:this,type:"updated",action:t})})},tg);function C1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var fr,rg,R1=(rg=class extends mo{constructor(t={}){super();ie(this,fr,void 0);this.config=t,J(this,fr,new Map)}build(t,r,n){const i=r.queryKey,o=r.queryHash??Zf(i,r);let a=this.get(o);return a||(a=new A1({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){N(this,fr).has(t.queryHash)||(N(this,fr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=N(this,fr).get(t.queryHash);r&&(t.destroy(),r===t&&N(this,fr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,fr).get(t)}getAll(){return[...N(this,fr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Am(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Am(t,n)):r}notify(t){Ke.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Ke.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ke.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},fr=new WeakMap,rg),hr,Ds,kt,$i,dr,Zr,ng,P1=(ng=class extends D0{constructor(t){super();ie(this,dr);ie(this,hr,void 0);ie(this,Ds,void 0);ie(this,kt,void 0);ie(this,$i,void 0);this.mutationId=t.mutationId,J(this,Ds,t.defaultOptions),J(this,kt,t.mutationCache),J(this,hr,[]),this.state=t.state||B0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...N(this,Ds),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,hr).includes(t)||(N(this,hr).push(t),this.clearGcTimeout(),N(this,kt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){J(this,hr,N(this,hr).filter(r=>r!==t)),this.scheduleGc(),N(this,kt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,hr).length||(this.state.status==="pending"?this.scheduleGc():N(this,kt).remove(this))}continue(){var t;return((t=N(this,$i))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,s,u,l,c,d,h,f,p,m,_,S,E,b,T,w,P,R;const r=()=>(J(this,$i,F0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,U)=>{ye(this,dr,Zr).call(this,{type:"failed",failureCount:L,error:U})},onPause:()=>{ye(this,dr,Zr).call(this,{type:"pause"})},onContinue:()=>{ye(this,dr,Zr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),N(this,$i).promise),n=this.state.status==="pending";try{if(!n){ye(this,dr,Zr).call(this,{type:"pending",variables:t}),await((o=(i=N(this,kt).config).onMutate)==null?void 0:o.call(i,t,this));const U=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));U!==this.state.context&&ye(this,dr,Zr).call(this,{type:"pending",context:U,variables:t})}const L=await r();return await((l=(u=N(this,kt).config).onSuccess)==null?void 0:l.call(u,L,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,L,t,this.state.context)),await((f=(h=N(this,kt).config).onSettled)==null?void 0:f.call(h,L,null,this.state.variables,this.state.context,this)),await((m=(p=this.options).onSettled)==null?void 0:m.call(p,L,null,t,this.state.context)),ye(this,dr,Zr).call(this,{type:"success",data:L}),L}catch(L){try{throw await((S=(_=N(this,kt).config).onError)==null?void 0:S.call(_,L,t,this.state.context,this)),await((b=(E=this.options).onError)==null?void 0:b.call(E,L,t,this.state.context)),await((w=(T=N(this,kt).config).onSettled)==null?void 0:w.call(T,void 0,L,this.state.variables,this.state.context,this)),await((R=(P=this.options).onSettled)==null?void 0:R.call(P,void 0,L,t,this.state.context)),L}finally{ye(this,dr,Zr).call(this,{type:"error",error:L})}}}},hr=new WeakMap,Ds=new WeakMap,kt=new WeakMap,$i=new WeakMap,dr=new WeakSet,Zr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Au(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ke.batch(()=>{N(this,hr).forEach(n=>{n.onMutationUpdate(t)}),N(this,kt).notify({mutation:this,type:"updated",action:t})})},ng);function B0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $t,Bs,Qn,ig,N1=(ig=class extends mo{constructor(t={}){super();ie(this,$t,void 0);ie(this,Bs,void 0);ie(this,Qn,void 0);this.config=t,J(this,$t,[]),J(this,Bs,0)}build(t,r,n){const i=new P1({mutationCache:this,mutationId:++ca(this,Bs)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){N(this,$t).push(t),this.notify({type:"added",mutation:t})}remove(t){J(this,$t,N(this,$t).filter(r=>r!==t)),this.notify({type:"removed",mutation:t})}clear(){Ke.batch(()=>{N(this,$t).forEach(t=>{this.remove(t)})})}getAll(){return N(this,$t)}find(t){const r={exact:!0,...t};return N(this,$t).find(n=>Cm(r,n))}findAll(t={}){return N(this,$t).filter(r=>Cm(t,r))}notify(t){Ke.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){return J(this,Qn,(N(this,Qn)??Promise.resolve()).then(()=>{const t=N(this,$t).filter(r=>r.state.isPaused);return Ke.batch(()=>t.reduce((r,n)=>r.then(()=>n.continue().catch(Ht)),Promise.resolve()))}).then(()=>{J(this,Qn,void 0)})),N(this,Qn)}},$t=new WeakMap,Bs=new WeakMap,Qn=new WeakMap,ig);function I1(e){return{onFetch:(t,r)=>{const n=async()=>{var p,m,_,S,E;const i=t.options,o=(_=(m=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:_.direction,a=((S=t.state.data)==null?void 0:S.pages)||[],s=((E=t.state.data)==null?void 0:E.pageParams)||[],u={pages:[],pageParams:[]};let l=!1;const c=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?l=!0:t.signal.addEventListener("abort",()=>{l=!0}),t.signal)})},d=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),h=async(b,T,w)=>{if(l)return Promise.reject();if(T==null&&b.pages.length)return Promise.resolve(b);const P={queryKey:t.queryKey,pageParam:T,direction:w?"backward":"forward",meta:t.options.meta};c(P);const R=await d(P),{maxPages:L}=t.options,U=w?w1:b1;return{pages:U(b.pages,R,L),pageParams:U(b.pageParams,T,L)}};let f;if(o&&a.length){const b=o==="backward",T=b?L1:Im,w={pages:a,pageParams:s},P=T(i,w);f=await h(w,P,b)}else{f=await h(u,s[0]??i.initialPageParam);const b=e??a.length;for(let T=1;T<b;T++){const w=Im(i,f);f=await h(f,w)}}return f};t.options.persister?t.fetchFn=()=>{var i,o;return(o=(i=t.options).persister)==null?void 0:o.call(i,n,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=n}}}function Im(e,{pages:t,pageParams:r}){const n=t.length-1;return e.getNextPageParam(t[n],t,r[n],r)}function L1(e,{pages:t,pageParams:r}){var n;return(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r)}var Ye,on,sn,ji,Hi,an,qi,Gi,og,k1=(og=class{constructor(e={}){ie(this,Ye,void 0);ie(this,on,void 0);ie(this,sn,void 0);ie(this,ji,void 0);ie(this,Hi,void 0);ie(this,an,void 0);ie(this,qi,void 0);ie(this,Gi,void 0);J(this,Ye,e.queryCache||new R1),J(this,on,e.mutationCache||new N1),J(this,sn,e.defaultOptions||{}),J(this,ji,new Map),J(this,Hi,new Map),J(this,an,0)}mount(){ca(this,an)._++,N(this,an)===1&&(J(this,qi,nu.subscribe(()=>{nu.isFocused()&&(this.resumePausedMutations(),N(this,Ye).onFocus())})),J(this,Gi,Ns.subscribe(()=>{Ns.isOnline()&&(this.resumePausedMutations(),N(this,Ye).onOnline())})))}unmount(){var e,t;ca(this,an)._--,N(this,an)===0&&((e=N(this,qi))==null||e.call(this),J(this,qi,void 0),(t=N(this,Gi))==null||t.call(this),J(this,Gi,void 0))}isFetching(e){return N(this,Ye).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,on).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=N(this,Ye).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=N(this,Ye).find({queryKey:e}),i=n==null?void 0:n.state.data,o=_1(t,i);if(typeof o>"u")return;const a=this.defaultQueryOptions({queryKey:e});return N(this,Ye).build(this,a).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return Ke.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var t;return(t=N(this,Ye).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=N(this,Ye);Ke.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=N(this,Ye),n={type:"active",...e};return Ke.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=Ke.batch(()=>N(this,Ye).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(Ht).catch(Ht)}invalidateQueries(e={},t={}){return Ke.batch(()=>{if(N(this,Ye).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=Ke.batch(()=>N(this,Ye).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,r);return r.throwOnError||(o=o.catch(Ht)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Ht)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const r=N(this,Ye).build(this,t);return r.isStaleByTime(t.staleTime)?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ht).catch(Ht)}fetchInfiniteQuery(e){return e.behavior=I1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ht).catch(Ht)}resumePausedMutations(){return N(this,on).resumePausedMutations()}getQueryCache(){return N(this,Ye)}getMutationCache(){return N(this,on)}getDefaultOptions(){return N(this,sn)}setDefaultOptions(e){J(this,sn,e)}setQueryDefaults(e,t){N(this,ji).set(Rs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,ji).values()];let r={};return t.forEach(n=>{Ps(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){N(this,Hi).set(Rs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,Hi).values()];let r={};return t.forEach(n=>{Ps(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...N(this,sn).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Zf(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,sn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,Ye).clear(),N(this,on).clear()}},Ye=new WeakMap,on=new WeakMap,sn=new WeakMap,ji=new WeakMap,Hi=new WeakMap,an=new WeakMap,qi=new WeakMap,Gi=new WeakMap,og),Ct,Be,Vi,mt,Yn,Wi,pr,Us,zi,Qi,Kn,Xn,un,Jn,Zn,_s,$s,cf,js,lf,Hs,ff,qs,hf,Gs,df,Vs,pf,Ws,mf,pu,U0,sg,M1=(sg=class extends mo{constructor(t,r){super();ie(this,Zn);ie(this,$s);ie(this,js);ie(this,Hs);ie(this,qs);ie(this,Gs);ie(this,Vs);ie(this,Ws);ie(this,pu);ie(this,Ct,void 0);ie(this,Be,void 0);ie(this,Vi,void 0);ie(this,mt,void 0);ie(this,Yn,void 0);ie(this,Wi,void 0);ie(this,pr,void 0);ie(this,Us,void 0);ie(this,zi,void 0);ie(this,Qi,void 0);ie(this,Kn,void 0);ie(this,Xn,void 0);ie(this,un,void 0);ie(this,Jn,void 0);J(this,Be,void 0),J(this,Vi,void 0),J(this,mt,void 0),J(this,Jn,new Set),J(this,Ct,t),this.options=r,J(this,pr,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(N(this,Be).addObserver(this),Lm(N(this,Be),this.options)&&ye(this,Zn,_s).call(this),ye(this,qs,hf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return gf(N(this,Be),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return gf(N(this,Be),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ye(this,Gs,df).call(this),ye(this,Vs,pf).call(this),N(this,Be).removeObserver(this)}setOptions(t,r){const n=this.options,i=N(this,Be);if(this.options=N(this,Ct).defaultQueryOptions(t),ru(n,this.options)||N(this,Ct).getQueryCache().notify({type:"observerOptionsUpdated",query:N(this,Be),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),ye(this,Ws,mf).call(this);const o=this.hasListeners();o&&km(N(this,Be),i,this.options,n)&&ye(this,Zn,_s).call(this),this.updateResult(r),o&&(N(this,Be)!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&ye(this,$s,cf).call(this);const a=ye(this,js,lf).call(this);o&&(N(this,Be)!==i||this.options.enabled!==n.enabled||a!==N(this,un))&&ye(this,Hs,ff).call(this,a)}getOptimisticResult(t){const r=N(this,Ct).getQueryCache().build(N(this,Ct),t),n=this.createResult(r,t);return D1(this,n)&&(J(this,mt,n),J(this,Wi,this.options),J(this,Yn,N(this,Be).state)),n}getCurrentResult(){return N(this,mt)}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(N(this,Jn).add(n),t[n])})}),r}getCurrentQuery(){return N(this,Be)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=N(this,Ct).defaultQueryOptions(t),n=N(this,Ct).getQueryCache().build(N(this,Ct),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return ye(this,Zn,_s).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),N(this,mt)))}createResult(t,r){var P;const n=N(this,Be),i=this.options,o=N(this,mt),a=N(this,Yn),s=N(this,Wi),l=t!==n?t.state:N(this,Vi),{state:c}=t;let{error:d,errorUpdatedAt:h,fetchStatus:f,status:p}=c,m=!1,_;if(r._optimisticResults){const R=this.hasListeners(),L=!R&&Lm(t,r),U=R&&km(t,n,r,i);(L||U)&&(f=Au(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(p="pending")),r._optimisticResults==="isRestoring"&&(f="idle")}if(r.select&&typeof c.data<"u")if(o&&c.data===(a==null?void 0:a.data)&&r.select===N(this,Us))_=N(this,zi);else try{J(this,Us,r.select),_=r.select(c.data),_=uf(o==null?void 0:o.data,_,r),J(this,zi,_),J(this,pr,null)}catch(R){J(this,pr,R)}else _=c.data;if(typeof r.placeholderData<"u"&&typeof _>"u"&&p==="pending"){let R;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))R=o.data;else if(R=typeof r.placeholderData=="function"?r.placeholderData((P=N(this,Qi))==null?void 0:P.state.data,N(this,Qi)):r.placeholderData,r.select&&typeof R<"u")try{R=r.select(R),J(this,pr,null)}catch(L){J(this,pr,L)}typeof R<"u"&&(p="success",_=uf(o==null?void 0:o.data,R,r),m=!0)}N(this,pr)&&(d=N(this,pr),_=N(this,zi),h=Date.now(),p="error");const S=f==="fetching",E=p==="pending",b=p==="error",T=E&&S;return{status:p,fetchStatus:f,isPending:E,isSuccess:p==="success",isError:b,isInitialLoading:T,isLoading:T,data:_,dataUpdatedAt:c.dataUpdatedAt,error:d,errorUpdatedAt:h,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:S,isRefetching:S&&!E,isLoadingError:b&&c.dataUpdatedAt===0,isPaused:f==="paused",isPlaceholderData:m,isRefetchError:b&&c.dataUpdatedAt!==0,isStale:eh(t,r),refetch:this.refetch}}updateResult(t){const r=N(this,mt),n=this.createResult(N(this,Be),this.options);if(J(this,Yn,N(this,Be).state),J(this,Wi,this.options),ru(n,r))return;N(this,Yn).data!==void 0&&J(this,Qi,N(this,Be)),J(this,mt,n);const i={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!N(this,Jn).size)return!0;const u=new Set(s??N(this,Jn));return this.options.throwOnError&&u.add("error"),Object.keys(N(this,mt)).some(l=>{const c=l;return N(this,mt)[c]!==r[c]&&u.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),ye(this,pu,U0).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ye(this,qs,hf).call(this)}},Ct=new WeakMap,Be=new WeakMap,Vi=new WeakMap,mt=new WeakMap,Yn=new WeakMap,Wi=new WeakMap,pr=new WeakMap,Us=new WeakMap,zi=new WeakMap,Qi=new WeakMap,Kn=new WeakMap,Xn=new WeakMap,un=new WeakMap,Jn=new WeakMap,Zn=new WeakSet,_s=function(t){ye(this,Ws,mf).call(this);let r=N(this,Be).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Ht)),r},$s=new WeakSet,cf=function(){if(ye(this,Gs,df).call(this),ao||N(this,mt).isStale||!sf(this.options.staleTime))return;const r=I0(N(this,mt).dataUpdatedAt,this.options.staleTime)+1;J(this,Kn,setTimeout(()=>{N(this,mt).isStale||this.updateResult()},r))},js=new WeakSet,lf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(N(this,Be)):this.options.refetchInterval)??!1},Hs=new WeakSet,ff=function(t){ye(this,Vs,pf).call(this),J(this,un,t),!(ao||this.options.enabled===!1||!sf(N(this,un))||N(this,un)===0)&&J(this,Xn,setInterval(()=>{(this.options.refetchIntervalInBackground||nu.isFocused())&&ye(this,Zn,_s).call(this)},N(this,un)))},qs=new WeakSet,hf=function(){ye(this,$s,cf).call(this),ye(this,Hs,ff).call(this,ye(this,js,lf).call(this))},Gs=new WeakSet,df=function(){N(this,Kn)&&(clearTimeout(N(this,Kn)),J(this,Kn,void 0))},Vs=new WeakSet,pf=function(){N(this,Xn)&&(clearInterval(N(this,Xn)),J(this,Xn,void 0))},Ws=new WeakSet,mf=function(){const t=N(this,Ct).getQueryCache().build(N(this,Ct),this.options);if(t===N(this,Be))return;const r=N(this,Be);J(this,Be,t),J(this,Vi,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},pu=new WeakSet,U0=function(t){Ke.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(N(this,mt))}),N(this,Ct).getQueryCache().notify({query:N(this,Be),type:"observerResultsUpdated"})})},sg);function F1(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Lm(e,t){return F1(e,t)||e.state.dataUpdatedAt>0&&gf(e,t,t.refetchOnMount)}function gf(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&eh(e,t)}return!1}function km(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&eh(e,r)}function eh(e,t){return e.isStaleByTime(t.staleTime)}function D1(e,t){return!ru(e.getCurrentResult(),t)}var cn,_t,jt,Dr,Yi,Ga,zs,yf,ag,B1=(ag=class extends mo{constructor(t,r){super();ie(this,Yi);ie(this,zs);ie(this,cn,void 0);ie(this,_t,void 0);ie(this,jt,void 0);ie(this,Dr,void 0);J(this,_t,void 0),J(this,cn,t),this.setOptions(r),this.bindMethods(),ye(this,Yi,Ga).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=N(this,cn).defaultMutationOptions(t),ru(r,this.options)||N(this,cn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:N(this,jt),observer:this}),(n=N(this,jt))==null||n.setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=N(this,jt))==null||t.removeObserver(this)}onMutationUpdate(t){ye(this,Yi,Ga).call(this),ye(this,zs,yf).call(this,t)}getCurrentResult(){return N(this,_t)}reset(){J(this,jt,void 0),ye(this,Yi,Ga).call(this),ye(this,zs,yf).call(this)}mutate(t,r){var n;return J(this,Dr,r),(n=N(this,jt))==null||n.removeObserver(this),J(this,jt,N(this,cn).getMutationCache().build(N(this,cn),this.options)),N(this,jt).addObserver(this),N(this,jt).execute(t)}},cn=new WeakMap,_t=new WeakMap,jt=new WeakMap,Dr=new WeakMap,Yi=new WeakSet,Ga=function(){var r;const t=((r=N(this,jt))==null?void 0:r.state)??B0();J(this,_t,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},zs=new WeakSet,yf=function(t){Ke.batch(()=>{var r,n,i,o,a,s,u,l;N(this,Dr)&&this.hasListeners()&&((t==null?void 0:t.type)==="success"?((n=(r=N(this,Dr)).onSuccess)==null||n.call(r,t.data,N(this,_t).variables,N(this,_t).context),(o=(i=N(this,Dr)).onSettled)==null||o.call(i,t.data,null,N(this,_t).variables,N(this,_t).context)):(t==null?void 0:t.type)==="error"&&((s=(a=N(this,Dr)).onError)==null||s.call(a,t.error,N(this,_t).variables,N(this,_t).context),(l=(u=N(this,Dr)).onSettled)==null||l.call(u,void 0,t.error,N(this,_t).variables,N(this,_t).context))),this.listeners.forEach(c=>{c(N(this,_t))})})},ag),$0=pe.createContext(void 0),go=e=>{const t=pe.useContext($0);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},U1=({client:e,children:t})=>(pe.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),pe.createElement($0.Provider,{value:e},t)),j0=pe.createContext(!1),$1=()=>pe.useContext(j0);j0.Provider;function j1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var H1=pe.createContext(j1()),q1=()=>pe.useContext(H1);function H0(e,t){return typeof e=="function"?e(...t):!!e}var G1=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},V1=e=>{pe.useEffect(()=>{e.clearReset()},[e])},W1=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&H0(r,[e.error,n]),z1=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Q1=(e,t)=>e.isLoading&&e.isFetching&&!t,Y1=(e,t,r)=>(e==null?void 0:e.suspense)&&Q1(t,r),K1=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function X1(e,t,r){const n=go(r),i=$1(),o=q1(),a=n.defaultQueryOptions(e);a._optimisticResults=i?"isRestoring":"optimistic",z1(a),G1(a,o),V1(o);const[s]=pe.useState(()=>new t(n,a)),u=s.getOptimisticResult(a);if(pe.useSyncExternalStore(pe.useCallback(l=>{const c=i?()=>{}:s.subscribe(Ke.batchCalls(l));return s.updateResult(),c},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),pe.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),Y1(a,u,i))throw K1(a,s,o);if(W1({result:u,errorResetBoundary:o,throwOnError:a.throwOnError,query:s.getCurrentQuery()}))throw u.error;return a.notifyOnChangeProps?u:s.trackResult(u)}function q0(e,t){return X1(e,M1,t)}function hn(e,t){const r=go(t),[n]=pe.useState(()=>new B1(r,e));pe.useEffect(()=>{n.setOptions(e)},[n,e]);const i=pe.useSyncExternalStore(pe.useCallback(a=>n.subscribe(Ke.batchCalls(a)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=pe.useCallback((a,s)=>{n.mutate(a,s).catch(J1)},[n]);if(i.error&&H0(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function J1(){}var ve={context:void 0,registry:void 0};function bs(e){ve.context=e}var Z1=(e,t)=>e===t,Is=Symbol("solid-proxy"),th=Symbol("solid-track"),eR=Symbol("solid-dev-component"),iu={equals:Z1},G0=Q0,Hr=1,ou=2,V0={owned:null,cleanups:null,context:null,owner:null},hl={},Ue=null,dl=null,Me=null,gt=null,$r=null,Cu=0,[tR,nI]=wt(!1);function dn(e,t){const r=Me,n=Ue,i=e.length===0,o=i?V0:{owned:null,cleanups:null,context:null,owner:t===void 0?n:t},a=i?e:()=>e(()=>Xe(()=>Pu(o)));Ue=o,Me=null;try{return Er(a,!0)}finally{Me=r,Ue=n}}function wt(e,t){t=t?Object.assign({},iu,t):iu;const r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=i=>(typeof i=="function"&&(i=i(r.value)),z0(r,i));return[W0.bind(r),n]}function vf(e,t,r){const n=Ru(e,t,!0,Hr);yo(n)}function pn(e,t,r){const n=Ru(e,t,!1,Hr);yo(n)}function rh(e,t,r){G0=mR;const n=Ru(e,t,!1,Hr);(!r||!r.render)&&(n.user=!0),$r?$r.push(n):yo(n)}function Tt(e,t,r){r=r?Object.assign({},iu,r):iu;const n=Ru(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=r.equals||void 0,yo(n),W0.bind(n)}function rR(e,t,r){let n,i,o;arguments.length===2&&typeof t=="object"||arguments.length===1?(n=!0,i=e,o=t||{}):(n=e,i=t,o=r||{});let a=null,s=hl,u=null,l=!1,c="initialValue"in o,d=typeof n=="function"&&Tt(n);const h=new Set,[f,p]=(o.storage||wt)(o.initialValue),[m,_]=wt(void 0),[S,E]=wt(void 0,{equals:!1}),[b,T]=wt(c?"ready":"unresolved");if(ve.context){u=`${ve.context.id}${ve.context.count++}`;let U;o.ssrLoadFrom==="initial"?s=o.initialValue:ve.load&&(U=ve.load(u))&&(s=U[0])}function w(U,q,G,j){return a===U&&(a=null,j!==void 0&&(c=!0),(U===s||q===s)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(j,{value:q})),s=hl,P(q,G)),q}function P(U,q){Er(()=>{q===void 0&&p(()=>U),T(q!==void 0?"errored":c?"ready":"unresolved"),_(q);for(const G of h.keys())G.decrement();h.clear()},!1)}function R(){const U=hR,q=f(),G=m();if(G!==void 0&&!a)throw G;return Me&&!Me.user&&U&&vf(()=>{S(),a&&(U.resolved||h.has(U)||(U.increment(),h.add(U)))}),q}function L(U=!0){if(U!==!1&&l)return;l=!1;const q=d?d():n;if(q==null||q===!1){w(a,Xe(f));return}const G=s!==hl?s:Xe(()=>i(q,{value:f(),refetching:U}));return typeof G!="object"||!(G&&"then"in G)?(w(a,G,void 0,q),G):(a=G,l=!0,queueMicrotask(()=>l=!1),Er(()=>{T(c?"refreshing":"pending"),E()},!1),G.then(j=>w(G,j,void 0,q),j=>w(G,void 0,K0(j),q)))}return Object.defineProperties(R,{state:{get:()=>b()},error:{get:()=>m()},loading:{get(){const U=b();return U==="pending"||U==="refreshing"}},latest:{get(){if(!c)return R();const U=m();if(U&&!a)throw U;return f()}}}),d?vf(()=>L(!1)):L(!1),[R,{refetch:L,mutate:p}]}function nR(e){return Er(e,!1)}function Xe(e){if(Me===null)return e();const t=Me;Me=null;try{return e()}finally{Me=t}}function iR(e,t,r){const n=Array.isArray(e);let i,o=r&&r.defer;return a=>{let s;if(n){s=Array(e.length);for(let l=0;l<e.length;l++)s[l]=e[l]()}else s=e();if(o){o=!1;return}const u=Xe(()=>t(s,i,a));return i=s,u}}function oR(e){rh(()=>Xe(e))}function Ls(e){return Ue===null||(Ue.cleanups===null?Ue.cleanups=[e]:Ue.cleanups.push(e)),e}function sR(){return Me}function Mm(){return Ue}function aR(e,t){const r=Ue,n=Me;Ue=e,Me=null;try{return Er(t,!0)}catch(i){ih(i)}finally{Ue=r,Me=n}}function uR(e){const t=Me,r=Ue;return Promise.resolve().then(()=>{Me=t,Ue=r;let n;return Er(e,!1),Me=Ue=null,n?n.done:void 0})}function cR(){return[tR,uR]}function lR(e,t){const r=Symbol("context");return{id:r,Provider:gR(r),defaultValue:e}}function fR(e){let t;return(t=X0(Ue,e.id))!==void 0?t:e.defaultValue}function nh(e){const t=Tt(e),r=Tt(()=>Ef(t()));return r.toArray=()=>{const n=r();return Array.isArray(n)?n:n!=null?[n]:[]},r}var hR;function W0(){if(this.sources&&this.state)if(this.state===Hr)yo(this);else{const e=gt;gt=null,Er(()=>au(this),!1),gt=e}if(Me){const e=this.observers?this.observers.length:0;Me.sources?(Me.sources.push(this),Me.sourceSlots.push(e)):(Me.sources=[this],Me.sourceSlots=[e]),this.observers?(this.observers.push(Me),this.observerSlots.push(Me.sources.length-1)):(this.observers=[Me],this.observerSlots=[Me.sources.length-1])}return this.value}function z0(e,t,r){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&Er(()=>{for(let i=0;i<e.observers.length;i+=1){const o=e.observers[i],a=dl&&dl.running;a&&dl.disposed.has(o),(a?!o.tState:!o.state)&&(o.pure?gt.push(o):$r.push(o),o.observers&&Y0(o)),a||(o.state=Hr)}if(gt.length>1e6)throw gt=[],new Error},!1)),t}function yo(e){if(!e.fn)return;Pu(e);const t=Ue,r=Me,n=Cu;Me=Ue=e,dR(e,e.value,n),Me=r,Ue=t}function dR(e,t,r){let n;try{n=e.fn(t)}catch(i){return e.pure&&(e.state=Hr,e.owned&&e.owned.forEach(Pu),e.owned=null),e.updatedAt=r+1,ih(i)}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?z0(e,n):e.value=n,e.updatedAt=r)}function Ru(e,t,r,n=Hr,i){const o={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ue,context:null,pure:r};return Ue===null||Ue!==V0&&(Ue.owned?Ue.owned.push(o):Ue.owned=[o]),o}function su(e){if(e.state===0)return;if(e.state===ou)return au(e);if(e.suspense&&Xe(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Cu);)e.state&&t.push(e);for(let r=t.length-1;r>=0;r--)if(e=t[r],e.state===Hr)yo(e);else if(e.state===ou){const n=gt;gt=null,Er(()=>au(e,t[0]),!1),gt=n}}function Er(e,t){if(gt)return e();let r=!1;t||(gt=[]),$r?r=!0:$r=[],Cu++;try{const n=e();return pR(r),n}catch(n){r||($r=null),gt=null,ih(n)}}function pR(e){if(gt&&(Q0(gt),gt=null),e)return;const t=$r;$r=null,t.length&&Er(()=>G0(t),!1)}function Q0(e){for(let t=0;t<e.length;t++)su(e[t])}function mR(e){let t,r=0;for(t=0;t<e.length;t++){const n=e[t];n.user?e[r++]=n:su(n)}if(ve.context){if(ve.count){ve.effects||(ve.effects=[]),ve.effects.push(...e.slice(0,r));return}else ve.effects&&(e=[...ve.effects,...e],r+=ve.effects.length,delete ve.effects);bs()}for(t=0;t<r;t++)su(e[t])}function au(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){const n=e.sources[r];if(n.sources){const i=n.state;i===Hr?n!==t&&(!n.updatedAt||n.updatedAt<Cu)&&su(n):i===ou&&au(n,t)}}}function Y0(e){for(let t=0;t<e.observers.length;t+=1){const r=e.observers[t];r.state||(r.state=ou,r.pure?gt.push(r):$r.push(r),r.observers&&Y0(r))}}function Pu(e){let t;if(e.sources)for(;e.sources.length;){const r=e.sources.pop(),n=e.sourceSlots.pop(),i=r.observers;if(i&&i.length){const o=i.pop(),a=r.observerSlots.pop();n<i.length&&(o.sourceSlots[a]=n,i[n]=o,r.observerSlots[n]=a)}}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Pu(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function K0(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function ih(e,t=Ue){throw K0(e)}function X0(e,t){return e?e.context&&e.context[t]!==void 0?e.context[t]:X0(e.owner,t):void 0}function Ef(e){if(typeof e=="function"&&!e.length)return Ef(e());if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++){const n=Ef(e[r]);Array.isArray(n)?t.push.apply(t,n):t.push(n)}return t}return e}function gR(e,t){return function(n){let i;return pn(()=>i=Xe(()=>(Ue.context={[e]:n.value},nh(()=>n.children))),void 0),i}}var _f=Symbol("fallback");function uu(e){for(let t=0;t<e.length;t++)e[t]()}function yR(e,t,r={}){let n=[],i=[],o=[],a=0,s=t.length>1?[]:null;return Ls(()=>uu(o)),()=>{let u=e()||[],l,c;return u[th],Xe(()=>{let h=u.length,f,p,m,_,S,E,b,T,w;if(h===0)a!==0&&(uu(o),o=[],n=[],i=[],a=0,s&&(s=[])),r.fallback&&(n=[_f],i[0]=dn(P=>(o[0]=P,r.fallback())),a=1);else if(a===0){for(i=new Array(h),c=0;c<h;c++)n[c]=u[c],i[c]=dn(d);a=h}else{for(m=new Array(h),_=new Array(h),s&&(S=new Array(h)),E=0,b=Math.min(a,h);E<b&&n[E]===u[E];E++);for(b=a-1,T=h-1;b>=E&&T>=E&&n[b]===u[T];b--,T--)m[T]=i[b],_[T]=o[b],s&&(S[T]=s[b]);for(f=new Map,p=new Array(T+1),c=T;c>=E;c--)w=u[c],l=f.get(w),p[c]=l===void 0?-1:l,f.set(w,c);for(l=E;l<=b;l++)w=n[l],c=f.get(w),c!==void 0&&c!==-1?(m[c]=i[l],_[c]=o[l],s&&(S[c]=s[l]),c=p[c],f.set(w,c)):o[l]();for(c=E;c<h;c++)c in m?(i[c]=m[c],o[c]=_[c],s&&(s[c]=S[c],s[c](c))):i[c]=dn(d);i=i.slice(0,a=h),n=u.slice(0)}return i});function d(h){if(o[c]=h,s){const[f,p]=wt(c);return s[c]=p,t(u[c],f)}return t(u[c])}}}function vR(e,t,r={}){let n=[],i=[],o=[],a=[],s=0,u;return Ls(()=>uu(o)),()=>{const l=e()||[];return l[th],Xe(()=>{if(l.length===0)return s!==0&&(uu(o),o=[],n=[],i=[],s=0,a=[]),r.fallback&&(n=[_f],i[0]=dn(d=>(o[0]=d,r.fallback())),s=1),i;for(n[0]===_f&&(o[0](),o=[],n=[],i=[],s=0),u=0;u<l.length;u++)u<n.length&&n[u]!==l[u]?a[u](()=>l[u]):u>=n.length&&(i[u]=dn(c));for(;u<n.length;u++)o[u]();return s=a.length=o.length=l.length,n=l.slice(0),i=i.slice(0,s)});function c(d){o[u]=d;const[h,f]=wt(l[u]);return a[u]=f,t(h,u)}}}function J0(e,t){return Xe(()=>e(t||{}))}function ka(){return!0}var bf={get(e,t,r){return t===Is?r:e.get(t)},has(e,t){return t===Is?!0:e.has(t)},set:ka,deleteProperty:ka,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:ka,deleteProperty:ka}},ownKeys(e){return e.keys()}};function pl(e){return(e=typeof e=="function"?e():e)?e:{}}function ER(){for(let e=0,t=this.length;e<t;++e){const r=this[e]();if(r!==void 0)return r}}function Z0(...e){let t=!1;for(let o=0;o<e.length;o++){const a=e[o];t=t||!!a&&Is in a,e[o]=typeof a=="function"?(t=!0,Tt(a)):a}if(t)return new Proxy({get(o){for(let a=e.length-1;a>=0;a--){const s=pl(e[a])[o];if(s!==void 0)return s}},has(o){for(let a=e.length-1;a>=0;a--)if(o in pl(e[a]))return!0;return!1},keys(){const o=[];for(let a=0;a<e.length;a++)o.push(...Object.keys(pl(e[a])));return[...new Set(o)]}},bf);const r={},n={},i=new Set;for(let o=e.length-1;o>=0;o--){const a=e[o];if(!a)continue;const s=Object.getOwnPropertyNames(a);for(let u=0,l=s.length;u<l;u++){const c=s[u];if(c==="__proto__"||c==="constructor")continue;const d=Object.getOwnPropertyDescriptor(a,c);if(!i.has(c))d.get?(i.add(c),Object.defineProperty(r,c,{enumerable:!0,configurable:!0,get:ER.bind(n[c]=[d.get.bind(a)])})):(d.value!==void 0&&i.add(c),r[c]=d.value);else{const h=n[c];h?d.get?h.push(d.get.bind(a)):d.value!==void 0&&h.push(()=>d.value):r[c]===void 0&&(r[c]=d.value)}}}return r}function eE(e,...t){if(Is in e){const i=new Set(t.length>1?t.flat():t[0]),o=t.map(a=>new Proxy({get(s){return a.includes(s)?e[s]:void 0},has(s){return a.includes(s)&&s in e},keys(){return a.filter(s=>s in e)}},bf));return o.push(new Proxy({get(a){return i.has(a)?void 0:e[a]},has(a){return i.has(a)?!1:a in e},keys(){return Object.keys(e).filter(a=>!i.has(a))}},bf)),o}const r={},n=t.map(()=>({}));for(const i of Object.getOwnPropertyNames(e)){const o=Object.getOwnPropertyDescriptor(e,i),a=!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable;let s=!1,u=0;for(const l of t)l.includes(i)&&(s=!0,a?n[u][i]=o.value:Object.defineProperty(n[u],i,o)),++u;s||(a?r[i]=o.value:Object.defineProperty(r,i,o))}return[...n,r]}function _R(e){let t,r;const n=i=>{const o=ve.context;if(o){const[s,u]=wt();ve.count||(ve.count=0),ve.count++,(r||(r=e())).then(l=>{bs(o),ve.count--,u(()=>l.default),bs()}),t=s}else if(!t){const[s]=rR(()=>(r||(r=e())).then(u=>u.default));t=s}let a;return Tt(()=>(a=t())&&Xe(()=>{if(!o)return a(i);const s=ve.context;bs(o);const u=a(i);return bs(s),u}))};return n.preload=()=>r||((r=e()).then(i=>t=()=>i.default),r),n}var bR=0;function wR(){const e=ve.context;return e?`${e.id}${e.count++}`:`cl-${bR++}`}var tE=e=>`Stale read from <${e}>.`;function SR(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Tt(yR(()=>e.each,e.children,t||void 0))}function TR(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Tt(vR(()=>e.each,e.children,t||void 0))}function xR(e){const t=e.keyed,r=Tt(()=>e.when,void 0,{equals:(n,i)=>t?n===i:!n==!i});return Tt(()=>{const n=r();if(n){const i=e.children;return typeof i=="function"&&i.length>0?Xe(()=>i(t?n:()=>{if(!Xe(r))throw tE("Show");return e.when})):i}return e.fallback},void 0,void 0)}function OR(e){let t=!1;const r=(o,a)=>o[0]===a[0]&&(t?o[1]===a[1]:!o[1]==!a[1])&&o[2]===a[2],n=nh(()=>e.children),i=Tt(()=>{let o=n();Array.isArray(o)||(o=[o]);for(let a=0;a<o.length;a++){const s=o[a].when;if(s)return t=!!o[a].keyed,[a,s,o[a]]}return[-1]},void 0,{equals:r});return Tt(()=>{const[o,a,s]=i();if(o<0)return e.fallback;const u=s.children;return typeof u=="function"&&u.length>0?Xe(()=>u(t?a:()=>{if(Xe(i)[0]!==o)throw tE("Match");return s.when})):u},void 0,void 0)}function AR(e){return e}var CR=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],RR=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...CR]),PR=new Set(["innerHTML","textContent","innerText","children"]),NR=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),IR=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function LR(e,t){const r=IR[e];return typeof r=="object"?r[t]?r.$:void 0:r}var kR=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),MR=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),FR={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function DR(e,t,r){let n=r.length,i=t.length,o=n,a=0,s=0,u=t[i-1].nextSibling,l=null;for(;a<i||s<o;){if(t[a]===r[s]){a++,s++;continue}for(;t[i-1]===r[o-1];)i--,o--;if(i===a){const c=o<n?s?r[s-1].nextSibling:r[o-s]:u;for(;s<o;)e.insertBefore(r[s++],c)}else if(o===s)for(;a<i;)(!l||!l.has(t[a]))&&t[a].remove(),a++;else if(t[a]===r[o-1]&&r[s]===t[i-1]){const c=t[--i].nextSibling;e.insertBefore(r[s++],t[a++].nextSibling),e.insertBefore(r[--o],c),t[i]=r[o]}else{if(!l){l=new Map;let d=s;for(;d<o;)l.set(r[d],d++)}const c=l.get(t[a]);if(c!=null)if(s<c&&c<o){let d=a,h=1,f;for(;++d<i&&d<o&&!((f=l.get(t[d]))==null||f!==c+h);)h++;if(h>c-s){const p=t[a];for(;s<c;)e.insertBefore(r[s++],p)}else e.replaceChild(r[s++],t[a++])}else a++;else t[a++].remove()}}}var Fm="_$DX_DELEGATE";function BR(e,t,r,n={}){let i;return dn(o=>{i=o,t===document?e():lu(t,e(),t.firstChild?null:void 0,r)},n.owner),()=>{i(),t.textContent=""}}function UR(e,t,r){let n;const i=()=>{const a=document.createElement("template");return a.innerHTML=e,r?a.content.firstChild.firstChild:a.content.firstChild},o=t?()=>Xe(()=>document.importNode(n||(n=i()),!0)):()=>(n||(n=i())).cloneNode(!0);return o.cloneNode=o,o}function rE(e,t=window.document){const r=t[Fm]||(t[Fm]=new Set);for(let n=0,i=e.length;n<i;n++){const o=e[n];r.has(o)||(r.add(o),t.addEventListener(o,zR))}}function cu(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)}function $R(e,t,r,n){n==null?e.removeAttributeNS(t,r):e.setAttributeNS(t,r,n)}function nE(e,t){t==null?e.removeAttribute("class"):e.className=t}function iE(e,t,r,n){if(n)Array.isArray(r)?(e[`$$${t}`]=r[0],e[`$$${t}Data`]=r[1]):e[`$$${t}`]=r;else if(Array.isArray(r)){const i=r[0];e.addEventListener(t,r[0]=o=>i.call(e,r[1],o))}else e.addEventListener(t,r)}function jR(e,t,r={}){const n=Object.keys(t||{}),i=Object.keys(r);let o,a;for(o=0,a=i.length;o<a;o++){const s=i[o];!s||s==="undefined"||t[s]||(Dm(e,s,!1),delete r[s])}for(o=0,a=n.length;o<a;o++){const s=n[o],u=!!t[s];!s||s==="undefined"||r[s]===u||!u||(Dm(e,s,!0),r[s]=u)}return r}function HR(e,t,r){if(!t)return r?cu(e,"style"):t;const n=e.style;if(typeof t=="string")return n.cssText=t;typeof r=="string"&&(n.cssText=r=void 0),r||(r={}),t||(t={});let i,o;for(o in r)t[o]==null&&n.removeProperty(o),delete r[o];for(o in t)i=t[o],i!==r[o]&&(n.setProperty(o,i),r[o]=i);return r}function oE(e,t={},r,n){const i={};return n||pn(()=>i.children=uo(e,t.children,i.children)),pn(()=>t.ref&&t.ref(e)),pn(()=>GR(e,t,r,!0,i,!0)),i}function qR(e,t,r){return Xe(()=>e(t,r))}function lu(e,t,r,n){if(r!==void 0&&!n&&(n=[]),typeof t!="function")return uo(e,t,n,r);pn(i=>uo(e,t(),i,r),n)}function GR(e,t,r,n,i={},o=!1){t||(t={});for(const a in i)if(!(a in t)){if(a==="children")continue;i[a]=Bm(e,a,null,i[a],r,o)}for(const a in t){if(a==="children"){n||uo(e,t.children);continue}const s=t[a];i[a]=Bm(e,a,s,i[a],r,o)}}function VR(e){let t,r;if(!ve.context||!(t=ve.registry.get(r=QR()))){if(ve.context,!e)throw new Error("Unrecoverable Hydration Mismatch. No template for key: "+r);return e()}return ve.completed&&ve.completed.add(t),ve.registry.delete(r),t}function WR(e){return e.toLowerCase().replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function Dm(e,t,r){const n=t.trim().split(/\s+/);for(let i=0,o=n.length;i<o;i++)e.classList.toggle(n[i],r)}function Bm(e,t,r,n,i,o){let a,s,u,l,c;if(t==="style")return HR(e,r,n);if(t==="classList")return jR(e,r,n);if(r===n)return n;if(t==="ref")o||r(e);else if(t.slice(0,3)==="on:"){const d=t.slice(3);n&&e.removeEventListener(d,n),r&&e.addEventListener(d,r)}else if(t.slice(0,10)==="oncapture:"){const d=t.slice(10);n&&e.removeEventListener(d,n,!0),r&&e.addEventListener(d,r,!0)}else if(t.slice(0,2)==="on"){const d=t.slice(2).toLowerCase(),h=kR.has(d);if(!h&&n){const f=Array.isArray(n)?n[0]:n;e.removeEventListener(d,f)}(h||r)&&(iE(e,d,r,h),h&&rE([d]))}else if(t.slice(0,5)==="attr:")cu(e,t.slice(5),r);else if((c=t.slice(0,5)==="prop:")||(u=PR.has(t))||!i&&((l=LR(t,e.tagName))||(s=RR.has(t)))||(a=e.nodeName.includes("-")))c&&(t=t.slice(5),s=!0),t==="class"||t==="className"?nE(e,r):a&&!s&&!u?e[WR(t)]=r:e[l||t]=r;else{const d=i&&t.indexOf(":")>-1&&FR[t.split(":")[0]];d?$R(e,d,t,r):cu(e,NR[t]||t,r)}return r}function zR(e){const t=`$$${e.type}`;let r=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==r&&Object.defineProperty(e,"target",{configurable:!0,value:r}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return r||document}}),ve.registry&&!ve.done&&(ve.done=_$HY.done=!0);r;){const n=r[t];if(n&&!r.disabled){const i=r[`${t}Data`];if(i!==void 0?n.call(r,i,e):n.call(r,e),e.cancelBubble)return}r=r._$host||r.parentNode||r.host}}function uo(e,t,r,n,i){if(ve.context){!r&&(r=[...e.childNodes]);let s=[];for(let u=0;u<r.length;u++){const l=r[u];l.nodeType===8&&l.data.slice(0,2)==="!$"?l.remove():s.push(l)}r=s}for(;typeof r=="function";)r=r();if(t===r)return r;const o=typeof t,a=n!==void 0;if(e=a&&r[0]&&r[0].parentNode||e,o==="string"||o==="number"){if(ve.context)return r;if(o==="number"&&(t=t.toString()),a){let s=r[0];s&&s.nodeType===3?s.data=t:s=document.createTextNode(t),r=Ri(e,r,n,s)}else r!==""&&typeof r=="string"?r=e.firstChild.data=t:r=e.textContent=t}else if(t==null||o==="boolean"){if(ve.context)return r;r=Ri(e,r,n)}else{if(o==="function")return pn(()=>{let s=t();for(;typeof s=="function";)s=s();r=uo(e,s,r,n)}),()=>r;if(Array.isArray(t)){const s=[],u=r&&Array.isArray(r);if(wf(s,t,r,i))return pn(()=>r=uo(e,s,r,n,!0)),()=>r;if(ve.context){if(!s.length)return r;for(let l=0;l<s.length;l++)if(s[l].parentNode)return r=s}if(s.length===0){if(r=Ri(e,r,n),a)return r}else u?r.length===0?Um(e,s,n):DR(e,r,s):(r&&Ri(e),Um(e,s));r=s}else if(t.nodeType){if(ve.context&&t.parentNode)return r=a?[t]:t;if(Array.isArray(r)){if(a)return r=Ri(e,r,n,t);Ri(e,r,null,t)}else r==null||r===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);r=t}}return r}function wf(e,t,r,n){let i=!1;for(let o=0,a=t.length;o<a;o++){let s=t[o],u=r&&r[o],l;if(!(s==null||s===!0||s===!1))if((l=typeof s)=="object"&&s.nodeType)e.push(s);else if(Array.isArray(s))i=wf(e,s,u)||i;else if(l==="function")if(n){for(;typeof s=="function";)s=s();i=wf(e,Array.isArray(s)?s:[s],Array.isArray(u)?u:[u])||i}else e.push(s),i=!0;else{const c=String(s);u&&u.nodeType===3&&u.data===c?e.push(u):e.push(document.createTextNode(c))}}return i}function Um(e,t,r=null){for(let n=0,i=t.length;n<i;n++)e.insertBefore(t[n],r)}function Ri(e,t,r,n){if(r===void 0)return e.textContent="";const i=n||document.createTextNode("");if(t.length){let o=!1;for(let a=t.length-1;a>=0;a--){const s=t[a];if(i!==s){const u=s.parentNode===e;!o&&!a?u?e.replaceChild(i,s):e.insertBefore(i,r):u&&s.remove()}else o=!0}}else e.insertBefore(i,r);return[i]}function QR(){const e=ve.context;return`${e.id}${e.count++}`}var YR="http://www.w3.org/2000/svg";function sE(e,t=!1){return t?document.createElementNS(YR,e):document.createElement(e)}function KR(e){const{useShadow:t}=e,r=document.createTextNode(""),n=()=>e.mount||document.body,i=Mm();let o,a=!!ve.context;return rh(()=>{a&&(Mm().user=a=!1),o||(o=aR(i,()=>Tt(()=>e.children)));const s=n();if(s instanceof HTMLHeadElement){const[u,l]=wt(!1),c=()=>l(!0);dn(d=>lu(s,()=>u()?d():o(),null)),Ls(c)}else{const u=sE(e.isSVG?"g":"div",e.isSVG),l=t&&u.attachShadow?u.attachShadow({mode:"open"}):u;Object.defineProperty(u,"_$host",{get(){return r.parentNode},configurable:!0}),lu(l,o),s.appendChild(u),e.ref&&e.ref(u),Ls(()=>s.removeChild(u))}},void 0,{render:!a}),r}function XR(e){const[t,r]=eE(e,["component"]),n=Tt(()=>t.component);return Tt(()=>{const i=n();switch(typeof i){case"function":return Object.assign(i,{[eR]:!0}),Xe(()=>i(r));case"string":const o=MR.has(i),a=ve.context?VR():sE(i,o);return oE(a,r,o),a}})}var Ki,Qs,Ys,Ks,ei,Xi,Ji,Zi,eo,to,Xs,ug,JR=(ug=class{constructor(e){ie(this,Ki,void 0);ie(this,Qs,void 0);ie(this,Ys,void 0);ie(this,Ks,void 0);ie(this,ei,!1);ie(this,Xi,void 0);ie(this,Ji,void 0);ie(this,Zi,void 0);ie(this,eo,void 0);ie(this,to,void 0);ie(this,Xs,void 0);const{client:t,queryFlavor:r,version:n,onlineManager:i,buttonPosition:o,position:a,initialIsOpen:s,errorTypes:u}=e;J(this,Ki,wt(t)),J(this,Ys,r),J(this,Ks,n),J(this,Qs,i),J(this,Xi,wt(o)),J(this,Ji,wt(a)),J(this,Zi,wt(s)),J(this,eo,wt(u))}setButtonPosition(e){N(this,Xi)[1](e)}setPosition(e){N(this,Ji)[1](e)}setInitialIsOpen(e){N(this,Zi)[1](e)}setErrorTypes(e){N(this,eo)[1](e)}setClient(e){N(this,Ki)[1](e)}mount(e){if(N(this,ei))throw new Error("Devtools is already mounted");const t=BR(()=>{const[r]=N(this,Xi),[n]=N(this,Ji),[i]=N(this,Zi),[o]=N(this,eo),[a]=N(this,Ki);let s;N(this,to)?s=N(this,to):(s=_R(()=>Promise.resolve().then(()=>require("./4TNE5QTO-f43be2ee.js"))),J(this,to,s));const u=this;return J0(s,Z0({get queryFlavor(){return N(u,Ys)},get version(){return N(u,Ks)},get onlineManager(){return N(u,Qs)}},{get client(){return a()},get buttonPosition(){return r()},get position(){return n()},get initialIsOpen(){return i()},get errorTypes(){return o()}}))},e);J(this,ei,!0),J(this,Xs,t)}unmount(){var e;if(!N(this,ei))throw new Error("Devtools is not mounted");(e=N(this,Xs))==null||e.call(this),J(this,ei,!1)}},Ki=new WeakMap,Qs=new WeakMap,Ys=new WeakMap,Ks=new WeakMap,ei=new WeakMap,Xi=new WeakMap,Ji=new WeakMap,Zi=new WeakMap,eo=new WeakMap,to=new WeakMap,Xs=new WeakMap,ug);function ZR(e){const t=go(),r=e.client||t,n=$.useRef(null),{buttonPosition:i,position:o,initialIsOpen:a,errorTypes:s}=e,[u]=$.useState(new JR({client:r,queryFlavor:"React Query",version:"5",onlineManager:Ns,buttonPosition:i,position:o,initialIsOpen:a,errorTypes:s}));return $.useEffect(()=>{u.setClient(r)},[r,u]),$.useEffect(()=>{i&&u.setButtonPosition(i)},[i,u]),$.useEffect(()=>{o&&u.setPosition(o)},[o,u]),$.useEffect(()=>{u.setInitialIsOpen(a||!1)},[a,u]),$.useEffect(()=>{u.setErrorTypes(s||[])},[s,u]),$.useEffect(()=>(n.current&&u.mount(n.current),()=>{u.unmount()}),[u]),$.createElement("div",{className:"tsqd-parent-container",ref:n})}var eP=process.env.NODE_ENV!=="development"?function(){return null}:ZR;const tP=({showDevTools:e,children:t})=>{const r=new k1({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:6e4}}});return O.jsxs(U1,{client:r,children:[t,e&&O.jsx(eP,{initialIsOpen:!1})]})};const ml="joinCommunityButton",oh=({isMember:e=!1,isShort:t=!1,functions:{join:r,leave:n}={join:()=>{},leave:()=>{}}})=>{const i=Oe(),o=$.useContext(jr),a=o&&typeof o.id=="string",[s,u]=$.useState(e),[l,c]=$.useState(e?"joined":"notJoined");$.useEffect(()=>{l==="joining"?c("joined"):l==="leaving"&&c("notJoined")},[s]);const d={},h={};return s&&l!=="leaving"&&(d["data-hover-text"]=i.formatMessage({id:`${ml}_leave`}),d["aria-label"]=i.formatMessage({id:`${ml}_member_aria`}),h["aria-hidden"]="true"),O.jsx(ze,{variant:s?"secondary":"primary",size:"medium",styling:{fullWidth:!0},icon:s&&l!=="leaving"?{icon:"tick",position:"left"}:!1,onClick:async f=>{a&&(f.currentTarget.blur(),s?(c("leaving"),typeof n=="function"&&await n()):(c("joining"),typeof r=="function"&&await r()),u(!s))},className:ae("join-community-button",l,{active:l==="joining"}),disabled:!a,...d,children:O.jsx("span",{className:"text",...h,children:i.formatMessage({id:`${ml}${["joining","leaving"].includes(l)?`_${l}`:s?"_member":t?"_short":""}`})})})};const gl="communityDetails_",rP=({isMember:e=!1,slug:t,members:{number:r,data:n}={number:void 0,data:[]},className:i="",...o})=>{const a=Oe(),s=r||(n==null?void 0:n.length)||0;return O.jsxs("div",{className:ae("community-details",i),children:[O.jsx(Za,{}),O.jsxs("div",{className:"member-details",children:[O.jsxs("div",{className:"top",children:[O.jsxs("h3",{children:[a.formatMessage({id:`${gl}members`}),O.jsx("span",{className:"count",children:s})]}),O.jsx("p",{className:"text-small",children:O.jsx(ft.Link,{to:`/communities/${t}/members`,children:a.formatMessage({id:`${gl}viewAll`})})})]}),O.jsx(N0,{contributors:{total:r,data:n!=null&&n.length?n:[{},{},{},{},{}]},styling:{size:"medium",showGap:!0,showPlaceholders:s===0},cutoff:5})]}),O.jsx(oh,{isMember:e,...o}),e&&O.jsx(ze,{variant:"primary",icon:{icon:"plus"},styling:{fullWidth:!0},children:a.formatMessage({id:`${gl}invite`})})]})};const nP=({breadcrumbs:e,cutoff:t=20,className:r=""})=>{const n=Oe();return O.jsxs(O.Fragment,{children:[O.jsx(lt,{element:"p",children:n.formatMessage({id:"breadcrumbs_label"})}),O.jsx("ul",{className:ae("breadcrumbs text-small",r),children:e.map(({text:i,href:o,current:a=!1},s)=>O.jsxs("li",{children:[a&&O.jsx(lt,{element:"span",children:n.formatMessage({id:"breadcrumbs_currentPage"})}),O.jsx(wu,{href:a?void 0:o,children:Qf(i,t)})]},`${window.btoa(i)}_${s}`))})]})};const iP=({options:e,allOption:t=!1,allowMultiple:r=!0,onChange:n=()=>{},className:i=""})=>{const o=Oe(),a=t?[{id:"all",text:typeof t!="boolean"&&t.text||o.formatMessage({id:"filters_all"})},...e]:e,[s,u]=$.useState(t?["all"]:[]),l=(c,d)=>{let h=[];s.includes(c)?h=s.filter(f=>f!==c):c==="all"?h=["all"]:r?h=[...s.filter(f=>f!=="all"),c]:h=[c],u(f=>(n&&typeof n=="function"&&n({current:h,previous:f}),h)),d&&typeof d=="function"&&d()};return O.jsx("ul",{className:ae("filters",i),children:a.map(({id:c,text:d,disabled:h=!1,callback:f=()=>{}})=>{let p={};return h&&(p={disabled:!0,"aria-label":o.formatMessage({id:"filters_disabled"},{name:d})}),O.jsx("li",{children:O.jsx("button",{className:ae(c,{selected:s.includes(c)}),onClick:m=>{m.preventDefault(),m.stopPropagation(),l(c,f)},...p,children:d})},c)})})};const yl=Zl({locale:"en",messages:Hf}),aE=({page:e=1,length:t=0,limit:r=10,loadNextPage:n=()=>{},icon:i=!1,messages:o={button:yl.formatMessage({id:"loadMore_button"}),endOfFeed:yl.formatMessage({id:"loadMore_endOfFeed"}),error:yl.formatMessage({id:"loadMore_error"})},className:a="",gtmContext:s="LoadMore"})=>{const[u,l]=$.useState(!1),[c,d]=$.useState(!1);if(t<=0||t<r*e)return null;const h=async f=>{try{await n(f)}catch(p){p instanceof Error&&p.message&&p.message.includes("Cannot read items")?d(!0):l(!0)}};return O.jsxs("footer",{className:ae("load-more",a),children:[u&&O.jsx("p",{className:"error",children:o.error}),c?O.jsx("p",{children:o.endOfFeed}):O.jsx(ze,{variant:"secondary",icon:i,onClick:h,"data-gtm-event-context":s,"data-gtm-event-type":"load-more-click",className:"gtm-trackable","data-testid":"load-more-button",children:o.button})]})};let Ma=!1;const uE=({element:e="div",id:t="more-menu",options:r,className:n=""})=>{const i=Oe(),o=$.useRef(null),[a,s]=$.useState(!1),u=l=>{o.current&&l.target instanceof HTMLElement&&!o.current.contains(l.target)&&s(!1)};return $.useEffect(()=>(document.addEventListener("click",u,!0),()=>{document.removeEventListener("click",u,!0)})),$.createElement(e,{ref:o,className:ae("more-menu text-medium",n),children:O.jsxs(O.Fragment,{children:[O.jsx(ze,{variant:"tertiary",size:"medium",icon:{icon:"ellipsis"},onClick:()=>s(!a),"aria-haspopup":"true","aria-expanded":a,"aria-controls":t,screenreaderText:i.formatMessage({id:"moreMenu"})}),O.jsx("ul",{id:t,hidden:!a,children:r.map(({href:l,onClick:c,text:d,icon:h,...f},p)=>{const m={...f,onClick:_=>{s(!1),typeof c=="function"&&c(_)},onFocus:()=>{Ma&&(clearTimeout(Ma),Ma=!1)},onBlur:()=>{Ma=setTimeout(()=>{s(!1)},100)}};return l&&(m.href=l),O.jsx("li",{children:O.jsx(ze,{variant:"tertiary",size:"medium",icon:h?{icon:h,position:"left"}:!1,...m,children:d})},`${window.btoa(d)}_${p}`)})})]})})};const sh=({variant:e="default",version:t="default",className:r="",...n})=>O.jsx("p",{className:"logo-wrapper",children:O.jsx(ft.Link,{to:"/home/",className:ae("logo",e,t,r),...n,children:O.jsx(lt,{children:O.jsx(fn,{id:"apolitical"})})})});const oP={"2-1":901},sP=({layout:e="2-1",hideOnMobile:t=!1,className:r="",children:n})=>{const i=ra(!0);let o=n;return $.Children.count(n)===1&&(o=$.Children.toArray(n)[0],o.props&&(o=o.props.children)),O.jsx("section",{className:ae("columns",`layout-${e}`,r),children:$.Children.map(o,(a,s)=>t!==!1&&s===t&&i&&i<oP[e]?null:a)})};const vl="cookieBanner_",El=["apol-cookie-banner","apolitical-performance-cookie-consent","functional-cookie-consent"],_l=new Date(Date.now()+12*30*24*60*60*1e3),cE=()=>{const e=Oe(),t=ft.useNavigate(),[r,n,i]=mg(El),[o,a]=$.useState(!r["apol-cookie-banner"]),s=()=>{El.forEach(d=>{n(d,!0,{path:"/",expires:_l,domain:d==="apolitical-performance-cookie-consent"?".apolitical.co":void 0})}),a(!1),t(0)},u=()=>{n("apol-cookie-banner",!0,{path:"/",expires:_l}),El.forEach(d=>{if(d==="apol-cookie-banner"){n(d,!0,{path:"/",expires:_l});return}i(d)}),a(!1)};if(!o)return null;const l=[{id:"settings",href:"/pages/cookie-policy",gtmType:"policy-page"},{id:"reject",onClick:u,gtmType:"reject-all"},{id:"accept",onClick:s,gtmType:"accepted-all"}],c=[];return l.forEach(d=>{c.push({variant:d.href?"tertiary":"primary",href:d.href,onClick:d.onClick,className:"gtm-trackable","data-gtm-event-context":"cookie-banner","data-gtm-event-type":`cookie-${d.gtmType}-click`,children:e.formatMessage({id:`${vl}buttons_${d.id}`})})}),O.jsxs("aside",{id:"cookie-banner",className:"text-medium",children:[O.jsx("h6",{children:e.formatMessage({id:`${vl}title`})}),O.jsx("p",{children:e.formatMessage({id:`${vl}text`})}),O.jsx(na,{buttons:c})]})},Br={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 Ii="footer_",fu="SiteFooter",$m=({group:e})=>{const t=Br[e].order||[];let r=!1;return"text"in Br[e]&&(r=Br[e].text),O.jsxs($.Fragment,{children:[O.jsx("p",{className:"pre-title",children:O.jsx(fn,{id:`${Ii}${e}`})}),Array.isArray(t)&&t.length>0&&O.jsx("ul",{className:"text-medium",children:t.map(n=>{if(["order","child","text"].includes(n))return null;const{href:i,gtmType:o}=Br[e][n],a={};return["legal"].includes(e)&&(a.target="_blank",a.rel="noopener"),O.jsx("li",{children:O.jsx(ft.Link,{to:i,className:"gtm-trackable","data-gtm-event-context":fu,"data-gtm-event-type":o,...a,children:O.jsx(fn,{id:`${Ii}${e}_${n}`})})},`${e}_${n}`)})}),typeof r!="boolean"&&"order"in r&&Array.isArray(r.order)&&O.jsx("dl",{className:"text-medium",children:r.order.map(n=>O.jsxs($.Fragment,{children:[O.jsx("dt",{children:O.jsx(fn,{id:`${Ii}${e}_${n}`})}),O.jsxs("dd",{children:[typeof r!="boolean"&&r[n].address&&O.jsx("address",{children:O.jsx(fn,{id:`${Ii}${e}_${n}_address`,values:{br:O.jsx("br",{})}})}),typeof r!="boolean"&&r[n].email&&O.jsx("a",{href:`mailto:${r[n].email}`,className:"gtm-trackable","data-gtm-event-context":fu,"data-gtm-event-type":r[n].gtmType,children:r[n].email})]})]},`dl-${e}-${n}`))})]},e)},ah=()=>O.jsx("div",{id:"footer",children:O.jsxs("div",{className:"wrapper",children:[O.jsx(Tf,{element:"hr"}),O.jsx(sh,{variant:"inverted",version:"full",className:"gtm-trackable","data-gtm-event-context":fu,"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($m,{group:e}),Object.keys(Br[e]).includes("child")&&O.jsx($m,{group:Br[e].child})]},e))}),O.jsx("hr",{}),O.jsxs("div",{className:"sub-footer",children:[O.jsx("ul",{children:Array.isArray(Br.social.order)&&Br.social.order.map(e=>{const t=Br.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":fu,"data-gtm-event-type":"social-click",children:O.jsx("span",{className:"hidden",children:O.jsx(fn,{id:`${Ii}social_${e}`})})})},e)})}),O.jsx("small",{children:O.jsx(fn,{id:`${Ii}copyright`,values:{currentYear:new Date().getFullYear()}})})]})]})});const Fa="emailHelperTextBox_",aP=({type:e,email:t,redirectPath:r,resendVerificationCode:n})=>{const i=Oe(),o=ft.useNavigate(),[a,s]=$.useState({path:`${Fa}default`,type:"default",link:{},mail:{},error:""}),[u,l]=$.useState(!1),c=$.useCallback(p=>{p.preventDefault(),p.stopPropagation();const m=_=>{s({path:`${Fa}error_verificationFailedToSend`,type:"error",link:{"data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:S=>c(S),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:_})};if(typeof n!="function"){m(i.formatMessage({id:`${Fa}error_noFunction`}));return}l(!0),n(t).then(()=>{localStorage.setItem("email",t),o(r||"/signup/verify-email")}).catch(_=>{m(_.message)}).finally(()=>{l(!1)})},[t,r,n]);$.useEffect(()=>{let p=Fa,m="default",_={},S={};switch(e){case"gov":p+="autoApproved",m="success";break;case"nonGov":p+="unrecognisedEmail",m="error",_={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"NonGovEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break;case"pending":p+="pendingApproval",m="error",S={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;case"verify":p+="emailUnverified",m="error",_={href:"#","data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:E=>c(E),"data-testid":"send-verify-email-click"};break;case"exists":p+="emailAlreadyExists",m="error",_={href:"/user-onboarding/login","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"login-click"},S={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;default:p+="default",_={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"DefaultEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break}s({...a,path:p,type:m,link:_,mail:S})},[e]);const d={};return["link","mail"].forEach(p=>{d[p]=Object.keys(a[p]).length?m=>O.jsx("a",{...a[p],children:m}):m=>m}),O.jsx(T0,{type:a.type,heading:u?!1:i.formatMessage({id:`${a.path}_title`}),children:u?O.jsxs(O.Fragment,{children:[O.jsx(vr,{element:"span"}),O.jsx(vr,{element:"span"})]}):i.formatMessage({id:`${a.path}_text`},{...d,strong:p=>O.jsx("strong",{children:p}),em:p=>O.jsx("em",{children:p}),br:O.jsxs(O.Fragment,{children:[O.jsx("br",{}),O.jsx("br",{})]}),error:a.error})})};const Da="passwordRules_",lE="isMoreThanEightCharacters",fE="includesNumberAndSymbol",hE="includesLowerAndUppercase",uP={[lE]:"8Characters",[fE]:"numberSymbol",[hE]:"lowercaseUppercase"},cP=({matchingRules:e={isMoreThanEightCharacters:!1,includesNumberAndSymbol:!1,includesLowerAndUppercase:!1},className:t=""})=>{const r=Oe();return O.jsxs("aside",{className:ae("password-rules",t),children:[O.jsx("small",{children:r.formatMessage({id:`${Da}intro`})}),O.jsx("ul",{children:[lE,fE,hE].map(n=>O.jsxs("li",{className:ae({matches:e[n]}),children:[O.jsxs(lt,{children:[r.formatMessage({id:`${Da}rule_label`})," "]}),O.jsx("span",{children:r.formatMessage({id:`${Da}rule_${uP[n]}`})}),!e[n]&&O.jsxs(lt,{element:"strong",children:[" "," ",r.formatMessage({id:`${Da}notMet`})]})]},`rule-${n}`))})]})},lP=$.memo(cP);const fP=({text:e={},topRating:t=5,functions:{createRating:r=()=>null,updateRating:n=()=>{},reportError:i=()=>{}},className:o="",hasLoaded:a=!1})=>{const s=Oe(),[u,l]=$.useState({setUp:!1,id:null,rating:null,disabled:!0}),c=async()=>{try{const S=await r();l(E=>({...E,setUp:!0,id:S&&S.id,disabled:!1}))}catch(S){l(E=>({...E,setUp:!0,disabled:!0})),i(S)}};if($.useEffect(()=>{a&&!u.setUp&&c()},[a]),!a)return O.jsx(vr,{className:"rating-placeholder"});const{id:d,rating:h,disabled:f}=u,p="ratings_",m={text:s.formatMessage({id:`${p}text`}),low:s.formatMessage({id:`${p}low`}),high:s.formatMessage({id:`${p}high`}),success:s.formatMessage({id:`${p}success`}),...e},_=async S=>{if(!(!d||f))try{l(E=>({...E,rating:S,disabled:!0})),await n({id:d,value:S})}catch(E){l(b=>({...b,rating:null})),i(E)}finally{l(E=>({...E,disabled:!1}))}};return O.jsxs("div",{className:ae("rating",o),children:[O.jsx("span",{className:"label",children:m[h?"success":"text"]}),O.jsx("ol",{children:Array.from(new Array(t).keys()).map(S=>{const E=S+1;return O.jsx("li",{className:ae({selected:h&&E<=h}),children:O.jsx(ze,{variant:"tertiary",size:"small",icon:{icon:`star${!h||E>h?"_empty":""}`,position:"left",hover:"star"},screenreaderText:`${s.formatMessage({id:`${p}stars`},{number:E,total:t})}${E===1||E===t?` - ${m[E===1?"low":"high"]}`:""}`,onClick:b=>{b.preventDefault(),b.stopPropagation(),_(E)},disabled:f})},`rating-${E}`)})})]})};const dE=({id:e="search",className:t="",handleToggle:r=!1,defaultValue:n="",gtmContext:i="search-bar",gtmEvent:o="form-submission"})=>{const{searchIsOpen:a=!0,isDesktopVersion:s=!1}=r||{},u=Oe(),l=ft.useNavigate(),c=$.useRef(null);ni(()=>{!r||s||!a||c.current&&c.current.focus()},[a]);const d=h=>{h.preventDefault(),h.stopPropagation(),!(!c.current||!c.current.value||c.current.value.length<1)&&l(`/search?search=${encodeURIComponent(c.current.value)}`)};return O.jsx("form",{onSubmit:d,className:ae("search-form gtm-trackable",t),"data-gtm-event-context":i,"data-gtm-event-type":o,children:O.jsx("fieldset",{id:`${e}-form`,hidden:r?!a:!1,role:"search",children:O.jsxs("p",{children:[O.jsx(lt,{element:"label",htmlFor:e,children:u.formatMessage({id:"search_label"})}),O.jsx("input",{ref:c,type:"search",id:e,name:e,defaultValue:n,placeholder:u.formatMessage({id:"search_placeholder"}),onKeyDown:h=>{h.key==="Enter"&&d(h)}}),O.jsx("button",{className:"clear",onClick:h=>{h.preventDefault(),h.stopPropagation(),c.current&&c.current.value&&(c.current.value="")},children:O.jsx(lt,{children:u.formatMessage({id:"search_clear"})})}),O.jsx("button",{className:"search",onClick:d,children:O.jsx(lt,{children:u.formatMessage({id:"search_cta"})})})]})})})};var hP="Expected a function",pE="__lodash_hash_undefined__",mE=1/0,dP="[object Function]",pP="[object GeneratorFunction]",mP="[object Symbol]",gP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yP=/^\w*$/,vP=/^\./,EP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_P=/[\\^$.*+?()[\]{}|]/g,bP=/\\(\\)?/g,wP=/^\[object .+?Constructor\]$/,SP=typeof de=="object"&&de&&de.Object===Object&&de,TP=typeof self=="object"&&self&&self.Object===Object&&self,uh=SP||TP||Function("return this")();function xP(e,t){return e==null?void 0:e[t]}function OP(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var AP=Array.prototype,CP=Function.prototype,gE=Object.prototype,bl=uh["__core-js_shared__"],jm=function(){var e=/[^.]+$/.exec(bl&&bl.keys&&bl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yE=CP.toString,ch=gE.hasOwnProperty,vE=gE.toString,RP=RegExp("^"+yE.call(ch).replace(_P,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hm=uh.Symbol,PP=AP.splice,NP=EE(uh,"Map"),ks=EE(Object,"create"),qm=Hm?Hm.prototype:void 0,Gm=qm?qm.toString:void 0;function si(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function IP(){this.__data__=ks?ks(null):{}}function LP(e){return this.has(e)&&delete this.__data__[e]}function kP(e){var t=this.__data__;if(ks){var r=t[e];return r===pE?void 0:r}return ch.call(t,e)?t[e]:void 0}function MP(e){var t=this.__data__;return ks?t[e]!==void 0:ch.call(t,e)}function FP(e,t){var r=this.__data__;return r[e]=ks&&t===void 0?pE:t,this}si.prototype.clear=IP;si.prototype.delete=LP;si.prototype.get=kP;si.prototype.has=MP;si.prototype.set=FP;function vo(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function DP(){this.__data__=[]}function BP(e){var t=this.__data__,r=Nu(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():PP.call(t,r,1),!0}function UP(e){var t=this.__data__,r=Nu(t,e);return r<0?void 0:t[r][1]}function $P(e){return Nu(this.__data__,e)>-1}function jP(e,t){var r=this.__data__,n=Nu(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}vo.prototype.clear=DP;vo.prototype.delete=BP;vo.prototype.get=UP;vo.prototype.has=$P;vo.prototype.set=jP;function li(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function HP(){this.__data__={hash:new si,map:new(NP||vo),string:new si}}function qP(e){return Iu(this,e).delete(e)}function GP(e){return Iu(this,e).get(e)}function VP(e){return Iu(this,e).has(e)}function WP(e,t){return Iu(this,e).set(e,t),this}li.prototype.clear=HP;li.prototype.delete=qP;li.prototype.get=GP;li.prototype.has=VP;li.prototype.set=WP;function Nu(e,t){for(var r=e.length;r--;)if(nN(e[r][0],t))return r;return-1}function zP(e,t){t=XP(t,e)?[t]:KP(t);for(var r=0,n=t.length;e!=null&&r<n;)e=e[tN(t[r++])];return r&&r==n?e:void 0}function QP(e){if(!bE(e)||ZP(e))return!1;var t=iN(e)||OP(e)?RP:wP;return t.test(rN(e))}function YP(e){if(typeof e=="string")return e;if(fh(e))return Gm?Gm.call(e):"";var t=e+"";return t=="0"&&1/e==-mE?"-0":t}function KP(e){return _E(e)?e:eN(e)}function Iu(e,t){var r=e.__data__;return JP(t)?r[typeof t=="string"?"string":"hash"]:r.map}function EE(e,t){var r=xP(e,t);return QP(r)?r:void 0}function XP(e,t){if(_E(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||fh(e)?!0:yP.test(e)||!gP.test(e)||t!=null&&e in Object(t)}function JP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ZP(e){return!!jm&&jm in e}var eN=lh(function(e){e=sN(e);var t=[];return vP.test(e)&&t.push(""),e.replace(EP,function(r,n,i,o){t.push(i?o.replace(bP,"$1"):n||r)}),t});function tN(e){if(typeof e=="string"||fh(e))return e;var t=e+"";return t=="0"&&1/e==-mE?"-0":t}function rN(e){if(e!=null){try{return yE.call(e)}catch{}try{return e+""}catch{}}return""}function lh(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(hP);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(lh.Cache||li),r}lh.Cache=li;function nN(e,t){return e===t||e!==e&&t!==t}var _E=Array.isArray;function iN(e){var t=bE(e)?vE.call(e):"";return t==dP||t==pP}function bE(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function oN(e){return!!e&&typeof e=="object"}function fh(e){return typeof e=="symbol"||oN(e)&&vE.call(e)==mP}function sN(e){return e==null?"":YP(e)}function aN(e,t,r){var n=e==null?void 0:zP(e,t);return n===void 0?r:n}var uN=aN;const wE=_r(uN),Fe={timeouts:{},handlerCalled:{},getIsDesktopVersion:(e,t)=>{const r={navigation:{loggedIn:769,loggedOut:881},search:{loggedIn:961,loggedOut:1121}},n=o=>{const a=`logged${e?"In":"Out"}`;return t>=r[o][a]};let i={};return["navigation","search"].forEach(o=>{i[o]=n(o)}),i},shouldChangeHeaderIsVisible:(e,t,r)=>{Object.values(t).filter(i=>i===!0).length||r([{type:"headerIsVisible",value:e}])},handleMenus:({id:e,value:t,menus:r,dispatch:n})=>{if(r[e]===t||e==="account"&&t===!1&&r.navigation===!0)return;const i=Date.now();if(!t&&Fe.handlerCalled[e]&&i-Fe.handlerCalled[e]<500)return;Fe.handlerCalled[e]=i;let o=[{type:`menus.${e}`,value:t}];t===!0&&Object.keys(r).forEach(a=>{a===e||r[a]===!1||o.push({type:`menus.${a}`,value:!1})}),n(o)},findFirstChild:(e,t,r=!1)=>{if(!e||!e[0])return!1;for(let n=0;n<=e.length;n++){if(!e[n])continue;if(e[n][t]&&(!r||e[n][t].includes(r)))return e[n];if(!t.includes("."))continue;const i=wE(e[n],t);if(!(typeof i>"u")&&(!r||i[t]&&i[t].includes(r)||i.value&&i.value.includes(r)||i.toString().includes(r)))return e[n]}return e[0].children?Fe.findFirstChild(e[0].children,t,r):!1},autoFocus:({menu:e,navigationRef:t,isDesktopVersion:r,focusElements:n,dispatch:i})=>{if(!t.current||!t.current.children)return;const o=r?"desktop":"default";if(n[e][o]){n[e][o].focus();return}let a,s;switch(e){case"navigation":if(r){const u=Fe.findFirstChild(t.current.children,"attributes.aria-controls","navigation");a=Fe.findFirstChild(u.children,"href")}else a=Fe.findFirstChild(t.current.children,"href");a||(a=t.current);break;case"account":if(s=Fe.findFirstChild(t.current.children,"className","account"),!s||!s.children)return;a=Fe.findFirstChild(s.children,"href");break;default:return}a&&(i([{type:`focusElements.${e}.${o}`,value:a}]),a.focus())},events:{onClick:(e,{id:t,callback:r,isOpen:n})=>{e.target&&e.target.attributes&&e.target.attributes.href||(e.preventDefault(),e.stopPropagation(),clearTimeout(Fe.timeouts[t]),r(t,!n))},onFocus:({id:e})=>{clearTimeout(Fe.timeouts[e])},onMouseEnter:({id:e,callback:t})=>{clearTimeout(Fe.timeouts[e]),t(e,!0)},onBlur:({id:e,callback:t})=>{Fe.timeouts[e]=setTimeout(()=>{t(e,!1)},250)}}},Ms={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"}}}},hu=({id:e,isLoggedIn:t=!1,isDesktopVersion:r=!1,menus:n={},callback:i=()=>{},doTrack:o=null})=>{const a=Oe(),{pathname:s}=ft.useLocation(),u=wE(Ms,e);if(!u||u.onlyShow&&(u.onlyShow==="logged-in"&&!t||u.onlyShow==="logged-out"&&t))return null;const l="doTrack"in u,c=o===null?l?u.doTrack:!0:o,d=e.includes("buttons.");let h=`header_${e.replaceAll(".","_")}`;u.hasVariantText&&(h+=`_logged${t?"In":"Out"}`);let f=!1;if(u.href){let b=u.gtmType||`${e}-click`;if(b.includes(".")){const T=b.split("."),w=T[T.length-2];b=`${w==="topics"?`${w}-`:""}${T[T.length-1]}`}f={href:u.href,role:"menuitem"},c&&(f={...f,className:"gtm-trackable","data-gtm-event-type":b,"data-gtm-event-context":"HeaderButtons"}),d&&(f={...f,variant:"secondary",size:{mobile:"small",881:"large"},...u.props||{}})}const p=u.order&&u.order[0]&&u[u.order[0]],m=p&&u[u.order[0]].order,_=f&&s===u.href;let S={},E={};if(p){const b=u.menuId||e,T={onClick:w=>Fe.events.onClick(w,{id:b,callback:i,isOpen:n[b]}),onFocus:()=>Fe.events.onFocus({id:b}),onBlur:()=>Fe.events.onBlur({id:b,callback:i}),onMouseLeave:()=>Fe.events.onBlur({id:b,callback:i}),onMouseEnter:()=>Fe.events.onMouseEnter({id:b,callback:i})};r&&(m&&(S={...T,onKeyPress:w=>{w.key==="Enter"&&Fe.events.onClick(w,{id:b,callback:i,isOpen:n[b]})},tabIndex:"0","aria-haspopup":!0,"aria-expanded":n[b],"aria-controls":b}),E={hidden:b in n?!n[b]:!0}),m||(E={...E,...T})}return O.jsxs("li",{className:ae({[u.className]:u.className,"has-submenu":p,parent:m,active:_}),role:"none",...S,children:[f?$.createElement(d?ze:"a",f,a.formatMessage({id:h})):a.formatMessage({id:h}),u.order&&O.jsx("ul",{...E,children:u.order.map(b=>{if(!u[b])return null;const T={isLoggedIn:t,isDesktopVersion:r,menus:n,callback:i,doTrack:l?c:null};return u[b].order?O.jsxs("li",{className:ae({[u[b].className]:u[b].className}),children:[a.formatMessage({id:`${h}_${b}`}),O.jsx("ul",{children:u[b].order.map(w=>O.jsx(hu,{id:`${e}.${b}.${w}`,...T},w))})]},b):O.jsx(hu,{id:`${e}.${b}`,...T},b)})})]},e)};const cN={height:67,height_desktop:83},hh=()=>{const e=Oe(),t=$.useContext(jr),r=ra(!0,!0),n=t&&typeof t.id=="string",i=$.useMemo(()=>Fe.getIsDesktopVersion(n,r),[n,r]),[o,a]=$.useReducer(yO,{headerIsVisible:!0,menus:{navigation:!1,search:!1,account:!1},focusElements:{navigation:{desktop:!1,default:!1},account:{desktop:!1,default:!1}}}),{headerIsVisible:s,menus:u,focusElements:l}=o;dv({scrollPosition:cN[`height${i.navigation?"_desktop":""}`],callbacks:{scrollUp:()=>{!i&&u.navigation||Fe.shouldChangeHeaderIsVisible(!0,u,a)},scrollDown:()=>{!i&&u.navigation||Fe.shouldChangeHeaderIsVisible(!1,u,a)}}});const c=(h,f)=>{Fe.handleMenus({id:h,value:f,menus:u,dispatch:a})},d=$.useRef(null);return ni(()=>{u.navigation&&Fe.autoFocus({menu:"navigation",navigationRef:d,isDesktopVersion:i.navigation,focusElements:l,dispatch:a})},[u.navigation]),ni(()=>{u.account&&Fe.autoFocus({menu:"account",navigationRef:d,isDesktopVersion:i.navigation,focusElements:l,dispatch:a})},[u.account]),t&&t.isLoading?null:O.jsxs(O.Fragment,{children:[O.jsxs("nav",{id:"header",className:ae({"logged-in":n,"logged-out":!n,visible:s}),children:[O.jsx(lt,{element:"a",href:"#content-of-page",children:e.formatMessage({id:"header_skip"})}),O.jsx(sh,{}),!i.navigation&&O.jsx("button",{className:"menu-button gtm-trackable",onClick:h=>{h.preventDefault(),h.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(lt,{children:e.formatMessage({id:`header_menu_${u.navigation?"hide":"show"}`})})}),O.jsx("ul",{ref:d,id:"navigation",hidden:i.navigation||u.account?!1:!u.navigation,role:"menu","data-showing":!i.navigation&&u.account?"account":"default",children:Ms.order.map(h=>O.jsx(hu,{id:h,isLoggedIn:n,isDesktopVersion:i.navigation,menus:{navigation:u.navigation,account:u.account},callback:c},h))}),!i.search&&O.jsx("button",{className:"search toggle-search-button",onClick:h=>{h.preventDefault(),h.stopPropagation(),c("search",!u.search)},"aria-haspopup":"true","aria-expanded":u.search,"aria-controls":"search-form",children:O.jsx(lt,{children:e.formatMessage({id:`header_search_${u.search?"hide":"show"}`})})}),O.jsx(dE,{id:"global-search",handleToggle:{searchIsOpen:u.search,isDesktopVersion:i.search},gtmContext:"search-bar-header",gtmEvent:"form-submission"}),n?O.jsxs("button",{className:"account-button",onClick:h=>Fe.events.onClick(h,{id:"account",callback:c,isOpen:u.account}),onMouseEnter:()=>Fe.events.onMouseEnter({id:"account",callback:c}),onMouseLeave:()=>Fe.events.onBlur({id:"account",callback:c}),"aria-haspopup":"true","aria-expanded":u.account,"aria-controls":"navigation",children:[O.jsx(lt,{children:e.formatMessage({id:`header_account_${u.account?"hide":"show"}`})}),O.jsx(xu,{name:t&&t.name||"",src:t&&t.image&&t.image.thumbnail||""})]}):O.jsx("ul",{className:"sign-in-buttons",children:Ms.buttons.order.map(h=>O.jsx(hu,{id:`buttons.${h}`},h))})]}),O.jsx("hr",{id:"content-of-page"}),O.jsx("div",{className:ae("overlay",{open:u.navigation||u.account||!i.search&&u.search})})]})},lN=$.createContext(null),wl={didCatch:!1,error:null};class fN extends $.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=wl}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:o,reason:"imperative-api"}),this.setState(wl)}}componentDidCatch(t,r){var n,i;(n=(i=this.props).onError)===null||n===void 0||n.call(i,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:i}=this.props;if(n&&r.error!==null&&hN(t.resetKeys,i)){var o,a;(o=(a=this.props).onReset)===null||o===void 0||o.call(a,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(wl)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:i}=this.props,{didCatch:o,error:a}=this.state;let s=t;if(o){const u={error:a,resetErrorBoundary:this.resetErrorBoundary};if($.isValidElement(i))s=i;else if(typeof r=="function")s=r(u);else if(n)s=$.createElement(n,u);else throw a}return $.createElement(lN.Provider,{value:{didCatch:o,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}function hN(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}const dN=()=>{const e=Oe();return O.jsxs(O.Fragment,{children:[O.jsx(hh,{}),O.jsx("div",{className:"content",children:O.jsx(sa,{variant:"error",text:e.formatMessage({id:"pageLayout_error"})})}),O.jsx(ah,{})]})},pN=({children:e,reportError:t,showFooter:r=!0,background:n="default",className:i="",locale:o="en"})=>{const{pathname:a}=ft.useLocation();$.useEffect(()=>{window.scrollTo(0,0)},[a]);const s=Tv(e,{locale:o});return O.jsx(fN,{onError:t,fallback:O.jsx(dN,{}),children:O.jsx($.Suspense,{fallback:O.jsx(R0,{layout:"overview-page"}),children:O.jsx("div",{id:"wrapper",className:ae(i,{[n]:n!=="default"}),children:O.jsxs(XE,{children:[O.jsx(hh,{}),O.jsx("div",{className:"content",children:s}),r&&O.jsx(ah,{}),O.jsx(cE,{})]})})})})},Vm={default:"tags_",headerTopics:"header_topics_topics_"},Sl={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"},mN={getTagDetails:e=>{if(e.includes("topic_")){if(e=Sl.topic[e.replace("topic_","")],e){const t=Ms.topics.topics[e].href;return t?{id:e,href:t,text:`${Vm.headerTopics}${e}`}:null}return null}return Sl[e]?(e=Sl[e],{id:e,text:`${Vm.default}${e}`}):null}};const gN=({tags:e=[],color:t="default",forceOneLine:r=!1,canHaveLinks:n=!0,className:i="",gtmType:o="tag-click",gtmContext:a="tags"})=>{const s=Oe();if(!e||e.length<1)return null;const u=[];return e.forEach(l=>{if(!l)return;const c=mN.getTagDetails(l);c&&u.push(c)}),u.length<1?null:O.jsx("ul",{className:ae("tags text-small",t,i,{"one-line":r}),children:u.map(l=>{const c=s.formatMessage({id:l.text});return O.jsx("li",{children:l.href&&n?O.jsx(ft.Link,{to:l.href,className:"gtm-trackable","data-gtm-event-type":o,"data-gtm-event-context":a,children:c}):c},l.id)})})};const yN=({members:{total:e,data:t=[]},pagination:r,gtmContext:n="member",gtmType:i="member-click",className:o=""})=>{const a=Oe();return t.length===0?null:(e||(e=t.length),O.jsxs("div",{className:ae("members-list",o),children:[O.jsxs("h1",{children:[a.formatMessage({id:"membersList"}),O.jsx("span",{className:"count",children:e})]}),O.jsx("ul",{children:t.map((s,u)=>O.jsxs("li",{children:[O.jsx(Ou,{member:s,gtmContext:n,gtmType:i}),s.isAdmin&&O.jsx(O0,{children:a.formatMessage({id:"membersList_admin"})})]},u))}),r&&O.jsx(aE,{...r,icon:{icon:"arrow-down",position:"right"},gtmContext:n})]}))};function Sf(){return Sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sf.apply(this,arguments)}function vN(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var EN=$.useLayoutEffect,_N=function(t){var r=pe.useRef(t);return EN(function(){r.current=t}),r},Wm=function(t,r){if(typeof t=="function"){t(r);return}t.current=r},bN=function(t,r){var n=$.useRef();return $.useCallback(function(i){t.current=i,n.current&&Wm(n.current,null),n.current=r,r&&Wm(r,i)},[r])},zm={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},wN=function(t){Object.keys(zm).forEach(function(r){t.style.setProperty(r,zm[r],"important")})},Qm=wN,Et=null,Ym=function(t,r){var n=t.scrollHeight;return r.sizingStyle.boxSizing==="border-box"?n+r.borderSize:n-r.paddingSize};function SN(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),Et||(Et=document.createElement("textarea"),Et.setAttribute("tabindex","-1"),Et.setAttribute("aria-hidden","true"),Qm(Et)),Et.parentNode===null&&document.body.appendChild(Et);var i=e.paddingSize,o=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach(function(h){var f=h;Et.style[f]=a[f]}),Qm(Et),Et.value=t;var u=Ym(Et,e);Et.value=t,u=Ym(Et,e),Et.value="x";var l=Et.scrollHeight-i,c=l*r;s==="border-box"&&(c=c+i+o),u=Math.max(c,u);var d=l*n;return s==="border-box"&&(d=d+i+o),u=Math.min(d,u),[u,l]}var Km=function(){},TN=function(t,r){return t.reduce(function(n,i){return n[i]=r[i],n},{})},xN=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],ON=!!document.documentElement.currentStyle,AN=function(t){var r=window.getComputedStyle(t);if(r===null)return null;var n=TN(xN,r),i=n.boxSizing;if(i==="")return null;ON&&i==="border-box"&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var o=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),a=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:o,borderSize:a}},CN=AN;function SE(e,t,r){var n=_N(r);pe.useLayoutEffect(function(){var i=function(a){return n.current(a)};if(e)return e.addEventListener(t,i),function(){return e.removeEventListener(t,i)}},[])}var RN=function(t){SE(window,"resize",t)},PN=function(t){SE(document.fonts,"loadingdone",t)},NN=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],IN=function(t,r){var n=t.cacheMeasurements,i=t.maxRows,o=t.minRows,a=t.onChange,s=a===void 0?Km:a,u=t.onHeightChange,l=u===void 0?Km:u,c=vN(t,NN),d=c.value!==void 0,h=pe.useRef(null),f=bN(h,r),p=pe.useRef(0),m=pe.useRef(),_=function(){var b=h.current,T=n&&m.current?m.current:CN(b);if(T){m.current=T;var w=SN(T,b.value||b.placeholder||"x",o,i),P=w[0],R=w[1];p.current!==P&&(p.current=P,b.style.setProperty("height",P+"px","important"),l(P,{rowHeight:R}))}},S=function(b){d||_(),s(b)};return pe.useLayoutEffect(_),RN(_),PN(_),pe.createElement("textarea",Sf({},c,{onChange:S,ref:f}))},LN=pe.forwardRef(IN);let Ba=null;const At="discussion_form_",dh=({content:e={type:"response",slugs:{}},userHasPermissions:t=!0,meta:r={isLoading:!1,isInWrapper:!1,isEditing:!1,showTitle:!1},inputRef:n,maxLength:i=5e4,minRows:o=4,forceShow:a={cancel:!1,error:!1},functions:s={create:()=>{},handleSaveEdit:()=>{},handleCancel:()=>{},callback:()=>{},props:{create:{projectNames:["questions-answers"]}}},gtmContext:u="DiscussionForm"})=>{var q,G;const l=Oe(),{pathname:c}=ft.useLocation(),d=$.useContext(jr),[h,f]=$.useState(r.isEditing&&r.isEditing.text||""),[p,m]=$.useState(a.error||!1),[_,S]=$.useState(!1),E=$.useRef(null);if(n||(n=E),r.isLoading)return O.jsx(vr,{className:"discussion-card discussion-form","data-testid":"loading-placeholder"});const b=j=>{const Y=j.target.value;f(Y);let re;!d||!d.id?re=ur(l.formatMessage,`${At}error_loggedOut`,e.type,"action"):t?Y.length>=i&&(re=`${At}error_tooLong`):re=ur(l.formatMessage,`${At}error_noPermission`,e.type,"action"),re?m(re):p&&m(!1)};let T=`${e.type}-form`;if(e.type==="response"||e.type==="reply"){const j=e.type==="response"?((q=e.slugs)==null?void 0:q.question)||"":((G=e.slugs)==null?void 0:G.answer)||"";j&&(T=`${T}-${j.slice(-15)}`)}const w=async j=>{var Y;if(j.preventDefault(),j.stopPropagation(),!(!d||!d.id||!t||R)){Ba&&clearTimeout(Ba),S("submitting");try{let re;switch(e.type){case"post":re=await s.create({content:h});break;case"question":re=await s.create({title:h,authorId:d&&d.id,...(Y=s.props)==null?void 0:Y.create});break;case"response":re=await s.create({question:e.slugs.question},{body:h,authorId:d&&d.id,contentPath:c});break;case"reply":re=await s.create({question:e.slugs.question,answer:e.slugs.answer},{body:h,authorId:d&&d.id,contentPath:c});break;default:break}await _O(1e3),s.callback&&await s.callback(re),Ba=setTimeout(()=>{f(""),S("submitted"),P()},500)}catch(re){const K=re;let M=`${At}error`;K.message.includes("entry already exists")&&(M=ur(l.formatMessage,`${At}error_alreadyExists`,e.type,"action")),K.message.includes("429")?M=ur(l.formatMessage,`${At}error_tooMany`,e.type,"action"):K.message.includes("400")&&(M=`${At}error`),m(M),P()}}},P=()=>{Ba=setTimeout(()=>{m(!1),S(!1)},5e3)},R=!h||!TO(h),L=_==="submitting",U=[];return(r.isEditing&&!L||a.cancel)&&U.push({variant:"secondary",size:{mobile:"small",600:"medium"},onClick:s.handleCancel,className:"gtm-trackable","data-gtm-event-context":u,"data-gtm-event-type":`cancel-${e.type}-click`,disabled:!a.cancel&&(!d||!d.id||!h),children:l.formatMessage({id:`${At}cancel`})}),U.push({variant:"primary",size:{mobile:"small",600:"medium"},onClick:j=>{if(r.isEditing){S("submitting"),s.handleSaveEdit&&s.handleSaveEdit(E.current&&"value"in E.current?E.current.value:"");return}w(j)},className:"gtm-trackable","data-gtm-event-context":u,"data-gtm-event-type":`${r.isEditing?"save":"submit"}-${e.type}-click`,"data-testid":"save-button",disabled:!d||!d.id||!t||R||L||r.isEditing&&h===r.isEditing.text,children:l.formatMessage({id:`${At}${L?r.isEditing?"saving":"posting":r.isEditing?"save":"post"}`})}),O.jsxs("form",{id:T,className:ae("discussion-card discussion-form",{"no-styling":r.isInWrapper&&r.isEditing}),"data-testid":`discussion-${e.type}-form`,children:[(r==null?void 0:r.showTitle)&&!r.isEditing&&["question"].includes(e.type)&&O.jsx("h2",{children:ur(l.formatMessage,`${At}title`,e.type,"action")}),O.jsx(Ou,{member:d||"community",gtmContext:u,gtmType:"profile-click"}),O.jsx(lt,{element:"label",showOnFocus:!1,htmlFor:`${T}-input`,children:ur(l.formatMessage,`${At}label`,e.type,"action")}),O.jsx(LN,{ref:n,id:`${T}-input`,name:e.type,placeholder:ur(l.formatMessage,`${At}placeholder`,e.type,"action"),onChange:b,value:h,maxLength:i,"aria-invalid":!!p,"aria-errormessage":"error-message",minRows:o,autoFocus:!!r.isEditing}),O.jsx("small",{children:ur(l.formatMessage,`${At}explainer`,e.type,"action",{a:j=>O.jsx("a",{href:"https://about.apolitical.co/q-and-a-community-guidelines",target:"_blank",className:"gtm-trackable","data-gtm-event-context":u,"data-gtm-event-type":"community-guidelines-link",children:j})})}),O.jsx(na,{buttons:U}),_==="submitted"&&O.jsx(tu,{className:"success","data-testid":"success",children:ur(l.formatMessage,`${At}success`,e.type,"action")}),p&&O.jsx(tu,{id:"error-message",className:"error","data-testid":"error",children:a.error?a.error:typeof p=="string"?p.includes(" ")?p:l.formatMessage({id:p},{action:l.formatMessage({id:`discussion_action_${e.type}`}),maxLength:i}):p})]})},ph=({contentType:e,createPost:t,membershipRequiredToPost:{isMember:r,required:n,join:i,leave:o,notMemberStateText:a}})=>n&&!r?O.jsx(sa,{text:a,button:{component:O.jsx(oh,{functions:{join:i,leave:o}})}}):O.jsx(dh,{content:{type:e,slugs:{}},functions:{create:t}}),kN={showThread:!1,showForm:!1},mh=$.createContext(kN),MN=({children:e})=>{const[t,r]=$.useState({showThread:!1,showForm:!1});return O.jsx(mh.Provider,{value:{...t,updateConversation:r},children:e})},FN=({question:e,answer:t,reply:r})=>({...e&&{questionSlug:e},...t&&{answerSlug:t},...r&&{replySlug:r}}),DN=(e,t=10)=>!e||e.length===0?[]:e.slice(0,t);let Os=!1;const Tl=()=>{Os!==!1&&(clearTimeout(Os),Os=!1)},xl=10,TE=({element:e="div",likes:t=0,peopleWhoLiked:r=!1,isShort:n=!0,userLiked:i=!1,content:o={type:"reply",slugs:{}},canLike:a=!0,functions:{createLike:s=()=>{},deleteLike:u=()=>{}}={}})=>{const l=Oe(),{pathname:c}=ft.useLocation();$.useEffect(()=>{p(i)},[i]);const[d,h]=$.useState(t),[f,p]=$.useState(i),[m,_]=$.useState(!1),[S,E]=$.useState(!1),b=$.useMemo(()=>DN(r,xl),[r]),T=P=>{if(P.preventDefault(),P.stopPropagation(),E(!1),Os)return Tl(),!1;if(Tl(),m||!a)return!1;Os=setTimeout(w,350)},w=async()=>{if(Tl(),m||!a)return!1;let P=f?d-1:d+1;P<0&&(P=0),_(!0),h(P),p(!f);try{if(o&&o.slugs){const R=FN(o.slugs);f?await u(R):await s(R,{contentPath:c})}}catch{h(t),p(i)}finally{_(!1)}};return $.createElement(e,{className:ae("likes-wrapper text-medium action-button",{"show-spinner":m,"is-liked":f,disabled:!a}),onClick:T,onMouseEnter:()=>{E(!0)},onMouseLeave:()=>{E(!1)},onFocus:()=>{E(!0)},onBlur:()=>{E(!1)},children:O.jsxs(O.Fragment,{children:[O.jsx(ze,{variant:"tertiary",size:"medium",icon:{icon:f?"heart":"heart_empty",animate:"bounce"},className:ae({"do-animation":f&&!i}),screenreaderText:a?l.formatMessage({id:`discussion_likes_${f?"unlike":"like"}`},{action:l.formatMessage({id:`discussion_action_${o.type}`})}):!1,onClick:T,disabled:!a,"aria-hidden":!a,"data-testid":"like-button","data-gtm-event-context":"Likes","data-gtm-event-type":`like-${o.type}-click`}),O.jsx("span",{className:ae("number-of-likes",{"no-likes":d===0}),"data-testid":"number-of-likes",children:l.formatMessage({id:`discussion_likes${n?"_short":""}`},{number:d})}),r&&O.jsx(r0,{isOpen:S,isLoading:r.length===0,children:r.length&&O.jsxs("ul",{children:[b.map(P=>typeof P=="string"||!P.name?null:O.jsx("li",{children:O.jsx(wu,{href:P.id?`/profiles/${P.id}`:void 0,gtmContext:"Likes",gtmType:"liked-name-click",children:P.name})},P.id||window.btoa(P.name))),r.length>xl&&O.jsx("li",{children:l.formatMessage({id:"discussion_likes_more"},{number:r.length-xl})})]})})]})})};var du={exports:{}};du.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",u="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",p="[object GeneratorFunction]",m="[object Map]",_="[object Number]",S="[object Null]",E="[object Object]",b="[object Promise]",T="[object Proxy]",w="[object RegExp]",P="[object Set]",R="[object String]",L="[object Symbol]",U="[object Undefined]",q="[object WeakMap]",G="[object ArrayBuffer]",j="[object DataView]",Y="[object Float32Array]",re="[object Float64Array]",K="[object Int8Array]",M="[object Int16Array]",z="[object Int32Array]",Z="[object Uint8Array]",fe="[object Uint8ClampedArray]",X="[object Uint16Array]",te="[object Uint32Array]",oe=/[\\^$.*+?()[\]{}|]/g,he=/^\[object .+?Constructor\]$/,Ve=/^(?:0|[1-9]\d*)$/,ee={};ee[Y]=ee[re]=ee[K]=ee[M]=ee[z]=ee[Z]=ee[fe]=ee[X]=ee[te]=!0,ee[s]=ee[u]=ee[G]=ee[c]=ee[j]=ee[d]=ee[h]=ee[f]=ee[m]=ee[_]=ee[E]=ee[w]=ee[P]=ee[R]=ee[q]=!1;var ue=typeof de=="object"&&de&&de.Object===Object&&de,De=typeof self=="object"&&self&&self.Object===Object&&self,Ie=ue||De||Function("return this")(),xt=t&&!t.nodeType&&t,Rt=xt&&!0&&e&&!e.nodeType&&e,Vt=Rt&&Rt.exports===xt,se=Vt&&ue.process,st=function(){try{return se&&se.binding&&se.binding("util")}catch{}}(),Je=st&&st.isTypedArray;function Wt(y,A){for(var I=-1,W=y==null?0:y.length,ge=0,le=[];++I<W;){var _e=y[I];A(_e,I,y)&&(le[ge++]=_e)}return le}function Sr(y,A){for(var I=-1,W=A.length,ge=y.length;++I<W;)y[ge+I]=A[I];return y}function tr(y,A){for(var I=-1,W=y==null?0:y.length;++I<W;)if(A(y[I],I,y))return!0;return!1}function Mt(y,A){for(var I=-1,W=Array(y);++I<y;)W[I]=A(I);return W}function vn(y){return function(A){return y(A)}}function zt(y,A){return y.has(A)}function Ft(y,A){return y==null?void 0:y[A]}function Ze(y){var A=-1,I=Array(y.size);return y.forEach(function(W,ge){I[++A]=[ge,W]}),I}function Qt(y,A){return function(I){return y(A(I))}}function vt(y){var A=-1,I=Array(y.size);return y.forEach(function(W){I[++A]=W}),I}var at=Array.prototype,En=Function.prototype,x=Object.prototype,g=Ie["__core-js_shared__"],v=En.toString,C=x.hasOwnProperty,k=function(){var y=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),H=x.toString,Q=RegExp("^"+v.call(C).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=Vt?Ie.Buffer:void 0,Ce=Ie.Symbol,Re=Ie.Uint8Array,Pe=x.propertyIsEnumerable,Ee=at.splice,Pt=Ce?Ce.toStringTag:void 0,qr=Object.getOwnPropertySymbols,_n=me?me.isBuffer:void 0,Tr=Qt(Object.keys,Object),bn=Kt(Ie,"DataView"),xr=Kt(Ie,"Map"),wn=Kt(Ie,"Promise"),Sn=Kt(Ie,"Set"),Tn=Kt(Ie,"WeakMap"),rr=Kt(Object,"create"),fi=ut(bn),Yt=ut(xr),Eo=ut(wn),_o=ut(Sn),bo=ut(Tn),hi=Ce?Ce.prototype:void 0,xn=hi?hi.valueOf:void 0;function We(y){var A=-1,I=y==null?0:y.length;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function On(){this.__data__=rr?rr(null):{},this.size=0}function An(y){var A=this.has(y)&&delete this.__data__[y];return this.size-=A?1:0,A}function Or(y){var A=this.__data__;if(rr){var I=A[y];return I===n?void 0:I}return C.call(A,y)?A[y]:void 0}function di(y){var A=this.__data__;return rr?A[y]!==void 0:C.call(A,y)}function wo(y,A){var I=this.__data__;return this.size+=this.has(y)?0:1,I[y]=rr&&A===void 0?n:A,this}We.prototype.clear=On,We.prototype.delete=An,We.prototype.get=Or,We.prototype.has=di,We.prototype.set=wo;function et(y){var A=-1,I=y==null?0:y.length;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function So(){this.__data__=[],this.size=0}function To(y){var A=this.__data__,I=Wr(A,y);if(I<0)return!1;var W=A.length-1;return I==W?A.pop():Ee.call(A,I,1),--this.size,!0}function xo(y){var A=this.__data__,I=Wr(A,y);return I<0?void 0:A[I][1]}function Oo(y){return Wr(this.__data__,y)>-1}function Cn(y,A){var I=this.__data__,W=Wr(I,y);return W<0?(++this.size,I.push([y,A])):I[W][1]=A,this}et.prototype.clear=So,et.prototype.delete=To,et.prototype.get=xo,et.prototype.has=Oo,et.prototype.set=Cn;function dt(y){var A=-1,I=y==null?0:y.length;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function Ao(){this.size=0,this.__data__={hash:new We,map:new(xr||et),string:new We}}function Co(y){var A=Nt(this,y).delete(y);return this.size-=A?1:0,A}function Ro(y){return Nt(this,y).get(y)}function Po(y){return Nt(this,y).has(y)}function No(y,A){var I=Nt(this,y),W=I.size;return I.set(y,A),this.size+=I.size==W?0:1,this}dt.prototype.clear=Ao,dt.prototype.delete=Co,dt.prototype.get=Ro,dt.prototype.has=Po,dt.prototype.set=No;function Gr(y){var A=-1,I=y==null?0:y.length;for(this.__data__=new dt;++A<I;)this.add(y[A])}function pi(y){return this.__data__.set(y,n),this}function Vr(y){return this.__data__.has(y)}Gr.prototype.add=Gr.prototype.push=pi,Gr.prototype.has=Vr;function Ot(y){var A=this.__data__=new et(y);this.size=A.size}function Rn(){this.__data__=new et,this.size=0}function Io(y){var A=this.__data__,I=A.delete(y);return this.size=A.size,I}function Lo(y){return this.__data__.get(y)}function ko(y){return this.__data__.has(y)}function Mo(y,A){var I=this.__data__;if(I instanceof et){var W=I.__data__;if(!xr||W.length<r-1)return W.push([y,A]),this.size=++I.size,this;I=this.__data__=new dt(W)}return I.set(y,A),this.size=I.size,this}Ot.prototype.clear=Rn,Ot.prototype.delete=Io,Ot.prototype.get=Lo,Ot.prototype.has=ko,Ot.prototype.set=Mo;function Fo(y,A){var I=zr(y),W=!I&&_i(y),ge=!I&&!W&&Yr(y),le=!I&&!W&&!ge&&kn(y),_e=I||W||ge||le,be=_e?Mt(y.length,String):[],He=be.length;for(var Ae in y)(A||C.call(y,Ae))&&!(_e&&(Ae=="length"||ge&&(Ae=="offset"||Ae=="parent")||le&&(Ae=="buffer"||Ae=="byteLength"||Ae=="byteOffset")||nr(Ae,He)))&&be.push(Ae);return be}function Wr(y,A){for(var I=y.length;I--;)if(Ei(y[I][0],A))return I;return-1}function Pn(y,A,I){var W=A(y);return zr(y)?W:Sr(W,I(y))}function Ar(y){return y==null?y===void 0?U:S:Pt&&Pt in Object(y)?Xt(y):vi(y)}function mi(y){return Dt(y)&&Ar(y)==s}function gi(y,A,I,W,ge){return y===A?!0:y==null||A==null||!Dt(y)&&!Dt(A)?y!==y&&A!==A:yi(y,A,I,W,gi,ge)}function yi(y,A,I,W,ge,le){var _e=zr(y),be=zr(A),He=_e?u:It(y),Ae=be?u:It(A);He=He==s?E:He,Ae=Ae==s?E:Ae;var tt=He==E,ct=Ae==E,Ge=He==Ae;if(Ge&&Yr(y)){if(!Yr(A))return!1;_e=!0,tt=!1}if(Ge&&!tt)return le||(le=new Ot),_e||kn(y)?Nn(y,A,I,W,ge,le):$o(y,A,He,I,W,ge,le);if(!(I&i)){var rt=tt&&C.call(y,"__wrapped__"),Qe=ct&&C.call(A,"__wrapped__");if(rt||Qe){var ir=rt?y.value():y,Jt=Qe?A.value():A;return le||(le=new Ot),ge(ir,Jt,I,W,le)}}return Ge?(le||(le=new Ot),In(y,A,I,W,ge,le)):!1}function Do(y){if(!wi(y)||qo(y))return!1;var A=bi(y)?Q:he;return A.test(ut(y))}function Bo(y){return Dt(y)&&Ln(y.length)&&!!ee[Ar(y)]}function Uo(y){if(!Go(y))return Tr(y);var A=[];for(var I in Object(y))C.call(y,I)&&I!="constructor"&&A.push(I);return A}function Nn(y,A,I,W,ge,le){var _e=I&i,be=y.length,He=A.length;if(be!=He&&!(_e&&He>be))return!1;var Ae=le.get(y);if(Ae&&le.get(A))return Ae==A;var tt=-1,ct=!0,Ge=I&o?new Gr:void 0;for(le.set(y,A),le.set(A,y);++tt<be;){var rt=y[tt],Qe=A[tt];if(W)var ir=_e?W(Qe,rt,tt,A,y,le):W(rt,Qe,tt,y,A,le);if(ir!==void 0){if(ir)continue;ct=!1;break}if(Ge){if(!tr(A,function(Jt,Rr){if(!zt(Ge,Rr)&&(rt===Jt||ge(rt,Jt,I,W,le)))return Ge.push(Rr)})){ct=!1;break}}else if(!(rt===Qe||ge(rt,Qe,I,W,le))){ct=!1;break}}return le.delete(y),le.delete(A),ct}function $o(y,A,I,W,ge,le,_e){switch(I){case j:if(y.byteLength!=A.byteLength||y.byteOffset!=A.byteOffset)return!1;y=y.buffer,A=A.buffer;case G:return!(y.byteLength!=A.byteLength||!le(new Re(y),new Re(A)));case c:case d:case _:return Ei(+y,+A);case h:return y.name==A.name&&y.message==A.message;case w:case R:return y==A+"";case m:var be=Ze;case P:var He=W&i;if(be||(be=vt),y.size!=A.size&&!He)return!1;var Ae=_e.get(y);if(Ae)return Ae==A;W|=o,_e.set(y,A);var tt=Nn(be(y),be(A),W,ge,le,_e);return _e.delete(y),tt;case L:if(xn)return xn.call(y)==xn.call(A)}return!1}function In(y,A,I,W,ge,le){var _e=I&i,be=Cr(y),He=be.length,Ae=Cr(A),tt=Ae.length;if(He!=tt&&!_e)return!1;for(var ct=He;ct--;){var Ge=be[ct];if(!(_e?Ge in A:C.call(A,Ge)))return!1}var rt=le.get(y);if(rt&&le.get(A))return rt==A;var Qe=!0;le.set(y,A),le.set(A,y);for(var ir=_e;++ct<He;){Ge=be[ct];var Jt=y[Ge],Rr=A[Ge];if(W)var aa=_e?W(Rr,Jt,Ge,A,y,le):W(Jt,Rr,Ge,y,A,le);if(!(aa===void 0?Jt===Rr||ge(Jt,Rr,I,W,le):aa)){Qe=!1;break}ir||(ir=Ge=="constructor")}if(Qe&&!ir){var or=y.constructor,Kr=A.constructor;or!=Kr&&"constructor"in y&&"constructor"in A&&!(typeof or=="function"&&or instanceof or&&typeof Kr=="function"&&Kr instanceof Kr)&&(Qe=!1)}return le.delete(y),le.delete(A),Qe}function Cr(y){return Pn(y,Si,jo)}function Nt(y,A){var I=y.__data__;return Ho(A)?I[typeof A=="string"?"string":"hash"]:I.map}function Kt(y,A){var I=Ft(y,A);return Do(I)?I:void 0}function Xt(y){var A=C.call(y,Pt),I=y[Pt];try{y[Pt]=void 0;var W=!0}catch{}var ge=H.call(y);return W&&(A?y[Pt]=I:delete y[Pt]),ge}var jo=qr?function(y){return y==null?[]:(y=Object(y),Wt(qr(y),function(A){return Pe.call(y,A)}))}:Ti,It=Ar;(bn&&It(new bn(new ArrayBuffer(1)))!=j||xr&&It(new xr)!=m||wn&&It(wn.resolve())!=b||Sn&&It(new Sn)!=P||Tn&&It(new Tn)!=q)&&(It=function(y){var A=Ar(y),I=A==E?y.constructor:void 0,W=I?ut(I):"";if(W)switch(W){case fi:return j;case Yt:return m;case Eo:return b;case _o:return P;case bo:return q}return A});function nr(y,A){return A=A??a,!!A&&(typeof y=="number"||Ve.test(y))&&y>-1&&y%1==0&&y<A}function Ho(y){var A=typeof y;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?y!=="__proto__":y===null}function qo(y){return!!k&&k in y}function Go(y){var A=y&&y.constructor,I=typeof A=="function"&&A.prototype||x;return y===I}function vi(y){return H.call(y)}function ut(y){if(y!=null){try{return v.call(y)}catch{}try{return y+""}catch{}}return""}function Ei(y,A){return y===A||y!==y&&A!==A}var _i=mi(function(){return arguments}())?mi:function(y){return Dt(y)&&C.call(y,"callee")&&!Pe.call(y,"callee")},zr=Array.isArray;function Qr(y){return y!=null&&Ln(y.length)&&!bi(y)}var Yr=_n||Wo;function Vo(y,A){return gi(y,A)}function bi(y){if(!wi(y))return!1;var A=Ar(y);return A==f||A==p||A==l||A==T}function Ln(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=a}function wi(y){var A=typeof y;return y!=null&&(A=="object"||A=="function")}function Dt(y){return y!=null&&typeof y=="object"}var kn=Je?vn(Je):Bo;function Si(y){return Qr(y)?Fo(y):Uo(y)}function Ti(){return[]}function Wo(){return!1}e.exports=Vo})(du,du.exports);var BN=du.exports;const UN=_r(BN);const xE=({element:e="section",children:t,className:r,...n})=>$.createElement(e,{className:ae("modal",r),children:typeof t=="string"?O.jsx("p",{children:t}):t,...n});const OE=({id:e="content-overlay",isOpen:t=!1,maxWidth:r,functions:{onOpen:n=()=>{},onClose:i=()=>{}}={},forceShow:{error:o=!1}={},title:a,children:s,buttons:u,className:l="",gtmContext:c="Modal"})=>{const d=Oe(),[h,f]=$.useState(t),p=_=>{f(_),_?(n(),document.body.classList.add("has-overlay")):(i(),document.body.classList.remove("has-overlay"))};$.useEffect(()=>{p(t)},[t]);const m=r?{"--max-width":`${r/16}rem`}:{};return O.jsx("div",{className:ae("overlay",{open:h}),children:O.jsx(xE,{id:e,className:ae("overlay-modal",l,{"has-max-width":r}),hidden:!h,style:m,children:t&&O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"top",children:[O.jsx("h2",{children:a}),O.jsx(ze,{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:d.formatMessage({id:"overlay_button"})})]}),O.jsx(Za,{}),s,u&&O.jsxs("div",{className:"bottom",children:[O.jsx(Za,{}),O.jsx(na,{buttons:u})]}),o&&O.jsx(tu,{className:"error",children:o})]})})})},AE=(e,t)=>({"aria-haspopup":!0,"aria-expanded":t,"aria-controls":e}),Xm=e=>{const t={};return Object.keys(e).forEach(r=>{t[`${r}Slug`]=e[r]}),t};const kr="discussion_",Lu=({element:e="div",content:t,userHasPermissions:r=!0,isLoading:n=!1,originalAuthorId:i,functions:{content:{createContent:o,deleteContent:a,updateContent:s}={createContent:()=>{},deleteContent:()=>{},updateContent:()=>{}},likes:{createLike:u,deleteLike:l}={createLike:()=>{},deleteLike:()=>{}},comments:{openComments:c}={openComments:()=>{}}},links:d={},className:h,gtmContext:f="DiscussionAnswer",children:p})=>{const m=Oe(),_=ft.useNavigate(),S=$.useContext(jr),E=$.useContext(mh),[b,T]=$.useState({body:t&&t.body||"",isEditing:!1,didEdit:t&&t.isEdited||!1}),[w,P]=$.useState(!1),[R,L]=$.useState("");if($.useEffect(()=>{T({...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(vr,{className:"discussion-card discussion-post"});const{author:U,canLike:q,createdAt:G,id:j,likes:Y=0,userLiked:re,comments:K=0}=t,M=S&&S.id&&typeof U!="string"&&U.id&&U.id===S.id||!1,z=typeof q=="boolean"?q:r?!M:!1,Z=async oe=>{oe||(oe=""),L("");try{if(!UN(oe,b.body)){const he=t.type==="question"?{title:oe}:{body:oe};await s(Xm(t.slugs),he)}T({body:oe,isEditing:!1,didEdit:!0})}catch{L(`${kr}form_error`)}},fe=()=>{E&&E.updateConversation&&E.updateConversation({showThread:!0,showForm:!0}),setTimeout(()=>{const he=`reply-form-${(t.type==="answer"?t.slug:t.slugs.answer||"").toLowerCase().slice(-15)}`,Ve=document.getElementById(he),ee=document.getElementById(`${he}-input`);ee&&ee.focus(),Ve&&Ve.scrollIntoView({behavior:"smooth"})},0)},X=()=>{try{a(Xm(t.slugs))}catch{L("delete-error")}},te=[{text:m.formatMessage({id:`${kr}moreMenu_report`}),href:`mailto:community@apolitical.co?subject=${encodeURI(m.formatMessage({id:`${kr}report_subject`}))}&body=${encodeURI(m.formatMessage({id:`${kr}report_body`},{contentType:t.type||"",contentSlug:t.slug||"",contentUrl:`${window.origin}${typeof process<"u"&&process.env.PUBLIC_URL||""}/${t.slugs.question||""}`}))}`,icon:"flag"}];return r&&M&&te.push({text:m.formatMessage({id:`${kr}moreMenu_edit`}),onClick:()=>T({...b,isEditing:!0}),icon:"pencil-paper",className:"gtm-trackable","data-gtm-event-context":f,"data-gtm-event-type":`edit-${t.type}-click`},{text:m.formatMessage({id:`${kr}moreMenu_delete`}),onClick:oe=>{oe.preventDefault(),oe.stopPropagation(),P(!0)},icon:"trash",className:"gtm-trackable","data-gtm-event-context":f,"data-gtm-event-type":`delete-${t.type}-click`,...AE(`delete-${t.slug}-modal`,w)}),$.createElement(e,{className:ae("discussion-post",h),"data-testid":`discussion-${t.type}-thread`,children:O.jsxs(O.Fragment,{children:[O.jsxs("div",{id:j||t.slug,className:ae("discussion-card",t.type,{editing:b.isEditing,"has-link":d.post&&!b.isEditing}),onClick:oe=>{!d.post||b.isEditing||(oe.preventDefault(),oe.stopPropagation(),_(d.post))},children:[!b.isEditing&&O.jsx(Ou,{member:U,additionalContent:{createdAt:G,didEdit:b.didEdit},className:typeof U!="string"&&U.id===i?"highlighted":"",gtmContext:f,gtmType:"profile-click"}),b.isEditing?O.jsx(dh,{content:{type:t.type,slugs:t.slugs},userHasPermissions:r,meta:{isLoading:n,isInWrapper:!0,isEditing:{text:b.body}},maxLength:t.type==="question"?250:5e4,forceShow:{error:R!==""&&R!=="delete-error"?m.formatMessage({id:R},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},functions:{create:o,handleSaveEdit:Z,handleCancel:()=>{L(""),T({...b,isEditing:!1})}},gtmContext:`${f}Form`}):d.post?O.jsx(ft.Link,{to:d.post,className:"gtm-trackable","data-gtm-event-context":f,"data-gtm-event-type":"title-click",children:O.jsx(nf,{options:{overrides:{a:x0}},children:b.body})}):O.jsx(nf,{options:{wrapper:t.type==="question"?"h1":$.Fragment,forceWrapper:t.type==="question",forceInline:t.type==="question",forceBlock:t.type!=="question"},children:b.body}),!b.isEditing&&O.jsxs("ul",{className:ae("actions text-medium",t.type),"data-testid":`${t.type}-actions`,children:[O.jsx(TE,{element:"li",likes:Y,isShort:!1,userLiked:re,content:{type:t.type,slugs:t.slugs},canLike:z,functions:{createLike:u,deleteLike:l}}),["question","post"].includes(t.type)||d.comments||typeof c=="function"&&O.jsxs("li",{className:"action-button",onClick:oe=>{oe.preventDefault(),oe.stopPropagation(),d.comments&&_(d.comments),typeof c=="function"&&c()},children:[O.jsx(ze,{variant:"tertiary",size:"medium",styling:{muted:!0},icon:{icon:"speech-bubble_square_thick"},href:d.comments?d.comments:!1,onClick:d.comments||typeof c!="function"?!1:c,className:"gtm-trackable","data-gtm-event-context":f,"data-gtm-event-type":`answer-${t.type}-click`,screenreaderText:m.formatMessage({id:`${kr}comments_screenReader`},{count:K})}),O.jsx("span",{children:m.formatMessage({id:`${kr}comments`},{count:K})})]}),(t.type==="answer"||t.type==="reply")&&O.jsx("li",{children:O.jsx(ze,{variant:"tertiary",size:"medium",styling:{muted:!0},onClick:fe,children:m.formatMessage({id:`${kr}reply`})})}),O.jsx(uE,{element:"li",id:`more-${t.slug}`,options:te})]})]}),p,O.jsx(OE,{id:`delete-${t.slug}-modal`,isOpen:w,functions:{onOpen:()=>{},onClose:()=>P(!1)},forceShow:{error:R==="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:()=>P(!1),children:m.formatMessage({id:"discussion_delete_cancel"})},{variant:"primary",className:"destructive",onClick:X,children:m.formatMessage({id:"discussion_delete_delete"})}],gtmContext:`${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,children:O.jsx(fn,{id:"discussion_delete_text",values:{p:oe=>O.jsx("p",{children:oe}),action:m.formatMessage({id:`discussion_action_${t.type}`})}})})]})})};const Ol="discussion_responses_",$N=({type:e="answer",responses:t=0})=>{const r=Oe();return O.jsxs("div",{className:"responses-heading",children:[O.jsx("h3",{children:r.formatMessage({id:`${Ol}title`},{action:r.formatMessage({id:`${Ol}${e}`}),count:t})}),t===0&&O.jsx("p",{children:ur(r.formatMessage,`${Ol}empty`,e,e)})]})};const jN=({isOpen:e=!1,count:t=0,children:r})=>{const n=Oe(),i=$.useRef(null),[o,a]=$.useState(e),[s,u]=$.useState("closed");$.useEffect(()=>{const h=i.current;if(h)return h.addEventListener("transitionend",l),()=>{h.removeEventListener("transitionend",l)}},[]),ni(()=>{s==="closed"&&!o||u(["opening","open"].includes(s)?"ready-to-close":"opening")},[o]),$.useEffect(()=>{s==="ready-to-close"&&u("closing")},[s]);const l=({propertyName:h})=>{h==="max-height"&&u(f=>f==="opening"?"open":f==="closing"?"closed":f)},c=["opening","open"].includes(s),d=Tv(r,{element:"li"});return O.jsxs("div",{className:"thread-wrapper",children:[O.jsx(ze,{variant:"secondary",size:"small",styling:{muted:!0},icon:{icon:`arrow_corner-down_${c?"left":"right"}`},onClick:()=>{a(!o)},children:n.formatMessage({id:`discussion_thread_${c?"hide":"show"}`},{count:t})}),O.jsx("ul",{ref:i,className:ae("thread",s),hidden:!o,children:d})]})},HN=({user:e,content:t,verb:r="post"})=>({actor:{id:e.id,data:{name:e.name,organization:e==null?void 0:e.organization,jobTitle:e==null?void 0:e.jobTitle}},content:t,latest_reactions:{like:[]},reaction_counts:{like:0},verb:r}),qN=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({content:s})=>{if(!r)return;const u=HN({user:r,content:s,verb:"post"});await e.cancelQueries({queryKey:t});const l=e.getQueryData(t);return e.setQueryData(t,c=>[...c,u]),{previousActivities:l}},onError:(s,u,l)=>{e.setQueryData(t,l.previousActivities)},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),GN=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async({activityId:s})=>{await e.cancelQueries({queryKey:t});const u=e.getQueryData(t),l=u==null?void 0:u.map(c=>{var d;return(c==null?void 0:c.id)===s&&((d=c.reaction_counts)!=null&&d.like?c.reaction_counts.like+=1:c.reaction_counts.like=1),c});return e.setQueryData(t,()=>l&&[...l]),{previousActivities:l}},onError:(s,u,l)=>{e.setQueryData(t,l.previousActivities)},onSuccess:s=>{const u=e.getQueryData(t),l=u==null?void 0:u.map(c=>((c==null?void 0:c.id)===(s==null?void 0:s.activity_id)&&(c.latest_reactions.like?c.latest_reactions.like.push(s):c.latest_reactions.like=[s]),c));return e.setQueryData(t,()=>l&&[...l]),{previousActivities:u}},onSettled:(s,u,l)=>{e.invalidateQueries({queryKey:[...t,l.activityId]})}}),VN=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({activityId:u})=>{await e.cancelQueries({queryKey:t});const l=e.getQueryData(t),c=l==null?void 0:l.map(d=>{var h;return(d==null?void 0:d.id)===u&&(h=d.reaction_counts)!=null&&h.like&&(d.reaction_counts.like-=1),d});return e.setQueryData(t,()=>c&&[...c]),{previousActivities:c}},onError:(u,l,c)=>{e.setQueryData(t,c.previousActivities)},onSuccess:(u,{activityId:l})=>{const c=e.getQueryData(t),d=c==null?void 0:c.map(h=>{var f,p,m,_;if(h.id===l){const S=(m=(p=(f=h.latest_reactions)==null?void 0:f.like)==null?void 0:p.find(E=>E.user_id===(r==null?void 0:r.id)))==null?void 0:m.id;return h.latest_reactions.like=(_=h.latest_reactions.like)==null?void 0:_.filter(E=>E.id!==S),h}else return h});return e.setQueryData(t,()=>d&&[...d]),{previousActivities:c}},onSettled:(u,l,c)=>{e.invalidateQueries({queryKey:[...t,c.activityId]})}}),WN=({basePath:e,parentId:t,membershipRequiredToPost:{isMember:r,join:n,leave:i},functions:{list:o,create:a,like:s,unlike:u}})=>{const l=go(),c=$.useContext(jr),{data:d,error:h,isLoading:f,isFetching:p}=q0({queryKey:[e,t],queryFn:o}),m=qN({queryClient:l,queryKey:[e,t],user:c,mutationFn:a}),{mutate:_}=hn(m),S=GN({queryClient:l,queryKey:[e,t],mutationFn:s}),{mutate:E}=hn(S),b=VN({queryClient:l,queryKey:[e,t],user:c,mutationFn:async({activityId:R})=>{var q,G,j;const L=d&&(d==null?void 0:d.find(Y=>Y.id===R)),U=(j=(G=(q=L==null?void 0:L.latest_reactions)==null?void 0:q.like)==null?void 0:G.find(Y=>Y.user_id===(c==null?void 0:c.id)))==null?void 0:j.id;await u({reactionId:U||"",activityId:R})}}),{mutate:T}=hn(b),w=$.useCallback(({activityId:R})=>E({activityId:R}),[E]),P=$.useCallback(({activityId:R})=>T({activityId:R}),[T]);return h?O.jsx(sa,{variant:"error",text:h.message}):f?O.jsx(vr,{style:{height:"400px"}}):O.jsxs(O.Fragment,{children:[O.jsx(ph,{contentType:"post",createPost:_,membershipRequiredToPost:{isMember:r,required:!0,join:n,leave:i,notMemberStateText:"Join community to create a post."}}),!p&&Array.isArray(d)&&(d==null?void 0:d.map(R=>{var U,q,G,j,Y,re,K,M,z,Z,fe;const L=(q=(U=R==null?void 0:R.latest_reactions)==null?void 0:U.like)==null?void 0:q.filter(X=>X.user_id===(c==null?void 0:c.id));return O.jsx(Lu,{content:{type:"post",body:R==null?void 0:R.content,createdAt:(R==null?void 0:R.time)||"",slugs:{question:t},slug:R==null?void 0:R.id,author:{id:(G=R==null?void 0:R.actor)==null?void 0:G.id,name:(Y=(j=R==null?void 0:R.actor)==null?void 0:j.data)==null?void 0:Y.name,organization:(K=(re=R==null?void 0:R.actor)==null?void 0:re.data)==null?void 0:K.organization,jobTitle:(z=(M=R==null?void 0:R.actor)==null?void 0:M.data)==null?void 0:z.jobTitle,image:{thumbnail:((fe=(Z=R==null?void 0:R.actor)==null?void 0:Z.data)==null?void 0:fe.thumbnail)||void 0}},userLiked:!!(L!=null&&L.length),likes:(R==null?void 0:R.reaction_counts.like)||0,comments:(R==null?void 0:R.reaction_counts.reply)||0},links:{post:`${e}/${t}/${R==null?void 0:R.id}`,comments:`${e}/${t}/${R==null?void 0:R.id}`},functions:{content:{createContent:()=>null,deleteContent:()=>null,updateContent:()=>null},likes:{createLike:()=>{w({activityId:R==null?void 0:R.id})},deleteLike:()=>{P({activityId:R==null?void 0:R.id})}},comments:{openComments:()=>null}}},R==null?void 0:R.id)}))]})},zN=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async()=>{await e.cancelQueries({queryKey:t})},onError:(s,u,l)=>{e.setQueryData(t,l.previousActivity)},onSuccess:s=>{var l;const u=e.getQueryData(t);if(u)return(l=u==null?void 0:u.latest_reactions)!=null&&l.reply?(u.latest_reactions.reply.unshift(s),u&&(u.reaction_counts={reply:u.latest_reactions.reply.length})):(u.latest_reactions={reply:[s]},u.reaction_counts={reply:1}),e.setQueryData(t,()=>({...u})),{previousActivity:u}},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),QN=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async({replyId:a})=>{var l,c;await e.cancelQueries({queryKey:t});const s=e.getQueryData(t),u=(c=(l=s==null?void 0:s.latest_reactions)==null?void 0:l.reply)==null?void 0:c.map(d=>{var h;return d.id===a&&((h=d.children_counts)!=null&&h.like?d.children_counts.like+=1:d.children_counts={like:1}),d});return e.setQueryData(t,()=>({...s,latest_reactions:{reply:u}})),{previousActivity:s}},onError:(a,s,u)=>{e.setQueryData(t,u.previousActivity)},onSuccess:a=>{var l;const s=e.getQueryData(t),u=(l=s==null?void 0:s.latest_reactions.reply)==null?void 0:l.map(c=>(c.id===a.id&&(c.latest_children.like?c.latest_children.like.push(a):c.latest_children.like=[a]),c));return e.setQueryData(t,()=>({...s,latest_reactions:{reply:u}})),{previousActivity:s}}}),YN=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({replyId:s})=>{var c;await e.cancelQueries({queryKey:t});const u=e.getQueryData(t);if(!u)return;const l=(c=u.latest_reactions.reply)==null?void 0:c.map(d=>(d.id===s&&d.children_counts.like&&(d.children_counts.like-=1),d));return e.setQueryData(t,()=>({...u,latest_reactions:{reply:l}})),{previousActivity:u}},onError:(s,u,l)=>{e.setQueryData(t,l.previousActivity)},onSuccess:(s,{replyId:u})=>{var d;const l=e.getQueryData(t);if(!l)return;const c=(d=l.latest_reactions.reply)==null?void 0:d.map(h=>{var f;return h.id===u?(f=h.latest_children.reply)==null?void 0:f.filter(m=>m.user_id!==(r==null?void 0:r.id)):h});return e.setQueryData(t,()=>({...l,latest_reactions:{reply:c}})),{previousActivity:l}}}),CE=({basePath:e,parentId:t,activityId:r,repliesList:n,membershipRequiredToPost:{isMember:i,join:o,leave:a},functions:{createReply:s,like:u,unlike:l}})=>{const c=go(),d=$.useContext(jr),h=zN({queryClient:c,queryKey:[e,t,r],mutationFn:s}),{mutate:f}=hn(h),p=QN({queryClient:c,queryKey:[e,t,r],mutationFn:u}),{mutate:m}=hn(p),_=YN({queryClient:c,queryKey:[e,t,r],user:d,mutationFn:l}),{mutate:S}=hn(_),E=$.useCallback(({replyId:T})=>m({replyId:T}),[m]),b=$.useCallback(({replyId:T})=>S({replyId:T}),[S]);return O.jsxs(O.Fragment,{children:[O.jsx(ph,{contentType:"post",createPost:f,membershipRequiredToPost:{isMember:i,required:!0,join:o,leave:a,notMemberStateText:"Join community to create a post."}}),(n==null?void 0:n.length)===0||(n==null?void 0:n.map(T=>{var P,R,L,U,q,G,j,Y,re,K,M,z,Z,fe,X;const w=((P=T==null?void 0:T.latest_children)==null?void 0:P.like)&&((R=T==null?void 0:T.latest_children)==null?void 0:R.like.filter(te=>te.user_id===(d==null?void 0:d.id)));return O.jsx(Lu,{content:{type:"post",body:((U=(L=T==null?void 0:T.data)==null?void 0:L.content)==null?void 0:U.text)||"",createdAt:T==null?void 0:T.created_at,slugs:{question:`${t}/${r}`,reply:T==null?void 0:T.id},slug:`${e}/${t}/${r}#${T==null?void 0:T.id}`,author:{id:(q=T==null?void 0:T.user)==null?void 0:q.id,name:(j=(G=T==null?void 0:T.user)==null?void 0:G.data)==null?void 0:j.name,organization:(re=(Y=T==null?void 0:T.user)==null?void 0:Y.data)==null?void 0:re.organization,jobTitle:(M=(K=T==null?void 0:T.user)==null?void 0:K.data)==null?void 0:M.jobTitle,image:{thumbnail:((Z=(z=T==null?void 0:T.user)==null?void 0:z.data)==null?void 0:Z.thumbnail)||void 0}},userLiked:!!(w!=null&&w.length),likes:((fe=T==null?void 0:T.children_counts)==null?void 0:fe.like)||0,comments:((X=T==null?void 0:T.children_counts)==null?void 0:X.reply)||0},functions:{content:{createContent:()=>console.log("create"),deleteContent:()=>console.log("delete"),updateContent:()=>console.log("update")},likes:{createLike:()=>E({replyId:T==null?void 0:T.id}),deleteLike:()=>b({replyId:T==null?void 0:T.id})},comments:{openComments:()=>{}}}},T==null?void 0:T.id)}))]})},KN=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async()=>{var u;await e.cancelQueries({queryKey:t});const s=e.getQueryData(t);return(u=s==null?void 0:s.reaction_counts)!=null&&u.like?s.reaction_counts.like+=1:s&&(s.reaction_counts={like:1}),e.setQueryData(t,()=>({...s})),{previousActivity:s}},onError:(s,u,l)=>{e.setQueryData(t,l.previousActivity)},onSuccess:s=>{const u=e.getQueryData(t);return u!=null&&u.latest_reactions.like?u.latest_reactions.like.push(s):u&&(u.latest_reactions={like:[s]}),e.setQueryData(t,()=>({...u})),{previousActivity:u}},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),XN=({queryClient:e,queryKey:t,user:r,activity:n,mutationFn:i})=>({mutationFn:i,onMutate:async()=>{var c;await e.cancelQueries({queryKey:t});const l=e.getQueryData(t);return(c=l==null?void 0:l.reaction_counts)!=null&&c.like&&(l.reaction_counts.like-=1),e.setQueryData(t,()=>({...l})),{previousActivity:l}},onError:(l,c,d)=>{e.setQueryData(t,d.previousActivity)},onSuccess:()=>{var d,h,f;if(!n)return;const l=(f=(h=(d=n.latest_reactions)==null?void 0:d.like)==null?void 0:h.find(p=>p.user_id===(r==null?void 0:r.id)))==null?void 0:f.id,c=e.getQueryData(t);if(c!=null&&c.latest_reactions.like)return c.latest_reactions.like=c.latest_reactions.like.filter(p=>p.id!==l),e.setQueryData(t,()=>({...c})),{previousActivity:c}},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),JN=({basePath:e,parentId:t,activityId:r,membershipRequiredToPost:n,functions:{get:i,likeActivity:o,unlikeActivity:a,createReply:s,likeReply:u,unlikeReply:l}})=>{var P,R,L,U,q,G,j,Y,re,K,M;const c=$.useContext(jr),d=go(),{data:h,error:f,isLoading:p,isFetching:m}=q0({queryKey:[e,t,r],queryFn:i}),_=KN({queryClient:d,queryKey:[e,t,r],mutationFn:o}),{mutate:S}=hn(_),E=XN({queryClient:d,queryKey:[e,t,r],user:c,mutationFn:async()=>{var Z,fe,X;const z=(X=(fe=(Z=h==null?void 0:h.latest_reactions)==null?void 0:Z.like)==null?void 0:fe.find(te=>te.user_id===(c==null?void 0:c.id)))==null?void 0:X.id;await a({activityId:r,reactionId:z})},activity:h}),{mutate:b}=hn(E),T=$.useCallback(({activityId:z})=>S({activityId:z}),[S]),w=$.useCallback(async({activityId:z})=>b({activityId:z}),[b]);return f?O.jsx(sa,{variant:"error",text:f.message}):p||m?O.jsx(vr,{style:{height:"400px"}}):O.jsx(Lu,{content:{type:"post",body:h==null?void 0:h.content,createdAt:(h==null?void 0:h.time)||"",slugs:{question:`${t}/${r}`},slug:r,author:{id:(P=h==null?void 0:h.actor)==null?void 0:P.id,name:(R=h==null?void 0:h.actor)==null?void 0:R.data.name,organization:(L=h==null?void 0:h.actor)==null?void 0:L.data.organization,jobTitle:(U=h==null?void 0:h.actor)==null?void 0:U.data.jobTitle,image:{thumbnail:((q=h==null?void 0:h.actor)==null?void 0:q.data.thumbnail)||void 0}},userLiked:((G=h==null?void 0:h.latest_reactions)==null?void 0:G.like)&&((Y=(j=h==null?void 0:h.latest_reactions)==null?void 0:j.like.filter(z=>(z==null?void 0:z.user_id)===(c==null?void 0:c.id)))==null?void 0:Y.length)>0,likes:h&&(h==null?void 0:h.reaction_counts.like),comments:h&&(h==null?void 0:h.reaction_counts.reply)},originalAuthorId:(re=h==null?void 0:h.actor)==null?void 0:re.id,functions:{content:{createContent:()=>console.log("create"),deleteContent:()=>console.log("delete"),updateContent:()=>console.log("update")},likes:{createLike:()=>T({activityId:r}),deleteLike:()=>w({activityId:r})},comments:{openComments:()=>{}}},children:O.jsxs(O.Fragment,{children:[O.jsxs("h3",{children:["Comments (",((K=h==null?void 0:h.reaction_counts)==null?void 0:K.reply)||0,")"]}),O.jsx(CE,{basePath:e,parentId:t,activityId:r,repliesList:(M=h==null?void 0:h.latest_reactions)==null?void 0:M.reply,membershipRequiredToPost:n,functions:{createReply:s,like:u,unlike:l}})]})},r)},ZN=({id:e,data:{jobTitle:t,name:r,organization:n,thumbnail:i}})=>({id:e,name:r,jobTitle:t,organization:n,image:{thumbnail:i}});exports.$PROXY=Is;exports.$TRACK=th;exports.ASSETS_BUCKET=eu;exports.ActivitiesFeed=WN;exports.ActivitySection=JN;exports.AddPost=ph;exports.Breadcrumbs=nP;exports.Button=ze;exports.ButtonWrapper=na;exports.CollapsibleSection=Yf;exports.Columns=sP;exports.CommunityDetails=rP;exports.Contributors=N0;exports.Conversation=MN;exports.ConversationContext=mh;exports.CookieBanner=cE;exports.Divider=Za;exports.DownloadSection=QA;exports.Dynamic=XR;exports.EmailHelperTextBox=aP;exports.EmptyStateBox=sa;exports.Filters=iP;exports.Footer=ah;exports.For=SR;exports.Form=dh;exports.FullWidthSection=zf;exports.Header=hh;exports.HelperTextBox=T0;exports.HiddenFromScreenReaders=Tf;exports.HideShowTextBox=o1;exports.HighlightedTextBoxWrapper=Ur;exports.Index=TR;exports.IntlProvider=v1;exports.JoinButton=oh;exports.Likes=TE;exports.Link=wu;exports.LoadMore=aE;exports.LoadingPlaceholder=vr;exports.LoadingState=R0;exports.Logo=sh;exports.LogoSection=YA;exports.MarkdownText=nf;exports.MarketingBlock=ZA;exports.Match=AR;exports.Member=Ou;exports.MembersList=yN;exports.Modal=xE;exports.MoreMenu=uE;exports.NUMBER_OF_USERS=tC;exports.Overlay=OE;exports.PageLayout=pN;exports.Pill=O0;exports.Portal=KR;exports.Post=Lu;exports.ProfilePicture=xu;exports.ProgressBar=A0;exports.Rating=fP;exports.ReactQueryProvider=tP;exports.RepliesFeed=CE;exports.ResponsesHeading=$N;exports.ResponsiveImage=xv;exports.SearchForm=dE;exports.Show=xR;exports.Span=x0;exports.StatusBanner=tu;exports.Switch=OR;exports.Tags=gN;exports.Thread=jN;exports.Tooltip=r0;exports.UserContext=jr;exports.UserProvider=E1;exports.VisuallyHidden=lt;exports.addAriaProps=AE;exports.addEventListener=iE;exports.bannerSection=JA;exports.batch=nR;exports.children=nh;exports.className=nE;exports.createComponent=J0;exports.createComputed=vf;exports.createContext=lR;exports.createEffect=rh;exports.createMemo=Tt;exports.createRenderEffect=pn;exports.createRoot=dn;exports.createSignal=wt;exports.createUniqueId=wR;exports.delegateEvents=rE;exports.getListener=sR;exports.getMember=Jf;exports.headerData=Ms;exports.insert=lu;exports.loadingBlock=m1;exports.mapGetSteamData=ZN;exports.mergeProps=Z0;exports.on=iR;exports.onCleanup=Ls;exports.onMount=oR;exports.passwordRules=lP;exports.setAttribute=cu;exports.splitProps=eE;exports.spread=oE;exports.template=UR;exports.untrack=Xe;exports.use=qR;exports.useContext=fR;exports.useEffectAfterMount=ni;exports.useFeatureFlag=fx;exports.useScreenWidth=ra;exports.useScrollListener=dv;exports.useScrollToHash=dx;exports.useTransition=cR;