@apolitical/component-library 1.6.2-beta.0 → 1.6.3-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 (47) hide show
  1. package/4TNE5QTO-10618179.mjs +9077 -0
  2. package/4TNE5QTO-988be988.js +987 -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 +28 -0
  15. package/discussion/feeds/activities-feed/activities-feed.handlers.d.ts +30 -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 +29 -0
  22. package/discussion/feeds/replies-feed/replies-feed.handlers.d.ts +82 -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 +36 -0
  26. package/discussion/sections/activity-section/activity-section.handlers.d.ts +60 -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-618fb391.js +101 -0
  31. package/index-958eb26c.mjs +23281 -0
  32. package/index.d.ts +1 -0
  33. package/index.js +1 -101
  34. package/index.mjs +77 -19491
  35. package/mappers/index.d.ts +1 -0
  36. package/mappers/mapGetSteamData.d.ts +21 -0
  37. package/package.json +1 -1
  38. /package/discussion/{conversation → components/conversation}/conversation.d.ts +0 -0
  39. /package/discussion/{conversation → components/conversation}/index.d.ts +0 -0
  40. /package/discussion/{form → components/form}/index.d.ts +0 -0
  41. /package/discussion/{likes → components/likes}/index.d.ts +0 -0
  42. /package/discussion/{post → components/post}/index.d.ts +0 -0
  43. /package/discussion/{post → components/post}/post.mock.d.ts +0 -0
  44. /package/discussion/{responses-heading → components/responses-heading}/index.d.ts +0 -0
  45. /package/discussion/{responses-heading → components/responses-heading}/responses-heading.d.ts +0 -0
  46. /package/discussion/{thread → components/thread}/index.d.ts +0 -0
  47. /package/discussion/{thread → components/thread}/thread.d.ts +0 -0
@@ -0,0 +1,101 @@
1
+ "use strict";var Pu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var N=(e,t,r)=>(Pu(e,t,"read from private field"),r?r.call(e):t.get(e)),ne=(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)},Z=(e,t,r,n)=>(Pu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var oa=(e,t,r,n)=>({set _(o){Z(e,t,o,r)},get _(){return N(e,t,n)}}),ye=(e,t,r)=>(Pu(e,t,"access private method"),r);const $=require("react"),x=require("react/jsx-runtime");function EE(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=EE($);var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qs(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 o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Km={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=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var s=r.apply(null,i);s&&n.push(s)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var c in i)t.call(i,c)&&i[c]&&n.push(c)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Km);var _E=Km.exports;const ue=vr(_E),bE=({element:e="span",showOnFocus:t=!0,children:r,...n})=>$.createElement(e,{...n,className:ue("hidden",{"show-on-focus":t}),children:r}),lt=$.memo(bE),wE=({element:e="span",children:t=null,...r})=>$.createElement(e,{...r,"aria-hidden":!0},t),yf=$.memo(wE),ri=(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 Xm=TE,ch=xE,SE=Object.prototype.toString,sa=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function TE(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var r={},n=t||{},o=n.decode||OE,i=0;i<e.length;){var a=e.indexOf("=",i);if(a===-1)break;var s=e.indexOf(";",i);if(s===-1)s=e.length;else if(s<a){i=e.lastIndexOf(";",a-1)+1;continue}var c=e.slice(i,a).trim();if(r[c]===void 0){var l=e.slice(a+1,s).trim();l.charCodeAt(0)===34&&(l=l.slice(1,-1)),r[c]=RE(l,o)}i=s+1}return r}function xE(e,t,r){var n=r||{},o=n.encode||AE;if(typeof o!="function")throw new TypeError("option encode is invalid");if(!sa.test(e))throw new TypeError("argument name is invalid");var i=o(t);if(i&&!sa.test(i))throw new TypeError("argument val is invalid");var a=e+"="+i;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(!sa.test(n.domain))throw new TypeError("option domain is invalid");a+="; Domain="+n.domain}if(n.path){if(!sa.test(n.path))throw new TypeError("option path is invalid");a+="; Path="+n.path}if(n.expires){var c=n.expires;if(!CE(c)||isNaN(c.valueOf()))throw new TypeError("option expires is invalid");a+="; Expires="+c.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 u=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(u){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 OE(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function AE(e){return encodeURIComponent(e)}function CE(e){return SE.call(e)==="[object Date]"||e instanceof Date}function RE(e,t){try{return t(e)}catch{return e}}function PE(){return typeof document=="object"&&typeof document.cookie=="string"}function NE(e){return typeof e=="string"?Xm(e):typeof e=="object"&&e!==null?e:{}}function Nu(e,t={}){const r=IE(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function IE(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class Jm{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const o=this.cookies;this.cookies=Xm(document.cookie),this._checkChanges(o)};const n=typeof document>"u"?"":document.cookie;this.cookies=NE(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=PE()}_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:Nu(t[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),Nu(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=Nu(this.cookies[n],t);return r}set(t,r,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const o=typeof r=="string"?r:JSON.stringify(r);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:o}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=ch(t,o,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=ch(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 Zm=pe.createContext(new Jm),{Provider:LE,Consumer:AN}=Zm,kE=Zm;class ME extends pe.Component{constructor(t){super(t),t.cookies?this.cookies=t.cookies:this.cookies=new Jm(void 0,t.defaultSetOptions)}render(){return pe.createElement(LE,{value:this.cookies},this.props.children)}}var wl={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 lh;function FE(){if(lh)return Le;lh=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,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=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,w=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(S){if(typeof S=="object"&&S!==null){var P=S.$$typeof;switch(P){case t:switch(S=S.type,S){case c:case l:case n:case i:case o:case d:return S;default:switch(S=S&&S.$$typeof,S){case s:case u:case p:case f:case a:return S;default:return P}}case r:return P}}}function A(S){return b(S)===l}return Le.AsyncMode=c,Le.ConcurrentMode=l,Le.ContextConsumer=s,Le.ContextProvider=a,Le.Element=t,Le.ForwardRef=u,Le.Fragment=n,Le.Lazy=p,Le.Memo=f,Le.Portal=r,Le.Profiler=i,Le.StrictMode=o,Le.Suspense=d,Le.isAsyncMode=function(S){return A(S)||b(S)===c},Le.isConcurrentMode=A,Le.isContextConsumer=function(S){return b(S)===s},Le.isContextProvider=function(S){return b(S)===a},Le.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Le.isForwardRef=function(S){return b(S)===u},Le.isFragment=function(S){return b(S)===n},Le.isLazy=function(S){return b(S)===p},Le.isMemo=function(S){return b(S)===f},Le.isPortal=function(S){return b(S)===r},Le.isProfiler=function(S){return b(S)===i},Le.isStrictMode=function(S){return b(S)===o},Le.isSuspense=function(S){return b(S)===d},Le.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===l||S===i||S===o||S===d||S===h||typeof S=="object"&&S!==null&&(S.$$typeof===p||S.$$typeof===f||S.$$typeof===a||S.$$typeof===s||S.$$typeof===u||S.$$typeof===_||S.$$typeof===w||S.$$typeof===v||S.$$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 fh;function BE(){return fh||(fh=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,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=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,w=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(oe){return typeof oe=="string"||typeof oe=="function"||oe===n||oe===l||oe===i||oe===o||oe===d||oe===h||typeof oe=="object"&&oe!==null&&(oe.$$typeof===p||oe.$$typeof===f||oe.$$typeof===a||oe.$$typeof===s||oe.$$typeof===u||oe.$$typeof===_||oe.$$typeof===w||oe.$$typeof===v||oe.$$typeof===m)}function A(oe){if(typeof oe=="object"&&oe!==null){var st=oe.$$typeof;switch(st){case t:var Je=oe.type;switch(Je){case c:case l:case n:case i:case o:case d:return Je;default:var Vt=Je&&Je.$$typeof;switch(Vt){case s:case u:case p:case f:case a:return Vt;default:return st}}case r:return st}}}var S=c,P=l,R=s,L=a,k=t,q=u,G=n,H=p,Y=f,ie=r,K=i,D=o,Q=d,ee=!1;function he(oe){return ee||(ee=!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.")),J(oe)||A(oe)===c}function J(oe){return A(oe)===l}function X(oe){return A(oe)===s}function se(oe){return A(oe)===a}function fe(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===t}function He(oe){return A(oe)===u}function te(oe){return A(oe)===n}function ae(oe){return A(oe)===p}function Be(oe){return A(oe)===f}function Ie(oe){return A(oe)===r}function Tt(oe){return A(oe)===i}function At(oe){return A(oe)===o}function Gt(oe){return A(oe)===d}ke.AsyncMode=S,ke.ConcurrentMode=P,ke.ContextConsumer=R,ke.ContextProvider=L,ke.Element=k,ke.ForwardRef=q,ke.Fragment=G,ke.Lazy=H,ke.Memo=Y,ke.Portal=ie,ke.Profiler=K,ke.StrictMode=D,ke.Suspense=Q,ke.isAsyncMode=he,ke.isConcurrentMode=J,ke.isContextConsumer=X,ke.isContextProvider=se,ke.isElement=fe,ke.isForwardRef=He,ke.isFragment=te,ke.isLazy=ae,ke.isMemo=Be,ke.isPortal=Ie,ke.isProfiler=Tt,ke.isStrictMode=At,ke.isSuspense=Gt,ke.isValidElementType=b,ke.typeOf=A}()),ke}process.env.NODE_ENV==="production"?wl.exports=FE():wl.exports=BE();var DE=wl.exports,eg=DE,UE={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$E={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tg={};tg[eg.ForwardRef]=UE;tg[eg.Memo]=$E;function jE(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function rg(e){const t=$.useContext(kE);if(!t)throw new Error("Missing <CookiesProvider>");const[r,n]=$.useState(()=>t.getAll());jE()&&$.useLayoutEffect(()=>{function s(){const c=t.getAll({doNotUpdate:!0});HE(e||null,c,r)&&n(c)}return t.addChangeListener(s),()=>{t.removeChangeListener(s)}},[t,r]);const o=$.useMemo(()=>t.set.bind(t),[t]),i=$.useMemo(()=>t.remove.bind(t),[t]),a=$.useMemo(()=>t.update.bind(t),[t]);return[r,o,i,a]}function HE(e,t,r){if(!e)return!0;for(let n of e)if(t[n]!==r[n])return!0;return!1}var ng={exports:{}},Iu={exports:{}},aa={},ua={exports:{}},Lu,hh;function ig(){return hh||(hh=1,Lu=function(t,r){return function(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];return t.apply(r,o)}}),Lu}var ku,dh;function ft(){if(dh)return ku;dh=1;var e=ig(),t=Object.prototype.toString,r=function(D){return function(Q){var ee=t.call(Q);return D[ee]||(D[ee]=ee.slice(8,-1).toLowerCase())}}(Object.create(null));function n(D){return D=D.toLowerCase(),function(ee){return r(ee)===D}}function o(D){return Array.isArray(D)}function i(D){return typeof D>"u"}function a(D){return D!==null&&!i(D)&&D.constructor!==null&&!i(D.constructor)&&typeof D.constructor.isBuffer=="function"&&D.constructor.isBuffer(D)}var s=n("ArrayBuffer");function c(D){var Q;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?Q=ArrayBuffer.isView(D):Q=D&&D.buffer&&s(D.buffer),Q}function l(D){return typeof D=="string"}function u(D){return typeof D=="number"}function d(D){return D!==null&&typeof D=="object"}function h(D){if(r(D)!=="object")return!1;var Q=Object.getPrototypeOf(D);return Q===null||Q===Object.prototype}var f=n("Date"),p=n("File"),m=n("Blob"),_=n("FileList");function w(D){return t.call(D)==="[object Function]"}function v(D){return d(D)&&w(D.pipe)}function b(D){var Q="[object FormData]";return D&&(typeof FormData=="function"&&D instanceof FormData||t.call(D)===Q||w(D.toString)&&D.toString()===Q)}var A=n("URLSearchParams");function S(D){return D.trim?D.trim():D.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(D,Q){if(!(D===null||typeof D>"u"))if(typeof D!="object"&&(D=[D]),o(D))for(var ee=0,he=D.length;ee<he;ee++)Q.call(null,D[ee],ee,D);else for(var J in D)Object.prototype.hasOwnProperty.call(D,J)&&Q.call(null,D[J],J,D)}function L(){var D={};function Q(J,X){h(D[X])&&h(J)?D[X]=L(D[X],J):h(J)?D[X]=L({},J):o(J)?D[X]=J.slice():D[X]=J}for(var ee=0,he=arguments.length;ee<he;ee++)R(arguments[ee],Q);return D}function k(D,Q,ee){return R(Q,function(J,X){ee&&typeof J=="function"?D[X]=e(J,ee):D[X]=J}),D}function q(D){return D.charCodeAt(0)===65279&&(D=D.slice(1)),D}function G(D,Q,ee,he){D.prototype=Object.create(Q.prototype,he),D.prototype.constructor=D,ee&&Object.assign(D.prototype,ee)}function H(D,Q,ee){var he,J,X,se={};Q=Q||{};do{for(he=Object.getOwnPropertyNames(D),J=he.length;J-- >0;)X=he[J],se[X]||(Q[X]=D[X],se[X]=!0);D=Object.getPrototypeOf(D)}while(D&&(!ee||ee(D,Q))&&D!==Object.prototype);return Q}function Y(D,Q,ee){D=String(D),(ee===void 0||ee>D.length)&&(ee=D.length),ee-=Q.length;var he=D.indexOf(Q,ee);return he!==-1&&he===ee}function ie(D){if(!D)return null;var Q=D.length;if(i(Q))return null;for(var ee=new Array(Q);Q-- >0;)ee[Q]=D[Q];return ee}var K=function(D){return function(Q){return D&&Q instanceof D}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return ku={isArray:o,isArrayBuffer:s,isBuffer:a,isFormData:b,isArrayBufferView:c,isString:l,isNumber:u,isObject:d,isPlainObject:h,isUndefined:i,isDate:f,isFile:p,isBlob:m,isFunction:w,isStream:v,isURLSearchParams:A,isStandardBrowserEnv:P,forEach:R,merge:L,extend:k,trim:S,stripBOM:q,inherits:G,toFlatObject:H,kindOf:r,kindOfTest:n,endsWith:Y,toArray:ie,isTypedArray:K,isFileList:_},ku}var Mu,ph;function og(){if(ph)return Mu;ph=1;var e=ft();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 Mu=function(n,o,i){if(!o)return n;var a;if(i)a=i(o);else if(e.isURLSearchParams(o))a=o.toString();else{var s=[];e.forEach(o,function(u,d){u===null||typeof u>"u"||(e.isArray(u)?d=d+"[]":u=[u],e.forEach(u,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 c=n.indexOf("#");c!==-1&&(n=n.slice(0,c)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n},Mu}var Fu,mh;function qE(){if(mh)return Fu;mh=1;var e=ft();function t(){this.handlers=[]}return t.prototype.use=function(n,o,i){return this.handlers.push({fulfilled:n,rejected:o,synchronous:i?i.synchronous:!1,runWhen:i?i.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(i){i!==null&&n(i)})},Fu=t,Fu}var Bu,gh;function GE(){if(gh)return Bu;gh=1;var e=ft();return Bu=function(r,n){e.forEach(r,function(i,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(r[n]=i,delete r[a])})},Bu}var Du,yh;function so(){if(yh)return Du;yh=1;var e=ft();function t(o,i,a,s,c){Error.call(this),this.message=o,this.name="AxiosError",i&&(this.code=i),a&&(this.config=a),s&&(this.request=s),c&&(this.response=c)}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(o){n[o]={value:o}}),Object.defineProperties(t,n),Object.defineProperty(r,"isAxiosError",{value:!0}),t.from=function(o,i,a,s,c,l){var u=Object.create(r);return e.toFlatObject(o,u,function(h){return h!==Error.prototype}),t.call(u,o.message,i,a,s,c),u.name=o.name,l&&Object.assign(u,l),u},Du=t,Du}var Uu,vh;function sg(){return vh||(vh=1,Uu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),Uu}var $u,Eh;function ag(){if(Eh)return $u;Eh=1;var e=ft();function t(r,n){n=n||new FormData;var o=[];function i(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,c){if(e.isPlainObject(s)||e.isArray(s)){if(o.indexOf(s)!==-1)throw Error("Circular reference detected in "+c);o.push(s),e.forEach(s,function(u,d){if(!e.isUndefined(u)){var h=c?c+"."+d:d,f;if(u&&!c&&typeof u=="object"){if(e.endsWith(d,"{}"))u=JSON.stringify(u);else if(e.endsWith(d,"[]")&&(f=e.toArray(u))){f.forEach(function(p){!e.isUndefined(p)&&n.append(h,i(p))});return}}a(u,h)}}),o.pop()}else n.append(c,i(s))}return a(r),n}return $u=t,$u}var ju,_h;function VE(){if(_h)return ju;_h=1;var e=so();return ju=function(r,n,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?r(o):n(new e("Request failed with status code "+o.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))},ju}var Hu,bh;function WE(){if(bh)return Hu;bh=1;var e=ft();return Hu=e.isStandardBrowserEnv()?function(){return{write:function(n,o,i,a,s,c){var l=[];l.push(n+"="+encodeURIComponent(o)),e.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),c===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Hu}var qu,wh;function zE(){return wh||(wh=1,qu=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),qu}var Gu,Sh;function QE(){return Sh||(Sh=1,Gu=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),Gu}var Vu,Th;function ug(){if(Th)return Vu;Th=1;var e=zE(),t=QE();return Vu=function(n,o){return n&&!e(o)?t(n,o):o},Vu}var Wu,xh;function YE(){if(xh)return Wu;xh=1;var e=ft(),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 Wu=function(n){var o={},i,a,s;return n&&e.forEach(n.split(`
25
+ `),function(l){if(s=l.indexOf(":"),i=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([a]):o[i]=o[i]?o[i]+", "+a:a}}),o},Wu}var zu,Oh;function KE(){if(Oh)return zu;Oh=1;var e=ft();return zu=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),o;function i(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 o=i(window.location.href),function(s){var c=e.isString(s)?i(s):s;return c.protocol===o.protocol&&c.host===o.host}}():function(){return function(){return!0}}(),zu}var Qu,Ah;function fu(){if(Ah)return Qu;Ah=1;var e=so(),t=ft();function r(n){e.call(this,n??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(r,e,{__CANCEL__:!0}),Qu=r,Qu}var Yu,Ch;function XE(){return Ch||(Ch=1,Yu=function(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}),Yu}var Ku,Rh;function Ph(){if(Rh)return Ku;Rh=1;var e=ft(),t=VE(),r=WE(),n=og(),o=ug(),i=YE(),a=KE(),s=sg(),c=so(),l=fu(),u=XE();return Ku=function(h){return new Promise(function(p,m){var _=h.data,w=h.headers,v=h.responseType,b;function A(){h.cancelToken&&h.cancelToken.unsubscribe(b),h.signal&&h.signal.removeEventListener("abort",b)}e.isFormData(_)&&e.isStandardBrowserEnv()&&delete w["Content-Type"];var S=new XMLHttpRequest;if(h.auth){var P=h.auth.username||"",R=h.auth.password?unescape(encodeURIComponent(h.auth.password)):"";w.Authorization="Basic "+btoa(P+":"+R)}var L=o(h.baseURL,h.url);S.open(h.method.toUpperCase(),n(L,h.params,h.paramsSerializer),!0),S.timeout=h.timeout;function k(){if(S){var H="getAllResponseHeaders"in S?i(S.getAllResponseHeaders()):null,Y=!v||v==="text"||v==="json"?S.responseText:S.response,ie={data:Y,status:S.status,statusText:S.statusText,headers:H,config:h,request:S};t(function(D){p(D),A()},function(D){m(D),A()},ie),S=null}}if("onloadend"in S?S.onloadend=k:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(k)},S.onabort=function(){S&&(m(new c("Request aborted",c.ECONNABORTED,h,S)),S=null)},S.onerror=function(){m(new c("Network Error",c.ERR_NETWORK,h,S,S)),S=null},S.ontimeout=function(){var Y=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded",ie=h.transitional||s;h.timeoutErrorMessage&&(Y=h.timeoutErrorMessage),m(new c(Y,ie.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,h,S)),S=null},e.isStandardBrowserEnv()){var q=(h.withCredentials||a(L))&&h.xsrfCookieName?r.read(h.xsrfCookieName):void 0;q&&(w[h.xsrfHeaderName]=q)}"setRequestHeader"in S&&e.forEach(w,function(Y,ie){typeof _>"u"&&ie.toLowerCase()==="content-type"?delete w[ie]:S.setRequestHeader(ie,Y)}),e.isUndefined(h.withCredentials)||(S.withCredentials=!!h.withCredentials),v&&v!=="json"&&(S.responseType=h.responseType),typeof h.onDownloadProgress=="function"&&S.addEventListener("progress",h.onDownloadProgress),typeof h.onUploadProgress=="function"&&S.upload&&S.upload.addEventListener("progress",h.onUploadProgress),(h.cancelToken||h.signal)&&(b=function(H){S&&(m(!H||H&&H.type?new l:H),S.abort(),S=null)},h.cancelToken&&h.cancelToken.subscribe(b),h.signal&&(h.signal.aborted?b():h.signal.addEventListener("abort",b))),_||(_=null);var G=u(L);if(G&&["http","https","file"].indexOf(G)===-1){m(new c("Unsupported protocol "+G+":",c.ERR_BAD_REQUEST,h));return}S.send(_)})},Ku}var Xu,Nh;function JE(){return Nh||(Nh=1,Xu=null),Xu}var Ju,Ih;function vf(){if(Ih)return Ju;Ih=1;var e=ft(),t=GE(),r=so(),n=sg(),o=ag(),i={"Content-Type":"application/x-www-form-urlencoded"};function a(u,d){!e.isUndefined(u)&&e.isUndefined(u["Content-Type"])&&(u["Content-Type"]=d)}function s(){var u;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(u=Ph()),u}function c(u,d,h){if(e.isString(u))try{return(d||JSON.parse)(u),e.trim(u)}catch(f){if(f.name!=="SyntaxError")throw f}return(h||JSON.stringify)(u)}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 o(m?{"files[]":d}:d,_&&new _)}else if(f||p==="application/json")return a(h,"application/json"),c(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:JE()},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(i)}),Ju=l,Ju}var Zu,Lh;function ZE(){if(Lh)return Zu;Lh=1;var e=ft(),t=vf();return Zu=function(n,o,i){var a=this||t;return e.forEach(i,function(c){n=c.call(a,n,o)}),n},Zu}var ec,kh;function cg(){return kh||(kh=1,ec=function(t){return!!(t&&t.__CANCEL__)}),ec}var tc,Mh;function e_(){if(Mh)return tc;Mh=1;var e=ft(),t=ZE(),r=cg(),n=vf(),o=fu();function i(a){if(a.cancelToken&&a.cancelToken.throwIfRequested(),a.signal&&a.signal.aborted)throw new o}return tc=function(s){i(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(u){delete s.headers[u]});var c=s.adapter||n.adapter;return c(s).then(function(u){return i(s),u.data=t.call(s,u.data,u.headers,s.transformResponse),u},function(u){return r(u)||(i(s),u&&u.response&&(u.response.data=t.call(s,u.response.data,u.response.headers,s.transformResponse))),Promise.reject(u)})},tc}var rc,Fh;function lg(){if(Fh)return rc;Fh=1;var e=ft();return rc=function(r,n){n=n||{};var o={};function i(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 i(void 0,r[d])}else return i(r[d],n[d])}function s(d){if(!e.isUndefined(n[d]))return i(void 0,n[d])}function c(d){if(e.isUndefined(n[d])){if(!e.isUndefined(r[d]))return i(void 0,r[d])}else return i(void 0,n[d])}function l(d){if(d in n)return i(r[d],n[d]);if(d in r)return i(void 0,r[d])}var u={url:s,method:s,data:s,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:l};return e.forEach(Object.keys(r).concat(Object.keys(n)),function(h){var f=u[h]||a,p=f(h);e.isUndefined(p)&&f!==l||(o[h]=p)}),o},rc}var nc,Bh;function fg(){return Bh||(Bh=1,nc={version:"0.27.2"}),nc}var ic,Dh;function t_(){if(Dh)return ic;Dh=1;var e=fg().version,t=so(),r={};["object","boolean","number","function","string","symbol"].forEach(function(i,a){r[i]=function(c){return typeof c===i||"a"+(a<1?"n ":" ")+i}});var n={};r.transitional=function(a,s,c){function l(u,d){return"[Axios v"+e+"] Transitional option '"+u+"'"+d+(c?". "+c:"")}return function(u,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(u,d,h):!0}};function o(i,a,s){if(typeof i!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var c=Object.keys(i),l=c.length;l-- >0;){var u=c[l],d=a[u];if(d){var h=i[u],f=h===void 0||d(h,u,i);if(f!==!0)throw new t("option "+u+" must be "+f,t.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new t("Unknown option "+u,t.ERR_BAD_OPTION)}}return ic={assertOptions:o,validators:r},ic}var oc,Uh;function r_(){if(Uh)return oc;Uh=1;var e=ft(),t=og(),r=qE(),n=e_(),o=lg(),i=ug(),a=t_(),s=a.validators;function c(l){this.defaults=l,this.interceptors={request:new r,response:new r}}return c.prototype.request=function(u,d){typeof u=="string"?(d=d||{},d.url=u):d=u||{},d=o(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 w=[n,void 0];for(Array.prototype.unshift.apply(w,f),w=w.concat(m),_=Promise.resolve(d);w.length;)_=_.then(w.shift(),w.shift());return _}for(var v=d;f.length;){var b=f.shift(),A=f.shift();try{v=b(v)}catch(S){A(S);break}}try{_=n(v)}catch(S){return Promise.reject(S)}for(;m.length;)_=_.then(m.shift(),m.shift());return _},c.prototype.getUri=function(u){u=o(this.defaults,u);var d=i(u.baseURL,u.url);return t(d,u.params,u.paramsSerializer)},e.forEach(["delete","get","head","options"],function(u){c.prototype[u]=function(d,h){return this.request(o(h||{},{method:u,url:d,data:(h||{}).data}))}}),e.forEach(["post","put","patch"],function(u){function d(h){return function(p,m,_){return this.request(o(_||{},{method:u,headers:h?{"Content-Type":"multipart/form-data"}:{},url:p,data:m}))}}c.prototype[u]=d(),c.prototype[u+"Form"]=d(!0)}),oc=c,oc}var sc,$h;function n_(){if($h)return sc;$h=1;var e=fu();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 o=this;this.promise.then(function(i){if(o._listeners){var a,s=o._listeners.length;for(a=0;a<s;a++)o._listeners[a](i);o._listeners=null}}),this.promise.then=function(i){var a,s=new Promise(function(c){o.subscribe(c),a=c}).then(i);return s.cancel=function(){o.unsubscribe(a)},s},r(function(a){o.reason||(o.reason=new e(a),n(o.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 o=this._listeners.indexOf(n);o!==-1&&this._listeners.splice(o,1)}},t.source=function(){var n,o=new t(function(a){n=a});return{token:o,cancel:n}},sc=t,sc}var ac,jh;function i_(){return jh||(jh=1,ac=function(t){return function(n){return t.apply(null,n)}}),ac}var uc,Hh;function o_(){if(Hh)return uc;Hh=1;var e=ft();return uc=function(r){return e.isObject(r)&&r.isAxiosError===!0},uc}var qh;function s_(){if(qh)return ua.exports;qh=1;var e=ft(),t=ig(),r=r_(),n=lg(),o=vf();function i(s){var c=new r(s),l=t(r.prototype.request,c);return e.extend(l,r.prototype,c),e.extend(l,c),l.create=function(d){return i(n(s,d))},l}var a=i(o);return a.Axios=r,a.CanceledError=fu(),a.CancelToken=n_(),a.isCancel=cg(),a.VERSION=fg().version,a.toFormData=ag(),a.AxiosError=so(),a.Cancel=a.CanceledError,a.all=function(c){return Promise.all(c)},a.spread=i_(),a.isAxiosError=o_(),ua.exports=a,ua.exports.default=a,ua.exports}var cc,Gh;function hg(){return Gh||(Gh=1,cc=s_()),cc}var a_=Function.prototype.toString,lc=Object.create,u_=Object.defineProperty,c_=Object.getOwnPropertyDescriptor,Vh=Object.getOwnPropertyNames,Ef=Object.getOwnPropertySymbols,l_=Object.getPrototypeOf,dg=Object.prototype,f_=dg.hasOwnProperty,h_=dg.propertyIsEnumerable,pg=typeof Ef=="function",d_=typeof WeakMap=="function",p_=function(){if(d_)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}}(),mg=function(e,t){var r=e.__proto__||l_(e);if(!r)return lc(null);var n=r.constructor;if(n===t.Object)return r===t.Object.prototype?{}:lc(r);if(~a_.call(n).indexOf("[native code]"))try{return new n}catch{}return lc(r)},m_=function(e,t,r,n){var o=mg(e,t);n.set(e,o);for(var i in e)f_.call(e,i)&&(o[i]=r(e[i],n));if(pg)for(var a=Ef(e),s=0,c=a.length,l=void 0;s<c;++s)l=a[s],h_.call(e,l)&&(o[l]=r(e[l],n));return o},Wh=function(e,t,r,n){var o=mg(e,t);n.set(e,o);for(var i=pg?Vh(e).concat(Ef(e)):Vh(e),a=0,s=i.length,c=void 0,l=void 0;a<s;++a)if(c=i[a],c!=="callee"&&c!=="caller")if(l=c_(e,c),l){!l.get&&!l.set&&(l.value=r(e[c],n));try{u_(o,c,l)}catch{o[c]=l.value}}else o[c]=r(e[c],n);return o},g_=function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},y_=Array.isArray,v_=Object.getPrototypeOf,E_=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 pn(e,t){var r=!!(t&&t.isStrict),n=t&&t.realm||E_,o=r?Wh:m_,i=function(a,s){if(!a||typeof a!="object")return a;if(s.has(a))return s.get(a);var c=a.__proto__||v_(a),l=c&&c.constructor;if(!l||l===n.Object)return o(a,n,i,s);var u;if(y_(a)){if(r)return Wh(a,n,i,s);u=new l,s.set(a,u);for(var d=0,h=a.length;d<h;++d)u[d]=i(a[d],s);return u}if(a instanceof n.Date)return new l(a.getTime());if(a instanceof n.RegExp)return u=new l(a.source,a.flags||g_(a)),u.lastIndex=a.lastIndex,u;if(n.Map&&a instanceof n.Map)return u=new l,s.set(a,u),a.forEach(function(f,p){u.set(p,i(f,s))}),u;if(n.Set&&a instanceof n.Set)return u=new l,s.set(a,u),a.forEach(function(f){u.add(i(f,s))}),u;if(n.Blob&&a instanceof n.Blob)return a.slice(0,a.size,a.type);if(n.Buffer&&n.Buffer.isBuffer(a))return u=n.Buffer.allocUnsafe?n.Buffer.allocUnsafe(a.length):new l(a.length),s.set(a,u),a.copy(u),u;if(n.ArrayBuffer){if(n.ArrayBuffer.isView(a))return u=new l(a.buffer.slice(0)),s.set(a,u),u;if(a instanceof n.ArrayBuffer)return u=a.slice(0),s.set(a,u),u}return typeof a.then=="function"||a instanceof Error||n.WeakMap&&a instanceof n.WeakMap||n.WeakSet&&a instanceof n.WeakSet?a:o(a,n,i,s)};return i(e,p_())}pn.default=pn;pn.strict=function(t,r){return pn(t,{isStrict:!0,realm:r?r.realm:void 0})};var __=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 o=42;t[r]=o;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 i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==o||a.enumerable!==!0)return!1}return!0},zh=typeof Symbol<"u"&&Symbol,b_=__,w_=function(){return typeof zh!="function"||typeof Symbol!="function"||typeof zh("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:b_()},Qh={foo:{}},S_=Object,T_=function(){return{__proto__:Qh}.foo===Qh.foo&&!({__proto__:null}instanceof S_)},x_="Function.prototype.bind called on incompatible ",fc=Array.prototype.slice,O_=Object.prototype.toString,A_="[object Function]",C_=function(t){var r=this;if(typeof r!="function"||O_.call(r)!==A_)throw new TypeError(x_+r);for(var n=fc.call(arguments,1),o,i=function(){if(this instanceof o){var u=r.apply(this,n.concat(fc.call(arguments)));return Object(u)===u?u:this}else return r.apply(t,n.concat(fc.call(arguments)))},a=Math.max(0,r.length-n.length),s=[],c=0;c<a;c++)s.push("$"+c);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o},R_=C_,_f=Function.prototype.bind||R_,P_=_f,N_=P_.call(Function.call,Object.prototype.hasOwnProperty),we,Zi=SyntaxError,gg=Function,Pi=TypeError,hc=function(e){try{return gg('"use strict"; return ('+e+").constructor;")()}catch{}},ei=Object.getOwnPropertyDescriptor;if(ei)try{ei({},"")}catch{ei=null}var dc=function(){throw new Pi},I_=ei?function(){try{return arguments.callee,dc}catch{try{return ei(arguments,"callee").get}catch{return dc}}}():dc,Si=w_(),L_=T_(),ot=Object.getPrototypeOf||(L_?function(e){return e.__proto__}:null),Ai={},k_=typeof Uint8Array>"u"||!ot?we:ot(Uint8Array),ti={"%AggregateError%":typeof AggregateError>"u"?we:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?we:ArrayBuffer,"%ArrayIteratorPrototype%":Si&&ot?ot([][Symbol.iterator]()):we,"%AsyncFromSyncIteratorPrototype%":we,"%AsyncFunction%":Ai,"%AsyncGenerator%":Ai,"%AsyncGeneratorFunction%":Ai,"%AsyncIteratorPrototype%":Ai,"%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%":gg,"%GeneratorFunction%":Ai,"%Int8Array%":typeof Int8Array>"u"?we:Int8Array,"%Int16Array%":typeof Int16Array>"u"?we:Int16Array,"%Int32Array%":typeof Int32Array>"u"?we:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Si&&ot?ot(ot([][Symbol.iterator]())):we,"%JSON%":typeof JSON=="object"?JSON:we,"%Map%":typeof Map>"u"?we:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Si||!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"||!Si||!ot?we:ot(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?we:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Si&&ot?ot(""[Symbol.iterator]()):we,"%Symbol%":Si?Symbol:we,"%SyntaxError%":Zi,"%ThrowTypeError%":I_,"%TypedArray%":k_,"%TypeError%":Pi,"%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 M_=ot(ot(e));ti["%Error.prototype%"]=M_}var F_=function e(t){var r;if(t==="%AsyncFunction%")r=hc("async function () {}");else if(t==="%GeneratorFunction%")r=hc("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=hc("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&ot&&(r=ot(o.prototype))}return ti[t]=r,r},Yh={"%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"]},Ys=_f,$a=N_,B_=Ys.call(Function.call,Array.prototype.concat),D_=Ys.call(Function.apply,Array.prototype.splice),Kh=Ys.call(Function.call,String.prototype.replace),ja=Ys.call(Function.call,String.prototype.slice),U_=Ys.call(Function.call,RegExp.prototype.exec),$_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,j_=/\\(\\)?/g,H_=function(t){var r=ja(t,0,1),n=ja(t,-1);if(r==="%"&&n!=="%")throw new Zi("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Zi("invalid intrinsic syntax, expected opening `%`");var o=[];return Kh(t,$_,function(i,a,s,c){o[o.length]=s?Kh(c,j_,"$1"):a||i}),o},q_=function(t,r){var n=t,o;if($a(Yh,n)&&(o=Yh[n],n="%"+o[0]+"%"),$a(ti,n)){var i=ti[n];if(i===Ai&&(i=F_(n)),typeof i>"u"&&!r)throw new Pi("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new Zi("intrinsic "+t+" does not exist!")},bf=function(t,r){if(typeof t!="string"||t.length===0)throw new Pi("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Pi('"allowMissing" argument must be a boolean');if(U_(/^%?[^%]*%?$/,t)===null)throw new Zi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=H_(t),o=n.length>0?n[0]:"",i=q_("%"+o+"%",r),a=i.name,s=i.value,c=!1,l=i.alias;l&&(o=l[0],D_(n,B_([0,1],l)));for(var u=1,d=!0;u<n.length;u+=1){var h=n[u],f=ja(h,0,1),p=ja(h,-1);if((f==='"'||f==="'"||f==="`"||p==='"'||p==="'"||p==="`")&&f!==p)throw new Zi("property names with quotes must have matching quotes");if((h==="constructor"||!d)&&(c=!0),o+="."+h,a="%"+o+"%",$a(ti,a))s=ti[a];else if(s!=null){if(!(h in s)){if(!r)throw new Pi("base intrinsic for "+t+" exists, but the property is not available.");return}if(ei&&u+1>=n.length){var m=ei(s,h);d=!!m,d&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[h]}else d=$a(s,h),s=s[h];d&&!c&&(ti[a]=s)}}return s},yg={exports:{}};(function(e){var t=_f,r=bf,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||t.call(o,n),a=r("%Object.getOwnPropertyDescriptor%",!0),s=r("%Object.defineProperty%",!0),c=r("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(d){var h=i(t,o,arguments);if(a&&s){var f=a(h,"length");f.configurable&&s(h,"length",{value:1+c(0,d.length-(arguments.length-1))})}return h};var l=function(){return i(t,n,arguments)};s?s(e.exports,"apply",{value:l}):e.exports.apply=l})(yg);var G_=yg.exports,vg=bf,Eg=G_,V_=Eg(vg("String.prototype.indexOf")),W_=function(t,r){var n=vg(t,!!r);return typeof n=="function"&&V_(t,".prototype.")>-1?Eg(n):n};const z_={},Q_=Object.freeze(Object.defineProperty({__proto__:null,default:z_},Symbol.toStringTag,{value:"Module"})),Y_=Qs(Q_);var wf=typeof Map=="function"&&Map.prototype,pc=Object.getOwnPropertyDescriptor&&wf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ha=wf&&pc&&typeof pc.get=="function"?pc.get:null,Xh=wf&&Map.prototype.forEach,Sf=typeof Set=="function"&&Set.prototype,mc=Object.getOwnPropertyDescriptor&&Sf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,qa=Sf&&mc&&typeof mc.get=="function"?mc.get:null,Jh=Sf&&Set.prototype.forEach,K_=typeof WeakMap=="function"&&WeakMap.prototype,Es=K_?WeakMap.prototype.has:null,X_=typeof WeakSet=="function"&&WeakSet.prototype,_s=X_?WeakSet.prototype.has:null,J_=typeof WeakRef=="function"&&WeakRef.prototype,Zh=J_?WeakRef.prototype.deref:null,Z_=Boolean.prototype.valueOf,eb=Object.prototype.toString,tb=Function.prototype.toString,rb=String.prototype.match,Tf=String.prototype.slice,cn=String.prototype.replace,nb=String.prototype.toUpperCase,ed=String.prototype.toLowerCase,_g=RegExp.prototype.test,td=Array.prototype.concat,dr=Array.prototype.join,ib=Array.prototype.slice,rd=Math.floor,Sl=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gc=Object.getOwnPropertySymbols,Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,eo=typeof Symbol=="function"&&typeof Symbol.iterator=="object",gt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===eo||"symbol")?Symbol.toStringTag:null,bg=Object.prototype.propertyIsEnumerable,nd=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function id(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||_g.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-rd(-e):rd(e);if(n!==e){var o=String(n),i=Tf.call(t,o.length+1);return cn.call(o,r,"$&_")+"."+cn.call(cn.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return cn.call(t,r,"$&_")}var xl=Y_,od=xl.custom,sd=Sg(od)?od:null,ob=function e(t,r,n,o){var i=r||{};if(Zr(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Zr(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=Zr(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Zr(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Zr(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return xg(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return s?id(t,c):c}if(typeof t=="bigint"){var l=String(t)+"n";return s?id(t,l):l}var u=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof t=="object")return Ol(t)?"[Array]":"[Object]";var d=Sb(i,n);if(typeof o>"u")o=[];else if(Tg(o,t)>=0)return"[Circular]";function h(Y,ie,K){if(ie&&(o=ib.call(o),o.push(ie)),K){var D={depth:i.depth};return Zr(i,"quoteStyle")&&(D.quoteStyle=i.quoteStyle),e(Y,D,n+1,o)}return e(Y,i,n+1,o)}if(typeof t=="function"&&!ad(t)){var f=pb(t),p=ca(t,h);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(p.length>0?" { "+dr.call(p,", ")+" }":"")}if(Sg(t)){var m=eo?cn.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Tl.call(t);return typeof t=="object"&&!eo?Go(m):m}if(_b(t)){for(var _="<"+ed.call(String(t.nodeName)),w=t.attributes||[],v=0;v<w.length;v++)_+=" "+w[v].name+"="+wg(sb(w[v].value),"double",i);return _+=">",t.childNodes&&t.childNodes.length&&(_+="..."),_+="</"+ed.call(String(t.nodeName))+">",_}if(Ol(t)){if(t.length===0)return"[]";var b=ca(t,h);return d&&!wb(b)?"["+Al(b,d)+"]":"[ "+dr.call(b,", ")+" ]"}if(ub(t)){var A=ca(t,h);return!("cause"in Error.prototype)&&"cause"in t&&!bg.call(t,"cause")?"{ ["+String(t)+"] "+dr.call(td.call("[cause]: "+h(t.cause),A),", ")+" }":A.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+dr.call(A,", ")+" }"}if(typeof t=="object"&&a){if(sd&&typeof t[sd]=="function"&&xl)return xl(t,{depth:u-n});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(mb(t)){var S=[];return Xh&&Xh.call(t,function(Y,ie){S.push(h(ie,t,!0)+" => "+h(Y,t))}),ud("Map",Ha.call(t),S,d)}if(vb(t)){var P=[];return Jh&&Jh.call(t,function(Y){P.push(h(Y,t))}),ud("Set",qa.call(t),P,d)}if(gb(t))return yc("WeakMap");if(Eb(t))return yc("WeakSet");if(yb(t))return yc("WeakRef");if(lb(t))return Go(h(Number(t)));if(hb(t))return Go(h(Sl.call(t)));if(fb(t))return Go(Z_.call(t));if(cb(t))return Go(h(String(t)));if(!ab(t)&&!ad(t)){var R=ca(t,h),L=nd?nd(t)===Object.prototype:t instanceof Object||t.constructor===Object,k=t instanceof Object?"":"null prototype",q=!L&&gt&&Object(t)===t&&gt in t?Tf.call(mn(t),8,-1):k?"Object":"",G=L||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",H=G+(q||k?"["+dr.call(td.call([],q||[],k||[]),": ")+"] ":"");return R.length===0?H+"{}":d?H+"{"+Al(R,d)+"}":H+"{ "+dr.call(R,", ")+" }"}return String(t)};function wg(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function sb(e){return cn.call(String(e),/"/g,"&quot;")}function Ol(e){return mn(e)==="[object Array]"&&(!gt||!(typeof e=="object"&&gt in e))}function ab(e){return mn(e)==="[object Date]"&&(!gt||!(typeof e=="object"&&gt in e))}function ad(e){return mn(e)==="[object RegExp]"&&(!gt||!(typeof e=="object"&&gt in e))}function ub(e){return mn(e)==="[object Error]"&&(!gt||!(typeof e=="object"&&gt in e))}function cb(e){return mn(e)==="[object String]"&&(!gt||!(typeof e=="object"&&gt in e))}function lb(e){return mn(e)==="[object Number]"&&(!gt||!(typeof e=="object"&&gt in e))}function fb(e){return mn(e)==="[object Boolean]"&&(!gt||!(typeof e=="object"&&gt in e))}function Sg(e){if(eo)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Tl)return!1;try{return Tl.call(e),!0}catch{}return!1}function hb(e){if(!e||typeof e!="object"||!Sl)return!1;try{return Sl.call(e),!0}catch{}return!1}var db=Object.prototype.hasOwnProperty||function(e){return e in this};function Zr(e,t){return db.call(e,t)}function mn(e){return eb.call(e)}function pb(e){if(e.name)return e.name;var t=rb.call(tb.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Tg(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 mb(e){if(!Ha||!e||typeof e!="object")return!1;try{Ha.call(e);try{qa.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function gb(e){if(!Es||!e||typeof e!="object")return!1;try{Es.call(e,Es);try{_s.call(e,_s)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function yb(e){if(!Zh||!e||typeof e!="object")return!1;try{return Zh.call(e),!0}catch{}return!1}function vb(e){if(!qa||!e||typeof e!="object")return!1;try{qa.call(e);try{Ha.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Eb(e){if(!_s||!e||typeof e!="object")return!1;try{_s.call(e,_s);try{Es.call(e,Es)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function _b(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function xg(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return xg(Tf.call(e,0,t.maxStringLength),t)+n}var o=cn.call(cn.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,bb);return wg(o,"single",t)}function bb(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":"")+nb.call(t.toString(16))}function Go(e){return"Object("+e+")"}function yc(e){return e+" { ? }"}function ud(e,t,r,n){var o=n?Al(r,n):dr.call(r,", ");return e+" ("+t+") {"+o+"}"}function wb(e){for(var t=0;t<e.length;t++)if(Tg(e[t],`
26
+ `)>=0)return!1;return!0}function Sb(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=dr.call(Array(e.indent+1)," ");else return null;return{base:r,prev:dr.call(Array(t+1),r)}}function Al(e,t){if(e.length===0)return"";var r=`
27
+ `+t.prev+t.base;return r+dr.call(e,","+r)+`
28
+ `+t.prev}function ca(e,t){var r=Ol(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Zr(e,o)?t(e[o],e):""}var i=typeof gc=="function"?gc(e):[],a;if(eo){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var c in e)Zr(e,c)&&(r&&String(Number(c))===c&&c<e.length||eo&&a["$"+c]instanceof Symbol||(_g.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if(typeof gc=="function")for(var l=0;l<i.length;l++)bg.call(e,i[l])&&n.push("["+t(i[l])+"]: "+t(e[i[l]],e));return n}var xf=bf,ao=W_,Tb=ob,xb=xf("%TypeError%"),la=xf("%WeakMap%",!0),fa=xf("%Map%",!0),Ob=ao("WeakMap.prototype.get",!0),Ab=ao("WeakMap.prototype.set",!0),Cb=ao("WeakMap.prototype.has",!0),Rb=ao("Map.prototype.get",!0),Pb=ao("Map.prototype.set",!0),Nb=ao("Map.prototype.has",!0),Of=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},Ib=function(e,t){var r=Of(e,t);return r&&r.value},Lb=function(e,t,r){var n=Of(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},kb=function(e,t){return!!Of(e,t)},Mb=function(){var t,r,n,o={assert:function(i){if(!o.has(i))throw new xb("Side channel does not contain "+Tb(i))},get:function(i){if(la&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Ob(t,i)}else if(fa){if(r)return Rb(r,i)}else if(n)return Ib(n,i)},has:function(i){if(la&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Cb(t,i)}else if(fa){if(r)return Nb(r,i)}else if(n)return kb(n,i);return!1},set:function(i,a){la&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new la),Ab(t,i,a)):fa?(r||(r=new fa),Pb(r,i,a)):(n||(n={key:{},next:null}),Lb(n,i,a))}};return o},Fb=String.prototype.replace,Bb=/%20/g,vc={RFC1738:"RFC1738",RFC3986:"RFC3986"},Af={default:vc.RFC3986,formatters:{RFC1738:function(e){return Fb.call(e,Bb,"+")},RFC3986:function(e){return String(e)}},RFC1738:vc.RFC1738,RFC3986:vc.RFC3986},Db=Af,Ec=Object.prototype.hasOwnProperty,Hn=Array.isArray,sr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Ub=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Hn(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);r.obj[r.prop]=o}}},Og=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(n[o]=t[o]);return n},$b=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(Hn(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Ec.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var o=t;return Hn(t)&&!Hn(r)&&(o=Og(t,n)),Hn(t)&&Hn(r)?(r.forEach(function(i,a){if(Ec.call(t,a)){var s=t[a];s&&typeof s=="object"&&i&&typeof i=="object"?t[a]=e(s,i,n):t.push(i)}else t[a]=i}),t):Object.keys(r).reduce(function(i,a){var s=r[a];return Ec.call(i,a)?i[a]=e(i[a],s,n):i[a]=s,i},o)},jb=function(t,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},t)},Hb=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}},qb=function(t,r,n,o,i){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(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var s="",c=0;c<a.length;++c){var l=a.charCodeAt(c);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===Db.RFC1738&&(l===40||l===41)){s+=a.charAt(c);continue}if(l<128){s=s+sr[l];continue}if(l<2048){s=s+(sr[192|l>>6]+sr[128|l&63]);continue}if(l<55296||l>=57344){s=s+(sr[224|l>>12]+sr[128|l>>6&63]+sr[128|l&63]);continue}c+=1,l=65536+((l&1023)<<10|a.charCodeAt(c)&1023),s+=sr[240|l>>18]+sr[128|l>>12&63]+sr[128|l>>6&63]+sr[128|l&63]}return s},Gb=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],o=0;o<r.length;++o)for(var i=r[o],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:a,prop:l}),n.push(u))}return Ub(r),t},Vb=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Wb=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},zb=function(t,r){return[].concat(t,r)},Qb=function(t,r){if(Hn(t)){for(var n=[],o=0;o<t.length;o+=1)n.push(r(t[o]));return n}return r(t)},Ag={arrayToObject:Og,assign:jb,combine:zb,compact:Gb,decode:Hb,encode:qb,isBuffer:Wb,isRegExp:Vb,maybeMap:Qb,merge:$b},Cg=Mb,Ma=Ag,bs=Af,Yb=Object.prototype.hasOwnProperty,cd={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Mr=Array.isArray,Kb=Array.prototype.push,Rg=function(e,t){Kb.apply(e,Mr(t)?t:[t])},Xb=Date.prototype.toISOString,ld=bs.default,dt={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ma.encode,encodeValuesOnly:!1,format:ld,formatter:bs.formatters[ld],indices:!1,serializeDate:function(t){return Xb.call(t)},skipNulls:!1,strictNullHandling:!1},Jb=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},_c={},Zb=function e(t,r,n,o,i,a,s,c,l,u,d,h,f,p,m,_){for(var w=t,v=_,b=0,A=!1;(v=v.get(_c))!==void 0&&!A;){var S=v.get(t);if(b+=1,typeof S<"u"){if(S===b)throw new RangeError("Cyclic object value");A=!0}typeof v.get(_c)>"u"&&(b=0)}if(typeof c=="function"?w=c(r,w):w instanceof Date?w=d(w):n==="comma"&&Mr(w)&&(w=Ma.maybeMap(w,function(D){return D instanceof Date?d(D):D})),w===null){if(i)return s&&!p?s(r,dt.encoder,m,"key",h):r;w=""}if(Jb(w)||Ma.isBuffer(w)){if(s){var P=p?r:s(r,dt.encoder,m,"key",h);return[f(P)+"="+f(s(w,dt.encoder,m,"value",h))]}return[f(r)+"="+f(String(w))]}var R=[];if(typeof w>"u")return R;var L;if(n==="comma"&&Mr(w))p&&s&&(w=Ma.maybeMap(w,s)),L=[{value:w.length>0?w.join(",")||null:void 0}];else if(Mr(c))L=c;else{var k=Object.keys(w);L=l?k.sort(l):k}for(var q=o&&Mr(w)&&w.length===1?r+"[]":r,G=0;G<L.length;++G){var H=L[G],Y=typeof H=="object"&&typeof H.value<"u"?H.value:w[H];if(!(a&&Y===null)){var ie=Mr(w)?typeof n=="function"?n(q,H):q:q+(u?"."+H:"["+H+"]");_.set(t,b);var K=Cg();K.set(_c,_),Rg(R,e(Y,ie,n,o,i,a,n==="comma"&&p&&Mr(w)?null:s,c,l,u,d,h,f,p,m,K))}}return R},ew=function(t){if(!t)return dt;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||dt.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=bs.default;if(typeof t.format<"u"){if(!Yb.call(bs.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var o=bs.formatters[n],i=dt.filter;return(typeof t.filter=="function"||Mr(t.filter))&&(i=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:dt.addQueryPrefix,allowDots:typeof t.allowDots>"u"?dt.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:dt.charsetSentinel,delimiter:typeof t.delimiter>"u"?dt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:dt.encode,encoder:typeof t.encoder=="function"?t.encoder:dt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:dt.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:dt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:dt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:dt.strictNullHandling}},tw=function(e,t){var r=e,n=ew(t),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):Mr(n.filter)&&(i=n.filter,o=i);var a=[];if(typeof r!="object"||r===null)return"";var s;t&&t.arrayFormat in cd?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var c=cd[s];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=c==="comma"&&t&&t.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var u=Cg(),d=0;d<o.length;++d){var h=o[d];n.skipNulls&&r[h]===null||Rg(a,Zb(r[h],h,c,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,u))}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:""},to=Ag,Cl=Object.prototype.hasOwnProperty,rw=Array.isArray,nt={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:to.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},nw=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Pg=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},iw="utf8=%26%2310003%3B",ow="utf8=%E2%9C%93",sw=function(t,r){var n={__proto__:null},o=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=r.parameterLimit===1/0?void 0:r.parameterLimit,a=o.split(r.delimiter,i),s=-1,c,l=r.charset;if(r.charsetSentinel)for(c=0;c<a.length;++c)a[c].indexOf("utf8=")===0&&(a[c]===ow?l="utf-8":a[c]===iw&&(l="iso-8859-1"),s=c,c=a.length);for(c=0;c<a.length;++c)if(c!==s){var u=a[c],d=u.indexOf("]="),h=d===-1?u.indexOf("="):d+1,f,p;h===-1?(f=r.decoder(u,nt.decoder,l,"key"),p=r.strictNullHandling?null:""):(f=r.decoder(u.slice(0,h),nt.decoder,l,"key"),p=to.maybeMap(Pg(u.slice(h+1),r),function(m){return r.decoder(m,nt.decoder,l,"value")})),p&&r.interpretNumericEntities&&l==="iso-8859-1"&&(p=nw(p)),u.indexOf("[]=")>-1&&(p=rw(p)?[p]:p),Cl.call(n,f)?n[f]=to.combine(n[f],p):n[f]=p}return n},aw=function(e,t,r,n){for(var o=n?t:Pg(t,r),i=e.length-1;i>=0;--i){var a,s=e[i];if(s==="[]"&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,l=parseInt(c,10);!r.parseArrays&&c===""?a={0:o}:!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[],a[l]=o):c!=="__proto__"&&(a[c]=o)}o=a}return o},uw=function(t,r,n,o){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&a.exec(i),l=c?i.slice(0,c.index):i,u=[];if(l){if(!n.plainObjects&&Cl.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var d=0;n.depth>0&&(c=s.exec(i))!==null&&d<n.depth;){if(d+=1,!n.plainObjects&&Cl.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+i.slice(c.index)+"]"),aw(u,r,n,o)}},cw=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"||to.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}},lw=function(e,t){var r=cw(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?sw(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var s=i[a],c=uw(s,n[s],r,typeof e=="string");o=to.merge(o,c,r)}return r.allowSparse===!0?o:to.compact(o)},fw=tw,hw=lw,dw=Af,pw={formats:dw,parse:hw,stringify:fw};const mw=vr(pw);var gw="[object String]",yw=Object.prototype,vw=yw.toString,Ew=Array.isArray;function _w(e){return!!e&&typeof e=="object"}function bw(e){return typeof e=="string"||!Ew(e)&&_w(e)&&vw.call(e)==gw}var ww=bw;const fd=vr(ww);var Cf={exports:{}};class Ng extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}const Sw=({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 o=0,i=0;function a(){const u=Date.now();return u-o>t?(i=1,o=u,0):(i<e?i++:(o+=t,i=1),o-u)}const s=[];function c(){const u=Date.now();if(s.length<e)return s.push(u),0;const d=s.shift()+t;return u>=d?(s.push(u),0):(s.push(d),d-u)}const l=r?c:a;return u=>{const d=function(...h){if(!d.isEnabled)return(async()=>u.apply(this,h))();let f;return new Promise((p,m)=>{f=setTimeout(()=>{p(u.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 Ng);n.clear(),s.splice(0,s.length)},d.isEnabled=!0,d}};Cf.exports=Sw;Cf.exports.AbortError=Ng;var Tw=Cf.exports;const xw=vr(Tw);var Ow="[object Object]";function Aw(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function Cw(e,t){return function(r){return e(t(r))}}var Rw=Function.prototype,Ig=Object.prototype,Lg=Rw.toString,Pw=Ig.hasOwnProperty,Nw=Lg.call(Object),Iw=Ig.toString,Lw=Cw(Object.getPrototypeOf,Object);function kw(e){return!!e&&typeof e=="object"}function Mw(e){if(!kw(e)||Iw.call(e)!=Ow||Aw(e))return!1;var t=Lw(e);if(t===null)return!0;var r=Pw.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Lg.call(r)==Nw}var Fw=Mw;const ha=vr(Fw);function Bw(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(u){l=!0,o=u}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function hd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ci(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hd(Object(r),!0).forEach(function(n){Dw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rl(e){"@babel/helpers - typeof";return Rl=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},Rl(e)}function Pl(){Pl=function(o,i){return new r(o,void 0,i)};var e=RegExp.prototype,t=new WeakMap;function r(o,i,a){var s=new RegExp(o,i);return t.set(s,a||t.get(o)),Ga(s,r.prototype)}function n(o,i){var a=t.get(i);return Object.keys(a).reduce(function(s,c){var l=a[c];if(typeof l=="number")s[c]=o[l];else{for(var u=0;o[l[u]]===void 0&&u+1<l.length;)u++;s[c]=o[l[u]]}return s},Object.create(null))}return Uw(r,RegExp),r.prototype.exec=function(o){var i=e.exec.call(this,o);if(i){i.groups=n(i,this);var a=i.indices;a&&(a.groups=n(a,this))}return i},r.prototype[Symbol.replace]=function(o,i){if(typeof i=="string"){var a=t.get(this);return e[Symbol.replace].call(this,o,i.replace(/\$<([^>]+)>/g,function(c,l){var u=a[l];return"$"+(Array.isArray(u)?u.join("$"):u)}))}if(typeof i=="function"){var s=this;return e[Symbol.replace].call(this,o,function(){var c=arguments;return typeof c[c.length-1]!="object"&&(c=[].slice.call(c)).push(n(c,s)),i.apply(this,c)})}return e[Symbol.replace].call(this,o,i)},Pl.apply(this,arguments)}function Dw(e,t,r){return t=Vw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uw(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&&Ga(e,t)}function Ga(e,t){return Ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Ga(e,t)}function $w(e,t){return jw(e)||Bw(e,t)||kg(e,t)||Hw()}function jw(e){if(Array.isArray(e))return e}function kg(e,t){if(e){if(typeof e=="string")return dd(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 dd(e,t)}}function dd(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 Hw(){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 qw(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,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return i=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function Gw(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 Vw(e){var t=Gw(e,"string");return typeof t=="symbol"?t:String(t)}function Ww(){return typeof process<"u"&&!process.browser}function zw(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function Qw(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function Yw(){return window}function Nl(){}var Il=Pl(/(\d+)(%)/,{value:1});function bc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:7,r=t;if(Il.test(e)){var n,o=(n=e.match(Il))===null||n===void 0?void 0:n.groups;if(o&&o.value){var i=parseInt(o.value)/100;r=Math.round(t*i)}}return Math.min(30,Math.max(1,r))}function pd(e,t){return t("info","Throttle request to ".concat(e,"/s")),xw({limit:e,interval:1e3,strict:!1})}var Kw=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",r=e.defaults.logHandler,n=r===void 0?Nl:r,o=fd(t)?bc(t):bc("auto",t),i=pd(o,n),a=!1,s=e.interceptors.request.use(function(l){return i(function(){return l})()},function(l){return Promise.reject(l)}),c=e.interceptors.response.use(function(l){if(!a&&fd(t)&&(t==="auto"||Il.test(t))&&l.headers&&l.headers["x-contentful-ratelimit-second-limit"]){var u=parseInt(l.headers["x-contentful-ratelimit-second-limit"]),d=bc(t,u);d!==o&&(s&&e.interceptors.request.eject(s),o=d,i=pd(d,n),s=e.interceptors.request.use(function(h){return i(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(c)}},Xw=function(t){return new Promise(function(r){setTimeout(r,t)})},Jw=function(t){return Math.pow(Math.SQRT2,t)};function Zw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,r=e.defaults,n=r.responseLogger,o=n===void 0?Nl:n,i=r.requestLogger,a=i===void 0?Nl:i;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 o(s),s},function(s){var c=s.response,l=s.config;if(o(s),!l||!e.defaults.retryOnError)return Promise.reject(s);var u=l.attempts||1;if(u>t)return s.attempts=l.attempts,Promise.reject(s);var d=null,h=Jw(u);return c?c.status>=500&&c.status<600?d="Server ".concat(c.status):c.status===429&&(d="Rate limit",c.headers&&s.response.headers["x-contentful-ratelimit-reset"]&&(h=c.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=u+1,delete l.httpAgent,delete l.httpsAgent,Xw(h).then(function(){return e(l)})):Promise.reject(s)})}function eS(e,t){e.interceptors.request.use(function(r){return t().then(function(n){return r.headers=Ci(Ci({},r.headers),{},{Authorization:"Bearer ".concat(n)}),r})})}var tS=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function Mg(e,t){var r={insecure:!1,retryOnError:!0,logHandler:function(m,_){if(m==="error"&&_){var w=[_.name,_.message].filter(function(v){return v}).join(" - ");console.error("[error] ".concat(w)),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=Ci(Ci({},r),t);if(!n.accessToken){var o=new TypeError("Expected parameter accessToken");throw n.logHandler("error",o),o}var i=n.insecure?"http":"https",a=n.space?"".concat(n.space,"/"):"",s=n.defaultHostname,c=n.insecure?80:443;if(n.host&&tS.test(n.host)){var l=n.host.split(":");if(l.length===2){var u=$w(l,2);s=u[0],c=u[1]}else s=l[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var d=t.baseURL||"".concat(i,"://").concat(s,":").concat(c).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:mw.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 Mg(e,Ci(Ci({},pn(t)),p))},n.onBeforeRequest&&f.interceptors.request.use(n.onBeforeRequest),typeof n.accessToken=="function"&&eS(f,n.accessToken),n.throttle&&Kw(f,n.throttle),Zw(f,n.retryLimit),n.onError&&f.interceptors.response.use(function(p){return p},n.onError),f}function rS(e){var t=e.query,r={};return delete t.resolveLinks,r.params=pn(t),r}function nS(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 Fg(e){var t=Object.getOwnPropertyNames(e),r=qw(t),n;try{for(r.s();!(n=r.n()).done;){var o=n.value,i=e[o];i&&Rl(i)==="object"&&Fg(i)}}catch(a){r.e(a)}finally{r.f()}return Object.freeze(e)}function iS(e){return Fg(e.sys||{}),e}function md(){var e=Yw();if(!e)return null;var t=e.navigator.userAgent,r=e.navigator.platform,n=["Macintosh","MacIntel","MacPPC","Mac68K"],o=["Win32","Win64","Windows","WinCE"],i=["iPhone","iPad","iPod"];return n.indexOf(r)!==-1?"macOS":i.indexOf(r)!==-1?"iOS":o.indexOf(r)!==-1?"Windows":/Android/.test(t)?"Android":/Linux/.test(r)?"Linux":null}function oS(){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 sS(e,t,r,n){var o=[];t&&o.push("app ".concat(t)),r&&o.push("integration ".concat(r)),n&&o.push("feature "+n),o.push("sdk ".concat(e));var i=null;try{zw()?(i=md(),o.push("platform ReactNative")):Ww()?(i=oS(),o.push("platform node.js/".concat(Qw()))):(i=md(),o.push("platform browser"))}catch{i=null}return i&&o.push("os ".concat(i)),"".concat(o.filter(function(a){return a!==""}).join("; "),";")}function aS(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return pn(this)}})}function uS(e){var t=e.config,r=e.response,n;if(t&&t.headers&&t.headers.Authorization){var o="...".concat(t.headers.Authorization.toString().substr(-5));t.headers.Authorization="Bearer ".concat(o)}if(!ha(r)||!ha(t))throw e;var i=r==null?void 0:r.data,a={status:r==null?void 0:r.status,statusText:r==null?void 0:r.statusText,message:"",details:{}};ha(t)&&(a.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),i&&ha(i)&&("requestId"in i&&(a.requestId=i.requestId||"UNKNOWN"),"message"in i&&(a.message=i.message||""),"details"in i&&(a.details=i.details||{}),"sys"in i&&"id"in i.sys&&(n=i.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 c;s.message=(c=a==null?void 0:a.message)!==null&&c!==void 0?c:""}throw s}const cS=Object.freeze(Object.defineProperty({__proto__:null,createHttpClient:Mg,createRequestConfig:rS,enforceObjPath:nS,errorHandler:uS,freezeSys:iS,getUserAgentHeader:sS,toPlainObject:aS},Symbol.toStringTag,{value:"Module"})),Er=Qs(cS);var da={},Vo={},pa={},gd;function lS(){if(gd)return pa;gd=1,Object.defineProperty(pa,"__esModule",{value:!0}),pa.wrapSpace=t;var e=Er;function t(r){return(0,e.freezeSys)((0,e.toPlainObject)(r))}return pa}var Wo={},wc={exports:{}},yd;function uo(){return yd||(yd=1,function(e,t){(function(r,n){e.exports=n()})(de,function(){var r=Function.prototype.toString,n=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,c=Object.getPrototypeOf,l=Object.prototype,u=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(k){return!!~this._keys.indexOf(k)},L.prototype.get=function(k){return this._values[this._keys.indexOf(k)]},L.prototype.set=function(k,q){this._keys.push(k),this._values.push(q)},L}();return function(){return new R}}(),m=function(R,L){var k=R.__proto__||c(R);if(!k)return n(null);var q=k.constructor;if(q===L.Object)return k===L.Object.prototype?{}:n(k);if(~r.call(q).indexOf("[native code]"))try{return new q}catch{}return n(k)},_=function(R,L,k,q){var G=m(R,L);q.set(R,G);for(var H in R)u.call(R,H)&&(G[H]=k(R[H],q));if(h)for(var Y=s(R),ie=0,K=Y.length,D=void 0;ie<K;++ie)D=Y[ie],d.call(R,D)&&(G[D]=k(R[D],q));return G},w=function(R,L,k,q){var G=m(R,L);q.set(R,G);for(var H=h?a(R).concat(s(R)):a(R),Y=0,ie=H.length,K=void 0,D=void 0;Y<ie;++Y)if(K=H[Y],K!=="callee"&&K!=="caller")if(D=i(R,K),D){!D.get&&!D.set&&(D.value=k(R[K],q));try{o(G,K,D)}catch{G[K]=D.value}}else G[K]=k(R[K],q);return G},v=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,A=Object.getPrototypeOf,S=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 k=!!(L&&L.isStrict),q=L&&L.realm||S,G=k?w:_,H=function(Y,ie){if(!Y||typeof Y!="object")return Y;if(ie.has(Y))return ie.get(Y);var K=Y.__proto__||A(Y),D=K&&K.constructor;if(!D||D===q.Object)return G(Y,q,H,ie);var Q;if(b(Y)){if(k)return w(Y,q,H,ie);Q=new D,ie.set(Y,Q);for(var ee=0,he=Y.length;ee<he;++ee)Q[ee]=H(Y[ee],ie);return Q}if(Y instanceof q.Date)return new D(Y.getTime());if(Y instanceof q.RegExp)return Q=new D(Y.source,Y.flags||v(Y)),Q.lastIndex=Y.lastIndex,Q;if(q.Map&&Y instanceof q.Map)return Q=new D,ie.set(Y,Q),Y.forEach(function(J,X){Q.set(X,H(J,ie))}),Q;if(q.Set&&Y instanceof q.Set)return Q=new D,ie.set(Y,Q),Y.forEach(function(J){Q.add(H(J,ie))}),Q;if(q.Blob&&Y instanceof q.Blob)return Y.slice(0,Y.size,Y.type);if(q.Buffer&&q.Buffer.isBuffer(Y))return Q=q.Buffer.allocUnsafe?q.Buffer.allocUnsafe(Y.length):new D(Y.length),ie.set(Y,Q),Y.copy(Q),Q;if(q.ArrayBuffer){if(q.ArrayBuffer.isView(Y))return Q=new D(Y.buffer.slice(0)),ie.set(Y,Q),Q;if(Y instanceof q.ArrayBuffer)return Q=Y.slice(0),ie.set(Y,Q),Q}return typeof Y.then=="function"||Y instanceof Error||q.WeakMap&&Y instanceof q.WeakMap||q.WeakSet&&Y instanceof q.WeakSet?Y:G(Y,q,H,ie)};return H(R,p())}return P.default=P,P.strict=function(L,k){return P(L,{isStrict:!0,realm:k?k.realm:void 0})},P})}(wc)),wc.exports}var ma={},ga={exports:{}},vd;function fS(){return vd||(vd=1,function(e,t){t=e.exports=r,t.getSerialize=n;function r(o,i,a,s){return JSON.stringify(o,n(i,s),a)}function n(o,i){var a=[],s=[];return i==null&&(i=function(c,l){return a[0]===l?"[Circular ~]":"[Circular ~."+s.slice(0,a.indexOf(l)).join(".")+"]"}),function(c,l){if(a.length>0){var u=a.indexOf(this);~u?a.splice(u+1):a.push(this),~u?s.splice(u,1/0,c):s.push(c),~a.indexOf(l)&&(l=i.call(this,c,l))}else a.push(l);return o==null?l:o.call(this,c,l)}}}(ga,ga.exports)),ga.exports}var Ed;function Bg(){if(Ed)return ma;Ed=1,Object.defineProperty(ma,"__esModule",{value:!0}),ma.default=r;var e=t(fS());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 o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,e.default)(this,o,i,(a,s)=>({sys:{type:"Link",linkType:"Entry",id:s.sys.id,circular:!0}}))}})}return ma}var hS=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},dS=function(){function e(t,r){var n=[],o=!0,i=!1,a=void 0;try{for(var s=t[Symbol.iterator](),c;!(o=(c=s.next()).done)&&(n.push(c.value),!(r&&n.length===r));o=!0);}catch(l){i=!0,a=l}finally{try{!o&&s.return&&s.return()}finally{if(i)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 zo(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 Ss={},pS=function(t){return t&&t.sys&&t.sys.type==="Link"},mS=function(t){return t&&t.sys&&t.sys.type==="ResourceLink"},gS=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]},_d=function(t,r){var n=r.entryId,o=r.linkType,i=r.spaceId,a=r.environmentId;return i&&a?t.get(i+"!"+a+"!"+o+"!"+n):t.get(o+"!"+n)},yS=function(t){var r=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(r.test(t)){var n=t.match(r),o=dS(n,4);o[0];var i=o[1],a=o[2],s=a===void 0?"master":a,c=o[3];return{spaceId:i,environmentId:s,entryId:c}}},vS=function(t,r){var n=r.sys,o=n.type,i=n.linkType;if(o==="ResourceLink"){var a=r.sys.urn,s=yS(a),c=s.spaceId,l=s.environmentId,u=s.entryId,d=i.split(":")[1];return _d(t,{linkType:d,entryId:u,spaceId:c,environmentId:l})||Ss}var h=r.sys.id;return _d(t,{linkType:i,entryId:h})||Ss},ES=function(t){if(Array.isArray(t))return t.filter(function(n){return n!==Ss});for(var r in t)t[r]===Ss&&delete t[r];return t},_S=function e(t,r,n,o){if(r(t))return n(t);if(t&&(typeof t>"u"?"undefined":hS(t))==="object"){for(var i in t)t.hasOwnProperty(i)&&(t[i]=e(t[i],r,n,o));o&&(t=ES(t))}return t},bS=function(t,r,n){var o=vS(t,r);return o===Ss?n?o:r:o},wS=function(t,r){if(!Array.isArray(r))return t;var n=Object.keys(t).filter(function(o){return r.indexOf(o)!==-1});return n.reduce(function(o,i){return o[i]=t[i],o},{})},SS=function(t,r){if(r=r||{},!t.items)return[];var n=pn(t),o=Object.keys(n.includes||{}).reduce(function(s,c){return[].concat(zo(s),zo(t.includes[c]))},[]),i=[].concat(zo(n.items),zo(o)).filter(function(s){return!!s.sys}),a=new Map(i.reduce(function(s,c){var l=gS(c.sys).map(function(u){return[u,c]});return s.push.apply(s,zo(l)),s},[]));return i.forEach(function(s){var c=wS(s,r.itemEntryPoints);Object.assign(s,_S(c,function(l){return pS(l)||mS(l)},function(l){return bS(a,l,r.removeUnresolved)},r.removeUnresolved))}),n.items};const TS=Object.freeze(Object.defineProperty({__proto__:null,default:SS},Symbol.toStringTag,{value:"Module"})),Dg=Qs(TS);var bd;function xS(){if(bd)return Wo;bd=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.wrapEntry=i,Wo.wrapEntryCollection=a;var e=o(uo()),t=Er,r=o(Bg()),n=o(Dg);function o(s){return s&&s.__esModule?s:{default:s}}function i(s){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(s)))}function a(s,c){let{resolveLinks:l,removeUnresolved:u}=c;const d=(0,r.default)((0,t.toPlainObject)((0,e.default)(s)));return l&&(d.items=(0,n.default)(d,{removeUnresolved:u,itemEntryPoints:["fields"]})),(0,t.freezeSys)(d)}return Wo}var Qo={},wd;function OS(){if(wd)return Qo;wd=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.wrapAsset=n,Qo.wrapAssetCollection=o;var e=r(uo()),t=Er;function r(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return Qo}var ya={},Sd;function AS(){if(Sd)return ya;Sd=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.wrapAssetKey=n;var e=r(uo()),t=Er;function r(o){return o&&o.__esModule?o:{default:o}}function n(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return ya}var Yo={},Td;function CS(){if(Td)return Yo;Td=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.wrapContentType=n,Yo.wrapContentTypeCollection=o;var e=r(uo()),t=Er;function r(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return Yo}var Ko={},xd;function RS(){if(xd)return Ko;xd=1,Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.wrapLocale=n,Ko.wrapLocaleCollection=o;var e=r(uo()),t=Er;function r(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return Ko}var Xo={},Od;function PS(){if(Od)return Xo;Od=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.wrapTag=n,Xo.wrapTagCollection=o;var e=r(uo()),t=Er;function r(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return Xo}var Ad;function NS(){if(Ad)return Vo;Ad=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.default=void 0;var e=c(lS()),t=c(xS()),r=c(OS()),n=c(AS()),o=c(CS()),i=c(RS()),a=c(PS());function s(u){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return(s=function(f){return f?h:d})(u)}function c(u,d){if(!d&&u&&u.__esModule)return u;if(u===null||typeof u!="object"&&typeof u!="function")return{default:u};var h=s(d);if(h&&h.has(u))return h.get(u);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in u)if(m!=="default"&&Object.prototype.hasOwnProperty.call(u,m)){var _=p?Object.getOwnPropertyDescriptor(u,m):null;_&&(_.get||_.set)?Object.defineProperty(f,m,_):f[m]=u[m]}return f.default=u,h&&h.set(u,f),f}var l={space:e,entry:t,asset:r,assetKey:n,contentType:o,locale:i,tag:a};return Vo.default=l,Vo}var va={},Cd;function IS(){if(Cd)return va;Cd=1,Object.defineProperty(va,"__esModule",{value:!0}),va.default=s;var e=Er,t=n(Dg),r=n(Bg());function n(d){return d&&d.__esModule?d:{default:d}}function o(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 i(d){for(var h=1;h<arguments.length;h++){var f=arguments[h]!=null?arguments[h]:{};h%2?o(Object(f),!0).forEach(function(p){a(d,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):o(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:w}=i(i({},p),f),b=await l(d,[],h,{paginate:w});m&&(b.items=(0,t.default)(b,{removeUnresolved:_,itemEntryPoints:["fields"]}));const A=c(b.items);return b.nextSyncToken&&(A.nextSyncToken=b.nextSyncToken),b.nextPageToken&&(A.nextPageToken=b.nextPageToken),(0,e.freezeSys)((0,r.default)((0,e.toPlainObject)(A)))}function c(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 w=(await d.get("sync",(0,e.createRequestConfig)({query:f}))).data||{};return h=h.concat(w.items||[]),w.nextPageUrl?m?(delete f.initial,f.sync_token=u(w.nextPageUrl),l(d,h,f,{paginate:m})):{items:h,nextPageToken:u(w.nextPageUrl)}:w.nextSyncUrl?{items:h,nextSyncToken:u(w.nextSyncUrl)}:{items:[]}}function u(d){const h=d.split("?");return h.length>0?h[1].replace("sync_token=",""):""}return va}var Ea={},Rd;function LS(){if(Rd)return Ea;Rd=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.default=n;function e(o,i){var a=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);i&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),a.push.apply(a,s)}return a}function t(o){for(var i=1;i<arguments.length;i++){var a=arguments[i]!=null?arguments[i]:{};i%2?e(Object(a),!0).forEach(function(s){r(o,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach(function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(a,s))})}return o}function r(o,i,a){return i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}function n(o){if(!o.select)return o;const i=Array.isArray(o.select)?o.select:o.select.split(","),a=new Set(i);return a.has("sys")?o:(a.add("sys.id"),a.add("sys.type"),t(t({},o),{},{select:[...a].join(",")}))}return Ea}var Ti={},Pd;function kS(){if(Pd)return Ti;Pd=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.ValidationError=void 0,Ti.default=t;class e extends Error{constructor(n,o){super(`Invalid "${n}" provided, `+o),this.name="ValidationError"}}Ti.ValidationError=e;function t(r,n,o){if(o=o||{},typeof n!="number")throw new e(r,`only numeric values are allowed for timestamps, provided type was "${typeof n}"`);if(o.maximum&&n>o.maximum)throw new e(r,`value (${n}) cannot be further in the future than expected maximum (${o.maximum})`);if(o.now&&n<o.now)throw new e(r,`value (${n}) cannot be in the past, current time was ${o.now}`)}return Ti}var Nd;function MS(){if(Nd)return da;Nd=1,Object.defineProperty(da,"__esModule",{value:!0}),da.default=u;var e=Er,t=i(NS()),r=i(IS()),n=i(LS()),o=i(kS());function i(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){c(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 c(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 u(d){let{http:h,getGlobalOptions:f}=d;const{wrapSpace:p}=t.default.space,{wrapContentType:m,wrapContentTypeCollection:_}=t.default.contentType,{wrapEntry:w,wrapEntryCollection:v}=t.default.entry,{wrapAsset:b,wrapAssetCollection:A}=t.default.asset,{wrapTag:S,wrapTagCollection:P}=t.default.tag,{wrapAssetKey:R}=t.default.assetKey,{wrapLocaleCollection:L}=t.default.locale,k=te=>{const ae=new Error("The resource could not be found.");return ae.sys={type:"Error",id:"NotFound"},ae.details={type:"Entry",id:te,environment:f().environment,space:f().space},ae};async function q(){He(h);try{const te=await h.get("/");return p(te.data)}catch(te){(0,e.errorHandler)(te)}}async function G(te){fe(h);try{const ae=await h.get(`content_types/${te}`);return m(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function H(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fe(h);try{const ae=await h.get("content_types",(0,e.createRequestConfig)({query:te}));return _(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function Y(te){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!te)throw k(te);try{const Be=await this.getEntries(s({"sys.id":te},ae));if(Be.items.length>0)return w(Be.items[0]);throw k(te)}catch(Be){(0,e.errorHandler)(Be)}}async function ie(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fe(h);const{resolveLinks:ae,removeUnresolved:Be}=f(te);te=(0,n.default)(te);try{const Ie=await h.get("entries",(0,e.createRequestConfig)({query:te}));return v(Ie.data,{resolveLinks:ae,removeUnresolved:Be})}catch(Ie){(0,e.errorHandler)(Ie)}}async function K(te){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fe(h),ae=(0,n.default)(ae);try{const Be=await h.get(`assets/${te}`,(0,e.createRequestConfig)({query:ae}));return b(Be.data)}catch(Be){(0,e.errorHandler)(Be)}}async function D(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fe(h),te=(0,n.default)(te);try{const ae=await h.get("assets",(0,e.createRequestConfig)({query:te}));return A(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function Q(te){fe(h);try{const ae=await h.get(`tags/${te}`);return S(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function ee(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fe(h),te=(0,n.default)(te);try{const ae=await h.get("tags",(0,e.createRequestConfig)({query:te}));return P(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function he(te){fe(h);try{const ae=Math.floor(Date.now()/1e3),Be=ae+l;(0,o.default)("expiresAt",te,{maximum:Be,now:ae});const Ie={expiresAt:te},Tt=await h.post("asset_keys",Ie);return R(Tt.data)}catch(ae){(0,e.errorHandler)(ae)}}async function J(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fe(h);try{const ae=await h.get("locales",(0,e.createRequestConfig)({query:te}));return L(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function X(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{paginate:!0};const{resolveLinks:Be,removeUnresolved:Ie}=f(te);return fe(h),(0,r.default)(h,te,s({resolveLinks:Be,removeUnresolved:Ie},ae))}function se(te){const{resolveLinks:ae,removeUnresolved:Be}=f({});return v(te,{resolveLinks:ae,removeUnresolved:Be})}function fe(te){te.defaults.baseURL=f().environmentBaseUrl}function He(te){te.defaults.baseURL=f().spaceBaseUrl}return{getSpace:q,getContentType:G,getContentTypes:H,getEntry:Y,getEntries:ie,getAsset:K,getAssets:D,getTag:Q,getTags:ee,createAssetKey:he,getLocales:J,parseEntries:se,sync:X}}return da}var _a={},Id;function FS(){if(Id)return _a;Id=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.default=e;function e(t){return function(n){return Object.assign({},t,n)}}return _a}var Ld;function BS(){if(Ld)return aa;Ld=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.createClient=c;var e=o(hg()),t=Er,r=o(MS()),n=o(FS());function o(l){return l&&l.__esModule?l:{default:l}}function i(l,u){var d=Object.keys(l);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(l);u&&(h=h.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),d.push.apply(d,h)}return d}function a(l){for(var u=1;u<arguments.length;u++){var d=arguments[u]!=null?arguments[u]:{};u%2?i(Object(d),!0).forEach(function(h){s(l,h,d[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(d)):i(Object(d)).forEach(function(h){Object.defineProperty(l,h,Object.getOwnPropertyDescriptor(d,h))})}return l}function s(l,u,d){return u in l?Object.defineProperty(l,u,{value:d,enumerable:!0,configurable:!0,writable:!0}):l[u]=d,l}function c(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 aa}var Sc={},Tc,kd;function DS(){return kd||(kd=1,Tc=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Tc}var xc,Md;function US(){if(Md)return xc;Md=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 c=a.slice(0,s),l=a.slice(s);return Array.prototype.concat.call([],n(c),n(l))}function o(a){try{return decodeURIComponent(a)}catch{for(var s=a.match(t)||[],c=1;c<s.length;c++)a=n(s,c).join(""),s=a.match(t)||[];return a}}function i(a){for(var s={"%FE%FF":"��","%FF%FE":"��"},c=r.exec(a);c;){try{s[c[0]]=decodeURIComponent(c[0])}catch{var l=o(c[0]);l!==c[0]&&(s[c[0]]=l)}c=r.exec(a)}s["%C2"]="�";for(var u=Object.keys(s),d=0;d<u.length;d++){var h=u[d];a=a.replace(new RegExp(h,"g"),s[h])}return a}return xc=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 i(a)}},xc}var Oc,Fd;function $S(){return Fd||(Fd=1,Oc=(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)]}),Oc}var Ac,Bd;function jS(){return Bd||(Bd=1,Ac=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),i=0;i<n.length;i++){var a=n[i],s=e[a];(o?t.indexOf(a)!==-1:t(a,s,e))&&(r[a]=s)}return r}),Ac}var Dd;function HS(){return Dd||(Dd=1,function(e){const t=DS(),r=US(),n=$S(),o=jS(),i=v=>v==null,a=Symbol("encodeFragmentIdentifier");function s(v){switch(v.arrayFormat){case"index":return b=>(A,S)=>{const P=A.length;return S===void 0||v.skipNull&&S===null||v.skipEmptyString&&S===""?A:S===null?[...A,[u(b,v),"[",P,"]"].join("")]:[...A,[u(b,v),"[",u(P,v),"]=",u(S,v)].join("")]};case"bracket":return b=>(A,S)=>S===void 0||v.skipNull&&S===null||v.skipEmptyString&&S===""?A:S===null?[...A,[u(b,v),"[]"].join("")]:[...A,[u(b,v),"[]=",u(S,v)].join("")];case"colon-list-separator":return b=>(A,S)=>S===void 0||v.skipNull&&S===null||v.skipEmptyString&&S===""?A:S===null?[...A,[u(b,v),":list="].join("")]:[...A,[u(b,v),":list=",u(S,v)].join("")];case"comma":case"separator":case"bracket-separator":{const b=v.arrayFormat==="bracket-separator"?"[]=":"=";return A=>(S,P)=>P===void 0||v.skipNull&&P===null||v.skipEmptyString&&P===""?S:(P=P===null?"":P,S.length===0?[[u(A,v),b,u(P,v)].join("")]:[[S,u(P,v)].join(v.arrayFormatSeparator)])}default:return b=>(A,S)=>S===void 0||v.skipNull&&S===null||v.skipEmptyString&&S===""?A:S===null?[...A,u(b,v)]:[...A,[u(b,v),"=",u(S,v)].join("")]}}function c(v){let b;switch(v.arrayFormat){case"index":return(A,S,P)=>{if(b=/\[(\d*)\]$/.exec(A),A=A.replace(/\[\d*\]$/,""),!b){P[A]=S;return}P[A]===void 0&&(P[A]={}),P[A][b[1]]=S};case"bracket":return(A,S,P)=>{if(b=/(\[\])$/.exec(A),A=A.replace(/\[\]$/,""),!b){P[A]=S;return}if(P[A]===void 0){P[A]=[S];return}P[A]=[].concat(P[A],S)};case"colon-list-separator":return(A,S,P)=>{if(b=/(:list)$/.exec(A),A=A.replace(/:list$/,""),!b){P[A]=S;return}if(P[A]===void 0){P[A]=[S];return}P[A]=[].concat(P[A],S)};case"comma":case"separator":return(A,S,P)=>{const R=typeof S=="string"&&S.includes(v.arrayFormatSeparator),L=typeof S=="string"&&!R&&d(S,v).includes(v.arrayFormatSeparator);S=L?d(S,v):S;const k=R||L?S.split(v.arrayFormatSeparator).map(q=>d(q,v)):S===null?S:d(S,v);P[A]=k};case"bracket-separator":return(A,S,P)=>{const R=/(\[\])$/.test(A);if(A=A.replace(/\[\]$/,""),!R){P[A]=S&&d(S,v);return}const L=S===null?[]:S.split(v.arrayFormatSeparator).map(k=>d(k,v));if(P[A]===void 0){P[A]=L;return}P[A]=[].concat(P[A],L)};default:return(A,S,P)=>{if(P[A]===void 0){P[A]=S;return}P[A]=[].concat(P[A],S)}}}function l(v){if(typeof v!="string"||v.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(v,b){return b.encode?b.strict?t(v):encodeURIComponent(v):v}function d(v,b){return b.decode?r(v):v}function h(v){return Array.isArray(v)?v.sort():typeof v=="object"?h(Object.keys(v)).sort((b,A)=>Number(b)-Number(A)).map(b=>v[b]):v}function f(v){const b=v.indexOf("#");return b!==-1&&(v=v.slice(0,b)),v}function p(v){let b="";const A=v.indexOf("#");return A!==-1&&(b=v.slice(A)),b}function m(v){v=f(v);const b=v.indexOf("?");return b===-1?"":v.slice(b+1)}function _(v,b){return b.parseNumbers&&!Number.isNaN(Number(v))&&typeof v=="string"&&v.trim()!==""?v=Number(v):b.parseBooleans&&v!==null&&(v.toLowerCase()==="true"||v.toLowerCase()==="false")&&(v=v.toLowerCase()==="true"),v}function w(v,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),l(b.arrayFormatSeparator);const A=c(b),S=Object.create(null);if(typeof v!="string"||(v=v.trim().replace(/^[?#&]/,""),!v))return S;for(const P of v.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),A(d(R,b),L,S)}for(const P of Object.keys(S)){const R=S[P];if(typeof R=="object"&&R!==null)for(const L of Object.keys(R))R[L]=_(R[L],b);else S[P]=_(R,b)}return b.sort===!1?S:(b.sort===!0?Object.keys(S).sort():Object.keys(S).sort(b.sort)).reduce((P,R)=>{const L=S[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=w,e.stringify=(v,b)=>{if(!v)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),l(b.arrayFormatSeparator);const A=L=>b.skipNull&&i(v[L])||b.skipEmptyString&&v[L]==="",S=s(b),P={};for(const L of Object.keys(v))A(L)||(P[L]=v[L]);const R=Object.keys(P);return b.sort!==!1&&R.sort(b.sort),R.map(L=>{const k=v[L];return k===void 0?"":k===null?u(L,b):Array.isArray(k)?k.length===0&&b.arrayFormat==="bracket-separator"?u(L,b)+"[]":k.reduce(S(L),[]).join("&"):u(L,b)+"="+u(k,b)}).filter(L=>L.length>0).join("&")},e.parseUrl=(v,b)=>{b=Object.assign({decode:!0},b);const[A,S]=n(v,"#");return Object.assign({url:A.split("?")[0]||"",query:w(m(v),b)},b&&b.parseFragmentIdentifier&&S?{fragmentIdentifier:d(S,b)}:{})},e.stringifyUrl=(v,b)=>{b=Object.assign({encode:!0,strict:!0,[a]:!0},b);const A=f(v.url).split("?")[0]||"",S=e.extract(v.url),P=e.parse(S,{sort:!1}),R=Object.assign(P,v.query);let L=e.stringify(R,b);L&&(L=`?${L}`);let k=p(v.url);return v.fragmentIdentifier&&(k=`#${b[a]?u(v.fragmentIdentifier,b):v.fragmentIdentifier}`),`${A}${L}${k}`},e.pick=(v,b,A)=>{A=Object.assign({parseFragmentIdentifier:!0,[a]:!1},A);const{url:S,query:P,fragmentIdentifier:R}=e.parseUrl(v,A);return e.stringifyUrl({url:S,query:o(P,b),fragmentIdentifier:R},A)},e.exclude=(v,b,A)=>{const S=Array.isArray(b)?P=>!b.includes(P):(P,R)=>!b(P,R);return e.pick(v,S,A)}}(Sc)),Sc}var Ud;function qS(){return Ud||(Ud=1,function(e,t){(function(r,n){e.exports=n(BS(),HS())})(de,function(r,n){return function(){var o={897:function(c){c.exports=r},48:function(c){c.exports=n}},i={};function a(c){var l=i[c];if(l!==void 0)return l.exports;var u=i[c]={exports:{}};return o[c](u,u.exports,a),u.exports}a.d=function(c,l){for(var u in l)a.o(l,u)&&!a.o(c,u)&&Object.defineProperty(c,u,{enumerable:!0,get:l[u]})},a.o=function(c,l){return Object.prototype.hasOwnProperty.call(c,l)},a.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};return function(){a.r(s),a.d(s,{getEntries:function(){return ie},getEntry:function(){return Y},setContext:function(){return m}});var c=a(897),l=a(48),u={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}}=u;let p={apiKey:null,previewKey:null,environment:null,isPreview:!1,host:f.CDN,space:h};const m=({apiKey:K,environment:D,isPreview:Q=!1,location:ee,previewKey:he,space:J=null})=>{p.apiKey=K,p.previewKey=he,p.environment=(X=>{if(!X)throw new Error("Cannot map environment: Environment not defined");if(!d[X])throw new Error(`Cannot map environment: No mapping found for environment ${X}`);return d[X]})(D),p.isPreview=Q||(X=>{let se=!1;if(X&&X.search){const fe=(0,l.parse)(X.search);se=fe.isPreview&&fe.isPreview==="true"}return se})(ee),p.space=J||h},_=(K=!1)=>{const{apiKey:D,environment:Q,isPreview:ee,previewKey:he,space:J}=p;return ee===!0||K===!0?{accessToken:he,environment:Q,host:f.PREVIEW,space:J}:{accessToken:D,environment:Q,host:f.CDN,space:J}},w=K=>typeof K=="object"&&K!==null,v=K=>Array.isArray(K)&&K.length,b=K=>{if(!w(K))throw new Error("Cannot flatten fields");const{fields:D,sys:Q}=K;if(!D)throw new Error("Cannot flatten fields");let ee={...D};if(w(Q)){const{contentType:he,createdAt:J,updatedAt:X}=Q;he&&Object.assign(ee,{contentType:he.sys.id}),J&&Object.assign(ee,{createdAt:J}),X&&Object.assign(ee,{updatedAt:X})}return ee},{CONTENTFUL:{LOCALES:A}}=u,S=(K,D)=>w(K)&&((Q,ee)=>Object.prototype.hasOwnProperty.call(Q,ee))(K,D),P=(K,D)=>{const Q=(ee=>A.SUPPORTED.includes(ee)?ee:A.DEFAULT)(D);return S(K,Q)?K[Q]:S(K,A.DEFAULT)?K[A.DEFAULT]:K},R=K=>w(K)&&K.sys&&K.sys.type==="Asset",L=(K,D,Q)=>{const{title:ee,file:he}=b(K);if(!he)throw new Error("Cannot flatten asset");const{contentType:J,fileName:X,url:se,details:fe}=P(he,D);if(!se)throw new Error("Cannot flatten asset");return Q?{description:ee||X,height:fe&&fe.image&&fe.image.height,type:J,url:se,width:fe&&fe.image&&fe.image.width}:se},k=K=>w(K)&&K.sys&&K.sys.type==="Entry",q=(K,D,Q)=>{const ee={},he=((J,X)=>{const se={};for(const[fe,He]of Object.entries(J))se[fe]=P(He,X);return se})(b(K),D);for(const[J,X]of Object.entries(he))R(X)?ee[J]=L(X,D,Q):k(X)?ee[J]=q(X,D,Q):v(X)?ee[J]=X.map(se=>R(se)?L(se,D,Q):k(se)?q(se,D,Q):se):ee[J]=X;return ee},G=({items:K})=>{if(!v(K))throw new Error("Cannot read items");return K},H=async(K,D)=>{const Q=_(D);return await(await(0,c.createClient)(Q)).getEntries(K)},Y=async(K={},D={},Q=!1)=>((ee,{flatten:he=!0,locale:J="en",assetDetails:X=!1})=>{const se=G(ee);return he?q(se[0],J,X):se[0]})(await H(K,Q),{...K,...D}),ie=async(K={},D={},Q=!1)=>((ee,{flatten:he=!0,locale:J="en",assetDetails:X=!1})=>{const se=G(ee);return he?((fe,He,te)=>fe.map(ae=>q(ae,He,te)))(se,J,X):se})(await H(K,Q),{...K,...D})}(),s}()})}(Iu)),Iu.exports}var Cc={exports:{}},Rc={exports:{}},Pc={exports:{}},Nc={exports:{}},$d;function Rf(){return $d||($d=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 o(m){return function(){return this[m]}}var i=["isConstructor","isEval","isNative","isToplevel"],a=["columnNumber","lineNumber"],s=["fileName","functionName","source"],c=["args"],l=["evalOrigin"],u=i.concat(a,s,c,l);function d(m){if(m)for(var _=0;_<u.length;_++)m[u[_]]!==void 0&&this["set"+n(u[_])](m[u[_]])}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()||"",w=this.getColumnNumber()||"",v=this.getFunctionName()||"";return this.getIsEval()?m?"[eval] ("+m+":"+_+":"+w+")":"[eval]:"+_+":"+w:v?v+" ("+m+":"+_+":"+w+")":m+":"+_+":"+w}},d.fromString=function(_){var w=_.indexOf("("),v=_.lastIndexOf(")"),b=_.substring(0,w),A=_.substring(w+1,v).split(","),S=_.substring(v+1);if(S.indexOf("@")===0)var P=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(S,""),R=P[1],L=P[2],k=P[3];return new d({functionName:b,args:A||void 0,fileName:R,lineNumber:L||void 0,columnNumber:k||void 0})};for(var h=0;h<i.length;h++)d.prototype["get"+n(i[h])]=o(i[h]),d.prototype["set"+n(i[h])]=function(m){return function(_){this[m]=!!_}}(i[h]);for(var f=0;f<a.length;f++)d.prototype["get"+n(a[f])]=o(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])]=o(s[p]),d.prototype["set"+n(s[p])]=function(m){return function(_){this[m]=String(_)}}(s[p]);return d})}(Nc)),Nc.exports}var jd;function GS(){return jd||(jd=1,function(e,t){(function(r,n){e.exports=n(Rf())})(de,function(n){var o=/(^|@)\S+:\d+/,i=/^\s*at .*(\S+:\d+|\(native\))/m,a=/^(eval@)?(\[native code])?$/;return{parse:function(c){if(typeof c.stacktrace<"u"||typeof c["opera#sourceloc"]<"u")return this.parseOpera(c);if(c.stack&&c.stack.match(i))return this.parseV8OrIE(c);if(c.stack)return this.parseFFOrSafari(c);throw new Error("Cannot parse given Error object")},extractLocation:function(c){if(c.indexOf(":")===-1)return[c];var l=/(.+?)(?::(\d+))?(?::(\d+))?$/,u=l.exec(c.replace(/[()]/g,""));return[u[1],u[2]||void 0,u[3]||void 0]},parseV8OrIE:function(c){var l=c.stack.split(`
35
+ `).filter(function(u){return!!u.match(i)},this);return l.map(function(u){u.indexOf("(eval ")>-1&&(u=u.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var d=u.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:u})},this)},parseFFOrSafari:function(c){var l=c.stack.split(`
36
+ `).filter(function(u){return!u.match(a)},this);return l.map(function(u){if(u.indexOf(" > eval")>-1&&(u=u.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),u.indexOf("@")===-1&&u.indexOf(":")===-1)return new n({functionName:u});var d=/((.*".+"[^@]*)?[^@]*)(?:@)/,h=u.match(d),f=h&&h[1]?h[1]:void 0,p=this.extractLocation(u.replace(d,""));return new n({functionName:f,fileName:p[0],lineNumber:p[1],columnNumber:p[2],source:u})},this)},parseOpera:function(c){return!c.stacktrace||c.message.indexOf(`
37
+ `)>-1&&c.message.split(`
38
+ `).length>c.stacktrace.split(`
39
+ `).length?this.parseOpera9(c):c.stack?this.parseOpera11(c):this.parseOpera10(c)},parseOpera9:function(c){for(var l=/Line (\d+).*script (?:in )?(\S+)/i,u=c.message.split(`
40
+ `),d=[],h=2,f=u.length;h<f;h+=2){var p=l.exec(u[h]);p&&d.push(new n({fileName:p[2],lineNumber:p[1],source:u[h]}))}return d},parseOpera10:function(c){for(var l=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,u=c.stacktrace.split(`
41
+ `),d=[],h=0,f=u.length;h<f;h+=2){var p=l.exec(u[h]);p&&d.push(new n({functionName:p[3]||void 0,fileName:p[2],lineNumber:p[1],source:u[h]}))}return d},parseOpera11:function(c){var l=c.stack.split(`
42
+ `).filter(function(u){return!!u.match(o)&&!u.match(/^Error created at/)},this);return l.map(function(u){var d=u.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:u})},this)}}})}(Pc)),Pc.exports}var Ic={exports:{}},Hd;function VS(){return Hd||(Hd=1,function(e,t){(function(r,n){e.exports=n(Rf())})(de,function(r){return{backtrace:function(o){var i=[],a=10;typeof o=="object"&&typeof o.maxStackSize=="number"&&(a=o.maxStackSize);for(var s=arguments.callee;s&&i.length<a&&s.arguments;){for(var c=new Array(s.arguments.length),l=0;l<c.length;++l)c[l]=s.arguments[l];/function(?:\s+([\w$]+))+\s*\(/.test(s.toString())?i.push(new r({functionName:RegExp.$1||void 0,args:c})):i.push(new r({args:c}));try{s=s.caller}catch{break}}return i}}})}(Ic)),Ic.exports}var Lc={exports:{}},Jo={},kc={},qd;function Ug(){return qd||(qd=1,function(e){function t(v,b,A){if(b in v)return v[b];if(arguments.length===3)return A;throw new Error('"'+b+'" is a required argument.')}e.getArg=t;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,n=/^data:.+\,.+$/;function o(v){var b=v.match(r);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}e.urlParse=o;function i(v){var b="";return v.scheme&&(b+=v.scheme+":"),b+="//",v.auth&&(b+=v.auth+"@"),v.host&&(b+=v.host),v.port&&(b+=":"+v.port),v.path&&(b+=v.path),b}e.urlGenerate=i;function a(v){var b=v,A=o(v);if(A){if(!A.path)return v;b=A.path}for(var S=e.isAbsolute(b),P=b.split(/\/+/),R,L=0,k=P.length-1;k>=0;k--)R=P[k],R==="."?P.splice(k,1):R===".."?L++:L>0&&(R===""?(P.splice(k+1,L),L=0):(P.splice(k,2),L--));return b=P.join("/"),b===""&&(b=S?"/":"."),A?(A.path=b,i(A)):b}e.normalize=a;function s(v,b){v===""&&(v="."),b===""&&(b=".");var A=o(b),S=o(v);if(S&&(v=S.path||"/"),A&&!A.scheme)return S&&(A.scheme=S.scheme),i(A);if(A||b.match(n))return b;if(S&&!S.host&&!S.path)return S.host=b,i(S);var P=b.charAt(0)==="/"?b:a(v.replace(/\/+$/,"")+"/"+b);return S?(S.path=P,i(S)):P}e.join=s,e.isAbsolute=function(v){return v.charAt(0)==="/"||!!v.match(r)};function c(v,b){v===""&&(v="."),v=v.replace(/\/$/,"");for(var A=0;b.indexOf(v+"/")!==0;){var S=v.lastIndexOf("/");if(S<0||(v=v.slice(0,S),v.match(/^([^\/]+:\/)?\/*$/)))return b;++A}return Array(A+1).join("../")+b.substr(v.length+1)}e.relative=c;var l=function(){var v=Object.create(null);return!("__proto__"in v)}();function u(v){return v}function d(v){return f(v)?"$"+v:v}e.toSetString=l?u:d;function h(v){return f(v)?v.slice(1):v}e.fromSetString=l?u:h;function f(v){if(!v)return!1;var b=v.length;if(b<9||v.charCodeAt(b-1)!==95||v.charCodeAt(b-2)!==95||v.charCodeAt(b-3)!==111||v.charCodeAt(b-4)!==116||v.charCodeAt(b-5)!==111||v.charCodeAt(b-6)!==114||v.charCodeAt(b-7)!==112||v.charCodeAt(b-8)!==95||v.charCodeAt(b-9)!==95)return!1;for(var A=b-10;A>=0;A--)if(v.charCodeAt(A)!==36)return!1;return!0}function p(v,b,A){var S=v.source-b.source;return S!==0||(S=v.originalLine-b.originalLine,S!==0)||(S=v.originalColumn-b.originalColumn,S!==0||A)||(S=v.generatedColumn-b.generatedColumn,S!==0)||(S=v.generatedLine-b.generatedLine,S!==0)?S:v.name-b.name}e.compareByOriginalPositions=p;function m(v,b,A){var S=v.generatedLine-b.generatedLine;return S!==0||(S=v.generatedColumn-b.generatedColumn,S!==0||A)||(S=v.source-b.source,S!==0)||(S=v.originalLine-b.originalLine,S!==0)||(S=v.originalColumn-b.originalColumn,S!==0)?S:v.name-b.name}e.compareByGeneratedPositionsDeflated=m;function _(v,b){return v===b?0:v>b?1:-1}function w(v,b){var A=v.generatedLine-b.generatedLine;return A!==0||(A=v.generatedColumn-b.generatedColumn,A!==0)||(A=_(v.source,b.source),A!==0)||(A=v.originalLine-b.originalLine,A!==0)||(A=v.originalColumn-b.originalColumn,A!==0)?A:_(v.name,b.name)}e.compareByGeneratedPositionsInflated=w}(kc)),kc}var Mc={},Gd;function WS(){return Gd||(Gd=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,n,o,i,a,s){var c=Math.floor((n-r)/2)+r,l=a(o,i[c],!0);return l===0?c:l>0?n-c>1?t(c,n,o,i,a,s):s==e.LEAST_UPPER_BOUND?n<i.length?n:-1:c:c-r>1?t(r,c,o,i,a,s):s==e.LEAST_UPPER_BOUND?c:r<0?-1:r}e.search=function(n,o,i,a){if(o.length===0)return-1;var s=t(-1,o.length,n,o,i,a||e.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&i(o[s],o[s-1],!0)===0;)--s;return s}}(Mc)),Mc}var Fc={},Vd;function zS(){if(Vd)return Fc;Vd=1;var e=Ug(),t=Object.prototype.hasOwnProperty;function r(){this._array=[],this._set=Object.create(null)}return r.fromArray=function(o,i){for(var a=new r,s=0,c=o.length;s<c;s++)a.add(o[s],i);return a},r.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(o,i){var a=e.toSetString(o),s=t.call(this._set,a),c=this._array.length;(!s||i)&&this._array.push(o),s||(this._set[a]=c)},r.prototype.has=function(o){var i=e.toSetString(o);return t.call(this._set,i)},r.prototype.indexOf=function(o){var i=e.toSetString(o);if(t.call(this._set,i))return this._set[i];throw new Error('"'+o+'" is not in the set.')},r.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},r.prototype.toArray=function(){return this._array.slice()},Fc.ArraySet=r,Fc}var ba={},wa={},Wd;function QS(){if(Wd)return wa;Wd=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return wa.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},wa.decode=function(t){var r=65,n=90,o=97,i=122,a=48,s=57,c=43,l=47,u=26,d=52;return r<=t&&t<=n?t-r:o<=t&&t<=i?t-o+u:a<=t&&t<=s?t-a+d:t==c?62:t==l?63:-1},wa}var zd;function YS(){if(zd)return ba;zd=1;var e=QS(),t=5,r=1<<t,n=r-1,o=r;function i(s){return s<0?(-s<<1)+1:(s<<1)+0}function a(s){var c=(s&1)===1,l=s>>1;return c?-l:l}return ba.encode=function(c){var l="",u,d=i(c);do u=d&n,d>>>=t,d>0&&(u|=o),l+=e.encode(u);while(d>0);return l},ba.decode=function(c,l,u){var d=c.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(c.charCodeAt(l++)),m===-1)throw new Error("Invalid base64 digit: "+c.charAt(l-1));p=!!(m&o),m&=n,h=h+(m<<f),f+=t}while(p);u.value=a(h),u.rest=l},ba}var Bc={},Qd;function KS(){if(Qd)return Bc;Qd=1;function e(n,o,i){var a=n[o];n[o]=n[i],n[i]=a}function t(n,o){return Math.round(n+Math.random()*(o-n))}function r(n,o,i,a){if(i<a){var s=t(i,a),c=i-1;e(n,s,a);for(var l=n[a],u=i;u<a;u++)o(n[u],l)<=0&&(c+=1,e(n,c,u));e(n,c+1,u);var d=c+1;r(n,o,i,d-1),r(n,o,d+1,a)}}return Bc.quickSort=function(n,o){r(n,o,0,n.length-1)},Bc}var Yd;function XS(){if(Yd)return Jo;Yd=1;var e=Ug(),t=WS(),r=zS().ArraySet,n=YS(),o=KS().quickSort;function i(l){var u=l;return typeof l=="string"&&(u=JSON.parse(l.replace(/^\)\]\}'/,""))),u.sections!=null?new c(u):new a(u)}i.fromSourceMap=function(l){return a.fromSourceMap(l)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(u,d){var h=u.charAt(d);return h===";"||h===","},i.prototype._parseMappings=function(u,d){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(u,d,h){var f=d||null,p=h||i.GENERATED_ORDER,m;switch(p){case i.GENERATED_ORDER:m=this._generatedMappings;break;case i.ORIGINAL_ORDER:m=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var _=this.sourceRoot;m.map(function(w){var v=w.source===null?null:this._sources.at(w.source);return v!=null&&_!=null&&(v=e.join(_,v)),{source:v,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:this._names.at(w.name)}},this).forEach(u,f)},i.prototype.allGeneratedPositionsFor=function(u){var d=e.getArg(u,"line"),h={source:e.getArg(u,"source"),originalLine:d,originalColumn:e.getArg(u,"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(u.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 w=m.originalColumn;m&&m.originalLine===d&&m.originalColumn==w;)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},Jo.SourceMapConsumer=i;function a(l){var u=l;typeof l=="string"&&(u=JSON.parse(l.replace(/^\)\]\}'/,"")));var d=e.getArg(u,"version"),h=e.getArg(u,"sources"),f=e.getArg(u,"names",[]),p=e.getArg(u,"sourceRoot",null),m=e.getArg(u,"sourcesContent",null),_=e.getArg(u,"mappings"),w=e.getArg(u,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);h=h.map(String).map(e.normalize).map(function(v){return p&&e.isAbsolute(p)&&e.isAbsolute(v)?e.relative(p,v):v}),this._names=r.fromArray(f.map(String),!0),this._sources=r.fromArray(h,!0),this.sourceRoot=p,this.sourcesContent=m,this._mappings=_,this.file=w}a.prototype=Object.create(i.prototype),a.prototype.consumer=i,a.fromSourceMap=function(u){var d=Object.create(a.prototype),h=d._names=r.fromArray(u._names.toArray(),!0),f=d._sources=r.fromArray(u._sources.toArray(),!0);d.sourceRoot=u._sourceRoot,d.sourcesContent=u._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=u._file;for(var p=u._mappings.toArray().slice(),m=d.__generatedMappings=[],_=d.__originalMappings=[],w=0,v=p.length;w<v;w++){var b=p[w],A=new s;A.generatedLine=b.generatedLine,A.generatedColumn=b.generatedColumn,b.source&&(A.source=f.indexOf(b.source),A.originalLine=b.originalLine,A.originalColumn=b.originalColumn,b.name&&(A.name=h.indexOf(b.name)),_.push(A)),m.push(A)}return o(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(u,d){for(var h=1,f=0,p=0,m=0,_=0,w=0,v=u.length,b=0,A={},S={},P=[],R=[],L,k,q,G,H;b<v;)if(u.charAt(b)===";")h++,b++,f=0;else if(u.charAt(b)===",")b++;else{for(L=new s,L.generatedLine=h,G=b;G<v&&!this._charIsMappingSeparator(u,G);G++);if(k=u.slice(b,G),q=A[k],q)b+=k.length;else{for(q=[];b<G;)n.decode(u,b,S),H=S.value,b=S.rest,q.push(H);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");A[k]=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=w+q[4],w+=q[4])),R.push(L),typeof L.originalLine=="number"&&P.push(L)}o(R,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=R,o(P,e.compareByOriginalPositions),this.__originalMappings=P},a.prototype._findMapping=function(u,d,h,f,p,m){if(u[h]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+u[h]);if(u[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+u[f]);return t.search(u,d,p,m)},a.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var d=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var h=this._generatedMappings[u+1];if(d.generatedLine===h.generatedLine){d.lastGeneratedColumn=h.generatedColumn-1;continue}}d.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(u){var d={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},h=this._findMapping(d,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(u,"bias",i.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(u){return u==null}):!1},a.prototype.sourceContentFor=function(u,d){if(!this.sourcesContent)return null;if(this.sourceRoot!=null&&(u=e.relative(this.sourceRoot,u)),this._sources.has(u))return this.sourcesContent[this._sources.indexOf(u)];var h;if(this.sourceRoot!=null&&(h=e.urlParse(this.sourceRoot))){var f=u.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("/"+u))return this.sourcesContent[this._sources.indexOf("/"+u)]}if(d)return null;throw new Error('"'+u+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(u){var d=e.getArg(u,"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(u,"line"),originalColumn:e.getArg(u,"column")},f=this._findMapping(h,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(u,"bias",i.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}},Jo.BasicSourceMapConsumer=a;function c(l){var u=l;typeof l=="string"&&(u=JSON.parse(l.replace(/^\)\]\}'/,"")));var d=e.getArg(u,"version"),h=e.getArg(u,"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"),w=e.getArg(m,"column");if(_<f.line||_===f.line&&w<f.column)throw new Error("Section offsets must be ordered and non-overlapping.");return f=m,{generatedOffset:{generatedLine:_+1,generatedColumn:w+1},consumer:new i(e.getArg(p,"map"))}})}return c.prototype=Object.create(i.prototype),c.prototype.constructor=i,c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){for(var l=[],u=0;u<this._sections.length;u++)for(var d=0;d<this._sections[u].consumer.sources.length;d++)l.push(this._sections[u].consumer.sources[d]);return l}}),c.prototype.originalPositionFor=function(u){var d={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"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:u.bias}):{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(u){return u.consumer.hasContentsOfAllSources()})},c.prototype.sourceContentFor=function(u,d){for(var h=0;h<this._sections.length;h++){var f=this._sections[h],p=f.consumer.sourceContentFor(u,!0);if(p)return p}if(d)return null;throw new Error('"'+u+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(u){for(var d=0;d<this._sections.length;d++){var h=this._sections[d];if(h.consumer.sources.indexOf(e.getArg(u,"source"))!==-1){var f=h.consumer.generatedPositionFor(u);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}},c.prototype._parseMappings=function(u,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],w=f.consumer._sources.at(_.source);f.consumer.sourceRoot!==null&&(w=e.join(f.consumer.sourceRoot,w)),this._sources.add(w),w=this._sources.indexOf(w);var v=f.consumer._names.at(_.name);this._names.add(v),v=this._names.indexOf(v);var b={source:w,generatedLine:_.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:_.generatedColumn+(f.generatedOffset.generatedLine===_.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:_.originalLine,originalColumn:_.originalColumn,name:v};this.__generatedMappings.push(b),typeof b.originalLine=="number"&&this.__originalMappings.push(b)}o(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),o(this.__originalMappings,e.compareByOriginalPositions)},Jo.IndexedSourceMapConsumer=c,Jo}var Kd;function JS(){return Kd||(Kd=1,function(e,t){(function(r,n){e.exports=n(XS(),Rf())})(de,function(r,n){function o(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 i(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
+ `),_="",w=Math.min(f,20),v=0;v<w;++v){var b=m[f-v-1],A=b.indexOf("//");if(A>=0&&(b=b.substr(0,A)),b){_=b+_;for(var S=p.length,P=0;P<S;P++){var R=p[P].exec(_);if(R&&R[1])return R[1]}}}}function c(){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 u(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 w=f.originalPositionFor({line:h.lineNumber,column:h.columnNumber});if(w.source){var v=f.sourceContentFor(w.source);v&&(p[w.source]=v),m(new n({functionName:w.name||h.functionName,args:h.args,fileName:w.source,lineNumber:w.line,columnNumber:w.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||o,this._atob=f.atob||i,this._get=function(m){return new Promise((function(_,w){var v=m.substr(0,5)==="data:";if(this.sourceCache[m])_(this.sourceCache[m]);else if(f.offline&&!v)w(new Error("Cannot make network requests in offline mode"));else if(v){var b=/^data:application\/json;([\w=:"-]+;)*base64,/,A=m.match(b);if(A){var S=A[0].length,P=m.substr(S),R=this._atob(P);this.sourceCache[m]=R,_(R)}else w(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(_,w)}}).bind(this))},this._getSourceMapConsumer=function(m,_){return new Promise((function(w){if(this.sourceMapConsumerCache[m])w(this.sourceMapConsumerCache[m]);else{var v=new Promise((function(b,A){return this._get(m).then(function(S){typeof S=="string"&&(S=a(S.replace(/^\)\]\}'/,""))),typeof S.sourceRoot>"u"&&(S.sourceRoot=_),b(new r.SourceMapConsumer(S))}).catch(A)}).bind(this));this.sourceMapConsumerCache[m]=v,w(v)}}).bind(this))},this.pinpoint=function(m){return new Promise((function(_,w){this.getMappedLocation(m).then((function(v){function b(){_(v)}this.findFunctionName(v).then(_,b).catch(b)}).bind(this),w)}).bind(this))},this.findFunctionName=function(m){return new Promise((function(_,w){l(m),this._get(m.fileName).then(function(b){var A=m.lineNumber,S=m.columnNumber,P=s(b,A);_(P?new n({functionName:P,args:m.args,fileName:m.fileName,lineNumber:A,columnNumber:S}):m)},w).catch(w)}).bind(this))},this.getMappedLocation=function(m){return new Promise((function(_,w){c(),l(m);var v=this.sourceCache,b=m.fileName;this._get(b).then((function(A){var S=u(A),P=S.substr(0,5)==="data:",R=b.substring(0,b.lastIndexOf("/")+1);return S[0]!=="/"&&!P&&!/^https?:\/\/|^\/\//i.test(S)&&(S=R+S),this._getSourceMapConsumer(S,R).then(function(L){return d(m,L,v).then(_).catch(function(){_(m)})})}).bind(this),w).catch(w)}).bind(this))}}})}(Lc)),Lc.exports}var Xd;function ZS(){return Xd||(Xd=1,function(e,t){(function(r,n){e.exports=n(GS(),VS(),JS())})(de,function(n,o,i){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 c(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 u(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=c(a,h);var f=s(),p=l(f)?n.parse(f):o.backtrace(h);return u(p,h.filter)},fromError:function(h,f){f=c(a,f);var p=new i(f);return new Promise((function(m){var _=u(n.parse(h),f.filter);m(Promise.all(_.map(function(w){return new Promise(function(v){function b(){v(w)}p.pinpoint(w).then(v,b).catch(b)})})))}).bind(this))},generateArtificially:function(h){h=c(a,h);var f=o.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(v){throw l(v)&&this.fromError(v).then(f,p).catch(p),v}}).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(_,w){var v=new XMLHttpRequest;if(v.onerror=w,v.onreadystatechange=function(){v.readyState===4&&(v.status>=200&&v.status<400?_(v.responseText):w(new Error("POST to "+f+" failed with status: "+v.status)))},v.open("post",f),v.setRequestHeader("Content-Type","application/json"),m&&typeof m.headers=="object"){var b=m.headers;for(var A in b)Object.prototype.hasOwnProperty.call(b,A)&&v.setRequestHeader(A,b[A])}var S={stack:h};p!=null&&(S.message=p),v.send(JSON.stringify(S))})}}})}(Rc)),Rc.exports}var Dc,Jd;function eT(){if(Jd)return Dc;Jd=1;var e=ZS(),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 c=window.onerror||s;window.onerror=function(u,d,h,f,p){return p&&a.report(p).catch(s),c(u,d,h,f,p),!0}}if(a.reportUnhandledPromiseRejections){var l=window.onunhandledrejection||s;window.onunhandledrejection=function(u){return u&&a.report(u.reason).catch(s),l(u.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 c={};c.serviceContext=this.serviceContext,c.context=this.context,c.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 u=this.targetUrl||t+this.projectId+"/events:report?key="+this.apiKey,d=this.customReportingFunction;return o(a,l).then(function(h){return c.message=h,d?d(c):i(u,c)})};function o(a,s){return e.fromError(a).then(function(c){for(var l=[a.toString()],u=s;u<c.length;u++)l.push([" at ",c[u].getFunctionName()||"<anonymous>"," (",c[u].getFileName(),":",c[u].getLineNumber(),":",c[u].getColumnNumber(),")"].join(""));return l.join(`
44
+ `)},function(c){return["Error extracting stack trace: ",c,`
45
+ `,a.toString(),`
46
+ `," (",a.file,":",a.line,":",a.column,")"].join("")})}function i(a,s){var c=new XMLHttpRequest;return c.open("POST",a,!0),c.setRequestHeader("Content-Type","application/json; charset=UTF-8"),new Promise(function(l,u){c.onreadystatechange=function(){if(c.readyState===4){var d=c.status;if(d>=200&&d<300)l({message:s.message});else if(d===429)u({message:"quota or rate limiting error on stackdriver report",name:"Http429FakeError"});else{var h=d?d+" http response":"network error";u(new Error(h+" on stackdriver report"))}}},c.send(JSON.stringify(s))})}return r.prototype.setUser=function(a){this.context.user=a},Dc=r,Dc}var Zd;function tT(){return Zd||(Zd=1,function(e,t){(function(r,n){e.exports=n(eT())})(de,function(r){return function(){var n={542:function(s){s.exports=r}},o={};function i(s){var c=o[s];if(c!==void 0)return c.exports;var l=o[s]={exports:{}};return n[s](l,l.exports,i),l.exports}i.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(c,{a:c}),c},i.d=function(s,c){for(var l in c)i.o(c,l)&&!i.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:c[l]})},i.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},i.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(){i.r(a),i.d(a,{reportError:function(){return h},setContext:function(){return d}});var s=i(542),c=i.n(s);const{GCP:{PROJECT_ID:l}}={GCP:{PROJECT_ID:"hazel-tea-194609"}};let u={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(u.key=f,!p)throw new Error("Cannot set context: Environment not defined");u.environment=p,u.projectId=m||l,_&&(u.service=`${_}:${u.environment}`)},h=async(f,p)=>{try{const m=new(c());m.start(u),typeof p=="string"&&m.setUser(p),await m.report(f)}catch(m){console.warn(`Cannot report error: ${m.message}`)}}}(),a}()})}(Cc)),Cc.exports}var Uc={exports:{}},Sa={},ep;function rT(){if(ep)return Sa;ep=1,Object.defineProperty(Sa,"__esModule",{value:!0});var e=function(r){console.warn("[react-gtm]",r)};return Sa.default=e,Sa}var $c,tp;function nT(){if(tp)return $c;tp=1;var e=rT(),t=r(e);function r(o){return o&&o.__esModule?o:{default:o}}var n={tags:function(i){var a=i.id,s=i.events,c=i.dataLayer,l=i.dataLayerName,u=i.preview,d=i.auth,h="&gtm_auth="+d,f="&gtm_preview="+u;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(c,l);return{iframe:p,script:m,dataLayerVar:_}},dataLayer:function(i,a){return`
55
+ window.`+a+" = window."+a+` || [];
56
+ window.`+a+".push("+JSON.stringify(i)+")"}};return $c=n,$c}var jc,rp;function iT(){if(rp)return jc;rp=1;var e=nT(),t=r(e);function r(o){return o&&o.__esModule?o:{default:o}}var n={dataScript:function(i){var a=document.createElement("script");return a.innerHTML=i,a},gtm:function(i){var a=t.default.tags(i),s=function(){var d=document.createElement("noscript");return d.innerHTML=a.iframe,d},c=function(){var d=document.createElement("script");return d.innerHTML=a.script,d},l=this.dataScript(a.dataLayerVar);return{noScript:s,script:c,dataScript:l}},initialize:function(i){var a=i.gtmId,s=i.events,c=s===void 0?{}:s,l=i.dataLayer,u=i.dataLayerName,d=u===void 0?"dataLayer":u,h=i.auth,f=h===void 0?"":h,p=i.preview,m=p===void 0?"":p,_=this.gtm({id:a,events:c,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(i){var a=i.dataLayer,s=i.dataLayerName,c=s===void 0?"dataLayer":s;if(window[c])return window[c].push(a);var l=t.default.dataLayer(a,c),u=this.dataScript(l);document.head.insertBefore(u,document.head.childNodes[0])}};return jc=n,jc}var Hc,np;function oT(){if(np)return Hc;np=1;var e=iT(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return Hc=t.default,Hc}var ip;function sT(){return ip||(ip=1,function(e,t){(function(r,n){e.exports=n(oT())})(de,function(r){return function(){var n={273:function(s){s.exports=r}},o={};function i(s){var c=o[s];if(c!==void 0)return c.exports;var l=o[s]={exports:{}};return n[s](l,l.exports,i),l.exports}i.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(c,{a:c}),c},i.d=function(s,c){for(var l in c)i.o(c,l)&&!i.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:c[l]})},i.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},i.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(){i.r(a),i.d(a,{setContext:function(){return u},setupGTM:function(){return h}});var s=i(273),c=i.n(s);let l=null;const u=({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();c().initialize({gtmId:f.id})}}(),a}()})}(Uc)),Uc.exports}var $g=202,jg=502,Hg=400,qg=409,Gg=100,Vg=201,Wg=417,aT=424,zg=403,Qg=504,Yg=410,Kg=505,Xg=418,Jg=419,Zg=507,ey=500,ty=411,ry=423,ny=420,iy=405,oy=301,sy=302,ay=207,uy=300,cy=511,ly=204,fy=203,hy=406,dy=404,py=501,my=304,gy=200,yy=206,vy=402,Ey=308,_y=412,by=428,wy=102,Sy=407,Ty=431,xy=408,Oy=413,Ay=414,Cy=416,Ry=205,Py=303,Ny=503,Iy=101,Ly=307,ky=429,My=401,Fy=422,By=415,Dy=305;const uT={ACCEPTED:$g,BAD_GATEWAY:jg,BAD_REQUEST:Hg,CONFLICT:qg,CONTINUE:Gg,CREATED:Vg,EXPECTATION_FAILED:Wg,FORBIDDEN:zg,GATEWAY_TIMEOUT:Qg,GONE:Yg,HTTP_VERSION_NOT_SUPPORTED:Kg,IM_A_TEAPOT:Xg,INSUFFICIENT_SPACE_ON_RESOURCE:Jg,INSUFFICIENT_STORAGE:Zg,INTERNAL_SERVER_ERROR:ey,LENGTH_REQUIRED:ty,LOCKED:ry,METHOD_FAILURE:ny,METHOD_NOT_ALLOWED:iy,MOVED_PERMANENTLY:oy,MOVED_TEMPORARILY:sy,MULTI_STATUS:ay,MULTIPLE_CHOICES:uy,NETWORK_AUTHENTICATION_REQUIRED:cy,NO_CONTENT:ly,NON_AUTHORITATIVE_INFORMATION:fy,NOT_ACCEPTABLE:hy,NOT_FOUND:dy,NOT_IMPLEMENTED:py,NOT_MODIFIED:my,OK:gy,PARTIAL_CONTENT:yy,PAYMENT_REQUIRED:vy,PERMANENT_REDIRECT:Ey,PRECONDITION_FAILED:_y,PRECONDITION_REQUIRED:by,PROCESSING:wy,PROXY_AUTHENTICATION_REQUIRED:Sy,REQUEST_HEADER_FIELDS_TOO_LARGE:Ty,REQUEST_TIMEOUT:xy,REQUEST_TOO_LONG:Oy,REQUEST_URI_TOO_LONG:Ay,REQUESTED_RANGE_NOT_SATISFIABLE:Cy,RESET_CONTENT:Ry,SEE_OTHER:Py,SERVICE_UNAVAILABLE:Ny,SWITCHING_PROTOCOLS:Iy,TEMPORARY_REDIRECT:Ly,TOO_MANY_REQUESTS:ky,UNAUTHORIZED:My,UNPROCESSABLE_ENTITY:Fy,UNSUPPORTED_MEDIA_TYPE:By,USE_PROXY:Dy};var cT={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"},lT={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 Uy(e){var t=cT[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}function $y(e){var t=lT[e];if(!t)throw new Error("Reason phrase does not exist: "+e);return t}var jy=Uy,Ll;(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"})(Ll||(Ll={}));var kl;(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"})(kl||(kl={}));var Va=globalThis&&globalThis.__assign||function(){return Va=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Va.apply(this,arguments)};const fT=Va(Va({},uT),{getStatusCode:$y,getStatusText:jy}),hT=Object.freeze(Object.defineProperty({__proto__:null,ACCEPTED:$g,BAD_GATEWAY:jg,BAD_REQUEST:Hg,CONFLICT:qg,CONTINUE:Gg,CREATED:Vg,EXPECTATION_FAILED:Wg,FAILED_DEPENDENCY:aT,FORBIDDEN:zg,GATEWAY_TIMEOUT:Qg,GONE:Yg,HTTP_VERSION_NOT_SUPPORTED:Kg,IM_A_TEAPOT:Xg,INSUFFICIENT_SPACE_ON_RESOURCE:Jg,INSUFFICIENT_STORAGE:Zg,INTERNAL_SERVER_ERROR:ey,LENGTH_REQUIRED:ty,LOCKED:ry,METHOD_FAILURE:ny,METHOD_NOT_ALLOWED:iy,MOVED_PERMANENTLY:oy,MOVED_TEMPORARILY:sy,MULTIPLE_CHOICES:uy,MULTI_STATUS:ay,NETWORK_AUTHENTICATION_REQUIRED:cy,NON_AUTHORITATIVE_INFORMATION:fy,NOT_ACCEPTABLE:hy,NOT_FOUND:dy,NOT_IMPLEMENTED:py,NOT_MODIFIED:my,NO_CONTENT:ly,OK:gy,PARTIAL_CONTENT:yy,PAYMENT_REQUIRED:vy,PERMANENT_REDIRECT:Ey,PRECONDITION_FAILED:_y,PRECONDITION_REQUIRED:by,PROCESSING:wy,PROXY_AUTHENTICATION_REQUIRED:Sy,REQUESTED_RANGE_NOT_SATISFIABLE:Cy,REQUEST_HEADER_FIELDS_TOO_LARGE:Ty,REQUEST_TIMEOUT:xy,REQUEST_TOO_LONG:Oy,REQUEST_URI_TOO_LONG:Ay,RESET_CONTENT:Ry,get ReasonPhrases(){return kl},SEE_OTHER:Py,SERVICE_UNAVAILABLE:Ny,SWITCHING_PROTOCOLS:Iy,get StatusCodes(){return Ll},TEMPORARY_REDIRECT:Ly,TOO_MANY_REQUESTS:ky,UNAUTHORIZED:My,UNPROCESSABLE_ENTITY:Fy,UNSUPPORTED_MEDIA_TYPE:By,USE_PROXY:Dy,default:fT,getReasonPhrase:Uy,getStatusCode:$y,getStatusText:jy},Symbol.toStringTag,{value:"Module"})),dT=Qs(hT);var Ta={exports:{}},Zo={},qc={},es={},ts={},kn={},rs={},Gc={},Mn={},Cr={},op;function Pf(){if(op)return Cr;op=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.ERROR_PACKET=Cr.PACKET_TYPES_REVERSE=Cr.PACKET_TYPES=void 0;const e=Object.create(null);Cr.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);Cr.PACKET_TYPES_REVERSE=t,Object.keys(e).forEach(n=>{t[e[n]]=n});const r={type:"error",data:"parser error"};return Cr.ERROR_PACKET=r,Cr}var sp;function pT(){if(sp)return Mn;sp=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.encodePacket=Mn.encodePacketToBinary=void 0;const e=Pf(),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,o=({type:l,data:u},d,h)=>t&&u instanceof Blob?d?h(u):i(u,h):r&&(u instanceof ArrayBuffer||n(u))?d?h(u):i(new Blob([u]),h):h(e.PACKET_TYPES[l]+(u||""));Mn.encodePacket=o;const i=(l,u)=>{const d=new FileReader;return d.onload=function(){const h=d.result.split(",")[1];u("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 c(l,u){if(t&&l.data instanceof Blob)return l.data.arrayBuffer().then(a).then(u);if(r&&(l.data instanceof ArrayBuffer||n(l.data)))return u(a(l.data));o(l,!1,d=>{s||(s=new TextEncoder),u(s.encode(d))})}return Mn.encodePacketToBinary=c,Mn}var ns={},Fn={},ap;function mT(){if(ap)return Fn;ap=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.decode=Fn.encode=void 0;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let o=0;o<e.length;o++)t[e.charCodeAt(o)]=o;const r=o=>{let i=new Uint8Array(o),a,s=i.length,c="";for(a=0;a<s;a+=3)c+=e[i[a]>>2],c+=e[(i[a]&3)<<4|i[a+1]>>4],c+=e[(i[a+1]&15)<<2|i[a+2]>>6],c+=e[i[a+2]&63];return s%3===2?c=c.substring(0,c.length-1)+"=":s%3===1&&(c=c.substring(0,c.length-2)+"=="),c};Fn.encode=r;const n=o=>{let i=o.length*.75,a=o.length,s,c=0,l,u,d,h;o[o.length-1]==="="&&(i--,o[o.length-2]==="="&&i--);const f=new ArrayBuffer(i),p=new Uint8Array(f);for(s=0;s<a;s+=4)l=t[o.charCodeAt(s)],u=t[o.charCodeAt(s+1)],d=t[o.charCodeAt(s+2)],h=t[o.charCodeAt(s+3)],p[c++]=l<<2|u>>4,p[c++]=(u&15)<<4|d>>2,p[c++]=(d&3)<<6|h&63;return f};return Fn.decode=n,Fn}var up;function gT(){if(up)return ns;up=1,Object.defineProperty(ns,"__esModule",{value:!0}),ns.decodePacket=void 0;const e=Pf(),t=mT(),r=typeof ArrayBuffer=="function",n=(a,s)=>{if(typeof a!="string")return{type:"message",data:i(a,s)};const c=a.charAt(0);return c==="b"?{type:"message",data:o(a.substring(1),s)}:e.PACKET_TYPES_REVERSE[c]?a.length>1?{type:e.PACKET_TYPES_REVERSE[c],data:a.substring(1)}:{type:e.PACKET_TYPES_REVERSE[c]}:e.ERROR_PACKET};ns.decodePacket=n;const o=(a,s)=>{if(r){const c=(0,t.decode)(a);return i(c,s)}else return{base64:!0,data:a}},i=(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 ns}var cp;function Ks(){return cp||(cp=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=pT();Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return t.encodePacket}});const r=gT();Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return r.decodePacket}});const n=Pf(),o=String.fromCharCode(30),i=(h,f)=>{const p=h.length,m=new Array(p);let _=0;h.forEach((w,v)=>{(0,t.encodePacket)(w,!1,b=>{m[v]=b,++_===p&&f(m.join(o))})})};e.encodePayload=i;const a=(h,f)=>{const p=h.split(o),m=[];for(let _=0;_<p.length;_++){const w=(0,r.decodePacket)(p[_],f);if(m.push(w),w.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 w=new DataView(_.buffer);w.setUint8(0,126),w.setUint16(1,m)}else{_=new Uint8Array(9);const w=new DataView(_.buffer);w.setUint8(0,127),w.setBigUint64(1,BigInt(m))}h.data&&typeof h.data!="string"&&(_[0]|=128),f.enqueue(_),f.enqueue(p)})}})}e.createPacketEncoderStream=s;let c;function l(h){return h.reduce((f,p)=>f+p.length,0)}function u(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){c||(c=new TextDecoder);const p=[];let m=0,_=-1,w=!1;return new TransformStream({transform(v,b){for(p.push(v);;){if(m===0){if(l(p)<1)break;const A=u(p,1);w=(A[0]&128)===128,_=A[0]&127,_<126?m=3:_===126?m=1:m=2}else if(m===1){if(l(p)<2)break;const A=u(p,2);_=new DataView(A.buffer,A.byteOffset,A.length).getUint16(0),m=3}else if(m===2){if(l(p)<8)break;const A=u(p,8),S=new DataView(A.buffer,A.byteOffset,A.length),P=S.getUint32(0);if(P>Math.pow(2,53-32)-1){b.enqueue(n.ERROR_PACKET);break}_=P*Math.pow(2,32)+S.getUint32(4),m=3}else{if(l(p)<_)break;const A=u(p,_);b.enqueue((0,r.decodePacket)(w?A:c.decode(A),f)),m=0}if(_===0||_>h){b.enqueue(n.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=d,e.protocol=4}(Gc)),Gc}function wt(e){if(e)return yT(e)}function yT(e){for(var t in wt.prototype)e[t]=wt.prototype[t];return e}wt.prototype.on=wt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};wt.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};wt.prototype.off=wt.prototype.removeListener=wt.prototype.removeAllListeners=wt.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,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};wt.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,o=r.length;n<o;++n)r[n].apply(this,t)}return this};wt.prototype.emitReserved=wt.prototype.emit;wt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};wt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const vT=Object.freeze(Object.defineProperty({__proto__:null,Emitter:wt},Symbol.toStringTag,{value:"Module"})),co=Qs(vT);var Rr={},is={},lp;function hu(){return lp||(lp=1,Object.defineProperty(is,"__esModule",{value:!0}),is.globalThisShim=void 0,is.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())()),is}var fp;function Xs(){if(fp)return Rr;fp=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.byteLength=Rr.installTimerFunctions=Rr.pick=void 0;const e=hu();function t(c,...l){return l.reduce((u,d)=>(c.hasOwnProperty(d)&&(u[d]=c[d]),u),{})}Rr.pick=t;const r=e.globalThisShim.setTimeout,n=e.globalThisShim.clearTimeout;function o(c,l){l.useNativeTimers?(c.setTimeoutFn=r.bind(e.globalThisShim),c.clearTimeoutFn=n.bind(e.globalThisShim)):(c.setTimeoutFn=e.globalThisShim.setTimeout.bind(e.globalThisShim),c.clearTimeoutFn=e.globalThisShim.clearTimeout.bind(e.globalThisShim))}Rr.installTimerFunctions=o;const i=1.33;function a(c){return typeof c=="string"?s(c):Math.ceil((c.byteLength||c.size)*i)}Rr.byteLength=a;function s(c){let l=0,u=0;for(let d=0,h=c.length;d<h;d++)l=c.charCodeAt(d),l<128?u+=1:l<2048?u+=2:l<55296||l>=57344?u+=3:(d++,u+=4);return u}return Rr}var xa={exports:{}},Vc,hp;function ET(){if(hp)return Vc;hp=1;var e=1e3,t=e*60,r=t*60,n=r*24,o=n*7,i=n*365.25;Vc=function(u,d){d=d||{};var h=typeof u;if(h==="string"&&u.length>0)return a(u);if(h==="number"&&isFinite(u))return d.long?c(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function a(u){if(u=String(u),!(u.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(u);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*i;case"weeks":case"week":case"w":return h*o;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(u){var d=Math.abs(u);return d>=n?Math.round(u/n)+"d":d>=r?Math.round(u/r)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function c(u){var d=Math.abs(u);return d>=n?l(u,d,n,"day"):d>=r?l(u,d,r,"hour"):d>=t?l(u,d,t,"minute"):d>=e?l(u,d,e,"second"):u+" ms"}function l(u,d,h,f){var p=d>=h*1.5;return Math.round(u/h)+" "+f+(p?"s":"")}return Vc}var Wc,dp;function _T(){if(dp)return Wc;dp=1;function e(t){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=s,n.humanize=ET(),n.destroy=u,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 _(...w){if(!_.enabled)return;const v=_,b=Number(new Date),A=b-(h||b);v.diff=A,v.prev=h,v.curr=b,h=b,w[0]=n.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");let S=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,(R,L)=>{if(R==="%%")return"%";S++;const k=n.formatters[L];if(typeof k=="function"){const q=w[S];R=k.call(v,q),w.splice(S,1),S--}return R}),n.formatArgs.call(v,w),(v.log||n.log).apply(v,w)}return _.namespace=d,_.useColors=n.useColors(),_.color=n.selectColor(d),_.extend=o,_.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:w=>{f=w}}),typeof n.init=="function"&&n.init(_),_}function o(d,h){const f=n(this.namespace+(typeof h>"u"?":":h)+d);return f.log=this.log,f}function i(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(c),...n.skips.map(c).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 c(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function l(d){return d instanceof Error?d.stack||d.message:d}function u(){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 Wc=e,Wc}var pp;function _r(){return pp||(pp=1,function(e,t){t.formatArgs=n,t.save=o,t.load=i,t.useColors=r,t.storage=a(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!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(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let u=0,d=0;c[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(u++,h==="%c"&&(d=u))}),c.splice(d,0,l)}t.log=console.debug||console.log||(()=>{});function o(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function i(){let c;try{c=t.storage.getItem("debug")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}function a(){try{return localStorage}catch{}}e.exports=_T()(t);const{formatters:s}=e.exports;s.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(xa,xa.exports)),xa.exports}var Bn={},mp;function Hy(){if(mp)return Bn;mp=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.decode=Bn.encode=void 0;function e(r){let n="";for(let o in r)r.hasOwnProperty(o)&&(n.length&&(n+="&"),n+=encodeURIComponent(o)+"="+encodeURIComponent(r[o]));return n}Bn.encode=e;function t(r){let n={},o=r.split("&");for(let i=0,a=o.length;i<a;i++){let s=o[i].split("=");n[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return n}return Bn.decode=t,Bn}var gp;function du(){if(gp)return rs;gp=1;var e=de&&de.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(rs,"__esModule",{value:!0}),rs.Transport=void 0;const t=Ks(),r=co,n=Xs(),o=e(_r()),i=Hy(),a=(0,o.default)("engine.io-client:transport");class s extends Error{constructor(u,d,h){super(u),this.description=d,this.context=h,this.type="TransportError"}}class c extends r.Emitter{constructor(u){super(),this.writable=!1,(0,n.installTimerFunctions)(this,u),this.opts=u,this.query=u.query,this.socket=u.socket}onError(u,d,h){return super.emitReserved("error",new s(u,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(u){this.readyState==="open"?this.write(u):a("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(u){const d=(0,t.decodePacket)(u,this.socket.binaryType);this.onPacket(d)}onPacket(u){super.emitReserved("packet",u)}onClose(u){this.readyState="closed",super.emitReserved("close",u)}pause(u){}createUri(u,d={}){return u+"://"+this._hostname()+this._port()+this.opts.path+this._query(d)}_hostname(){const u=this.opts.hostname;return u.indexOf(":")===-1?u:"["+u+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(u){const d=(0,i.encode)(u);return d.length?"?"+d:""}}return rs.Transport=c,rs}var Pr={},yp;function qy(){if(yp)return Pr;yp=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.yeast=Pr.decode=Pr.encode=void 0;const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,r={};let n=0,o=0,i;function a(l){let u="";do u=e[l%t]+u,l=Math.floor(l/t);while(l>0);return u}Pr.encode=a;function s(l){let u=0;for(o=0;o<l.length;o++)u=u*t+r[l.charAt(o)];return u}Pr.decode=s;function c(){const l=a(+new Date);return l!==i?(n=0,i=l):l+"."+a(n++)}for(Pr.yeast=c;o<t;o++)r[e[o]]=o;return Pr}var Dn={},os={},vp;function bT(){if(vp)return os;vp=1,Object.defineProperty(os,"__esModule",{value:!0}),os.hasCORS=void 0;let e=!1;try{e=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}return os.hasCORS=e,os}var Ep;function wT(){if(Ep)return Dn;Ep=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.createCookieJar=Dn.XHR=void 0;const e=bT(),t=hu();function r(o){const i=o.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||e.hasCORS))return new XMLHttpRequest}catch{}if(!i)try{return new t.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}Dn.XHR=r;function n(){}return Dn.createCookieJar=n,Dn}var _p;function ST(){if(_p)return kn;_p=1;var e=de&&de.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(kn,"__esModule",{value:!0}),kn.Request=kn.Polling=void 0;const t=du(),r=e(_r()),n=qy(),o=Ks(),i=wT(),a=co,s=Xs(),c=hu(),l=(0,r.default)("engine.io-client:polling");function u(){}const d=function(){return new i.XHR({xdomain:!1}).responseType!=null}();class h extends t.Transport{constructor(_){if(super(_),this.polling=!1,typeof location<"u"){const v=location.protocol==="https:";let b=location.port;b||(b=v?"443":"80"),this.xd=typeof location<"u"&&_.hostname!==location.hostname||b!==_.port}const w=_&&_.forceBase64;this.supportsBinary=d&&!w,this.opts.withCredentials&&(this.cookieJar=(0,i.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(_){this.readyState="pausing";const w=()=>{l("paused"),this.readyState="paused",_()};if(this.polling||!this.writable){let v=0;this.polling&&(l("we are currently polling - waiting to pause"),v++,this.once("pollComplete",function(){l("pre-pause polling complete"),--v||w()})),this.writable||(l("we are currently writing - waiting to pause"),v++,this.once("drain",function(){l("pre-pause writing complete"),--v||w()}))}else w()}poll(){l("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(_){l("polling got data %s",_);const w=v=>{if(this.readyState==="opening"&&v.type==="open"&&this.onOpen(),v.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(v)};(0,o.decodePayload)(_,this.socket.binaryType).forEach(w),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,o.encodePayload)(_,w=>{this.doWrite(w,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const _=this.opts.secure?"https":"http",w=this.query||{};return this.opts.timestampRequests!==!1&&(w[this.opts.timestampParam]=(0,n.yeast)()),!this.supportsBinary&&!w.sid&&(w.b64=1),this.createUri(_,w)}request(_={}){return Object.assign(_,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new f(this.uri(),_)}doWrite(_,w){const v=this.request({method:"POST",data:_});v.on("success",w),v.on("error",(b,A)=>{this.onError("xhr post error",b,A)})}doPoll(){l("xhr poll");const _=this.request();_.on("data",this.onData.bind(this)),_.on("error",(w,v)=>{this.onError("xhr poll error",w,v)}),this.pollXhr=_}}kn.Polling=h;class f extends a.Emitter{constructor(_,w){super(),(0,s.installTimerFunctions)(this,w),this.opts=w,this.method=w.method||"GET",this.uri=_,this.data=w.data!==void 0?w.data:null,this.create()}create(){var _;const w=(0,s.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");w.xdomain=!!this.opts.xd;const v=this.xhr=new i.XHR(w);try{l("xhr open %s: %s",this.method,this.uri),v.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){v.setDisableHeaderCheck&&v.setDisableHeaderCheck(!0);for(let b in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(b)&&v.setRequestHeader(b,this.opts.extraHeaders[b])}}catch{}if(this.method==="POST")try{v.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{v.setRequestHeader("Accept","*/*")}catch{}(_=this.opts.cookieJar)===null||_===void 0||_.addCookies(v),"withCredentials"in v&&(v.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(v.timeout=this.opts.requestTimeout),v.onreadystatechange=()=>{var b;v.readyState===3&&((b=this.opts.cookieJar)===null||b===void 0||b.parseCookies(v)),v.readyState===4&&(v.status===200||v.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof v.status=="number"?v.status:0)},0))},l("xhr data %s",this.data),v.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=u,_)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(kn.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 c.globalThisShim?"pagehide":"unload";addEventListener(m,p,!1)}}function p(){for(let m in f.requests)f.requests.hasOwnProperty(m)&&f.requests[m].abort()}return kn}var ss={},Jt={},bp;function pu(){if(bp)return Jt;bp=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.defaultBinaryType=Jt.usingBrowserWebSocket=Jt.WebSocket=Jt.nextTick=void 0;const e=hu();return Jt.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,n)=>n(r,0))(),Jt.WebSocket=e.globalThisShim.WebSocket||e.globalThisShim.MozWebSocket,Jt.usingBrowserWebSocket=!0,Jt.defaultBinaryType="arraybuffer",Jt}var wp;function TT(){if(wp)return ss;wp=1;var e=de&&de.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(ss,"__esModule",{value:!0}),ss.WS=void 0;const t=du(),r=qy(),n=Xs(),o=pu(),i=e(_r()),a=Ks(),s=(0,i.default)("engine.io-client:websocket"),c=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=c?{}:(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=o.usingBrowserWebSocket&&!c?h?new o.WebSocket(d,h):new o.WebSocket(d):new o.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 _={};o.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{o.usingBrowserWebSocket?this.ws.send(m):this.ws.send(m,_)}catch{s("websocket closed before onclose event")}p&&(0,o.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const 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!!o.WebSocket}}return ss.WS=l,ss}var as={},Sp;function xT(){if(Sp)return as;Sp=1;var e=de&&de.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(as,"__esModule",{value:!0}),as.WT=void 0;const t=du(),r=pu(),n=Ks(),i=(0,e(_r()).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(()=>{i("transport closed gracefully"),this.onClose()}).catch(c=>{i("transport closed due to %s",c),this.onError("webtransport error",c)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(c=>{const l=(0,n.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),u=c.readable.pipeThrough(l).getReader(),d=(0,n.createPacketEncoderStream)();d.readable.pipeTo(c.writable),this.writer=d.writable.getWriter();const h=()=>{u.read().then(({done:p,value:m})=>{if(p){i("session is closed");return}i("received chunk: %o",m),this.onPacket(m),h()}).catch(p=>{i("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(c){this.writable=!1;for(let l=0;l<c.length;l++){const u=c[l],d=l===c.length-1;this.writer.write(u).then(()=>{d&&(0,r.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var c;(c=this.transport)===null||c===void 0||c.close()}}return as.WT=a,as}var Tp;function Gy(){if(Tp)return ts;Tp=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.transports=void 0;const e=ST(),t=TT(),r=xT();return ts.transports={websocket:t.WS,webtransport:r.WT,polling:e.Polling},ts}var us={},xp;function Vy(){if(xp)return us;xp=1,Object.defineProperty(us,"__esModule",{value:!0}),us.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(i){const a=i,s=i.indexOf("["),c=i.indexOf("]");s!=-1&&c!=-1&&(i=i.substring(0,s)+i.substring(s,c).replace(/:/g,";")+i.substring(c,i.length));let l=e.exec(i||""),u={},d=14;for(;d--;)u[t[d]]=l[d]||"";return s!=-1&&c!=-1&&(u.source=a,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=n(u,u.path),u.queryKey=o(u,u.query),u}us.parse=r;function n(i,a){const s=/\/{2,9}/g,c=a.replace(s,"/").split("/");return(a.slice(0,1)=="/"||a.length===0)&&c.splice(0,1),a.slice(-1)=="/"&&c.splice(c.length-1,1),c}function o(i,a){const s={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(c,l,u){l&&(s[l]=u)}),s}return us}var Op;function OT(){if(Op)return es;Op=1;var e=de&&de.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(es,"__esModule",{value:!0}),es.Socket=void 0;const t=Gy(),r=Xs(),n=Hy(),o=Vy(),i=e(_r()),a=co,s=Ks(),c=pu(),l=(0,i.default)("engine.io-client:socket");class u extends a.Emitter{constructor(h,f={}){super(),this.binaryType=c.defaultBinaryType,this.writeBuffer=[],h&&typeof h=="object"&&(f=h,h=null),h?(h=(0,o.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,o.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&&u.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;u.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;u.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"),S(),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,S(),f.close(),f=null)}const w=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 v(){w("transport closed")}function b(){w("socket closed")}function A(P){f&&P.name!==f.name&&(l('"%s" works - aborting "%s"',P.name,f.name),_())}const S=()=>{f.removeListener("open",m),f.removeListener("error",w),f.removeListener("close",v),this.off("close",b),this.off("upgrading",A)};f.once("open",m),f.once("error",w),f.once("close",v),this.once("close",b),this.once("upgrading",A),this.upgrades.indexOf("webtransport")!==-1&&h!=="webtransport"?this.setTimeoutFn(()=>{p||f.open()},200):f.open()}onOpen(){if(l("socket open"),this.readyState="open",u.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),u.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 es.Socket=u,u.protocol=s.protocol,es}var Ap;function Wy(){return Ap||(Ap=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=OT();Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return t.Socket}}),e.protocol=t.Socket.protocol;var r=du();Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return r.Transport}});var n=Gy();Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return n.transports}});var o=Xs();Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return o.installTimerFunctions}});var i=Vy();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return i.parse}});var a=pu();Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return a.nextTick}})}(qc)),qc}var Cp;function AT(){if(Cp)return Zo;Cp=1;var e=de&&de.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.url=void 0;const t=Wy(),n=e(_r()).default("socket.io-client:url");function o(i,a="",s){let c=i;s=s||typeof location<"u"&&location,i==null&&(i=s.protocol+"//"+s.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=s.protocol+i:i=s.host+i),/^(https?|wss?):\/\//.test(i)||(n("protocol-less url %s",i),typeof s<"u"?i=s.protocol+"//"+i:i="https://"+i),n("parse %s",i),c=t.parse(i)),c.port||(/^(http|ws)$/.test(c.protocol)?c.port="80":/^(http|ws)s$/.test(c.protocol)&&(c.port="443")),c.path=c.path||"/";const u=c.host.indexOf(":")!==-1?"["+c.host+"]":c.host;return c.id=c.protocol+"://"+u+":"+c.port+a,c.href=c.protocol+"://"+u+(s&&s.port===c.port?"":":"+c.port),c}return Zo.url=o,Zo}var cs={},ls={},zc={},Un={},$n={},Rp;function zy(){if(Rp)return $n;Rp=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.hasBinary=$n.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]",o=typeof File=="function"||typeof File<"u"&&r.call(File)==="[object FileConstructor]";function i(s){return e&&(s instanceof ArrayBuffer||t(s))||n&&s instanceof Blob||o&&s instanceof File}$n.isBinary=i;function a(s,c){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let l=0,u=s.length;l<u;l++)if(a(s[l]))return!0;return!1}if(i(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 $n.hasBinary=a,$n}var Pp;function CT(){if(Pp)return Un;Pp=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.reconstructPacket=Un.deconstructPacket=void 0;const e=zy();function t(i){const a=[],s=i.data,c=i;return c.data=r(s,a),c.attachments=a.length,{packet:c,buffers:a}}Un.deconstructPacket=t;function r(i,a){if(!i)return i;if((0,e.isBinary)(i)){const s={_placeholder:!0,num:a.length};return a.push(i),s}else if(Array.isArray(i)){const s=new Array(i.length);for(let c=0;c<i.length;c++)s[c]=r(i[c],a);return s}else if(typeof i=="object"&&!(i instanceof Date)){const s={};for(const c in i)Object.prototype.hasOwnProperty.call(i,c)&&(s[c]=r(i[c],a));return s}return i}function n(i,a){return i.data=o(i.data,a),delete i.attachments,i}Un.reconstructPacket=n;function o(i,a){if(!i)return i;if(i&&i._placeholder===!0){if(typeof i.num=="number"&&i.num>=0&&i.num<a.length)return a[i.num];throw new Error("illegal attachments")}else if(Array.isArray(i))for(let s=0;s<i.length;s++)i[s]=o(i[s],a);else if(typeof i=="object")for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&(i[s]=o(i[s],a));return i}return Un}var Np;function Nf(){return Np||(Np=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const t=co,r=CT(),n=zy(),i=(0,_r().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 c{constructor(f){this.replacer=f}encode(f){return i("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)),i("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=c;function l(h){return Object.prototype.toString.call(h)==="[object Object]"}class u 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 w=p+1;for(;f.charAt(++p)!=="-"&&p!=f.length;);const v=f.substring(w,p);if(v!=Number(v)||f.charAt(p)!=="-")throw new Error("Illegal attachments");m.attachments=Number(v)}if(f.charAt(p+1)==="/"){const w=p+1;for(;++p&&!(f.charAt(p)===","||p===f.length););m.nsp=f.substring(w,p)}else m.nsp="/";const _=f.charAt(p+1);if(_!==""&&Number(_)==_){const w=p+1;for(;++p;){const v=f.charAt(p);if(v==null||Number(v)!=v){--p;break}if(p===f.length)break}m.id=Number(f.substring(w,p+1))}if(f.charAt(++p)){const w=this.tryParse(f.substr(p));if(u.isPayloadValid(m.type,w))m.data=w;else throw new Error("invalid payload")}return i("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=u;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=[]}}}(zc)),zc}var fs={},Ip;function Qy(){if(Ip)return fs;Ip=1,Object.defineProperty(fs,"__esModule",{value:!0}),fs.on=void 0;function e(t,r,n){return t.on(r,n),function(){t.off(r,n)}}return fs.on=e,fs}var Lp;function Yy(){if(Lp)return ls;Lp=1;var e=de&&de.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(ls,"__esModule",{value:!0}),ls.Socket=void 0;const t=Nf(),r=Qy(),n=co,i=e(_r()).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,u,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=u,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,...u){if(a.hasOwnProperty(l))throw new Error('"'+l.toString()+'" is a reserved event name');if(u.unshift(l),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(u),this;const d={type:t.PacketType.EVENT,data:u};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof u[u.length-1]=="function"){const p=this.ids++;i("emitting packet with ack id %d",p);const m=u.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)?i("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,u){var d;const h=(d=this.flags.timeout)!==null&&d!==void 0?d:this._opts.ackTimeout;if(h===void 0){this.acks[l]=u;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[l];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===l&&(i("removing packet with ack id %d from the buffer",l),this.sendBuffer.splice(p,1));i("event with ack id %d has timed out after %d ms",l,h),u.call(this,new Error("operation has timed out"))},h);this.acks[l]=(...p)=>{this.io.clearTimeoutFn(f),u.apply(this,[null,...p])}}emitWithAck(l,...u){const d=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((h,f)=>{u.push((p,m)=>d?p?f(p):h(m):h(p)),this.emit(l,...u)})}_addToQueue(l){let u;typeof l[l.length-1]=="function"&&(u=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&&(i("packet [%d] is discarded after %d tries",d.id,d.tryCount),this._queue.shift(),u&&u(h)):(i("packet [%d] was successfully sent",d.id),this._queue.shift(),u&&u(null,...f)),d.pending=!1,this._drainQueue())),this._queue.push(d),this._drainQueue()}_drainQueue(l=!1){if(i("draining queue"),!this.connected||this._queue.length===0)return;const u=this._queue[0];if(u.pending&&!l){i("packet [%d] has already been sent and is waiting for an ack",u.id);return}u.pending=!0,u.tryCount++,i("sending packet [%d] (try n°%d)",u.id,u.tryCount),this.flags=u.flags,this.emit.apply(this,u.args)}packet(l){l.nsp=this.nsp,this.io._packet(l)}onopen(){i("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,u){i("close (%s)",l),this.connected=!1,delete this.id,this.emitReserved("disconnect",l,u)}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 u=l.data||[];i("emitting event %j",u),l.id!=null&&(i("attaching ack callback to event"),u.push(this.ack(l.id))),this.connected?this.emitEvent(u):this.receiveBuffer.push(Object.freeze(u))}emitEvent(l){if(this._anyListeners&&this._anyListeners.length){const u=this._anyListeners.slice();for(const d of u)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 u=this;let d=!1;return function(...h){d||(d=!0,i("sending ack %j",h),u.packet({type:t.PacketType.ACK,id:l,data:h}))}}onack(l){const u=this.acks[l.id];typeof u=="function"?(i("calling ack %s with %j",l.id,l.data),u.apply(this,l.data),delete this.acks[l.id]):i("bad ack %s",l.id)}onconnect(l,u){i("socket connected with id %s",l),this.id=l,this.recovered=u&&this._pid===u,this._pid=u,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(){i("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&&(i("performing disconnect (%s)",this.nsp),this.packet({type:t.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(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 u=this._anyListeners;for(let d=0;d<u.length;d++)if(l===u[d])return u.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 u=this._anyOutgoingListeners;for(let d=0;d<u.length;d++)if(l===u[d])return u.splice(d,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(l){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const u=this._anyOutgoingListeners.slice();for(const d of u)d.apply(this,l.data)}}}return ls.Socket=s,ls}var hs={},kp;function RT(){if(kp)return hs;kp=1,Object.defineProperty(hs,"__esModule",{value:!0}),hs.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 hs.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},hs}var Mp;function PT(){if(Mp)return cs;Mp=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(cs,"__esModule",{value:!0}),cs.Manager=void 0;const o=Wy(),i=Yy(),a=r(Nf()),s=Qy(),c=RT(),l=co,d=n(_r()).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,o.installTimerFunctions(this,m),this.reconnection(m.reconnection!==!1),this.reconnectionAttempts(m.reconnectionAttempts||1/0),this.reconnectionDelay(m.reconnectionDelay||1e3),this.reconnectionDelayMax(m.reconnectionDelayMax||5e3),this.randomizationFactor((_=m.randomizationFactor)!==null&&_!==void 0?_:.5),this.backoff=new c.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 w=m.parser||a;this.encoder=new w.Encoder,this.decoder=new w.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 o.Socket(this.uri,this.opts);const m=this.engine,_=this;this._readyState="opening",this.skipReconnect=!1;const w=s.on(m,"open",function(){_.onopen(),p&&p()}),v=A=>{d("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",A),p?p(A):this.maybeReconnectOnOpen()},b=s.on(m,"error",v);if(this._timeout!==!1){const A=this._timeout;d("connect attempt will timeout after %d",A);const S=this.setTimeoutFn(()=>{d("connect attempt timed out after %d",A),w(),v(new Error("timeout")),m.close()},A);this.opts.autoUnref&&S.unref(),this.subs.push(()=>{this.clearTimeoutFn(S)})}return this.subs.push(w),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){o.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 i.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(w=>{w?(d("reconnect attempt error"),p._reconnecting=!1,p.reconnect(),this.emitReserved("reconnect_error",w)):(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 cs.Manager=h,cs}var Fp;function NT(){return Fp||(Fp=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=AT(),o=PT();Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});const i=Yy();Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}});const s=r(_r()).default("socket.io-client"),c={};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,w=c[m]&&_ in c[m].nsps,v=h.forceNew||h["force new connection"]||h.multiplex===!1||w;let b;return v?(s("ignoring socket cache for %s",p),b=new o.Manager(p,h)):(c[m]||(s("new io instance for %s",p),c[m]=new o.Manager(p,h)),b=c[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:o.Manager,Socket:i.Socket,io:l,connect:l});var u=Nf();Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l}(Ta,Ta.exports)),Ta.exports}var Qc={},ds={},Bp;function IT(){if(Bp)return ds;Bp=1,ds.byteLength=s,ds.toByteArray=l,ds.fromByteArray=h;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)e[o]=n[o],t[n.charCodeAt(o)]=o;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 c(f,p,m){return(p+m)*3/4-m}function l(f){var p,m=a(f),_=m[0],w=m[1],v=new r(c(f,_,w)),b=0,A=w>0?_-4:_,S;for(S=0;S<A;S+=4)p=t[f.charCodeAt(S)]<<18|t[f.charCodeAt(S+1)]<<12|t[f.charCodeAt(S+2)]<<6|t[f.charCodeAt(S+3)],v[b++]=p>>16&255,v[b++]=p>>8&255,v[b++]=p&255;return w===2&&(p=t[f.charCodeAt(S)]<<2|t[f.charCodeAt(S+1)]>>4,v[b++]=p&255),w===1&&(p=t[f.charCodeAt(S)]<<10|t[f.charCodeAt(S+1)]<<4|t[f.charCodeAt(S+2)]>>2,v[b++]=p>>8&255,v[b++]=p&255),v}function u(f){return e[f>>18&63]+e[f>>12&63]+e[f>>6&63]+e[f&63]}function d(f,p,m){for(var _,w=[],v=p;v<m;v+=3)_=(f[v]<<16&16711680)+(f[v+1]<<8&65280)+(f[v+2]&255),w.push(u(_));return w.join("")}function h(f){for(var p,m=f.length,_=m%3,w=[],v=16383,b=0,A=m-_;b<A;b+=v)w.push(d(f,b,b+v>A?A:b+v));return _===1?(p=f[m-1],w.push(e[p>>2]+e[p<<4&63]+"==")):_===2&&(p=(f[m-2]<<8)+f[m-1],w.push(e[p>>10]+e[p>>4&63]+e[p<<2&63]+"=")),w.join("")}return ds}var Oa={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Dp;function LT(){return Dp||(Dp=1,Oa.read=function(e,t,r,n,o){var i,a,s=o*8-n-1,c=(1<<s)-1,l=c>>1,u=-7,d=r?o-1:0,h=r?-1:1,f=e[t+d];for(d+=h,i=f&(1<<-u)-1,f>>=-u,u+=s;u>0;i=i*256+e[t+d],d+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=a*256+e[t+d],d+=h,u-=8);if(i===0)i=1-l;else{if(i===c)return a?NaN:(f?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-l}return(f?-1:1)*a*Math.pow(2,i-n)},Oa.write=function(e,t,r,n,o,i){var a,s,c,l=i*8-o-1,u=(1<<l)-1,d=u>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:i-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=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+d>=1?t+=h/c:t+=h*Math.pow(2,1-d),t*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,o),a=a+d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+f]=s&255,f+=p,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[r+f]=a&255,f+=p,a/=256,l-=8);e[r+f-p]|=m*128}),Oa}/*!
57
+ * The buffer module from node.js, for the browser.
58
+ *
59
+ * @author Feross Aboukhadijeh <https://feross.org>
60
+ * @license MIT
61
+ */var Up;function kT(){return Up||(Up=1,function(e){const t=IT(),r=LT(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=i(),!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 i(){try{const T=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(T,g),T.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(T){if(T>o)throw new RangeError('The value "'+T+'" is invalid for option "size"');const g=new Uint8Array(T);return Object.setPrototypeOf(g,s.prototype),g}function s(T,g,E){if(typeof T=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(T)}return c(T,g,E)}s.poolSize=8192;function c(T,g,E){if(typeof T=="string")return h(T,g);if(ArrayBuffer.isView(T))return p(T);if(T==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T);if(Ze(T,ArrayBuffer)||T&&Ze(T.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ze(T,SharedArrayBuffer)||T&&Ze(T.buffer,SharedArrayBuffer)))return m(T,g,E);if(typeof T=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const C=T.valueOf&&T.valueOf();if(C!=null&&C!==T)return s.from(C,g,E);const M=_(T);if(M)return M;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof T[Symbol.toPrimitive]=="function")return s.from(T[Symbol.toPrimitive]("string"),g,E);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T)}s.from=function(T,g,E){return c(T,g,E)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(T){if(typeof T!="number")throw new TypeError('"size" argument must be of type number');if(T<0)throw new RangeError('The value "'+T+'" is invalid for option "size"')}function u(T,g,E){return l(T),T<=0?a(T):g!==void 0?typeof E=="string"?a(T).fill(g,E):a(T).fill(g):a(T)}s.alloc=function(T,g,E){return u(T,g,E)};function d(T){return l(T),a(T<0?0:w(T)|0)}s.allocUnsafe=function(T){return d(T)},s.allocUnsafeSlow=function(T){return d(T)};function h(T,g){if((typeof g!="string"||g==="")&&(g="utf8"),!s.isEncoding(g))throw new TypeError("Unknown encoding: "+g);const E=b(T,g)|0;let C=a(E);const M=C.write(T,g);return M!==E&&(C=C.slice(0,M)),C}function f(T){const g=T.length<0?0:w(T.length)|0,E=a(g);for(let C=0;C<g;C+=1)E[C]=T[C]&255;return E}function p(T){if(Ze(T,Uint8Array)){const g=new Uint8Array(T);return m(g.buffer,g.byteOffset,g.byteLength)}return f(T)}function m(T,g,E){if(g<0||T.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(T.byteLength<g+(E||0))throw new RangeError('"length" is outside of buffer bounds');let C;return g===void 0&&E===void 0?C=new Uint8Array(T):E===void 0?C=new Uint8Array(T,g):C=new Uint8Array(T,g,E),Object.setPrototypeOf(C,s.prototype),C}function _(T){if(s.isBuffer(T)){const g=w(T.length)|0,E=a(g);return E.length===0||T.copy(E,0,0,g),E}if(T.length!==void 0)return typeof T.length!="number"||zt(T.length)?a(0):f(T);if(T.type==="Buffer"&&Array.isArray(T.data))return f(T.data)}function w(T){if(T>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return T|0}function v(T){return+T!=T&&(T=0),s.alloc(+T)}s.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==s.prototype},s.compare=function(g,E){if(Ze(g,Uint8Array)&&(g=s.from(g,g.offset,g.byteLength)),Ze(E,Uint8Array)&&(E=s.from(E,E.offset,E.byteLength)),!s.isBuffer(g)||!s.isBuffer(E))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===E)return 0;let C=g.length,M=E.length;for(let j=0,z=Math.min(C,M);j<z;++j)if(g[j]!==E[j]){C=g[j],M=E[j];break}return C<M?-1:M<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,E){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(E===void 0)for(E=0,C=0;C<g.length;++C)E+=g[C].length;const M=s.allocUnsafe(E);let j=0;for(C=0;C<g.length;++C){let z=g[C];if(Ze(z,Uint8Array))j+z.length>M.length?(s.isBuffer(z)||(z=s.from(z)),z.copy(M,j)):Uint8Array.prototype.set.call(M,z,j);else if(s.isBuffer(z))z.copy(M,j);else throw new TypeError('"list" argument must be an Array of Buffers');j+=z.length}return M};function b(T,g){if(s.isBuffer(T))return T.length;if(ArrayBuffer.isView(T)||Ze(T,ArrayBuffer))return T.byteLength;if(typeof T!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof T);const E=T.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&E===0)return 0;let M=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return E;case"utf8":case"utf-8":return er(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E*2;case"hex":return E>>>1;case"base64":return Wt(T).length;default:if(M)return C?-1:er(T).length;g=(""+g).toLowerCase(),M=!0}}s.byteLength=b;function A(T,g,E){let C=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((E===void 0||E>this.length)&&(E=this.length),E<=0)||(E>>>=0,g>>>=0,E<=g))return"";for(T||(T="utf8");;)switch(T){case"hex":return he(this,g,E);case"utf8":case"utf-8":return ie(this,g,E);case"ascii":return Q(this,g,E);case"latin1":case"binary":return ee(this,g,E);case"base64":return Y(this,g,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,g,E);default:if(C)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),C=!0}}s.prototype._isBuffer=!0;function S(T,g,E){const C=T[g];T[g]=T[E],T[E]=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 E=0;E<g;E+=2)S(this,E,E+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 E=0;E<g;E+=4)S(this,E,E+3),S(this,E+1,E+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 E=0;E<g;E+=8)S(this,E,E+7),S(this,E+1,E+6),S(this,E+2,E+5),S(this,E+3,E+4);return this},s.prototype.toString=function(){const g=this.length;return g===0?"":arguments.length===0?ie(this,0,g):A.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 E=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,E).replace(/(.{2})/g,"$1 ").trim(),this.length>E&&(g+=" ... "),"<Buffer "+g+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(g,E,C,M,j){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(E===void 0&&(E=0),C===void 0&&(C=g?g.length:0),M===void 0&&(M=0),j===void 0&&(j=this.length),E<0||C>g.length||M<0||j>this.length)throw new RangeError("out of range index");if(M>=j&&E>=C)return 0;if(M>=j)return-1;if(E>=C)return 1;if(E>>>=0,C>>>=0,M>>>=0,j>>>=0,this===g)return 0;let z=j-M,me=C-E;const Ce=Math.min(z,me),Re=this.slice(M,j),Pe=g.slice(E,C);for(let Ee=0;Ee<Ce;++Ee)if(Re[Ee]!==Pe[Ee]){z=Re[Ee],me=Pe[Ee];break}return z<me?-1:me<z?1:0};function P(T,g,E,C,M){if(T.length===0)return-1;if(typeof E=="string"?(C=E,E=0):E>2147483647?E=2147483647:E<-2147483648&&(E=-2147483648),E=+E,zt(E)&&(E=M?0:T.length-1),E<0&&(E=T.length+E),E>=T.length){if(M)return-1;E=T.length-1}else if(E<0)if(M)E=0;else return-1;if(typeof g=="string"&&(g=s.from(g,C)),s.isBuffer(g))return g.length===0?-1:R(T,g,E,C,M);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?M?Uint8Array.prototype.indexOf.call(T,g,E):Uint8Array.prototype.lastIndexOf.call(T,g,E):R(T,[g],E,C,M);throw new TypeError("val must be string, number or Buffer")}function R(T,g,E,C,M){let j=1,z=T.length,me=g.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(T.length<2||g.length<2)return-1;j=2,z/=2,me/=2,E/=2}function Ce(Pe,Ee){return j===1?Pe[Ee]:Pe.readUInt16BE(Ee*j)}let Re;if(M){let Pe=-1;for(Re=E;Re<z;Re++)if(Ce(T,Re)===Ce(g,Pe===-1?0:Re-Pe)){if(Pe===-1&&(Pe=Re),Re-Pe+1===me)return Pe*j}else Pe!==-1&&(Re-=Re-Pe),Pe=-1}else for(E+me>z&&(E=z-me),Re=E;Re>=0;Re--){let Pe=!0;for(let Ee=0;Ee<me;Ee++)if(Ce(T,Re+Ee)!==Ce(g,Ee)){Pe=!1;break}if(Pe)return Re}return-1}s.prototype.includes=function(g,E,C){return this.indexOf(g,E,C)!==-1},s.prototype.indexOf=function(g,E,C){return P(this,g,E,C,!0)},s.prototype.lastIndexOf=function(g,E,C){return P(this,g,E,C,!1)};function L(T,g,E,C){E=Number(E)||0;const M=T.length-E;C?(C=Number(C),C>M&&(C=M)):C=M;const j=g.length;C>j/2&&(C=j/2);let z;for(z=0;z<C;++z){const me=parseInt(g.substr(z*2,2),16);if(zt(me))return z;T[E+z]=me}return z}function k(T,g,E,C){return Mt(er(g,T.length-E),T,E,C)}function q(T,g,E,C){return Mt(kt(g),T,E,C)}function G(T,g,E,C){return Mt(Wt(g),T,E,C)}function H(T,g,E,C){return Mt(yn(g,T.length-E),T,E,C)}s.prototype.write=function(g,E,C,M){if(E===void 0)M="utf8",C=this.length,E=0;else if(C===void 0&&typeof E=="string")M=E,C=this.length,E=0;else if(isFinite(E))E=E>>>0,isFinite(C)?(C=C>>>0,M===void 0&&(M="utf8")):(M=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const j=this.length-E;if((C===void 0||C>j)&&(C=j),g.length>0&&(C<0||E<0)||E>this.length)throw new RangeError("Attempt to write outside buffer bounds");M||(M="utf8");let z=!1;for(;;)switch(M){case"hex":return L(this,g,E,C);case"utf8":case"utf-8":return k(this,g,E,C);case"ascii":case"latin1":case"binary":return q(this,g,E,C);case"base64":return G(this,g,E,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,g,E,C);default:if(z)throw new TypeError("Unknown encoding: "+M);M=(""+M).toLowerCase(),z=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(T,g,E){return g===0&&E===T.length?t.fromByteArray(T):t.fromByteArray(T.slice(g,E))}function ie(T,g,E){E=Math.min(T.length,E);const C=[];let M=g;for(;M<E;){const j=T[M];let z=null,me=j>239?4:j>223?3:j>191?2:1;if(M+me<=E){let Ce,Re,Pe,Ee;switch(me){case 1:j<128&&(z=j);break;case 2:Ce=T[M+1],(Ce&192)===128&&(Ee=(j&31)<<6|Ce&63,Ee>127&&(z=Ee));break;case 3:Ce=T[M+1],Re=T[M+2],(Ce&192)===128&&(Re&192)===128&&(Ee=(j&15)<<12|(Ce&63)<<6|Re&63,Ee>2047&&(Ee<55296||Ee>57343)&&(z=Ee));break;case 4:Ce=T[M+1],Re=T[M+2],Pe=T[M+3],(Ce&192)===128&&(Re&192)===128&&(Pe&192)===128&&(Ee=(j&15)<<18|(Ce&63)<<12|(Re&63)<<6|Pe&63,Ee>65535&&Ee<1114112&&(z=Ee))}}z===null?(z=65533,me=1):z>65535&&(z-=65536,C.push(z>>>10&1023|55296),z=56320|z&1023),C.push(z),M+=me}return D(C)}const K=4096;function D(T){const g=T.length;if(g<=K)return String.fromCharCode.apply(String,T);let E="",C=0;for(;C<g;)E+=String.fromCharCode.apply(String,T.slice(C,C+=K));return E}function Q(T,g,E){let C="";E=Math.min(T.length,E);for(let M=g;M<E;++M)C+=String.fromCharCode(T[M]&127);return C}function ee(T,g,E){let C="";E=Math.min(T.length,E);for(let M=g;M<E;++M)C+=String.fromCharCode(T[M]);return C}function he(T,g,E){const C=T.length;(!g||g<0)&&(g=0),(!E||E<0||E>C)&&(E=C);let M="";for(let j=g;j<E;++j)M+=yt[T[j]];return M}function J(T,g,E){const C=T.slice(g,E);let M="";for(let j=0;j<C.length-1;j+=2)M+=String.fromCharCode(C[j]+C[j+1]*256);return M}s.prototype.slice=function(g,E){const C=this.length;g=~~g,E=E===void 0?C:~~E,g<0?(g+=C,g<0&&(g=0)):g>C&&(g=C),E<0?(E+=C,E<0&&(E=0)):E>C&&(E=C),E<g&&(E=g);const M=this.subarray(g,E);return Object.setPrototypeOf(M,s.prototype),M};function X(T,g,E){if(T%1!==0||T<0)throw new RangeError("offset is not uint");if(T+g>E)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(g,E,C){g=g>>>0,E=E>>>0,C||X(g,E,this.length);let M=this[g],j=1,z=0;for(;++z<E&&(j*=256);)M+=this[g+z]*j;return M},s.prototype.readUintBE=s.prototype.readUIntBE=function(g,E,C){g=g>>>0,E=E>>>0,C||X(g,E,this.length);let M=this[g+--E],j=1;for(;E>0&&(j*=256);)M+=this[g+--E]*j;return M},s.prototype.readUint8=s.prototype.readUInt8=function(g,E){return g=g>>>0,E||X(g,1,this.length),this[g]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(g,E){return g=g>>>0,E||X(g,2,this.length),this[g]|this[g+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(g,E){return g=g>>>0,E||X(g,2,this.length),this[g]<<8|this[g+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(g,E){return g=g>>>0,E||X(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,E){return g=g>>>0,E||X(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 E=this[g],C=this[g+7];(E===void 0||C===void 0)&&Je(g,this.length-8);const M=E+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24,j=this[++g]+this[++g]*2**8+this[++g]*2**16+C*2**24;return BigInt(M)+(BigInt(j)<<BigInt(32))}),s.prototype.readBigUInt64BE=at(function(g){g=g>>>0,st(g,"offset");const E=this[g],C=this[g+7];(E===void 0||C===void 0)&&Je(g,this.length-8);const M=E*2**24+this[++g]*2**16+this[++g]*2**8+this[++g],j=this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C;return(BigInt(M)<<BigInt(32))+BigInt(j)}),s.prototype.readIntLE=function(g,E,C){g=g>>>0,E=E>>>0,C||X(g,E,this.length);let M=this[g],j=1,z=0;for(;++z<E&&(j*=256);)M+=this[g+z]*j;return j*=128,M>=j&&(M-=Math.pow(2,8*E)),M},s.prototype.readIntBE=function(g,E,C){g=g>>>0,E=E>>>0,C||X(g,E,this.length);let M=E,j=1,z=this[g+--M];for(;M>0&&(j*=256);)z+=this[g+--M]*j;return j*=128,z>=j&&(z-=Math.pow(2,8*E)),z},s.prototype.readInt8=function(g,E){return g=g>>>0,E||X(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},s.prototype.readInt16LE=function(g,E){g=g>>>0,E||X(g,2,this.length);const C=this[g]|this[g+1]<<8;return C&32768?C|4294901760:C},s.prototype.readInt16BE=function(g,E){g=g>>>0,E||X(g,2,this.length);const C=this[g+1]|this[g]<<8;return C&32768?C|4294901760:C},s.prototype.readInt32LE=function(g,E){return g=g>>>0,E||X(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},s.prototype.readInt32BE=function(g,E){return g=g>>>0,E||X(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 E=this[g],C=this[g+7];(E===void 0||C===void 0)&&Je(g,this.length-8);const M=this[g+4]+this[g+5]*2**8+this[g+6]*2**16+(C<<24);return(BigInt(M)<<BigInt(32))+BigInt(E+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 E=this[g],C=this[g+7];(E===void 0||C===void 0)&&Je(g,this.length-8);const M=(E<<24)+this[++g]*2**16+this[++g]*2**8+this[++g];return(BigInt(M)<<BigInt(32))+BigInt(this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C)}),s.prototype.readFloatLE=function(g,E){return g=g>>>0,E||X(g,4,this.length),r.read(this,g,!0,23,4)},s.prototype.readFloatBE=function(g,E){return g=g>>>0,E||X(g,4,this.length),r.read(this,g,!1,23,4)},s.prototype.readDoubleLE=function(g,E){return g=g>>>0,E||X(g,8,this.length),r.read(this,g,!0,52,8)},s.prototype.readDoubleBE=function(g,E){return g=g>>>0,E||X(g,8,this.length),r.read(this,g,!1,52,8)};function se(T,g,E,C,M,j){if(!s.isBuffer(T))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>M||g<j)throw new RangeError('"value" argument is out of bounds');if(E+C>T.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(g,E,C,M){if(g=+g,E=E>>>0,C=C>>>0,!M){const me=Math.pow(2,8*C)-1;se(this,g,E,C,me,0)}let j=1,z=0;for(this[E]=g&255;++z<C&&(j*=256);)this[E+z]=g/j&255;return E+C},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(g,E,C,M){if(g=+g,E=E>>>0,C=C>>>0,!M){const me=Math.pow(2,8*C)-1;se(this,g,E,C,me,0)}let j=C-1,z=1;for(this[E+j]=g&255;--j>=0&&(z*=256);)this[E+j]=g/z&255;return E+C},s.prototype.writeUint8=s.prototype.writeUInt8=function(g,E,C){return g=+g,E=E>>>0,C||se(this,g,E,1,255,0),this[E]=g&255,E+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(g,E,C){return g=+g,E=E>>>0,C||se(this,g,E,2,65535,0),this[E]=g&255,this[E+1]=g>>>8,E+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(g,E,C){return g=+g,E=E>>>0,C||se(this,g,E,2,65535,0),this[E]=g>>>8,this[E+1]=g&255,E+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(g,E,C){return g=+g,E=E>>>0,C||se(this,g,E,4,4294967295,0),this[E+3]=g>>>24,this[E+2]=g>>>16,this[E+1]=g>>>8,this[E]=g&255,E+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(g,E,C){return g=+g,E=E>>>0,C||se(this,g,E,4,4294967295,0),this[E]=g>>>24,this[E+1]=g>>>16,this[E+2]=g>>>8,this[E+3]=g&255,E+4};function fe(T,g,E,C,M){oe(g,C,M,T,E,7);let j=Number(g&BigInt(4294967295));T[E++]=j,j=j>>8,T[E++]=j,j=j>>8,T[E++]=j,j=j>>8,T[E++]=j;let z=Number(g>>BigInt(32)&BigInt(4294967295));return T[E++]=z,z=z>>8,T[E++]=z,z=z>>8,T[E++]=z,z=z>>8,T[E++]=z,E}function He(T,g,E,C,M){oe(g,C,M,T,E,7);let j=Number(g&BigInt(4294967295));T[E+7]=j,j=j>>8,T[E+6]=j,j=j>>8,T[E+5]=j,j=j>>8,T[E+4]=j;let z=Number(g>>BigInt(32)&BigInt(4294967295));return T[E+3]=z,z=z>>8,T[E+2]=z,z=z>>8,T[E+1]=z,z=z>>8,T[E]=z,E+8}s.prototype.writeBigUInt64LE=at(function(g,E=0){return fe(this,g,E,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=at(function(g,E=0){return He(this,g,E,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(g,E,C,M){if(g=+g,E=E>>>0,!M){const Ce=Math.pow(2,8*C-1);se(this,g,E,C,Ce-1,-Ce)}let j=0,z=1,me=0;for(this[E]=g&255;++j<C&&(z*=256);)g<0&&me===0&&this[E+j-1]!==0&&(me=1),this[E+j]=(g/z>>0)-me&255;return E+C},s.prototype.writeIntBE=function(g,E,C,M){if(g=+g,E=E>>>0,!M){const Ce=Math.pow(2,8*C-1);se(this,g,E,C,Ce-1,-Ce)}let j=C-1,z=1,me=0;for(this[E+j]=g&255;--j>=0&&(z*=256);)g<0&&me===0&&this[E+j+1]!==0&&(me=1),this[E+j]=(g/z>>0)-me&255;return E+C},s.prototype.writeInt8=function(g,E,C){return g=+g,E=E>>>0,C||se(this,g,E,1,127,-128),g<0&&(g=255+g+1),this[E]=g&255,E+1},s.prototype.writeInt16LE=function(g,E,C){return g=+g,E=E>>>0,C||se(this,g,E,2,32767,-32768),this[E]=g&255,this[E+1]=g>>>8,E+2},s.prototype.writeInt16BE=function(g,E,C){return g=+g,E=E>>>0,C||se(this,g,E,2,32767,-32768),this[E]=g>>>8,this[E+1]=g&255,E+2},s.prototype.writeInt32LE=function(g,E,C){return g=+g,E=E>>>0,C||se(this,g,E,4,2147483647,-2147483648),this[E]=g&255,this[E+1]=g>>>8,this[E+2]=g>>>16,this[E+3]=g>>>24,E+4},s.prototype.writeInt32BE=function(g,E,C){return g=+g,E=E>>>0,C||se(this,g,E,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[E]=g>>>24,this[E+1]=g>>>16,this[E+2]=g>>>8,this[E+3]=g&255,E+4},s.prototype.writeBigInt64LE=at(function(g,E=0){return fe(this,g,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=at(function(g,E=0){return He(this,g,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function te(T,g,E,C,M,j){if(E+C>T.length)throw new RangeError("Index out of range");if(E<0)throw new RangeError("Index out of range")}function ae(T,g,E,C,M){return g=+g,E=E>>>0,M||te(T,g,E,4),r.write(T,g,E,C,23,4),E+4}s.prototype.writeFloatLE=function(g,E,C){return ae(this,g,E,!0,C)},s.prototype.writeFloatBE=function(g,E,C){return ae(this,g,E,!1,C)};function Be(T,g,E,C,M){return g=+g,E=E>>>0,M||te(T,g,E,8),r.write(T,g,E,C,52,8),E+8}s.prototype.writeDoubleLE=function(g,E,C){return Be(this,g,E,!0,C)},s.prototype.writeDoubleBE=function(g,E,C){return Be(this,g,E,!1,C)},s.prototype.copy=function(g,E,C,M){if(!s.isBuffer(g))throw new TypeError("argument should be a Buffer");if(C||(C=0),!M&&M!==0&&(M=this.length),E>=g.length&&(E=g.length),E||(E=0),M>0&&M<C&&(M=C),M===C||g.length===0||this.length===0)return 0;if(E<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("sourceEnd out of bounds");M>this.length&&(M=this.length),g.length-E<M-C&&(M=g.length-E+C);const j=M-C;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(E,C,M):Uint8Array.prototype.set.call(g,this.subarray(C,M),E),j},s.prototype.fill=function(g,E,C,M){if(typeof g=="string"){if(typeof E=="string"?(M=E,E=0,C=this.length):typeof C=="string"&&(M=C,C=this.length),M!==void 0&&typeof M!="string")throw new TypeError("encoding must be a string");if(typeof M=="string"&&!s.isEncoding(M))throw new TypeError("Unknown encoding: "+M);if(g.length===1){const z=g.charCodeAt(0);(M==="utf8"&&z<128||M==="latin1")&&(g=z)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(E<0||this.length<E||this.length<C)throw new RangeError("Out of range index");if(C<=E)return this;E=E>>>0,C=C===void 0?this.length:C>>>0,g||(g=0);let j;if(typeof g=="number")for(j=E;j<C;++j)this[j]=g;else{const z=s.isBuffer(g)?g:s.from(g,M),me=z.length;if(me===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(j=0;j<C-E;++j)this[j+E]=z[j%me]}return this};const Ie={};function Tt(T,g,E){Ie[T]=class extends E{constructor(){super(),Object.defineProperty(this,"message",{value:g.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${T}]`,this.stack,delete this.name}get code(){return T}set code(M){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:M,writable:!0})}toString(){return`${this.name} [${T}]: ${this.message}`}}}Tt("ERR_BUFFER_OUT_OF_BOUNDS",function(T){return T?`${T} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Tt("ERR_INVALID_ARG_TYPE",function(T,g){return`The "${T}" argument must be of type number. Received type ${typeof g}`},TypeError),Tt("ERR_OUT_OF_RANGE",function(T,g,E){let C=`The value of "${T}" is out of range.`,M=E;return Number.isInteger(E)&&Math.abs(E)>2**32?M=At(String(E)):typeof E=="bigint"&&(M=String(E),(E>BigInt(2)**BigInt(32)||E<-(BigInt(2)**BigInt(32)))&&(M=At(M)),M+="n"),C+=` It must be ${g}. Received ${M}`,C},RangeError);function At(T){let g="",E=T.length;const C=T[0]==="-"?1:0;for(;E>=C+4;E-=3)g=`_${T.slice(E-3,E)}${g}`;return`${T.slice(0,E)}${g}`}function Gt(T,g,E){st(g,"offset"),(T[g]===void 0||T[g+E]===void 0)&&Je(g,T.length-(E+1))}function oe(T,g,E,C,M,j){if(T>E||T<g){const z=typeof g=="bigint"?"n":"";let me;throw j>3?g===0||g===BigInt(0)?me=`>= 0${z} and < 2${z} ** ${(j+1)*8}${z}`:me=`>= -(2${z} ** ${(j+1)*8-1}${z}) and < 2 ** ${(j+1)*8-1}${z}`:me=`>= ${g}${z} and <= ${E}${z}`,new Ie.ERR_OUT_OF_RANGE("value",me,T)}Gt(C,M,j)}function st(T,g){if(typeof T!="number")throw new Ie.ERR_INVALID_ARG_TYPE(g,"number",T)}function Je(T,g,E){throw Math.floor(T)!==T?(st(T,E),new Ie.ERR_OUT_OF_RANGE(E||"offset","an integer",T)):g<0?new Ie.ERR_BUFFER_OUT_OF_BOUNDS:new Ie.ERR_OUT_OF_RANGE(E||"offset",`>= ${E?1:0} and <= ${g}`,T)}const Vt=/[^+/0-9A-Za-z-_]/g;function br(T){if(T=T.split("=")[0],T=T.trim().replace(Vt,""),T.length<2)return"";for(;T.length%4!==0;)T=T+"=";return T}function er(T,g){g=g||1/0;let E;const C=T.length;let M=null;const j=[];for(let z=0;z<C;++z){if(E=T.charCodeAt(z),E>55295&&E<57344){if(!M){if(E>56319){(g-=3)>-1&&j.push(239,191,189);continue}else if(z+1===C){(g-=3)>-1&&j.push(239,191,189);continue}M=E;continue}if(E<56320){(g-=3)>-1&&j.push(239,191,189),M=E;continue}E=(M-55296<<10|E-56320)+65536}else M&&(g-=3)>-1&&j.push(239,191,189);if(M=null,E<128){if((g-=1)<0)break;j.push(E)}else if(E<2048){if((g-=2)<0)break;j.push(E>>6|192,E&63|128)}else if(E<65536){if((g-=3)<0)break;j.push(E>>12|224,E>>6&63|128,E&63|128)}else if(E<1114112){if((g-=4)<0)break;j.push(E>>18|240,E>>12&63|128,E>>6&63|128,E&63|128)}else throw new Error("Invalid code point")}return j}function kt(T){const g=[];for(let E=0;E<T.length;++E)g.push(T.charCodeAt(E)&255);return g}function yn(T,g){let E,C,M;const j=[];for(let z=0;z<T.length&&!((g-=2)<0);++z)E=T.charCodeAt(z),C=E>>8,M=E%256,j.push(M),j.push(C);return j}function Wt(T){return t.toByteArray(br(T))}function Mt(T,g,E,C){let M;for(M=0;M<C&&!(M+E>=g.length||M>=T.length);++M)g[M+E]=T[M];return M}function Ze(T,g){return T instanceof g||T!=null&&T.constructor!=null&&T.constructor.name!=null&&T.constructor.name===g.name}function zt(T){return T!==T}const yt=function(){const T="0123456789abcdef",g=new Array(256);for(let E=0;E<16;++E){const C=E*16;for(let M=0;M<16;++M)g[C+M]=T[E]+T[M]}return g}();function at(T){return typeof BigInt>"u"?vn:T}function vn(){throw new Error("BigInt not supported")}}(Qc)),Qc}(function(e,t){(function(r,n){e.exports=n(qS(),tT(),sT(),hg(),dT,NT(),kT())})(de,function(r,n,o,i,a,s,c){return function(){var l={809:function(f){f.exports=r},30:function(f){f.exports=n},36:function(f){f.exports=o},300:function(f){f.exports=i},408:function(f){f.exports=c},25:function(f){f.exports=a},130:function(f){f.exports=s}},u={};function d(f){var p=u[f];if(p!==void 0)return p.exports;var m=u[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 D},auth:function(){return X},buildAnswer:function(){return pE},buildCarouselCard:function(){return dE},buildQuestion:function(){return Ve},carouselCards:function(){return wi},contentInteraction:function(){return at},decodeBase64:function(){return gE},default:function(){return yE},editorialPages:function(){return W},features:function(){return E},getEntries:function(){return f.getEntries},getEntry:function(){return f.getEntry},management:function(){return _n},payments:function(){return Sn},people:function(){return rr},peopleEngagement:function(){return zr},qaQuestions:function(){return ct},reportError:function(){return p.reportError},search:function(){return _i}});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:w,LOCALHOST:v,STAGING:b,STAGING_SPLITTER:A},ENVIRONMENTS:{PRODUCTION:S,LOCAL:P}}}=_,{HUBSPOT:{ENVIRONMENTS_MAPPING:R,EMAIL_IDS:L}}=_;let k={emailIds:{}};var q=d(300),G=d.n(q);const H=async F=>{try{const{message:U,response:B,request:V}=F;let re=U;return B?re+=` - The request was made and the server responded with ${JSON.stringify({status:B.status,data:B.data})}`:V&&(re+=" - The request was made but no response was received"),console.warn(re),await(0,p.reportError)(new Error(re)),re}catch(U){return console.warn(`Cannot handle error: ${U.message}`),U.message}},{APIS:{ASSETS_API:{BASE_URL:Y,ENDPOINTS:{USERS:ie,CERTIFICATES:K}}}}=_;var D={certificates:{create:async(F,U)=>{let B=[];try{const{data:V}=await G().post(`${Y}${ie}/${F}${K}`,U);V&&(B=V)}catch(V){await H(V)}return B}}};const{APIS:{AUTH_API:{BASE_URL:Q,ENDPOINTS:{USER_PASSWORD:ee,USERS:he}}},USERS:{MYSELF:J}}=_;var X={userPassword:{update:async F=>{let U=null;try{U=await G().put(`${Q}${he}/${J}${ee}`,F)}catch(B){U={message:(((B||{}).response||{}).data||{}).message},await H(B)}return U}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:se,ENDPOINTS:{ANSWERS:fe,QUESTIONS:He,LIKES:te}}}}=_,ae=`${se}${He}`;var Be={create:async({questionSlug:F},U)=>{try{await G().post(`${ae}/${encodeURIComponent(F)}${fe}`,U)}catch(B){const V=await H(B);throw new Error(V)}},remove:async({questionSlug:F,answerSlug:U})=>{try{await G().delete(`${ae}/${encodeURIComponent(F)}${fe}/${encodeURIComponent(U)}`)}catch(B){const V=await H(B);throw new Error(V)}},update:async({questionSlug:F,answerSlug:U},B)=>{try{return await G().put(`${ae}/${encodeURIComponent(F)}${fe}/${encodeURIComponent(U)}`,B)}catch(V){const re=await H(V);throw new Error(re)}},like:async({questionSlug:F,answerSlug:U},B)=>{try{return await G().post(`${ae}/${encodeURIComponent(F)}${fe}/${encodeURIComponent(U)}${te}`,B)}catch(V){const re=await H(V);throw new Error(re)}},unlike:async({questionSlug:F,answerSlug:U})=>{try{return await G().delete(`${ae}/${encodeURIComponent(F)}${fe}/${encodeURIComponent(U)}${te}`)}catch(B){const V=await H(B);throw new Error(V)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Ie,ENDPOINTS:{QUESTIONS:Tt}}}}=_,At=`${Ie}${Tt}`;var Gt={create:async F=>{try{return await G().post(At,F)}catch(U){const B=await H(U);throw new Error(B)}},remove:async({questionSlug:F})=>{try{await G().delete(`${At}/${encodeURIComponent(F)}`)}catch(U){const B=await H(U);throw new Error(B)}},update:async({questionSlug:F},U)=>{try{return await G().put(`${At}/${encodeURIComponent(F)}`,U)}catch(B){const V=await H(B);throw new Error(V)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:oe,ENDPOINTS:{REPLIES:st,ANSWERS:Je,QUESTIONS:Vt,LIKES:br}}}}=_,er=`${oe}${Vt}`,kt=({questionSlug:F,answerSlug:U,replySlug:B},V=!1)=>{let re=`${er}/${encodeURIComponent(F)}${Je}/${encodeURIComponent(U)}${st}`;return B&&(re=`${re}/${encodeURIComponent(B)}`,V&&(re=`${re}${br}`)),re};var yn={create:async({questionSlug:F,answerSlug:U},B)=>{try{return await G().post(kt({questionSlug:F,answerSlug:U}),B)}catch(V){const re=await H(V);throw new Error(re)}},update:async({questionSlug:F,answerSlug:U,replySlug:B},V)=>{try{return await G().put(kt({questionSlug:F,answerSlug:U,replySlug:B}),V)}catch(re){const Ne=await H(re);throw new Error(Ne)}},remove:async({questionSlug:F,answerSlug:U,replySlug:B})=>{try{await G().delete(kt({questionSlug:F,answerSlug:U,replySlug:B}))}catch(V){const re=await H(V);throw new Error(re)}},like:async({questionSlug:F,answerSlug:U,replySlug:B},V)=>{try{await G().post(kt({questionSlug:F,answerSlug:U,replySlug:B},!0),V)}catch(re){const Ne=await H(re);throw new Error(Ne)}},unlike:async({questionSlug:F,answerSlug:U,replySlug:B})=>{try{await G().delete(kt({questionSlug:F,answerSlug:U,replySlug:B},!0))}catch(V){const re=await H(V);throw new Error(re)}},getReplyUrl:kt};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Wt,ENDPOINTS:{QUESTIONS:Mt,ANSWERS:Ze,LIKES:zt}}}}=_,yt=`${Wt}${Mt}`;var at={answers:Be,questions:Gt,replies:yn,likes:{create:async(F,U)=>{try{return await G().post(`${yt}/${encodeURIComponent(F)}${Ze}/${encodeURIComponent(U)}${zt}`)}catch(B){const V=await H(B);throw new Error(V)}},remove:async(F,U)=>{try{return await G().delete(`${yt}/${encodeURIComponent(F)}${Ze}/${encodeURIComponent(U)}${zt}`)}catch(B){const V=await H(B);throw new Error(V)}}}};const{APIS:{FEATURES_API:{BASE_URL:vn,ENDPOINTS:{FLAGS:T}}}}=_,g=`${vn}${T}`;var E={flags:{read:async F=>{let U=null;try{const{data:B}=await G().get(`${g}/${encodeURIComponent(F)}`);B!=null&&B.name&&(B!=null&&B.featureState)&&(U=B)}catch(B){await H(B)}return U}}};const{APIS:{MANAGEMENT_API:{BASE_URL:C,ENDPOINTS:{ACCOUNTS:M}}}}=_;var j={create:async F=>{try{await G().post(`${C}${M}`,F)}catch(U){throw await H(U),U}},read:async F=>{let U=null;try{({data:U}=await G().get(`${C}${M}/${encodeURIComponent(F)}`))}catch(B){await H(B)}return U},update:async(F,U)=>{try{await G().put(`${C}${M}/${encodeURIComponent(F)}`,U)}catch(B){throw await H(B),B}}};const{APIS:{MANAGEMENT_API:{BASE_URL:z,ENDPOINTS:{BULK_ENROLMENTS:me}}}}=_;var Ce={create:async F=>{try{await G().post(`${z}${me}`,F)}catch(U){throw await H(U),U}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Re,ENDPOINTS:{EVENT_REGISTRATIONS:Pe}}}}=_;var Ee={create:async F=>{try{await G().post(`${Re}${Pe}`,F)}catch(U){const B=await H(U);throw new Error(B)}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Ct,ENDPOINTS:{LOGINS:Hr,LOGIN_PASSWORDLESS:En}}}}=_,wr=`${Ct}${Hr}`;var _n={accounts:j,bulkEnrolments:Ce,eventRegistrations:Ee,passwordless:{update:async F=>{try{await G().put(`${wr}/${encodeURIComponent(F)}${En}`)}catch(U){throw await H(U),U}}}};const{APIS:{PAYMENTS_API:{BASE_URL_V2:Sr,ENDPOINTS:{PRODUCTS:bn}}}}=_,wn=`${Sr}${bn}`;var Sn={products:{list:async F=>{let U=[],B=F?{params:F}:{params:{}};try{const{data:V}=await G().get(wn,B);V&&V.length&&(U=V)}catch(V){await H(V)}return U}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:tr,ENDPOINTS:{BULK_ENROLMENTS:ci}}}}=_;var Qt={list:async F=>{let U=[];try{const{data:B}=await G().get(`${tr}${ci}`,{params:F});B&&B.length&&(U=B)}catch(B){await H(B)}return U}},go=d(25);const{OK:yo,MULTIPLE_CHOICES:vo,NOT_FOUND:li,FORBIDDEN:Tn}=go.StatusCodes,We=F=>F>=yo&&F<vo||F===Tn||F===li,{APIS:{PEOPLE_API:{BASE_URL_V2:xn,ENDPOINTS:{USERS:On}}}}=_,Tr=async F=>{let U=null;try{const{data:B}=await G().get(`${xn}${On}/${encodeURIComponent(F)}`,{validateStatus:We});B&&B.id&&(U=B)}catch(B){await H(B)}return U},fi=async F=>{let U=[];try{if(F&&F.length<2)throw new Error("users list method requires at least two ids");const B=F.map(re=>`ids=${encodeURIComponent(re)}`).join("&"),V=await G().get(`${xn}${On}?${B}`,{validateStatus:We});V&&V.length&&(U=V)}catch(B){await H(B)}return U};var Eo={read:Tr,update:async(F,U)=>{let B=!1;try{const{data:V}=await G().put(`${xn}${On}/${encodeURIComponent(F)}`,U);B=!(!V||!V.id)}catch(V){await H(V)}return B},list:fi};const{APIS:{PEOPLE_API:{BASE_URL_V2:et,ENDPOINTS:{USERS:_o,USER_LIKES:bo}}},USERS:{MYSELF:wo}}=_,So=`${et}${_o}/${wo}${bo}`,An=async F=>{let U=[],B=F?{params:F}:{params:{}};try{const{data:V}=await G().get(So,B);V&&V.length&&(U=V)}catch(V){await H(V)}return U};var ht={list:An},To={authors:{readQuestionAuthors:async(F,U,B)=>{try{if(F.author=await Tr(F.authorId),F.answers&&F.answers.length&&!B.ignoreAnswersAuthors){F.answers.sort((re,Ne)=>new Date(Ne.updatedAt)-new Date(re.updatedAt)),F.totalAnswers=F.answers.length;let V=F.answers;if(B.limit&&B.pageNumber){const re=B.limit*(B.pageNumber-1);V=F.answers.slice(re,re+B.limit)}for(let re of V){re.author=re.authorId&&await Tr(re.authorId)||{};const[Ne]=U?await An({contentType:_.CONTENTFUL.ANSWERS.TYPE,contentSlug:re.slug}):[null];re.userLiked=!!Ne}F.answers=V}else F.answers||(F.answers=[]);return F}catch(V){throw await H(V),new Error(`Cannot read authors for question: ${V.message}`)}},readAuthors:async(F=[])=>{let U=[];try{if(Array.isArray(F)===!1)throw new Error("authorIds is not an array!");if(F&&F.length===1){const B=await Tr(F[0]);B&&U.push(B)}else if(F&&F.length>1){const B=await fi(F);B&&B.length>0&&(U=B)}}catch(B){throw await H(B),new Error(`Cannot read authors: ${B.message}`)}return U}}};const{APIS:{PEOPLE_API:{BASE_URL:xo,ENDPOINTS:{REGISTRATIONS:Oo}}}}=_;var Ao={list:async F=>{let U=[];try{const{data:B}=await G().get(`${xo}${Oo}`,{params:F});B&&B.length&&(U=B)}catch(B){await H(B)}return U}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Co,ENDPOINTS:{USERS:qr,USER_COURSES:hi}}},USERS:{MYSELF:Gr}}=_,xt=`${Co}${qr}/${Gr}${hi}`;var Cn={create:async F=>{try{await G().post(xt,F)}catch(U){await H(U)}},list:async F=>{let U=[],B=F?{params:F}:{params:{}};try{const{data:V}=await G().get(xt,B);V&&V.length&&(U=V)}catch(V){await H(V)}return U},update:async(F,U)=>{try{await G().put(`${xt}/${F}`,U)}catch(B){await H(B)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Ro,ENDPOINTS:{USERS:Po,USER_EVENTS:No}}},USERS:{MYSELF:Io}}=_,Lo=`${Ro}${Po}/${Io}${No}`;var Vr={list:async F=>{let U=[],B=F?{params:F}:{params:{}};try{const{data:V}=await G().get(Lo,B);V&&V.length&&(U=V)}catch(V){await H(V)}return U}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Rn,ENDPOINTS:{USERS:xr,USER_LESSONS:di}}},USERS:{MYSELF:pi}}=_,mi=`${Rn}${xr}/${pi}${di}`;var ko={create:async F=>{let U=null;try{U=await G().post(mi,F)}catch(B){await H(B)}return U},list:async F=>{let U=[],B=F?{params:F}:{params:{}};try{const{data:V}=await G().get(mi,B);V&&V.length&&(U=V)}catch(V){await H(V)}return U}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Mo,ENDPOINTS:{USERS:Fo,USER_PRODUCTS:Pn}}},USERS:{MYSELF:Bo}}=_,Nn=`${Mo}${Fo}/${Bo}${Pn}`;var Or={create:async F=>{let U=null;try{U=await G().post(Nn,F)}catch(B){await H(B)}return U},list:async F=>{let U=[],B=F?{params:F}:{params:{}};try{const{data:V}=await G().get(Nn,B);V&&V.length&&(U=V)}catch(V){await H(V)}return U},update:async(F,U)=>{try{await G().put(`${Nn}/${F}`,U)}catch(B){await H(B)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Rt,ENDPOINTS:{USERS:Yt,USER_RATINGS:Kt}}},USERS:{MYSELF:Do}}=_,Pt=`${Rt}${Yt}/${Do}${Kt}`;var rr={bulkEnrolments:Qt,handlers:To,registrations:Ao,users:Eo,userCourses:Cn,userEvents:Vr,userLessons:ko,userLikes:ht,userProducts:Or,userRatings:{create:async F=>{let U=null;try{const{data:B}=await G().post(Pt,F);B!=null&&B.id&&(U=B)}catch(B){await H(B)}return U},update:async(F,U)=>{try{await G().put(`${Pt}/${F}`,U)}catch(B){await H(B)}}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:Uo,ENDPOINTS:{ENQUIRY_EMAILS:$o}}}}=_;var jo={create:async F=>{let U=null;try{const{data:B}=await G().post(`${Uo}${$o}`,F);B&&(U=B)}catch(B){await H(B)}return U}},gi={forms:{sendEnquiryEmails:async F=>{let U=null;try{const{emailIds:B}=k;U=await zr.emails.create({...B,...F})}catch(B){await H(B)}return U}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:ut,ENDPOINTS:{USERS:yi,USER_PROPERTIES:vi}}},USERS:{MYSELF:Wr}}=_;var zr={emails:jo,handlers:gi,userProperties:{update:async(F,U)=>{try{await G().put(`${ut}${yi}/${Wr}${vi}/${F}`,U)}catch(B){await H(B)}}}},Qr=d(130);const{APIS:{SEARCH_API:{BASE_URL:Ho,ENDPOINTS:{SEARCH:Ei}}}}=_,In=`${Ho}${Ei}`;var _i={ask:async F=>{try{let U=null;const{data:B}=await G().get(In,{params:{question:F}});return B!=null&&B.answer&&(B!=null&&B.references)&&(B!=null&&B.version)&&(U=B),U}catch(U){const B=await H(U);throw new Error(B)}},stream:(F,U,B)=>{const V=(0,Qr.io)(void 0,{path:"/api/search-api/web-sockets"});function re(){V.emit("search",{question:F})}function Ne(Ge){B(Ge),$e(),V.disconnect()}function $e(){V.off("connect",re),V.off("update",U),V.off("result",Ne)}return V.on("connect",re),V.on("update",U),V.on("result",Ne),$e}};const{CONTENTFUL:Ft}=_,{CARD_TYPES:Ln}=Ft.CAROUSELS;var wi={read:async(F,U)=>{try{if(!U||!U.sys||!U.sys.id)throw new Error("Invalid link to card");if(!F||!Ln[F])throw new Error("Unsupported card content type");const{INCLUDE:B,SELECT:V}=Ln[F];return await(0,f.getEntry)({content_type:F,"sys.id":U.sys.id,include:B,select:V},{assetDetails:!0})}catch(B){throw await H(B),new Error(`Cannot read carousel card: ${B.message}`)}}};const{CONTENTFUL:qo}=_,{INCLUDE:y,SELECT:O,TYPE:I}=qo.EDITORIAL_PAGES;var W={read:async F=>{try{return await(0,f.getEntry)({content_type:I,"fields.slug":F,include:y,select:O})}catch(U){throw await H(U),new Error(`Cannot read editorial page: ${U.message}`)}}};const{CONTENTFUL:ge}=_,{TYPE:le,ORDER:_e,SELECT:be,SKIP:qe,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(U){throw await H(U),new Error(`Cannot read question: ${U.message}`)}},list:async(F={})=>{try{return await(0,f.getEntries)({content_type:le,include:tt,limit:Ae,order:_e,select:be,skip:qe,...F})}catch(U){throw await H(U),new Error(`Cannot list questions: ${U.message}`)}}},Ve=async(F,U,B={ignoreAnswersAuthors:!1})=>{try{let V={};return V=await ct.read(F),V=await rr.handlers.authors.readQuestionAuthors(V,U,B),V}catch(V){throw await H(V),new Error(`Cannot build question: ${V.message}`)}};const{ARTICLES:{TYPE:rt},COURSES:{TYPE:Qe},EVENTS:{TYPE:nr},LISTS:{TYPE:Xt},QUESTIONS:{TYPE:Ar},LEARNING_HUB:{TYPE:na}}=_.CONTENTFUL,ir=F=>F&&F.url?(Object.assign(F,{aspect:"responsiveCard",query:"q=90&fit=fill"}),F):null,Yr={[rt]:async F=>{const{authorIds:U,authorTag:B,image:V,publishedDate:re,readingTime:Ne,slug:$e,title:Ge}=F,Nt=await rr.handlers.authors.readAuthors(U),or=Nt&&Nt.length?Nt:B?[B]:null;return{banner:ir(V),contributors:or,publishedDate:re,readingTime:Ne,slug:$e,title:Ge}},[Qe]:async(F,U)=>{const{banner:B,freeCourse:V,partnershipDetails:re,slug:Ne,title:$e,registered:Ge}=F,Nt={banner:ir(B),slug:Ne,title:$e,pill:V?"free":"premium",registered:!!Ge};if(re){const{partners:or}=re;Nt.partner=or&&or.length&&re.partners[0]}if(Ge===void 0&&U){const[or]=await rr.userProducts.list({courseSlug:Ne,isEnrolled:!0,scope:"active"});Nt.registered=!!or}return Nt},[nr]:async(F,U)=>{const{bannerImage:B,defaultStartDate:V,isEventOngoing:re,slug:Ne,speakers:$e,title:Ge,registered:Nt}=F,or=new Date(V),vE=!!or&&or<new Date;if($e&&$e.length)for(const ia of $e)ia.image=(Ru=ia.image)&&Ru.url?`${Ru.url}?w=100&h=100&fit=thumb&f=center`:null;var Ru;const uh={banner:ir(B),dateHasPassed:vE,title:Ge,slug:Ne,isOngoingEvent:re,contributors:$e,startDate:or,registered:!!Nt};if(Nt===void 0&&U){const[ia]=await rr.userEvents.list({eventSlug:Ne});uh.registered=!!ia}return uh},[Xt]:async F=>{const{hero:U,slug:B,title:V}=F;return{banner:ir(U),slug:B,title:V}},[Ar]:async F=>{const{answers:U,authorId:B,createdAt:V,slug:re,title:Ne}=F;let $e=null;if(B){const Ge=await rr.users.read(B);Ge&&($e=Ge)}return{answers:U&&U.length?U.length:0,contributors:$e?[$e]:[],createdAt:V,slug:re,title:Ne}},[na]:F=>{const{bannerSection:U,customLabel:B,slug:V,title:re}=F;return{banner:ir(U.image),slug:V,title:re,customLabel:B}},people:F=>{const{id:U,name:B,jobTitle:V,location:re,image:Ne}=F;return{profile:Ne,slug:U,title:B,text:V,secondaryText:re}}};var dE=async({contentType:F,...U}={},B)=>{try{if(!Yr[F])throw new Error("Content type not supported");if(typeof Yr[F]!="function")throw new Error("No builder function for content type");return F!=="people"&&U.sys&&U.sys.type&&U.sys.type==="Link"&&(U=await wi.read(F,U)),{contentType:F,...await Yr[F](U,B)}}catch(V){throw await H(V),new Error(`Cannot build carousel card: ${V.message}`)}},pE=async(F,U,B={})=>{try{if(!F.replies||F.replies.length===0)return F.replies=[],F;F.replies.sort((re,Ne)=>new Date(re.createdAt)-new Date(Ne.createdAt)),F.totalReplies=F.totalReplies||F.replies.length;let V=F.replies;if(B.limit&&B.pageNumber){const re=B.limit*(B.pageNumber-1);V=F.replies.slice(re,re+B.limit)}for(const re of V){if(re.authorId===F.authorId){re.author=F.author,re.userLiked=!1;continue}re.author=re.authorId&&await Tr(re.authorId)||{};const[Ne]=U?await An({contentType:_.CONTENTFUL.REPLIES.TYPE,contentSlug:re.slug}):[null];re.userLiked=!!Ne}return F.replies=V,F}catch(V){throw await H(V),new Error(`Cannot build replies for answer: ${V.message}`)}},mE=d(408);const gE=F=>F&&mE.Buffer.from(F,"base64").toString("ascii");function yE({contentContext:F=null,errorsContext:U=null,gtmContext:B=null,origin:V}){try{const re=(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 Ge=null;const Nt=$e.match(b);return Nt?Ge=Nt[1].split(A)[0]:$e===w?Ge=S:$e.includes(v)&&(Ge=P),Ge||new Error(`Cannot select environment: No rule for website ${$e}`),Ge})(V);return F&&(0,f.setContext)(Object.assign({},F,{environment:re})),U&&(0,p.setContext)(Object.assign({},U,{environment:re})),B&&((0,m.setContext)(Object.assign({},B,{environment:re})),(0,m.setupGTM)()),(({environment:Ne})=>{const $e=(Ge=>{if(!Ge)throw new Error("Cannot map environment: Environment not defined");if(!R[Ge])throw new Error(`Cannot map environment: No mapping found for environment ${Ge}`);return R[Ge]})(Ne);k.emailIds=L[$e]})(Object.assign({},{environment:re})),re}catch(re){console.warn(`Cannot load SDK: ${re.message}`)}}}(),h}()})})(ng);var MT=ng.exports;const ps={Off:"off",On:"on",Cookie:"cookie"},FT=e=>{const[t]=rg(),[r,n]=$.useState(null),[o,i]=$.useState(!1),[a,s]=$.useState(ps.Off);return $.useEffect(()=>{e&&MT.features.flags.read(e).then(c=>{s(c.featureState),n(null)}).catch(c=>{s(ps.Off),n(c)})},[e]),$.useEffect(()=>{switch(a){case ps.Off:i(!1);break;case ps.On:i(!0);break;case ps.Cookie:i(!!t[`feature-${e}`]);break;default:i(!1)}},[a,t]),{isFeatureActive:o,error:r}};function BT(e,t,r){var n=this,o=$.useRef(null),i=$.useRef(0),a=$.useRef(null),s=$.useRef([]),c=$.useRef(),l=$.useRef(),u=$.useRef(e),d=$.useRef(!0);$.useEffect(function(){u.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 w=$.useMemo(function(){var v=function(L){var k=s.current,q=c.current;return s.current=c.current=null,i.current=L,l.current=u.current.apply(q,k)},b=function(L,k){h&&cancelAnimationFrame(a.current),a.current=h?requestAnimationFrame(L):setTimeout(L,k)},A=function(L){if(!d.current)return!1;var k=L-o.current;return!o.current||k>=t||k<0||m&&L-i.current>=_},S=function(L){return a.current=null,p&&s.current?v(L):(s.current=c.current=null,l.current)},P=function L(){var k=Date.now();if(A(k))return S(k);if(d.current){var q=t-(k-o.current),G=m?Math.min(q,_-(k-i.current)):q;b(L,G)}},R=function(){var L=Date.now(),k=A(L);if(s.current=[].slice.call(arguments),c.current=n,o.current=L,k){if(!a.current&&d.current)return i.current=o.current,b(P,t),f?v(o.current):l.current;if(m)return b(P,t),v(o.current)}return a.current||b(P,t),l.current};return R.cancel=function(){a.current&&(h?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,s.current=o.current=c.current=a.current=null},R.isPending=function(){return!!a.current},R.flush=function(){return a.current?S(Date.now()):l.current},R},[f,m,t,_,p,h]);return w}function Ky(e,t,r){var n=r===void 0?{}:r,o=n.leading,i=n.trailing;return BT(e,t,{maxWait:t,leading:o===void 0||o,trailing:i===void 0||i})}let Yc;const Js=(e=!0,t=!1)=>{if(!e)return;const[r,n]=$.useState(0)||[!1,()=>{}];$.useEffect(()=>(i(),window.addEventListener("resize",a),()=>{clearTimeout(Yc),a.flush(),window.removeEventListener("resize",a)}),[]);const o=()=>window.innerWidth,i=()=>{n(o())},a=Ky(()=>{o()!==r&&(t&&(clearTimeout(Yc),document.body.classList.add("is-resizing"),Yc=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),i())},500,{leading:!0});return r},Xy=({scrollPosition:e=0,offset:t={down:0,up:10},callbacks:{scrollDown:r=()=>{},scrollUp:n=()=>{}}})=>{if(!window)return;const[o,i]=$.useState({current:0,past:0})||[!1,()=>{}],[a,s]=$.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];$.useEffect(()=>(c(),window.addEventListener("scroll",l),()=>{l.flush(),window.removeEventListener("scroll",l)}),[]);const c=()=>{const u=window.scrollY,d=o.current,h=u-d,f=h>0?"down":"up";if(i({current:u,past:d}),f==="down"){u>=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=Ky(()=>{c()},250);return o},DT=(e=[],t=!0)=>{e=Array.isArray(e)?e:[e];const r=$.useRef(!1);ri(()=>{if(window&&window.location&&window.location.hash){if(r.current)return;const n=window.location.hash.replace("#",""),o=document.getElementById(n);o&&(o.scrollIntoView(t?{behavior:"smooth"}:null),r.current=!0)}},e)};var Wa={exports:{}};Wa.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",u="[object Function]",d="[object GeneratorFunction]",h="[object Map]",f="[object Number]",p="[object Object]",m="[object Promise]",_="[object RegExp]",w="[object Set]",v="[object String]",b="[object Symbol]",A="[object WeakMap]",S="[object ArrayBuffer]",P="[object DataView]",R="[object Float32Array]",L="[object Float64Array]",k="[object Int8Array]",q="[object Int16Array]",G="[object Int32Array]",H="[object Uint8Array]",Y="[object Uint8ClampedArray]",ie="[object Uint16Array]",K="[object Uint32Array]",D=/[\\^$.*+?()[\]{}|]/g,Q=/\w*$/,ee=/^\[object .+?Constructor\]$/,he=/^(?:0|[1-9]\d*)$/,J={};J[i]=J[a]=J[S]=J[P]=J[s]=J[c]=J[R]=J[L]=J[k]=J[q]=J[G]=J[h]=J[f]=J[p]=J[_]=J[w]=J[v]=J[b]=J[H]=J[Y]=J[ie]=J[K]=!0,J[l]=J[u]=J[A]=!1;var X=typeof de=="object"&&de&&de.Object===Object&&de,se=typeof self=="object"&&self&&self.Object===Object&&self,fe=X||se||Function("return this")(),He=t&&!t.nodeType&&t,te=He&&!0&&e&&!e.nodeType&&e,ae=te&&te.exports===He;function Be(y,O){return y.set(O[0],O[1]),y}function Ie(y,O){return y.add(O),y}function Tt(y,O){for(var I=-1,W=y?y.length:0;++I<W&&O(y[I],I,y)!==!1;);return y}function At(y,O){for(var I=-1,W=O.length,ge=y.length;++I<W;)y[ge+I]=O[I];return y}function Gt(y,O,I,W){var ge=-1,le=y?y.length:0;for(W&&le&&(I=y[++ge]);++ge<le;)I=O(I,y[ge],ge,y);return I}function oe(y,O){for(var I=-1,W=Array(y);++I<y;)W[I]=O(I);return W}function st(y,O){return y==null?void 0:y[O]}function Je(y){var O=!1;if(y!=null&&typeof y.toString!="function")try{O=!!(y+"")}catch{}return O}function Vt(y){var O=-1,I=Array(y.size);return y.forEach(function(W,ge){I[++O]=[ge,W]}),I}function br(y,O){return function(I){return y(O(I))}}function er(y){var O=-1,I=Array(y.size);return y.forEach(function(W){I[++O]=W}),I}var kt=Array.prototype,yn=Function.prototype,Wt=Object.prototype,Mt=fe["__core-js_shared__"],Ze=function(){var y=/[^.]+$/.exec(Mt&&Mt.keys&&Mt.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),zt=yn.toString,yt=Wt.hasOwnProperty,at=Wt.toString,vn=RegExp("^"+zt.call(yt).replace(D,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=ae?fe.Buffer:void 0,g=fe.Symbol,E=fe.Uint8Array,C=br(Object.getPrototypeOf,Object),M=Object.create,j=Wt.propertyIsEnumerable,z=kt.splice,me=Object.getOwnPropertySymbols,Ce=T?T.isBuffer:void 0,Re=br(Object.keys,Object),Pe=Rt(fe,"DataView"),Ee=Rt(fe,"Map"),Ct=Rt(fe,"Promise"),Hr=Rt(fe,"Set"),En=Rt(fe,"WeakMap"),wr=Rt(Object,"create"),_n=ut(Pe),Sr=ut(Ee),bn=ut(Ct),wn=ut(Hr),Sn=ut(En),tr=g?g.prototype:void 0,ci=tr?tr.valueOf:void 0;function Qt(y){var O=-1,I=y?y.length:0;for(this.clear();++O<I;){var W=y[O];this.set(W[0],W[1])}}function go(){this.__data__=wr?wr(null):{}}function yo(y){return this.has(y)&&delete this.__data__[y]}function vo(y){var O=this.__data__;if(wr){var I=O[y];return I===n?void 0:I}return yt.call(O,y)?O[y]:void 0}function li(y){var O=this.__data__;return wr?O[y]!==void 0:yt.call(O,y)}function Tn(y,O){var I=this.__data__;return I[y]=wr&&O===void 0?n:O,this}Qt.prototype.clear=go,Qt.prototype.delete=yo,Qt.prototype.get=vo,Qt.prototype.has=li,Qt.prototype.set=Tn;function We(y){var O=-1,I=y?y.length:0;for(this.clear();++O<I;){var W=y[O];this.set(W[0],W[1])}}function xn(){this.__data__=[]}function On(y){var O=this.__data__,I=Gr(O,y);if(I<0)return!1;var W=O.length-1;return I==W?O.pop():z.call(O,I,1),!0}function Tr(y){var O=this.__data__,I=Gr(O,y);return I<0?void 0:O[I][1]}function fi(y){return Gr(this.__data__,y)>-1}function Eo(y,O){var I=this.__data__,W=Gr(I,y);return W<0?I.push([y,O]):I[W][1]=O,this}We.prototype.clear=xn,We.prototype.delete=On,We.prototype.get=Tr,We.prototype.has=fi,We.prototype.set=Eo;function et(y){var O=-1,I=y?y.length:0;for(this.clear();++O<I;){var W=y[O];this.set(W[0],W[1])}}function _o(){this.__data__={hash:new Qt,map:new(Ee||We),string:new Qt}}function bo(y){return Or(this,y).delete(y)}function wo(y){return Or(this,y).get(y)}function So(y){return Or(this,y).has(y)}function An(y,O){return Or(this,y).set(y,O),this}et.prototype.clear=_o,et.prototype.delete=bo,et.prototype.get=wo,et.prototype.has=So,et.prototype.set=An;function ht(y){this.__data__=new We(y)}function To(){this.__data__=new We}function xo(y){return this.__data__.delete(y)}function Oo(y){return this.__data__.get(y)}function Ao(y){return this.__data__.has(y)}function Co(y,O){var I=this.__data__;if(I instanceof We){var W=I.__data__;if(!Ee||W.length<r-1)return W.push([y,O]),this;I=this.__data__=new et(W)}return I.set(y,O),this}ht.prototype.clear=To,ht.prototype.delete=xo,ht.prototype.get=Oo,ht.prototype.has=Ao,ht.prototype.set=Co;function qr(y,O){var I=zr(y)||Wr(y)?oe(y.length,String):[],W=I.length,ge=!!W;for(var le in y)(O||yt.call(y,le))&&!(ge&&(le=="length"||Uo(le,W)))&&I.push(le);return I}function hi(y,O,I){var W=y[O];(!(yt.call(y,O)&&vi(W,I))||I===void 0&&!(O in y))&&(y[O]=I)}function Gr(y,O){for(var I=y.length;I--;)if(vi(y[I][0],O))return I;return-1}function xt(y,O){return y&&Pn(O,bi(O),y)}function Cn(y,O,I,W,ge,le,_e){var be;if(W&&(be=le?W(y,ge,le,_e):W(y)),be!==void 0)return be;if(!Ft(y))return y;var qe=zr(y);if(qe){if(be=Do(y),!O)return Fo(y,be)}else{var Ae=Kt(y),tt=Ae==u||Ae==d;if(Ei(y))return Vr(y,O);if(Ae==p||Ae==i||tt&&!le){if(Je(y))return le?y:{};if(be=Pt(tt?{}:y),!O)return Bo(y,xt(be,y))}else{if(!J[Ae])return le?y:{};be=rr(y,Ae,Cn,O)}}_e||(_e=new ht);var ct=_e.get(y);if(ct)return ct;if(_e.set(y,be),!qe)var Ve=I?Nn(y):bi(y);return Tt(Ve||y,function(rt,Qe){Ve&&(Qe=rt,rt=y[Qe]),hi(be,Qe,Cn(rt,O,I,W,Qe,y,_e))}),be}function Ro(y){return Ft(y)?M(y):{}}function Po(y,O,I){var W=O(y);return zr(y)?W:At(W,I(y))}function No(y){return at.call(y)}function Io(y){if(!Ft(y)||jo(y))return!1;var O=In(y)||Je(y)?vn:ee;return O.test(ut(y))}function Lo(y){if(!gi(y))return Re(y);var O=[];for(var I in Object(y))yt.call(y,I)&&I!="constructor"&&O.push(I);return O}function Vr(y,O){if(O)return y.slice();var I=new y.constructor(y.length);return y.copy(I),I}function Rn(y){var O=new y.constructor(y.byteLength);return new E(O).set(new E(y)),O}function xr(y,O){var I=O?Rn(y.buffer):y.buffer;return new y.constructor(I,y.byteOffset,y.byteLength)}function di(y,O,I){var W=O?I(Vt(y),!0):Vt(y);return Gt(W,Be,new y.constructor)}function pi(y){var O=new y.constructor(y.source,Q.exec(y));return O.lastIndex=y.lastIndex,O}function mi(y,O,I){var W=O?I(er(y),!0):er(y);return Gt(W,Ie,new y.constructor)}function ko(y){return ci?Object(ci.call(y)):{}}function Mo(y,O){var I=O?Rn(y.buffer):y.buffer;return new y.constructor(I,y.byteOffset,y.length)}function Fo(y,O){var I=-1,W=y.length;for(O||(O=Array(W));++I<W;)O[I]=y[I];return O}function Pn(y,O,I,W){I||(I={});for(var ge=-1,le=O.length;++ge<le;){var _e=O[ge],be=W?W(I[_e],y[_e],_e,I,y):void 0;hi(I,_e,be===void 0?y[_e]:be)}return I}function Bo(y,O){return Pn(y,Yt(y),O)}function Nn(y){return Po(y,bi,Yt)}function Or(y,O){var I=y.__data__;return $o(O)?I[typeof O=="string"?"string":"hash"]:I.map}function Rt(y,O){var I=st(y,O);return Io(I)?I:void 0}var Yt=me?br(me,Object):wi,Kt=No;(Pe&&Kt(new Pe(new ArrayBuffer(1)))!=P||Ee&&Kt(new Ee)!=h||Ct&&Kt(Ct.resolve())!=m||Hr&&Kt(new Hr)!=w||En&&Kt(new En)!=A)&&(Kt=function(y){var O=at.call(y),I=O==p?y.constructor:void 0,W=I?ut(I):void 0;if(W)switch(W){case _n:return P;case Sr:return h;case bn:return m;case wn:return w;case Sn:return A}return O});function Do(y){var O=y.length,I=y.constructor(O);return O&&typeof y[0]=="string"&&yt.call(y,"index")&&(I.index=y.index,I.input=y.input),I}function Pt(y){return typeof y.constructor=="function"&&!gi(y)?Ro(C(y)):{}}function rr(y,O,I,W){var ge=y.constructor;switch(O){case S:return Rn(y);case s:case c:return new ge(+y);case P:return xr(y,W);case R:case L:case k:case q:case G:case H:case Y:case ie:case K:return Mo(y,W);case h:return di(y,W,I);case f:case v:return new ge(y);case _:return pi(y);case w:return mi(y,W,I);case b:return ko(y)}}function Uo(y,O){return O=O??o,!!O&&(typeof y=="number"||he.test(y))&&y>-1&&y%1==0&&y<O}function $o(y){var O=typeof y;return O=="string"||O=="number"||O=="symbol"||O=="boolean"?y!=="__proto__":y===null}function jo(y){return!!Ze&&Ze in y}function gi(y){var O=y&&y.constructor,I=typeof O=="function"&&O.prototype||Wt;return y===I}function ut(y){if(y!=null){try{return zt.call(y)}catch{}try{return y+""}catch{}}return""}function yi(y){return Cn(y,!0,!0)}function vi(y,O){return y===O||y!==y&&O!==O}function Wr(y){return Ho(y)&&yt.call(y,"callee")&&(!j.call(y,"callee")||at.call(y)==i)}var zr=Array.isArray;function Qr(y){return y!=null&&_i(y.length)&&!In(y)}function Ho(y){return Ln(y)&&Qr(y)}var Ei=Ce||qo;function In(y){var O=Ft(y)?at.call(y):"";return O==u||O==d}function _i(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=o}function Ft(y){var O=typeof y;return!!y&&(O=="object"||O=="function")}function Ln(y){return!!y&&typeof y=="object"}function bi(y){return Qr(y)?qr(y):Lo(y)}function wi(){return[]}function qo(){return!1}e.exports=yi})(Wa,Wa.exports);var UT=Wa.exports;const $T=vr(UT);var jT="Expected a function",Jy="__lodash_hash_undefined__",Zy=1/0,HT=9007199254740991,qT="[object Function]",GT="[object GeneratorFunction]",VT="[object Symbol]",WT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zT=/^\w*$/,QT=/^\./,YT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,KT=/[\\^$.*+?()[\]{}|]/g,XT=/\\(\\)?/g,JT=/^\[object .+?Constructor\]$/,ZT=/^(?:0|[1-9]\d*)$/,ex=typeof de=="object"&&de&&de.Object===Object&&de,tx=typeof self=="object"&&self&&self.Object===Object&&self,If=ex||tx||Function("return this")();function rx(e,t){return e==null?void 0:e[t]}function nx(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var ix=Array.prototype,ox=Function.prototype,ev=Object.prototype,Kc=If["__core-js_shared__"],$p=function(){var e=/[^.]+$/.exec(Kc&&Kc.keys&&Kc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),tv=ox.toString,mu=ev.hasOwnProperty,rv=ev.toString,sx=RegExp("^"+tv.call(mu).replace(KT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jp=If.Symbol,ax=ix.splice,ux=nv(If,"Map"),Ts=nv(Object,"create"),Hp=jp?jp.prototype:void 0,qp=Hp?Hp.toString:void 0;function ni(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 cx(){this.__data__=Ts?Ts(null):{}}function lx(e){return this.has(e)&&delete this.__data__[e]}function fx(e){var t=this.__data__;if(Ts){var r=t[e];return r===Jy?void 0:r}return mu.call(t,e)?t[e]:void 0}function hx(e){var t=this.__data__;return Ts?t[e]!==void 0:mu.call(t,e)}function dx(e,t){var r=this.__data__;return r[e]=Ts&&t===void 0?Jy:t,this}ni.prototype.clear=cx;ni.prototype.delete=lx;ni.prototype.get=fx;ni.prototype.has=hx;ni.prototype.set=dx;function lo(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 px(){this.__data__=[]}function mx(e){var t=this.__data__,r=gu(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ax.call(t,r,1),!0}function gx(e){var t=this.__data__,r=gu(t,e);return r<0?void 0:t[r][1]}function yx(e){return gu(this.__data__,e)>-1}function vx(e,t){var r=this.__data__,n=gu(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}lo.prototype.clear=px;lo.prototype.delete=mx;lo.prototype.get=gx;lo.prototype.has=yx;lo.prototype.set=vx;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 Ex(){this.__data__={hash:new ni,map:new(ux||lo),string:new ni}}function _x(e){return yu(this,e).delete(e)}function bx(e){return yu(this,e).get(e)}function wx(e){return yu(this,e).has(e)}function Sx(e,t){return yu(this,e).set(e,t),this}si.prototype.clear=Ex;si.prototype.delete=_x;si.prototype.get=bx;si.prototype.has=wx;si.prototype.set=Sx;function Tx(e,t,r){var n=e[t];(!(mu.call(e,t)&&iv(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function gu(e,t){for(var r=e.length;r--;)if(iv(e[r][0],t))return r;return-1}function xx(e){if(!za(e)||Ix(e))return!1;var t=Fx(e)||nx(e)?sx:JT;return t.test(Mx(e))}function Ox(e,t,r,n){if(!za(e))return e;t=Px(t,e)?[t]:Cx(t);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var c=kx(t[o]),l=r;if(o!=a){var u=s[c];l=n?n(u,c,s):void 0,l===void 0&&(l=za(u)?u:Rx(t[o+1])?[]:{})}Tx(s,c,l),s=s[c]}return e}function Ax(e){if(typeof e=="string")return e;if(kf(e))return qp?qp.call(e):"";var t=e+"";return t=="0"&&1/e==-Zy?"-0":t}function Cx(e){return ov(e)?e:Lx(e)}function yu(e,t){var r=e.__data__;return Nx(t)?r[typeof t=="string"?"string":"hash"]:r.map}function nv(e,t){var r=rx(e,t);return xx(r)?r:void 0}function Rx(e,t){return t=t??HT,!!t&&(typeof e=="number"||ZT.test(e))&&e>-1&&e%1==0&&e<t}function Px(e,t){if(ov(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||kf(e)?!0:zT.test(e)||!WT.test(e)||t!=null&&e in Object(t)}function Nx(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ix(e){return!!$p&&$p in e}var Lx=Lf(function(e){e=Dx(e);var t=[];return QT.test(e)&&t.push(""),e.replace(YT,function(r,n,o,i){t.push(o?i.replace(XT,"$1"):n||r)}),t});function kx(e){if(typeof e=="string"||kf(e))return e;var t=e+"";return t=="0"&&1/e==-Zy?"-0":t}function Mx(e){if(e!=null){try{return tv.call(e)}catch{}try{return e+""}catch{}}return""}function Lf(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(jT);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new(Lf.Cache||si),r}Lf.Cache=si;function iv(e,t){return e===t||e!==e&&t!==t}var ov=Array.isArray;function Fx(e){var t=za(e)?rv.call(e):"";return t==qT||t==GT}function za(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Bx(e){return!!e&&typeof e=="object"}function kf(e){return typeof e=="symbol"||Bx(e)&&rv.call(e)==VT}function Dx(e){return e==null?"":Ax(e)}function Ux(e,t,r){return e==null?e:Ox(e,t,r)}var $x=Ux;const jx=vr($x),Hx=(e,t)=>{Array.isArray(t)||(t=[t]);const r=$T(e);return t.forEach(({type:n,value:o})=>{jx(r,n,o)}),r},sv=e=>{const t=[];return e.forEach(r=>{const n=parseInt(r);isNaN(n)||t.push(n)}),t.sort((r,n)=>r-n)},av=(e,t,r)=>{let n=r.mobile;for(const o in t){const i=parseInt(String(t[o]));if(e>=i)n=r[i];else if(e<i)break}return n},qx=(e,t="en")=>new Date(e).toLocaleString(t,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),Gx=e=>{let i;try{i=new Date().getTime()-new Date(e).getTime()}catch{return""}const a=i/36e5,s=Math.floor(i/864e5);if(s<1)return a<1?{path:"now"}:{path:"hours",number:Math.floor(a)};if(s<7)return{path:"days",number:s};const c=Math.floor(s/7);return c<=52?{path:"weeks",number:c}:{path:"years",number:Math.floor(s/365)}},Vx=e=>new Promise(t=>setTimeout(t,e)),Mf={apolitical:"Apolitical",breadcrumbs_label:"Go back to:",breadcrumbs_currentPage:"Current page:",card_bootcamp:"Email boot camp",card_ended:"Ended",card_registered:"Registered",card_answers:"{number, plural, =0 {0 answers} one {# answer} other {# answers}}",card_time_ago:"{time} ago",card_time_read:"{time} min read",card_watch:"Watch recording",card_cta_people:"View profile",collapsibleSection_summary:"Find out more",communityDetails_members:"Members",communityDetails_viewAll:"View all",communityDetails_invite:"Invite colleagues",contactFooter_title:"Contact us",contactFooter_text:"We're always open to new ideas, so please reach out to see how we can collaborate.",contactFooter_phone:"+44 203 608 2241",contactFooter_email:"hello@apolitical.co",contactForm_name:"Name",contactForm_email:"Email address",contactForm_organisation:"Government department or organisation",contactForm_interests:"I'm interested in",contactForm_interests_publishingCourse:"Publishing or creating a course",contactForm_interests_buyingCourse:"Buying courses for my team",contactForm_interests_learningExperience:"Customised learning experiences",contactForm_interests_somethingElse:"Something else",contactForm_message:"Message",cookieBanner_title:"Cookies and your privacy",cookieBanner_text:"We take your trust and privacy very seriously. Apolitical uses safe cookies (small files on your device) to run the site. You can reject non-essential cookies, but some site features may not work without them.",cookieBanner_buttons_settings:"Change my settings",cookieBanner_buttons_reject:"Reject all",cookieBanner_buttons_accept:"Accept all",dates_now:"now",dates_hours:"{number}h",dates_days:"{number}d",dates_weeks:"{number}w",dates_years:"{number}y",discussion_action_answer:"answer",discussion_action_comment:"comment",discussion_action_post:"post",discussion_action_response:"response",discussion_action_reply:"reply",discussion_action_question:"question",discussion_answer_likes:"{count, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_answer_likes_like:"Like this answer",discussion_answer_likes_unlike:"Unlike answer",discussion_edited:"Edited",discussion_delete_title:"Delete {action}",discussion_delete_text:"<p>Are you sure you want to delete your {action}?</p><p>This can't be undone.</p>",discussion_delete_cancel:"Cancel",discussion_delete_delete:"Delete",discussion_delete_error:"We are unable to delete your {action} at the moment. Please try again later or contact us if problem persists.",discussion_reply:"Reply",discussion_reply_likes:"{count, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_reply_likes_like:"Like this reply",discussion_reply_likes_unlike:"Unlike reply",discussion_report_subject:"Report a post on Apolitical",discussion_report_body:`I'd like to report the {contentType} <{contentSlug}> at {contentUrl}.
62
+
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_alreadyExists:"This {action} already exists.",discussion_form_title_question:"Start a conversation",discussion_form_placeholder_question:"Ask your question here",discussion_form_explainer_question:"Unsure what you can post? See our <a>community guidelines</a>.",discussion_likes:"{number, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_likes_short:"{number}",discussion_moreMenu_edit:"Edit",discussion_moreMenu_delete:"Delete",discussion_moreMenu_report:"Report",discussion_comments_screenReader:"See {count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_comments:"{count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_responses_answer:"Answers",discussion_responses_comment:"Comments",discussion_responses_title:"{action} ({count})",discussion_responses_empty:"Be the first to respond",discussion_responses_empty_answer:"Be the first to answer this question",discussion_thread_show:"Show {count, plural, =0 {replies} one {# reply} other {# replies}}",discussion_thread_hide:"Hide replies",emailHelperTextBox_fallback_title:"Who can join",emailHelperTextBox_fallback_text:"Apolitical is a private community for public servants and policymakers.",emailHelperTextBox_default_title:"Who can join",emailHelperTextBox_default_text:"Apolitical is a private community for public servants and policymakers. <link>Learn more</link>.",emailHelperTextBox_autoApproved_title:"Email check",emailHelperTextBox_autoApproved_text:"Great! Looks like you are using a **government email domain we recognise.** You will be **auto-approved** once you sign up.",emailHelperTextBox_unrecognisedEmail_title:"Not a recognised government email",emailHelperTextBox_unrecognisedEmail_text:"To confirm you work in government or policy, please add more details below. <link>Learn more</link>.",emailHelperTextBox_pendingApproval_title:"Email is pending approval",emailHelperTextBox_pendingApproval_text:"Looks like this email has been used to sign up to Apolitical before, but <strong>we have not yet approved it.</strong> If you cannot wait to join, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_emailUnverified_title:"Hello again!",emailHelperTextBox_emailUnverified_text:"It looks like you're already an Apolitical member. To access your account, please verify your email address. <link>Click here to get a verification code sent to your email</link>.",emailHelperTextBox_emailAlreadyExists_title:"Email is already registered",emailHelperTextBox_emailAlreadyExists_text:"Looks like this email has been used to sign up to Apolitical before, try <link>logging in</link> instead. If you're still having issues, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_error_verificationFailedToSend_title:"Verification code failed to send",emailHelperTextBox_error_verificationFailedToSend_text:"Error details: <em>{error}</em>{br}<link>Click here to try again</link>.{br}If you continue to have problems, contact us at <mail>concierge@apolitical.co</mail>",emailHelperTextBox_error_noFunction:"Cannot resend verification code.",filters_all:"Show all",filters_disabled:"{name} - no results",footer_platform:"Platform",footer_platform_events:"Events",footer_platform_courses:"Courses",footer_platform_qanda:"Q&A",footer_platform_articles:"Articles",footer_community:"Community",footer_community_support:"Support FAQ",footer_community_post:"Post on Apolitical",footer_community_join:"Who can join",footer_community_guidelines:"Guidelines & values",footer_company:"Company",footer_company_story:"Our story",footer_company_team:"Meet our team",footer_company_careers:"Careers",footer_company_partner:"Partner with us",footer_company_contact:"Get in touch",footer_legal:"Legal",footer_legal_privacy:"Privacy policy",footer_legal_terms:"Terms & conditions",footer_legal_cookie:"Cookie policy",footer_legal_accessibility:"Accessibility statement",footer_legal_dataProtection:"Data protection officer",footer_legal_euDataProtection:"EU data protection officer",footer_contact:"Contact",footer_contact_correspondence:"Correspondence address",footer_contact_correspondence_address:"251 Southwark Bridge Road{br}London, SE1 6FL{br}United Kingdom",footer_contact_registered:"Registered address",footer_contact_registered_address:"20–22 Wenlock Road{br}London, N1 7GU{br}United Kingdom",footer_contact_berlin:"Berlin address",footer_contact_berlin_address:"Torstraße 220{br}10115 Berlin{br}Germany",footer_contact_support:"For platform support",footer_contact_business:"For business inquiries",footer_social_linkedin:"LinkedIn",footer_social_twitter:"Twitter",footer_social_facebook:"Facebook",footer_copyright:"Copyright © {currentYear} Apolitical Group Limited",form_fieldWrapper_required:"required",form_fieldWrapper_characterLimit:"Character limit:",form_error_generalError:"Sorry, something has gone. Please refresh the page and try again.",form_error_required:"Please fill in this required field",form_error_numbers:"Numbers are not allowed in this text field",form_error_email:"Please enter a valid email address",form_error_url:"Please enter a valid URL",form_submit:"Submit",form_submitting:"Submitting form...",form_submitted:"Submitted",header_skip:"Skip to main content",header_search_show:"Show search bar",header_search_hide:"Close search bar",header_menu_show:"Show navigation",header_menu_hide:"Close navigation",header_home_loggedOut:"Home",header_home_loggedIn:"My Home",header_topics:"Topics",header_topics_explore:"Explore",header_topics_explore_events:"Events",header_topics_explore_courses:"Courses","header_topics_explore_q-and-a":"Q&A",header_topics_explore_articles:"Articles",header_topics_topics:"Topics",header_topics_topics_climate:"Climate","header_topics_topics_cities-and-local-government":"Cities and local government","header_topics_topics_digital-and-data":"Digital and data",header_topics_topics_education:"Education","header_topics_topics_equity-justice-and-inclusion":"Equity, justice and inclusion","header_topics_topics_health-and-social-care":"Health and social care",header_topics_topics_innovation:"Innovation","header_topics_topics_leadership-and-skills":"Leadership and skills","header_topics_topics_life-in-government":"Life in government",header_topics_topics_policymaking:"Policymaking","header_topics_topics_transport-and-infrastructure":"Transport and infrastructure","header_topics_topics_work-and-the-economy":"Work and the economy",header_partners:"For partners",header_account:"My account",header_account_show:"Show account menu",header_account_hide:"Close account menu",header_account_profile:"My profile",header_account_settings:"Settings & privacy","header_account_log-out":"Log out",header_buttons_login:"Log in",header_buttons_signup:"Sign up",hideShowTextBox_hide:"View less",hideShowTextBox_show:"View more",joinCommunityButton:"Join community",joinCommunityButton_short:"Join",joinCommunityButton_joining:"Joining...",joinCommunityButton_member:"Member",joinCommunityButton_member_aria:"Leave community",joinCommunityButton_leave:"Leave",joinCommunityButton_leaving:"Leaving...",loadMore_button:"Load more",loadMore_endOfFeed:"You're all caught up",loadMore_error:"We're having trouble loading more content. Please refresh the page or try again later.",loadingBlock_loading:"Loading...",loadingBlock_almostDone:"Almost done...",loadingBlock_complete:"Complete!",markdown_collapsibleSection_summary:"Resources",markdown_skip_video:"Skip past video",markdown_skip_padlet:"Skip past interactive board",markdown_skip_poll:"Skip past poll",markdown_skip:"Skip to next section",markdown_iframe_title:"Course information",markdown_iframe_video:"Video",markdown_iframe_padlet:"Interactive board",markdown_iframe_poll:"Poll",member_apolitical:"Apolitical",member_community:"Community post",membersList:"Members",membersList_admin:"Admin",moreMenu:"See more options",overlay_close:"Close",pageLayout_error:"An error occurred while rendering this page. Please refresh the page or try again later.",passwordRules_intro:"We advise you not to use your name or email in your password.",passwordRules_rule_label:"Password",passwordRules_rule_8Characters:"must be longer than 8 characters",passwordRules_rule_numberSymbol:"must include a number and a symbol",passwordRules_rule_lowercaseUppercase:"must include both lower and upper case characters",passwordRules_notMet:"Your password does not meet this requirement",progressBar:"{number}% loaded",ratings_text:"Rate answer",ratings_stars:"{number} out of {total}",ratings_low:"this is incorrect or confusing",ratings_high:"this is a fantastic answer",ratings_success:"Thank you!",search_label:"Search for:",search_placeholder:"Ask Apolitical",search_clear:"Clear search",search_cta:"Search",signup_title:"Sign up",signup_full_name:"Full name",signup_full_name_placeholder:"Lionel Messi",signup_email_address:"Work email",signup_email_address_placeholder:"lionel.messi@argentina.gov",signup_job_title:"Job title",signup_job_title_placeholder:"e.g. Senior Policy Advisor",signup_organization:"Organisation",signup_organization_placeholder:"e.g. Department of Justice",signup_url:"Link to official government bio / LinkedIn <small>(optional)</small>",signup_url_placeholder:"https://organisation.com/bio",signup_expectation:"What do you want to know<small>Optional, but we will use your response to build the session!</small>",signup_expectation_placeholder:"What do you want to know?",signup_terms:"I accept Apolitical's <terms>Terms of Service</terms>, <privacy>Privacy Policy</privacy> and that I'll get essential emails for my use of Apolitical",signup_error:"We're really sorry, but we've had a problem trying to sign you up. This could be an issue with our system, so we suggest you try again later.",signup_button_join:"Join for free",signup_button_login:"Log in",signup_submitting:"Submitting form...",signup_success_title:"Thank you for applying to join Apolitical!",signup_success_text:"<p>Once we've vetted your application, you'll get a secure login link to help you get started.</p><p>Please note that trust is everything to our community, so you can't login until your identity has been verified.</p>",sharedLinks_copy_text:"Copy link",tags_community:"From the community",tooltip_loading:"Loading..."},Wx={collapsibleSection_summary:"En savoir plus"},zx=Object.freeze(Object.defineProperty({__proto__:null,en:Mf,fr:Wx},Symbol.toStringTag,{value:"Module"})),Lr=(e,t,r,n,o={})=>{let i="";return`${t}_${r}`in Mf?i=e({id:`${t}_${r}`},o):i=e({id:t},{[n]:r,...o}),i},Qx=(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 o=r.length-1;o>=0;o--){const i=Math.pow(10,(o+1)*3);if(i<=e){e=Math.round(e*t/i)/t,e===1e3&&o<r.length-1&&(e=1,o++),n=`${e}${r[o]}`;break}}return n},uv=(e,t)=>$.Children.map(e,r=>$.cloneElement(r,{...t})),Yx=e=>e.replace(/\s+/g,"").length>0,ze=({variant:e="primary",size:t="medium",styling:r={muted:!1,fullWidth:!1},icon:n=!1,href:o=!1,element:i="button",onClick:a=!1,className:s="",disabled:c=!1,screenreaderText:l=!1,children:u=!1,...d})=>{const f=Js(typeof t=="object");if(typeof t=="object"&&typeof f=="number"){const _=Object.assign({},t),w=sv(Object.keys(_));t=av(f,w,_)}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:ue(e,s,p,{"no-text":!u,disabled:c,button:o}),onClick:_=>{(!o||o[0]==="#")&&a&&(_.preventDefault(),_.stopPropagation()),a&&a(_)},disabled:typeof c=="object"&&"isClickable"in c?!c.isClickable:c};return o&&(i="a",m.href=o),$.createElement(i,m,u||(l?x.jsx(lt,{showOnFocus:!1,children:l}):null))},Zs=({buttons:e,className:t="",...r})=>{const n=e.length>1?"ul":"p",o=e.map((i,a)=>n==="p"?x.jsx(ze,{...i},a):x.jsx("li",{children:x.jsx(ze,{...i})},a));return $.createElement(n,{className:ue("button-wrapper",t),...r,children:o})};const Qa=({maxWidth:e=!1})=>{const t=e?{"--max-width":`${e/16}rem`}:{};return x.jsx("hr",{className:ue({"has-max-width":e}),style:t})},Ff=({href:e,children:t,className:r="",onClick:n,gtmContext:o,gtmType:i,...a})=>{if(e){const s={...a};return n&&(s.onClick=n),o&&(s["data-gtm-event-context"]=o),i&&(s["data-gtm-event-type"]=i),x.jsx("a",{href:e,className:ue("gtm-trackable",r),...s,children:t})}return t},Gp={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"}},Kx=({aspect:e,range:t,sizes:r})=>{const{range:n,sizes:o}=e?Gp[e]:Gp.fallback;return{range:t&&t.length>0?t:n,sizes:r||o}},Xx=({format:e,height:t,query:r,width:n})=>{let o=`w=${n}&h=${t}`;return o=e?`${o}&fm=${e}`:o,o=r?`${o}&${r}`:o,o},Xc=({format:e,range:t,url:r,query:n})=>t.map(({height:o,width:i})=>`${r}?${Xx({format:e,height:o,query:n,width:i})} ${i}w`).join(", ");const cv=({image:e,className:t,testId:r})=>{const{description:n,height:o,type:i,query:a,url:s,width:c,loading:l,decoding:u,fetchPriority:d}=e,{range:h,sizes:f}=Kx(e),p=Xc({format:"avif",query:a,range:h,url:s}),m=Xc({format:"webp",query:a,range:h,url:s}),_=Xc({format:"",query:a,range:h,url:s});return x.jsxs("picture",{className:t,children:[i!=="image/gif"&&x.jsx("source",{type:"image/avif",srcSet:p,sizes:f,"data-testid":"source"}),x.jsx("source",{type:"image/webp",srcSet:m,sizes:f,"data-testid":"source"}),x.jsx("img",{srcSet:_,sizes:f,src:s,alt:n,loading:l||"lazy",decoding:u||"async",fetchpriority:d||"auto",width:c,height:o,"data-testid":r||"image"})]})};var Ml=function(e,t){return Ml=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Ml(e,t)};function Ht(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ml(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,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ce.apply(this,arguments)};function ro(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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function pr(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function lv(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 no;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(no||(no={}));function Vp(e){return e.type===je.literal}function Jx(e){return e.type===je.argument}function fv(e){return e.type===je.number}function hv(e){return e.type===je.date}function dv(e){return e.type===je.time}function pv(e){return e.type===je.select}function mv(e){return e.type===je.plural}function Zx(e){return e.type===je.pound}function gv(e){return e.type===je.tag}function yv(e){return!!(e&&typeof e=="object"&&e.type===no.number)}function Fl(e){return!!(e&&typeof e=="object"&&e.type===no.dateTime)}var vv=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,eO=/(?:[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 tO(e){var t={};return e.replace(eO,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 rO=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function nO(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(rO).filter(function(h){return h.length>0}),r=[],n=0,o=t;n<o.length;n++){var i=o[n],a=i.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var s=a[0],c=a.slice(1),l=0,u=c;l<u.length;l++){var d=u[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:c})}return r}function iO(e){return e.replace(/^(.*?)-/,"")}var Wp=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ev=/^(@+)?(\+|#+)?[rs]?$/g,oO=/(\*)(0+)|(#+)(0+)|(0+)/g,_v=/^(0+)$/;function zp(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ev,function(r,n,o){return typeof o!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):o==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof o=="string"?o.length:0)),""}),t}function bv(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 sO(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)),!_v.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Qp(e){var t={},r=bv(e);return r||t}function aO(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=iO(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ce(ce(ce({},t),{notation:"scientific"}),o.options.reduce(function(c,l){return ce(ce({},c),Qp(l))},{}));continue;case"engineering":t=ce(ce(ce({},t),{notation:"engineering"}),o.options.reduce(function(c,l){return ce(ce({},c),Qp(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(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(oO,function(c,l,u,d,h,f){if(l)t.minimumIntegerDigits=u.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(_v.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Wp.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Wp,function(c,l,u,d,h,f){return u==="*"?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 i=o.options[0];i==="w"?t=ce(ce({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=ce(ce({},t),zp(i)));continue}if(Ev.test(o.stem)){t=ce(ce({},t),zp(o.stem));continue}var a=bv(o.stem);a&&(t=ce(ce({},t),a));var s=sO(o.stem);s&&(t=ce(ce({},t),s))}return t}var Aa={"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 uO(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if(o==="j"){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(i&1),s=i<2?1:3+(i>>1),c="a",l=cO(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=c;for(;a-- >0;)r=l+r}else o==="J"?r+="H":r+=o}return r}function cO(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 o=Aa[n||""]||Aa[r||""]||Aa["".concat(r,"-001")]||Aa["001"];return o[0]}var Jc,lO=new RegExp("^".concat(vv.source,"*")),fO=new RegExp("".concat(vv.source,"*$"));function xe(e,t){return{start:e,end:t}}var hO=!!String.prototype.startsWith,dO=!!String.fromCodePoint,pO=!!Object.fromEntries,mO=!!String.prototype.codePointAt,gO=!!String.prototype.trimStart,yO=!!String.prototype.trimEnd,vO=!!Number.isSafeInteger,EO=vO?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Bl=!0;try{var _O=Sv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Bl=((Jc=_O.exec("a"))===null||Jc===void 0?void 0:Jc[0])==="a"}catch{Bl=!1}var Yp=hO?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Dl=dO?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",o=t.length,i=0,a;o>i;){if(a=t[i++],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},Kp=pO?Object.fromEntries:function(t){for(var r={},n=0,o=t;n<o.length;n++){var i=o[n],a=i[0],s=i[1];r[a]=s}return r},wv=mO?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var o=t.charCodeAt(r),i;return o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},bO=gO?function(t){return t.trimStart()}:function(t){return t.replace(lO,"")},wO=yO?function(t){return t.trimEnd()}:function(t){return t.replace(fO,"")};function Sv(e,t){return new RegExp(e,t)}var Ul;if(Bl){var Xp=Sv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ul=function(t,r){var n;Xp.lastIndex=r;var o=Xp.exec(t);return(n=o[1])!==null&&n!==void 0?n:""}}else Ul=function(t,r){for(var n=[];;){var o=wv(t,r);if(o===void 0||Tv(o)||OO(o))break;n.push(o),r+=o>=65536?2:1}return Dl.apply(void 0,n)};var SO=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 o=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,n);if(a.err)return a;o.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:je.pound,location:xe(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Se.UNMATCHED_CLOSING_TAG,xe(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&$l(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;o.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;o.push(a.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:je.literal,value:"<".concat(o,"/>"),location:xe(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var a=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!$l(this.char()))return this.error(Se.INVALID_TAG,xe(s,this.clonePosition()));var c=this.clonePosition(),l=this.parseTagName();return o!==l?this.error(Se.UNMATCHED_CLOSING_TAG,xe(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:je.tag,value:o,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()&&xO(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var i=this.tryParseQuote(r);if(i){o+=i;continue}var a=this.tryParseUnquoted(t,r);if(a){o+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var c=xe(n,this.clonePosition());return{val:{type:je.literal,value:o,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!TO(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 Dl.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(),Dl(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 o=this.parseIdentifierIfPossible().value;if(!o)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:o,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,o,n);default:return this.error(Se.MALFORMED_ARGUMENT,xe(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ul(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),a=xe(t,i);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,o){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(Se.EXPECT_ARGUMENT_TYPE,xe(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=wO(d.val);if(h.length===0)return this.error(Se.EXPECT_ARGUMENT_STYLE,xe(this.clonePosition(),this.clonePosition()));var f=xe(u,this.clonePosition());l={style:h,styleLocation:f}}var p=this.tryParseArgumentClose(o);if(p.err)return p;var m=xe(o,this.clonePosition());if(l&&Yp(l==null?void 0:l.style,"::",0)){var _=bO(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 w=_;this.locale&&(w=uO(_,this.locale));var h={type:no.dateTime,pattern:w,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?tO(w):{}},v=s==="date"?je.date:je.time;return{val:{type:v,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:(i=l==null?void 0:l.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Se.EXPECT_SELECT_ARGUMENT_OPTIONS,xe(b,ce({},b)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),S=0;if(s!=="select"&&A.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(),A=this.parseIdentifierIfPossible(),S=d.val}var P=this.tryParsePluralOrSelectOptions(t,s,r,A);if(P.err)return P;var p=this.tryParseArgumentClose(o);if(p.err)return p;var R=xe(o,this.clonePosition());return s==="select"?{val:{type:je.select,value:n,options:Kp(P.val),location:R},err:null}:{val:{type:je.plural,value:n,options:Kp(P.val),offset:S,pluralType:s==="plural"?"cardinal":"ordinal",location:R},err:null}}default:return this.error(Se.INVALID_ARGUMENT_TYPE,xe(a,c))}},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 o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Se.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,xe(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(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=nO(t)}catch{return this.error(Se.INVALID_NUMBER_SKELETON,r)}return{val:{type:no.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?aO(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var i,a=!1,s=[],c=new Set,l=o.value,u=o.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;u=xe(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?Se.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Se.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);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())}]),c.add(l),this.bumpSpace(),i=this.parseIdentifierIfPossible(),l=i.value,u=i.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,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,a=a*10+(s-48),this.bump();else break}var c=xe(o,this.clonePosition());return i?(a*=n,EO(a)?{val:a,err:null}:this.error(r,c)):this.error(t,c)},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=wv(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(Yp(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()&&Tv(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 $l(e){return e>=97&&e<=122||e>=65&&e<=90}function TO(e){return $l(e)||e===47}function xO(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 Tv(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function OO(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 jl(e){e.forEach(function(t){if(delete t.location,pv(t)||mv(t))for(var r in t.options)delete t.options[r].location,jl(t.options[r].value);else fv(t)&&yv(t.style)||(hv(t)||dv(t))&&Fl(t.style)?delete t.style.location:gv(t)&&jl(t.children)})}function AO(e,t){t===void 0&&(t={}),t=ce({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new SO(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||jl(r.val),r.val}function ar(e,t){var r=t&&t.cache?t.cache:LO,n=t&&t.serializer?t.serializer:IO,o=t&&t.strategy?t.strategy:RO;return o(e,{cache:r,serializer:n})}function CO(e){return e==null||typeof e=="number"||typeof e=="boolean"}function xv(e,t,r,n){var o=CO(n)?n:r(n),i=t.get(o);return typeof i>"u"&&(i=e.call(this,n),t.set(o,i)),i}function Ov(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,n),t.set(o,i)),i}function Bf(e,t,r,n,o){return r.bind(t,e,n,o)}function RO(e,t){var r=e.length===1?xv:Ov;return Bf(e,this,r,t.cache.create(),t.serializer)}function PO(e,t){return Bf(e,this,Ov,t.cache.create(),t.serializer)}function NO(e,t){return Bf(e,this,xv,t.cache.create(),t.serializer)}var IO=function(){return JSON.stringify(arguments)};function Df(){this.cache=Object.create(null)}Df.prototype.get=function(e){return this.cache[e]};Df.prototype.set=function(e,t){this.cache[e]=t};var LO={create:function(){return new Df}},ur={variadic:PO,monadic:NO},mr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(mr||(mr={}));var gn=function(e){Ht(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Jp=function(e){Ht(t,e);function t(r,n,o,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),mr.INVALID_VALUE,i)||this}return t}(gn),kO=function(e){Ht(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),mr.INVALID_VALUE,o)||this}return t}(gn),MO=function(e){Ht(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,'"'),mr.MISSING_VALUE,n)||this}return t}(gn),_t;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(_t||(_t={}));function FO(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==_t.literal||r.type!==_t.literal?t.push(r):n.value+=r.value,t},[])}function Av(e){return typeof e=="function"}function Fa(e,t,r,n,o,i,a){if(e.length===1&&Vp(e[0]))return[{type:_t.literal,value:e[0].value}];for(var s=[],c=0,l=e;c<l.length;c++){var u=l[c];if(Vp(u)){s.push({type:_t.literal,value:u.value});continue}if(Zx(u)){typeof i=="number"&&s.push({type:_t.literal,value:r.getNumberFormat(t).format(i)});continue}var d=u.value;if(!(o&&d in o))throw new MO(d,a);var h=o[d];if(Jx(u)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),s.push({type:typeof h=="string"?_t.literal:_t.object,value:h});continue}if(hv(u)){var f=typeof u.style=="string"?n.date[u.style]:Fl(u.style)?u.style.parsedOptions:void 0;s.push({type:_t.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(dv(u)){var f=typeof u.style=="string"?n.time[u.style]:Fl(u.style)?u.style.parsedOptions:n.time.medium;s.push({type:_t.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(fv(u)){var f=typeof u.style=="string"?n.number[u.style]:yv(u.style)?u.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),s.push({type:_t.literal,value:r.getNumberFormat(t,f).format(h)});continue}if(gv(u)){var p=u.children,m=u.value,_=o[m];if(!Av(_))throw new kO(m,"function",a);var w=Fa(p,t,r,n,o,i),v=_(w.map(function(S){return S.value}));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map(function(S){return{type:typeof S=="string"?_t.literal:_t.object,value:S}}))}if(pv(u)){var b=u.options[h]||u.options.other;if(!b)throw new Jp(u.value,h,Object.keys(u.options),a);s.push.apply(s,Fa(b.value,t,r,n,o));continue}if(mv(u)){var b=u.options["=".concat(h)];if(!b){if(!Intl.PluralRules)throw new gn(`Intl.PluralRules is not available in this environment.
66
+ Try polyfilling it using "@formatjs/intl-pluralrules"
67
+ `,mr.MISSING_INTL_API,a);var A=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0));b=u.options[A]||u.options.other}if(!b)throw new Jp(u.value,h,Object.keys(u.options),a);s.push.apply(s,Fa(b.value,t,r,n,o,h-(u.offset||0)));continue}}return FO(s)}function BO(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 DO(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=BO(e[n],t[n]),r},ce({},e)):e}function Zc(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function UO(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ar(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,pr([void 0],r,!1)))},{cache:Zc(e.number),strategy:ur.variadic}),getDateTimeFormat:ar(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,pr([void 0],r,!1)))},{cache:Zc(e.dateTime),strategy:ur.variadic}),getPluralRules:ar(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,pr([void 0],r,!1)))},{cache:Zc(e.pluralRules),strategy:ur.variadic})}}var Cv=function(){function e(t,r,n,o){r===void 0&&(r=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var l=i.formatToParts(c);if(l.length===1)return l[0].value;var u=l.reduce(function(d,h){return!d.length||h.type!==_t.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(c){return Fa(i.ast,i.locales,i.formatters,i.formats,c,void 0,i.message)},this.resolvedOptions=function(){var c;return{locale:((c=i.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.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=o||{};a.formatters;var s=ro(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=DO(e.formats,n),this.formatters=o&&o.formatters||UO(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=AO,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}(),ii;(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"})(ii||(ii={}));var ea=function(e){Ht(t,e);function t(r,n,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,`
68
+ `).concat(a?`
69
+ `.concat(a.message,`
70
+ `).concat(a.stack):""))||this,i.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),$O=function(e){Ht(t,e);function t(r,n){return e.call(this,ii.UNSUPPORTED_FORMATTER,r,n)||this}return t}(ea),jO=function(e){Ht(t,e);function t(r,n){return e.call(this,ii.INVALID_CONFIG,r,n)||this}return t}(ea),Zp=function(e){Ht(t,e);function t(r,n){return e.call(this,ii.MISSING_DATA,r,n)||this}return t}(ea),qt=function(e){Ht(t,e);function t(r,n,o){var i=e.call(this,ii.FORMAT_ERROR,"".concat(r,`
71
+ Locale: `).concat(n,`
72
+ `),o)||this;return i.locale=n,i}return t}(ea),el=function(e){Ht(t,e);function t(r,n,o,i){var a=e.call(this,"".concat(r,`
73
+ MessageID: `).concat(o==null?void 0:o.id,`
74
+ Default Message: `).concat(o==null?void 0:o.defaultMessage,`
75
+ Description: `).concat(o==null?void 0:o.description,`
76
+ `),n,i)||this;return a.descriptor=o,a.locale=n,a}return t}(qt),HO=function(e){Ht(t,e);function t(r,n){var o=e.call(this,ii.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(i){var a;return(a=i.value)!==null&&a!==void 0?a:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=r,o}return t}(ea);function ai(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,o){return o in e?n[o]=e[o]:o in r&&(n[o]=r[o]),n},{})}var qO=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},GO=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},Rv={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:qO,onWarn:GO};function Pv(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function jn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function VO(e){e===void 0&&(e=Pv());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,o=ar(function(){for(var s,c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new((s=Intl.DateTimeFormat).bind.apply(s,pr([void 0],c,!1)))},{cache:jn(e.dateTime),strategy:ur.variadic}),i=ar(function(){for(var s,c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new((s=Intl.NumberFormat).bind.apply(s,pr([void 0],c,!1)))},{cache:jn(e.number),strategy:ur.variadic}),a=ar(function(){for(var s,c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new((s=Intl.PluralRules).bind.apply(s,pr([void 0],c,!1)))},{cache:jn(e.pluralRules),strategy:ur.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:ar(function(s,c,l,u){return new Cv(s,c,l,ce({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:a}},u||{}))},{cache:jn(e.message),strategy:ur.variadic}),getRelativeTimeFormat:ar(function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new(t.bind.apply(t,pr([void 0],s,!1)))},{cache:jn(e.relativeTime),strategy:ur.variadic}),getPluralRules:a,getListFormat:ar(function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new(r.bind.apply(r,pr([void 0],s,!1)))},{cache:jn(e.list),strategy:ur.variadic}),getDisplayNames:ar(function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new(n.bind.apply(n,pr([void 0],s,!1)))},{cache:jn(e.displayNames),strategy:ur.variadic})}}function Uf(e,t,r,n){var o=e&&e[t],i;if(o&&(i=o[r]),i)return i;n(new $O("No ".concat(t," format named: ").concat(r)))}function Ca(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=ce({timeZone:t},e[n]),r},{})}function em(e,t){var r=Object.keys(ce(ce({},e),t));return r.reduce(function(n,o){return n[o]=ce(ce({},e[o]||{}),t[o]||{}),n},{})}function tm(e,t){if(!t)return e;var r=Cv.formats;return ce(ce(ce({},r),e),{date:em(Ca(r.date,t),Ca(e.date||{},t)),time:em(Ca(r.time,t),Ca(e.time||{},t))})}var Hl=function(e,t,r,n,o){var i=e.locale,a=e.formats,s=e.messages,c=e.defaultLocale,l=e.defaultFormats,u=e.fallbackOnEmptyString,d=e.onError,h=e.timeZone,f=e.defaultRichTextElements;r===void 0&&(r={id:""});var p=r.id,m=r.defaultMessage;lv(!!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),w=s&&Object.prototype.hasOwnProperty.call(s,_)&&s[_];if(Array.isArray(w)&&w.length===1&&w[0].type===je.literal)return w[0].value;if(!n&&w&&typeof w=="string"&&!f)return w.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=ce(ce({},f),n||{}),a=tm(a,h),l=tm(l,h),!w){if(u===!1&&w==="")return w;if((!m||i&&i.toLowerCase()!==c.toLowerCase())&&d(new HO(r,i)),m)try{var v=t.getMessageFormat(m,c,l,o);return v.format(n)}catch(b){return d(new el('Error formatting default message for: "'.concat(_,'", rendering default message verbatim'),i,r,b)),typeof m=="string"?m:_}return _}try{var v=t.getMessageFormat(w,i,a,ce({formatters:t},o||{}));return v.format(n)}catch(b){d(new el('Error formatting message: "'.concat(_,'", using ').concat(m?"default message":"id"," as fallback."),i,r,b))}if(m)try{var v=t.getMessageFormat(m,c,l,o);return v.format(n)}catch(b){d(new el('Error formatting the default message for: "'.concat(_,'", rendering message verbatim'),i,r,b))}return typeof w=="string"?w:typeof m=="string"?m:_},Nv=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function vu(e,t,r,n){var o=e.locale,i=e.formats,a=e.onError,s=e.timeZone;n===void 0&&(n={});var c=n.format,l=ce(ce({},s&&{timeZone:s}),c&&Uf(i,t,c,a)),u=ai(n,Nv,l);return t==="time"&&!u.hour&&!u.minute&&!u.second&&!u.timeStyle&&!u.dateStyle&&(u=ce(ce({},u),{hour:"numeric",minute:"numeric"})),r(o,u)}function WO(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=i===void 0?{}:i,s=typeof o=="string"?new Date(o||0):o;try{return vu(e,"date",t,a).format(s)}catch(c){e.onError(new qt("Error formatting date.",e.locale,c))}return String(s)}function zO(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=i===void 0?{}:i,s=typeof o=="string"?new Date(o||0):o;try{return vu(e,"time",t,a).format(s)}catch(c){e.onError(new qt("Error formatting time.",e.locale,c))}return String(s)}function QO(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=r[2],s=a===void 0?{}:a,c=e.timeZone,l=e.locale,u=e.onError,d=ai(s,Nv,c?{timeZone:c}:{});try{return t(l,d).formatRange(o,i)}catch(h){u(new qt("Error formatting date time range.",e.locale,h))}return String(o)}function YO(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=i===void 0?{}:i,s=typeof o=="string"?new Date(o||0):o;try{return vu(e,"date",t,a).formatToParts(s)}catch(c){e.onError(new qt("Error formatting date.",e.locale,c))}return[]}function KO(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=i===void 0?{}:i,s=typeof o=="string"?new Date(o||0):o;try{return vu(e,"time",t,a).formatToParts(s)}catch(c){e.onError(new qt("Error formatting time.",e.locale,c))}return[]}var XO=["style","type","fallback","languageDisplay"];function JO(e,t,r,n){var o=e.locale,i=e.onError,a=Intl.DisplayNames;a||i(new gn(`Intl.DisplayNames is not available in this environment.
77
+ Try polyfilling it using "@formatjs/intl-displaynames"
78
+ `,mr.MISSING_INTL_API));var s=ai(n,XO);try{return t(o,s).of(r)}catch(c){i(new qt("Error formatting display name.",o,c))}}var ZO=["type","style"],rm=Date.now();function eA(e){return"".concat(rm,"_").concat(e,"_").concat(rm)}function tA(e,t,r,n){n===void 0&&(n={});var o=Iv(e,t,r,n).reduce(function(i,a){var s=a.value;return typeof s!="string"?i.push(s):typeof i[i.length-1]=="string"?i[i.length-1]+=s:i.push(s),i},[]);return o.length===1?o[0]:o.length===0?"":o}function Iv(e,t,r,n){var o=e.locale,i=e.onError;n===void 0&&(n={});var a=Intl.ListFormat;a||i(new gn(`Intl.ListFormat is not available in this environment.
79
+ Try polyfilling it using "@formatjs/intl-listformat"
80
+ `,mr.MISSING_INTL_API));var s=ai(n,ZO);try{var c={},l=r.map(function(u,d){if(typeof u=="object"){var h=eA(d);return c[h]=u,h}return String(u)});return t(o,s).formatToParts(l).map(function(u){return u.type==="literal"?u:ce(ce({},u),{value:c[u.value]||u.value})})}catch(u){i(new qt("Error formatting list.",o,u))}return r}var rA=["type"];function nA(e,t,r,n){var o=e.locale,i=e.onError;n===void 0&&(n={}),Intl.PluralRules||i(new gn(`Intl.PluralRules is not available in this environment.
81
+ Try polyfilling it using "@formatjs/intl-pluralrules"
82
+ `,mr.MISSING_INTL_API));var a=ai(n,rA);try{return t(o,a).select(r)}catch(s){i(new qt("Error formatting plural.",o,s))}return"other"}var iA=["numeric","style"];function oA(e,t,r){var n=e.locale,o=e.formats,i=e.onError;r===void 0&&(r={});var a=r.format,s=!!a&&Uf(o,"relative",a,i)||{},c=ai(r,iA,s);return t(n,c)}function sA(e,t,r,n,o){o===void 0&&(o={}),n||(n="second");var i=Intl.RelativeTimeFormat;i||e.onError(new gn(`Intl.RelativeTimeFormat is not available in this environment.
83
+ Try polyfilling it using "@formatjs/intl-relativetimeformat"
84
+ `,mr.MISSING_INTL_API));try{return oA(e,t,o).format(r,n)}catch(a){e.onError(new qt("Error formatting relative time.",e.locale,a))}return String(r)}var aA=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Lv(e,t,r){var n=e.locale,o=e.formats,i=e.onError;r===void 0&&(r={});var a=r.format,s=a&&Uf(o,"number",a,i)||{},c=ai(r,aA,s);return t(n,c)}function uA(e,t,r,n){n===void 0&&(n={});try{return Lv(e,t,n).format(r)}catch(o){e.onError(new qt("Error formatting number.",e.locale,o))}return String(r)}function cA(e,t,r,n){n===void 0&&(n={});try{return Lv(e,t,n).formatToParts(r)}catch(o){e.onError(new qt("Error formatting number.",e.locale,o))}return[]}function lA(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function fA(e){e.onWarn&&e.defaultRichTextElements&&lA(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 hA(e,t){var r=VO(t),n=ce(ce({},Rv),e),o=n.locale,i=n.defaultLocale,a=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new Zp('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new Zp('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new jO('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),fA(n),ce(ce({},n),{formatters:r,formatNumber:uA.bind(null,n,r.getNumberFormat),formatNumberToParts:cA.bind(null,n,r.getNumberFormat),formatRelativeTime:sA.bind(null,n,r.getRelativeTimeFormat),formatDate:WO.bind(null,n,r.getDateTimeFormat),formatDateToParts:YO.bind(null,n,r.getDateTimeFormat),formatTime:zO.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:QO.bind(null,n,r.getDateTimeFormat),formatTimeToParts:KO.bind(null,n,r.getDateTimeFormat),formatPlural:nA.bind(null,n,r.getPluralRules),formatMessage:Hl.bind(null,n,r),$t:Hl.bind(null,n,r),formatList:tA.bind(null,n,r.getListFormat),formatListToParts:Iv.bind(null,n,r.getListFormat),formatDisplayName:JO.bind(null,n,r.getDisplayNames)})}function kv(e){lv(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Mv=ce(ce({},Rv),{textComponent:pe.Fragment});function dA(e){return function(t){return e(pe.Children.toArray(t))}}function ql(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var i=0;i<o;i++){var a=r[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}var $f=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=pe.createContext(null)):pe.createContext(null);$f.Consumer;var pA=$f.Provider,mA=pA,gA=$f;function Oe(){var e=pe.useContext(gA);return kv(e),e}var Gl;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Gl||(Gl={}));var Vl;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Vl||(Vl={}));function Fv(e){var t=function(r){var n=Oe(),o=r.value,i=r.children,a=ro(r,["value","children"]),s=typeof o=="string"?new Date(o||0):o,c=e==="formatDate"?n.formatDateToParts(s,a):n.formatTimeToParts(s,a);return i(c)};return t.displayName=Vl[e],t}function ta(e){var t=function(r){var n=Oe(),o=r.value,i=r.children,a=ro(r,["value","children"]),s=n[e](o,a);if(typeof i=="function")return i(s);var c=n.textComponent||pe.Fragment;return pe.createElement(c,null,s)};return t.displayName=Gl[e],t}function tl(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 Bv(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=Av(n)?dA(n):n,t},{})}var nm=function(e,t,r,n){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=Bv(n),s=Hl.apply(void 0,pr([e,t,r,a],o,!1));return Array.isArray(s)?pe.Children.toArray(s):s},Wl=function(e,t){var r=e.defaultRichTextElements,n=ro(e,["defaultRichTextElements"]),o=Bv(r),i=hA(ce(ce(ce({},Mv),n),{defaultRichTextElements:o}),t),a={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o};return ce(ce({},i),{formatMessage:nm.bind(null,a,i.formatters),$t:nm.bind(null,a,i.formatters)})},yA=function(e){Ht(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=Pv(),r.state={cache:r.cache,intl:Wl(tl(r.props),r.cache),prevConfig:tl(r.props)},r}return t.getDerivedStateFromProps=function(r,n){var o=n.prevConfig,i=n.cache,a=tl(r);return ql(o,a)?null:{intl:Wl(a,i),prevConfig:a}},t.prototype.render=function(){return kv(this.state.intl),pe.createElement(mA,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Mv,t}(pe.PureComponent);function vA(e,t){var r=e.values,n=ro(e,["values"]),o=t.values,i=ro(t,["values"]);return ql(o,r)&&ql(n,i)}function Dv(e){var t=Oe(),r=t.formatMessage,n=t.textComponent,o=n===void 0?pe.Fragment:n,i=e.id,a=e.description,s=e.defaultMessage,c=e.values,l=e.children,u=e.tagName,d=u===void 0?o:u,h=e.ignoreTag,f={id:i,description:a,defaultMessage:s},p=r(f,c,{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)}Dv.displayName="FormattedMessage";var Uv=pe.memo(Dv,vA);Uv.displayName="MemoizedFormattedMessage";const ln=Uv;ta("formatDate");ta("formatTime");ta("formatNumber");ta("formatList");ta("formatDisplayName");Fv("formatDate");Fv("formatTime");let ms=!1;const $v=({isOpen:e=!1,isLoading:t=!1,children:r})=>{const n=Oe(),o=$.useRef(null),[i,a]=$.useState("hidden");$.useEffect(()=>{const c=o.current;if(c)return c.addEventListener("transitionend",s),()=>{c.removeEventListener("transitionend",s)}},[]);const s=({propertyName:c})=>{c==="opacity"&&(ms!==!1&&clearTimeout(ms),a(l=>l==="opening"?"open":l==="closing"?"closed":l==="closed"?"hidden":l))};return ri(()=>{ms!==!1&&clearTimeout(ms);let c="open";e?a("opening"):(a("closing"),c="hidden"),ms=setTimeout(()=>{a(c)},300)},[e]),x.jsx("aside",{ref:o,className:ue("tooltip text-medium",i,{loading:t}),hidden:i==="hidden",children:t?x.jsx("p",{children:n.formatMessage({id:"tooltip_loading"})}):typeof r=="string"?x.jsx("p",{children:r}):r})};const jf=({children:e,className:t="",...r})=>x.jsx("section",{className:ue("full-width-section",t),...r,children:e});const EA=({text:e,buttons:t,className:r=""})=>{const n=[];return t.forEach(o=>{n.push({href:o.link,variant:"secondary",size:{mobile:"medium",1024:"large"},className:"gtm-trackable","data-gtm-event-type":"download-click","data-gtm-event-context":o.eventContext||"Download",target:"_blank",children:o.text})}),x.jsx(jf,{className:ue("download-section",r),children:x.jsxs(x.Fragment,{children:[$.createElement(typeof e=="string"?"h2":e.element,{className:"text"},typeof e=="string"?e:e.text),x.jsx(Zs,{buttons:n})]})})};const _A=({title:e=!1,logos:t=[],className:r=""})=>{const n=t.length;if(n===0)return null;const o={element:typeof e=="object"?e.element:"h2",text:typeof e=="string"?e:typeof e=="object"?e.text:""};return x.jsxs("div",{className:ue("logos",r),children:[e&&$.createElement(o.element,{className:"title"},o.text),x.jsx("ul",{className:ue({"two-col":n===2||n===4,"three-col":n===5||n<=10&&n%3===0}),children:t.map(({logo:i,nameOfBusiness:a,link:s=!1,description:c=!1},l)=>{if(!i||!i.url)return null;const u=x.jsx("img",{src:i.url,width:i.width||"auto",height:i.height||"auto",alt:a});return x.jsxs("li",{children:[x.jsx("p",{className:"img-wrapper",children:s?x.jsx("a",{href:s,target:"_blank",rel:"nofollow noreferrer noopener",children:u}):u}),c&&x.jsx("small",{children:c})]},window.btoa(`${i.url}_${l}`))})})]})};const bA=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],wA=({content:e,image:t,variant:r="default",spacing:n="normal",cta:o,children:i})=>{const a=["eyebrow","title","text"],s={eyebrow:"small",title:"h1",text:"p"},c={};return a.forEach(l=>{if(!e[l]){c[l]=!1;return}if(typeof e[l]=="object"){c[l]=e[l];const{text:u,element:d}=e[l];if(d&&bA.includes(d.toLowerCase()))return;c[l]={text:u,element:s[l]};return}c[l]={text:e[l],element:s[l]}}),o&&o.link&&o.link[0]==="#"&&(o.props||(o.props={}),o.props.onClick=l=>{l.preventDefault(),l.stopPropagation();const u=document.getElementById(o.link.substring(1));u&&u.scrollIntoView({behavior:"smooth"})}),x.jsx(jf,{className:ue("banner-section",r,n,{"has-image":t,"has-extra-spacing":n==="normal"&&c.eyebrow&&c.title}),children:x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"content-wrapper",children:[a.map(l=>{if(c[l]&&typeof c[l]=="object"){const{text:u,element:d=""}=c[l];return $.createElement(d.toLowerCase(),{key:l,className:l},u)}return null}),i,o&&o.text&&o.link&&x.jsx(ze,{variant:t||r==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:o.link,...o.props,children:o.text})]}),t&&x.jsx(cv,{image:{...t,aspect:"banner"}})]})})},SA=$.memo(wA);const TA=({variant:e="primary",button:t=null,title:r,text:n,gtmContext:o})=>!r&&!n?null:x.jsxs("aside",{className:ue("marketing-block",e),children:[r&&x.jsx("p",{className:"title",children:r}),n&&x.jsx("p",{children:n}),t&&x.jsx(ze,{variant:"secondary",size:"medium",href:t.link,className:"gtm-trackable","data-gtm-event-context":o,"data-gtm-event-type":"learn-more-click",children:t.text})]});var jv={exports:{}};(function(e){(function(t,r){var n="…",o=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function i(s,c,l){return l.length===s.length||!c.ellipsis||(l+=c.ellipsis),l}function a(s,c,l){var u="",d=!0,h=c,f,p;if(l=l||{},l.ellipsis=typeof l.ellipsis>"u"?n:l.ellipsis,!s||s.length===0)return"";for(d=!0;d;){if(o.lastIndex=u.length,d=o.exec(s),!d||d.index-u.length>=h||o.lastIndex>=c+3e3)return u+=s.substring(u.length,c),i(s,l,u);if(f=d[0],p=d.index,u+=s.substring(u.length,p+f.length),h-=p+f.length,h<=0)break}return i(s,l,u)}e.exports?e.exports=a:t.truncate=a})(String)})(jv);var xA=jv.exports;const Hv=vr(xA),Ya="https://storage.googleapis.com/apolitical-assets/",OA="200,000+";const Hf=({label:e=!1,className:t="",children:r})=>{const n=Oe();return x.jsxs("details",{className:ue("collapsible-section",t),children:[x.jsx("summary",{children:e||n.formatMessage({id:"collapsibleSection_summary"})}),x.jsx("div",{className:"content",children:r})]})};function qn(){return qn=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},qn.apply(this,arguments)}const AA=["children","options"],im=["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"}),om={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},CA=["style","script"],RA=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,PA=/mailto:/i,NA=/\n{2,}$/,qv=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,IA=/^ *> ?/gm,LA=/^ {2,}\n/,kA=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Gv=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Vv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,MA=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,FA=/^(?:\n *)*\n/,BA=/\r\n?/g,DA=/^\[\^([^\]]+)](:.*)\n/,UA=/^\[\^([^\]]+)]/,$A=/\f/g,jA=/^\s*?\[(x|\s)\]/,Wv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,zv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Qv=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,zl=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,HA=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Yv=/^<!--[\s\S]*?(?:-->)/,qA=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ql=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,GA=/^\{.*\}$/,VA=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,WA=/^<([^ >]+@[^ >]+)>/,zA=/^<([^ >]+:\/[^ >]+)>/,QA=/-([a-z])?/gi,Kv=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,YA=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,KA=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,XA=/^\[([^\]]*)\] ?\[([^\]]*)\]/,JA=/(\[|\])/g,ZA=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,eC=/\t/g,tC=/^ *\| */,rC=/(^ *\||\| *$)/g,nC=/ *$/,iC=/^ *:-+: *$/,oC=/^ *:-+ *$/,sC=/^ *-+: *$/,aC=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,uC=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,cC=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,lC=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,fC=/^\\([^0-9A-Za-z\s])/,hC=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,dC=/^\n+/,pC=/^([ \t]*)/,mC=/\\([^\\])/g,sm=/ *\n+$/,gC=/(?:^|\n)( *)$/,qf="(?:\\d+\\.)",Gf="(?:[*+-])";function Xv(e){return"( *)("+(e===1?qf:Gf)+") +"}const Jv=Xv(1),Zv=Xv(2);function e0(e){return new RegExp("^"+(e===1?Jv:Zv))}const yC=e0(1),vC=e0(2);function t0(e){return new RegExp("^"+(e===1?Jv:Zv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?qf:Gf)+" )[^\\n]*)*(\\n|$)","gm")}const r0=t0(1),n0=t0(2);function i0(e){const t=e===1?qf:Gf;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const o0=i0(1),s0=i0(2);function am(e,t){const r=t===1,n=r?o0:s0,o=r?r0:n0,i=r?yC:vC;return{t(a,s,c){const l=gC.exec(c);return l&&(s.o||!s._&&!s.u)?n.exec(a=l[1]+a):null},i:Te.HIGH,l(a,s,c){const l=r?+a[2]:void 0,u=a[0].replace(NA,`
87
+ `).match(o);let d=!1;return{p:u.map(function(h,f){const p=i.exec(h)[0].length,m=new RegExp("^ {1,"+p+"}","gm"),_=h.replace(m,"").replace(i,""),w=f===u.length-1,v=_.indexOf(`
88
+
89
+ `)!==-1||w&&d;d=v;const b=c._,A=c.o;let S;c.o=!0,v?(c._=!1,S=_.replace(sm,`
90
+
91
+ `)):(c._=!0,S=_.replace(sm,""));const P=s(S,c);return c._=b,c.o=A,P}),m:r,g:l}},h:(a,s,c)=>e(a.m?"ol":"ul",{key:c.k,start:a.g},a.p.map(function(l,u){return e("li",{key:u},s(l,c))}))}}const EC=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,_C=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,a0=[qv,Gv,Vv,Wv,Qv,zv,Yv,Kv,r0,o0,n0,s0],bC=[...a0,/^[^\n]+(?: \n|\n{2,})/,zl,Ql];function wC(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 SC(e){return sC.test(e)?"right":iC.test(e)?"center":oC.test(e)?"left":null}function um(e,t,r){const n=r.$;r.$=!0;const o=t(e.trim(),r);r.$=n;let i=[[]];return o.forEach(function(a,s){a.type==="tableSeparator"?s!==0&&s!==o.length-1&&i.push([]):(a.type!=="text"||o[s+1]!=null&&o[s+1].type!=="tableSeparator"||(a.v=a.v.replace(nC,"")),i[i.length-1].push(a))}),i}function TC(e,t,r){r._=!0;const n=um(e[1],t,r),o=e[2].replace(rC,"").split("|").map(SC),i=function(a,s,c){return a.trim().split(`
92
+ `).map(function(l){return um(l,s,c)})}(e[3],t,r);return r._=!1,{S:o,A:i,L:n,type:"table"}}function cm(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function Kr(e){return function(t,r){return r._?e.exec(t):null}}function Xr(e){return function(t,r){return r._||r.u?e.exec(t):null}}function Nr(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function gs(e){return function(t){return e.exec(t)}}function xC(e,t,r){if(t._||t.u||r&&!r.endsWith(`
93
+ `))return null;let n="";e.split(`
94
+ `).every(i=>!a0.some(a=>a.test(i))&&(n+=i+`
95
+ `,i.trim()));const o=n.trimEnd();return o==""?null:[n,o]}function xi(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 lm(e){return e.replace(mC,"$1")}function Ba(e,t,r){const n=r._||!1,o=r.u||!1;r._=!0,r.u=!0;const i=e(t,r);return r._=n,r.u=o,i}function OC(e,t,r){const n=r._||!1,o=r.u||!1;r._=!1,r.u=!0;const i=e(t,r);return r._=n,r.u=o,i}function AC(e,t,r){return r._=!1,e(t,r)}const rl=(e,t,r)=>({v:Ba(t,e[1],r)});function nl(){return{}}function il(){return null}function CC(...e){return e.filter(Boolean).join(" ")}function ol(e,t,r){let n=e;const o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}var Te;function RC(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||wC,t.namedCodesToUnicode=t.namedCodesToUnicode?qn({},om,t.namedCodesToUnicode):om;const r=t.createElement||pe.createElement;function n(f,p,...m){const _=ol(t.overrides,`${f}.props`,{});return r(function(w,v){const b=ol(v,w);return b?typeof b=="function"||typeof b=="object"&&"render"in b?b:ol(v,`${w}.component`,w):w}(f,t.overrides),qn({},p,_,{className:CC(p==null?void 0:p.className,_.className)||void 0}),...m)}function o(f){let p=!1;t.forceInline?p=!0:t.forceBlock||(p=ZA.test(f)===!1);const m=u(l(p?f:`${f.trimEnd().replace(dC,"")}
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 w;if(m.length>1||t.forceWrapper)w=m;else{if(m.length===1)return w=m[0],typeof w=="string"?n("span",{key:"outer"},w):w;w=null}return pe.createElement(_,{key:"outer"},w)}function i(f){const p=f.match(RA);return p?p.reduce(function(m,_,w){const v=_.indexOf("=");if(v!==-1){const b=function(R){return R.indexOf("-")!==-1&&R.match(qA)===null&&(R=R.replace(QA,function(L,k){return k.toUpperCase()})),R}(_.slice(0,v)).trim(),A=function(R){const L=R[0];return(L==='"'||L==="'")&&R.length>=2&&R[R.length-1]===L?R.slice(1,-1):R}(_.slice(v+1).trim()),S=im[b]||b,P=m[S]=function(R,L){return R==="style"?L.split(/;\s?/).reduce(function(k,q){const G=q.slice(0,q.indexOf(":"));return k[G.replace(/(-[a-z])/g,H=>H[1].toUpperCase())]=q.slice(G.length+1).trim(),k},{}):R==="href"?xi(L):(L.match(GA)&&(L=L.slice(1,L.length-1)),L==="true"||L!=="false"&&L)}(b,A);typeof P=="string"&&(zl.test(P)||Ql.test(P))&&(m[S]=pe.cloneElement(o(P.trim()),{key:w}))}else _!=="style"&&(m[im[_]||_]=!0);return m},{}):null}const a=[],s={},c={blockQuote:{t:Nr(qv),i:Te.HIGH,l:(f,p,m)=>({v:p(f[0].replace(IA,""),m)}),h:(f,p,m)=>n("blockquote",{key:m.k},p(f.v,m))},breakLine:{t:gs(LA),i:Te.HIGH,l:nl,h:(f,p,m)=>n("br",{key:m.k})},breakThematic:{t:Nr(kA),i:Te.HIGH,l:nl,h:(f,p,m)=>n("hr",{key:m.k})},codeBlock:{t:Nr(Vv),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",qn({},f.O,{className:f.M?`lang-${f.M}`:""}),f.v))},codeFenced:{t:Nr(Gv),i:Te.MAX,l:f=>({O:i(f[3]||""),v:f[4],M:f[2]||void 0,type:"codeBlock"})},codeInline:{t:Xr(MA),i:Te.LOW,l:f=>({v:f[2]}),h:(f,p,m)=>n("code",{key:m.k},f.v)},footnote:{t:Nr(DA),i:Te.MAX,l:f=>(a.push({I:f[2],j:f[1]}),{}),h:il},footnoteReference:{t:Kr(UA),i:Te.HIGH,l:f=>({v:f[1],B:`#${t.slugify(f[1])}`}),h:(f,p,m)=>n("a",{key:m.k,href:xi(f.B)},n("sup",{key:m.k},f.v))},gfmTask:{t:Kr(jA),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:Nr(t.enforceAtxHeadings?zv:Wv),i:Te.HIGH,l:(f,p,m)=>({v:Ba(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:Nr(Qv),i:Te.MAX,l:(f,p,m)=>({v:Ba(p,f[1],m),C:f[2]==="="?1:2,type:"heading"})},htmlComment:{t:gs(Yv),i:Te.HIGH,l:()=>({}),h:il},image:{t:Xr(_C),i:Te.HIGH,l:f=>({D:f[1],B:lm(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:xi(f.B)})},link:{t:Kr(EC),i:Te.LOW,l:(f,p,m)=>({v:OC(p,f[1],m),B:lm(f[2]),F:f[3]}),h:(f,p,m)=>n("a",{key:m.k,href:xi(f.B),title:f.F},p(f.v,m))},linkAngleBraceStyleDetector:{t:Kr(zA),i:Te.MAX,l:f=>({v:[{v:f[1],type:"text"}],B:f[1],type:"link"})},linkBareUrlDetector:{t:(f,p)=>p.N?null:Kr(VA)(f,p),i:Te.MAX,l:f=>({v:[{v:f[1],type:"text"}],B:f[1],F:void 0,type:"link"})},linkMailtoDetector:{t:Kr(WA),i:Te.MAX,l(f){let p=f[1],m=f[1];return PA.test(m)||(m="mailto:"+m),{v:[{v:p.replace("mailto:",""),type:"text"}],B:m,type:"link"}}},orderedList:am(n,1),unorderedList:am(n,2),newlineCoalescer:{t:Nr(FA),i:Te.LOW,l:nl,h:()=>`
98
+ `},paragraph:{t:xC,i:Te.LOW,l:rl,h:(f,p,m)=>n("p",{key:m.k},p(f.v,m))},ref:{t:Kr(YA),i:Te.MAX,l:f=>(s[f[1]]={B:f[2],F:f[4]},{}),h:il},refImage:{t:Xr(KA),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:xi(s[f.P].B),title:s[f.P].F})},refLink:{t:Kr(XA),i:Te.MAX,l:(f,p,m)=>({v:p(f[1],m),Z:p(f[0].replace(JA,"\\$1"),m),P:f[2]}),h:(f,p,m)=>s[f.P]?n("a",{key:m.k,href:xi(s[f.P].B),title:s[f.P].F},p(f.v,m)):n("span",{key:m.k},p(f.Z,m))},table:{t:Nr(Kv),i:Te.HIGH,l:TC,h:(f,p,m)=>n("table",{key:m.k},n("thead",null,n("tr",null,f.L.map(function(_,w){return n("th",{key:w,style:cm(f,w)},p(_,m))}))),n("tbody",null,f.A.map(function(_,w){return n("tr",{key:w},_.map(function(v,b){return n("td",{key:b,style:cm(f,b)},p(v,m))}))})))},tableSeparator:{t:function(f,p){return p.$?(p._=!0,tC.exec(f)):null},i:Te.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:gs(hC),i:Te.MIN,l:f=>({v:f[0].replace(HA,(p,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:p)}),h:f=>f.v},textBolded:{t:Xr(aC),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:Xr(uC),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:Xr(fC),i:Te.HIGH,l:f=>({v:f[1],type:"text"})},textMarked:{t:Xr(cC),i:Te.LOW,l:rl,h:(f,p,m)=>n("mark",{key:m.k},p(f.v,m))},textStrikethroughed:{t:Xr(lC),i:Te.LOW,l:rl,h:(f,p,m)=>n("del",{key:m.k},p(f.v,m))}};t.disableParsingRawHTML!==!0&&(c.htmlBlock={t:gs(zl),i:Te.HIGH,l(f,p,m){const[,_]=f[3].match(pC),w=new RegExp(`^${_}`,"gm"),v=f[3].replace(w,""),b=(A=v,bC.some(L=>L.test(A))?AC:Ba);var A;const S=f[1].toLowerCase(),P=CA.indexOf(S)!==-1;m.N=m.N||S==="a";const R=P?f[3]:b(p,v,m);return m.N=!1,{O:i(f[2]),v:R,G:P,H:P?S:f[1]}},h:(f,p,m)=>n(f.H,qn({key:m.k},f.O),f.G?f.v:p(f.v,m))},c.htmlSelfClosing={t:gs(Ql),i:Te.HIGH,l:f=>({O:i(f[2]||""),H:f[1]}),h:(f,p,m)=>n(f.H,qn({},f.O,{key:m.k}))});const l=function(f){let p=Object.keys(f);function m(_,w){let v=[],b="";for(;_;){let A=0;for(;A<p.length;){const S=p[A],P=f[S],R=P.t(_,w,b);if(R){const L=R[0];_=_.substring(L.length);const k=P.l(R,m,w);k.type==null&&(k.type=S),v.push(k),b=L;break}A++}}return v}return p.sort(function(_,w){let v=f[_].i,b=f[w].i;return v!==b?v-b:_<w?-1:1}),function(_,w){return m(function(v){return v.replace(BA,`
99
+ `).replace($A,"").replace(eC," ")}(_),w)}}(c),u=(d=function(f){return function(p,m,_){return f[p.type].h(p,m,_)}}(c),function f(p,m={}){if(Array.isArray(p)){const _=m.k,w=[];let v=!1;for(let b=0;b<p.length;b++){m.k=b;const A=f(p[b],m),S=typeof A=="string";S&&v?w[w.length-1]+=A:A!==null&&w.push(A),v=S}return m.k=_,w}return d(p,f,m)});var d;const h=o(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,u(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 Eu=e=>{let{children:t,options:r}=e,n=function(o,i){if(o==null)return{};var a,s,c={},l=Object.keys(o);for(s=0;s<l.length;s++)i.indexOf(a=l[s])>=0||(c[a]=o[a]);return c}(e,AA);return pe.cloneElement(RC(t,r),n)};const Dr=({variant:e="primary",className:t="",children:r,...n})=>x.jsx("div",{className:ue("highlighted-text-box",e,t),...n,children:r});const ra=({variant:e="empty",text:t=!1,button:r=!1,className:n=""})=>{let o=r&&!!Object.keys(r).length;const i=typeof r=="object"&&"breakpoints"in r,a=Js(i);if(i&&typeof r=="object"&&typeof a=="number"){const d=Object.assign({},r.breakpoints),h=sv(Object.keys(d));o=av(a,h,d)}const{breakpoints:s,text:c="",component:l,...u}=r;return x.jsx(Dr,{variant:"subtle",className:ue("empty-state-box",e,n),children:x.jsxs(x.Fragment,{children:[t&&x.jsx(Eu,{options:{forceBlock:!0},children:t}),o&&typeof r=="object"&&(l||x.jsx(ze,{...u,variant:r.variant?r.variant:"secondary",children:c}))]})})};const Yl=({children:e,...t})=>x.jsx("p",{...t,children:e}),u0={q:Yl,blockquote:Yl};for(let e=1;e<=6;e++)u0[`h${e}`]={component:Yl,props:{className:"title"}};const c0=({type:e="default",className:t="",heading:r=!1,children:n})=>x.jsxs("div",{className:ue("helper-text-box text-small",e,t),children:[r&&x.jsx("p",{className:"title",children:r}),typeof n=="string"?x.jsx(Eu,{options:{wrapper:$.Fragment,forceBlock:!0,overrides:u0},children:n}):x.jsx("p",{children:n})]});const PC=({className:e="",show:t=!1,hide:r=!1,text:n,children:o})=>{const i=Oe(),a=$.useRef(null),[s,c]=$.useState(""),[l,u]=$.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
+ `);c(f.length<3?`${n.substring(0,400)}...`:f.slice(0,3).join(`
101
+ `))},[n]),$.useEffect(()=>{l==="ready-to-close"&&u("closing")},[l]);const d=({propertyName:f})=>{f==="max-height"&&u(p=>p==="opening"?"open":p==="closing"?"closed":p)};if(!n)return null;const h=["opening","open"].includes(l);return x.jsxs(Dr,{variant:"subtle",className:ue("hide-show-text-box",e),children:[x.jsxs("div",{ref:a,className:ue("content",l),children:[x.jsx(Eu,{options:{forceBlock:!0},children:l==="closed"?s:n}),l!=="closed"&&o]}),x.jsx("p",{className:"cta",children:x.jsx(ze,{variant:"tertiary",icon:{icon:"navigation_arrow",position:"left",animate:!0},styling:{muted:!0},className:ue({"rotate-180":h}),onClick:()=>{u(h?"ready-to-close":"opening")},children:h?r||i.formatMessage({id:"hideShowTextBox_hide"}):t||i.formatMessage({id:"hideShowTextBox_show"})})})]})},NC=()=>$.Fragment,IC=({children:e})=>x.jsx(Dr,{variant:"secondary",children:e}),LC=["span","strong","h1","h2","h3","h4","h5","h6","p"],kC=({children:e})=>{const t=Oe();if(!e)return null;let r=t.formatMessage({id:"markdown_collapsibleSection_summary"});const n=[];for(const i of $.Children.toArray(e))if(!(!i||typeof i=="string"||typeof i=="number"))if($.isValidElement(i)&&i.type==="summary"){if(i.props&&i.props.children){for(const a of $.Children.toArray(i.props.children))if(!(!a||typeof a=="string"||typeof a=="number")&&$.isValidElement(a)){const s=a.type;if(LC.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(i);const o=r?r.toString():"";return x.jsx(Hf,{label:o,className:["Sources","Resources"].includes(o)?"discrete-links":"",children:n.map(i=>i)})},MC=({children:e,...t})=>{if(t.class)switch(t.class){case"casestudy":return x.jsx(Dr,{variant:"secondary",children:e});case"general-textbox":case"highlight-box":return x.jsx(Dr,{variant:"primary",children:e});case"pink-textbox":return x.jsx(Dr,{variant:"tertiary",children:e});default:return x.jsx("div",{...t,children:e})}return x.jsx("div",{...t,children:e})},FC=e=>{const t=Oe(),r=Date.now().toString();let n="default";const o=e.src;return o.includes("youtube")||o.includes("vimeo")?n="video":o.includes("riddle")||o.includes("sli.do")?n="poll":o.includes("padlet")&&(n="padlet"),x.jsxs(x.Fragment,{children:[x.jsx(lt,{children:x.jsx("a",{href:`#content-after-iframe-${r}`,children:t.formatMessage({id:`markdown_skip${n==="default"?"":`_${n}`}`})})}),x.jsx("iframe",{...e,title:t.formatMessage({id:`markdown_iframe${n==="default"?"":`_${n}`}`})}),x.jsx("span",{id:`content-after-iframe-${r}`,tabIndex:-1})]})},fm=e=>{let t="";return e&&typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"&&"type"in e&&(t=e.type),t},BC=({children:e,...t})=>{let r={...t};t.href&&(t.href.includes("http:")||t.href.includes("https:"))&&!t.target&&(r.target="_blank");let n=e,o=!1;for(const i of $.Children.toArray(e))if(!(!i||typeof i=="string"||typeof i=="number")&&$.isValidElement(i)){const a=i.type;if(["button","center","span","strong"].includes(a)&&i.props&&i.props.children&&i.props.children[0])for((a==="button"||fm(i.props.children[0])==="button")&&(o=!0),n=i.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&&fm(n)==="button"&&(o=!0);else break}return o?(r={...r,className:"button primary medium"},x.jsx("p",{className:"center",children:x.jsx(ze,{variant:"primary",size:"medium",...r,children:n})})):x.jsx("a",{...r,children:n})};const Kl=({className:e="",options:t={},children:r})=>{r=r.replace(/^<br\/?>/,"");const n={wrapper:$.Fragment,forceBlock:!0,overrides:{a:BC,CollapsibleSection:Hf,TextBox:Dr,CaseStudy:IC,style:NC,details:kC,div:MC,iframe:FC}};return x.jsx("div",{className:ue("markdown-text",e),children:x.jsx(Eu,{options:{...n,...t},children:r})})};const l0=({size:e="medium",variant:t="default",className:r="",children:n})=>x.jsx("span",{className:ue("pill",e,t,r),children:n});const Ka=({element:e="p",children:t=null,className:r="",...n})=>$.createElement(e,{...n,className:ue("status-banner text-small",r),"aria-live":"assertive"},t);const DC=({progress:e=0,text:t=!1,className:r=""})=>{const n=Oe(),o=e>75?100:e>50?75:e>25?50:e>5?25:0,i={"--progress":`${e}%`};return x.jsx("span",{className:ue(`progress-bar section-${o}`,r),style:i,children:x.jsx(lt,{children:t?`${e} ${t}`:n.formatMessage({id:"progressBar"},{number:e})})})},f0=$.memo(DC);const sl="loadingBlock_",UC=({progress:e=0,steps:t=!1,className:r=""})=>{const n=Oe();t||(t={0:{text:n.formatMessage({id:`${sl}loading`})},75:{text:n.formatMessage({id:`${sl}almostDone`})},100:{text:n.formatMessage({id:`${sl}complete`})}});let o=null;const i=Object.keys(t);for(let s=0;s<i.length&&!(e<parseInt(i[s]));s++)o=i[s];const a=o&&t[o].icon?{"--icon":`url(${Ya}icons/${t[o].icon}.svg)`}:{};return x.jsxs(Dr,{className:ue("loading-block",r,{"has-icon":o&&t[o].icon}),variant:"subtle",style:a,children:[o&&x.jsx("span",{className:"step",children:t[o].text}),x.jsx(f0,{progress:e})]})},$C=$.memo(UC);const gr=({element:e="div",className:t="",...r})=>x.jsx(yf,{element:e,className:ue("loading-placeholder",t),...r});const Xl={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"]},h0=(e,t)=>e in Xl?x.jsx("div",{className:e,children:Xl[e].map((r,n)=>h0(r,n))},t):x.jsx(gr,{className:e},t),d0=({layout:e="overview-page"})=>x.jsx("div",{className:ue("loading-state",e),children:Xl[e].map((t,r)=>h0(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):""},Ra=["#5AB6A3","#A2D7AF","#806056","#3962B3"],jC=e=>{const t=Math.ceil(26/Ra.length),r=p0(e).toLowerCase();if(r==="")return Ra[0];const n=r.charCodeAt(0)-96;for(let o=0;o<Ra.length;o++)if(n<=t*(o+1))return Ra[o]};const hm=256,_u=({className:e="",src:t="",name:r,alt:n,width:o=hm,height:i=hm,...a})=>{const[s,c]=$.useState(!1),l=$.useRef(null);return $.useEffect(()=>{const u=l.current;if(!u)return;const d=u.getContext("2d");if(!d)return;const h=o,f=i;typeof window<"u"&&window.devicePixelRatio&&(u.width=h*window.devicePixelRatio,u.height=f*window.devicePixelRatio,d.scale(window.devicePixelRatio,window.devicePixelRatio)),d.fillStyle=jC(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]),x.jsxs("figure",{className:ue("profile-picture",e,{error:s}),...a,children:[t!==""&&!s&&x.jsx("img",{src:t,alt:n||r,onError:()=>{c(!0)},width:o,height:i}),(t===""||s)&&x.jsx("canvas",{ref:l})]})},Vf=e=>e==="apolitical"?{image:`${Ya}logos/member_apolitical.svg`}:e==="community"||typeof e=="object"&&!e.name?{image:`${Ya}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},HC=({role:e="",organisation:t="",country:r="",maximumCharacters:n=80})=>{const o=e!=="",i=t!=="",a=r!=="";if(!o&&!i&&!a)return"";const s=`${e}${o&&i?` — ${t}`:t}`;let c=`${s}${(o||i)&&a?`, ${r}`:r}`;return c.length>n&&(c=s),c.length>n&&(c=Hv(c,n)),c};const bu=({element:e="div",member:t="community",additionalContent:r=!1,gtmContext:n="member",gtmType:o="member-click",className:i=""})=>{const a=Oe(),s=Vf(t);s.name||(s.name=a.formatMessage({id:`member_${typeof t=="string"?t:"community"}`}));const{name:c,url:l,image:u}=s,d=HC(s),h=r&&r.createdAt?Gx(r.createdAt):!1,f=r&&r.createdAt?qx(r.createdAt):"";return $.createElement(e,{className:ue("member text-medium",i),children:x.jsxs(Ff,{href:l,gtmType:o,gtmContext:n,onClick:p=>{p==null||p.stopPropagation()},children:[x.jsx(_u,{name:c,src:u}),x.jsxs("p",{className:"details",children:[x.jsx("strong",{children:c}),r&&x.jsxs("span",{className:"additional-content",children:[r.createdAt&&h&&x.jsx("span",{className:"date",title:f,"aria-label":f,children:a.formatMessage({id:`dates_${h.path}`},{number:h.number})}),r.didEdit&&x.jsx("em",{children:a.formatMessage({id:"discussion_edited"})})]}),d&&x.jsx("small",{children:d})]})]})})};const dm={small:24,medium:48},m0=({element:e="div",contributors:{total:t,data:r}={total:void 0,data:[]},styling:{showText:n,size:o,showGap:i,showPlaceholders:a}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:s=2,className:c=""})=>{const l=Oe();return!r||r.length===0?null:$.createElement(e,{className:ue("contributors",c,o,{"has-gap":i}),children:x.jsxs(x.Fragment,{children:[x.jsx("ul",{children:r.map((u,d)=>{let h,f="";if(d<s){const{name:p="",image:m=""}=Vf(u);if(a)return x.jsx(gr,{element:"li",className:"contributor"},d);h=x.jsx(_u,{name:p,src:m,width:dm[o||"medium"],height:dm[o||"medium"]})}else if(d===s){const p=(t||r.length)-s;h=x.jsxs("small",{className:ue({"large-number":p>99}),children:["+",Qx(p,0)]}),f="number-left"}return h?x.jsx("li",{className:ue("contributor",f),children:h},d):null})}),n&&x.jsx("span",{className:"label",children:typeof n=="string"?n:r.length===1?typeof r[0]=="string"?l.formatMessage({id:`member_${r[0]}`}):Hv(r[0].name||"",20):null})]})})},qC=({children:e,locale:t,messages:r})=>{const n=t||"en",o={...zx[n],...r||{}};return x.jsx(yA,{locale:n,messages:o,children:e})},$r=$.createContext(null),GC=({children:e,user:t})=>x.jsx($r.Provider,{value:t,children:e});var fo=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(){}},io=typeof window>"u"||"Deno"in window;function jt(){}function VC(e,t){return typeof e=="function"?e(t):e}function Jl(e){return typeof e=="number"&&e>=0&&e!==1/0}function g0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pm(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(n){if(t.queryHash!==Wf(a,t.options))return!1}else if(!Os(t.queryKey,a))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function mm(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(xs(t.options.mutationKey)!==xs(i))return!1}else if(!Os(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function Wf(e,t){return((t==null?void 0:t.queryKeyHashFn)||xs)(e)}function xs(e){return JSON.stringify(e,(t,r)=>Zl(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function Os(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!Os(e[r],t[r])):!1}function y0(e,t){if(e===t)return e;const r=gm(e)&&gm(t);if(r||Zl(e)&&Zl(t)){const n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),i=o.length,a=r?[]:{};let s=0;for(let c=0;c<i;c++){const l=r?c:o[c];a[l]=y0(e[l],t[l]),a[l]===e[l]&&s++}return n===i&&s===n?e:a}return t}function Xa(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function gm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Zl(e){if(!ym(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!ym(r)||!r.hasOwnProperty("isPrototypeOf"))}function ym(e){return Object.prototype.toString.call(e)==="[object Object]"}function v0(e){return new Promise(t=>{setTimeout(t,e)})}function vm(e){v0(0).then(e)}function ef(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?y0(e,t):t}function WC(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function zC(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Gn,en,Ni,Um,QC=(Um=class extends fo{constructor(){super();ne(this,Gn,void 0);ne(this,en,void 0);ne(this,Ni,void 0);Z(this,Ni,t=>{if(!io&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){N(this,en)||this.setEventListener(N(this,Ni))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,en))==null||t.call(this),Z(this,en,void 0))}setEventListener(t){var r;Z(this,Ni,t),(r=N(this,en))==null||r.call(this),Z(this,en,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){N(this,Gn)!==t&&(Z(this,Gn,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof N(this,Gn)=="boolean"?N(this,Gn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Gn=new WeakMap,en=new WeakMap,Ni=new WeakMap,Um),Ja=new QC,Ii,tn,Li,$m,YC=($m=class extends fo{constructor(){super();ne(this,Ii,!0);ne(this,tn,void 0);ne(this,Li,void 0);Z(this,Li,t=>{if(!io&&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,tn)||this.setEventListener(N(this,Li))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,tn))==null||t.call(this),Z(this,tn,void 0))}setEventListener(t){var r;Z(this,Li,t),(r=N(this,tn))==null||r.call(this),Z(this,tn,t(this.setOnline.bind(this)))}setOnline(t){N(this,Ii)!==t&&(Z(this,Ii,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return N(this,Ii)}},Ii=new WeakMap,tn=new WeakMap,Li=new WeakMap,$m),As=new YC;function KC(e){return Math.min(1e3*2**e,3e4)}function wu(e){return(e??"online")==="online"?As.isOnline():!0}var E0=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function al(e){return e instanceof E0}function _0(e){let t=!1,r=0,n=!1,o,i,a;const s=new Promise((_,w)=>{i=_,a=w}),c=_=>{var w;n||(f(new E0(_)),(w=e.abort)==null||w.call(e))},l=()=>{t=!0},u=()=>{t=!1},d=()=>!Ja.isFocused()||e.networkMode!=="always"&&!As.isOnline(),h=_=>{var w;n||(n=!0,(w=e.onSuccess)==null||w.call(e,_),o==null||o(),i(_))},f=_=>{var w;n||(n=!0,(w=e.onError)==null||w.call(e,_),o==null||o(),a(_))},p=()=>new Promise(_=>{var w;o=v=>{const b=n||!d();return b&&_(v),b},(w=e.onPause)==null||w.call(e)}).then(()=>{var _;o=void 0,n||(_=e.onContinue)==null||_.call(e)}),m=()=>{if(n)return;let _;try{_=e.fn()}catch(w){_=Promise.reject(w)}Promise.resolve(_).then(h).catch(w=>{var P;if(n)return;const v=e.retry??(io?0:3),b=e.retryDelay??KC,A=typeof b=="function"?b(r,w):b,S=v===!0||typeof v=="number"&&r<v||typeof v=="function"&&v(r,w);if(t||!S){f(w);return}r++,(P=e.onFail)==null||P.call(e,r,w),v0(A).then(()=>{if(d())return p()}).then(()=>{t?f(w):m()})})};return wu(e.networkMode)?m():p().then(m),{promise:s,cancel:c,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:l,continueRetry:u}}function XC(){let e=[],t=0,r=u=>{u()},n=u=>{u()};const o=u=>{let d;t++;try{d=u()}finally{t--,t||s()}return d},i=u=>{t?e.push(u):vm(()=>{r(u)})},a=u=>(...d)=>{i(()=>{u(...d)})},s=()=>{const u=e;e=[],u.length&&vm(()=>{n(()=>{u.forEach(d=>{r(d)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:u=>{r=u},setBatchNotifyFunction:u=>{n=u}}}var Ke=XC(),Vn,jm,b0=(jm=class{constructor(){ne(this,Vn,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Jl(this.gcTime)&&Z(this,Vn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(io?1/0:5*60*1e3))}clearGcTimeout(){N(this,Vn)&&(clearTimeout(N(this,Vn)),Z(this,Vn,void 0))}},Vn=new WeakMap,jm),ki,Mi,Bt,rn,Dt,it,Is,Wn,Fi,Da,Zt,kr,Hm,JC=(Hm=class extends b0{constructor(t){super();ne(this,Fi);ne(this,Zt);ne(this,ki,void 0);ne(this,Mi,void 0);ne(this,Bt,void 0);ne(this,rn,void 0);ne(this,Dt,void 0);ne(this,it,void 0);ne(this,Is,void 0);ne(this,Wn,void 0);Z(this,Wn,!1),Z(this,Is,t.defaultOptions),ye(this,Fi,Da).call(this,t.options),Z(this,it,[]),Z(this,Bt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Z(this,ki,t.state||ZC(this.options)),this.state=N(this,ki),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=ef(this.state.data,t,this.options);return ye(this,Zt,kr).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,Zt,kr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n;const r=N(this,rn);return(n=N(this,Dt))==null||n.cancel(t),r?r.then(jt).catch(jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,ki))}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||!g0(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,Dt))==null||r.continue()}onOnline(){var r;const t=N(this,it).find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=N(this,Dt))==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)&&(Z(this,it,N(this,it).filter(r=>r!==t)),N(this,it).length||(N(this,Dt)&&(N(this,Wn)?N(this,Dt).cancel({revert:!0}):N(this,Dt).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,Zt,kr).call(this,{type:"invalidate"})}fetch(t,r){var l,u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(N(this,rn))return(l=N(this,Dt))==null||l.continueRetry(),N(this,rn)}if(t&&ye(this,Fi,Da).call(this,t),!this.options.queryFn){const f=N(this,it).find(p=>p.options.queryFn);f&&ye(this,Fi,Da).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,o={queryKey:this.queryKey,meta:this.meta},i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(Z(this,Wn,!0),n.signal)})};i(o);const a=()=>this.options.queryFn?(Z(this,Wn,!1),this.options.persister?this.options.persister(this.options.queryFn,o,this):this.options.queryFn(o)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),s={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(s),(u=this.options.behavior)==null||u.onFetch(s,this),Z(this,Mi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&ye(this,Zt,kr).call(this,{type:"fetch",meta:(h=s.fetchOptions)==null?void 0:h.meta});const c=f=>{var p,m,_,w;al(f)&&f.silent||ye(this,Zt,kr).call(this,{type:"error",error:f}),al(f)||((m=(p=N(this,Bt).config).onError)==null||m.call(p,f,this),(w=(_=N(this,Bt).config).onSettled)==null||w.call(_,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Z(this,Dt,_0({fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var p,m,_,w;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}`),c(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(m=(p=N(this,Bt).config).onSuccess)==null||m.call(p,f,this),(w=(_=N(this,Bt).config).onSettled)==null||w.call(_,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:c,onFail:(f,p)=>{ye(this,Zt,kr).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{ye(this,Zt,kr).call(this,{type:"pause"})},onContinue:()=>{ye(this,Zt,kr).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode})),Z(this,rn,N(this,Dt).promise),N(this,rn)}},ki=new WeakMap,Mi=new WeakMap,Bt=new WeakMap,rn=new WeakMap,Dt=new WeakMap,it=new WeakMap,Is=new WeakMap,Wn=new WeakMap,Fi=new WeakSet,Da=function(t){this.options={...N(this,Is),...t},this.updateGcTime(this.options.gcTime)},Zt=new WeakSet,kr=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:wu(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 o=t.error;return al(o)&&o.revert&&N(this,Mi)?{...N(this,Mi),fetchStatus:"idle"}:{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,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})})},Hm);function ZC(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 cr,qm,e1=(qm=class extends fo{constructor(t={}){super();ne(this,cr,void 0);this.config=t,Z(this,cr,new Map)}build(t,r,n){const o=r.queryKey,i=r.queryHash??Wf(o,r);let a=this.get(i);return a||(a=new JC({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){N(this,cr).has(t.queryHash)||(N(this,cr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=N(this,cr).get(t.queryHash);r&&(t.destroy(),r===t&&N(this,cr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,cr).get(t)}getAll(){return[...N(this,cr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>pm(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>pm(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()})})}},cr=new WeakMap,qm),lr,Ls,Lt,Bi,fr,Jr,Gm,t1=(Gm=class extends b0{constructor(t){super();ne(this,fr);ne(this,lr,void 0);ne(this,Ls,void 0);ne(this,Lt,void 0);ne(this,Bi,void 0);this.mutationId=t.mutationId,Z(this,Ls,t.defaultOptions),Z(this,Lt,t.mutationCache),Z(this,lr,[]),this.state=t.state||w0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...N(this,Ls),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,lr).includes(t)||(N(this,lr).push(t),this.clearGcTimeout(),N(this,Lt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Z(this,lr,N(this,lr).filter(r=>r!==t)),this.scheduleGc(),N(this,Lt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,lr).length||(this.state.status==="pending"?this.scheduleGc():N(this,Lt).remove(this))}continue(){var t;return((t=N(this,Bi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,s,c,l,u,d,h,f,p,m,_,w,v,b,A,S,P,R;const r=()=>(Z(this,Bi,_0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,k)=>{ye(this,fr,Jr).call(this,{type:"failed",failureCount:L,error:k})},onPause:()=>{ye(this,fr,Jr).call(this,{type:"pause"})},onContinue:()=>{ye(this,fr,Jr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),N(this,Bi).promise),n=this.state.status==="pending";try{if(!n){ye(this,fr,Jr).call(this,{type:"pending",variables:t}),await((i=(o=N(this,Lt).config).onMutate)==null?void 0:i.call(o,t,this));const k=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));k!==this.state.context&&ye(this,fr,Jr).call(this,{type:"pending",context:k,variables:t})}const L=await r();return await((l=(c=N(this,Lt).config).onSuccess)==null?void 0:l.call(c,L,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,L,t,this.state.context)),await((f=(h=N(this,Lt).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,fr,Jr).call(this,{type:"success",data:L}),L}catch(L){try{throw await((w=(_=N(this,Lt).config).onError)==null?void 0:w.call(_,L,t,this.state.context,this)),await((b=(v=this.options).onError)==null?void 0:b.call(v,L,t,this.state.context)),await((S=(A=N(this,Lt).config).onSettled)==null?void 0:S.call(A,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,fr,Jr).call(this,{type:"error",error:L})}}}},lr=new WeakMap,Ls=new WeakMap,Lt=new WeakMap,Bi=new WeakMap,fr=new WeakSet,Jr=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:!wu(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,lr).forEach(n=>{n.onMutationUpdate(t)}),N(this,Lt).notify({mutation:this,type:"updated",action:t})})},Gm);function w0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ut,ks,zn,Vm,r1=(Vm=class extends fo{constructor(t={}){super();ne(this,Ut,void 0);ne(this,ks,void 0);ne(this,zn,void 0);this.config=t,Z(this,Ut,[]),Z(this,ks,0)}build(t,r,n){const o=new t1({mutationCache:this,mutationId:++oa(this,ks)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){N(this,Ut).push(t),this.notify({type:"added",mutation:t})}remove(t){Z(this,Ut,N(this,Ut).filter(r=>r!==t)),this.notify({type:"removed",mutation:t})}clear(){Ke.batch(()=>{N(this,Ut).forEach(t=>{this.remove(t)})})}getAll(){return N(this,Ut)}find(t){const r={exact:!0,...t};return N(this,Ut).find(n=>mm(r,n))}findAll(t={}){return N(this,Ut).filter(r=>mm(t,r))}notify(t){Ke.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){return Z(this,zn,(N(this,zn)??Promise.resolve()).then(()=>{const t=N(this,Ut).filter(r=>r.state.isPaused);return Ke.batch(()=>t.reduce((r,n)=>r.then(()=>n.continue().catch(jt)),Promise.resolve()))}).then(()=>{Z(this,zn,void 0)})),N(this,zn)}},Ut=new WeakMap,ks=new WeakMap,zn=new WeakMap,Vm);function n1(e){return{onFetch:(t,r)=>{const n=async()=>{var p,m,_,w,v;const o=t.options,i=(_=(m=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:_.direction,a=((w=t.state.data)==null?void 0:w.pages)||[],s=((v=t.state.data)==null?void 0:v.pageParams)||[],c={pages:[],pageParams:[]};let l=!1;const u=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,A,S)=>{if(l)return Promise.reject();if(A==null&&b.pages.length)return Promise.resolve(b);const P={queryKey:t.queryKey,pageParam:A,direction:S?"backward":"forward",meta:t.options.meta};u(P);const R=await d(P),{maxPages:L}=t.options,k=S?zC:WC;return{pages:k(b.pages,R,L),pageParams:k(b.pageParams,A,L)}};let f;if(i&&a.length){const b=i==="backward",A=b?i1:Em,S={pages:a,pageParams:s},P=A(o,S);f=await h(S,P,b)}else{f=await h(c,s[0]??o.initialPageParam);const b=e??a.length;for(let A=1;A<b;A++){const S=Em(o,f);f=await h(f,S)}}return f};t.options.persister?t.fetchFn=()=>{var o,i;return(i=(o=t.options).persister)==null?void 0:i.call(o,n,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=n}}}function Em(e,{pages:t,pageParams:r}){const n=t.length-1;return e.getNextPageParam(t[n],t,r[n],r)}function i1(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,nn,on,Di,Ui,sn,$i,ji,Wm,o1=(Wm=class{constructor(e={}){ne(this,Ye,void 0);ne(this,nn,void 0);ne(this,on,void 0);ne(this,Di,void 0);ne(this,Ui,void 0);ne(this,sn,void 0);ne(this,$i,void 0);ne(this,ji,void 0);Z(this,Ye,e.queryCache||new e1),Z(this,nn,e.mutationCache||new r1),Z(this,on,e.defaultOptions||{}),Z(this,Di,new Map),Z(this,Ui,new Map),Z(this,sn,0)}mount(){oa(this,sn)._++,N(this,sn)===1&&(Z(this,$i,Ja.subscribe(()=>{Ja.isFocused()&&(this.resumePausedMutations(),N(this,Ye).onFocus())})),Z(this,ji,As.subscribe(()=>{As.isOnline()&&(this.resumePausedMutations(),N(this,Ye).onOnline())})))}unmount(){var e,t;oa(this,sn)._--,N(this,sn)===0&&((e=N(this,$i))==null||e.call(this),Z(this,$i,void 0),(t=N(this,ji))==null||t.call(this),Z(this,ji,void 0))}isFetching(e){return N(this,Ye).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,nn).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}),o=n==null?void 0:n.state.data,i=VC(t,o);if(typeof i>"u")return;const a=this.defaultQueryOptions({queryKey:e});return N(this,Ye).build(this,a).setData(i,{...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(o=>{o.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=Ke.batch(()=>N(this,Ye).findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(jt).catch(jt)}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(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch(jt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(jt)}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(jt).catch(jt)}fetchInfiniteQuery(e){return e.behavior=n1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jt).catch(jt)}resumePausedMutations(){return N(this,nn).resumePausedMutations()}getQueryCache(){return N(this,Ye)}getMutationCache(){return N(this,nn)}getDefaultOptions(){return N(this,on)}setDefaultOptions(e){Z(this,on,e)}setQueryDefaults(e,t){N(this,Di).set(xs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,Di).values()];let r={};return t.forEach(n=>{Os(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){N(this,Ui).set(xs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,Ui).values()];let r={};return t.forEach(n=>{Os(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...N(this,on).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Wf(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,on).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,Ye).clear(),N(this,nn).clear()}},Ye=new WeakMap,nn=new WeakMap,on=new WeakMap,Di=new WeakMap,Ui=new WeakMap,sn=new WeakMap,$i=new WeakMap,ji=new WeakMap,Wm),Ot,De,Hi,pt,Qn,qi,hr,Ms,Gi,Vi,Yn,Kn,an,Xn,Jn,ys,Fs,tf,Bs,rf,Ds,nf,Us,of,$s,sf,js,af,Hs,uf,lu,S0,zm,s1=(zm=class extends fo{constructor(t,r){super();ne(this,Jn);ne(this,Fs);ne(this,Bs);ne(this,Ds);ne(this,Us);ne(this,$s);ne(this,js);ne(this,Hs);ne(this,lu);ne(this,Ot,void 0);ne(this,De,void 0);ne(this,Hi,void 0);ne(this,pt,void 0);ne(this,Qn,void 0);ne(this,qi,void 0);ne(this,hr,void 0);ne(this,Ms,void 0);ne(this,Gi,void 0);ne(this,Vi,void 0);ne(this,Yn,void 0);ne(this,Kn,void 0);ne(this,an,void 0);ne(this,Xn,void 0);Z(this,De,void 0),Z(this,Hi,void 0),Z(this,pt,void 0),Z(this,Xn,new Set),Z(this,Ot,t),this.options=r,Z(this,hr,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(N(this,De).addObserver(this),_m(N(this,De),this.options)&&ye(this,Jn,ys).call(this),ye(this,Us,of).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cf(N(this,De),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cf(N(this,De),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ye(this,$s,sf).call(this),ye(this,js,af).call(this),N(this,De).removeObserver(this)}setOptions(t,r){const n=this.options,o=N(this,De);if(this.options=N(this,Ot).defaultQueryOptions(t),Xa(n,this.options)||N(this,Ot).getQueryCache().notify({type:"observerOptionsUpdated",query:N(this,De),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,Hs,uf).call(this);const i=this.hasListeners();i&&bm(N(this,De),o,this.options,n)&&ye(this,Jn,ys).call(this),this.updateResult(r),i&&(N(this,De)!==o||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&ye(this,Fs,tf).call(this);const a=ye(this,Bs,rf).call(this);i&&(N(this,De)!==o||this.options.enabled!==n.enabled||a!==N(this,an))&&ye(this,Ds,nf).call(this,a)}getOptimisticResult(t){const r=N(this,Ot).getQueryCache().build(N(this,Ot),t),n=this.createResult(r,t);return u1(this,n)&&(Z(this,pt,n),Z(this,qi,this.options),Z(this,Qn,N(this,De).state)),n}getCurrentResult(){return N(this,pt)}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(N(this,Xn).add(n),t[n])})}),r}getCurrentQuery(){return N(this,De)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=N(this,Ot).defaultQueryOptions(t),n=N(this,Ot).getQueryCache().build(N(this,Ot),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return ye(this,Jn,ys).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),N(this,pt)))}createResult(t,r){var P;const n=N(this,De),o=this.options,i=N(this,pt),a=N(this,Qn),s=N(this,qi),l=t!==n?t.state:N(this,Hi),{state:u}=t;let{error:d,errorUpdatedAt:h,fetchStatus:f,status:p}=u,m=!1,_;if(r._optimisticResults){const R=this.hasListeners(),L=!R&&_m(t,r),k=R&&bm(t,n,r,o);(L||k)&&(f=wu(t.options.networkMode)?"fetching":"paused",u.dataUpdatedAt||(p="pending")),r._optimisticResults==="isRestoring"&&(f="idle")}if(r.select&&typeof u.data<"u")if(i&&u.data===(a==null?void 0:a.data)&&r.select===N(this,Ms))_=N(this,Gi);else try{Z(this,Ms,r.select),_=r.select(u.data),_=ef(i==null?void 0:i.data,_,r),Z(this,Gi,_),Z(this,hr,null)}catch(R){Z(this,hr,R)}else _=u.data;if(typeof r.placeholderData<"u"&&typeof _>"u"&&p==="pending"){let R;if(i!=null&&i.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))R=i.data;else if(R=typeof r.placeholderData=="function"?r.placeholderData((P=N(this,Vi))==null?void 0:P.state.data,N(this,Vi)):r.placeholderData,r.select&&typeof R<"u")try{R=r.select(R),Z(this,hr,null)}catch(L){Z(this,hr,L)}typeof R<"u"&&(p="success",_=ef(i==null?void 0:i.data,R,r),m=!0)}N(this,hr)&&(d=N(this,hr),_=N(this,Gi),h=Date.now(),p="error");const w=f==="fetching",v=p==="pending",b=p==="error",A=v&&w;return{status:p,fetchStatus:f,isPending:v,isSuccess:p==="success",isError:b,isInitialLoading:A,isLoading:A,data:_,dataUpdatedAt:u.dataUpdatedAt,error:d,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:w,isRefetching:w&&!v,isLoadingError:b&&u.dataUpdatedAt===0,isPaused:f==="paused",isPlaceholderData:m,isRefetchError:b&&u.dataUpdatedAt!==0,isStale:zf(t,r),refetch:this.refetch}}updateResult(t){const r=N(this,pt),n=this.createResult(N(this,De),this.options);if(Z(this,Qn,N(this,De).state),Z(this,qi,this.options),Xa(n,r))return;N(this,Qn).data!==void 0&&Z(this,Vi,N(this,De)),Z(this,pt,n);const o={},i=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!N(this,Xn).size)return!0;const c=new Set(s??N(this,Xn));return this.options.throwOnError&&c.add("error"),Object.keys(N(this,pt)).some(l=>{const u=l;return N(this,pt)[u]!==r[u]&&c.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),ye(this,lu,S0).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ye(this,Us,of).call(this)}},Ot=new WeakMap,De=new WeakMap,Hi=new WeakMap,pt=new WeakMap,Qn=new WeakMap,qi=new WeakMap,hr=new WeakMap,Ms=new WeakMap,Gi=new WeakMap,Vi=new WeakMap,Yn=new WeakMap,Kn=new WeakMap,an=new WeakMap,Xn=new WeakMap,Jn=new WeakSet,ys=function(t){ye(this,Hs,uf).call(this);let r=N(this,De).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(jt)),r},Fs=new WeakSet,tf=function(){if(ye(this,$s,sf).call(this),io||N(this,pt).isStale||!Jl(this.options.staleTime))return;const r=g0(N(this,pt).dataUpdatedAt,this.options.staleTime)+1;Z(this,Yn,setTimeout(()=>{N(this,pt).isStale||this.updateResult()},r))},Bs=new WeakSet,rf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(N(this,De)):this.options.refetchInterval)??!1},Ds=new WeakSet,nf=function(t){ye(this,js,af).call(this),Z(this,an,t),!(io||this.options.enabled===!1||!Jl(N(this,an))||N(this,an)===0)&&Z(this,Kn,setInterval(()=>{(this.options.refetchIntervalInBackground||Ja.isFocused())&&ye(this,Jn,ys).call(this)},N(this,an)))},Us=new WeakSet,of=function(){ye(this,Fs,tf).call(this),ye(this,Ds,nf).call(this,ye(this,Bs,rf).call(this))},$s=new WeakSet,sf=function(){N(this,Yn)&&(clearTimeout(N(this,Yn)),Z(this,Yn,void 0))},js=new WeakSet,af=function(){N(this,Kn)&&(clearInterval(N(this,Kn)),Z(this,Kn,void 0))},Hs=new WeakSet,uf=function(){const t=N(this,Ot).getQueryCache().build(N(this,Ot),this.options);if(t===N(this,De))return;const r=N(this,De);Z(this,De,t),Z(this,Hi,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},lu=new WeakSet,S0=function(t){Ke.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(N(this,pt))}),N(this,Ot).getQueryCache().notify({query:N(this,De),type:"observerResultsUpdated"})})},zm);function a1(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function _m(e,t){return a1(e,t)||e.state.dataUpdatedAt>0&&cf(e,t,t.refetchOnMount)}function cf(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&zf(e,t)}return!1}function bm(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&zf(e,r)}function zf(e,t){return e.isStaleByTime(t.staleTime)}function u1(e,t){return!Xa(e.getCurrentResult(),t)}var un,Et,$t,Fr,Wi,Ua,qs,lf,Qm,c1=(Qm=class extends fo{constructor(t,r){super();ne(this,Wi);ne(this,qs);ne(this,un,void 0);ne(this,Et,void 0);ne(this,$t,void 0);ne(this,Fr,void 0);Z(this,Et,void 0),Z(this,un,t),this.setOptions(r),this.bindMethods(),ye(this,Wi,Ua).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,un).defaultMutationOptions(t),Xa(r,this.options)||N(this,un).getMutationCache().notify({type:"observerOptionsUpdated",mutation:N(this,$t),observer:this}),(n=N(this,$t))==null||n.setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=N(this,$t))==null||t.removeObserver(this)}onMutationUpdate(t){ye(this,Wi,Ua).call(this),ye(this,qs,lf).call(this,t)}getCurrentResult(){return N(this,Et)}reset(){Z(this,$t,void 0),ye(this,Wi,Ua).call(this),ye(this,qs,lf).call(this)}mutate(t,r){var n;return Z(this,Fr,r),(n=N(this,$t))==null||n.removeObserver(this),Z(this,$t,N(this,un).getMutationCache().build(N(this,un),this.options)),N(this,$t).addObserver(this),N(this,$t).execute(t)}},un=new WeakMap,Et=new WeakMap,$t=new WeakMap,Fr=new WeakMap,Wi=new WeakSet,Ua=function(){var r;const t=((r=N(this,$t))==null?void 0:r.state)??w0();Z(this,Et,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},qs=new WeakSet,lf=function(t){Ke.batch(()=>{var r,n,o,i,a,s,c,l;N(this,Fr)&&this.hasListeners()&&((t==null?void 0:t.type)==="success"?((n=(r=N(this,Fr)).onSuccess)==null||n.call(r,t.data,N(this,Et).variables,N(this,Et).context),(i=(o=N(this,Fr)).onSettled)==null||i.call(o,t.data,null,N(this,Et).variables,N(this,Et).context)):(t==null?void 0:t.type)==="error"&&((s=(a=N(this,Fr)).onError)==null||s.call(a,t.error,N(this,Et).variables,N(this,Et).context),(l=(c=N(this,Fr)).onSettled)==null||l.call(c,void 0,t.error,N(this,Et).variables,N(this,Et).context))),this.listeners.forEach(u=>{u(N(this,Et))})})},Qm),T0=pe.createContext(void 0),ho=e=>{const t=pe.useContext(T0);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},l1=({client:e,children:t})=>(pe.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),pe.createElement(T0.Provider,{value:e},t)),x0=pe.createContext(!1),f1=()=>pe.useContext(x0);x0.Provider;function h1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var d1=pe.createContext(h1()),p1=()=>pe.useContext(d1);function O0(e,t){return typeof e=="function"?e(...t):!!e}var m1=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},g1=e=>{pe.useEffect(()=>{e.clearReset()},[e])},y1=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&O0(r,[e.error,n]),v1=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},E1=(e,t)=>e.isLoading&&e.isFetching&&!t,_1=(e,t,r)=>(e==null?void 0:e.suspense)&&E1(t,r),b1=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function w1(e,t,r){const n=ho(r),o=f1(),i=p1(),a=n.defaultQueryOptions(e);a._optimisticResults=o?"isRestoring":"optimistic",v1(a),m1(a,i),g1(i);const[s]=pe.useState(()=>new t(n,a)),c=s.getOptimisticResult(a);if(pe.useSyncExternalStore(pe.useCallback(l=>{const u=o?()=>{}:s.subscribe(Ke.batchCalls(l));return s.updateResult(),u},[s,o]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),pe.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),_1(a,c,o))throw b1(a,s,i);if(y1({result:c,errorResetBoundary:i,throwOnError:a.throwOnError,query:s.getCurrentQuery()}))throw c.error;return a.notifyOnChangeProps?c:s.trackResult(c)}function A0(e,t){return w1(e,s1,t)}function fn(e,t){const r=ho(t),[n]=pe.useState(()=>new c1(r,e));pe.useEffect(()=>{n.setOptions(e)},[n,e]);const o=pe.useSyncExternalStore(pe.useCallback(a=>n.subscribe(Ke.batchCalls(a)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=pe.useCallback((a,s)=>{n.mutate(a,s).catch(S1)},[n]);if(o.error&&O0(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function S1(){}var ve={context:void 0,registry:void 0};function vs(e){ve.context=e}var T1=(e,t)=>e===t,Cs=Symbol("solid-proxy"),Qf=Symbol("solid-track"),x1=Symbol("solid-dev-component"),Za={equals:T1},C0=I0,jr=1,eu=2,R0={owned:null,cleanups:null,context:null,owner:null},ul={},Ue=null,cl=null,Me=null,mt=null,Ur=null,Su=0,[O1,RN]=bt(!1);function hn(e,t){const r=Me,n=Ue,o=e.length===0,i=o?R0:{owned:null,cleanups:null,context:null,owner:t===void 0?n:t},a=o?e:()=>e(()=>Xe(()=>xu(i)));Ue=i,Me=null;try{return yr(a,!0)}finally{Me=r,Ue=n}}function bt(e,t){t=t?Object.assign({},Za,t):Za;const r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=o=>(typeof o=="function"&&(o=o(r.value)),N0(r,o));return[P0.bind(r),n]}function ff(e,t,r){const n=Tu(e,t,!0,jr);po(n)}function dn(e,t,r){const n=Tu(e,t,!1,jr);po(n)}function Yf(e,t,r){C0=$1;const n=Tu(e,t,!1,jr);(!r||!r.render)&&(n.user=!0),Ur?Ur.push(n):po(n)}function St(e,t,r){r=r?Object.assign({},Za,r):Za;const n=Tu(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=r.equals||void 0,po(n),P0.bind(n)}function A1(e,t,r){let n,o,i;arguments.length===2&&typeof t=="object"||arguments.length===1?(n=!0,o=e,i=t||{}):(n=e,o=t,i=r||{});let a=null,s=ul,c=null,l=!1,u="initialValue"in i,d=typeof n=="function"&&St(n);const h=new Set,[f,p]=(i.storage||bt)(i.initialValue),[m,_]=bt(void 0),[w,v]=bt(void 0,{equals:!1}),[b,A]=bt(u?"ready":"unresolved");if(ve.context){c=`${ve.context.id}${ve.context.count++}`;let k;i.ssrLoadFrom==="initial"?s=i.initialValue:ve.load&&(k=ve.load(c))&&(s=k[0])}function S(k,q,G,H){return a===k&&(a=null,H!==void 0&&(u=!0),(k===s||q===s)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated(H,{value:q})),s=ul,P(q,G)),q}function P(k,q){yr(()=>{q===void 0&&p(()=>k),A(q!==void 0?"errored":u?"ready":"unresolved"),_(q);for(const G of h.keys())G.decrement();h.clear()},!1)}function R(){const k=B1,q=f(),G=m();if(G!==void 0&&!a)throw G;return Me&&!Me.user&&k&&ff(()=>{w(),a&&(k.resolved||h.has(k)||(k.increment(),h.add(k)))}),q}function L(k=!0){if(k!==!1&&l)return;l=!1;const q=d?d():n;if(q==null||q===!1){S(a,Xe(f));return}const G=s!==ul?s:Xe(()=>o(q,{value:f(),refetching:k}));return typeof G!="object"||!(G&&"then"in G)?(S(a,G,void 0,q),G):(a=G,l=!0,queueMicrotask(()=>l=!1),yr(()=>{A(u?"refreshing":"pending"),v()},!1),G.then(H=>S(G,H,void 0,q),H=>S(G,void 0,k0(H),q)))}return Object.defineProperties(R,{state:{get:()=>b()},error:{get:()=>m()},loading:{get(){const k=b();return k==="pending"||k==="refreshing"}},latest:{get(){if(!u)return R();const k=m();if(k&&!a)throw k;return f()}}}),d?ff(()=>L(!1)):L(!1),[R,{refetch:L,mutate:p}]}function C1(e){return yr(e,!1)}function Xe(e){if(Me===null)return e();const t=Me;Me=null;try{return e()}finally{Me=t}}function R1(e,t,r){const n=Array.isArray(e);let o,i=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(i){i=!1;return}const c=Xe(()=>t(s,o,a));return o=s,c}}function P1(e){Yf(()=>Xe(e))}function Rs(e){return Ue===null||(Ue.cleanups===null?Ue.cleanups=[e]:Ue.cleanups.push(e)),e}function N1(){return Me}function wm(){return Ue}function I1(e,t){const r=Ue,n=Me;Ue=e,Me=null;try{return yr(t,!0)}catch(o){Xf(o)}finally{Ue=r,Me=n}}function L1(e){const t=Me,r=Ue;return Promise.resolve().then(()=>{Me=t,Ue=r;let n;return yr(e,!1),Me=Ue=null,n?n.done:void 0})}function k1(){return[O1,L1]}function M1(e,t){const r=Symbol("context");return{id:r,Provider:j1(r),defaultValue:e}}function F1(e){let t;return(t=M0(Ue,e.id))!==void 0?t:e.defaultValue}function Kf(e){const t=St(e),r=St(()=>hf(t()));return r.toArray=()=>{const n=r();return Array.isArray(n)?n:n!=null?[n]:[]},r}var B1;function P0(){if(this.sources&&this.state)if(this.state===jr)po(this);else{const e=mt;mt=null,yr(()=>ru(this),!1),mt=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 N0(e,t,r){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&yr(()=>{for(let o=0;o<e.observers.length;o+=1){const i=e.observers[o],a=cl&&cl.running;a&&cl.disposed.has(i),(a?!i.tState:!i.state)&&(i.pure?mt.push(i):Ur.push(i),i.observers&&L0(i)),a||(i.state=jr)}if(mt.length>1e6)throw mt=[],new Error},!1)),t}function po(e){if(!e.fn)return;xu(e);const t=Ue,r=Me,n=Su;Me=Ue=e,D1(e,e.value,n),Me=r,Ue=t}function D1(e,t,r){let n;try{n=e.fn(t)}catch(o){return e.pure&&(e.state=jr,e.owned&&e.owned.forEach(xu),e.owned=null),e.updatedAt=r+1,Xf(o)}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?N0(e,n):e.value=n,e.updatedAt=r)}function Tu(e,t,r,n=jr,o){const i={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!==R0&&(Ue.owned?Ue.owned.push(i):Ue.owned=[i]),i}function tu(e){if(e.state===0)return;if(e.state===eu)return ru(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<Su);)e.state&&t.push(e);for(let r=t.length-1;r>=0;r--)if(e=t[r],e.state===jr)po(e);else if(e.state===eu){const n=mt;mt=null,yr(()=>ru(e,t[0]),!1),mt=n}}function yr(e,t){if(mt)return e();let r=!1;t||(mt=[]),Ur?r=!0:Ur=[],Su++;try{const n=e();return U1(r),n}catch(n){r||(Ur=null),mt=null,Xf(n)}}function U1(e){if(mt&&(I0(mt),mt=null),e)return;const t=Ur;Ur=null,t.length&&yr(()=>C0(t),!1)}function I0(e){for(let t=0;t<e.length;t++)tu(e[t])}function $1(e){let t,r=0;for(t=0;t<e.length;t++){const n=e[t];n.user?e[r++]=n:tu(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);vs()}for(t=0;t<r;t++)tu(e[t])}function ru(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){const n=e.sources[r];if(n.sources){const o=n.state;o===jr?n!==t&&(!n.updatedAt||n.updatedAt<Su)&&tu(n):o===eu&&ru(n,t)}}}function L0(e){for(let t=0;t<e.observers.length;t+=1){const r=e.observers[t];r.state||(r.state=eu,r.pure?mt.push(r):Ur.push(r),r.observers&&L0(r))}}function xu(e){let t;if(e.sources)for(;e.sources.length;){const r=e.sources.pop(),n=e.sourceSlots.pop(),o=r.observers;if(o&&o.length){const i=o.pop(),a=r.observerSlots.pop();n<o.length&&(i.sourceSlots[a]=n,o[n]=i,r.observerSlots[n]=a)}}if(e.owned){for(t=e.owned.length-1;t>=0;t--)xu(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 Xf(e,t=Ue){throw k0(e)}function M0(e,t){return e?e.context&&e.context[t]!==void 0?e.context[t]:M0(e.owner,t):void 0}function hf(e){if(typeof e=="function"&&!e.length)return hf(e());if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++){const n=hf(e[r]);Array.isArray(n)?t.push.apply(t,n):t.push(n)}return t}return e}function j1(e,t){return function(n){let o;return dn(()=>o=Xe(()=>(Ue.context={[e]:n.value},Kf(()=>n.children))),void 0),o}}var df=Symbol("fallback");function nu(e){for(let t=0;t<e.length;t++)e[t]()}function H1(e,t,r={}){let n=[],o=[],i=[],a=0,s=t.length>1?[]:null;return Rs(()=>nu(i)),()=>{let c=e()||[],l,u;return c[Qf],Xe(()=>{let h=c.length,f,p,m,_,w,v,b,A,S;if(h===0)a!==0&&(nu(i),i=[],n=[],o=[],a=0,s&&(s=[])),r.fallback&&(n=[df],o[0]=hn(P=>(i[0]=P,r.fallback())),a=1);else if(a===0){for(o=new Array(h),u=0;u<h;u++)n[u]=c[u],o[u]=hn(d);a=h}else{for(m=new Array(h),_=new Array(h),s&&(w=new Array(h)),v=0,b=Math.min(a,h);v<b&&n[v]===c[v];v++);for(b=a-1,A=h-1;b>=v&&A>=v&&n[b]===c[A];b--,A--)m[A]=o[b],_[A]=i[b],s&&(w[A]=s[b]);for(f=new Map,p=new Array(A+1),u=A;u>=v;u--)S=c[u],l=f.get(S),p[u]=l===void 0?-1:l,f.set(S,u);for(l=v;l<=b;l++)S=n[l],u=f.get(S),u!==void 0&&u!==-1?(m[u]=o[l],_[u]=i[l],s&&(w[u]=s[l]),u=p[u],f.set(S,u)):i[l]();for(u=v;u<h;u++)u in m?(o[u]=m[u],i[u]=_[u],s&&(s[u]=w[u],s[u](u))):o[u]=hn(d);o=o.slice(0,a=h),n=c.slice(0)}return o});function d(h){if(i[u]=h,s){const[f,p]=bt(u);return s[u]=p,t(c[u],f)}return t(c[u])}}}function q1(e,t,r={}){let n=[],o=[],i=[],a=[],s=0,c;return Rs(()=>nu(i)),()=>{const l=e()||[];return l[Qf],Xe(()=>{if(l.length===0)return s!==0&&(nu(i),i=[],n=[],o=[],s=0,a=[]),r.fallback&&(n=[df],o[0]=hn(d=>(i[0]=d,r.fallback())),s=1),o;for(n[0]===df&&(i[0](),i=[],n=[],o=[],s=0),c=0;c<l.length;c++)c<n.length&&n[c]!==l[c]?a[c](()=>l[c]):c>=n.length&&(o[c]=hn(u));for(;c<n.length;c++)i[c]();return s=a.length=i.length=l.length,n=l.slice(0),o=o.slice(0,s)});function u(d){i[c]=d;const[h,f]=bt(l[c]);return a[c]=f,t(h,c)}}}function F0(e,t){return Xe(()=>e(t||{}))}function Pa(){return!0}var pf={get(e,t,r){return t===Cs?r:e.get(t)},has(e,t){return t===Cs?!0:e.has(t)},set:Pa,deleteProperty:Pa,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Pa,deleteProperty:Pa}},ownKeys(e){return e.keys()}};function ll(e){return(e=typeof e=="function"?e():e)?e:{}}function G1(){for(let e=0,t=this.length;e<t;++e){const r=this[e]();if(r!==void 0)return r}}function B0(...e){let t=!1;for(let i=0;i<e.length;i++){const a=e[i];t=t||!!a&&Cs in a,e[i]=typeof a=="function"?(t=!0,St(a)):a}if(t)return new Proxy({get(i){for(let a=e.length-1;a>=0;a--){const s=ll(e[a])[i];if(s!==void 0)return s}},has(i){for(let a=e.length-1;a>=0;a--)if(i in ll(e[a]))return!0;return!1},keys(){const i=[];for(let a=0;a<e.length;a++)i.push(...Object.keys(ll(e[a])));return[...new Set(i)]}},pf);const r={},n={},o=new Set;for(let i=e.length-1;i>=0;i--){const a=e[i];if(!a)continue;const s=Object.getOwnPropertyNames(a);for(let c=0,l=s.length;c<l;c++){const u=s[c];if(u==="__proto__"||u==="constructor")continue;const d=Object.getOwnPropertyDescriptor(a,u);if(!o.has(u))d.get?(o.add(u),Object.defineProperty(r,u,{enumerable:!0,configurable:!0,get:G1.bind(n[u]=[d.get.bind(a)])})):(d.value!==void 0&&o.add(u),r[u]=d.value);else{const h=n[u];h?d.get?h.push(d.get.bind(a)):d.value!==void 0&&h.push(()=>d.value):r[u]===void 0&&(r[u]=d.value)}}}return r}function D0(e,...t){if(Cs in e){const o=new Set(t.length>1?t.flat():t[0]),i=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)}},pf));return i.push(new Proxy({get(a){return o.has(a)?void 0:e[a]},has(a){return o.has(a)?!1:a in e},keys(){return Object.keys(e).filter(a=>!o.has(a))}},pf)),i}const r={},n=t.map(()=>({}));for(const o of Object.getOwnPropertyNames(e)){const i=Object.getOwnPropertyDescriptor(e,o),a=!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable;let s=!1,c=0;for(const l of t)l.includes(o)&&(s=!0,a?n[c][o]=i.value:Object.defineProperty(n[c],o,i)),++c;s||(a?r[o]=i.value:Object.defineProperty(r,o,i))}return[...n,r]}function V1(e){let t,r;const n=o=>{const i=ve.context;if(i){const[s,c]=bt();ve.count||(ve.count=0),ve.count++,(r||(r=e())).then(l=>{vs(i),ve.count--,c(()=>l.default),vs()}),t=s}else if(!t){const[s]=A1(()=>(r||(r=e())).then(c=>c.default));t=s}let a;return St(()=>(a=t())&&Xe(()=>{if(!i)return a(o);const s=ve.context;vs(i);const c=a(o);return vs(s),c}))};return n.preload=()=>r||((r=e()).then(o=>t=()=>o.default),r),n}var W1=0;function z1(){const e=ve.context;return e?`${e.id}${e.count++}`:`cl-${W1++}`}var U0=e=>`Stale read from <${e}>.`;function Q1(e){const t="fallback"in e&&{fallback:()=>e.fallback};return St(H1(()=>e.each,e.children,t||void 0))}function Y1(e){const t="fallback"in e&&{fallback:()=>e.fallback};return St(q1(()=>e.each,e.children,t||void 0))}function K1(e){const t=e.keyed,r=St(()=>e.when,void 0,{equals:(n,o)=>t?n===o:!n==!o});return St(()=>{const n=r();if(n){const o=e.children;return typeof o=="function"&&o.length>0?Xe(()=>o(t?n:()=>{if(!Xe(r))throw U0("Show");return e.when})):o}return e.fallback},void 0,void 0)}function X1(e){let t=!1;const r=(i,a)=>i[0]===a[0]&&(t?i[1]===a[1]:!i[1]==!a[1])&&i[2]===a[2],n=Kf(()=>e.children),o=St(()=>{let i=n();Array.isArray(i)||(i=[i]);for(let a=0;a<i.length;a++){const s=i[a].when;if(s)return t=!!i[a].keyed,[a,s,i[a]]}return[-1]},void 0,{equals:r});return St(()=>{const[i,a,s]=o();if(i<0)return e.fallback;const c=s.children;return typeof c=="function"&&c.length>0?Xe(()=>c(t?a:()=>{if(Xe(o)[0]!==i)throw U0("Match");return s.when})):c},void 0,void 0)}function J1(e){return e}var Z1=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],eR=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Z1]),tR=new Set(["innerHTML","textContent","innerText","children"]),rR=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),nR=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 iR(e,t){const r=nR[e];return typeof r=="object"?r[t]?r.$:void 0:r}var oR=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),sR=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"]),aR={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function uR(e,t,r){let n=r.length,o=t.length,i=n,a=0,s=0,c=t[o-1].nextSibling,l=null;for(;a<o||s<i;){if(t[a]===r[s]){a++,s++;continue}for(;t[o-1]===r[i-1];)o--,i--;if(o===a){const u=i<n?s?r[s-1].nextSibling:r[i-s]:c;for(;s<i;)e.insertBefore(r[s++],u)}else if(i===s)for(;a<o;)(!l||!l.has(t[a]))&&t[a].remove(),a++;else if(t[a]===r[i-1]&&r[s]===t[o-1]){const u=t[--o].nextSibling;e.insertBefore(r[s++],t[a++].nextSibling),e.insertBefore(r[--i],u),t[o]=r[i]}else{if(!l){l=new Map;let d=s;for(;d<i;)l.set(r[d],d++)}const u=l.get(t[a]);if(u!=null)if(s<u&&u<i){let d=a,h=1,f;for(;++d<o&&d<i&&!((f=l.get(t[d]))==null||f!==u+h);)h++;if(h>u-s){const p=t[a];for(;s<u;)e.insertBefore(r[s++],p)}else e.replaceChild(r[s++],t[a++])}else a++;else t[a++].remove()}}}var Sm="_$DX_DELEGATE";function cR(e,t,r,n={}){let o;return hn(i=>{o=i,t===document?e():ou(t,e(),t.firstChild?null:void 0,r)},n.owner),()=>{o(),t.textContent=""}}function lR(e,t,r){let n;const o=()=>{const a=document.createElement("template");return a.innerHTML=e,r?a.content.firstChild.firstChild:a.content.firstChild},i=t?()=>Xe(()=>document.importNode(n||(n=o()),!0)):()=>(n||(n=o())).cloneNode(!0);return i.cloneNode=i,i}function $0(e,t=window.document){const r=t[Sm]||(t[Sm]=new Set);for(let n=0,o=e.length;n<o;n++){const i=e[n];r.has(i)||(r.add(i),t.addEventListener(i,vR))}}function iu(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)}function fR(e,t,r,n){n==null?e.removeAttributeNS(t,r):e.setAttributeNS(t,r,n)}function j0(e,t){t==null?e.removeAttribute("class"):e.className=t}function H0(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 o=r[0];e.addEventListener(t,r[0]=i=>o.call(e,r[1],i))}else e.addEventListener(t,r)}function hR(e,t,r={}){const n=Object.keys(t||{}),o=Object.keys(r);let i,a;for(i=0,a=o.length;i<a;i++){const s=o[i];!s||s==="undefined"||t[s]||(Tm(e,s,!1),delete r[s])}for(i=0,a=n.length;i<a;i++){const s=n[i],c=!!t[s];!s||s==="undefined"||r[s]===c||!c||(Tm(e,s,!0),r[s]=c)}return r}function dR(e,t,r){if(!t)return r?iu(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 o,i;for(i in r)t[i]==null&&n.removeProperty(i),delete r[i];for(i in t)o=t[i],o!==r[i]&&(n.setProperty(i,o),r[i]=o);return r}function q0(e,t={},r,n){const o={};return n||dn(()=>o.children=oo(e,t.children,o.children)),dn(()=>t.ref&&t.ref(e)),dn(()=>mR(e,t,r,!0,o,!0)),o}function pR(e,t,r){return Xe(()=>e(t,r))}function ou(e,t,r,n){if(r!==void 0&&!n&&(n=[]),typeof t!="function")return oo(e,t,n,r);dn(o=>oo(e,t(),o,r),n)}function mR(e,t,r,n,o={},i=!1){t||(t={});for(const a in o)if(!(a in t)){if(a==="children")continue;o[a]=xm(e,a,null,o[a],r,i)}for(const a in t){if(a==="children"){n||oo(e,t.children);continue}const s=t[a];o[a]=xm(e,a,s,o[a],r,i)}}function gR(e){let t,r;if(!ve.context||!(t=ve.registry.get(r=ER()))){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 yR(e){return e.toLowerCase().replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function Tm(e,t,r){const n=t.trim().split(/\s+/);for(let o=0,i=n.length;o<i;o++)e.classList.toggle(n[o],r)}function xm(e,t,r,n,o,i){let a,s,c,l,u;if(t==="style")return dR(e,r,n);if(t==="classList")return hR(e,r,n);if(r===n)return n;if(t==="ref")i||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=oR.has(d);if(!h&&n){const f=Array.isArray(n)?n[0]:n;e.removeEventListener(d,f)}(h||r)&&(H0(e,d,r,h),h&&$0([d]))}else if(t.slice(0,5)==="attr:")iu(e,t.slice(5),r);else if((u=t.slice(0,5)==="prop:")||(c=tR.has(t))||!o&&((l=iR(t,e.tagName))||(s=eR.has(t)))||(a=e.nodeName.includes("-")))u&&(t=t.slice(5),s=!0),t==="class"||t==="className"?j0(e,r):a&&!s&&!c?e[yR(t)]=r:e[l||t]=r;else{const d=o&&t.indexOf(":")>-1&&aR[t.split(":")[0]];d?fR(e,d,t,r):iu(e,rR[t]||t,r)}return r}function vR(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 o=r[`${t}Data`];if(o!==void 0?n.call(r,o,e):n.call(r,e),e.cancelBubble)return}r=r._$host||r.parentNode||r.host}}function oo(e,t,r,n,o){if(ve.context){!r&&(r=[...e.childNodes]);let s=[];for(let c=0;c<r.length;c++){const l=r[c];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 i=typeof t,a=n!==void 0;if(e=a&&r[0]&&r[0].parentNode||e,i==="string"||i==="number"){if(ve.context)return r;if(i==="number"&&(t=t.toString()),a){let s=r[0];s&&s.nodeType===3?s.data=t:s=document.createTextNode(t),r=Oi(e,r,n,s)}else r!==""&&typeof r=="string"?r=e.firstChild.data=t:r=e.textContent=t}else if(t==null||i==="boolean"){if(ve.context)return r;r=Oi(e,r,n)}else{if(i==="function")return dn(()=>{let s=t();for(;typeof s=="function";)s=s();r=oo(e,s,r,n)}),()=>r;if(Array.isArray(t)){const s=[],c=r&&Array.isArray(r);if(mf(s,t,r,o))return dn(()=>r=oo(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=Oi(e,r,n),a)return r}else c?r.length===0?Om(e,s,n):uR(e,r,s):(r&&Oi(e),Om(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=Oi(e,r,n,t);Oi(e,r,null,t)}else r==null||r===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);r=t}}return r}function mf(e,t,r,n){let o=!1;for(let i=0,a=t.length;i<a;i++){let s=t[i],c=r&&r[i],l;if(!(s==null||s===!0||s===!1))if((l=typeof s)=="object"&&s.nodeType)e.push(s);else if(Array.isArray(s))o=mf(e,s,c)||o;else if(l==="function")if(n){for(;typeof s=="function";)s=s();o=mf(e,Array.isArray(s)?s:[s],Array.isArray(c)?c:[c])||o}else e.push(s),o=!0;else{const u=String(s);c&&c.nodeType===3&&c.data===u?e.push(c):e.push(document.createTextNode(u))}}return o}function Om(e,t,r=null){for(let n=0,o=t.length;n<o;n++)e.insertBefore(t[n],r)}function Oi(e,t,r,n){if(r===void 0)return e.textContent="";const o=n||document.createTextNode("");if(t.length){let i=!1;for(let a=t.length-1;a>=0;a--){const s=t[a];if(o!==s){const c=s.parentNode===e;!i&&!a?c?e.replaceChild(o,s):e.insertBefore(o,r):c&&s.remove()}else i=!0}}else e.insertBefore(o,r);return[o]}function ER(){const e=ve.context;return`${e.id}${e.count++}`}var _R="http://www.w3.org/2000/svg";function G0(e,t=!1){return t?document.createElementNS(_R,e):document.createElement(e)}function bR(e){const{useShadow:t}=e,r=document.createTextNode(""),n=()=>e.mount||document.body,o=wm();let i,a=!!ve.context;return Yf(()=>{a&&(wm().user=a=!1),i||(i=I1(o,()=>St(()=>e.children)));const s=n();if(s instanceof HTMLHeadElement){const[c,l]=bt(!1),u=()=>l(!0);hn(d=>ou(s,()=>c()?d():i(),null)),Rs(u)}else{const c=G0(e.isSVG?"g":"div",e.isSVG),l=t&&c.attachShadow?c.attachShadow({mode:"open"}):c;Object.defineProperty(c,"_$host",{get(){return r.parentNode},configurable:!0}),ou(l,i),s.appendChild(c),e.ref&&e.ref(c),Rs(()=>s.removeChild(c))}},void 0,{render:!a}),r}function wR(e){const[t,r]=D0(e,["component"]),n=St(()=>t.component);return St(()=>{const o=n();switch(typeof o){case"function":return Object.assign(o,{[x1]:!0}),Xe(()=>o(r));case"string":const i=sR.has(o),a=ve.context?gR():G0(o,i);return q0(a,r,i),a}})}var zi,Gs,Vs,Ws,Zn,Qi,Yi,Ki,Xi,Ji,zs,Ym,SR=(Ym=class{constructor(e){ne(this,zi,void 0);ne(this,Gs,void 0);ne(this,Vs,void 0);ne(this,Ws,void 0);ne(this,Zn,!1);ne(this,Qi,void 0);ne(this,Yi,void 0);ne(this,Ki,void 0);ne(this,Xi,void 0);ne(this,Ji,void 0);ne(this,zs,void 0);const{client:t,queryFlavor:r,version:n,onlineManager:o,buttonPosition:i,position:a,initialIsOpen:s,errorTypes:c}=e;Z(this,zi,bt(t)),Z(this,Vs,r),Z(this,Ws,n),Z(this,Gs,o),Z(this,Qi,bt(i)),Z(this,Yi,bt(a)),Z(this,Ki,bt(s)),Z(this,Xi,bt(c))}setButtonPosition(e){N(this,Qi)[1](e)}setPosition(e){N(this,Yi)[1](e)}setInitialIsOpen(e){N(this,Ki)[1](e)}setErrorTypes(e){N(this,Xi)[1](e)}setClient(e){N(this,zi)[1](e)}mount(e){if(N(this,Zn))throw new Error("Devtools is already mounted");const t=cR(()=>{const[r]=N(this,Qi),[n]=N(this,Yi),[o]=N(this,Ki),[i]=N(this,Xi),[a]=N(this,zi);let s;N(this,Ji)?s=N(this,Ji):(s=V1(()=>Promise.resolve().then(()=>require("./4TNE5QTO-988be988.js"))),Z(this,Ji,s));const c=this;return F0(s,B0({get queryFlavor(){return N(c,Vs)},get version(){return N(c,Ws)},get onlineManager(){return N(c,Gs)}},{get client(){return a()},get buttonPosition(){return r()},get position(){return n()},get initialIsOpen(){return o()},get errorTypes(){return i()}}))},e);Z(this,Zn,!0),Z(this,zs,t)}unmount(){var e;if(!N(this,Zn))throw new Error("Devtools is not mounted");(e=N(this,zs))==null||e.call(this),Z(this,Zn,!1)}},zi=new WeakMap,Gs=new WeakMap,Vs=new WeakMap,Ws=new WeakMap,Zn=new WeakMap,Qi=new WeakMap,Yi=new WeakMap,Ki=new WeakMap,Xi=new WeakMap,Ji=new WeakMap,zs=new WeakMap,Ym);function TR(e){const t=ho(),r=e.client||t,n=$.useRef(null),{buttonPosition:o,position:i,initialIsOpen:a,errorTypes:s}=e,[c]=$.useState(new SR({client:r,queryFlavor:"React Query",version:"5",onlineManager:As,buttonPosition:o,position:i,initialIsOpen:a,errorTypes:s}));return $.useEffect(()=>{c.setClient(r)},[r,c]),$.useEffect(()=>{o&&c.setButtonPosition(o)},[o,c]),$.useEffect(()=>{i&&c.setPosition(i)},[i,c]),$.useEffect(()=>{c.setInitialIsOpen(a||!1)},[a,c]),$.useEffect(()=>{c.setErrorTypes(s||[])},[s,c]),$.useEffect(()=>(n.current&&c.mount(n.current),()=>{c.unmount()}),[c]),$.createElement("div",{className:"tsqd-parent-container",ref:n})}var xR=process.env.NODE_ENV!=="development"?function(){return null}:TR;const OR=new o1({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:1e3*60}}}),AR=({showDevTools:e,children:t})=>x.jsxs(l1,{client:OR,children:[t,e&&x.jsx(xR,{initialIsOpen:!1})]});const fl="joinCommunityButton",Jf=({isMember:e=!1,isShort:t=!1,functions:{join:r,leave:n}={join:()=>{},leave:()=>{}}})=>{const o=Oe(),i=$.useContext($r),a=i&&typeof i.id=="string",[s,c]=$.useState(e),[l,u]=$.useState(e?"joined":"notJoined");$.useEffect(()=>{l==="joining"?u("joined"):l==="leaving"&&u("notJoined")},[s]);const d={},h={};return s&&l!=="leaving"&&(d["data-hover-text"]=o.formatMessage({id:`${fl}_leave`}),d["aria-label"]=o.formatMessage({id:`${fl}_member_aria`}),h["aria-hidden"]="true"),x.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?(u("leaving"),typeof n=="function"&&await n()):(u("joining"),typeof r=="function"&&await r()),c(!s))},className:ue("join-community-button",l,{active:l==="joining"}),disabled:!a,...d,children:x.jsx("span",{className:"text",...h,children:o.formatMessage({id:`${fl}${["joining","leaving"].includes(l)?`_${l}`:s?"_member":t?"_short":""}`})})})};const hl="communityDetails_",CR=({isMember:e=!1,slug:t,members:{number:r,data:n}={number:void 0,data:[]},className:o="",...i})=>{const a=Oe(),s=r||(n==null?void 0:n.length)||0;return x.jsxs("div",{className:ue("community-details",o),children:[x.jsx(Qa,{}),x.jsxs("div",{className:"member-details",children:[x.jsxs("div",{className:"top",children:[x.jsxs("h3",{children:[a.formatMessage({id:`${hl}members`}),x.jsx("span",{className:"count",children:s})]}),x.jsx("p",{className:"text-small",children:x.jsx("a",{href:`/communities/${t}/members`,children:a.formatMessage({id:`${hl}viewAll`})})})]}),x.jsx(m0,{contributors:{total:r,data:n!=null&&n.length?n.reverse():[{},{},{},{},{}]},styling:{size:"medium",showGap:!0,showPlaceholders:s===0},cutoff:5})]}),x.jsx(Jf,{isMember:e,...i}),e&&x.jsx(ze,{variant:"primary",icon:{icon:"plus"},styling:{fullWidth:!0},children:a.formatMessage({id:`${hl}invite`})})]})};const RR=({breadcrumbs:e,className:t=""})=>{const r=Oe();return x.jsxs(x.Fragment,{children:[x.jsx(lt,{element:"p",children:r.formatMessage({id:"breadcrumbs_label"})}),x.jsx("ul",{className:ue("breadcrumbs text-small",t),children:e.map(({text:n,href:o,current:i=!1},a)=>x.jsxs("li",{children:[i&&x.jsx(lt,{element:"span",children:r.formatMessage({id:"breadcrumbs_currentPage"})}),x.jsx(Ff,{href:i?void 0:o,children:n})]},`${window.btoa(n)}_${a}`))})]})};const PR=({options:e,allOption:t=!1,allowMultiple:r=!0,onChange:n=()=>{},className:o=""})=>{const i=Oe(),a=t?[{id:"all",text:typeof t!="boolean"&&t.text||i.formatMessage({id:"filters_all"})},...e]:e,[s,c]=$.useState(t?["all"]:[]),l=(u,d)=>{let h=[];s.includes(u)?h=s.filter(f=>f!==u):u==="all"?h=["all"]:r?h=[...s.filter(f=>f!=="all"),u]:h=[u],c(f=>(n&&typeof n=="function"&&n({current:h,previous:f}),h)),d&&typeof d=="function"&&d()};return x.jsx("ul",{className:ue("filters",o),children:a.map(({id:u,text:d,disabled:h=!1,callback:f=()=>{}})=>{let p={};return h&&(p={disabled:!0,"aria-label":i.formatMessage({id:"filters_disabled"},{name:d})}),x.jsx("li",{children:x.jsx("button",{className:ue(u,{selected:s.includes(u)}),onClick:m=>{m.preventDefault(),m.stopPropagation(),l(u,f)},...p,children:d})},u)})})};const dl=Wl({locale:"en",messages:Mf}),V0=({page:e=1,length:t=0,limit:r=10,loadNextPage:n=()=>{},icon:o=!1,messages:i={button:dl.formatMessage({id:"loadMore_button"}),endOfFeed:dl.formatMessage({id:"loadMore_endOfFeed"}),error:dl.formatMessage({id:"loadMore_error"})},className:a="",gtmContext:s="LoadMore"})=>{const[c,l]=$.useState(!1),[u,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 x.jsxs("footer",{className:ue("load-more",a),children:[c&&x.jsx("p",{className:"error",children:i.error}),u?x.jsx("p",{children:i.endOfFeed}):x.jsx(ze,{variant:"secondary",icon:o,onClick:h,"data-gtm-event-context":s,"data-gtm-event-type":"load-more-click",className:"gtm-trackable","data-testid":"load-more-button",children:i.button})]})};let Na=!1;const W0=({element:e="div",id:t="more-menu",options:r,className:n=""})=>{const o=Oe(),i=$.useRef(null),[a,s]=$.useState(!1),c=l=>{i.current&&l.target instanceof HTMLElement&&!i.current.contains(l.target)&&s(!1)};return $.useEffect(()=>(document.addEventListener("click",c,!0),()=>{document.removeEventListener("click",c,!0)})),$.createElement(e,{ref:i,className:ue("more-menu text-medium",n),children:x.jsxs(x.Fragment,{children:[x.jsx(ze,{variant:"tertiary",size:"medium",icon:{icon:"ellipsis"},onClick:()=>s(!a),"aria-haspopup":"true","aria-expanded":a,"aria-controls":t,screenreaderText:o.formatMessage({id:"moreMenu"})}),x.jsx("ul",{id:t,hidden:!a,children:r.map(({href:l,onClick:u,text:d,icon:h,...f},p)=>{const m={...f,onClick:_=>{s(!1),typeof u=="function"&&u(_)},onFocus:()=>{Na&&(clearTimeout(Na),Na=!1)},onBlur:()=>{Na=setTimeout(()=>{s(!1)},100)}};return l&&(m.href=l),x.jsx("li",{children:x.jsx(ze,{variant:"tertiary",size:"medium",icon:h?{icon:h,position:"left"}:!1,...m,children:d})},`${window.btoa(d)}_${p}`)})})]})})};const Zf=({variant:e="default",version:t="default",className:r="",...n})=>x.jsx("p",{className:"logo-wrapper",children:x.jsx("a",{className:ue("logo",e,t,r),href:"/home/",...n,children:x.jsx(lt,{children:x.jsx(ln,{id:"apolitical"})})})});const NR={"2-1":901},IR=({layout:e="2-1",hideOnMobile:t=!1,className:r="",children:n})=>{const o=Js(!0);let i=n;return $.Children.count(n)===1&&(i=$.Children.toArray(n)[0],i.props&&(i=i.props.children)),x.jsx("section",{className:ue("columns",`layout-${e}`,r),children:$.Children.map(i,(a,s)=>t!==!1&&s===t&&o&&o<NR[e]?null:a)})};const pl="cookieBanner_",ml=["apol-cookie-banner","apolitical-performance-cookie-consent","functional-cookie-consent"],gl=new Date(Date.now()+12*30*24*60*60*1e3),z0=()=>{const e=Oe(),[t,r,n]=rg(ml),[o,i]=$.useState(!t["apol-cookie-banner"]),a=()=>{ml.forEach(u=>{r(u,!0,{path:"/",expires:gl,domain:u==="apolitical-performance-cookie-consent"?".apolitical.co":void 0})}),i(!1),window.location.reload()},s=()=>{r("apol-cookie-banner",!0,{path:"/",expires:gl}),ml.forEach(u=>{if(u==="apol-cookie-banner"){r(u,!0,{path:"/",expires:gl});return}n(u)}),i(!1)};if(!o)return null;const c=[{id:"settings",href:"/pages/cookie-policy",gtmType:"policy-page"},{id:"reject",onClick:s,gtmType:"reject-all"},{id:"accept",onClick:a,gtmType:"accepted-all"}],l=[];return c.forEach(u=>{l.push({variant:u.href?"tertiary":"primary",href:u.href,onClick:u.onClick,className:"gtm-trackable","data-gtm-event-context":"cookie-banner","data-gtm-event-type":`cookie-${u.gtmType}-click`,children:e.formatMessage({id:`${pl}buttons_${u.id}`})})}),x.jsxs("aside",{id:"cookie-banner",className:"text-medium",children:[x.jsx("h6",{children:e.formatMessage({id:`${pl}title`})}),x.jsx("p",{children:e.formatMessage({id:`${pl}text`})}),x.jsx(Zs,{buttons:l})]})},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 Ri="footer_",su="SiteFooter",Am=({group:e})=>{const t=Br[e].order||[];let r=!1;return"text"in Br[e]&&(r=Br[e].text),x.jsxs($.Fragment,{children:[x.jsx("p",{className:"pre-title",children:x.jsx(ln,{id:`${Ri}${e}`})}),Array.isArray(t)&&t.length>0&&x.jsx("ul",{className:"text-medium",children:t.map(n=>{if(["order","child","text"].includes(n))return null;const{href:o,gtmType:i}=Br[e][n],a={};return["legal"].includes(e)&&(a.target="_blank",a.rel="noopener"),x.jsx("li",{children:x.jsx("a",{href:o,className:"gtm-trackable","data-gtm-event-context":su,"data-gtm-event-type":i,...a,children:x.jsx(ln,{id:`${Ri}${e}_${n}`})})},`${e}_${n}`)})}),typeof r!="boolean"&&"order"in r&&Array.isArray(r.order)&&x.jsx("dl",{className:"text-medium",children:r.order.map(n=>x.jsxs($.Fragment,{children:[x.jsx("dt",{children:x.jsx(ln,{id:`${Ri}${e}_${n}`})}),x.jsxs("dd",{children:[typeof r!="boolean"&&r[n].address&&x.jsx("address",{children:x.jsx(ln,{id:`${Ri}${e}_${n}_address`,values:{br:x.jsx("br",{})}})}),typeof r!="boolean"&&r[n].email&&x.jsx("a",{href:`mailto:${r[n].email}`,className:"gtm-trackable","data-gtm-event-context":su,"data-gtm-event-type":r[n].gtmType,children:r[n].email})]})]},`dl-${e}-${n}`))})]},e)},eh=()=>x.jsx("div",{id:"footer",children:x.jsxs("div",{className:"wrapper",children:[x.jsx(yf,{element:"hr"}),x.jsx(Zf,{variant:"inverted",version:"full",className:"gtm-trackable","data-gtm-event-context":su,"data-gtm-event-type":"logo-homepage-link"}),x.jsx("footer",{children:["platform","community","company","contact"].map(e=>x.jsxs("div",{className:"group",children:[x.jsx(Am,{group:e}),Object.keys(Br[e]).includes("child")&&x.jsx(Am,{group:Br[e].child})]},e))}),x.jsx("hr",{}),x.jsxs("div",{className:"sub-footer",children:[x.jsx("ul",{children:Array.isArray(Br.social.order)&&Br.social.order.map(e=>{const t=Br.social[e];return x.jsx("li",{className:e,children:x.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"gtm-trackable","data-gtm-event-context":su,"data-gtm-event-type":"social-click",children:x.jsx("span",{className:"hidden",children:x.jsx(ln,{id:`${Ri}social_${e}`})})})},e)})}),x.jsx("small",{children:x.jsx(ln,{id:`${Ri}copyright`,values:{currentYear:new Date().getFullYear()}})})]})]})});const Ia="emailHelperTextBox_",LR=({type:e,email:t,redirectPath:r,resendVerificationCode:n})=>{const o=Oe(),[i,a]=$.useState({path:`${Ia}default`,type:"default",link:{},mail:{},error:""}),[s,c]=$.useState(!1),l=$.useCallback(f=>{f.preventDefault(),f.stopPropagation();const p=m=>{a({path:`${Ia}error_verificationFailedToSend`,type:"error",link:{"data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:_=>l(_),href:"#","data-testid":"send-verify-email-click"},mail:{href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"ErrorVerifyingBox","data-gtm-event-type":"email-concierge-click"},error:m})};if(typeof n!="function"){p(o.formatMessage({id:`${Ia}error_noFunction`}));return}c(!0),n(t).then(()=>{localStorage.setItem("email",t),window.location.href=r||"/signup/verify-email"}).catch(m=>{p(m.message)}).finally(()=>{c(!1)})},[t,r,n]);$.useEffect(()=>{let f=Ia,p="default",m={},_={};switch(e){case"gov":f+="autoApproved",p="success";break;case"nonGov":f+="unrecognisedEmail",p="error",m={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"NonGovEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break;case"pending":f+="pendingApproval",p="error",_={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;case"verify":f+="emailUnverified",p="error",m={href:"#","data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:w=>l(w),"data-testid":"send-verify-email-click"};break;case"exists":f+="emailAlreadyExists",p="error",m={href:"/user-onboarding/login","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"login-click"},_={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;default:f+="default",m={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"DefaultEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break}a({...i,path:f,type:p,link:m,mail:_})},[e]);const u={};return["link","mail"].forEach(f=>{u[f]=Object.keys(i[f]).length?p=>x.jsx("a",{...i[f],children:p}):p=>p}),x.jsx(c0,{type:i.type,heading:s?!1:o.formatMessage({id:`${i.path}_title`}),children:s?x.jsxs(x.Fragment,{children:[x.jsx(gr,{element:"span"}),x.jsx(gr,{element:"span"})]}):o.formatMessage({id:`${i.path}_text`},{...u,strong:f=>x.jsx("strong",{children:f}),em:f=>x.jsx("em",{children:f}),br:x.jsxs(x.Fragment,{children:[x.jsx("br",{}),x.jsx("br",{})]}),error:i.error})})};const La="passwordRules_",Q0="isMoreThanEightCharacters",Y0="includesNumberAndSymbol",K0="includesLowerAndUppercase",kR={[Q0]:"8Characters",[Y0]:"numberSymbol",[K0]:"lowercaseUppercase"},MR=({matchingRules:e={isMoreThanEightCharacters:!1,includesNumberAndSymbol:!1,includesLowerAndUppercase:!1},className:t=""})=>{const r=Oe();return x.jsxs("aside",{className:ue("password-rules",t),children:[x.jsx("small",{children:r.formatMessage({id:`${La}intro`})}),x.jsx("ul",{children:[Q0,Y0,K0].map(n=>x.jsxs("li",{className:ue({matches:e[n]}),children:[x.jsxs(lt,{children:[r.formatMessage({id:`${La}rule_label`})," "]}),x.jsx("span",{children:r.formatMessage({id:`${La}rule_${kR[n]}`})}),!e[n]&&x.jsxs(lt,{element:"strong",children:[" "," ",r.formatMessage({id:`${La}notMet`})]})]},`rule-${n}`))})]})},FR=$.memo(MR);const BR=({text:e={},topRating:t=5,functions:{createRating:r=()=>null,updateRating:n=()=>{},reportError:o=()=>{}},className:i="",hasLoaded:a=!1})=>{const s=Oe(),[c,l]=$.useState({setUp:!1,id:null,rating:null,disabled:!0}),u=async()=>{try{const w=await r();l(v=>({...v,setUp:!0,id:w&&w.id,disabled:!1}))}catch(w){l(v=>({...v,setUp:!0,disabled:!0})),o(w)}};if($.useEffect(()=>{a&&!c.setUp&&u()},[a]),!a)return x.jsx(gr,{className:"rating-placeholder"});const{id:d,rating:h,disabled:f}=c,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 w=>{if(!(!d||f))try{l(v=>({...v,rating:w,disabled:!0})),await n({id:d,value:w})}catch(v){l(b=>({...b,rating:null})),o(v)}finally{l(v=>({...v,disabled:!1}))}};return x.jsxs("div",{className:ue("rating",i),children:[x.jsx("span",{className:"label",children:m[h?"success":"text"]}),x.jsx("ol",{children:Array.from(new Array(t).keys()).map(w=>{const v=w+1;return x.jsx("li",{className:ue({selected:h&&v<=h}),children:x.jsx(ze,{variant:"tertiary",size:"small",icon:{icon:`star${!h||v>h?"_empty":""}`,position:"left",hover:"star"},screenreaderText:`${s.formatMessage({id:`${p}stars`},{number:v,total:t})}${v===1||v===t?` - ${m[v===1?"low":"high"]}`:""}`,onClick:b=>{b.preventDefault(),b.stopPropagation(),_(v)},disabled:f})},`rating-${v}`)})})]})};const X0=({id:e="search",className:t="",handleToggle:r=!1,defaultValue:n="",gtmContext:o="search-bar",gtmEvent:i="form-submission"})=>{const{searchIsOpen:a=!0,isDesktopVersion:s=!1}=r||{},c=Oe(),l=$.useRef(null);ri(()=>{!r||s||!a||l.current&&l.current.focus()},[a]);const u=d=>{if(d.preventDefault(),d.stopPropagation(),!(!l.current||!l.current.value||l.current.value.length<1))return window&&window.location&&window.location.replace(`/search?search=${encodeURIComponent(l.current.value)}`)};return x.jsx("form",{onSubmit:u,className:ue("search-form gtm-trackable",t),"data-gtm-event-context":o,"data-gtm-event-type":i,children:x.jsx("fieldset",{id:`${e}-form`,hidden:r?!a:!1,role:"search",children:x.jsxs("p",{children:[x.jsx(lt,{element:"label",htmlFor:e,children:c.formatMessage({id:"search_label"})}),x.jsx("input",{ref:l,type:"search",id:e,name:e,defaultValue:n,placeholder:c.formatMessage({id:"search_placeholder"}),onKeyDown:d=>{d.key==="Enter"&&u(d)}}),x.jsx("button",{className:"clear",onClick:d=>{d.preventDefault(),d.stopPropagation(),l.current&&l.current.value&&(l.current.value="")},children:x.jsx(lt,{children:c.formatMessage({id:"search_clear"})})}),x.jsx("button",{className:"search",onClick:u,children:x.jsx(lt,{children:c.formatMessage({id:"search_cta"})})})]})})})};var DR="Expected a function",J0="__lodash_hash_undefined__",Z0=1/0,UR="[object Function]",$R="[object GeneratorFunction]",jR="[object Symbol]",HR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qR=/^\w*$/,GR=/^\./,VR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,WR=/[\\^$.*+?()[\]{}|]/g,zR=/\\(\\)?/g,QR=/^\[object .+?Constructor\]$/,YR=typeof de=="object"&&de&&de.Object===Object&&de,KR=typeof self=="object"&&self&&self.Object===Object&&self,th=YR||KR||Function("return this")();function XR(e,t){return e==null?void 0:e[t]}function JR(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var ZR=Array.prototype,eP=Function.prototype,eE=Object.prototype,yl=th["__core-js_shared__"],Cm=function(){var e=/[^.]+$/.exec(yl&&yl.keys&&yl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),tE=eP.toString,rh=eE.hasOwnProperty,rE=eE.toString,tP=RegExp("^"+tE.call(rh).replace(WR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rm=th.Symbol,rP=ZR.splice,nP=nE(th,"Map"),Ps=nE(Object,"create"),Pm=Rm?Rm.prototype:void 0,Nm=Pm?Pm.toString:void 0;function oi(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__=Ps?Ps(null):{}}function oP(e){return this.has(e)&&delete this.__data__[e]}function sP(e){var t=this.__data__;if(Ps){var r=t[e];return r===J0?void 0:r}return rh.call(t,e)?t[e]:void 0}function aP(e){var t=this.__data__;return Ps?t[e]!==void 0:rh.call(t,e)}function uP(e,t){var r=this.__data__;return r[e]=Ps&&t===void 0?J0:t,this}oi.prototype.clear=iP;oi.prototype.delete=oP;oi.prototype.get=sP;oi.prototype.has=aP;oi.prototype.set=uP;function mo(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 cP(){this.__data__=[]}function lP(e){var t=this.__data__,r=Ou(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():rP.call(t,r,1),!0}function fP(e){var t=this.__data__,r=Ou(t,e);return r<0?void 0:t[r][1]}function hP(e){return Ou(this.__data__,e)>-1}function dP(e,t){var r=this.__data__,n=Ou(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}mo.prototype.clear=cP;mo.prototype.delete=lP;mo.prototype.get=fP;mo.prototype.has=hP;mo.prototype.set=dP;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 pP(){this.__data__={hash:new oi,map:new(nP||mo),string:new oi}}function mP(e){return Au(this,e).delete(e)}function gP(e){return Au(this,e).get(e)}function yP(e){return Au(this,e).has(e)}function vP(e,t){return Au(this,e).set(e,t),this}ui.prototype.clear=pP;ui.prototype.delete=mP;ui.prototype.get=gP;ui.prototype.has=yP;ui.prototype.set=vP;function Ou(e,t){for(var r=e.length;r--;)if(RP(e[r][0],t))return r;return-1}function EP(e,t){t=SP(t,e)?[t]:wP(t);for(var r=0,n=t.length;e!=null&&r<n;)e=e[AP(t[r++])];return r&&r==n?e:void 0}function _P(e){if(!oE(e)||xP(e))return!1;var t=PP(e)||JR(e)?tP:QR;return t.test(CP(e))}function bP(e){if(typeof e=="string")return e;if(ih(e))return Nm?Nm.call(e):"";var t=e+"";return t=="0"&&1/e==-Z0?"-0":t}function wP(e){return iE(e)?e:OP(e)}function Au(e,t){var r=e.__data__;return TP(t)?r[typeof t=="string"?"string":"hash"]:r.map}function nE(e,t){var r=XR(e,t);return _P(r)?r:void 0}function SP(e,t){if(iE(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ih(e)?!0:qR.test(e)||!HR.test(e)||t!=null&&e in Object(t)}function TP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function xP(e){return!!Cm&&Cm in e}var OP=nh(function(e){e=IP(e);var t=[];return GR.test(e)&&t.push(""),e.replace(VR,function(r,n,o,i){t.push(o?i.replace(zR,"$1"):n||r)}),t});function AP(e){if(typeof e=="string"||ih(e))return e;var t=e+"";return t=="0"&&1/e==-Z0?"-0":t}function CP(e){if(e!=null){try{return tE.call(e)}catch{}try{return e+""}catch{}}return""}function nh(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(DR);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new(nh.Cache||ui),r}nh.Cache=ui;function RP(e,t){return e===t||e!==e&&t!==t}var iE=Array.isArray;function PP(e){var t=oE(e)?rE.call(e):"";return t==UR||t==$R}function oE(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function NP(e){return!!e&&typeof e=="object"}function ih(e){return typeof e=="symbol"||NP(e)&&rE.call(e)==jR}function IP(e){return e==null?"":bP(e)}function LP(e,t,r){var n=e==null?void 0:EP(e,t);return n===void 0?r:n}var kP=LP;const sE=vr(kP),Fe={timeouts:{},handlerCalled:{},getIsDesktopVersion:(e,t)=>{const r={navigation:{loggedIn:769,loggedOut:881},search:{loggedIn:961,loggedOut:1121}},n=i=>{const a=`logged${e?"In":"Out"}`;return t>=r[i][a]};let o={};return["navigation","search"].forEach(i=>{o[i]=n(i)}),o},shouldChangeHeaderIsVisible:(e,t,r)=>{Object.values(t).filter(o=>o===!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 o=Date.now();if(!t&&Fe.handlerCalled[e]&&o-Fe.handlerCalled[e]<500)return;Fe.handlerCalled[e]=o;let i=[{type:`menus.${e}`,value:t}];t===!0&&Object.keys(r).forEach(a=>{a===e||r[a]===!1||i.push({type:`menus.${a}`,value:!1})}),n(i)},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 o=sE(e[n],t);if(!(typeof o>"u")&&(!r||o[t]&&o[t].includes(r)||o.value&&o.value.includes(r)||o.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:o})=>{if(!t.current||!t.current.children)return;const i=r?"desktop":"default";if(n[e][i]){n[e][i].focus();return}let a,s;switch(e){case"navigation":if(r){const c=Fe.findFirstChild(t.current.children,"attributes.aria-controls","navigation");a=Fe.findFirstChild(c.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&&(o([{type:`focusElements.${e}.${i}`,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)}}},Ns={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"}}}},au=({id:e,isLoggedIn:t=!1,isDesktopVersion:r=!1,menus:n={},callback:o=()=>{},doTrack:i=null})=>{const a=Oe(),s=sE(Ns,e);if(!s||s.onlyShow&&(s.onlyShow==="logged-in"&&!t||s.onlyShow==="logged-out"&&t))return null;const c="doTrack"in s,l=i===null?c?s.doTrack:!0:i,u=e.includes("buttons.");let d=`header_${e.replaceAll(".","_")}`;s.hasVariantText&&(d+=`_logged${t?"In":"Out"}`);let h=!1;if(s.href){let v=s.gtmType||`${e}-click`;if(v.includes(".")){const b=v.split("."),A=b[b.length-2];v=`${A==="topics"?`${A}-`:""}${b[b.length-1]}`}h={href:s.href,role:"menuitem"},l&&(h={...h,className:"gtm-trackable","data-gtm-event-type":v,"data-gtm-event-context":"HeaderButtons"}),u&&(h={...h,variant:"secondary",size:{mobile:"small",881:"large"},...s.props||{}})}const f=s.order&&s.order[0]&&s[s.order[0]],p=f&&s[s.order[0]].order,m=h&&typeof window<"u"&&window.location&&window.location.pathname===s.href;let _={},w={};if(f){const v=s.menuId||e,b={onClick:A=>Fe.events.onClick(A,{id:v,callback:o,isOpen:n[v]}),onFocus:()=>Fe.events.onFocus({id:v}),onBlur:()=>Fe.events.onBlur({id:v,callback:o}),onMouseLeave:()=>Fe.events.onBlur({id:v,callback:o}),onMouseEnter:()=>Fe.events.onMouseEnter({id:v,callback:o})};r&&(p&&(_={...b,onKeyPress:A=>{A.key==="Enter"&&Fe.events.onClick(A,{id:v,callback:o,isOpen:n[v]})},tabIndex:"0","aria-haspopup":!0,"aria-expanded":n[v],"aria-controls":v}),w={hidden:v in n?!n[v]:!0}),p||(w={...w,...b})}return x.jsxs("li",{className:ue({[s.className]:s.className,"has-submenu":f,parent:p,active:m}),role:"none",..._,children:[h?$.createElement(u?ze:"a",h,a.formatMessage({id:d})):a.formatMessage({id:d}),s.order&&x.jsx("ul",{...w,children:s.order.map(v=>{if(!s[v])return null;const b={isLoggedIn:t,isDesktopVersion:r,menus:n,callback:o,doTrack:c?l:null};return s[v].order?x.jsxs("li",{className:ue({[s[v].className]:s[v].className}),children:[a.formatMessage({id:`${d}_${v}`}),x.jsx("ul",{children:s[v].order.map(A=>x.jsx(au,{id:`${e}.${v}.${A}`,...b},A))})]},v):x.jsx(au,{id:`${e}.${v}`,...b},v)})})]},e)};const MP={height:67,height_desktop:83},oh=()=>{const e=Oe(),t=$.useContext($r),r=Js(!0,!0),n=t&&typeof t.id=="string",o=$.useMemo(()=>Fe.getIsDesktopVersion(n,r),[n,r]),[i,a]=$.useReducer(Hx,{headerIsVisible:!0,menus:{navigation:!1,search:!1,account:!1},focusElements:{navigation:{desktop:!1,default:!1},account:{desktop:!1,default:!1}}}),{headerIsVisible:s,menus:c,focusElements:l}=i;Xy({scrollPosition:MP[`height${o.navigation?"_desktop":""}`],callbacks:{scrollUp:()=>{!o&&c.navigation||Fe.shouldChangeHeaderIsVisible(!0,c,a)},scrollDown:()=>{!o&&c.navigation||Fe.shouldChangeHeaderIsVisible(!1,c,a)}}});const u=(h,f)=>{Fe.handleMenus({id:h,value:f,menus:c,dispatch:a})},d=$.useRef(null);return ri(()=>{c.navigation&&Fe.autoFocus({menu:"navigation",navigationRef:d,isDesktopVersion:o.navigation,focusElements:l,dispatch:a})},[c.navigation]),ri(()=>{c.account&&Fe.autoFocus({menu:"account",navigationRef:d,isDesktopVersion:o.navigation,focusElements:l,dispatch:a})},[c.account]),t&&t.isLoading?null:x.jsxs(x.Fragment,{children:[x.jsxs("nav",{id:"header",className:ue({"logged-in":n,"logged-out":!n,visible:s}),children:[x.jsx(lt,{element:"a",href:"#content-of-page",children:e.formatMessage({id:"header_skip"})}),x.jsx(Zf,{}),!o.navigation&&x.jsx("button",{className:"menu-button gtm-trackable",onClick:h=>{h.preventDefault(),h.stopPropagation(),u("navigation",!c.navigation)},"data-gtm-event-type":"open-tab-menu-click","data-gtm-event-context":"HeaderLeft-Chevron","aria-haspopup":"true","aria-expanded":c.navigation,"aria-controls":"navigation",children:x.jsx(lt,{children:e.formatMessage({id:`header_menu_${c.navigation?"hide":"show"}`})})}),x.jsx("ul",{ref:d,id:"navigation",hidden:o.navigation||c.account?!1:!c.navigation,role:"menu","data-showing":!o.navigation&&c.account?"account":"default",children:Ns.order.map(h=>x.jsx(au,{id:h,isLoggedIn:n,isDesktopVersion:o.navigation,menus:{navigation:c.navigation,account:c.account},callback:u},h))}),!o.search&&x.jsx("button",{className:"search toggle-search-button",onClick:h=>{h.preventDefault(),h.stopPropagation(),u("search",!c.search)},"aria-haspopup":"true","aria-expanded":c.search,"aria-controls":"search-form",children:x.jsx(lt,{children:e.formatMessage({id:`header_search_${c.search?"hide":"show"}`})})}),x.jsx(X0,{id:"global-search",handleToggle:{searchIsOpen:c.search,isDesktopVersion:o.search},gtmContext:"search-bar-header",gtmEvent:"form-submission"}),n?x.jsxs("button",{className:"account-button",onClick:h=>Fe.events.onClick(h,{id:"account",callback:u,isOpen:c.account}),onMouseEnter:()=>Fe.events.onMouseEnter({id:"account",callback:u}),onMouseLeave:()=>Fe.events.onBlur({id:"account",callback:u}),"aria-haspopup":"true","aria-expanded":c.account,"aria-controls":"navigation",children:[x.jsx(lt,{children:e.formatMessage({id:`header_account_${c.account?"hide":"show"}`})}),x.jsx(_u,{name:t&&t.name||"",src:t&&t.image&&t.image.thumbnail||""})]}):x.jsx("ul",{className:"sign-in-buttons",children:Ns.buttons.order.map(h=>x.jsx(au,{id:`buttons.${h}`},h))})]}),x.jsx("hr",{id:"content-of-page"}),x.jsx("div",{className:ue("overlay",{open:c.navigation||c.account||!o.search&&c.search})})]})},FP=$.createContext(null),vl={didCatch:!1,error:null};class BP extends $.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=vl}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:i,reason:"imperative-api"}),this.setState(vl)}}componentDidCatch(t,r){var n,o;(n=(o=this.props).onError)===null||n===void 0||n.call(o,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:o}=this.props;if(n&&r.error!==null&&DP(t.resetKeys,o)){var i,a;(i=(a=this.props).onReset)===null||i===void 0||i.call(a,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(vl)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:o}=this.props,{didCatch:i,error:a}=this.state;let s=t;if(i){const c={error:a,resetErrorBoundary:this.resetErrorBoundary};if($.isValidElement(o))s=o;else if(typeof r=="function")s=r(c);else if(n)s=$.createElement(n,c);else throw a}return $.createElement(FP.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}function DP(){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 UP=()=>{const e=Oe();return x.jsxs(x.Fragment,{children:[x.jsx(oh,{}),x.jsx("div",{className:"content",children:x.jsx(ra,{variant:"error",text:e.formatMessage({id:"pageLayout_error"})})}),x.jsx(eh,{})]})},$P=({children:e,reportError:t,showFooter:r=!0,background:n="default",className:o="",locale:i="en"})=>{const a=uv(e,{locale:i});return x.jsx(BP,{onError:t,fallback:x.jsx(UP,{}),children:x.jsx($.Suspense,{fallback:x.jsx(d0,{layout:"overview-page"}),children:x.jsx("div",{id:"wrapper",className:ue(o,{[n]:n!=="default"}),children:x.jsxs(ME,{children:[x.jsx(oh,{}),x.jsx("div",{className:"content",children:a}),r&&x.jsx(eh,{}),x.jsx(z0,{})]})})})})},Im={default:"tags_",headerTopics:"header_topics_topics_"},El={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"},jP={getTagDetails:e=>{if(e.includes("topic_")){if(e=El.topic[e.replace("topic_","")],e){const t=Ns.topics.topics[e].href;return t?{id:e,href:t,text:`${Im.headerTopics}${e}`}:null}return null}return El[e]?(e=El[e],{id:e,text:`${Im.default}${e}`}):null}};const HP=({tags:e=[],color:t="default",forceOneLine:r=!1,canHaveLinks:n=!0,className:o="",gtmType:i="tag-click",gtmContext:a="tags"})=>{const s=Oe();if(!e||e.length<1)return null;const c=[];return e.forEach(l=>{if(!l)return;const u=jP.getTagDetails(l);u&&c.push(u)}),c.length<1?null:x.jsx("ul",{className:ue("tags text-small",t,o,{"one-line":r}),children:c.map(l=>{const u=s.formatMessage({id:l.text});return x.jsx("li",{children:l.href&&n?x.jsx("a",{href:l.href,className:"gtm-trackable","data-gtm-event-type":i,"data-gtm-event-context":a,children:u}):u},l.id)})})};const qP=({members:{total:e,data:t=[]},pagination:r,gtmContext:n="member",gtmType:o="member-click",className:i=""})=>{const a=Oe();return t.length===0?null:(e||(e=t.length),x.jsxs("div",{className:ue("members-list",i),children:[x.jsxs("h1",{children:[a.formatMessage({id:"membersList"}),x.jsx("span",{className:"count",children:e})]}),x.jsx("ul",{children:t.map((s,c)=>x.jsxs("li",{children:[x.jsx(bu,{member:s,gtmContext:n,gtmType:o}),s.isAdmin&&x.jsx(l0,{children:a.formatMessage({id:"membersList_admin"})})]},c))}),r&&x.jsx(V0,{...r,icon:{icon:"arrow-down",position:"right"},gtmContext:n})]}))};function gf(){return gf=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},gf.apply(this,arguments)}function GP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var VP=$.useLayoutEffect,WP=function(t){var r=pe.useRef(t);return VP(function(){r.current=t}),r},Lm=function(t,r){if(typeof t=="function"){t(r);return}t.current=r},zP=function(t,r){var n=$.useRef();return $.useCallback(function(o){t.current=o,n.current&&Lm(n.current,null),n.current=r,r&&Lm(r,o)},[r])},km={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},QP=function(t){Object.keys(km).forEach(function(r){t.style.setProperty(r,km[r],"important")})},Mm=QP,vt=null,Fm=function(t,r){var n=t.scrollHeight;return r.sizingStyle.boxSizing==="border-box"?n+r.borderSize:n-r.paddingSize};function YP(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),vt||(vt=document.createElement("textarea"),vt.setAttribute("tabindex","-1"),vt.setAttribute("aria-hidden","true"),Mm(vt)),vt.parentNode===null&&document.body.appendChild(vt);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach(function(h){var f=h;vt.style[f]=a[f]}),Mm(vt),vt.value=t;var c=Fm(vt,e);vt.value=t,c=Fm(vt,e),vt.value="x";var l=vt.scrollHeight-o,u=l*r;s==="border-box"&&(u=u+o+i),c=Math.max(u,c);var d=l*n;return s==="border-box"&&(d=d+o+i),c=Math.min(d,c),[c,l]}var Bm=function(){},KP=function(t,r){return t.reduce(function(n,o){return n[o]=r[o],n},{})},XP=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],JP=!!document.documentElement.currentStyle,ZP=function(t){var r=window.getComputedStyle(t);if(r===null)return null;var n=KP(XP,r),o=n.boxSizing;if(o==="")return null;JP&&o==="border-box"&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var i=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),a=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:i,borderSize:a}},eN=ZP;function aE(e,t,r){var n=WP(r);pe.useLayoutEffect(function(){var o=function(a){return n.current(a)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var tN=function(t){aE(window,"resize",t)},rN=function(t){aE(document.fonts,"loadingdone",t)},nN=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],iN=function(t,r){var n=t.cacheMeasurements,o=t.maxRows,i=t.minRows,a=t.onChange,s=a===void 0?Bm:a,c=t.onHeightChange,l=c===void 0?Bm:c,u=GP(t,nN),d=u.value!==void 0,h=pe.useRef(null),f=zP(h,r),p=pe.useRef(0),m=pe.useRef(),_=function(){var b=h.current,A=n&&m.current?m.current:eN(b);if(A){m.current=A;var S=YP(A,b.value||b.placeholder||"x",i,o),P=S[0],R=S[1];p.current!==P&&(p.current=P,b.style.setProperty("height",P+"px","important"),l(P,{rowHeight:R}))}},w=function(b){d||_(),s(b)};return pe.useLayoutEffect(_),tN(_),rN(_),pe.createElement("textarea",gf({},u,{onChange:w,ref:f}))},oN=pe.forwardRef(iN);let ka=null;const It="discussion_form_",uu=({content:e={type:"response",slugs:{}},meta:t={isLoading:!1,isInWrapper:!1,isEditing:!1,showTitle:!1},inputRef:r,maxLength:n=5e4,minRows:o=4,forceShow:i={cancel:!1,error:!1},functions:a={create:()=>{},handleSaveEdit:()=>{},handleCancel:()=>{},callback:()=>{},props:{create:{projectNames:["questions-answers"]}}},gtmContext:s="DiscussionForm"})=>{var L,k;const c=Oe(),l=$.useContext($r),[u,d]=$.useState(t.isEditing&&t.isEditing.text||""),[h,f]=$.useState(i.error||!1),[p,m]=$.useState(!1),_=$.useRef(null);if(r||(r=_),t.isLoading)return x.jsx(gr,{className:"discussion-card discussion-form","data-testid":"loading-placeholder"});const w=q=>{const G=q.target.value;d(G);let H;!l||!l.id?H=Lr(c.formatMessage,`${It}error_loggedOut`,e.type,"action"):G.length>=n&&(H=`${It}error_tooLong`),H?f(H):h&&f(!1)};let v=`${e.type}-form`;if(e.type==="response"||e.type==="reply"){const q=e.type==="response"?((L=e.slugs)==null?void 0:L.question)||"":((k=e.slugs)==null?void 0:k.answer)||"";q&&(v=`${v}-${q.slice(-15)}`)}const b=async q=>{var H;if(q.preventDefault(),q.stopPropagation(),S)return;ka&&clearTimeout(ka),m("submitting");const G=window.location.pathname;try{let Y;switch(e.type){case"post":Y=await a.create({content:u});break;case"question":Y=await a.create({title:u,authorId:l&&l.id,...(H=a.props)==null?void 0:H.create});break;case"response":Y=await a.create({question:e.slugs.question},{body:u,authorId:l&&l.id,contentPath:G});break;case"reply":Y=await a.create({question:e.slugs.question,answer:e.slugs.answer},{body:u,authorId:l&&l.id,contentPath:G});break;default:break}await Vx(1e3),a.callback&&await a.callback(Y),ka=setTimeout(()=>{d(""),m("submitted"),A()},500)}catch(Y){const ie=Y;let K=`${It}error`;ie.message.includes("entry already exists")&&(K=Lr(c.formatMessage,`${It}error_alreadyExists`,e.type,"action")),ie.message.includes("429")?K=Lr(c.formatMessage,`${It}error_tooMany`,e.type,"action"):ie.message.includes("400")&&(K=`${It}error`),f(K),A()}},A=()=>{ka=setTimeout(()=>{f(!1),m(!1)},5e3)},S=!u||!Yx(u),P=p==="submitting",R=[];return(t.isEditing&&!P||i.cancel)&&R.push({variant:"secondary",size:{mobile:"small",600:"medium"},onClick:a.handleCancel,className:"gtm-trackable","data-gtm-event-context":s,"data-gtm-event-type":`cancel-${e.type}-click`,disabled:!i.cancel&&(!l||!l.id||!u),children:c.formatMessage({id:`${It}cancel`})}),R.push({variant:"primary",size:{mobile:"small",600:"medium"},onClick:q=>{if(t.isEditing){m("submitting"),a.handleSaveEdit&&a.handleSaveEdit(_.current&&"value"in _.current?_.current.value:"");return}b(q)},className:"gtm-trackable","data-gtm-event-context":s,"data-gtm-event-type":`${t.isEditing?"save":"submit"}-${e.type}-click`,"data-testid":"save-button",disabled:!l||!l.id||S||P||t.isEditing&&u===t.isEditing.text,children:c.formatMessage({id:`${It}${P?t.isEditing?"saving":"posting":t.isEditing?"save":"post"}`})}),x.jsxs("form",{id:v,className:ue("discussion-card discussion-form",{"no-styling":t.isInWrapper&&t.isEditing}),"data-testid":`discussion-${e.type}-form`,children:[(t==null?void 0:t.showTitle)&&!t.isEditing&&["question"].includes(e.type)&&x.jsx("h2",{children:Lr(c.formatMessage,`${It}title`,e.type,"action")}),x.jsx(bu,{member:l||"community",gtmContext:s,gtmType:"profile-click"}),x.jsx(lt,{element:"label",showOnFocus:!1,htmlFor:`${v}-input`,children:Lr(c.formatMessage,`${It}label`,e.type,"action")}),x.jsx(oN,{ref:r,id:`${v}-input`,name:e.type,placeholder:Lr(c.formatMessage,`${It}placeholder`,e.type,"action"),onChange:w,value:u,maxLength:n,"aria-invalid":!!h,"aria-errormessage":"error-message",minRows:o,autoFocus:!!t.isEditing}),x.jsx("small",{children:Lr(c.formatMessage,`${It}explainer`,e.type,"action",{a:q=>x.jsx("a",{href:"https://about.apolitical.co/q-and-a-community-guidelines",className:"gtm-trackable","data-gtm-event-context":s,"data-gtm-event-type":"community-guidelines-link",children:q})})}),x.jsx(Zs,{buttons:R}),p==="submitted"&&x.jsx(Ka,{className:"success","data-testid":"success",children:Lr(c.formatMessage,`${It}success`,e.type,"action")}),h&&x.jsx(Ka,{id:"error-message",className:"error","data-testid":"error",children:i.error?i.error:typeof h=="string"?h.includes(" ")?h:c.formatMessage({id:h},{action:c.formatMessage({id:`discussion_action_${e.type}`}),maxLength:n}):h})]})},sh=({contentType:e,createPost:t,membershipRequiredToPost:{isMember:r,required:n,join:o,leave:i,notMemberStateText:a}})=>n?r?x.jsx(uu,{content:{type:e,slugs:{}},functions:{create:t}}):x.jsx(ra,{text:a,button:{component:x.jsx(Jf,{functions:{join:o,leave:i}})}}):x.jsx(uu,{content:{type:e,slugs:{}},functions:{create:t}}),sN={showThread:!1,showForm:!1},ah=$.createContext(sN),aN=({children:e})=>{const[t,r]=$.useState({showThread:!1,showForm:!1});return x.jsx(ah.Provider,{value:{...t,updateConversation:r},children:e})},uN=({question:e,answer:t,reply:r})=>({...e&&{questionSlug:e},...t&&{answerSlug:t},...r&&{replySlug:r}}),cN=(e,t=10)=>!e||e.length===0?[]:e.reverse().slice(0,t);let ws=!1;const _l=()=>{ws!==!1&&(clearTimeout(ws),ws=!1)},uE=({element:e="div",likes:t=0,peopleWhoLiked:r=!1,isShort:n=!0,userLiked:o=!1,content:i={type:"reply",slugs:{}},canLike:a=!0,functions:{createLike:s=()=>{},deleteLike:c=()=>{}}={}})=>{const l=Oe();$.useEffect(()=>{f(o)},[o]);const[u,d]=$.useState(t),[h,f]=$.useState(o),[p,m]=$.useState(!1),[_,w]=$.useState(!1),v=$.useMemo(()=>cN(r),[r]),b=window.location.pathname,A=P=>{if(P.preventDefault(),P.stopPropagation(),w(!1),ws)return _l(),!1;if(_l(),p||!a)return!1;ws=setTimeout(S,350)},S=async()=>{if(_l(),p||!a)return!1;let P=h?u-1:u+1;P<0&&(P=0),m(!0),d(P),f(!h);try{if(i&&i.slugs){const R=uN(i.slugs);h?await c(R):await s(R,{contentPath:b})}}catch{d(t),f(o)}finally{m(!1)}};return $.createElement(e,{className:ue("likes-wrapper text-medium action-button",{"show-spinner":p,"is-liked":h,disabled:!a}),onClick:A,onMouseEnter:()=>{w(!0)},onMouseLeave:()=>{w(!1)},onFocus:()=>{w(!0)},onBlur:()=>{w(!1)},children:x.jsxs(x.Fragment,{children:[x.jsx(ze,{variant:"tertiary",size:"medium",icon:{icon:h?"heart":"heart_empty",animate:"bounce"},className:ue({"do-animation":h&&!o}),screenreaderText:a?l.formatMessage({id:`discussion_${i.type}_likes_${h?"unlike":"like"}`}):!1,onClick:A,disabled:!a,"aria-hidden":!a,"data-testid":"like-button","data-gtm-event-context":"Likes","data-gtm-event-type":`like-${i.type}-click`}),x.jsx("span",{className:"number-of-likes","data-testid":"number-of-likes",children:l.formatMessage({id:`discussion_likes${n?"_short":""}`},{number:u})}),r&&x.jsx($v,{isOpen:_,isLoading:r.length===0,children:r.length&&x.jsx("ul",{children:v.map(P=>typeof P=="string"||!P.name?null:x.jsx("li",{children:P.name},P.id||window.btoa(P.name)))})})]})})};var cu={exports:{}};cu.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,s="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",p="[object GeneratorFunction]",m="[object Map]",_="[object Number]",w="[object Null]",v="[object Object]",b="[object Promise]",A="[object Proxy]",S="[object RegExp]",P="[object Set]",R="[object String]",L="[object Symbol]",k="[object Undefined]",q="[object WeakMap]",G="[object ArrayBuffer]",H="[object DataView]",Y="[object Float32Array]",ie="[object Float64Array]",K="[object Int8Array]",D="[object Int16Array]",Q="[object Int32Array]",ee="[object Uint8Array]",he="[object Uint8ClampedArray]",J="[object Uint16Array]",X="[object Uint32Array]",se=/[\\^$.*+?()[\]{}|]/g,fe=/^\[object .+?Constructor\]$/,He=/^(?:0|[1-9]\d*)$/,te={};te[Y]=te[ie]=te[K]=te[D]=te[Q]=te[ee]=te[he]=te[J]=te[X]=!0,te[s]=te[c]=te[G]=te[u]=te[H]=te[d]=te[h]=te[f]=te[m]=te[_]=te[v]=te[S]=te[P]=te[R]=te[q]=!1;var ae=typeof de=="object"&&de&&de.Object===Object&&de,Be=typeof self=="object"&&self&&self.Object===Object&&self,Ie=ae||Be||Function("return this")(),Tt=t&&!t.nodeType&&t,At=Tt&&!0&&e&&!e.nodeType&&e,Gt=At&&At.exports===Tt,oe=Gt&&ae.process,st=function(){try{return oe&&oe.binding&&oe.binding("util")}catch{}}(),Je=st&&st.isTypedArray;function Vt(y,O){for(var I=-1,W=y==null?0:y.length,ge=0,le=[];++I<W;){var _e=y[I];O(_e,I,y)&&(le[ge++]=_e)}return le}function br(y,O){for(var I=-1,W=O.length,ge=y.length;++I<W;)y[ge+I]=O[I];return y}function er(y,O){for(var I=-1,W=y==null?0:y.length;++I<W;)if(O(y[I],I,y))return!0;return!1}function kt(y,O){for(var I=-1,W=Array(y);++I<y;)W[I]=O(I);return W}function yn(y){return function(O){return y(O)}}function Wt(y,O){return y.has(O)}function Mt(y,O){return y==null?void 0:y[O]}function Ze(y){var O=-1,I=Array(y.size);return y.forEach(function(W,ge){I[++O]=[ge,W]}),I}function zt(y,O){return function(I){return y(O(I))}}function yt(y){var O=-1,I=Array(y.size);return y.forEach(function(W){I[++O]=W}),I}var at=Array.prototype,vn=Function.prototype,T=Object.prototype,g=Ie["__core-js_shared__"],E=vn.toString,C=T.hasOwnProperty,M=function(){var y=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),j=T.toString,z=RegExp("^"+E.call(C).replace(se,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=Gt?Ie.Buffer:void 0,Ce=Ie.Symbol,Re=Ie.Uint8Array,Pe=T.propertyIsEnumerable,Ee=at.splice,Ct=Ce?Ce.toStringTag:void 0,Hr=Object.getOwnPropertySymbols,En=me?me.isBuffer:void 0,wr=zt(Object.keys,Object),_n=Yt(Ie,"DataView"),Sr=Yt(Ie,"Map"),bn=Yt(Ie,"Promise"),wn=Yt(Ie,"Set"),Sn=Yt(Ie,"WeakMap"),tr=Yt(Object,"create"),ci=ut(_n),Qt=ut(Sr),go=ut(bn),yo=ut(wn),vo=ut(Sn),li=Ce?Ce.prototype:void 0,Tn=li?li.valueOf:void 0;function We(y){var O=-1,I=y==null?0:y.length;for(this.clear();++O<I;){var W=y[O];this.set(W[0],W[1])}}function xn(){this.__data__=tr?tr(null):{},this.size=0}function On(y){var O=this.has(y)&&delete this.__data__[y];return this.size-=O?1:0,O}function Tr(y){var O=this.__data__;if(tr){var I=O[y];return I===n?void 0:I}return C.call(O,y)?O[y]:void 0}function fi(y){var O=this.__data__;return tr?O[y]!==void 0:C.call(O,y)}function Eo(y,O){var I=this.__data__;return this.size+=this.has(y)?0:1,I[y]=tr&&O===void 0?n:O,this}We.prototype.clear=xn,We.prototype.delete=On,We.prototype.get=Tr,We.prototype.has=fi,We.prototype.set=Eo;function et(y){var O=-1,I=y==null?0:y.length;for(this.clear();++O<I;){var W=y[O];this.set(W[0],W[1])}}function _o(){this.__data__=[],this.size=0}function bo(y){var O=this.__data__,I=Vr(O,y);if(I<0)return!1;var W=O.length-1;return I==W?O.pop():Ee.call(O,I,1),--this.size,!0}function wo(y){var O=this.__data__,I=Vr(O,y);return I<0?void 0:O[I][1]}function So(y){return Vr(this.__data__,y)>-1}function An(y,O){var I=this.__data__,W=Vr(I,y);return W<0?(++this.size,I.push([y,O])):I[W][1]=O,this}et.prototype.clear=_o,et.prototype.delete=bo,et.prototype.get=wo,et.prototype.has=So,et.prototype.set=An;function ht(y){var O=-1,I=y==null?0:y.length;for(this.clear();++O<I;){var W=y[O];this.set(W[0],W[1])}}function To(){this.size=0,this.__data__={hash:new We,map:new(Sr||et),string:new We}}function xo(y){var O=Rt(this,y).delete(y);return this.size-=O?1:0,O}function Oo(y){return Rt(this,y).get(y)}function Ao(y){return Rt(this,y).has(y)}function Co(y,O){var I=Rt(this,y),W=I.size;return I.set(y,O),this.size+=I.size==W?0:1,this}ht.prototype.clear=To,ht.prototype.delete=xo,ht.prototype.get=Oo,ht.prototype.has=Ao,ht.prototype.set=Co;function qr(y){var O=-1,I=y==null?0:y.length;for(this.__data__=new ht;++O<I;)this.add(y[O])}function hi(y){return this.__data__.set(y,n),this}function Gr(y){return this.__data__.has(y)}qr.prototype.add=qr.prototype.push=hi,qr.prototype.has=Gr;function xt(y){var O=this.__data__=new et(y);this.size=O.size}function Cn(){this.__data__=new et,this.size=0}function Ro(y){var O=this.__data__,I=O.delete(y);return this.size=O.size,I}function Po(y){return this.__data__.get(y)}function No(y){return this.__data__.has(y)}function Io(y,O){var I=this.__data__;if(I instanceof et){var W=I.__data__;if(!Sr||W.length<r-1)return W.push([y,O]),this.size=++I.size,this;I=this.__data__=new ht(W)}return I.set(y,O),this.size=I.size,this}xt.prototype.clear=Cn,xt.prototype.delete=Ro,xt.prototype.get=Po,xt.prototype.has=No,xt.prototype.set=Io;function Lo(y,O){var I=Wr(y),W=!I&&vi(y),ge=!I&&!W&&Qr(y),le=!I&&!W&&!ge&&Ln(y),_e=I||W||ge||le,be=_e?kt(y.length,String):[],qe=be.length;for(var Ae in y)(O||C.call(y,Ae))&&!(_e&&(Ae=="length"||ge&&(Ae=="offset"||Ae=="parent")||le&&(Ae=="buffer"||Ae=="byteLength"||Ae=="byteOffset")||rr(Ae,qe)))&&be.push(Ae);return be}function Vr(y,O){for(var I=y.length;I--;)if(yi(y[I][0],O))return I;return-1}function Rn(y,O,I){var W=O(y);return Wr(y)?W:br(W,I(y))}function xr(y){return y==null?y===void 0?k:w:Ct&&Ct in Object(y)?Kt(y):gi(y)}function di(y){return Ft(y)&&xr(y)==s}function pi(y,O,I,W,ge){return y===O?!0:y==null||O==null||!Ft(y)&&!Ft(O)?y!==y&&O!==O:mi(y,O,I,W,pi,ge)}function mi(y,O,I,W,ge,le){var _e=Wr(y),be=Wr(O),qe=_e?c:Pt(y),Ae=be?c:Pt(O);qe=qe==s?v:qe,Ae=Ae==s?v:Ae;var tt=qe==v,ct=Ae==v,Ve=qe==Ae;if(Ve&&Qr(y)){if(!Qr(O))return!1;_e=!0,tt=!1}if(Ve&&!tt)return le||(le=new xt),_e||Ln(y)?Pn(y,O,I,W,ge,le):Bo(y,O,qe,I,W,ge,le);if(!(I&o)){var rt=tt&&C.call(y,"__wrapped__"),Qe=ct&&C.call(O,"__wrapped__");if(rt||Qe){var nr=rt?y.value():y,Xt=Qe?O.value():O;return le||(le=new xt),ge(nr,Xt,I,W,le)}}return Ve?(le||(le=new xt),Nn(y,O,I,W,ge,le)):!1}function ko(y){if(!_i(y)||$o(y))return!1;var O=Ei(y)?z:fe;return O.test(ut(y))}function Mo(y){return Ft(y)&&In(y.length)&&!!te[xr(y)]}function Fo(y){if(!jo(y))return wr(y);var O=[];for(var I in Object(y))C.call(y,I)&&I!="constructor"&&O.push(I);return O}function Pn(y,O,I,W,ge,le){var _e=I&o,be=y.length,qe=O.length;if(be!=qe&&!(_e&&qe>be))return!1;var Ae=le.get(y);if(Ae&&le.get(O))return Ae==O;var tt=-1,ct=!0,Ve=I&i?new qr:void 0;for(le.set(y,O),le.set(O,y);++tt<be;){var rt=y[tt],Qe=O[tt];if(W)var nr=_e?W(Qe,rt,tt,O,y,le):W(rt,Qe,tt,y,O,le);if(nr!==void 0){if(nr)continue;ct=!1;break}if(Ve){if(!er(O,function(Xt,Ar){if(!Wt(Ve,Ar)&&(rt===Xt||ge(rt,Xt,I,W,le)))return Ve.push(Ar)})){ct=!1;break}}else if(!(rt===Qe||ge(rt,Qe,I,W,le))){ct=!1;break}}return le.delete(y),le.delete(O),ct}function Bo(y,O,I,W,ge,le,_e){switch(I){case H:if(y.byteLength!=O.byteLength||y.byteOffset!=O.byteOffset)return!1;y=y.buffer,O=O.buffer;case G:return!(y.byteLength!=O.byteLength||!le(new Re(y),new Re(O)));case u:case d:case _:return yi(+y,+O);case h:return y.name==O.name&&y.message==O.message;case S:case R:return y==O+"";case m:var be=Ze;case P:var qe=W&o;if(be||(be=yt),y.size!=O.size&&!qe)return!1;var Ae=_e.get(y);if(Ae)return Ae==O;W|=i,_e.set(y,O);var tt=Pn(be(y),be(O),W,ge,le,_e);return _e.delete(y),tt;case L:if(Tn)return Tn.call(y)==Tn.call(O)}return!1}function Nn(y,O,I,W,ge,le){var _e=I&o,be=Or(y),qe=be.length,Ae=Or(O),tt=Ae.length;if(qe!=tt&&!_e)return!1;for(var ct=qe;ct--;){var Ve=be[ct];if(!(_e?Ve in O:C.call(O,Ve)))return!1}var rt=le.get(y);if(rt&&le.get(O))return rt==O;var Qe=!0;le.set(y,O),le.set(O,y);for(var nr=_e;++ct<qe;){Ve=be[ct];var Xt=y[Ve],Ar=O[Ve];if(W)var na=_e?W(Ar,Xt,Ve,O,y,le):W(Xt,Ar,Ve,y,O,le);if(!(na===void 0?Xt===Ar||ge(Xt,Ar,I,W,le):na)){Qe=!1;break}nr||(nr=Ve=="constructor")}if(Qe&&!nr){var ir=y.constructor,Yr=O.constructor;ir!=Yr&&"constructor"in y&&"constructor"in O&&!(typeof ir=="function"&&ir instanceof ir&&typeof Yr=="function"&&Yr instanceof Yr)&&(Qe=!1)}return le.delete(y),le.delete(O),Qe}function Or(y){return Rn(y,bi,Do)}function Rt(y,O){var I=y.__data__;return Uo(O)?I[typeof O=="string"?"string":"hash"]:I.map}function Yt(y,O){var I=Mt(y,O);return ko(I)?I:void 0}function Kt(y){var O=C.call(y,Ct),I=y[Ct];try{y[Ct]=void 0;var W=!0}catch{}var ge=j.call(y);return W&&(O?y[Ct]=I:delete y[Ct]),ge}var Do=Hr?function(y){return y==null?[]:(y=Object(y),Vt(Hr(y),function(O){return Pe.call(y,O)}))}:wi,Pt=xr;(_n&&Pt(new _n(new ArrayBuffer(1)))!=H||Sr&&Pt(new Sr)!=m||bn&&Pt(bn.resolve())!=b||wn&&Pt(new wn)!=P||Sn&&Pt(new Sn)!=q)&&(Pt=function(y){var O=xr(y),I=O==v?y.constructor:void 0,W=I?ut(I):"";if(W)switch(W){case ci:return H;case Qt:return m;case go:return b;case yo:return P;case vo:return q}return O});function rr(y,O){return O=O??a,!!O&&(typeof y=="number"||He.test(y))&&y>-1&&y%1==0&&y<O}function Uo(y){var O=typeof y;return O=="string"||O=="number"||O=="symbol"||O=="boolean"?y!=="__proto__":y===null}function $o(y){return!!M&&M in y}function jo(y){var O=y&&y.constructor,I=typeof O=="function"&&O.prototype||T;return y===I}function gi(y){return j.call(y)}function ut(y){if(y!=null){try{return E.call(y)}catch{}try{return y+""}catch{}}return""}function yi(y,O){return y===O||y!==y&&O!==O}var vi=di(function(){return arguments}())?di:function(y){return Ft(y)&&C.call(y,"callee")&&!Pe.call(y,"callee")},Wr=Array.isArray;function zr(y){return y!=null&&In(y.length)&&!Ei(y)}var Qr=En||qo;function Ho(y,O){return pi(y,O)}function Ei(y){if(!_i(y))return!1;var O=xr(y);return O==f||O==p||O==l||O==A}function In(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=a}function _i(y){var O=typeof y;return y!=null&&(O=="object"||O=="function")}function Ft(y){return y!=null&&typeof y=="object"}var Ln=Je?yn(Je):Mo;function bi(y){return zr(y)?Lo(y):Fo(y)}function wi(){return[]}function qo(){return!1}e.exports=Ho})(cu,cu.exports);var lN=cu.exports;const fN=vr(lN);const cE=({element:e="section",children:t,className:r,...n})=>$.createElement(e,{className:ue("modal",r),children:typeof t=="string"?x.jsx("p",{children:t}):t,...n});const lE=({id:e="content-overlay",isOpen:t=!1,maxWidth:r,functions:{onOpen:n=()=>{},onClose:o=()=>{}}={},forceShow:{error:i=!1}={},title:a,children:s,buttons:c,className:l="",gtmContext:u="Modal"})=>{const d=Oe(),[h,f]=$.useState(t),p=_=>{f(_),_?(n(),document.body.classList.add("has-overlay")):(o(),document.body.classList.remove("has-overlay"))};$.useEffect(()=>{p(t)},[t]);const m=r?{"--max-width":`${r/16}rem`}:{};return x.jsx("div",{className:ue("overlay",{open:h}),children:x.jsx(cE,{id:e,className:ue("overlay-modal",l,{"has-max-width":r}),hidden:!h,style:m,children:t&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"top",children:[x.jsx("h2",{children:a}),x.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":u,screenreaderText:d.formatMessage({id:"overlay_button"})})]}),x.jsx(Qa,{}),s,c&&x.jsxs("div",{className:"bottom",children:[x.jsx(Qa,{}),x.jsx(Zs,{buttons:c})]}),i&&x.jsx(Ka,{className:"error",children:i})]})})})},fE=(e,t)=>({"aria-haspopup":!0,"aria-expanded":t,"aria-controls":e}),Dm=e=>{const t={};return Object.keys(e).forEach(r=>{t[`${r}Slug`]=e[r]}),t};const Ir="discussion_",Cu=({element:e="div",content:t,isLoading:r=!1,originalAuthorId:n,functions:{content:{createContent:o,deleteContent:i,updateContent:a}={createContent:()=>{},deleteContent:()=>{},updateContent:()=>{}},likes:{createLike:s,deleteLike:c}={createLike:()=>{},deleteLike:()=>{}},comments:{openComments:l}={openComments:()=>{}}},links:u={},className:d,gtmContext:h="DiscussionAnswer",locale:f="en",children:p})=>{const m=Oe(),_=$.useContext($r),w=$.useContext(ah),[v,b]=$.useState({body:t&&t.body||"",isEditing:!1,didEdit:t&&t.isEdited||!1}),[A,S]=$.useState(!1),[P,R]=$.useState("");if($.useEffect(()=>{b({...v,body:t&&t.body||"",didEdit:t&&t.isEdited||!1})},[t.isEdited]),r||!t||t.type==="answer"&&(!t.slugs||!t.slugs.question))return x.jsx(gr,{className:"discussion-card discussion-post"});const{author:L,canLike:k,createdAt:q,id:G,likes:H=0,userLiked:Y,comments:ie=0}=t,K=_&&_.id&&typeof L!="string"&&L.id&&L.id===_.id||!1,D=typeof k=="boolean"?k:!K,Q=async X=>{X||(X=""),R("");try{if(!fN(X,v.body)){const se=t.type==="question"?{title:X}:{body:X};await a(Dm(t.slugs),se)}b({body:X,isEditing:!1,didEdit:!0})}catch{R(`${Ir}form_error`)}},ee=()=>{w&&w.updateConversation&&w.updateConversation({showThread:!0,showForm:!0}),setTimeout(()=>{const se=`reply-form-${(t.type==="answer"?t.slug:t.slugs.answer||"").toLowerCase().slice(-15)}`,fe=document.getElementById(se),He=document.getElementById(`${se}-input`);He&&He.focus(),fe&&fe.scrollIntoView({behavior:"smooth"})},0)},he=()=>{try{i(Dm(t.slugs))}catch{R("delete-error")}},J=[{text:m.formatMessage({id:`${Ir}moreMenu_report`}),href:`mailto:community@apolitical.co?subject=${encodeURI(m.formatMessage({id:`${Ir}report_subject`}))}&body=${encodeURI(m.formatMessage({id:`${Ir}report_body`},{contentType:t.type||"",contentSlug:t.slug||"",contentUrl:`${window.origin}${typeof process<"u"&&process.env.PUBLIC_URL||""}/${t.slugs.question||""}`}))}`,icon:"flag"}];return K&&J.push({text:m.formatMessage({id:`${Ir}moreMenu_edit`}),onClick:()=>b({...v,isEditing:!0}),icon:"pencil-paper",className:"gtm-trackable","data-gtm-event-context":h,"data-gtm-event-type":`edit-${t.type}-click`},{text:m.formatMessage({id:`${Ir}moreMenu_delete`}),onClick:X=>{X.preventDefault(),X.stopPropagation(),S(!0)},icon:"trash",className:"gtm-trackable","data-gtm-event-context":h,"data-gtm-event-type":`delete-${t.type}-click`,...fE(`delete-${t.slug}-modal`,A)}),$.createElement(e,{className:ue("discussion-post",d),"data-testid":`discussion-${t.type}-thread`,children:x.jsxs(x.Fragment,{children:[x.jsxs("div",{id:G||t.slug,className:ue("discussion-card",t.type,{editing:v.isEditing,"has-link":u.post&&!v.isEditing}),onClick:X=>{!u.post||v.isEditing||(X.preventDefault(),X.stopPropagation(),window.location.href=u.post)},children:[!v.isEditing&&x.jsx(bu,{member:L,additionalContent:{createdAt:q,didEdit:v.didEdit},className:typeof L!="string"&&L.id===n?"highlighted":"",gtmContext:h,gtmType:"profile-click"}),v.isEditing?x.jsx(uu,{content:{type:t.type,slugs:t.slugs},meta:{isLoading:r,isInWrapper:!0,isEditing:{text:v.body}},maxLength:t.type==="question"?250:5e4,forceShow:{error:P!==""&&P!=="delete-error"?m.formatMessage({id:P},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},functions:{create:o,handleSaveEdit:Q,handleCancel:()=>{R(""),b({...v,isEditing:!1})}},gtmContext:`${h}Form`}):u.post?x.jsx("a",{href:u.post,className:"gtm-trackable","data-gtm-event-context":h,"data-gtm-event-type":"title-click",children:x.jsx(Kl,{options:{overrides:{a:null}},children:v.body})}):x.jsx(Kl,{options:{wrapper:t.type==="question"?"h1":$.Fragment,forceWrapper:t.type==="question",forceInline:t.type==="question",forceBlock:t.type!=="question"},children:v.body}),!v.isEditing&&x.jsxs("ul",{className:ue("actions text-medium",t.type),"data-testid":`${t.type}-actions`,children:[x.jsx(uE,{element:"li",likes:H,isShort:!1,userLiked:Y,content:{type:t.type,slugs:t.slugs},canLike:D,functions:{createLike:s,deleteLike:c}}),["question","post"].includes(t.type)||u.comments||typeof l=="function"&&x.jsxs("li",{className:"action-button",onClick:X=>{X.preventDefault(),X.stopPropagation(),u.comments&&(window.location.href=u.comments),typeof l=="function"&&l()},children:[x.jsx(ze,{variant:"tertiary",size:"medium",styling:{muted:!0},icon:{icon:"speech-bubble_square_thick"},href:u.comments?u.comments:!1,onClick:u.comments||typeof l!="function"?!1:l,className:"gtm-trackable","data-gtm-event-context":h,"data-gtm-event-type":`answer-${t.type}-click`,screenreaderText:m.formatMessage({id:`${Ir}comments_screenReader`},{count:ie})}),x.jsx("span",{children:m.formatMessage({id:`${Ir}comments`},{count:ie})})]}),(t.type==="answer"||t.type==="reply")&&x.jsx("li",{children:x.jsx(ze,{variant:"tertiary",size:"medium",styling:{muted:!0},onClick:ee,children:m.formatMessage({id:`${Ir}reply`})})}),x.jsx(W0,{element:"li",id:`more-${t.slug}`,options:J})]})]}),p,x.jsx(lE,{id:`delete-${t.slug}-modal`,isOpen:A,functions:{onOpen:()=>{},onClose:()=>S(!1)},forceShow:{error:P==="delete-error"?m.formatMessage({id:"discussion_delete_error"},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},title:m.formatMessage({id:"discussion_delete_title"},{action:m.formatMessage({id:`discussion_action_${t.type}`})}),buttons:[{variant:"secondary",onClick:()=>S(!1),children:m.formatMessage({id:"discussion_delete_cancel"})},{variant:"primary",className:"destructive",onClick:he,children:m.formatMessage({id:"discussion_delete_delete"})}],gtmContext:`${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,children:x.jsx(ln,{id:"discussion_delete_text",values:{p:X=>x.jsx("p",{children:X}),action:m.formatMessage({id:`discussion_action_${t.type}`})}})})]})})};const bl="discussion_responses_",hN=({type:e="answer",responses:t=0})=>{const r=Oe();return x.jsxs("div",{className:"responses-heading",children:[x.jsx("h3",{children:r.formatMessage({id:`${bl}title`},{action:r.formatMessage({id:`${bl}${e}`}),count:t})}),t===0&&x.jsx("p",{children:Lr(r.formatMessage,`${bl}empty`,e,e)})]})};const dN=({isOpen:e=!1,count:t=0,children:r})=>{const n=Oe(),o=$.useRef(null),[i,a]=$.useState(e),[s,c]=$.useState("closed");$.useEffect(()=>{const h=o.current;if(h)return h.addEventListener("transitionend",l),()=>{h.removeEventListener("transitionend",l)}},[]),ri(()=>{s==="closed"&&!i||c(["opening","open"].includes(s)?"ready-to-close":"opening")},[i]),$.useEffect(()=>{s==="ready-to-close"&&c("closing")},[s]);const l=({propertyName:h})=>{h==="max-height"&&c(f=>f==="opening"?"open":f==="closing"?"closed":f)},u=["opening","open"].includes(s),d=uv(r,{element:"li"});return x.jsxs("div",{className:"thread-wrapper",children:[x.jsx(ze,{variant:"secondary",size:"small",styling:{muted:!0},icon:{icon:`arrow_corner-down_${u?"left":"right"}`},onClick:()=>{a(!i)},children:n.formatMessage({id:`discussion_thread_${u?"hide":"show"}`},{count:t})}),x.jsx("ul",{ref:o,className:ue("thread",s),hidden:!i,children:d})]})},pN=({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}),mN=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({content:s})=>{if(!r)return;const c=pN({user:r,content:s,verb:"post"});await e.cancelQueries({queryKey:[t]});const l=e.getQueryData([t]);return e.setQueryData([t],u=>[...u,c]),{previousActivities:l}},onError:(s,c,l)=>{e.setQueryData([t],l.previousActivities)},onSettled:()=>{e.invalidateQueries({queryKey:[t]})}}),gN=({queryClient:e,queryKey:t,mutationFn:r,affectedQueryKey:n})=>({mutationFn:r,onMutate:async({activityId:c})=>{await e.cancelQueries({queryKey:[t]});const l=e.getQueryData([t]),u=l==null?void 0:l.map(d=>{var h;return(d==null?void 0:d.id)===c&&((h=d.reaction_counts)!=null&&h.like?d.reaction_counts.like+=1:d.reaction_counts.like=1),d});return e.setQueryData([t],()=>u&&[...u]),{previousActivities:u}},onError:(c,l,u)=>{e.setQueryData([t],u.previousActivities)},onSuccess:c=>{const l=e.getQueryData([t]),u=l==null?void 0:l.map(d=>((d==null?void 0:d.id)===(c==null?void 0:c.activity_id)&&(d.latest_reactions.like?d.latest_reactions.like.push(c):d.latest_reactions.like=[c]),d));return e.setQueryData([t],()=>u&&[...u]),{previousActivities:l}},onSettled:(c,l,u)=>{e.invalidateQueries({queryKey:[`${n}/${u.activityId}`]})}}),yN=({queryClient:e,queryKey:t,user:r,mutationFn:n,affectedQueryKey:o})=>({mutationFn:n,onMutate:async({activityId:l})=>{await e.cancelQueries({queryKey:[t]});const u=e.getQueryData([t]),d=u==null?void 0:u.map(h=>{var f;return(h==null?void 0:h.id)===l&&(f=h.reaction_counts)!=null&&f.like&&(h.reaction_counts.like-=1),h});return e.setQueryData([t],()=>d&&[...d]),{previousActivities:d}},onError:(l,u,d)=>{e.setQueryData([t],d.previousActivities)},onSuccess:(l,{activityId:u})=>{const d=e.getQueryData([t]),h=d==null?void 0:d.map(f=>{var p,m,_,w;if(f.id===u){const v=(_=(m=(p=f.latest_reactions)==null?void 0:p.like)==null?void 0:m.find(b=>b.user_id===(r==null?void 0:r.id)))==null?void 0:_.id;return f.latest_reactions.like=(w=f.latest_reactions.like)==null?void 0:w.filter(b=>b.id!==v),f}else return f});return e.setQueryData([t],()=>h&&[...h]),{previousActivities:d}},onSettled:(l,u,d)=>{e.invalidateQueries({queryKey:[`${o}/${d.activityId}`]})}}),vN=({parentId:e,uiSlug:t,membershipRequiredToPost:{isMember:r,join:n,leave:o},functions:{list:i,create:a,like:s,unlike:c},cache:{activitiesListQueryKey:l,singleActivityQueryKeyWithoutVariable:u}})=>{const d=ho(),h=$.useContext($r),{data:f,error:p,isLoading:m,isFetching:_}=A0({queryKey:[l],queryFn:i}),w=mN({queryClient:d,queryKey:l,user:h,mutationFn:a}),{mutate:v}=fn(w),b=gN({queryClient:d,queryKey:l,mutationFn:s,affectedQueryKey:u}),{mutate:A}=fn(b),S=yN({queryClient:d,queryKey:l,user:h,mutationFn:async({activityId:k})=>{var H,Y,ie;const q=f&&(f==null?void 0:f.find(K=>K.id===k)),G=(ie=(Y=(H=q==null?void 0:q.latest_reactions)==null?void 0:H.like)==null?void 0:Y.find(K=>K.user_id===(h==null?void 0:h.id)))==null?void 0:ie.id;await c({reactionId:G||"",activityId:k})},affectedQueryKey:u}),{mutate:P}=fn(S),R=$.useCallback(({activityId:k})=>A({activityId:k}),[A]),L=$.useCallback(({activityId:k})=>P({activityId:k}),[P]);if(p)return x.jsx(ra,{variant:"error",text:p.message});if(m)return x.jsx(gr,{style:{height:"400px"}});if(!(Array.isArray(f)&&f.length===0))return x.jsxs(x.Fragment,{children:[x.jsx(sh,{contentType:"post",createPost:v,membershipRequiredToPost:{isMember:r,required:!0,join:n,leave:o,notMemberStateText:"Join community to create a post."}}),!_&&Array.isArray(f)&&(f==null?void 0:f.map(k=>{var G,H,Y,ie,K,D,Q,ee,he,J,X;const q=(H=(G=k==null?void 0:k.latest_reactions)==null?void 0:G.like)==null?void 0:H.filter(se=>se.user_id===(h==null?void 0:h.id));return x.jsx(Cu,{content:{type:"post",body:k==null?void 0:k.content,createdAt:(k==null?void 0:k.time)||"",slugs:{question:e},slug:k==null?void 0:k.id,author:{id:(Y=k==null?void 0:k.actor)==null?void 0:Y.id,name:(K=(ie=k==null?void 0:k.actor)==null?void 0:ie.data)==null?void 0:K.name,organization:(Q=(D=k==null?void 0:k.actor)==null?void 0:D.data)==null?void 0:Q.organization,jobTitle:(he=(ee=k==null?void 0:k.actor)==null?void 0:ee.data)==null?void 0:he.jobTitle,image:{thumbnail:((X=(J=k==null?void 0:k.actor)==null?void 0:J.data)==null?void 0:X.thumbnail)||void 0}},userLiked:!!(q!=null&&q.length),likes:(k==null?void 0:k.reaction_counts.like)||0,comments:(k==null?void 0:k.reaction_counts.reply)||0},links:{post:`${t}/${e}/${k==null?void 0:k.id}`,comments:`${t}/${e}/${k==null?void 0:k.id}`},functions:{content:{createContent:()=>null,deleteContent:()=>null,updateContent:()=>null},likes:{createLike:()=>{R({activityId:k==null?void 0:k.id})},deleteLike:()=>{L({activityId:k==null?void 0:k.id})}},comments:{openComments:()=>null}}},k==null?void 0:k.id)}))]})},EN=({queryClient:e,queryKey:t,mutationFn:r,affectedQueryKey:n})=>({mutationFn:r,onMutate:async()=>{await e.cancelQueries({queryKey:[t]})},onError:(c,l,u)=>{e.setQueryData([t],u.previousActivity)},onSuccess:c=>{var u;const l=e.getQueryData([t]);if(l)return(u=l==null?void 0:l.latest_reactions)!=null&&u.reply?(l.latest_reactions.reply.unshift(c),l&&(l.reaction_counts={reply:l.latest_reactions.reply.length})):(l.latest_reactions={reply:[c]},l.reaction_counts={reply:1}),e.setQueryData([t],()=>({...l})),{previousActivity:l}},onSettled:()=>{e.invalidateQueries({queryKey:[n]})}}),_N=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async({replyId:a})=>{var l,u;await e.cancelQueries({queryKey:[t]});const s=e.getQueryData([t]),c=(u=(l=s==null?void 0:s.latest_reactions)==null?void 0:l.reply)==null?void 0:u.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:c}})),{previousActivity:s}},onError:(a,s,c)=>{e.setQueryData([t],c.previousActivity)},onSuccess:a=>{var l;const s=e.getQueryData([t]),c=(l=s==null?void 0:s.latest_reactions.reply)==null?void 0:l.map(u=>(u.id===a.id&&(u.latest_children.like?u.latest_children.like.push(a):u.latest_children.like=[a]),u));return e.setQueryData([t],()=>({...s,latest_reactions:{reply:c}})),{previousActivity:s}}}),bN=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({replyId:s})=>{var u;await e.cancelQueries({queryKey:[t]});const c=e.getQueryData([t]);if(!c)return;const l=(u=c.latest_reactions.reply)==null?void 0:u.map(d=>(d.id===s&&d.children_counts.like&&(d.children_counts.like-=1),d));return e.setQueryData([t],()=>({...c,latest_reactions:{reply:l}})),{previousActivity:c}},onError:(s,c,l)=>{e.setQueryData([t],l.previousActivity)},onSuccess:(s,{replyId:c})=>{var d;const l=e.getQueryData([t]);if(!l)return;const u=(d=l.latest_reactions.reply)==null?void 0:d.map(h=>{var f;return h.id===c?(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:u}})),{previousActivity:l}}}),hE=({uiSlug:e,parentId:t,activityId:r,repliesList:n,cache:{activitiesListQueryKey:o,singleActivityQueryKeyWithoutVariable:i},membershipRequiredToPost:{isMember:a,join:s,leave:c},functions:{createReply:l,like:u,unlike:d}})=>{const h=ho(),f=$.useContext($r),p=`${i}/${r}`,m=EN({queryClient:h,queryKey:p,mutationFn:l,affectedQueryKey:o}),{mutate:_}=fn(m),w=_N({queryClient:h,queryKey:p,mutationFn:u}),{mutate:v}=fn(w),b=bN({queryClient:h,queryKey:p,user:f,mutationFn:d}),{mutate:A}=fn(b),S=$.useCallback(({replyId:R})=>v({replyId:R}),[v]),P=$.useCallback(({replyId:R})=>A({replyId:R}),[A]);return x.jsxs(x.Fragment,{children:[x.jsx(sh,{contentType:"post",createPost:_,membershipRequiredToPost:{isMember:a,required:!0,join:s,leave:c,notMemberStateText:"Join community to create a post."}}),(n==null?void 0:n.length)===0?x.jsx(x.Fragment,{}):n==null?void 0:n.map(R=>{var k,q,G,H,Y,ie,K,D,Q,ee,he,J,X,se,fe;const L=((k=R==null?void 0:R.latest_children)==null?void 0:k.like)&&((q=R==null?void 0:R.latest_children)==null?void 0:q.like.filter(He=>He.user_id===(f==null?void 0:f.id)));return x.jsx(Cu,{content:{type:"post",body:((H=(G=R==null?void 0:R.data)==null?void 0:G.content)==null?void 0:H.text)||"",createdAt:R==null?void 0:R.created_at,slugs:{question:`${t}/${r}`,reply:R==null?void 0:R.id},slug:`${e}/${t}/${r}#${R==null?void 0:R.id}`,author:{id:(Y=R==null?void 0:R.user)==null?void 0:Y.id,name:(K=(ie=R==null?void 0:R.user)==null?void 0:ie.data)==null?void 0:K.name,organization:(Q=(D=R==null?void 0:R.user)==null?void 0:D.data)==null?void 0:Q.organization,jobTitle:(he=(ee=R==null?void 0:R.user)==null?void 0:ee.data)==null?void 0:he.jobTitle,image:{thumbnail:((X=(J=R==null?void 0:R.user)==null?void 0:J.data)==null?void 0:X.thumbnail)||void 0}},userLiked:!!(L!=null&&L.length),likes:((se=R==null?void 0:R.children_counts)==null?void 0:se.like)||0,comments:((fe=R==null?void 0:R.children_counts)==null?void 0:fe.reply)||0},functions:{content:{createContent:()=>console.log("create"),deleteContent:()=>console.log("delete"),updateContent:()=>console.log("update")},likes:{createLike:()=>S({replyId:R==null?void 0:R.id}),deleteLike:()=>P({replyId:R==null?void 0:R.id})},comments:{openComments:()=>{}}}},R==null?void 0:R.id)})]})},wN=({queryClient:e,queryKey:t,mutationFn:r,affectedQueryKey:n})=>({mutationFn:r,onMutate:async()=>{var l;await e.cancelQueries({queryKey:[t]});const c=e.getQueryData([t]);return(l=c==null?void 0:c.reaction_counts)!=null&&l.like?c.reaction_counts.like+=1:c&&(c.reaction_counts={like:1}),e.setQueryData([t],()=>({...c})),{previousActivity:c}},onError:(c,l,u)=>{e.setQueryData([t],u.previousActivity)},onSuccess:c=>{const l=e.getQueryData([t]);return l!=null&&l.latest_reactions.like?l.latest_reactions.like.push(c):l&&(l.latest_reactions={like:[c]}),e.setQueryData([t],()=>({...l})),{previousActivity:l}},onSettled:()=>{e.invalidateQueries({queryKey:[n]})}}),SN=({queryClient:e,queryKey:t,user:r,activity:n,mutationFn:o,affectedQueryKey:i})=>({mutationFn:o,onMutate:async()=>{var d;await e.cancelQueries({queryKey:[t]});const u=e.getQueryData([t]);return(d=u==null?void 0:u.reaction_counts)!=null&&d.like&&(u.reaction_counts.like-=1),e.setQueryData([t],()=>({...u})),{previousActivity:u}},onError:(u,d,h)=>{e.setQueryData([t],h.previousActivity)},onSuccess:()=>{var h,f,p;if(!n)return;const u=(p=(f=(h=n.latest_reactions)==null?void 0:h.like)==null?void 0:f.find(m=>m.user_id===(r==null?void 0:r.id)))==null?void 0:p.id,d=e.getQueryData([t]);if(d!=null&&d.latest_reactions.like)return d.latest_reactions.like=d.latest_reactions.like.filter(m=>m.id!==u),e.setQueryData([t],()=>({...d})),{previousActivity:d}},onSettled:()=>{e.invalidateQueries({queryKey:[i]})}}),TN=({uiSlug:e,parentId:t,activityId:r,cache:{activitiesListQueryKey:n,singleActivityQueryKeyWithoutVariable:o},membershipRequiredToPost:i,functions:{get:a,likeActivity:s,unlikeActivity:c,createReply:l,likeReply:u,unlikeReply:d}})=>{var k,q,G,H,Y,ie,K,D,Q,ee,he;const h=$.useContext($r),f=ho(),p=`${o}/${r}`,{data:m,error:_,isLoading:w,isFetching:v}=A0({queryKey:[p],queryFn:a}),b=wN({queryClient:f,queryKey:p,mutationFn:s,affectedQueryKey:n}),{mutate:A}=fn(b),S=SN({queryClient:f,queryKey:p,user:h,mutationFn:async()=>{var X,se,fe;const J=(fe=(se=(X=m==null?void 0:m.latest_reactions)==null?void 0:X.like)==null?void 0:se.find(He=>He.user_id===(h==null?void 0:h.id)))==null?void 0:fe.id;await c({activityId:r,reactionId:J})},affectedQueryKey:n,activity:m}),{mutate:P}=fn(S),R=$.useCallback(({activityId:J})=>A({activityId:J}),[m,t,h,f,s,A]),L=$.useCallback(async({activityId:J})=>P({activityId:J}),[m,t,h,f,c,P]);return _?x.jsx(ra,{variant:"error",text:_.message}):w||v?x.jsx(gr,{style:{height:"400px"}}):x.jsx(Cu,{content:{type:"post",body:m==null?void 0:m.content,createdAt:(m==null?void 0:m.time)||"",slugs:{question:`${t}/${r}`},slug:r,author:{id:(k=m==null?void 0:m.actor)==null?void 0:k.id,name:(q=m==null?void 0:m.actor)==null?void 0:q.data.name,organization:(G=m==null?void 0:m.actor)==null?void 0:G.data.organization,jobTitle:(H=m==null?void 0:m.actor)==null?void 0:H.data.jobTitle,image:{thumbnail:((Y=m==null?void 0:m.actor)==null?void 0:Y.data.thumbnail)||void 0}},userLiked:((ie=m==null?void 0:m.latest_reactions)==null?void 0:ie.like)&&((D=(K=m==null?void 0:m.latest_reactions)==null?void 0:K.like.filter(J=>(J==null?void 0:J.user_id)===(h==null?void 0:h.id)))==null?void 0:D.length)>0,likes:m&&(m==null?void 0:m.reaction_counts.like),comments:m&&(m==null?void 0:m.reaction_counts.reply)},originalAuthorId:(Q=m==null?void 0:m.actor)==null?void 0:Q.id,functions:{content:{createContent:()=>console.log("create"),deleteContent:()=>console.log("delete"),updateContent:()=>console.log("update")},likes:{createLike:()=>R({activityId:r}),deleteLike:()=>L({activityId:r})},comments:{openComments:()=>{}}},children:x.jsxs(x.Fragment,{children:[x.jsxs("h3",{children:["Comments (",((ee=m==null?void 0:m.reaction_counts)==null?void 0:ee.reply)||0,")"]}),x.jsx(hE,{uiSlug:e,parentId:t,activityId:r,repliesList:(he=m==null?void 0:m.latest_reactions)==null?void 0:he.reply,cache:{activitiesListQueryKey:n,singleActivityQueryKeyWithoutVariable:o},membershipRequiredToPost:i,functions:{createReply:l,like:u,unlike:d}})]})},r)},xN=({id:e,data:{jobTitle:t,name:r,organization:n,thumbnail:o}})=>({id:e,name:r,jobTitle:t,organization:n,image:{thumbnail:o}});exports.$PROXY=Cs;exports.$TRACK=Qf;exports.ASSETS_BUCKET=Ya;exports.ActivitiesFeed=vN;exports.ActivitySection=TN;exports.AddPost=sh;exports.Breadcrumbs=RR;exports.Button=ze;exports.ButtonWrapper=Zs;exports.CollapsibleSection=Hf;exports.Columns=IR;exports.CommunityDetails=CR;exports.Contributors=m0;exports.Conversation=aN;exports.ConversationContext=ah;exports.CookieBanner=z0;exports.Divider=Qa;exports.DownloadSection=EA;exports.Dynamic=wR;exports.EmailHelperTextBox=LR;exports.EmptyStateBox=ra;exports.Filters=PR;exports.Footer=eh;exports.For=Q1;exports.Form=uu;exports.FullWidthSection=jf;exports.Header=oh;exports.HelperTextBox=c0;exports.HiddenFromScreenReaders=yf;exports.HideShowTextBox=PC;exports.HighlightedTextBoxWrapper=Dr;exports.Index=Y1;exports.IntlProvider=qC;exports.JoinButton=Jf;exports.Likes=uE;exports.Link=Ff;exports.LoadMore=V0;exports.LoadingPlaceholder=gr;exports.LoadingState=d0;exports.Logo=Zf;exports.LogoSection=_A;exports.MarkdownText=Kl;exports.MarketingBlock=TA;exports.Match=J1;exports.Member=bu;exports.MembersList=qP;exports.Modal=cE;exports.MoreMenu=W0;exports.NUMBER_OF_USERS=OA;exports.Overlay=lE;exports.PageLayout=$P;exports.Pill=l0;exports.Portal=bR;exports.Post=Cu;exports.ProfilePicture=_u;exports.ProgressBar=f0;exports.Rating=BR;exports.ReactQueryProvider=AR;exports.RepliesFeed=hE;exports.ResponsesHeading=hN;exports.ResponsiveImage=cv;exports.SearchForm=X0;exports.Show=K1;exports.StatusBanner=Ka;exports.Switch=X1;exports.Tags=HP;exports.Thread=dN;exports.Tooltip=$v;exports.UserContext=$r;exports.UserProvider=GC;exports.VisuallyHidden=lt;exports.addAriaProps=fE;exports.addEventListener=H0;exports.bannerSection=SA;exports.batch=C1;exports.children=Kf;exports.className=j0;exports.createComponent=F0;exports.createComputed=ff;exports.createContext=M1;exports.createEffect=Yf;exports.createMemo=St;exports.createRenderEffect=dn;exports.createRoot=hn;exports.createSignal=bt;exports.createUniqueId=z1;exports.delegateEvents=$0;exports.getListener=N1;exports.getMember=Vf;exports.headerData=Ns;exports.insert=ou;exports.loadingBlock=$C;exports.mapGetSteamData=xN;exports.mergeProps=B0;exports.on=R1;exports.onCleanup=Rs;exports.onMount=P1;exports.passwordRules=FR;exports.setAttribute=iu;exports.splitProps=D0;exports.spread=q0;exports.template=lR;exports.untrack=Xe;exports.use=pR;exports.useContext=F1;exports.useEffectAfterMount=ri;exports.useFeatureFlag=FT;exports.useScreenWidth=Js;exports.useScrollListener=Xy;exports.useScrollToHash=DT;exports.useTransition=k1;