@apolitical/component-library 1.8.2 → 1.9.0-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.
- package/4TNE5QTO-c4ca6c50.mjs +9077 -0
- package/4TNE5QTO-d0de2674.js +987 -0
- package/context/index.d.ts +1 -0
- package/context/react-query/index.d.ts +1 -0
- package/context/react-query/react-query.provider.d.ts +7 -0
- package/context/user/user.context.d.ts +2 -0
- package/discussion/components/add-post/add-post.d.ts +16 -0
- package/discussion/components/add-post/index.d.ts +1 -0
- package/discussion/{form → components/form}/form.d.ts +1 -1
- package/discussion/components/index.d.ts +7 -0
- package/discussion/{likes → components/likes}/likes.d.ts +2 -2
- package/discussion/{likes → components/likes}/likes.helpers.d.ts +1 -1
- package/discussion/{post → components/post}/post.d.ts +1 -1
- package/discussion/feeds/activities-feed/activities-feed.d.ts +24 -0
- package/discussion/feeds/activities-feed/activities-feed.handlers.d.ts +28 -0
- package/discussion/feeds/activities-feed/activities-feed.helpers.d.ts +23 -0
- package/discussion/feeds/activities-feed/activities-feed.mock.d.ts +318 -0
- package/discussion/feeds/activities-feed/index.d.ts +1 -0
- package/discussion/feeds/index.d.ts +2 -0
- package/discussion/feeds/replies-feed/index.d.ts +1 -0
- package/discussion/feeds/replies-feed/replies-feed.d.ts +24 -0
- package/discussion/feeds/replies-feed/replies-feed.handlers.d.ts +81 -0
- package/discussion/feeds/replies-feed/replies-feed.mock.d.ts +2 -0
- package/discussion/index.d.ts +3 -6
- package/discussion/sections/activity-section/activity-section.d.ts +32 -0
- package/discussion/sections/activity-section/activity-section.handlers.d.ts +58 -0
- package/discussion/sections/activity-section/activity.mock.d.ts +2 -0
- package/discussion/sections/activity-section/index.d.ts +1 -0
- package/discussion/sections/index.d.ts +1 -0
- package/index-72994bb1.js +101 -0
- package/index-b53a44d0.mjs +23195 -0
- package/index.js +1 -101
- package/index.mjs +78 -19590
- package/package.json +4 -1
- package/style.css +1 -1
- /package/discussion/{conversation → components/conversation}/conversation.d.ts +0 -0
- /package/discussion/{conversation → components/conversation}/index.d.ts +0 -0
- /package/discussion/{form → components/form}/index.d.ts +0 -0
- /package/discussion/{likes → components/likes}/index.d.ts +0 -0
- /package/discussion/{post → components/post}/index.d.ts +0 -0
- /package/discussion/{post → components/post}/post.mock.d.ts +0 -0
- /package/discussion/{responses-heading → components/responses-heading}/index.d.ts +0 -0
- /package/discussion/{responses-heading → components/responses-heading}/responses-heading.d.ts +0 -0
- /package/discussion/{thread → components/thread}/index.d.ts +0 -0
- /package/discussion/{thread → components/thread}/thread.d.ts +0 -0
package/index.js
CHANGED
|
@@ -1,101 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
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 s=typeof i;if(s==="string"||s==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var a=r.apply(null,i);a&&n.push(a)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&n.push(l)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Hd);var Hg=Hd.exports;const ne=Ht(Hg),qg=({element:e="span",showOnFocus:t=!0,children:r,...n})=>U.createElement(e,{...n,className:ne("hidden",{"show-on-focus":t}),children:r}),Je=U.memo(qg),Gg=({element:e="span",children:t=null,...r})=>U.createElement(e,{...r,"aria-hidden":!0},t),ku=U.memo(Gg),Jr=(e,t)=>{const r=U.useRef(!1);U.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 qd=Vg,_c=zg,Wg=Object.prototype.toString,so=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Vg(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var r={},n=t||{},o=n.decode||Yg,i=0;i<e.length;){var s=e.indexOf("=",i);if(s===-1)break;var a=e.indexOf(";",i);if(a===-1)a=e.length;else if(a<s){i=e.lastIndexOf(";",s-1)+1;continue}var l=e.slice(i,s).trim();if(r[l]===void 0){var f=e.slice(s+1,a).trim();f.charCodeAt(0)===34&&(f=f.slice(1,-1)),r[l]=Xg(f,o)}i=a+1}return r}function zg(e,t,r){var n=r||{},o=n.encode||Kg;if(typeof o!="function")throw new TypeError("option encode is invalid");if(!so.test(e))throw new TypeError("argument name is invalid");var i=o(t);if(i&&!so.test(i))throw new TypeError("argument val is invalid");var s=e+"="+i;if(n.maxAge!=null){var a=n.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(a)}if(n.domain){if(!so.test(n.domain))throw new TypeError("option domain is invalid");s+="; Domain="+n.domain}if(n.path){if(!so.test(n.path))throw new TypeError("option path is invalid");s+="; Path="+n.path}if(n.expires){var l=n.expires;if(!Qg(l)||isNaN(l.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+l.toUTCString()}if(n.httpOnly&&(s+="; HttpOnly"),n.secure&&(s+="; Secure"),n.priority){var f=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(f){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){var u=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(u){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function Yg(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function Kg(e){return encodeURIComponent(e)}function Qg(e){return Wg.call(e)==="[object Date]"||e instanceof Date}function Xg(e,t){try{return t(e)}catch{return e}}function Jg(){return typeof document=="object"&&typeof document.cookie=="string"}function Zg(e){return typeof e=="string"?qd(e):typeof e=="object"&&e!==null?e:{}}function ma(e,t={}){const r=ey(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function ey(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class Gd{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const o=this.cookies;this.cookies=qd(document.cookie),this._checkChanges(o)};const n=typeof document>"u"?"":document.cookie;this.cookies=Zg(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=Jg()}_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:ma(t[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),ma(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=ma(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=_c(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=_c(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 Wd=Oe.createContext(new Gd),{Provider:ty,Consumer:pA}=Wd,ry=Wd;class ny extends Oe.Component{constructor(t){super(t),t.cookies?this.cookies=t.cookies:this.cookies=new Gd(void 0,t.defaultSetOptions)}render(){return Oe.createElement(ty,{value:this.cookies},this.props.children)}}var ru={exports:{}},Ce={};/** @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 Ec;function iy(){if(Ec)return Ce;Ec=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,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,c=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function b(w){if(typeof w=="object"&&w!==null){var N=w.$$typeof;switch(N){case t:switch(w=w.type,w){case l:case f:case n:case i:case o:case h:return w;default:switch(w=w&&w.$$typeof,w){case a:case u:case p:case c:case s:return w;default:return N}}case r:return N}}}function A(w){return b(w)===f}return Ce.AsyncMode=l,Ce.ConcurrentMode=f,Ce.ContextConsumer=a,Ce.ContextProvider=s,Ce.Element=t,Ce.ForwardRef=u,Ce.Fragment=n,Ce.Lazy=p,Ce.Memo=c,Ce.Portal=r,Ce.Profiler=i,Ce.StrictMode=o,Ce.Suspense=h,Ce.isAsyncMode=function(w){return A(w)||b(w)===l},Ce.isConcurrentMode=A,Ce.isContextConsumer=function(w){return b(w)===a},Ce.isContextProvider=function(w){return b(w)===s},Ce.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ce.isForwardRef=function(w){return b(w)===u},Ce.isFragment=function(w){return b(w)===n},Ce.isLazy=function(w){return b(w)===p},Ce.isMemo=function(w){return b(w)===c},Ce.isPortal=function(w){return b(w)===r},Ce.isProfiler=function(w){return b(w)===i},Ce.isStrictMode=function(w){return b(w)===o},Ce.isSuspense=function(w){return b(w)===h},Ce.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===f||w===i||w===o||w===h||w===d||typeof w=="object"&&w!==null&&(w.$$typeof===p||w.$$typeof===c||w.$$typeof===s||w.$$typeof===a||w.$$typeof===u||w.$$typeof===E||w.$$typeof===S||w.$$typeof===_||w.$$typeof===m)},Ce.typeOf=b,Ce}var Re={};/** @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 bc;function oy(){return bc||(bc=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,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,c=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function b(re){return typeof re=="string"||typeof re=="function"||re===n||re===f||re===i||re===o||re===h||re===d||typeof re=="object"&&re!==null&&(re.$$typeof===p||re.$$typeof===c||re.$$typeof===s||re.$$typeof===a||re.$$typeof===u||re.$$typeof===E||re.$$typeof===S||re.$$typeof===_||re.$$typeof===m)}function A(re){if(typeof re=="object"&&re!==null){var Ye=re.$$typeof;switch(Ye){case t:var je=re.type;switch(je){case l:case f:case n:case i:case o:case h:return je;default:var bt=je&&je.$$typeof;switch(bt){case a:case u:case p:case c:case s:return bt;default:return Ye}}case r:return Ye}}}var w=l,N=f,F=a,B=s,G=t,z=u,W=n,H=p,Y=c,te=r,Q=i,M=o,V=h,Z=!1;function de(re){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),X(re)||A(re)===l}function X(re){return A(re)===f}function K(re){return A(re)===a}function se(re){return A(re)===s}function ce(re){return typeof re=="object"&&re!==null&&re.$$typeof===t}function Fe(re){return A(re)===u}function J(re){return A(re)===n}function ie(re){return A(re)===p}function Pe(re){return A(re)===c}function Ae(re){return A(re)===r}function st(re){return A(re)===i}function lt(re){return A(re)===o}function Et(re){return A(re)===h}Re.AsyncMode=w,Re.ConcurrentMode=N,Re.ContextConsumer=F,Re.ContextProvider=B,Re.Element=G,Re.ForwardRef=z,Re.Fragment=W,Re.Lazy=H,Re.Memo=Y,Re.Portal=te,Re.Profiler=Q,Re.StrictMode=M,Re.Suspense=V,Re.isAsyncMode=de,Re.isConcurrentMode=X,Re.isContextConsumer=K,Re.isContextProvider=se,Re.isElement=ce,Re.isForwardRef=Fe,Re.isFragment=J,Re.isLazy=ie,Re.isMemo=Pe,Re.isPortal=Ae,Re.isProfiler=st,Re.isStrictMode=lt,Re.isSuspense=Et,Re.isValidElementType=b,Re.typeOf=A}()),Re}process.env.NODE_ENV==="production"?ru.exports=iy():ru.exports=oy();var ay=ru.exports,Vd=ay,sy={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},uy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zd={};zd[Vd.ForwardRef]=sy;zd[Vd.Memo]=uy;function cy(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function Yd(e){const t=U.useContext(ry);if(!t)throw new Error("Missing <CookiesProvider>");const[r,n]=U.useState(()=>t.getAll());cy()&&U.useLayoutEffect(()=>{function a(){const l=t.getAll({doNotUpdate:!0});ly(e||null,l,r)&&n(l)}return t.addChangeListener(a),()=>{t.removeChangeListener(a)}},[t,r]);const o=U.useMemo(()=>t.set.bind(t),[t]),i=U.useMemo(()=>t.remove.bind(t),[t]),s=U.useMemo(()=>t.update.bind(t),[t]);return[r,o,i,s]}function ly(e,t,r){if(!e)return!0;for(let n of e)if(t[n]!==r[n])return!0;return!1}var Kd={exports:{}},ga={exports:{}},uo={},co={exports:{}},ya,wc;function Qd(){return wc||(wc=1,ya=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)}}),ya}var va,Sc;function Ze(){if(Sc)return va;Sc=1;var e=Qd(),t=Object.prototype.toString,r=function(M){return function(V){var Z=t.call(V);return M[Z]||(M[Z]=Z.slice(8,-1).toLowerCase())}}(Object.create(null));function n(M){return M=M.toLowerCase(),function(Z){return r(Z)===M}}function o(M){return Array.isArray(M)}function i(M){return typeof M>"u"}function s(M){return M!==null&&!i(M)&&M.constructor!==null&&!i(M.constructor)&&typeof M.constructor.isBuffer=="function"&&M.constructor.isBuffer(M)}var a=n("ArrayBuffer");function l(M){var V;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?V=ArrayBuffer.isView(M):V=M&&M.buffer&&a(M.buffer),V}function f(M){return typeof M=="string"}function u(M){return typeof M=="number"}function h(M){return M!==null&&typeof M=="object"}function d(M){if(r(M)!=="object")return!1;var V=Object.getPrototypeOf(M);return V===null||V===Object.prototype}var c=n("Date"),p=n("File"),m=n("Blob"),E=n("FileList");function S(M){return t.call(M)==="[object Function]"}function _(M){return h(M)&&S(M.pipe)}function b(M){var V="[object FormData]";return M&&(typeof FormData=="function"&&M instanceof FormData||t.call(M)===V||S(M.toString)&&M.toString()===V)}var A=n("URLSearchParams");function w(M){return M.trim?M.trim():M.replace(/^\s+|\s+$/g,"")}function N(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function F(M,V){if(!(M===null||typeof M>"u"))if(typeof M!="object"&&(M=[M]),o(M))for(var Z=0,de=M.length;Z<de;Z++)V.call(null,M[Z],Z,M);else for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&V.call(null,M[X],X,M)}function B(){var M={};function V(X,K){d(M[K])&&d(X)?M[K]=B(M[K],X):d(X)?M[K]=B({},X):o(X)?M[K]=X.slice():M[K]=X}for(var Z=0,de=arguments.length;Z<de;Z++)F(arguments[Z],V);return M}function G(M,V,Z){return F(V,function(X,K){Z&&typeof X=="function"?M[K]=e(X,Z):M[K]=X}),M}function z(M){return M.charCodeAt(0)===65279&&(M=M.slice(1)),M}function W(M,V,Z,de){M.prototype=Object.create(V.prototype,de),M.prototype.constructor=M,Z&&Object.assign(M.prototype,Z)}function H(M,V,Z){var de,X,K,se={};V=V||{};do{for(de=Object.getOwnPropertyNames(M),X=de.length;X-- >0;)K=de[X],se[K]||(V[K]=M[K],se[K]=!0);M=Object.getPrototypeOf(M)}while(M&&(!Z||Z(M,V))&&M!==Object.prototype);return V}function Y(M,V,Z){M=String(M),(Z===void 0||Z>M.length)&&(Z=M.length),Z-=V.length;var de=M.indexOf(V,Z);return de!==-1&&de===Z}function te(M){if(!M)return null;var V=M.length;if(i(V))return null;for(var Z=new Array(V);V-- >0;)Z[V]=M[V];return Z}var Q=function(M){return function(V){return M&&V instanceof M}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return va={isArray:o,isArrayBuffer:a,isBuffer:s,isFormData:b,isArrayBufferView:l,isString:f,isNumber:u,isObject:h,isPlainObject:d,isUndefined:i,isDate:c,isFile:p,isBlob:m,isFunction:S,isStream:_,isURLSearchParams:A,isStandardBrowserEnv:N,forEach:F,merge:B,extend:G,trim:w,stripBOM:z,inherits:W,toFlatObject:H,kindOf:r,kindOfTest:n,endsWith:Y,toArray:te,isTypedArray:Q,isFileList:E},va}var _a,Tc;function Xd(){if(Tc)return _a;Tc=1;var e=Ze();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 _a=function(n,o,i){if(!o)return n;var s;if(i)s=i(o);else if(e.isURLSearchParams(o))s=o.toString();else{var a=[];e.forEach(o,function(u,h){u===null||typeof u>"u"||(e.isArray(u)?h=h+"[]":u=[u],e.forEach(u,function(c){e.isDate(c)?c=c.toISOString():e.isObject(c)&&(c=JSON.stringify(c)),a.push(t(h)+"="+t(c))}))}),s=a.join("&")}if(s){var l=n.indexOf("#");l!==-1&&(n=n.slice(0,l)),n+=(n.indexOf("?")===-1?"?":"&")+s}return n},_a}var Ea,xc;function fy(){if(xc)return Ea;xc=1;var e=Ze();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)})},Ea=t,Ea}var ba,Oc;function dy(){if(Oc)return ba;Oc=1;var e=Ze();return ba=function(r,n){e.forEach(r,function(i,s){s!==n&&s.toUpperCase()===n.toUpperCase()&&(r[n]=i,delete r[s])})},ba}var wa,Ac;function Mn(){if(Ac)return wa;Ac=1;var e=Ze();function t(o,i,s,a,l){Error.call(this),this.message=o,this.name="AxiosError",i&&(this.code=i),s&&(this.config=s),a&&(this.request=a),l&&(this.response=l)}e.inherits(t,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var 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,s,a,l,f){var u=Object.create(r);return e.toFlatObject(o,u,function(d){return d!==Error.prototype}),t.call(u,o.message,i,s,a,l),u.name=o.name,f&&Object.assign(u,f),u},wa=t,wa}var Sa,Cc;function Jd(){return Cc||(Cc=1,Sa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),Sa}var Ta,Rc;function Zd(){if(Rc)return Ta;Rc=1;var e=Ze();function t(r,n){n=n||new FormData;var o=[];function i(a){return a===null?"":e.isDate(a)?a.toISOString():e.isArrayBuffer(a)||e.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function s(a,l){if(e.isPlainObject(a)||e.isArray(a)){if(o.indexOf(a)!==-1)throw Error("Circular reference detected in "+l);o.push(a),e.forEach(a,function(u,h){if(!e.isUndefined(u)){var d=l?l+"."+h:h,c;if(u&&!l&&typeof u=="object"){if(e.endsWith(h,"{}"))u=JSON.stringify(u);else if(e.endsWith(h,"[]")&&(c=e.toArray(u))){c.forEach(function(p){!e.isUndefined(p)&&n.append(d,i(p))});return}}s(u,d)}}),o.pop()}else n.append(l,i(a))}return s(r),n}return Ta=t,Ta}var xa,Nc;function hy(){if(Nc)return xa;Nc=1;var e=Mn();return xa=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))},xa}var Oa,Pc;function py(){if(Pc)return Oa;Pc=1;var e=Ze();return Oa=e.isStandardBrowserEnv()?function(){return{write:function(n,o,i,s,a,l){var f=[];f.push(n+"="+encodeURIComponent(o)),e.isNumber(i)&&f.push("expires="+new Date(i).toGMTString()),e.isString(s)&&f.push("path="+s),e.isString(a)&&f.push("domain="+a),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(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(){}}}(),Oa}var Aa,Ic;function my(){return Ic||(Ic=1,Aa=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Aa}var Ca,Lc;function gy(){return Lc||(Lc=1,Ca=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),Ca}var Ra,Mc;function eh(){if(Mc)return Ra;Mc=1;var e=my(),t=gy();return Ra=function(n,o){return n&&!e(o)?t(n,o):o},Ra}var Na,kc;function yy(){if(kc)return Na;kc=1;var e=Ze(),t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Na=function(n){var o={},i,s,a;return n&&e.forEach(n.split(`
|
|
25
|
-
`),function(f){if(a=f.indexOf(":"),i=e.trim(f.substr(0,a)).toLowerCase(),s=e.trim(f.substr(a+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([s]):o[i]=o[i]?o[i]+", "+s:s}}),o},Na}var Pa,Bc;function vy(){if(Bc)return Pa;Bc=1;var e=Ze();return Pa=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),o;function i(s){var a=s;return r&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{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(a){var l=e.isString(a)?i(a):a;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),Pa}var Ia,Fc;function ea(){if(Fc)return Ia;Fc=1;var e=Mn(),t=Ze();function r(n){e.call(this,n??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(r,e,{__CANCEL__:!0}),Ia=r,Ia}var La,Dc;function _y(){return Dc||(Dc=1,La=function(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}),La}var Ma,Uc;function $c(){if(Uc)return Ma;Uc=1;var e=Ze(),t=hy(),r=py(),n=Xd(),o=eh(),i=yy(),s=vy(),a=Jd(),l=Mn(),f=ea(),u=_y();return Ma=function(d){return new Promise(function(p,m){var E=d.data,S=d.headers,_=d.responseType,b;function A(){d.cancelToken&&d.cancelToken.unsubscribe(b),d.signal&&d.signal.removeEventListener("abort",b)}e.isFormData(E)&&e.isStandardBrowserEnv()&&delete S["Content-Type"];var w=new XMLHttpRequest;if(d.auth){var N=d.auth.username||"",F=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";S.Authorization="Basic "+btoa(N+":"+F)}var B=o(d.baseURL,d.url);w.open(d.method.toUpperCase(),n(B,d.params,d.paramsSerializer),!0),w.timeout=d.timeout;function G(){if(w){var H="getAllResponseHeaders"in w?i(w.getAllResponseHeaders()):null,Y=!_||_==="text"||_==="json"?w.responseText:w.response,te={data:Y,status:w.status,statusText:w.statusText,headers:H,config:d,request:w};t(function(M){p(M),A()},function(M){m(M),A()},te),w=null}}if("onloadend"in w?w.onloadend=G:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(G)},w.onabort=function(){w&&(m(new l("Request aborted",l.ECONNABORTED,d,w)),w=null)},w.onerror=function(){m(new l("Network Error",l.ERR_NETWORK,d,w,w)),w=null},w.ontimeout=function(){var Y=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",te=d.transitional||a;d.timeoutErrorMessage&&(Y=d.timeoutErrorMessage),m(new l(Y,te.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,d,w)),w=null},e.isStandardBrowserEnv()){var z=(d.withCredentials||s(B))&&d.xsrfCookieName?r.read(d.xsrfCookieName):void 0;z&&(S[d.xsrfHeaderName]=z)}"setRequestHeader"in w&&e.forEach(S,function(Y,te){typeof E>"u"&&te.toLowerCase()==="content-type"?delete S[te]:w.setRequestHeader(te,Y)}),e.isUndefined(d.withCredentials)||(w.withCredentials=!!d.withCredentials),_&&_!=="json"&&(w.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&w.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(b=function(H){w&&(m(!H||H&&H.type?new f:H),w.abort(),w=null)},d.cancelToken&&d.cancelToken.subscribe(b),d.signal&&(d.signal.aborted?b():d.signal.addEventListener("abort",b))),E||(E=null);var W=u(B);if(W&&["http","https","file"].indexOf(W)===-1){m(new l("Unsupported protocol "+W+":",l.ERR_BAD_REQUEST,d));return}w.send(E)})},Ma}var ka,jc;function Ey(){return jc||(jc=1,ka=null),ka}var Ba,Hc;function Bu(){if(Hc)return Ba;Hc=1;var e=Ze(),t=dy(),r=Mn(),n=Jd(),o=Zd(),i={"Content-Type":"application/x-www-form-urlencoded"};function s(u,h){!e.isUndefined(u)&&e.isUndefined(u["Content-Type"])&&(u["Content-Type"]=h)}function a(){var u;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(u=$c()),u}function l(u,h,d){if(e.isString(u))try{return(h||JSON.parse)(u),e.trim(u)}catch(c){if(c.name!=="SyntaxError")throw c}return(d||JSON.stringify)(u)}var f={transitional:n,adapter:a(),transformRequest:[function(h,d){if(t(d,"Accept"),t(d,"Content-Type"),e.isFormData(h)||e.isArrayBuffer(h)||e.isBuffer(h)||e.isStream(h)||e.isFile(h)||e.isBlob(h))return h;if(e.isArrayBufferView(h))return h.buffer;if(e.isURLSearchParams(h))return s(d,"application/x-www-form-urlencoded;charset=utf-8"),h.toString();var c=e.isObject(h),p=d&&d["Content-Type"],m;if((m=e.isFileList(h))||c&&p==="multipart/form-data"){var E=this.env&&this.env.FormData;return o(m?{"files[]":h}:h,E&&new E)}else if(c||p==="application/json")return s(d,"application/json"),l(h);return h}],transformResponse:[function(h){var d=this.transitional||f.transitional,c=d&&d.silentJSONParsing,p=d&&d.forcedJSONParsing,m=!c&&this.responseType==="json";if(m||p&&e.isString(h)&&h.length)try{return JSON.parse(h)}catch(E){if(m)throw E.name==="SyntaxError"?r.from(E,r.ERR_BAD_RESPONSE,this,null,this.response):E}return h}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ey()},validateStatus:function(h){return h>=200&&h<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(h){f.headers[h]={}}),e.forEach(["post","put","patch"],function(h){f.headers[h]=e.merge(i)}),Ba=f,Ba}var Fa,qc;function by(){if(qc)return Fa;qc=1;var e=Ze(),t=Bu();return Fa=function(n,o,i){var s=this||t;return e.forEach(i,function(l){n=l.call(s,n,o)}),n},Fa}var Da,Gc;function th(){return Gc||(Gc=1,Da=function(t){return!!(t&&t.__CANCEL__)}),Da}var Ua,Wc;function wy(){if(Wc)return Ua;Wc=1;var e=Ze(),t=by(),r=th(),n=Bu(),o=ea();function i(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new o}return Ua=function(a){i(a),a.headers=a.headers||{},a.data=t.call(a,a.data,a.headers,a.transformRequest),a.headers=e.merge(a.headers.common||{},a.headers[a.method]||{},a.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(u){delete a.headers[u]});var l=a.adapter||n.adapter;return l(a).then(function(u){return i(a),u.data=t.call(a,u.data,u.headers,a.transformResponse),u},function(u){return r(u)||(i(a),u&&u.response&&(u.response.data=t.call(a,u.response.data,u.response.headers,a.transformResponse))),Promise.reject(u)})},Ua}var $a,Vc;function rh(){if(Vc)return $a;Vc=1;var e=Ze();return $a=function(r,n){n=n||{};var o={};function i(h,d){return e.isPlainObject(h)&&e.isPlainObject(d)?e.merge(h,d):e.isPlainObject(d)?e.merge({},d):e.isArray(d)?d.slice():d}function s(h){if(e.isUndefined(n[h])){if(!e.isUndefined(r[h]))return i(void 0,r[h])}else return i(r[h],n[h])}function a(h){if(!e.isUndefined(n[h]))return i(void 0,n[h])}function l(h){if(e.isUndefined(n[h])){if(!e.isUndefined(r[h]))return i(void 0,r[h])}else return i(void 0,n[h])}function f(h){if(h in n)return i(r[h],n[h]);if(h in r)return i(void 0,r[h])}var u={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:f};return e.forEach(Object.keys(r).concat(Object.keys(n)),function(d){var c=u[d]||s,p=c(d);e.isUndefined(p)&&c!==f||(o[d]=p)}),o},$a}var ja,zc;function nh(){return zc||(zc=1,ja={version:"0.27.2"}),ja}var Ha,Yc;function Sy(){if(Yc)return Ha;Yc=1;var e=nh().version,t=Mn(),r={};["object","boolean","number","function","string","symbol"].forEach(function(i,s){r[i]=function(l){return typeof l===i||"a"+(s<1?"n ":" ")+i}});var n={};r.transitional=function(s,a,l){function f(u,h){return"[Axios v"+e+"] Transitional option '"+u+"'"+h+(l?". "+l:"")}return function(u,h,d){if(s===!1)throw new t(f(h," has been removed"+(a?" in "+a:"")),t.ERR_DEPRECATED);return a&&!n[h]&&(n[h]=!0,console.warn(f(h," has been deprecated since v"+a+" and will be removed in the near future"))),s?s(u,h,d):!0}};function o(i,s,a){if(typeof i!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var l=Object.keys(i),f=l.length;f-- >0;){var u=l[f],h=s[u];if(h){var d=i[u],c=d===void 0||h(d,u,i);if(c!==!0)throw new t("option "+u+" must be "+c,t.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new t("Unknown option "+u,t.ERR_BAD_OPTION)}}return Ha={assertOptions:o,validators:r},Ha}var qa,Kc;function Ty(){if(Kc)return qa;Kc=1;var e=Ze(),t=Xd(),r=fy(),n=wy(),o=rh(),i=eh(),s=Sy(),a=s.validators;function l(f){this.defaults=f,this.interceptors={request:new r,response:new r}}return l.prototype.request=function(u,h){typeof u=="string"?(h=h||{},h.url=u):h=u||{},h=o(this.defaults,h),h.method?h.method=h.method.toLowerCase():this.defaults.method?h.method=this.defaults.method.toLowerCase():h.method="get";var d=h.transitional;d!==void 0&&s.assertOptions(d,{silentJSONParsing:a.transitional(a.boolean),forcedJSONParsing:a.transitional(a.boolean),clarifyTimeoutError:a.transitional(a.boolean)},!1);var c=[],p=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(h)===!1||(p=p&&N.synchronous,c.unshift(N.fulfilled,N.rejected))});var m=[];this.interceptors.response.forEach(function(N){m.push(N.fulfilled,N.rejected)});var E;if(!p){var S=[n,void 0];for(Array.prototype.unshift.apply(S,c),S=S.concat(m),E=Promise.resolve(h);S.length;)E=E.then(S.shift(),S.shift());return E}for(var _=h;c.length;){var b=c.shift(),A=c.shift();try{_=b(_)}catch(w){A(w);break}}try{E=n(_)}catch(w){return Promise.reject(w)}for(;m.length;)E=E.then(m.shift(),m.shift());return E},l.prototype.getUri=function(u){u=o(this.defaults,u);var h=i(u.baseURL,u.url);return t(h,u.params,u.paramsSerializer)},e.forEach(["delete","get","head","options"],function(u){l.prototype[u]=function(h,d){return this.request(o(d||{},{method:u,url:h,data:(d||{}).data}))}}),e.forEach(["post","put","patch"],function(u){function h(d){return function(p,m,E){return this.request(o(E||{},{method:u,headers:d?{"Content-Type":"multipart/form-data"}:{},url:p,data:m}))}}l.prototype[u]=h(),l.prototype[u+"Form"]=h(!0)}),qa=l,qa}var Ga,Qc;function xy(){if(Qc)return Ga;Qc=1;var e=ea();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(s){n=s});var o=this;this.promise.then(function(i){if(o._listeners){var s,a=o._listeners.length;for(s=0;s<a;s++)o._listeners[s](i);o._listeners=null}}),this.promise.then=function(i){var s,a=new Promise(function(l){o.subscribe(l),s=l}).then(i);return a.cancel=function(){o.unsubscribe(s)},a},r(function(s){o.reason||(o.reason=new e(s),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(s){n=s});return{token:o,cancel:n}},Ga=t,Ga}var Wa,Xc;function Oy(){return Xc||(Xc=1,Wa=function(t){return function(n){return t.apply(null,n)}}),Wa}var Va,Jc;function Ay(){if(Jc)return Va;Jc=1;var e=Ze();return Va=function(r){return e.isObject(r)&&r.isAxiosError===!0},Va}var Zc;function Cy(){if(Zc)return co.exports;Zc=1;var e=Ze(),t=Qd(),r=Ty(),n=rh(),o=Bu();function i(a){var l=new r(a),f=t(r.prototype.request,l);return e.extend(f,r.prototype,l),e.extend(f,l),f.create=function(h){return i(n(a,h))},f}var s=i(o);return s.Axios=r,s.CanceledError=ea(),s.CancelToken=xy(),s.isCancel=th(),s.VERSION=nh().version,s.toFormData=Zd(),s.AxiosError=Mn(),s.Cancel=s.CanceledError,s.all=function(l){return Promise.all(l)},s.spread=Oy(),s.isAxiosError=Ay(),co.exports=s,co.exports.default=s,co.exports}var za,el;function ih(){return el||(el=1,za=Cy()),za}var Ry=Function.prototype.toString,Ya=Object.create,Ny=Object.defineProperty,Py=Object.getOwnPropertyDescriptor,tl=Object.getOwnPropertyNames,Fu=Object.getOwnPropertySymbols,Iy=Object.getPrototypeOf,oh=Object.prototype,Ly=oh.hasOwnProperty,My=oh.propertyIsEnumerable,ah=typeof Fu=="function",ky=typeof WeakMap=="function",By=function(){if(ky)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}}(),sh=function(e,t){var r=e.__proto__||Iy(e);if(!r)return Ya(null);var n=r.constructor;if(n===t.Object)return r===t.Object.prototype?{}:Ya(r);if(~Ry.call(n).indexOf("[native code]"))try{return new n}catch{}return Ya(r)},Fy=function(e,t,r,n){var o=sh(e,t);n.set(e,o);for(var i in e)Ly.call(e,i)&&(o[i]=r(e[i],n));if(ah)for(var s=Fu(e),a=0,l=s.length,f=void 0;a<l;++a)f=s[a],My.call(e,f)&&(o[f]=r(e[f],n));return o},rl=function(e,t,r,n){var o=sh(e,t);n.set(e,o);for(var i=ah?tl(e).concat(Fu(e)):tl(e),s=0,a=i.length,l=void 0,f=void 0;s<a;++s)if(l=i[s],l!=="callee"&&l!=="caller")if(f=Py(e,l),f){!f.get&&!f.set&&(f.value=r(e[l],n));try{Ny(o,l,f)}catch{o[l]=f.value}}else o[l]=r(e[l],n);return o},Dy=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},Uy=Array.isArray,$y=Object.getPrototypeOf,jy=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function _r(e,t){var r=!!(t&&t.isStrict),n=t&&t.realm||jy,o=r?rl:Fy,i=function(s,a){if(!s||typeof s!="object")return s;if(a.has(s))return a.get(s);var l=s.__proto__||$y(s),f=l&&l.constructor;if(!f||f===n.Object)return o(s,n,i,a);var u;if(Uy(s)){if(r)return rl(s,n,i,a);u=new f,a.set(s,u);for(var h=0,d=s.length;h<d;++h)u[h]=i(s[h],a);return u}if(s instanceof n.Date)return new f(s.getTime());if(s instanceof n.RegExp)return u=new f(s.source,s.flags||Dy(s)),u.lastIndex=s.lastIndex,u;if(n.Map&&s instanceof n.Map)return u=new f,a.set(s,u),s.forEach(function(c,p){u.set(p,i(c,a))}),u;if(n.Set&&s instanceof n.Set)return u=new f,a.set(s,u),s.forEach(function(c){u.add(i(c,a))}),u;if(n.Blob&&s instanceof n.Blob)return s.slice(0,s.size,s.type);if(n.Buffer&&n.Buffer.isBuffer(s))return u=n.Buffer.allocUnsafe?n.Buffer.allocUnsafe(s.length):new f(s.length),a.set(s,u),s.copy(u),u;if(n.ArrayBuffer){if(n.ArrayBuffer.isView(s))return u=new f(s.buffer.slice(0)),a.set(s,u),u;if(s instanceof n.ArrayBuffer)return u=s.slice(0),a.set(s,u),u}return typeof s.then=="function"||s instanceof Error||n.WeakMap&&s instanceof n.WeakMap||n.WeakSet&&s instanceof n.WeakSet?s:o(s,n,i,a)};return i(e,By())}_r.default=_r;_r.strict=function(t,r){return _r(t,{isStrict:!0,realm:r?r.realm:void 0})};var Hy=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 s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0},nl=typeof Symbol<"u"&&Symbol,qy=Hy,Gy=function(){return typeof nl!="function"||typeof Symbol!="function"||typeof nl("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:qy()},il={foo:{}},Wy=Object,Vy=function(){return{__proto__:il}.foo===il.foo&&!({__proto__:null}instanceof Wy)},zy="Function.prototype.bind called on incompatible ",Yy=Object.prototype.toString,Ky=Math.max,Qy="[object Function]",ol=function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},Xy=function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},Jy=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},Zy=function(t){var r=this;if(typeof r!="function"||Yy.apply(r)!==Qy)throw new TypeError(zy+r);for(var n=Xy(arguments,1),o,i=function(){if(this instanceof o){var u=r.apply(this,ol(n,arguments));return Object(u)===u?u:this}return r.apply(t,ol(n,arguments))},s=Ky(0,r.length-n.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(o=Function("binder","return function ("+Jy(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var f=function(){};f.prototype=r.prototype,o.prototype=new f,f.prototype=null}return o},ev=Zy,Du=Function.prototype.bind||ev,tv=Function.prototype.call,rv=Object.prototype.hasOwnProperty,nv=Du,iv=nv.call(tv,rv),ge,Rn=SyntaxError,uh=Function,Cn=TypeError,Ka=function(e){try{return uh('"use strict"; return ('+e+").constructor;")()}catch{}},Qr=Object.getOwnPropertyDescriptor;if(Qr)try{Qr({},"")}catch{Qr=null}var Qa=function(){throw new Cn},ov=Qr?function(){try{return arguments.callee,Qa}catch{try{return Qr(arguments,"callee").get}catch{return Qa}}}():Qa,bn=Gy(),av=Vy(),ze=Object.getPrototypeOf||(av?function(e){return e.__proto__}:null),xn={},sv=typeof Uint8Array>"u"||!ze?ge:ze(Uint8Array),Xr={"%AggregateError%":typeof AggregateError>"u"?ge:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ge:ArrayBuffer,"%ArrayIteratorPrototype%":bn&&ze?ze([][Symbol.iterator]()):ge,"%AsyncFromSyncIteratorPrototype%":ge,"%AsyncFunction%":xn,"%AsyncGenerator%":xn,"%AsyncGeneratorFunction%":xn,"%AsyncIteratorPrototype%":xn,"%Atomics%":typeof Atomics>"u"?ge:Atomics,"%BigInt%":typeof BigInt>"u"?ge:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ge:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ge:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ge:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ge:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ge:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ge:FinalizationRegistry,"%Function%":uh,"%GeneratorFunction%":xn,"%Int8Array%":typeof Int8Array>"u"?ge:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ge:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ge:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":bn&&ze?ze(ze([][Symbol.iterator]())):ge,"%JSON%":typeof JSON=="object"?JSON:ge,"%Map%":typeof Map>"u"?ge:Map,"%MapIteratorPrototype%":typeof Map>"u"||!bn||!ze?ge:ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ge:Promise,"%Proxy%":typeof Proxy>"u"?ge:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ge:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ge:Set,"%SetIteratorPrototype%":typeof Set>"u"||!bn||!ze?ge:ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ge:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":bn&&ze?ze(""[Symbol.iterator]()):ge,"%Symbol%":bn?Symbol:ge,"%SyntaxError%":Rn,"%ThrowTypeError%":ov,"%TypedArray%":sv,"%TypeError%":Cn,"%Uint8Array%":typeof Uint8Array>"u"?ge:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ge:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ge:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ge:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ge:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ge:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ge:WeakSet};if(ze)try{null.error}catch(e){var uv=ze(ze(e));Xr["%Error.prototype%"]=uv}var cv=function e(t){var r;if(t==="%AsyncFunction%")r=Ka("async function () {}");else if(t==="%GeneratorFunction%")r=Ka("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Ka("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&ze&&(r=ze(o.prototype))}return Xr[t]=r,r},al={"%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"]},Ji=Du,$o=iv,lv=Ji.call(Function.call,Array.prototype.concat),fv=Ji.call(Function.apply,Array.prototype.splice),sl=Ji.call(Function.call,String.prototype.replace),jo=Ji.call(Function.call,String.prototype.slice),dv=Ji.call(Function.call,RegExp.prototype.exec),hv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pv=/\\(\\)?/g,mv=function(t){var r=jo(t,0,1),n=jo(t,-1);if(r==="%"&&n!=="%")throw new Rn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Rn("invalid intrinsic syntax, expected opening `%`");var o=[];return sl(t,hv,function(i,s,a,l){o[o.length]=a?sl(l,pv,"$1"):s||i}),o},gv=function(t,r){var n=t,o;if($o(al,n)&&(o=al[n],n="%"+o[0]+"%"),$o(Xr,n)){var i=Xr[n];if(i===xn&&(i=cv(n)),typeof i>"u"&&!r)throw new Cn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new Rn("intrinsic "+t+" does not exist!")},rn=function(t,r){if(typeof t!="string"||t.length===0)throw new Cn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Cn('"allowMissing" argument must be a boolean');if(dv(/^%?[^%]*%?$/,t)===null)throw new Rn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=mv(t),o=n.length>0?n[0]:"",i=gv("%"+o+"%",r),s=i.name,a=i.value,l=!1,f=i.alias;f&&(o=f[0],fv(n,lv([0,1],f)));for(var u=1,h=!0;u<n.length;u+=1){var d=n[u],c=jo(d,0,1),p=jo(d,-1);if((c==='"'||c==="'"||c==="`"||p==='"'||p==="'"||p==="`")&&c!==p)throw new Rn("property names with quotes must have matching quotes");if((d==="constructor"||!h)&&(l=!0),o+="."+d,s="%"+o+"%",$o(Xr,s))a=Xr[s];else if(a!=null){if(!(d in a)){if(!r)throw new Cn("base intrinsic for "+t+" exists, but the property is not available.");return}if(Qr&&u+1>=n.length){var m=Qr(a,d);h=!!m,h&&"get"in m&&!("originalValue"in m.get)?a=m.get:a=a[d]}else h=$o(a,d),a=a[d];h&&!l&&(Xr[s]=a)}}return a},ch={exports:{}},yv=rn,nu=yv("%Object.defineProperty%",!0),iu=function(){if(nu)try{return nu({},"a",{value:1}),!0}catch{return!1}return!1};iu.hasArrayLengthDefineBug=function(){if(!iu())return null;try{return nu([],"length",{value:1}).length!==1}catch{return!0}};var lh=iu,vv=rn,Bo=vv("%Object.getOwnPropertyDescriptor%",!0);if(Bo)try{Bo([],"length")}catch{Bo=null}var fh=Bo,_v=lh(),Uu=rn,Hi=_v&&Uu("%Object.defineProperty%",!0);if(Hi)try{Hi({},"a",{value:1})}catch{Hi=!1}var Ev=Uu("%SyntaxError%"),wn=Uu("%TypeError%"),ul=fh,bv=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new wn("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new wn("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new wn("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new wn("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new wn("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new wn("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!ul&&ul(t,r);if(Hi)Hi(t,r,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:n,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)t[r]=n;else throw new Ev("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},dh=rn,cl=bv,wv=lh(),ll=fh,fl=dh("%TypeError%"),Sv=dh("%Math.floor%"),Tv=function(t,r){if(typeof t!="function")throw new fl("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Sv(r)!==r)throw new fl("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&ll){var s=ll(t,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!n)&&(wv?cl(t,"length",r,!0,!0):cl(t,"length",r)),t};(function(e){var t=Du,r=rn,n=Tv,o=r("%TypeError%"),i=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(s,i),l=r("%Object.defineProperty%",!0),f=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(d){if(typeof d!="function")throw new o("a function is required");var c=a(t,s,arguments);return n(c,1+f(0,d.length-(arguments.length-1)),!0)};var u=function(){return a(t,i,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u})(ch);var xv=ch.exports,hh=rn,ph=xv,Ov=ph(hh("String.prototype.indexOf")),Av=function(t,r){var n=hh(t,!!r);return typeof n=="function"&&Ov(t,".prototype.")>-1?ph(n):n};const Cv={},Rv=Object.freeze(Object.defineProperty({__proto__:null,default:Cv},Symbol.toStringTag,{value:"Module"})),Nv=Xi(Rv);var $u=typeof Map=="function"&&Map.prototype,Xa=Object.getOwnPropertyDescriptor&&$u?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ho=$u&&Xa&&typeof Xa.get=="function"?Xa.get:null,dl=$u&&Map.prototype.forEach,ju=typeof Set=="function"&&Set.prototype,Ja=Object.getOwnPropertyDescriptor&&ju?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,qo=ju&&Ja&&typeof Ja.get=="function"?Ja.get:null,hl=ju&&Set.prototype.forEach,Pv=typeof WeakMap=="function"&&WeakMap.prototype,qi=Pv?WeakMap.prototype.has:null,Iv=typeof WeakSet=="function"&&WeakSet.prototype,Gi=Iv?WeakSet.prototype.has:null,Lv=typeof WeakRef=="function"&&WeakRef.prototype,pl=Lv?WeakRef.prototype.deref:null,Mv=Boolean.prototype.valueOf,kv=Object.prototype.toString,Bv=Function.prototype.toString,Fv=String.prototype.match,Hu=String.prototype.slice,yr=String.prototype.replace,Dv=String.prototype.toUpperCase,ml=String.prototype.toLowerCase,mh=RegExp.prototype.test,gl=Array.prototype.concat,Ut=Array.prototype.join,Uv=Array.prototype.slice,yl=Math.floor,ou=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Za=Object.getOwnPropertySymbols,au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="object",rt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Nn||"symbol")?Symbol.toStringTag:null,gh=Object.prototype.propertyIsEnumerable,vl=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function _l(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||mh.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-yl(-e):yl(e);if(n!==e){var o=String(n),i=Hu.call(t,o.length+1);return yr.call(o,r,"$&_")+"."+yr.call(yr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return yr.call(t,r,"$&_")}var su=Nv,El=su.custom,bl=vh(El)?El:null,$v=function e(t,r,n,o){var i=r||{};if(gr(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(gr(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=gr(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(gr(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(gr(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Eh(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?_l(t,l):l}if(typeof t=="bigint"){var f=String(t)+"n";return a?_l(t,f):f}var u=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof t=="object")return uu(t)?"[Array]":"[Object]";var h=i0(i,n);if(typeof o>"u")o=[];else if(_h(o,t)>=0)return"[Circular]";function d(Y,te,Q){if(te&&(o=Uv.call(o),o.push(te)),Q){var M={depth:i.depth};return gr(i,"quoteStyle")&&(M.quoteStyle=i.quoteStyle),e(Y,M,n+1,o)}return e(Y,i,n+1,o)}if(typeof t=="function"&&!wl(t)){var c=Kv(t),p=lo(t,d);return"[Function"+(c?": "+c:" (anonymous)")+"]"+(p.length>0?" { "+Ut.call(p,", ")+" }":"")}if(vh(t)){var m=Nn?yr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):au.call(t);return typeof t=="object"&&!Nn?mi(m):m}if(t0(t)){for(var E="<"+ml.call(String(t.nodeName)),S=t.attributes||[],_=0;_<S.length;_++)E+=" "+S[_].name+"="+yh(jv(S[_].value),"double",i);return E+=">",t.childNodes&&t.childNodes.length&&(E+="..."),E+="</"+ml.call(String(t.nodeName))+">",E}if(uu(t)){if(t.length===0)return"[]";var b=lo(t,d);return h&&!n0(b)?"["+cu(b,h)+"]":"[ "+Ut.call(b,", ")+" ]"}if(qv(t)){var A=lo(t,d);return!("cause"in Error.prototype)&&"cause"in t&&!gh.call(t,"cause")?"{ ["+String(t)+"] "+Ut.call(gl.call("[cause]: "+d(t.cause),A),", ")+" }":A.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ut.call(A,", ")+" }"}if(typeof t=="object"&&s){if(bl&&typeof t[bl]=="function"&&su)return su(t,{depth:u-n});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Qv(t)){var w=[];return dl&&dl.call(t,function(Y,te){w.push(d(te,t,!0)+" => "+d(Y,t))}),Sl("Map",Ho.call(t),w,h)}if(Zv(t)){var N=[];return hl&&hl.call(t,function(Y){N.push(d(Y,t))}),Sl("Set",qo.call(t),N,h)}if(Xv(t))return es("WeakMap");if(e0(t))return es("WeakSet");if(Jv(t))return es("WeakRef");if(Wv(t))return mi(d(Number(t)));if(zv(t))return mi(d(ou.call(t)));if(Vv(t))return mi(Mv.call(t));if(Gv(t))return mi(d(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===ue)return"{ [object globalThis] }";if(!Hv(t)&&!wl(t)){var F=lo(t,d),B=vl?vl(t)===Object.prototype:t instanceof Object||t.constructor===Object,G=t instanceof Object?"":"null prototype",z=!B&&rt&&Object(t)===t&&rt in t?Hu.call(br(t),8,-1):G?"Object":"",W=B||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",H=W+(z||G?"["+Ut.call(gl.call([],z||[],G||[]),": ")+"] ":"");return F.length===0?H+"{}":h?H+"{"+cu(F,h)+"}":H+"{ "+Ut.call(F,", ")+" }"}return String(t)};function yh(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function jv(e){return yr.call(String(e),/"/g,""")}function uu(e){return br(e)==="[object Array]"&&(!rt||!(typeof e=="object"&&rt in e))}function Hv(e){return br(e)==="[object Date]"&&(!rt||!(typeof e=="object"&&rt in e))}function wl(e){return br(e)==="[object RegExp]"&&(!rt||!(typeof e=="object"&&rt in e))}function qv(e){return br(e)==="[object Error]"&&(!rt||!(typeof e=="object"&&rt in e))}function Gv(e){return br(e)==="[object String]"&&(!rt||!(typeof e=="object"&&rt in e))}function Wv(e){return br(e)==="[object Number]"&&(!rt||!(typeof e=="object"&&rt in e))}function Vv(e){return br(e)==="[object Boolean]"&&(!rt||!(typeof e=="object"&&rt in e))}function vh(e){if(Nn)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!au)return!1;try{return au.call(e),!0}catch{}return!1}function zv(e){if(!e||typeof e!="object"||!ou)return!1;try{return ou.call(e),!0}catch{}return!1}var Yv=Object.prototype.hasOwnProperty||function(e){return e in this};function gr(e,t){return Yv.call(e,t)}function br(e){return kv.call(e)}function Kv(e){if(e.name)return e.name;var t=Fv.call(Bv.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function _h(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 Qv(e){if(!Ho||!e||typeof e!="object")return!1;try{Ho.call(e);try{qo.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Xv(e){if(!qi||!e||typeof e!="object")return!1;try{qi.call(e,qi);try{Gi.call(e,Gi)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Jv(e){if(!pl||!e||typeof e!="object")return!1;try{return pl.call(e),!0}catch{}return!1}function Zv(e){if(!qo||!e||typeof e!="object")return!1;try{qo.call(e);try{Ho.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function e0(e){if(!Gi||!e||typeof e!="object")return!1;try{Gi.call(e,Gi);try{qi.call(e,qi)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function t0(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Eh(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Eh(Hu.call(e,0,t.maxStringLength),t)+n}var o=yr.call(yr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,r0);return yh(o,"single",t)}function r0(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":"")+Dv.call(t.toString(16))}function mi(e){return"Object("+e+")"}function es(e){return e+" { ? }"}function Sl(e,t,r,n){var o=n?cu(r,n):Ut.call(r,", ");return e+" ("+t+") {"+o+"}"}function n0(e){for(var t=0;t<e.length;t++)if(_h(e[t],`
|
|
26
|
-
`)>=0)return!1;return!0}function i0(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Ut.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Ut.call(Array(t+1),r)}}function cu(e,t){if(e.length===0)return"";var r=`
|
|
27
|
-
`+t.prev+t.base;return r+Ut.call(e,","+r)+`
|
|
28
|
-
`+t.prev}function lo(e,t){var r=uu(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=gr(e,o)?t(e[o],e):""}var i=typeof Za=="function"?Za(e):[],s;if(Nn){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var l in e)gr(e,l)&&(r&&String(Number(l))===l&&l<e.length||Nn&&s["$"+l]instanceof Symbol||(mh.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof Za=="function")for(var f=0;f<i.length;f++)gh.call(e,i[f])&&n.push("["+t(i[f])+"]: "+t(e[i[f]],e));return n}var qu=rn,kn=Av,o0=$v,a0=qu("%TypeError%"),fo=qu("%WeakMap%",!0),ho=qu("%Map%",!0),s0=kn("WeakMap.prototype.get",!0),u0=kn("WeakMap.prototype.set",!0),c0=kn("WeakMap.prototype.has",!0),l0=kn("Map.prototype.get",!0),f0=kn("Map.prototype.set",!0),d0=kn("Map.prototype.has",!0),Gu=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},h0=function(e,t){var r=Gu(e,t);return r&&r.value},p0=function(e,t,r){var n=Gu(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},m0=function(e,t){return!!Gu(e,t)},g0=function(){var t,r,n,o={assert:function(i){if(!o.has(i))throw new a0("Side channel does not contain "+o0(i))},get:function(i){if(fo&&i&&(typeof i=="object"||typeof i=="function")){if(t)return s0(t,i)}else if(ho){if(r)return l0(r,i)}else if(n)return h0(n,i)},has:function(i){if(fo&&i&&(typeof i=="object"||typeof i=="function")){if(t)return c0(t,i)}else if(ho){if(r)return d0(r,i)}else if(n)return m0(n,i);return!1},set:function(i,s){fo&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new fo),u0(t,i,s)):ho?(r||(r=new ho),f0(r,i,s)):(n||(n={key:{},next:null}),p0(n,i,s))}};return o},y0=String.prototype.replace,v0=/%20/g,ts={RFC1738:"RFC1738",RFC3986:"RFC3986"},Wu={default:ts.RFC3986,formatters:{RFC1738:function(e){return y0.call(e,v0,"+")},RFC3986:function(e){return String(e)}},RFC1738:ts.RFC1738,RFC3986:ts.RFC3986},_0=Wu,rs=Object.prototype.hasOwnProperty,Yr=Array.isArray,kt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),E0=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Yr(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);r.obj[r.prop]=o}}},bh=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},b0=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(Yr(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!rs.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 Yr(t)&&!Yr(r)&&(o=bh(t,n)),Yr(t)&&Yr(r)?(r.forEach(function(i,s){if(rs.call(t,s)){var a=t[s];a&&typeof a=="object"&&i&&typeof i=="object"?t[s]=e(a,i,n):t.push(i)}else t[s]=i}),t):Object.keys(r).reduce(function(i,s){var a=r[s];return rs.call(i,s)?i[s]=e(i[s],a,n):i[s]=a,i},o)},w0=function(t,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},t)},S0=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}},T0=function(t,r,n,o,i){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;++l){var f=s.charCodeAt(l);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===_0.RFC1738&&(f===40||f===41)){a+=s.charAt(l);continue}if(f<128){a=a+kt[f];continue}if(f<2048){a=a+(kt[192|f>>6]+kt[128|f&63]);continue}if(f<55296||f>=57344){a=a+(kt[224|f>>12]+kt[128|f>>6&63]+kt[128|f&63]);continue}l+=1,f=65536+((f&1023)<<10|s.charCodeAt(l)&1023),a+=kt[240|f>>18]+kt[128|f>>12&63]+kt[128|f>>6&63]+kt[128|f&63]}return a},x0=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],o=0;o<r.length;++o)for(var i=r[o],s=i.obj[i.prop],a=Object.keys(s),l=0;l<a.length;++l){var f=a[l],u=s[f];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:s,prop:f}),n.push(u))}return E0(r),t},O0=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},A0=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},C0=function(t,r){return[].concat(t,r)},R0=function(t,r){if(Yr(t)){for(var n=[],o=0;o<t.length;o+=1)n.push(r(t[o]));return n}return r(t)},wh={arrayToObject:bh,assign:w0,combine:C0,compact:x0,decode:S0,encode:T0,isBuffer:A0,isRegExp:O0,maybeMap:R0,merge:b0},Sh=g0,Fo=wh,Wi=Wu,N0=Object.prototype.hasOwnProperty,Tl={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},nr=Array.isArray,P0=Array.prototype.push,Th=function(e,t){P0.apply(e,nr(t)?t:[t])},I0=Date.prototype.toISOString,xl=Wi.default,tt={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Fo.encode,encodeValuesOnly:!1,format:xl,formatter:Wi.formatters[xl],indices:!1,serializeDate:function(t){return I0.call(t)},skipNulls:!1,strictNullHandling:!1},L0=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},ns={},M0=function e(t,r,n,o,i,s,a,l,f,u,h,d,c,p,m,E){for(var S=t,_=E,b=0,A=!1;(_=_.get(ns))!==void 0&&!A;){var w=_.get(t);if(b+=1,typeof w<"u"){if(w===b)throw new RangeError("Cyclic object value");A=!0}typeof _.get(ns)>"u"&&(b=0)}if(typeof l=="function"?S=l(r,S):S instanceof Date?S=h(S):n==="comma"&&nr(S)&&(S=Fo.maybeMap(S,function(M){return M instanceof Date?h(M):M})),S===null){if(i)return a&&!p?a(r,tt.encoder,m,"key",d):r;S=""}if(L0(S)||Fo.isBuffer(S)){if(a){var N=p?r:a(r,tt.encoder,m,"key",d);return[c(N)+"="+c(a(S,tt.encoder,m,"value",d))]}return[c(r)+"="+c(String(S))]}var F=[];if(typeof S>"u")return F;var B;if(n==="comma"&&nr(S))p&&a&&(S=Fo.maybeMap(S,a)),B=[{value:S.length>0?S.join(",")||null:void 0}];else if(nr(l))B=l;else{var G=Object.keys(S);B=f?G.sort(f):G}for(var z=o&&nr(S)&&S.length===1?r+"[]":r,W=0;W<B.length;++W){var H=B[W],Y=typeof H=="object"&&typeof H.value<"u"?H.value:S[H];if(!(s&&Y===null)){var te=nr(S)?typeof n=="function"?n(z,H):z:z+(u?"."+H:"["+H+"]");E.set(t,b);var Q=Sh();Q.set(ns,E),Th(F,e(Y,te,n,o,i,s,n==="comma"&&p&&nr(S)?null:a,l,f,u,h,d,c,p,m,Q))}}return F},k0=function(t){if(!t)return tt;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||tt.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Wi.default;if(typeof t.format<"u"){if(!N0.call(Wi.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var o=Wi.formatters[n],i=tt.filter;return(typeof t.filter=="function"||nr(t.filter))&&(i=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:tt.addQueryPrefix,allowDots:typeof t.allowDots>"u"?tt.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:tt.charsetSentinel,delimiter:typeof t.delimiter>"u"?tt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:tt.encode,encoder:typeof t.encoder=="function"?t.encoder:tt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:tt.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:tt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:tt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:tt.strictNullHandling}},B0=function(e,t){var r=e,n=k0(t),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):nr(n.filter)&&(i=n.filter,o=i);var s=[];if(typeof r!="object"||r===null)return"";var a;t&&t.arrayFormat in Tl?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var l=Tl[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=l==="comma"&&t&&t.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var u=Sh(),h=0;h<o.length;++h){var d=o[h];n.skipNulls&&r[d]===null||Th(s,M0(r[d],d,l,f,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 c=s.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&"),c.length>0?p+c:""},Pn=wh,lu=Object.prototype.hasOwnProperty,F0=Array.isArray,Ve={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Pn.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},D0=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},xh=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},U0="utf8=%26%2310003%3B",$0="utf8=%E2%9C%93",j0=function(t,r){var n={__proto__:null},o=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=o.split(r.delimiter,i),a=-1,l,f=r.charset;if(r.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===$0?f="utf-8":s[l]===U0&&(f="iso-8859-1"),a=l,l=s.length);for(l=0;l<s.length;++l)if(l!==a){var u=s[l],h=u.indexOf("]="),d=h===-1?u.indexOf("="):h+1,c,p;d===-1?(c=r.decoder(u,Ve.decoder,f,"key"),p=r.strictNullHandling?null:""):(c=r.decoder(u.slice(0,d),Ve.decoder,f,"key"),p=Pn.maybeMap(xh(u.slice(d+1),r),function(m){return r.decoder(m,Ve.decoder,f,"value")})),p&&r.interpretNumericEntities&&f==="iso-8859-1"&&(p=D0(p)),u.indexOf("[]=")>-1&&(p=F0(p)?[p]:p),lu.call(n,c)?n[c]=Pn.combine(n[c],p):n[c]=p}return n},H0=function(e,t,r,n){for(var o=n?t:xh(t,r),i=e.length-1;i>=0;--i){var s,a=e[i];if(a==="[]"&&r.parseArrays)s=[].concat(o);else{s=r.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,f=parseInt(l,10);!r.parseArrays&&l===""?s={0:o}:!isNaN(f)&&a!==l&&String(f)===l&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(s=[],s[f]=o):l!=="__proto__"&&(s[l]=o)}o=s}return o},q0=function(t,r,n,o){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(i),f=l?i.slice(0,l.index):i,u=[];if(f){if(!n.plainObjects&&lu.call(Object.prototype,f)&&!n.allowPrototypes)return;u.push(f)}for(var h=0;n.depth>0&&(l=a.exec(i))!==null&&h<n.depth;){if(h+=1,!n.plainObjects&&lu.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(l[1])}return l&&u.push("["+i.slice(l.index)+"]"),H0(u,r,n,o)}},G0=function(t){if(!t)return Ve;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?Ve.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Ve.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ve.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ve.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ve.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ve.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ve.comma,decoder:typeof t.decoder=="function"?t.decoder:Ve.decoder,delimiter:typeof t.delimiter=="string"||Pn.isRegExp(t.delimiter)?t.delimiter:Ve.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ve.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ve.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ve.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ve.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ve.strictNullHandling}},W0=function(e,t){var r=G0(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?j0(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s<i.length;++s){var a=i[s],l=q0(a,n[a],r,typeof e=="string");o=Pn.merge(o,l,r)}return r.allowSparse===!0?o:Pn.compact(o)},V0=B0,z0=W0,Y0=Wu,K0={formats:Y0,parse:z0,stringify:V0};const Q0=Ht(K0);var X0="[object String]",J0=Object.prototype,Z0=J0.toString,e_=Array.isArray;function t_(e){return!!e&&typeof e=="object"}function r_(e){return typeof e=="string"||!e_(e)&&t_(e)&&Z0.call(e)==X0}var n_=r_;const Ol=Ht(n_);var Vu={exports:{}};class Oh extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}const i_=({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 s(){const u=Date.now();return u-o>t?(i=1,o=u,0):(i<e?i++:(o+=t,i=1),o-u)}const a=[];function l(){const u=Date.now();if(a.length<e)return a.push(u),0;const h=a.shift()+t;return u>=h?(a.push(u),0):(a.push(h),h-u)}const f=r?l:s;return u=>{const h=function(...d){if(!h.isEnabled)return(async()=>u.apply(this,d))();let c;return new Promise((p,m)=>{c=setTimeout(()=>{p(u.apply(this,d)),n.delete(c)},f()),n.set(c,m)})};return h.abort=()=>{for(const d of n.keys())clearTimeout(d),n.get(d)(new Oh);n.clear(),a.splice(0,a.length)},h.isEnabled=!0,h}};Vu.exports=i_;Vu.exports.AbortError=Oh;var o_=Vu.exports;const a_=Ht(o_);var s_="[object Object]";function u_(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function c_(e,t){return function(r){return e(t(r))}}var l_=Function.prototype,Ah=Object.prototype,Ch=l_.toString,f_=Ah.hasOwnProperty,d_=Ch.call(Object),h_=Ah.toString,p_=c_(Object.getPrototypeOf,Object);function m_(e){return!!e&&typeof e=="object"}function g_(e){if(!m_(e)||h_.call(e)!=s_||u_(e))return!1;var t=p_(e);if(t===null)return!0;var r=f_.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ch.call(r)==d_}var y_=g_;const po=Ht(y_);function v_(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,s,a=[],l=!0,f=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(u){f=!0,o=u}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw o}}return a}}function Al(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 On(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Al(Object(r),!0).forEach(function(n){__(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Al(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fu(e){"@babel/helpers - typeof";return fu=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},fu(e)}function du(){du=function(o,i){return new r(o,void 0,i)};var e=RegExp.prototype,t=new WeakMap;function r(o,i,s){var a=new RegExp(o,i);return t.set(a,s||t.get(o)),Go(a,r.prototype)}function n(o,i){var s=t.get(i);return Object.keys(s).reduce(function(a,l){var f=s[l];if(typeof f=="number")a[l]=o[f];else{for(var u=0;o[f[u]]===void 0&&u+1<f.length;)u++;a[l]=o[f[u]]}return a},Object.create(null))}return E_(r,RegExp),r.prototype.exec=function(o){var i=e.exec.call(this,o);if(i){i.groups=n(i,this);var s=i.indices;s&&(s.groups=n(s,this))}return i},r.prototype[Symbol.replace]=function(o,i){if(typeof i=="string"){var s=t.get(this);return e[Symbol.replace].call(this,o,i.replace(/\$<([^>]+)>/g,function(l,f){var u=s[f];return"$"+(Array.isArray(u)?u.join("$"):u)}))}if(typeof i=="function"){var a=this;return e[Symbol.replace].call(this,o,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(n(l,a)),i.apply(this,l)})}return e[Symbol.replace].call(this,o,i)},du.apply(this,arguments)}function __(e,t,r){return t=O_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E_(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&&Go(e,t)}function Go(e,t){return Go=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Go(e,t)}function b_(e,t){return w_(e)||v_(e,t)||Rh(e,t)||S_()}function w_(e){if(Array.isArray(e))return e}function Rh(e,t){if(e){if(typeof e=="string")return Cl(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 Cl(e,t)}}function Cl(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 S_(){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 T_(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Rh(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(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
30
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,a;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return i=l.done,l},e:function(l){s=!0,a=l},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(s)throw a}}}}function x_(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 O_(e){var t=x_(e,"string");return typeof t=="symbol"?t:String(t)}function A_(){return typeof process<"u"&&!process.browser}function C_(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function R_(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function N_(){return window}function hu(){}var pu=du(/(\d+)(%)/,{value:1});function is(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:7,r=t;if(pu.test(e)){var n,o=(n=e.match(pu))===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 Rl(e,t){return t("info","Throttle request to ".concat(e,"/s")),a_({limit:e,interval:1e3,strict:!1})}var P_=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",r=e.defaults.logHandler,n=r===void 0?hu:r,o=Ol(t)?is(t):is("auto",t),i=Rl(o,n),s=!1,a=e.interceptors.request.use(function(f){return i(function(){return f})()},function(f){return Promise.reject(f)}),l=e.interceptors.response.use(function(f){if(!s&&Ol(t)&&(t==="auto"||pu.test(t))&&f.headers&&f.headers["x-contentful-ratelimit-second-limit"]){var u=parseInt(f.headers["x-contentful-ratelimit-second-limit"]),h=is(t,u);h!==o&&(a&&e.interceptors.request.eject(a),o=h,i=Rl(h,n),a=e.interceptors.request.use(function(d){return i(function(){return d})()},function(d){return Promise.reject(d)})),s=!0}return f},function(f){return Promise.reject(f)});return function(){e.interceptors.request.eject(a),e.interceptors.response.eject(l)}},I_=function(t){return new Promise(function(r){setTimeout(r,t)})},L_=function(t){return Math.pow(Math.SQRT2,t)};function M_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,r=e.defaults,n=r.responseLogger,o=n===void 0?hu:n,i=r.requestLogger,s=i===void 0?hu:i;e.interceptors.request.use(function(a){return s(a),a},function(a){return s(a),Promise.reject(a)}),e.interceptors.response.use(function(a){return o(a),a},function(a){var l=a.response,f=a.config;if(o(a),!f||!e.defaults.retryOnError)return Promise.reject(a);var u=f.attempts||1;if(u>t)return a.attempts=f.attempts,Promise.reject(a);var h=null,d=L_(u);return l?l.status>=500&&l.status<600?h="Server ".concat(l.status):l.status===429&&(h="Rate limit",l.headers&&a.response.headers["x-contentful-ratelimit-reset"]&&(d=l.headers["x-contentful-ratelimit-reset"])):h="Connection",h?(d=Math.floor(d*1e3+Math.random()*200+500),e.defaults.logHandler("warning","".concat(h," error occurred. Waiting for ").concat(d," ms before retrying...")),f.attempts=u+1,delete f.httpAgent,delete f.httpsAgent,I_(d).then(function(){return e(f)})):Promise.reject(a)})}function k_(e,t){e.interceptors.request.use(function(r){return t().then(function(n){return r.headers=On(On({},r.headers),{},{Authorization:"Bearer ".concat(n)}),r})})}var B_=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function Nh(e,t){var r={insecure:!1,retryOnError:!0,logHandler:function(m,E){if(m==="error"&&E){var S=[E.name,E.message].filter(function(_){return _}).join(" - ");console.error("[error] ".concat(S)),console.error(E);return}console.log("[".concat(m,"] ").concat(E))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,proxy:!1,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824},n=On(On({},r),t);if(!n.accessToken){var o=new TypeError("Expected parameter accessToken");throw n.logHandler("error",o),o}var i=n.insecure?"http":"https",s=n.space?"".concat(n.space,"/"):"",a=n.defaultHostname,l=n.insecure?80:443;if(n.host&&B_.test(n.host)){var f=n.host.split(":");if(f.length===2){var u=b_(f,2);a=u[0],l=u[1]}else a=f[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var h=t.baseURL||"".concat(i,"://").concat(a,":").concat(l).concat(n.basePath,"/spaces/").concat(s);!n.headers.Authorization&&typeof n.accessToken!="function"&&(n.headers.Authorization="Bearer "+n.accessToken);var d={baseURL:h,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,paramsSerializer:Q0.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},c=e.create(d);return c.httpClientParams=t,c.cloneWithNewParams=function(p){return Nh(e,On(On({},_r(t)),p))},n.onBeforeRequest&&c.interceptors.request.use(n.onBeforeRequest),typeof n.accessToken=="function"&&k_(c,n.accessToken),n.throttle&&P_(c,n.throttle),M_(c,n.retryLimit),n.onError&&c.interceptors.response.use(function(p){return p},n.onError),c}function F_(e){var t=e.query,r={};return delete t.resolveLinks,r.params=_r(t),r}function D_(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 Ph(e){var t=Object.getOwnPropertyNames(e),r=T_(t),n;try{for(r.s();!(n=r.n()).done;){var o=n.value,i=e[o];i&&fu(i)==="object"&&Ph(i)}}catch(s){r.e(s)}finally{r.f()}return Object.freeze(e)}function U_(e){return Ph(e.sys||{}),e}function Nl(){var e=N_();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 $_(){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 j_(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{C_()?(i=Nl(),o.push("platform ReactNative")):A_()?(i=$_(),o.push("platform node.js/".concat(R_()))):(i=Nl(),o.push("platform browser"))}catch{i=null}return i&&o.push("os ".concat(i)),"".concat(o.filter(function(s){return s!==""}).join("; "),";")}function H_(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return _r(this)}})}function q_(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(!po(r)||!po(t))throw e;var i=r==null?void 0:r.data,s={status:r==null?void 0:r.status,statusText:r==null?void 0:r.statusText,message:"",details:{}};po(t)&&(s.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),i&&po(i)&&("requestId"in i&&(s.requestId=i.requestId||"UNKNOWN"),"message"in i&&(s.message=i.message||""),"details"in i&&(s.details=i.details||{}),"sys"in i&&"id"in i.sys&&(n=i.sys.id));var a=new Error;a.name=n&&n!=="Unknown"?n:"".concat(r==null?void 0:r.status," ").concat(r==null?void 0:r.statusText);try{a.message=JSON.stringify(s,null," ")}catch{var l;a.message=(l=s==null?void 0:s.message)!==null&&l!==void 0?l:""}throw a}const G_=Object.freeze(Object.defineProperty({__proto__:null,createHttpClient:Nh,createRequestConfig:F_,enforceObjPath:D_,errorHandler:q_,freezeSys:U_,getUserAgentHeader:j_,toPlainObject:H_},Symbol.toStringTag,{value:"Module"})),qt=Xi(G_);var mo={},gi={},go={},Pl;function W_(){if(Pl)return go;Pl=1,Object.defineProperty(go,"__esModule",{value:!0}),go.wrapSpace=t;var e=qt;function t(r){return(0,e.freezeSys)((0,e.toPlainObject)(r))}return go}var yi={},os={exports:{}},Il;function Bn(){return Il||(Il=1,function(e,t){(function(r,n){e.exports=n()})(ue,function(){var r=Function.prototype.toString,n=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,l=Object.getPrototypeOf,f=Object.prototype,u=f.hasOwnProperty,h=f.propertyIsEnumerable,d=typeof a=="function",c=typeof WeakMap=="function",p=function(){if(c)return function(){return new WeakMap};var F=function(){function B(){this._keys=[],this._values=[]}return B.prototype.has=function(G){return!!~this._keys.indexOf(G)},B.prototype.get=function(G){return this._values[this._keys.indexOf(G)]},B.prototype.set=function(G,z){this._keys.push(G),this._values.push(z)},B}();return function(){return new F}}(),m=function(F,B){var G=F.__proto__||l(F);if(!G)return n(null);var z=G.constructor;if(z===B.Object)return G===B.Object.prototype?{}:n(G);if(~r.call(z).indexOf("[native code]"))try{return new z}catch{}return n(G)},E=function(F,B,G,z){var W=m(F,B);z.set(F,W);for(var H in F)u.call(F,H)&&(W[H]=G(F[H],z));if(d)for(var Y=a(F),te=0,Q=Y.length,M=void 0;te<Q;++te)M=Y[te],h.call(F,M)&&(W[M]=G(F[M],z));return W},S=function(F,B,G,z){var W=m(F,B);z.set(F,W);for(var H=d?s(F).concat(a(F)):s(F),Y=0,te=H.length,Q=void 0,M=void 0;Y<te;++Y)if(Q=H[Y],Q!=="callee"&&Q!=="caller")if(M=i(F,Q),M){!M.get&&!M.set&&(M.value=G(F[Q],z));try{o(W,Q,M)}catch{W[Q]=M.value}}else W[Q]=G(F[Q],z);return W},_=function(F){var B="";return F.global&&(B+="g"),F.ignoreCase&&(B+="i"),F.multiline&&(B+="m"),F.unicode&&(B+="u"),F.sticky&&(B+="y"),B},b=Array.isArray,A=Object.getPrototypeOf,w=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof ue<"u"?ue:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function N(F,B){var G=!!(B&&B.isStrict),z=B&&B.realm||w,W=G?S:E,H=function(Y,te){if(!Y||typeof Y!="object")return Y;if(te.has(Y))return te.get(Y);var Q=Y.__proto__||A(Y),M=Q&&Q.constructor;if(!M||M===z.Object)return W(Y,z,H,te);var V;if(b(Y)){if(G)return S(Y,z,H,te);V=new M,te.set(Y,V);for(var Z=0,de=Y.length;Z<de;++Z)V[Z]=H(Y[Z],te);return V}if(Y instanceof z.Date)return new M(Y.getTime());if(Y instanceof z.RegExp)return V=new M(Y.source,Y.flags||_(Y)),V.lastIndex=Y.lastIndex,V;if(z.Map&&Y instanceof z.Map)return V=new M,te.set(Y,V),Y.forEach(function(X,K){V.set(K,H(X,te))}),V;if(z.Set&&Y instanceof z.Set)return V=new M,te.set(Y,V),Y.forEach(function(X){V.add(H(X,te))}),V;if(z.Blob&&Y instanceof z.Blob)return Y.slice(0,Y.size,Y.type);if(z.Buffer&&z.Buffer.isBuffer(Y))return V=z.Buffer.allocUnsafe?z.Buffer.allocUnsafe(Y.length):new M(Y.length),te.set(Y,V),Y.copy(V),V;if(z.ArrayBuffer){if(z.ArrayBuffer.isView(Y))return V=new M(Y.buffer.slice(0)),te.set(Y,V),V;if(Y instanceof z.ArrayBuffer)return V=Y.slice(0),te.set(Y,V),V}return typeof Y.then=="function"||Y instanceof Error||z.WeakMap&&Y instanceof z.WeakMap||z.WeakSet&&Y instanceof z.WeakSet?Y:W(Y,z,H,te)};return H(F,p())}return N.default=N,N.strict=function(B,G){return N(B,{isStrict:!0,realm:G?G.realm:void 0})},N})}(os)),os.exports}var yo={},vo={exports:{}},Ll;function V_(){return Ll||(Ll=1,function(e,t){t=e.exports=r,t.getSerialize=n;function r(o,i,s,a){return JSON.stringify(o,n(i,a),s)}function n(o,i){var s=[],a=[];return i==null&&(i=function(l,f){return s[0]===f?"[Circular ~]":"[Circular ~."+a.slice(0,s.indexOf(f)).join(".")+"]"}),function(l,f){if(s.length>0){var u=s.indexOf(this);~u?s.splice(u+1):s.push(this),~u?a.splice(u,1/0,l):a.push(l),~s.indexOf(f)&&(f=i.call(this,l,f))}else s.push(f);return o==null?f:o.call(this,l,f)}}}(vo,vo.exports)),vo.exports}var Ml;function Ih(){if(Ml)return yo;Ml=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=r;var e=t(V_());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,(s,a)=>({sys:{type:"Link",linkType:"Entry",id:a.sys.id,circular:!0}}))}})}return yo}var z_=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},Y_=function(){function e(t,r){var n=[],o=!0,i=!1,s=void 0;try{for(var a=t[Symbol.iterator](),l;!(o=(l=a.next()).done)&&(n.push(l.value),!(r&&n.length===r));o=!0);}catch(f){i=!0,s=f}finally{try{!o&&a.return&&a.return()}finally{if(i)throw s}}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 vi(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 zi={},K_=function(t){return t&&t.sys&&t.sys.type==="Link"},Q_=function(t){return t&&t.sys&&t.sys.type==="ResourceLink"},X_=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]},kl=function(t,r){var n=r.entryId,o=r.linkType,i=r.spaceId,s=r.environmentId;return i&&s?t.get(i+"!"+s+"!"+o+"!"+n):t.get(o+"!"+n)},J_=function(t){var r=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(r.test(t)){var n=t.match(r),o=Y_(n,4);o[0];var i=o[1],s=o[2],a=s===void 0?"master":s,l=o[3];return{spaceId:i,environmentId:a,entryId:l}}},Z_=function(t,r){var n=r.sys,o=n.type,i=n.linkType;if(o==="ResourceLink"){var s=r.sys.urn,a=J_(s),l=a.spaceId,f=a.environmentId,u=a.entryId,h=i.split(":")[1];return kl(t,{linkType:h,entryId:u,spaceId:l,environmentId:f})||zi}var d=r.sys.id;return kl(t,{linkType:i,entryId:d})||zi},eE=function(t){if(Array.isArray(t))return t.filter(function(n){return n!==zi});for(var r in t)t[r]===zi&&delete t[r];return t},tE=function e(t,r,n,o){if(r(t))return n(t);if(t&&(typeof t>"u"?"undefined":z_(t))==="object"){for(var i in t)t.hasOwnProperty(i)&&(t[i]=e(t[i],r,n,o));o&&(t=eE(t))}return t},rE=function(t,r,n){var o=Z_(t,r);return o===zi?n?o:r:o},nE=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},{})},iE=function(t,r){if(r=r||{},!t.items)return[];var n=_r(t),o=Object.keys(n.includes||{}).reduce(function(a,l){return[].concat(vi(a),vi(t.includes[l]))},[]),i=[].concat(vi(n.items),vi(o)).filter(function(a){return!!a.sys}),s=new Map(i.reduce(function(a,l){var f=X_(l.sys).map(function(u){return[u,l]});return a.push.apply(a,vi(f)),a},[]));return i.forEach(function(a){var l=nE(a,r.itemEntryPoints);Object.assign(a,tE(l,function(f){return K_(f)||Q_(f)},function(f){return rE(s,f,r.removeUnresolved)},r.removeUnresolved))}),n.items};const oE=Object.freeze(Object.defineProperty({__proto__:null,default:iE},Symbol.toStringTag,{value:"Module"})),Lh=Xi(oE);var Bl;function aE(){if(Bl)return yi;Bl=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.wrapEntry=i,yi.wrapEntryCollection=s;var e=o(Bn()),t=qt,r=o(Ih()),n=o(Lh);function o(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(a)))}function s(a,l){let{resolveLinks:f,removeUnresolved:u}=l;const h=(0,r.default)((0,t.toPlainObject)((0,e.default)(a)));return f&&(h.items=(0,n.default)(h,{removeUnresolved:u,itemEntryPoints:["fields"]})),(0,t.freezeSys)(h)}return yi}var _i={},Fl;function sE(){if(Fl)return _i;Fl=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.wrapAsset=n,_i.wrapAssetCollection=o;var e=r(Bn()),t=qt;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 _i}var _o={},Dl;function uE(){if(Dl)return _o;Dl=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.wrapAssetKey=n;var e=r(Bn()),t=qt;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 _o}var Ei={},Ul;function cE(){if(Ul)return Ei;Ul=1,Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.wrapContentType=n,Ei.wrapContentTypeCollection=o;var e=r(Bn()),t=qt;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 Ei}var bi={},$l;function lE(){if($l)return bi;$l=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.wrapLocale=n,bi.wrapLocaleCollection=o;var e=r(Bn()),t=qt;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 bi}var wi={},jl;function fE(){if(jl)return wi;jl=1,Object.defineProperty(wi,"__esModule",{value:!0}),wi.wrapTag=n,wi.wrapTagCollection=o;var e=r(Bn()),t=qt;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 wi}var Hl;function dE(){if(Hl)return gi;Hl=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.default=void 0;var e=l(W_()),t=l(aE()),r=l(sE()),n=l(uE()),o=l(cE()),i=l(lE()),s=l(fE());function a(u){if(typeof WeakMap!="function")return null;var h=new WeakMap,d=new WeakMap;return(a=function(c){return c?d:h})(u)}function l(u,h){if(!h&&u&&u.__esModule)return u;if(u===null||typeof u!="object"&&typeof u!="function")return{default:u};var d=a(h);if(d&&d.has(u))return d.get(u);var c={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in u)if(m!=="default"&&Object.prototype.hasOwnProperty.call(u,m)){var E=p?Object.getOwnPropertyDescriptor(u,m):null;E&&(E.get||E.set)?Object.defineProperty(c,m,E):c[m]=u[m]}return c.default=u,d&&d.set(u,c),c}var f={space:e,entry:t,asset:r,assetKey:n,contentType:o,locale:i,tag:s};return gi.default=f,gi}var Eo={},ql;function hE(){if(ql)return Eo;ql=1,Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.default=a;var e=qt,t=n(Lh),r=n(Ih());function n(h){return h&&h.__esModule?h:{default:h}}function o(h,d){var c=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(h,m).enumerable})),c.push.apply(c,p)}return c}function i(h){for(var d=1;d<arguments.length;d++){var c=arguments[d]!=null?arguments[d]:{};d%2?o(Object(c),!0).forEach(function(p){s(h,p,c[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(c)):o(Object(c)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(c,p))})}return h}function s(h,d,c){return d in h?Object.defineProperty(h,d,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[d]=c,h}async function a(h,d){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!d||!d.initial&&!d.nextSyncToken&&!d.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(d&&d.content_type&&!d.type)d.type="Entry";else if(d&&d.content_type&&d.type&&d.type!=="Entry")throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");const p={resolveLinks:!0,removeUnresolved:!1,paginate:!0},{resolveLinks:m,removeUnresolved:E,paginate:S}=i(i({},p),c),b=await f(h,[],d,{paginate:S});m&&(b.items=(0,t.default)(b,{removeUnresolved:E,itemEntryPoints:["fields"]}));const A=l(b.items);return b.nextSyncToken&&(A.nextSyncToken=b.nextSyncToken),b.nextPageToken&&(A.nextPageToken=b.nextPageToken),(0,e.freezeSys)((0,r.default)((0,e.toPlainObject)(A)))}function l(h){const d=c=>(p,m)=>(m.sys.type===c&&p.push((0,e.toPlainObject)(m)),p);return{entries:h.reduce(d("Entry"),[]),assets:h.reduce(d("Asset"),[]),deletedEntries:h.reduce(d("DeletedEntry"),[]),deletedAssets:h.reduce(d("DeletedAsset"),[])}}async function f(h,d,c,p){let{paginate:m}=p;c.nextSyncToken&&(c.sync_token=c.nextSyncToken,delete c.nextSyncToken),c.nextPageToken&&(c.sync_token=c.nextPageToken,delete c.nextPageToken),c.sync_token&&(delete c.initial,delete c.type,delete c.content_type,delete c.limit);const S=(await h.get("sync",(0,e.createRequestConfig)({query:c}))).data||{};return d=d.concat(S.items||[]),S.nextPageUrl?m?(delete c.initial,c.sync_token=u(S.nextPageUrl),f(h,d,c,{paginate:m})):{items:d,nextPageToken:u(S.nextPageUrl)}:S.nextSyncUrl?{items:d,nextSyncToken:u(S.nextSyncUrl)}:{items:[]}}function u(h){const d=h.split("?");return d.length>0?d[1].replace("sync_token=",""):""}return Eo}var bo={},Gl;function pE(){if(Gl)return bo;Gl=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=n;function e(o,i){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(o);i&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),s.push.apply(s,a)}return s}function t(o){for(var i=1;i<arguments.length;i++){var s=arguments[i]!=null?arguments[i]:{};i%2?e(Object(s),!0).forEach(function(a){r(o,a,s[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):e(Object(s)).forEach(function(a){Object.defineProperty(o,a,Object.getOwnPropertyDescriptor(s,a))})}return o}function r(o,i,s){return i in o?Object.defineProperty(o,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[i]=s,o}function n(o){if(!o.select)return o;const i=Array.isArray(o.select)?o.select:o.select.split(","),s=new Set(i);return s.has("sys")?o:(s.add("sys.id"),s.add("sys.type"),t(t({},o),{},{select:[...s].join(",")}))}return bo}var Sn={},Wl;function mE(){if(Wl)return Sn;Wl=1,Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.ValidationError=void 0,Sn.default=t;class e extends Error{constructor(n,o){super(`Invalid "${n}" provided, `+o),this.name="ValidationError"}}Sn.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 Sn}var Vl;function gE(){if(Vl)return mo;Vl=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.default=u;var e=qt,t=i(dE()),r=i(hE()),n=i(pE()),o=i(mE());function i(h){return h&&h.__esModule?h:{default:h}}function s(h,d){var c=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(h,m).enumerable})),c.push.apply(c,p)}return c}function a(h){for(var d=1;d<arguments.length;d++){var c=arguments[d]!=null?arguments[d]:{};d%2?s(Object(c),!0).forEach(function(p){l(h,p,c[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(c)):s(Object(c)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(c,p))})}return h}function l(h,d,c){return d in h?Object.defineProperty(h,d,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[d]=c,h}const f=48*60*60;function u(h){let{http:d,getGlobalOptions:c}=h;const{wrapSpace:p}=t.default.space,{wrapContentType:m,wrapContentTypeCollection:E}=t.default.contentType,{wrapEntry:S,wrapEntryCollection:_}=t.default.entry,{wrapAsset:b,wrapAssetCollection:A}=t.default.asset,{wrapTag:w,wrapTagCollection:N}=t.default.tag,{wrapAssetKey:F}=t.default.assetKey,{wrapLocaleCollection:B}=t.default.locale,G=J=>{const ie=new Error("The resource could not be found.");return ie.sys={type:"Error",id:"NotFound"},ie.details={type:"Entry",id:J,environment:c().environment,space:c().space},ie};async function z(){Fe(d);try{const J=await d.get("/");return p(J.data)}catch(J){(0,e.errorHandler)(J)}}async function W(J){ce(d);try{const ie=await d.get(`content_types/${J}`);return m(ie.data)}catch(ie){(0,e.errorHandler)(ie)}}async function H(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ce(d);try{const ie=await d.get("content_types",(0,e.createRequestConfig)({query:J}));return E(ie.data)}catch(ie){(0,e.errorHandler)(ie)}}async function Y(J){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!J)throw G(J);try{const Pe=await this.getEntries(a({"sys.id":J},ie));if(Pe.items.length>0)return S(Pe.items[0]);throw G(J)}catch(Pe){(0,e.errorHandler)(Pe)}}async function te(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ce(d);const{resolveLinks:ie,removeUnresolved:Pe}=c(J);J=(0,n.default)(J);try{const Ae=await d.get("entries",(0,e.createRequestConfig)({query:J}));return _(Ae.data,{resolveLinks:ie,removeUnresolved:Pe})}catch(Ae){(0,e.errorHandler)(Ae)}}async function Q(J){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ce(d),ie=(0,n.default)(ie);try{const Pe=await d.get(`assets/${J}`,(0,e.createRequestConfig)({query:ie}));return b(Pe.data)}catch(Pe){(0,e.errorHandler)(Pe)}}async function M(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ce(d),J=(0,n.default)(J);try{const ie=await d.get("assets",(0,e.createRequestConfig)({query:J}));return A(ie.data)}catch(ie){(0,e.errorHandler)(ie)}}async function V(J){ce(d);try{const ie=await d.get(`tags/${J}`);return w(ie.data)}catch(ie){(0,e.errorHandler)(ie)}}async function Z(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ce(d),J=(0,n.default)(J);try{const ie=await d.get("tags",(0,e.createRequestConfig)({query:J}));return N(ie.data)}catch(ie){(0,e.errorHandler)(ie)}}async function de(J){ce(d);try{const ie=Math.floor(Date.now()/1e3),Pe=ie+f;(0,o.default)("expiresAt",J,{maximum:Pe,now:ie});const Ae={expiresAt:J},st=await d.post("asset_keys",Ae);return F(st.data)}catch(ie){(0,e.errorHandler)(ie)}}async function X(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ce(d);try{const ie=await d.get("locales",(0,e.createRequestConfig)({query:J}));return B(ie.data)}catch(ie){(0,e.errorHandler)(ie)}}async function K(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{paginate:!0};const{resolveLinks:Pe,removeUnresolved:Ae}=c(J);return ce(d),(0,r.default)(d,J,a({resolveLinks:Pe,removeUnresolved:Ae},ie))}function se(J){const{resolveLinks:ie,removeUnresolved:Pe}=c({});return _(J,{resolveLinks:ie,removeUnresolved:Pe})}function ce(J){J.defaults.baseURL=c().environmentBaseUrl}function Fe(J){J.defaults.baseURL=c().spaceBaseUrl}return{getSpace:z,getContentType:W,getContentTypes:H,getEntry:Y,getEntries:te,getAsset:Q,getAssets:M,getTag:V,getTags:Z,createAssetKey:de,getLocales:X,parseEntries:se,sync:K}}return mo}var wo={},zl;function yE(){if(zl)return wo;zl=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=e;function e(t){return function(n){return Object.assign({},t,n)}}return wo}var Yl;function vE(){if(Yl)return uo;Yl=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.createClient=l;var e=o(ih()),t=qt,r=o(gE()),n=o(yE());function o(f){return f&&f.__esModule?f:{default:f}}function i(f,u){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(f);u&&(d=d.filter(function(c){return Object.getOwnPropertyDescriptor(f,c).enumerable})),h.push.apply(h,d)}return h}function s(f){for(var u=1;u<arguments.length;u++){var h=arguments[u]!=null?arguments[u]:{};u%2?i(Object(h),!0).forEach(function(d){a(f,d,h[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):i(Object(h)).forEach(function(d){Object.defineProperty(f,d,Object.getOwnPropertyDescriptor(h,d))})}return f}function a(f,u,h){return u in f?Object.defineProperty(f,u,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[u]=h,f}function l(f){if(!f.accessToken)throw new TypeError("Expected parameter accessToken");if(!f.space)throw new TypeError("Expected parameter space");const h=s(s({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),f),d=(0,t.getUserAgentHeader)("contentful.js/9.1.34",h.application,h.integration);h.headers=s(s({},h.headers),{},{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":d});const c=(0,t.createHttpClient)(e.default,h),p=(0,n.default)({resolveLinks:h.resolveLinks,environment:h.environment,removeUnresolved:h.removeUnresolved,spaceBaseUrl:c.defaults.baseURL,environmentBaseUrl:`${c.defaults.baseURL}environments/${h.environment}`});return c.defaults.baseURL=p().environmentBaseUrl,(0,r.default)({http:c,getGlobalOptions:p})}return uo}var as={},ss,Kl;function _E(){return Kl||(Kl=1,ss=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),ss}var us,Ql;function EE(){if(Ql)return us;Ql=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(s,a){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;a=a||1;var l=s.slice(0,a),f=s.slice(a);return Array.prototype.concat.call([],n(l),n(f))}function o(s){try{return decodeURIComponent(s)}catch{for(var a=s.match(t)||[],l=1;l<a.length;l++)s=n(a,l).join(""),a=s.match(t)||[];return s}}function i(s){for(var a={"%FE%FF":"��","%FF%FE":"��"},l=r.exec(s);l;){try{a[l[0]]=decodeURIComponent(l[0])}catch{var f=o(l[0]);f!==l[0]&&(a[l[0]]=f)}l=r.exec(s)}a["%C2"]="�";for(var u=Object.keys(a),h=0;h<u.length;h++){var d=u[h];s=s.replace(new RegExp(d,"g"),a[d])}return s}return us=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return i(s)}},us}var cs,Xl;function bE(){return Xl||(Xl=1,cs=(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)]}),cs}var ls,Jl;function wE(){return Jl||(Jl=1,ls=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),i=0;i<n.length;i++){var s=n[i],a=e[s];(o?t.indexOf(s)!==-1:t(s,a,e))&&(r[s]=a)}return r}),ls}var Zl;function SE(){return Zl||(Zl=1,function(e){const t=_E(),r=EE(),n=bE(),o=wE(),i=_=>_==null,s=Symbol("encodeFragmentIdentifier");function a(_){switch(_.arrayFormat){case"index":return b=>(A,w)=>{const N=A.length;return w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,[u(b,_),"[",N,"]"].join("")]:[...A,[u(b,_),"[",u(N,_),"]=",u(w,_)].join("")]};case"bracket":return b=>(A,w)=>w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,[u(b,_),"[]"].join("")]:[...A,[u(b,_),"[]=",u(w,_)].join("")];case"colon-list-separator":return b=>(A,w)=>w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,[u(b,_),":list="].join("")]:[...A,[u(b,_),":list=",u(w,_)].join("")];case"comma":case"separator":case"bracket-separator":{const b=_.arrayFormat==="bracket-separator"?"[]=":"=";return A=>(w,N)=>N===void 0||_.skipNull&&N===null||_.skipEmptyString&&N===""?w:(N=N===null?"":N,w.length===0?[[u(A,_),b,u(N,_)].join("")]:[[w,u(N,_)].join(_.arrayFormatSeparator)])}default:return b=>(A,w)=>w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,u(b,_)]:[...A,[u(b,_),"=",u(w,_)].join("")]}}function l(_){let b;switch(_.arrayFormat){case"index":return(A,w,N)=>{if(b=/\[(\d*)\]$/.exec(A),A=A.replace(/\[\d*\]$/,""),!b){N[A]=w;return}N[A]===void 0&&(N[A]={}),N[A][b[1]]=w};case"bracket":return(A,w,N)=>{if(b=/(\[\])$/.exec(A),A=A.replace(/\[\]$/,""),!b){N[A]=w;return}if(N[A]===void 0){N[A]=[w];return}N[A]=[].concat(N[A],w)};case"colon-list-separator":return(A,w,N)=>{if(b=/(:list)$/.exec(A),A=A.replace(/:list$/,""),!b){N[A]=w;return}if(N[A]===void 0){N[A]=[w];return}N[A]=[].concat(N[A],w)};case"comma":case"separator":return(A,w,N)=>{const F=typeof w=="string"&&w.includes(_.arrayFormatSeparator),B=typeof w=="string"&&!F&&h(w,_).includes(_.arrayFormatSeparator);w=B?h(w,_):w;const G=F||B?w.split(_.arrayFormatSeparator).map(z=>h(z,_)):w===null?w:h(w,_);N[A]=G};case"bracket-separator":return(A,w,N)=>{const F=/(\[\])$/.test(A);if(A=A.replace(/\[\]$/,""),!F){N[A]=w&&h(w,_);return}const B=w===null?[]:w.split(_.arrayFormatSeparator).map(G=>h(G,_));if(N[A]===void 0){N[A]=B;return}N[A]=[].concat(N[A],B)};default:return(A,w,N)=>{if(N[A]===void 0){N[A]=w;return}N[A]=[].concat(N[A],w)}}}function f(_){if(typeof _!="string"||_.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(_,b){return b.encode?b.strict?t(_):encodeURIComponent(_):_}function h(_,b){return b.decode?r(_):_}function d(_){return Array.isArray(_)?_.sort():typeof _=="object"?d(Object.keys(_)).sort((b,A)=>Number(b)-Number(A)).map(b=>_[b]):_}function c(_){const b=_.indexOf("#");return b!==-1&&(_=_.slice(0,b)),_}function p(_){let b="";const A=_.indexOf("#");return A!==-1&&(b=_.slice(A)),b}function m(_){_=c(_);const b=_.indexOf("?");return b===-1?"":_.slice(b+1)}function E(_,b){return b.parseNumbers&&!Number.isNaN(Number(_))&&typeof _=="string"&&_.trim()!==""?_=Number(_):b.parseBooleans&&_!==null&&(_.toLowerCase()==="true"||_.toLowerCase()==="false")&&(_=_.toLowerCase()==="true"),_}function S(_,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),f(b.arrayFormatSeparator);const A=l(b),w=Object.create(null);if(typeof _!="string"||(_=_.trim().replace(/^[?#&]/,""),!_))return w;for(const N of _.split("&")){if(N==="")continue;let[F,B]=n(b.decode?N.replace(/\+/g," "):N,"=");B=B===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?B:h(B,b),A(h(F,b),B,w)}for(const N of Object.keys(w)){const F=w[N];if(typeof F=="object"&&F!==null)for(const B of Object.keys(F))F[B]=E(F[B],b);else w[N]=E(F,b)}return b.sort===!1?w:(b.sort===!0?Object.keys(w).sort():Object.keys(w).sort(b.sort)).reduce((N,F)=>{const B=w[F];return B&&typeof B=="object"&&!Array.isArray(B)?N[F]=d(B):N[F]=B,N},Object.create(null))}e.extract=m,e.parse=S,e.stringify=(_,b)=>{if(!_)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),f(b.arrayFormatSeparator);const A=B=>b.skipNull&&i(_[B])||b.skipEmptyString&&_[B]==="",w=a(b),N={};for(const B of Object.keys(_))A(B)||(N[B]=_[B]);const F=Object.keys(N);return b.sort!==!1&&F.sort(b.sort),F.map(B=>{const G=_[B];return G===void 0?"":G===null?u(B,b):Array.isArray(G)?G.length===0&&b.arrayFormat==="bracket-separator"?u(B,b)+"[]":G.reduce(w(B),[]).join("&"):u(B,b)+"="+u(G,b)}).filter(B=>B.length>0).join("&")},e.parseUrl=(_,b)=>{b=Object.assign({decode:!0},b);const[A,w]=n(_,"#");return Object.assign({url:A.split("?")[0]||"",query:S(m(_),b)},b&&b.parseFragmentIdentifier&&w?{fragmentIdentifier:h(w,b)}:{})},e.stringifyUrl=(_,b)=>{b=Object.assign({encode:!0,strict:!0,[s]:!0},b);const A=c(_.url).split("?")[0]||"",w=e.extract(_.url),N=e.parse(w,{sort:!1}),F=Object.assign(N,_.query);let B=e.stringify(F,b);B&&(B=`?${B}`);let G=p(_.url);return _.fragmentIdentifier&&(G=`#${b[s]?u(_.fragmentIdentifier,b):_.fragmentIdentifier}`),`${A}${B}${G}`},e.pick=(_,b,A)=>{A=Object.assign({parseFragmentIdentifier:!0,[s]:!1},A);const{url:w,query:N,fragmentIdentifier:F}=e.parseUrl(_,A);return e.stringifyUrl({url:w,query:o(N,b),fragmentIdentifier:F},A)},e.exclude=(_,b,A)=>{const w=Array.isArray(b)?N=>!b.includes(N):(N,F)=>!b(N,F);return e.pick(_,w,A)}}(as)),as}var ef;function TE(){return ef||(ef=1,function(e,t){(function(r,n){e.exports=n(vE(),SE())})(ue,function(r,n){return function(){var o={897:function(l){l.exports=r},48:function(l){l.exports=n}},i={};function s(l){var f=i[l];if(f!==void 0)return f.exports;var u=i[l]={exports:{}};return o[l](u,u.exports,s),u.exports}s.d=function(l,f){for(var u in f)s.o(f,u)&&!s.o(l,u)&&Object.defineProperty(l,u,{enumerable:!0,get:f[u]})},s.o=function(l,f){return Object.prototype.hasOwnProperty.call(l,f)},s.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var a={};return function(){s.r(a),s.d(a,{getEntries:function(){return te},getEntry:function(){return Y},setContext:function(){return m}});var l=s(897),f=s(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:h,SPACE:d,HOSTS:c}}=u;let p={apiKey:null,previewKey:null,environment:null,isPreview:!1,host:c.CDN,space:d};const m=({apiKey:Q,environment:M,isPreview:V=!1,location:Z,previewKey:de,space:X=null})=>{p.apiKey=Q,p.previewKey=de,p.environment=(K=>{if(!K)throw new Error("Cannot map environment: Environment not defined");if(!h[K])throw new Error(`Cannot map environment: No mapping found for environment ${K}`);return h[K]})(M),p.isPreview=V||(K=>{let se=!1;if(K&&K.search){const ce=(0,f.parse)(K.search);se=ce.isPreview&&ce.isPreview==="true"}return se})(Z),p.space=X||d},E=(Q=!1)=>{const{apiKey:M,environment:V,isPreview:Z,previewKey:de,space:X}=p;return Z===!0||Q===!0?{accessToken:de,environment:V,host:c.PREVIEW,space:X}:{accessToken:M,environment:V,host:c.CDN,space:X}},S=Q=>typeof Q=="object"&&Q!==null,_=Q=>Array.isArray(Q)&&Q.length,b=Q=>{if(!S(Q))throw new Error("Cannot flatten fields");const{fields:M,sys:V}=Q;if(!M)throw new Error("Cannot flatten fields");let Z={...M};if(S(V)){const{contentType:de,createdAt:X,updatedAt:K}=V;de&&Object.assign(Z,{contentType:de.sys.id}),X&&Object.assign(Z,{createdAt:X}),K&&Object.assign(Z,{updatedAt:K})}return Z},{CONTENTFUL:{LOCALES:A}}=u,w=(Q,M)=>S(Q)&&((V,Z)=>Object.prototype.hasOwnProperty.call(V,Z))(Q,M),N=(Q,M)=>{const V=(Z=>A.SUPPORTED.includes(Z)?Z:A.DEFAULT)(M);return w(Q,V)?Q[V]:w(Q,A.DEFAULT)?Q[A.DEFAULT]:Q},F=Q=>S(Q)&&Q.sys&&Q.sys.type==="Asset",B=(Q,M,V)=>{const{title:Z,file:de}=b(Q);if(!de)throw new Error("Cannot flatten asset");const{contentType:X,fileName:K,url:se,details:ce}=N(de,M);if(!se)throw new Error("Cannot flatten asset");return V?{description:Z||K,height:ce&&ce.image&&ce.image.height,type:X,url:se,width:ce&&ce.image&&ce.image.width}:se},G=Q=>S(Q)&&Q.sys&&Q.sys.type==="Entry",z=(Q,M,V)=>{const Z={},de=((X,K)=>{const se={};for(const[ce,Fe]of Object.entries(X))se[ce]=N(Fe,K);return se})(b(Q),M);for(const[X,K]of Object.entries(de))F(K)?Z[X]=B(K,M,V):G(K)?Z[X]=z(K,M,V):_(K)?Z[X]=K.map(se=>F(se)?B(se,M,V):G(se)?z(se,M,V):se):Z[X]=K;return Z},W=({items:Q})=>{if(!_(Q))throw new Error("Cannot read items");return Q},H=async(Q,M)=>{const V=E(M);return await(await(0,l.createClient)(V)).getEntries(Q)},Y=async(Q={},M={},V=!1)=>((Z,{flatten:de=!0,locale:X="en",assetDetails:K=!1})=>{const se=W(Z);return de?z(se[0],X,K):se[0]})(await H(Q,V),{...Q,...M}),te=async(Q={},M={},V=!1)=>((Z,{flatten:de=!0,locale:X="en",assetDetails:K=!1})=>{const se=W(Z);return de?((ce,Fe,J)=>ce.map(ie=>z(ie,Fe,J)))(se,X,K):se})(await H(Q,V),{...Q,...M})}(),a}()})}(ga)),ga.exports}var fs={exports:{}},ds={exports:{}},hs={exports:{}},ps={exports:{}},tf;function zu(){return tf||(tf=1,function(e,t){(function(r,n){e.exports=n()})(ue,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"],s=["columnNumber","lineNumber"],a=["fileName","functionName","source"],l=["args"],f=["evalOrigin"],u=i.concat(s,a,l,f);function h(m){if(m)for(var E=0;E<u.length;E++)m[u[E]]!==void 0&&this["set"+n(u[E])](m[u[E]])}h.prototype={getArgs:function(){return this.args},setArgs:function(m){if(Object.prototype.toString.call(m)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=m},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(m){if(m instanceof h)this.evalOrigin=m;else if(m instanceof Object)this.evalOrigin=new h(m);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var m=this.getFileName()||"",E=this.getLineNumber()||"",S=this.getColumnNumber()||"",_=this.getFunctionName()||"";return this.getIsEval()?m?"[eval] ("+m+":"+E+":"+S+")":"[eval]:"+E+":"+S:_?_+" ("+m+":"+E+":"+S+")":m+":"+E+":"+S}},h.fromString=function(E){var S=E.indexOf("("),_=E.lastIndexOf(")"),b=E.substring(0,S),A=E.substring(S+1,_).split(","),w=E.substring(_+1);if(w.indexOf("@")===0)var N=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(w,""),F=N[1],B=N[2],G=N[3];return new h({functionName:b,args:A||void 0,fileName:F,lineNumber:B||void 0,columnNumber:G||void 0})};for(var d=0;d<i.length;d++)h.prototype["get"+n(i[d])]=o(i[d]),h.prototype["set"+n(i[d])]=function(m){return function(E){this[m]=!!E}}(i[d]);for(var c=0;c<s.length;c++)h.prototype["get"+n(s[c])]=o(s[c]),h.prototype["set"+n(s[c])]=function(m){return function(E){if(!r(E))throw new TypeError(m+" must be a Number");this[m]=Number(E)}}(s[c]);for(var p=0;p<a.length;p++)h.prototype["get"+n(a[p])]=o(a[p]),h.prototype["set"+n(a[p])]=function(m){return function(E){this[m]=String(E)}}(a[p]);return h})}(ps)),ps.exports}var rf;function xE(){return rf||(rf=1,function(e,t){(function(r,n){e.exports=n(zu())})(ue,function(n){var o=/(^|@)\S+:\d+/,i=/^\s*at .*(\S+:\d+|\(native\))/m,s=/^(eval@)?(\[native code])?$/;return{parse:function(l){if(typeof l.stacktrace<"u"||typeof l["opera#sourceloc"]<"u")return this.parseOpera(l);if(l.stack&&l.stack.match(i))return this.parseV8OrIE(l);if(l.stack)return this.parseFFOrSafari(l);throw new Error("Cannot parse given Error object")},extractLocation:function(l){if(l.indexOf(":")===-1)return[l];var f=/(.+?)(?::(\d+))?(?::(\d+))?$/,u=f.exec(l.replace(/[()]/g,""));return[u[1],u[2]||void 0,u[3]||void 0]},parseV8OrIE:function(l){var f=l.stack.split(`
|
|
35
|
-
`).filter(function(u){return!!u.match(i)},this);return f.map(function(u){u.indexOf("(eval ")>-1&&(u=u.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var h=u.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),d=h.match(/ (\(.+\)$)/);h=d?h.replace(d[0],""):h;var c=this.extractLocation(d?d[1]:h),p=d&&h||void 0,m=["eval","<anonymous>"].indexOf(c[0])>-1?void 0:c[0];return new n({functionName:p,fileName:m,lineNumber:c[1],columnNumber:c[2],source:u})},this)},parseFFOrSafari:function(l){var f=l.stack.split(`
|
|
36
|
-
`).filter(function(u){return!u.match(s)},this);return f.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 h=/((.*".+"[^@]*)?[^@]*)(?:@)/,d=u.match(h),c=d&&d[1]?d[1]:void 0,p=this.extractLocation(u.replace(h,""));return new n({functionName:c,fileName:p[0],lineNumber:p[1],columnNumber:p[2],source:u})},this)},parseOpera:function(l){return!l.stacktrace||l.message.indexOf(`
|
|
37
|
-
`)>-1&&l.message.split(`
|
|
38
|
-
`).length>l.stacktrace.split(`
|
|
39
|
-
`).length?this.parseOpera9(l):l.stack?this.parseOpera11(l):this.parseOpera10(l)},parseOpera9:function(l){for(var f=/Line (\d+).*script (?:in )?(\S+)/i,u=l.message.split(`
|
|
40
|
-
`),h=[],d=2,c=u.length;d<c;d+=2){var p=f.exec(u[d]);p&&h.push(new n({fileName:p[2],lineNumber:p[1],source:u[d]}))}return h},parseOpera10:function(l){for(var f=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,u=l.stacktrace.split(`
|
|
41
|
-
`),h=[],d=0,c=u.length;d<c;d+=2){var p=f.exec(u[d]);p&&h.push(new n({functionName:p[3]||void 0,fileName:p[2],lineNumber:p[1],source:u[d]}))}return h},parseOpera11:function(l){var f=l.stack.split(`
|
|
42
|
-
`).filter(function(u){return!!u.match(o)&&!u.match(/^Error created at/)},this);return f.map(function(u){var h=u.split("@"),d=this.extractLocation(h.pop()),c=h.shift()||"",p=c.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,m;c.match(/\(([^)]*)\)/)&&(m=c.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var E=m===void 0||m==="[arguments not available]"?void 0:m.split(",");return new n({functionName:p,args:E,fileName:d[0],lineNumber:d[1],columnNumber:d[2],source:u})},this)}}})}(hs)),hs.exports}var ms={exports:{}},nf;function OE(){return nf||(nf=1,function(e,t){(function(r,n){e.exports=n(zu())})(ue,function(r){return{backtrace:function(o){var i=[],s=10;typeof o=="object"&&typeof o.maxStackSize=="number"&&(s=o.maxStackSize);for(var a=arguments.callee;a&&i.length<s&&a.arguments;){for(var l=new Array(a.arguments.length),f=0;f<l.length;++f)l[f]=a.arguments[f];/function(?:\s+([\w$]+))+\s*\(/.test(a.toString())?i.push(new r({functionName:RegExp.$1||void 0,args:l})):i.push(new r({args:l}));try{a=a.caller}catch{break}}return i}}})}(ms)),ms.exports}var gs={exports:{}},Si={},ys={},of;function Mh(){return of||(of=1,function(e){function t(_,b,A){if(b in _)return _[b];if(arguments.length===3)return A;throw new Error('"'+b+'" is a required argument.')}e.getArg=t;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,n=/^data:.+\,.+$/;function o(_){var b=_.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(_){var b="";return _.scheme&&(b+=_.scheme+":"),b+="//",_.auth&&(b+=_.auth+"@"),_.host&&(b+=_.host),_.port&&(b+=":"+_.port),_.path&&(b+=_.path),b}e.urlGenerate=i;function s(_){var b=_,A=o(_);if(A){if(!A.path)return _;b=A.path}for(var w=e.isAbsolute(b),N=b.split(/\/+/),F,B=0,G=N.length-1;G>=0;G--)F=N[G],F==="."?N.splice(G,1):F===".."?B++:B>0&&(F===""?(N.splice(G+1,B),B=0):(N.splice(G,2),B--));return b=N.join("/"),b===""&&(b=w?"/":"."),A?(A.path=b,i(A)):b}e.normalize=s;function a(_,b){_===""&&(_="."),b===""&&(b=".");var A=o(b),w=o(_);if(w&&(_=w.path||"/"),A&&!A.scheme)return w&&(A.scheme=w.scheme),i(A);if(A||b.match(n))return b;if(w&&!w.host&&!w.path)return w.host=b,i(w);var N=b.charAt(0)==="/"?b:s(_.replace(/\/+$/,"")+"/"+b);return w?(w.path=N,i(w)):N}e.join=a,e.isAbsolute=function(_){return _.charAt(0)==="/"||!!_.match(r)};function l(_,b){_===""&&(_="."),_=_.replace(/\/$/,"");for(var A=0;b.indexOf(_+"/")!==0;){var w=_.lastIndexOf("/");if(w<0||(_=_.slice(0,w),_.match(/^([^\/]+:\/)?\/*$/)))return b;++A}return Array(A+1).join("../")+b.substr(_.length+1)}e.relative=l;var f=function(){var _=Object.create(null);return!("__proto__"in _)}();function u(_){return _}function h(_){return c(_)?"$"+_:_}e.toSetString=f?u:h;function d(_){return c(_)?_.slice(1):_}e.fromSetString=f?u:d;function c(_){if(!_)return!1;var b=_.length;if(b<9||_.charCodeAt(b-1)!==95||_.charCodeAt(b-2)!==95||_.charCodeAt(b-3)!==111||_.charCodeAt(b-4)!==116||_.charCodeAt(b-5)!==111||_.charCodeAt(b-6)!==114||_.charCodeAt(b-7)!==112||_.charCodeAt(b-8)!==95||_.charCodeAt(b-9)!==95)return!1;for(var A=b-10;A>=0;A--)if(_.charCodeAt(A)!==36)return!1;return!0}function p(_,b,A){var w=_.source-b.source;return w!==0||(w=_.originalLine-b.originalLine,w!==0)||(w=_.originalColumn-b.originalColumn,w!==0||A)||(w=_.generatedColumn-b.generatedColumn,w!==0)||(w=_.generatedLine-b.generatedLine,w!==0)?w:_.name-b.name}e.compareByOriginalPositions=p;function m(_,b,A){var w=_.generatedLine-b.generatedLine;return w!==0||(w=_.generatedColumn-b.generatedColumn,w!==0||A)||(w=_.source-b.source,w!==0)||(w=_.originalLine-b.originalLine,w!==0)||(w=_.originalColumn-b.originalColumn,w!==0)?w:_.name-b.name}e.compareByGeneratedPositionsDeflated=m;function E(_,b){return _===b?0:_>b?1:-1}function S(_,b){var A=_.generatedLine-b.generatedLine;return A!==0||(A=_.generatedColumn-b.generatedColumn,A!==0)||(A=E(_.source,b.source),A!==0)||(A=_.originalLine-b.originalLine,A!==0)||(A=_.originalColumn-b.originalColumn,A!==0)?A:E(_.name,b.name)}e.compareByGeneratedPositionsInflated=S}(ys)),ys}var vs={},af;function AE(){return af||(af=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,n,o,i,s,a){var l=Math.floor((n-r)/2)+r,f=s(o,i[l],!0);return f===0?l:f>0?n-l>1?t(l,n,o,i,s,a):a==e.LEAST_UPPER_BOUND?n<i.length?n:-1:l:l-r>1?t(r,l,o,i,s,a):a==e.LEAST_UPPER_BOUND?l:r<0?-1:r}e.search=function(n,o,i,s){if(o.length===0)return-1;var a=t(-1,o.length,n,o,i,s||e.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&i(o[a],o[a-1],!0)===0;)--a;return a}}(vs)),vs}var _s={},sf;function CE(){if(sf)return _s;sf=1;var e=Mh(),t=Object.prototype.hasOwnProperty;function r(){this._array=[],this._set=Object.create(null)}return r.fromArray=function(o,i){for(var s=new r,a=0,l=o.length;a<l;a++)s.add(o[a],i);return s},r.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(o,i){var s=e.toSetString(o),a=t.call(this._set,s),l=this._array.length;(!a||i)&&this._array.push(o),a||(this._set[s]=l)},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()},_s.ArraySet=r,_s}var So={},To={},uf;function RE(){if(uf)return To;uf=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return To.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},To.decode=function(t){var r=65,n=90,o=97,i=122,s=48,a=57,l=43,f=47,u=26,h=52;return r<=t&&t<=n?t-r:o<=t&&t<=i?t-o+u:s<=t&&t<=a?t-s+h:t==l?62:t==f?63:-1},To}var cf;function NE(){if(cf)return So;cf=1;var e=RE(),t=5,r=1<<t,n=r-1,o=r;function i(a){return a<0?(-a<<1)+1:(a<<1)+0}function s(a){var l=(a&1)===1,f=a>>1;return l?-f:f}return So.encode=function(l){var f="",u,h=i(l);do u=h&n,h>>>=t,h>0&&(u|=o),f+=e.encode(u);while(h>0);return f},So.decode=function(l,f,u){var h=l.length,d=0,c=0,p,m;do{if(f>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(m=e.decode(l.charCodeAt(f++)),m===-1)throw new Error("Invalid base64 digit: "+l.charAt(f-1));p=!!(m&o),m&=n,d=d+(m<<c),c+=t}while(p);u.value=s(d),u.rest=f},So}var Es={},lf;function PE(){if(lf)return Es;lf=1;function e(n,o,i){var s=n[o];n[o]=n[i],n[i]=s}function t(n,o){return Math.round(n+Math.random()*(o-n))}function r(n,o,i,s){if(i<s){var a=t(i,s),l=i-1;e(n,a,s);for(var f=n[s],u=i;u<s;u++)o(n[u],f)<=0&&(l+=1,e(n,l,u));e(n,l+1,u);var h=l+1;r(n,o,i,h-1),r(n,o,h+1,s)}}return Es.quickSort=function(n,o){r(n,o,0,n.length-1)},Es}var ff;function IE(){if(ff)return Si;ff=1;var e=Mh(),t=AE(),r=CE().ArraySet,n=NE(),o=PE().quickSort;function i(f){var u=f;return typeof f=="string"&&(u=JSON.parse(f.replace(/^\)\]\}'/,""))),u.sections!=null?new l(u):new s(u)}i.fromSourceMap=function(f){return s.fromSourceMap(f)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(u,h){var d=u.charAt(h);return d===";"||d===","},i.prototype._parseMappings=function(u,h){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(u,h,d){var c=h||null,p=d||i.GENERATED_ORDER,m;switch(p){case i.GENERATED_ORDER:m=this._generatedMappings;break;case i.ORIGINAL_ORDER:m=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var E=this.sourceRoot;m.map(function(S){var _=S.source===null?null:this._sources.at(S.source);return _!=null&&E!=null&&(_=e.join(E,_)),{source:_,generatedLine:S.generatedLine,generatedColumn:S.generatedColumn,originalLine:S.originalLine,originalColumn:S.originalColumn,name:S.name===null?null:this._names.at(S.name)}},this).forEach(u,c)},i.prototype.allGeneratedPositionsFor=function(u){var h=e.getArg(u,"line"),d={source:e.getArg(u,"source"),originalLine:h,originalColumn:e.getArg(u,"column",0)};if(this.sourceRoot!=null&&(d.source=e.relative(this.sourceRoot,d.source)),!this._sources.has(d.source))return[];d.source=this._sources.indexOf(d.source);var c=[],p=this._findMapping(d,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 E=m.originalLine;m&&m.originalLine===E;)c.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++p];else for(var S=m.originalColumn;m&&m.originalLine===h&&m.originalColumn==S;)c.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++p]}return c},Si.SourceMapConsumer=i;function s(f){var u=f;typeof f=="string"&&(u=JSON.parse(f.replace(/^\)\]\}'/,"")));var h=e.getArg(u,"version"),d=e.getArg(u,"sources"),c=e.getArg(u,"names",[]),p=e.getArg(u,"sourceRoot",null),m=e.getArg(u,"sourcesContent",null),E=e.getArg(u,"mappings"),S=e.getArg(u,"file",null);if(h!=this._version)throw new Error("Unsupported version: "+h);d=d.map(String).map(e.normalize).map(function(_){return p&&e.isAbsolute(p)&&e.isAbsolute(_)?e.relative(p,_):_}),this._names=r.fromArray(c.map(String),!0),this._sources=r.fromArray(d,!0),this.sourceRoot=p,this.sourcesContent=m,this._mappings=E,this.file=S}s.prototype=Object.create(i.prototype),s.prototype.consumer=i,s.fromSourceMap=function(u){var h=Object.create(s.prototype),d=h._names=r.fromArray(u._names.toArray(),!0),c=h._sources=r.fromArray(u._sources.toArray(),!0);h.sourceRoot=u._sourceRoot,h.sourcesContent=u._generateSourcesContent(h._sources.toArray(),h.sourceRoot),h.file=u._file;for(var p=u._mappings.toArray().slice(),m=h.__generatedMappings=[],E=h.__originalMappings=[],S=0,_=p.length;S<_;S++){var b=p[S],A=new a;A.generatedLine=b.generatedLine,A.generatedColumn=b.generatedColumn,b.source&&(A.source=c.indexOf(b.source),A.originalLine=b.originalLine,A.originalColumn=b.originalColumn,b.name&&(A.name=d.indexOf(b.name)),E.push(A)),m.push(A)}return o(h.__originalMappings,e.compareByOriginalPositions),h},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._sources.toArray().map(function(f){return this.sourceRoot!=null?e.join(this.sourceRoot,f):f},this)}});function a(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s.prototype._parseMappings=function(u,h){for(var d=1,c=0,p=0,m=0,E=0,S=0,_=u.length,b=0,A={},w={},N=[],F=[],B,G,z,W,H;b<_;)if(u.charAt(b)===";")d++,b++,c=0;else if(u.charAt(b)===",")b++;else{for(B=new a,B.generatedLine=d,W=b;W<_&&!this._charIsMappingSeparator(u,W);W++);if(G=u.slice(b,W),z=A[G],z)b+=G.length;else{for(z=[];b<W;)n.decode(u,b,w),H=w.value,b=w.rest,z.push(H);if(z.length===2)throw new Error("Found a source, but no line and column");if(z.length===3)throw new Error("Found a source and line, but no column");A[G]=z}B.generatedColumn=c+z[0],c=B.generatedColumn,z.length>1&&(B.source=E+z[1],E+=z[1],B.originalLine=p+z[2],p=B.originalLine,B.originalLine+=1,B.originalColumn=m+z[3],m=B.originalColumn,z.length>4&&(B.name=S+z[4],S+=z[4])),F.push(B),typeof B.originalLine=="number"&&N.push(B)}o(F,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=F,o(N,e.compareByOriginalPositions),this.__originalMappings=N},s.prototype._findMapping=function(u,h,d,c,p,m){if(u[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+u[d]);if(u[c]<0)throw new TypeError("Column must be greater than or equal to 0, got "+u[c]);return t.search(u,h,p,m)},s.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var h=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var d=this._generatedMappings[u+1];if(h.generatedLine===d.generatedLine){h.lastGeneratedColumn=d.generatedColumn-1;continue}}h.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(u){var h={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=this._findMapping(h,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(d>=0){var c=this._generatedMappings[d];if(c.generatedLine===h.generatedLine){var p=e.getArg(c,"source",null);p!==null&&(p=this._sources.at(p),this.sourceRoot!=null&&(p=e.join(this.sourceRoot,p)));var m=e.getArg(c,"name",null);return m!==null&&(m=this._names.at(m)),{source:p,line:e.getArg(c,"originalLine",null),column:e.getArg(c,"originalColumn",null),name:m}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(u){return u==null}):!1},s.prototype.sourceContentFor=function(u,h){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 d;if(this.sourceRoot!=null&&(d=e.urlParse(this.sourceRoot))){var c=u.replace(/^file:\/\//,"");if(d.scheme=="file"&&this._sources.has(c))return this.sourcesContent[this._sources.indexOf(c)];if((!d.path||d.path=="/")&&this._sources.has("/"+u))return this.sourcesContent[this._sources.indexOf("/"+u)]}if(h)return null;throw new Error('"'+u+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(u){var h=e.getArg(u,"source");if(this.sourceRoot!=null&&(h=e.relative(this.sourceRoot,h)),!this._sources.has(h))return{line:null,column:null,lastColumn:null};h=this._sources.indexOf(h);var d={source:h,originalLine:e.getArg(u,"line"),originalColumn:e.getArg(u,"column")},c=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(c>=0){var p=this._originalMappings[c];if(p.source===d.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Si.BasicSourceMapConsumer=s;function l(f){var u=f;typeof f=="string"&&(u=JSON.parse(f.replace(/^\)\]\}'/,"")));var h=e.getArg(u,"version"),d=e.getArg(u,"sections");if(h!=this._version)throw new Error("Unsupported version: "+h);this._sources=new r,this._names=new r;var c={line:-1,column:0};this._sections=d.map(function(p){if(p.url)throw new Error("Support for url field in sections not implemented.");var m=e.getArg(p,"offset"),E=e.getArg(m,"line"),S=e.getArg(m,"column");if(E<c.line||E===c.line&&S<c.column)throw new Error("Section offsets must be ordered and non-overlapping.");return c=m,{generatedOffset:{generatedLine:E+1,generatedColumn:S+1},consumer:new i(e.getArg(p,"map"))}})}return l.prototype=Object.create(i.prototype),l.prototype.constructor=i,l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){for(var f=[],u=0;u<this._sections.length;u++)for(var h=0;h<this._sections[u].consumer.sources.length;h++)f.push(this._sections[u].consumer.sources[h]);return f}}),l.prototype.originalPositionFor=function(u){var h={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=t.search(h,this._sections,function(p,m){var E=p.generatedLine-m.generatedOffset.generatedLine;return E||p.generatedColumn-m.generatedOffset.generatedColumn}),c=this._sections[d];return c?c.consumer.originalPositionFor({line:h.generatedLine-(c.generatedOffset.generatedLine-1),column:h.generatedColumn-(c.generatedOffset.generatedLine===h.generatedLine?c.generatedOffset.generatedColumn-1:0),bias:u.bias}):{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(u){return u.consumer.hasContentsOfAllSources()})},l.prototype.sourceContentFor=function(u,h){for(var d=0;d<this._sections.length;d++){var c=this._sections[d],p=c.consumer.sourceContentFor(u,!0);if(p)return p}if(h)return null;throw new Error('"'+u+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(u){for(var h=0;h<this._sections.length;h++){var d=this._sections[h];if(d.consumer.sources.indexOf(e.getArg(u,"source"))!==-1){var c=d.consumer.generatedPositionFor(u);if(c){var p={line:c.line+(d.generatedOffset.generatedLine-1),column:c.column+(d.generatedOffset.generatedLine===c.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},l.prototype._parseMappings=function(u,h){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var c=this._sections[d],p=c.consumer._generatedMappings,m=0;m<p.length;m++){var E=p[m],S=c.consumer._sources.at(E.source);c.consumer.sourceRoot!==null&&(S=e.join(c.consumer.sourceRoot,S)),this._sources.add(S),S=this._sources.indexOf(S);var _=c.consumer._names.at(E.name);this._names.add(_),_=this._names.indexOf(_);var b={source:S,generatedLine:E.generatedLine+(c.generatedOffset.generatedLine-1),generatedColumn:E.generatedColumn+(c.generatedOffset.generatedLine===E.generatedLine?c.generatedOffset.generatedColumn-1:0),originalLine:E.originalLine,originalColumn:E.originalColumn,name:_};this.__generatedMappings.push(b),typeof b.originalLine=="number"&&this.__originalMappings.push(b)}o(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),o(this.__originalMappings,e.compareByOriginalPositions)},Si.IndexedSourceMapConsumer=l,Si}var df;function LE(){return df||(df=1,function(e,t){(function(r,n){e.exports=n(IE(),zu())})(ue,function(r,n){function o(d){return new Promise(function(c,p){var m=new XMLHttpRequest;m.open("get",d),m.onerror=p,m.onreadystatechange=function(){m.readyState===4&&(m.status>=200&&m.status<300||d.substr(0,7)==="file://"&&m.responseText?c(m.responseText):p(new Error("HTTP status: "+m.status+" retrieving "+d)))},m.send()})}function i(d){if(typeof window<"u"&&window.atob)return window.atob(d);throw new Error("You must supply a polyfill for window.atob in this environment")}function s(d){if(typeof JSON<"u"&&JSON.parse)return JSON.parse(d);throw new Error("You must supply a polyfill for JSON.parse in this environment")}function a(d,c){for(var p=[/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/,/function\s+([^('"`]*?)\s*\(([^)]*)\)/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/,/\b(?!(?:if|for|switch|while|with|catch)\b)(?:(?:static)\s+)?(\S+)\s*\(.*?\)\s*\{/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*\(.*?\)\s*=>/],m=d.split(`
|
|
43
|
-
`),E="",S=Math.min(c,20),_=0;_<S;++_){var b=m[c-_-1],A=b.indexOf("//");if(A>=0&&(b=b.substr(0,A)),b){E=b+E;for(var w=p.length,N=0;N<w;N++){var F=p[N].exec(E);if(F&&F[1])return F[1]}}}}function l(){if(typeof Object.defineProperty!="function"||typeof Object.create!="function")throw new Error("Unable to consume source maps in older browsers")}function f(d){if(typeof d!="object")throw new TypeError("Given StackFrame is not an object");if(typeof d.fileName!="string")throw new TypeError("Given file name is not a String");if(typeof d.lineNumber!="number"||d.lineNumber%1!==0||d.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if(typeof d.columnNumber!="number"||d.columnNumber%1!==0||d.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}function u(d){for(var c=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/mg,p,m;m=c.exec(d);)p=m[1];if(p)return p;throw new Error("sourceMappingURL not found")}function h(d,c,p){return new Promise(function(m,E){var S=c.originalPositionFor({line:d.lineNumber,column:d.columnNumber});if(S.source){var _=c.sourceContentFor(S.source);_&&(p[S.source]=_),m(new n({functionName:S.name||d.functionName,args:d.args,fileName:S.source,lineNumber:S.line,columnNumber:S.column}))}else E(new Error("Could not get original source for given stackframe and source map"))})}return function d(c){if(!(this instanceof d))return new d(c);c=c||{},this.sourceCache=c.sourceCache||{},this.sourceMapConsumerCache=c.sourceMapConsumerCache||{},this.ajax=c.ajax||o,this._atob=c.atob||i,this._get=function(m){return new Promise((function(E,S){var _=m.substr(0,5)==="data:";if(this.sourceCache[m])E(this.sourceCache[m]);else if(c.offline&&!_)S(new Error("Cannot make network requests in offline mode"));else if(_){var b=/^data:application\/json;([\w=:"-]+;)*base64,/,A=m.match(b);if(A){var w=A[0].length,N=m.substr(w),F=this._atob(N);this.sourceCache[m]=F,E(F)}else S(new Error("The encoding of the inline sourcemap is not supported"))}else{var B=this.ajax(m,{method:"get"});this.sourceCache[m]=B,B.then(E,S)}}).bind(this))},this._getSourceMapConsumer=function(m,E){return new Promise((function(S){if(this.sourceMapConsumerCache[m])S(this.sourceMapConsumerCache[m]);else{var _=new Promise((function(b,A){return this._get(m).then(function(w){typeof w=="string"&&(w=s(w.replace(/^\)\]\}'/,""))),typeof w.sourceRoot>"u"&&(w.sourceRoot=E),b(new r.SourceMapConsumer(w))}).catch(A)}).bind(this));this.sourceMapConsumerCache[m]=_,S(_)}}).bind(this))},this.pinpoint=function(m){return new Promise((function(E,S){this.getMappedLocation(m).then((function(_){function b(){E(_)}this.findFunctionName(_).then(E,b).catch(b)}).bind(this),S)}).bind(this))},this.findFunctionName=function(m){return new Promise((function(E,S){f(m),this._get(m.fileName).then(function(b){var A=m.lineNumber,w=m.columnNumber,N=a(b,A);E(N?new n({functionName:N,args:m.args,fileName:m.fileName,lineNumber:A,columnNumber:w}):m)},S).catch(S)}).bind(this))},this.getMappedLocation=function(m){return new Promise((function(E,S){l(),f(m);var _=this.sourceCache,b=m.fileName;this._get(b).then((function(A){var w=u(A),N=w.substr(0,5)==="data:",F=b.substring(0,b.lastIndexOf("/")+1);return w[0]!=="/"&&!N&&!/^https?:\/\/|^\/\//i.test(w)&&(w=F+w),this._getSourceMapConsumer(w,F).then(function(B){return h(m,B,_).then(E).catch(function(){E(m)})})}).bind(this),S).catch(S)}).bind(this))}}})}(gs)),gs.exports}var hf;function ME(){return hf||(hf=1,function(e,t){(function(r,n){e.exports=n(xE(),OE(),LE())})(ue,function(n,o,i){var s={filter:function(h){return(h.functionName||"").indexOf("StackTrace$$")===-1&&(h.functionName||"").indexOf("ErrorStackParser$$")===-1&&(h.functionName||"").indexOf("StackTraceGPS$$")===-1&&(h.functionName||"").indexOf("StackGenerator$$")===-1},sourceCache:{}},a=function(){try{throw new Error}catch(d){return d}};function l(h,d){var c={};return[h,d].forEach(function(p){for(var m in p)Object.prototype.hasOwnProperty.call(p,m)&&(c[m]=p[m]);return c}),c}function f(h){return h.stack||h["opera#sourceloc"]}function u(h,d){return typeof d=="function"?h.filter(d):h}return{get:function(d){var c=a();return f(c)?this.fromError(c,d):this.generateArtificially(d)},getSync:function(d){d=l(s,d);var c=a(),p=f(c)?n.parse(c):o.backtrace(d);return u(p,d.filter)},fromError:function(d,c){c=l(s,c);var p=new i(c);return new Promise((function(m){var E=u(n.parse(d),c.filter);m(Promise.all(E.map(function(S){return new Promise(function(_){function b(){_(S)}p.pinpoint(S).then(_,b).catch(b)})})))}).bind(this))},generateArtificially:function(d){d=l(s,d);var c=o.backtrace(d);return typeof d.filter=="function"&&(c=c.filter(d.filter)),Promise.resolve(c)},instrument:function(d,c,p,m){if(typeof d!="function")throw new Error("Cannot instrument non-function object");if(typeof d.__stacktraceOriginalFn=="function")return d;var E=(function(){try{return this.get().then(c,p).catch(p),d.apply(m||this,arguments)}catch(_){throw f(_)&&this.fromError(_).then(c,p).catch(p),_}}).bind(this);return E.__stacktraceOriginalFn=d,E},deinstrument:function(d){if(typeof d!="function")throw new Error("Cannot de-instrument non-function object");return typeof d.__stacktraceOriginalFn=="function"?d.__stacktraceOriginalFn:d},report:function(d,c,p,m){return new Promise(function(E,S){var _=new XMLHttpRequest;if(_.onerror=S,_.onreadystatechange=function(){_.readyState===4&&(_.status>=200&&_.status<400?E(_.responseText):S(new Error("POST to "+c+" failed with status: "+_.status)))},_.open("post",c),_.setRequestHeader("Content-Type","application/json"),m&&typeof m.headers=="object"){var b=m.headers;for(var A in b)Object.prototype.hasOwnProperty.call(b,A)&&_.setRequestHeader(A,b[A])}var w={stack:d};p!=null&&(w.message=p),_.send(JSON.stringify(w))})}}})}(ds)),ds.exports}var bs,pf;function kE(){if(pf)return bs;pf=1;var e=ME(),t="https://clouderrorreporting.googleapis.com/v1beta1/projects/",r=function(){};r.prototype.start=function(s){if(!s.key&&!s.targetUrl&&!s.customReportingFunction)throw new Error("Cannot initialize: No API key, target url or custom reporting function provided.");if(!s.projectId&&!s.targetUrl&&!s.customReportingFunction)throw new Error("Cannot initialize: No project ID, target url or custom reporting function provided.");this.customReportingFunction=s.customReportingFunction,this.apiKey=s.key,this.projectId=s.projectId,this.targetUrl=s.targetUrl,this.context=s.context||{},this.serviceContext={service:s.service||"web"},s.version&&(this.serviceContext.version=s.version),this.reportUncaughtExceptions=s.reportUncaughtExceptions!==!1,this.reportUnhandledPromiseRejections=s.reportUnhandledPromiseRejections!==!1,this.disabled=!!s.disabled,n(this)};function n(s){var a=function(){};if(s.reportUncaughtExceptions){var l=window.onerror||a;window.onerror=function(u,h,d,c,p){return p&&s.report(p).catch(a),l(u,h,d,c,p),!0}}if(s.reportUnhandledPromiseRejections){var f=window.onunhandledrejection||a;window.onunhandledrejection=function(u){return u&&s.report(u.reason).catch(a),f(u.reason),!0}}}r.prototype.report=function(s,a){if(this.disabled)return Promise.resolve(null);if(!s)return Promise.reject(new Error("no error to report"));a=a||{};var l={};l.serviceContext=this.serviceContext,l.context=this.context,l.context.httpRequest={userAgent:window.navigator.userAgent,url:window.location.href};var f=0;if(typeof s=="string"||s instanceof String){try{throw new Error(s)}catch(d){s=d}f=a.skipLocalFrames||1}var u=this.targetUrl||t+this.projectId+"/events:report?key="+this.apiKey,h=this.customReportingFunction;return o(s,f).then(function(d){return l.message=d,h?h(l):i(u,l)})};function o(s,a){return e.fromError(s).then(function(l){for(var f=[s.toString()],u=a;u<l.length;u++)f.push([" at ",l[u].getFunctionName()||"<anonymous>"," (",l[u].getFileName(),":",l[u].getLineNumber(),":",l[u].getColumnNumber(),")"].join(""));return f.join(`
|
|
44
|
-
`)},function(l){return["Error extracting stack trace: ",l,`
|
|
45
|
-
`,s.toString(),`
|
|
46
|
-
`," (",s.file,":",s.line,":",s.column,")"].join("")})}function i(s,a){var l=new XMLHttpRequest;return l.open("POST",s,!0),l.setRequestHeader("Content-Type","application/json; charset=UTF-8"),new Promise(function(f,u){l.onreadystatechange=function(){if(l.readyState===4){var h=l.status;if(h>=200&&h<300)f({message:a.message});else if(h===429)u({message:"quota or rate limiting error on stackdriver report",name:"Http429FakeError"});else{var d=h?h+" http response":"network error";u(new Error(d+" on stackdriver report"))}}},l.send(JSON.stringify(a))})}return r.prototype.setUser=function(s){this.context.user=s},bs=r,bs}var mf;function BE(){return mf||(mf=1,function(e,t){(function(r,n){e.exports=n(kE())})(ue,function(r){return function(){var n={542:function(a){a.exports=r}},o={};function i(a){var l=o[a];if(l!==void 0)return l.exports;var f=o[a]={exports:{}};return n[a](f,f.exports,i),f.exports}i.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(l,{a:l}),l},i.d=function(a,l){for(var f in l)i.o(l,f)&&!i.o(a,f)&&Object.defineProperty(a,f,{enumerable:!0,get:l[f]})},i.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return function(){i.r(s),i.d(s,{reportError:function(){return d},setContext:function(){return h}});var a=i(542),l=i.n(a);const{GCP:{PROJECT_ID:f}}={GCP:{PROJECT_ID:"hazel-tea-194609"}};let u={key:null,environment:null,projectId:f};const h=({apiKey:c,environment:p,projectId:m,serviceName:E})=>{if(!c)throw new Error("Cannot set context: REACT_APP_GCP_ERRORS_API_KEY not defined");if(u.key=c,!p)throw new Error("Cannot set context: Environment not defined");u.environment=p,u.projectId=m||f,E&&(u.service=`${E}:${u.environment}`)},d=async(c,p)=>{try{const m=new(l());m.start(u),typeof p=="string"&&m.setUser(p),await m.report(c)}catch(m){console.warn(`Cannot report error: ${m.message}`)}}}(),s}()})}(fs)),fs.exports}var ws={exports:{}},xo={},gf;function FE(){if(gf)return xo;gf=1,Object.defineProperty(xo,"__esModule",{value:!0});var e=function(r){console.warn("[react-gtm]",r)};return xo.default=e,xo}var Ss,yf;function DE(){if(yf)return Ss;yf=1;var e=FE(),t=r(e);function r(o){return o&&o.__esModule?o:{default:o}}var n={tags:function(i){var s=i.id,a=i.events,l=i.dataLayer,f=i.dataLayerName,u=i.preview,h=i.auth,d=">m_auth="+h,c=">m_preview="+u;s||(0,t.default)("GTM Id is required");var p=`
|
|
47
|
-
<iframe src="https://www.googletagmanager.com/ns.html?id=`+s+d+c+`>m_cookies_win=x"
|
|
48
|
-
height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>`,m=`
|
|
49
|
-
(function(w,d,s,l,i){w[l]=w[l]||[];
|
|
50
|
-
w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', `+JSON.stringify(a).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+'`+d+c+`>m_cookies_win=x';
|
|
53
|
-
f.parentNode.insertBefore(j,f);
|
|
54
|
-
})(window,document,'script','`+f+"','"+s+"');",E=this.dataLayer(l,f);return{iframe:p,script:m,dataLayerVar:E}},dataLayer:function(i,s){return`
|
|
55
|
-
window.`+s+" = window."+s+` || [];
|
|
56
|
-
window.`+s+".push("+JSON.stringify(i)+")"}};return Ss=n,Ss}var Ts,vf;function UE(){if(vf)return Ts;vf=1;var e=DE(),t=r(e);function r(o){return o&&o.__esModule?o:{default:o}}var n={dataScript:function(i){var s=document.createElement("script");return s.innerHTML=i,s},gtm:function(i){var s=t.default.tags(i),a=function(){var h=document.createElement("noscript");return h.innerHTML=s.iframe,h},l=function(){var h=document.createElement("script");return h.innerHTML=s.script,h},f=this.dataScript(s.dataLayerVar);return{noScript:a,script:l,dataScript:f}},initialize:function(i){var s=i.gtmId,a=i.events,l=a===void 0?{}:a,f=i.dataLayer,u=i.dataLayerName,h=u===void 0?"dataLayer":u,d=i.auth,c=d===void 0?"":d,p=i.preview,m=p===void 0?"":p,E=this.gtm({id:s,events:l,dataLayer:f||void 0,dataLayerName:h,auth:c,preview:m});f&&document.head.appendChild(E.dataScript),document.head.insertBefore(E.script(),document.head.childNodes[0]),document.body.insertBefore(E.noScript(),document.body.childNodes[0])},dataLayer:function(i){var s=i.dataLayer,a=i.dataLayerName,l=a===void 0?"dataLayer":a;if(window[l])return window[l].push(s);var f=t.default.dataLayer(s,l),u=this.dataScript(f);document.head.insertBefore(u,document.head.childNodes[0])}};return Ts=n,Ts}var xs,_f;function $E(){if(_f)return xs;_f=1;var e=UE(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return xs=t.default,xs}var Ef;function jE(){return Ef||(Ef=1,function(e,t){(function(r,n){e.exports=n($E())})(ue,function(r){return function(){var n={273:function(a){a.exports=r}},o={};function i(a){var l=o[a];if(l!==void 0)return l.exports;var f=o[a]={exports:{}};return n[a](f,f.exports,i),f.exports}i.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(l,{a:l}),l},i.d=function(a,l){for(var f in l)i.o(l,f)&&!i.o(a,f)&&Object.defineProperty(a,f,{enumerable:!0,get:l[f]})},i.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return function(){i.r(s),i.d(s,{setContext:function(){return u},setupGTM:function(){return d}});var a=i(273),l=i.n(a);let f=null;const u=({configs:c,environment:p})=>{if(!p)throw new Error("Cannot set context: Environment not defined");if(!c)throw new Error("Cannot set context: REACT_APP_GTM_ID not defined");if(!c[p])throw new Error(`Cannot set context: REACT_APP_GTM_ID not defined for environment - ${JSON.stringify({configs:c,environment:p})}`);f=c[p]},h=()=>f,d=()=>{const c=h();l().initialize({gtmId:c.id})}}(),s}()})}(ws)),ws.exports}var kh=202,Bh=502,Fh=400,Dh=409,Uh=100,$h=201,jh=417,HE=424,Hh=403,qh=504,Gh=410,Wh=505,Vh=418,zh=419,Yh=507,Kh=500,Qh=411,Xh=423,Jh=420,Zh=405,ep=301,tp=302,rp=207,np=300,ip=511,op=204,ap=203,sp=406,up=404,cp=501,lp=304,fp=200,dp=206,hp=402,pp=308,mp=412,gp=428,yp=102,vp=407,_p=431,Ep=408,bp=413,wp=414,Sp=416,Tp=205,xp=303,Op=503,Ap=101,Cp=307,Rp=429,Np=401,Pp=422,Ip=415,Lp=305;const qE={ACCEPTED:kh,BAD_GATEWAY:Bh,BAD_REQUEST:Fh,CONFLICT:Dh,CONTINUE:Uh,CREATED:$h,EXPECTATION_FAILED:jh,FORBIDDEN:Hh,GATEWAY_TIMEOUT:qh,GONE:Gh,HTTP_VERSION_NOT_SUPPORTED:Wh,IM_A_TEAPOT:Vh,INSUFFICIENT_SPACE_ON_RESOURCE:zh,INSUFFICIENT_STORAGE:Yh,INTERNAL_SERVER_ERROR:Kh,LENGTH_REQUIRED:Qh,LOCKED:Xh,METHOD_FAILURE:Jh,METHOD_NOT_ALLOWED:Zh,MOVED_PERMANENTLY:ep,MOVED_TEMPORARILY:tp,MULTI_STATUS:rp,MULTIPLE_CHOICES:np,NETWORK_AUTHENTICATION_REQUIRED:ip,NO_CONTENT:op,NON_AUTHORITATIVE_INFORMATION:ap,NOT_ACCEPTABLE:sp,NOT_FOUND:up,NOT_IMPLEMENTED:cp,NOT_MODIFIED:lp,OK:fp,PARTIAL_CONTENT:dp,PAYMENT_REQUIRED:hp,PERMANENT_REDIRECT:pp,PRECONDITION_FAILED:mp,PRECONDITION_REQUIRED:gp,PROCESSING:yp,PROXY_AUTHENTICATION_REQUIRED:vp,REQUEST_HEADER_FIELDS_TOO_LARGE:_p,REQUEST_TIMEOUT:Ep,REQUEST_TOO_LONG:bp,REQUEST_URI_TOO_LONG:wp,REQUESTED_RANGE_NOT_SATISFIABLE:Sp,RESET_CONTENT:Tp,SEE_OTHER:xp,SERVICE_UNAVAILABLE:Op,SWITCHING_PROTOCOLS:Ap,TEMPORARY_REDIRECT:Cp,TOO_MANY_REQUESTS:Rp,UNAUTHORIZED:Np,UNPROCESSABLE_ENTITY:Pp,UNSUPPORTED_MEDIA_TYPE:Ip,USE_PROXY:Lp};var GE={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy",421:"Misdirected Request"},WE={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 Mp(e){var t=GE[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}function kp(e){var t=WE[e];if(!t)throw new Error("Reason phrase does not exist: "+e);return t}var Bp=Mp,mu;(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"})(mu||(mu={}));var gu;(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"})(gu||(gu={}));var Wo=globalThis&&globalThis.__assign||function(){return Wo=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},Wo.apply(this,arguments)};const VE=Wo(Wo({},qE),{getStatusCode:kp,getStatusText:Bp}),zE=Object.freeze(Object.defineProperty({__proto__:null,ACCEPTED:kh,BAD_GATEWAY:Bh,BAD_REQUEST:Fh,CONFLICT:Dh,CONTINUE:Uh,CREATED:$h,EXPECTATION_FAILED:jh,FAILED_DEPENDENCY:HE,FORBIDDEN:Hh,GATEWAY_TIMEOUT:qh,GONE:Gh,HTTP_VERSION_NOT_SUPPORTED:Wh,IM_A_TEAPOT:Vh,INSUFFICIENT_SPACE_ON_RESOURCE:zh,INSUFFICIENT_STORAGE:Yh,INTERNAL_SERVER_ERROR:Kh,LENGTH_REQUIRED:Qh,LOCKED:Xh,METHOD_FAILURE:Jh,METHOD_NOT_ALLOWED:Zh,MOVED_PERMANENTLY:ep,MOVED_TEMPORARILY:tp,MULTIPLE_CHOICES:np,MULTI_STATUS:rp,NETWORK_AUTHENTICATION_REQUIRED:ip,NON_AUTHORITATIVE_INFORMATION:ap,NOT_ACCEPTABLE:sp,NOT_FOUND:up,NOT_IMPLEMENTED:cp,NOT_MODIFIED:lp,NO_CONTENT:op,OK:fp,PARTIAL_CONTENT:dp,PAYMENT_REQUIRED:hp,PERMANENT_REDIRECT:pp,PRECONDITION_FAILED:mp,PRECONDITION_REQUIRED:gp,PROCESSING:yp,PROXY_AUTHENTICATION_REQUIRED:vp,REQUESTED_RANGE_NOT_SATISFIABLE:Sp,REQUEST_HEADER_FIELDS_TOO_LARGE:_p,REQUEST_TIMEOUT:Ep,REQUEST_TOO_LONG:bp,REQUEST_URI_TOO_LONG:wp,RESET_CONTENT:Tp,get ReasonPhrases(){return gu},SEE_OTHER:xp,SERVICE_UNAVAILABLE:Op,SWITCHING_PROTOCOLS:Ap,get StatusCodes(){return mu},TEMPORARY_REDIRECT:Cp,TOO_MANY_REQUESTS:Rp,UNAUTHORIZED:Np,UNPROCESSABLE_ENTITY:Pp,UNSUPPORTED_MEDIA_TYPE:Ip,USE_PROXY:Lp,default:VE,getReasonPhrase:Mp,getStatusCode:kp,getStatusText:Bp},Symbol.toStringTag,{value:"Module"})),YE=Xi(zE);var Oo={exports:{}},Ti={},Os={},xi={},Oi={},$r={},Ai={},As={},jr={},Jt={},bf;function Yu(){if(bf)return Jt;bf=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.ERROR_PACKET=Jt.PACKET_TYPES_REVERSE=Jt.PACKET_TYPES=void 0;const e=Object.create(null);Jt.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);Jt.PACKET_TYPES_REVERSE=t,Object.keys(e).forEach(n=>{t[e[n]]=n});const r={type:"error",data:"parser error"};return Jt.ERROR_PACKET=r,Jt}var wf;function KE(){if(wf)return jr;wf=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.encodePacket=jr.encodePacketToBinary=void 0;const e=Yu(),t=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",r=typeof ArrayBuffer=="function",n=f=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(f):f&&f.buffer instanceof ArrayBuffer,o=({type:f,data:u},h,d)=>t&&u instanceof Blob?h?d(u):i(u,d):r&&(u instanceof ArrayBuffer||n(u))?h?d(u):i(new Blob([u]),d):d(e.PACKET_TYPES[f]+(u||""));jr.encodePacket=o;const i=(f,u)=>{const h=new FileReader;return h.onload=function(){const d=h.result.split(",")[1];u("b"+(d||""))},h.readAsDataURL(f)};function s(f){return f instanceof Uint8Array?f:f instanceof ArrayBuffer?new Uint8Array(f):new Uint8Array(f.buffer,f.byteOffset,f.byteLength)}let a;function l(f,u){if(t&&f.data instanceof Blob)return f.data.arrayBuffer().then(s).then(u);if(r&&(f.data instanceof ArrayBuffer||n(f.data)))return u(s(f.data));o(f,!1,h=>{a||(a=new TextEncoder),u(a.encode(h))})}return jr.encodePacketToBinary=l,jr}var Ci={},Hr={},Sf;function QE(){if(Sf)return Hr;Sf=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.decode=Hr.encode=void 0;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let o=0;o<e.length;o++)t[e.charCodeAt(o)]=o;const r=o=>{let i=new Uint8Array(o),s,a=i.length,l="";for(s=0;s<a;s+=3)l+=e[i[s]>>2],l+=e[(i[s]&3)<<4|i[s+1]>>4],l+=e[(i[s+1]&15)<<2|i[s+2]>>6],l+=e[i[s+2]&63];return a%3===2?l=l.substring(0,l.length-1)+"=":a%3===1&&(l=l.substring(0,l.length-2)+"=="),l};Hr.encode=r;const n=o=>{let i=o.length*.75,s=o.length,a,l=0,f,u,h,d;o[o.length-1]==="="&&(i--,o[o.length-2]==="="&&i--);const c=new ArrayBuffer(i),p=new Uint8Array(c);for(a=0;a<s;a+=4)f=t[o.charCodeAt(a)],u=t[o.charCodeAt(a+1)],h=t[o.charCodeAt(a+2)],d=t[o.charCodeAt(a+3)],p[l++]=f<<2|u>>4,p[l++]=(u&15)<<4|h>>2,p[l++]=(h&3)<<6|d&63;return c};return Hr.decode=n,Hr}var Tf;function XE(){if(Tf)return Ci;Tf=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.decodePacket=void 0;const e=Yu(),t=QE(),r=typeof ArrayBuffer=="function",n=(s,a)=>{if(typeof s!="string")return{type:"message",data:i(s,a)};const l=s.charAt(0);return l==="b"?{type:"message",data:o(s.substring(1),a)}:e.PACKET_TYPES_REVERSE[l]?s.length>1?{type:e.PACKET_TYPES_REVERSE[l],data:s.substring(1)}:{type:e.PACKET_TYPES_REVERSE[l]}:e.ERROR_PACKET};Ci.decodePacket=n;const o=(s,a)=>{if(r){const l=(0,t.decode)(s);return i(l,a)}else return{base64:!0,data:s}},i=(s,a)=>{switch(a){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}};return Ci}var xf;function Zi(){return xf||(xf=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=KE();Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return t.encodePacket}});const r=XE();Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return r.decodePacket}});const n=Yu(),o=String.fromCharCode(30),i=(d,c)=>{const p=d.length,m=new Array(p);let E=0;d.forEach((S,_)=>{(0,t.encodePacket)(S,!1,b=>{m[_]=b,++E===p&&c(m.join(o))})})};e.encodePayload=i;const s=(d,c)=>{const p=d.split(o),m=[];for(let E=0;E<p.length;E++){const S=(0,r.decodePacket)(p[E],c);if(m.push(S),S.type==="error")break}return m};e.decodePayload=s;function a(){return new TransformStream({transform(d,c){(0,t.encodePacketToBinary)(d,p=>{const m=p.length;let E;if(m<126)E=new Uint8Array(1),new DataView(E.buffer).setUint8(0,m);else if(m<65536){E=new Uint8Array(3);const S=new DataView(E.buffer);S.setUint8(0,126),S.setUint16(1,m)}else{E=new Uint8Array(9);const S=new DataView(E.buffer);S.setUint8(0,127),S.setBigUint64(1,BigInt(m))}d.data&&typeof d.data!="string"&&(E[0]|=128),c.enqueue(E),c.enqueue(p)})}})}e.createPacketEncoderStream=a;let l;function f(d){return d.reduce((c,p)=>c+p.length,0)}function u(d,c){if(d[0].length===c)return d.shift();const p=new Uint8Array(c);let m=0;for(let E=0;E<c;E++)p[E]=d[0][m++],m===d[0].length&&(d.shift(),m=0);return d.length&&m<d[0].length&&(d[0]=d[0].slice(m)),p}function h(d,c){l||(l=new TextDecoder);const p=[];let m=0,E=-1,S=!1;return new TransformStream({transform(_,b){for(p.push(_);;){if(m===0){if(f(p)<1)break;const A=u(p,1);S=(A[0]&128)===128,E=A[0]&127,E<126?m=3:E===126?m=1:m=2}else if(m===1){if(f(p)<2)break;const A=u(p,2);E=new DataView(A.buffer,A.byteOffset,A.length).getUint16(0),m=3}else if(m===2){if(f(p)<8)break;const A=u(p,8),w=new DataView(A.buffer,A.byteOffset,A.length),N=w.getUint32(0);if(N>Math.pow(2,53-32)-1){b.enqueue(n.ERROR_PACKET);break}E=N*Math.pow(2,32)+w.getUint32(4),m=3}else{if(f(p)<E)break;const A=u(p,E);b.enqueue((0,r.decodePacket)(S?A:l.decode(A),c)),m=0}if(E===0||E>d){b.enqueue(n.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=h,e.protocol=4}(As)),As}function at(e){if(e)return JE(e)}function JE(e){for(var t in at.prototype)e[t]=at.prototype[t];return e}at.prototype.on=at.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};at.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};at.prototype.off=at.prototype.removeListener=at.prototype.removeAllListeners=at.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var 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};at.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};at.prototype.emitReserved=at.prototype.emit;at.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};at.prototype.hasListeners=function(e){return!!this.listeners(e).length};const ZE=Object.freeze(Object.defineProperty({__proto__:null,Emitter:at},Symbol.toStringTag,{value:"Module"})),Fn=Xi(ZE);var Zt={},Ri={},Of;function ta(){return Of||(Of=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.globalThisShim=void 0,Ri.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())()),Ri}var Af;function eo(){if(Af)return Zt;Af=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.byteLength=Zt.installTimerFunctions=Zt.pick=void 0;const e=ta();function t(l,...f){return f.reduce((u,h)=>(l.hasOwnProperty(h)&&(u[h]=l[h]),u),{})}Zt.pick=t;const r=e.globalThisShim.setTimeout,n=e.globalThisShim.clearTimeout;function o(l,f){f.useNativeTimers?(l.setTimeoutFn=r.bind(e.globalThisShim),l.clearTimeoutFn=n.bind(e.globalThisShim)):(l.setTimeoutFn=e.globalThisShim.setTimeout.bind(e.globalThisShim),l.clearTimeoutFn=e.globalThisShim.clearTimeout.bind(e.globalThisShim))}Zt.installTimerFunctions=o;const i=1.33;function s(l){return typeof l=="string"?a(l):Math.ceil((l.byteLength||l.size)*i)}Zt.byteLength=s;function a(l){let f=0,u=0;for(let h=0,d=l.length;h<d;h++)f=l.charCodeAt(h),f<128?u+=1:f<2048?u+=2:f<55296||f>=57344?u+=3:(h++,u+=4);return u}return Zt}var Ao={exports:{}},Cs,Cf;function eb(){if(Cf)return Cs;Cf=1;var e=1e3,t=e*60,r=t*60,n=r*24,o=n*7,i=n*365.25;Cs=function(u,h){h=h||{};var d=typeof u;if(d==="string"&&u.length>0)return s(u);if(d==="number"&&isFinite(u))return h.long?l(u):a(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function s(u){if(u=String(u),!(u.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(h){var d=parseFloat(h[1]),c=(h[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return d*i;case"weeks":case"week":case"w":return d*o;case"days":case"day":case"d":return d*n;case"hours":case"hour":case"hrs":case"hr":case"h":return d*r;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function a(u){var h=Math.abs(u);return h>=n?Math.round(u/n)+"d":h>=r?Math.round(u/r)+"h":h>=t?Math.round(u/t)+"m":h>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var h=Math.abs(u);return h>=n?f(u,h,n,"day"):h>=r?f(u,h,r,"hour"):h>=t?f(u,h,t,"minute"):h>=e?f(u,h,e,"second"):u+" ms"}function f(u,h,d,c){var p=h>=d*1.5;return Math.round(u/d)+" "+c+(p?"s":"")}return Cs}var Rs,Rf;function tb(){if(Rf)return Rs;Rf=1;function e(t){n.debug=n,n.default=n,n.coerce=f,n.disable=s,n.enable=i,n.enabled=a,n.humanize=eb(),n.destroy=u,Object.keys(t).forEach(h=>{n[h]=t[h]}),n.names=[],n.skips=[],n.formatters={};function r(h){let d=0;for(let c=0;c<h.length;c++)d=(d<<5)-d+h.charCodeAt(c),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=r;function n(h){let d,c=null,p,m;function E(...S){if(!E.enabled)return;const _=E,b=Number(new Date),A=b-(d||b);_.diff=A,_.prev=d,_.curr=b,d=b,S[0]=n.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let w=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(F,B)=>{if(F==="%%")return"%";w++;const G=n.formatters[B];if(typeof G=="function"){const z=S[w];F=G.call(_,z),S.splice(w,1),w--}return F}),n.formatArgs.call(_,S),(_.log||n.log).apply(_,S)}return E.namespace=h,E.useColors=n.useColors(),E.color=n.selectColor(h),E.extend=o,E.destroy=n.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:()=>c!==null?c:(p!==n.namespaces&&(p=n.namespaces,m=n.enabled(h)),m),set:S=>{c=S}}),typeof n.init=="function"&&n.init(E),E}function o(h,d){const c=n(this.namespace+(typeof d>"u"?":":d)+h);return c.log=this.log,c}function i(h){n.save(h),n.namespaces=h,n.names=[],n.skips=[];let d;const c=(typeof h=="string"?h:"").split(/[\s,]+/),p=c.length;for(d=0;d<p;d++)c[d]&&(h=c[d].replace(/\*/g,".*?"),h[0]==="-"?n.skips.push(new RegExp("^"+h.slice(1)+"$")):n.names.push(new RegExp("^"+h+"$")))}function s(){const h=[...n.names.map(l),...n.skips.map(l).map(d=>"-"+d)].join(",");return n.enable(""),h}function a(h){if(h[h.length-1]==="*")return!0;let d,c;for(d=0,c=n.skips.length;d<c;d++)if(n.skips[d].test(h))return!1;for(d=0,c=n.names.length;d<c;d++)if(n.names[d].test(h))return!0;return!1}function l(h){return h.toString().substring(2,h.toString().length-2).replace(/\.\*\?$/,"*")}function f(h){return h instanceof Error?h.stack||h.message:h}function 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 Rs=e,Rs}var Nf;function Gt(){return Nf||(Nf=1,function(e,t){t.formatArgs=n,t.save=o,t.load=i,t.useColors=r,t.storage=s(),t.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const f="color: "+this.color;l.splice(1,0,f,"color: inherit");let u=0,h=0;l[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&(u++,d==="%c"&&(h=u))}),l.splice(h,0,f)}t.log=console.debug||console.log||(()=>{});function o(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug")}catch{}}function i(){let l;try{l=t.storage.getItem("debug")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function s(){try{return localStorage}catch{}}e.exports=tb()(t);const{formatters:a}=e.exports;a.j=function(l){try{return JSON.stringify(l)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}}(Ao,Ao.exports)),Ao.exports}var qr={},Pf;function Fp(){if(Pf)return qr;Pf=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.decode=qr.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}qr.encode=e;function t(r){let n={},o=r.split("&");for(let i=0,s=o.length;i<s;i++){let a=o[i].split("=");n[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return n}return qr.decode=t,qr}var If;function ra(){if(If)return Ai;If=1;var e=ue&&ue.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.Transport=void 0;const t=Zi(),r=Fn,n=eo(),o=e(Gt()),i=Fp(),s=(0,o.default)("engine.io-client:transport");class a extends Error{constructor(u,h,d){super(u),this.description=h,this.context=d,this.type="TransportError"}}class l 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,h,d){return super.emitReserved("error",new a(u,h,d)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(u){this.readyState==="open"?this.write(u):s("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(u){const h=(0,t.decodePacket)(u,this.socket.binaryType);this.onPacket(h)}onPacket(u){super.emitReserved("packet",u)}onClose(u){this.readyState="closed",super.emitReserved("close",u)}pause(u){}createUri(u,h={}){return u+"://"+this._hostname()+this._port()+this.opts.path+this._query(h)}_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 h=(0,i.encode)(u);return h.length?"?"+h:""}}return Ai.Transport=l,Ai}var er={},Lf;function Dp(){if(Lf)return er;Lf=1,Object.defineProperty(er,"__esModule",{value:!0}),er.yeast=er.decode=er.encode=void 0;const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,r={};let n=0,o=0,i;function s(f){let u="";do u=e[f%t]+u,f=Math.floor(f/t);while(f>0);return u}er.encode=s;function a(f){let u=0;for(o=0;o<f.length;o++)u=u*t+r[f.charAt(o)];return u}er.decode=a;function l(){const f=s(+new Date);return f!==i?(n=0,i=f):f+"."+s(n++)}for(er.yeast=l;o<t;o++)r[e[o]]=o;return er}var Gr={},Ni={},Mf;function rb(){if(Mf)return Ni;Mf=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.hasCORS=void 0;let e=!1;try{e=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}return Ni.hasCORS=e,Ni}var kf;function nb(){if(kf)return Gr;kf=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.createCookieJar=Gr.XHR=void 0;const e=rb(),t=ta();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{}}Gr.XHR=r;function n(){}return Gr.createCookieJar=n,Gr}var Bf;function ib(){if(Bf)return $r;Bf=1;var e=ue&&ue.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty($r,"__esModule",{value:!0}),$r.Request=$r.Polling=void 0;const t=ra(),r=e(Gt()),n=Dp(),o=Zi(),i=nb(),s=Fn,a=eo(),l=ta(),f=(0,r.default)("engine.io-client:polling");function u(){}const h=function(){return new i.XHR({xdomain:!1}).responseType!=null}();class d extends t.Transport{constructor(E){if(super(E),this.polling=!1,typeof location<"u"){const _=location.protocol==="https:";let b=location.port;b||(b=_?"443":"80"),this.xd=typeof location<"u"&&E.hostname!==location.hostname||b!==E.port}const S=E&&E.forceBase64;this.supportsBinary=h&&!S,this.opts.withCredentials&&(this.cookieJar=(0,i.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(E){this.readyState="pausing";const S=()=>{f("paused"),this.readyState="paused",E()};if(this.polling||!this.writable){let _=0;this.polling&&(f("we are currently polling - waiting to pause"),_++,this.once("pollComplete",function(){f("pre-pause polling complete"),--_||S()})),this.writable||(f("we are currently writing - waiting to pause"),_++,this.once("drain",function(){f("pre-pause writing complete"),--_||S()}))}else S()}poll(){f("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(E){f("polling got data %s",E);const S=_=>{if(this.readyState==="opening"&&_.type==="open"&&this.onOpen(),_.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(_)};(0,o.decodePayload)(E,this.socket.binaryType).forEach(S),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():f('ignoring poll - transport state "%s"',this.readyState))}doClose(){const E=()=>{f("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(f("transport open - closing"),E()):(f("transport not open - deferring close"),this.once("open",E))}write(E){this.writable=!1,(0,o.encodePayload)(E,S=>{this.doWrite(S,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const E=this.opts.secure?"https":"http",S=this.query||{};return this.opts.timestampRequests!==!1&&(S[this.opts.timestampParam]=(0,n.yeast)()),!this.supportsBinary&&!S.sid&&(S.b64=1),this.createUri(E,S)}request(E={}){return Object.assign(E,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new c(this.uri(),E)}doWrite(E,S){const _=this.request({method:"POST",data:E});_.on("success",S),_.on("error",(b,A)=>{this.onError("xhr post error",b,A)})}doPoll(){f("xhr poll");const E=this.request();E.on("data",this.onData.bind(this)),E.on("error",(S,_)=>{this.onError("xhr poll error",S,_)}),this.pollXhr=E}}$r.Polling=d;class c extends s.Emitter{constructor(E,S){super(),(0,a.installTimerFunctions)(this,S),this.opts=S,this.method=S.method||"GET",this.uri=E,this.data=S.data!==void 0?S.data:null,this.create()}create(){var E;const S=(0,a.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");S.xdomain=!!this.opts.xd;const _=this.xhr=new i.XHR(S);try{f("xhr open %s: %s",this.method,this.uri),_.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){_.setDisableHeaderCheck&&_.setDisableHeaderCheck(!0);for(let b in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(b)&&_.setRequestHeader(b,this.opts.extraHeaders[b])}}catch{}if(this.method==="POST")try{_.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{_.setRequestHeader("Accept","*/*")}catch{}(E=this.opts.cookieJar)===null||E===void 0||E.addCookies(_),"withCredentials"in _&&(_.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(_.timeout=this.opts.requestTimeout),_.onreadystatechange=()=>{var b;_.readyState===3&&((b=this.opts.cookieJar)===null||b===void 0||b.parseCookies(_)),_.readyState===4&&(_.status===200||_.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof _.status=="number"?_.status:0)},0))},f("xhr data %s",this.data),_.send(this.data)}catch(b){this.setTimeoutFn(()=>{this.onError(b)},0);return}typeof document<"u"&&(this.index=c.requestsCount++,c.requests[this.index]=this)}onError(E){this.emitReserved("error",E,this.xhr),this.cleanup(!0)}cleanup(E){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=u,E)try{this.xhr.abort()}catch{}typeof document<"u"&&delete c.requests[this.index],this.xhr=null}}onLoad(){const E=this.xhr.responseText;E!==null&&(this.emitReserved("data",E),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if($r.Request=c,c.requestsCount=0,c.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",p);else if(typeof addEventListener=="function"){const m="onpagehide"in l.globalThisShim?"pagehide":"unload";addEventListener(m,p,!1)}}function p(){for(let m in c.requests)c.requests.hasOwnProperty(m)&&c.requests[m].abort()}return $r}var Pi={},Ct={},Ff;function na(){if(Ff)return Ct;Ff=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.defaultBinaryType=Ct.usingBrowserWebSocket=Ct.WebSocket=Ct.nextTick=void 0;const e=ta();return Ct.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,n)=>n(r,0))(),Ct.WebSocket=e.globalThisShim.WebSocket||e.globalThisShim.MozWebSocket,Ct.usingBrowserWebSocket=!0,Ct.defaultBinaryType="arraybuffer",Ct}var Df;function ob(){if(Df)return Pi;Df=1;var e=ue&&ue.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.WS=void 0;const t=ra(),r=Dp(),n=eo(),o=na(),i=e(Gt()),s=Zi(),a=(0,i.default)("engine.io-client:websocket"),l=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class f extends t.Transport{constructor(h){super(h),this.supportsBinary=!h.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const h=this.uri(),d=this.opts.protocols,c=l?{}:(0,n.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(c.headers=this.opts.extraHeaders);try{this.ws=o.usingBrowserWebSocket&&!l?d?new o.WebSocket(h,d):new o.WebSocket(h):new o.WebSocket(h,d,c)}catch(p){return this.emitReserved("error",p)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=h=>this.onClose({description:"websocket connection closed",context:h}),this.ws.onmessage=h=>this.onData(h.data),this.ws.onerror=h=>this.onError("websocket error",h)}write(h){this.writable=!1;for(let d=0;d<h.length;d++){const c=h[d],p=d===h.length-1;(0,s.encodePacket)(c,this.supportsBinary,m=>{const E={};o.usingBrowserWebSocket||(c.options&&(E.compress=c.options.compress),this.opts.perMessageDeflate&&(typeof m=="string"?Buffer.byteLength(m):m.length)<this.opts.perMessageDeflate.threshold&&(E.compress=!1));try{o.usingBrowserWebSocket?this.ws.send(m):this.ws.send(m,E)}catch{a("websocket closed before onclose event")}p&&(0,o.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const h=this.opts.secure?"wss":"ws",d=this.query||{};return this.opts.timestampRequests&&(d[this.opts.timestampParam]=(0,r.yeast)()),this.supportsBinary||(d.b64=1),this.createUri(h,d)}check(){return!!o.WebSocket}}return Pi.WS=f,Pi}var Ii={},Uf;function ab(){if(Uf)return Ii;Uf=1;var e=ue&&ue.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.WT=void 0;const t=ra(),r=na(),n=Zi(),i=(0,e(Gt()).default)("engine.io-client:webtransport");class s extends t.Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{i("transport closed gracefully"),this.onClose()}).catch(l=>{i("transport closed due to %s",l),this.onError("webtransport error",l)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(l=>{const f=(0,n.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),u=l.readable.pipeThrough(f).getReader(),h=(0,n.createPacketEncoderStream)();h.readable.pipeTo(l.writable),this.writer=h.writable.getWriter();const d=()=>{u.read().then(({done:p,value:m})=>{if(p){i("session is closed");return}i("received chunk: %o",m),this.onPacket(m),d()}).catch(p=>{i("an error occurred while reading: %s",p)})};d();const c={type:"open"};this.query.sid&&(c.data=`{"sid":"${this.query.sid}"}`),this.writer.write(c).then(()=>this.onOpen())})}))}write(l){this.writable=!1;for(let f=0;f<l.length;f++){const u=l[f],h=f===l.length-1;this.writer.write(u).then(()=>{h&&(0,r.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var l;(l=this.transport)===null||l===void 0||l.close()}}return Ii.WT=s,Ii}var $f;function Up(){if($f)return Oi;$f=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.transports=void 0;const e=ib(),t=ob(),r=ab();return Oi.transports={websocket:t.WS,webtransport:r.WT,polling:e.Polling},Oi}var Li={},jf;function $p(){if(jf)return Li;jf=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.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 s=i,a=i.indexOf("["),l=i.indexOf("]");a!=-1&&l!=-1&&(i=i.substring(0,a)+i.substring(a,l).replace(/:/g,";")+i.substring(l,i.length));let f=e.exec(i||""),u={},h=14;for(;h--;)u[t[h]]=f[h]||"";return a!=-1&&l!=-1&&(u.source=s,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}Li.parse=r;function n(i,s){const a=/\/{2,9}/g,l=s.replace(a,"/").split("/");return(s.slice(0,1)=="/"||s.length===0)&&l.splice(0,1),s.slice(-1)=="/"&&l.splice(l.length-1,1),l}function o(i,s){const a={};return s.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,f,u){f&&(a[f]=u)}),a}return Li}var Hf;function sb(){if(Hf)return xi;Hf=1;var e=ue&&ue.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(xi,"__esModule",{value:!0}),xi.Socket=void 0;const t=Up(),r=eo(),n=Fp(),o=$p(),i=e(Gt()),s=Fn,a=Zi(),l=na(),f=(0,i.default)("engine.io-client:socket");class u extends s.Emitter{constructor(d,c={}){super(),this.binaryType=l.defaultBinaryType,this.writeBuffer=[],d&&typeof d=="object"&&(c=d,d=null),d?(d=(0,o.parse)(d),c.hostname=d.host,c.secure=d.protocol==="https"||d.protocol==="wss",c.port=d.port,d.query&&(c.query=d.query)):c.host&&(c.hostname=(0,o.parse)(c.host).host),(0,r.installTimerFunctions)(this,c),this.secure=c.secure!=null?c.secure:typeof location<"u"&&location.protocol==="https:",c.hostname&&!c.port&&(c.port=this.secure?"443":"80"),this.hostname=c.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=c.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=c.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},c),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(d){f('creating transport "%s"',d);const c=Object.assign({},this.opts.query);c.EIO=a.protocol,c.transport=d,this.id&&(c.sid=this.id);const p=Object.assign({},this.opts,{query:c,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[d]);return f("options: %j",p),new t.transports[d](p)}open(){let d;if(this.opts.rememberUpgrade&&u.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)d="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else d=this.transports[0];this.readyState="opening";try{d=this.createTransport(d)}catch(c){f("error while creating transport: %s",c),this.transports.shift(),this.open();return}d.open(),this.setTransport(d)}setTransport(d){f("setting transport %s",d.name),this.transport&&(f("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=d,d.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",c=>this.onClose("transport close",c))}probe(d){f('probing transport "%s"',d);let c=this.createTransport(d),p=!1;u.priorWebsocketSuccess=!1;const m=()=>{p||(f('probe transport "%s" opened',d),c.send([{type:"ping",data:"probe"}]),c.once("packet",N=>{if(!p)if(N.type==="pong"&&N.data==="probe"){if(f('probe transport "%s" pong',d),this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;u.priorWebsocketSuccess=c.name==="websocket",f('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{p||this.readyState!=="closed"&&(f("changing transport and sending upgrade packet"),w(),this.setTransport(c),c.send([{type:"upgrade"}]),this.emitReserved("upgrade",c),c=null,this.upgrading=!1,this.flush())})}else{f('probe transport "%s" failed',d);const F=new Error("probe error");F.transport=c.name,this.emitReserved("upgradeError",F)}}))};function E(){p||(p=!0,w(),c.close(),c=null)}const S=N=>{const F=new Error("probe error: "+N);F.transport=c.name,E(),f('probe transport "%s" failed because of error: %s',d,N),this.emitReserved("upgradeError",F)};function _(){S("transport closed")}function b(){S("socket closed")}function A(N){c&&N.name!==c.name&&(f('"%s" works - aborting "%s"',N.name,c.name),E())}const w=()=>{c.removeListener("open",m),c.removeListener("error",S),c.removeListener("close",_),this.off("close",b),this.off("upgrading",A)};c.once("open",m),c.once("error",S),c.once("close",_),this.once("close",b),this.once("upgrading",A),this.upgrades.indexOf("webtransport")!==-1&&d!=="webtransport"?this.setTimeoutFn(()=>{p||c.open()},200):c.open()}onOpen(){if(f("socket open"),this.readyState="open",u.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){f("starting upgrade probes");let d=0;const c=this.upgrades.length;for(;d<c;d++)this.probe(this.upgrades[d])}}onPacket(d){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(f('socket receive: type "%s", data "%s"',d.type,d.data),this.emitReserved("packet",d),this.emitReserved("heartbeat"),this.resetPingTimeout(),d.type){case"open":this.onHandshake(JSON.parse(d.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const c=new Error("server error");c.code=d.data,this.onError(c);break;case"message":this.emitReserved("data",d.data),this.emitReserved("message",d.data);break}else f('packet received with socket readyState "%s"',this.readyState)}onHandshake(d){this.emitReserved("handshake",d),this.id=d.sid,this.transport.query.sid=d.sid,this.upgrades=this.filterUpgrades(d.upgrades),this.pingInterval=d.pingInterval,this.pingTimeout=d.pingTimeout,this.maxPayload=d.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const d=this.getWritablePackets();f("flushing %d packets in socket",d.length),this.transport.send(d),this.prevBufferLen=d.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let c=1;for(let p=0;p<this.writeBuffer.length;p++){const m=this.writeBuffer[p].data;if(m&&(c+=(0,r.byteLength)(m)),p>0&&c>this.maxPayload)return f("only send %d out of %d packets",p,this.writeBuffer.length),this.writeBuffer.slice(0,p);c+=2}return f("payload size is %d (max: %d)",c,this.maxPayload),this.writeBuffer}write(d,c,p){return this.sendPacket("message",d,c,p),this}send(d,c,p){return this.sendPacket("message",d,c,p),this}sendPacket(d,c,p,m){if(typeof c=="function"&&(m=c,c=void 0),typeof p=="function"&&(m=p,p=null),this.readyState==="closing"||this.readyState==="closed")return;p=p||{},p.compress=p.compress!==!1;const E={type:d,data:c,options:p};this.emitReserved("packetCreate",E),this.writeBuffer.push(E),m&&this.once("flush",m),this.flush()}close(){const d=()=>{this.onClose("forced close"),f("socket closing - telling transport to close"),this.transport.close()},c=()=>{this.off("upgrade",c),this.off("upgradeError",c),d()},p=()=>{this.once("upgrade",c),this.once("upgradeError",c)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?p():d()}):this.upgrading?p():d()),this}onError(d){f("socket error %j",d),u.priorWebsocketSuccess=!1,this.emitReserved("error",d),this.onClose("transport error",d)}onClose(d,c){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(f('socket close with reason: "%s"',d),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",d,c),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(d){const c=[];let p=0;const m=d.length;for(;p<m;p++)~this.transports.indexOf(d[p])&&c.push(d[p]);return c}}return xi.Socket=u,u.protocol=a.protocol,xi}var qf;function jp(){return qf||(qf=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=sb();Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return t.Socket}}),e.protocol=t.Socket.protocol;var r=ra();Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return r.Transport}});var n=Up();Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return n.transports}});var o=eo();Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return o.installTimerFunctions}});var i=$p();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return i.parse}});var s=na();Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return s.nextTick}})}(Os)),Os}var Gf;function ub(){if(Gf)return Ti;Gf=1;var e=ue&&ue.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.url=void 0;const t=jp(),n=e(Gt()).default("socket.io-client:url");function o(i,s="",a){let l=i;a=a||typeof location<"u"&&location,i==null&&(i=a.protocol+"//"+a.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=a.protocol+i:i=a.host+i),/^(https?|wss?):\/\//.test(i)||(n("protocol-less url %s",i),typeof a<"u"?i=a.protocol+"//"+i:i="https://"+i),n("parse %s",i),l=t.parse(i)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";const u=l.host.indexOf(":")!==-1?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+u+":"+l.port+s,l.href=l.protocol+"://"+u+(a&&a.port===l.port?"":":"+l.port),l}return Ti.url=o,Ti}var Mi={},ki={},Ns={},Wr={},Vr={},Wf;function Hp(){if(Wf)return Vr;Wf=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.hasBinary=Vr.isBinary=void 0;const e=typeof ArrayBuffer=="function",t=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a.buffer instanceof ArrayBuffer,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(a){return e&&(a instanceof ArrayBuffer||t(a))||n&&a instanceof Blob||o&&a instanceof File}Vr.isBinary=i;function s(a,l){if(!a||typeof a!="object")return!1;if(Array.isArray(a)){for(let f=0,u=a.length;f<u;f++)if(s(a[f]))return!0;return!1}if(i(a))return!0;if(a.toJSON&&typeof a.toJSON=="function"&&arguments.length===1)return s(a.toJSON(),!0);for(const f in a)if(Object.prototype.hasOwnProperty.call(a,f)&&s(a[f]))return!0;return!1}return Vr.hasBinary=s,Vr}var Vf;function cb(){if(Vf)return Wr;Vf=1,Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.reconstructPacket=Wr.deconstructPacket=void 0;const e=Hp();function t(i){const s=[],a=i.data,l=i;return l.data=r(a,s),l.attachments=s.length,{packet:l,buffers:s}}Wr.deconstructPacket=t;function r(i,s){if(!i)return i;if((0,e.isBinary)(i)){const a={_placeholder:!0,num:s.length};return s.push(i),a}else if(Array.isArray(i)){const a=new Array(i.length);for(let l=0;l<i.length;l++)a[l]=r(i[l],s);return a}else if(typeof i=="object"&&!(i instanceof Date)){const a={};for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&&(a[l]=r(i[l],s));return a}return i}function n(i,s){return i.data=o(i.data,s),delete i.attachments,i}Wr.reconstructPacket=n;function o(i,s){if(!i)return i;if(i&&i._placeholder===!0){if(typeof i.num=="number"&&i.num>=0&&i.num<s.length)return s[i.num];throw new Error("illegal attachments")}else if(Array.isArray(i))for(let a=0;a<i.length;a++)i[a]=o(i[a],s);else if(typeof i=="object")for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&(i[a]=o(i[a],s));return i}return Wr}var zf;function Ku(){return zf||(zf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const t=Fn,r=cb(),n=Hp(),i=(0,Gt().default)("socket.io-parser"),s=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var a;(function(d){d[d.CONNECT=0]="CONNECT",d[d.DISCONNECT=1]="DISCONNECT",d[d.EVENT=2]="EVENT",d[d.ACK=3]="ACK",d[d.CONNECT_ERROR=4]="CONNECT_ERROR",d[d.BINARY_EVENT=5]="BINARY_EVENT",d[d.BINARY_ACK=6]="BINARY_ACK"})(a=e.PacketType||(e.PacketType={}));class l{constructor(c){this.replacer=c}encode(c){return i("encoding packet %j",c),(c.type===a.EVENT||c.type===a.ACK)&&(0,n.hasBinary)(c)?this.encodeAsBinary({type:c.type===a.EVENT?a.BINARY_EVENT:a.BINARY_ACK,nsp:c.nsp,data:c.data,id:c.id}):[this.encodeAsString(c)]}encodeAsString(c){let p=""+c.type;return(c.type===a.BINARY_EVENT||c.type===a.BINARY_ACK)&&(p+=c.attachments+"-"),c.nsp&&c.nsp!=="/"&&(p+=c.nsp+","),c.id!=null&&(p+=c.id),c.data!=null&&(p+=JSON.stringify(c.data,this.replacer)),i("encoded %j as %s",c,p),p}encodeAsBinary(c){const p=(0,r.deconstructPacket)(c),m=this.encodeAsString(p.packet),E=p.buffers;return E.unshift(m),E}}e.Encoder=l;function f(d){return Object.prototype.toString.call(d)==="[object Object]"}class u extends t.Emitter{constructor(c){super(),this.reviver=c}add(c){let p;if(typeof c=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");p=this.decodeString(c);const m=p.type===a.BINARY_EVENT;m||p.type===a.BINARY_ACK?(p.type=m?a.EVENT:a.ACK,this.reconstructor=new h(p),p.attachments===0&&super.emitReserved("decoded",p)):super.emitReserved("decoded",p)}else if((0,n.isBinary)(c)||c.base64)if(this.reconstructor)p=this.reconstructor.takeBinaryData(c),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: "+c)}decodeString(c){let p=0;const m={type:Number(c.charAt(0))};if(a[m.type]===void 0)throw new Error("unknown packet type "+m.type);if(m.type===a.BINARY_EVENT||m.type===a.BINARY_ACK){const S=p+1;for(;c.charAt(++p)!=="-"&&p!=c.length;);const _=c.substring(S,p);if(_!=Number(_)||c.charAt(p)!=="-")throw new Error("Illegal attachments");m.attachments=Number(_)}if(c.charAt(p+1)==="/"){const S=p+1;for(;++p&&!(c.charAt(p)===","||p===c.length););m.nsp=c.substring(S,p)}else m.nsp="/";const E=c.charAt(p+1);if(E!==""&&Number(E)==E){const S=p+1;for(;++p;){const _=c.charAt(p);if(_==null||Number(_)!=_){--p;break}if(p===c.length)break}m.id=Number(c.substring(S,p+1))}if(c.charAt(++p)){const S=this.tryParse(c.substr(p));if(u.isPayloadValid(m.type,S))m.data=S;else throw new Error("invalid payload")}return i("decoded %s as %j",c,m),m}tryParse(c){try{return JSON.parse(c,this.reviver)}catch{return!1}}static isPayloadValid(c,p){switch(c){case a.CONNECT:return f(p);case a.DISCONNECT:return p===void 0;case a.CONNECT_ERROR:return typeof p=="string"||f(p);case a.EVENT:case a.BINARY_EVENT:return Array.isArray(p)&&(typeof p[0]=="number"||typeof p[0]=="string"&&s.indexOf(p[0])===-1);case a.ACK:case a.BINARY_ACK:return Array.isArray(p)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=u;class h{constructor(c){this.packet=c,this.buffers=[],this.reconPack=c}takeBinaryData(c){if(this.buffers.push(c),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=[]}}}(Ns)),Ns}var Bi={},Yf;function qp(){if(Yf)return Bi;Yf=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.on=void 0;function e(t,r,n){return t.on(r,n),function(){t.off(r,n)}}return Bi.on=e,Bi}var Kf;function Gp(){if(Kf)return ki;Kf=1;var e=ue&&ue.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(ki,"__esModule",{value:!0}),ki.Socket=void 0;const t=Ku(),r=qp(),n=Fn,i=e(Gt()).default("socket.io-client:socket"),s=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class a extends n.Emitter{constructor(f,u,h){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=f,this.nsp=u,h&&h.auth&&(this.auth=h.auth),this._opts=Object.assign({},h),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const f=this.io;this.subs=[r.on(f,"open",this.onopen.bind(this)),r.on(f,"packet",this.onpacket.bind(this)),r.on(f,"error",this.onerror.bind(this)),r.on(f,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...f){return f.unshift("message"),this.emit.apply(this,f),this}emit(f,...u){if(s.hasOwnProperty(f))throw new Error('"'+f.toString()+'" is a reserved event name');if(u.unshift(f),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(u),this;const h={type:t.PacketType.EVENT,data:u};if(h.options={},h.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),h.id=p}const d=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!d||!this.connected)?i("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h),this.flags={},this}_registerAckCallback(f,u){var h;const d=(h=this.flags.timeout)!==null&&h!==void 0?h:this._opts.ackTimeout;if(d===void 0){this.acks[f]=u;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[f];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===f&&(i("removing packet with ack id %d from the buffer",f),this.sendBuffer.splice(p,1));i("event with ack id %d has timed out after %d ms",f,d),u.call(this,new Error("operation has timed out"))},d);this.acks[f]=(...p)=>{this.io.clearTimeoutFn(c),u.apply(this,[null,...p])}}emitWithAck(f,...u){const h=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((d,c)=>{u.push((p,m)=>h?p?c(p):d(m):d(p)),this.emit(f,...u)})}_addToQueue(f){let u;typeof f[f.length-1]=="function"&&(u=f.pop());const h={id:this._queueSeq++,tryCount:0,pending:!1,args:f,flags:Object.assign({fromQueue:!0},this.flags)};f.push((d,...c)=>h!==this._queue[0]?void 0:(d!==null?h.tryCount>this._opts.retries&&(i("packet [%d] is discarded after %d tries",h.id,h.tryCount),this._queue.shift(),u&&u(d)):(i("packet [%d] was successfully sent",h.id),this._queue.shift(),u&&u(null,...c)),h.pending=!1,this._drainQueue())),this._queue.push(h),this._drainQueue()}_drainQueue(f=!1){if(i("draining queue"),!this.connected||this._queue.length===0)return;const u=this._queue[0];if(u.pending&&!f){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(f){f.nsp=this.nsp,this.io._packet(f)}onopen(){i("transport is open - connecting"),typeof this.auth=="function"?this.auth(f=>{this._sendConnectPacket(f)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(f){this.packet({type:t.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},f):f})}onerror(f){this.connected||this.emitReserved("connect_error",f)}onclose(f,u){i("close (%s)",f),this.connected=!1,delete this.id,this.emitReserved("disconnect",f,u)}onpacket(f){if(f.nsp===this.nsp)switch(f.type){case t.PacketType.CONNECT:f.data&&f.data.sid?this.onconnect(f.data.sid,f.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case t.PacketType.EVENT:case t.PacketType.BINARY_EVENT:this.onevent(f);break;case t.PacketType.ACK:case t.PacketType.BINARY_ACK:this.onack(f);break;case t.PacketType.DISCONNECT:this.ondisconnect();break;case t.PacketType.CONNECT_ERROR:this.destroy();const h=new Error(f.data.message);h.data=f.data.data,this.emitReserved("connect_error",h);break}}onevent(f){const u=f.data||[];i("emitting event %j",u),f.id!=null&&(i("attaching ack callback to event"),u.push(this.ack(f.id))),this.connected?this.emitEvent(u):this.receiveBuffer.push(Object.freeze(u))}emitEvent(f){if(this._anyListeners&&this._anyListeners.length){const u=this._anyListeners.slice();for(const h of u)h.apply(this,f)}super.emit.apply(this,f),this._pid&&f.length&&typeof f[f.length-1]=="string"&&(this._lastOffset=f[f.length-1])}ack(f){const u=this;let h=!1;return function(...d){h||(h=!0,i("sending ack %j",d),u.packet({type:t.PacketType.ACK,id:f,data:d}))}}onack(f){const u=this.acks[f.id];typeof u=="function"?(i("calling ack %s with %j",f.id,f.data),u.apply(this,f.data),delete this.acks[f.id]):i("bad ack %s",f.id)}onconnect(f,u){i("socket connected with id %s",f),this.id=f,this.recovered=u&&this._pid===u,this._pid=u,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(f=>this.emitEvent(f)),this.receiveBuffer=[],this.sendBuffer.forEach(f=>{this.notifyOutgoingListeners(f),this.packet(f)}),this.sendBuffer=[]}ondisconnect(){i("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(f=>f()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(i("performing disconnect (%s)",this.nsp),this.packet({type:t.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(f){return this.flags.compress=f,this}get volatile(){return this.flags.volatile=!0,this}timeout(f){return this.flags.timeout=f,this}onAny(f){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(f),this}prependAny(f){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(f),this}offAny(f){if(!this._anyListeners)return this;if(f){const u=this._anyListeners;for(let h=0;h<u.length;h++)if(f===u[h])return u.splice(h,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(f){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(f),this}prependAnyOutgoing(f){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(f),this}offAnyOutgoing(f){if(!this._anyOutgoingListeners)return this;if(f){const u=this._anyOutgoingListeners;for(let h=0;h<u.length;h++)if(f===u[h])return u.splice(h,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(f){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const u=this._anyOutgoingListeners.slice();for(const h of u)h.apply(this,f.data)}}}return ki.Socket=a,ki}var Fi={},Qf;function lb(){if(Qf)return Fi;Qf=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.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 Fi.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},Fi}var Xf;function fb(){if(Xf)return Mi;Xf=1;var e=ue&&ue.__createBinding||(Object.create?function(c,p,m,E){E===void 0&&(E=m),Object.defineProperty(c,E,{enumerable:!0,get:function(){return p[m]}})}:function(c,p,m,E){E===void 0&&(E=m),c[E]=p[m]}),t=ue&&ue.__setModuleDefault||(Object.create?function(c,p){Object.defineProperty(c,"default",{enumerable:!0,value:p})}:function(c,p){c.default=p}),r=ue&&ue.__importStar||function(c){if(c&&c.__esModule)return c;var p={};if(c!=null)for(var m in c)m!=="default"&&Object.prototype.hasOwnProperty.call(c,m)&&e(p,c,m);return t(p,c),p},n=ue&&ue.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.Manager=void 0;const o=jp(),i=Gp(),s=r(Ku()),a=qp(),l=lb(),f=Fn,h=n(Gt()).default("socket.io-client:manager");class d extends f.Emitter{constructor(p,m){var E;super(),this.nsps={},this.subs=[],p&&typeof p=="object"&&(m=p,p=void 0),m=m||{},m.path=m.path||"/socket.io",this.opts=m,o.installTimerFunctions(this,m),this.reconnection(m.reconnection!==!1),this.reconnectionAttempts(m.reconnectionAttempts||1/0),this.reconnectionDelay(m.reconnectionDelay||1e3),this.reconnectionDelayMax(m.reconnectionDelayMax||5e3),this.randomizationFactor((E=m.randomizationFactor)!==null&&E!==void 0?E:.5),this.backoff=new l.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(m.timeout==null?2e4:m.timeout),this._readyState="closed",this.uri=p;const S=m.parser||s;this.encoder=new S.Encoder,this.decoder=new S.Decoder,this._autoConnect=m.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(p){return arguments.length?(this._reconnection=!!p,this):this._reconnection}reconnectionAttempts(p){return p===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=p,this)}reconnectionDelay(p){var m;return p===void 0?this._reconnectionDelay:(this._reconnectionDelay=p,(m=this.backoff)===null||m===void 0||m.setMin(p),this)}randomizationFactor(p){var m;return p===void 0?this._randomizationFactor:(this._randomizationFactor=p,(m=this.backoff)===null||m===void 0||m.setJitter(p),this)}reconnectionDelayMax(p){var m;return p===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=p,(m=this.backoff)===null||m===void 0||m.setMax(p),this)}timeout(p){return arguments.length?(this._timeout=p,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(p){if(h("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;h("opening %s",this.uri),this.engine=new o.Socket(this.uri,this.opts);const m=this.engine,E=this;this._readyState="opening",this.skipReconnect=!1;const S=a.on(m,"open",function(){E.onopen(),p&&p()}),_=A=>{h("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",A),p?p(A):this.maybeReconnectOnOpen()},b=a.on(m,"error",_);if(this._timeout!==!1){const A=this._timeout;h("connect attempt will timeout after %d",A);const w=this.setTimeoutFn(()=>{h("connect attempt timed out after %d",A),S(),_(new Error("timeout")),m.close()},A);this.opts.autoUnref&&w.unref(),this.subs.push(()=>{this.clearTimeoutFn(w)})}return this.subs.push(S),this.subs.push(b),this}connect(p){return this.open(p)}onopen(){h("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const p=this.engine;this.subs.push(a.on(p,"ping",this.onping.bind(this)),a.on(p,"data",this.ondata.bind(this)),a.on(p,"error",this.onerror.bind(this)),a.on(p,"close",this.onclose.bind(this)),a.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(p){try{this.decoder.add(p)}catch(m){this.onclose("parse error",m)}}ondecoded(p){o.nextTick(()=>{this.emitReserved("packet",p)},this.setTimeoutFn)}onerror(p){h("error",p),this.emitReserved("error",p)}socket(p,m){let E=this.nsps[p];return E?this._autoConnect&&!E.active&&E.connect():(E=new i.Socket(this,p,m),this.nsps[p]=E),E}_destroy(p){const m=Object.keys(this.nsps);for(const E of m)if(this.nsps[E].active){h("socket %s is still active, skipping close",E);return}this._close()}_packet(p){h("writing packet %j",p);const m=this.encoder.encode(p);for(let E=0;E<m.length;E++)this.engine.write(m[E],p.options)}cleanup(){h("cleanup"),this.subs.forEach(p=>p()),this.subs.length=0,this.decoder.destroy()}_close(){h("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(p,m){h("closed due to %s",p),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",p,m),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const p=this;if(this.backoff.attempts>=this._reconnectionAttempts)h("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const m=this.backoff.duration();h("will wait %dms before reconnect attempt",m),this._reconnecting=!0;const E=this.setTimeoutFn(()=>{p.skipReconnect||(h("attempting reconnect"),this.emitReserved("reconnect_attempt",p.backoff.attempts),!p.skipReconnect&&p.open(S=>{S?(h("reconnect attempt error"),p._reconnecting=!1,p.reconnect(),this.emitReserved("reconnect_error",S)):(h("reconnect success"),p.onreconnect())}))},m);this.opts.autoUnref&&E.unref(),this.subs.push(()=>{this.clearTimeoutFn(E)})}}onreconnect(){const p=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",p)}}return Mi.Manager=d,Mi}var Jf;function db(){return Jf||(Jf=1,function(e,t){var r=ue&&ue.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const n=ub(),o=fb();Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});const i=Gp();Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}});const a=r(Gt()).default("socket.io-client"),l={};function f(h,d){typeof h=="object"&&(d=h,h=void 0),d=d||{};const c=n.url(h,d.path||"/socket.io"),p=c.source,m=c.id,E=c.path,S=l[m]&&E in l[m].nsps,_=d.forceNew||d["force new connection"]||d.multiplex===!1||S;let b;return _?(a("ignoring socket cache for %s",p),b=new o.Manager(p,d)):(l[m]||(a("new io instance for %s",p),l[m]=new o.Manager(p,d)),b=l[m]),c.query&&!d.query&&(d.query=c.queryKey),b.socket(c.path,d)}t.io=f,t.connect=f,t.default=f,Object.assign(f,{Manager:o.Manager,Socket:i.Socket,io:f,connect:f});var u=Ku();Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=f}(Oo,Oo.exports)),Oo.exports}var Ps={},Di={},Zf;function hb(){if(Zf)return Di;Zf=1,Di.byteLength=a,Di.toByteArray=f,Di.fromByteArray=d;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 s(c){var p=c.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=c.indexOf("=");m===-1&&(m=p);var E=m===p?0:4-m%4;return[m,E]}function a(c){var p=s(c),m=p[0],E=p[1];return(m+E)*3/4-E}function l(c,p,m){return(p+m)*3/4-m}function f(c){var p,m=s(c),E=m[0],S=m[1],_=new r(l(c,E,S)),b=0,A=S>0?E-4:E,w;for(w=0;w<A;w+=4)p=t[c.charCodeAt(w)]<<18|t[c.charCodeAt(w+1)]<<12|t[c.charCodeAt(w+2)]<<6|t[c.charCodeAt(w+3)],_[b++]=p>>16&255,_[b++]=p>>8&255,_[b++]=p&255;return S===2&&(p=t[c.charCodeAt(w)]<<2|t[c.charCodeAt(w+1)]>>4,_[b++]=p&255),S===1&&(p=t[c.charCodeAt(w)]<<10|t[c.charCodeAt(w+1)]<<4|t[c.charCodeAt(w+2)]>>2,_[b++]=p>>8&255,_[b++]=p&255),_}function u(c){return e[c>>18&63]+e[c>>12&63]+e[c>>6&63]+e[c&63]}function h(c,p,m){for(var E,S=[],_=p;_<m;_+=3)E=(c[_]<<16&16711680)+(c[_+1]<<8&65280)+(c[_+2]&255),S.push(u(E));return S.join("")}function d(c){for(var p,m=c.length,E=m%3,S=[],_=16383,b=0,A=m-E;b<A;b+=_)S.push(h(c,b,b+_>A?A:b+_));return E===1?(p=c[m-1],S.push(e[p>>2]+e[p<<4&63]+"==")):E===2&&(p=(c[m-2]<<8)+c[m-1],S.push(e[p>>10]+e[p>>4&63]+e[p<<2&63]+"=")),S.join("")}return Di}var Co={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var ed;function pb(){return ed||(ed=1,Co.read=function(e,t,r,n,o){var i,s,a=o*8-n-1,l=(1<<a)-1,f=l>>1,u=-7,h=r?o-1:0,d=r?-1:1,c=e[t+h];for(h+=d,i=c&(1<<-u)-1,c>>=-u,u+=a;u>0;i=i*256+e[t+h],h+=d,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=n;u>0;s=s*256+e[t+h],h+=d,u-=8);if(i===0)i=1-f;else{if(i===l)return s?NaN:(c?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-f}return(c?-1:1)*s*Math.pow(2,i-n)},Co.write=function(e,t,r,n,o,i){var s,a,l,f=i*8-o-1,u=(1<<f)-1,h=u>>1,d=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=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?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?t+=d/l:t+=d*Math.pow(2,1-h),t*l>=2&&(s++,l/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(t*l-1)*Math.pow(2,o),s=s+h):(a=t*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;e[r+c]=a&255,c+=p,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;e[r+c]=s&255,c+=p,s/=256,f-=8);e[r+c-p]|=m*128}),Co}/*!
|
|
57
|
-
* The buffer module from node.js, for the browser.
|
|
58
|
-
*
|
|
59
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
60
|
-
* @license MIT
|
|
61
|
-
*/var td;function mb(){return td||(td=1,function(e){const t=hb(),r=pb(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const 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(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(T){if(T>o)throw new RangeError('The value "'+T+'" is invalid for option "size"');const g=new Uint8Array(T);return Object.setPrototypeOf(g,a.prototype),g}function a(T,g,v){if(typeof T=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(T)}return l(T,g,v)}a.poolSize=8192;function l(T,g,v){if(typeof T=="string")return d(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(He(T,ArrayBuffer)||T&&He(T.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(He(T,SharedArrayBuffer)||T&&He(T.buffer,SharedArrayBuffer)))return m(T,g,v);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 a.from(C,g,v);const P=E(T);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof T[Symbol.toPrimitive]=="function")return a.from(T[Symbol.toPrimitive]("string"),g,v);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T)}a.from=function(T,g,v){return l(T,g,v)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function f(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,v){return f(T),T<=0?s(T):g!==void 0?typeof v=="string"?s(T).fill(g,v):s(T).fill(g):s(T)}a.alloc=function(T,g,v){return u(T,g,v)};function h(T){return f(T),s(T<0?0:S(T)|0)}a.allocUnsafe=function(T){return h(T)},a.allocUnsafeSlow=function(T){return h(T)};function d(T,g){if((typeof g!="string"||g==="")&&(g="utf8"),!a.isEncoding(g))throw new TypeError("Unknown encoding: "+g);const v=b(T,g)|0;let C=s(v);const P=C.write(T,g);return P!==v&&(C=C.slice(0,P)),C}function c(T){const g=T.length<0?0:S(T.length)|0,v=s(g);for(let C=0;C<g;C+=1)v[C]=T[C]&255;return v}function p(T){if(He(T,Uint8Array)){const g=new Uint8Array(T);return m(g.buffer,g.byteOffset,g.byteLength)}return c(T)}function m(T,g,v){if(g<0||T.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(T.byteLength<g+(v||0))throw new RangeError('"length" is outside of buffer bounds');let C;return g===void 0&&v===void 0?C=new Uint8Array(T):v===void 0?C=new Uint8Array(T,g):C=new Uint8Array(T,g,v),Object.setPrototypeOf(C,a.prototype),C}function E(T){if(a.isBuffer(T)){const g=S(T.length)|0,v=s(g);return v.length===0||T.copy(v,0,0,g),v}if(T.length!==void 0)return typeof T.length!="number"||St(T.length)?s(0):c(T);if(T.type==="Buffer"&&Array.isArray(T.data))return c(T.data)}function S(T){if(T>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return T|0}function _(T){return+T!=T&&(T=0),a.alloc(+T)}a.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==a.prototype},a.compare=function(g,v){if(He(g,Uint8Array)&&(g=a.from(g,g.offset,g.byteLength)),He(v,Uint8Array)&&(v=a.from(v,v.offset,v.byteLength)),!a.isBuffer(g)||!a.isBuffer(v))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===v)return 0;let C=g.length,P=v.length;for(let D=0,q=Math.min(C,P);D<q;++D)if(g[D]!==v[D]){C=g[D],P=v[D];break}return C<P?-1:P<C?1:0},a.isEncoding=function(g){switch(String(g).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(g,v){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return a.alloc(0);let C;if(v===void 0)for(v=0,C=0;C<g.length;++C)v+=g[C].length;const P=a.allocUnsafe(v);let D=0;for(C=0;C<g.length;++C){let q=g[C];if(He(q,Uint8Array))D+q.length>P.length?(a.isBuffer(q)||(q=a.from(q)),q.copy(P,D)):Uint8Array.prototype.set.call(P,q,D);else if(a.isBuffer(q))q.copy(P,D);else throw new TypeError('"list" argument must be an Array of Buffers');D+=q.length}return P};function b(T,g){if(a.isBuffer(T))return T.length;if(ArrayBuffer.isView(T)||He(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 v=T.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&v===0)return 0;let P=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":return Rt(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v*2;case"hex":return v>>>1;case"base64":return wt(T).length;default:if(P)return C?-1:Rt(T).length;g=(""+g).toLowerCase(),P=!0}}a.byteLength=b;function A(T,g,v){let C=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((v===void 0||v>this.length)&&(v=this.length),v<=0)||(v>>>=0,g>>>=0,v<=g))return"";for(T||(T="utf8");;)switch(T){case"hex":return de(this,g,v);case"utf8":case"utf-8":return te(this,g,v);case"ascii":return V(this,g,v);case"latin1":case"binary":return Z(this,g,v);case"base64":return Y(this,g,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,g,v);default:if(C)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),C=!0}}a.prototype._isBuffer=!0;function w(T,g,v){const C=T[g];T[g]=T[v],T[v]=C}a.prototype.swap16=function(){const g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let v=0;v<g;v+=2)w(this,v,v+1);return this},a.prototype.swap32=function(){const g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let v=0;v<g;v+=4)w(this,v,v+3),w(this,v+1,v+2);return this},a.prototype.swap64=function(){const g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let v=0;v<g;v+=8)w(this,v,v+7),w(this,v+1,v+6),w(this,v+2,v+5),w(this,v+3,v+4);return this},a.prototype.toString=function(){const g=this.length;return g===0?"":arguments.length===0?te(this,0,g):A.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(g){if(!a.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:a.compare(this,g)===0},a.prototype.inspect=function(){let g="";const v=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,v).replace(/(.{2})/g,"$1 ").trim(),this.length>v&&(g+=" ... "),"<Buffer "+g+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(g,v,C,P,D){if(He(g,Uint8Array)&&(g=a.from(g,g.offset,g.byteLength)),!a.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(v===void 0&&(v=0),C===void 0&&(C=g?g.length:0),P===void 0&&(P=0),D===void 0&&(D=this.length),v<0||C>g.length||P<0||D>this.length)throw new RangeError("out of range index");if(P>=D&&v>=C)return 0;if(P>=D)return-1;if(v>=C)return 1;if(v>>>=0,C>>>=0,P>>>=0,D>>>=0,this===g)return 0;let q=D-P,le=C-v;const we=Math.min(q,le),Se=this.slice(P,D),Te=g.slice(v,C);for(let he=0;he<we;++he)if(Se[he]!==Te[he]){q=Se[he],le=Te[he];break}return q<le?-1:le<q?1:0};function N(T,g,v,C,P){if(T.length===0)return-1;if(typeof v=="string"?(C=v,v=0):v>2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),v=+v,St(v)&&(v=P?0:T.length-1),v<0&&(v=T.length+v),v>=T.length){if(P)return-1;v=T.length-1}else if(v<0)if(P)v=0;else return-1;if(typeof g=="string"&&(g=a.from(g,C)),a.isBuffer(g))return g.length===0?-1:F(T,g,v,C,P);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(T,g,v):Uint8Array.prototype.lastIndexOf.call(T,g,v):F(T,[g],v,C,P);throw new TypeError("val must be string, number or Buffer")}function F(T,g,v,C,P){let D=1,q=T.length,le=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;D=2,q/=2,le/=2,v/=2}function we(Te,he){return D===1?Te[he]:Te.readUInt16BE(he*D)}let Se;if(P){let Te=-1;for(Se=v;Se<q;Se++)if(we(T,Se)===we(g,Te===-1?0:Se-Te)){if(Te===-1&&(Te=Se),Se-Te+1===le)return Te*D}else Te!==-1&&(Se-=Se-Te),Te=-1}else for(v+le>q&&(v=q-le),Se=v;Se>=0;Se--){let Te=!0;for(let he=0;he<le;he++)if(we(T,Se+he)!==we(g,he)){Te=!1;break}if(Te)return Se}return-1}a.prototype.includes=function(g,v,C){return this.indexOf(g,v,C)!==-1},a.prototype.indexOf=function(g,v,C){return N(this,g,v,C,!0)},a.prototype.lastIndexOf=function(g,v,C){return N(this,g,v,C,!1)};function B(T,g,v,C){v=Number(v)||0;const P=T.length-v;C?(C=Number(C),C>P&&(C=P)):C=P;const D=g.length;C>D/2&&(C=D/2);let q;for(q=0;q<C;++q){const le=parseInt(g.substr(q*2,2),16);if(St(le))return q;T[v+q]=le}return q}function G(T,g,v,C){return gt(Rt(g,T.length-v),T,v,C)}function z(T,g,v,C){return gt(mt(g),T,v,C)}function W(T,g,v,C){return gt(wt(g),T,v,C)}function H(T,g,v,C){return gt(Sr(g,T.length-v),T,v,C)}a.prototype.write=function(g,v,C,P){if(v===void 0)P="utf8",C=this.length,v=0;else if(C===void 0&&typeof v=="string")P=v,C=this.length,v=0;else if(isFinite(v))v=v>>>0,isFinite(C)?(C=C>>>0,P===void 0&&(P="utf8")):(P=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const D=this.length-v;if((C===void 0||C>D)&&(C=D),g.length>0&&(C<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");let q=!1;for(;;)switch(P){case"hex":return B(this,g,v,C);case"utf8":case"utf-8":return G(this,g,v,C);case"ascii":case"latin1":case"binary":return z(this,g,v,C);case"base64":return W(this,g,v,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,g,v,C);default:if(q)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),q=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(T,g,v){return g===0&&v===T.length?t.fromByteArray(T):t.fromByteArray(T.slice(g,v))}function te(T,g,v){v=Math.min(T.length,v);const C=[];let P=g;for(;P<v;){const D=T[P];let q=null,le=D>239?4:D>223?3:D>191?2:1;if(P+le<=v){let we,Se,Te,he;switch(le){case 1:D<128&&(q=D);break;case 2:we=T[P+1],(we&192)===128&&(he=(D&31)<<6|we&63,he>127&&(q=he));break;case 3:we=T[P+1],Se=T[P+2],(we&192)===128&&(Se&192)===128&&(he=(D&15)<<12|(we&63)<<6|Se&63,he>2047&&(he<55296||he>57343)&&(q=he));break;case 4:we=T[P+1],Se=T[P+2],Te=T[P+3],(we&192)===128&&(Se&192)===128&&(Te&192)===128&&(he=(D&15)<<18|(we&63)<<12|(Se&63)<<6|Te&63,he>65535&&he<1114112&&(q=he))}}q===null?(q=65533,le=1):q>65535&&(q-=65536,C.push(q>>>10&1023|55296),q=56320|q&1023),C.push(q),P+=le}return M(C)}const Q=4096;function M(T){const g=T.length;if(g<=Q)return String.fromCharCode.apply(String,T);let v="",C=0;for(;C<g;)v+=String.fromCharCode.apply(String,T.slice(C,C+=Q));return v}function V(T,g,v){let C="";v=Math.min(T.length,v);for(let P=g;P<v;++P)C+=String.fromCharCode(T[P]&127);return C}function Z(T,g,v){let C="";v=Math.min(T.length,v);for(let P=g;P<v;++P)C+=String.fromCharCode(T[P]);return C}function de(T,g,v){const C=T.length;(!g||g<0)&&(g=0),(!v||v<0||v>C)&&(v=C);let P="";for(let D=g;D<v;++D)P+=nt[T[D]];return P}function X(T,g,v){const C=T.slice(g,v);let P="";for(let D=0;D<C.length-1;D+=2)P+=String.fromCharCode(C[D]+C[D+1]*256);return P}a.prototype.slice=function(g,v){const C=this.length;g=~~g,v=v===void 0?C:~~v,g<0?(g+=C,g<0&&(g=0)):g>C&&(g=C),v<0?(v+=C,v<0&&(v=0)):v>C&&(v=C),v<g&&(v=g);const P=this.subarray(g,v);return Object.setPrototypeOf(P,a.prototype),P};function K(T,g,v){if(T%1!==0||T<0)throw new RangeError("offset is not uint");if(T+g>v)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(g,v,C){g=g>>>0,v=v>>>0,C||K(g,v,this.length);let P=this[g],D=1,q=0;for(;++q<v&&(D*=256);)P+=this[g+q]*D;return P},a.prototype.readUintBE=a.prototype.readUIntBE=function(g,v,C){g=g>>>0,v=v>>>0,C||K(g,v,this.length);let P=this[g+--v],D=1;for(;v>0&&(D*=256);)P+=this[g+--v]*D;return P},a.prototype.readUint8=a.prototype.readUInt8=function(g,v){return g=g>>>0,v||K(g,1,this.length),this[g]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(g,v){return g=g>>>0,v||K(g,2,this.length),this[g]|this[g+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(g,v){return g=g>>>0,v||K(g,2,this.length),this[g]<<8|this[g+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(g,v){return g=g>>>0,v||K(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(g,v){return g=g>>>0,v||K(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},a.prototype.readBigUInt64LE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&je(g,this.length-8);const P=v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24,D=this[++g]+this[++g]*2**8+this[++g]*2**16+C*2**24;return BigInt(P)+(BigInt(D)<<BigInt(32))}),a.prototype.readBigUInt64BE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&je(g,this.length-8);const P=v*2**24+this[++g]*2**16+this[++g]*2**8+this[++g],D=this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C;return(BigInt(P)<<BigInt(32))+BigInt(D)}),a.prototype.readIntLE=function(g,v,C){g=g>>>0,v=v>>>0,C||K(g,v,this.length);let P=this[g],D=1,q=0;for(;++q<v&&(D*=256);)P+=this[g+q]*D;return D*=128,P>=D&&(P-=Math.pow(2,8*v)),P},a.prototype.readIntBE=function(g,v,C){g=g>>>0,v=v>>>0,C||K(g,v,this.length);let P=v,D=1,q=this[g+--P];for(;P>0&&(D*=256);)q+=this[g+--P]*D;return D*=128,q>=D&&(q-=Math.pow(2,8*v)),q},a.prototype.readInt8=function(g,v){return g=g>>>0,v||K(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},a.prototype.readInt16LE=function(g,v){g=g>>>0,v||K(g,2,this.length);const C=this[g]|this[g+1]<<8;return C&32768?C|4294901760:C},a.prototype.readInt16BE=function(g,v){g=g>>>0,v||K(g,2,this.length);const C=this[g+1]|this[g]<<8;return C&32768?C|4294901760:C},a.prototype.readInt32LE=function(g,v){return g=g>>>0,v||K(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},a.prototype.readInt32BE=function(g,v){return g=g>>>0,v||K(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},a.prototype.readBigInt64LE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&je(g,this.length-8);const P=this[g+4]+this[g+5]*2**8+this[g+6]*2**16+(C<<24);return(BigInt(P)<<BigInt(32))+BigInt(v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24)}),a.prototype.readBigInt64BE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&je(g,this.length-8);const P=(v<<24)+this[++g]*2**16+this[++g]*2**8+this[++g];return(BigInt(P)<<BigInt(32))+BigInt(this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C)}),a.prototype.readFloatLE=function(g,v){return g=g>>>0,v||K(g,4,this.length),r.read(this,g,!0,23,4)},a.prototype.readFloatBE=function(g,v){return g=g>>>0,v||K(g,4,this.length),r.read(this,g,!1,23,4)},a.prototype.readDoubleLE=function(g,v){return g=g>>>0,v||K(g,8,this.length),r.read(this,g,!0,52,8)},a.prototype.readDoubleBE=function(g,v){return g=g>>>0,v||K(g,8,this.length),r.read(this,g,!1,52,8)};function se(T,g,v,C,P,D){if(!a.isBuffer(T))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>P||g<D)throw new RangeError('"value" argument is out of bounds');if(v+C>T.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(g,v,C,P){if(g=+g,v=v>>>0,C=C>>>0,!P){const le=Math.pow(2,8*C)-1;se(this,g,v,C,le,0)}let D=1,q=0;for(this[v]=g&255;++q<C&&(D*=256);)this[v+q]=g/D&255;return v+C},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(g,v,C,P){if(g=+g,v=v>>>0,C=C>>>0,!P){const le=Math.pow(2,8*C)-1;se(this,g,v,C,le,0)}let D=C-1,q=1;for(this[v+D]=g&255;--D>=0&&(q*=256);)this[v+D]=g/q&255;return v+C},a.prototype.writeUint8=a.prototype.writeUInt8=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,1,255,0),this[v]=g&255,v+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,2,65535,0),this[v]=g&255,this[v+1]=g>>>8,v+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,2,65535,0),this[v]=g>>>8,this[v+1]=g&255,v+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,4,4294967295,0),this[v+3]=g>>>24,this[v+2]=g>>>16,this[v+1]=g>>>8,this[v]=g&255,v+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,4,4294967295,0),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4};function ce(T,g,v,C,P){re(g,C,P,T,v,7);let D=Number(g&BigInt(4294967295));T[v++]=D,D=D>>8,T[v++]=D,D=D>>8,T[v++]=D,D=D>>8,T[v++]=D;let q=Number(g>>BigInt(32)&BigInt(4294967295));return T[v++]=q,q=q>>8,T[v++]=q,q=q>>8,T[v++]=q,q=q>>8,T[v++]=q,v}function Fe(T,g,v,C,P){re(g,C,P,T,v,7);let D=Number(g&BigInt(4294967295));T[v+7]=D,D=D>>8,T[v+6]=D,D=D>>8,T[v+5]=D,D=D>>8,T[v+4]=D;let q=Number(g>>BigInt(32)&BigInt(4294967295));return T[v+3]=q,q=q>>8,T[v+2]=q,q=q>>8,T[v+1]=q,q=q>>8,T[v]=q,v+8}a.prototype.writeBigUInt64LE=Ke(function(g,v=0){return ce(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Ke(function(g,v=0){return Fe(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(g,v,C,P){if(g=+g,v=v>>>0,!P){const we=Math.pow(2,8*C-1);se(this,g,v,C,we-1,-we)}let D=0,q=1,le=0;for(this[v]=g&255;++D<C&&(q*=256);)g<0&&le===0&&this[v+D-1]!==0&&(le=1),this[v+D]=(g/q>>0)-le&255;return v+C},a.prototype.writeIntBE=function(g,v,C,P){if(g=+g,v=v>>>0,!P){const we=Math.pow(2,8*C-1);se(this,g,v,C,we-1,-we)}let D=C-1,q=1,le=0;for(this[v+D]=g&255;--D>=0&&(q*=256);)g<0&&le===0&&this[v+D+1]!==0&&(le=1),this[v+D]=(g/q>>0)-le&255;return v+C},a.prototype.writeInt8=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,1,127,-128),g<0&&(g=255+g+1),this[v]=g&255,v+1},a.prototype.writeInt16LE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,2,32767,-32768),this[v]=g&255,this[v+1]=g>>>8,v+2},a.prototype.writeInt16BE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,2,32767,-32768),this[v]=g>>>8,this[v+1]=g&255,v+2},a.prototype.writeInt32LE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,4,2147483647,-2147483648),this[v]=g&255,this[v+1]=g>>>8,this[v+2]=g>>>16,this[v+3]=g>>>24,v+4},a.prototype.writeInt32BE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4},a.prototype.writeBigInt64LE=Ke(function(g,v=0){return ce(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Ke(function(g,v=0){return Fe(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function J(T,g,v,C,P,D){if(v+C>T.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function ie(T,g,v,C,P){return g=+g,v=v>>>0,P||J(T,g,v,4),r.write(T,g,v,C,23,4),v+4}a.prototype.writeFloatLE=function(g,v,C){return ie(this,g,v,!0,C)},a.prototype.writeFloatBE=function(g,v,C){return ie(this,g,v,!1,C)};function Pe(T,g,v,C,P){return g=+g,v=v>>>0,P||J(T,g,v,8),r.write(T,g,v,C,52,8),v+8}a.prototype.writeDoubleLE=function(g,v,C){return Pe(this,g,v,!0,C)},a.prototype.writeDoubleBE=function(g,v,C){return Pe(this,g,v,!1,C)},a.prototype.copy=function(g,v,C,P){if(!a.isBuffer(g))throw new TypeError("argument should be a Buffer");if(C||(C=0),!P&&P!==0&&(P=this.length),v>=g.length&&(v=g.length),v||(v=0),P>0&&P<C&&(P=C),P===C||g.length===0||this.length===0)return 0;if(v<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),g.length-v<P-C&&(P=g.length-v+C);const D=P-C;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(v,C,P):Uint8Array.prototype.set.call(g,this.subarray(C,P),v),D},a.prototype.fill=function(g,v,C,P){if(typeof g=="string"){if(typeof v=="string"?(P=v,v=0,C=this.length):typeof C=="string"&&(P=C,C=this.length),P!==void 0&&typeof P!="string")throw new TypeError("encoding must be a string");if(typeof P=="string"&&!a.isEncoding(P))throw new TypeError("Unknown encoding: "+P);if(g.length===1){const q=g.charCodeAt(0);(P==="utf8"&&q<128||P==="latin1")&&(g=q)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(v<0||this.length<v||this.length<C)throw new RangeError("Out of range index");if(C<=v)return this;v=v>>>0,C=C===void 0?this.length:C>>>0,g||(g=0);let D;if(typeof g=="number")for(D=v;D<C;++D)this[D]=g;else{const q=a.isBuffer(g)?g:a.from(g,P),le=q.length;if(le===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(D=0;D<C-v;++D)this[D+v]=q[D%le]}return this};const Ae={};function st(T,g,v){Ae[T]=class extends v{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(P){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:P,writable:!0})}toString(){return`${this.name} [${T}]: ${this.message}`}}}st("ERR_BUFFER_OUT_OF_BOUNDS",function(T){return T?`${T} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),st("ERR_INVALID_ARG_TYPE",function(T,g){return`The "${T}" argument must be of type number. Received type ${typeof g}`},TypeError),st("ERR_OUT_OF_RANGE",function(T,g,v){let C=`The value of "${T}" is out of range.`,P=v;return Number.isInteger(v)&&Math.abs(v)>2**32?P=lt(String(v)):typeof v=="bigint"&&(P=String(v),(v>BigInt(2)**BigInt(32)||v<-(BigInt(2)**BigInt(32)))&&(P=lt(P)),P+="n"),C+=` It must be ${g}. Received ${P}`,C},RangeError);function lt(T){let g="",v=T.length;const C=T[0]==="-"?1:0;for(;v>=C+4;v-=3)g=`_${T.slice(v-3,v)}${g}`;return`${T.slice(0,v)}${g}`}function Et(T,g,v){Ye(g,"offset"),(T[g]===void 0||T[g+v]===void 0)&&je(g,T.length-(v+1))}function re(T,g,v,C,P,D){if(T>v||T<g){const q=typeof g=="bigint"?"n":"";let le;throw D>3?g===0||g===BigInt(0)?le=`>= 0${q} and < 2${q} ** ${(D+1)*8}${q}`:le=`>= -(2${q} ** ${(D+1)*8-1}${q}) and < 2 ** ${(D+1)*8-1}${q}`:le=`>= ${g}${q} and <= ${v}${q}`,new Ae.ERR_OUT_OF_RANGE("value",le,T)}Et(C,P,D)}function Ye(T,g){if(typeof T!="number")throw new Ae.ERR_INVALID_ARG_TYPE(g,"number",T)}function je(T,g,v){throw Math.floor(T)!==T?(Ye(T,v),new Ae.ERR_OUT_OF_RANGE(v||"offset","an integer",T)):g<0?new Ae.ERR_BUFFER_OUT_OF_BOUNDS:new Ae.ERR_OUT_OF_RANGE(v||"offset",`>= ${v?1:0} and <= ${g}`,T)}const bt=/[^+/0-9A-Za-z-_]/g;function Wt(T){if(T=T.split("=")[0],T=T.trim().replace(bt,""),T.length<2)return"";for(;T.length%4!==0;)T=T+"=";return T}function Rt(T,g){g=g||1/0;let v;const C=T.length;let P=null;const D=[];for(let q=0;q<C;++q){if(v=T.charCodeAt(q),v>55295&&v<57344){if(!P){if(v>56319){(g-=3)>-1&&D.push(239,191,189);continue}else if(q+1===C){(g-=3)>-1&&D.push(239,191,189);continue}P=v;continue}if(v<56320){(g-=3)>-1&&D.push(239,191,189),P=v;continue}v=(P-55296<<10|v-56320)+65536}else P&&(g-=3)>-1&&D.push(239,191,189);if(P=null,v<128){if((g-=1)<0)break;D.push(v)}else if(v<2048){if((g-=2)<0)break;D.push(v>>6|192,v&63|128)}else if(v<65536){if((g-=3)<0)break;D.push(v>>12|224,v>>6&63|128,v&63|128)}else if(v<1114112){if((g-=4)<0)break;D.push(v>>18|240,v>>12&63|128,v>>6&63|128,v&63|128)}else throw new Error("Invalid code point")}return D}function mt(T){const g=[];for(let v=0;v<T.length;++v)g.push(T.charCodeAt(v)&255);return g}function Sr(T,g){let v,C,P;const D=[];for(let q=0;q<T.length&&!((g-=2)<0);++q)v=T.charCodeAt(q),C=v>>8,P=v%256,D.push(P),D.push(C);return D}function wt(T){return t.toByteArray(Wt(T))}function gt(T,g,v,C){let P;for(P=0;P<C&&!(P+v>=g.length||P>=T.length);++P)g[P+v]=T[P];return P}function He(T,g){return T instanceof g||T!=null&&T.constructor!=null&&T.constructor.name!=null&&T.constructor.name===g.name}function St(T){return T!==T}const nt=function(){const T="0123456789abcdef",g=new Array(256);for(let v=0;v<16;++v){const C=v*16;for(let P=0;P<16;++P)g[C+P]=T[v]+T[P]}return g}();function Ke(T){return typeof BigInt>"u"?Tr:T}function Tr(){throw new Error("BigInt not supported")}}(Ps)),Ps}(function(e,t){(function(r,n){e.exports=n(TE(),BE(),jE(),ih(),YE,db(),mb())})(ue,function(r,n,o,i,s,a,l){return function(){var f={809:function(c){c.exports=r},30:function(c){c.exports=n},36:function(c){c.exports=o},300:function(c){c.exports=i},408:function(c){c.exports=l},25:function(c){c.exports=s},130:function(c){c.exports=a}},u={};function h(c){var p=u[c];if(p!==void 0)return p.exports;var m=u[c]={exports:{}};return f[c](m,m.exports,h),m.exports}h.n=function(c){var p=c&&c.__esModule?function(){return c.default}:function(){return c};return h.d(p,{a:p}),p},h.d=function(c,p){for(var m in p)h.o(p,m)&&!h.o(c,m)&&Object.defineProperty(c,m,{enumerable:!0,get:p[m]})},h.o=function(c,p){return Object.prototype.hasOwnProperty.call(c,p)},h.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var d={};return function(){h.r(d),h.d(d,{assets:function(){return M},auth:function(){return K},buildAnswer:function(){return Bg},buildCarouselCard:function(){return kg},buildQuestion:function(){return Be},carouselCards:function(){return En},contentInteraction:function(){return Ke},decodeBase64:function(){return Dg},default:function(){return Ug},editorialPages:function(){return j},features:function(){return v},getEntries:function(){return c.getEntries},getEntry:function(){return c.getEntry},management:function(){return Or},payments:function(){return Rr},people:function(){return Pt},peopleEngagement:function(){return fr},qaQuestions:function(){return Xe},reportError:function(){return p.reportError},search:function(){return vn}});var c=h(809),p=h(30),m=h(36),E={APOLITICAL:{WEBSITES:{LIVE:"https://apolitical.co",LOCALHOST:"localhost",STAGING:/https:\/\/([\w|\d|-]+)\.apolitical\.co/i,STAGING_SPLITTER:"-"},ENVIRONMENTS:{PRODUCTION:"live",LOCAL:"local"}},APIS:{ASSETS_API:{BASE_URL:"/api/assets-api",ENDPOINTS:{USERS:"/users",CERTIFICATES:"/certificates"}},AUTH_API:{BASE_URL:"/api/auth-api",ENDPOINTS:{USER_PASSWORD:"/password",USERS:"/users"}},CONTENT_INTERACTION_API:{BASE_URL:"/api/content-interaction-api",ENDPOINTS:{QUESTIONS:"/questions",ANSWERS:"/answers",REPLIES:"/replies",LIKES:"/likes"}},FEATURES_API:{BASE_URL:"/api/features-api",ENDPOINTS:{FLAGS:"/features"}},MANAGEMENT_API:{BASE_URL:"/api/management-api",ENDPOINTS:{ACCOUNTS:"/accounts",EVENT_REGISTRATIONS:"/event-registrations",LOGINS:"/logins",LOGIN_PASSWORDLESS:"/passwordless",BULK_ENROLMENTS:"/bulk-enrolments"}},PAYMENTS_API:{BASE_URL:"/api/payments-api",BASE_URL_V2:"/api/payments-api/v2",ENDPOINTS:{PRODUCTS:"/products"}},PEOPLE_API:{BASE_URL:"/api/people-api",BASE_URL_V2:"/api/people-api/v2",ENDPOINTS:{BULK_ENROLMENTS:"/bulk-enrolments",REGISTRATIONS:"/registrations",USERS:"/users",USER_ANSWERS:"/answers",USER_COURSES:"/courses",USER_EVENTS:"/events",USER_LIKES:"/likes",USER_LESSONS:"/lessons",USER_PRODUCTS:"/products",USER_RATINGS:"/ratings",USER_SUBSCRIPTIONS:"/subscriptions"}},PEOPLE_ENGAGEMENT_API:{BASE_URL:"/api/people-engagement-api",ENDPOINTS:{ENQUIRY_EMAILS:"/enquiry-emails",USERS:"/users",USER_PROPERTIES:"/properties"}},SEARCH_API:{BASE_URL:"/api/search-api",ENDPOINTS:{SEARCH:"/search"}}},CONTENTFUL:{ARTICLES:{TYPE:"solutionArticle"},CAROUSELS:{CARD_TYPES:{solutionArticle:{INCLUDE:1,SELECT:"fields.authorIds,fields.authorTag,fields.image,fields.publishedDate,fields.readingTime,fields.slug,fields.title"},microcourse:{INCLUDE:2,SELECT:"fields.banner,fields.freeCourse,fields.partnershipDetails,fields.slug,fields.title"},event:{INCLUDE:1,SELECT:"fields.bannerImage,fields.defaultStartDate,fields.slug,fields.speakers,fields.title,fields.isEventOngoing"},listPage:{INCLUDE:1,SELECT:"fields.hero,fields.slug,fields.title"},qaQuestion:{INCLUDE:0,SELECT:"fields.answers,fields.authorId,fields.slug,fields.title,sys.createdAt,fields.projectNames"},learningHub:{INCLUDE:1,SELECT:"fields.bannerSection,fields.customLabel,fields.slug,fields.title"}}},COURSES:{TYPE:"microcourse"},EDITORIAL_PAGES:{INCLUDE:1,SELECT:"fields.carousels,fields.slug",TYPE:"editorialPage"},EVENTS:{TYPE:"event"},LISTS:{TYPE:"listPage"},QUESTIONS:{TYPE:"qaQuestion",INCLUDE:1,LIMIT:10,ORDER:"-sys.createdAt",SELECT:"sys.createdAt,sys.updatedAt,fields.title,fields.slug,fields.authorId,fields.answers,fields.isEdited,fields.projectNames",SKIP:0},ANSWERS:{TYPE:"qaAnswer"},REPLIES:{TYPE:"reply"},LEARNING_HUB:{TYPE:"learningHub"}},HUBSPOT:{ENVIRONMENTS_MAPPING:{local:"SANDBOX",beta:"SANDBOX",rc:"SANDBOX",live:"LIVE"},EMAIL_IDS:{SANDBOX:{internalEmailId:49099078634,externalEmailId:55196526554},LIVE:{internalEmailId:55233583049,externalEmailId:55231159239}}},USERS:{MYSELF:"me"}};const{APOLITICAL:{WEBSITES:{LIVE:S,LOCALHOST:_,STAGING:b,STAGING_SPLITTER:A},ENVIRONMENTS:{PRODUCTION:w,LOCAL:N}}}=E,{HUBSPOT:{ENVIRONMENTS_MAPPING:F,EMAIL_IDS:B}}=E;let G={emailIds:{}};var z=h(300),W=h.n(z);const H=async I=>{try{const{message:k,response:L,request:$}=I;let ee=k;return L?ee+=` - The request was made and the server responded with ${JSON.stringify({status:L.status,data:L.data})}`:$&&(ee+=" - The request was made but no response was received"),console.warn(ee),await(0,p.reportError)(new Error(ee)),ee}catch(k){return console.warn(`Cannot handle error: ${k.message}`),k.message}},{APIS:{ASSETS_API:{BASE_URL:Y,ENDPOINTS:{USERS:te,CERTIFICATES:Q}}}}=E;var M={certificates:{create:async(I,k)=>{let L=[];try{const{data:$}=await W().post(`${Y}${te}/${I}${Q}`,k);$&&(L=$)}catch($){await H($)}return L}}};const{APIS:{AUTH_API:{BASE_URL:V,ENDPOINTS:{USER_PASSWORD:Z,USERS:de}}},USERS:{MYSELF:X}}=E;var K={userPassword:{update:async I=>{let k=null;try{k=await W().put(`${V}${de}/${X}${Z}`,I)}catch(L){k={message:(((L||{}).response||{}).data||{}).message},await H(L)}return k}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:se,ENDPOINTS:{ANSWERS:ce,QUESTIONS:Fe,LIKES:J}}}}=E,ie=`${se}${Fe}`;var Pe={create:async({questionSlug:I},k)=>{try{await W().post(`${ie}/${encodeURIComponent(I)}${ce}`,k)}catch(L){const $=await H(L);throw new Error($)}},remove:async({questionSlug:I,answerSlug:k})=>{try{await W().delete(`${ie}/${encodeURIComponent(I)}${ce}/${encodeURIComponent(k)}`)}catch(L){const $=await H(L);throw new Error($)}},update:async({questionSlug:I,answerSlug:k},L)=>{try{return await W().put(`${ie}/${encodeURIComponent(I)}${ce}/${encodeURIComponent(k)}`,L)}catch($){const ee=await H($);throw new Error(ee)}},like:async({questionSlug:I,answerSlug:k},L)=>{try{return await W().post(`${ie}/${encodeURIComponent(I)}${ce}/${encodeURIComponent(k)}${J}`,L)}catch($){const ee=await H($);throw new Error(ee)}},unlike:async({questionSlug:I,answerSlug:k})=>{try{return await W().delete(`${ie}/${encodeURIComponent(I)}${ce}/${encodeURIComponent(k)}${J}`)}catch(L){const $=await H(L);throw new Error($)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Ae,ENDPOINTS:{QUESTIONS:st}}}}=E,lt=`${Ae}${st}`;var Et={create:async I=>{try{return await W().post(lt,I)}catch(k){const L=await H(k);throw new Error(L)}},remove:async({questionSlug:I})=>{try{await W().delete(`${lt}/${encodeURIComponent(I)}`)}catch(k){const L=await H(k);throw new Error(L)}},update:async({questionSlug:I},k)=>{try{return await W().put(`${lt}/${encodeURIComponent(I)}`,k)}catch(L){const $=await H(L);throw new Error($)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:re,ENDPOINTS:{REPLIES:Ye,ANSWERS:je,QUESTIONS:bt,LIKES:Wt}}}}=E,Rt=`${re}${bt}`,mt=({questionSlug:I,answerSlug:k,replySlug:L},$=!1)=>{let ee=`${Rt}/${encodeURIComponent(I)}${je}/${encodeURIComponent(k)}${Ye}`;return L&&(ee=`${ee}/${encodeURIComponent(L)}`,$&&(ee=`${ee}${Wt}`)),ee};var Sr={create:async({questionSlug:I,answerSlug:k},L)=>{try{return await W().post(mt({questionSlug:I,answerSlug:k}),L)}catch($){const ee=await H($);throw new Error(ee)}},update:async({questionSlug:I,answerSlug:k,replySlug:L},$)=>{try{return await W().put(mt({questionSlug:I,answerSlug:k,replySlug:L}),$)}catch(ee){const xe=await H(ee);throw new Error(xe)}},remove:async({questionSlug:I,answerSlug:k,replySlug:L})=>{try{await W().delete(mt({questionSlug:I,answerSlug:k,replySlug:L}))}catch($){const ee=await H($);throw new Error(ee)}},like:async({questionSlug:I,answerSlug:k,replySlug:L},$)=>{try{await W().post(mt({questionSlug:I,answerSlug:k,replySlug:L},!0),$)}catch(ee){const xe=await H(ee);throw new Error(xe)}},unlike:async({questionSlug:I,answerSlug:k,replySlug:L})=>{try{await W().delete(mt({questionSlug:I,answerSlug:k,replySlug:L},!0))}catch($){const ee=await H($);throw new Error(ee)}},getReplyUrl:mt};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:wt,ENDPOINTS:{QUESTIONS:gt,ANSWERS:He,LIKES:St}}}}=E,nt=`${wt}${gt}`;var Ke={answers:Pe,questions:Et,replies:Sr,likes:{create:async(I,k)=>{try{return await W().post(`${nt}/${encodeURIComponent(I)}${He}/${encodeURIComponent(k)}${St}`)}catch(L){const $=await H(L);throw new Error($)}},remove:async(I,k)=>{try{return await W().delete(`${nt}/${encodeURIComponent(I)}${He}/${encodeURIComponent(k)}${St}`)}catch(L){const $=await H(L);throw new Error($)}}}};const{APIS:{FEATURES_API:{BASE_URL:Tr,ENDPOINTS:{FLAGS:T}}}}=E,g=`${Tr}${T}`;var v={flags:{read:async I=>{let k=null;try{const{data:L}=await W().get(`${g}/${encodeURIComponent(I)}`);L!=null&&L.name&&(L!=null&&L.featureState)&&(k=L)}catch(L){await H(L)}return k}}};const{APIS:{MANAGEMENT_API:{BASE_URL:C,ENDPOINTS:{ACCOUNTS:P}}}}=E;var D={create:async I=>{try{await W().post(`${C}${P}`,I)}catch(k){throw await H(k),k}},read:async I=>{let k=null;try{({data:k}=await W().get(`${C}${P}/${encodeURIComponent(I)}`))}catch(L){await H(L)}return k},update:async(I,k)=>{try{await W().put(`${C}${P}/${encodeURIComponent(I)}`,k)}catch(L){throw await H(L),L}}};const{APIS:{MANAGEMENT_API:{BASE_URL:q,ENDPOINTS:{BULK_ENROLMENTS:le}}}}=E;var we={create:async I=>{try{await W().post(`${q}${le}`,I)}catch(k){throw await H(k),k}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Se,ENDPOINTS:{EVENT_REGISTRATIONS:Te}}}}=E;var he={create:async I=>{try{await W().post(`${Se}${Te}`,I)}catch(k){const L=await H(k);throw new Error(L)}}};const{APIS:{MANAGEMENT_API:{BASE_URL:ft,ENDPOINTS:{LOGINS:ar,LOGIN_PASSWORDLESS:xr}}}}=E,Vt=`${ft}${ar}`;var Or={accounts:D,bulkEnrolments:we,eventRegistrations:he,passwordless:{update:async I=>{try{await W().put(`${Vt}/${encodeURIComponent(I)}${xr}`)}catch(k){throw await H(k),k}}}};const{APIS:{PAYMENTS_API:{BASE_URL_V2:zt,ENDPOINTS:{PRODUCTS:Ar}}}}=E,Cr=`${zt}${Ar}`;var Rr={products:{list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await W().get(Cr,L);$&&$.length&&(k=$)}catch($){await H($)}return k}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Nt,ENDPOINTS:{BULK_ENROLMENTS:sn}}}}=E;var Tt={list:async I=>{let k=[];try{const{data:L}=await W().get(`${Nt}${sn}`,{params:I});L&&L.length&&(k=L)}catch(L){await H(L)}return k}},jn=h(25);const{OK:Hn,MULTIPLE_CHOICES:qn,NOT_FOUND:un,FORBIDDEN:Nr}=jn.StatusCodes,De=I=>I>=Hn&&I<qn||I===Nr||I===un,{APIS:{PEOPLE_API:{BASE_URL_V2:Pr,ENDPOINTS:{USERS:Ir}}}}=E,Yt=async I=>{let k=null;try{const{data:L}=await W().get(`${Pr}${Ir}/${encodeURIComponent(I)}`,{validateStatus:De});L&&L.id&&(k=L)}catch(L){await H(L)}return k},cn=async I=>{let k=[];try{if(I&&I.length<2)throw new Error("users list method requires at least two ids");const L=I.map(ee=>`ids=${encodeURIComponent(ee)}`).join("&"),$=await W().get(`${Pr}${Ir}?${L}`,{validateStatus:De});$&&$.length&&(k=$)}catch(L){await H(L)}return k};var Gn={read:Yt,update:async(I,k)=>{let L=!1;try{const{data:$}=await W().put(`${Pr}${Ir}/${encodeURIComponent(I)}`,k);L=!(!$||!$.id)}catch($){await H($)}return L},list:cn};const{APIS:{PEOPLE_API:{BASE_URL_V2:qe,ENDPOINTS:{USERS:Wn,USER_LIKES:Vn}}},USERS:{MYSELF:zn}}=E,Yn=`${qe}${Wn}/${zn}${Vn}`,Lr=async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await W().get(Yn,L);$&&$.length&&(k=$)}catch($){await H($)}return k};var et={list:Lr},Kn={authors:{readQuestionAuthors:async(I,k,L)=>{try{if(I.author=await Yt(I.authorId),I.answers&&I.answers.length&&!L.ignoreAnswersAuthors){I.answers.sort((ee,xe)=>new Date(xe.updatedAt)-new Date(ee.updatedAt)),I.totalAnswers=I.answers.length;let $=I.answers;if(L.limit&&L.pageNumber){const ee=L.limit*(L.pageNumber-1);$=I.answers.slice(ee,ee+L.limit)}for(let ee of $){ee.author=ee.authorId&&await Yt(ee.authorId)||{};const[xe]=k?await Lr({contentType:E.CONTENTFUL.ANSWERS.TYPE,contentSlug:ee.slug}):[null];ee.userLiked=!!xe}I.answers=$}else I.answers||(I.answers=[]);return I}catch($){throw await H($),new Error(`Cannot read authors for question: ${$.message}`)}},readAuthors:async(I=[])=>{let k=[];try{if(Array.isArray(I)===!1)throw new Error("authorIds is not an array!");if(I&&I.length===1){const L=await Yt(I[0]);L&&k.push(L)}else if(I&&I.length>1){const L=await cn(I);L&&L.length>0&&(k=L)}}catch(L){throw await H(L),new Error(`Cannot read authors: ${L.message}`)}return k}}};const{APIS:{PEOPLE_API:{BASE_URL:Qn,ENDPOINTS:{REGISTRATIONS:Xn}}}}=E;var Jn={list:async I=>{let k=[];try{const{data:L}=await W().get(`${Qn}${Xn}`,{params:I});L&&L.length&&(k=L)}catch(L){await H(L)}return k}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Zn,ENDPOINTS:{USERS:sr,USER_COURSES:ln}}},USERS:{MYSELF:ur}}=E,ut=`${Zn}${sr}/${ur}${ln}`;var Mr={create:async I=>{try{await W().post(ut,I)}catch(k){await H(k)}},list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await W().get(ut,L);$&&$.length&&(k=$)}catch($){await H($)}return k},update:async(I,k)=>{try{await W().put(`${ut}/${I}`,k)}catch(L){await H(L)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:ei,ENDPOINTS:{USERS:ti,USER_EVENTS:ri}}},USERS:{MYSELF:ni}}=E,ii=`${ei}${ti}/${ni}${ri}`;var cr={list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await W().get(ii,L);$&&$.length&&(k=$)}catch($){await H($)}return k}};const{APIS:{PEOPLE_API:{BASE_URL_V2:kr,ENDPOINTS:{USERS:Kt,USER_LESSONS:fn}}},USERS:{MYSELF:dn}}=E,hn=`${kr}${Kt}/${dn}${fn}`;var oi={create:async I=>{let k=null;try{k=await W().post(hn,I)}catch(L){await H(L)}return k},list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await W().get(hn,L);$&&$.length&&(k=$)}catch($){await H($)}return k}};const{APIS:{PEOPLE_API:{BASE_URL_V2:ai,ENDPOINTS:{USERS:si,USER_PRODUCTS:Br}}},USERS:{MYSELF:ui}}=E,Fr=`${ai}${si}/${ui}${Br}`;var Qt={create:async I=>{let k=null;try{k=await W().post(Fr,I)}catch(L){await H(L)}return k},list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await W().get(Fr,L);$&&$.length&&(k=$)}catch($){await H($)}return k},update:async(I,k)=>{try{await W().put(`${Fr}/${I}`,k)}catch(L){await H(L)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:dt,ENDPOINTS:{USERS:xt,USER_RATINGS:Ot}}},USERS:{MYSELF:ci}}=E,ht=`${dt}${xt}/${ci}${Ot}`;var Pt={bulkEnrolments:Tt,handlers:Kn,registrations:Jn,users:Gn,userCourses:Mr,userEvents:cr,userLessons:oi,userLikes:et,userProducts:Qt,userRatings:{create:async I=>{let k=null;try{const{data:L}=await W().post(ht,I);L!=null&&L.id&&(k=L)}catch(L){await H(L)}return k},update:async(I,k)=>{try{await W().put(`${ht}/${I}`,k)}catch(L){await H(L)}}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:li,ENDPOINTS:{ENQUIRY_EMAILS:fi}}}}=E;var di={create:async I=>{let k=null;try{const{data:L}=await W().post(`${li}${fi}`,I);L&&(k=L)}catch(L){await H(L)}return k}},pn={forms:{sendEnquiryEmails:async I=>{let k=null;try{const{emailIds:L}=G;k=await fr.emails.create({...L,...I})}catch(L){await H(L)}return k}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:Qe,ENDPOINTS:{USERS:mn,USER_PROPERTIES:gn}}},USERS:{MYSELF:lr}}=E;var fr={emails:di,handlers:pn,userProperties:{update:async(I,k)=>{try{await W().put(`${Qe}${mn}/${lr}${gn}/${I}`,k)}catch(L){await H(L)}}}},dr=h(130);const{APIS:{SEARCH_API:{BASE_URL:hi,ENDPOINTS:{SEARCH:yn}}}}=E,Dr=`${hi}${yn}`;var vn={ask:async I=>{try{let k=null;const{data:L}=await W().get(Dr,{params:{question:I}});return L!=null&&L.answer&&(L!=null&&L.references)&&(L!=null&&L.version)&&(k=L),k}catch(k){const L=await H(k);throw new Error(L)}},stream:(I,k,L)=>{const $=(0,dr.io)(void 0,{path:"/api/search-api/web-sockets"});function ee(){$.emit("search",{question:I})}function xe(ke){L(ke),Ie(),$.disconnect()}function Ie(){$.off("connect",ee),$.off("update",k),$.off("result",xe)}return $.on("connect",ee),$.on("update",k),$.on("result",xe),Ie}};const{CONTENTFUL:yt}=E,{CARD_TYPES:Ur}=yt.CAROUSELS;var En={read:async(I,k)=>{try{if(!k||!k.sys||!k.sys.id)throw new Error("Invalid link to card");if(!I||!Ur[I])throw new Error("Unsupported card content type");const{INCLUDE:L,SELECT:$}=Ur[I];return await(0,c.getEntry)({content_type:I,"sys.id":k.sys.id,include:L,select:$},{assetDetails:!0})}catch(L){throw await H(L),new Error(`Cannot read carousel card: ${L.message}`)}}};const{CONTENTFUL:pi}=E,{INCLUDE:y,SELECT:x,TYPE:R}=pi.EDITORIAL_PAGES;var j={read:async I=>{try{return await(0,c.getEntry)({content_type:R,"fields.slug":I,include:y,select:x})}catch(k){throw await H(k),new Error(`Cannot read editorial page: ${k.message}`)}}};const{CONTENTFUL:fe}=E,{TYPE:ae,ORDER:pe,SELECT:me,SKIP:Me,LIMIT:be,INCLUDE:Ge}=fe.QUESTIONS;var Xe={read:async I=>{try{return await(0,c.getEntry)({content_type:ae,"fields.slug":I,include:2,select:me})}catch(k){throw await H(k),new Error(`Cannot read question: ${k.message}`)}},list:async(I={})=>{try{return await(0,c.getEntries)({content_type:ae,include:Ge,limit:be,order:pe,select:me,skip:Me,...I})}catch(k){throw await H(k),new Error(`Cannot list questions: ${k.message}`)}}},Be=async(I,k,L={ignoreAnswersAuthors:!1})=>{try{let $={};return $=await Xe.read(I),$=await Pt.handlers.authors.readQuestionAuthors($,k,L),$}catch($){throw await H($),new Error(`Cannot build question: ${$.message}`)}};const{ARTICLES:{TYPE:We},COURSES:{TYPE:$e},EVENTS:{TYPE:It},LISTS:{TYPE:At},QUESTIONS:{TYPE:Xt},LEARNING_HUB:{TYPE:oo}}=E.CONTENTFUL,Lt=I=>I&&I.url?(Object.assign(I,{aspect:"responsiveCard",query:"q=90&fit=fill"}),I):null,hr={[We]:async I=>{const{authorIds:k,authorTag:L,image:$,publishedDate:ee,readingTime:xe,slug:Ie,title:ke}=I,pt=await Pt.handlers.authors.readAuthors(k),Mt=pt&&pt.length?pt:L?[L]:null;return{banner:Lt($),contributors:Mt,publishedDate:ee,readingTime:xe,slug:Ie,title:ke}},[$e]:async(I,k)=>{const{banner:L,freeCourse:$,partnershipDetails:ee,slug:xe,title:Ie,registered:ke}=I,pt={banner:Lt(L),slug:xe,title:Ie,pill:$?"free":"premium",registered:!!ke};if(ee){const{partners:Mt}=ee;pt.partner=Mt&&Mt.length&&ee.partners[0]}if(ke===void 0&&k){const[Mt]=await Pt.userProducts.list({courseSlug:xe,isEnrolled:!0,scope:"active"});pt.registered=!!Mt}return pt},[It]:async(I,k)=>{const{bannerImage:L,defaultStartDate:$,isEventOngoing:ee,slug:xe,speakers:Ie,title:ke,registered:pt}=I,Mt=new Date($),$g=!!Mt&&Mt<new Date;if(Ie&&Ie.length)for(const ao of Ie)ao.image=(pa=ao.image)&&pa.url?`${pa.url}?w=100&h=100&fit=thumb&f=center`:null;var pa;const vc={banner:Lt(L),dateHasPassed:$g,title:ke,slug:xe,isOngoingEvent:ee,contributors:Ie,startDate:Mt,registered:!!pt};if(pt===void 0&&k){const[ao]=await Pt.userEvents.list({eventSlug:xe});vc.registered=!!ao}return vc},[At]:async I=>{const{hero:k,slug:L,title:$}=I;return{banner:Lt(k),slug:L,title:$}},[Xt]:async I=>{const{answers:k,authorId:L,createdAt:$,slug:ee,title:xe}=I;let Ie=null;if(L){const ke=await Pt.users.read(L);ke&&(Ie=ke)}return{answers:k&&k.length?k.length:0,contributors:Ie?[Ie]:[],createdAt:$,slug:ee,title:xe}},[oo]:I=>{const{bannerSection:k,customLabel:L,slug:$,title:ee}=I;return{banner:Lt(k.image),slug:$,title:ee,customLabel:L}},people:I=>{const{id:k,name:L,jobTitle:$,location:ee,image:xe}=I;return{profile:xe,slug:k,title:L,text:$,secondaryText:ee}}};var kg=async({contentType:I,...k}={},L)=>{try{if(!hr[I])throw new Error("Content type not supported");if(typeof hr[I]!="function")throw new Error("No builder function for content type");return I!=="people"&&k.sys&&k.sys.type&&k.sys.type==="Link"&&(k=await En.read(I,k)),{contentType:I,...await hr[I](k,L)}}catch($){throw await H($),new Error(`Cannot build carousel card: ${$.message}`)}},Bg=async(I,k,L={})=>{try{if(!I.replies||I.replies.length===0)return I.replies=[],I;I.replies.sort((ee,xe)=>new Date(ee.createdAt)-new Date(xe.createdAt)),I.totalReplies=I.totalReplies||I.replies.length;let $=I.replies;if(L.limit&&L.pageNumber){const ee=L.limit*(L.pageNumber-1);$=I.replies.slice(ee,ee+L.limit)}for(const ee of $){if(ee.authorId===I.authorId){ee.author=I.author,ee.userLiked=!1;continue}ee.author=ee.authorId&&await Yt(ee.authorId)||{};const[xe]=k?await Lr({contentType:E.CONTENTFUL.REPLIES.TYPE,contentSlug:ee.slug}):[null];ee.userLiked=!!xe}return I.replies=$,I}catch($){throw await H($),new Error(`Cannot build replies for answer: ${$.message}`)}},Fg=h(408);const Dg=I=>I&&Fg.Buffer.from(I,"base64").toString("ascii");function Ug({contentContext:I=null,errorsContext:k=null,gtmContext:L=null,origin:$}){try{const ee=(xe=>{let Ie=null;xe?Ie=xe:typeof window<"u"&&(Ie=window.origin||window.location.origin),Ie||new Error("Cannot select environment: Website not defined");let ke=null;const pt=Ie.match(b);return pt?ke=pt[1].split(A)[0]:Ie===S?ke=w:Ie.includes(_)&&(ke=N),ke||new Error(`Cannot select environment: No rule for website ${Ie}`),ke})($);return I&&(0,c.setContext)(Object.assign({},I,{environment:ee})),k&&(0,p.setContext)(Object.assign({},k,{environment:ee})),L&&((0,m.setContext)(Object.assign({},L,{environment:ee})),(0,m.setupGTM)()),(({environment:xe})=>{const Ie=(ke=>{if(!ke)throw new Error("Cannot map environment: Environment not defined");if(!F[ke])throw new Error(`Cannot map environment: No mapping found for environment ${ke}`);return F[ke]})(xe);G.emailIds=B[Ie]})(Object.assign({},{environment:ee})),ee}catch(ee){console.warn(`Cannot load SDK: ${ee.message}`)}}}(),d}()})})(Kd);var gb=Kd.exports;const Ui={Off:"off",On:"on",Cookie:"cookie"},yb=e=>{const[t]=Yd(),[r,n]=U.useState(null),[o,i]=U.useState(!1),[s,a]=U.useState(Ui.Off);return U.useEffect(()=>{e&&gb.features.flags.read(e).then(l=>{a(l.featureState),n(null)}).catch(l=>{a(Ui.Off),n(l)})},[e]),U.useEffect(()=>{switch(s){case Ui.Off:i(!1);break;case Ui.On:i(!0);break;case Ui.Cookie:i(!!t[`feature-${e}`]);break;default:i(!1)}},[s,t]),{isFeatureActive:o,error:r}};function vb(e,t,r){var n=this,o=U.useRef(null),i=U.useRef(0),s=U.useRef(null),a=U.useRef([]),l=U.useRef(),f=U.useRef(),u=U.useRef(e),h=U.useRef(!0);U.useEffect(function(){u.current=e},[e]);var d=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var c=!!(r=r||{}).leading,p=!("trailing"in r)||!!r.trailing,m="maxWait"in r,E=m?Math.max(+r.maxWait||0,t):null;U.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var S=U.useMemo(function(){var _=function(B){var G=a.current,z=l.current;return a.current=l.current=null,i.current=B,f.current=u.current.apply(z,G)},b=function(B,G){d&&cancelAnimationFrame(s.current),s.current=d?requestAnimationFrame(B):setTimeout(B,G)},A=function(B){if(!h.current)return!1;var G=B-o.current;return!o.current||G>=t||G<0||m&&B-i.current>=E},w=function(B){return s.current=null,p&&a.current?_(B):(a.current=l.current=null,f.current)},N=function B(){var G=Date.now();if(A(G))return w(G);if(h.current){var z=t-(G-o.current),W=m?Math.min(z,E-(G-i.current)):z;b(B,W)}},F=function(){var B=Date.now(),G=A(B);if(a.current=[].slice.call(arguments),l.current=n,o.current=B,G){if(!s.current&&h.current)return i.current=o.current,b(N,t),c?_(o.current):f.current;if(m)return b(N,t),_(o.current)}return s.current||b(N,t),f.current};return F.cancel=function(){s.current&&(d?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,a.current=o.current=l.current=s.current=null},F.isPending=function(){return!!s.current},F.flush=function(){return s.current?w(Date.now()):f.current},F},[c,m,t,E,p,d]);return S}function Wp(e,t,r){var n=r===void 0?{}:r,o=n.leading,i=n.trailing;return vb(e,t,{maxWait:t,leading:o===void 0||o,trailing:i===void 0||i})}let Is;const to=(e=!0,t=!1)=>{if(!e)return;const[r,n]=U.useState(0)||[!1,()=>{}];U.useEffect(()=>(i(),window.addEventListener("resize",s),()=>{clearTimeout(Is),s.flush(),window.removeEventListener("resize",s)}),[]);const o=()=>window.innerWidth,i=()=>{n(o())},s=Wp(()=>{o()!==r&&(t&&(clearTimeout(Is),document.body.classList.add("is-resizing"),Is=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),i())},500,{leading:!0});return r},Vp=({scrollPosition:e=0,offset:t={down:0,up:10},callbacks:{scrollDown:r=()=>{},scrollUp:n=()=>{}}})=>{if(!window)return;const[o,i]=U.useState({current:0,past:0})||[!1,()=>{}],[s,a]=U.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];U.useEffect(()=>(l(),window.addEventListener("scroll",f),()=>{f.flush(),window.removeEventListener("scroll",f)}),[]);const l=()=>{const u=window.scrollY,h=o.current,d=u-h,c=d>0?"down":"up";if(i({current:u,past:h}),c==="down"){u>=e+t.down&&!s.scrollDown&&(!s.scrollUp||d>t.up)&&(r(),a({scrollUp:!1,scrollDown:!0}));return}Math.abs(d)>=t.up&&!s.scrollUp&&(n(),a({scrollUp:!0,scrollDown:!1}))},f=Wp(()=>{l()},250);return o},_b=(e=[],t=!0)=>{e=Array.isArray(e)?e:[e];const r=U.useRef(!1);Jr(()=>{if(window&&window.location&&window.location.hash){if(r.current)return;const n=document.getElementById(window.location.hash.replace("#",""));n&&(n.scrollIntoView(t?{behavior:"smooth"}:null),r.current=!0)}},e)};var Vo={exports:{}};Vo.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",f="[object Error]",u="[object Function]",h="[object GeneratorFunction]",d="[object Map]",c="[object Number]",p="[object Object]",m="[object Promise]",E="[object RegExp]",S="[object Set]",_="[object String]",b="[object Symbol]",A="[object WeakMap]",w="[object ArrayBuffer]",N="[object DataView]",F="[object Float32Array]",B="[object Float64Array]",G="[object Int8Array]",z="[object Int16Array]",W="[object Int32Array]",H="[object Uint8Array]",Y="[object Uint8ClampedArray]",te="[object Uint16Array]",Q="[object Uint32Array]",M=/[\\^$.*+?()[\]{}|]/g,V=/\w*$/,Z=/^\[object .+?Constructor\]$/,de=/^(?:0|[1-9]\d*)$/,X={};X[i]=X[s]=X[w]=X[N]=X[a]=X[l]=X[F]=X[B]=X[G]=X[z]=X[W]=X[d]=X[c]=X[p]=X[E]=X[S]=X[_]=X[b]=X[H]=X[Y]=X[te]=X[Q]=!0,X[f]=X[u]=X[A]=!1;var K=typeof ue=="object"&&ue&&ue.Object===Object&&ue,se=typeof self=="object"&&self&&self.Object===Object&&self,ce=K||se||Function("return this")(),Fe=t&&!t.nodeType&&t,J=Fe&&!0&&e&&!e.nodeType&&e,ie=J&&J.exports===Fe;function Pe(y,x){return y.set(x[0],x[1]),y}function Ae(y,x){return y.add(x),y}function st(y,x){for(var R=-1,j=y?y.length:0;++R<j&&x(y[R],R,y)!==!1;);return y}function lt(y,x){for(var R=-1,j=x.length,fe=y.length;++R<j;)y[fe+R]=x[R];return y}function Et(y,x,R,j){var fe=-1,ae=y?y.length:0;for(j&&ae&&(R=y[++fe]);++fe<ae;)R=x(R,y[fe],fe,y);return R}function re(y,x){for(var R=-1,j=Array(y);++R<y;)j[R]=x(R);return j}function Ye(y,x){return y==null?void 0:y[x]}function je(y){var x=!1;if(y!=null&&typeof y.toString!="function")try{x=!!(y+"")}catch{}return x}function bt(y){var x=-1,R=Array(y.size);return y.forEach(function(j,fe){R[++x]=[fe,j]}),R}function Wt(y,x){return function(R){return y(x(R))}}function Rt(y){var x=-1,R=Array(y.size);return y.forEach(function(j){R[++x]=j}),R}var mt=Array.prototype,Sr=Function.prototype,wt=Object.prototype,gt=ce["__core-js_shared__"],He=function(){var y=/[^.]+$/.exec(gt&>.keys&>.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),St=Sr.toString,nt=wt.hasOwnProperty,Ke=wt.toString,Tr=RegExp("^"+St.call(nt).replace(M,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=ie?ce.Buffer:void 0,g=ce.Symbol,v=ce.Uint8Array,C=Wt(Object.getPrototypeOf,Object),P=Object.create,D=wt.propertyIsEnumerable,q=mt.splice,le=Object.getOwnPropertySymbols,we=T?T.isBuffer:void 0,Se=Wt(Object.keys,Object),Te=dt(ce,"DataView"),he=dt(ce,"Map"),ft=dt(ce,"Promise"),ar=dt(ce,"Set"),xr=dt(ce,"WeakMap"),Vt=dt(Object,"create"),Or=Qe(Te),zt=Qe(he),Ar=Qe(ft),Cr=Qe(ar),Rr=Qe(xr),Nt=g?g.prototype:void 0,sn=Nt?Nt.valueOf:void 0;function Tt(y){var x=-1,R=y?y.length:0;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function jn(){this.__data__=Vt?Vt(null):{}}function Hn(y){return this.has(y)&&delete this.__data__[y]}function qn(y){var x=this.__data__;if(Vt){var R=x[y];return R===n?void 0:R}return nt.call(x,y)?x[y]:void 0}function un(y){var x=this.__data__;return Vt?x[y]!==void 0:nt.call(x,y)}function Nr(y,x){var R=this.__data__;return R[y]=Vt&&x===void 0?n:x,this}Tt.prototype.clear=jn,Tt.prototype.delete=Hn,Tt.prototype.get=qn,Tt.prototype.has=un,Tt.prototype.set=Nr;function De(y){var x=-1,R=y?y.length:0;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Pr(){this.__data__=[]}function Ir(y){var x=this.__data__,R=ur(x,y);if(R<0)return!1;var j=x.length-1;return R==j?x.pop():q.call(x,R,1),!0}function Yt(y){var x=this.__data__,R=ur(x,y);return R<0?void 0:x[R][1]}function cn(y){return ur(this.__data__,y)>-1}function Gn(y,x){var R=this.__data__,j=ur(R,y);return j<0?R.push([y,x]):R[j][1]=x,this}De.prototype.clear=Pr,De.prototype.delete=Ir,De.prototype.get=Yt,De.prototype.has=cn,De.prototype.set=Gn;function qe(y){var x=-1,R=y?y.length:0;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Wn(){this.__data__={hash:new Tt,map:new(he||De),string:new Tt}}function Vn(y){return Qt(this,y).delete(y)}function zn(y){return Qt(this,y).get(y)}function Yn(y){return Qt(this,y).has(y)}function Lr(y,x){return Qt(this,y).set(y,x),this}qe.prototype.clear=Wn,qe.prototype.delete=Vn,qe.prototype.get=zn,qe.prototype.has=Yn,qe.prototype.set=Lr;function et(y){this.__data__=new De(y)}function Kn(){this.__data__=new De}function Qn(y){return this.__data__.delete(y)}function Xn(y){return this.__data__.get(y)}function Jn(y){return this.__data__.has(y)}function Zn(y,x){var R=this.__data__;if(R instanceof De){var j=R.__data__;if(!he||j.length<r-1)return j.push([y,x]),this;R=this.__data__=new qe(j)}return R.set(y,x),this}et.prototype.clear=Kn,et.prototype.delete=Qn,et.prototype.get=Xn,et.prototype.has=Jn,et.prototype.set=Zn;function sr(y,x){var R=fr(y)||lr(y)?re(y.length,String):[],j=R.length,fe=!!j;for(var ae in y)(x||nt.call(y,ae))&&!(fe&&(ae=="length"||li(ae,j)))&&R.push(ae);return R}function ln(y,x,R){var j=y[x];(!(nt.call(y,x)&&gn(j,R))||R===void 0&&!(x in y))&&(y[x]=R)}function ur(y,x){for(var R=y.length;R--;)if(gn(y[R][0],x))return R;return-1}function ut(y,x){return y&&Br(x,_n(x),y)}function Mr(y,x,R,j,fe,ae,pe){var me;if(j&&(me=ae?j(y,fe,ae,pe):j(y)),me!==void 0)return me;if(!yt(y))return y;var Me=fr(y);if(Me){if(me=ci(y),!x)return si(y,me)}else{var be=Ot(y),Ge=be==u||be==h;if(yn(y))return cr(y,x);if(be==p||be==i||Ge&&!ae){if(je(y))return ae?y:{};if(me=ht(Ge?{}:y),!x)return ui(y,ut(me,y))}else{if(!X[be])return ae?y:{};me=Pt(y,be,Mr,x)}}pe||(pe=new et);var Xe=pe.get(y);if(Xe)return Xe;if(pe.set(y,me),!Me)var Be=R?Fr(y):_n(y);return st(Be||y,function(We,$e){Be&&($e=We,We=y[$e]),ln(me,$e,Mr(We,x,R,j,$e,y,pe))}),me}function ei(y){return yt(y)?P(y):{}}function ti(y,x,R){var j=x(y);return fr(y)?j:lt(j,R(y))}function ri(y){return Ke.call(y)}function ni(y){if(!yt(y)||di(y))return!1;var x=Dr(y)||je(y)?Tr:Z;return x.test(Qe(y))}function ii(y){if(!pn(y))return Se(y);var x=[];for(var R in Object(y))nt.call(y,R)&&R!="constructor"&&x.push(R);return x}function cr(y,x){if(x)return y.slice();var R=new y.constructor(y.length);return y.copy(R),R}function kr(y){var x=new y.constructor(y.byteLength);return new v(x).set(new v(y)),x}function Kt(y,x){var R=x?kr(y.buffer):y.buffer;return new y.constructor(R,y.byteOffset,y.byteLength)}function fn(y,x,R){var j=x?R(bt(y),!0):bt(y);return Et(j,Pe,new y.constructor)}function dn(y){var x=new y.constructor(y.source,V.exec(y));return x.lastIndex=y.lastIndex,x}function hn(y,x,R){var j=x?R(Rt(y),!0):Rt(y);return Et(j,Ae,new y.constructor)}function oi(y){return sn?Object(sn.call(y)):{}}function ai(y,x){var R=x?kr(y.buffer):y.buffer;return new y.constructor(R,y.byteOffset,y.length)}function si(y,x){var R=-1,j=y.length;for(x||(x=Array(j));++R<j;)x[R]=y[R];return x}function Br(y,x,R,j){R||(R={});for(var fe=-1,ae=x.length;++fe<ae;){var pe=x[fe],me=j?j(R[pe],y[pe],pe,R,y):void 0;ln(R,pe,me===void 0?y[pe]:me)}return R}function ui(y,x){return Br(y,xt(y),x)}function Fr(y){return ti(y,_n,xt)}function Qt(y,x){var R=y.__data__;return fi(x)?R[typeof x=="string"?"string":"hash"]:R.map}function dt(y,x){var R=Ye(y,x);return ni(R)?R:void 0}var xt=le?Wt(le,Object):En,Ot=ri;(Te&&Ot(new Te(new ArrayBuffer(1)))!=N||he&&Ot(new he)!=d||ft&&Ot(ft.resolve())!=m||ar&&Ot(new ar)!=S||xr&&Ot(new xr)!=A)&&(Ot=function(y){var x=Ke.call(y),R=x==p?y.constructor:void 0,j=R?Qe(R):void 0;if(j)switch(j){case Or:return N;case zt:return d;case Ar:return m;case Cr:return S;case Rr:return A}return x});function ci(y){var x=y.length,R=y.constructor(x);return x&&typeof y[0]=="string"&&nt.call(y,"index")&&(R.index=y.index,R.input=y.input),R}function ht(y){return typeof y.constructor=="function"&&!pn(y)?ei(C(y)):{}}function Pt(y,x,R,j){var fe=y.constructor;switch(x){case w:return kr(y);case a:case l:return new fe(+y);case N:return Kt(y,j);case F:case B:case G:case z:case W:case H:case Y:case te:case Q:return ai(y,j);case d:return fn(y,j,R);case c:case _:return new fe(y);case E:return dn(y);case S:return hn(y,j,R);case b:return oi(y)}}function li(y,x){return x=x??o,!!x&&(typeof y=="number"||de.test(y))&&y>-1&&y%1==0&&y<x}function fi(y){var x=typeof y;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?y!=="__proto__":y===null}function di(y){return!!He&&He in y}function pn(y){var x=y&&y.constructor,R=typeof x=="function"&&x.prototype||wt;return y===R}function Qe(y){if(y!=null){try{return St.call(y)}catch{}try{return y+""}catch{}}return""}function mn(y){return Mr(y,!0,!0)}function gn(y,x){return y===x||y!==y&&x!==x}function lr(y){return hi(y)&&nt.call(y,"callee")&&(!D.call(y,"callee")||Ke.call(y)==i)}var fr=Array.isArray;function dr(y){return y!=null&&vn(y.length)&&!Dr(y)}function hi(y){return Ur(y)&&dr(y)}var yn=we||pi;function Dr(y){var x=yt(y)?Ke.call(y):"";return x==u||x==h}function vn(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=o}function yt(y){var x=typeof y;return!!y&&(x=="object"||x=="function")}function Ur(y){return!!y&&typeof y=="object"}function _n(y){return dr(y)?sr(y):ii(y)}function En(){return[]}function pi(){return!1}e.exports=mn})(Vo,Vo.exports);var Eb=Vo.exports;const bb=Ht(Eb);var wb="Expected a function",zp="__lodash_hash_undefined__",Yp=1/0,Sb=9007199254740991,Tb="[object Function]",xb="[object GeneratorFunction]",Ob="[object Symbol]",Ab=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cb=/^\w*$/,Rb=/^\./,Nb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pb=/[\\^$.*+?()[\]{}|]/g,Ib=/\\(\\)?/g,Lb=/^\[object .+?Constructor\]$/,Mb=/^(?:0|[1-9]\d*)$/,kb=typeof ue=="object"&&ue&&ue.Object===Object&&ue,Bb=typeof self=="object"&&self&&self.Object===Object&&self,Qu=kb||Bb||Function("return this")();function Fb(e,t){return e==null?void 0:e[t]}function Db(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Ub=Array.prototype,$b=Function.prototype,Kp=Object.prototype,Ls=Qu["__core-js_shared__"],rd=function(){var e=/[^.]+$/.exec(Ls&&Ls.keys&&Ls.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Qp=$b.toString,ia=Kp.hasOwnProperty,Xp=Kp.toString,jb=RegExp("^"+Qp.call(ia).replace(Pb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nd=Qu.Symbol,Hb=Ub.splice,qb=Jp(Qu,"Map"),Yi=Jp(Object,"create"),id=nd?nd.prototype:void 0,od=id?id.toString:void 0;function Zr(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 Gb(){this.__data__=Yi?Yi(null):{}}function Wb(e){return this.has(e)&&delete this.__data__[e]}function Vb(e){var t=this.__data__;if(Yi){var r=t[e];return r===zp?void 0:r}return ia.call(t,e)?t[e]:void 0}function zb(e){var t=this.__data__;return Yi?t[e]!==void 0:ia.call(t,e)}function Yb(e,t){var r=this.__data__;return r[e]=Yi&&t===void 0?zp:t,this}Zr.prototype.clear=Gb;Zr.prototype.delete=Wb;Zr.prototype.get=Vb;Zr.prototype.has=zb;Zr.prototype.set=Yb;function Dn(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 Kb(){this.__data__=[]}function Qb(e){var t=this.__data__,r=oa(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Hb.call(t,r,1),!0}function Xb(e){var t=this.__data__,r=oa(t,e);return r<0?void 0:t[r][1]}function Jb(e){return oa(this.__data__,e)>-1}function Zb(e,t){var r=this.__data__,n=oa(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Dn.prototype.clear=Kb;Dn.prototype.delete=Qb;Dn.prototype.get=Xb;Dn.prototype.has=Jb;Dn.prototype.set=Zb;function nn(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 ew(){this.__data__={hash:new Zr,map:new(qb||Dn),string:new Zr}}function tw(e){return aa(this,e).delete(e)}function rw(e){return aa(this,e).get(e)}function nw(e){return aa(this,e).has(e)}function iw(e,t){return aa(this,e).set(e,t),this}nn.prototype.clear=ew;nn.prototype.delete=tw;nn.prototype.get=rw;nn.prototype.has=nw;nn.prototype.set=iw;function ow(e,t,r){var n=e[t];(!(ia.call(e,t)&&Zp(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function oa(e,t){for(var r=e.length;r--;)if(Zp(e[r][0],t))return r;return-1}function aw(e){if(!zo(e)||hw(e))return!1;var t=yw(e)||Db(e)?jb:Lb;return t.test(gw(e))}function sw(e,t,r,n){if(!zo(e))return e;t=fw(t,e)?[t]:cw(t);for(var o=-1,i=t.length,s=i-1,a=e;a!=null&&++o<i;){var l=mw(t[o]),f=r;if(o!=s){var u=a[l];f=n?n(u,l,a):void 0,f===void 0&&(f=zo(u)?u:lw(t[o+1])?[]:{})}ow(a,l,f),a=a[l]}return e}function uw(e){if(typeof e=="string")return e;if(Ju(e))return od?od.call(e):"";var t=e+"";return t=="0"&&1/e==-Yp?"-0":t}function cw(e){return em(e)?e:pw(e)}function aa(e,t){var r=e.__data__;return dw(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Jp(e,t){var r=Fb(e,t);return aw(r)?r:void 0}function lw(e,t){return t=t??Sb,!!t&&(typeof e=="number"||Mb.test(e))&&e>-1&&e%1==0&&e<t}function fw(e,t){if(em(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ju(e)?!0:Cb.test(e)||!Ab.test(e)||t!=null&&e in Object(t)}function dw(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function hw(e){return!!rd&&rd in e}var pw=Xu(function(e){e=_w(e);var t=[];return Rb.test(e)&&t.push(""),e.replace(Nb,function(r,n,o,i){t.push(o?i.replace(Ib,"$1"):n||r)}),t});function mw(e){if(typeof e=="string"||Ju(e))return e;var t=e+"";return t=="0"&&1/e==-Yp?"-0":t}function gw(e){if(e!=null){try{return Qp.call(e)}catch{}try{return e+""}catch{}}return""}function Xu(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(wb);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 s=e.apply(this,n);return r.cache=i.set(o,s),s};return r.cache=new(Xu.Cache||nn),r}Xu.Cache=nn;function Zp(e,t){return e===t||e!==e&&t!==t}var em=Array.isArray;function yw(e){var t=zo(e)?Xp.call(e):"";return t==Tb||t==xb}function zo(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function vw(e){return!!e&&typeof e=="object"}function Ju(e){return typeof e=="symbol"||vw(e)&&Xp.call(e)==Ob}function _w(e){return e==null?"":uw(e)}function Ew(e,t,r){return e==null?e:sw(e,t,r)}var bw=Ew;const ww=Ht(bw),Sw=(e,t)=>{Array.isArray(t)||(t=[t]);const r=bb(e);return t.forEach(({type:n,value:o})=>{ww(r,n,o)}),r},tm=e=>{const t=[];return e.forEach(r=>{const n=parseInt(r);isNaN(n)||t.push(n)}),t.sort((r,n)=>r-n)},rm=(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},Tw=(e,t="en")=>new Date(e).toLocaleString(t,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),xw=e=>{let i;try{i=new Date().getTime()-new Date(e).getTime()}catch{return""}const s=i/36e5,a=Math.floor(i/864e5);if(a<1)return s<1?{path:"now"}:{path:"hours",number:Math.floor(s)};if(a<7)return{path:"days",number:a};const l=Math.floor(a/7);return l<=52?{path:"weeks",number:l}:{path:"years",number:Math.floor(a/365)}},Ow=e=>new Promise(t=>setTimeout(t,e)),Zu={apolitical:"Apolitical",breadcrumbs_label:"Go back to:",breadcrumbs_currentPage:"Current page:",card_bootcamp:"Email boot camp",card_ended:"Ended",card_registered:"Registered",card_answers:"{number, plural, =0 {0 answers} one {# answer} other {# answers}}",card_time_ago:"{time} ago",card_time_read:"{time} min read",card_watch:"Watch recording",card_cta_people:"View profile",collapsibleSection_summary:"Find out more",communityDetails_members:"Members",communityDetails_viewAll:"View all",communityDetails_invite:"Invite colleagues",contactFooter_title:"Contact us",contactFooter_text:"We're always open to new ideas, so please reach out to see how we can collaborate.",contactFooter_phone:"+44 203 608 2241",contactFooter_email:"hello@apolitical.co",contactForm_name:"Name",contactForm_email:"Email address",contactForm_organisation:"Government department or organisation",contactForm_interests:"I'm interested in",contactForm_interests_publishingCourse:"Publishing or creating a course",contactForm_interests_buyingCourse:"Buying courses for my team",contactForm_interests_learningExperience:"Customised learning experiences",contactForm_interests_somethingElse:"Something else",contactForm_message:"Message",cookieBanner_title:"Cookies and your privacy",cookieBanner_text:"We take your trust and privacy very seriously. Apolitical uses safe cookies (small files on your device) to run the site. You can reject non-essential cookies, but some site features may not work without them.",cookieBanner_buttons_settings:"Change my settings",cookieBanner_buttons_reject:"Reject all",cookieBanner_buttons_accept:"Accept all",dates_now:"now",dates_hours:"{number}h",dates_days:"{number}d",dates_weeks:"{number}w",dates_years:"{number}y",discussion_action_answer:"answer",discussion_action_comment:"comment",discussion_action_post:"post",discussion_action_response:"response",discussion_action_reply:"reply",discussion_action_question:"question",discussion_edited:"Edited",discussion_delete_title:"Delete {action}",discussion_delete_text:"<p>Are you sure you want to delete your {action}?</p><p>This can't be undone.</p>",discussion_delete_cancel:"Cancel",discussion_delete_delete:"Delete",discussion_delete_error:"We are unable to delete your {action} at the moment. Please try again later or contact us if problem persists.",discussion_reply:"Reply",discussion_report_subject:"Report a post on Apolitical",discussion_report_body:`I'd like to report the {contentType} <{contentSlug}> at {contentUrl}.
|
|
62
|
-
|
|
63
|
-
Please explain why you're reporting this post. Reasons could include: inappropriate language, harassment, spam, hate speech, false information, among others. Include as much detail as you feel comfortable.
|
|
64
|
-
|
|
65
|
-
Thank you for helping to protect the Apolitical community from abusive content.`,discussion_form_title:"Write your {action}",discussion_form_placeholder:"Type your {action} here...",discussion_form_label:"Your {action}",discussion_form_explainer:"Try to make your {action} specific and practical. Be respectful and kind. See our <a>community guidelines</a>",discussion_form_success:"Your {action} has been submitted.",discussion_form_post:"Post",discussion_form_posting:"Posting...",discussion_form_save:"Save",discussion_form_saving:"Saving...",discussion_form_cancel:"Cancel",discussion_form_submitting:"Submitting...",discussion_form_placeholder_post:"Write something...",discussion_form_error:"We are unable to process your {action} right now. Please try again later or contact us if the problem persists",discussion_form_error_tooLong:"Please keep your content to {maxLength, plural, one {1 character} other {# characters}}.",discussion_form_error_tooMany:"You have posted too many times in a row. Please wait and try again.",discussion_form_error_loggedOut:"Please log in to submit your {action}.",discussion_form_error_noPermission:"You do not have permission to {action}.",discussion_form_error_alreadyExists:"This {action} already exists.",discussion_form_title_question:"Start a conversation",discussion_form_placeholder_question:"Ask your question here",discussion_form_explainer_question:"Unsure what you can post? See our <a>community guidelines</a>.",discussion_likes:"{number, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_likes_short:"{number}",discussion_likes_more:"and {number} more...",discussion_likes_like:"Like this {action}",discussion_likes_unlike:"Unlike {action}",discussion_moreMenu_edit:"Edit",discussion_moreMenu_delete:"Delete",discussion_moreMenu_report:"Report",discussion_comments_screenReader:"See {count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_comments:"{count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_responses_answer:"Answers",discussion_responses_comment:"Comments",discussion_responses_title:"{action} ({count})",discussion_responses_empty:"Be the first to respond",discussion_responses_empty_answer:"Be the first to answer this question",discussion_thread_show:"Show {count, plural, =0 {replies} one {# reply} other {# replies}}",discussion_thread_hide:"Hide replies",emailHelperTextBox_fallback_title:"Who can join",emailHelperTextBox_fallback_text:"Apolitical is a private community for public servants and policymakers.",emailHelperTextBox_default_title:"Who can join",emailHelperTextBox_default_text:"Apolitical is a private community for public servants and policymakers. <link>Learn more</link>.",emailHelperTextBox_autoApproved_title:"Email check",emailHelperTextBox_autoApproved_text:"Great! Looks like you are using a **government email domain we recognise.** You will be **auto-approved** once you sign up.",emailHelperTextBox_unrecognisedEmail_title:"Not a recognised government email",emailHelperTextBox_unrecognisedEmail_text:"To confirm you work in government or policy, please add more details below. <link>Learn more</link>.",emailHelperTextBox_pendingApproval_title:"Email is pending approval",emailHelperTextBox_pendingApproval_text:"Looks like this email has been used to sign up to Apolitical before, but <strong>we have not yet approved it.</strong> If you cannot wait to join, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_emailUnverified_title:"Hello again!",emailHelperTextBox_emailUnverified_text:"It looks like you're already an Apolitical member. To access your account, please verify your email address. <link>Click here to get a verification code sent to your email</link>.",emailHelperTextBox_emailAlreadyExists_title:"Email is already registered",emailHelperTextBox_emailAlreadyExists_text:"Looks like this email has been used to sign up to Apolitical before, try <link>logging in</link> instead. If you're still having issues, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_error_verificationFailedToSend_title:"Verification code failed to send",emailHelperTextBox_error_verificationFailedToSend_text:"Error details: <em>{error}</em>{br}<link>Click here to try again</link>.{br}If you continue to have problems, contact us at <mail>concierge@apolitical.co</mail>",emailHelperTextBox_error_noFunction:"Cannot resend verification code.",filters_all:"Show all",filters_disabled:"{name} - no results",footer_platform:"Platform",footer_platform_events:"Events",footer_platform_courses:"Courses",footer_platform_qanda:"Q&A",footer_platform_articles:"Articles",footer_community:"Community",footer_community_support:"Support FAQ",footer_community_post:"Post on Apolitical",footer_community_join:"Who can join",footer_community_guidelines:"Guidelines & values",footer_company:"Company",footer_company_story:"Our story",footer_company_team:"Meet our team",footer_company_careers:"Careers",footer_company_partner:"Partner with us",footer_company_contact:"Get in touch",footer_legal:"Legal",footer_legal_privacy:"Privacy policy",footer_legal_terms:"Terms & conditions",footer_legal_cookie:"Cookie policy",footer_legal_accessibility:"Accessibility statement",footer_legal_dataProtection:"Data protection officer",footer_legal_euDataProtection:"EU data protection officer",footer_contact:"Contact",footer_contact_correspondence:"Correspondence address",footer_contact_correspondence_address:"251 Southwark Bridge Road{br}London, SE1 6FL{br}United Kingdom",footer_contact_registered:"Registered address",footer_contact_registered_address:"20–22 Wenlock Road{br}London, N1 7GU{br}United Kingdom",footer_contact_berlin:"Berlin address",footer_contact_berlin_address:"Torstraße 220{br}10115 Berlin{br}Germany",footer_contact_support:"For platform support",footer_contact_business:"For business inquiries",footer_social_linkedin:"LinkedIn",footer_social_twitter:"Twitter",footer_social_facebook:"Facebook",footer_copyright:"Copyright © {currentYear} Apolitical Group Limited",form_fieldWrapper_required:"required",form_fieldWrapper_characterLimit:"Character limit:",form_error_generalError:"Sorry, something has gone. Please refresh the page and try again.",form_error_required:"Please fill in this required field",form_error_numbers:"Numbers are not allowed in this text field",form_error_email:"Please enter a valid email address",form_error_url:"Please enter a valid URL",form_submit:"Submit",form_submitting:"Submitting form...",form_submitted:"Submitted",header_skip:"Skip to main content",header_search_show:"Show search bar",header_search_hide:"Close search bar",header_menu_show:"Show navigation",header_menu_hide:"Close navigation",header_home_loggedOut:"Home",header_home_loggedIn:"My Home",header_topics:"Topics",header_topics_explore:"Explore",header_topics_explore_events:"Events",header_topics_explore_courses:"Courses","header_topics_explore_q-and-a":"Q&A",header_topics_explore_articles:"Articles",header_topics_topics:"Topics",header_topics_topics_climate:"Climate","header_topics_topics_cities-and-local-government":"Cities and local government","header_topics_topics_digital-and-data":"Digital and data",header_topics_topics_education:"Education","header_topics_topics_equity-justice-and-inclusion":"Equity, justice and inclusion","header_topics_topics_health-and-social-care":"Health and social care",header_topics_topics_innovation:"Innovation","header_topics_topics_leadership-and-skills":"Leadership and skills","header_topics_topics_life-in-government":"Life in government",header_topics_topics_policymaking:"Policymaking","header_topics_topics_transport-and-infrastructure":"Transport and infrastructure","header_topics_topics_work-and-the-economy":"Work and the economy",header_partners:"For partners",header_account:"My account",header_account_show:"Show account menu",header_account_hide:"Close account menu",header_account_profile:"My profile",header_account_settings:"Settings & privacy","header_account_log-out":"Log out",header_buttons_login:"Log in",header_buttons_signup:"Sign up",hideShowTextBox_hide:"View less",hideShowTextBox_show:"View more",joinCommunityButton:"Join community",joinCommunityButton_short:"Join",joinCommunityButton_joining:"Joining...",joinCommunityButton_member:"Member",joinCommunityButton_member_aria:"Leave community",joinCommunityButton_leave:"Leave",joinCommunityButton_leaving:"Leaving...",loadMore_button:"Load more",loadMore_endOfFeed:"You're all caught up",loadMore_error:"We're having trouble loading more content. Please refresh the page or try again later.",loadingBlock_loading:"Loading...",loadingBlock_almostDone:"Almost done...",loadingBlock_complete:"Complete!",markdown_collapsibleSection_summary:"Resources",markdown_skip_video:"Skip past video",markdown_skip_padlet:"Skip past interactive board",markdown_skip_poll:"Skip past poll",markdown_skip:"Skip to next section",markdown_iframe_title:"Course information",markdown_iframe_video:"Video",markdown_iframe_padlet:"Interactive board",markdown_iframe_poll:"Poll",member_apolitical:"Apolitical",member_community:"Community post",membersList:"Members",membersList_admin:"Admin",moreMenu:"See more options",overlay_close:"Close",pageLayout_error:"An error occurred while rendering this page. Please refresh the page or try again later.",passwordRules_intro:"We advise you not to use your name or email in your password.",passwordRules_rule_label:"Password",passwordRules_rule_8Characters:"must be longer than 8 characters",passwordRules_rule_numberSymbol:"must include a number and a symbol",passwordRules_rule_lowercaseUppercase:"must include both lower and upper case characters",passwordRules_notMet:"Your password does not meet this requirement",progressBar:"{number}% loaded",ratings_text:"Rate answer",ratings_stars:"{number} out of {total}",ratings_low:"this is incorrect or confusing",ratings_high:"this is a fantastic answer",ratings_success:"Thank you!",search_label:"Search for:",search_placeholder:"Ask Apolitical",search_clear:"Clear search",search_cta:"Search",signup_title:"Sign up",signup_full_name:"Full name",signup_full_name_placeholder:"Lionel Messi",signup_email_address:"Work email",signup_email_address_placeholder:"lionel.messi@argentina.gov",signup_job_title:"Job title",signup_job_title_placeholder:"e.g. Senior Policy Advisor",signup_organization:"Organisation",signup_organization_placeholder:"e.g. Department of Justice",signup_url:"Link to official government bio / LinkedIn <small>(optional)</small>",signup_url_placeholder:"https://organisation.com/bio",signup_expectation:"What do you want to know<small>Optional, but we will use your response to build the session!</small>",signup_expectation_placeholder:"What do you want to know?",signup_terms:"I accept Apolitical's <terms>Terms of Service</terms>, <privacy>Privacy Policy</privacy> and that I'll get essential emails for my use of Apolitical",signup_error:"We're really sorry, but we've had a problem trying to sign you up. This could be an issue with our system, so we suggest you try again later.",signup_button_join:"Join for free",signup_button_login:"Log in",signup_submitting:"Submitting form...",signup_success_title:"Thank you for applying to join Apolitical!",signup_success_text:"<p>Once we've vetted your application, you'll get a secure login link to help you get started.</p><p>Please note that trust is everything to our community, so you can't login until your identity has been verified.</p>",sharedLinks_copy_text:"Copy link",tags_community:"From the community",tooltip_loading:"Loading..."},Aw={collapsibleSection_summary:"En savoir plus"},Cw=Object.freeze(Object.defineProperty({__proto__:null,en:Zu,fr:Aw},Symbol.toStringTag,{value:"Module"})),Bt=(e,t,r,n,o={})=>{let i="";return`${t}_${r}`in Zu?i=e({id:`${t}_${r}`},o):i=e({id:t},{[n]:r,...o}),i},Rw=(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},nm=(e,t)=>U.Children.map(e,r=>U.cloneElement(r,{...t})),Nw=e=>e.replace(/\s+/g,"").length>0,Ue=({variant:e="primary",size:t="medium",styling:r={muted:!1,fullWidth:!1},icon:n=!1,href:o=!1,element:i="button",onClick:s=!1,className:a="",disabled:l=!1,screenreaderText:f=!1,children:u=!1,...h})=>{const c=to(typeof t=="object");if(typeof t=="object"&&typeof c=="number"){const E=Object.assign({},t),S=tm(Object.keys(E));t=rm(c,S,E)}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={...h,className:ne(e,a,p,{"no-text":!u,disabled:l,button:o}),onClick:E=>{(!o||o[0]==="#")&&s&&(E.preventDefault(),E.stopPropagation()),s&&s(E)},disabled:typeof l=="object"&&"isClickable"in l?!l.isClickable:l};return o&&(i="a",m.href=o),U.createElement(i,m,u||(f?O.jsx(Je,{showOnFocus:!1,children:f}):null))},ro=({buttons:e,className:t="",...r})=>{const n=e.length>1?"ul":"p",o=e.map((i,s)=>n==="p"?O.jsx(Ue,{...i},s):O.jsx("li",{children:O.jsx(Ue,{...i})},s));return U.createElement(n,{className:ne("button-wrapper",t),...r,children:o})};const Yo=({maxWidth:e=!1})=>{const t=e?{"--max-width":`${e/16}rem`}:{};return O.jsx("hr",{className:ne({"has-max-width":e}),style:t})},sa=({href:e,children:t,className:r="",onClick:n,gtmContext:o,gtmType:i,...s})=>{if(e){const a={...s};return n&&(a.onClick=n),o&&(a["data-gtm-event-context"]=o),i&&(a["data-gtm-event-type"]=i),O.jsx("a",{href:e,className:ne("gtm-trackable",r),...a,children:t})}return t},ad={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"}},Pw=({aspect:e,range:t,sizes:r})=>{const{range:n,sizes:o}=e?ad[e]:ad.fallback;return{range:t&&t.length>0?t:n,sizes:r||o}},Iw=({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},Ms=({format:e,range:t,url:r,query:n})=>t.map(({height:o,width:i})=>`${r}?${Iw({format:e,height:o,query:n,width:i})} ${i}w`).join(", ");const im=({image:e,className:t,testId:r})=>{const{description:n,height:o,type:i,query:s,url:a,width:l,loading:f,decoding:u,fetchPriority:h}=e,{range:d,sizes:c}=Pw(e),p=Ms({format:"avif",query:s,range:d,url:a}),m=Ms({format:"webp",query:s,range:d,url:a}),E=Ms({format:"",query:s,range:d,url:a});return O.jsxs("picture",{className:t,children:[i!=="image/gif"&&O.jsx("source",{type:"image/avif",srcSet:p,sizes:c,"data-testid":"source"}),O.jsx("source",{type:"image/webp",srcSet:m,sizes:c,"data-testid":"source"}),O.jsx("img",{srcSet:E,sizes:c,src:a,alt:n,loading:f||"lazy",decoding:u||"async",fetchpriority:h||"auto",width:l,height:o,"data-testid":r||"image"})]})};var yu=function(e,t){return yu=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])},yu(e,t)};function vt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yu(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var oe=function(){return oe=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},oe.apply(this,arguments)};function In(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 $t(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 om(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}var ye;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ye||(ye={}));var Le;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Le||(Le={}));var Ln;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ln||(Ln={}));function sd(e){return e.type===Le.literal}function Lw(e){return e.type===Le.argument}function am(e){return e.type===Le.number}function sm(e){return e.type===Le.date}function um(e){return e.type===Le.time}function cm(e){return e.type===Le.select}function lm(e){return e.type===Le.plural}function Mw(e){return e.type===Le.pound}function fm(e){return e.type===Le.tag}function dm(e){return!!(e&&typeof e=="object"&&e.type===Ln.number)}function vu(e){return!!(e&&typeof e=="object"&&e.type===Ln.dateTime)}var hm=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,kw=/(?:[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 Bw(e){var t={};return e.replace(kw,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 Fw=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Dw(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Fw).filter(function(d){return d.length>0}),r=[],n=0,o=t;n<o.length;n++){var i=o[n],s=i.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),f=0,u=l;f<u.length;f++){var h=u[f];if(h.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:l})}return r}function Uw(e){return e.replace(/^(.*?)-/,"")}var ud=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,pm=/^(@+)?(\+|#+)?[rs]?$/g,$w=/(\*)(0+)|(#+)(0+)|(0+)/g,mm=/^(0+)$/;function cd(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(pm,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 gm(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 jw(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)),!mm.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ld(e){var t={},r=gm(e);return r||t}function Hw(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=Uw(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=oe(oe(oe({},t),{notation:"scientific"}),o.options.reduce(function(l,f){return oe(oe({},l),ld(f))},{}));continue;case"engineering":t=oe(oe(oe({},t),{notation:"engineering"}),o.options.reduce(function(l,f){return oe(oe({},l),ld(f))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace($w,function(l,f,u,h,d,c){if(f)t.minimumIntegerDigits=u.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(c)throw new Error("We currently do not support exact integer digits")}return""});continue}if(mm.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(ud.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(ud,function(l,f,u,h,d,c){return u==="*"?t.minimumFractionDigits=f.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:d&&c?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+c.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});var i=o.options[0];i==="w"?t=oe(oe({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=oe(oe({},t),cd(i)));continue}if(pm.test(o.stem)){t=oe(oe({},t),cd(o.stem));continue}var s=gm(o.stem);s&&(t=oe(oe({},t),s));var a=jw(o.stem);a&&(t=oe(oe({},t),a))}return t}var Ro={"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 qw(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 s=1+(i&1),a=i<2?1:3+(i>>1),l="a",f=Gw(t);for((f=="H"||f=="k")&&(a=0);a-- >0;)r+=l;for(;s-- >0;)r=f+r}else o==="J"?r+="H":r+=o}return r}function Gw(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var o=Ro[n||""]||Ro[r||""]||Ro["".concat(r,"-001")]||Ro["001"];return o[0]}var ks,Ww=new RegExp("^".concat(hm.source,"*")),Vw=new RegExp("".concat(hm.source,"*$"));function _e(e,t){return{start:e,end:t}}var zw=!!String.prototype.startsWith,Yw=!!String.fromCodePoint,Kw=!!Object.fromEntries,Qw=!!String.prototype.codePointAt,Xw=!!String.prototype.trimStart,Jw=!!String.prototype.trimEnd,Zw=!!Number.isSafeInteger,eS=Zw?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},_u=!0;try{var tS=vm("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");_u=((ks=tS.exec("a"))===null||ks===void 0?void 0:ks[0])==="a"}catch{_u=!1}var fd=zw?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Eu=Yw?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",o=t.length,i=0,s;o>i;){if(s=t[i++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},dd=Kw?Object.fromEntries:function(t){for(var r={},n=0,o=t;n<o.length;n++){var i=o[n],s=i[0],a=i[1];r[s]=a}return r},ym=Qw?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}},rS=Xw?function(t){return t.trimStart()}:function(t){return t.replace(Ww,"")},nS=Jw?function(t){return t.trimEnd()}:function(t){return t.replace(Vw,"")};function vm(e,t){return new RegExp(e,t)}var bu;if(_u){var hd=vm("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");bu=function(t,r){var n;hd.lastIndex=r;var o=hd.exec(t);return(n=o[1])!==null&&n!==void 0?n:""}}else bu=function(t,r){for(var n=[];;){var o=ym(t,r);if(o===void 0||_m(o)||sS(o))break;n.push(o),r+=o>=65536?2:1}return Eu.apply(void 0,n)};var iS=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 s=this.parseArgument(t,n);if(s.err)return s;o.push(s.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:Le.pound,location:_e(a,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(ye.UNMATCHED_CLOSING_TAG,_e(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&wu(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;o.push(s.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:Le.literal,value:"<".concat(o,"/>"),location:_e(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var s=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!wu(this.char()))return this.error(ye.INVALID_TAG,_e(a,this.clonePosition()));var l=this.clonePosition(),f=this.parseTagName();return o!==f?this.error(ye.UNMATCHED_CLOSING_TAG,_e(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Le.tag,value:o,children:s,location:_e(n,this.clonePosition())},err:null}:this.error(ye.INVALID_TAG,_e(a,this.clonePosition())))}else return this.error(ye.UNCLOSED_TAG,_e(n,this.clonePosition()))}else return this.error(ye.INVALID_TAG,_e(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&aS(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 s=this.tryParseUnquoted(t,r);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=_e(n,this.clonePosition());return{val:{type:Le.literal,value:o,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!oS(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 Eu.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(),Eu(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ye.EMPTY_ARGUMENT,_e(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ye.MALFORMED_ARGUMENT,_e(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Le.argument,value:o,location:_e(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(ye.MALFORMED_ARGUMENT,_e(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=bu(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),s=_e(t,i);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,o){var i,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(ye.EXPECT_ARGUMENT_TYPE,_e(s,l));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=nS(h.val);if(d.length===0)return this.error(ye.EXPECT_ARGUMENT_STYLE,_e(this.clonePosition(),this.clonePosition()));var c=_e(u,this.clonePosition());f={style:d,styleLocation:c}}var p=this.tryParseArgumentClose(o);if(p.err)return p;var m=_e(o,this.clonePosition());if(f&&fd(f==null?void 0:f.style,"::",0)){var E=rS(f.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(E,f.styleLocation);return h.err?h:{val:{type:Le.number,value:n,location:m,style:h.val},err:null}}else{if(E.length===0)return this.error(ye.EXPECT_DATE_TIME_SKELETON,m);var S=E;this.locale&&(S=qw(E,this.locale));var d={type:Ln.dateTime,pattern:S,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?Bw(S):{}},_=a==="date"?Le.date:Le.time;return{val:{type:_,value:n,location:m,style:d},err:null}}}return{val:{type:a==="number"?Le.number:a==="date"?Le.date:Le.time,value:n,location:m,style:(i=f==null?void 0:f.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ye.EXPECT_SELECT_ARGUMENT_OPTIONS,_e(b,oe({},b)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),w=0;if(a!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ye.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),A=this.parseIdentifierIfPossible(),w=h.val}var N=this.tryParsePluralOrSelectOptions(t,a,r,A);if(N.err)return N;var p=this.tryParseArgumentClose(o);if(p.err)return p;var F=_e(o,this.clonePosition());return a==="select"?{val:{type:Le.select,value:n,options:dd(N.val),location:F},err:null}:{val:{type:Le.plural,value:n,options:dd(N.val),offset:w,pluralType:a==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(ye.INVALID_ARGUMENT_TYPE,_e(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,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(ye.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,_e(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(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=Dw(t)}catch{return this.error(ye.INVALID_NUMBER_SKELETON,r)}return{val:{type:Ln.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Hw(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var i,s=!1,a=[],l=new Set,f=o.value,u=o.location;;){if(f.length===0){var h=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,ye.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=_e(h,this.clonePosition()),f=this.message.slice(h.offset,this.offset())}else break}if(l.has(f))return this.error(r==="select"?ye.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ye.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);f==="other"&&(s=!0),this.bumpSpace();var c=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?ye.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,_e(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,r,n);if(p.err)return p;var m=this.tryParseArgumentClose(c);if(m.err)return m;a.push([f,{value:p.val,location:_e(c,this.clonePosition())}]),l.add(f),this.bumpSpace(),i=this.parseIdentifierIfPossible(),f=i.value,u=i.location}return a.length===0?this.error(r==="select"?ye.EXPECT_SELECT_ARGUMENT_SELECTOR:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,_e(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ye.MISSING_OTHER_CLAUSE,_e(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,s=s*10+(a-48),this.bump();else break}var l=_e(o,this.clonePosition());return i?(s*=n,eS(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=ym(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(fd(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()&&_m(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 wu(e){return e>=97&&e<=122||e>=65&&e<=90}function oS(e){return wu(e)||e===47}function aS(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 _m(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function sS(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 Su(e){e.forEach(function(t){if(delete t.location,cm(t)||lm(t))for(var r in t.options)delete t.options[r].location,Su(t.options[r].value);else am(t)&&dm(t.style)||(sm(t)||um(t))&&vu(t.style)?delete t.style.location:fm(t)&&Su(t.children)})}function uS(e,t){t===void 0&&(t={}),t=oe({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new iS(e,t).parse();if(r.err){var n=SyntaxError(ye[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Su(r.val),r.val}function Ft(e,t){var r=t&&t.cache?t.cache:pS,n=t&&t.serializer?t.serializer:hS,o=t&&t.strategy?t.strategy:lS;return o(e,{cache:r,serializer:n})}function cS(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Em(e,t,r,n){var o=cS(n)?n:r(n),i=t.get(o);return typeof i>"u"&&(i=e.call(this,n),t.set(o,i)),i}function bm(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 ec(e,t,r,n,o){return r.bind(t,e,n,o)}function lS(e,t){var r=e.length===1?Em:bm;return ec(e,this,r,t.cache.create(),t.serializer)}function fS(e,t){return ec(e,this,bm,t.cache.create(),t.serializer)}function dS(e,t){return ec(e,this,Em,t.cache.create(),t.serializer)}var hS=function(){return JSON.stringify(arguments)};function tc(){this.cache=Object.create(null)}tc.prototype.get=function(e){return this.cache[e]};tc.prototype.set=function(e,t){this.cache[e]=t};var pS={create:function(){return new tc}},Dt={variadic:fS,monadic:dS},jt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(jt||(jt={}));var wr=function(e){vt(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),pd=function(e){vt(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('", "'),'"'),jt.INVALID_VALUE,i)||this}return t}(wr),mS=function(e){vt(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),jt.INVALID_VALUE,o)||this}return t}(wr),gS=function(e){vt(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,'"'),jt.MISSING_VALUE,n)||this}return t}(wr),ot;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ot||(ot={}));function yS(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==ot.literal||r.type!==ot.literal?t.push(r):n.value+=r.value,t},[])}function wm(e){return typeof e=="function"}function Do(e,t,r,n,o,i,s){if(e.length===1&&sd(e[0]))return[{type:ot.literal,value:e[0].value}];for(var a=[],l=0,f=e;l<f.length;l++){var u=f[l];if(sd(u)){a.push({type:ot.literal,value:u.value});continue}if(Mw(u)){typeof i=="number"&&a.push({type:ot.literal,value:r.getNumberFormat(t).format(i)});continue}var h=u.value;if(!(o&&h in o))throw new gS(h,s);var d=o[h];if(Lw(u)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?ot.literal:ot.object,value:d});continue}if(sm(u)){var c=typeof u.style=="string"?n.date[u.style]:vu(u.style)?u.style.parsedOptions:void 0;a.push({type:ot.literal,value:r.getDateTimeFormat(t,c).format(d)});continue}if(um(u)){var c=typeof u.style=="string"?n.time[u.style]:vu(u.style)?u.style.parsedOptions:n.time.medium;a.push({type:ot.literal,value:r.getDateTimeFormat(t,c).format(d)});continue}if(am(u)){var c=typeof u.style=="string"?n.number[u.style]:dm(u.style)?u.style.parsedOptions:void 0;c&&c.scale&&(d=d*(c.scale||1)),a.push({type:ot.literal,value:r.getNumberFormat(t,c).format(d)});continue}if(fm(u)){var p=u.children,m=u.value,E=o[m];if(!wm(E))throw new mS(m,"function",s);var S=Do(p,t,r,n,o,i),_=E(S.map(function(w){return w.value}));Array.isArray(_)||(_=[_]),a.push.apply(a,_.map(function(w){return{type:typeof w=="string"?ot.literal:ot.object,value:w}}))}if(cm(u)){var b=u.options[d]||u.options.other;if(!b)throw new pd(u.value,d,Object.keys(u.options),s);a.push.apply(a,Do(b.value,t,r,n,o));continue}if(lm(u)){var b=u.options["=".concat(d)];if(!b){if(!Intl.PluralRules)throw new wr(`Intl.PluralRules is not available in this environment.
|
|
66
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
67
|
-
`,jt.MISSING_INTL_API,s);var A=r.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0));b=u.options[A]||u.options.other}if(!b)throw new pd(u.value,d,Object.keys(u.options),s);a.push.apply(a,Do(b.value,t,r,n,o,d-(u.offset||0)));continue}}return yS(a)}function vS(e,t){return t?oe(oe(oe({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=oe(oe({},e[n]),t[n]||{}),r},{})):e}function _S(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=vS(e[n],t[n]),r},oe({},e)):e}function Bs(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function ES(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ft(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,$t([void 0],r,!1)))},{cache:Bs(e.number),strategy:Dt.variadic}),getDateTimeFormat:Ft(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,$t([void 0],r,!1)))},{cache:Bs(e.dateTime),strategy:Dt.variadic}),getPluralRules:Ft(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,$t([void 0],r,!1)))},{cache:Bs(e.pluralRules),strategy:Dt.variadic})}}var Sm=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(l){var f=i.formatToParts(l);if(f.length===1)return f[0].value;var u=f.reduce(function(h,d){return!h.length||d.type!==ot.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(l){return Do(i.ast,i.locales,i.formatters,i.formats,l,void 0,i.message)},this.resolvedOptions=function(){var l;return{locale:((l=i.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=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 s=o||{};s.formatters;var a=In(s,["formatters"]);this.ast=e.__parse(t,oe(oe({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=_S(e.formats,n),this.formatters=o&&o.formatters||ES(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=uS,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),en;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(en||(en={}));var no=function(e){vt(t,e);function t(r,n,o){var i=this,s=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,`
|
|
68
|
-
`).concat(s?`
|
|
69
|
-
`.concat(s.message,`
|
|
70
|
-
`).concat(s.stack):""))||this,i.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),bS=function(e){vt(t,e);function t(r,n){return e.call(this,en.UNSUPPORTED_FORMATTER,r,n)||this}return t}(no),wS=function(e){vt(t,e);function t(r,n){return e.call(this,en.INVALID_CONFIG,r,n)||this}return t}(no),md=function(e){vt(t,e);function t(r,n){return e.call(this,en.MISSING_DATA,r,n)||this}return t}(no),_t=function(e){vt(t,e);function t(r,n,o){var i=e.call(this,en.FORMAT_ERROR,"".concat(r,`
|
|
71
|
-
Locale: `).concat(n,`
|
|
72
|
-
`),o)||this;return i.locale=n,i}return t}(no),Fs=function(e){vt(t,e);function t(r,n,o,i){var s=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 s.descriptor=o,s.locale=n,s}return t}(_t),SS=function(e){vt(t,e);function t(r,n){var o=e.call(this,en.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 s;return(s=i.value)!==null&&s!==void 0?s:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=r,o}return t}(no);function on(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 TS=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},xS=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},Tm={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:TS,onWarn:xS};function xm(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function zr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function OS(e){e===void 0&&(e=xm());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,o=Ft(function(){for(var a,l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new((a=Intl.DateTimeFormat).bind.apply(a,$t([void 0],l,!1)))},{cache:zr(e.dateTime),strategy:Dt.variadic}),i=Ft(function(){for(var a,l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new((a=Intl.NumberFormat).bind.apply(a,$t([void 0],l,!1)))},{cache:zr(e.number),strategy:Dt.variadic}),s=Ft(function(){for(var a,l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new((a=Intl.PluralRules).bind.apply(a,$t([void 0],l,!1)))},{cache:zr(e.pluralRules),strategy:Dt.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:Ft(function(a,l,f,u){return new Sm(a,l,f,oe({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:s}},u||{}))},{cache:zr(e.message),strategy:Dt.variadic}),getRelativeTimeFormat:Ft(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(t.bind.apply(t,$t([void 0],a,!1)))},{cache:zr(e.relativeTime),strategy:Dt.variadic}),getPluralRules:s,getListFormat:Ft(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(r.bind.apply(r,$t([void 0],a,!1)))},{cache:zr(e.list),strategy:Dt.variadic}),getDisplayNames:Ft(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(n.bind.apply(n,$t([void 0],a,!1)))},{cache:zr(e.displayNames),strategy:Dt.variadic})}}function rc(e,t,r,n){var o=e&&e[t],i;if(o&&(i=o[r]),i)return i;n(new bS("No ".concat(t," format named: ").concat(r)))}function No(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=oe({timeZone:t},e[n]),r},{})}function gd(e,t){var r=Object.keys(oe(oe({},e),t));return r.reduce(function(n,o){return n[o]=oe(oe({},e[o]||{}),t[o]||{}),n},{})}function yd(e,t){if(!t)return e;var r=Sm.formats;return oe(oe(oe({},r),e),{date:gd(No(r.date,t),No(e.date||{},t)),time:gd(No(r.time,t),No(e.time||{},t))})}var Tu=function(e,t,r,n,o){var i=e.locale,s=e.formats,a=e.messages,l=e.defaultLocale,f=e.defaultFormats,u=e.fallbackOnEmptyString,h=e.onError,d=e.timeZone,c=e.defaultRichTextElements;r===void 0&&(r={id:""});var p=r.id,m=r.defaultMessage;om(!!p,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var E=String(p),S=a&&Object.prototype.hasOwnProperty.call(a,E)&&a[E];if(Array.isArray(S)&&S.length===1&&S[0].type===Le.literal)return S[0].value;if(!n&&S&&typeof S=="string"&&!c)return S.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=oe(oe({},c),n||{}),s=yd(s,d),f=yd(f,d),!S){if(u===!1&&S==="")return S;if((!m||i&&i.toLowerCase()!==l.toLowerCase())&&h(new SS(r,i)),m)try{var _=t.getMessageFormat(m,l,f,o);return _.format(n)}catch(b){return h(new Fs('Error formatting default message for: "'.concat(E,'", rendering default message verbatim'),i,r,b)),typeof m=="string"?m:E}return E}try{var _=t.getMessageFormat(S,i,s,oe({formatters:t},o||{}));return _.format(n)}catch(b){h(new Fs('Error formatting message: "'.concat(E,'", using ').concat(m?"default message":"id"," as fallback."),i,r,b))}if(m)try{var _=t.getMessageFormat(m,l,f,o);return _.format(n)}catch(b){h(new Fs('Error formatting the default message for: "'.concat(E,'", rendering message verbatim'),i,r,b))}return typeof S=="string"?S:typeof m=="string"?m:E},Om=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ua(e,t,r,n){var o=e.locale,i=e.formats,s=e.onError,a=e.timeZone;n===void 0&&(n={});var l=n.format,f=oe(oe({},a&&{timeZone:a}),l&&rc(i,t,l,s)),u=on(n,Om,f);return t==="time"&&!u.hour&&!u.minute&&!u.second&&!u.timeStyle&&!u.dateStyle&&(u=oe(oe({},u),{hour:"numeric",minute:"numeric"})),r(o,u)}function AS(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return ua(e,"date",t,s).format(a)}catch(l){e.onError(new _t("Error formatting date.",e.locale,l))}return String(a)}function CS(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return ua(e,"time",t,s).format(a)}catch(l){e.onError(new _t("Error formatting time.",e.locale,l))}return String(a)}function RS(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],s=r[2],a=s===void 0?{}:s,l=e.timeZone,f=e.locale,u=e.onError,h=on(a,Om,l?{timeZone:l}:{});try{return t(f,h).formatRange(o,i)}catch(d){u(new _t("Error formatting date time range.",e.locale,d))}return String(o)}function NS(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return ua(e,"date",t,s).formatToParts(a)}catch(l){e.onError(new _t("Error formatting date.",e.locale,l))}return[]}function PS(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return ua(e,"time",t,s).formatToParts(a)}catch(l){e.onError(new _t("Error formatting time.",e.locale,l))}return[]}var IS=["style","type","fallback","languageDisplay"];function LS(e,t,r,n){var o=e.locale,i=e.onError,s=Intl.DisplayNames;s||i(new wr(`Intl.DisplayNames is not available in this environment.
|
|
77
|
-
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
78
|
-
`,jt.MISSING_INTL_API));var a=on(n,IS);try{return t(o,a).of(r)}catch(l){i(new _t("Error formatting display name.",o,l))}}var MS=["type","style"],vd=Date.now();function kS(e){return"".concat(vd,"_").concat(e,"_").concat(vd)}function BS(e,t,r,n){n===void 0&&(n={});var o=Am(e,t,r,n).reduce(function(i,s){var a=s.value;return typeof a!="string"?i.push(a):typeof i[i.length-1]=="string"?i[i.length-1]+=a:i.push(a),i},[]);return o.length===1?o[0]:o.length===0?"":o}function Am(e,t,r,n){var o=e.locale,i=e.onError;n===void 0&&(n={});var s=Intl.ListFormat;s||i(new wr(`Intl.ListFormat is not available in this environment.
|
|
79
|
-
Try polyfilling it using "@formatjs/intl-listformat"
|
|
80
|
-
`,jt.MISSING_INTL_API));var a=on(n,MS);try{var l={},f=r.map(function(u,h){if(typeof u=="object"){var d=kS(h);return l[d]=u,d}return String(u)});return t(o,a).formatToParts(f).map(function(u){return u.type==="literal"?u:oe(oe({},u),{value:l[u.value]||u.value})})}catch(u){i(new _t("Error formatting list.",o,u))}return r}var FS=["type"];function DS(e,t,r,n){var o=e.locale,i=e.onError;n===void 0&&(n={}),Intl.PluralRules||i(new wr(`Intl.PluralRules is not available in this environment.
|
|
81
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
82
|
-
`,jt.MISSING_INTL_API));var s=on(n,FS);try{return t(o,s).select(r)}catch(a){i(new _t("Error formatting plural.",o,a))}return"other"}var US=["numeric","style"];function $S(e,t,r){var n=e.locale,o=e.formats,i=e.onError;r===void 0&&(r={});var s=r.format,a=!!s&&rc(o,"relative",s,i)||{},l=on(r,US,a);return t(n,l)}function jS(e,t,r,n,o){o===void 0&&(o={}),n||(n="second");var i=Intl.RelativeTimeFormat;i||e.onError(new wr(`Intl.RelativeTimeFormat is not available in this environment.
|
|
83
|
-
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
84
|
-
`,jt.MISSING_INTL_API));try{return $S(e,t,o).format(r,n)}catch(s){e.onError(new _t("Error formatting relative time.",e.locale,s))}return String(r)}var HS=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Cm(e,t,r){var n=e.locale,o=e.formats,i=e.onError;r===void 0&&(r={});var s=r.format,a=s&&rc(o,"number",s,i)||{},l=on(r,HS,a);return t(n,l)}function qS(e,t,r,n){n===void 0&&(n={});try{return Cm(e,t,n).format(r)}catch(o){e.onError(new _t("Error formatting number.",e.locale,o))}return String(r)}function GS(e,t,r,n){n===void 0&&(n={});try{return Cm(e,t,n).formatToParts(r)}catch(o){e.onError(new _t("Error formatting number.",e.locale,o))}return[]}function WS(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function VS(e){e.onWarn&&e.defaultRichTextElements&&WS(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 zS(e,t){var r=OS(t),n=oe(oe({},Tm),e),o=n.locale,i=n.defaultLocale,s=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&s?s(new md('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&s&&s(new md('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new wS('"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"),VS(n),oe(oe({},n),{formatters:r,formatNumber:qS.bind(null,n,r.getNumberFormat),formatNumberToParts:GS.bind(null,n,r.getNumberFormat),formatRelativeTime:jS.bind(null,n,r.getRelativeTimeFormat),formatDate:AS.bind(null,n,r.getDateTimeFormat),formatDateToParts:NS.bind(null,n,r.getDateTimeFormat),formatTime:CS.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:RS.bind(null,n,r.getDateTimeFormat),formatTimeToParts:PS.bind(null,n,r.getDateTimeFormat),formatPlural:DS.bind(null,n,r.getPluralRules),formatMessage:Tu.bind(null,n,r),$t:Tu.bind(null,n,r),formatList:BS.bind(null,n,r.getListFormat),formatListToParts:Am.bind(null,n,r.getListFormat),formatDisplayName:LS.bind(null,n,r.getDisplayNames)})}function Rm(e){om(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Nm=oe(oe({},Tm),{textComponent:Oe.Fragment});function YS(e){return function(t){return e(Oe.Children.toArray(t))}}function xu(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 s=r[i];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var nc=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=Oe.createContext(null)):Oe.createContext(null);nc.Consumer;var KS=nc.Provider,QS=KS,XS=nc;function Ee(){var e=Oe.useContext(XS);return Rm(e),e}var Ou;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Ou||(Ou={}));var Au;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Au||(Au={}));function Pm(e){var t=function(r){var n=Ee(),o=r.value,i=r.children,s=In(r,["value","children"]),a=typeof o=="string"?new Date(o||0):o,l=e==="formatDate"?n.formatDateToParts(a,s):n.formatTimeToParts(a,s);return i(l)};return t.displayName=Au[e],t}function io(e){var t=function(r){var n=Ee(),o=r.value,i=r.children,s=In(r,["value","children"]),a=n[e](o,s);if(typeof i=="function")return i(a);var l=n.textComponent||Oe.Fragment;return Oe.createElement(l,null,a)};return t.displayName=Ou[e],t}function Ds(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 Im(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=wm(n)?YS(n):n,t},{})}var _d=function(e,t,r,n){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var s=Im(n),a=Tu.apply(void 0,$t([e,t,r,s],o,!1));return Array.isArray(a)?Oe.Children.toArray(a):a},Cu=function(e,t){var r=e.defaultRichTextElements,n=In(e,["defaultRichTextElements"]),o=Im(r),i=zS(oe(oe(oe({},Nm),n),{defaultRichTextElements:o}),t),s={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o};return oe(oe({},i),{formatMessage:_d.bind(null,s,i.formatters),$t:_d.bind(null,s,i.formatters)})},JS=function(e){vt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=xm(),r.state={cache:r.cache,intl:Cu(Ds(r.props),r.cache),prevConfig:Ds(r.props)},r}return t.getDerivedStateFromProps=function(r,n){var o=n.prevConfig,i=n.cache,s=Ds(r);return xu(o,s)?null:{intl:Cu(s,i),prevConfig:s}},t.prototype.render=function(){return Rm(this.state.intl),Oe.createElement(QS,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Nm,t}(Oe.PureComponent);function ZS(e,t){var r=e.values,n=In(e,["values"]),o=t.values,i=In(t,["values"]);return xu(o,r)&&xu(n,i)}function Lm(e){var t=Ee(),r=t.formatMessage,n=t.textComponent,o=n===void 0?Oe.Fragment:n,i=e.id,s=e.description,a=e.defaultMessage,l=e.values,f=e.children,u=e.tagName,h=u===void 0?o:u,d=e.ignoreTag,c={id:i,description:s,defaultMessage:a},p=r(c,l,{ignoreTag:d});return typeof f=="function"?f(Array.isArray(p)?p:[p]):h?Oe.createElement(h,null,Oe.Children.toArray(p)):Oe.createElement(Oe.Fragment,null,p)}Lm.displayName="FormattedMessage";var Mm=Oe.memo(Lm,ZS);Mm.displayName="MemoizedFormattedMessage";const vr=Mm;io("formatDate");io("formatTime");io("formatNumber");io("formatList");io("formatDisplayName");Pm("formatDate");Pm("formatTime");let $i=!1;const km=({isOpen:e=!1,isLoading:t=!1,children:r})=>{const n=Ee(),o=U.useRef(null),[i,s]=U.useState("hidden");U.useEffect(()=>{const l=o.current;if(l)return l.addEventListener("transitionend",a),()=>{l.removeEventListener("transitionend",a)}},[]);const a=({propertyName:l})=>{l==="opacity"&&($i!==!1&&clearTimeout($i),s(f=>f==="opening"?"open":f==="closing"?"closed":f==="closed"?"hidden":f))};return Jr(()=>{$i!==!1&&clearTimeout($i);let l="open";e?s("opening"):(s("closing"),l="hidden"),$i=setTimeout(()=>{s(l)},300)},[e]),O.jsx("aside",{ref:o,className:ne("tooltip text-medium",i,{loading:t}),hidden:i==="hidden",children:t?O.jsx("p",{children:n.formatMessage({id:"tooltip_loading"})}):typeof r=="string"?O.jsx("p",{children:r}):r})};const ic=({children:e,className:t="",...r})=>O.jsx("section",{className:ne("full-width-section",t),...r,children:e});const eT=({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})}),O.jsx(ic,{className:ne("download-section",r),children:O.jsxs(O.Fragment,{children:[U.createElement(typeof e=="string"?"h2":e.element,{className:"text"},typeof e=="string"?e:e.text),O.jsx(ro,{buttons:n})]})})};const tT=({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 O.jsxs("div",{className:ne("logos",r),children:[e&&U.createElement(o.element,{className:"title"},o.text),O.jsx("ul",{className:ne({"two-col":n===2||n===4,"three-col":n===5||n<=10&&n%3===0}),children:t.map(({logo:i,nameOfBusiness:s,link:a=!1,description:l=!1},f)=>{if(!i||!i.url)return null;const u=O.jsx("img",{src:i.url,width:i.width||"auto",height:i.height||"auto",alt:s});return O.jsxs("li",{children:[O.jsx("p",{className:"img-wrapper",children:a?O.jsx("a",{href:a,target:"_blank",rel:"nofollow noreferrer noopener",children:u}):u}),l&&O.jsx("small",{children:l})]},window.btoa(`${i.url}_${f}`))})})]})};const rT=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],nT=({content:e,image:t,variant:r="default",spacing:n="normal",cta:o,children:i})=>{const s=["eyebrow","title","text"],a={eyebrow:"small",title:"h1",text:"p"},l={};return s.forEach(f=>{if(!e[f]){l[f]=!1;return}if(typeof e[f]=="object"){l[f]=e[f];const{text:u,element:h}=e[f];if(h&&rT.includes(h.toLowerCase()))return;l[f]={text:u,element:a[f]};return}l[f]={text:e[f],element:a[f]}}),o&&o.link&&o.link[0]==="#"&&(o.props||(o.props={}),o.props.onClick=f=>{f.preventDefault(),f.stopPropagation();const u=document.getElementById(o.link.substring(1));u&&u.scrollIntoView({behavior:"smooth"})}),O.jsx(ic,{className:ne("banner-section",r,n,{"has-image":t,"has-extra-spacing":n==="normal"&&l.eyebrow&&l.title}),children:O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"content-wrapper",children:[s.map(f=>{if(l[f]&&typeof l[f]=="object"){const{text:u,element:h=""}=l[f];return U.createElement(h.toLowerCase(),{key:f,className:f},u)}return null}),i,o&&o.text&&o.link&&O.jsx(Ue,{variant:t||r==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:o.link,...o.props,children:o.text})]}),t&&O.jsx(im,{image:{...t,aspect:"banner"}})]})})},iT=U.memo(nT);const oT=({variant:e="primary",button:t=null,title:r,text:n,gtmContext:o})=>!r&&!n?null:O.jsxs("aside",{className:ne("marketing-block",e),children:[r&&O.jsx("p",{className:"title",children:r}),n&&O.jsx("p",{children:n}),t&&O.jsx(Ue,{variant:"secondary",size:"medium",href:t.link,className:"gtm-trackable","data-gtm-event-context":o,"data-gtm-event-type":"learn-more-click",children:t.text})]});var Bm={exports:{}};(function(e){(function(t,r){var n="…",o=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function i(a,l,f){return f.length===a.length||!l.ellipsis||(f+=l.ellipsis),f}function s(a,l,f){var u="",h=!0,d=l,c,p;if(f=f||{},f.ellipsis=typeof f.ellipsis>"u"?n:f.ellipsis,!a||a.length===0)return"";for(h=!0;h;){if(o.lastIndex=u.length,h=o.exec(a),!h||h.index-u.length>=d||o.lastIndex>=l+3e3)return u+=a.substring(u.length,l),i(a,f,u);if(c=h[0],p=h.index,u+=a.substring(u.length,p+c.length),d-=p+c.length,d<=0)break}return i(a,f,u)}e.exports?e.exports=s:t.truncate=s})(String)})(Bm);var aT=Bm.exports;const oc=Ht(aT),Ko="https://storage.googleapis.com/apolitical-assets/",sT="200,000+";const ac=({label:e=!1,className:t="",children:r})=>{const n=Ee();return O.jsxs("details",{className:ne("collapsible-section",t),children:[O.jsx("summary",{children:e||n.formatMessage({id:"collapsibleSection_summary"})}),O.jsx("div",{className:"content",children:r})]})};function Kr(){return Kr=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},Kr.apply(this,arguments)}const uT=["children","options"],Ed=["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"}),bd={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},cT=["style","script"],lT=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,fT=/mailto:/i,dT=/\n{2,}$/,Fm=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,hT=/^ *> ?/gm,pT=/^ {2,}\n/,mT=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Dm=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Um=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,gT=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,yT=/^(?:\n *)*\n/,vT=/\r\n?/g,_T=/^\[\^([^\]]+)](:.*)\n/,ET=/^\[\^([^\]]+)]/,bT=/\f/g,wT=/^\s*?\[(x|\s)\]/,$m=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,jm=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Hm=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Ru=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,ST=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,qm=/^<!--[\s\S]*?(?:-->)/,TT=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Nu=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,xT=/^\{.*\}$/,OT=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,AT=/^<([^ >]+@[^ >]+)>/,CT=/^<([^ >]+:\/[^ >]+)>/,RT=/-([a-z])?/gi,Gm=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,NT=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,PT=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,IT=/^\[([^\]]*)\] ?\[([^\]]*)\]/,LT=/(\[|\])/g,MT=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,kT=/\t/g,BT=/^ *\| */,FT=/(^ *\||\| *$)/g,DT=/ *$/,UT=/^ *:-+: *$/,$T=/^ *:-+ *$/,jT=/^ *-+: *$/,HT=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,qT=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,GT=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,WT=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,VT=/^\\([^0-9A-Za-z\s])/,zT=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,YT=/^\n+/,KT=/^([ \t]*)/,QT=/\\([^\\])/g,wd=/ *\n+$/,XT=/(?:^|\n)( *)$/,sc="(?:\\d+\\.)",uc="(?:[*+-])";function Wm(e){return"( *)("+(e===1?sc:uc)+") +"}const Vm=Wm(1),zm=Wm(2);function Ym(e){return new RegExp("^"+(e===1?Vm:zm))}const JT=Ym(1),ZT=Ym(2);function Km(e){return new RegExp("^"+(e===1?Vm:zm)+"[^\\n]*(?:\\n(?!\\1"+(e===1?sc:uc)+" )[^\\n]*)*(\\n|$)","gm")}const Qm=Km(1),Xm=Km(2);function Jm(e){const t=e===1?sc:uc;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Zm=Jm(1),eg=Jm(2);function Sd(e,t){const r=t===1,n=r?Zm:eg,o=r?Qm:Xm,i=r?JT:ZT;return{t(s,a,l){const f=XT.exec(l);return f&&(a.o||!a._&&!a.u)?n.exec(s=f[1]+s):null},i:ve.HIGH,l(s,a,l){const f=r?+s[2]:void 0,u=s[0].replace(dT,`
|
|
87
|
-
`).match(o);let h=!1;return{p:u.map(function(d,c){const p=i.exec(d)[0].length,m=new RegExp("^ {1,"+p+"}","gm"),E=d.replace(m,"").replace(i,""),S=c===u.length-1,_=E.indexOf(`
|
|
88
|
-
|
|
89
|
-
`)!==-1||S&&h;h=_;const b=l._,A=l.o;let w;l.o=!0,_?(l._=!1,w=E.replace(wd,`
|
|
90
|
-
|
|
91
|
-
`)):(l._=!0,w=E.replace(wd,""));const N=a(w,l);return l._=b,l.o=A,N}),m:r,g:f}},h:(s,a,l)=>e(s.m?"ol":"ul",{key:l.k,start:s.g},s.p.map(function(f,u){return e("li",{key:u},a(f,l))}))}}const ex=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,tx=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,tg=[Fm,Dm,Um,$m,Hm,jm,qm,Gm,Qm,Zm,Xm,eg],rx=[...tg,/^[^\n]+(?: \n|\n{2,})/,Ru,Nu];function nx(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 ix(e){return jT.test(e)?"right":UT.test(e)?"center":$T.test(e)?"left":null}function Td(e,t,r){const n=r.$;r.$=!0;const o=t(e.trim(),r);r.$=n;let i=[[]];return o.forEach(function(s,a){s.type==="tableSeparator"?a!==0&&a!==o.length-1&&i.push([]):(s.type!=="text"||o[a+1]!=null&&o[a+1].type!=="tableSeparator"||(s.v=s.v.replace(DT,"")),i[i.length-1].push(s))}),i}function ox(e,t,r){r._=!0;const n=Td(e[1],t,r),o=e[2].replace(FT,"").split("|").map(ix),i=function(s,a,l){return s.trim().split(`
|
|
92
|
-
`).map(function(f){return Td(f,a,l)})}(e[3],t,r);return r._=!1,{S:o,A:i,L:n,type:"table"}}function xd(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function pr(e){return function(t,r){return r._?e.exec(t):null}}function mr(e){return function(t,r){return r._||r.u?e.exec(t):null}}function tr(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function ji(e){return function(t){return e.exec(t)}}function ax(e,t,r){if(t._||t.u||r&&!r.endsWith(`
|
|
93
|
-
`))return null;let n="";e.split(`
|
|
94
|
-
`).every(i=>!tg.some(s=>s.test(i))&&(n+=i+`
|
|
95
|
-
`,i.trim()));const o=n.trimEnd();return o==""?null:[n,o]}function Tn(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 Od(e){return e.replace(QT,"$1")}function Uo(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 sx(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 ux(e,t,r){return r._=!1,e(t,r)}const Us=(e,t,r)=>({v:Uo(t,e[1],r)});function $s(){return{}}function js(){return null}function cx(...e){return e.filter(Boolean).join(" ")}function Hs(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 ve;function lx(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||nx,t.namedCodesToUnicode=t.namedCodesToUnicode?Kr({},bd,t.namedCodesToUnicode):bd;const r=t.createElement||Oe.createElement;function n(c,p,...m){const E=Hs(t.overrides,`${c}.props`,{});return r(function(S,_){const b=Hs(_,S);return b?typeof b=="function"||typeof b=="object"&&"render"in b?b:Hs(_,`${S}.component`,S):S}(c,t.overrides),Kr({},p,E,{className:cx(p==null?void 0:p.className,E.className)||void 0}),...m)}function o(c){let p=!1;t.forceInline?p=!0:t.forceBlock||(p=MT.test(c)===!1);const m=u(f(p?c:`${c.trimEnd().replace(YT,"")}
|
|
96
|
-
|
|
97
|
-
`,{_:p}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(t.wrapper===null)return m;const E=t.wrapper||(p?"span":"div");let S;if(m.length>1||t.forceWrapper)S=m;else{if(m.length===1)return S=m[0],typeof S=="string"?n("span",{key:"outer"},S):S;S=null}return Oe.createElement(E,{key:"outer"},S)}function i(c){const p=c.match(lT);return p?p.reduce(function(m,E,S){const _=E.indexOf("=");if(_!==-1){const b=function(F){return F.indexOf("-")!==-1&&F.match(TT)===null&&(F=F.replace(RT,function(B,G){return G.toUpperCase()})),F}(E.slice(0,_)).trim(),A=function(F){const B=F[0];return(B==='"'||B==="'")&&F.length>=2&&F[F.length-1]===B?F.slice(1,-1):F}(E.slice(_+1).trim()),w=Ed[b]||b,N=m[w]=function(F,B){return F==="style"?B.split(/;\s?/).reduce(function(G,z){const W=z.slice(0,z.indexOf(":"));return G[W.replace(/(-[a-z])/g,H=>H[1].toUpperCase())]=z.slice(W.length+1).trim(),G},{}):F==="href"?Tn(B):(B.match(xT)&&(B=B.slice(1,B.length-1)),B==="true"||B!=="false"&&B)}(b,A);typeof N=="string"&&(Ru.test(N)||Nu.test(N))&&(m[w]=Oe.cloneElement(o(N.trim()),{key:S}))}else E!=="style"&&(m[Ed[E]||E]=!0);return m},{}):null}const s=[],a={},l={blockQuote:{t:tr(Fm),i:ve.HIGH,l:(c,p,m)=>({v:p(c[0].replace(hT,""),m)}),h:(c,p,m)=>n("blockquote",{key:m.k},p(c.v,m))},breakLine:{t:ji(pT),i:ve.HIGH,l:$s,h:(c,p,m)=>n("br",{key:m.k})},breakThematic:{t:tr(mT),i:ve.HIGH,l:$s,h:(c,p,m)=>n("hr",{key:m.k})},codeBlock:{t:tr(Um),i:ve.MAX,l:c=>({v:c[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(c,p,m)=>n("pre",{key:m.k},n("code",Kr({},c.O,{className:c.M?`lang-${c.M}`:""}),c.v))},codeFenced:{t:tr(Dm),i:ve.MAX,l:c=>({O:i(c[3]||""),v:c[4],M:c[2]||void 0,type:"codeBlock"})},codeInline:{t:mr(gT),i:ve.LOW,l:c=>({v:c[2]}),h:(c,p,m)=>n("code",{key:m.k},c.v)},footnote:{t:tr(_T),i:ve.MAX,l:c=>(s.push({I:c[2],j:c[1]}),{}),h:js},footnoteReference:{t:pr(ET),i:ve.HIGH,l:c=>({v:c[1],B:`#${t.slugify(c[1])}`}),h:(c,p,m)=>n("a",{key:m.k,href:Tn(c.B)},n("sup",{key:m.k},c.v))},gfmTask:{t:pr(wT),i:ve.HIGH,l:c=>({R:c[1].toLowerCase()==="x"}),h:(c,p,m)=>n("input",{checked:c.R,key:m.k,readOnly:!0,type:"checkbox"})},heading:{t:tr(t.enforceAtxHeadings?jm:$m),i:ve.HIGH,l:(c,p,m)=>({v:Uo(p,c[2],m),T:t.slugify(c[2]),C:c[1].length}),h:(c,p,m)=>n(`h${c.C}`,{id:c.T,key:m.k},p(c.v,m))},headingSetext:{t:tr(Hm),i:ve.MAX,l:(c,p,m)=>({v:Uo(p,c[1],m),C:c[2]==="="?1:2,type:"heading"})},htmlComment:{t:ji(qm),i:ve.HIGH,l:()=>({}),h:js},image:{t:mr(tx),i:ve.HIGH,l:c=>({D:c[1],B:Od(c[2]),F:c[3]}),h:(c,p,m)=>n("img",{key:m.k,alt:c.D||void 0,title:c.F||void 0,src:Tn(c.B)})},link:{t:pr(ex),i:ve.LOW,l:(c,p,m)=>({v:sx(p,c[1],m),B:Od(c[2]),F:c[3]}),h:(c,p,m)=>n("a",{key:m.k,href:Tn(c.B),title:c.F},p(c.v,m))},linkAngleBraceStyleDetector:{t:pr(CT),i:ve.MAX,l:c=>({v:[{v:c[1],type:"text"}],B:c[1],type:"link"})},linkBareUrlDetector:{t:(c,p)=>p.N?null:pr(OT)(c,p),i:ve.MAX,l:c=>({v:[{v:c[1],type:"text"}],B:c[1],F:void 0,type:"link"})},linkMailtoDetector:{t:pr(AT),i:ve.MAX,l(c){let p=c[1],m=c[1];return fT.test(m)||(m="mailto:"+m),{v:[{v:p.replace("mailto:",""),type:"text"}],B:m,type:"link"}}},orderedList:Sd(n,1),unorderedList:Sd(n,2),newlineCoalescer:{t:tr(yT),i:ve.LOW,l:$s,h:()=>`
|
|
98
|
-
`},paragraph:{t:ax,i:ve.LOW,l:Us,h:(c,p,m)=>n("p",{key:m.k},p(c.v,m))},ref:{t:pr(NT),i:ve.MAX,l:c=>(a[c[1]]={B:c[2],F:c[4]},{}),h:js},refImage:{t:mr(PT),i:ve.MAX,l:c=>({D:c[1]||void 0,P:c[2]}),h:(c,p,m)=>n("img",{key:m.k,alt:c.D,src:Tn(a[c.P].B),title:a[c.P].F})},refLink:{t:pr(IT),i:ve.MAX,l:(c,p,m)=>({v:p(c[1],m),Z:p(c[0].replace(LT,"\\$1"),m),P:c[2]}),h:(c,p,m)=>a[c.P]?n("a",{key:m.k,href:Tn(a[c.P].B),title:a[c.P].F},p(c.v,m)):n("span",{key:m.k},p(c.Z,m))},table:{t:tr(Gm),i:ve.HIGH,l:ox,h:(c,p,m)=>n("table",{key:m.k},n("thead",null,n("tr",null,c.L.map(function(E,S){return n("th",{key:S,style:xd(c,S)},p(E,m))}))),n("tbody",null,c.A.map(function(E,S){return n("tr",{key:S},E.map(function(_,b){return n("td",{key:b,style:xd(c,b)},p(_,m))}))})))},tableSeparator:{t:function(c,p){return p.$?(p._=!0,BT.exec(c)):null},i:ve.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:ji(zT),i:ve.MIN,l:c=>({v:c[0].replace(ST,(p,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:p)}),h:c=>c.v},textBolded:{t:mr(HT),i:ve.MED,l:(c,p,m)=>({v:p(c[2],m)}),h:(c,p,m)=>n("strong",{key:m.k},p(c.v,m))},textEmphasized:{t:mr(qT),i:ve.LOW,l:(c,p,m)=>({v:p(c[2],m)}),h:(c,p,m)=>n("em",{key:m.k},p(c.v,m))},textEscaped:{t:mr(VT),i:ve.HIGH,l:c=>({v:c[1],type:"text"})},textMarked:{t:mr(GT),i:ve.LOW,l:Us,h:(c,p,m)=>n("mark",{key:m.k},p(c.v,m))},textStrikethroughed:{t:mr(WT),i:ve.LOW,l:Us,h:(c,p,m)=>n("del",{key:m.k},p(c.v,m))}};t.disableParsingRawHTML!==!0&&(l.htmlBlock={t:ji(Ru),i:ve.HIGH,l(c,p,m){const[,E]=c[3].match(KT),S=new RegExp(`^${E}`,"gm"),_=c[3].replace(S,""),b=(A=_,rx.some(B=>B.test(A))?ux:Uo);var A;const w=c[1].toLowerCase(),N=cT.indexOf(w)!==-1;m.N=m.N||w==="a";const F=N?c[3]:b(p,_,m);return m.N=!1,{O:i(c[2]),v:F,G:N,H:N?w:c[1]}},h:(c,p,m)=>n(c.H,Kr({key:m.k},c.O),c.G?c.v:p(c.v,m))},l.htmlSelfClosing={t:ji(Nu),i:ve.HIGH,l:c=>({O:i(c[2]||""),H:c[1]}),h:(c,p,m)=>n(c.H,Kr({},c.O,{key:m.k}))});const f=function(c){let p=Object.keys(c);function m(E,S){let _=[],b="";for(;E;){let A=0;for(;A<p.length;){const w=p[A],N=c[w],F=N.t(E,S,b);if(F){const B=F[0];E=E.substring(B.length);const G=N.l(F,m,S);G.type==null&&(G.type=w),_.push(G),b=B;break}A++}}return _}return p.sort(function(E,S){let _=c[E].i,b=c[S].i;return _!==b?_-b:E<S?-1:1}),function(E,S){return m(function(_){return _.replace(vT,`
|
|
99
|
-
`).replace(bT,"").replace(kT," ")}(E),S)}}(l),u=(h=function(c){return function(p,m,E){return c[p.type].h(p,m,E)}}(l),function c(p,m={}){if(Array.isArray(p)){const E=m.k,S=[];let _=!1;for(let b=0;b<p.length;b++){m.k=b;const A=c(p[b],m),w=typeof A=="string";w&&_?S[S.length-1]+=A:A!==null&&S.push(A),_=w}return m.k=E,S}return h(p,c,m)});var h;const d=o(e);return s.length?n("div",null,d,n("footer",{key:"footer"},s.map(function(c){return n("div",{id:t.slugify(c.j),key:c.j},c.j,u(f(c.I,{_:!0})))}))):d}(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(ve||(ve={}));const ca=e=>{let{children:t,options:r}=e,n=function(o,i){if(o==null)return{};var s,a,l={},f=Object.keys(o);for(a=0;a<f.length;a++)i.indexOf(s=f[a])>=0||(l[s]=o[s]);return l}(e,uT);return Oe.cloneElement(lx(t,r),n)};const or=({variant:e="primary",className:t="",children:r,...n})=>O.jsx("div",{className:ne("highlighted-text-box",e,t),...n,children:r});const rg=({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,s=to(i);if(i&&typeof r=="object"&&typeof s=="number"){const h=Object.assign({},r.breakpoints),d=tm(Object.keys(h));o=rm(s,d,h)}const{breakpoints:a,text:l="",component:f,...u}=r;return O.jsx(or,{variant:"subtle",className:ne("empty-state-box",e,n),children:O.jsxs(O.Fragment,{children:[t&&O.jsx(ca,{options:{forceBlock:!0},children:t}),o&&typeof r=="object"&&(f||O.jsx(Ue,{...u,variant:r.variant?r.variant:"secondary",children:l}))]})})};const Pu=({children:e,...t})=>O.jsx("p",{...t,children:e}),ng={q:Pu,blockquote:Pu};for(let e=1;e<=6;e++)ng[`h${e}`]={component:Pu,props:{className:"title"}};const ig=({type:e="default",className:t="",heading:r=!1,children:n})=>O.jsxs("div",{className:ne("helper-text-box text-small",e,t),children:[r&&O.jsx("p",{className:"title",children:r}),typeof n=="string"?O.jsx(ca,{options:{wrapper:U.Fragment,forceBlock:!0,overrides:ng},children:n}):O.jsx("p",{children:n})]});const fx=({className:e="",show:t=!1,hide:r=!1,text:n,children:o})=>{const i=Ee(),s=U.useRef(null),[a,l]=U.useState(""),[f,u]=U.useState("closed");U.useEffect(()=>{const c=s.current;if(c)return c.addEventListener("transitionend",h),()=>{c.removeEventListener("transitionend",h)}},[]),U.useEffect(()=>{if(!n||typeof n!="string")return;const c=n.split(`
|
|
100
|
-
`);l(c.length<3?`${n.substring(0,400)}...`:c.slice(0,3).join(`
|
|
101
|
-
`))},[n]),U.useEffect(()=>{f==="ready-to-close"&&u("closing")},[f]);const h=({propertyName:c})=>{c==="max-height"&&u(p=>p==="opening"?"open":p==="closing"?"closed":p)};if(!n)return null;const d=["opening","open"].includes(f);return O.jsxs(or,{variant:"subtle",className:ne("hide-show-text-box",e),children:[O.jsxs("div",{ref:s,className:ne("content",f),children:[O.jsx(ca,{options:{forceBlock:!0},children:f==="closed"?a:n}),f!=="closed"&&o]}),O.jsx("p",{className:"cta",children:O.jsx(Ue,{variant:"tertiary",icon:{icon:"navigation_arrow",position:"left",animate:!0},styling:{muted:!0},className:ne({"rotate-180":d}),onClick:()=>{u(d?"ready-to-close":"opening")},children:d?r||i.formatMessage({id:"hideShowTextBox_hide"}):t||i.formatMessage({id:"hideShowTextBox_show"})})})]})},dx=()=>U.Fragment,hx=({children:e})=>O.jsx(or,{variant:"secondary",children:e}),px=["span","strong","h1","h2","h3","h4","h5","h6","p"],mx=({children:e})=>{const t=Ee();if(!e)return null;let r=t.formatMessage({id:"markdown_collapsibleSection_summary"});const n=[];for(const i of U.Children.toArray(e))if(!(!i||typeof i=="string"||typeof i=="number"))if(U.isValidElement(i)&&i.type==="summary"){if(i.props&&i.props.children){for(const s of U.Children.toArray(i.props.children))if(!(!s||typeof s=="string"||typeof s=="number")&&U.isValidElement(s)){const a=s.type;if(px.includes(a)){for(r=s.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 O.jsx(ac,{label:o,className:["Sources","Resources"].includes(o)?"discrete-links":"",children:n.map(i=>i)})},gx=({children:e,...t})=>{if(t.class)switch(t.class){case"casestudy":return O.jsx(or,{variant:"secondary",children:e});case"general-textbox":case"highlight-box":return O.jsx(or,{variant:"primary",children:e});case"pink-textbox":return O.jsx(or,{variant:"tertiary",children:e});default:return O.jsx("div",{...t,children:e})}return O.jsx("div",{...t,children:e})},yx=e=>{const t=Ee(),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"),O.jsxs(O.Fragment,{children:[O.jsx(Je,{children:O.jsx("a",{href:`#content-after-iframe-${r}`,children:t.formatMessage({id:`markdown_skip${n==="default"?"":`_${n}`}`})})}),O.jsx("iframe",{...e,title:t.formatMessage({id:`markdown_iframe${n==="default"?"":`_${n}`}`})}),O.jsx("span",{id:`content-after-iframe-${r}`,tabIndex:-1})]})},Ad=e=>{let t="";return e&&typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"&&"type"in e&&(t=e.type),t},vx=({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 U.Children.toArray(e))if(!(!i||typeof i=="string"||typeof i=="number")&&U.isValidElement(i)){const s=i.type;if(["button","center","span","strong"].includes(s)&&i.props&&i.props.children&&i.props.children[0])for((s==="button"||Ad(i.props.children[0])==="button")&&(o=!0),n=i.props.children[0];n&&typeof n!="string"&&!(typeof n=="boolean"||typeof n=="number"||!U.isValidElement(n));)if(n.props&&n.props.children&&n.props.children[0])n=n.props.children[0],n&&Ad(n)==="button"&&(o=!0);else break}return o?(r={...r,className:"button primary medium"},O.jsx("p",{className:"center",children:O.jsx(Ue,{variant:"primary",size:"medium",...r,children:n})})):O.jsx("a",{...r,children:n})},og=({children:e})=>O.jsx("span",{children:e});const Iu=({className:e="",options:t={},children:r})=>{r=r.replace(/^<br\/?>/,"");const n={wrapper:U.Fragment,forceBlock:!0,overrides:{a:vx,CollapsibleSection:ac,TextBox:or,CaseStudy:hx,style:dx,details:mx,div:gx,iframe:yx}};return O.jsx("div",{className:ne("markdown-text",e),children:O.jsx(ca,{options:{...n,...t},children:r})})};const ag=({size:e="medium",variant:t="default",className:r="",children:n})=>O.jsx("span",{className:ne("pill",e,t,r),children:n});const Qo=({element:e="p",children:t=null,className:r="",...n})=>U.createElement(e,{...n,className:ne("status-banner text-small",r),"aria-live":"assertive"},t);const _x=({progress:e=0,text:t=!1,className:r=""})=>{const n=Ee(),o=e>75?100:e>50?75:e>25?50:e>5?25:0,i={"--progress":`${e}%`};return O.jsx("span",{className:ne(`progress-bar section-${o}`,r),style:i,children:O.jsx(Je,{children:t?`${e} ${t}`:n.formatMessage({id:"progressBar"},{number:e})})})},sg=U.memo(_x);const qs="loadingBlock_",Ex=({progress:e=0,steps:t=!1,className:r=""})=>{const n=Ee();t||(t={0:{text:n.formatMessage({id:`${qs}loading`})},75:{text:n.formatMessage({id:`${qs}almostDone`})},100:{text:n.formatMessage({id:`${qs}complete`})}});let o=null;const i=Object.keys(t);for(let a=0;a<i.length&&!(e<parseInt(i[a]));a++)o=i[a];const s=o&&t[o].icon?{"--icon":`url(${Ko}icons/${t[o].icon}.svg)`}:{};return O.jsxs(or,{className:ne("loading-block",r,{"has-icon":o&&t[o].icon}),variant:"subtle",style:s,children:[o&&O.jsx("span",{className:"step",children:t[o].text}),O.jsx(sg,{progress:e})]})},bx=U.memo(Ex);const Er=({element:e="div",className:t="",...r})=>O.jsx(ku,{element:e,className:ne("loading-placeholder",t),...r});const Lu={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"]},ug=(e,t)=>e in Lu?O.jsx("div",{className:e,children:Lu[e].map((r,n)=>ug(r,n))},t):O.jsx(Er,{className:e},t),cg=({layout:e="overview-page"})=>O.jsx("div",{className:ne("loading-state",e),children:Lu[e].map((t,r)=>ug(t,r))}),lg=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):""},Po=["#5AB6A3","#A2D7AF","#806056","#3962B3"],wx=e=>{const t=Math.ceil(26/Po.length),r=lg(e).toLowerCase();if(r==="")return Po[0];const n=r.charCodeAt(0)-96;for(let o=0;o<Po.length;o++)if(n<=t*(o+1))return Po[o]};const Cd=256,la=({className:e="",src:t="",name:r,alt:n,width:o=Cd,height:i=Cd,...s})=>{const[a,l]=U.useState(!1),f=U.useRef(null);return U.useEffect(()=>{const u=f.current;if(!u)return;const h=u.getContext("2d");if(!h)return;const d=o,c=i;typeof window<"u"&&window.devicePixelRatio&&(u.width=d*window.devicePixelRatio,u.height=c*window.devicePixelRatio,h.scale(window.devicePixelRatio,window.devicePixelRatio)),h.fillStyle=wx(r),h.fillRect(0,0,d,c),h.font=`${d/3}px Arial`,h.textAlign="center",h.fillStyle="white",h.fillText(lg(r),d/2,c/1.6)},[r]),O.jsxs("figure",{className:ne("profile-picture",e,{error:a}),...s,children:[t!==""&&!a&&O.jsx("img",{src:t,alt:n||r,onError:()=>{l(!0)},width:o,height:i}),(t===""||a)&&O.jsx("canvas",{ref:f})]})},cc=e=>e==="apolitical"?{image:`${Ko}logos/member_apolitical.svg`}:e==="community"||typeof e=="object"&&!e.name?{image:`${Ko}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},Sx=({role:e="",organisation:t="",country:r="",maximumCharacters:n=80})=>{const o=e!=="",i=t!=="",s=r!=="";if(!o&&!i&&!s)return"";const a=`${e}${o&&i?` — ${t}`:t}`;let l=`${a}${(o||i)&&s?`, ${r}`:r}`;return l.length>n&&(l=a),l.length>n&&(l=oc(l,n)),l};const fa=({element:e="div",member:t="community",additionalContent:r=!1,gtmContext:n="member",gtmType:o="member-click",className:i=""})=>{const s=Ee(),a=cc(t);a.name||(a.name=s.formatMessage({id:`member_${typeof t=="string"?t:"community"}`}));const{name:l,url:f,image:u}=a,h=Sx(a),d=r&&r.createdAt?xw(r.createdAt):!1,c=r&&r.createdAt?Tw(r.createdAt):"";return U.createElement(e,{className:ne("member text-medium",i),children:O.jsxs(sa,{href:f,gtmType:o,gtmContext:n,onClick:p=>{p==null||p.stopPropagation()},children:[O.jsx(la,{name:l,src:u}),O.jsxs("p",{className:"details",children:[O.jsx("strong",{children:l}),r&&O.jsxs("span",{className:"additional-content",children:[r.createdAt&&d&&O.jsx("span",{className:"date",title:c,"aria-label":c,children:s.formatMessage({id:`dates_${d.path}`},{number:d.number})}),r.didEdit&&O.jsx("em",{children:s.formatMessage({id:"discussion_edited"})})]}),h&&O.jsx("small",{children:h})]})]})})};const Rd={small:24,medium:48},fg=({element:e="div",contributors:{total:t,data:r}={total:void 0,data:[]},styling:{showText:n,size:o,showGap:i,showPlaceholders:s}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:a=2,className:l=""})=>{const f=Ee();return!r||r.length===0?null:U.createElement(e,{className:ne("contributors",l,o,{"has-gap":i}),children:O.jsxs(O.Fragment,{children:[O.jsx("ul",{children:r.map((u,h)=>{let d,c="";if(h<a){const{name:p="",image:m=""}=cc(u);if(s)return O.jsx(Er,{element:"li",className:"contributor"},h);d=O.jsx(la,{name:p,src:m,width:Rd[o||"medium"],height:Rd[o||"medium"]})}else if(h===a){const p=(t||r.length)-a;d=O.jsxs("small",{className:ne({"large-number":p>99}),children:["+",Rw(p,0)]}),c="number-left"}return d?O.jsx("li",{className:ne("contributor",c),children:d},h):null})}),n&&O.jsx("span",{className:"label",children:typeof n=="string"?n:r.length===1?typeof r[0]=="string"?f.formatMessage({id:`member_${r[0]}`}):oc(r[0].name||"",20):null})]})})},Tx=({children:e,locale:t,messages:r})=>{const n=t||"en",o={...Cw[n],...r||{}};return O.jsx(JS,{locale:n,messages:o,children:e})},Un=U.createContext(null),xx=({children:e,user:t})=>O.jsx(Un.Provider,{value:t,children:e});const Gs="joinCommunityButton",dg=({isMember:e=!1,isShort:t=!1,functions:{join:r,leave:n}={join:()=>{},leave:()=>{}}})=>{const o=Ee(),i=U.useContext(Un),s=i&&typeof i.id=="string",[a,l]=U.useState(e),[f,u]=U.useState(e?"joined":"notJoined");U.useEffect(()=>{f==="joining"?u("joined"):f==="leaving"&&u("notJoined")},[a]);const h={},d={};return a&&f!=="leaving"&&(h["data-hover-text"]=o.formatMessage({id:`${Gs}_leave`}),h["aria-label"]=o.formatMessage({id:`${Gs}_member_aria`}),d["aria-hidden"]="true"),O.jsx(Ue,{variant:a?"secondary":"primary",size:"medium",styling:{fullWidth:!0},icon:a&&f!=="leaving"?{icon:"tick",position:"left"}:!1,onClick:async c=>{s&&(c.currentTarget.blur(),a?(u("leaving"),typeof n=="function"&&await n()):(u("joining"),typeof r=="function"&&await r()),l(!a))},className:ne("join-community-button",f,{active:f==="joining"}),disabled:!s,...h,children:O.jsx("span",{className:"text",...d,children:o.formatMessage({id:`${Gs}${["joining","leaving"].includes(f)?`_${f}`:a?"_member":t?"_short":""}`})})})};const Ws="communityDetails_",Ox=({isMember:e=!1,slug:t,members:{number:r,data:n}={number:void 0,data:[]},className:o="",...i})=>{const s=Ee(),a=r||(n==null?void 0:n.length)||0;return O.jsxs("div",{className:ne("community-details",o),children:[O.jsx(Yo,{}),O.jsxs("div",{className:"member-details",children:[O.jsxs("div",{className:"top",children:[O.jsxs("h3",{children:[s.formatMessage({id:`${Ws}members`}),O.jsx("span",{className:"count",children:a})]}),O.jsx("p",{className:"text-small",children:O.jsx("a",{href:`/communities/${t}/members`,children:s.formatMessage({id:`${Ws}viewAll`})})})]}),O.jsx(fg,{contributors:{total:r,data:n!=null&&n.length?n:[{},{},{},{},{}]},styling:{size:"medium",showGap:!0,showPlaceholders:a===0},cutoff:5})]}),O.jsx(dg,{isMember:e,...i}),e&&O.jsx(Ue,{variant:"primary",icon:{icon:"plus"},styling:{fullWidth:!0},children:s.formatMessage({id:`${Ws}invite`})})]})};const Ax=({breadcrumbs:e,cutoff:t=20,className:r=""})=>{const n=Ee();return O.jsxs(O.Fragment,{children:[O.jsx(Je,{element:"p",children:n.formatMessage({id:"breadcrumbs_label"})}),O.jsx("ul",{className:ne("breadcrumbs text-small",r),children:e.map(({text:o,href:i,current:s=!1},a)=>O.jsxs("li",{children:[s&&O.jsx(Je,{element:"span",children:n.formatMessage({id:"breadcrumbs_currentPage"})}),O.jsx(sa,{href:s?void 0:i,children:oc(o,t)})]},`${window.btoa(o)}_${a}`))})]})};const Cx=({options:e,allOption:t=!1,allowMultiple:r=!0,onChange:n=()=>{},className:o=""})=>{const i=Ee(),s=t?[{id:"all",text:typeof t!="boolean"&&t.text||i.formatMessage({id:"filters_all"})},...e]:e,[a,l]=U.useState(t?["all"]:[]),f=(u,h)=>{let d=[];a.includes(u)?d=a.filter(c=>c!==u):u==="all"?d=["all"]:r?d=[...a.filter(c=>c!=="all"),u]:d=[u],l(c=>(n&&typeof n=="function"&&n({current:d,previous:c}),d)),h&&typeof h=="function"&&h()};return O.jsx("ul",{className:ne("filters",o),children:s.map(({id:u,text:h,disabled:d=!1,callback:c=()=>{}})=>{let p={};return d&&(p={disabled:!0,"aria-label":i.formatMessage({id:"filters_disabled"},{name:h})}),O.jsx("li",{children:O.jsx("button",{className:ne(u,{selected:a.includes(u)}),onClick:m=>{m.preventDefault(),m.stopPropagation(),f(u,c)},...p,children:h})},u)})})};const Vs=Cu({locale:"en",messages:Zu}),hg=({page:e=1,length:t=0,limit:r=10,loadNextPage:n=()=>{},icon:o=!1,messages:i={button:Vs.formatMessage({id:"loadMore_button"}),endOfFeed:Vs.formatMessage({id:"loadMore_endOfFeed"}),error:Vs.formatMessage({id:"loadMore_error"})},className:s="",gtmContext:a="LoadMore"})=>{const[l,f]=U.useState(!1),[u,h]=U.useState(!1);if(t<=0||t<r*e)return null;const d=async c=>{try{await n(c)}catch(p){p instanceof Error&&p.message&&p.message.includes("Cannot read items")?h(!0):f(!0)}};return O.jsxs("footer",{className:ne("load-more",s),children:[l&&O.jsx("p",{className:"error",children:i.error}),u?O.jsx("p",{children:i.endOfFeed}):O.jsx(Ue,{variant:"secondary",icon:o,onClick:d,"data-gtm-event-context":a,"data-gtm-event-type":"load-more-click",className:"gtm-trackable","data-testid":"load-more-button",children:i.button})]})};let Io=!1;const pg=({element:e="div",id:t="more-menu",options:r,className:n=""})=>{const o=Ee(),i=U.useRef(null),[s,a]=U.useState(!1),l=f=>{i.current&&f.target instanceof HTMLElement&&!i.current.contains(f.target)&&a(!1)};return U.useEffect(()=>(document.addEventListener("click",l,!0),()=>{document.removeEventListener("click",l,!0)})),U.createElement(e,{ref:i,className:ne("more-menu text-medium",n),children:O.jsxs(O.Fragment,{children:[O.jsx(Ue,{variant:"tertiary",size:"medium",icon:{icon:"ellipsis"},onClick:()=>a(!s),"aria-haspopup":"true","aria-expanded":s,"aria-controls":t,screenreaderText:o.formatMessage({id:"moreMenu"})}),O.jsx("ul",{id:t,hidden:!s,children:r.map(({href:f,onClick:u,text:h,icon:d,...c},p)=>{const m={...c,onClick:E=>{a(!1),typeof u=="function"&&u(E)},onFocus:()=>{Io&&(clearTimeout(Io),Io=!1)},onBlur:()=>{Io=setTimeout(()=>{a(!1)},100)}};return f&&(m.href=f),O.jsx("li",{children:O.jsx(Ue,{variant:"tertiary",size:"medium",icon:d?{icon:d,position:"left"}:!1,...m,children:h})},`${window.btoa(h)}_${p}`)})})]})})};const lc=({variant:e="default",version:t="default",className:r="",...n})=>O.jsx("p",{className:"logo-wrapper",children:O.jsx("a",{href:"/home/",className:ne("logo",e,t,r),...n,children:O.jsx(Je,{children:O.jsx(vr,{id:"apolitical"})})})});const Rx={"2-1":901},Nx=({layout:e="2-1",hideOnMobile:t=!1,className:r="",children:n})=>{const o=to(!0);let i=n;return U.Children.count(n)===1&&(i=U.Children.toArray(n)[0],i.props&&(i=i.props.children)),O.jsx("section",{className:ne("columns",`layout-${e}`,r),children:U.Children.map(i,(s,a)=>t!==!1&&a===t&&o&&o<Rx[e]?null:s)})};const zs="cookieBanner_",Ys=["apol-cookie-banner","apolitical-performance-cookie-consent","functional-cookie-consent"],Ks=new Date(Date.now()+12*30*24*60*60*1e3),mg=()=>{const e=Ee(),[t,r,n]=Yd(Ys),[o,i]=U.useState(!t["apol-cookie-banner"]),s=()=>{Ys.forEach(u=>{r(u,!0,{path:"/",expires:Ks,domain:u==="apolitical-performance-cookie-consent"?".apolitical.co":void 0})}),i(!1),window.location.reload()},a=()=>{r("apol-cookie-banner",!0,{path:"/",expires:Ks}),Ys.forEach(u=>{if(u==="apol-cookie-banner"){r(u,!0,{path:"/",expires:Ks});return}n(u)}),i(!1)};if(!o)return null;const l=[{id:"settings",href:"/pages/cookie-policy",gtmType:"policy-page"},{id:"reject",onClick:a,gtmType:"reject-all"},{id:"accept",onClick:s,gtmType:"accepted-all"}],f=[];return l.forEach(u=>{f.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:`${zs}buttons_${u.id}`})})}),O.jsxs("aside",{id:"cookie-banner",className:"text-medium",children:[O.jsx("h6",{children:e.formatMessage({id:`${zs}title`})}),O.jsx("p",{children:e.formatMessage({id:`${zs}text`})}),O.jsx(ro,{buttons:f})]})},ir={platform:{order:["events","courses","qanda","articles"],events:{href:"/events/",gtmType:"events-click"},courses:{href:"/microcourses/",gtmType:"microcourses-click"},qanda:{href:"/questions-answers/",gtmType:"q-and-a-click"},articles:{href:"/solution-articles/",gtmType:"articles-click"}},community:{order:["support","post","join","guidelines"],support:{name:"Support FAQ",href:"/pages/support-faq",gtmType:"support-faq-click"},post:{href:"/pages/post-an-article",gtmType:"post-an-article-click"},join:{href:"/pages/who-can-join-the-community",gtmType:"who-can-join-click"},guidelines:{href:"/pages/values-and-guidelines",gtmType:"guidelines-and-values-click"}},company:{order:["story","team","careers","partner","contact"],story:{href:"/pages/our-story",gtmType:"our-story-click"},team:{href:"/pages/meet-our-team",gtmType:"team-click"},careers:{href:"/pages/careers",gtmType:"careers-click"},partner:{href:"/partnerships/",gtmType:"partner-with-us-click"},contact:{href:"/pages/get-in-touch",gtmType:"contact-click"},child:"legal"},legal:{order:["privacy","terms","cookie","accessibility"],privacy:{href:"https://about.apolitical.co/privacy-policy",gtmType:"privacy-policy-link"},terms:{href:"https://about.apolitical.co/terms-and-conditions",gtmType:"terms-conditions-link"},cookie:{href:"/pages/cookie-policy",gtmType:"cookie-policy-link"},accessibility:{href:"/pages/accessibility-statement",gtmType:"accessibility-link"},text:{order:["dataProtection","euDataProtection"],dataProtection:{email:"dpo@apolitical.co",gtmType:"email-dpo-link"},euDataProtection:{email:"dpo.agl@apolitical.foundation",gtmType:"email-eu-dpo-link"}}},contact:{text:{order:["correspondence","registered","berlin","support","business"],correspondence:{address:!0},registered:{address:!0},berlin:{address:!0},support:{email:"concierge@apolitical.co",gtmType:"concierge-email-click"},business:{email:"hello@apolitical.co",gtmType:"hello-email-click"}}},social:{order:["linkedin","twitter","facebook"],linkedin:{href:"https://www.linkedin.com/company/apolitical"},twitter:{href:"https://twitter.com/apoliticalco"},facebook:{href:"https://www.facebook.com/apoliticalco"}}};const An="footer_",Xo="SiteFooter",Nd=({group:e})=>{const t=ir[e].order||[];let r=!1;return"text"in ir[e]&&(r=ir[e].text),O.jsxs(U.Fragment,{children:[O.jsx("p",{className:"pre-title",children:O.jsx(vr,{id:`${An}${e}`})}),Array.isArray(t)&&t.length>0&&O.jsx("ul",{className:"text-medium",children:t.map(n=>{if(["order","child","text"].includes(n))return null;const{href:o,gtmType:i}=ir[e][n],s={};return["legal"].includes(e)&&(s.target="_blank",s.rel="noopener"),O.jsx("li",{children:O.jsx("a",{href:o,className:"gtm-trackable","data-gtm-event-context":Xo,"data-gtm-event-type":i,...s,children:O.jsx(vr,{id:`${An}${e}_${n}`})})},`${e}_${n}`)})}),typeof r!="boolean"&&"order"in r&&Array.isArray(r.order)&&O.jsx("dl",{className:"text-medium",children:r.order.map(n=>O.jsxs(U.Fragment,{children:[O.jsx("dt",{children:O.jsx(vr,{id:`${An}${e}_${n}`})}),O.jsxs("dd",{children:[typeof r!="boolean"&&r[n].address&&O.jsx("address",{children:O.jsx(vr,{id:`${An}${e}_${n}_address`,values:{br:O.jsx("br",{})}})}),typeof r!="boolean"&&r[n].email&&O.jsx("a",{href:`mailto:${r[n].email}`,className:"gtm-trackable","data-gtm-event-context":Xo,"data-gtm-event-type":r[n].gtmType,children:r[n].email})]})]},`dl-${e}-${n}`))})]},e)},fc=()=>O.jsx("div",{id:"footer",children:O.jsxs("div",{className:"wrapper",children:[O.jsx(ku,{element:"hr"}),O.jsx(lc,{variant:"inverted",version:"full",className:"gtm-trackable","data-gtm-event-context":Xo,"data-gtm-event-type":"logo-homepage-link"}),O.jsx("footer",{children:["platform","community","company","contact"].map(e=>O.jsxs("div",{className:"group",children:[O.jsx(Nd,{group:e}),Object.keys(ir[e]).includes("child")&&O.jsx(Nd,{group:ir[e].child})]},e))}),O.jsx("hr",{}),O.jsxs("div",{className:"sub-footer",children:[O.jsx("ul",{children:Array.isArray(ir.social.order)&&ir.social.order.map(e=>{const t=ir.social[e];return O.jsx("li",{className:e,children:O.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"gtm-trackable","data-gtm-event-context":Xo,"data-gtm-event-type":"social-click",children:O.jsx("span",{className:"hidden",children:O.jsx(vr,{id:`${An}social_${e}`})})})},e)})}),O.jsx("small",{children:O.jsx(vr,{id:`${An}copyright`,values:{currentYear:new Date().getFullYear()}})})]})]})});const Lo="emailHelperTextBox_",Px=({type:e,email:t,redirectPath:r,resendVerificationCode:n})=>{const o=Ee(),[i,s]=U.useState({path:`${Lo}default`,type:"default",link:{},mail:{},error:""}),[a,l]=U.useState(!1),f=U.useCallback(c=>{c.preventDefault(),c.stopPropagation();const p=m=>{s({path:`${Lo}error_verificationFailedToSend`,type:"error",link:{"data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:E=>f(E),href:"#","data-testid":"send-verify-email-click"},mail:{href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"ErrorVerifyingBox","data-gtm-event-type":"email-concierge-click"},error:m})};if(typeof n!="function"){p(o.formatMessage({id:`${Lo}error_noFunction`}));return}l(!0),n(t).then(()=>{localStorage.setItem("email",t),window.location.href=r||"/signup/verify-email"}).catch(m=>{p(m.message)}).finally(()=>{l(!1)})},[t,r,n]);U.useEffect(()=>{let c=Lo,p="default",m={},E={};switch(e){case"gov":c+="autoApproved",p="success";break;case"nonGov":c+="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":c+="pendingApproval",p="error",E={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;case"verify":c+="emailUnverified",p="error",m={href:"#","data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:S=>f(S),"data-testid":"send-verify-email-click"};break;case"exists":c+="emailAlreadyExists",p="error",m={href:"/user-onboarding/login","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"login-click"},E={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;default:c+="default",m={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"DefaultEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break}s({...i,path:c,type:p,link:m,mail:E})},[e]);const u={};return["link","mail"].forEach(c=>{u[c]=Object.keys(i[c]).length?p=>O.jsx("a",{...i[c],children:p}):p=>p}),O.jsx(ig,{type:i.type,heading:a?!1:o.formatMessage({id:`${i.path}_title`}),children:a?O.jsxs(O.Fragment,{children:[O.jsx(Er,{element:"span"}),O.jsx(Er,{element:"span"})]}):o.formatMessage({id:`${i.path}_text`},{...u,strong:c=>O.jsx("strong",{children:c}),em:c=>O.jsx("em",{children:c}),br:O.jsxs(O.Fragment,{children:[O.jsx("br",{}),O.jsx("br",{})]}),error:i.error})})};const Mo="passwordRules_",gg="isMoreThanEightCharacters",yg="includesNumberAndSymbol",vg="includesLowerAndUppercase",Ix={[gg]:"8Characters",[yg]:"numberSymbol",[vg]:"lowercaseUppercase"},Lx=({matchingRules:e={isMoreThanEightCharacters:!1,includesNumberAndSymbol:!1,includesLowerAndUppercase:!1},className:t=""})=>{const r=Ee();return O.jsxs("aside",{className:ne("password-rules",t),children:[O.jsx("small",{children:r.formatMessage({id:`${Mo}intro`})}),O.jsx("ul",{children:[gg,yg,vg].map(n=>O.jsxs("li",{className:ne({matches:e[n]}),children:[O.jsxs(Je,{children:[r.formatMessage({id:`${Mo}rule_label`})," "]}),O.jsx("span",{children:r.formatMessage({id:`${Mo}rule_${Ix[n]}`})}),!e[n]&&O.jsxs(Je,{element:"strong",children:[" "," ",r.formatMessage({id:`${Mo}notMet`})]})]},`rule-${n}`))})]})},Mx=U.memo(Lx);const kx=({text:e={},topRating:t=5,functions:{createRating:r=()=>null,updateRating:n=()=>{},reportError:o=()=>{}},className:i="",hasLoaded:s=!1})=>{const a=Ee(),[l,f]=U.useState({setUp:!1,id:null,rating:null,disabled:!0}),u=async()=>{try{const S=await r();f(_=>({..._,setUp:!0,id:S&&S.id,disabled:!1}))}catch(S){f(_=>({..._,setUp:!0,disabled:!0})),o(S)}};if(U.useEffect(()=>{s&&!l.setUp&&u()},[s]),!s)return O.jsx(Er,{className:"rating-placeholder"});const{id:h,rating:d,disabled:c}=l,p="ratings_",m={text:a.formatMessage({id:`${p}text`}),low:a.formatMessage({id:`${p}low`}),high:a.formatMessage({id:`${p}high`}),success:a.formatMessage({id:`${p}success`}),...e},E=async S=>{if(!(!h||c))try{f(_=>({..._,rating:S,disabled:!0})),await n({id:h,value:S})}catch(_){f(b=>({...b,rating:null})),o(_)}finally{f(_=>({..._,disabled:!1}))}};return O.jsxs("div",{className:ne("rating",i),children:[O.jsx("span",{className:"label",children:m[d?"success":"text"]}),O.jsx("ol",{children:Array.from(new Array(t).keys()).map(S=>{const _=S+1;return O.jsx("li",{className:ne({selected:d&&_<=d}),children:O.jsx(Ue,{variant:"tertiary",size:"small",icon:{icon:`star${!d||_>d?"_empty":""}`,position:"left",hover:"star"},screenreaderText:`${a.formatMessage({id:`${p}stars`},{number:_,total:t})}${_===1||_===t?` - ${m[_===1?"low":"high"]}`:""}`,onClick:b=>{b.preventDefault(),b.stopPropagation(),E(_)},disabled:c})},`rating-${_}`)})})]})};const _g=({id:e="search",className:t="",handleToggle:r=!1,defaultValue:n="",gtmContext:o="search-bar",gtmEvent:i="form-submission"})=>{const{searchIsOpen:s=!0,isDesktopVersion:a=!1}=r||{},l=Ee(),f=U.useRef(null);Jr(()=>{!r||a||!s||f.current&&f.current.focus()},[s]);const u=h=>{h.preventDefault(),h.stopPropagation(),!(!f.current||!f.current.value||f.current.value.length<1)&&(window.location.href=`/search?search=${encodeURIComponent(f.current.value)}`)};return O.jsx("form",{onSubmit:u,className:ne("search-form gtm-trackable",t),"data-gtm-event-context":o,"data-gtm-event-type":i,children:O.jsx("fieldset",{id:`${e}-form`,hidden:r?!s:!1,role:"search",children:O.jsxs("p",{children:[O.jsx(Je,{element:"label",htmlFor:e,children:l.formatMessage({id:"search_label"})}),O.jsx("input",{ref:f,type:"search",id:e,name:e,defaultValue:n,placeholder:l.formatMessage({id:"search_placeholder"}),onKeyDown:h=>{h.key==="Enter"&&u(h)}}),O.jsx("button",{className:"clear",onClick:h=>{h.preventDefault(),h.stopPropagation(),f.current&&f.current.value&&(f.current.value="")},children:O.jsx(Je,{children:l.formatMessage({id:"search_clear"})})}),O.jsx("button",{className:"search",onClick:u,children:O.jsx(Je,{children:l.formatMessage({id:"search_cta"})})})]})})})};var Bx="Expected a function",Eg="__lodash_hash_undefined__",bg=1/0,Fx="[object Function]",Dx="[object GeneratorFunction]",Ux="[object Symbol]",$x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jx=/^\w*$/,Hx=/^\./,qx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gx=/[\\^$.*+?()[\]{}|]/g,Wx=/\\(\\)?/g,Vx=/^\[object .+?Constructor\]$/,zx=typeof ue=="object"&&ue&&ue.Object===Object&&ue,Yx=typeof self=="object"&&self&&self.Object===Object&&self,dc=zx||Yx||Function("return this")();function Kx(e,t){return e==null?void 0:e[t]}function Qx(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Xx=Array.prototype,Jx=Function.prototype,wg=Object.prototype,Qs=dc["__core-js_shared__"],Pd=function(){var e=/[^.]+$/.exec(Qs&&Qs.keys&&Qs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Sg=Jx.toString,hc=wg.hasOwnProperty,Tg=wg.toString,Zx=RegExp("^"+Sg.call(hc).replace(Gx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Id=dc.Symbol,eO=Xx.splice,tO=xg(dc,"Map"),Ki=xg(Object,"create"),Ld=Id?Id.prototype:void 0,Md=Ld?Ld.toString:void 0;function tn(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 rO(){this.__data__=Ki?Ki(null):{}}function nO(e){return this.has(e)&&delete this.__data__[e]}function iO(e){var t=this.__data__;if(Ki){var r=t[e];return r===Eg?void 0:r}return hc.call(t,e)?t[e]:void 0}function oO(e){var t=this.__data__;return Ki?t[e]!==void 0:hc.call(t,e)}function aO(e,t){var r=this.__data__;return r[e]=Ki&&t===void 0?Eg:t,this}tn.prototype.clear=rO;tn.prototype.delete=nO;tn.prototype.get=iO;tn.prototype.has=oO;tn.prototype.set=aO;function $n(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 sO(){this.__data__=[]}function uO(e){var t=this.__data__,r=da(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():eO.call(t,r,1),!0}function cO(e){var t=this.__data__,r=da(t,e);return r<0?void 0:t[r][1]}function lO(e){return da(this.__data__,e)>-1}function fO(e,t){var r=this.__data__,n=da(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}$n.prototype.clear=sO;$n.prototype.delete=uO;$n.prototype.get=cO;$n.prototype.has=lO;$n.prototype.set=fO;function an(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 dO(){this.__data__={hash:new tn,map:new(tO||$n),string:new tn}}function hO(e){return ha(this,e).delete(e)}function pO(e){return ha(this,e).get(e)}function mO(e){return ha(this,e).has(e)}function gO(e,t){return ha(this,e).set(e,t),this}an.prototype.clear=dO;an.prototype.delete=hO;an.prototype.get=pO;an.prototype.has=mO;an.prototype.set=gO;function da(e,t){for(var r=e.length;r--;)if(AO(e[r][0],t))return r;return-1}function yO(e,t){t=bO(t,e)?[t]:EO(t);for(var r=0,n=t.length;e!=null&&r<n;)e=e[xO(t[r++])];return r&&r==n?e:void 0}function vO(e){if(!Ag(e)||SO(e))return!1;var t=CO(e)||Qx(e)?Zx:Vx;return t.test(OO(e))}function _O(e){if(typeof e=="string")return e;if(mc(e))return Md?Md.call(e):"";var t=e+"";return t=="0"&&1/e==-bg?"-0":t}function EO(e){return Og(e)?e:TO(e)}function ha(e,t){var r=e.__data__;return wO(t)?r[typeof t=="string"?"string":"hash"]:r.map}function xg(e,t){var r=Kx(e,t);return vO(r)?r:void 0}function bO(e,t){if(Og(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||mc(e)?!0:jx.test(e)||!$x.test(e)||t!=null&&e in Object(t)}function wO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function SO(e){return!!Pd&&Pd in e}var TO=pc(function(e){e=NO(e);var t=[];return Hx.test(e)&&t.push(""),e.replace(qx,function(r,n,o,i){t.push(o?i.replace(Wx,"$1"):n||r)}),t});function xO(e){if(typeof e=="string"||mc(e))return e;var t=e+"";return t=="0"&&1/e==-bg?"-0":t}function OO(e){if(e!=null){try{return Sg.call(e)}catch{}try{return e+""}catch{}}return""}function pc(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(Bx);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 s=e.apply(this,n);return r.cache=i.set(o,s),s};return r.cache=new(pc.Cache||an),r}pc.Cache=an;function AO(e,t){return e===t||e!==e&&t!==t}var Og=Array.isArray;function CO(e){var t=Ag(e)?Tg.call(e):"";return t==Fx||t==Dx}function Ag(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function RO(e){return!!e&&typeof e=="object"}function mc(e){return typeof e=="symbol"||RO(e)&&Tg.call(e)==Ux}function NO(e){return e==null?"":_O(e)}function PO(e,t,r){var n=e==null?void 0:yO(e,t);return n===void 0?r:n}var IO=PO;const Cg=Ht(IO),Ne={timeouts:{},handlerCalled:{},getIsDesktopVersion:(e,t)=>{const r={navigation:{loggedIn:769,loggedOut:881},search:{loggedIn:961,loggedOut:1121}},n=i=>{const s=`logged${e?"In":"Out"}`;return t>=r[i][s]};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&&Ne.handlerCalled[e]&&o-Ne.handlerCalled[e]<500)return;Ne.handlerCalled[e]=o;let i=[{type:`menus.${e}`,value:t}];t===!0&&Object.keys(r).forEach(s=>{s===e||r[s]===!1||i.push({type:`menus.${s}`,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=Cg(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?Ne.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 s,a;switch(e){case"navigation":if(r){const l=Ne.findFirstChild(t.current.children,"attributes.aria-controls","navigation");s=Ne.findFirstChild(l.children,"href")}else s=Ne.findFirstChild(t.current.children,"href");s||(s=t.current);break;case"account":if(a=Ne.findFirstChild(t.current.children,"className","account"),!a||!a.children)return;s=Ne.findFirstChild(a.children,"href");break;default:return}s&&(o([{type:`focusElements.${e}.${i}`,value:s}]),s.focus())},events:{onClick:(e,{id:t,callback:r,isOpen:n})=>{e.target&&e.target.attributes&&e.target.attributes.href||(e.preventDefault(),e.stopPropagation(),clearTimeout(Ne.timeouts[t]),r(t,!n))},onFocus:({id:e})=>{clearTimeout(Ne.timeouts[e])},onMouseEnter:({id:e,callback:t})=>{clearTimeout(Ne.timeouts[e]),t(e,!0)},onBlur:({id:e,callback:t})=>{Ne.timeouts[e]=setTimeout(()=>{t(e,!1)},250)}}},Qi={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"}}}},Jo=({id:e,isLoggedIn:t=!1,isDesktopVersion:r=!1,menus:n={},callback:o=()=>{},doTrack:i=null})=>{const s=Ee(),a=Cg(Qi,e);if(!a||a.onlyShow&&(a.onlyShow==="logged-in"&&!t||a.onlyShow==="logged-out"&&t))return null;const l="doTrack"in a,f=i===null?l?a.doTrack:!0:i,u=e.includes("buttons.");let h=`header_${e.replaceAll(".","_")}`;a.hasVariantText&&(h+=`_logged${t?"In":"Out"}`);let d=!1;if(a.href){let _=a.gtmType||`${e}-click`;if(_.includes(".")){const b=_.split("."),A=b[b.length-2];_=`${A==="topics"?`${A}-`:""}${b[b.length-1]}`}d={href:a.href,role:"menuitem"},f&&(d={...d,className:"gtm-trackable","data-gtm-event-type":_,"data-gtm-event-context":"HeaderButtons"}),u&&(d={...d,variant:"secondary",size:{mobile:"small",881:"large"},...a.props||{}})}const c=a.order&&a.order[0]&&a[a.order[0]],p=c&&a[a.order[0]].order,m=d&&window.location.pathname===a.href;let E={},S={};if(c){const _=a.menuId||e,b={onClick:A=>Ne.events.onClick(A,{id:_,callback:o,isOpen:n[_]}),onFocus:()=>Ne.events.onFocus({id:_}),onBlur:()=>Ne.events.onBlur({id:_,callback:o}),onMouseLeave:()=>Ne.events.onBlur({id:_,callback:o}),onMouseEnter:()=>Ne.events.onMouseEnter({id:_,callback:o})};r&&(p&&(E={...b,onKeyPress:A=>{A.key==="Enter"&&Ne.events.onClick(A,{id:_,callback:o,isOpen:n[_]})},tabIndex:"0","aria-haspopup":!0,"aria-expanded":n[_],"aria-controls":_}),S={hidden:_ in n?!n[_]:!0}),p||(S={...S,...b})}return O.jsxs("li",{className:ne({[a.className]:a.className,"has-submenu":c,parent:p,active:m}),role:"none",...E,children:[d?U.createElement(u?Ue:"a",d,s.formatMessage({id:h})):s.formatMessage({id:h}),a.order&&O.jsx("ul",{...S,children:a.order.map(_=>{if(!a[_])return null;const b={isLoggedIn:t,isDesktopVersion:r,menus:n,callback:o,doTrack:l?f:null};return a[_].order?O.jsxs("li",{className:ne({[a[_].className]:a[_].className}),children:[s.formatMessage({id:`${h}_${_}`}),O.jsx("ul",{children:a[_].order.map(A=>O.jsx(Jo,{id:`${e}.${_}.${A}`,...b},A))})]},_):O.jsx(Jo,{id:`${e}.${_}`,...b},_)})})]},e)};const LO={height:67,height_desktop:83},gc=()=>{const e=Ee(),t=U.useContext(Un),r=to(!0,!0),n=t&&typeof t.id=="string",o=U.useMemo(()=>Ne.getIsDesktopVersion(n,r),[n,r]),[i,s]=U.useReducer(Sw,{headerIsVisible:!0,menus:{navigation:!1,search:!1,account:!1},focusElements:{navigation:{desktop:!1,default:!1},account:{desktop:!1,default:!1}}}),{headerIsVisible:a,menus:l,focusElements:f}=i;Vp({scrollPosition:LO[`height${o.navigation?"_desktop":""}`],callbacks:{scrollUp:()=>{!o&&l.navigation||Ne.shouldChangeHeaderIsVisible(!0,l,s)},scrollDown:()=>{!o&&l.navigation||Ne.shouldChangeHeaderIsVisible(!1,l,s)}}});const u=(d,c)=>{Ne.handleMenus({id:d,value:c,menus:l,dispatch:s})},h=U.useRef(null);return Jr(()=>{l.navigation&&Ne.autoFocus({menu:"navigation",navigationRef:h,isDesktopVersion:o.navigation,focusElements:f,dispatch:s})},[l.navigation]),Jr(()=>{l.account&&Ne.autoFocus({menu:"account",navigationRef:h,isDesktopVersion:o.navigation,focusElements:f,dispatch:s})},[l.account]),t&&t.isLoading?null:O.jsxs(O.Fragment,{children:[O.jsxs("nav",{id:"header",className:ne({"logged-in":n,"logged-out":!n,visible:a}),children:[O.jsx(Je,{element:"a",href:"#content-of-page",children:e.formatMessage({id:"header_skip"})}),O.jsx(lc,{}),!o.navigation&&O.jsx("button",{className:"menu-button gtm-trackable",onClick:d=>{d.preventDefault(),d.stopPropagation(),u("navigation",!l.navigation)},"data-gtm-event-type":"open-tab-menu-click","data-gtm-event-context":"HeaderLeft-Chevron","aria-haspopup":"true","aria-expanded":l.navigation,"aria-controls":"navigation",children:O.jsx(Je,{children:e.formatMessage({id:`header_menu_${l.navigation?"hide":"show"}`})})}),O.jsx("ul",{ref:h,id:"navigation",hidden:o.navigation||l.account?!1:!l.navigation,role:"menu","data-showing":!o.navigation&&l.account?"account":"default",children:Qi.order.map(d=>O.jsx(Jo,{id:d,isLoggedIn:n,isDesktopVersion:o.navigation,menus:{navigation:l.navigation,account:l.account},callback:u},d))}),!o.search&&O.jsx("button",{className:"search toggle-search-button",onClick:d=>{d.preventDefault(),d.stopPropagation(),u("search",!l.search)},"aria-haspopup":"true","aria-expanded":l.search,"aria-controls":"search-form",children:O.jsx(Je,{children:e.formatMessage({id:`header_search_${l.search?"hide":"show"}`})})}),O.jsx(_g,{id:"global-search",handleToggle:{searchIsOpen:l.search,isDesktopVersion:o.search},gtmContext:"search-bar-header",gtmEvent:"form-submission"}),n?O.jsxs("button",{className:"account-button",onClick:d=>Ne.events.onClick(d,{id:"account",callback:u,isOpen:l.account}),onMouseEnter:()=>Ne.events.onMouseEnter({id:"account",callback:u}),onMouseLeave:()=>Ne.events.onBlur({id:"account",callback:u}),"aria-haspopup":"true","aria-expanded":l.account,"aria-controls":"navigation",children:[O.jsx(Je,{children:e.formatMessage({id:`header_account_${l.account?"hide":"show"}`})}),O.jsx(la,{name:t&&t.name||"",src:t&&t.image&&t.image.thumbnail||""})]}):O.jsx("ul",{className:"sign-in-buttons",children:Qi.buttons.order.map(d=>O.jsx(Jo,{id:`buttons.${d}`},d))})]}),O.jsx("hr",{id:"content-of-page"}),O.jsx("div",{className:ne("overlay",{open:l.navigation||l.account||!o.search&&l.search})})]})},MO=U.createContext(null),Xs={didCatch:!1,error:null};class kO extends U.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Xs}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),s=0;s<o;s++)i[s]=arguments[s];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:i,reason:"imperative-api"}),this.setState(Xs)}}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&&BO(t.resetKeys,o)){var i,s;(i=(s=this.props).onReset)===null||i===void 0||i.call(s,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(Xs)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let a=t;if(i){const l={error:s,resetErrorBoundary:this.resetErrorBoundary};if(U.isValidElement(o))a=o;else if(typeof r=="function")a=r(l);else if(n)a=U.createElement(n,l);else throw s}return U.createElement(MO.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function BO(){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 FO=()=>{const e=Ee();return O.jsxs(O.Fragment,{children:[O.jsx(gc,{}),O.jsx("div",{className:"content",children:O.jsx(rg,{variant:"error",text:e.formatMessage({id:"pageLayout_error"})})}),O.jsx(fc,{})]})},DO=({children:e,reportError:t,showFooter:r=!0,background:n="default",className:o="",locale:i="en"})=>{U.useEffect(()=>{window.scrollTo(0,0)},[window.location.pathname]);const s=nm(e,{locale:i});return O.jsx(kO,{onError:t,fallback:O.jsx(FO,{}),children:O.jsx(U.Suspense,{fallback:O.jsx(cg,{layout:"overview-page"}),children:O.jsx("div",{id:"wrapper",className:ne(o,{[n]:n!=="default"}),children:O.jsxs(ny,{children:[O.jsx(gc,{}),O.jsx("div",{className:"content",children:s}),r&&O.jsx(fc,{}),O.jsx(mg,{})]})})})})},kd={default:"tags_",headerTopics:"header_topics_topics_"},Js={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"},UO={getTagDetails:e=>{if(e.includes("topic_")){if(e=Js.topic[e.replace("topic_","")],e){const t=Qi.topics.topics[e].href;return t?{id:e,href:t,text:`${kd.headerTopics}${e}`}:null}return null}return Js[e]?(e=Js[e],{id:e,text:`${kd.default}${e}`}):null}};const $O=({tags:e=[],color:t="default",forceOneLine:r=!1,canHaveLinks:n=!0,className:o="",gtmType:i="tag-click",gtmContext:s="tags"})=>{const a=Ee();if(!e||e.length<1)return null;const l=[];return e.forEach(f=>{if(!f)return;const u=UO.getTagDetails(f);u&&l.push(u)}),l.length<1?null:O.jsx("ul",{className:ne("tags text-small",t,o,{"one-line":r}),children:l.map(f=>{const u=a.formatMessage({id:f.text});return O.jsx("li",{children:f.href&&n?O.jsx("a",{href:f.href,className:"gtm-trackable","data-gtm-event-type":i,"data-gtm-event-context":s,children:u}):u},f.id)})})};const jO=({members:{total:e,data:t=[]},pagination:r,gtmContext:n="member",gtmType:o="member-click",className:i=""})=>{const s=Ee();return t.length===0?null:(e||(e=t.length),O.jsxs("div",{className:ne("members-list",i),children:[O.jsxs("h1",{children:[s.formatMessage({id:"membersList"}),O.jsx("span",{className:"count",children:e})]}),O.jsx("ul",{children:t.map((a,l)=>O.jsxs("li",{children:[O.jsx(fa,{member:a,gtmContext:n,gtmType:o}),a.isAdmin&&O.jsx(ag,{children:s.formatMessage({id:"membersList_admin"})})]},l))}),r&&O.jsx(hg,{...r,icon:{icon:"arrow-down",position:"right"},gtmContext:n})]}))},HO={showThread:!1,showForm:!1},yc=U.createContext(HO),qO=({children:e})=>{const[t,r]=U.useState({showThread:!1,showForm:!1});return O.jsx(yc.Provider,{value:{...t,updateConversation:r},children:e})};function Mu(){return Mu=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},Mu.apply(this,arguments)}function GO(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 WO=U.useLayoutEffect,VO=function(t){var r=Oe.useRef(t);return WO(function(){r.current=t}),r},Bd=function(t,r){if(typeof t=="function"){t(r);return}t.current=r},zO=function(t,r){var n=U.useRef();return U.useCallback(function(o){t.current=o,n.current&&Bd(n.current,null),n.current=r,r&&Bd(r,o)},[r])},Fd={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},YO=function(t){Object.keys(Fd).forEach(function(r){t.style.setProperty(r,Fd[r],"important")})},Dd=YO,it=null,Ud=function(t,r){var n=t.scrollHeight;return r.sizingStyle.boxSizing==="border-box"?n+r.borderSize:n-r.paddingSize};function KO(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),it||(it=document.createElement("textarea"),it.setAttribute("tabindex","-1"),it.setAttribute("aria-hidden","true"),Dd(it)),it.parentNode===null&&document.body.appendChild(it);var o=e.paddingSize,i=e.borderSize,s=e.sizingStyle,a=s.boxSizing;Object.keys(s).forEach(function(d){var c=d;it.style[c]=s[c]}),Dd(it),it.value=t;var l=Ud(it,e);it.value=t,l=Ud(it,e),it.value="x";var f=it.scrollHeight-o,u=f*r;a==="border-box"&&(u=u+o+i),l=Math.max(u,l);var h=f*n;return a==="border-box"&&(h=h+o+i),l=Math.min(h,l),[l,f]}var $d=function(){},QO=function(t,r){return t.reduce(function(n,o){return n[o]=r[o],n},{})},XO=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],JO=!!document.documentElement.currentStyle,ZO=function(t){var r=window.getComputedStyle(t);if(r===null)return null;var n=QO(XO,r),o=n.boxSizing;if(o==="")return null;JO&&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),s=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:i,borderSize:s}},eA=ZO;function Rg(e,t,r){var n=VO(r);Oe.useLayoutEffect(function(){var o=function(s){return n.current(s)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var tA=function(t){Rg(window,"resize",t)},rA=function(t){Rg(document.fonts,"loadingdone",t)},nA=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],iA=function(t,r){var n=t.cacheMeasurements,o=t.maxRows,i=t.minRows,s=t.onChange,a=s===void 0?$d:s,l=t.onHeightChange,f=l===void 0?$d:l,u=GO(t,nA),h=u.value!==void 0,d=Oe.useRef(null),c=zO(d,r),p=Oe.useRef(0),m=Oe.useRef(),E=function(){var b=d.current,A=n&&m.current?m.current:eA(b);if(A){m.current=A;var w=KO(A,b.value||b.placeholder||"x",i,o),N=w[0],F=w[1];p.current!==N&&(p.current=N,b.style.setProperty("height",N+"px","important"),f(N,{rowHeight:F}))}},S=function(b){h||E(),a(b)};return Oe.useLayoutEffect(E),tA(E),rA(E),Oe.createElement("textarea",Mu({},u,{onChange:S,ref:c}))},oA=Oe.forwardRef(iA);let ko=null;const ct="discussion_form_",Ng=({content:e={type:"response",slugs:{}},userHasPermissions:t=!0,meta:r={isLoading:!1,isInWrapper:!1,isEditing:!1,showTitle:!1},inputRef:n,maxLength:o=5e4,minRows:i=4,forceShow:s={cancel:!1,error:!1},functions:a={create:()=>{},handleSaveEdit:()=>{},handleCancel:()=>{},callback:()=>{},props:{create:{projectNames:["questions-answers"]}}},gtmContext:l="DiscussionForm"})=>{var G,z;const f=Ee(),u=U.useContext(Un),[h,d]=U.useState(r.isEditing&&r.isEditing.text||""),[c,p]=U.useState(s.error||!1),[m,E]=U.useState(!1),S=U.useRef(null);if(n||(n=S),r.isLoading)return O.jsx(Er,{className:"discussion-card discussion-form","data-testid":"loading-placeholder"});const _=W=>{const H=W.target.value;d(H);let Y;!u||!u.id?Y=Bt(f.formatMessage,`${ct}error_loggedOut`,e.type,"action"):t?H.length>=o&&(Y=`${ct}error_tooLong`):Y=Bt(f.formatMessage,`${ct}error_noPermission`,e.type,"action"),Y?p(Y):c&&p(!1)};let b=`${e.type}-form`;if(e.type==="response"||e.type==="reply"){const W=e.type==="response"?((G=e.slugs)==null?void 0:G.question)||"":((z=e.slugs)==null?void 0:z.answer)||"";W&&(b=`${b}-${W.slice(-15)}`)}const A=async W=>{var Y;if(W.preventDefault(),W.stopPropagation(),!u||!u.id||!t||N)return;ko&&clearTimeout(ko),E("submitting");const H=window.location.pathname;try{let te;switch(e.type){case"post":te=await a.create({content:h});break;case"question":te=await a.create({title:h,authorId:u&&u.id,...(Y=a.props)==null?void 0:Y.create});break;case"response":te=await a.create({question:e.slugs.question},{body:h,authorId:u&&u.id,contentPath:H});break;case"reply":te=await a.create({question:e.slugs.question,answer:e.slugs.answer},{body:h,authorId:u&&u.id,contentPath:H});break;default:break}await Ow(1e3),a.callback&&await a.callback(te),ko=setTimeout(()=>{d(""),E("submitted"),w()},500)}catch(te){const Q=te;let M=`${ct}error`;Q.message.includes("entry already exists")&&(M=Bt(f.formatMessage,`${ct}error_alreadyExists`,e.type,"action")),Q.message.includes("429")?M=Bt(f.formatMessage,`${ct}error_tooMany`,e.type,"action"):Q.message.includes("400")&&(M=`${ct}error`),p(M),w()}},w=()=>{ko=setTimeout(()=>{p(!1),E(!1)},5e3)},N=!h||!Nw(h),F=m==="submitting",B=[];return(r.isEditing&&!F||s.cancel)&&B.push({variant:"secondary",size:{mobile:"small",600:"medium"},onClick:a.handleCancel,className:"gtm-trackable","data-gtm-event-context":l,"data-gtm-event-type":`cancel-${e.type}-click`,disabled:!s.cancel&&(!u||!u.id||!h),children:f.formatMessage({id:`${ct}cancel`})}),B.push({variant:"primary",size:{mobile:"small",600:"medium"},onClick:W=>{if(r.isEditing){E("submitting"),a.handleSaveEdit&&a.handleSaveEdit(S.current&&"value"in S.current?S.current.value:"");return}A(W)},className:"gtm-trackable","data-gtm-event-context":l,"data-gtm-event-type":`${r.isEditing?"save":"submit"}-${e.type}-click`,"data-testid":"save-button",disabled:!u||!u.id||!t||N||F||r.isEditing&&h===r.isEditing.text,children:f.formatMessage({id:`${ct}${F?r.isEditing?"saving":"posting":r.isEditing?"save":"post"}`})}),O.jsxs("form",{id:b,className:ne("discussion-card discussion-form",{"no-styling":r.isInWrapper&&r.isEditing}),"data-testid":`discussion-${e.type}-form`,children:[(r==null?void 0:r.showTitle)&&!r.isEditing&&["question"].includes(e.type)&&O.jsx("h2",{children:Bt(f.formatMessage,`${ct}title`,e.type,"action")}),O.jsx(fa,{member:u||"community",gtmContext:l,gtmType:"profile-click"}),O.jsx(Je,{element:"label",showOnFocus:!1,htmlFor:`${b}-input`,children:Bt(f.formatMessage,`${ct}label`,e.type,"action")}),O.jsx(oA,{ref:n,id:`${b}-input`,name:e.type,placeholder:Bt(f.formatMessage,`${ct}placeholder`,e.type,"action"),onChange:_,value:h,maxLength:o,"aria-invalid":!!c,"aria-errormessage":"error-message",minRows:i,autoFocus:!!r.isEditing}),O.jsx("small",{children:Bt(f.formatMessage,`${ct}explainer`,e.type,"action",{a:W=>O.jsx("a",{href:"https://about.apolitical.co/q-and-a-community-guidelines",target:"_blank",className:"gtm-trackable","data-gtm-event-context":l,"data-gtm-event-type":"community-guidelines-link",children:W})})}),O.jsx(ro,{buttons:B}),m==="submitted"&&O.jsx(Qo,{className:"success","data-testid":"success",children:Bt(f.formatMessage,`${ct}success`,e.type,"action")}),c&&O.jsx(Qo,{id:"error-message",className:"error","data-testid":"error",children:s.error?s.error:typeof c=="string"?c.includes(" ")?c:f.formatMessage({id:c},{action:f.formatMessage({id:`discussion_action_${e.type}`}),maxLength:o}):c})]})},aA=({question:e,answer:t,reply:r})=>({...e&&{questionSlug:e},...t&&{answerSlug:t},...r&&{replySlug:r}}),sA=(e,t=10)=>!e||e.length===0?[]:e.slice(0,t);let Vi=!1;const Zs=()=>{Vi!==!1&&(clearTimeout(Vi),Vi=!1)},eu=10,Pg=({element:e="div",likes:t=0,peopleWhoLiked:r=!1,isShort:n=!0,userLiked:o=!1,content:i={type:"reply",slugs:{}},canLike:s=!0,functions:{createLike:a=()=>{},deleteLike:l=()=>{}}={}})=>{const f=Ee();U.useEffect(()=>{c(o)},[o]);const[u,h]=U.useState(t),[d,c]=U.useState(o),[p,m]=U.useState(!1),[E,S]=U.useState(!1),_=U.useMemo(()=>sA(r,eu),[r]),b=w=>{if(w.preventDefault(),w.stopPropagation(),S(!1),Vi)return Zs(),!1;if(Zs(),p||!s)return!1;Vi=setTimeout(A,350)},A=async()=>{if(Zs(),p||!s)return!1;let w=d?u-1:u+1;w<0&&(w=0),m(!0),h(w),c(!d);try{if(i&&i.slugs){const N=aA(i.slugs);d?await l(N):await a(N,{contentPath:window.location.pathname})}}catch{h(t),c(o)}finally{m(!1)}};return U.createElement(e,{className:ne("likes-wrapper text-medium action-button",{"show-spinner":p,"is-liked":d,disabled:!s}),onClick:b,onMouseEnter:()=>{S(!0)},onMouseLeave:()=>{S(!1)},onFocus:()=>{S(!0)},onBlur:()=>{S(!1)},children:O.jsxs(O.Fragment,{children:[O.jsx(Ue,{variant:"tertiary",size:"medium",icon:{icon:d?"heart":"heart_empty",animate:"bounce"},className:ne({"do-animation":d&&!o}),screenreaderText:s?f.formatMessage({id:`discussion_likes_${d?"unlike":"like"}`},{action:f.formatMessage({id:`discussion_action_${i.type}`})}):!1,onClick:b,disabled:!s,"aria-hidden":!s,"data-testid":"like-button","data-gtm-event-context":"Likes","data-gtm-event-type":`like-${i.type}-click`}),O.jsx("span",{className:ne("number-of-likes",{"no-likes":u===0}),"data-testid":"number-of-likes",children:f.formatMessage({id:`discussion_likes${n?"_short":""}`},{number:u})}),r&&O.jsx(km,{isOpen:E,isLoading:r.length===0,children:r.length&&O.jsxs("ul",{children:[_.map(w=>typeof w=="string"||!w.name?null:O.jsx("li",{children:O.jsx(sa,{href:w.id?`/profiles/${w.id}`:void 0,gtmContext:"Likes",gtmType:"liked-name-click",children:w.name})},w.id||window.btoa(w.name))),r.length>eu&&O.jsx("li",{children:f.formatMessage({id:"discussion_likes_more"},{number:r.length-eu})})]})})]})})};var Zo={exports:{}};Zo.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=1,i=2,s=9007199254740991,a="[object Arguments]",l="[object Array]",f="[object AsyncFunction]",u="[object Boolean]",h="[object Date]",d="[object Error]",c="[object Function]",p="[object GeneratorFunction]",m="[object Map]",E="[object Number]",S="[object Null]",_="[object Object]",b="[object Promise]",A="[object Proxy]",w="[object RegExp]",N="[object Set]",F="[object String]",B="[object Symbol]",G="[object Undefined]",z="[object WeakMap]",W="[object ArrayBuffer]",H="[object DataView]",Y="[object Float32Array]",te="[object Float64Array]",Q="[object Int8Array]",M="[object Int16Array]",V="[object Int32Array]",Z="[object Uint8Array]",de="[object Uint8ClampedArray]",X="[object Uint16Array]",K="[object Uint32Array]",se=/[\\^$.*+?()[\]{}|]/g,ce=/^\[object .+?Constructor\]$/,Fe=/^(?:0|[1-9]\d*)$/,J={};J[Y]=J[te]=J[Q]=J[M]=J[V]=J[Z]=J[de]=J[X]=J[K]=!0,J[a]=J[l]=J[W]=J[u]=J[H]=J[h]=J[d]=J[c]=J[m]=J[E]=J[_]=J[w]=J[N]=J[F]=J[z]=!1;var ie=typeof ue=="object"&&ue&&ue.Object===Object&&ue,Pe=typeof self=="object"&&self&&self.Object===Object&&self,Ae=ie||Pe||Function("return this")(),st=t&&!t.nodeType&&t,lt=st&&!0&&e&&!e.nodeType&&e,Et=lt&<.exports===st,re=Et&&ie.process,Ye=function(){try{return re&&re.binding&&re.binding("util")}catch{}}(),je=Ye&&Ye.isTypedArray;function bt(y,x){for(var R=-1,j=y==null?0:y.length,fe=0,ae=[];++R<j;){var pe=y[R];x(pe,R,y)&&(ae[fe++]=pe)}return ae}function Wt(y,x){for(var R=-1,j=x.length,fe=y.length;++R<j;)y[fe+R]=x[R];return y}function Rt(y,x){for(var R=-1,j=y==null?0:y.length;++R<j;)if(x(y[R],R,y))return!0;return!1}function mt(y,x){for(var R=-1,j=Array(y);++R<y;)j[R]=x(R);return j}function Sr(y){return function(x){return y(x)}}function wt(y,x){return y.has(x)}function gt(y,x){return y==null?void 0:y[x]}function He(y){var x=-1,R=Array(y.size);return y.forEach(function(j,fe){R[++x]=[fe,j]}),R}function St(y,x){return function(R){return y(x(R))}}function nt(y){var x=-1,R=Array(y.size);return y.forEach(function(j){R[++x]=j}),R}var Ke=Array.prototype,Tr=Function.prototype,T=Object.prototype,g=Ae["__core-js_shared__"],v=Tr.toString,C=T.hasOwnProperty,P=function(){var y=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),D=T.toString,q=RegExp("^"+v.call(C).replace(se,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=Et?Ae.Buffer:void 0,we=Ae.Symbol,Se=Ae.Uint8Array,Te=T.propertyIsEnumerable,he=Ke.splice,ft=we?we.toStringTag:void 0,ar=Object.getOwnPropertySymbols,xr=le?le.isBuffer:void 0,Vt=St(Object.keys,Object),Or=xt(Ae,"DataView"),zt=xt(Ae,"Map"),Ar=xt(Ae,"Promise"),Cr=xt(Ae,"Set"),Rr=xt(Ae,"WeakMap"),Nt=xt(Object,"create"),sn=Qe(Or),Tt=Qe(zt),jn=Qe(Ar),Hn=Qe(Cr),qn=Qe(Rr),un=we?we.prototype:void 0,Nr=un?un.valueOf:void 0;function De(y){var x=-1,R=y==null?0:y.length;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Pr(){this.__data__=Nt?Nt(null):{},this.size=0}function Ir(y){var x=this.has(y)&&delete this.__data__[y];return this.size-=x?1:0,x}function Yt(y){var x=this.__data__;if(Nt){var R=x[y];return R===n?void 0:R}return C.call(x,y)?x[y]:void 0}function cn(y){var x=this.__data__;return Nt?x[y]!==void 0:C.call(x,y)}function Gn(y,x){var R=this.__data__;return this.size+=this.has(y)?0:1,R[y]=Nt&&x===void 0?n:x,this}De.prototype.clear=Pr,De.prototype.delete=Ir,De.prototype.get=Yt,De.prototype.has=cn,De.prototype.set=Gn;function qe(y){var x=-1,R=y==null?0:y.length;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Wn(){this.__data__=[],this.size=0}function Vn(y){var x=this.__data__,R=cr(x,y);if(R<0)return!1;var j=x.length-1;return R==j?x.pop():he.call(x,R,1),--this.size,!0}function zn(y){var x=this.__data__,R=cr(x,y);return R<0?void 0:x[R][1]}function Yn(y){return cr(this.__data__,y)>-1}function Lr(y,x){var R=this.__data__,j=cr(R,y);return j<0?(++this.size,R.push([y,x])):R[j][1]=x,this}qe.prototype.clear=Wn,qe.prototype.delete=Vn,qe.prototype.get=zn,qe.prototype.has=Yn,qe.prototype.set=Lr;function et(y){var x=-1,R=y==null?0:y.length;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Kn(){this.size=0,this.__data__={hash:new De,map:new(zt||qe),string:new De}}function Qn(y){var x=dt(this,y).delete(y);return this.size-=x?1:0,x}function Xn(y){return dt(this,y).get(y)}function Jn(y){return dt(this,y).has(y)}function Zn(y,x){var R=dt(this,y),j=R.size;return R.set(y,x),this.size+=R.size==j?0:1,this}et.prototype.clear=Kn,et.prototype.delete=Qn,et.prototype.get=Xn,et.prototype.has=Jn,et.prototype.set=Zn;function sr(y){var x=-1,R=y==null?0:y.length;for(this.__data__=new et;++x<R;)this.add(y[x])}function ln(y){return this.__data__.set(y,n),this}function ur(y){return this.__data__.has(y)}sr.prototype.add=sr.prototype.push=ln,sr.prototype.has=ur;function ut(y){var x=this.__data__=new qe(y);this.size=x.size}function Mr(){this.__data__=new qe,this.size=0}function ei(y){var x=this.__data__,R=x.delete(y);return this.size=x.size,R}function ti(y){return this.__data__.get(y)}function ri(y){return this.__data__.has(y)}function ni(y,x){var R=this.__data__;if(R instanceof qe){var j=R.__data__;if(!zt||j.length<r-1)return j.push([y,x]),this.size=++R.size,this;R=this.__data__=new et(j)}return R.set(y,x),this.size=R.size,this}ut.prototype.clear=Mr,ut.prototype.delete=ei,ut.prototype.get=ti,ut.prototype.has=ri,ut.prototype.set=ni;function ii(y,x){var R=lr(y),j=!R&&gn(y),fe=!R&&!j&&dr(y),ae=!R&&!j&&!fe&&Ur(y),pe=R||j||fe||ae,me=pe?mt(y.length,String):[],Me=me.length;for(var be in y)(x||C.call(y,be))&&!(pe&&(be=="length"||fe&&(be=="offset"||be=="parent")||ae&&(be=="buffer"||be=="byteLength"||be=="byteOffset")||Pt(be,Me)))&&me.push(be);return me}function cr(y,x){for(var R=y.length;R--;)if(mn(y[R][0],x))return R;return-1}function kr(y,x,R){var j=x(y);return lr(y)?j:Wt(j,R(y))}function Kt(y){return y==null?y===void 0?G:S:ft&&ft in Object(y)?Ot(y):pn(y)}function fn(y){return yt(y)&&Kt(y)==a}function dn(y,x,R,j,fe){return y===x?!0:y==null||x==null||!yt(y)&&!yt(x)?y!==y&&x!==x:hn(y,x,R,j,dn,fe)}function hn(y,x,R,j,fe,ae){var pe=lr(y),me=lr(x),Me=pe?l:ht(y),be=me?l:ht(x);Me=Me==a?_:Me,be=be==a?_:be;var Ge=Me==_,Xe=be==_,Be=Me==be;if(Be&&dr(y)){if(!dr(x))return!1;pe=!0,Ge=!1}if(Be&&!Ge)return ae||(ae=new ut),pe||Ur(y)?Br(y,x,R,j,fe,ae):ui(y,x,Me,R,j,fe,ae);if(!(R&o)){var We=Ge&&C.call(y,"__wrapped__"),$e=Xe&&C.call(x,"__wrapped__");if(We||$e){var It=We?y.value():y,At=$e?x.value():x;return ae||(ae=new ut),fe(It,At,R,j,ae)}}return Be?(ae||(ae=new ut),Fr(y,x,R,j,fe,ae)):!1}function oi(y){if(!vn(y)||fi(y))return!1;var x=yn(y)?q:ce;return x.test(Qe(y))}function ai(y){return yt(y)&&Dr(y.length)&&!!J[Kt(y)]}function si(y){if(!di(y))return Vt(y);var x=[];for(var R in Object(y))C.call(y,R)&&R!="constructor"&&x.push(R);return x}function Br(y,x,R,j,fe,ae){var pe=R&o,me=y.length,Me=x.length;if(me!=Me&&!(pe&&Me>me))return!1;var be=ae.get(y);if(be&&ae.get(x))return be==x;var Ge=-1,Xe=!0,Be=R&i?new sr:void 0;for(ae.set(y,x),ae.set(x,y);++Ge<me;){var We=y[Ge],$e=x[Ge];if(j)var It=pe?j($e,We,Ge,x,y,ae):j(We,$e,Ge,y,x,ae);if(It!==void 0){if(It)continue;Xe=!1;break}if(Be){if(!Rt(x,function(At,Xt){if(!wt(Be,Xt)&&(We===At||fe(We,At,R,j,ae)))return Be.push(Xt)})){Xe=!1;break}}else if(!(We===$e||fe(We,$e,R,j,ae))){Xe=!1;break}}return ae.delete(y),ae.delete(x),Xe}function ui(y,x,R,j,fe,ae,pe){switch(R){case H:if(y.byteLength!=x.byteLength||y.byteOffset!=x.byteOffset)return!1;y=y.buffer,x=x.buffer;case W:return!(y.byteLength!=x.byteLength||!ae(new Se(y),new Se(x)));case u:case h:case E:return mn(+y,+x);case d:return y.name==x.name&&y.message==x.message;case w:case F:return y==x+"";case m:var me=He;case N:var Me=j&o;if(me||(me=nt),y.size!=x.size&&!Me)return!1;var be=pe.get(y);if(be)return be==x;j|=i,pe.set(y,x);var Ge=Br(me(y),me(x),j,fe,ae,pe);return pe.delete(y),Ge;case B:if(Nr)return Nr.call(y)==Nr.call(x)}return!1}function Fr(y,x,R,j,fe,ae){var pe=R&o,me=Qt(y),Me=me.length,be=Qt(x),Ge=be.length;if(Me!=Ge&&!pe)return!1;for(var Xe=Me;Xe--;){var Be=me[Xe];if(!(pe?Be in x:C.call(x,Be)))return!1}var We=ae.get(y);if(We&&ae.get(x))return We==x;var $e=!0;ae.set(y,x),ae.set(x,y);for(var It=pe;++Xe<Me;){Be=me[Xe];var At=y[Be],Xt=x[Be];if(j)var oo=pe?j(Xt,At,Be,x,y,ae):j(At,Xt,Be,y,x,ae);if(!(oo===void 0?At===Xt||fe(At,Xt,R,j,ae):oo)){$e=!1;break}It||(It=Be=="constructor")}if($e&&!It){var Lt=y.constructor,hr=x.constructor;Lt!=hr&&"constructor"in y&&"constructor"in x&&!(typeof Lt=="function"&&Lt instanceof Lt&&typeof hr=="function"&&hr instanceof hr)&&($e=!1)}return ae.delete(y),ae.delete(x),$e}function Qt(y){return kr(y,_n,ci)}function dt(y,x){var R=y.__data__;return li(x)?R[typeof x=="string"?"string":"hash"]:R.map}function xt(y,x){var R=gt(y,x);return oi(R)?R:void 0}function Ot(y){var x=C.call(y,ft),R=y[ft];try{y[ft]=void 0;var j=!0}catch{}var fe=D.call(y);return j&&(x?y[ft]=R:delete y[ft]),fe}var ci=ar?function(y){return y==null?[]:(y=Object(y),bt(ar(y),function(x){return Te.call(y,x)}))}:En,ht=Kt;(Or&&ht(new Or(new ArrayBuffer(1)))!=H||zt&&ht(new zt)!=m||Ar&&ht(Ar.resolve())!=b||Cr&&ht(new Cr)!=N||Rr&&ht(new Rr)!=z)&&(ht=function(y){var x=Kt(y),R=x==_?y.constructor:void 0,j=R?Qe(R):"";if(j)switch(j){case sn:return H;case Tt:return m;case jn:return b;case Hn:return N;case qn:return z}return x});function Pt(y,x){return x=x??s,!!x&&(typeof y=="number"||Fe.test(y))&&y>-1&&y%1==0&&y<x}function li(y){var x=typeof y;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?y!=="__proto__":y===null}function fi(y){return!!P&&P in y}function di(y){var x=y&&y.constructor,R=typeof x=="function"&&x.prototype||T;return y===R}function pn(y){return D.call(y)}function Qe(y){if(y!=null){try{return v.call(y)}catch{}try{return y+""}catch{}}return""}function mn(y,x){return y===x||y!==y&&x!==x}var gn=fn(function(){return arguments}())?fn:function(y){return yt(y)&&C.call(y,"callee")&&!Te.call(y,"callee")},lr=Array.isArray;function fr(y){return y!=null&&Dr(y.length)&&!yn(y)}var dr=xr||pi;function hi(y,x){return dn(y,x)}function yn(y){if(!vn(y))return!1;var x=Kt(y);return x==c||x==p||x==f||x==A}function Dr(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=s}function vn(y){var x=typeof y;return y!=null&&(x=="object"||x=="function")}function yt(y){return y!=null&&typeof y=="object"}var Ur=je?Sr(je):ai;function _n(y){return fr(y)?ii(y):si(y)}function En(){return[]}function pi(){return!1}e.exports=hi})(Zo,Zo.exports);var uA=Zo.exports;const cA=Ht(uA);const Ig=({element:e="section",children:t,className:r,...n})=>U.createElement(e,{className:ne("modal",r),children:typeof t=="string"?O.jsx("p",{children:t}):t,...n});const Lg=({id:e="content-overlay",isOpen:t=!1,maxWidth:r,functions:{onOpen:n=()=>{},onClose:o=()=>{}}={},forceShow:{error:i=!1}={},title:s,children:a,buttons:l,className:f="",gtmContext:u="Modal"})=>{const h=Ee(),[d,c]=U.useState(t),p=E=>{c(E),E?(n(),document.body.classList.add("has-overlay")):(o(),document.body.classList.remove("has-overlay"))};U.useEffect(()=>{p(t)},[t]);const m=r?{"--max-width":`${r/16}rem`}:{};return O.jsx("div",{className:ne("overlay",{open:d}),children:O.jsx(Ig,{id:e,className:ne("overlay-modal",f,{"has-max-width":r}),hidden:!d,style:m,children:t&&O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"top",children:[O.jsx("h2",{children:s}),O.jsx(Ue,{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:h.formatMessage({id:"overlay_button"})})]}),O.jsx(Yo,{}),a,l&&O.jsxs("div",{className:"bottom",children:[O.jsx(Yo,{}),O.jsx(ro,{buttons:l})]}),i&&O.jsx(Qo,{className:"error",children:i})]})})})},Mg=(e,t)=>({"aria-haspopup":!0,"aria-expanded":t,"aria-controls":e}),jd=e=>{const t={};return Object.keys(e).forEach(r=>{t[`${r}Slug`]=e[r]}),t};const rr="discussion_",lA=({element:e="div",content:t,userHasPermissions:r=!0,isLoading:n=!1,originalAuthorId:o,functions:{content:{createContent:i,deleteContent:s,updateContent:a}={createContent:()=>{},deleteContent:()=>{},updateContent:()=>{}},likes:{createLike:l,deleteLike:f}={createLike:()=>{},deleteLike:()=>{}},comments:{openComments:u}={openComments:()=>{}}},links:h={},className:d,gtmContext:c="DiscussionAnswer",children:p})=>{const m=Ee(),E=U.useContext(Un),S=U.useContext(yc),[_,b]=U.useState({body:t&&t.body||"",isEditing:!1,didEdit:t&&t.isEdited||!1}),[A,w]=U.useState(!1),[N,F]=U.useState("");if(U.useEffect(()=>{b({..._,body:t&&t.body||"",didEdit:t&&t.isEdited||!1})},[t.isEdited]),n||!t||t.type==="answer"&&(!t.slugs||!t.slugs.question))return O.jsx(Er,{className:"discussion-card discussion-post"});const{author:B,canLike:G,createdAt:z,id:W,likes:H=0,userLiked:Y,comments:te=0}=t,Q=E&&E.id&&typeof B!="string"&&B.id&&B.id===E.id||!1,M=typeof G=="boolean"?G:r?!Q:!1,V=async K=>{K||(K=""),F("");try{if(!cA(K,_.body)){const se=t.type==="question"?{title:K}:{body:K};await a(jd(t.slugs),se)}b({body:K,isEditing:!1,didEdit:!0})}catch{F(`${rr}form_error`)}},Z=()=>{S&&S.updateConversation&&S.updateConversation({showThread:!0,showForm:!0}),setTimeout(()=>{const se=`reply-form-${(t.type==="answer"?t.slug:t.slugs.answer||"").toLowerCase().slice(-15)}`,ce=document.getElementById(se),Fe=document.getElementById(`${se}-input`);Fe&&Fe.focus(),ce&&ce.scrollIntoView({behavior:"smooth"})},0)},de=()=>{try{s(jd(t.slugs))}catch{F("delete-error")}},X=[{text:m.formatMessage({id:`${rr}moreMenu_report`}),href:`mailto:community@apolitical.co?subject=${encodeURI(m.formatMessage({id:`${rr}report_subject`}))}&body=${encodeURI(m.formatMessage({id:`${rr}report_body`},{contentType:t.type||"",contentSlug:t.slug||"",contentUrl:`${window.origin}${typeof process<"u"&&process.env.PUBLIC_URL||""}/${t.slugs.question||""}`}))}`,icon:"flag"}];return r&&Q&&X.push({text:m.formatMessage({id:`${rr}moreMenu_edit`}),onClick:()=>b({..._,isEditing:!0}),icon:"pencil-paper",className:"gtm-trackable","data-gtm-event-context":c,"data-gtm-event-type":`edit-${t.type}-click`},{text:m.formatMessage({id:`${rr}moreMenu_delete`}),onClick:K=>{K.preventDefault(),K.stopPropagation(),w(!0)},icon:"trash",className:"gtm-trackable","data-gtm-event-context":c,"data-gtm-event-type":`delete-${t.type}-click`,...Mg(`delete-${t.slug}-modal`,A)}),U.createElement(e,{className:ne("discussion-post",d),"data-testid":`discussion-${t.type}-thread`,children:O.jsxs(O.Fragment,{children:[O.jsxs("div",{id:W||t.slug,className:ne("discussion-card",t.type,{editing:_.isEditing,"has-link":h.post&&!_.isEditing}),onClick:K=>{!h.post||_.isEditing||(K.preventDefault(),K.stopPropagation(),window.location.href=h.post)},children:[!_.isEditing&&O.jsx(fa,{member:B,additionalContent:{createdAt:z,didEdit:_.didEdit},className:typeof B!="string"&&B.id===o?"highlighted":"",gtmContext:c,gtmType:"profile-click"}),_.isEditing?O.jsx(Ng,{content:{type:t.type,slugs:t.slugs},userHasPermissions:r,meta:{isLoading:n,isInWrapper:!0,isEditing:{text:_.body}},maxLength:t.type==="question"?250:5e4,forceShow:{error:N!==""&&N!=="delete-error"?m.formatMessage({id:N},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},functions:{create:i,handleSaveEdit:V,handleCancel:()=>{F(""),b({..._,isEditing:!1})}},gtmContext:`${c}Form`}):h.post?O.jsx("a",{href:h.post,className:"gtm-trackable","data-gtm-event-context":c,"data-gtm-event-type":"title-click",children:O.jsx(Iu,{options:{overrides:{a:og}},children:_.body})}):O.jsx(Iu,{options:{wrapper:t.type==="question"?"h1":U.Fragment,forceWrapper:t.type==="question",forceInline:t.type==="question",forceBlock:t.type!=="question"},children:_.body}),!_.isEditing&&O.jsxs("ul",{className:ne("actions text-medium",t.type),"data-testid":`${t.type}-actions`,children:[O.jsx(Pg,{element:"li",likes:H,isShort:!1,userLiked:Y,content:{type:t.type,slugs:t.slugs},canLike:M,functions:{createLike:l,deleteLike:f}}),["question","post"].includes(t.type)||h.comments||typeof u=="function"&&O.jsxs("li",{className:"action-button",onClick:K=>{K.preventDefault(),K.stopPropagation(),h.comments&&(window.location.href=h.comments),typeof u=="function"&&u()},children:[O.jsx(Ue,{variant:"tertiary",size:"medium",styling:{muted:!0},icon:{icon:"speech-bubble_square_thick"},href:h.comments?h.comments:!1,onClick:h.comments||typeof u!="function"?!1:u,className:"gtm-trackable","data-gtm-event-context":c,"data-gtm-event-type":`answer-${t.type}-click`,screenreaderText:m.formatMessage({id:`${rr}comments_screenReader`},{count:te})}),O.jsx("span",{children:m.formatMessage({id:`${rr}comments`},{count:te})})]}),(t.type==="answer"||t.type==="reply")&&O.jsx("li",{children:O.jsx(Ue,{variant:"tertiary",size:"medium",styling:{muted:!0},onClick:Z,children:m.formatMessage({id:`${rr}reply`})})}),O.jsx(pg,{element:"li",id:`more-${t.slug}`,options:X})]})]}),p,O.jsx(Lg,{id:`delete-${t.slug}-modal`,isOpen:A,functions:{onOpen:()=>{},onClose:()=>w(!1)},forceShow:{error:N==="delete-error"?m.formatMessage({id:"discussion_delete_error"},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},title:m.formatMessage({id:"discussion_delete_title"},{action:m.formatMessage({id:`discussion_action_${t.type}`})}),buttons:[{variant:"secondary",onClick:()=>w(!1),children:m.formatMessage({id:"discussion_delete_cancel"})},{variant:"primary",className:"destructive",onClick:de,children:m.formatMessage({id:"discussion_delete_delete"})}],gtmContext:`${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,children:O.jsx(vr,{id:"discussion_delete_text",values:{p:K=>O.jsx("p",{children:K}),action:m.formatMessage({id:`discussion_action_${t.type}`})}})})]})})};const tu="discussion_responses_",fA=({type:e="answer",responses:t=0})=>{const r=Ee();return O.jsxs("div",{className:"responses-heading",children:[O.jsx("h3",{children:r.formatMessage({id:`${tu}title`},{action:r.formatMessage({id:`${tu}${e}`}),count:t})}),t===0&&O.jsx("p",{children:Bt(r.formatMessage,`${tu}empty`,e,e)})]})};const dA=({isOpen:e=!1,count:t=0,children:r})=>{const n=Ee(),o=U.useRef(null),[i,s]=U.useState(e),[a,l]=U.useState("closed");U.useEffect(()=>{const d=o.current;if(d)return d.addEventListener("transitionend",f),()=>{d.removeEventListener("transitionend",f)}},[]),Jr(()=>{a==="closed"&&!i||l(["opening","open"].includes(a)?"ready-to-close":"opening")},[i]),U.useEffect(()=>{a==="ready-to-close"&&l("closing")},[a]);const f=({propertyName:d})=>{d==="max-height"&&l(c=>c==="opening"?"open":c==="closing"?"closed":c)},u=["opening","open"].includes(a),h=nm(r,{element:"li"});return O.jsxs("div",{className:"thread-wrapper",children:[O.jsx(Ue,{variant:"secondary",size:"small",styling:{muted:!0},icon:{icon:`arrow_corner-down_${u?"left":"right"}`},onClick:()=>{s(!i)},children:n.formatMessage({id:`discussion_thread_${u?"hide":"show"}`},{count:t})}),O.jsx("ul",{ref:o,className:ne("thread",a),hidden:!i,children:h})]})},hA=({id:e,data:{jobTitle:t,name:r,organization:n,thumbnail:o}})=>({id:e,name:r,jobTitle:t,organization:n,image:{thumbnail:o}});exports.ASSETS_BUCKET=Ko;exports.BannerSection=iT;exports.Breadcrumbs=Ax;exports.Button=Ue;exports.ButtonWrapper=ro;exports.CollapsibleSection=ac;exports.Columns=Nx;exports.CommunityDetails=Ox;exports.Contributors=fg;exports.ConversationContext=yc;exports.CookieBanner=mg;exports.DiscussionConversation=qO;exports.DiscussionForm=Ng;exports.DiscussionLikes=Pg;exports.DiscussionPost=lA;exports.DiscussionThread=dA;exports.Divider=Yo;exports.DownloadSection=eT;exports.EmailHelperTextBox=Px;exports.EmptyStateBox=rg;exports.Filters=Cx;exports.Footer=fc;exports.FullWidthSection=ic;exports.Header=gc;exports.HelperTextBox=ig;exports.HiddenFromScreenReaders=ku;exports.HideShowTextBox=fx;exports.HighlightedTextBox=or;exports.IntlProvider=Tx;exports.JoinButton=dg;exports.Link=sa;exports.LoadMore=hg;exports.LoadingBlock=bx;exports.LoadingPlaceholder=Er;exports.LoadingState=cg;exports.Logo=lc;exports.LogoSection=tT;exports.MarkdownText=Iu;exports.MarketingBox=oT;exports.Member=fa;exports.MembersList=jO;exports.Modal=Ig;exports.MoreMenu=pg;exports.NUMBER_OF_USERS=sT;exports.Overlay=Lg;exports.PageLayout=DO;exports.PasswordRules=Mx;exports.Pill=ag;exports.ProfilePicture=la;exports.ProgressBar=sg;exports.Rating=kx;exports.ResponsesHeading=fA;exports.ResponsiveImage=im;exports.SearchForm=_g;exports.Span=og;exports.StatusBanner=Qo;exports.Tags=$O;exports.Tooltip=km;exports.UserContext=Un;exports.UserProvider=xx;exports.VisuallyHidden=Je;exports.addAriaProps=Mg;exports.getMember=cc;exports.headerData=Qi;exports.mapGetStreamData=hA;exports.useEffectAfterMount=Jr;exports.useFeatureFlag=yb;exports.useScreenWidth=to;exports.useScrollListener=Vp;exports.useScrollToHash=_b;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-72994bb1.js");require("react");require("react/jsx-runtime");exports.ASSETS_BUCKET=e.ASSETS_BUCKET;exports.ActivitiesFeed=e.ActivitiesFeed;exports.ActivitySection=e.ActivitySection;exports.AddPost=e.AddPost;exports.BannerSection=e.bannerSection;exports.Breadcrumbs=e.Breadcrumbs;exports.Button=e.Button;exports.ButtonWrapper=e.ButtonWrapper;exports.CollapsibleSection=e.CollapsibleSection;exports.Columns=e.Columns;exports.CommunityDetails=e.CommunityDetails;exports.Contributors=e.Contributors;exports.ConversationContext=e.ConversationContext;exports.CookieBanner=e.CookieBanner;exports.DiscussionConversation=e.Conversation;exports.DiscussionForm=e.Form;exports.DiscussionLikes=e.Likes;exports.DiscussionPost=e.Post;exports.DiscussionThread=e.Thread;exports.Divider=e.Divider;exports.DownloadSection=e.DownloadSection;exports.EmailHelperTextBox=e.EmailHelperTextBox;exports.EmptyStateBox=e.EmptyStateBox;exports.Filters=e.Filters;exports.Footer=e.Footer;exports.FullWidthSection=e.FullWidthSection;exports.Header=e.Header;exports.HelperTextBox=e.HelperTextBox;exports.HiddenFromScreenReaders=e.HiddenFromScreenReaders;exports.HideShowTextBox=e.HideShowTextBox;exports.HighlightedTextBox=e.HighlightedTextBoxWrapper;exports.IntlProvider=e.IntlProvider;exports.JoinButton=e.JoinButton;exports.Link=e.Link;exports.LoadMore=e.LoadMore;exports.LoadingBlock=e.loadingBlock;exports.LoadingPlaceholder=e.LoadingPlaceholder;exports.LoadingState=e.LoadingState;exports.Logo=e.Logo;exports.LogoSection=e.LogoSection;exports.MarkdownText=e.MarkdownText;exports.MarketingBox=e.MarketingBlock;exports.Member=e.Member;exports.MembersList=e.MembersList;exports.Modal=e.Modal;exports.MoreMenu=e.MoreMenu;exports.NUMBER_OF_USERS=e.NUMBER_OF_USERS;exports.Overlay=e.Overlay;exports.PageLayout=e.PageLayout;exports.PasswordRules=e.passwordRules;exports.Pill=e.Pill;exports.ProfilePicture=e.ProfilePicture;exports.ProgressBar=e.ProgressBar;exports.Rating=e.Rating;exports.ReactQueryProvider=e.ReactQueryProvider;exports.RepliesFeed=e.RepliesFeed;exports.ResponsesHeading=e.ResponsesHeading;exports.ResponsiveImage=e.ResponsiveImage;exports.SearchForm=e.SearchForm;exports.Span=e.Span;exports.StatusBanner=e.StatusBanner;exports.Tags=e.Tags;exports.Tooltip=e.Tooltip;exports.UserContext=e.UserContext;exports.UserProvider=e.UserProvider;exports.VisuallyHidden=e.VisuallyHidden;exports.addAriaProps=e.addAriaProps;exports.getMember=e.getMember;exports.headerData=e.headerData;exports.mapGetStreamData=e.mapGetSteamData;exports.useEffectAfterMount=e.useEffectAfterMount;exports.useFeatureFlag=e.useFeatureFlag;exports.useScreenWidth=e.useScreenWidth;exports.useScrollListener=e.useScrollListener;exports.useScrollToHash=e.useScrollToHash;
|