@apolitical/component-library 1.9.0 → 1.9.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-128d9bfa.mjs → 4TNE5QTO-dd7cd869.mjs} +3 -4
- package/4TNE5QTO-eb76e362.js +987 -0
- package/index-2a6346e1.js +101 -0
- package/index-3f338a92.mjs +23195 -0
- package/index.d.ts +0 -1
- package/index.js +1 -1
- package/index.mjs +68 -152
- package/package.json +1 -1
- package/4TNE5QTO-acef2331.js +0 -987
- package/index-6e9a2b8a.js +0 -240
- package/index-cfa68ef5.mjs +0 -47532
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";var ku=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var P=(e,t,r)=>(ku(e,t,"read from private field"),r?r.call(e):t.get(e)),ne=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},J=(e,t,r,n)=>(ku(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var ua=(e,t,r,n)=>({set _(o){J(e,t,o,r)},get _(){return P(e,t,n)}}),ye=(e,t,r)=>(ku(e,t,"access private method"),r);const U=require("react"),O=require("react/jsx-runtime");function kE(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const pe=kE(U);var fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xs(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var ug={exports:{}};/*!
|
|
2
|
+
Copyright (c) 2018 Jed Watson.
|
|
3
|
+
Licensed under the MIT License (MIT), see
|
|
4
|
+
http://jedwatson.github.io/classnames
|
|
5
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var s=r.apply(null,i);s&&n.push(s)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var c in i)t.call(i,c)&&i[c]&&n.push(c)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(ug);var ME=ug.exports;const se=Er(ME),FE=({element:e="span",showOnFocus:t=!0,children:r,...n})=>U.createElement(e,{...n,className:se("hidden",{"show-on-focus":t}),children:r}),lt=U.memo(FE),DE=({element:e="span",children:t=null,...r})=>U.createElement(e,{...r,"aria-hidden":!0},t),Sf=U.memo(DE),ri=(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 cg=UE,gh=$E,BE=Object.prototype.toString,ca=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function UE(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var r={},n=t||{},o=n.decode||jE,i=0;i<e.length;){var a=e.indexOf("=",i);if(a===-1)break;var s=e.indexOf(";",i);if(s===-1)s=e.length;else if(s<a){i=e.lastIndexOf(";",a-1)+1;continue}var c=e.slice(i,a).trim();if(r[c]===void 0){var l=e.slice(a+1,s).trim();l.charCodeAt(0)===34&&(l=l.slice(1,-1)),r[c]=GE(l,o)}i=s+1}return r}function $E(e,t,r){var n=r||{},o=n.encode||HE;if(typeof o!="function")throw new TypeError("option encode is invalid");if(!ca.test(e))throw new TypeError("argument name is invalid");var i=o(t);if(i&&!ca.test(i))throw new TypeError("argument val is invalid");var a=e+"="+i;if(n.maxAge!=null){var s=n.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");a+="; Max-Age="+Math.floor(s)}if(n.domain){if(!ca.test(n.domain))throw new TypeError("option domain is invalid");a+="; Domain="+n.domain}if(n.path){if(!ca.test(n.path))throw new TypeError("option path is invalid");a+="; Path="+n.path}if(n.expires){var c=n.expires;if(!qE(c)||isNaN(c.valueOf()))throw new TypeError("option expires is invalid");a+="; Expires="+c.toUTCString()}if(n.httpOnly&&(a+="; HttpOnly"),n.secure&&(a+="; Secure"),n.priority){var l=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(l){case"low":a+="; Priority=Low";break;case"medium":a+="; Priority=Medium";break;case"high":a+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){var u=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(u){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a}function jE(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function HE(e){return encodeURIComponent(e)}function qE(e){return BE.call(e)==="[object Date]"||e instanceof Date}function GE(e,t){try{return t(e)}catch{return e}}function VE(){return typeof document=="object"&&typeof document.cookie=="string"}function WE(e){return typeof e=="string"?cg(e):typeof e=="object"&&e!==null?e:{}}function Mu(e,t={}){const r=zE(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function zE(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class lg{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const o=this.cookies;this.cookies=cg(document.cookie),this._checkChanges(o)};const n=typeof document>"u"?"":document.cookie;this.cookies=WE(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=VE()}_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:Mu(t[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),Mu(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=Mu(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=gh(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=gh(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 fg=pe.createContext(new lg),{Provider:QE,Consumer:eI}=fg,YE=fg;class KE extends pe.Component{constructor(t){super(t),t.cookies?this.cookies=t.cookies:this.cookies=new lg(void 0,t.defaultSetOptions)}render(){return pe.createElement(QE,{value:this.cookies},this.props.children)}}var Ol={exports:{}},Le={};/** @license React v16.13.1
|
|
11
|
+
* react-is.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var yh;function XE(){if(yh)return Le;yh=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,v=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 c:case l:case n:case i:case o:case d:return w;default:switch(w=w&&w.$$typeof,w){case s:case u:case p:case f:case a:return w;default:return N}}case r:return N}}}function T(w){return b(w)===l}return Le.AsyncMode=c,Le.ConcurrentMode=l,Le.ContextConsumer=s,Le.ContextProvider=a,Le.Element=t,Le.ForwardRef=u,Le.Fragment=n,Le.Lazy=p,Le.Memo=f,Le.Portal=r,Le.Profiler=i,Le.StrictMode=o,Le.Suspense=d,Le.isAsyncMode=function(w){return T(w)||b(w)===c},Le.isConcurrentMode=T,Le.isContextConsumer=function(w){return b(w)===s},Le.isContextProvider=function(w){return b(w)===a},Le.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Le.isForwardRef=function(w){return b(w)===u},Le.isFragment=function(w){return b(w)===n},Le.isLazy=function(w){return b(w)===p},Le.isMemo=function(w){return b(w)===f},Le.isPortal=function(w){return b(w)===r},Le.isProfiler=function(w){return b(w)===i},Le.isStrictMode=function(w){return b(w)===o},Le.isSuspense=function(w){return b(w)===d},Le.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===l||w===i||w===o||w===d||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===p||w.$$typeof===f||w.$$typeof===a||w.$$typeof===s||w.$$typeof===u||w.$$typeof===_||w.$$typeof===S||w.$$typeof===v||w.$$typeof===m)},Le.typeOf=b,Le}var ke={};/** @license React v16.13.1
|
|
18
|
+
* react-is.development.js
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the MIT license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*/var vh;function JE(){return vh||(vh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(oe){return typeof oe=="string"||typeof oe=="function"||oe===n||oe===l||oe===i||oe===o||oe===d||oe===h||typeof oe=="object"&&oe!==null&&(oe.$$typeof===p||oe.$$typeof===f||oe.$$typeof===a||oe.$$typeof===s||oe.$$typeof===u||oe.$$typeof===_||oe.$$typeof===S||oe.$$typeof===v||oe.$$typeof===m)}function T(oe){if(typeof oe=="object"&&oe!==null){var st=oe.$$typeof;switch(st){case t:var Je=oe.type;switch(Je){case c:case l:case n:case i:case o:case d:return Je;default:var Vt=Je&&Je.$$typeof;switch(Vt){case s:case u:case p:case f:case a:return Vt;default:return st}}case r:return st}}}var w=c,N=l,R=s,L=a,$=t,G=u,q=n,H=p,Y=f,ie=r,K=i,k=o,Q=d,ee=!1;function he(oe){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(oe)||T(oe)===c}function Z(oe){return T(oe)===l}function X(oe){return T(oe)===s}function le(oe){return T(oe)===a}function de(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===t}function Ve(oe){return T(oe)===u}function te(oe){return T(oe)===n}function ae(oe){return T(oe)===p}function De(oe){return T(oe)===f}function Ie(oe){return T(oe)===r}function Tt(oe){return T(oe)===i}function Ct(oe){return T(oe)===o}function Gt(oe){return T(oe)===d}ke.AsyncMode=w,ke.ConcurrentMode=N,ke.ContextConsumer=R,ke.ContextProvider=L,ke.Element=$,ke.ForwardRef=G,ke.Fragment=q,ke.Lazy=H,ke.Memo=Y,ke.Portal=ie,ke.Profiler=K,ke.StrictMode=k,ke.Suspense=Q,ke.isAsyncMode=he,ke.isConcurrentMode=Z,ke.isContextConsumer=X,ke.isContextProvider=le,ke.isElement=de,ke.isForwardRef=Ve,ke.isFragment=te,ke.isLazy=ae,ke.isMemo=De,ke.isPortal=Ie,ke.isProfiler=Tt,ke.isStrictMode=Ct,ke.isSuspense=Gt,ke.isValidElementType=b,ke.typeOf=T}()),ke}process.env.NODE_ENV==="production"?Ol.exports=XE():Ol.exports=JE();var ZE=Ol.exports,hg=ZE,e_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},t_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},dg={};dg[hg.ForwardRef]=e_;dg[hg.Memo]=t_;function r_(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function pg(e){const t=U.useContext(YE);if(!t)throw new Error("Missing <CookiesProvider>");const[r,n]=U.useState(()=>t.getAll());r_()&&U.useLayoutEffect(()=>{function s(){const c=t.getAll({doNotUpdate:!0});n_(e||null,c,r)&&n(c)}return t.addChangeListener(s),()=>{t.removeChangeListener(s)}},[t,r]);const o=U.useMemo(()=>t.set.bind(t),[t]),i=U.useMemo(()=>t.remove.bind(t),[t]),a=U.useMemo(()=>t.update.bind(t),[t]);return[r,o,i,a]}function n_(e,t,r){if(!e)return!0;for(let n of e)if(t[n]!==r[n])return!0;return!1}var mg={exports:{}},Fu={exports:{}},la={},fa={exports:{}},Du,Eh;function gg(){return Eh||(Eh=1,Du=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)}}),Du}var Bu,_h;function ft(){if(_h)return Bu;_h=1;var e=gg(),t=Object.prototype.toString,r=function(k){return function(Q){var ee=t.call(Q);return k[ee]||(k[ee]=ee.slice(8,-1).toLowerCase())}}(Object.create(null));function n(k){return k=k.toLowerCase(),function(ee){return r(ee)===k}}function o(k){return Array.isArray(k)}function i(k){return typeof k>"u"}function a(k){return k!==null&&!i(k)&&k.constructor!==null&&!i(k.constructor)&&typeof k.constructor.isBuffer=="function"&&k.constructor.isBuffer(k)}var s=n("ArrayBuffer");function c(k){var Q;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?Q=ArrayBuffer.isView(k):Q=k&&k.buffer&&s(k.buffer),Q}function l(k){return typeof k=="string"}function u(k){return typeof k=="number"}function d(k){return k!==null&&typeof k=="object"}function h(k){if(r(k)!=="object")return!1;var Q=Object.getPrototypeOf(k);return Q===null||Q===Object.prototype}var f=n("Date"),p=n("File"),m=n("Blob"),_=n("FileList");function S(k){return t.call(k)==="[object Function]"}function v(k){return d(k)&&S(k.pipe)}function b(k){var Q="[object FormData]";return k&&(typeof FormData=="function"&&k instanceof FormData||t.call(k)===Q||S(k.toString)&&k.toString()===Q)}var T=n("URLSearchParams");function w(k){return k.trim?k.trim():k.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 R(k,Q){if(!(k===null||typeof k>"u"))if(typeof k!="object"&&(k=[k]),o(k))for(var ee=0,he=k.length;ee<he;ee++)Q.call(null,k[ee],ee,k);else for(var Z in k)Object.prototype.hasOwnProperty.call(k,Z)&&Q.call(null,k[Z],Z,k)}function L(){var k={};function Q(Z,X){h(k[X])&&h(Z)?k[X]=L(k[X],Z):h(Z)?k[X]=L({},Z):o(Z)?k[X]=Z.slice():k[X]=Z}for(var ee=0,he=arguments.length;ee<he;ee++)R(arguments[ee],Q);return k}function $(k,Q,ee){return R(Q,function(Z,X){ee&&typeof Z=="function"?k[X]=e(Z,ee):k[X]=Z}),k}function G(k){return k.charCodeAt(0)===65279&&(k=k.slice(1)),k}function q(k,Q,ee,he){k.prototype=Object.create(Q.prototype,he),k.prototype.constructor=k,ee&&Object.assign(k.prototype,ee)}function H(k,Q,ee){var he,Z,X,le={};Q=Q||{};do{for(he=Object.getOwnPropertyNames(k),Z=he.length;Z-- >0;)X=he[Z],le[X]||(Q[X]=k[X],le[X]=!0);k=Object.getPrototypeOf(k)}while(k&&(!ee||ee(k,Q))&&k!==Object.prototype);return Q}function Y(k,Q,ee){k=String(k),(ee===void 0||ee>k.length)&&(ee=k.length),ee-=Q.length;var he=k.indexOf(Q,ee);return he!==-1&&he===ee}function ie(k){if(!k)return null;var Q=k.length;if(i(Q))return null;for(var ee=new Array(Q);Q-- >0;)ee[Q]=k[Q];return ee}var K=function(k){return function(Q){return k&&Q instanceof k}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return Bu={isArray:o,isArrayBuffer:s,isBuffer:a,isFormData:b,isArrayBufferView:c,isString:l,isNumber:u,isObject:d,isPlainObject:h,isUndefined:i,isDate:f,isFile:p,isBlob:m,isFunction:S,isStream:v,isURLSearchParams:T,isStandardBrowserEnv:N,forEach:R,merge:L,extend:$,trim:w,stripBOM:G,inherits:q,toFlatObject:H,kindOf:r,kindOfTest:n,endsWith:Y,toArray:ie,isTypedArray:K,isFileList:_},Bu}var Uu,bh;function yg(){if(bh)return Uu;bh=1;var e=ft();function t(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return Uu=function(n,o,i){if(!o)return n;var a;if(i)a=i(o);else if(e.isURLSearchParams(o))a=o.toString();else{var s=[];e.forEach(o,function(u,d){u===null||typeof u>"u"||(e.isArray(u)?d=d+"[]":u=[u],e.forEach(u,function(f){e.isDate(f)?f=f.toISOString():e.isObject(f)&&(f=JSON.stringify(f)),s.push(t(d)+"="+t(f))}))}),a=s.join("&")}if(a){var c=n.indexOf("#");c!==-1&&(n=n.slice(0,c)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n},Uu}var $u,wh;function i_(){if(wh)return $u;wh=1;var e=ft();function t(){this.handlers=[]}return t.prototype.use=function(n,o,i){return this.handlers.push({fulfilled:n,rejected:o,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1},t.prototype.eject=function(n){this.handlers[n]&&(this.handlers[n]=null)},t.prototype.forEach=function(n){e.forEach(this.handlers,function(i){i!==null&&n(i)})},$u=t,$u}var ju,Sh;function o_(){if(Sh)return ju;Sh=1;var e=ft();return ju=function(r,n){e.forEach(r,function(i,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(r[n]=i,delete r[a])})},ju}var Hu,Th;function uo(){if(Th)return Hu;Th=1;var e=ft();function t(o,i,a,s,c){Error.call(this),this.message=o,this.name="AxiosError",i&&(this.code=i),a&&(this.config=a),s&&(this.request=s),c&&(this.response=c)}e.inherits(t,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var r=t.prototype,n={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(o){n[o]={value:o}}),Object.defineProperties(t,n),Object.defineProperty(r,"isAxiosError",{value:!0}),t.from=function(o,i,a,s,c,l){var u=Object.create(r);return e.toFlatObject(o,u,function(h){return h!==Error.prototype}),t.call(u,o.message,i,a,s,c),u.name=o.name,l&&Object.assign(u,l),u},Hu=t,Hu}var qu,xh;function vg(){return xh||(xh=1,qu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),qu}var Gu,Oh;function Eg(){if(Oh)return Gu;Oh=1;var e=ft();function t(r,n){n=n||new FormData;var o=[];function i(s){return s===null?"":e.isDate(s)?s.toISOString():e.isArrayBuffer(s)||e.isTypedArray(s)?typeof Blob=="function"?new Blob([s]):Buffer.from(s):s}function a(s,c){if(e.isPlainObject(s)||e.isArray(s)){if(o.indexOf(s)!==-1)throw Error("Circular reference detected in "+c);o.push(s),e.forEach(s,function(u,d){if(!e.isUndefined(u)){var h=c?c+"."+d:d,f;if(u&&!c&&typeof u=="object"){if(e.endsWith(d,"{}"))u=JSON.stringify(u);else if(e.endsWith(d,"[]")&&(f=e.toArray(u))){f.forEach(function(p){!e.isUndefined(p)&&n.append(h,i(p))});return}}a(u,h)}}),o.pop()}else n.append(c,i(s))}return a(r),n}return Gu=t,Gu}var Vu,Ah;function s_(){if(Ah)return Vu;Ah=1;var e=uo();return Vu=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))},Vu}var Wu,Ch;function a_(){if(Ch)return Wu;Ch=1;var e=ft();return Wu=e.isStandardBrowserEnv()?function(){return{write:function(n,o,i,a,s,c){var l=[];l.push(n+"="+encodeURIComponent(o)),e.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),e.isString(a)&&l.push("path="+a),e.isString(s)&&l.push("domain="+s),c===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Wu}var zu,Rh;function u_(){return Rh||(Rh=1,zu=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),zu}var Qu,Ph;function c_(){return Ph||(Ph=1,Qu=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),Qu}var Yu,Nh;function _g(){if(Nh)return Yu;Nh=1;var e=u_(),t=c_();return Yu=function(n,o){return n&&!e(o)?t(n,o):o},Yu}var Ku,Ih;function l_(){if(Ih)return Ku;Ih=1;var e=ft(),t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Ku=function(n){var o={},i,a,s;return n&&e.forEach(n.split(`
|
|
25
|
+
`),function(l){if(s=l.indexOf(":"),i=e.trim(l.substr(0,s)).toLowerCase(),a=e.trim(l.substr(s+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([a]):o[i]=o[i]?o[i]+", "+a:a}}),o},Ku}var Xu,Lh;function f_(){if(Lh)return Xu;Lh=1;var e=ft();return Xu=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),o;function i(a){var s=a;return r&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=i(window.location.href),function(s){var c=e.isString(s)?i(s):s;return c.protocol===o.protocol&&c.host===o.host}}():function(){return function(){return!0}}(),Xu}var Ju,kh;function pu(){if(kh)return Ju;kh=1;var e=uo(),t=ft();function r(n){e.call(this,n??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(r,e,{__CANCEL__:!0}),Ju=r,Ju}var Zu,Mh;function h_(){return Mh||(Mh=1,Zu=function(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}),Zu}var ec,Fh;function Dh(){if(Fh)return ec;Fh=1;var e=ft(),t=s_(),r=a_(),n=yg(),o=_g(),i=l_(),a=f_(),s=vg(),c=uo(),l=pu(),u=h_();return ec=function(h){return new Promise(function(p,m){var _=h.data,S=h.headers,v=h.responseType,b;function T(){h.cancelToken&&h.cancelToken.unsubscribe(b),h.signal&&h.signal.removeEventListener("abort",b)}e.isFormData(_)&&e.isStandardBrowserEnv()&&delete S["Content-Type"];var w=new XMLHttpRequest;if(h.auth){var N=h.auth.username||"",R=h.auth.password?unescape(encodeURIComponent(h.auth.password)):"";S.Authorization="Basic "+btoa(N+":"+R)}var L=o(h.baseURL,h.url);w.open(h.method.toUpperCase(),n(L,h.params,h.paramsSerializer),!0),w.timeout=h.timeout;function $(){if(w){var H="getAllResponseHeaders"in w?i(w.getAllResponseHeaders()):null,Y=!v||v==="text"||v==="json"?w.responseText:w.response,ie={data:Y,status:w.status,statusText:w.statusText,headers:H,config:h,request:w};t(function(k){p(k),T()},function(k){m(k),T()},ie),w=null}}if("onloadend"in w?w.onloadend=$:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout($)},w.onabort=function(){w&&(m(new c("Request aborted",c.ECONNABORTED,h,w)),w=null)},w.onerror=function(){m(new c("Network Error",c.ERR_NETWORK,h,w,w)),w=null},w.ontimeout=function(){var Y=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded",ie=h.transitional||s;h.timeoutErrorMessage&&(Y=h.timeoutErrorMessage),m(new c(Y,ie.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,h,w)),w=null},e.isStandardBrowserEnv()){var G=(h.withCredentials||a(L))&&h.xsrfCookieName?r.read(h.xsrfCookieName):void 0;G&&(S[h.xsrfHeaderName]=G)}"setRequestHeader"in w&&e.forEach(S,function(Y,ie){typeof _>"u"&&ie.toLowerCase()==="content-type"?delete S[ie]:w.setRequestHeader(ie,Y)}),e.isUndefined(h.withCredentials)||(w.withCredentials=!!h.withCredentials),v&&v!=="json"&&(w.responseType=h.responseType),typeof h.onDownloadProgress=="function"&&w.addEventListener("progress",h.onDownloadProgress),typeof h.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",h.onUploadProgress),(h.cancelToken||h.signal)&&(b=function(H){w&&(m(!H||H&&H.type?new l:H),w.abort(),w=null)},h.cancelToken&&h.cancelToken.subscribe(b),h.signal&&(h.signal.aborted?b():h.signal.addEventListener("abort",b))),_||(_=null);var q=u(L);if(q&&["http","https","file"].indexOf(q)===-1){m(new c("Unsupported protocol "+q+":",c.ERR_BAD_REQUEST,h));return}w.send(_)})},ec}var tc,Bh;function d_(){return Bh||(Bh=1,tc=null),tc}var rc,Uh;function Tf(){if(Uh)return rc;Uh=1;var e=ft(),t=o_(),r=uo(),n=vg(),o=Eg(),i={"Content-Type":"application/x-www-form-urlencoded"};function a(u,d){!e.isUndefined(u)&&e.isUndefined(u["Content-Type"])&&(u["Content-Type"]=d)}function s(){var u;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(u=Dh()),u}function c(u,d,h){if(e.isString(u))try{return(d||JSON.parse)(u),e.trim(u)}catch(f){if(f.name!=="SyntaxError")throw f}return(h||JSON.stringify)(u)}var l={transitional:n,adapter:s(),transformRequest:[function(d,h){if(t(h,"Accept"),t(h,"Content-Type"),e.isFormData(d)||e.isArrayBuffer(d)||e.isBuffer(d)||e.isStream(d)||e.isFile(d)||e.isBlob(d))return d;if(e.isArrayBufferView(d))return d.buffer;if(e.isURLSearchParams(d))return a(h,"application/x-www-form-urlencoded;charset=utf-8"),d.toString();var f=e.isObject(d),p=h&&h["Content-Type"],m;if((m=e.isFileList(d))||f&&p==="multipart/form-data"){var _=this.env&&this.env.FormData;return o(m?{"files[]":d}:d,_&&new _)}else if(f||p==="application/json")return a(h,"application/json"),c(d);return d}],transformResponse:[function(d){var h=this.transitional||l.transitional,f=h&&h.silentJSONParsing,p=h&&h.forcedJSONParsing,m=!f&&this.responseType==="json";if(m||p&&e.isString(d)&&d.length)try{return JSON.parse(d)}catch(_){if(m)throw _.name==="SyntaxError"?r.from(_,r.ERR_BAD_RESPONSE,this,null,this.response):_}return d}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:d_()},validateStatus:function(d){return d>=200&&d<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(d){l.headers[d]={}}),e.forEach(["post","put","patch"],function(d){l.headers[d]=e.merge(i)}),rc=l,rc}var nc,$h;function p_(){if($h)return nc;$h=1;var e=ft(),t=Tf();return nc=function(n,o,i){var a=this||t;return e.forEach(i,function(c){n=c.call(a,n,o)}),n},nc}var ic,jh;function bg(){return jh||(jh=1,ic=function(t){return!!(t&&t.__CANCEL__)}),ic}var oc,Hh;function m_(){if(Hh)return oc;Hh=1;var e=ft(),t=p_(),r=bg(),n=Tf(),o=pu();function i(a){if(a.cancelToken&&a.cancelToken.throwIfRequested(),a.signal&&a.signal.aborted)throw new o}return oc=function(s){i(s),s.headers=s.headers||{},s.data=t.call(s,s.data,s.headers,s.transformRequest),s.headers=e.merge(s.headers.common||{},s.headers[s.method]||{},s.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(u){delete s.headers[u]});var c=s.adapter||n.adapter;return c(s).then(function(u){return i(s),u.data=t.call(s,u.data,u.headers,s.transformResponse),u},function(u){return r(u)||(i(s),u&&u.response&&(u.response.data=t.call(s,u.response.data,u.response.headers,s.transformResponse))),Promise.reject(u)})},oc}var sc,qh;function wg(){if(qh)return sc;qh=1;var e=ft();return sc=function(r,n){n=n||{};var o={};function i(d,h){return e.isPlainObject(d)&&e.isPlainObject(h)?e.merge(d,h):e.isPlainObject(h)?e.merge({},h):e.isArray(h)?h.slice():h}function a(d){if(e.isUndefined(n[d])){if(!e.isUndefined(r[d]))return i(void 0,r[d])}else return i(r[d],n[d])}function s(d){if(!e.isUndefined(n[d]))return i(void 0,n[d])}function c(d){if(e.isUndefined(n[d])){if(!e.isUndefined(r[d]))return i(void 0,r[d])}else return i(void 0,n[d])}function l(d){if(d in n)return i(r[d],n[d]);if(d in r)return i(void 0,r[d])}var u={url:s,method:s,data:s,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:l};return e.forEach(Object.keys(r).concat(Object.keys(n)),function(h){var f=u[h]||a,p=f(h);e.isUndefined(p)&&f!==l||(o[h]=p)}),o},sc}var ac,Gh;function Sg(){return Gh||(Gh=1,ac={version:"0.27.2"}),ac}var uc,Vh;function g_(){if(Vh)return uc;Vh=1;var e=Sg().version,t=uo(),r={};["object","boolean","number","function","string","symbol"].forEach(function(i,a){r[i]=function(c){return typeof c===i||"a"+(a<1?"n ":" ")+i}});var n={};r.transitional=function(a,s,c){function l(u,d){return"[Axios v"+e+"] Transitional option '"+u+"'"+d+(c?". "+c:"")}return function(u,d,h){if(a===!1)throw new t(l(d," has been removed"+(s?" in "+s:"")),t.ERR_DEPRECATED);return s&&!n[d]&&(n[d]=!0,console.warn(l(d," has been deprecated since v"+s+" and will be removed in the near future"))),a?a(u,d,h):!0}};function o(i,a,s){if(typeof i!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var c=Object.keys(i),l=c.length;l-- >0;){var u=c[l],d=a[u];if(d){var h=i[u],f=h===void 0||d(h,u,i);if(f!==!0)throw new t("option "+u+" must be "+f,t.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new t("Unknown option "+u,t.ERR_BAD_OPTION)}}return uc={assertOptions:o,validators:r},uc}var cc,Wh;function y_(){if(Wh)return cc;Wh=1;var e=ft(),t=yg(),r=i_(),n=m_(),o=wg(),i=_g(),a=g_(),s=a.validators;function c(l){this.defaults=l,this.interceptors={request:new r,response:new r}}return c.prototype.request=function(u,d){typeof u=="string"?(d=d||{},d.url=u):d=u||{},d=o(this.defaults,d),d.method?d.method=d.method.toLowerCase():this.defaults.method?d.method=this.defaults.method.toLowerCase():d.method="get";var h=d.transitional;h!==void 0&&a.assertOptions(h,{silentJSONParsing:s.transitional(s.boolean),forcedJSONParsing:s.transitional(s.boolean),clarifyTimeoutError:s.transitional(s.boolean)},!1);var f=[],p=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(d)===!1||(p=p&&N.synchronous,f.unshift(N.fulfilled,N.rejected))});var m=[];this.interceptors.response.forEach(function(N){m.push(N.fulfilled,N.rejected)});var _;if(!p){var S=[n,void 0];for(Array.prototype.unshift.apply(S,f),S=S.concat(m),_=Promise.resolve(d);S.length;)_=_.then(S.shift(),S.shift());return _}for(var v=d;f.length;){var b=f.shift(),T=f.shift();try{v=b(v)}catch(w){T(w);break}}try{_=n(v)}catch(w){return Promise.reject(w)}for(;m.length;)_=_.then(m.shift(),m.shift());return _},c.prototype.getUri=function(u){u=o(this.defaults,u);var d=i(u.baseURL,u.url);return t(d,u.params,u.paramsSerializer)},e.forEach(["delete","get","head","options"],function(u){c.prototype[u]=function(d,h){return this.request(o(h||{},{method:u,url:d,data:(h||{}).data}))}}),e.forEach(["post","put","patch"],function(u){function d(h){return function(p,m,_){return this.request(o(_||{},{method:u,headers:h?{"Content-Type":"multipart/form-data"}:{},url:p,data:m}))}}c.prototype[u]=d(),c.prototype[u+"Form"]=d(!0)}),cc=c,cc}var lc,zh;function v_(){if(zh)return lc;zh=1;var e=pu();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var o=this;this.promise.then(function(i){if(o._listeners){var a,s=o._listeners.length;for(a=0;a<s;a++)o._listeners[a](i);o._listeners=null}}),this.promise.then=function(i){var a,s=new Promise(function(c){o.subscribe(c),a=c}).then(i);return s.cancel=function(){o.unsubscribe(a)},s},r(function(a){o.reason||(o.reason=new e(a),n(o.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},t.prototype.unsubscribe=function(n){if(this._listeners){var o=this._listeners.indexOf(n);o!==-1&&this._listeners.splice(o,1)}},t.source=function(){var n,o=new t(function(a){n=a});return{token:o,cancel:n}},lc=t,lc}var fc,Qh;function E_(){return Qh||(Qh=1,fc=function(t){return function(n){return t.apply(null,n)}}),fc}var hc,Yh;function __(){if(Yh)return hc;Yh=1;var e=ft();return hc=function(r){return e.isObject(r)&&r.isAxiosError===!0},hc}var Kh;function b_(){if(Kh)return fa.exports;Kh=1;var e=ft(),t=gg(),r=y_(),n=wg(),o=Tf();function i(s){var c=new r(s),l=t(r.prototype.request,c);return e.extend(l,r.prototype,c),e.extend(l,c),l.create=function(d){return i(n(s,d))},l}var a=i(o);return a.Axios=r,a.CanceledError=pu(),a.CancelToken=v_(),a.isCancel=bg(),a.VERSION=Sg().version,a.toFormData=Eg(),a.AxiosError=uo(),a.Cancel=a.CanceledError,a.all=function(c){return Promise.all(c)},a.spread=E_(),a.isAxiosError=__(),fa.exports=a,fa.exports.default=a,fa.exports}var dc,Xh;function Tg(){return Xh||(Xh=1,dc=b_()),dc}var w_=Function.prototype.toString,pc=Object.create,S_=Object.defineProperty,T_=Object.getOwnPropertyDescriptor,Jh=Object.getOwnPropertyNames,xf=Object.getOwnPropertySymbols,x_=Object.getPrototypeOf,xg=Object.prototype,O_=xg.hasOwnProperty,A_=xg.propertyIsEnumerable,Og=typeof xf=="function",C_=typeof WeakMap=="function",R_=function(){if(C_)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}}(),Ag=function(e,t){var r=e.__proto__||x_(e);if(!r)return pc(null);var n=r.constructor;if(n===t.Object)return r===t.Object.prototype?{}:pc(r);if(~w_.call(n).indexOf("[native code]"))try{return new n}catch{}return pc(r)},P_=function(e,t,r,n){var o=Ag(e,t);n.set(e,o);for(var i in e)O_.call(e,i)&&(o[i]=r(e[i],n));if(Og)for(var a=xf(e),s=0,c=a.length,l=void 0;s<c;++s)l=a[s],A_.call(e,l)&&(o[l]=r(e[l],n));return o},Zh=function(e,t,r,n){var o=Ag(e,t);n.set(e,o);for(var i=Og?Jh(e).concat(xf(e)):Jh(e),a=0,s=i.length,c=void 0,l=void 0;a<s;++a)if(c=i[a],c!=="callee"&&c!=="caller")if(l=T_(e,c),l){!l.get&&!l.set&&(l.value=r(e[c],n));try{S_(o,c,l)}catch{o[c]=l.value}}else o[c]=r(e[c],n);return o},N_=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},I_=Array.isArray,L_=Object.getPrototypeOf,k_=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function pn(e,t){var r=!!(t&&t.isStrict),n=t&&t.realm||k_,o=r?Zh:P_,i=function(a,s){if(!a||typeof a!="object")return a;if(s.has(a))return s.get(a);var c=a.__proto__||L_(a),l=c&&c.constructor;if(!l||l===n.Object)return o(a,n,i,s);var u;if(I_(a)){if(r)return Zh(a,n,i,s);u=new l,s.set(a,u);for(var d=0,h=a.length;d<h;++d)u[d]=i(a[d],s);return u}if(a instanceof n.Date)return new l(a.getTime());if(a instanceof n.RegExp)return u=new l(a.source,a.flags||N_(a)),u.lastIndex=a.lastIndex,u;if(n.Map&&a instanceof n.Map)return u=new l,s.set(a,u),a.forEach(function(f,p){u.set(p,i(f,s))}),u;if(n.Set&&a instanceof n.Set)return u=new l,s.set(a,u),a.forEach(function(f){u.add(i(f,s))}),u;if(n.Blob&&a instanceof n.Blob)return a.slice(0,a.size,a.type);if(n.Buffer&&n.Buffer.isBuffer(a))return u=n.Buffer.allocUnsafe?n.Buffer.allocUnsafe(a.length):new l(a.length),s.set(a,u),a.copy(u),u;if(n.ArrayBuffer){if(n.ArrayBuffer.isView(a))return u=new l(a.buffer.slice(0)),s.set(a,u),u;if(a instanceof n.ArrayBuffer)return u=a.slice(0),s.set(a,u),u}return typeof a.then=="function"||a instanceof Error||n.WeakMap&&a instanceof n.WeakMap||n.WeakSet&&a instanceof n.WeakSet?a:o(a,n,i,s)};return i(e,R_())}pn.default=pn;pn.strict=function(t,r){return pn(t,{isStrict:!0,realm:r?r.realm:void 0})};var M_=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==o||a.enumerable!==!0)return!1}return!0},ed=typeof Symbol<"u"&&Symbol,F_=M_,D_=function(){return typeof ed!="function"||typeof Symbol!="function"||typeof ed("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:F_()},td={foo:{}},B_=Object,U_=function(){return{__proto__:td}.foo===td.foo&&!({__proto__:null}instanceof B_)},$_="Function.prototype.bind called on incompatible ",j_=Object.prototype.toString,H_=Math.max,q_="[object Function]",rd=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},G_=function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},V_=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},W_=function(t){var r=this;if(typeof r!="function"||j_.apply(r)!==q_)throw new TypeError($_+r);for(var n=G_(arguments,1),o,i=function(){if(this instanceof o){var u=r.apply(this,rd(n,arguments));return Object(u)===u?u:this}return r.apply(t,rd(n,arguments))},a=H_(0,r.length-n.length),s=[],c=0;c<a;c++)s[c]="$"+c;if(o=Function("binder","return function ("+V_(s,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o},z_=W_,Of=Function.prototype.bind||z_,Q_=Function.prototype.call,Y_=Object.prototype.hasOwnProperty,K_=Of,X_=K_.call(Q_,Y_),we,to=SyntaxError,Cg=Function,Ii=TypeError,mc=function(e){try{return Cg('"use strict"; return ('+e+").constructor;")()}catch{}},ei=Object.getOwnPropertyDescriptor;if(ei)try{ei({},"")}catch{ei=null}var gc=function(){throw new Ii},J_=ei?function(){try{return arguments.callee,gc}catch{try{return ei(arguments,"callee").get}catch{return gc}}}():gc,Ti=D_(),Z_=U_(),ot=Object.getPrototypeOf||(Z_?function(e){return e.__proto__}:null),Ri={},eb=typeof Uint8Array>"u"||!ot?we:ot(Uint8Array),ti={"%AggregateError%":typeof AggregateError>"u"?we:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?we:ArrayBuffer,"%ArrayIteratorPrototype%":Ti&&ot?ot([][Symbol.iterator]()):we,"%AsyncFromSyncIteratorPrototype%":we,"%AsyncFunction%":Ri,"%AsyncGenerator%":Ri,"%AsyncGeneratorFunction%":Ri,"%AsyncIteratorPrototype%":Ri,"%Atomics%":typeof Atomics>"u"?we:Atomics,"%BigInt%":typeof BigInt>"u"?we:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?we:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?we:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?we:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?we:Float32Array,"%Float64Array%":typeof Float64Array>"u"?we:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?we:FinalizationRegistry,"%Function%":Cg,"%GeneratorFunction%":Ri,"%Int8Array%":typeof Int8Array>"u"?we:Int8Array,"%Int16Array%":typeof Int16Array>"u"?we:Int16Array,"%Int32Array%":typeof Int32Array>"u"?we:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ti&&ot?ot(ot([][Symbol.iterator]())):we,"%JSON%":typeof JSON=="object"?JSON:we,"%Map%":typeof Map>"u"?we:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ti||!ot?we:ot(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?we:Promise,"%Proxy%":typeof Proxy>"u"?we:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?we:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?we:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ti||!ot?we:ot(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?we:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ti&&ot?ot(""[Symbol.iterator]()):we,"%Symbol%":Ti?Symbol:we,"%SyntaxError%":to,"%ThrowTypeError%":J_,"%TypedArray%":eb,"%TypeError%":Ii,"%Uint8Array%":typeof Uint8Array>"u"?we:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?we:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?we:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?we:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?we:WeakMap,"%WeakRef%":typeof WeakRef>"u"?we:WeakRef,"%WeakSet%":typeof WeakSet>"u"?we:WeakSet};if(ot)try{null.error}catch(e){var tb=ot(ot(e));ti["%Error.prototype%"]=tb}var rb=function e(t){var r;if(t==="%AsyncFunction%")r=mc("async function () {}");else if(t==="%GeneratorFunction%")r=mc("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=mc("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&ot&&(r=ot(o.prototype))}return ti[t]=r,r},nd={"%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"]},Js=Of,Ga=X_,nb=Js.call(Function.call,Array.prototype.concat),ib=Js.call(Function.apply,Array.prototype.splice),id=Js.call(Function.call,String.prototype.replace),Va=Js.call(Function.call,String.prototype.slice),ob=Js.call(Function.call,RegExp.prototype.exec),sb=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ab=/\\(\\)?/g,ub=function(t){var r=Va(t,0,1),n=Va(t,-1);if(r==="%"&&n!=="%")throw new to("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new to("invalid intrinsic syntax, expected opening `%`");var o=[];return id(t,sb,function(i,a,s,c){o[o.length]=s?id(c,ab,"$1"):a||i}),o},cb=function(t,r){var n=t,o;if(Ga(nd,n)&&(o=nd[n],n="%"+o[0]+"%"),Ga(ti,n)){var i=ti[n];if(i===Ri&&(i=rb(n)),typeof i>"u"&&!r)throw new Ii("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new to("intrinsic "+t+" does not exist!")},si=function(t,r){if(typeof t!="string"||t.length===0)throw new Ii("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ii('"allowMissing" argument must be a boolean');if(ob(/^%?[^%]*%?$/,t)===null)throw new to("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ub(t),o=n.length>0?n[0]:"",i=cb("%"+o+"%",r),a=i.name,s=i.value,c=!1,l=i.alias;l&&(o=l[0],ib(n,nb([0,1],l)));for(var u=1,d=!0;u<n.length;u+=1){var h=n[u],f=Va(h,0,1),p=Va(h,-1);if((f==='"'||f==="'"||f==="`"||p==='"'||p==="'"||p==="`")&&f!==p)throw new to("property names with quotes must have matching quotes");if((h==="constructor"||!d)&&(c=!0),o+="."+h,a="%"+o+"%",Ga(ti,a))s=ti[a];else if(s!=null){if(!(h in s)){if(!r)throw new Ii("base intrinsic for "+t+" exists, but the property is not available.");return}if(ei&&u+1>=n.length){var m=ei(s,h);d=!!m,d&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[h]}else d=Ga(s,h),s=s[h];d&&!c&&(ti[a]=s)}}return s},Rg={exports:{}},lb=si,Al=lb("%Object.defineProperty%",!0),Cl=function(){if(Al)try{return Al({},"a",{value:1}),!0}catch{return!1}return!1};Cl.hasArrayLengthDefineBug=function(){if(!Cl())return null;try{return Al([],"length",{value:1}).length!==1}catch{return!0}};var Pg=Cl,fb=si,Ba=fb("%Object.getOwnPropertyDescriptor%",!0);if(Ba)try{Ba([],"length")}catch{Ba=null}var Ng=Ba,hb=Pg(),Af=si,bs=hb&&Af("%Object.defineProperty%",!0);if(bs)try{bs({},"a",{value:1})}catch{bs=!1}var db=Af("%SyntaxError%"),xi=Af("%TypeError%"),od=Ng,pb=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new xi("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new xi("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new xi("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new xi("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new xi("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new xi("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,c=!!od&&od(t,r);if(bs)bs(t,r,{configurable:a===null&&c?c.configurable:!a,enumerable:o===null&&c?c.enumerable:!o,value:n,writable:i===null&&c?c.writable:!i});else if(s||!o&&!i&&!a)t[r]=n;else throw new db("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Ig=si,sd=pb,mb=Pg(),ad=Ng,ud=Ig("%TypeError%"),gb=Ig("%Math.floor%"),yb=function(t,r){if(typeof t!="function")throw new ud("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||gb(r)!==r)throw new ud("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&ad){var a=ad(t,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!n)&&(mb?sd(t,"length",r,!0,!0):sd(t,"length",r)),t};(function(e){var t=Of,r=si,n=yb,o=r("%TypeError%"),i=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(a,i),c=r("%Object.defineProperty%",!0),l=r("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}e.exports=function(h){if(typeof h!="function")throw new o("a function is required");var f=s(t,a,arguments);return n(f,1+l(0,h.length-(arguments.length-1)),!0)};var u=function(){return s(t,i,arguments)};c?c(e.exports,"apply",{value:u}):e.exports.apply=u})(Rg);var vb=Rg.exports,Lg=si,kg=vb,Eb=kg(Lg("String.prototype.indexOf")),_b=function(t,r){var n=Lg(t,!!r);return typeof n=="function"&&Eb(t,".prototype.")>-1?kg(n):n};const bb={},wb=Object.freeze(Object.defineProperty({__proto__:null,default:bb},Symbol.toStringTag,{value:"Module"})),Sb=Xs(wb);var Cf=typeof Map=="function"&&Map.prototype,yc=Object.getOwnPropertyDescriptor&&Cf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Wa=Cf&&yc&&typeof yc.get=="function"?yc.get:null,cd=Cf&&Map.prototype.forEach,Rf=typeof Set=="function"&&Set.prototype,vc=Object.getOwnPropertyDescriptor&&Rf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,za=Rf&&vc&&typeof vc.get=="function"?vc.get:null,ld=Rf&&Set.prototype.forEach,Tb=typeof WeakMap=="function"&&WeakMap.prototype,ws=Tb?WeakMap.prototype.has:null,xb=typeof WeakSet=="function"&&WeakSet.prototype,Ss=xb?WeakSet.prototype.has:null,Ob=typeof WeakRef=="function"&&WeakRef.prototype,fd=Ob?WeakRef.prototype.deref:null,Ab=Boolean.prototype.valueOf,Cb=Object.prototype.toString,Rb=Function.prototype.toString,Pb=String.prototype.match,Pf=String.prototype.slice,cn=String.prototype.replace,Nb=String.prototype.toUpperCase,hd=String.prototype.toLowerCase,Mg=RegExp.prototype.test,dd=Array.prototype.concat,pr=Array.prototype.join,Ib=Array.prototype.slice,pd=Math.floor,Rl=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ec=Object.getOwnPropertySymbols,Pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ro=typeof Symbol=="function"&&typeof Symbol.iterator=="object",gt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ro||"symbol")?Symbol.toStringTag:null,Fg=Object.prototype.propertyIsEnumerable,md=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function gd(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Mg.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-pd(-e):pd(e);if(n!==e){var o=String(n),i=Pf.call(t,o.length+1);return cn.call(o,r,"$&_")+"."+cn.call(cn.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return cn.call(t,r,"$&_")}var Nl=Sb,yd=Nl.custom,vd=Bg(yd)?yd:null,Lb=function e(t,r,n,o){var i=r||{};if(Zr(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Zr(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=Zr(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Zr(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Zr(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return $g(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return s?gd(t,c):c}if(typeof t=="bigint"){var l=String(t)+"n";return s?gd(t,l):l}var u=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof t=="object")return Il(t)?"[Array]":"[Object]";var d=Xb(i,n);if(typeof o>"u")o=[];else if(Ug(o,t)>=0)return"[Circular]";function h(Y,ie,K){if(ie&&(o=Ib.call(o),o.push(ie)),K){var k={depth:i.depth};return Zr(i,"quoteStyle")&&(k.quoteStyle=i.quoteStyle),e(Y,k,n+1,o)}return e(Y,i,n+1,o)}if(typeof t=="function"&&!Ed(t)){var f=Hb(t),p=ha(t,h);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(p.length>0?" { "+pr.call(p,", ")+" }":"")}if(Bg(t)){var m=ro?cn.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Pl.call(t);return typeof t=="object"&&!ro?Wo(m):m}if(Qb(t)){for(var _="<"+hd.call(String(t.nodeName)),S=t.attributes||[],v=0;v<S.length;v++)_+=" "+S[v].name+"="+Dg(kb(S[v].value),"double",i);return _+=">",t.childNodes&&t.childNodes.length&&(_+="..."),_+="</"+hd.call(String(t.nodeName))+">",_}if(Il(t)){if(t.length===0)return"[]";var b=ha(t,h);return d&&!Kb(b)?"["+Ll(b,d)+"]":"[ "+pr.call(b,", ")+" ]"}if(Fb(t)){var T=ha(t,h);return!("cause"in Error.prototype)&&"cause"in t&&!Fg.call(t,"cause")?"{ ["+String(t)+"] "+pr.call(dd.call("[cause]: "+h(t.cause),T),", ")+" }":T.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+pr.call(T,", ")+" }"}if(typeof t=="object"&&a){if(vd&&typeof t[vd]=="function"&&Nl)return Nl(t,{depth:u-n});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(qb(t)){var w=[];return cd&&cd.call(t,function(Y,ie){w.push(h(ie,t,!0)+" => "+h(Y,t))}),_d("Map",Wa.call(t),w,d)}if(Wb(t)){var N=[];return ld&&ld.call(t,function(Y){N.push(h(Y,t))}),_d("Set",za.call(t),N,d)}if(Gb(t))return _c("WeakMap");if(zb(t))return _c("WeakSet");if(Vb(t))return _c("WeakRef");if(Bb(t))return Wo(h(Number(t)));if($b(t))return Wo(h(Rl.call(t)));if(Ub(t))return Wo(Ab.call(t));if(Db(t))return Wo(h(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===fe)return"{ [object globalThis] }";if(!Mb(t)&&!Ed(t)){var R=ha(t,h),L=md?md(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",G=!L&>&&Object(t)===t&> in t?Pf.call(mn(t),8,-1):$?"Object":"",q=L||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",H=q+(G||$?"["+pr.call(dd.call([],G||[],$||[]),": ")+"] ":"");return R.length===0?H+"{}":d?H+"{"+Ll(R,d)+"}":H+"{ "+pr.call(R,", ")+" }"}return String(t)};function Dg(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function kb(e){return cn.call(String(e),/"/g,""")}function Il(e){return mn(e)==="[object Array]"&&(!gt||!(typeof e=="object"&> in e))}function Mb(e){return mn(e)==="[object Date]"&&(!gt||!(typeof e=="object"&> in e))}function Ed(e){return mn(e)==="[object RegExp]"&&(!gt||!(typeof e=="object"&> in e))}function Fb(e){return mn(e)==="[object Error]"&&(!gt||!(typeof e=="object"&> in e))}function Db(e){return mn(e)==="[object String]"&&(!gt||!(typeof e=="object"&> in e))}function Bb(e){return mn(e)==="[object Number]"&&(!gt||!(typeof e=="object"&> in e))}function Ub(e){return mn(e)==="[object Boolean]"&&(!gt||!(typeof e=="object"&> in e))}function Bg(e){if(ro)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Pl)return!1;try{return Pl.call(e),!0}catch{}return!1}function $b(e){if(!e||typeof e!="object"||!Rl)return!1;try{return Rl.call(e),!0}catch{}return!1}var jb=Object.prototype.hasOwnProperty||function(e){return e in this};function Zr(e,t){return jb.call(e,t)}function mn(e){return Cb.call(e)}function Hb(e){if(e.name)return e.name;var t=Pb.call(Rb.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Ug(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 qb(e){if(!Wa||!e||typeof e!="object")return!1;try{Wa.call(e);try{za.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Gb(e){if(!ws||!e||typeof e!="object")return!1;try{ws.call(e,ws);try{Ss.call(e,Ss)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Vb(e){if(!fd||!e||typeof e!="object")return!1;try{return fd.call(e),!0}catch{}return!1}function Wb(e){if(!za||!e||typeof e!="object")return!1;try{za.call(e);try{Wa.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function zb(e){if(!Ss||!e||typeof e!="object")return!1;try{Ss.call(e,Ss);try{ws.call(e,ws)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Qb(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function $g(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return $g(Pf.call(e,0,t.maxStringLength),t)+n}var o=cn.call(cn.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Yb);return Dg(o,"single",t)}function Yb(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Nb.call(t.toString(16))}function Wo(e){return"Object("+e+")"}function _c(e){return e+" { ? }"}function _d(e,t,r,n){var o=n?Ll(r,n):pr.call(r,", ");return e+" ("+t+") {"+o+"}"}function Kb(e){for(var t=0;t<e.length;t++)if(Ug(e[t],`
|
|
26
|
+
`)>=0)return!1;return!0}function Xb(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=pr.call(Array(e.indent+1)," ");else return null;return{base:r,prev:pr.call(Array(t+1),r)}}function Ll(e,t){if(e.length===0)return"";var r=`
|
|
27
|
+
`+t.prev+t.base;return r+pr.call(e,","+r)+`
|
|
28
|
+
`+t.prev}function ha(e,t){var r=Il(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Zr(e,o)?t(e[o],e):""}var i=typeof Ec=="function"?Ec(e):[],a;if(ro){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var c in e)Zr(e,c)&&(r&&String(Number(c))===c&&c<e.length||ro&&a["$"+c]instanceof Symbol||(Mg.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if(typeof Ec=="function")for(var l=0;l<i.length;l++)Fg.call(e,i[l])&&n.push("["+t(i[l])+"]: "+t(e[i[l]],e));return n}var Nf=si,co=_b,Jb=Lb,Zb=Nf("%TypeError%"),da=Nf("%WeakMap%",!0),pa=Nf("%Map%",!0),ew=co("WeakMap.prototype.get",!0),tw=co("WeakMap.prototype.set",!0),rw=co("WeakMap.prototype.has",!0),nw=co("Map.prototype.get",!0),iw=co("Map.prototype.set",!0),ow=co("Map.prototype.has",!0),If=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},sw=function(e,t){var r=If(e,t);return r&&r.value},aw=function(e,t,r){var n=If(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},uw=function(e,t){return!!If(e,t)},cw=function(){var t,r,n,o={assert:function(i){if(!o.has(i))throw new Zb("Side channel does not contain "+Jb(i))},get:function(i){if(da&&i&&(typeof i=="object"||typeof i=="function")){if(t)return ew(t,i)}else if(pa){if(r)return nw(r,i)}else if(n)return sw(n,i)},has:function(i){if(da&&i&&(typeof i=="object"||typeof i=="function")){if(t)return rw(t,i)}else if(pa){if(r)return ow(r,i)}else if(n)return uw(n,i);return!1},set:function(i,a){da&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new da),tw(t,i,a)):pa?(r||(r=new pa),iw(r,i,a)):(n||(n={key:{},next:null}),aw(n,i,a))}};return o},lw=String.prototype.replace,fw=/%20/g,bc={RFC1738:"RFC1738",RFC3986:"RFC3986"},Lf={default:bc.RFC3986,formatters:{RFC1738:function(e){return lw.call(e,fw,"+")},RFC3986:function(e){return String(e)}},RFC1738:bc.RFC1738,RFC3986:bc.RFC3986},hw=Lf,wc=Object.prototype.hasOwnProperty,Hn=Array.isArray,sr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),dw=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Hn(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);r.obj[r.prop]=o}}},jg=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},pw=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(Hn(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!wc.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var o=t;return Hn(t)&&!Hn(r)&&(o=jg(t,n)),Hn(t)&&Hn(r)?(r.forEach(function(i,a){if(wc.call(t,a)){var s=t[a];s&&typeof s=="object"&&i&&typeof i=="object"?t[a]=e(s,i,n):t.push(i)}else t[a]=i}),t):Object.keys(r).reduce(function(i,a){var s=r[a];return wc.call(i,a)?i[a]=e(i[a],s,n):i[a]=s,i},o)},mw=function(t,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},t)},gw=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}},yw=function(t,r,n,o,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var s="",c=0;c<a.length;++c){var l=a.charCodeAt(c);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===hw.RFC1738&&(l===40||l===41)){s+=a.charAt(c);continue}if(l<128){s=s+sr[l];continue}if(l<2048){s=s+(sr[192|l>>6]+sr[128|l&63]);continue}if(l<55296||l>=57344){s=s+(sr[224|l>>12]+sr[128|l>>6&63]+sr[128|l&63]);continue}c+=1,l=65536+((l&1023)<<10|a.charCodeAt(c)&1023),s+=sr[240|l>>18]+sr[128|l>>12&63]+sr[128|l>>6&63]+sr[128|l&63]}return s},vw=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],o=0;o<r.length;++o)for(var i=r[o],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:a,prop:l}),n.push(u))}return dw(r),t},Ew=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},_w=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},bw=function(t,r){return[].concat(t,r)},ww=function(t,r){if(Hn(t)){for(var n=[],o=0;o<t.length;o+=1)n.push(r(t[o]));return n}return r(t)},Hg={arrayToObject:jg,assign:mw,combine:bw,compact:vw,decode:gw,encode:yw,isBuffer:_w,isRegExp:Ew,maybeMap:ww,merge:pw},qg=cw,Ua=Hg,Ts=Lf,Sw=Object.prototype.hasOwnProperty,bd={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Mr=Array.isArray,Tw=Array.prototype.push,Gg=function(e,t){Tw.apply(e,Mr(t)?t:[t])},xw=Date.prototype.toISOString,wd=Ts.default,dt={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ua.encode,encodeValuesOnly:!1,format:wd,formatter:Ts.formatters[wd],indices:!1,serializeDate:function(t){return xw.call(t)},skipNulls:!1,strictNullHandling:!1},Ow=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Sc={},Aw=function e(t,r,n,o,i,a,s,c,l,u,d,h,f,p,m,_){for(var S=t,v=_,b=0,T=!1;(v=v.get(Sc))!==void 0&&!T;){var w=v.get(t);if(b+=1,typeof w<"u"){if(w===b)throw new RangeError("Cyclic object value");T=!0}typeof v.get(Sc)>"u"&&(b=0)}if(typeof c=="function"?S=c(r,S):S instanceof Date?S=d(S):n==="comma"&&Mr(S)&&(S=Ua.maybeMap(S,function(k){return k instanceof Date?d(k):k})),S===null){if(i)return s&&!p?s(r,dt.encoder,m,"key",h):r;S=""}if(Ow(S)||Ua.isBuffer(S)){if(s){var N=p?r:s(r,dt.encoder,m,"key",h);return[f(N)+"="+f(s(S,dt.encoder,m,"value",h))]}return[f(r)+"="+f(String(S))]}var R=[];if(typeof S>"u")return R;var L;if(n==="comma"&&Mr(S))p&&s&&(S=Ua.maybeMap(S,s)),L=[{value:S.length>0?S.join(",")||null:void 0}];else if(Mr(c))L=c;else{var $=Object.keys(S);L=l?$.sort(l):$}for(var G=o&&Mr(S)&&S.length===1?r+"[]":r,q=0;q<L.length;++q){var H=L[q],Y=typeof H=="object"&&typeof H.value<"u"?H.value:S[H];if(!(a&&Y===null)){var ie=Mr(S)?typeof n=="function"?n(G,H):G:G+(u?"."+H:"["+H+"]");_.set(t,b);var K=qg();K.set(Sc,_),Gg(R,e(Y,ie,n,o,i,a,n==="comma"&&p&&Mr(S)?null:s,c,l,u,d,h,f,p,m,K))}}return R},Cw=function(t){if(!t)return dt;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||dt.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Ts.default;if(typeof t.format<"u"){if(!Sw.call(Ts.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var o=Ts.formatters[n],i=dt.filter;return(typeof t.filter=="function"||Mr(t.filter))&&(i=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:dt.addQueryPrefix,allowDots:typeof t.allowDots>"u"?dt.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:dt.charsetSentinel,delimiter:typeof t.delimiter>"u"?dt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:dt.encode,encoder:typeof t.encoder=="function"?t.encoder:dt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:dt.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:dt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:dt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:dt.strictNullHandling}},Rw=function(e,t){var r=e,n=Cw(t),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):Mr(n.filter)&&(i=n.filter,o=i);var a=[];if(typeof r!="object"||r===null)return"";var s;t&&t.arrayFormat in bd?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var c=bd[s];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=c==="comma"&&t&&t.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var u=qg(),d=0;d<o.length;++d){var h=o[d];n.skipNulls&&r[h]===null||Gg(a,Aw(r[h],h,c,l,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}var f=a.join(n.delimiter),p=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),f.length>0?p+f:""},no=Hg,kl=Object.prototype.hasOwnProperty,Pw=Array.isArray,nt={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:no.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Nw=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Vg=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Iw="utf8=%26%2310003%3B",Lw="utf8=%E2%9C%93",kw=function(t,r){var n={__proto__:null},o=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=r.parameterLimit===1/0?void 0:r.parameterLimit,a=o.split(r.delimiter,i),s=-1,c,l=r.charset;if(r.charsetSentinel)for(c=0;c<a.length;++c)a[c].indexOf("utf8=")===0&&(a[c]===Lw?l="utf-8":a[c]===Iw&&(l="iso-8859-1"),s=c,c=a.length);for(c=0;c<a.length;++c)if(c!==s){var u=a[c],d=u.indexOf("]="),h=d===-1?u.indexOf("="):d+1,f,p;h===-1?(f=r.decoder(u,nt.decoder,l,"key"),p=r.strictNullHandling?null:""):(f=r.decoder(u.slice(0,h),nt.decoder,l,"key"),p=no.maybeMap(Vg(u.slice(h+1),r),function(m){return r.decoder(m,nt.decoder,l,"value")})),p&&r.interpretNumericEntities&&l==="iso-8859-1"&&(p=Nw(p)),u.indexOf("[]=")>-1&&(p=Pw(p)?[p]:p),kl.call(n,f)?n[f]=no.combine(n[f],p):n[f]=p}return n},Mw=function(e,t,r,n){for(var o=n?t:Vg(t,r),i=e.length-1;i>=0;--i){var a,s=e[i];if(s==="[]"&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,l=parseInt(c,10);!r.parseArrays&&c===""?a={0:o}:!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[],a[l]=o):c!=="__proto__"&&(a[c]=o)}o=a}return o},Fw=function(t,r,n,o){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&a.exec(i),l=c?i.slice(0,c.index):i,u=[];if(l){if(!n.plainObjects&&kl.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var d=0;n.depth>0&&(c=s.exec(i))!==null&&d<n.depth;){if(d+=1,!n.plainObjects&&kl.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+i.slice(c.index)+"]"),Mw(u,r,n,o)}},Dw=function(t){if(!t)return nt;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?nt.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?nt.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:nt.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:nt.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:nt.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:nt.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:nt.comma,decoder:typeof t.decoder=="function"?t.decoder:nt.decoder,delimiter:typeof t.delimiter=="string"||no.isRegExp(t.delimiter)?t.delimiter:nt.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:nt.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:nt.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:nt.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:nt.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:nt.strictNullHandling}},Bw=function(e,t){var r=Dw(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?kw(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var s=i[a],c=Fw(s,n[s],r,typeof e=="string");o=no.merge(o,c,r)}return r.allowSparse===!0?o:no.compact(o)},Uw=Rw,$w=Bw,jw=Lf,Hw={formats:jw,parse:$w,stringify:Uw};const qw=Er(Hw);var Gw="[object String]",Vw=Object.prototype,Ww=Vw.toString,zw=Array.isArray;function Qw(e){return!!e&&typeof e=="object"}function Yw(e){return typeof e=="string"||!zw(e)&&Qw(e)&&Ww.call(e)==Gw}var Kw=Yw;const Sd=Er(Kw);var kf={exports:{}};class Wg extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}const Xw=({limit:e,interval:t,strict:r})=>{if(!Number.isFinite(e))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw new TypeError("Expected `interval` to be a finite number");const n=new Map;let o=0,i=0;function a(){const u=Date.now();return u-o>t?(i=1,o=u,0):(i<e?i++:(o+=t,i=1),o-u)}const s=[];function c(){const u=Date.now();if(s.length<e)return s.push(u),0;const d=s.shift()+t;return u>=d?(s.push(u),0):(s.push(d),d-u)}const l=r?c:a;return u=>{const d=function(...h){if(!d.isEnabled)return(async()=>u.apply(this,h))();let f;return new Promise((p,m)=>{f=setTimeout(()=>{p(u.apply(this,h)),n.delete(f)},l()),n.set(f,m)})};return d.abort=()=>{for(const h of n.keys())clearTimeout(h),n.get(h)(new Wg);n.clear(),s.splice(0,s.length)},d.isEnabled=!0,d}};kf.exports=Xw;kf.exports.AbortError=Wg;var Jw=kf.exports;const Zw=Er(Jw);var eS="[object Object]";function tS(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function rS(e,t){return function(r){return e(t(r))}}var nS=Function.prototype,zg=Object.prototype,Qg=nS.toString,iS=zg.hasOwnProperty,oS=Qg.call(Object),sS=zg.toString,aS=rS(Object.getPrototypeOf,Object);function uS(e){return!!e&&typeof e=="object"}function cS(e){if(!uS(e)||sS.call(e)!=eS||tS(e))return!1;var t=aS(e);if(t===null)return!0;var r=iS.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Qg.call(r)==oS}var lS=cS;const ma=Er(lS);function fS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(u){l=!0,o=u}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function Td(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 Pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Td(Object(r),!0).forEach(function(n){hS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Td(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ml(e){"@babel/helpers - typeof";return Ml=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},Ml(e)}function Fl(){Fl=function(o,i){return new r(o,void 0,i)};var e=RegExp.prototype,t=new WeakMap;function r(o,i,a){var s=new RegExp(o,i);return t.set(s,a||t.get(o)),Qa(s,r.prototype)}function n(o,i){var a=t.get(i);return Object.keys(a).reduce(function(s,c){var l=a[c];if(typeof l=="number")s[c]=o[l];else{for(var u=0;o[l[u]]===void 0&&u+1<l.length;)u++;s[c]=o[l[u]]}return s},Object.create(null))}return dS(r,RegExp),r.prototype.exec=function(o){var i=e.exec.call(this,o);if(i){i.groups=n(i,this);var a=i.indices;a&&(a.groups=n(a,this))}return i},r.prototype[Symbol.replace]=function(o,i){if(typeof i=="string"){var a=t.get(this);return e[Symbol.replace].call(this,o,i.replace(/\$<([^>]+)>/g,function(c,l){var u=a[l];return"$"+(Array.isArray(u)?u.join("$"):u)}))}if(typeof i=="function"){var s=this;return e[Symbol.replace].call(this,o,function(){var c=arguments;return typeof c[c.length-1]!="object"&&(c=[].slice.call(c)).push(n(c,s)),i.apply(this,c)})}return e[Symbol.replace].call(this,o,i)},Fl.apply(this,arguments)}function hS(e,t,r){return t=ES(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dS(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&&Qa(e,t)}function Qa(e,t){return Qa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Qa(e,t)}function pS(e,t){return mS(e)||fS(e,t)||Yg(e,t)||gS()}function mS(e){if(Array.isArray(e))return e}function Yg(e,t){if(e){if(typeof e=="string")return xd(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 xd(e,t)}}function xd(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 gS(){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 yS(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Yg(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
30
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return i=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function vS(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 ES(e){var t=vS(e,"string");return typeof t=="symbol"?t:String(t)}function _S(){return typeof process<"u"&&!process.browser}function bS(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function wS(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function SS(){return window}function Dl(){}var Bl=Fl(/(\d+)(%)/,{value:1});function Tc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:7,r=t;if(Bl.test(e)){var n,o=(n=e.match(Bl))===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 Od(e,t){return t("info","Throttle request to ".concat(e,"/s")),Zw({limit:e,interval:1e3,strict:!1})}var TS=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",r=e.defaults.logHandler,n=r===void 0?Dl:r,o=Sd(t)?Tc(t):Tc("auto",t),i=Od(o,n),a=!1,s=e.interceptors.request.use(function(l){return i(function(){return l})()},function(l){return Promise.reject(l)}),c=e.interceptors.response.use(function(l){if(!a&&Sd(t)&&(t==="auto"||Bl.test(t))&&l.headers&&l.headers["x-contentful-ratelimit-second-limit"]){var u=parseInt(l.headers["x-contentful-ratelimit-second-limit"]),d=Tc(t,u);d!==o&&(s&&e.interceptors.request.eject(s),o=d,i=Od(d,n),s=e.interceptors.request.use(function(h){return i(function(){return h})()},function(h){return Promise.reject(h)})),a=!0}return l},function(l){return Promise.reject(l)});return function(){e.interceptors.request.eject(s),e.interceptors.response.eject(c)}},xS=function(t){return new Promise(function(r){setTimeout(r,t)})},OS=function(t){return Math.pow(Math.SQRT2,t)};function AS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,r=e.defaults,n=r.responseLogger,o=n===void 0?Dl:n,i=r.requestLogger,a=i===void 0?Dl:i;e.interceptors.request.use(function(s){return a(s),s},function(s){return a(s),Promise.reject(s)}),e.interceptors.response.use(function(s){return o(s),s},function(s){var c=s.response,l=s.config;if(o(s),!l||!e.defaults.retryOnError)return Promise.reject(s);var u=l.attempts||1;if(u>t)return s.attempts=l.attempts,Promise.reject(s);var d=null,h=OS(u);return c?c.status>=500&&c.status<600?d="Server ".concat(c.status):c.status===429&&(d="Rate limit",c.headers&&s.response.headers["x-contentful-ratelimit-reset"]&&(h=c.headers["x-contentful-ratelimit-reset"])):d="Connection",d?(h=Math.floor(h*1e3+Math.random()*200+500),e.defaults.logHandler("warning","".concat(d," error occurred. Waiting for ").concat(h," ms before retrying...")),l.attempts=u+1,delete l.httpAgent,delete l.httpsAgent,xS(h).then(function(){return e(l)})):Promise.reject(s)})}function CS(e,t){e.interceptors.request.use(function(r){return t().then(function(n){return r.headers=Pi(Pi({},r.headers),{},{Authorization:"Bearer ".concat(n)}),r})})}var RS=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function Kg(e,t){var r={insecure:!1,retryOnError:!0,logHandler:function(m,_){if(m==="error"&&_){var S=[_.name,_.message].filter(function(v){return v}).join(" - ");console.error("[error] ".concat(S)),console.error(_);return}console.log("[".concat(m,"] ").concat(_))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,proxy:!1,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824},n=Pi(Pi({},r),t);if(!n.accessToken){var o=new TypeError("Expected parameter accessToken");throw n.logHandler("error",o),o}var i=n.insecure?"http":"https",a=n.space?"".concat(n.space,"/"):"",s=n.defaultHostname,c=n.insecure?80:443;if(n.host&&RS.test(n.host)){var l=n.host.split(":");if(l.length===2){var u=pS(l,2);s=u[0],c=u[1]}else s=l[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var d=t.baseURL||"".concat(i,"://").concat(s,":").concat(c).concat(n.basePath,"/spaces/").concat(a);!n.headers.Authorization&&typeof n.accessToken!="function"&&(n.headers.Authorization="Bearer "+n.accessToken);var h={baseURL:d,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,paramsSerializer:qw.stringify,proxy:n.proxy,timeout:n.timeout,adapter:n.adapter,maxContentLength:n.maxContentLength,maxBodyLength:n.maxBodyLength,logHandler:n.logHandler,responseLogger:n.responseLogger,requestLogger:n.requestLogger,retryOnError:n.retryOnError},f=e.create(h);return f.httpClientParams=t,f.cloneWithNewParams=function(p){return Kg(e,Pi(Pi({},pn(t)),p))},n.onBeforeRequest&&f.interceptors.request.use(n.onBeforeRequest),typeof n.accessToken=="function"&&CS(f,n.accessToken),n.throttle&&TS(f,n.throttle),AS(f,n.retryLimit),n.onError&&f.interceptors.response.use(function(p){return p},n.onError),f}function PS(e){var t=e.query,r={};return delete t.resolveLinks,r.params=pn(t),r}function NS(e,t){if(!(t in e)){var r=new Error;throw r.name="PropertyMissing",r.message="Required property ".concat(t,` missing from:
|
|
31
|
+
|
|
32
|
+
`).concat(JSON.stringify(e),`
|
|
33
|
+
|
|
34
|
+
`),r}return!0}function Xg(e){var t=Object.getOwnPropertyNames(e),r=yS(t),n;try{for(r.s();!(n=r.n()).done;){var o=n.value,i=e[o];i&&Ml(i)==="object"&&Xg(i)}}catch(a){r.e(a)}finally{r.f()}return Object.freeze(e)}function IS(e){return Xg(e.sys||{}),e}function Ad(){var e=SS();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 LS(){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 kS(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{bS()?(i=Ad(),o.push("platform ReactNative")):_S()?(i=LS(),o.push("platform node.js/".concat(wS()))):(i=Ad(),o.push("platform browser"))}catch{i=null}return i&&o.push("os ".concat(i)),"".concat(o.filter(function(a){return a!==""}).join("; "),";")}function MS(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return pn(this)}})}function FS(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(!ma(r)||!ma(t))throw e;var i=r==null?void 0:r.data,a={status:r==null?void 0:r.status,statusText:r==null?void 0:r.statusText,message:"",details:{}};ma(t)&&(a.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),i&&ma(i)&&("requestId"in i&&(a.requestId=i.requestId||"UNKNOWN"),"message"in i&&(a.message=i.message||""),"details"in i&&(a.details=i.details||{}),"sys"in i&&"id"in i.sys&&(n=i.sys.id));var s=new Error;s.name=n&&n!=="Unknown"?n:"".concat(r==null?void 0:r.status," ").concat(r==null?void 0:r.statusText);try{s.message=JSON.stringify(a,null," ")}catch{var c;s.message=(c=a==null?void 0:a.message)!==null&&c!==void 0?c:""}throw s}const DS=Object.freeze(Object.defineProperty({__proto__:null,createHttpClient:Kg,createRequestConfig:PS,enforceObjPath:NS,errorHandler:FS,freezeSys:IS,getUserAgentHeader:kS,toPlainObject:MS},Symbol.toStringTag,{value:"Module"})),_r=Xs(DS);var ga={},zo={},ya={},Cd;function BS(){if(Cd)return ya;Cd=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.wrapSpace=t;var e=_r;function t(r){return(0,e.freezeSys)((0,e.toPlainObject)(r))}return ya}var Qo={},xc={exports:{}},Rd;function lo(){return Rd||(Rd=1,function(e,t){(function(r,n){e.exports=n()})(fe,function(){var r=Function.prototype.toString,n=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,c=Object.getPrototypeOf,l=Object.prototype,u=l.hasOwnProperty,d=l.propertyIsEnumerable,h=typeof s=="function",f=typeof WeakMap=="function",p=function(){if(f)return function(){return new WeakMap};var R=function(){function L(){this._keys=[],this._values=[]}return L.prototype.has=function($){return!!~this._keys.indexOf($)},L.prototype.get=function($){return this._values[this._keys.indexOf($)]},L.prototype.set=function($,G){this._keys.push($),this._values.push(G)},L}();return function(){return new R}}(),m=function(R,L){var $=R.__proto__||c(R);if(!$)return n(null);var G=$.constructor;if(G===L.Object)return $===L.Object.prototype?{}:n($);if(~r.call(G).indexOf("[native code]"))try{return new G}catch{}return n($)},_=function(R,L,$,G){var q=m(R,L);G.set(R,q);for(var H in R)u.call(R,H)&&(q[H]=$(R[H],G));if(h)for(var Y=s(R),ie=0,K=Y.length,k=void 0;ie<K;++ie)k=Y[ie],d.call(R,k)&&(q[k]=$(R[k],G));return q},S=function(R,L,$,G){var q=m(R,L);G.set(R,q);for(var H=h?a(R).concat(s(R)):a(R),Y=0,ie=H.length,K=void 0,k=void 0;Y<ie;++Y)if(K=H[Y],K!=="callee"&&K!=="caller")if(k=i(R,K),k){!k.get&&!k.set&&(k.value=$(R[K],G));try{o(q,K,k)}catch{q[K]=k.value}}else q[K]=$(R[K],G);return q},v=function(R){var L="";return R.global&&(L+="g"),R.ignoreCase&&(L+="i"),R.multiline&&(L+="m"),R.unicode&&(L+="u"),R.sticky&&(L+="y"),L},b=Array.isArray,T=Object.getPrototypeOf,w=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof fe<"u"?fe:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function N(R,L){var $=!!(L&&L.isStrict),G=L&&L.realm||w,q=$?S:_,H=function(Y,ie){if(!Y||typeof Y!="object")return Y;if(ie.has(Y))return ie.get(Y);var K=Y.__proto__||T(Y),k=K&&K.constructor;if(!k||k===G.Object)return q(Y,G,H,ie);var Q;if(b(Y)){if($)return S(Y,G,H,ie);Q=new k,ie.set(Y,Q);for(var ee=0,he=Y.length;ee<he;++ee)Q[ee]=H(Y[ee],ie);return Q}if(Y instanceof G.Date)return new k(Y.getTime());if(Y instanceof G.RegExp)return Q=new k(Y.source,Y.flags||v(Y)),Q.lastIndex=Y.lastIndex,Q;if(G.Map&&Y instanceof G.Map)return Q=new k,ie.set(Y,Q),Y.forEach(function(Z,X){Q.set(X,H(Z,ie))}),Q;if(G.Set&&Y instanceof G.Set)return Q=new k,ie.set(Y,Q),Y.forEach(function(Z){Q.add(H(Z,ie))}),Q;if(G.Blob&&Y instanceof G.Blob)return Y.slice(0,Y.size,Y.type);if(G.Buffer&&G.Buffer.isBuffer(Y))return Q=G.Buffer.allocUnsafe?G.Buffer.allocUnsafe(Y.length):new k(Y.length),ie.set(Y,Q),Y.copy(Q),Q;if(G.ArrayBuffer){if(G.ArrayBuffer.isView(Y))return Q=new k(Y.buffer.slice(0)),ie.set(Y,Q),Q;if(Y instanceof G.ArrayBuffer)return Q=Y.slice(0),ie.set(Y,Q),Q}return typeof Y.then=="function"||Y instanceof Error||G.WeakMap&&Y instanceof G.WeakMap||G.WeakSet&&Y instanceof G.WeakSet?Y:q(Y,G,H,ie)};return H(R,p())}return N.default=N,N.strict=function(L,$){return N(L,{isStrict:!0,realm:$?$.realm:void 0})},N})}(xc)),xc.exports}var va={},Ea={exports:{}},Pd;function US(){return Pd||(Pd=1,function(e,t){t=e.exports=r,t.getSerialize=n;function r(o,i,a,s){return JSON.stringify(o,n(i,s),a)}function n(o,i){var a=[],s=[];return i==null&&(i=function(c,l){return a[0]===l?"[Circular ~]":"[Circular ~."+s.slice(0,a.indexOf(l)).join(".")+"]"}),function(c,l){if(a.length>0){var u=a.indexOf(this);~u?a.splice(u+1):a.push(this),~u?s.splice(u,1/0,c):s.push(c),~a.indexOf(l)&&(l=i.call(this,c,l))}else a.push(l);return o==null?l:o.call(this,c,l)}}}(Ea,Ea.exports)),Ea.exports}var Nd;function Jg(){if(Nd)return va;Nd=1,Object.defineProperty(va,"__esModule",{value:!0}),va.default=r;var e=t(US());function t(n){return n&&n.__esModule?n:{default:n}}function r(n){return Object.defineProperty(n,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,e.default)(this,o,i,(a,s)=>({sys:{type:"Link",linkType:"Entry",id:s.sys.id,circular:!0}}))}})}return va}var $S=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},jS=function(){function e(t,r){var n=[],o=!0,i=!1,a=void 0;try{for(var s=t[Symbol.iterator](),c;!(o=(c=s.next()).done)&&(n.push(c.value),!(r&&n.length===r));o=!0);}catch(l){i=!0,a=l}finally{try{!o&&s.return&&s.return()}finally{if(i)throw a}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function Yo(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 Os={},HS=function(t){return t&&t.sys&&t.sys.type==="Link"},qS=function(t){return t&&t.sys&&t.sys.type==="ResourceLink"},GS=function(t){return t.space&&t.environment?[t.type+"!"+t.id,t.space.sys.id+"!"+t.environment.sys.id+"!"+t.type+"!"+t.id]:[t.type+"!"+t.id]},Id=function(t,r){var n=r.entryId,o=r.linkType,i=r.spaceId,a=r.environmentId;return i&&a?t.get(i+"!"+a+"!"+o+"!"+n):t.get(o+"!"+n)},VS=function(t){var r=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(r.test(t)){var n=t.match(r),o=jS(n,4);o[0];var i=o[1],a=o[2],s=a===void 0?"master":a,c=o[3];return{spaceId:i,environmentId:s,entryId:c}}},WS=function(t,r){var n=r.sys,o=n.type,i=n.linkType;if(o==="ResourceLink"){var a=r.sys.urn,s=VS(a),c=s.spaceId,l=s.environmentId,u=s.entryId,d=i.split(":")[1];return Id(t,{linkType:d,entryId:u,spaceId:c,environmentId:l})||Os}var h=r.sys.id;return Id(t,{linkType:i,entryId:h})||Os},zS=function(t){if(Array.isArray(t))return t.filter(function(n){return n!==Os});for(var r in t)t[r]===Os&&delete t[r];return t},QS=function e(t,r,n,o){if(r(t))return n(t);if(t&&(typeof t>"u"?"undefined":$S(t))==="object"){for(var i in t)t.hasOwnProperty(i)&&(t[i]=e(t[i],r,n,o));o&&(t=zS(t))}return t},YS=function(t,r,n){var o=WS(t,r);return o===Os?n?o:r:o},KS=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},{})},XS=function(t,r){if(r=r||{},!t.items)return[];var n=pn(t),o=Object.keys(n.includes||{}).reduce(function(s,c){return[].concat(Yo(s),Yo(t.includes[c]))},[]),i=[].concat(Yo(n.items),Yo(o)).filter(function(s){return!!s.sys}),a=new Map(i.reduce(function(s,c){var l=GS(c.sys).map(function(u){return[u,c]});return s.push.apply(s,Yo(l)),s},[]));return i.forEach(function(s){var c=KS(s,r.itemEntryPoints);Object.assign(s,QS(c,function(l){return HS(l)||qS(l)},function(l){return YS(a,l,r.removeUnresolved)},r.removeUnresolved))}),n.items};const JS=Object.freeze(Object.defineProperty({__proto__:null,default:XS},Symbol.toStringTag,{value:"Module"})),Zg=Xs(JS);var Ld;function ZS(){if(Ld)return Qo;Ld=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.wrapEntry=i,Qo.wrapEntryCollection=a;var e=o(lo()),t=_r,r=o(Jg()),n=o(Zg);function o(s){return s&&s.__esModule?s:{default:s}}function i(s){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(s)))}function a(s,c){let{resolveLinks:l,removeUnresolved:u}=c;const d=(0,r.default)((0,t.toPlainObject)((0,e.default)(s)));return l&&(d.items=(0,n.default)(d,{removeUnresolved:u,itemEntryPoints:["fields"]})),(0,t.freezeSys)(d)}return Qo}var Ko={},kd;function eT(){if(kd)return Ko;kd=1,Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.wrapAsset=n,Ko.wrapAssetCollection=o;var e=r(lo()),t=_r;function r(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return Ko}var _a={},Md;function tT(){if(Md)return _a;Md=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.wrapAssetKey=n;var e=r(lo()),t=_r;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 _a}var Xo={},Fd;function rT(){if(Fd)return Xo;Fd=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.wrapContentType=n,Xo.wrapContentTypeCollection=o;var e=r(lo()),t=_r;function r(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return Xo}var Jo={},Dd;function nT(){if(Dd)return Jo;Dd=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.wrapLocale=n,Jo.wrapLocaleCollection=o;var e=r(lo()),t=_r;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 Jo}var Zo={},Bd;function iT(){if(Bd)return Zo;Bd=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.wrapTag=n,Zo.wrapTagCollection=o;var e=r(lo()),t=_r;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 Zo}var Ud;function oT(){if(Ud)return zo;Ud=1,Object.defineProperty(zo,"__esModule",{value:!0}),zo.default=void 0;var e=c(BS()),t=c(ZS()),r=c(eT()),n=c(tT()),o=c(rT()),i=c(nT()),a=c(iT());function s(u){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return(s=function(f){return f?h:d})(u)}function c(u,d){if(!d&&u&&u.__esModule)return u;if(u===null||typeof u!="object"&&typeof u!="function")return{default:u};var h=s(d);if(h&&h.has(u))return h.get(u);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in u)if(m!=="default"&&Object.prototype.hasOwnProperty.call(u,m)){var _=p?Object.getOwnPropertyDescriptor(u,m):null;_&&(_.get||_.set)?Object.defineProperty(f,m,_):f[m]=u[m]}return f.default=u,h&&h.set(u,f),f}var l={space:e,entry:t,asset:r,assetKey:n,contentType:o,locale:i,tag:a};return zo.default=l,zo}var ba={},$d;function sT(){if($d)return ba;$d=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.default=s;var e=_r,t=n(Zg),r=n(Jg());function n(d){return d&&d.__esModule?d:{default:d}}function o(d,h){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(d);h&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(d,m).enumerable})),f.push.apply(f,p)}return f}function i(d){for(var h=1;h<arguments.length;h++){var f=arguments[h]!=null?arguments[h]:{};h%2?o(Object(f),!0).forEach(function(p){a(d,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):o(Object(f)).forEach(function(p){Object.defineProperty(d,p,Object.getOwnPropertyDescriptor(f,p))})}return d}function a(d,h,f){return h in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f,d}async function s(d,h){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!h||!h.initial&&!h.nextSyncToken&&!h.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(h&&h.content_type&&!h.type)h.type="Entry";else if(h&&h.content_type&&h.type&&h.type!=="Entry")throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");const p={resolveLinks:!0,removeUnresolved:!1,paginate:!0},{resolveLinks:m,removeUnresolved:_,paginate:S}=i(i({},p),f),b=await l(d,[],h,{paginate:S});m&&(b.items=(0,t.default)(b,{removeUnresolved:_,itemEntryPoints:["fields"]}));const T=c(b.items);return b.nextSyncToken&&(T.nextSyncToken=b.nextSyncToken),b.nextPageToken&&(T.nextPageToken=b.nextPageToken),(0,e.freezeSys)((0,r.default)((0,e.toPlainObject)(T)))}function c(d){const h=f=>(p,m)=>(m.sys.type===f&&p.push((0,e.toPlainObject)(m)),p);return{entries:d.reduce(h("Entry"),[]),assets:d.reduce(h("Asset"),[]),deletedEntries:d.reduce(h("DeletedEntry"),[]),deletedAssets:d.reduce(h("DeletedAsset"),[])}}async function l(d,h,f,p){let{paginate:m}=p;f.nextSyncToken&&(f.sync_token=f.nextSyncToken,delete f.nextSyncToken),f.nextPageToken&&(f.sync_token=f.nextPageToken,delete f.nextPageToken),f.sync_token&&(delete f.initial,delete f.type,delete f.content_type,delete f.limit);const S=(await d.get("sync",(0,e.createRequestConfig)({query:f}))).data||{};return h=h.concat(S.items||[]),S.nextPageUrl?m?(delete f.initial,f.sync_token=u(S.nextPageUrl),l(d,h,f,{paginate:m})):{items:h,nextPageToken:u(S.nextPageUrl)}:S.nextSyncUrl?{items:h,nextSyncToken:u(S.nextSyncUrl)}:{items:[]}}function u(d){const h=d.split("?");return h.length>0?h[1].replace("sync_token=",""):""}return ba}var wa={},jd;function aT(){if(jd)return wa;jd=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.default=n;function e(o,i){var a=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);i&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),a.push.apply(a,s)}return a}function t(o){for(var i=1;i<arguments.length;i++){var a=arguments[i]!=null?arguments[i]:{};i%2?e(Object(a),!0).forEach(function(s){r(o,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach(function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(a,s))})}return o}function r(o,i,a){return i in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}function n(o){if(!o.select)return o;const i=Array.isArray(o.select)?o.select:o.select.split(","),a=new Set(i);return a.has("sys")?o:(a.add("sys.id"),a.add("sys.type"),t(t({},o),{},{select:[...a].join(",")}))}return wa}var Oi={},Hd;function uT(){if(Hd)return Oi;Hd=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.ValidationError=void 0,Oi.default=t;class e extends Error{constructor(n,o){super(`Invalid "${n}" provided, `+o),this.name="ValidationError"}}Oi.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 Oi}var qd;function cT(){if(qd)return ga;qd=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.default=u;var e=_r,t=i(oT()),r=i(sT()),n=i(aT()),o=i(uT());function i(d){return d&&d.__esModule?d:{default:d}}function a(d,h){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(d);h&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(d,m).enumerable})),f.push.apply(f,p)}return f}function s(d){for(var h=1;h<arguments.length;h++){var f=arguments[h]!=null?arguments[h]:{};h%2?a(Object(f),!0).forEach(function(p){c(d,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):a(Object(f)).forEach(function(p){Object.defineProperty(d,p,Object.getOwnPropertyDescriptor(f,p))})}return d}function c(d,h,f){return h in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f,d}const l=48*60*60;function u(d){let{http:h,getGlobalOptions:f}=d;const{wrapSpace:p}=t.default.space,{wrapContentType:m,wrapContentTypeCollection:_}=t.default.contentType,{wrapEntry:S,wrapEntryCollection:v}=t.default.entry,{wrapAsset:b,wrapAssetCollection:T}=t.default.asset,{wrapTag:w,wrapTagCollection:N}=t.default.tag,{wrapAssetKey:R}=t.default.assetKey,{wrapLocaleCollection:L}=t.default.locale,$=te=>{const ae=new Error("The resource could not be found.");return ae.sys={type:"Error",id:"NotFound"},ae.details={type:"Entry",id:te,environment:f().environment,space:f().space},ae};async function G(){Ve(h);try{const te=await h.get("/");return p(te.data)}catch(te){(0,e.errorHandler)(te)}}async function q(te){de(h);try{const ae=await h.get(`content_types/${te}`);return m(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function H(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(h);try{const ae=await h.get("content_types",(0,e.createRequestConfig)({query:te}));return _(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function Y(te){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!te)throw $(te);try{const De=await this.getEntries(s({"sys.id":te},ae));if(De.items.length>0)return S(De.items[0]);throw $(te)}catch(De){(0,e.errorHandler)(De)}}async function ie(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(h);const{resolveLinks:ae,removeUnresolved:De}=f(te);te=(0,n.default)(te);try{const Ie=await h.get("entries",(0,e.createRequestConfig)({query:te}));return v(Ie.data,{resolveLinks:ae,removeUnresolved:De})}catch(Ie){(0,e.errorHandler)(Ie)}}async function K(te){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};de(h),ae=(0,n.default)(ae);try{const De=await h.get(`assets/${te}`,(0,e.createRequestConfig)({query:ae}));return b(De.data)}catch(De){(0,e.errorHandler)(De)}}async function k(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(h),te=(0,n.default)(te);try{const ae=await h.get("assets",(0,e.createRequestConfig)({query:te}));return T(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function Q(te){de(h);try{const ae=await h.get(`tags/${te}`);return w(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function ee(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(h),te=(0,n.default)(te);try{const ae=await h.get("tags",(0,e.createRequestConfig)({query:te}));return N(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function he(te){de(h);try{const ae=Math.floor(Date.now()/1e3),De=ae+l;(0,o.default)("expiresAt",te,{maximum:De,now:ae});const Ie={expiresAt:te},Tt=await h.post("asset_keys",Ie);return R(Tt.data)}catch(ae){(0,e.errorHandler)(ae)}}async function Z(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(h);try{const ae=await h.get("locales",(0,e.createRequestConfig)({query:te}));return L(ae.data)}catch(ae){(0,e.errorHandler)(ae)}}async function X(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{paginate:!0};const{resolveLinks:De,removeUnresolved:Ie}=f(te);return de(h),(0,r.default)(h,te,s({resolveLinks:De,removeUnresolved:Ie},ae))}function le(te){const{resolveLinks:ae,removeUnresolved:De}=f({});return v(te,{resolveLinks:ae,removeUnresolved:De})}function de(te){te.defaults.baseURL=f().environmentBaseUrl}function Ve(te){te.defaults.baseURL=f().spaceBaseUrl}return{getSpace:G,getContentType:q,getContentTypes:H,getEntry:Y,getEntries:ie,getAsset:K,getAssets:k,getTag:Q,getTags:ee,createAssetKey:he,getLocales:Z,parseEntries:le,sync:X}}return ga}var Sa={},Gd;function lT(){if(Gd)return Sa;Gd=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.default=e;function e(t){return function(n){return Object.assign({},t,n)}}return Sa}var Vd;function fT(){if(Vd)return la;Vd=1,Object.defineProperty(la,"__esModule",{value:!0}),la.createClient=c;var e=o(Tg()),t=_r,r=o(cT()),n=o(lT());function o(l){return l&&l.__esModule?l:{default:l}}function i(l,u){var d=Object.keys(l);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(l);u&&(h=h.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),d.push.apply(d,h)}return d}function a(l){for(var u=1;u<arguments.length;u++){var d=arguments[u]!=null?arguments[u]:{};u%2?i(Object(d),!0).forEach(function(h){s(l,h,d[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(d)):i(Object(d)).forEach(function(h){Object.defineProperty(l,h,Object.getOwnPropertyDescriptor(d,h))})}return l}function s(l,u,d){return u in l?Object.defineProperty(l,u,{value:d,enumerable:!0,configurable:!0,writable:!0}):l[u]=d,l}function c(l){if(!l.accessToken)throw new TypeError("Expected parameter accessToken");if(!l.space)throw new TypeError("Expected parameter space");const d=a(a({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),l),h=(0,t.getUserAgentHeader)("contentful.js/9.1.34",d.application,d.integration);d.headers=a(a({},d.headers),{},{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":h});const f=(0,t.createHttpClient)(e.default,d),p=(0,n.default)({resolveLinks:d.resolveLinks,environment:d.environment,removeUnresolved:d.removeUnresolved,spaceBaseUrl:f.defaults.baseURL,environmentBaseUrl:`${f.defaults.baseURL}environments/${d.environment}`});return f.defaults.baseURL=p().environmentBaseUrl,(0,r.default)({http:f,getGlobalOptions:p})}return la}var Oc={},Ac,Wd;function hT(){return Wd||(Wd=1,Ac=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Ac}var Cc,zd;function dT(){if(zd)return Cc;zd=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(a,s){try{return[decodeURIComponent(a.join(""))]}catch{}if(a.length===1)return a;s=s||1;var c=a.slice(0,s),l=a.slice(s);return Array.prototype.concat.call([],n(c),n(l))}function o(a){try{return decodeURIComponent(a)}catch{for(var s=a.match(t)||[],c=1;c<s.length;c++)a=n(s,c).join(""),s=a.match(t)||[];return a}}function i(a){for(var s={"%FE%FF":"��","%FF%FE":"��"},c=r.exec(a);c;){try{s[c[0]]=decodeURIComponent(c[0])}catch{var l=o(c[0]);l!==c[0]&&(s[c[0]]=l)}c=r.exec(a)}s["%C2"]="�";for(var u=Object.keys(s),d=0;d<u.length;d++){var h=u[d];a=a.replace(new RegExp(h,"g"),s[h])}return a}return Cc=function(a){if(typeof a!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof a+"`");try{return a=a.replace(/\+/g," "),decodeURIComponent(a)}catch{return i(a)}},Cc}var Rc,Qd;function pT(){return Qd||(Qd=1,Rc=(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)]}),Rc}var Pc,Yd;function mT(){return Yd||(Yd=1,Pc=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),i=0;i<n.length;i++){var a=n[i],s=e[a];(o?t.indexOf(a)!==-1:t(a,s,e))&&(r[a]=s)}return r}),Pc}var Kd;function gT(){return Kd||(Kd=1,function(e){const t=hT(),r=dT(),n=pT(),o=mT(),i=v=>v==null,a=Symbol("encodeFragmentIdentifier");function s(v){switch(v.arrayFormat){case"index":return b=>(T,w)=>{const N=T.length;return w===void 0||v.skipNull&&w===null||v.skipEmptyString&&w===""?T:w===null?[...T,[u(b,v),"[",N,"]"].join("")]:[...T,[u(b,v),"[",u(N,v),"]=",u(w,v)].join("")]};case"bracket":return b=>(T,w)=>w===void 0||v.skipNull&&w===null||v.skipEmptyString&&w===""?T:w===null?[...T,[u(b,v),"[]"].join("")]:[...T,[u(b,v),"[]=",u(w,v)].join("")];case"colon-list-separator":return b=>(T,w)=>w===void 0||v.skipNull&&w===null||v.skipEmptyString&&w===""?T:w===null?[...T,[u(b,v),":list="].join("")]:[...T,[u(b,v),":list=",u(w,v)].join("")];case"comma":case"separator":case"bracket-separator":{const b=v.arrayFormat==="bracket-separator"?"[]=":"=";return T=>(w,N)=>N===void 0||v.skipNull&&N===null||v.skipEmptyString&&N===""?w:(N=N===null?"":N,w.length===0?[[u(T,v),b,u(N,v)].join("")]:[[w,u(N,v)].join(v.arrayFormatSeparator)])}default:return b=>(T,w)=>w===void 0||v.skipNull&&w===null||v.skipEmptyString&&w===""?T:w===null?[...T,u(b,v)]:[...T,[u(b,v),"=",u(w,v)].join("")]}}function c(v){let b;switch(v.arrayFormat){case"index":return(T,w,N)=>{if(b=/\[(\d*)\]$/.exec(T),T=T.replace(/\[\d*\]$/,""),!b){N[T]=w;return}N[T]===void 0&&(N[T]={}),N[T][b[1]]=w};case"bracket":return(T,w,N)=>{if(b=/(\[\])$/.exec(T),T=T.replace(/\[\]$/,""),!b){N[T]=w;return}if(N[T]===void 0){N[T]=[w];return}N[T]=[].concat(N[T],w)};case"colon-list-separator":return(T,w,N)=>{if(b=/(:list)$/.exec(T),T=T.replace(/:list$/,""),!b){N[T]=w;return}if(N[T]===void 0){N[T]=[w];return}N[T]=[].concat(N[T],w)};case"comma":case"separator":return(T,w,N)=>{const R=typeof w=="string"&&w.includes(v.arrayFormatSeparator),L=typeof w=="string"&&!R&&d(w,v).includes(v.arrayFormatSeparator);w=L?d(w,v):w;const $=R||L?w.split(v.arrayFormatSeparator).map(G=>d(G,v)):w===null?w:d(w,v);N[T]=$};case"bracket-separator":return(T,w,N)=>{const R=/(\[\])$/.test(T);if(T=T.replace(/\[\]$/,""),!R){N[T]=w&&d(w,v);return}const L=w===null?[]:w.split(v.arrayFormatSeparator).map($=>d($,v));if(N[T]===void 0){N[T]=L;return}N[T]=[].concat(N[T],L)};default:return(T,w,N)=>{if(N[T]===void 0){N[T]=w;return}N[T]=[].concat(N[T],w)}}}function l(v){if(typeof v!="string"||v.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(v,b){return b.encode?b.strict?t(v):encodeURIComponent(v):v}function d(v,b){return b.decode?r(v):v}function h(v){return Array.isArray(v)?v.sort():typeof v=="object"?h(Object.keys(v)).sort((b,T)=>Number(b)-Number(T)).map(b=>v[b]):v}function f(v){const b=v.indexOf("#");return b!==-1&&(v=v.slice(0,b)),v}function p(v){let b="";const T=v.indexOf("#");return T!==-1&&(b=v.slice(T)),b}function m(v){v=f(v);const b=v.indexOf("?");return b===-1?"":v.slice(b+1)}function _(v,b){return b.parseNumbers&&!Number.isNaN(Number(v))&&typeof v=="string"&&v.trim()!==""?v=Number(v):b.parseBooleans&&v!==null&&(v.toLowerCase()==="true"||v.toLowerCase()==="false")&&(v=v.toLowerCase()==="true"),v}function S(v,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),l(b.arrayFormatSeparator);const T=c(b),w=Object.create(null);if(typeof v!="string"||(v=v.trim().replace(/^[?#&]/,""),!v))return w;for(const N of v.split("&")){if(N==="")continue;let[R,L]=n(b.decode?N.replace(/\+/g," "):N,"=");L=L===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?L:d(L,b),T(d(R,b),L,w)}for(const N of Object.keys(w)){const R=w[N];if(typeof R=="object"&&R!==null)for(const L of Object.keys(R))R[L]=_(R[L],b);else w[N]=_(R,b)}return b.sort===!1?w:(b.sort===!0?Object.keys(w).sort():Object.keys(w).sort(b.sort)).reduce((N,R)=>{const L=w[R];return L&&typeof L=="object"&&!Array.isArray(L)?N[R]=h(L):N[R]=L,N},Object.create(null))}e.extract=m,e.parse=S,e.stringify=(v,b)=>{if(!v)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),l(b.arrayFormatSeparator);const T=L=>b.skipNull&&i(v[L])||b.skipEmptyString&&v[L]==="",w=s(b),N={};for(const L of Object.keys(v))T(L)||(N[L]=v[L]);const R=Object.keys(N);return b.sort!==!1&&R.sort(b.sort),R.map(L=>{const $=v[L];return $===void 0?"":$===null?u(L,b):Array.isArray($)?$.length===0&&b.arrayFormat==="bracket-separator"?u(L,b)+"[]":$.reduce(w(L),[]).join("&"):u(L,b)+"="+u($,b)}).filter(L=>L.length>0).join("&")},e.parseUrl=(v,b)=>{b=Object.assign({decode:!0},b);const[T,w]=n(v,"#");return Object.assign({url:T.split("?")[0]||"",query:S(m(v),b)},b&&b.parseFragmentIdentifier&&w?{fragmentIdentifier:d(w,b)}:{})},e.stringifyUrl=(v,b)=>{b=Object.assign({encode:!0,strict:!0,[a]:!0},b);const T=f(v.url).split("?")[0]||"",w=e.extract(v.url),N=e.parse(w,{sort:!1}),R=Object.assign(N,v.query);let L=e.stringify(R,b);L&&(L=`?${L}`);let $=p(v.url);return v.fragmentIdentifier&&($=`#${b[a]?u(v.fragmentIdentifier,b):v.fragmentIdentifier}`),`${T}${L}${$}`},e.pick=(v,b,T)=>{T=Object.assign({parseFragmentIdentifier:!0,[a]:!1},T);const{url:w,query:N,fragmentIdentifier:R}=e.parseUrl(v,T);return e.stringifyUrl({url:w,query:o(N,b),fragmentIdentifier:R},T)},e.exclude=(v,b,T)=>{const w=Array.isArray(b)?N=>!b.includes(N):(N,R)=>!b(N,R);return e.pick(v,w,T)}}(Oc)),Oc}var Xd;function yT(){return Xd||(Xd=1,function(e,t){(function(r,n){e.exports=n(fT(),gT())})(fe,function(r,n){return function(){var o={897:function(c){c.exports=r},48:function(c){c.exports=n}},i={};function a(c){var l=i[c];if(l!==void 0)return l.exports;var u=i[c]={exports:{}};return o[c](u,u.exports,a),u.exports}a.d=function(c,l){for(var u in l)a.o(l,u)&&!a.o(c,u)&&Object.defineProperty(c,u,{enumerable:!0,get:l[u]})},a.o=function(c,l){return Object.prototype.hasOwnProperty.call(c,l)},a.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var s={};return function(){a.r(s),a.d(s,{getEntries:function(){return ie},getEntry:function(){return Y},setContext:function(){return m}});var c=a(897),l=a(48),u={CONTENTFUL:{ENVIRONMENTS_MAPING:{beta:"beta",rc:"rc",live:"master",local:"beta"},LOCALES:{DEFAULT:"en",SUPPORTED:["en","es","fr","pt"]},SPACE:"txbhe1wabmyx",HOSTS:{CDN:"cdn.contentful.com",PREVIEW:"preview.contentful.com"}}};const{CONTENTFUL:{ENVIRONMENTS_MAPING:d,SPACE:h,HOSTS:f}}=u;let p={apiKey:null,previewKey:null,environment:null,isPreview:!1,host:f.CDN,space:h};const m=({apiKey:K,environment:k,isPreview:Q=!1,location:ee,previewKey:he,space:Z=null})=>{p.apiKey=K,p.previewKey=he,p.environment=(X=>{if(!X)throw new Error("Cannot map environment: Environment not defined");if(!d[X])throw new Error(`Cannot map environment: No mapping found for environment ${X}`);return d[X]})(k),p.isPreview=Q||(X=>{let le=!1;if(X&&X.search){const de=(0,l.parse)(X.search);le=de.isPreview&&de.isPreview==="true"}return le})(ee),p.space=Z||h},_=(K=!1)=>{const{apiKey:k,environment:Q,isPreview:ee,previewKey:he,space:Z}=p;return ee===!0||K===!0?{accessToken:he,environment:Q,host:f.PREVIEW,space:Z}:{accessToken:k,environment:Q,host:f.CDN,space:Z}},S=K=>typeof K=="object"&&K!==null,v=K=>Array.isArray(K)&&K.length,b=K=>{if(!S(K))throw new Error("Cannot flatten fields");const{fields:k,sys:Q}=K;if(!k)throw new Error("Cannot flatten fields");let ee={...k};if(S(Q)){const{contentType:he,createdAt:Z,updatedAt:X}=Q;he&&Object.assign(ee,{contentType:he.sys.id}),Z&&Object.assign(ee,{createdAt:Z}),X&&Object.assign(ee,{updatedAt:X})}return ee},{CONTENTFUL:{LOCALES:T}}=u,w=(K,k)=>S(K)&&((Q,ee)=>Object.prototype.hasOwnProperty.call(Q,ee))(K,k),N=(K,k)=>{const Q=(ee=>T.SUPPORTED.includes(ee)?ee:T.DEFAULT)(k);return w(K,Q)?K[Q]:w(K,T.DEFAULT)?K[T.DEFAULT]:K},R=K=>S(K)&&K.sys&&K.sys.type==="Asset",L=(K,k,Q)=>{const{title:ee,file:he}=b(K);if(!he)throw new Error("Cannot flatten asset");const{contentType:Z,fileName:X,url:le,details:de}=N(he,k);if(!le)throw new Error("Cannot flatten asset");return Q?{description:ee||X,height:de&&de.image&&de.image.height,type:Z,url:le,width:de&&de.image&&de.image.width}:le},$=K=>S(K)&&K.sys&&K.sys.type==="Entry",G=(K,k,Q)=>{const ee={},he=((Z,X)=>{const le={};for(const[de,Ve]of Object.entries(Z))le[de]=N(Ve,X);return le})(b(K),k);for(const[Z,X]of Object.entries(he))R(X)?ee[Z]=L(X,k,Q):$(X)?ee[Z]=G(X,k,Q):v(X)?ee[Z]=X.map(le=>R(le)?L(le,k,Q):$(le)?G(le,k,Q):le):ee[Z]=X;return ee},q=({items:K})=>{if(!v(K))throw new Error("Cannot read items");return K},H=async(K,k)=>{const Q=_(k);return await(await(0,c.createClient)(Q)).getEntries(K)},Y=async(K={},k={},Q=!1)=>((ee,{flatten:he=!0,locale:Z="en",assetDetails:X=!1})=>{const le=q(ee);return he?G(le[0],Z,X):le[0]})(await H(K,Q),{...K,...k}),ie=async(K={},k={},Q=!1)=>((ee,{flatten:he=!0,locale:Z="en",assetDetails:X=!1})=>{const le=q(ee);return he?((de,Ve,te)=>de.map(ae=>G(ae,Ve,te)))(le,Z,X):le})(await H(K,Q),{...K,...k})}(),s}()})}(Fu)),Fu.exports}var Nc={exports:{}},Ic={exports:{}},Lc={exports:{}},kc={exports:{}},Jd;function Mf(){return Jd||(Jd=1,function(e,t){(function(r,n){e.exports=n()})(fe,function(){function r(m){return!isNaN(parseFloat(m))&&isFinite(m)}function n(m){return m.charAt(0).toUpperCase()+m.substring(1)}function o(m){return function(){return this[m]}}var i=["isConstructor","isEval","isNative","isToplevel"],a=["columnNumber","lineNumber"],s=["fileName","functionName","source"],c=["args"],l=["evalOrigin"],u=i.concat(a,s,c,l);function d(m){if(m)for(var _=0;_<u.length;_++)m[u[_]]!==void 0&&this["set"+n(u[_])](m[u[_]])}d.prototype={getArgs:function(){return this.args},setArgs:function(m){if(Object.prototype.toString.call(m)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=m},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(m){if(m instanceof d)this.evalOrigin=m;else if(m instanceof Object)this.evalOrigin=new d(m);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var m=this.getFileName()||"",_=this.getLineNumber()||"",S=this.getColumnNumber()||"",v=this.getFunctionName()||"";return this.getIsEval()?m?"[eval] ("+m+":"+_+":"+S+")":"[eval]:"+_+":"+S:v?v+" ("+m+":"+_+":"+S+")":m+":"+_+":"+S}},d.fromString=function(_){var S=_.indexOf("("),v=_.lastIndexOf(")"),b=_.substring(0,S),T=_.substring(S+1,v).split(","),w=_.substring(v+1);if(w.indexOf("@")===0)var N=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(w,""),R=N[1],L=N[2],$=N[3];return new d({functionName:b,args:T||void 0,fileName:R,lineNumber:L||void 0,columnNumber:$||void 0})};for(var h=0;h<i.length;h++)d.prototype["get"+n(i[h])]=o(i[h]),d.prototype["set"+n(i[h])]=function(m){return function(_){this[m]=!!_}}(i[h]);for(var f=0;f<a.length;f++)d.prototype["get"+n(a[f])]=o(a[f]),d.prototype["set"+n(a[f])]=function(m){return function(_){if(!r(_))throw new TypeError(m+" must be a Number");this[m]=Number(_)}}(a[f]);for(var p=0;p<s.length;p++)d.prototype["get"+n(s[p])]=o(s[p]),d.prototype["set"+n(s[p])]=function(m){return function(_){this[m]=String(_)}}(s[p]);return d})}(kc)),kc.exports}var Zd;function vT(){return Zd||(Zd=1,function(e,t){(function(r,n){e.exports=n(Mf())})(fe,function(n){var o=/(^|@)\S+:\d+/,i=/^\s*at .*(\S+:\d+|\(native\))/m,a=/^(eval@)?(\[native code])?$/;return{parse:function(c){if(typeof c.stacktrace<"u"||typeof c["opera#sourceloc"]<"u")return this.parseOpera(c);if(c.stack&&c.stack.match(i))return this.parseV8OrIE(c);if(c.stack)return this.parseFFOrSafari(c);throw new Error("Cannot parse given Error object")},extractLocation:function(c){if(c.indexOf(":")===-1)return[c];var l=/(.+?)(?::(\d+))?(?::(\d+))?$/,u=l.exec(c.replace(/[()]/g,""));return[u[1],u[2]||void 0,u[3]||void 0]},parseV8OrIE:function(c){var l=c.stack.split(`
|
|
35
|
+
`).filter(function(u){return!!u.match(i)},this);return l.map(function(u){u.indexOf("(eval ")>-1&&(u=u.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var d=u.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),h=d.match(/ (\(.+\)$)/);d=h?d.replace(h[0],""):d;var f=this.extractLocation(h?h[1]:d),p=h&&d||void 0,m=["eval","<anonymous>"].indexOf(f[0])>-1?void 0:f[0];return new n({functionName:p,fileName:m,lineNumber:f[1],columnNumber:f[2],source:u})},this)},parseFFOrSafari:function(c){var l=c.stack.split(`
|
|
36
|
+
`).filter(function(u){return!u.match(a)},this);return l.map(function(u){if(u.indexOf(" > eval")>-1&&(u=u.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),u.indexOf("@")===-1&&u.indexOf(":")===-1)return new n({functionName:u});var d=/((.*".+"[^@]*)?[^@]*)(?:@)/,h=u.match(d),f=h&&h[1]?h[1]:void 0,p=this.extractLocation(u.replace(d,""));return new n({functionName:f,fileName:p[0],lineNumber:p[1],columnNumber:p[2],source:u})},this)},parseOpera:function(c){return!c.stacktrace||c.message.indexOf(`
|
|
37
|
+
`)>-1&&c.message.split(`
|
|
38
|
+
`).length>c.stacktrace.split(`
|
|
39
|
+
`).length?this.parseOpera9(c):c.stack?this.parseOpera11(c):this.parseOpera10(c)},parseOpera9:function(c){for(var l=/Line (\d+).*script (?:in )?(\S+)/i,u=c.message.split(`
|
|
40
|
+
`),d=[],h=2,f=u.length;h<f;h+=2){var p=l.exec(u[h]);p&&d.push(new n({fileName:p[2],lineNumber:p[1],source:u[h]}))}return d},parseOpera10:function(c){for(var l=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,u=c.stacktrace.split(`
|
|
41
|
+
`),d=[],h=0,f=u.length;h<f;h+=2){var p=l.exec(u[h]);p&&d.push(new n({functionName:p[3]||void 0,fileName:p[2],lineNumber:p[1],source:u[h]}))}return d},parseOpera11:function(c){var l=c.stack.split(`
|
|
42
|
+
`).filter(function(u){return!!u.match(o)&&!u.match(/^Error created at/)},this);return l.map(function(u){var d=u.split("@"),h=this.extractLocation(d.pop()),f=d.shift()||"",p=f.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,m;f.match(/\(([^)]*)\)/)&&(m=f.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var _=m===void 0||m==="[arguments not available]"?void 0:m.split(",");return new n({functionName:p,args:_,fileName:h[0],lineNumber:h[1],columnNumber:h[2],source:u})},this)}}})}(Lc)),Lc.exports}var Mc={exports:{}},ep;function ET(){return ep||(ep=1,function(e,t){(function(r,n){e.exports=n(Mf())})(fe,function(r){return{backtrace:function(o){var i=[],a=10;typeof o=="object"&&typeof o.maxStackSize=="number"&&(a=o.maxStackSize);for(var s=arguments.callee;s&&i.length<a&&s.arguments;){for(var c=new Array(s.arguments.length),l=0;l<c.length;++l)c[l]=s.arguments[l];/function(?:\s+([\w$]+))+\s*\(/.test(s.toString())?i.push(new r({functionName:RegExp.$1||void 0,args:c})):i.push(new r({args:c}));try{s=s.caller}catch{break}}return i}}})}(Mc)),Mc.exports}var Fc={exports:{}},es={},Dc={},tp;function ey(){return tp||(tp=1,function(e){function t(v,b,T){if(b in v)return v[b];if(arguments.length===3)return T;throw new Error('"'+b+'" is a required argument.')}e.getArg=t;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,n=/^data:.+\,.+$/;function o(v){var b=v.match(r);return b?{scheme:b[1],auth:b[2],host:b[3],port:b[4],path:b[5]}:null}e.urlParse=o;function i(v){var b="";return v.scheme&&(b+=v.scheme+":"),b+="//",v.auth&&(b+=v.auth+"@"),v.host&&(b+=v.host),v.port&&(b+=":"+v.port),v.path&&(b+=v.path),b}e.urlGenerate=i;function a(v){var b=v,T=o(v);if(T){if(!T.path)return v;b=T.path}for(var w=e.isAbsolute(b),N=b.split(/\/+/),R,L=0,$=N.length-1;$>=0;$--)R=N[$],R==="."?N.splice($,1):R===".."?L++:L>0&&(R===""?(N.splice($+1,L),L=0):(N.splice($,2),L--));return b=N.join("/"),b===""&&(b=w?"/":"."),T?(T.path=b,i(T)):b}e.normalize=a;function s(v,b){v===""&&(v="."),b===""&&(b=".");var T=o(b),w=o(v);if(w&&(v=w.path||"/"),T&&!T.scheme)return w&&(T.scheme=w.scheme),i(T);if(T||b.match(n))return b;if(w&&!w.host&&!w.path)return w.host=b,i(w);var N=b.charAt(0)==="/"?b:a(v.replace(/\/+$/,"")+"/"+b);return w?(w.path=N,i(w)):N}e.join=s,e.isAbsolute=function(v){return v.charAt(0)==="/"||!!v.match(r)};function c(v,b){v===""&&(v="."),v=v.replace(/\/$/,"");for(var T=0;b.indexOf(v+"/")!==0;){var w=v.lastIndexOf("/");if(w<0||(v=v.slice(0,w),v.match(/^([^\/]+:\/)?\/*$/)))return b;++T}return Array(T+1).join("../")+b.substr(v.length+1)}e.relative=c;var l=function(){var v=Object.create(null);return!("__proto__"in v)}();function u(v){return v}function d(v){return f(v)?"$"+v:v}e.toSetString=l?u:d;function h(v){return f(v)?v.slice(1):v}e.fromSetString=l?u:h;function f(v){if(!v)return!1;var b=v.length;if(b<9||v.charCodeAt(b-1)!==95||v.charCodeAt(b-2)!==95||v.charCodeAt(b-3)!==111||v.charCodeAt(b-4)!==116||v.charCodeAt(b-5)!==111||v.charCodeAt(b-6)!==114||v.charCodeAt(b-7)!==112||v.charCodeAt(b-8)!==95||v.charCodeAt(b-9)!==95)return!1;for(var T=b-10;T>=0;T--)if(v.charCodeAt(T)!==36)return!1;return!0}function p(v,b,T){var w=v.source-b.source;return w!==0||(w=v.originalLine-b.originalLine,w!==0)||(w=v.originalColumn-b.originalColumn,w!==0||T)||(w=v.generatedColumn-b.generatedColumn,w!==0)||(w=v.generatedLine-b.generatedLine,w!==0)?w:v.name-b.name}e.compareByOriginalPositions=p;function m(v,b,T){var w=v.generatedLine-b.generatedLine;return w!==0||(w=v.generatedColumn-b.generatedColumn,w!==0||T)||(w=v.source-b.source,w!==0)||(w=v.originalLine-b.originalLine,w!==0)||(w=v.originalColumn-b.originalColumn,w!==0)?w:v.name-b.name}e.compareByGeneratedPositionsDeflated=m;function _(v,b){return v===b?0:v>b?1:-1}function S(v,b){var T=v.generatedLine-b.generatedLine;return T!==0||(T=v.generatedColumn-b.generatedColumn,T!==0)||(T=_(v.source,b.source),T!==0)||(T=v.originalLine-b.originalLine,T!==0)||(T=v.originalColumn-b.originalColumn,T!==0)?T:_(v.name,b.name)}e.compareByGeneratedPositionsInflated=S}(Dc)),Dc}var Bc={},rp;function _T(){return rp||(rp=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,n,o,i,a,s){var c=Math.floor((n-r)/2)+r,l=a(o,i[c],!0);return l===0?c:l>0?n-c>1?t(c,n,o,i,a,s):s==e.LEAST_UPPER_BOUND?n<i.length?n:-1:c:c-r>1?t(r,c,o,i,a,s):s==e.LEAST_UPPER_BOUND?c:r<0?-1:r}e.search=function(n,o,i,a){if(o.length===0)return-1;var s=t(-1,o.length,n,o,i,a||e.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&i(o[s],o[s-1],!0)===0;)--s;return s}}(Bc)),Bc}var Uc={},np;function bT(){if(np)return Uc;np=1;var e=ey(),t=Object.prototype.hasOwnProperty;function r(){this._array=[],this._set=Object.create(null)}return r.fromArray=function(o,i){for(var a=new r,s=0,c=o.length;s<c;s++)a.add(o[s],i);return a},r.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(o,i){var a=e.toSetString(o),s=t.call(this._set,a),c=this._array.length;(!s||i)&&this._array.push(o),s||(this._set[a]=c)},r.prototype.has=function(o){var i=e.toSetString(o);return t.call(this._set,i)},r.prototype.indexOf=function(o){var i=e.toSetString(o);if(t.call(this._set,i))return this._set[i];throw new Error('"'+o+'" is not in the set.')},r.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},r.prototype.toArray=function(){return this._array.slice()},Uc.ArraySet=r,Uc}var Ta={},xa={},ip;function wT(){if(ip)return xa;ip=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return xa.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},xa.decode=function(t){var r=65,n=90,o=97,i=122,a=48,s=57,c=43,l=47,u=26,d=52;return r<=t&&t<=n?t-r:o<=t&&t<=i?t-o+u:a<=t&&t<=s?t-a+d:t==c?62:t==l?63:-1},xa}var op;function ST(){if(op)return Ta;op=1;var e=wT(),t=5,r=1<<t,n=r-1,o=r;function i(s){return s<0?(-s<<1)+1:(s<<1)+0}function a(s){var c=(s&1)===1,l=s>>1;return c?-l:l}return Ta.encode=function(c){var l="",u,d=i(c);do u=d&n,d>>>=t,d>0&&(u|=o),l+=e.encode(u);while(d>0);return l},Ta.decode=function(c,l,u){var d=c.length,h=0,f=0,p,m;do{if(l>=d)throw new Error("Expected more digits in base 64 VLQ value.");if(m=e.decode(c.charCodeAt(l++)),m===-1)throw new Error("Invalid base64 digit: "+c.charAt(l-1));p=!!(m&o),m&=n,h=h+(m<<f),f+=t}while(p);u.value=a(h),u.rest=l},Ta}var $c={},sp;function TT(){if(sp)return $c;sp=1;function e(n,o,i){var a=n[o];n[o]=n[i],n[i]=a}function t(n,o){return Math.round(n+Math.random()*(o-n))}function r(n,o,i,a){if(i<a){var s=t(i,a),c=i-1;e(n,s,a);for(var l=n[a],u=i;u<a;u++)o(n[u],l)<=0&&(c+=1,e(n,c,u));e(n,c+1,u);var d=c+1;r(n,o,i,d-1),r(n,o,d+1,a)}}return $c.quickSort=function(n,o){r(n,o,0,n.length-1)},$c}var ap;function xT(){if(ap)return es;ap=1;var e=ey(),t=_T(),r=bT().ArraySet,n=ST(),o=TT().quickSort;function i(l){var u=l;return typeof l=="string"&&(u=JSON.parse(l.replace(/^\)\]\}'/,""))),u.sections!=null?new c(u):new a(u)}i.fromSourceMap=function(l){return a.fromSourceMap(l)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(u,d){var h=u.charAt(d);return h===";"||h===","},i.prototype._parseMappings=function(u,d){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(u,d,h){var f=d||null,p=h||i.GENERATED_ORDER,m;switch(p){case i.GENERATED_ORDER:m=this._generatedMappings;break;case i.ORIGINAL_ORDER:m=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var _=this.sourceRoot;m.map(function(S){var v=S.source===null?null:this._sources.at(S.source);return v!=null&&_!=null&&(v=e.join(_,v)),{source:v,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,f)},i.prototype.allGeneratedPositionsFor=function(u){var d=e.getArg(u,"line"),h={source:e.getArg(u,"source"),originalLine:d,originalColumn:e.getArg(u,"column",0)};if(this.sourceRoot!=null&&(h.source=e.relative(this.sourceRoot,h.source)),!this._sources.has(h.source))return[];h.source=this._sources.indexOf(h.source);var f=[],p=this._findMapping(h,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var m=this._originalMappings[p];if(u.column===void 0)for(var _=m.originalLine;m&&m.originalLine===_;)f.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++p];else for(var S=m.originalColumn;m&&m.originalLine===d&&m.originalColumn==S;)f.push({line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++p]}return f},es.SourceMapConsumer=i;function a(l){var u=l;typeof l=="string"&&(u=JSON.parse(l.replace(/^\)\]\}'/,"")));var d=e.getArg(u,"version"),h=e.getArg(u,"sources"),f=e.getArg(u,"names",[]),p=e.getArg(u,"sourceRoot",null),m=e.getArg(u,"sourcesContent",null),_=e.getArg(u,"mappings"),S=e.getArg(u,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);h=h.map(String).map(e.normalize).map(function(v){return p&&e.isAbsolute(p)&&e.isAbsolute(v)?e.relative(p,v):v}),this._names=r.fromArray(f.map(String),!0),this._sources=r.fromArray(h,!0),this.sourceRoot=p,this.sourcesContent=m,this._mappings=_,this.file=S}a.prototype=Object.create(i.prototype),a.prototype.consumer=i,a.fromSourceMap=function(u){var d=Object.create(a.prototype),h=d._names=r.fromArray(u._names.toArray(),!0),f=d._sources=r.fromArray(u._sources.toArray(),!0);d.sourceRoot=u._sourceRoot,d.sourcesContent=u._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=u._file;for(var p=u._mappings.toArray().slice(),m=d.__generatedMappings=[],_=d.__originalMappings=[],S=0,v=p.length;S<v;S++){var b=p[S],T=new s;T.generatedLine=b.generatedLine,T.generatedColumn=b.generatedColumn,b.source&&(T.source=f.indexOf(b.source),T.originalLine=b.originalLine,T.originalColumn=b.originalColumn,b.name&&(T.name=h.indexOf(b.name)),_.push(T)),m.push(T)}return o(d.__originalMappings,e.compareByOriginalPositions),d},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._sources.toArray().map(function(l){return this.sourceRoot!=null?e.join(this.sourceRoot,l):l},this)}});function s(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(u,d){for(var h=1,f=0,p=0,m=0,_=0,S=0,v=u.length,b=0,T={},w={},N=[],R=[],L,$,G,q,H;b<v;)if(u.charAt(b)===";")h++,b++,f=0;else if(u.charAt(b)===",")b++;else{for(L=new s,L.generatedLine=h,q=b;q<v&&!this._charIsMappingSeparator(u,q);q++);if($=u.slice(b,q),G=T[$],G)b+=$.length;else{for(G=[];b<q;)n.decode(u,b,w),H=w.value,b=w.rest,G.push(H);if(G.length===2)throw new Error("Found a source, but no line and column");if(G.length===3)throw new Error("Found a source and line, but no column");T[$]=G}L.generatedColumn=f+G[0],f=L.generatedColumn,G.length>1&&(L.source=_+G[1],_+=G[1],L.originalLine=p+G[2],p=L.originalLine,L.originalLine+=1,L.originalColumn=m+G[3],m=L.originalColumn,G.length>4&&(L.name=S+G[4],S+=G[4])),R.push(L),typeof L.originalLine=="number"&&N.push(L)}o(R,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=R,o(N,e.compareByOriginalPositions),this.__originalMappings=N},a.prototype._findMapping=function(u,d,h,f,p,m){if(u[h]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+u[h]);if(u[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+u[f]);return t.search(u,d,p,m)},a.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var d=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var h=this._generatedMappings[u+1];if(d.generatedLine===h.generatedLine){d.lastGeneratedColumn=h.generatedColumn-1;continue}}d.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(u){var d={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},h=this._findMapping(d,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(h>=0){var f=this._generatedMappings[h];if(f.generatedLine===d.generatedLine){var p=e.getArg(f,"source",null);p!==null&&(p=this._sources.at(p),this.sourceRoot!=null&&(p=e.join(this.sourceRoot,p)));var m=e.getArg(f,"name",null);return m!==null&&(m=this._names.at(m)),{source:p,line:e.getArg(f,"originalLine",null),column:e.getArg(f,"originalColumn",null),name:m}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(u){return u==null}):!1},a.prototype.sourceContentFor=function(u,d){if(!this.sourcesContent)return null;if(this.sourceRoot!=null&&(u=e.relative(this.sourceRoot,u)),this._sources.has(u))return this.sourcesContent[this._sources.indexOf(u)];var h;if(this.sourceRoot!=null&&(h=e.urlParse(this.sourceRoot))){var f=u.replace(/^file:\/\//,"");if(h.scheme=="file"&&this._sources.has(f))return this.sourcesContent[this._sources.indexOf(f)];if((!h.path||h.path=="/")&&this._sources.has("/"+u))return this.sourcesContent[this._sources.indexOf("/"+u)]}if(d)return null;throw new Error('"'+u+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(u){var d=e.getArg(u,"source");if(this.sourceRoot!=null&&(d=e.relative(this.sourceRoot,d)),!this._sources.has(d))return{line:null,column:null,lastColumn:null};d=this._sources.indexOf(d);var h={source:d,originalLine:e.getArg(u,"line"),originalColumn:e.getArg(u,"column")},f=this._findMapping(h,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(f>=0){var p=this._originalMappings[f];if(p.source===h.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},es.BasicSourceMapConsumer=a;function c(l){var u=l;typeof l=="string"&&(u=JSON.parse(l.replace(/^\)\]\}'/,"")));var d=e.getArg(u,"version"),h=e.getArg(u,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new r,this._names=new r;var f={line:-1,column:0};this._sections=h.map(function(p){if(p.url)throw new Error("Support for url field in sections not implemented.");var m=e.getArg(p,"offset"),_=e.getArg(m,"line"),S=e.getArg(m,"column");if(_<f.line||_===f.line&&S<f.column)throw new Error("Section offsets must be ordered and non-overlapping.");return f=m,{generatedOffset:{generatedLine:_+1,generatedColumn:S+1},consumer:new i(e.getArg(p,"map"))}})}return c.prototype=Object.create(i.prototype),c.prototype.constructor=i,c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){for(var l=[],u=0;u<this._sections.length;u++)for(var d=0;d<this._sections[u].consumer.sources.length;d++)l.push(this._sections[u].consumer.sources[d]);return l}}),c.prototype.originalPositionFor=function(u){var d={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},h=t.search(d,this._sections,function(p,m){var _=p.generatedLine-m.generatedOffset.generatedLine;return _||p.generatedColumn-m.generatedOffset.generatedColumn}),f=this._sections[h];return f?f.consumer.originalPositionFor({line:d.generatedLine-(f.generatedOffset.generatedLine-1),column:d.generatedColumn-(f.generatedOffset.generatedLine===d.generatedLine?f.generatedOffset.generatedColumn-1:0),bias:u.bias}):{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(u){return u.consumer.hasContentsOfAllSources()})},c.prototype.sourceContentFor=function(u,d){for(var h=0;h<this._sections.length;h++){var f=this._sections[h],p=f.consumer.sourceContentFor(u,!0);if(p)return p}if(d)return null;throw new Error('"'+u+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(u){for(var d=0;d<this._sections.length;d++){var h=this._sections[d];if(h.consumer.sources.indexOf(e.getArg(u,"source"))!==-1){var f=h.consumer.generatedPositionFor(u);if(f){var p={line:f.line+(h.generatedOffset.generatedLine-1),column:f.column+(h.generatedOffset.generatedLine===f.line?h.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},c.prototype._parseMappings=function(u,d){this.__generatedMappings=[],this.__originalMappings=[];for(var h=0;h<this._sections.length;h++)for(var f=this._sections[h],p=f.consumer._generatedMappings,m=0;m<p.length;m++){var _=p[m],S=f.consumer._sources.at(_.source);f.consumer.sourceRoot!==null&&(S=e.join(f.consumer.sourceRoot,S)),this._sources.add(S),S=this._sources.indexOf(S);var v=f.consumer._names.at(_.name);this._names.add(v),v=this._names.indexOf(v);var b={source:S,generatedLine:_.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:_.generatedColumn+(f.generatedOffset.generatedLine===_.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:_.originalLine,originalColumn:_.originalColumn,name:v};this.__generatedMappings.push(b),typeof b.originalLine=="number"&&this.__originalMappings.push(b)}o(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),o(this.__originalMappings,e.compareByOriginalPositions)},es.IndexedSourceMapConsumer=c,es}var up;function OT(){return up||(up=1,function(e,t){(function(r,n){e.exports=n(xT(),Mf())})(fe,function(r,n){function o(h){return new Promise(function(f,p){var m=new XMLHttpRequest;m.open("get",h),m.onerror=p,m.onreadystatechange=function(){m.readyState===4&&(m.status>=200&&m.status<300||h.substr(0,7)==="file://"&&m.responseText?f(m.responseText):p(new Error("HTTP status: "+m.status+" retrieving "+h)))},m.send()})}function i(h){if(typeof window<"u"&&window.atob)return window.atob(h);throw new Error("You must supply a polyfill for window.atob in this environment")}function a(h){if(typeof JSON<"u"&&JSON.parse)return JSON.parse(h);throw new Error("You must supply a polyfill for JSON.parse in this environment")}function s(h,f){for(var p=[/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/,/function\s+([^('"`]*?)\s*\(([^)]*)\)/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/,/\b(?!(?:if|for|switch|while|with|catch)\b)(?:(?:static)\s+)?(\S+)\s*\(.*?\)\s*\{/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*\(.*?\)\s*=>/],m=h.split(`
|
|
43
|
+
`),_="",S=Math.min(f,20),v=0;v<S;++v){var b=m[f-v-1],T=b.indexOf("//");if(T>=0&&(b=b.substr(0,T)),b){_=b+_;for(var w=p.length,N=0;N<w;N++){var R=p[N].exec(_);if(R&&R[1])return R[1]}}}}function c(){if(typeof Object.defineProperty!="function"||typeof Object.create!="function")throw new Error("Unable to consume source maps in older browsers")}function l(h){if(typeof h!="object")throw new TypeError("Given StackFrame is not an object");if(typeof h.fileName!="string")throw new TypeError("Given file name is not a String");if(typeof h.lineNumber!="number"||h.lineNumber%1!==0||h.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if(typeof h.columnNumber!="number"||h.columnNumber%1!==0||h.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}function u(h){for(var f=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/mg,p,m;m=f.exec(h);)p=m[1];if(p)return p;throw new Error("sourceMappingURL not found")}function d(h,f,p){return new Promise(function(m,_){var S=f.originalPositionFor({line:h.lineNumber,column:h.columnNumber});if(S.source){var v=f.sourceContentFor(S.source);v&&(p[S.source]=v),m(new n({functionName:S.name||h.functionName,args:h.args,fileName:S.source,lineNumber:S.line,columnNumber:S.column}))}else _(new Error("Could not get original source for given stackframe and source map"))})}return function h(f){if(!(this instanceof h))return new h(f);f=f||{},this.sourceCache=f.sourceCache||{},this.sourceMapConsumerCache=f.sourceMapConsumerCache||{},this.ajax=f.ajax||o,this._atob=f.atob||i,this._get=function(m){return new Promise((function(_,S){var v=m.substr(0,5)==="data:";if(this.sourceCache[m])_(this.sourceCache[m]);else if(f.offline&&!v)S(new Error("Cannot make network requests in offline mode"));else if(v){var b=/^data:application\/json;([\w=:"-]+;)*base64,/,T=m.match(b);if(T){var w=T[0].length,N=m.substr(w),R=this._atob(N);this.sourceCache[m]=R,_(R)}else S(new Error("The encoding of the inline sourcemap is not supported"))}else{var L=this.ajax(m,{method:"get"});this.sourceCache[m]=L,L.then(_,S)}}).bind(this))},this._getSourceMapConsumer=function(m,_){return new Promise((function(S){if(this.sourceMapConsumerCache[m])S(this.sourceMapConsumerCache[m]);else{var v=new Promise((function(b,T){return this._get(m).then(function(w){typeof w=="string"&&(w=a(w.replace(/^\)\]\}'/,""))),typeof w.sourceRoot>"u"&&(w.sourceRoot=_),b(new r.SourceMapConsumer(w))}).catch(T)}).bind(this));this.sourceMapConsumerCache[m]=v,S(v)}}).bind(this))},this.pinpoint=function(m){return new Promise((function(_,S){this.getMappedLocation(m).then((function(v){function b(){_(v)}this.findFunctionName(v).then(_,b).catch(b)}).bind(this),S)}).bind(this))},this.findFunctionName=function(m){return new Promise((function(_,S){l(m),this._get(m.fileName).then(function(b){var T=m.lineNumber,w=m.columnNumber,N=s(b,T);_(N?new n({functionName:N,args:m.args,fileName:m.fileName,lineNumber:T,columnNumber:w}):m)},S).catch(S)}).bind(this))},this.getMappedLocation=function(m){return new Promise((function(_,S){c(),l(m);var v=this.sourceCache,b=m.fileName;this._get(b).then((function(T){var w=u(T),N=w.substr(0,5)==="data:",R=b.substring(0,b.lastIndexOf("/")+1);return w[0]!=="/"&&!N&&!/^https?:\/\/|^\/\//i.test(w)&&(w=R+w),this._getSourceMapConsumer(w,R).then(function(L){return d(m,L,v).then(_).catch(function(){_(m)})})}).bind(this),S).catch(S)}).bind(this))}}})}(Fc)),Fc.exports}var cp;function AT(){return cp||(cp=1,function(e,t){(function(r,n){e.exports=n(vT(),ET(),OT())})(fe,function(n,o,i){var a={filter:function(d){return(d.functionName||"").indexOf("StackTrace$$")===-1&&(d.functionName||"").indexOf("ErrorStackParser$$")===-1&&(d.functionName||"").indexOf("StackTraceGPS$$")===-1&&(d.functionName||"").indexOf("StackGenerator$$")===-1},sourceCache:{}},s=function(){try{throw new Error}catch(h){return h}};function c(d,h){var f={};return[d,h].forEach(function(p){for(var m in p)Object.prototype.hasOwnProperty.call(p,m)&&(f[m]=p[m]);return f}),f}function l(d){return d.stack||d["opera#sourceloc"]}function u(d,h){return typeof h=="function"?d.filter(h):d}return{get:function(h){var f=s();return l(f)?this.fromError(f,h):this.generateArtificially(h)},getSync:function(h){h=c(a,h);var f=s(),p=l(f)?n.parse(f):o.backtrace(h);return u(p,h.filter)},fromError:function(h,f){f=c(a,f);var p=new i(f);return new Promise((function(m){var _=u(n.parse(h),f.filter);m(Promise.all(_.map(function(S){return new Promise(function(v){function b(){v(S)}p.pinpoint(S).then(v,b).catch(b)})})))}).bind(this))},generateArtificially:function(h){h=c(a,h);var f=o.backtrace(h);return typeof h.filter=="function"&&(f=f.filter(h.filter)),Promise.resolve(f)},instrument:function(h,f,p,m){if(typeof h!="function")throw new Error("Cannot instrument non-function object");if(typeof h.__stacktraceOriginalFn=="function")return h;var _=(function(){try{return this.get().then(f,p).catch(p),h.apply(m||this,arguments)}catch(v){throw l(v)&&this.fromError(v).then(f,p).catch(p),v}}).bind(this);return _.__stacktraceOriginalFn=h,_},deinstrument:function(h){if(typeof h!="function")throw new Error("Cannot de-instrument non-function object");return typeof h.__stacktraceOriginalFn=="function"?h.__stacktraceOriginalFn:h},report:function(h,f,p,m){return new Promise(function(_,S){var v=new XMLHttpRequest;if(v.onerror=S,v.onreadystatechange=function(){v.readyState===4&&(v.status>=200&&v.status<400?_(v.responseText):S(new Error("POST to "+f+" failed with status: "+v.status)))},v.open("post",f),v.setRequestHeader("Content-Type","application/json"),m&&typeof m.headers=="object"){var b=m.headers;for(var T in b)Object.prototype.hasOwnProperty.call(b,T)&&v.setRequestHeader(T,b[T])}var w={stack:h};p!=null&&(w.message=p),v.send(JSON.stringify(w))})}}})}(Ic)),Ic.exports}var jc,lp;function CT(){if(lp)return jc;lp=1;var e=AT(),t="https://clouderrorreporting.googleapis.com/v1beta1/projects/",r=function(){};r.prototype.start=function(a){if(!a.key&&!a.targetUrl&&!a.customReportingFunction)throw new Error("Cannot initialize: No API key, target url or custom reporting function provided.");if(!a.projectId&&!a.targetUrl&&!a.customReportingFunction)throw new Error("Cannot initialize: No project ID, target url or custom reporting function provided.");this.customReportingFunction=a.customReportingFunction,this.apiKey=a.key,this.projectId=a.projectId,this.targetUrl=a.targetUrl,this.context=a.context||{},this.serviceContext={service:a.service||"web"},a.version&&(this.serviceContext.version=a.version),this.reportUncaughtExceptions=a.reportUncaughtExceptions!==!1,this.reportUnhandledPromiseRejections=a.reportUnhandledPromiseRejections!==!1,this.disabled=!!a.disabled,n(this)};function n(a){var s=function(){};if(a.reportUncaughtExceptions){var c=window.onerror||s;window.onerror=function(u,d,h,f,p){return p&&a.report(p).catch(s),c(u,d,h,f,p),!0}}if(a.reportUnhandledPromiseRejections){var l=window.onunhandledrejection||s;window.onunhandledrejection=function(u){return u&&a.report(u.reason).catch(s),l(u.reason),!0}}}r.prototype.report=function(a,s){if(this.disabled)return Promise.resolve(null);if(!a)return Promise.reject(new Error("no error to report"));s=s||{};var c={};c.serviceContext=this.serviceContext,c.context=this.context,c.context.httpRequest={userAgent:window.navigator.userAgent,url:window.location.href};var l=0;if(typeof a=="string"||a instanceof String){try{throw new Error(a)}catch(h){a=h}l=s.skipLocalFrames||1}var u=this.targetUrl||t+this.projectId+"/events:report?key="+this.apiKey,d=this.customReportingFunction;return o(a,l).then(function(h){return c.message=h,d?d(c):i(u,c)})};function o(a,s){return e.fromError(a).then(function(c){for(var l=[a.toString()],u=s;u<c.length;u++)l.push([" at ",c[u].getFunctionName()||"<anonymous>"," (",c[u].getFileName(),":",c[u].getLineNumber(),":",c[u].getColumnNumber(),")"].join(""));return l.join(`
|
|
44
|
+
`)},function(c){return["Error extracting stack trace: ",c,`
|
|
45
|
+
`,a.toString(),`
|
|
46
|
+
`," (",a.file,":",a.line,":",a.column,")"].join("")})}function i(a,s){var c=new XMLHttpRequest;return c.open("POST",a,!0),c.setRequestHeader("Content-Type","application/json; charset=UTF-8"),new Promise(function(l,u){c.onreadystatechange=function(){if(c.readyState===4){var d=c.status;if(d>=200&&d<300)l({message:s.message});else if(d===429)u({message:"quota or rate limiting error on stackdriver report",name:"Http429FakeError"});else{var h=d?d+" http response":"network error";u(new Error(h+" on stackdriver report"))}}},c.send(JSON.stringify(s))})}return r.prototype.setUser=function(a){this.context.user=a},jc=r,jc}var fp;function RT(){return fp||(fp=1,function(e,t){(function(r,n){e.exports=n(CT())})(fe,function(r){return function(){var n={542:function(s){s.exports=r}},o={};function i(s){var c=o[s];if(c!==void 0)return c.exports;var l=o[s]={exports:{}};return n[s](l,l.exports,i),l.exports}i.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(c,{a:c}),c},i.d=function(s,c){for(var l in c)i.o(c,l)&&!i.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:c[l]})},i.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return function(){i.r(a),i.d(a,{reportError:function(){return h},setContext:function(){return d}});var s=i(542),c=i.n(s);const{GCP:{PROJECT_ID:l}}={GCP:{PROJECT_ID:"hazel-tea-194609"}};let u={key:null,environment:null,projectId:l};const d=({apiKey:f,environment:p,projectId:m,serviceName:_})=>{if(!f)throw new Error("Cannot set context: REACT_APP_GCP_ERRORS_API_KEY not defined");if(u.key=f,!p)throw new Error("Cannot set context: Environment not defined");u.environment=p,u.projectId=m||l,_&&(u.service=`${_}:${u.environment}`)},h=async(f,p)=>{try{const m=new(c());m.start(u),typeof p=="string"&&m.setUser(p),await m.report(f)}catch(m){console.warn(`Cannot report error: ${m.message}`)}}}(),a}()})}(Nc)),Nc.exports}var Hc={exports:{}},Oa={},hp;function PT(){if(hp)return Oa;hp=1,Object.defineProperty(Oa,"__esModule",{value:!0});var e=function(r){console.warn("[react-gtm]",r)};return Oa.default=e,Oa}var qc,dp;function NT(){if(dp)return qc;dp=1;var e=PT(),t=r(e);function r(o){return o&&o.__esModule?o:{default:o}}var n={tags:function(i){var a=i.id,s=i.events,c=i.dataLayer,l=i.dataLayerName,u=i.preview,d=i.auth,h=">m_auth="+d,f=">m_preview="+u;a||(0,t.default)("GTM Id is required");var p=`
|
|
47
|
+
<iframe src="https://www.googletagmanager.com/ns.html?id=`+a+h+f+`>m_cookies_win=x"
|
|
48
|
+
height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>`,m=`
|
|
49
|
+
(function(w,d,s,l,i){w[l]=w[l]||[];
|
|
50
|
+
w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', `+JSON.stringify(s).slice(1,-1)+`});
|
|
51
|
+
var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';
|
|
52
|
+
j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'`+h+f+`>m_cookies_win=x';
|
|
53
|
+
f.parentNode.insertBefore(j,f);
|
|
54
|
+
})(window,document,'script','`+l+"','"+a+"');",_=this.dataLayer(c,l);return{iframe:p,script:m,dataLayerVar:_}},dataLayer:function(i,a){return`
|
|
55
|
+
window.`+a+" = window."+a+` || [];
|
|
56
|
+
window.`+a+".push("+JSON.stringify(i)+")"}};return qc=n,qc}var Gc,pp;function IT(){if(pp)return Gc;pp=1;var e=NT(),t=r(e);function r(o){return o&&o.__esModule?o:{default:o}}var n={dataScript:function(i){var a=document.createElement("script");return a.innerHTML=i,a},gtm:function(i){var a=t.default.tags(i),s=function(){var d=document.createElement("noscript");return d.innerHTML=a.iframe,d},c=function(){var d=document.createElement("script");return d.innerHTML=a.script,d},l=this.dataScript(a.dataLayerVar);return{noScript:s,script:c,dataScript:l}},initialize:function(i){var a=i.gtmId,s=i.events,c=s===void 0?{}:s,l=i.dataLayer,u=i.dataLayerName,d=u===void 0?"dataLayer":u,h=i.auth,f=h===void 0?"":h,p=i.preview,m=p===void 0?"":p,_=this.gtm({id:a,events:c,dataLayer:l||void 0,dataLayerName:d,auth:f,preview:m});l&&document.head.appendChild(_.dataScript),document.head.insertBefore(_.script(),document.head.childNodes[0]),document.body.insertBefore(_.noScript(),document.body.childNodes[0])},dataLayer:function(i){var a=i.dataLayer,s=i.dataLayerName,c=s===void 0?"dataLayer":s;if(window[c])return window[c].push(a);var l=t.default.dataLayer(a,c),u=this.dataScript(l);document.head.insertBefore(u,document.head.childNodes[0])}};return Gc=n,Gc}var Vc,mp;function LT(){if(mp)return Vc;mp=1;var e=IT(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return Vc=t.default,Vc}var gp;function kT(){return gp||(gp=1,function(e,t){(function(r,n){e.exports=n(LT())})(fe,function(r){return function(){var n={273:function(s){s.exports=r}},o={};function i(s){var c=o[s];if(c!==void 0)return c.exports;var l=o[s]={exports:{}};return n[s](l,l.exports,i),l.exports}i.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(c,{a:c}),c},i.d=function(s,c){for(var l in c)i.o(c,l)&&!i.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:c[l]})},i.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return function(){i.r(a),i.d(a,{setContext:function(){return u},setupGTM:function(){return h}});var s=i(273),c=i.n(s);let l=null;const u=({configs:f,environment:p})=>{if(!p)throw new Error("Cannot set context: Environment not defined");if(!f)throw new Error("Cannot set context: REACT_APP_GTM_ID not defined");if(!f[p])throw new Error(`Cannot set context: REACT_APP_GTM_ID not defined for environment - ${JSON.stringify({configs:f,environment:p})}`);l=f[p]},d=()=>l,h=()=>{const f=d();c().initialize({gtmId:f.id})}}(),a}()})}(Hc)),Hc.exports}var ty=202,ry=502,ny=400,iy=409,oy=100,sy=201,ay=417,MT=424,uy=403,cy=504,ly=410,fy=505,hy=418,dy=419,py=507,my=500,gy=411,yy=423,vy=420,Ey=405,_y=301,by=302,wy=207,Sy=300,Ty=511,xy=204,Oy=203,Ay=406,Cy=404,Ry=501,Py=304,Ny=200,Iy=206,Ly=402,ky=308,My=412,Fy=428,Dy=102,By=407,Uy=431,$y=408,jy=413,Hy=414,qy=416,Gy=205,Vy=303,Wy=503,zy=101,Qy=307,Yy=429,Ky=401,Xy=422,Jy=415,Zy=305;const FT={ACCEPTED:ty,BAD_GATEWAY:ry,BAD_REQUEST:ny,CONFLICT:iy,CONTINUE:oy,CREATED:sy,EXPECTATION_FAILED:ay,FORBIDDEN:uy,GATEWAY_TIMEOUT:cy,GONE:ly,HTTP_VERSION_NOT_SUPPORTED:fy,IM_A_TEAPOT:hy,INSUFFICIENT_SPACE_ON_RESOURCE:dy,INSUFFICIENT_STORAGE:py,INTERNAL_SERVER_ERROR:my,LENGTH_REQUIRED:gy,LOCKED:yy,METHOD_FAILURE:vy,METHOD_NOT_ALLOWED:Ey,MOVED_PERMANENTLY:_y,MOVED_TEMPORARILY:by,MULTI_STATUS:wy,MULTIPLE_CHOICES:Sy,NETWORK_AUTHENTICATION_REQUIRED:Ty,NO_CONTENT:xy,NON_AUTHORITATIVE_INFORMATION:Oy,NOT_ACCEPTABLE:Ay,NOT_FOUND:Cy,NOT_IMPLEMENTED:Ry,NOT_MODIFIED:Py,OK:Ny,PARTIAL_CONTENT:Iy,PAYMENT_REQUIRED:Ly,PERMANENT_REDIRECT:ky,PRECONDITION_FAILED:My,PRECONDITION_REQUIRED:Fy,PROCESSING:Dy,PROXY_AUTHENTICATION_REQUIRED:By,REQUEST_HEADER_FIELDS_TOO_LARGE:Uy,REQUEST_TIMEOUT:$y,REQUEST_TOO_LONG:jy,REQUEST_URI_TOO_LONG:Hy,REQUESTED_RANGE_NOT_SATISFIABLE:qy,RESET_CONTENT:Gy,SEE_OTHER:Vy,SERVICE_UNAVAILABLE:Wy,SWITCHING_PROTOCOLS:zy,TEMPORARY_REDIRECT:Qy,TOO_MANY_REQUESTS:Yy,UNAUTHORIZED:Ky,UNPROCESSABLE_ENTITY:Xy,UNSUPPORTED_MEDIA_TYPE:Jy,USE_PROXY:Zy};var DT={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"},BT={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 ev(e){var t=DT[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}function tv(e){var t=BT[e];if(!t)throw new Error("Reason phrase does not exist: "+e);return t}var rv=ev,Ul;(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"})(Ul||(Ul={}));var $l;(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"})($l||($l={}));var Ya=globalThis&&globalThis.__assign||function(){return Ya=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},Ya.apply(this,arguments)};const UT=Ya(Ya({},FT),{getStatusCode:tv,getStatusText:rv}),$T=Object.freeze(Object.defineProperty({__proto__:null,ACCEPTED:ty,BAD_GATEWAY:ry,BAD_REQUEST:ny,CONFLICT:iy,CONTINUE:oy,CREATED:sy,EXPECTATION_FAILED:ay,FAILED_DEPENDENCY:MT,FORBIDDEN:uy,GATEWAY_TIMEOUT:cy,GONE:ly,HTTP_VERSION_NOT_SUPPORTED:fy,IM_A_TEAPOT:hy,INSUFFICIENT_SPACE_ON_RESOURCE:dy,INSUFFICIENT_STORAGE:py,INTERNAL_SERVER_ERROR:my,LENGTH_REQUIRED:gy,LOCKED:yy,METHOD_FAILURE:vy,METHOD_NOT_ALLOWED:Ey,MOVED_PERMANENTLY:_y,MOVED_TEMPORARILY:by,MULTIPLE_CHOICES:Sy,MULTI_STATUS:wy,NETWORK_AUTHENTICATION_REQUIRED:Ty,NON_AUTHORITATIVE_INFORMATION:Oy,NOT_ACCEPTABLE:Ay,NOT_FOUND:Cy,NOT_IMPLEMENTED:Ry,NOT_MODIFIED:Py,NO_CONTENT:xy,OK:Ny,PARTIAL_CONTENT:Iy,PAYMENT_REQUIRED:Ly,PERMANENT_REDIRECT:ky,PRECONDITION_FAILED:My,PRECONDITION_REQUIRED:Fy,PROCESSING:Dy,PROXY_AUTHENTICATION_REQUIRED:By,REQUESTED_RANGE_NOT_SATISFIABLE:qy,REQUEST_HEADER_FIELDS_TOO_LARGE:Uy,REQUEST_TIMEOUT:$y,REQUEST_TOO_LONG:jy,REQUEST_URI_TOO_LONG:Hy,RESET_CONTENT:Gy,get ReasonPhrases(){return $l},SEE_OTHER:Vy,SERVICE_UNAVAILABLE:Wy,SWITCHING_PROTOCOLS:zy,get StatusCodes(){return Ul},TEMPORARY_REDIRECT:Qy,TOO_MANY_REQUESTS:Yy,UNAUTHORIZED:Ky,UNPROCESSABLE_ENTITY:Xy,UNSUPPORTED_MEDIA_TYPE:Jy,USE_PROXY:Zy,default:UT,getReasonPhrase:ev,getStatusCode:tv,getStatusText:rv},Symbol.toStringTag,{value:"Module"})),jT=Xs($T);var Aa={exports:{}},ts={},Wc={},rs={},ns={},kn={},is={},zc={},Mn={},Rr={},yp;function Ff(){if(yp)return Rr;yp=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.ERROR_PACKET=Rr.PACKET_TYPES_REVERSE=Rr.PACKET_TYPES=void 0;const e=Object.create(null);Rr.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);Rr.PACKET_TYPES_REVERSE=t,Object.keys(e).forEach(n=>{t[e[n]]=n});const r={type:"error",data:"parser error"};return Rr.ERROR_PACKET=r,Rr}var vp;function HT(){if(vp)return Mn;vp=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.encodePacket=Mn.encodePacketToBinary=void 0;const e=Ff(),t=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",r=typeof ArrayBuffer=="function",n=l=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer,o=({type:l,data:u},d,h)=>t&&u instanceof Blob?d?h(u):i(u,h):r&&(u instanceof ArrayBuffer||n(u))?d?h(u):i(new Blob([u]),h):h(e.PACKET_TYPES[l]+(u||""));Mn.encodePacket=o;const i=(l,u)=>{const d=new FileReader;return d.onload=function(){const h=d.result.split(",")[1];u("b"+(h||""))},d.readAsDataURL(l)};function a(l){return l instanceof Uint8Array?l:l instanceof ArrayBuffer?new Uint8Array(l):new Uint8Array(l.buffer,l.byteOffset,l.byteLength)}let s;function c(l,u){if(t&&l.data instanceof Blob)return l.data.arrayBuffer().then(a).then(u);if(r&&(l.data instanceof ArrayBuffer||n(l.data)))return u(a(l.data));o(l,!1,d=>{s||(s=new TextEncoder),u(s.encode(d))})}return Mn.encodePacketToBinary=c,Mn}var os={},Fn={},Ep;function qT(){if(Ep)return Fn;Ep=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.decode=Fn.encode=void 0;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let o=0;o<e.length;o++)t[e.charCodeAt(o)]=o;const r=o=>{let i=new Uint8Array(o),a,s=i.length,c="";for(a=0;a<s;a+=3)c+=e[i[a]>>2],c+=e[(i[a]&3)<<4|i[a+1]>>4],c+=e[(i[a+1]&15)<<2|i[a+2]>>6],c+=e[i[a+2]&63];return s%3===2?c=c.substring(0,c.length-1)+"=":s%3===1&&(c=c.substring(0,c.length-2)+"=="),c};Fn.encode=r;const n=o=>{let i=o.length*.75,a=o.length,s,c=0,l,u,d,h;o[o.length-1]==="="&&(i--,o[o.length-2]==="="&&i--);const f=new ArrayBuffer(i),p=new Uint8Array(f);for(s=0;s<a;s+=4)l=t[o.charCodeAt(s)],u=t[o.charCodeAt(s+1)],d=t[o.charCodeAt(s+2)],h=t[o.charCodeAt(s+3)],p[c++]=l<<2|u>>4,p[c++]=(u&15)<<4|d>>2,p[c++]=(d&3)<<6|h&63;return f};return Fn.decode=n,Fn}var _p;function GT(){if(_p)return os;_p=1,Object.defineProperty(os,"__esModule",{value:!0}),os.decodePacket=void 0;const e=Ff(),t=qT(),r=typeof ArrayBuffer=="function",n=(a,s)=>{if(typeof a!="string")return{type:"message",data:i(a,s)};const c=a.charAt(0);return c==="b"?{type:"message",data:o(a.substring(1),s)}:e.PACKET_TYPES_REVERSE[c]?a.length>1?{type:e.PACKET_TYPES_REVERSE[c],data:a.substring(1)}:{type:e.PACKET_TYPES_REVERSE[c]}:e.ERROR_PACKET};os.decodePacket=n;const o=(a,s)=>{if(r){const c=(0,t.decode)(a);return i(c,s)}else return{base64:!0,data:a}},i=(a,s)=>{switch(s){case"blob":return a instanceof Blob?a:new Blob([a]);case"arraybuffer":default:return a instanceof ArrayBuffer?a:a.buffer}};return os}var bp;function Zs(){return bp||(bp=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=HT();Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return t.encodePacket}});const r=GT();Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return r.decodePacket}});const n=Ff(),o=String.fromCharCode(30),i=(h,f)=>{const p=h.length,m=new Array(p);let _=0;h.forEach((S,v)=>{(0,t.encodePacket)(S,!1,b=>{m[v]=b,++_===p&&f(m.join(o))})})};e.encodePayload=i;const a=(h,f)=>{const p=h.split(o),m=[];for(let _=0;_<p.length;_++){const S=(0,r.decodePacket)(p[_],f);if(m.push(S),S.type==="error")break}return m};e.decodePayload=a;function s(){return new TransformStream({transform(h,f){(0,t.encodePacketToBinary)(h,p=>{const m=p.length;let _;if(m<126)_=new Uint8Array(1),new DataView(_.buffer).setUint8(0,m);else if(m<65536){_=new Uint8Array(3);const S=new DataView(_.buffer);S.setUint8(0,126),S.setUint16(1,m)}else{_=new Uint8Array(9);const S=new DataView(_.buffer);S.setUint8(0,127),S.setBigUint64(1,BigInt(m))}h.data&&typeof h.data!="string"&&(_[0]|=128),f.enqueue(_),f.enqueue(p)})}})}e.createPacketEncoderStream=s;let c;function l(h){return h.reduce((f,p)=>f+p.length,0)}function u(h,f){if(h[0].length===f)return h.shift();const p=new Uint8Array(f);let m=0;for(let _=0;_<f;_++)p[_]=h[0][m++],m===h[0].length&&(h.shift(),m=0);return h.length&&m<h[0].length&&(h[0]=h[0].slice(m)),p}function d(h,f){c||(c=new TextDecoder);const p=[];let m=0,_=-1,S=!1;return new TransformStream({transform(v,b){for(p.push(v);;){if(m===0){if(l(p)<1)break;const T=u(p,1);S=(T[0]&128)===128,_=T[0]&127,_<126?m=3:_===126?m=1:m=2}else if(m===1){if(l(p)<2)break;const T=u(p,2);_=new DataView(T.buffer,T.byteOffset,T.length).getUint16(0),m=3}else if(m===2){if(l(p)<8)break;const T=u(p,8),w=new DataView(T.buffer,T.byteOffset,T.length),N=w.getUint32(0);if(N>Math.pow(2,53-32)-1){b.enqueue(n.ERROR_PACKET);break}_=N*Math.pow(2,32)+w.getUint32(4),m=3}else{if(l(p)<_)break;const T=u(p,_);b.enqueue((0,r.decodePacket)(S?T:c.decode(T),f)),m=0}if(_===0||_>h){b.enqueue(n.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=d,e.protocol=4}(zc)),zc}function wt(e){if(e)return VT(e)}function VT(e){for(var t in wt.prototype)e[t]=wt.prototype[t];return e}wt.prototype.on=wt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};wt.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};wt.prototype.off=wt.prototype.removeListener=wt.prototype.removeAllListeners=wt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};wt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};wt.prototype.emitReserved=wt.prototype.emit;wt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};wt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const WT=Object.freeze(Object.defineProperty({__proto__:null,Emitter:wt},Symbol.toStringTag,{value:"Module"})),fo=Xs(WT);var Pr={},ss={},wp;function mu(){return wp||(wp=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.globalThisShim=void 0,ss.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())()),ss}var Sp;function ea(){if(Sp)return Pr;Sp=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.byteLength=Pr.installTimerFunctions=Pr.pick=void 0;const e=mu();function t(c,...l){return l.reduce((u,d)=>(c.hasOwnProperty(d)&&(u[d]=c[d]),u),{})}Pr.pick=t;const r=e.globalThisShim.setTimeout,n=e.globalThisShim.clearTimeout;function o(c,l){l.useNativeTimers?(c.setTimeoutFn=r.bind(e.globalThisShim),c.clearTimeoutFn=n.bind(e.globalThisShim)):(c.setTimeoutFn=e.globalThisShim.setTimeout.bind(e.globalThisShim),c.clearTimeoutFn=e.globalThisShim.clearTimeout.bind(e.globalThisShim))}Pr.installTimerFunctions=o;const i=1.33;function a(c){return typeof c=="string"?s(c):Math.ceil((c.byteLength||c.size)*i)}Pr.byteLength=a;function s(c){let l=0,u=0;for(let d=0,h=c.length;d<h;d++)l=c.charCodeAt(d),l<128?u+=1:l<2048?u+=2:l<55296||l>=57344?u+=3:(d++,u+=4);return u}return Pr}var Ca={exports:{}},Qc,Tp;function zT(){if(Tp)return Qc;Tp=1;var e=1e3,t=e*60,r=t*60,n=r*24,o=n*7,i=n*365.25;Qc=function(u,d){d=d||{};var h=typeof u;if(h==="string"&&u.length>0)return a(u);if(h==="number"&&isFinite(u))return d.long?c(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function a(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var h=parseFloat(d[1]),f=(d[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return h*i;case"weeks":case"week":case"w":return h*o;case"days":case"day":case"d":return h*n;case"hours":case"hour":case"hrs":case"hr":case"h":return h*r;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function s(u){var d=Math.abs(u);return d>=n?Math.round(u/n)+"d":d>=r?Math.round(u/r)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function c(u){var d=Math.abs(u);return d>=n?l(u,d,n,"day"):d>=r?l(u,d,r,"hour"):d>=t?l(u,d,t,"minute"):d>=e?l(u,d,e,"second"):u+" ms"}function l(u,d,h,f){var p=d>=h*1.5;return Math.round(u/h)+" "+f+(p?"s":"")}return Qc}var Yc,xp;function QT(){if(xp)return Yc;xp=1;function e(t){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=s,n.humanize=zT(),n.destroy=u,Object.keys(t).forEach(d=>{n[d]=t[d]}),n.names=[],n.skips=[],n.formatters={};function r(d){let h=0;for(let f=0;f<d.length;f++)h=(h<<5)-h+d.charCodeAt(f),h|=0;return n.colors[Math.abs(h)%n.colors.length]}n.selectColor=r;function n(d){let h,f=null,p,m;function _(...S){if(!_.enabled)return;const v=_,b=Number(new Date),T=b-(h||b);v.diff=T,v.prev=h,v.curr=b,h=b,S[0]=n.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let w=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(R,L)=>{if(R==="%%")return"%";w++;const $=n.formatters[L];if(typeof $=="function"){const G=S[w];R=$.call(v,G),S.splice(w,1),w--}return R}),n.formatArgs.call(v,S),(v.log||n.log).apply(v,S)}return _.namespace=d,_.useColors=n.useColors(),_.color=n.selectColor(d),_.extend=o,_.destroy=n.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==n.namespaces&&(p=n.namespaces,m=n.enabled(d)),m),set:S=>{f=S}}),typeof n.init=="function"&&n.init(_),_}function o(d,h){const f=n(this.namespace+(typeof h>"u"?":":h)+d);return f.log=this.log,f}function i(d){n.save(d),n.namespaces=d,n.names=[],n.skips=[];let h;const f=(typeof d=="string"?d:"").split(/[\s,]+/),p=f.length;for(h=0;h<p;h++)f[h]&&(d=f[h].replace(/\*/g,".*?"),d[0]==="-"?n.skips.push(new RegExp("^"+d.slice(1)+"$")):n.names.push(new RegExp("^"+d+"$")))}function a(){const d=[...n.names.map(c),...n.skips.map(c).map(h=>"-"+h)].join(",");return n.enable(""),d}function s(d){if(d[d.length-1]==="*")return!0;let h,f;for(h=0,f=n.skips.length;h<f;h++)if(n.skips[h].test(d))return!1;for(h=0,f=n.names.length;h<f;h++)if(n.names[h].test(d))return!0;return!1}function c(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function l(d){return d instanceof Error?d.stack||d.message:d}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}return Yc=e,Yc}var Op;function br(){return Op||(Op=1,function(e,t){t.formatArgs=n,t.save=o,t.load=i,t.useColors=r,t.storage=a(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let u=0,d=0;c[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(u++,h==="%c"&&(d=u))}),c.splice(d,0,l)}t.log=console.debug||console.log||(()=>{});function o(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function i(){let c;try{c=t.storage.getItem("debug")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}function a(){try{return localStorage}catch{}}e.exports=QT()(t);const{formatters:s}=e.exports;s.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(Ca,Ca.exports)),Ca.exports}var Dn={},Ap;function nv(){if(Ap)return Dn;Ap=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.decode=Dn.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}Dn.encode=e;function t(r){let n={},o=r.split("&");for(let i=0,a=o.length;i<a;i++){let s=o[i].split("=");n[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return n}return Dn.decode=t,Dn}var Cp;function gu(){if(Cp)return is;Cp=1;var e=fe&&fe.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(is,"__esModule",{value:!0}),is.Transport=void 0;const t=Zs(),r=fo,n=ea(),o=e(br()),i=nv(),a=(0,o.default)("engine.io-client:transport");class s extends Error{constructor(u,d,h){super(u),this.description=d,this.context=h,this.type="TransportError"}}class c extends r.Emitter{constructor(u){super(),this.writable=!1,(0,n.installTimerFunctions)(this,u),this.opts=u,this.query=u.query,this.socket=u.socket}onError(u,d,h){return super.emitReserved("error",new s(u,d,h)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(u){this.readyState==="open"?this.write(u):a("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(u){const d=(0,t.decodePacket)(u,this.socket.binaryType);this.onPacket(d)}onPacket(u){super.emitReserved("packet",u)}onClose(u){this.readyState="closed",super.emitReserved("close",u)}pause(u){}createUri(u,d={}){return u+"://"+this._hostname()+this._port()+this.opts.path+this._query(d)}_hostname(){const u=this.opts.hostname;return u.indexOf(":")===-1?u:"["+u+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(u){const d=(0,i.encode)(u);return d.length?"?"+d:""}}return is.Transport=c,is}var Nr={},Rp;function iv(){if(Rp)return Nr;Rp=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.yeast=Nr.decode=Nr.encode=void 0;const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,r={};let n=0,o=0,i;function a(l){let u="";do u=e[l%t]+u,l=Math.floor(l/t);while(l>0);return u}Nr.encode=a;function s(l){let u=0;for(o=0;o<l.length;o++)u=u*t+r[l.charAt(o)];return u}Nr.decode=s;function c(){const l=a(+new Date);return l!==i?(n=0,i=l):l+"."+a(n++)}for(Nr.yeast=c;o<t;o++)r[e[o]]=o;return Nr}var Bn={},as={},Pp;function YT(){if(Pp)return as;Pp=1,Object.defineProperty(as,"__esModule",{value:!0}),as.hasCORS=void 0;let e=!1;try{e=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}return as.hasCORS=e,as}var Np;function KT(){if(Np)return Bn;Np=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.createCookieJar=Bn.XHR=void 0;const e=YT(),t=mu();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{}}Bn.XHR=r;function n(){}return Bn.createCookieJar=n,Bn}var Ip;function XT(){if(Ip)return kn;Ip=1;var e=fe&&fe.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(kn,"__esModule",{value:!0}),kn.Request=kn.Polling=void 0;const t=gu(),r=e(br()),n=iv(),o=Zs(),i=KT(),a=fo,s=ea(),c=mu(),l=(0,r.default)("engine.io-client:polling");function u(){}const d=function(){return new i.XHR({xdomain:!1}).responseType!=null}();class h extends t.Transport{constructor(_){if(super(_),this.polling=!1,typeof location<"u"){const v=location.protocol==="https:";let b=location.port;b||(b=v?"443":"80"),this.xd=typeof location<"u"&&_.hostname!==location.hostname||b!==_.port}const S=_&&_.forceBase64;this.supportsBinary=d&&!S,this.opts.withCredentials&&(this.cookieJar=(0,i.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(_){this.readyState="pausing";const S=()=>{l("paused"),this.readyState="paused",_()};if(this.polling||!this.writable){let v=0;this.polling&&(l("we are currently polling - waiting to pause"),v++,this.once("pollComplete",function(){l("pre-pause polling complete"),--v||S()})),this.writable||(l("we are currently writing - waiting to pause"),v++,this.once("drain",function(){l("pre-pause writing complete"),--v||S()}))}else S()}poll(){l("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(_){l("polling got data %s",_);const S=v=>{if(this.readyState==="opening"&&v.type==="open"&&this.onOpen(),v.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(v)};(0,o.decodePayload)(_,this.socket.binaryType).forEach(S),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():l('ignoring poll - transport state "%s"',this.readyState))}doClose(){const _=()=>{l("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(l("transport open - closing"),_()):(l("transport not open - deferring close"),this.once("open",_))}write(_){this.writable=!1,(0,o.encodePayload)(_,S=>{this.doWrite(S,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const _=this.opts.secure?"https":"http",S=this.query||{};return this.opts.timestampRequests!==!1&&(S[this.opts.timestampParam]=(0,n.yeast)()),!this.supportsBinary&&!S.sid&&(S.b64=1),this.createUri(_,S)}request(_={}){return Object.assign(_,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new f(this.uri(),_)}doWrite(_,S){const v=this.request({method:"POST",data:_});v.on("success",S),v.on("error",(b,T)=>{this.onError("xhr post error",b,T)})}doPoll(){l("xhr poll");const _=this.request();_.on("data",this.onData.bind(this)),_.on("error",(S,v)=>{this.onError("xhr poll error",S,v)}),this.pollXhr=_}}kn.Polling=h;class f extends a.Emitter{constructor(_,S){super(),(0,s.installTimerFunctions)(this,S),this.opts=S,this.method=S.method||"GET",this.uri=_,this.data=S.data!==void 0?S.data:null,this.create()}create(){var _;const S=(0,s.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");S.xdomain=!!this.opts.xd;const v=this.xhr=new i.XHR(S);try{l("xhr open %s: %s",this.method,this.uri),v.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){v.setDisableHeaderCheck&&v.setDisableHeaderCheck(!0);for(let b in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(b)&&v.setRequestHeader(b,this.opts.extraHeaders[b])}}catch{}if(this.method==="POST")try{v.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{v.setRequestHeader("Accept","*/*")}catch{}(_=this.opts.cookieJar)===null||_===void 0||_.addCookies(v),"withCredentials"in v&&(v.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(v.timeout=this.opts.requestTimeout),v.onreadystatechange=()=>{var b;v.readyState===3&&((b=this.opts.cookieJar)===null||b===void 0||b.parseCookies(v)),v.readyState===4&&(v.status===200||v.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof v.status=="number"?v.status:0)},0))},l("xhr data %s",this.data),v.send(this.data)}catch(b){this.setTimeoutFn(()=>{this.onError(b)},0);return}typeof document<"u"&&(this.index=f.requestsCount++,f.requests[this.index]=this)}onError(_){this.emitReserved("error",_,this.xhr),this.cleanup(!0)}cleanup(_){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=u,_)try{this.xhr.abort()}catch{}typeof document<"u"&&delete f.requests[this.index],this.xhr=null}}onLoad(){const _=this.xhr.responseText;_!==null&&(this.emitReserved("data",_),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(kn.Request=f,f.requestsCount=0,f.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",p);else if(typeof addEventListener=="function"){const m="onpagehide"in c.globalThisShim?"pagehide":"unload";addEventListener(m,p,!1)}}function p(){for(let m in f.requests)f.requests.hasOwnProperty(m)&&f.requests[m].abort()}return kn}var us={},Jt={},Lp;function yu(){if(Lp)return Jt;Lp=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.defaultBinaryType=Jt.usingBrowserWebSocket=Jt.WebSocket=Jt.nextTick=void 0;const e=mu();return Jt.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,n)=>n(r,0))(),Jt.WebSocket=e.globalThisShim.WebSocket||e.globalThisShim.MozWebSocket,Jt.usingBrowserWebSocket=!0,Jt.defaultBinaryType="arraybuffer",Jt}var kp;function JT(){if(kp)return us;kp=1;var e=fe&&fe.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(us,"__esModule",{value:!0}),us.WS=void 0;const t=gu(),r=iv(),n=ea(),o=yu(),i=e(br()),a=Zs(),s=(0,i.default)("engine.io-client:websocket"),c=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class l extends t.Transport{constructor(d){super(d),this.supportsBinary=!d.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const d=this.uri(),h=this.opts.protocols,f=c?{}:(0,n.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(f.headers=this.opts.extraHeaders);try{this.ws=o.usingBrowserWebSocket&&!c?h?new o.WebSocket(d,h):new o.WebSocket(d):new o.WebSocket(d,h,f)}catch(p){return this.emitReserved("error",p)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=d=>this.onClose({description:"websocket connection closed",context:d}),this.ws.onmessage=d=>this.onData(d.data),this.ws.onerror=d=>this.onError("websocket error",d)}write(d){this.writable=!1;for(let h=0;h<d.length;h++){const f=d[h],p=h===d.length-1;(0,a.encodePacket)(f,this.supportsBinary,m=>{const _={};o.usingBrowserWebSocket||(f.options&&(_.compress=f.options.compress),this.opts.perMessageDeflate&&(typeof m=="string"?Buffer.byteLength(m):m.length)<this.opts.perMessageDeflate.threshold&&(_.compress=!1));try{o.usingBrowserWebSocket?this.ws.send(m):this.ws.send(m,_)}catch{s("websocket closed before onclose event")}p&&(0,o.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const d=this.opts.secure?"wss":"ws",h=this.query||{};return this.opts.timestampRequests&&(h[this.opts.timestampParam]=(0,r.yeast)()),this.supportsBinary||(h.b64=1),this.createUri(d,h)}check(){return!!o.WebSocket}}return us.WS=l,us}var cs={},Mp;function ZT(){if(Mp)return cs;Mp=1;var e=fe&&fe.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(cs,"__esModule",{value:!0}),cs.WT=void 0;const t=gu(),r=yu(),n=Zs(),i=(0,e(br()).default)("engine.io-client:webtransport");class a extends t.Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{i("transport closed gracefully"),this.onClose()}).catch(c=>{i("transport closed due to %s",c),this.onError("webtransport error",c)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(c=>{const l=(0,n.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),u=c.readable.pipeThrough(l).getReader(),d=(0,n.createPacketEncoderStream)();d.readable.pipeTo(c.writable),this.writer=d.writable.getWriter();const h=()=>{u.read().then(({done:p,value:m})=>{if(p){i("session is closed");return}i("received chunk: %o",m),this.onPacket(m),h()}).catch(p=>{i("an error occurred while reading: %s",p)})};h();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this.writer.write(f).then(()=>this.onOpen())})}))}write(c){this.writable=!1;for(let l=0;l<c.length;l++){const u=c[l],d=l===c.length-1;this.writer.write(u).then(()=>{d&&(0,r.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var c;(c=this.transport)===null||c===void 0||c.close()}}return cs.WT=a,cs}var Fp;function ov(){if(Fp)return ns;Fp=1,Object.defineProperty(ns,"__esModule",{value:!0}),ns.transports=void 0;const e=XT(),t=JT(),r=ZT();return ns.transports={websocket:t.WS,webtransport:r.WT,polling:e.Polling},ns}var ls={},Dp;function sv(){if(Dp)return ls;Dp=1,Object.defineProperty(ls,"__esModule",{value:!0}),ls.parse=void 0;const e=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,t=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function r(i){const a=i,s=i.indexOf("["),c=i.indexOf("]");s!=-1&&c!=-1&&(i=i.substring(0,s)+i.substring(s,c).replace(/:/g,";")+i.substring(c,i.length));let l=e.exec(i||""),u={},d=14;for(;d--;)u[t[d]]=l[d]||"";return s!=-1&&c!=-1&&(u.source=a,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=n(u,u.path),u.queryKey=o(u,u.query),u}ls.parse=r;function n(i,a){const s=/\/{2,9}/g,c=a.replace(s,"/").split("/");return(a.slice(0,1)=="/"||a.length===0)&&c.splice(0,1),a.slice(-1)=="/"&&c.splice(c.length-1,1),c}function o(i,a){const s={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(c,l,u){l&&(s[l]=u)}),s}return ls}var Bp;function ex(){if(Bp)return rs;Bp=1;var e=fe&&fe.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(rs,"__esModule",{value:!0}),rs.Socket=void 0;const t=ov(),r=ea(),n=nv(),o=sv(),i=e(br()),a=fo,s=Zs(),c=yu(),l=(0,i.default)("engine.io-client:socket");class u extends a.Emitter{constructor(h,f={}){super(),this.binaryType=c.defaultBinaryType,this.writeBuffer=[],h&&typeof h=="object"&&(f=h,h=null),h?(h=(0,o.parse)(h),f.hostname=h.host,f.secure=h.protocol==="https"||h.protocol==="wss",f.port=h.port,h.query&&(f.query=h.query)):f.host&&(f.hostname=(0,o.parse)(f.host).host),(0,r.installTimerFunctions)(this,f),this.secure=f.secure!=null?f.secure:typeof location<"u"&&location.protocol==="https:",f.hostname&&!f.port&&(f.port=this.secure?"443":"80"),this.hostname=f.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=f.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=f.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},f),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,n.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(h){l('creating transport "%s"',h);const f=Object.assign({},this.opts.query);f.EIO=s.protocol,f.transport=h,this.id&&(f.sid=this.id);const p=Object.assign({},this.opts,{query:f,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[h]);return l("options: %j",p),new t.transports[h](p)}open(){let h;if(this.opts.rememberUpgrade&&u.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)h="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else h=this.transports[0];this.readyState="opening";try{h=this.createTransport(h)}catch(f){l("error while creating transport: %s",f),this.transports.shift(),this.open();return}h.open(),this.setTransport(h)}setTransport(h){l("setting transport %s",h.name),this.transport&&(l("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=h,h.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",f=>this.onClose("transport close",f))}probe(h){l('probing transport "%s"',h);let f=this.createTransport(h),p=!1;u.priorWebsocketSuccess=!1;const m=()=>{p||(l('probe transport "%s" opened',h),f.send([{type:"ping",data:"probe"}]),f.once("packet",N=>{if(!p)if(N.type==="pong"&&N.data==="probe"){if(l('probe transport "%s" pong',h),this.upgrading=!0,this.emitReserved("upgrading",f),!f)return;u.priorWebsocketSuccess=f.name==="websocket",l('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{p||this.readyState!=="closed"&&(l("changing transport and sending upgrade packet"),w(),this.setTransport(f),f.send([{type:"upgrade"}]),this.emitReserved("upgrade",f),f=null,this.upgrading=!1,this.flush())})}else{l('probe transport "%s" failed',h);const R=new Error("probe error");R.transport=f.name,this.emitReserved("upgradeError",R)}}))};function _(){p||(p=!0,w(),f.close(),f=null)}const S=N=>{const R=new Error("probe error: "+N);R.transport=f.name,_(),l('probe transport "%s" failed because of error: %s',h,N),this.emitReserved("upgradeError",R)};function v(){S("transport closed")}function b(){S("socket closed")}function T(N){f&&N.name!==f.name&&(l('"%s" works - aborting "%s"',N.name,f.name),_())}const w=()=>{f.removeListener("open",m),f.removeListener("error",S),f.removeListener("close",v),this.off("close",b),this.off("upgrading",T)};f.once("open",m),f.once("error",S),f.once("close",v),this.once("close",b),this.once("upgrading",T),this.upgrades.indexOf("webtransport")!==-1&&h!=="webtransport"?this.setTimeoutFn(()=>{p||f.open()},200):f.open()}onOpen(){if(l("socket open"),this.readyState="open",u.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){l("starting upgrade probes");let h=0;const f=this.upgrades.length;for(;h<f;h++)this.probe(this.upgrades[h])}}onPacket(h){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(l('socket receive: type "%s", data "%s"',h.type,h.data),this.emitReserved("packet",h),this.emitReserved("heartbeat"),this.resetPingTimeout(),h.type){case"open":this.onHandshake(JSON.parse(h.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const f=new Error("server error");f.code=h.data,this.onError(f);break;case"message":this.emitReserved("data",h.data),this.emitReserved("message",h.data);break}else l('packet received with socket readyState "%s"',this.readyState)}onHandshake(h){this.emitReserved("handshake",h),this.id=h.sid,this.transport.query.sid=h.sid,this.upgrades=this.filterUpgrades(h.upgrades),this.pingInterval=h.pingInterval,this.pingTimeout=h.pingTimeout,this.maxPayload=h.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const h=this.getWritablePackets();l("flushing %d packets in socket",h.length),this.transport.send(h),this.prevBufferLen=h.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let f=1;for(let p=0;p<this.writeBuffer.length;p++){const m=this.writeBuffer[p].data;if(m&&(f+=(0,r.byteLength)(m)),p>0&&f>this.maxPayload)return l("only send %d out of %d packets",p,this.writeBuffer.length),this.writeBuffer.slice(0,p);f+=2}return l("payload size is %d (max: %d)",f,this.maxPayload),this.writeBuffer}write(h,f,p){return this.sendPacket("message",h,f,p),this}send(h,f,p){return this.sendPacket("message",h,f,p),this}sendPacket(h,f,p,m){if(typeof f=="function"&&(m=f,f=void 0),typeof p=="function"&&(m=p,p=null),this.readyState==="closing"||this.readyState==="closed")return;p=p||{},p.compress=p.compress!==!1;const _={type:h,data:f,options:p};this.emitReserved("packetCreate",_),this.writeBuffer.push(_),m&&this.once("flush",m),this.flush()}close(){const h=()=>{this.onClose("forced close"),l("socket closing - telling transport to close"),this.transport.close()},f=()=>{this.off("upgrade",f),this.off("upgradeError",f),h()},p=()=>{this.once("upgrade",f),this.once("upgradeError",f)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?p():h()}):this.upgrading?p():h()),this}onError(h){l("socket error %j",h),u.priorWebsocketSuccess=!1,this.emitReserved("error",h),this.onClose("transport error",h)}onClose(h,f){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(l('socket close with reason: "%s"',h),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",h,f),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(h){const f=[];let p=0;const m=h.length;for(;p<m;p++)~this.transports.indexOf(h[p])&&f.push(h[p]);return f}}return rs.Socket=u,u.protocol=s.protocol,rs}var Up;function av(){return Up||(Up=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=ex();Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return t.Socket}}),e.protocol=t.Socket.protocol;var r=gu();Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return r.Transport}});var n=ov();Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return n.transports}});var o=ea();Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return o.installTimerFunctions}});var i=sv();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return i.parse}});var a=yu();Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return a.nextTick}})}(Wc)),Wc}var $p;function tx(){if($p)return ts;$p=1;var e=fe&&fe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ts,"__esModule",{value:!0}),ts.url=void 0;const t=av(),n=e(br()).default("socket.io-client:url");function o(i,a="",s){let c=i;s=s||typeof location<"u"&&location,i==null&&(i=s.protocol+"//"+s.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=s.protocol+i:i=s.host+i),/^(https?|wss?):\/\//.test(i)||(n("protocol-less url %s",i),typeof s<"u"?i=s.protocol+"//"+i:i="https://"+i),n("parse %s",i),c=t.parse(i)),c.port||(/^(http|ws)$/.test(c.protocol)?c.port="80":/^(http|ws)s$/.test(c.protocol)&&(c.port="443")),c.path=c.path||"/";const u=c.host.indexOf(":")!==-1?"["+c.host+"]":c.host;return c.id=c.protocol+"://"+u+":"+c.port+a,c.href=c.protocol+"://"+u+(s&&s.port===c.port?"":":"+c.port),c}return ts.url=o,ts}var fs={},hs={},Kc={},Un={},$n={},jp;function uv(){if(jp)return $n;jp=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.hasBinary=$n.isBinary=void 0;const e=typeof ArrayBuffer=="function",t=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,r=Object.prototype.toString,n=typeof Blob=="function"||typeof Blob<"u"&&r.call(Blob)==="[object BlobConstructor]",o=typeof File=="function"||typeof File<"u"&&r.call(File)==="[object FileConstructor]";function i(s){return e&&(s instanceof ArrayBuffer||t(s))||n&&s instanceof Blob||o&&s instanceof File}$n.isBinary=i;function a(s,c){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let l=0,u=s.length;l<u;l++)if(a(s[l]))return!0;return!1}if(i(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return a(s.toJSON(),!0);for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)&&a(s[l]))return!0;return!1}return $n.hasBinary=a,$n}var Hp;function rx(){if(Hp)return Un;Hp=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.reconstructPacket=Un.deconstructPacket=void 0;const e=uv();function t(i){const a=[],s=i.data,c=i;return c.data=r(s,a),c.attachments=a.length,{packet:c,buffers:a}}Un.deconstructPacket=t;function r(i,a){if(!i)return i;if((0,e.isBinary)(i)){const s={_placeholder:!0,num:a.length};return a.push(i),s}else if(Array.isArray(i)){const s=new Array(i.length);for(let c=0;c<i.length;c++)s[c]=r(i[c],a);return s}else if(typeof i=="object"&&!(i instanceof Date)){const s={};for(const c in i)Object.prototype.hasOwnProperty.call(i,c)&&(s[c]=r(i[c],a));return s}return i}function n(i,a){return i.data=o(i.data,a),delete i.attachments,i}Un.reconstructPacket=n;function o(i,a){if(!i)return i;if(i&&i._placeholder===!0){if(typeof i.num=="number"&&i.num>=0&&i.num<a.length)return a[i.num];throw new Error("illegal attachments")}else if(Array.isArray(i))for(let s=0;s<i.length;s++)i[s]=o(i[s],a);else if(typeof i=="object")for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&(i[s]=o(i[s],a));return i}return Un}var qp;function Df(){return qp||(qp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const t=fo,r=rx(),n=uv(),i=(0,br().default)("socket.io-parser"),a=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var s;(function(h){h[h.CONNECT=0]="CONNECT",h[h.DISCONNECT=1]="DISCONNECT",h[h.EVENT=2]="EVENT",h[h.ACK=3]="ACK",h[h.CONNECT_ERROR=4]="CONNECT_ERROR",h[h.BINARY_EVENT=5]="BINARY_EVENT",h[h.BINARY_ACK=6]="BINARY_ACK"})(s=e.PacketType||(e.PacketType={}));class c{constructor(f){this.replacer=f}encode(f){return i("encoding packet %j",f),(f.type===s.EVENT||f.type===s.ACK)&&(0,n.hasBinary)(f)?this.encodeAsBinary({type:f.type===s.EVENT?s.BINARY_EVENT:s.BINARY_ACK,nsp:f.nsp,data:f.data,id:f.id}):[this.encodeAsString(f)]}encodeAsString(f){let p=""+f.type;return(f.type===s.BINARY_EVENT||f.type===s.BINARY_ACK)&&(p+=f.attachments+"-"),f.nsp&&f.nsp!=="/"&&(p+=f.nsp+","),f.id!=null&&(p+=f.id),f.data!=null&&(p+=JSON.stringify(f.data,this.replacer)),i("encoded %j as %s",f,p),p}encodeAsBinary(f){const p=(0,r.deconstructPacket)(f),m=this.encodeAsString(p.packet),_=p.buffers;return _.unshift(m),_}}e.Encoder=c;function l(h){return Object.prototype.toString.call(h)==="[object Object]"}class u extends t.Emitter{constructor(f){super(),this.reviver=f}add(f){let p;if(typeof f=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");p=this.decodeString(f);const m=p.type===s.BINARY_EVENT;m||p.type===s.BINARY_ACK?(p.type=m?s.EVENT:s.ACK,this.reconstructor=new d(p),p.attachments===0&&super.emitReserved("decoded",p)):super.emitReserved("decoded",p)}else if((0,n.isBinary)(f)||f.base64)if(this.reconstructor)p=this.reconstructor.takeBinaryData(f),p&&(this.reconstructor=null,super.emitReserved("decoded",p));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+f)}decodeString(f){let p=0;const m={type:Number(f.charAt(0))};if(s[m.type]===void 0)throw new Error("unknown packet type "+m.type);if(m.type===s.BINARY_EVENT||m.type===s.BINARY_ACK){const S=p+1;for(;f.charAt(++p)!=="-"&&p!=f.length;);const v=f.substring(S,p);if(v!=Number(v)||f.charAt(p)!=="-")throw new Error("Illegal attachments");m.attachments=Number(v)}if(f.charAt(p+1)==="/"){const S=p+1;for(;++p&&!(f.charAt(p)===","||p===f.length););m.nsp=f.substring(S,p)}else m.nsp="/";const _=f.charAt(p+1);if(_!==""&&Number(_)==_){const S=p+1;for(;++p;){const v=f.charAt(p);if(v==null||Number(v)!=v){--p;break}if(p===f.length)break}m.id=Number(f.substring(S,p+1))}if(f.charAt(++p)){const S=this.tryParse(f.substr(p));if(u.isPayloadValid(m.type,S))m.data=S;else throw new Error("invalid payload")}return i("decoded %s as %j",f,m),m}tryParse(f){try{return JSON.parse(f,this.reviver)}catch{return!1}}static isPayloadValid(f,p){switch(f){case s.CONNECT:return l(p);case s.DISCONNECT:return p===void 0;case s.CONNECT_ERROR:return typeof p=="string"||l(p);case s.EVENT:case s.BINARY_EVENT:return Array.isArray(p)&&(typeof p[0]=="number"||typeof p[0]=="string"&&a.indexOf(p[0])===-1);case s.ACK:case s.BINARY_ACK:return Array.isArray(p)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=u;class d{constructor(f){this.packet=f,this.buffers=[],this.reconPack=f}takeBinaryData(f){if(this.buffers.push(f),this.buffers.length===this.reconPack.attachments){const p=(0,r.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),p}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}}(Kc)),Kc}var ds={},Gp;function cv(){if(Gp)return ds;Gp=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.on=void 0;function e(t,r,n){return t.on(r,n),function(){t.off(r,n)}}return ds.on=e,ds}var Vp;function lv(){if(Vp)return hs;Vp=1;var e=fe&&fe.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(hs,"__esModule",{value:!0}),hs.Socket=void 0;const t=Df(),r=cv(),n=fo,i=e(br()).default("socket.io-client:socket"),a=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class s extends n.Emitter{constructor(l,u,d){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=l,this.nsp=u,d&&d.auth&&(this.auth=d.auth),this._opts=Object.assign({},d),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const l=this.io;this.subs=[r.on(l,"open",this.onopen.bind(this)),r.on(l,"packet",this.onpacket.bind(this)),r.on(l,"error",this.onerror.bind(this)),r.on(l,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...l){return l.unshift("message"),this.emit.apply(this,l),this}emit(l,...u){if(a.hasOwnProperty(l))throw new Error('"'+l.toString()+'" is a reserved event name');if(u.unshift(l),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(u),this;const d={type:t.PacketType.EVENT,data:u};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof u[u.length-1]=="function"){const p=this.ids++;i("emitting packet with ack id %d",p);const m=u.pop();this._registerAckCallback(p,m),d.id=p}const h=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!h||!this.connected)?i("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d),this.flags={},this}_registerAckCallback(l,u){var d;const h=(d=this.flags.timeout)!==null&&d!==void 0?d:this._opts.ackTimeout;if(h===void 0){this.acks[l]=u;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[l];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===l&&(i("removing packet with ack id %d from the buffer",l),this.sendBuffer.splice(p,1));i("event with ack id %d has timed out after %d ms",l,h),u.call(this,new Error("operation has timed out"))},h);this.acks[l]=(...p)=>{this.io.clearTimeoutFn(f),u.apply(this,[null,...p])}}emitWithAck(l,...u){const d=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((h,f)=>{u.push((p,m)=>d?p?f(p):h(m):h(p)),this.emit(l,...u)})}_addToQueue(l){let u;typeof l[l.length-1]=="function"&&(u=l.pop());const d={id:this._queueSeq++,tryCount:0,pending:!1,args:l,flags:Object.assign({fromQueue:!0},this.flags)};l.push((h,...f)=>d!==this._queue[0]?void 0:(h!==null?d.tryCount>this._opts.retries&&(i("packet [%d] is discarded after %d tries",d.id,d.tryCount),this._queue.shift(),u&&u(h)):(i("packet [%d] was successfully sent",d.id),this._queue.shift(),u&&u(null,...f)),d.pending=!1,this._drainQueue())),this._queue.push(d),this._drainQueue()}_drainQueue(l=!1){if(i("draining queue"),!this.connected||this._queue.length===0)return;const u=this._queue[0];if(u.pending&&!l){i("packet [%d] has already been sent and is waiting for an ack",u.id);return}u.pending=!0,u.tryCount++,i("sending packet [%d] (try n°%d)",u.id,u.tryCount),this.flags=u.flags,this.emit.apply(this,u.args)}packet(l){l.nsp=this.nsp,this.io._packet(l)}onopen(){i("transport is open - connecting"),typeof this.auth=="function"?this.auth(l=>{this._sendConnectPacket(l)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(l){this.packet({type:t.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},l):l})}onerror(l){this.connected||this.emitReserved("connect_error",l)}onclose(l,u){i("close (%s)",l),this.connected=!1,delete this.id,this.emitReserved("disconnect",l,u)}onpacket(l){if(l.nsp===this.nsp)switch(l.type){case t.PacketType.CONNECT:l.data&&l.data.sid?this.onconnect(l.data.sid,l.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case t.PacketType.EVENT:case t.PacketType.BINARY_EVENT:this.onevent(l);break;case t.PacketType.ACK:case t.PacketType.BINARY_ACK:this.onack(l);break;case t.PacketType.DISCONNECT:this.ondisconnect();break;case t.PacketType.CONNECT_ERROR:this.destroy();const d=new Error(l.data.message);d.data=l.data.data,this.emitReserved("connect_error",d);break}}onevent(l){const u=l.data||[];i("emitting event %j",u),l.id!=null&&(i("attaching ack callback to event"),u.push(this.ack(l.id))),this.connected?this.emitEvent(u):this.receiveBuffer.push(Object.freeze(u))}emitEvent(l){if(this._anyListeners&&this._anyListeners.length){const u=this._anyListeners.slice();for(const d of u)d.apply(this,l)}super.emit.apply(this,l),this._pid&&l.length&&typeof l[l.length-1]=="string"&&(this._lastOffset=l[l.length-1])}ack(l){const u=this;let d=!1;return function(...h){d||(d=!0,i("sending ack %j",h),u.packet({type:t.PacketType.ACK,id:l,data:h}))}}onack(l){const u=this.acks[l.id];typeof u=="function"?(i("calling ack %s with %j",l.id,l.data),u.apply(this,l.data),delete this.acks[l.id]):i("bad ack %s",l.id)}onconnect(l,u){i("socket connected with id %s",l),this.id=l,this.recovered=u&&this._pid===u,this._pid=u,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(l=>this.emitEvent(l)),this.receiveBuffer=[],this.sendBuffer.forEach(l=>{this.notifyOutgoingListeners(l),this.packet(l)}),this.sendBuffer=[]}ondisconnect(){i("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(l=>l()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(i("performing disconnect (%s)",this.nsp),this.packet({type:t.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(l){return this.flags.compress=l,this}get volatile(){return this.flags.volatile=!0,this}timeout(l){return this.flags.timeout=l,this}onAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(l),this}prependAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(l),this}offAny(l){if(!this._anyListeners)return this;if(l){const u=this._anyListeners;for(let d=0;d<u.length;d++)if(l===u[d])return u.splice(d,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(l),this}prependAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(l),this}offAnyOutgoing(l){if(!this._anyOutgoingListeners)return this;if(l){const u=this._anyOutgoingListeners;for(let d=0;d<u.length;d++)if(l===u[d])return u.splice(d,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(l){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const u=this._anyOutgoingListeners.slice();for(const d of u)d.apply(this,l.data)}}}return hs.Socket=s,hs}var ps={},Wp;function nx(){if(Wp)return ps;Wp=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.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 ps.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},ps}var zp;function ix(){if(zp)return fs;zp=1;var e=fe&&fe.__createBinding||(Object.create?function(f,p,m,_){_===void 0&&(_=m),Object.defineProperty(f,_,{enumerable:!0,get:function(){return p[m]}})}:function(f,p,m,_){_===void 0&&(_=m),f[_]=p[m]}),t=fe&&fe.__setModuleDefault||(Object.create?function(f,p){Object.defineProperty(f,"default",{enumerable:!0,value:p})}:function(f,p){f.default=p}),r=fe&&fe.__importStar||function(f){if(f&&f.__esModule)return f;var p={};if(f!=null)for(var m in f)m!=="default"&&Object.prototype.hasOwnProperty.call(f,m)&&e(p,f,m);return t(p,f),p},n=fe&&fe.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(fs,"__esModule",{value:!0}),fs.Manager=void 0;const o=av(),i=lv(),a=r(Df()),s=cv(),c=nx(),l=fo,d=n(br()).default("socket.io-client:manager");class h extends l.Emitter{constructor(p,m){var _;super(),this.nsps={},this.subs=[],p&&typeof p=="object"&&(m=p,p=void 0),m=m||{},m.path=m.path||"/socket.io",this.opts=m,o.installTimerFunctions(this,m),this.reconnection(m.reconnection!==!1),this.reconnectionAttempts(m.reconnectionAttempts||1/0),this.reconnectionDelay(m.reconnectionDelay||1e3),this.reconnectionDelayMax(m.reconnectionDelayMax||5e3),this.randomizationFactor((_=m.randomizationFactor)!==null&&_!==void 0?_:.5),this.backoff=new c.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(m.timeout==null?2e4:m.timeout),this._readyState="closed",this.uri=p;const S=m.parser||a;this.encoder=new S.Encoder,this.decoder=new S.Decoder,this._autoConnect=m.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(p){return arguments.length?(this._reconnection=!!p,this):this._reconnection}reconnectionAttempts(p){return p===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=p,this)}reconnectionDelay(p){var m;return p===void 0?this._reconnectionDelay:(this._reconnectionDelay=p,(m=this.backoff)===null||m===void 0||m.setMin(p),this)}randomizationFactor(p){var m;return p===void 0?this._randomizationFactor:(this._randomizationFactor=p,(m=this.backoff)===null||m===void 0||m.setJitter(p),this)}reconnectionDelayMax(p){var m;return p===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=p,(m=this.backoff)===null||m===void 0||m.setMax(p),this)}timeout(p){return arguments.length?(this._timeout=p,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(p){if(d("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;d("opening %s",this.uri),this.engine=new o.Socket(this.uri,this.opts);const m=this.engine,_=this;this._readyState="opening",this.skipReconnect=!1;const S=s.on(m,"open",function(){_.onopen(),p&&p()}),v=T=>{d("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",T),p?p(T):this.maybeReconnectOnOpen()},b=s.on(m,"error",v);if(this._timeout!==!1){const T=this._timeout;d("connect attempt will timeout after %d",T);const w=this.setTimeoutFn(()=>{d("connect attempt timed out after %d",T),S(),v(new Error("timeout")),m.close()},T);this.opts.autoUnref&&w.unref(),this.subs.push(()=>{this.clearTimeoutFn(w)})}return this.subs.push(S),this.subs.push(b),this}connect(p){return this.open(p)}onopen(){d("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const p=this.engine;this.subs.push(s.on(p,"ping",this.onping.bind(this)),s.on(p,"data",this.ondata.bind(this)),s.on(p,"error",this.onerror.bind(this)),s.on(p,"close",this.onclose.bind(this)),s.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(p){try{this.decoder.add(p)}catch(m){this.onclose("parse error",m)}}ondecoded(p){o.nextTick(()=>{this.emitReserved("packet",p)},this.setTimeoutFn)}onerror(p){d("error",p),this.emitReserved("error",p)}socket(p,m){let _=this.nsps[p];return _?this._autoConnect&&!_.active&&_.connect():(_=new i.Socket(this,p,m),this.nsps[p]=_),_}_destroy(p){const m=Object.keys(this.nsps);for(const _ of m)if(this.nsps[_].active){d("socket %s is still active, skipping close",_);return}this._close()}_packet(p){d("writing packet %j",p);const m=this.encoder.encode(p);for(let _=0;_<m.length;_++)this.engine.write(m[_],p.options)}cleanup(){d("cleanup"),this.subs.forEach(p=>p()),this.subs.length=0,this.decoder.destroy()}_close(){d("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(p,m){d("closed due to %s",p),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",p,m),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const p=this;if(this.backoff.attempts>=this._reconnectionAttempts)d("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const m=this.backoff.duration();d("will wait %dms before reconnect attempt",m),this._reconnecting=!0;const _=this.setTimeoutFn(()=>{p.skipReconnect||(d("attempting reconnect"),this.emitReserved("reconnect_attempt",p.backoff.attempts),!p.skipReconnect&&p.open(S=>{S?(d("reconnect attempt error"),p._reconnecting=!1,p.reconnect(),this.emitReserved("reconnect_error",S)):(d("reconnect success"),p.onreconnect())}))},m);this.opts.autoUnref&&_.unref(),this.subs.push(()=>{this.clearTimeoutFn(_)})}}onreconnect(){const p=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",p)}}return fs.Manager=h,fs}var Qp;function ox(){return Qp||(Qp=1,function(e,t){var r=fe&&fe.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const n=tx(),o=ix();Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});const i=lv();Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}});const s=r(br()).default("socket.io-client"),c={};function l(d,h){typeof d=="object"&&(h=d,d=void 0),h=h||{};const f=n.url(d,h.path||"/socket.io"),p=f.source,m=f.id,_=f.path,S=c[m]&&_ in c[m].nsps,v=h.forceNew||h["force new connection"]||h.multiplex===!1||S;let b;return v?(s("ignoring socket cache for %s",p),b=new o.Manager(p,h)):(c[m]||(s("new io instance for %s",p),c[m]=new o.Manager(p,h)),b=c[m]),f.query&&!h.query&&(h.query=f.queryKey),b.socket(f.path,h)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:o.Manager,Socket:i.Socket,io:l,connect:l});var u=Df();Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l}(Aa,Aa.exports)),Aa.exports}var Xc={},ms={},Yp;function sx(){if(Yp)return ms;Yp=1,ms.byteLength=s,ms.toByteArray=l,ms.fromByteArray=h;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)e[o]=n[o],t[n.charCodeAt(o)]=o;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function a(f){var p=f.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=f.indexOf("=");m===-1&&(m=p);var _=m===p?0:4-m%4;return[m,_]}function s(f){var p=a(f),m=p[0],_=p[1];return(m+_)*3/4-_}function c(f,p,m){return(p+m)*3/4-m}function l(f){var p,m=a(f),_=m[0],S=m[1],v=new r(c(f,_,S)),b=0,T=S>0?_-4:_,w;for(w=0;w<T;w+=4)p=t[f.charCodeAt(w)]<<18|t[f.charCodeAt(w+1)]<<12|t[f.charCodeAt(w+2)]<<6|t[f.charCodeAt(w+3)],v[b++]=p>>16&255,v[b++]=p>>8&255,v[b++]=p&255;return S===2&&(p=t[f.charCodeAt(w)]<<2|t[f.charCodeAt(w+1)]>>4,v[b++]=p&255),S===1&&(p=t[f.charCodeAt(w)]<<10|t[f.charCodeAt(w+1)]<<4|t[f.charCodeAt(w+2)]>>2,v[b++]=p>>8&255,v[b++]=p&255),v}function u(f){return e[f>>18&63]+e[f>>12&63]+e[f>>6&63]+e[f&63]}function d(f,p,m){for(var _,S=[],v=p;v<m;v+=3)_=(f[v]<<16&16711680)+(f[v+1]<<8&65280)+(f[v+2]&255),S.push(u(_));return S.join("")}function h(f){for(var p,m=f.length,_=m%3,S=[],v=16383,b=0,T=m-_;b<T;b+=v)S.push(d(f,b,b+v>T?T:b+v));return _===1?(p=f[m-1],S.push(e[p>>2]+e[p<<4&63]+"==")):_===2&&(p=(f[m-2]<<8)+f[m-1],S.push(e[p>>10]+e[p>>4&63]+e[p<<2&63]+"=")),S.join("")}return ms}var Ra={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Kp;function ax(){return Kp||(Kp=1,Ra.read=function(e,t,r,n,o){var i,a,s=o*8-n-1,c=(1<<s)-1,l=c>>1,u=-7,d=r?o-1:0,h=r?-1:1,f=e[t+d];for(d+=h,i=f&(1<<-u)-1,f>>=-u,u+=s;u>0;i=i*256+e[t+d],d+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=a*256+e[t+d],d+=h,u-=8);if(i===0)i=1-l;else{if(i===c)return a?NaN:(f?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-l}return(f?-1:1)*a*Math.pow(2,i-n)},Ra.write=function(e,t,r,n,o,i){var a,s,c,l=i*8-o-1,u=(1<<l)-1,d=u>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:i-1,p=n?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+d>=1?t+=h/c:t+=h*Math.pow(2,1-d),t*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,o),a=a+d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+f]=s&255,f+=p,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[r+f]=a&255,f+=p,a/=256,l-=8);e[r+f-p]|=m*128}),Ra}/*!
|
|
57
|
+
* The buffer module from node.js, for the browser.
|
|
58
|
+
*
|
|
59
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
60
|
+
* @license MIT
|
|
61
|
+
*/var Xp;function ux(){return Xp||(Xp=1,function(e){const t=sx(),r=ax(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const x=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(x,g),x.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(x){if(x>o)throw new RangeError('The value "'+x+'" is invalid for option "size"');const g=new Uint8Array(x);return Object.setPrototypeOf(g,s.prototype),g}function s(x,g,E){if(typeof x=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(x)}return c(x,g,E)}s.poolSize=8192;function c(x,g,E){if(typeof x=="string")return h(x,g);if(ArrayBuffer.isView(x))return p(x);if(x==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x);if(Ze(x,ArrayBuffer)||x&&Ze(x.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ze(x,SharedArrayBuffer)||x&&Ze(x.buffer,SharedArrayBuffer)))return m(x,g,E);if(typeof x=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const C=x.valueOf&&x.valueOf();if(C!=null&&C!==x)return s.from(C,g,E);const M=_(x);if(M)return M;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof x[Symbol.toPrimitive]=="function")return s.from(x[Symbol.toPrimitive]("string"),g,E);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x)}s.from=function(x,g,E){return c(x,g,E)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(x){if(typeof x!="number")throw new TypeError('"size" argument must be of type number');if(x<0)throw new RangeError('The value "'+x+'" is invalid for option "size"')}function u(x,g,E){return l(x),x<=0?a(x):g!==void 0?typeof E=="string"?a(x).fill(g,E):a(x).fill(g):a(x)}s.alloc=function(x,g,E){return u(x,g,E)};function d(x){return l(x),a(x<0?0:S(x)|0)}s.allocUnsafe=function(x){return d(x)},s.allocUnsafeSlow=function(x){return d(x)};function h(x,g){if((typeof g!="string"||g==="")&&(g="utf8"),!s.isEncoding(g))throw new TypeError("Unknown encoding: "+g);const E=b(x,g)|0;let C=a(E);const M=C.write(x,g);return M!==E&&(C=C.slice(0,M)),C}function f(x){const g=x.length<0?0:S(x.length)|0,E=a(g);for(let C=0;C<g;C+=1)E[C]=x[C]&255;return E}function p(x){if(Ze(x,Uint8Array)){const g=new Uint8Array(x);return m(g.buffer,g.byteOffset,g.byteLength)}return f(x)}function m(x,g,E){if(g<0||x.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(x.byteLength<g+(E||0))throw new RangeError('"length" is outside of buffer bounds');let C;return g===void 0&&E===void 0?C=new Uint8Array(x):E===void 0?C=new Uint8Array(x,g):C=new Uint8Array(x,g,E),Object.setPrototypeOf(C,s.prototype),C}function _(x){if(s.isBuffer(x)){const g=S(x.length)|0,E=a(g);return E.length===0||x.copy(E,0,0,g),E}if(x.length!==void 0)return typeof x.length!="number"||zt(x.length)?a(0):f(x);if(x.type==="Buffer"&&Array.isArray(x.data))return f(x.data)}function S(x){if(x>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return x|0}function v(x){return+x!=x&&(x=0),s.alloc(+x)}s.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==s.prototype},s.compare=function(g,E){if(Ze(g,Uint8Array)&&(g=s.from(g,g.offset,g.byteLength)),Ze(E,Uint8Array)&&(E=s.from(E,E.offset,E.byteLength)),!s.isBuffer(g)||!s.isBuffer(E))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===E)return 0;let C=g.length,M=E.length;for(let j=0,z=Math.min(C,M);j<z;++j)if(g[j]!==E[j]){C=g[j],M=E[j];break}return C<M?-1:M<C?1:0},s.isEncoding=function(g){switch(String(g).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(g,E){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return s.alloc(0);let C;if(E===void 0)for(E=0,C=0;C<g.length;++C)E+=g[C].length;const M=s.allocUnsafe(E);let j=0;for(C=0;C<g.length;++C){let z=g[C];if(Ze(z,Uint8Array))j+z.length>M.length?(s.isBuffer(z)||(z=s.from(z)),z.copy(M,j)):Uint8Array.prototype.set.call(M,z,j);else if(s.isBuffer(z))z.copy(M,j);else throw new TypeError('"list" argument must be an Array of Buffers');j+=z.length}return M};function b(x,g){if(s.isBuffer(x))return x.length;if(ArrayBuffer.isView(x)||Ze(x,ArrayBuffer))return x.byteLength;if(typeof x!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof x);const E=x.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&E===0)return 0;let M=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return E;case"utf8":case"utf-8":return er(x).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E*2;case"hex":return E>>>1;case"base64":return Wt(x).length;default:if(M)return C?-1:er(x).length;g=(""+g).toLowerCase(),M=!0}}s.byteLength=b;function T(x,g,E){let C=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((E===void 0||E>this.length)&&(E=this.length),E<=0)||(E>>>=0,g>>>=0,E<=g))return"";for(x||(x="utf8");;)switch(x){case"hex":return he(this,g,E);case"utf8":case"utf-8":return ie(this,g,E);case"ascii":return Q(this,g,E);case"latin1":case"binary":return ee(this,g,E);case"base64":return Y(this,g,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,g,E);default:if(C)throw new TypeError("Unknown encoding: "+x);x=(x+"").toLowerCase(),C=!0}}s.prototype._isBuffer=!0;function w(x,g,E){const C=x[g];x[g]=x[E],x[E]=C}s.prototype.swap16=function(){const g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let E=0;E<g;E+=2)w(this,E,E+1);return this},s.prototype.swap32=function(){const g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let E=0;E<g;E+=4)w(this,E,E+3),w(this,E+1,E+2);return this},s.prototype.swap64=function(){const g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let E=0;E<g;E+=8)w(this,E,E+7),w(this,E+1,E+6),w(this,E+2,E+5),w(this,E+3,E+4);return this},s.prototype.toString=function(){const g=this.length;return g===0?"":arguments.length===0?ie(this,0,g):T.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(g){if(!s.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:s.compare(this,g)===0},s.prototype.inspect=function(){let g="";const E=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,E).replace(/(.{2})/g,"$1 ").trim(),this.length>E&&(g+=" ... "),"<Buffer "+g+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(g,E,C,M,j){if(Ze(g,Uint8Array)&&(g=s.from(g,g.offset,g.byteLength)),!s.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(E===void 0&&(E=0),C===void 0&&(C=g?g.length:0),M===void 0&&(M=0),j===void 0&&(j=this.length),E<0||C>g.length||M<0||j>this.length)throw new RangeError("out of range index");if(M>=j&&E>=C)return 0;if(M>=j)return-1;if(E>=C)return 1;if(E>>>=0,C>>>=0,M>>>=0,j>>>=0,this===g)return 0;let z=j-M,me=C-E;const Ce=Math.min(z,me),Re=this.slice(M,j),Pe=g.slice(E,C);for(let Ee=0;Ee<Ce;++Ee)if(Re[Ee]!==Pe[Ee]){z=Re[Ee],me=Pe[Ee];break}return z<me?-1:me<z?1:0};function N(x,g,E,C,M){if(x.length===0)return-1;if(typeof E=="string"?(C=E,E=0):E>2147483647?E=2147483647:E<-2147483648&&(E=-2147483648),E=+E,zt(E)&&(E=M?0:x.length-1),E<0&&(E=x.length+E),E>=x.length){if(M)return-1;E=x.length-1}else if(E<0)if(M)E=0;else return-1;if(typeof g=="string"&&(g=s.from(g,C)),s.isBuffer(g))return g.length===0?-1:R(x,g,E,C,M);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?M?Uint8Array.prototype.indexOf.call(x,g,E):Uint8Array.prototype.lastIndexOf.call(x,g,E):R(x,[g],E,C,M);throw new TypeError("val must be string, number or Buffer")}function R(x,g,E,C,M){let j=1,z=x.length,me=g.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(x.length<2||g.length<2)return-1;j=2,z/=2,me/=2,E/=2}function Ce(Pe,Ee){return j===1?Pe[Ee]:Pe.readUInt16BE(Ee*j)}let Re;if(M){let Pe=-1;for(Re=E;Re<z;Re++)if(Ce(x,Re)===Ce(g,Pe===-1?0:Re-Pe)){if(Pe===-1&&(Pe=Re),Re-Pe+1===me)return Pe*j}else Pe!==-1&&(Re-=Re-Pe),Pe=-1}else for(E+me>z&&(E=z-me),Re=E;Re>=0;Re--){let Pe=!0;for(let Ee=0;Ee<me;Ee++)if(Ce(x,Re+Ee)!==Ce(g,Ee)){Pe=!1;break}if(Pe)return Re}return-1}s.prototype.includes=function(g,E,C){return this.indexOf(g,E,C)!==-1},s.prototype.indexOf=function(g,E,C){return N(this,g,E,C,!0)},s.prototype.lastIndexOf=function(g,E,C){return N(this,g,E,C,!1)};function L(x,g,E,C){E=Number(E)||0;const M=x.length-E;C?(C=Number(C),C>M&&(C=M)):C=M;const j=g.length;C>j/2&&(C=j/2);let z;for(z=0;z<C;++z){const me=parseInt(g.substr(z*2,2),16);if(zt(me))return z;x[E+z]=me}return z}function $(x,g,E,C){return Mt(er(g,x.length-E),x,E,C)}function G(x,g,E,C){return Mt(kt(g),x,E,C)}function q(x,g,E,C){return Mt(Wt(g),x,E,C)}function H(x,g,E,C){return Mt(yn(g,x.length-E),x,E,C)}s.prototype.write=function(g,E,C,M){if(E===void 0)M="utf8",C=this.length,E=0;else if(C===void 0&&typeof E=="string")M=E,C=this.length,E=0;else if(isFinite(E))E=E>>>0,isFinite(C)?(C=C>>>0,M===void 0&&(M="utf8")):(M=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const j=this.length-E;if((C===void 0||C>j)&&(C=j),g.length>0&&(C<0||E<0)||E>this.length)throw new RangeError("Attempt to write outside buffer bounds");M||(M="utf8");let z=!1;for(;;)switch(M){case"hex":return L(this,g,E,C);case"utf8":case"utf-8":return $(this,g,E,C);case"ascii":case"latin1":case"binary":return G(this,g,E,C);case"base64":return q(this,g,E,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,g,E,C);default:if(z)throw new TypeError("Unknown encoding: "+M);M=(""+M).toLowerCase(),z=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(x,g,E){return g===0&&E===x.length?t.fromByteArray(x):t.fromByteArray(x.slice(g,E))}function ie(x,g,E){E=Math.min(x.length,E);const C=[];let M=g;for(;M<E;){const j=x[M];let z=null,me=j>239?4:j>223?3:j>191?2:1;if(M+me<=E){let Ce,Re,Pe,Ee;switch(me){case 1:j<128&&(z=j);break;case 2:Ce=x[M+1],(Ce&192)===128&&(Ee=(j&31)<<6|Ce&63,Ee>127&&(z=Ee));break;case 3:Ce=x[M+1],Re=x[M+2],(Ce&192)===128&&(Re&192)===128&&(Ee=(j&15)<<12|(Ce&63)<<6|Re&63,Ee>2047&&(Ee<55296||Ee>57343)&&(z=Ee));break;case 4:Ce=x[M+1],Re=x[M+2],Pe=x[M+3],(Ce&192)===128&&(Re&192)===128&&(Pe&192)===128&&(Ee=(j&15)<<18|(Ce&63)<<12|(Re&63)<<6|Pe&63,Ee>65535&&Ee<1114112&&(z=Ee))}}z===null?(z=65533,me=1):z>65535&&(z-=65536,C.push(z>>>10&1023|55296),z=56320|z&1023),C.push(z),M+=me}return k(C)}const K=4096;function k(x){const g=x.length;if(g<=K)return String.fromCharCode.apply(String,x);let E="",C=0;for(;C<g;)E+=String.fromCharCode.apply(String,x.slice(C,C+=K));return E}function Q(x,g,E){let C="";E=Math.min(x.length,E);for(let M=g;M<E;++M)C+=String.fromCharCode(x[M]&127);return C}function ee(x,g,E){let C="";E=Math.min(x.length,E);for(let M=g;M<E;++M)C+=String.fromCharCode(x[M]);return C}function he(x,g,E){const C=x.length;(!g||g<0)&&(g=0),(!E||E<0||E>C)&&(E=C);let M="";for(let j=g;j<E;++j)M+=yt[x[j]];return M}function Z(x,g,E){const C=x.slice(g,E);let M="";for(let j=0;j<C.length-1;j+=2)M+=String.fromCharCode(C[j]+C[j+1]*256);return M}s.prototype.slice=function(g,E){const C=this.length;g=~~g,E=E===void 0?C:~~E,g<0?(g+=C,g<0&&(g=0)):g>C&&(g=C),E<0?(E+=C,E<0&&(E=0)):E>C&&(E=C),E<g&&(E=g);const M=this.subarray(g,E);return Object.setPrototypeOf(M,s.prototype),M};function X(x,g,E){if(x%1!==0||x<0)throw new RangeError("offset is not uint");if(x+g>E)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(g,E,C){g=g>>>0,E=E>>>0,C||X(g,E,this.length);let M=this[g],j=1,z=0;for(;++z<E&&(j*=256);)M+=this[g+z]*j;return M},s.prototype.readUintBE=s.prototype.readUIntBE=function(g,E,C){g=g>>>0,E=E>>>0,C||X(g,E,this.length);let M=this[g+--E],j=1;for(;E>0&&(j*=256);)M+=this[g+--E]*j;return M},s.prototype.readUint8=s.prototype.readUInt8=function(g,E){return g=g>>>0,E||X(g,1,this.length),this[g]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(g,E){return g=g>>>0,E||X(g,2,this.length),this[g]|this[g+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(g,E){return g=g>>>0,E||X(g,2,this.length),this[g]<<8|this[g+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(g,E){return g=g>>>0,E||X(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(g,E){return g=g>>>0,E||X(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},s.prototype.readBigUInt64LE=at(function(g){g=g>>>0,st(g,"offset");const E=this[g],C=this[g+7];(E===void 0||C===void 0)&&Je(g,this.length-8);const M=E+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24,j=this[++g]+this[++g]*2**8+this[++g]*2**16+C*2**24;return BigInt(M)+(BigInt(j)<<BigInt(32))}),s.prototype.readBigUInt64BE=at(function(g){g=g>>>0,st(g,"offset");const E=this[g],C=this[g+7];(E===void 0||C===void 0)&&Je(g,this.length-8);const M=E*2**24+this[++g]*2**16+this[++g]*2**8+this[++g],j=this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C;return(BigInt(M)<<BigInt(32))+BigInt(j)}),s.prototype.readIntLE=function(g,E,C){g=g>>>0,E=E>>>0,C||X(g,E,this.length);let M=this[g],j=1,z=0;for(;++z<E&&(j*=256);)M+=this[g+z]*j;return j*=128,M>=j&&(M-=Math.pow(2,8*E)),M},s.prototype.readIntBE=function(g,E,C){g=g>>>0,E=E>>>0,C||X(g,E,this.length);let M=E,j=1,z=this[g+--M];for(;M>0&&(j*=256);)z+=this[g+--M]*j;return j*=128,z>=j&&(z-=Math.pow(2,8*E)),z},s.prototype.readInt8=function(g,E){return g=g>>>0,E||X(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},s.prototype.readInt16LE=function(g,E){g=g>>>0,E||X(g,2,this.length);const C=this[g]|this[g+1]<<8;return C&32768?C|4294901760:C},s.prototype.readInt16BE=function(g,E){g=g>>>0,E||X(g,2,this.length);const C=this[g+1]|this[g]<<8;return C&32768?C|4294901760:C},s.prototype.readInt32LE=function(g,E){return g=g>>>0,E||X(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},s.prototype.readInt32BE=function(g,E){return g=g>>>0,E||X(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},s.prototype.readBigInt64LE=at(function(g){g=g>>>0,st(g,"offset");const E=this[g],C=this[g+7];(E===void 0||C===void 0)&&Je(g,this.length-8);const M=this[g+4]+this[g+5]*2**8+this[g+6]*2**16+(C<<24);return(BigInt(M)<<BigInt(32))+BigInt(E+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24)}),s.prototype.readBigInt64BE=at(function(g){g=g>>>0,st(g,"offset");const E=this[g],C=this[g+7];(E===void 0||C===void 0)&&Je(g,this.length-8);const M=(E<<24)+this[++g]*2**16+this[++g]*2**8+this[++g];return(BigInt(M)<<BigInt(32))+BigInt(this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C)}),s.prototype.readFloatLE=function(g,E){return g=g>>>0,E||X(g,4,this.length),r.read(this,g,!0,23,4)},s.prototype.readFloatBE=function(g,E){return g=g>>>0,E||X(g,4,this.length),r.read(this,g,!1,23,4)},s.prototype.readDoubleLE=function(g,E){return g=g>>>0,E||X(g,8,this.length),r.read(this,g,!0,52,8)},s.prototype.readDoubleBE=function(g,E){return g=g>>>0,E||X(g,8,this.length),r.read(this,g,!1,52,8)};function le(x,g,E,C,M,j){if(!s.isBuffer(x))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>M||g<j)throw new RangeError('"value" argument is out of bounds');if(E+C>x.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(g,E,C,M){if(g=+g,E=E>>>0,C=C>>>0,!M){const me=Math.pow(2,8*C)-1;le(this,g,E,C,me,0)}let j=1,z=0;for(this[E]=g&255;++z<C&&(j*=256);)this[E+z]=g/j&255;return E+C},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(g,E,C,M){if(g=+g,E=E>>>0,C=C>>>0,!M){const me=Math.pow(2,8*C)-1;le(this,g,E,C,me,0)}let j=C-1,z=1;for(this[E+j]=g&255;--j>=0&&(z*=256);)this[E+j]=g/z&255;return E+C},s.prototype.writeUint8=s.prototype.writeUInt8=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,1,255,0),this[E]=g&255,E+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,2,65535,0),this[E]=g&255,this[E+1]=g>>>8,E+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,2,65535,0),this[E]=g>>>8,this[E+1]=g&255,E+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,4,4294967295,0),this[E+3]=g>>>24,this[E+2]=g>>>16,this[E+1]=g>>>8,this[E]=g&255,E+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,4,4294967295,0),this[E]=g>>>24,this[E+1]=g>>>16,this[E+2]=g>>>8,this[E+3]=g&255,E+4};function de(x,g,E,C,M){oe(g,C,M,x,E,7);let j=Number(g&BigInt(4294967295));x[E++]=j,j=j>>8,x[E++]=j,j=j>>8,x[E++]=j,j=j>>8,x[E++]=j;let z=Number(g>>BigInt(32)&BigInt(4294967295));return x[E++]=z,z=z>>8,x[E++]=z,z=z>>8,x[E++]=z,z=z>>8,x[E++]=z,E}function Ve(x,g,E,C,M){oe(g,C,M,x,E,7);let j=Number(g&BigInt(4294967295));x[E+7]=j,j=j>>8,x[E+6]=j,j=j>>8,x[E+5]=j,j=j>>8,x[E+4]=j;let z=Number(g>>BigInt(32)&BigInt(4294967295));return x[E+3]=z,z=z>>8,x[E+2]=z,z=z>>8,x[E+1]=z,z=z>>8,x[E]=z,E+8}s.prototype.writeBigUInt64LE=at(function(g,E=0){return de(this,g,E,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=at(function(g,E=0){return Ve(this,g,E,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(g,E,C,M){if(g=+g,E=E>>>0,!M){const Ce=Math.pow(2,8*C-1);le(this,g,E,C,Ce-1,-Ce)}let j=0,z=1,me=0;for(this[E]=g&255;++j<C&&(z*=256);)g<0&&me===0&&this[E+j-1]!==0&&(me=1),this[E+j]=(g/z>>0)-me&255;return E+C},s.prototype.writeIntBE=function(g,E,C,M){if(g=+g,E=E>>>0,!M){const Ce=Math.pow(2,8*C-1);le(this,g,E,C,Ce-1,-Ce)}let j=C-1,z=1,me=0;for(this[E+j]=g&255;--j>=0&&(z*=256);)g<0&&me===0&&this[E+j+1]!==0&&(me=1),this[E+j]=(g/z>>0)-me&255;return E+C},s.prototype.writeInt8=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,1,127,-128),g<0&&(g=255+g+1),this[E]=g&255,E+1},s.prototype.writeInt16LE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,2,32767,-32768),this[E]=g&255,this[E+1]=g>>>8,E+2},s.prototype.writeInt16BE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,2,32767,-32768),this[E]=g>>>8,this[E+1]=g&255,E+2},s.prototype.writeInt32LE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,4,2147483647,-2147483648),this[E]=g&255,this[E+1]=g>>>8,this[E+2]=g>>>16,this[E+3]=g>>>24,E+4},s.prototype.writeInt32BE=function(g,E,C){return g=+g,E=E>>>0,C||le(this,g,E,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[E]=g>>>24,this[E+1]=g>>>16,this[E+2]=g>>>8,this[E+3]=g&255,E+4},s.prototype.writeBigInt64LE=at(function(g,E=0){return de(this,g,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=at(function(g,E=0){return Ve(this,g,E,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function te(x,g,E,C,M,j){if(E+C>x.length)throw new RangeError("Index out of range");if(E<0)throw new RangeError("Index out of range")}function ae(x,g,E,C,M){return g=+g,E=E>>>0,M||te(x,g,E,4),r.write(x,g,E,C,23,4),E+4}s.prototype.writeFloatLE=function(g,E,C){return ae(this,g,E,!0,C)},s.prototype.writeFloatBE=function(g,E,C){return ae(this,g,E,!1,C)};function De(x,g,E,C,M){return g=+g,E=E>>>0,M||te(x,g,E,8),r.write(x,g,E,C,52,8),E+8}s.prototype.writeDoubleLE=function(g,E,C){return De(this,g,E,!0,C)},s.prototype.writeDoubleBE=function(g,E,C){return De(this,g,E,!1,C)},s.prototype.copy=function(g,E,C,M){if(!s.isBuffer(g))throw new TypeError("argument should be a Buffer");if(C||(C=0),!M&&M!==0&&(M=this.length),E>=g.length&&(E=g.length),E||(E=0),M>0&&M<C&&(M=C),M===C||g.length===0||this.length===0)return 0;if(E<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("sourceEnd out of bounds");M>this.length&&(M=this.length),g.length-E<M-C&&(M=g.length-E+C);const j=M-C;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(E,C,M):Uint8Array.prototype.set.call(g,this.subarray(C,M),E),j},s.prototype.fill=function(g,E,C,M){if(typeof g=="string"){if(typeof E=="string"?(M=E,E=0,C=this.length):typeof C=="string"&&(M=C,C=this.length),M!==void 0&&typeof M!="string")throw new TypeError("encoding must be a string");if(typeof M=="string"&&!s.isEncoding(M))throw new TypeError("Unknown encoding: "+M);if(g.length===1){const z=g.charCodeAt(0);(M==="utf8"&&z<128||M==="latin1")&&(g=z)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(E<0||this.length<E||this.length<C)throw new RangeError("Out of range index");if(C<=E)return this;E=E>>>0,C=C===void 0?this.length:C>>>0,g||(g=0);let j;if(typeof g=="number")for(j=E;j<C;++j)this[j]=g;else{const z=s.isBuffer(g)?g:s.from(g,M),me=z.length;if(me===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(j=0;j<C-E;++j)this[j+E]=z[j%me]}return this};const Ie={};function Tt(x,g,E){Ie[x]=class extends E{constructor(){super(),Object.defineProperty(this,"message",{value:g.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${x}]`,this.stack,delete this.name}get code(){return x}set code(M){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:M,writable:!0})}toString(){return`${this.name} [${x}]: ${this.message}`}}}Tt("ERR_BUFFER_OUT_OF_BOUNDS",function(x){return x?`${x} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Tt("ERR_INVALID_ARG_TYPE",function(x,g){return`The "${x}" argument must be of type number. Received type ${typeof g}`},TypeError),Tt("ERR_OUT_OF_RANGE",function(x,g,E){let C=`The value of "${x}" is out of range.`,M=E;return Number.isInteger(E)&&Math.abs(E)>2**32?M=Ct(String(E)):typeof E=="bigint"&&(M=String(E),(E>BigInt(2)**BigInt(32)||E<-(BigInt(2)**BigInt(32)))&&(M=Ct(M)),M+="n"),C+=` It must be ${g}. Received ${M}`,C},RangeError);function Ct(x){let g="",E=x.length;const C=x[0]==="-"?1:0;for(;E>=C+4;E-=3)g=`_${x.slice(E-3,E)}${g}`;return`${x.slice(0,E)}${g}`}function Gt(x,g,E){st(g,"offset"),(x[g]===void 0||x[g+E]===void 0)&&Je(g,x.length-(E+1))}function oe(x,g,E,C,M,j){if(x>E||x<g){const z=typeof g=="bigint"?"n":"";let me;throw j>3?g===0||g===BigInt(0)?me=`>= 0${z} and < 2${z} ** ${(j+1)*8}${z}`:me=`>= -(2${z} ** ${(j+1)*8-1}${z}) and < 2 ** ${(j+1)*8-1}${z}`:me=`>= ${g}${z} and <= ${E}${z}`,new Ie.ERR_OUT_OF_RANGE("value",me,x)}Gt(C,M,j)}function st(x,g){if(typeof x!="number")throw new Ie.ERR_INVALID_ARG_TYPE(g,"number",x)}function Je(x,g,E){throw Math.floor(x)!==x?(st(x,E),new Ie.ERR_OUT_OF_RANGE(E||"offset","an integer",x)):g<0?new Ie.ERR_BUFFER_OUT_OF_BOUNDS:new Ie.ERR_OUT_OF_RANGE(E||"offset",`>= ${E?1:0} and <= ${g}`,x)}const Vt=/[^+/0-9A-Za-z-_]/g;function wr(x){if(x=x.split("=")[0],x=x.trim().replace(Vt,""),x.length<2)return"";for(;x.length%4!==0;)x=x+"=";return x}function er(x,g){g=g||1/0;let E;const C=x.length;let M=null;const j=[];for(let z=0;z<C;++z){if(E=x.charCodeAt(z),E>55295&&E<57344){if(!M){if(E>56319){(g-=3)>-1&&j.push(239,191,189);continue}else if(z+1===C){(g-=3)>-1&&j.push(239,191,189);continue}M=E;continue}if(E<56320){(g-=3)>-1&&j.push(239,191,189),M=E;continue}E=(M-55296<<10|E-56320)+65536}else M&&(g-=3)>-1&&j.push(239,191,189);if(M=null,E<128){if((g-=1)<0)break;j.push(E)}else if(E<2048){if((g-=2)<0)break;j.push(E>>6|192,E&63|128)}else if(E<65536){if((g-=3)<0)break;j.push(E>>12|224,E>>6&63|128,E&63|128)}else if(E<1114112){if((g-=4)<0)break;j.push(E>>18|240,E>>12&63|128,E>>6&63|128,E&63|128)}else throw new Error("Invalid code point")}return j}function kt(x){const g=[];for(let E=0;E<x.length;++E)g.push(x.charCodeAt(E)&255);return g}function yn(x,g){let E,C,M;const j=[];for(let z=0;z<x.length&&!((g-=2)<0);++z)E=x.charCodeAt(z),C=E>>8,M=E%256,j.push(M),j.push(C);return j}function Wt(x){return t.toByteArray(wr(x))}function Mt(x,g,E,C){let M;for(M=0;M<C&&!(M+E>=g.length||M>=x.length);++M)g[M+E]=x[M];return M}function Ze(x,g){return x instanceof g||x!=null&&x.constructor!=null&&x.constructor.name!=null&&x.constructor.name===g.name}function zt(x){return x!==x}const yt=function(){const x="0123456789abcdef",g=new Array(256);for(let E=0;E<16;++E){const C=E*16;for(let M=0;M<16;++M)g[C+M]=x[E]+x[M]}return g}();function at(x){return typeof BigInt>"u"?vn:x}function vn(){throw new Error("BigInt not supported")}}(Xc)),Xc}(function(e,t){(function(r,n){e.exports=n(yT(),RT(),kT(),Tg(),jT,ox(),ux())})(fe,function(r,n,o,i,a,s,c){return function(){var l={809:function(f){f.exports=r},30:function(f){f.exports=n},36:function(f){f.exports=o},300:function(f){f.exports=i},408:function(f){f.exports=c},25:function(f){f.exports=a},130:function(f){f.exports=s}},u={};function d(f){var p=u[f];if(p!==void 0)return p.exports;var m=u[f]={exports:{}};return l[f](m,m.exports,d),m.exports}d.n=function(f){var p=f&&f.__esModule?function(){return f.default}:function(){return f};return d.d(p,{a:p}),p},d.d=function(f,p){for(var m in p)d.o(p,m)&&!d.o(f,m)&&Object.defineProperty(f,m,{enumerable:!0,get:p[m]})},d.o=function(f,p){return Object.prototype.hasOwnProperty.call(f,p)},d.r=function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})};var h={};return function(){d.r(h),d.d(h,{assets:function(){return k},auth:function(){return X},buildAnswer:function(){return RE},buildCarouselCard:function(){return CE},buildQuestion:function(){return Ge},carouselCards:function(){return Si},contentInteraction:function(){return at},decodeBase64:function(){return NE},default:function(){return IE},editorialPages:function(){return W},features:function(){return E},getEntries:function(){return f.getEntries},getEntry:function(){return f.getEntry},management:function(){return _n},payments:function(){return Sn},people:function(){return rr},peopleEngagement:function(){return zr},qaQuestions:function(){return ct},reportError:function(){return p.reportError},search:function(){return bi}});var f=d(809),p=d(30),m=d(36),_={APOLITICAL:{WEBSITES:{LIVE:"https://apolitical.co",LOCALHOST:"localhost",STAGING:/https:\/\/([\w|\d|-]+)\.apolitical\.co/i,STAGING_SPLITTER:"-"},ENVIRONMENTS:{PRODUCTION:"live",LOCAL:"local"}},APIS:{ASSETS_API:{BASE_URL:"/api/assets-api",ENDPOINTS:{USERS:"/users",CERTIFICATES:"/certificates"}},AUTH_API:{BASE_URL:"/api/auth-api",ENDPOINTS:{USER_PASSWORD:"/password",USERS:"/users"}},CONTENT_INTERACTION_API:{BASE_URL:"/api/content-interaction-api",ENDPOINTS:{QUESTIONS:"/questions",ANSWERS:"/answers",REPLIES:"/replies",LIKES:"/likes"}},FEATURES_API:{BASE_URL:"/api/features-api",ENDPOINTS:{FLAGS:"/features"}},MANAGEMENT_API:{BASE_URL:"/api/management-api",ENDPOINTS:{ACCOUNTS:"/accounts",EVENT_REGISTRATIONS:"/event-registrations",LOGINS:"/logins",LOGIN_PASSWORDLESS:"/passwordless",BULK_ENROLMENTS:"/bulk-enrolments"}},PAYMENTS_API:{BASE_URL:"/api/payments-api",BASE_URL_V2:"/api/payments-api/v2",ENDPOINTS:{PRODUCTS:"/products"}},PEOPLE_API:{BASE_URL:"/api/people-api",BASE_URL_V2:"/api/people-api/v2",ENDPOINTS:{BULK_ENROLMENTS:"/bulk-enrolments",REGISTRATIONS:"/registrations",USERS:"/users",USER_ANSWERS:"/answers",USER_COURSES:"/courses",USER_EVENTS:"/events",USER_LIKES:"/likes",USER_LESSONS:"/lessons",USER_PRODUCTS:"/products",USER_RATINGS:"/ratings",USER_SUBSCRIPTIONS:"/subscriptions"}},PEOPLE_ENGAGEMENT_API:{BASE_URL:"/api/people-engagement-api",ENDPOINTS:{ENQUIRY_EMAILS:"/enquiry-emails",USERS:"/users",USER_PROPERTIES:"/properties"}},SEARCH_API:{BASE_URL:"/api/search-api",ENDPOINTS:{SEARCH:"/search"}}},CONTENTFUL:{ARTICLES:{TYPE:"solutionArticle"},CAROUSELS:{CARD_TYPES:{solutionArticle:{INCLUDE:1,SELECT:"fields.authorIds,fields.authorTag,fields.image,fields.publishedDate,fields.readingTime,fields.slug,fields.title"},microcourse:{INCLUDE:2,SELECT:"fields.banner,fields.freeCourse,fields.partnershipDetails,fields.slug,fields.title"},event:{INCLUDE:1,SELECT:"fields.bannerImage,fields.defaultStartDate,fields.slug,fields.speakers,fields.title,fields.isEventOngoing"},listPage:{INCLUDE:1,SELECT:"fields.hero,fields.slug,fields.title"},qaQuestion:{INCLUDE:0,SELECT:"fields.answers,fields.authorId,fields.slug,fields.title,sys.createdAt,fields.projectNames"},learningHub:{INCLUDE:1,SELECT:"fields.bannerSection,fields.customLabel,fields.slug,fields.title"}}},COURSES:{TYPE:"microcourse"},EDITORIAL_PAGES:{INCLUDE:1,SELECT:"fields.carousels,fields.slug",TYPE:"editorialPage"},EVENTS:{TYPE:"event"},LISTS:{TYPE:"listPage"},QUESTIONS:{TYPE:"qaQuestion",INCLUDE:1,LIMIT:10,ORDER:"-sys.createdAt",SELECT:"sys.createdAt,sys.updatedAt,fields.title,fields.slug,fields.authorId,fields.answers,fields.isEdited,fields.projectNames",SKIP:0},ANSWERS:{TYPE:"qaAnswer"},REPLIES:{TYPE:"reply"},LEARNING_HUB:{TYPE:"learningHub"}},HUBSPOT:{ENVIRONMENTS_MAPPING:{local:"SANDBOX",beta:"SANDBOX",rc:"SANDBOX",live:"LIVE"},EMAIL_IDS:{SANDBOX:{internalEmailId:49099078634,externalEmailId:55196526554},LIVE:{internalEmailId:55233583049,externalEmailId:55231159239}}},USERS:{MYSELF:"me"}};const{APOLITICAL:{WEBSITES:{LIVE:S,LOCALHOST:v,STAGING:b,STAGING_SPLITTER:T},ENVIRONMENTS:{PRODUCTION:w,LOCAL:N}}}=_,{HUBSPOT:{ENVIRONMENTS_MAPPING:R,EMAIL_IDS:L}}=_;let $={emailIds:{}};var G=d(300),q=d.n(G);const H=async F=>{try{const{message:B,response:D,request:V}=F;let re=B;return D?re+=` - The request was made and the server responded with ${JSON.stringify({status:D.status,data:D.data})}`:V&&(re+=" - The request was made but no response was received"),console.warn(re),await(0,p.reportError)(new Error(re)),re}catch(B){return console.warn(`Cannot handle error: ${B.message}`),B.message}},{APIS:{ASSETS_API:{BASE_URL:Y,ENDPOINTS:{USERS:ie,CERTIFICATES:K}}}}=_;var k={certificates:{create:async(F,B)=>{let D=[];try{const{data:V}=await q().post(`${Y}${ie}/${F}${K}`,B);V&&(D=V)}catch(V){await H(V)}return D}}};const{APIS:{AUTH_API:{BASE_URL:Q,ENDPOINTS:{USER_PASSWORD:ee,USERS:he}}},USERS:{MYSELF:Z}}=_;var X={userPassword:{update:async F=>{let B=null;try{B=await q().put(`${Q}${he}/${Z}${ee}`,F)}catch(D){B={message:(((D||{}).response||{}).data||{}).message},await H(D)}return B}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:le,ENDPOINTS:{ANSWERS:de,QUESTIONS:Ve,LIKES:te}}}}=_,ae=`${le}${Ve}`;var De={create:async({questionSlug:F},B)=>{try{await q().post(`${ae}/${encodeURIComponent(F)}${de}`,B)}catch(D){const V=await H(D);throw new Error(V)}},remove:async({questionSlug:F,answerSlug:B})=>{try{await q().delete(`${ae}/${encodeURIComponent(F)}${de}/${encodeURIComponent(B)}`)}catch(D){const V=await H(D);throw new Error(V)}},update:async({questionSlug:F,answerSlug:B},D)=>{try{return await q().put(`${ae}/${encodeURIComponent(F)}${de}/${encodeURIComponent(B)}`,D)}catch(V){const re=await H(V);throw new Error(re)}},like:async({questionSlug:F,answerSlug:B},D)=>{try{return await q().post(`${ae}/${encodeURIComponent(F)}${de}/${encodeURIComponent(B)}${te}`,D)}catch(V){const re=await H(V);throw new Error(re)}},unlike:async({questionSlug:F,answerSlug:B})=>{try{return await q().delete(`${ae}/${encodeURIComponent(F)}${de}/${encodeURIComponent(B)}${te}`)}catch(D){const V=await H(D);throw new Error(V)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Ie,ENDPOINTS:{QUESTIONS:Tt}}}}=_,Ct=`${Ie}${Tt}`;var Gt={create:async F=>{try{return await q().post(Ct,F)}catch(B){const D=await H(B);throw new Error(D)}},remove:async({questionSlug:F})=>{try{await q().delete(`${Ct}/${encodeURIComponent(F)}`)}catch(B){const D=await H(B);throw new Error(D)}},update:async({questionSlug:F},B)=>{try{return await q().put(`${Ct}/${encodeURIComponent(F)}`,B)}catch(D){const V=await H(D);throw new Error(V)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:oe,ENDPOINTS:{REPLIES:st,ANSWERS:Je,QUESTIONS:Vt,LIKES:wr}}}}=_,er=`${oe}${Vt}`,kt=({questionSlug:F,answerSlug:B,replySlug:D},V=!1)=>{let re=`${er}/${encodeURIComponent(F)}${Je}/${encodeURIComponent(B)}${st}`;return D&&(re=`${re}/${encodeURIComponent(D)}`,V&&(re=`${re}${wr}`)),re};var yn={create:async({questionSlug:F,answerSlug:B},D)=>{try{return await q().post(kt({questionSlug:F,answerSlug:B}),D)}catch(V){const re=await H(V);throw new Error(re)}},update:async({questionSlug:F,answerSlug:B,replySlug:D},V)=>{try{return await q().put(kt({questionSlug:F,answerSlug:B,replySlug:D}),V)}catch(re){const Ne=await H(re);throw new Error(Ne)}},remove:async({questionSlug:F,answerSlug:B,replySlug:D})=>{try{await q().delete(kt({questionSlug:F,answerSlug:B,replySlug:D}))}catch(V){const re=await H(V);throw new Error(re)}},like:async({questionSlug:F,answerSlug:B,replySlug:D},V)=>{try{await q().post(kt({questionSlug:F,answerSlug:B,replySlug:D},!0),V)}catch(re){const Ne=await H(re);throw new Error(Ne)}},unlike:async({questionSlug:F,answerSlug:B,replySlug:D})=>{try{await q().delete(kt({questionSlug:F,answerSlug:B,replySlug:D},!0))}catch(V){const re=await H(V);throw new Error(re)}},getReplyUrl:kt};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Wt,ENDPOINTS:{QUESTIONS:Mt,ANSWERS:Ze,LIKES:zt}}}}=_,yt=`${Wt}${Mt}`;var at={answers:De,questions:Gt,replies:yn,likes:{create:async(F,B)=>{try{return await q().post(`${yt}/${encodeURIComponent(F)}${Ze}/${encodeURIComponent(B)}${zt}`)}catch(D){const V=await H(D);throw new Error(V)}},remove:async(F,B)=>{try{return await q().delete(`${yt}/${encodeURIComponent(F)}${Ze}/${encodeURIComponent(B)}${zt}`)}catch(D){const V=await H(D);throw new Error(V)}}}};const{APIS:{FEATURES_API:{BASE_URL:vn,ENDPOINTS:{FLAGS:x}}}}=_,g=`${vn}${x}`;var E={flags:{read:async F=>{let B=null;try{const{data:D}=await q().get(`${g}/${encodeURIComponent(F)}`);D!=null&&D.name&&(D!=null&&D.featureState)&&(B=D)}catch(D){await H(D)}return B}}};const{APIS:{MANAGEMENT_API:{BASE_URL:C,ENDPOINTS:{ACCOUNTS:M}}}}=_;var j={create:async F=>{try{await q().post(`${C}${M}`,F)}catch(B){throw await H(B),B}},read:async F=>{let B=null;try{({data:B}=await q().get(`${C}${M}/${encodeURIComponent(F)}`))}catch(D){await H(D)}return B},update:async(F,B)=>{try{await q().put(`${C}${M}/${encodeURIComponent(F)}`,B)}catch(D){throw await H(D),D}}};const{APIS:{MANAGEMENT_API:{BASE_URL:z,ENDPOINTS:{BULK_ENROLMENTS:me}}}}=_;var Ce={create:async F=>{try{await q().post(`${z}${me}`,F)}catch(B){throw await H(B),B}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Re,ENDPOINTS:{EVENT_REGISTRATIONS:Pe}}}}=_;var Ee={create:async F=>{try{await q().post(`${Re}${Pe}`,F)}catch(B){const D=await H(B);throw new Error(D)}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Rt,ENDPOINTS:{LOGINS:Hr,LOGIN_PASSWORDLESS:En}}}}=_,Sr=`${Rt}${Hr}`;var _n={accounts:j,bulkEnrolments:Ce,eventRegistrations:Ee,passwordless:{update:async F=>{try{await q().put(`${Sr}/${encodeURIComponent(F)}${En}`)}catch(B){throw await H(B),B}}}};const{APIS:{PAYMENTS_API:{BASE_URL_V2:Tr,ENDPOINTS:{PRODUCTS:bn}}}}=_,wn=`${Tr}${bn}`;var Sn={products:{list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await q().get(wn,D);V&&V.length&&(B=V)}catch(V){await H(V)}return B}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:tr,ENDPOINTS:{BULK_ENROLMENTS:li}}}}=_;var Qt={list:async F=>{let B=[];try{const{data:D}=await q().get(`${tr}${li}`,{params:F});D&&D.length&&(B=D)}catch(D){await H(D)}return B}},vo=d(25);const{OK:Eo,MULTIPLE_CHOICES:_o,NOT_FOUND:fi,FORBIDDEN:Tn}=vo.StatusCodes,We=F=>F>=Eo&&F<_o||F===Tn||F===fi,{APIS:{PEOPLE_API:{BASE_URL_V2:xn,ENDPOINTS:{USERS:On}}}}=_,xr=async F=>{let B=null;try{const{data:D}=await q().get(`${xn}${On}/${encodeURIComponent(F)}`,{validateStatus:We});D&&D.id&&(B=D)}catch(D){await H(D)}return B},hi=async F=>{let B=[];try{if(F&&F.length<2)throw new Error("users list method requires at least two ids");const D=F.map(re=>`ids=${encodeURIComponent(re)}`).join("&"),V=await q().get(`${xn}${On}?${D}`,{validateStatus:We});V&&V.length&&(B=V)}catch(D){await H(D)}return B};var bo={read:xr,update:async(F,B)=>{let D=!1;try{const{data:V}=await q().put(`${xn}${On}/${encodeURIComponent(F)}`,B);D=!(!V||!V.id)}catch(V){await H(V)}return D},list:hi};const{APIS:{PEOPLE_API:{BASE_URL_V2:et,ENDPOINTS:{USERS:wo,USER_LIKES:So}}},USERS:{MYSELF:To}}=_,xo=`${et}${wo}/${To}${So}`,An=async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await q().get(xo,D);V&&V.length&&(B=V)}catch(V){await H(V)}return B};var ht={list:An},Oo={authors:{readQuestionAuthors:async(F,B,D)=>{try{if(F.author=await xr(F.authorId),F.answers&&F.answers.length&&!D.ignoreAnswersAuthors){F.answers.sort((re,Ne)=>new Date(Ne.updatedAt)-new Date(re.updatedAt)),F.totalAnswers=F.answers.length;let V=F.answers;if(D.limit&&D.pageNumber){const re=D.limit*(D.pageNumber-1);V=F.answers.slice(re,re+D.limit)}for(let re of V){re.author=re.authorId&&await xr(re.authorId)||{};const[Ne]=B?await An({contentType:_.CONTENTFUL.ANSWERS.TYPE,contentSlug:re.slug}):[null];re.userLiked=!!Ne}F.answers=V}else F.answers||(F.answers=[]);return F}catch(V){throw await H(V),new Error(`Cannot read authors for question: ${V.message}`)}},readAuthors:async(F=[])=>{let B=[];try{if(Array.isArray(F)===!1)throw new Error("authorIds is not an array!");if(F&&F.length===1){const D=await xr(F[0]);D&&B.push(D)}else if(F&&F.length>1){const D=await hi(F);D&&D.length>0&&(B=D)}}catch(D){throw await H(D),new Error(`Cannot read authors: ${D.message}`)}return B}}};const{APIS:{PEOPLE_API:{BASE_URL:Ao,ENDPOINTS:{REGISTRATIONS:Co}}}}=_;var Ro={list:async F=>{let B=[];try{const{data:D}=await q().get(`${Ao}${Co}`,{params:F});D&&D.length&&(B=D)}catch(D){await H(D)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Po,ENDPOINTS:{USERS:qr,USER_COURSES:di}}},USERS:{MYSELF:Gr}}=_,xt=`${Po}${qr}/${Gr}${di}`;var Cn={create:async F=>{try{await q().post(xt,F)}catch(B){await H(B)}},list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await q().get(xt,D);V&&V.length&&(B=V)}catch(V){await H(V)}return B},update:async(F,B)=>{try{await q().put(`${xt}/${F}`,B)}catch(D){await H(D)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:No,ENDPOINTS:{USERS:Io,USER_EVENTS:Lo}}},USERS:{MYSELF:ko}}=_,Mo=`${No}${Io}/${ko}${Lo}`;var Vr={list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await q().get(Mo,D);V&&V.length&&(B=V)}catch(V){await H(V)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Rn,ENDPOINTS:{USERS:Or,USER_LESSONS:pi}}},USERS:{MYSELF:mi}}=_,gi=`${Rn}${Or}/${mi}${pi}`;var Fo={create:async F=>{let B=null;try{B=await q().post(gi,F)}catch(D){await H(D)}return B},list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await q().get(gi,D);V&&V.length&&(B=V)}catch(V){await H(V)}return B}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Do,ENDPOINTS:{USERS:Bo,USER_PRODUCTS:Pn}}},USERS:{MYSELF:Uo}}=_,Nn=`${Do}${Bo}/${Uo}${Pn}`;var Ar={create:async F=>{let B=null;try{B=await q().post(Nn,F)}catch(D){await H(D)}return B},list:async F=>{let B=[],D=F?{params:F}:{params:{}};try{const{data:V}=await q().get(Nn,D);V&&V.length&&(B=V)}catch(V){await H(V)}return B},update:async(F,B)=>{try{await q().put(`${Nn}/${F}`,B)}catch(D){await H(D)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Pt,ENDPOINTS:{USERS:Yt,USER_RATINGS:Kt}}},USERS:{MYSELF:$o}}=_,Nt=`${Pt}${Yt}/${$o}${Kt}`;var rr={bulkEnrolments:Qt,handlers:Oo,registrations:Ro,users:bo,userCourses:Cn,userEvents:Vr,userLessons:Fo,userLikes:ht,userProducts:Ar,userRatings:{create:async F=>{let B=null;try{const{data:D}=await q().post(Nt,F);D!=null&&D.id&&(B=D)}catch(D){await H(D)}return B},update:async(F,B)=>{try{await q().put(`${Nt}/${F}`,B)}catch(D){await H(D)}}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:jo,ENDPOINTS:{ENQUIRY_EMAILS:Ho}}}}=_;var qo={create:async F=>{let B=null;try{const{data:D}=await q().post(`${jo}${Ho}`,F);D&&(B=D)}catch(D){await H(D)}return B}},yi={forms:{sendEnquiryEmails:async F=>{let B=null;try{const{emailIds:D}=$;B=await zr.emails.create({...D,...F})}catch(D){await H(D)}return B}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:ut,ENDPOINTS:{USERS:vi,USER_PROPERTIES:Ei}}},USERS:{MYSELF:Wr}}=_;var zr={emails:qo,handlers:yi,userProperties:{update:async(F,B)=>{try{await q().put(`${ut}${vi}/${Wr}${Ei}/${F}`,B)}catch(D){await H(D)}}}},Qr=d(130);const{APIS:{SEARCH_API:{BASE_URL:Go,ENDPOINTS:{SEARCH:_i}}}}=_,In=`${Go}${_i}`;var bi={ask:async F=>{try{let B=null;const{data:D}=await q().get(In,{params:{question:F}});return D!=null&&D.answer&&(D!=null&&D.references)&&(D!=null&&D.version)&&(B=D),B}catch(B){const D=await H(B);throw new Error(D)}},stream:(F,B,D)=>{const V=(0,Qr.io)(void 0,{path:"/api/search-api/web-sockets"});function re(){V.emit("search",{question:F})}function Ne(qe){D(qe),$e(),V.disconnect()}function $e(){V.off("connect",re),V.off("update",B),V.off("result",Ne)}return V.on("connect",re),V.on("update",B),V.on("result",Ne),$e}};const{CONTENTFUL:Ft}=_,{CARD_TYPES:Ln}=Ft.CAROUSELS;var Si={read:async(F,B)=>{try{if(!B||!B.sys||!B.sys.id)throw new Error("Invalid link to card");if(!F||!Ln[F])throw new Error("Unsupported card content type");const{INCLUDE:D,SELECT:V}=Ln[F];return await(0,f.getEntry)({content_type:F,"sys.id":B.sys.id,include:D,select:V},{assetDetails:!0})}catch(D){throw await H(D),new Error(`Cannot read carousel card: ${D.message}`)}}};const{CONTENTFUL:Vo}=_,{INCLUDE:y,SELECT:A,TYPE:I}=Vo.EDITORIAL_PAGES;var W={read:async F=>{try{return await(0,f.getEntry)({content_type:I,"fields.slug":F,include:y,select:A})}catch(B){throw await H(B),new Error(`Cannot read editorial page: ${B.message}`)}}};const{CONTENTFUL:ge}=_,{TYPE:ce,ORDER:_e,SELECT:be,SKIP:He,LIMIT:Ae,INCLUDE:tt}=ge.QUESTIONS;var ct={read:async F=>{try{return await(0,f.getEntry)({content_type:ce,"fields.slug":F,include:2,select:be})}catch(B){throw await H(B),new Error(`Cannot read question: ${B.message}`)}},list:async(F={})=>{try{return await(0,f.getEntries)({content_type:ce,include:tt,limit:Ae,order:_e,select:be,skip:He,...F})}catch(B){throw await H(B),new Error(`Cannot list questions: ${B.message}`)}}},Ge=async(F,B,D={ignoreAnswersAuthors:!1})=>{try{let V={};return V=await ct.read(F),V=await rr.handlers.authors.readQuestionAuthors(V,B,D),V}catch(V){throw await H(V),new Error(`Cannot build question: ${V.message}`)}};const{ARTICLES:{TYPE:rt},COURSES:{TYPE:Qe},EVENTS:{TYPE:nr},LISTS:{TYPE:Xt},QUESTIONS:{TYPE:Cr},LEARNING_HUB:{TYPE:sa}}=_.CONTENTFUL,ir=F=>F&&F.url?(Object.assign(F,{aspect:"responsiveCard",query:"q=90&fit=fill"}),F):null,Yr={[rt]:async F=>{const{authorIds:B,authorTag:D,image:V,publishedDate:re,readingTime:Ne,slug:$e,title:qe}=F,It=await rr.handlers.authors.readAuthors(B),or=It&&It.length?It:D?[D]:null;return{banner:ir(V),contributors:or,publishedDate:re,readingTime:Ne,slug:$e,title:qe}},[Qe]:async(F,B)=>{const{banner:D,freeCourse:V,partnershipDetails:re,slug:Ne,title:$e,registered:qe}=F,It={banner:ir(D),slug:Ne,title:$e,pill:V?"free":"premium",registered:!!qe};if(re){const{partners:or}=re;It.partner=or&&or.length&&re.partners[0]}if(qe===void 0&&B){const[or]=await rr.userProducts.list({courseSlug:Ne,isEnrolled:!0,scope:"active"});It.registered=!!or}return It},[nr]:async(F,B)=>{const{bannerImage:D,defaultStartDate:V,isEventOngoing:re,slug:Ne,speakers:$e,title:qe,registered:It}=F,or=new Date(V),LE=!!or&&or<new Date;if($e&&$e.length)for(const aa of $e)aa.image=(Lu=aa.image)&&Lu.url?`${Lu.url}?w=100&h=100&fit=thumb&f=center`:null;var Lu;const mh={banner:ir(D),dateHasPassed:LE,title:qe,slug:Ne,isOngoingEvent:re,contributors:$e,startDate:or,registered:!!It};if(It===void 0&&B){const[aa]=await rr.userEvents.list({eventSlug:Ne});mh.registered=!!aa}return mh},[Xt]:async F=>{const{hero:B,slug:D,title:V}=F;return{banner:ir(B),slug:D,title:V}},[Cr]:async F=>{const{answers:B,authorId:D,createdAt:V,slug:re,title:Ne}=F;let $e=null;if(D){const qe=await rr.users.read(D);qe&&($e=qe)}return{answers:B&&B.length?B.length:0,contributors:$e?[$e]:[],createdAt:V,slug:re,title:Ne}},[sa]:F=>{const{bannerSection:B,customLabel:D,slug:V,title:re}=F;return{banner:ir(B.image),slug:V,title:re,customLabel:D}},people:F=>{const{id:B,name:D,jobTitle:V,location:re,image:Ne}=F;return{profile:Ne,slug:B,title:D,text:V,secondaryText:re}}};var CE=async({contentType:F,...B}={},D)=>{try{if(!Yr[F])throw new Error("Content type not supported");if(typeof Yr[F]!="function")throw new Error("No builder function for content type");return F!=="people"&&B.sys&&B.sys.type&&B.sys.type==="Link"&&(B=await Si.read(F,B)),{contentType:F,...await Yr[F](B,D)}}catch(V){throw await H(V),new Error(`Cannot build carousel card: ${V.message}`)}},RE=async(F,B,D={})=>{try{if(!F.replies||F.replies.length===0)return F.replies=[],F;F.replies.sort((re,Ne)=>new Date(re.createdAt)-new Date(Ne.createdAt)),F.totalReplies=F.totalReplies||F.replies.length;let V=F.replies;if(D.limit&&D.pageNumber){const re=D.limit*(D.pageNumber-1);V=F.replies.slice(re,re+D.limit)}for(const re of V){if(re.authorId===F.authorId){re.author=F.author,re.userLiked=!1;continue}re.author=re.authorId&&await xr(re.authorId)||{};const[Ne]=B?await An({contentType:_.CONTENTFUL.REPLIES.TYPE,contentSlug:re.slug}):[null];re.userLiked=!!Ne}return F.replies=V,F}catch(V){throw await H(V),new Error(`Cannot build replies for answer: ${V.message}`)}},PE=d(408);const NE=F=>F&&PE.Buffer.from(F,"base64").toString("ascii");function IE({contentContext:F=null,errorsContext:B=null,gtmContext:D=null,origin:V}){try{const re=(Ne=>{let $e=null;Ne?$e=Ne:typeof window<"u"&&($e=window.origin||window.location.origin),$e||new Error("Cannot select environment: Website not defined");let qe=null;const It=$e.match(b);return It?qe=It[1].split(T)[0]:$e===S?qe=w:$e.includes(v)&&(qe=N),qe||new Error(`Cannot select environment: No rule for website ${$e}`),qe})(V);return F&&(0,f.setContext)(Object.assign({},F,{environment:re})),B&&(0,p.setContext)(Object.assign({},B,{environment:re})),D&&((0,m.setContext)(Object.assign({},D,{environment:re})),(0,m.setupGTM)()),(({environment:Ne})=>{const $e=(qe=>{if(!qe)throw new Error("Cannot map environment: Environment not defined");if(!R[qe])throw new Error(`Cannot map environment: No mapping found for environment ${qe}`);return R[qe]})(Ne);$.emailIds=L[$e]})(Object.assign({},{environment:re})),re}catch(re){console.warn(`Cannot load SDK: ${re.message}`)}}}(),h}()})})(mg);var cx=mg.exports;const gs={Off:"off",On:"on",Cookie:"cookie"},lx=e=>{const[t]=pg(),[r,n]=U.useState(null),[o,i]=U.useState(!1),[a,s]=U.useState(gs.Off);return U.useEffect(()=>{e&&cx.features.flags.read(e).then(c=>{s(c.featureState),n(null)}).catch(c=>{s(gs.Off),n(c)})},[e]),U.useEffect(()=>{switch(a){case gs.Off:i(!1);break;case gs.On:i(!0);break;case gs.Cookie:i(!!t[`feature-${e}`]);break;default:i(!1)}},[a,t]),{isFeatureActive:o,error:r}};function fx(e,t,r){var n=this,o=U.useRef(null),i=U.useRef(0),a=U.useRef(null),s=U.useRef([]),c=U.useRef(),l=U.useRef(),u=U.useRef(e),d=U.useRef(!0);U.useEffect(function(){u.current=e},[e]);var h=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var f=!!(r=r||{}).leading,p=!("trailing"in r)||!!r.trailing,m="maxWait"in r,_=m?Math.max(+r.maxWait||0,t):null;U.useEffect(function(){return d.current=!0,function(){d.current=!1}},[]);var S=U.useMemo(function(){var v=function(L){var $=s.current,G=c.current;return s.current=c.current=null,i.current=L,l.current=u.current.apply(G,$)},b=function(L,$){h&&cancelAnimationFrame(a.current),a.current=h?requestAnimationFrame(L):setTimeout(L,$)},T=function(L){if(!d.current)return!1;var $=L-o.current;return!o.current||$>=t||$<0||m&&L-i.current>=_},w=function(L){return a.current=null,p&&s.current?v(L):(s.current=c.current=null,l.current)},N=function L(){var $=Date.now();if(T($))return w($);if(d.current){var G=t-($-o.current),q=m?Math.min(G,_-($-i.current)):G;b(L,q)}},R=function(){var L=Date.now(),$=T(L);if(s.current=[].slice.call(arguments),c.current=n,o.current=L,$){if(!a.current&&d.current)return i.current=o.current,b(N,t),f?v(o.current):l.current;if(m)return b(N,t),v(o.current)}return a.current||b(N,t),l.current};return R.cancel=function(){a.current&&(h?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,s.current=o.current=c.current=a.current=null},R.isPending=function(){return!!a.current},R.flush=function(){return a.current?w(Date.now()):l.current},R},[f,m,t,_,p,h]);return S}function fv(e,t,r){var n=r===void 0?{}:r,o=n.leading,i=n.trailing;return fx(e,t,{maxWait:t,leading:o===void 0||o,trailing:i===void 0||i})}let Jc;const ta=(e=!0,t=!1)=>{if(!e)return;const[r,n]=U.useState(0)||[!1,()=>{}];U.useEffect(()=>(i(),window.addEventListener("resize",a),()=>{clearTimeout(Jc),a.flush(),window.removeEventListener("resize",a)}),[]);const o=()=>window.innerWidth,i=()=>{n(o())},a=fv(()=>{o()!==r&&(t&&(clearTimeout(Jc),document.body.classList.add("is-resizing"),Jc=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),i())},500,{leading:!0});return r},hv=({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,()=>{}],[a,s]=U.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];U.useEffect(()=>(c(),window.addEventListener("scroll",l),()=>{l.flush(),window.removeEventListener("scroll",l)}),[]);const c=()=>{const u=window.scrollY,d=o.current,h=u-d,f=h>0?"down":"up";if(i({current:u,past:d}),f==="down"){u>=e+t.down&&!a.scrollDown&&(!a.scrollUp||h>t.up)&&(r(),s({scrollUp:!1,scrollDown:!0}));return}Math.abs(h)>=t.up&&!a.scrollUp&&(n(),s({scrollUp:!0,scrollDown:!1}))},l=fv(()=>{c()},250);return o},hx=(e=[],t=!0)=>{e=Array.isArray(e)?e:[e];const r=U.useRef(!1);ri(()=>{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 Ka={exports:{}};Ka.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",u="[object Function]",d="[object GeneratorFunction]",h="[object Map]",f="[object Number]",p="[object Object]",m="[object Promise]",_="[object RegExp]",S="[object Set]",v="[object String]",b="[object Symbol]",T="[object WeakMap]",w="[object ArrayBuffer]",N="[object DataView]",R="[object Float32Array]",L="[object Float64Array]",$="[object Int8Array]",G="[object Int16Array]",q="[object Int32Array]",H="[object Uint8Array]",Y="[object Uint8ClampedArray]",ie="[object Uint16Array]",K="[object Uint32Array]",k=/[\\^$.*+?()[\]{}|]/g,Q=/\w*$/,ee=/^\[object .+?Constructor\]$/,he=/^(?:0|[1-9]\d*)$/,Z={};Z[i]=Z[a]=Z[w]=Z[N]=Z[s]=Z[c]=Z[R]=Z[L]=Z[$]=Z[G]=Z[q]=Z[h]=Z[f]=Z[p]=Z[_]=Z[S]=Z[v]=Z[b]=Z[H]=Z[Y]=Z[ie]=Z[K]=!0,Z[l]=Z[u]=Z[T]=!1;var X=typeof fe=="object"&&fe&&fe.Object===Object&&fe,le=typeof self=="object"&&self&&self.Object===Object&&self,de=X||le||Function("return this")(),Ve=t&&!t.nodeType&&t,te=Ve&&!0&&e&&!e.nodeType&&e,ae=te&&te.exports===Ve;function De(y,A){return y.set(A[0],A[1]),y}function Ie(y,A){return y.add(A),y}function Tt(y,A){for(var I=-1,W=y?y.length:0;++I<W&&A(y[I],I,y)!==!1;);return y}function Ct(y,A){for(var I=-1,W=A.length,ge=y.length;++I<W;)y[ge+I]=A[I];return y}function Gt(y,A,I,W){var ge=-1,ce=y?y.length:0;for(W&&ce&&(I=y[++ge]);++ge<ce;)I=A(I,y[ge],ge,y);return I}function oe(y,A){for(var I=-1,W=Array(y);++I<y;)W[I]=A(I);return W}function st(y,A){return y==null?void 0:y[A]}function Je(y){var A=!1;if(y!=null&&typeof y.toString!="function")try{A=!!(y+"")}catch{}return A}function Vt(y){var A=-1,I=Array(y.size);return y.forEach(function(W,ge){I[++A]=[ge,W]}),I}function wr(y,A){return function(I){return y(A(I))}}function er(y){var A=-1,I=Array(y.size);return y.forEach(function(W){I[++A]=W}),I}var kt=Array.prototype,yn=Function.prototype,Wt=Object.prototype,Mt=de["__core-js_shared__"],Ze=function(){var y=/[^.]+$/.exec(Mt&&Mt.keys&&Mt.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),zt=yn.toString,yt=Wt.hasOwnProperty,at=Wt.toString,vn=RegExp("^"+zt.call(yt).replace(k,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=ae?de.Buffer:void 0,g=de.Symbol,E=de.Uint8Array,C=wr(Object.getPrototypeOf,Object),M=Object.create,j=Wt.propertyIsEnumerable,z=kt.splice,me=Object.getOwnPropertySymbols,Ce=x?x.isBuffer:void 0,Re=wr(Object.keys,Object),Pe=Pt(de,"DataView"),Ee=Pt(de,"Map"),Rt=Pt(de,"Promise"),Hr=Pt(de,"Set"),En=Pt(de,"WeakMap"),Sr=Pt(Object,"create"),_n=ut(Pe),Tr=ut(Ee),bn=ut(Rt),wn=ut(Hr),Sn=ut(En),tr=g?g.prototype:void 0,li=tr?tr.valueOf:void 0;function Qt(y){var A=-1,I=y?y.length:0;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function vo(){this.__data__=Sr?Sr(null):{}}function Eo(y){return this.has(y)&&delete this.__data__[y]}function _o(y){var A=this.__data__;if(Sr){var I=A[y];return I===n?void 0:I}return yt.call(A,y)?A[y]:void 0}function fi(y){var A=this.__data__;return Sr?A[y]!==void 0:yt.call(A,y)}function Tn(y,A){var I=this.__data__;return I[y]=Sr&&A===void 0?n:A,this}Qt.prototype.clear=vo,Qt.prototype.delete=Eo,Qt.prototype.get=_o,Qt.prototype.has=fi,Qt.prototype.set=Tn;function We(y){var A=-1,I=y?y.length:0;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function xn(){this.__data__=[]}function On(y){var A=this.__data__,I=Gr(A,y);if(I<0)return!1;var W=A.length-1;return I==W?A.pop():z.call(A,I,1),!0}function xr(y){var A=this.__data__,I=Gr(A,y);return I<0?void 0:A[I][1]}function hi(y){return Gr(this.__data__,y)>-1}function bo(y,A){var I=this.__data__,W=Gr(I,y);return W<0?I.push([y,A]):I[W][1]=A,this}We.prototype.clear=xn,We.prototype.delete=On,We.prototype.get=xr,We.prototype.has=hi,We.prototype.set=bo;function et(y){var A=-1,I=y?y.length:0;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function wo(){this.__data__={hash:new Qt,map:new(Ee||We),string:new Qt}}function So(y){return Ar(this,y).delete(y)}function To(y){return Ar(this,y).get(y)}function xo(y){return Ar(this,y).has(y)}function An(y,A){return Ar(this,y).set(y,A),this}et.prototype.clear=wo,et.prototype.delete=So,et.prototype.get=To,et.prototype.has=xo,et.prototype.set=An;function ht(y){this.__data__=new We(y)}function Oo(){this.__data__=new We}function Ao(y){return this.__data__.delete(y)}function Co(y){return this.__data__.get(y)}function Ro(y){return this.__data__.has(y)}function Po(y,A){var I=this.__data__;if(I instanceof We){var W=I.__data__;if(!Ee||W.length<r-1)return W.push([y,A]),this;I=this.__data__=new et(W)}return I.set(y,A),this}ht.prototype.clear=Oo,ht.prototype.delete=Ao,ht.prototype.get=Co,ht.prototype.has=Ro,ht.prototype.set=Po;function qr(y,A){var I=zr(y)||Wr(y)?oe(y.length,String):[],W=I.length,ge=!!W;for(var ce in y)(A||yt.call(y,ce))&&!(ge&&(ce=="length"||jo(ce,W)))&&I.push(ce);return I}function di(y,A,I){var W=y[A];(!(yt.call(y,A)&&Ei(W,I))||I===void 0&&!(A in y))&&(y[A]=I)}function Gr(y,A){for(var I=y.length;I--;)if(Ei(y[I][0],A))return I;return-1}function xt(y,A){return y&&Pn(A,wi(A),y)}function Cn(y,A,I,W,ge,ce,_e){var be;if(W&&(be=ce?W(y,ge,ce,_e):W(y)),be!==void 0)return be;if(!Ft(y))return y;var He=zr(y);if(He){if(be=$o(y),!A)return Bo(y,be)}else{var Ae=Kt(y),tt=Ae==u||Ae==d;if(_i(y))return Vr(y,A);if(Ae==p||Ae==i||tt&&!ce){if(Je(y))return ce?y:{};if(be=Nt(tt?{}:y),!A)return Uo(y,xt(be,y))}else{if(!Z[Ae])return ce?y:{};be=rr(y,Ae,Cn,A)}}_e||(_e=new ht);var ct=_e.get(y);if(ct)return ct;if(_e.set(y,be),!He)var Ge=I?Nn(y):wi(y);return Tt(Ge||y,function(rt,Qe){Ge&&(Qe=rt,rt=y[Qe]),di(be,Qe,Cn(rt,A,I,W,Qe,y,_e))}),be}function No(y){return Ft(y)?M(y):{}}function Io(y,A,I){var W=A(y);return zr(y)?W:Ct(W,I(y))}function Lo(y){return at.call(y)}function ko(y){if(!Ft(y)||qo(y))return!1;var A=In(y)||Je(y)?vn:ee;return A.test(ut(y))}function Mo(y){if(!yi(y))return Re(y);var A=[];for(var I in Object(y))yt.call(y,I)&&I!="constructor"&&A.push(I);return A}function Vr(y,A){if(A)return y.slice();var I=new y.constructor(y.length);return y.copy(I),I}function Rn(y){var A=new y.constructor(y.byteLength);return new E(A).set(new E(y)),A}function Or(y,A){var I=A?Rn(y.buffer):y.buffer;return new y.constructor(I,y.byteOffset,y.byteLength)}function pi(y,A,I){var W=A?I(Vt(y),!0):Vt(y);return Gt(W,De,new y.constructor)}function mi(y){var A=new y.constructor(y.source,Q.exec(y));return A.lastIndex=y.lastIndex,A}function gi(y,A,I){var W=A?I(er(y),!0):er(y);return Gt(W,Ie,new y.constructor)}function Fo(y){return li?Object(li.call(y)):{}}function Do(y,A){var I=A?Rn(y.buffer):y.buffer;return new y.constructor(I,y.byteOffset,y.length)}function Bo(y,A){var I=-1,W=y.length;for(A||(A=Array(W));++I<W;)A[I]=y[I];return A}function Pn(y,A,I,W){I||(I={});for(var ge=-1,ce=A.length;++ge<ce;){var _e=A[ge],be=W?W(I[_e],y[_e],_e,I,y):void 0;di(I,_e,be===void 0?y[_e]:be)}return I}function Uo(y,A){return Pn(y,Yt(y),A)}function Nn(y){return Io(y,wi,Yt)}function Ar(y,A){var I=y.__data__;return Ho(A)?I[typeof A=="string"?"string":"hash"]:I.map}function Pt(y,A){var I=st(y,A);return ko(I)?I:void 0}var Yt=me?wr(me,Object):Si,Kt=Lo;(Pe&&Kt(new Pe(new ArrayBuffer(1)))!=N||Ee&&Kt(new Ee)!=h||Rt&&Kt(Rt.resolve())!=m||Hr&&Kt(new Hr)!=S||En&&Kt(new En)!=T)&&(Kt=function(y){var A=at.call(y),I=A==p?y.constructor:void 0,W=I?ut(I):void 0;if(W)switch(W){case _n:return N;case Tr:return h;case bn:return m;case wn:return S;case Sn:return T}return A});function $o(y){var A=y.length,I=y.constructor(A);return A&&typeof y[0]=="string"&&yt.call(y,"index")&&(I.index=y.index,I.input=y.input),I}function Nt(y){return typeof y.constructor=="function"&&!yi(y)?No(C(y)):{}}function rr(y,A,I,W){var ge=y.constructor;switch(A){case w:return Rn(y);case s:case c:return new ge(+y);case N:return Or(y,W);case R:case L:case $:case G:case q:case H:case Y:case ie:case K:return Do(y,W);case h:return pi(y,W,I);case f:case v:return new ge(y);case _:return mi(y);case S:return gi(y,W,I);case b:return Fo(y)}}function jo(y,A){return A=A??o,!!A&&(typeof y=="number"||he.test(y))&&y>-1&&y%1==0&&y<A}function Ho(y){var A=typeof y;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?y!=="__proto__":y===null}function qo(y){return!!Ze&&Ze in y}function yi(y){var A=y&&y.constructor,I=typeof A=="function"&&A.prototype||Wt;return y===I}function ut(y){if(y!=null){try{return zt.call(y)}catch{}try{return y+""}catch{}}return""}function vi(y){return Cn(y,!0,!0)}function Ei(y,A){return y===A||y!==y&&A!==A}function Wr(y){return Go(y)&&yt.call(y,"callee")&&(!j.call(y,"callee")||at.call(y)==i)}var zr=Array.isArray;function Qr(y){return y!=null&&bi(y.length)&&!In(y)}function Go(y){return Ln(y)&&Qr(y)}var _i=Ce||Vo;function In(y){var A=Ft(y)?at.call(y):"";return A==u||A==d}function bi(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=o}function Ft(y){var A=typeof y;return!!y&&(A=="object"||A=="function")}function Ln(y){return!!y&&typeof y=="object"}function wi(y){return Qr(y)?qr(y):Mo(y)}function Si(){return[]}function Vo(){return!1}e.exports=vi})(Ka,Ka.exports);var dx=Ka.exports;const px=Er(dx);var mx="Expected a function",dv="__lodash_hash_undefined__",pv=1/0,gx=9007199254740991,yx="[object Function]",vx="[object GeneratorFunction]",Ex="[object Symbol]",_x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bx=/^\w*$/,wx=/^\./,Sx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tx=/[\\^$.*+?()[\]{}|]/g,xx=/\\(\\)?/g,Ox=/^\[object .+?Constructor\]$/,Ax=/^(?:0|[1-9]\d*)$/,Cx=typeof fe=="object"&&fe&&fe.Object===Object&&fe,Rx=typeof self=="object"&&self&&self.Object===Object&&self,Bf=Cx||Rx||Function("return this")();function Px(e,t){return e==null?void 0:e[t]}function Nx(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Ix=Array.prototype,Lx=Function.prototype,mv=Object.prototype,Zc=Bf["__core-js_shared__"],Jp=function(){var e=/[^.]+$/.exec(Zc&&Zc.keys&&Zc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),gv=Lx.toString,vu=mv.hasOwnProperty,yv=mv.toString,kx=RegExp("^"+gv.call(vu).replace(Tx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zp=Bf.Symbol,Mx=Ix.splice,Fx=vv(Bf,"Map"),As=vv(Object,"create"),em=Zp?Zp.prototype:void 0,tm=em?em.toString:void 0;function ni(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Dx(){this.__data__=As?As(null):{}}function Bx(e){return this.has(e)&&delete this.__data__[e]}function Ux(e){var t=this.__data__;if(As){var r=t[e];return r===dv?void 0:r}return vu.call(t,e)?t[e]:void 0}function $x(e){var t=this.__data__;return As?t[e]!==void 0:vu.call(t,e)}function jx(e,t){var r=this.__data__;return r[e]=As&&t===void 0?dv:t,this}ni.prototype.clear=Dx;ni.prototype.delete=Bx;ni.prototype.get=Ux;ni.prototype.has=$x;ni.prototype.set=jx;function ho(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 Hx(){this.__data__=[]}function qx(e){var t=this.__data__,r=Eu(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Mx.call(t,r,1),!0}function Gx(e){var t=this.__data__,r=Eu(t,e);return r<0?void 0:t[r][1]}function Vx(e){return Eu(this.__data__,e)>-1}function Wx(e,t){var r=this.__data__,n=Eu(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}ho.prototype.clear=Hx;ho.prototype.delete=qx;ho.prototype.get=Gx;ho.prototype.has=Vx;ho.prototype.set=Wx;function ai(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 zx(){this.__data__={hash:new ni,map:new(Fx||ho),string:new ni}}function Qx(e){return _u(this,e).delete(e)}function Yx(e){return _u(this,e).get(e)}function Kx(e){return _u(this,e).has(e)}function Xx(e,t){return _u(this,e).set(e,t),this}ai.prototype.clear=zx;ai.prototype.delete=Qx;ai.prototype.get=Yx;ai.prototype.has=Kx;ai.prototype.set=Xx;function Jx(e,t,r){var n=e[t];(!(vu.call(e,t)&&Ev(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Eu(e,t){for(var r=e.length;r--;)if(Ev(e[r][0],t))return r;return-1}function Zx(e){if(!Xa(e)||sO(e))return!1;var t=lO(e)||Nx(e)?kx:Ox;return t.test(cO(e))}function eO(e,t,r,n){if(!Xa(e))return e;t=iO(t,e)?[t]:rO(t);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var c=uO(t[o]),l=r;if(o!=a){var u=s[c];l=n?n(u,c,s):void 0,l===void 0&&(l=Xa(u)?u:nO(t[o+1])?[]:{})}Jx(s,c,l),s=s[c]}return e}function tO(e){if(typeof e=="string")return e;if($f(e))return tm?tm.call(e):"";var t=e+"";return t=="0"&&1/e==-pv?"-0":t}function rO(e){return _v(e)?e:aO(e)}function _u(e,t){var r=e.__data__;return oO(t)?r[typeof t=="string"?"string":"hash"]:r.map}function vv(e,t){var r=Px(e,t);return Zx(r)?r:void 0}function nO(e,t){return t=t??gx,!!t&&(typeof e=="number"||Ax.test(e))&&e>-1&&e%1==0&&e<t}function iO(e,t){if(_v(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||$f(e)?!0:bx.test(e)||!_x.test(e)||t!=null&&e in Object(t)}function oO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function sO(e){return!!Jp&&Jp in e}var aO=Uf(function(e){e=hO(e);var t=[];return wx.test(e)&&t.push(""),e.replace(Sx,function(r,n,o,i){t.push(o?i.replace(xx,"$1"):n||r)}),t});function uO(e){if(typeof e=="string"||$f(e))return e;var t=e+"";return t=="0"&&1/e==-pv?"-0":t}function cO(e){if(e!=null){try{return gv.call(e)}catch{}try{return e+""}catch{}}return""}function Uf(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(mx);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new(Uf.Cache||ai),r}Uf.Cache=ai;function Ev(e,t){return e===t||e!==e&&t!==t}var _v=Array.isArray;function lO(e){var t=Xa(e)?yv.call(e):"";return t==yx||t==vx}function Xa(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function fO(e){return!!e&&typeof e=="object"}function $f(e){return typeof e=="symbol"||fO(e)&&yv.call(e)==Ex}function hO(e){return e==null?"":tO(e)}function dO(e,t,r){return e==null?e:eO(e,t,r)}var pO=dO;const mO=Er(pO),gO=(e,t)=>{Array.isArray(t)||(t=[t]);const r=px(e);return t.forEach(({type:n,value:o})=>{mO(r,n,o)}),r},bv=e=>{const t=[];return e.forEach(r=>{const n=parseInt(r);isNaN(n)||t.push(n)}),t.sort((r,n)=>r-n)},wv=(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},yO=(e,t="en")=>new Date(e).toLocaleString(t,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),vO=e=>{let i;try{i=new Date().getTime()-new Date(e).getTime()}catch{return""}const a=i/36e5,s=Math.floor(i/864e5);if(s<1)return a<1?{path:"now"}:{path:"hours",number:Math.floor(a)};if(s<7)return{path:"days",number:s};const c=Math.floor(s/7);return c<=52?{path:"weeks",number:c}:{path:"years",number:Math.floor(s/365)}},EO=e=>new Promise(t=>setTimeout(t,e)),jf={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..."},_O={collapsibleSection_summary:"En savoir plus"},bO=Object.freeze(Object.defineProperty({__proto__:null,en:jf,fr:_O},Symbol.toStringTag,{value:"Module"})),ar=(e,t,r,n,o={})=>{let i="";return`${t}_${r}`in jf?i=e({id:`${t}_${r}`},o):i=e({id:t},{[n]:r,...o}),i},wO=(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},Sv=(e,t)=>U.Children.map(e,r=>U.cloneElement(r,{...t})),SO=e=>e.replace(/\s+/g,"").length>0,ze=({variant:e="primary",size:t="medium",styling:r={muted:!1,fullWidth:!1},icon:n=!1,href:o=!1,element:i="button",onClick:a=!1,className:s="",disabled:c=!1,screenreaderText:l=!1,children:u=!1,...d})=>{const f=ta(typeof t=="object");if(typeof t=="object"&&typeof f=="number"){const _=Object.assign({},t),S=bv(Object.keys(_));t=wv(f,S,_)}const p=[];typeof t=="string"&&p.push(t),n&&(p.push("icon"),typeof n=="object"?(p.push(n.icon),n.position?p.push(n.position):p.push("left"),n.hover&&p.push(`hover_${n.hover}`),n.animate&&(p.push("animate"),typeof n.animate=="string"&&p.push(n.animate))):(p.push(n),!n.includes("right")&&!n.includes("left")&&p.push("left"))),r.muted&&p.push("muted"),r.fullWidth&&p.push("full-width");const m={...d,className:se(e,s,p,{"no-text":!u,disabled:c,button:o}),onClick:_=>{(!o||o[0]==="#")&&a&&(_.preventDefault(),_.stopPropagation()),a&&a(_)},disabled:typeof c=="object"&&"isClickable"in c?!c.isClickable:c};return o&&(i="a",m.href=o),U.createElement(i,m,u||(l?O.jsx(lt,{showOnFocus:!1,children:l}):null))},ra=({buttons:e,className:t="",...r})=>{const n=e.length>1?"ul":"p",o=e.map((i,a)=>n==="p"?O.jsx(ze,{...i},a):O.jsx("li",{children:O.jsx(ze,{...i})},a));return U.createElement(n,{className:se("button-wrapper",t),...r,children:o})};const Ja=({maxWidth:e=!1})=>{const t=e?{"--max-width":`${e/16}rem`}:{};return O.jsx("hr",{className:se({"has-max-width":e}),style:t})},bu=({href:e,children:t,className:r="",onClick:n,gtmContext:o,gtmType:i,...a})=>{if(e){const s={...a};return n&&(s.onClick=n),o&&(s["data-gtm-event-context"]=o),i&&(s["data-gtm-event-type"]=i),O.jsx("a",{href:e,className:se("gtm-trackable",r),...s,children:t})}return t},rm={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"}},TO=({aspect:e,range:t,sizes:r})=>{const{range:n,sizes:o}=e?rm[e]:rm.fallback;return{range:t&&t.length>0?t:n,sizes:r||o}},xO=({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},el=({format:e,range:t,url:r,query:n})=>t.map(({height:o,width:i})=>`${r}?${xO({format:e,height:o,query:n,width:i})} ${i}w`).join(", ");const Tv=({image:e,className:t,testId:r})=>{const{description:n,height:o,type:i,query:a,url:s,width:c,loading:l,decoding:u,fetchPriority:d}=e,{range:h,sizes:f}=TO(e),p=el({format:"avif",query:a,range:h,url:s}),m=el({format:"webp",query:a,range:h,url:s}),_=el({format:"",query:a,range:h,url:s});return O.jsxs("picture",{className:t,children:[i!=="image/gif"&&O.jsx("source",{type:"image/avif",srcSet:p,sizes:f,"data-testid":"source"}),O.jsx("source",{type:"image/webp",srcSet:m,sizes:f,"data-testid":"source"}),O.jsx("img",{srcSet:_,sizes:f,src:s,alt:n,loading:l||"lazy",decoding:u||"async",fetchpriority:d||"auto",width:c,height:o,"data-testid":r||"image"})]})};var jl=function(e,t){return jl=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])},jl(e,t)};function Ht(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");jl(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ue=function(){return ue=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},ue.apply(this,arguments)};function io(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 mr(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 xv(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}var Se;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Se||(Se={}));var je;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(je||(je={}));var oo;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(oo||(oo={}));function nm(e){return e.type===je.literal}function OO(e){return e.type===je.argument}function Ov(e){return e.type===je.number}function Av(e){return e.type===je.date}function Cv(e){return e.type===je.time}function Rv(e){return e.type===je.select}function Pv(e){return e.type===je.plural}function AO(e){return e.type===je.pound}function Nv(e){return e.type===je.tag}function Iv(e){return!!(e&&typeof e=="object"&&e.type===oo.number)}function Hl(e){return!!(e&&typeof e=="object"&&e.type===oo.dateTime)}var Lv=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,CO=/(?:[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 RO(e){var t={};return e.replace(CO,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 PO=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function NO(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(PO).filter(function(h){return h.length>0}),r=[],n=0,o=t;n<o.length;n++){var i=o[n],a=i.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var s=a[0],c=a.slice(1),l=0,u=c;l<u.length;l++){var d=u[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:c})}return r}function IO(e){return e.replace(/^(.*?)-/,"")}var im=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,kv=/^(@+)?(\+|#+)?[rs]?$/g,LO=/(\*)(0+)|(#+)(0+)|(0+)/g,Mv=/^(0+)$/;function om(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(kv,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 Fv(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 kO(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)),!Mv.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function sm(e){var t={},r=Fv(e);return r||t}function MO(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=IO(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ue(ue(ue({},t),{notation:"scientific"}),o.options.reduce(function(c,l){return ue(ue({},c),sm(l))},{}));continue;case"engineering":t=ue(ue(ue({},t),{notation:"engineering"}),o.options.reduce(function(c,l){return ue(ue({},c),sm(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(LO,function(c,l,u,d,h,f){if(l)t.minimumIntegerDigits=u.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Mv.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(im.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(im,function(c,l,u,d,h,f){return u==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&f?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+f.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var i=o.options[0];i==="w"?t=ue(ue({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=ue(ue({},t),om(i)));continue}if(kv.test(o.stem)){t=ue(ue({},t),om(o.stem));continue}var a=Fv(o.stem);a&&(t=ue(ue({},t),a));var s=kO(o.stem);s&&(t=ue(ue({},t),s))}return t}var Pa={"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 FO(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if(o==="j"){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(i&1),s=i<2?1:3+(i>>1),c="a",l=DO(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=c;for(;a-- >0;)r=l+r}else o==="J"?r+="H":r+=o}return r}function DO(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=Pa[n||""]||Pa[r||""]||Pa["".concat(r,"-001")]||Pa["001"];return o[0]}var tl,BO=new RegExp("^".concat(Lv.source,"*")),UO=new RegExp("".concat(Lv.source,"*$"));function xe(e,t){return{start:e,end:t}}var $O=!!String.prototype.startsWith,jO=!!String.fromCodePoint,HO=!!Object.fromEntries,qO=!!String.prototype.codePointAt,GO=!!String.prototype.trimStart,VO=!!String.prototype.trimEnd,WO=!!Number.isSafeInteger,zO=WO?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ql=!0;try{var QO=Bv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ql=((tl=QO.exec("a"))===null||tl===void 0?void 0:tl[0])==="a"}catch{ql=!1}var am=$O?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Gl=jO?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",o=t.length,i=0,a;o>i;){if(a=t[i++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},um=HO?Object.fromEntries:function(t){for(var r={},n=0,o=t;n<o.length;n++){var i=o[n],a=i[0],s=i[1];r[a]=s}return r},Dv=qO?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}},YO=GO?function(t){return t.trimStart()}:function(t){return t.replace(BO,"")},KO=VO?function(t){return t.trimEnd()}:function(t){return t.replace(UO,"")};function Bv(e,t){return new RegExp(e,t)}var Vl;if(ql){var cm=Bv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Vl=function(t,r){var n;cm.lastIndex=r;var o=cm.exec(t);return(n=o[1])!==null&&n!==void 0?n:""}}else Vl=function(t,r){for(var n=[];;){var o=Dv(t,r);if(o===void 0||Uv(o)||eA(o))break;n.push(o),r+=o>=65536?2:1}return Gl.apply(void 0,n)};var XO=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,n);if(a.err)return a;o.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:je.pound,location:xe(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Se.UNMATCHED_CLOSING_TAG,xe(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Wl(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;o.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;o.push(a.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:je.literal,value:"<".concat(o,"/>"),location:xe(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var a=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Wl(this.char()))return this.error(Se.INVALID_TAG,xe(s,this.clonePosition()));var c=this.clonePosition(),l=this.parseTagName();return o!==l?this.error(Se.UNMATCHED_CLOSING_TAG,xe(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:je.tag,value:o,children:a,location:xe(n,this.clonePosition())},err:null}:this.error(Se.INVALID_TAG,xe(s,this.clonePosition())))}else return this.error(Se.UNCLOSED_TAG,xe(n,this.clonePosition()))}else return this.error(Se.INVALID_TAG,xe(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ZO(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var i=this.tryParseQuote(r);if(i){o+=i;continue}var a=this.tryParseUnquoted(t,r);if(a){o+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var c=xe(n,this.clonePosition());return{val:{type:je.literal,value:o,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!JO(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 Gl.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(),Gl(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Se.EXPECT_ARGUMENT_CLOSING_BRACE,xe(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Se.EMPTY_ARGUMENT,xe(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(Se.MALFORMED_ARGUMENT,xe(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Se.EXPECT_ARGUMENT_CLOSING_BRACE,xe(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:je.argument,value:o,location:xe(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Se.EXPECT_ARGUMENT_CLOSING_BRACE,xe(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(Se.MALFORMED_ARGUMENT,xe(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Vl(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),a=xe(t,i);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,o){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(Se.EXPECT_ARGUMENT_TYPE,xe(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=KO(d.val);if(h.length===0)return this.error(Se.EXPECT_ARGUMENT_STYLE,xe(this.clonePosition(),this.clonePosition()));var f=xe(u,this.clonePosition());l={style:h,styleLocation:f}}var p=this.tryParseArgumentClose(o);if(p.err)return p;var m=xe(o,this.clonePosition());if(l&&am(l==null?void 0:l.style,"::",0)){var _=YO(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(_,l.styleLocation);return d.err?d:{val:{type:je.number,value:n,location:m,style:d.val},err:null}}else{if(_.length===0)return this.error(Se.EXPECT_DATE_TIME_SKELETON,m);var S=_;this.locale&&(S=FO(_,this.locale));var h={type:oo.dateTime,pattern:S,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?RO(S):{}},v=s==="date"?je.date:je.time;return{val:{type:v,value:n,location:m,style:h},err:null}}}return{val:{type:s==="number"?je.number:s==="date"?je.date:je.time,value:n,location:m,style:(i=l==null?void 0:l.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Se.EXPECT_SELECT_ARGUMENT_OPTIONS,xe(b,ue({},b)));this.bumpSpace();var T=this.parseIdentifierIfPossible(),w=0;if(s!=="select"&&T.value==="offset"){if(!this.bumpIf(":"))return this.error(Se.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(Se.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Se.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),T=this.parseIdentifierIfPossible(),w=d.val}var N=this.tryParsePluralOrSelectOptions(t,s,r,T);if(N.err)return N;var p=this.tryParseArgumentClose(o);if(p.err)return p;var R=xe(o,this.clonePosition());return s==="select"?{val:{type:je.select,value:n,options:um(N.val),location:R},err:null}:{val:{type:je.plural,value:n,options:um(N.val),offset:w,pluralType:s==="plural"?"cardinal":"ordinal",location:R},err:null}}default:return this.error(Se.INVALID_ARGUMENT_TYPE,xe(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Se.EXPECT_ARGUMENT_CLOSING_BRACE,xe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Se.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,xe(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=NO(t)}catch{return this.error(Se.INVALID_NUMBER_SKELETON,r)}return{val:{type:oo.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?MO(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var i,a=!1,s=[],c=new Set,l=o.value,u=o.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(Se.EXPECT_PLURAL_ARGUMENT_SELECTOR,Se.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=xe(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?Se.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Se.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);l==="other"&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Se.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Se.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,xe(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,r,n);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([l,{value:p.val,location:xe(f,this.clonePosition())}]),c.add(l),this.bumpSpace(),i=this.parseIdentifierIfPossible(),l=i.value,u=i.location}return s.length===0?this.error(r==="select"?Se.EXPECT_SELECT_ARGUMENT_SELECTOR:Se.EXPECT_PLURAL_ARGUMENT_SELECTOR,xe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Se.MISSING_OTHER_CLAUSE,xe(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,a=a*10+(s-48),this.bump();else break}var c=xe(o,this.clonePosition());return i?(a*=n,zO(a)?{val:a,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Dv(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(am(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()&&Uv(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 Wl(e){return e>=97&&e<=122||e>=65&&e<=90}function JO(e){return Wl(e)||e===47}function ZO(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 Uv(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function eA(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 zl(e){e.forEach(function(t){if(delete t.location,Rv(t)||Pv(t))for(var r in t.options)delete t.options[r].location,zl(t.options[r].value);else Ov(t)&&Iv(t.style)||(Av(t)||Cv(t))&&Hl(t.style)?delete t.style.location:Nv(t)&&zl(t.children)})}function tA(e,t){t===void 0&&(t={}),t=ue({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new XO(e,t).parse();if(r.err){var n=SyntaxError(Se[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||zl(r.val),r.val}function ur(e,t){var r=t&&t.cache?t.cache:aA,n=t&&t.serializer?t.serializer:sA,o=t&&t.strategy?t.strategy:nA;return o(e,{cache:r,serializer:n})}function rA(e){return e==null||typeof e=="number"||typeof e=="boolean"}function $v(e,t,r,n){var o=rA(n)?n:r(n),i=t.get(o);return typeof i>"u"&&(i=e.call(this,n),t.set(o,i)),i}function jv(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 Hf(e,t,r,n,o){return r.bind(t,e,n,o)}function nA(e,t){var r=e.length===1?$v:jv;return Hf(e,this,r,t.cache.create(),t.serializer)}function iA(e,t){return Hf(e,this,jv,t.cache.create(),t.serializer)}function oA(e,t){return Hf(e,this,$v,t.cache.create(),t.serializer)}var sA=function(){return JSON.stringify(arguments)};function qf(){this.cache=Object.create(null)}qf.prototype.get=function(e){return this.cache[e]};qf.prototype.set=function(e,t){this.cache[e]=t};var aA={create:function(){return new qf}},cr={variadic:iA,monadic:oA},gr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(gr||(gr={}));var gn=function(e){Ht(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),lm=function(e){Ht(t,e);function t(r,n,o,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),gr.INVALID_VALUE,i)||this}return t}(gn),uA=function(e){Ht(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),gr.INVALID_VALUE,o)||this}return t}(gn),cA=function(e){Ht(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),gr.MISSING_VALUE,n)||this}return t}(gn),_t;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(_t||(_t={}));function lA(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==_t.literal||r.type!==_t.literal?t.push(r):n.value+=r.value,t},[])}function Hv(e){return typeof e=="function"}function $a(e,t,r,n,o,i,a){if(e.length===1&&nm(e[0]))return[{type:_t.literal,value:e[0].value}];for(var s=[],c=0,l=e;c<l.length;c++){var u=l[c];if(nm(u)){s.push({type:_t.literal,value:u.value});continue}if(AO(u)){typeof i=="number"&&s.push({type:_t.literal,value:r.getNumberFormat(t).format(i)});continue}var d=u.value;if(!(o&&d in o))throw new cA(d,a);var h=o[d];if(OO(u)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),s.push({type:typeof h=="string"?_t.literal:_t.object,value:h});continue}if(Av(u)){var f=typeof u.style=="string"?n.date[u.style]:Hl(u.style)?u.style.parsedOptions:void 0;s.push({type:_t.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(Cv(u)){var f=typeof u.style=="string"?n.time[u.style]:Hl(u.style)?u.style.parsedOptions:n.time.medium;s.push({type:_t.literal,value:r.getDateTimeFormat(t,f).format(h)});continue}if(Ov(u)){var f=typeof u.style=="string"?n.number[u.style]:Iv(u.style)?u.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),s.push({type:_t.literal,value:r.getNumberFormat(t,f).format(h)});continue}if(Nv(u)){var p=u.children,m=u.value,_=o[m];if(!Hv(_))throw new uA(m,"function",a);var S=$a(p,t,r,n,o,i),v=_(S.map(function(w){return w.value}));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map(function(w){return{type:typeof w=="string"?_t.literal:_t.object,value:w}}))}if(Rv(u)){var b=u.options[h]||u.options.other;if(!b)throw new lm(u.value,h,Object.keys(u.options),a);s.push.apply(s,$a(b.value,t,r,n,o));continue}if(Pv(u)){var b=u.options["=".concat(h)];if(!b){if(!Intl.PluralRules)throw new gn(`Intl.PluralRules is not available in this environment.
|
|
66
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
67
|
+
`,gr.MISSING_INTL_API,a);var T=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0));b=u.options[T]||u.options.other}if(!b)throw new lm(u.value,h,Object.keys(u.options),a);s.push.apply(s,$a(b.value,t,r,n,o,h-(u.offset||0)));continue}}return lA(s)}function fA(e,t){return t?ue(ue(ue({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=ue(ue({},e[n]),t[n]||{}),r},{})):e}function hA(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=fA(e[n],t[n]),r},ue({},e)):e}function rl(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function dA(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ur(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,mr([void 0],r,!1)))},{cache:rl(e.number),strategy:cr.variadic}),getDateTimeFormat:ur(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,mr([void 0],r,!1)))},{cache:rl(e.dateTime),strategy:cr.variadic}),getPluralRules:ur(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,mr([void 0],r,!1)))},{cache:rl(e.pluralRules),strategy:cr.variadic})}}var qv=function(){function e(t,r,n,o){r===void 0&&(r=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var l=i.formatToParts(c);if(l.length===1)return l[0].value;var u=l.reduce(function(d,h){return!d.length||h.type!==_t.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(c){return $a(i.ast,i.locales,i.formatters,i.formats,c,void 0,i.message)},this.resolvedOptions=function(){var c;return{locale:((c=i.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=o||{};a.formatters;var s=io(a,["formatters"]);this.ast=e.__parse(t,ue(ue({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=hA(e.formats,n),this.formatters=o&&o.formatters||dA(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=tA,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),ii;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(ii||(ii={}));var na=function(e){Ht(t,e);function t(r,n,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,`
|
|
68
|
+
`).concat(a?`
|
|
69
|
+
`.concat(a.message,`
|
|
70
|
+
`).concat(a.stack):""))||this,i.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),pA=function(e){Ht(t,e);function t(r,n){return e.call(this,ii.UNSUPPORTED_FORMATTER,r,n)||this}return t}(na),mA=function(e){Ht(t,e);function t(r,n){return e.call(this,ii.INVALID_CONFIG,r,n)||this}return t}(na),fm=function(e){Ht(t,e);function t(r,n){return e.call(this,ii.MISSING_DATA,r,n)||this}return t}(na),qt=function(e){Ht(t,e);function t(r,n,o){var i=e.call(this,ii.FORMAT_ERROR,"".concat(r,`
|
|
71
|
+
Locale: `).concat(n,`
|
|
72
|
+
`),o)||this;return i.locale=n,i}return t}(na),nl=function(e){Ht(t,e);function t(r,n,o,i){var a=e.call(this,"".concat(r,`
|
|
73
|
+
MessageID: `).concat(o==null?void 0:o.id,`
|
|
74
|
+
Default Message: `).concat(o==null?void 0:o.defaultMessage,`
|
|
75
|
+
Description: `).concat(o==null?void 0:o.description,`
|
|
76
|
+
`),n,i)||this;return a.descriptor=o,a.locale=n,a}return t}(qt),gA=function(e){Ht(t,e);function t(r,n){var o=e.call(this,ii.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(n,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(i){var a;return(a=i.value)!==null&&a!==void 0?a:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=r,o}return t}(na);function ui(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 yA=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},vA=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},Gv={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:yA,onWarn:vA};function Vv(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function jn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function EA(e){e===void 0&&(e=Vv());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,o=ur(function(){for(var s,c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new((s=Intl.DateTimeFormat).bind.apply(s,mr([void 0],c,!1)))},{cache:jn(e.dateTime),strategy:cr.variadic}),i=ur(function(){for(var s,c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new((s=Intl.NumberFormat).bind.apply(s,mr([void 0],c,!1)))},{cache:jn(e.number),strategy:cr.variadic}),a=ur(function(){for(var s,c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new((s=Intl.PluralRules).bind.apply(s,mr([void 0],c,!1)))},{cache:jn(e.pluralRules),strategy:cr.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:ur(function(s,c,l,u){return new qv(s,c,l,ue({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:a}},u||{}))},{cache:jn(e.message),strategy:cr.variadic}),getRelativeTimeFormat:ur(function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new(t.bind.apply(t,mr([void 0],s,!1)))},{cache:jn(e.relativeTime),strategy:cr.variadic}),getPluralRules:a,getListFormat:ur(function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new(r.bind.apply(r,mr([void 0],s,!1)))},{cache:jn(e.list),strategy:cr.variadic}),getDisplayNames:ur(function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new(n.bind.apply(n,mr([void 0],s,!1)))},{cache:jn(e.displayNames),strategy:cr.variadic})}}function Gf(e,t,r,n){var o=e&&e[t],i;if(o&&(i=o[r]),i)return i;n(new pA("No ".concat(t," format named: ").concat(r)))}function Na(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=ue({timeZone:t},e[n]),r},{})}function hm(e,t){var r=Object.keys(ue(ue({},e),t));return r.reduce(function(n,o){return n[o]=ue(ue({},e[o]||{}),t[o]||{}),n},{})}function dm(e,t){if(!t)return e;var r=qv.formats;return ue(ue(ue({},r),e),{date:hm(Na(r.date,t),Na(e.date||{},t)),time:hm(Na(r.time,t),Na(e.time||{},t))})}var Ql=function(e,t,r,n,o){var i=e.locale,a=e.formats,s=e.messages,c=e.defaultLocale,l=e.defaultFormats,u=e.fallbackOnEmptyString,d=e.onError,h=e.timeZone,f=e.defaultRichTextElements;r===void 0&&(r={id:""});var p=r.id,m=r.defaultMessage;xv(!!p,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var _=String(p),S=s&&Object.prototype.hasOwnProperty.call(s,_)&&s[_];if(Array.isArray(S)&&S.length===1&&S[0].type===je.literal)return S[0].value;if(!n&&S&&typeof S=="string"&&!f)return S.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=ue(ue({},f),n||{}),a=dm(a,h),l=dm(l,h),!S){if(u===!1&&S==="")return S;if((!m||i&&i.toLowerCase()!==c.toLowerCase())&&d(new gA(r,i)),m)try{var v=t.getMessageFormat(m,c,l,o);return v.format(n)}catch(b){return d(new nl('Error formatting default message for: "'.concat(_,'", rendering default message verbatim'),i,r,b)),typeof m=="string"?m:_}return _}try{var v=t.getMessageFormat(S,i,a,ue({formatters:t},o||{}));return v.format(n)}catch(b){d(new nl('Error formatting message: "'.concat(_,'", using ').concat(m?"default message":"id"," as fallback."),i,r,b))}if(m)try{var v=t.getMessageFormat(m,c,l,o);return v.format(n)}catch(b){d(new nl('Error formatting the default message for: "'.concat(_,'", rendering message verbatim'),i,r,b))}return typeof S=="string"?S:typeof m=="string"?m:_},Wv=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function wu(e,t,r,n){var o=e.locale,i=e.formats,a=e.onError,s=e.timeZone;n===void 0&&(n={});var c=n.format,l=ue(ue({},s&&{timeZone:s}),c&&Gf(i,t,c,a)),u=ui(n,Wv,l);return t==="time"&&!u.hour&&!u.minute&&!u.second&&!u.timeStyle&&!u.dateStyle&&(u=ue(ue({},u),{hour:"numeric",minute:"numeric"})),r(o,u)}function _A(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=i===void 0?{}:i,s=typeof o=="string"?new Date(o||0):o;try{return wu(e,"date",t,a).format(s)}catch(c){e.onError(new qt("Error formatting date.",e.locale,c))}return String(s)}function bA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=i===void 0?{}:i,s=typeof o=="string"?new Date(o||0):o;try{return wu(e,"time",t,a).format(s)}catch(c){e.onError(new qt("Error formatting time.",e.locale,c))}return String(s)}function wA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=r[2],s=a===void 0?{}:a,c=e.timeZone,l=e.locale,u=e.onError,d=ui(s,Wv,c?{timeZone:c}:{});try{return t(l,d).formatRange(o,i)}catch(h){u(new qt("Error formatting date time range.",e.locale,h))}return String(o)}function SA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=i===void 0?{}:i,s=typeof o=="string"?new Date(o||0):o;try{return wu(e,"date",t,a).formatToParts(s)}catch(c){e.onError(new qt("Error formatting date.",e.locale,c))}return[]}function TA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=i===void 0?{}:i,s=typeof o=="string"?new Date(o||0):o;try{return wu(e,"time",t,a).formatToParts(s)}catch(c){e.onError(new qt("Error formatting time.",e.locale,c))}return[]}var xA=["style","type","fallback","languageDisplay"];function OA(e,t,r,n){var o=e.locale,i=e.onError,a=Intl.DisplayNames;a||i(new gn(`Intl.DisplayNames is not available in this environment.
|
|
77
|
+
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
78
|
+
`,gr.MISSING_INTL_API));var s=ui(n,xA);try{return t(o,s).of(r)}catch(c){i(new qt("Error formatting display name.",o,c))}}var AA=["type","style"],pm=Date.now();function CA(e){return"".concat(pm,"_").concat(e,"_").concat(pm)}function RA(e,t,r,n){n===void 0&&(n={});var o=zv(e,t,r,n).reduce(function(i,a){var s=a.value;return typeof s!="string"?i.push(s):typeof i[i.length-1]=="string"?i[i.length-1]+=s:i.push(s),i},[]);return o.length===1?o[0]:o.length===0?"":o}function zv(e,t,r,n){var o=e.locale,i=e.onError;n===void 0&&(n={});var a=Intl.ListFormat;a||i(new gn(`Intl.ListFormat is not available in this environment.
|
|
79
|
+
Try polyfilling it using "@formatjs/intl-listformat"
|
|
80
|
+
`,gr.MISSING_INTL_API));var s=ui(n,AA);try{var c={},l=r.map(function(u,d){if(typeof u=="object"){var h=CA(d);return c[h]=u,h}return String(u)});return t(o,s).formatToParts(l).map(function(u){return u.type==="literal"?u:ue(ue({},u),{value:c[u.value]||u.value})})}catch(u){i(new qt("Error formatting list.",o,u))}return r}var PA=["type"];function NA(e,t,r,n){var o=e.locale,i=e.onError;n===void 0&&(n={}),Intl.PluralRules||i(new gn(`Intl.PluralRules is not available in this environment.
|
|
81
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
82
|
+
`,gr.MISSING_INTL_API));var a=ui(n,PA);try{return t(o,a).select(r)}catch(s){i(new qt("Error formatting plural.",o,s))}return"other"}var IA=["numeric","style"];function LA(e,t,r){var n=e.locale,o=e.formats,i=e.onError;r===void 0&&(r={});var a=r.format,s=!!a&&Gf(o,"relative",a,i)||{},c=ui(r,IA,s);return t(n,c)}function kA(e,t,r,n,o){o===void 0&&(o={}),n||(n="second");var i=Intl.RelativeTimeFormat;i||e.onError(new gn(`Intl.RelativeTimeFormat is not available in this environment.
|
|
83
|
+
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
84
|
+
`,gr.MISSING_INTL_API));try{return LA(e,t,o).format(r,n)}catch(a){e.onError(new qt("Error formatting relative time.",e.locale,a))}return String(r)}var MA=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Qv(e,t,r){var n=e.locale,o=e.formats,i=e.onError;r===void 0&&(r={});var a=r.format,s=a&&Gf(o,"number",a,i)||{},c=ui(r,MA,s);return t(n,c)}function FA(e,t,r,n){n===void 0&&(n={});try{return Qv(e,t,n).format(r)}catch(o){e.onError(new qt("Error formatting number.",e.locale,o))}return String(r)}function DA(e,t,r,n){n===void 0&&(n={});try{return Qv(e,t,n).formatToParts(r)}catch(o){e.onError(new qt("Error formatting number.",e.locale,o))}return[]}function BA(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function UA(e){e.onWarn&&e.defaultRichTextElements&&BA(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 $A(e,t){var r=EA(t),n=ue(ue({},Gv),e),o=n.locale,i=n.defaultLocale,a=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new fm('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new fm('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new mA('"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"),UA(n),ue(ue({},n),{formatters:r,formatNumber:FA.bind(null,n,r.getNumberFormat),formatNumberToParts:DA.bind(null,n,r.getNumberFormat),formatRelativeTime:kA.bind(null,n,r.getRelativeTimeFormat),formatDate:_A.bind(null,n,r.getDateTimeFormat),formatDateToParts:SA.bind(null,n,r.getDateTimeFormat),formatTime:bA.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:wA.bind(null,n,r.getDateTimeFormat),formatTimeToParts:TA.bind(null,n,r.getDateTimeFormat),formatPlural:NA.bind(null,n,r.getPluralRules),formatMessage:Ql.bind(null,n,r),$t:Ql.bind(null,n,r),formatList:RA.bind(null,n,r.getListFormat),formatListToParts:zv.bind(null,n,r.getListFormat),formatDisplayName:OA.bind(null,n,r.getDisplayNames)})}function Yv(e){xv(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Kv=ue(ue({},Gv),{textComponent:pe.Fragment});function jA(e){return function(t){return e(pe.Children.toArray(t))}}function Yl(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var i=0;i<o;i++){var a=r[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}var Vf=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=pe.createContext(null)):pe.createContext(null);Vf.Consumer;var HA=Vf.Provider,qA=HA,GA=Vf;function Oe(){var e=pe.useContext(GA);return Yv(e),e}var Kl;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Kl||(Kl={}));var Xl;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Xl||(Xl={}));function Xv(e){var t=function(r){var n=Oe(),o=r.value,i=r.children,a=io(r,["value","children"]),s=typeof o=="string"?new Date(o||0):o,c=e==="formatDate"?n.formatDateToParts(s,a):n.formatTimeToParts(s,a);return i(c)};return t.displayName=Xl[e],t}function ia(e){var t=function(r){var n=Oe(),o=r.value,i=r.children,a=io(r,["value","children"]),s=n[e](o,a);if(typeof i=="function")return i(s);var c=n.textComponent||pe.Fragment;return pe.createElement(c,null,s)};return t.displayName=Kl[e],t}function il(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 Jv(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=Hv(n)?jA(n):n,t},{})}var mm=function(e,t,r,n){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=Jv(n),s=Ql.apply(void 0,mr([e,t,r,a],o,!1));return Array.isArray(s)?pe.Children.toArray(s):s},Jl=function(e,t){var r=e.defaultRichTextElements,n=io(e,["defaultRichTextElements"]),o=Jv(r),i=$A(ue(ue(ue({},Kv),n),{defaultRichTextElements:o}),t),a={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o};return ue(ue({},i),{formatMessage:mm.bind(null,a,i.formatters),$t:mm.bind(null,a,i.formatters)})},VA=function(e){Ht(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=Vv(),r.state={cache:r.cache,intl:Jl(il(r.props),r.cache),prevConfig:il(r.props)},r}return t.getDerivedStateFromProps=function(r,n){var o=n.prevConfig,i=n.cache,a=il(r);return Yl(o,a)?null:{intl:Jl(a,i),prevConfig:a}},t.prototype.render=function(){return Yv(this.state.intl),pe.createElement(qA,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Kv,t}(pe.PureComponent);function WA(e,t){var r=e.values,n=io(e,["values"]),o=t.values,i=io(t,["values"]);return Yl(o,r)&&Yl(n,i)}function Zv(e){var t=Oe(),r=t.formatMessage,n=t.textComponent,o=n===void 0?pe.Fragment:n,i=e.id,a=e.description,s=e.defaultMessage,c=e.values,l=e.children,u=e.tagName,d=u===void 0?o:u,h=e.ignoreTag,f={id:i,description:a,defaultMessage:s},p=r(f,c,{ignoreTag:h});return typeof l=="function"?l(Array.isArray(p)?p:[p]):d?pe.createElement(d,null,pe.Children.toArray(p)):pe.createElement(pe.Fragment,null,p)}Zv.displayName="FormattedMessage";var e0=pe.memo(Zv,WA);e0.displayName="MemoizedFormattedMessage";const ln=e0;ia("formatDate");ia("formatTime");ia("formatNumber");ia("formatList");ia("formatDisplayName");Xv("formatDate");Xv("formatTime");let ys=!1;const t0=({isOpen:e=!1,isLoading:t=!1,children:r})=>{const n=Oe(),o=U.useRef(null),[i,a]=U.useState("hidden");U.useEffect(()=>{const c=o.current;if(c)return c.addEventListener("transitionend",s),()=>{c.removeEventListener("transitionend",s)}},[]);const s=({propertyName:c})=>{c==="opacity"&&(ys!==!1&&clearTimeout(ys),a(l=>l==="opening"?"open":l==="closing"?"closed":l==="closed"?"hidden":l))};return ri(()=>{ys!==!1&&clearTimeout(ys);let c="open";e?a("opening"):(a("closing"),c="hidden"),ys=setTimeout(()=>{a(c)},300)},[e]),O.jsx("aside",{ref:o,className:se("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 Wf=({children:e,className:t="",...r})=>O.jsx("section",{className:se("full-width-section",t),...r,children:e});const zA=({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(Wf,{className:se("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(ra,{buttons:n})]})})};const QA=({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:se("logos",r),children:[e&&U.createElement(o.element,{className:"title"},o.text),O.jsx("ul",{className:se({"two-col":n===2||n===4,"three-col":n===5||n<=10&&n%3===0}),children:t.map(({logo:i,nameOfBusiness:a,link:s=!1,description:c=!1},l)=>{if(!i||!i.url)return null;const u=O.jsx("img",{src:i.url,width:i.width||"auto",height:i.height||"auto",alt:a});return O.jsxs("li",{children:[O.jsx("p",{className:"img-wrapper",children:s?O.jsx("a",{href:s,target:"_blank",rel:"nofollow noreferrer noopener",children:u}):u}),c&&O.jsx("small",{children:c})]},window.btoa(`${i.url}_${l}`))})})]})};const YA=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],KA=({content:e,image:t,variant:r="default",spacing:n="normal",cta:o,children:i})=>{const a=["eyebrow","title","text"],s={eyebrow:"small",title:"h1",text:"p"},c={};return a.forEach(l=>{if(!e[l]){c[l]=!1;return}if(typeof e[l]=="object"){c[l]=e[l];const{text:u,element:d}=e[l];if(d&&YA.includes(d.toLowerCase()))return;c[l]={text:u,element:s[l]};return}c[l]={text:e[l],element:s[l]}}),o&&o.link&&o.link[0]==="#"&&(o.props||(o.props={}),o.props.onClick=l=>{l.preventDefault(),l.stopPropagation();const u=document.getElementById(o.link.substring(1));u&&u.scrollIntoView({behavior:"smooth"})}),O.jsx(Wf,{className:se("banner-section",r,n,{"has-image":t,"has-extra-spacing":n==="normal"&&c.eyebrow&&c.title}),children:O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"content-wrapper",children:[a.map(l=>{if(c[l]&&typeof c[l]=="object"){const{text:u,element:d=""}=c[l];return U.createElement(d.toLowerCase(),{key:l,className:l},u)}return null}),i,o&&o.text&&o.link&&O.jsx(ze,{variant:t||r==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:o.link,...o.props,children:o.text})]}),t&&O.jsx(Tv,{image:{...t,aspect:"banner"}})]})})},XA=U.memo(KA);const JA=({variant:e="primary",button:t=null,title:r,text:n,gtmContext:o})=>!r&&!n?null:O.jsxs("aside",{className:se("marketing-block",e),children:[r&&O.jsx("p",{className:"title",children:r}),n&&O.jsx("p",{children:n}),t&&O.jsx(ze,{variant:"secondary",size:"medium",href:t.link,className:"gtm-trackable","data-gtm-event-context":o,"data-gtm-event-type":"learn-more-click",children:t.text})]});var r0={exports:{}};(function(e){(function(t,r){var n="…",o=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function i(s,c,l){return l.length===s.length||!c.ellipsis||(l+=c.ellipsis),l}function a(s,c,l){var u="",d=!0,h=c,f,p;if(l=l||{},l.ellipsis=typeof l.ellipsis>"u"?n:l.ellipsis,!s||s.length===0)return"";for(d=!0;d;){if(o.lastIndex=u.length,d=o.exec(s),!d||d.index-u.length>=h||o.lastIndex>=c+3e3)return u+=s.substring(u.length,c),i(s,l,u);if(f=d[0],p=d.index,u+=s.substring(u.length,p+f.length),h-=p+f.length,h<=0)break}return i(s,l,u)}e.exports?e.exports=a:t.truncate=a})(String)})(r0);var ZA=r0.exports;const zf=Er(ZA),Za="https://storage.googleapis.com/apolitical-assets/",eC="200,000+";const Qf=({label:e=!1,className:t="",children:r})=>{const n=Oe();return O.jsxs("details",{className:se("collapsible-section",t),children:[O.jsx("summary",{children:e||n.formatMessage({id:"collapsibleSection_summary"})}),O.jsx("div",{className:"content",children:r})]})};function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qn.apply(this,arguments)}const tC=["children","options"],gm=["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"}),ym={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},rC=["style","script"],nC=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,iC=/mailto:/i,oC=/\n{2,}$/,n0=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,sC=/^ *> ?/gm,aC=/^ {2,}\n/,uC=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,i0=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,o0=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,cC=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,lC=/^(?:\n *)*\n/,fC=/\r\n?/g,hC=/^\[\^([^\]]+)](:.*)\n/,dC=/^\[\^([^\]]+)]/,pC=/\f/g,mC=/^\s*?\[(x|\s)\]/,s0=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,a0=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,u0=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Zl=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,gC=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,c0=/^<!--[\s\S]*?(?:-->)/,yC=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,ef=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,vC=/^\{.*\}$/,EC=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,_C=/^<([^ >]+@[^ >]+)>/,bC=/^<([^ >]+:\/[^ >]+)>/,wC=/-([a-z])?/gi,l0=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,SC=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,TC=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,xC=/^\[([^\]]*)\] ?\[([^\]]*)\]/,OC=/(\[|\])/g,AC=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,CC=/\t/g,RC=/^ *\| */,PC=/(^ *\||\| *$)/g,NC=/ *$/,IC=/^ *:-+: *$/,LC=/^ *:-+ *$/,kC=/^ *-+: *$/,MC=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,FC=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,DC=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,BC=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,UC=/^\\([^0-9A-Za-z\s])/,$C=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,jC=/^\n+/,HC=/^([ \t]*)/,qC=/\\([^\\])/g,vm=/ *\n+$/,GC=/(?:^|\n)( *)$/,Yf="(?:\\d+\\.)",Kf="(?:[*+-])";function f0(e){return"( *)("+(e===1?Yf:Kf)+") +"}const h0=f0(1),d0=f0(2);function p0(e){return new RegExp("^"+(e===1?h0:d0))}const VC=p0(1),WC=p0(2);function m0(e){return new RegExp("^"+(e===1?h0:d0)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Yf:Kf)+" )[^\\n]*)*(\\n|$)","gm")}const g0=m0(1),y0=m0(2);function v0(e){const t=e===1?Yf:Kf;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const E0=v0(1),_0=v0(2);function Em(e,t){const r=t===1,n=r?E0:_0,o=r?g0:y0,i=r?VC:WC;return{t(a,s,c){const l=GC.exec(c);return l&&(s.o||!s._&&!s.u)?n.exec(a=l[1]+a):null},i:Te.HIGH,l(a,s,c){const l=r?+a[2]:void 0,u=a[0].replace(oC,`
|
|
87
|
+
`).match(o);let d=!1;return{p:u.map(function(h,f){const p=i.exec(h)[0].length,m=new RegExp("^ {1,"+p+"}","gm"),_=h.replace(m,"").replace(i,""),S=f===u.length-1,v=_.indexOf(`
|
|
88
|
+
|
|
89
|
+
`)!==-1||S&&d;d=v;const b=c._,T=c.o;let w;c.o=!0,v?(c._=!1,w=_.replace(vm,`
|
|
90
|
+
|
|
91
|
+
`)):(c._=!0,w=_.replace(vm,""));const N=s(w,c);return c._=b,c.o=T,N}),m:r,g:l}},h:(a,s,c)=>e(a.m?"ol":"ul",{key:c.k,start:a.g},a.p.map(function(l,u){return e("li",{key:u},s(l,c))}))}}const zC=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,QC=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,b0=[n0,i0,o0,s0,u0,a0,c0,l0,g0,E0,y0,_0],YC=[...b0,/^[^\n]+(?: \n|\n{2,})/,Zl,ef];function KC(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 XC(e){return kC.test(e)?"right":IC.test(e)?"center":LC.test(e)?"left":null}function _m(e,t,r){const n=r.$;r.$=!0;const o=t(e.trim(),r);r.$=n;let i=[[]];return o.forEach(function(a,s){a.type==="tableSeparator"?s!==0&&s!==o.length-1&&i.push([]):(a.type!=="text"||o[s+1]!=null&&o[s+1].type!=="tableSeparator"||(a.v=a.v.replace(NC,"")),i[i.length-1].push(a))}),i}function JC(e,t,r){r._=!0;const n=_m(e[1],t,r),o=e[2].replace(PC,"").split("|").map(XC),i=function(a,s,c){return a.trim().split(`
|
|
92
|
+
`).map(function(l){return _m(l,s,c)})}(e[3],t,r);return r._=!1,{S:o,A:i,L:n,type:"table"}}function bm(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function Kr(e){return function(t,r){return r._?e.exec(t):null}}function Xr(e){return function(t,r){return r._||r.u?e.exec(t):null}}function Ir(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function vs(e){return function(t){return e.exec(t)}}function ZC(e,t,r){if(t._||t.u||r&&!r.endsWith(`
|
|
93
|
+
`))return null;let n="";e.split(`
|
|
94
|
+
`).every(i=>!b0.some(a=>a.test(i))&&(n+=i+`
|
|
95
|
+
`,i.trim()));const o=n.trimEnd();return o==""?null:[n,o]}function Ai(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function wm(e){return e.replace(qC,"$1")}function ja(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 e1(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 t1(e,t,r){return r._=!1,e(t,r)}const ol=(e,t,r)=>({v:ja(t,e[1],r)});function sl(){return{}}function al(){return null}function r1(...e){return e.filter(Boolean).join(" ")}function ul(e,t,r){let n=e;const o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}var Te;function n1(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||KC,t.namedCodesToUnicode=t.namedCodesToUnicode?qn({},ym,t.namedCodesToUnicode):ym;const r=t.createElement||pe.createElement;function n(f,p,...m){const _=ul(t.overrides,`${f}.props`,{});return r(function(S,v){const b=ul(v,S);return b?typeof b=="function"||typeof b=="object"&&"render"in b?b:ul(v,`${S}.component`,S):S}(f,t.overrides),qn({},p,_,{className:r1(p==null?void 0:p.className,_.className)||void 0}),...m)}function o(f){let p=!1;t.forceInline?p=!0:t.forceBlock||(p=AC.test(f)===!1);const m=u(l(p?f:`${f.trimEnd().replace(jC,"")}
|
|
96
|
+
|
|
97
|
+
`,{_:p}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(t.wrapper===null)return m;const _=t.wrapper||(p?"span":"div");let S;if(m.length>1||t.forceWrapper)S=m;else{if(m.length===1)return S=m[0],typeof S=="string"?n("span",{key:"outer"},S):S;S=null}return pe.createElement(_,{key:"outer"},S)}function i(f){const p=f.match(nC);return p?p.reduce(function(m,_,S){const v=_.indexOf("=");if(v!==-1){const b=function(R){return R.indexOf("-")!==-1&&R.match(yC)===null&&(R=R.replace(wC,function(L,$){return $.toUpperCase()})),R}(_.slice(0,v)).trim(),T=function(R){const L=R[0];return(L==='"'||L==="'")&&R.length>=2&&R[R.length-1]===L?R.slice(1,-1):R}(_.slice(v+1).trim()),w=gm[b]||b,N=m[w]=function(R,L){return R==="style"?L.split(/;\s?/).reduce(function($,G){const q=G.slice(0,G.indexOf(":"));return $[q.replace(/(-[a-z])/g,H=>H[1].toUpperCase())]=G.slice(q.length+1).trim(),$},{}):R==="href"?Ai(L):(L.match(vC)&&(L=L.slice(1,L.length-1)),L==="true"||L!=="false"&&L)}(b,T);typeof N=="string"&&(Zl.test(N)||ef.test(N))&&(m[w]=pe.cloneElement(o(N.trim()),{key:S}))}else _!=="style"&&(m[gm[_]||_]=!0);return m},{}):null}const a=[],s={},c={blockQuote:{t:Ir(n0),i:Te.HIGH,l:(f,p,m)=>({v:p(f[0].replace(sC,""),m)}),h:(f,p,m)=>n("blockquote",{key:m.k},p(f.v,m))},breakLine:{t:vs(aC),i:Te.HIGH,l:sl,h:(f,p,m)=>n("br",{key:m.k})},breakThematic:{t:Ir(uC),i:Te.HIGH,l:sl,h:(f,p,m)=>n("hr",{key:m.k})},codeBlock:{t:Ir(o0),i:Te.MAX,l:f=>({v:f[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(f,p,m)=>n("pre",{key:m.k},n("code",qn({},f.O,{className:f.M?`lang-${f.M}`:""}),f.v))},codeFenced:{t:Ir(i0),i:Te.MAX,l:f=>({O:i(f[3]||""),v:f[4],M:f[2]||void 0,type:"codeBlock"})},codeInline:{t:Xr(cC),i:Te.LOW,l:f=>({v:f[2]}),h:(f,p,m)=>n("code",{key:m.k},f.v)},footnote:{t:Ir(hC),i:Te.MAX,l:f=>(a.push({I:f[2],j:f[1]}),{}),h:al},footnoteReference:{t:Kr(dC),i:Te.HIGH,l:f=>({v:f[1],B:`#${t.slugify(f[1])}`}),h:(f,p,m)=>n("a",{key:m.k,href:Ai(f.B)},n("sup",{key:m.k},f.v))},gfmTask:{t:Kr(mC),i:Te.HIGH,l:f=>({R:f[1].toLowerCase()==="x"}),h:(f,p,m)=>n("input",{checked:f.R,key:m.k,readOnly:!0,type:"checkbox"})},heading:{t:Ir(t.enforceAtxHeadings?a0:s0),i:Te.HIGH,l:(f,p,m)=>({v:ja(p,f[2],m),T:t.slugify(f[2]),C:f[1].length}),h:(f,p,m)=>n(`h${f.C}`,{id:f.T,key:m.k},p(f.v,m))},headingSetext:{t:Ir(u0),i:Te.MAX,l:(f,p,m)=>({v:ja(p,f[1],m),C:f[2]==="="?1:2,type:"heading"})},htmlComment:{t:vs(c0),i:Te.HIGH,l:()=>({}),h:al},image:{t:Xr(QC),i:Te.HIGH,l:f=>({D:f[1],B:wm(f[2]),F:f[3]}),h:(f,p,m)=>n("img",{key:m.k,alt:f.D||void 0,title:f.F||void 0,src:Ai(f.B)})},link:{t:Kr(zC),i:Te.LOW,l:(f,p,m)=>({v:e1(p,f[1],m),B:wm(f[2]),F:f[3]}),h:(f,p,m)=>n("a",{key:m.k,href:Ai(f.B),title:f.F},p(f.v,m))},linkAngleBraceStyleDetector:{t:Kr(bC),i:Te.MAX,l:f=>({v:[{v:f[1],type:"text"}],B:f[1],type:"link"})},linkBareUrlDetector:{t:(f,p)=>p.N?null:Kr(EC)(f,p),i:Te.MAX,l:f=>({v:[{v:f[1],type:"text"}],B:f[1],F:void 0,type:"link"})},linkMailtoDetector:{t:Kr(_C),i:Te.MAX,l(f){let p=f[1],m=f[1];return iC.test(m)||(m="mailto:"+m),{v:[{v:p.replace("mailto:",""),type:"text"}],B:m,type:"link"}}},orderedList:Em(n,1),unorderedList:Em(n,2),newlineCoalescer:{t:Ir(lC),i:Te.LOW,l:sl,h:()=>`
|
|
98
|
+
`},paragraph:{t:ZC,i:Te.LOW,l:ol,h:(f,p,m)=>n("p",{key:m.k},p(f.v,m))},ref:{t:Kr(SC),i:Te.MAX,l:f=>(s[f[1]]={B:f[2],F:f[4]},{}),h:al},refImage:{t:Xr(TC),i:Te.MAX,l:f=>({D:f[1]||void 0,P:f[2]}),h:(f,p,m)=>n("img",{key:m.k,alt:f.D,src:Ai(s[f.P].B),title:s[f.P].F})},refLink:{t:Kr(xC),i:Te.MAX,l:(f,p,m)=>({v:p(f[1],m),Z:p(f[0].replace(OC,"\\$1"),m),P:f[2]}),h:(f,p,m)=>s[f.P]?n("a",{key:m.k,href:Ai(s[f.P].B),title:s[f.P].F},p(f.v,m)):n("span",{key:m.k},p(f.Z,m))},table:{t:Ir(l0),i:Te.HIGH,l:JC,h:(f,p,m)=>n("table",{key:m.k},n("thead",null,n("tr",null,f.L.map(function(_,S){return n("th",{key:S,style:bm(f,S)},p(_,m))}))),n("tbody",null,f.A.map(function(_,S){return n("tr",{key:S},_.map(function(v,b){return n("td",{key:b,style:bm(f,b)},p(v,m))}))})))},tableSeparator:{t:function(f,p){return p.$?(p._=!0,RC.exec(f)):null},i:Te.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:vs($C),i:Te.MIN,l:f=>({v:f[0].replace(gC,(p,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:p)}),h:f=>f.v},textBolded:{t:Xr(MC),i:Te.MED,l:(f,p,m)=>({v:p(f[2],m)}),h:(f,p,m)=>n("strong",{key:m.k},p(f.v,m))},textEmphasized:{t:Xr(FC),i:Te.LOW,l:(f,p,m)=>({v:p(f[2],m)}),h:(f,p,m)=>n("em",{key:m.k},p(f.v,m))},textEscaped:{t:Xr(UC),i:Te.HIGH,l:f=>({v:f[1],type:"text"})},textMarked:{t:Xr(DC),i:Te.LOW,l:ol,h:(f,p,m)=>n("mark",{key:m.k},p(f.v,m))},textStrikethroughed:{t:Xr(BC),i:Te.LOW,l:ol,h:(f,p,m)=>n("del",{key:m.k},p(f.v,m))}};t.disableParsingRawHTML!==!0&&(c.htmlBlock={t:vs(Zl),i:Te.HIGH,l(f,p,m){const[,_]=f[3].match(HC),S=new RegExp(`^${_}`,"gm"),v=f[3].replace(S,""),b=(T=v,YC.some(L=>L.test(T))?t1:ja);var T;const w=f[1].toLowerCase(),N=rC.indexOf(w)!==-1;m.N=m.N||w==="a";const R=N?f[3]:b(p,v,m);return m.N=!1,{O:i(f[2]),v:R,G:N,H:N?w:f[1]}},h:(f,p,m)=>n(f.H,qn({key:m.k},f.O),f.G?f.v:p(f.v,m))},c.htmlSelfClosing={t:vs(ef),i:Te.HIGH,l:f=>({O:i(f[2]||""),H:f[1]}),h:(f,p,m)=>n(f.H,qn({},f.O,{key:m.k}))});const l=function(f){let p=Object.keys(f);function m(_,S){let v=[],b="";for(;_;){let T=0;for(;T<p.length;){const w=p[T],N=f[w],R=N.t(_,S,b);if(R){const L=R[0];_=_.substring(L.length);const $=N.l(R,m,S);$.type==null&&($.type=w),v.push($),b=L;break}T++}}return v}return p.sort(function(_,S){let v=f[_].i,b=f[S].i;return v!==b?v-b:_<S?-1:1}),function(_,S){return m(function(v){return v.replace(fC,`
|
|
99
|
+
`).replace(pC,"").replace(CC," ")}(_),S)}}(c),u=(d=function(f){return function(p,m,_){return f[p.type].h(p,m,_)}}(c),function f(p,m={}){if(Array.isArray(p)){const _=m.k,S=[];let v=!1;for(let b=0;b<p.length;b++){m.k=b;const T=f(p[b],m),w=typeof T=="string";w&&v?S[S.length-1]+=T:T!==null&&S.push(T),v=w}return m.k=_,S}return d(p,f,m)});var d;const h=o(e);return a.length?n("div",null,h,n("footer",{key:"footer"},a.map(function(f){return n("div",{id:t.slugify(f.j),key:f.j},f.j,u(l(f.I,{_:!0})))}))):h}(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(Te||(Te={}));const Su=e=>{let{children:t,options:r}=e,n=function(o,i){if(o==null)return{};var a,s,c={},l=Object.keys(o);for(s=0;s<l.length;s++)i.indexOf(a=l[s])>=0||(c[a]=o[a]);return c}(e,tC);return pe.cloneElement(n1(t,r),n)};const Br=({variant:e="primary",className:t="",children:r,...n})=>O.jsx("div",{className:se("highlighted-text-box",e,t),...n,children:r});const oa=({variant:e="empty",text:t=!1,button:r=!1,className:n=""})=>{let o=r&&!!Object.keys(r).length;const i=typeof r=="object"&&"breakpoints"in r,a=ta(i);if(i&&typeof r=="object"&&typeof a=="number"){const d=Object.assign({},r.breakpoints),h=bv(Object.keys(d));o=wv(a,h,d)}const{breakpoints:s,text:c="",component:l,...u}=r;return O.jsx(Br,{variant:"subtle",className:se("empty-state-box",e,n),children:O.jsxs(O.Fragment,{children:[t&&O.jsx(Su,{options:{forceBlock:!0},children:t}),o&&typeof r=="object"&&(l||O.jsx(ze,{...u,variant:r.variant?r.variant:"secondary",children:c}))]})})};const tf=({children:e,...t})=>O.jsx("p",{...t,children:e}),w0={q:tf,blockquote:tf};for(let e=1;e<=6;e++)w0[`h${e}`]={component:tf,props:{className:"title"}};const S0=({type:e="default",className:t="",heading:r=!1,children:n})=>O.jsxs("div",{className:se("helper-text-box text-small",e,t),children:[r&&O.jsx("p",{className:"title",children:r}),typeof n=="string"?O.jsx(Su,{options:{wrapper:U.Fragment,forceBlock:!0,overrides:w0},children:n}):O.jsx("p",{children:n})]});const i1=({className:e="",show:t=!1,hide:r=!1,text:n,children:o})=>{const i=Oe(),a=U.useRef(null),[s,c]=U.useState(""),[l,u]=U.useState("closed");U.useEffect(()=>{const f=a.current;if(f)return f.addEventListener("transitionend",d),()=>{f.removeEventListener("transitionend",d)}},[]),U.useEffect(()=>{if(!n||typeof n!="string")return;const f=n.split(`
|
|
100
|
+
`);c(f.length<3?`${n.substring(0,400)}...`:f.slice(0,3).join(`
|
|
101
|
+
`))},[n]),U.useEffect(()=>{l==="ready-to-close"&&u("closing")},[l]);const d=({propertyName:f})=>{f==="max-height"&&u(p=>p==="opening"?"open":p==="closing"?"closed":p)};if(!n)return null;const h=["opening","open"].includes(l);return O.jsxs(Br,{variant:"subtle",className:se("hide-show-text-box",e),children:[O.jsxs("div",{ref:a,className:se("content",l),children:[O.jsx(Su,{options:{forceBlock:!0},children:l==="closed"?s:n}),l!=="closed"&&o]}),O.jsx("p",{className:"cta",children:O.jsx(ze,{variant:"tertiary",icon:{icon:"navigation_arrow",position:"left",animate:!0},styling:{muted:!0},className:se({"rotate-180":h}),onClick:()=>{u(h?"ready-to-close":"opening")},children:h?r||i.formatMessage({id:"hideShowTextBox_hide"}):t||i.formatMessage({id:"hideShowTextBox_show"})})})]})},o1=()=>U.Fragment,s1=({children:e})=>O.jsx(Br,{variant:"secondary",children:e}),a1=["span","strong","h1","h2","h3","h4","h5","h6","p"],u1=({children:e})=>{const t=Oe();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 a of U.Children.toArray(i.props.children))if(!(!a||typeof a=="string"||typeof a=="number")&&U.isValidElement(a)){const s=a.type;if(a1.includes(s)){for(r=a.props.children;typeof r!="string"&&(Array.isArray(r)&&r[0].props&&r[0].props.children&&r[0].props.children[0]);)r=r[0].props.children[0];break}}}}else n.push(i);const o=r?r.toString():"";return O.jsx(Qf,{label:o,className:["Sources","Resources"].includes(o)?"discrete-links":"",children:n.map(i=>i)})},c1=({children:e,...t})=>{if(t.class)switch(t.class){case"casestudy":return O.jsx(Br,{variant:"secondary",children:e});case"general-textbox":case"highlight-box":return O.jsx(Br,{variant:"primary",children:e});case"pink-textbox":return O.jsx(Br,{variant:"tertiary",children:e});default:return O.jsx("div",{...t,children:e})}return O.jsx("div",{...t,children:e})},l1=e=>{const t=Oe(),r=Date.now().toString();let n="default";const o=e.src;return o.includes("youtube")||o.includes("vimeo")?n="video":o.includes("riddle")||o.includes("sli.do")?n="poll":o.includes("padlet")&&(n="padlet"),O.jsxs(O.Fragment,{children:[O.jsx(lt,{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})]})},Sm=e=>{let t="";return e&&typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"&&"type"in e&&(t=e.type),t},f1=({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 a=i.type;if(["button","center","span","strong"].includes(a)&&i.props&&i.props.children&&i.props.children[0])for((a==="button"||Sm(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&&Sm(n)==="button"&&(o=!0);else break}return o?(r={...r,className:"button primary medium"},O.jsx("p",{className:"center",children:O.jsx(ze,{variant:"primary",size:"medium",...r,children:n})})):O.jsx("a",{...r,children:n})},T0=({children:e})=>O.jsx("span",{children:e});const rf=({className:e="",options:t={},children:r})=>{r=r.replace(/^<br\/?>/,"");const n={wrapper:U.Fragment,forceBlock:!0,overrides:{a:f1,CollapsibleSection:Qf,TextBox:Br,CaseStudy:s1,style:o1,details:u1,div:c1,iframe:l1}};return O.jsx("div",{className:se("markdown-text",e),children:O.jsx(Su,{options:{...n,...t},children:r})})};const x0=({size:e="medium",variant:t="default",className:r="",children:n})=>O.jsx("span",{className:se("pill",e,t,r),children:n});const eu=({element:e="p",children:t=null,className:r="",...n})=>U.createElement(e,{...n,className:se("status-banner text-small",r),"aria-live":"assertive"},t);const h1=({progress:e=0,text:t=!1,className:r=""})=>{const n=Oe(),o=e>75?100:e>50?75:e>25?50:e>5?25:0,i={"--progress":`${e}%`};return O.jsx("span",{className:se(`progress-bar section-${o}`,r),style:i,children:O.jsx(lt,{children:t?`${e} ${t}`:n.formatMessage({id:"progressBar"},{number:e})})})},O0=U.memo(h1);const cl="loadingBlock_",d1=({progress:e=0,steps:t=!1,className:r=""})=>{const n=Oe();t||(t={0:{text:n.formatMessage({id:`${cl}loading`})},75:{text:n.formatMessage({id:`${cl}almostDone`})},100:{text:n.formatMessage({id:`${cl}complete`})}});let o=null;const i=Object.keys(t);for(let s=0;s<i.length&&!(e<parseInt(i[s]));s++)o=i[s];const a=o&&t[o].icon?{"--icon":`url(${Za}icons/${t[o].icon}.svg)`}:{};return O.jsxs(Br,{className:se("loading-block",r,{"has-icon":o&&t[o].icon}),variant:"subtle",style:a,children:[o&&O.jsx("span",{className:"step",children:t[o].text}),O.jsx(O0,{progress:e})]})},p1=U.memo(d1);const yr=({element:e="div",className:t="",...r})=>O.jsx(Sf,{element:e,className:se("loading-placeholder",t),...r});const nf={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"]},A0=(e,t)=>e in nf?O.jsx("div",{className:e,children:nf[e].map((r,n)=>A0(r,n))},t):O.jsx(yr,{className:e},t),C0=({layout:e="overview-page"})=>O.jsx("div",{className:se("loading-state",e),children:nf[e].map((t,r)=>A0(t,r))}),R0=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):""},Ia=["#5AB6A3","#A2D7AF","#806056","#3962B3"],m1=e=>{const t=Math.ceil(26/Ia.length),r=R0(e).toLowerCase();if(r==="")return Ia[0];const n=r.charCodeAt(0)-96;for(let o=0;o<Ia.length;o++)if(n<=t*(o+1))return Ia[o]};const Tm=256,Tu=({className:e="",src:t="",name:r,alt:n,width:o=Tm,height:i=Tm,...a})=>{const[s,c]=U.useState(!1),l=U.useRef(null);return U.useEffect(()=>{const u=l.current;if(!u)return;const d=u.getContext("2d");if(!d)return;const h=o,f=i;typeof window<"u"&&window.devicePixelRatio&&(u.width=h*window.devicePixelRatio,u.height=f*window.devicePixelRatio,d.scale(window.devicePixelRatio,window.devicePixelRatio)),d.fillStyle=m1(r),d.fillRect(0,0,h,f),d.font=`${h/3}px Arial`,d.textAlign="center",d.fillStyle="white",d.fillText(R0(r),h/2,f/1.6)},[r]),O.jsxs("figure",{className:se("profile-picture",e,{error:s}),...a,children:[t!==""&&!s&&O.jsx("img",{src:t,alt:n||r,onError:()=>{c(!0)},width:o,height:i}),(t===""||s)&&O.jsx("canvas",{ref:l})]})},Xf=e=>e==="apolitical"?{image:`${Za}logos/member_apolitical.svg`}:e==="community"||typeof e=="object"&&!e.name?{image:`${Za}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},g1=({role:e="",organisation:t="",country:r="",maximumCharacters:n=80})=>{const o=e!=="",i=t!=="",a=r!=="";if(!o&&!i&&!a)return"";const s=`${e}${o&&i?` — ${t}`:t}`;let c=`${s}${(o||i)&&a?`, ${r}`:r}`;return c.length>n&&(c=s),c.length>n&&(c=zf(c,n)),c};const xu=({element:e="div",member:t="community",additionalContent:r=!1,gtmContext:n="member",gtmType:o="member-click",className:i=""})=>{const a=Oe(),s=Xf(t);s.name||(s.name=a.formatMessage({id:`member_${typeof t=="string"?t:"community"}`}));const{name:c,url:l,image:u}=s,d=g1(s),h=r&&r.createdAt?vO(r.createdAt):!1,f=r&&r.createdAt?yO(r.createdAt):"";return U.createElement(e,{className:se("member text-medium",i),children:O.jsxs(bu,{href:l,gtmType:o,gtmContext:n,onClick:p=>{p==null||p.stopPropagation()},children:[O.jsx(Tu,{name:c,src:u}),O.jsxs("p",{className:"details",children:[O.jsx("strong",{children:c}),r&&O.jsxs("span",{className:"additional-content",children:[r.createdAt&&h&&O.jsx("span",{className:"date",title:f,"aria-label":f,children:a.formatMessage({id:`dates_${h.path}`},{number:h.number})}),r.didEdit&&O.jsx("em",{children:a.formatMessage({id:"discussion_edited"})})]}),d&&O.jsx("small",{children:d})]})]})})};const xm={small:24,medium:48},P0=({element:e="div",contributors:{total:t,data:r}={total:void 0,data:[]},styling:{showText:n,size:o,showGap:i,showPlaceholders:a}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:s=2,className:c=""})=>{const l=Oe();return!r||r.length===0?null:U.createElement(e,{className:se("contributors",c,o,{"has-gap":i}),children:O.jsxs(O.Fragment,{children:[O.jsx("ul",{children:r.map((u,d)=>{let h,f="";if(d<s){const{name:p="",image:m=""}=Xf(u);if(a)return O.jsx(yr,{element:"li",className:"contributor"},d);h=O.jsx(Tu,{name:p,src:m,width:xm[o||"medium"],height:xm[o||"medium"]})}else if(d===s){const p=(t||r.length)-s;h=O.jsxs("small",{className:se({"large-number":p>99}),children:["+",wO(p,0)]}),f="number-left"}return h?O.jsx("li",{className:se("contributor",f),children:h},d):null})}),n&&O.jsx("span",{className:"label",children:typeof n=="string"?n:r.length===1?typeof r[0]=="string"?l.formatMessage({id:`member_${r[0]}`}):zf(r[0].name||"",20):null})]})})},y1=({children:e,locale:t,messages:r})=>{const n=t||"en",o={...bO[n],...r||{}};return O.jsx(VA,{locale:n,messages:o,children:e})},$r=U.createContext(null),v1=({children:e,user:t})=>O.jsx($r.Provider,{value:t,children:e});var po=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},so=typeof window>"u"||"Deno"in window;function jt(){}function E1(e,t){return typeof e=="function"?e(t):e}function of(e){return typeof e=="number"&&e>=0&&e!==1/0}function N0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Om(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(n){if(t.queryHash!==Jf(a,t.options))return!1}else if(!Rs(t.queryKey,a))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function Am(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Cs(t.options.mutationKey)!==Cs(i))return!1}else if(!Rs(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function Jf(e,t){return((t==null?void 0:t.queryKeyHashFn)||Cs)(e)}function Cs(e){return JSON.stringify(e,(t,r)=>sf(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function Rs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!Rs(e[r],t[r])):!1}function I0(e,t){if(e===t)return e;const r=Cm(e)&&Cm(t);if(r||sf(e)&&sf(t)){const n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),i=o.length,a=r?[]:{};let s=0;for(let c=0;c<i;c++){const l=r?c:o[c];a[l]=I0(e[l],t[l]),a[l]===e[l]&&s++}return n===i&&s===n?e:a}return t}function tu(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Cm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function sf(e){if(!Rm(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!Rm(r)||!r.hasOwnProperty("isPrototypeOf"))}function Rm(e){return Object.prototype.toString.call(e)==="[object Object]"}function L0(e){return new Promise(t=>{setTimeout(t,e)})}function Pm(e){L0(0).then(e)}function af(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?I0(e,t):t}function _1(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function b1(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Gn,en,Li,Xm,w1=(Xm=class extends po{constructor(){super();ne(this,Gn,void 0);ne(this,en,void 0);ne(this,Li,void 0);J(this,Li,t=>{if(!so&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){P(this,en)||this.setEventListener(P(this,Li))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,en))==null||t.call(this),J(this,en,void 0))}setEventListener(t){var r;J(this,Li,t),(r=P(this,en))==null||r.call(this),J(this,en,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){P(this,Gn)!==t&&(J(this,Gn,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof P(this,Gn)=="boolean"?P(this,Gn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Gn=new WeakMap,en=new WeakMap,Li=new WeakMap,Xm),ru=new w1,ki,tn,Mi,Jm,S1=(Jm=class extends po{constructor(){super();ne(this,ki,!0);ne(this,tn,void 0);ne(this,Mi,void 0);J(this,Mi,t=>{if(!so&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){P(this,tn)||this.setEventListener(P(this,Mi))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,tn))==null||t.call(this),J(this,tn,void 0))}setEventListener(t){var r;J(this,Mi,t),(r=P(this,tn))==null||r.call(this),J(this,tn,t(this.setOnline.bind(this)))}setOnline(t){P(this,ki)!==t&&(J(this,ki,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return P(this,ki)}},ki=new WeakMap,tn=new WeakMap,Mi=new WeakMap,Jm),Ps=new S1;function T1(e){return Math.min(1e3*2**e,3e4)}function Ou(e){return(e??"online")==="online"?Ps.isOnline():!0}var k0=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ll(e){return e instanceof k0}function M0(e){let t=!1,r=0,n=!1,o,i,a;const s=new Promise((_,S)=>{i=_,a=S}),c=_=>{var S;n||(f(new k0(_)),(S=e.abort)==null||S.call(e))},l=()=>{t=!0},u=()=>{t=!1},d=()=>!ru.isFocused()||e.networkMode!=="always"&&!Ps.isOnline(),h=_=>{var S;n||(n=!0,(S=e.onSuccess)==null||S.call(e,_),o==null||o(),i(_))},f=_=>{var S;n||(n=!0,(S=e.onError)==null||S.call(e,_),o==null||o(),a(_))},p=()=>new Promise(_=>{var S;o=v=>{const b=n||!d();return b&&_(v),b},(S=e.onPause)==null||S.call(e)}).then(()=>{var _;o=void 0,n||(_=e.onContinue)==null||_.call(e)}),m=()=>{if(n)return;let _;try{_=e.fn()}catch(S){_=Promise.reject(S)}Promise.resolve(_).then(h).catch(S=>{var N;if(n)return;const v=e.retry??(so?0:3),b=e.retryDelay??T1,T=typeof b=="function"?b(r,S):b,w=v===!0||typeof v=="number"&&r<v||typeof v=="function"&&v(r,S);if(t||!w){f(S);return}r++,(N=e.onFail)==null||N.call(e,r,S),L0(T).then(()=>{if(d())return p()}).then(()=>{t?f(S):m()})})};return Ou(e.networkMode)?m():p().then(m),{promise:s,cancel:c,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:l,continueRetry:u}}function x1(){let e=[],t=0,r=u=>{u()},n=u=>{u()};const o=u=>{let d;t++;try{d=u()}finally{t--,t||s()}return d},i=u=>{t?e.push(u):Pm(()=>{r(u)})},a=u=>(...d)=>{i(()=>{u(...d)})},s=()=>{const u=e;e=[],u.length&&Pm(()=>{n(()=>{u.forEach(d=>{r(d)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:u=>{r=u},setBatchNotifyFunction:u=>{n=u}}}var Ke=x1(),Vn,Zm,F0=(Zm=class{constructor(){ne(this,Vn,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),of(this.gcTime)&&J(this,Vn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(so?1/0:5*60*1e3))}clearGcTimeout(){P(this,Vn)&&(clearTimeout(P(this,Vn)),J(this,Vn,void 0))}},Vn=new WeakMap,Zm),Fi,Di,Dt,rn,Bt,it,Ms,Wn,Bi,Ha,Zt,kr,eg,O1=(eg=class extends F0{constructor(t){super();ne(this,Bi);ne(this,Zt);ne(this,Fi,void 0);ne(this,Di,void 0);ne(this,Dt,void 0);ne(this,rn,void 0);ne(this,Bt,void 0);ne(this,it,void 0);ne(this,Ms,void 0);ne(this,Wn,void 0);J(this,Wn,!1),J(this,Ms,t.defaultOptions),ye(this,Bi,Ha).call(this,t.options),J(this,it,[]),J(this,Dt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,J(this,Fi,t.state||A1(this.options)),this.state=P(this,Fi),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!P(this,it).length&&this.state.fetchStatus==="idle"&&P(this,Dt).remove(this)}setData(t,r){const n=af(this.state.data,t,this.options);return ye(this,Zt,kr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ye(this,Zt,kr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n;const r=P(this,rn);return(n=P(this,Bt))==null||n.cancel(t),r?r.then(jt).catch(jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,Fi))}isActive(){return P(this,it).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||P(this,it).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!N0(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=P(this,it).find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=P(this,Bt))==null||r.continue()}onOnline(){var r;const t=P(this,it).find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=P(this,Bt))==null||r.continue()}addObserver(t){P(this,it).includes(t)||(P(this,it).push(t),this.clearGcTimeout(),P(this,Dt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){P(this,it).includes(t)&&(J(this,it,P(this,it).filter(r=>r!==t)),P(this,it).length||(P(this,Bt)&&(P(this,Wn)?P(this,Bt).cancel({revert:!0}):P(this,Bt).cancelRetry()),this.scheduleGc()),P(this,Dt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return P(this,it).length}invalidate(){this.state.isInvalidated||ye(this,Zt,kr).call(this,{type:"invalidate"})}fetch(t,r){var l,u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(P(this,rn))return(l=P(this,Bt))==null||l.continueRetry(),P(this,rn)}if(t&&ye(this,Bi,Ha).call(this,t),!this.options.queryFn){const f=P(this,it).find(p=>p.options.queryFn);f&&ye(this,Bi,Ha).call(this,f.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const n=new AbortController,o={queryKey:this.queryKey,meta:this.meta},i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(J(this,Wn,!0),n.signal)})};i(o);const a=()=>this.options.queryFn?(J(this,Wn,!1),this.options.persister?this.options.persister(this.options.queryFn,o,this):this.options.queryFn(o)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),s={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(s),(u=this.options.behavior)==null||u.onFetch(s,this),J(this,Di,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&ye(this,Zt,kr).call(this,{type:"fetch",meta:(h=s.fetchOptions)==null?void 0:h.meta});const c=f=>{var p,m,_,S;ll(f)&&f.silent||ye(this,Zt,kr).call(this,{type:"error",error:f}),ll(f)||((m=(p=P(this,Dt).config).onError)==null||m.call(p,f,this),(S=(_=P(this,Dt).config).onSettled)==null||S.call(_,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return J(this,Bt,M0({fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var p,m,_,S;if(typeof f>"u"){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(m=(p=P(this,Dt).config).onSuccess)==null||m.call(p,f,this),(S=(_=P(this,Dt).config).onSettled)==null||S.call(_,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:c,onFail:(f,p)=>{ye(this,Zt,kr).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{ye(this,Zt,kr).call(this,{type:"pause"})},onContinue:()=>{ye(this,Zt,kr).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode})),J(this,rn,P(this,Bt).promise),P(this,rn)}},Fi=new WeakMap,Di=new WeakMap,Dt=new WeakMap,rn=new WeakMap,Bt=new WeakMap,it=new WeakMap,Ms=new WeakMap,Wn=new WeakMap,Bi=new WeakSet,Ha=function(t){this.options={...P(this,Ms),...t},this.updateGcTime(this.options.gcTime)},Zt=new WeakSet,kr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:Ou(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return ll(o)&&o.revert&&P(this,Di)?{...P(this,Di),fetchStatus:"idle"}:{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Ke.batch(()=>{P(this,it).forEach(n=>{n.onQueryUpdate()}),P(this,Dt).notify({query:this,type:"updated",action:t})})},eg);function A1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var lr,tg,C1=(tg=class extends po{constructor(t={}){super();ne(this,lr,void 0);this.config=t,J(this,lr,new Map)}build(t,r,n){const o=r.queryKey,i=r.queryHash??Jf(o,r);let a=this.get(i);return a||(a=new O1({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){P(this,lr).has(t.queryHash)||(P(this,lr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=P(this,lr).get(t.queryHash);r&&(t.destroy(),r===t&&P(this,lr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,lr).get(t)}getAll(){return[...P(this,lr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Om(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Om(t,n)):r}notify(t){Ke.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Ke.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ke.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},lr=new WeakMap,tg),fr,Fs,Lt,Ui,hr,Jr,rg,R1=(rg=class extends F0{constructor(t){super();ne(this,hr);ne(this,fr,void 0);ne(this,Fs,void 0);ne(this,Lt,void 0);ne(this,Ui,void 0);this.mutationId=t.mutationId,J(this,Fs,t.defaultOptions),J(this,Lt,t.mutationCache),J(this,fr,[]),this.state=t.state||D0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...P(this,Fs),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,fr).includes(t)||(P(this,fr).push(t),this.clearGcTimeout(),P(this,Lt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){J(this,fr,P(this,fr).filter(r=>r!==t)),this.scheduleGc(),P(this,Lt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,fr).length||(this.state.status==="pending"?this.scheduleGc():P(this,Lt).remove(this))}continue(){var t;return((t=P(this,Ui))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,s,c,l,u,d,h,f,p,m,_,S,v,b,T,w,N,R;const r=()=>(J(this,Ui,M0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,$)=>{ye(this,hr,Jr).call(this,{type:"failed",failureCount:L,error:$})},onPause:()=>{ye(this,hr,Jr).call(this,{type:"pause"})},onContinue:()=>{ye(this,hr,Jr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),P(this,Ui).promise),n=this.state.status==="pending";try{if(!n){ye(this,hr,Jr).call(this,{type:"pending",variables:t}),await((i=(o=P(this,Lt).config).onMutate)==null?void 0:i.call(o,t,this));const $=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));$!==this.state.context&&ye(this,hr,Jr).call(this,{type:"pending",context:$,variables:t})}const L=await r();return await((l=(c=P(this,Lt).config).onSuccess)==null?void 0:l.call(c,L,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,L,t,this.state.context)),await((f=(h=P(this,Lt).config).onSettled)==null?void 0:f.call(h,L,null,this.state.variables,this.state.context,this)),await((m=(p=this.options).onSettled)==null?void 0:m.call(p,L,null,t,this.state.context)),ye(this,hr,Jr).call(this,{type:"success",data:L}),L}catch(L){try{throw await((S=(_=P(this,Lt).config).onError)==null?void 0:S.call(_,L,t,this.state.context,this)),await((b=(v=this.options).onError)==null?void 0:b.call(v,L,t,this.state.context)),await((w=(T=P(this,Lt).config).onSettled)==null?void 0:w.call(T,void 0,L,this.state.variables,this.state.context,this)),await((R=(N=this.options).onSettled)==null?void 0:R.call(N,void 0,L,t,this.state.context)),L}finally{ye(this,hr,Jr).call(this,{type:"error",error:L})}}}},fr=new WeakMap,Fs=new WeakMap,Lt=new WeakMap,Ui=new WeakMap,hr=new WeakSet,Jr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Ou(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ke.batch(()=>{P(this,fr).forEach(n=>{n.onMutationUpdate(t)}),P(this,Lt).notify({mutation:this,type:"updated",action:t})})},rg);function D0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ut,Ds,zn,ng,P1=(ng=class extends po{constructor(t={}){super();ne(this,Ut,void 0);ne(this,Ds,void 0);ne(this,zn,void 0);this.config=t,J(this,Ut,[]),J(this,Ds,0)}build(t,r,n){const o=new R1({mutationCache:this,mutationId:++ua(this,Ds)._,options:t.defaultMutationOptions(r),state:n});return this.add(o),o}add(t){P(this,Ut).push(t),this.notify({type:"added",mutation:t})}remove(t){J(this,Ut,P(this,Ut).filter(r=>r!==t)),this.notify({type:"removed",mutation:t})}clear(){Ke.batch(()=>{P(this,Ut).forEach(t=>{this.remove(t)})})}getAll(){return P(this,Ut)}find(t){const r={exact:!0,...t};return P(this,Ut).find(n=>Am(r,n))}findAll(t={}){return P(this,Ut).filter(r=>Am(t,r))}notify(t){Ke.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){return J(this,zn,(P(this,zn)??Promise.resolve()).then(()=>{const t=P(this,Ut).filter(r=>r.state.isPaused);return Ke.batch(()=>t.reduce((r,n)=>r.then(()=>n.continue().catch(jt)),Promise.resolve()))}).then(()=>{J(this,zn,void 0)})),P(this,zn)}},Ut=new WeakMap,Ds=new WeakMap,zn=new WeakMap,ng);function N1(e){return{onFetch:(t,r)=>{const n=async()=>{var p,m,_,S,v;const o=t.options,i=(_=(m=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:_.direction,a=((S=t.state.data)==null?void 0:S.pages)||[],s=((v=t.state.data)==null?void 0:v.pageParams)||[],c={pages:[],pageParams:[]};let l=!1;const u=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?l=!0:t.signal.addEventListener("abort",()=>{l=!0}),t.signal)})},d=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),h=async(b,T,w)=>{if(l)return Promise.reject();if(T==null&&b.pages.length)return Promise.resolve(b);const N={queryKey:t.queryKey,pageParam:T,direction:w?"backward":"forward",meta:t.options.meta};u(N);const R=await d(N),{maxPages:L}=t.options,$=w?b1:_1;return{pages:$(b.pages,R,L),pageParams:$(b.pageParams,T,L)}};let f;if(i&&a.length){const b=i==="backward",T=b?I1:Nm,w={pages:a,pageParams:s},N=T(o,w);f=await h(w,N,b)}else{f=await h(c,s[0]??o.initialPageParam);const b=e??a.length;for(let T=1;T<b;T++){const w=Nm(o,f);f=await h(f,w)}}return f};t.options.persister?t.fetchFn=()=>{var o,i;return(i=(o=t.options).persister)==null?void 0:i.call(o,n,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=n}}}function Nm(e,{pages:t,pageParams:r}){const n=t.length-1;return e.getNextPageParam(t[n],t,r[n],r)}function I1(e,{pages:t,pageParams:r}){var n;return(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r)}var Ye,nn,on,$i,ji,sn,Hi,qi,ig,L1=(ig=class{constructor(e={}){ne(this,Ye,void 0);ne(this,nn,void 0);ne(this,on,void 0);ne(this,$i,void 0);ne(this,ji,void 0);ne(this,sn,void 0);ne(this,Hi,void 0);ne(this,qi,void 0);J(this,Ye,e.queryCache||new C1),J(this,nn,e.mutationCache||new P1),J(this,on,e.defaultOptions||{}),J(this,$i,new Map),J(this,ji,new Map),J(this,sn,0)}mount(){ua(this,sn)._++,P(this,sn)===1&&(J(this,Hi,ru.subscribe(()=>{ru.isFocused()&&(this.resumePausedMutations(),P(this,Ye).onFocus())})),J(this,qi,Ps.subscribe(()=>{Ps.isOnline()&&(this.resumePausedMutations(),P(this,Ye).onOnline())})))}unmount(){var e,t;ua(this,sn)._--,P(this,sn)===0&&((e=P(this,Hi))==null||e.call(this),J(this,Hi,void 0),(t=P(this,qi))==null||t.call(this),J(this,qi,void 0))}isFetching(e){return P(this,Ye).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,nn).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=P(this,Ye).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=P(this,Ye).find({queryKey:e}),o=n==null?void 0:n.state.data,i=E1(t,o);if(typeof i>"u")return;const a=this.defaultQueryOptions({queryKey:e});return P(this,Ye).build(this,a).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return Ke.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var t;return(t=P(this,Ye).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=P(this,Ye);Ke.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=P(this,Ye),n={type:"active",...e};return Ke.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=Ke.batch(()=>P(this,Ye).findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(jt).catch(jt)}invalidateQueries(e={},t={}){return Ke.batch(()=>{if(P(this,Ye).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=Ke.batch(()=>P(this,Ye).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch(jt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const r=P(this,Ye).build(this,t);return r.isStaleByTime(t.staleTime)?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(jt).catch(jt)}fetchInfiniteQuery(e){return e.behavior=N1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jt).catch(jt)}resumePausedMutations(){return P(this,nn).resumePausedMutations()}getQueryCache(){return P(this,Ye)}getMutationCache(){return P(this,nn)}getDefaultOptions(){return P(this,on)}setDefaultOptions(e){J(this,on,e)}setQueryDefaults(e,t){P(this,$i).set(Cs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,$i).values()];let r={};return t.forEach(n=>{Rs(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){P(this,ji).set(Cs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,ji).values()];let r={};return t.forEach(n=>{Rs(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...P(this,on).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Jf(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,on).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,Ye).clear(),P(this,nn).clear()}},Ye=new WeakMap,nn=new WeakMap,on=new WeakMap,$i=new WeakMap,ji=new WeakMap,sn=new WeakMap,Hi=new WeakMap,qi=new WeakMap,ig),At,Be,Gi,pt,Qn,Vi,dr,Bs,Wi,zi,Yn,Kn,an,Xn,Jn,Es,Us,uf,$s,cf,js,lf,Hs,ff,qs,hf,Gs,df,Vs,pf,du,B0,og,k1=(og=class extends po{constructor(t,r){super();ne(this,Jn);ne(this,Us);ne(this,$s);ne(this,js);ne(this,Hs);ne(this,qs);ne(this,Gs);ne(this,Vs);ne(this,du);ne(this,At,void 0);ne(this,Be,void 0);ne(this,Gi,void 0);ne(this,pt,void 0);ne(this,Qn,void 0);ne(this,Vi,void 0);ne(this,dr,void 0);ne(this,Bs,void 0);ne(this,Wi,void 0);ne(this,zi,void 0);ne(this,Yn,void 0);ne(this,Kn,void 0);ne(this,an,void 0);ne(this,Xn,void 0);J(this,Be,void 0),J(this,Gi,void 0),J(this,pt,void 0),J(this,Xn,new Set),J(this,At,t),this.options=r,J(this,dr,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(P(this,Be).addObserver(this),Im(P(this,Be),this.options)&&ye(this,Jn,Es).call(this),ye(this,Hs,ff).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return mf(P(this,Be),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return mf(P(this,Be),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ye(this,qs,hf).call(this),ye(this,Gs,df).call(this),P(this,Be).removeObserver(this)}setOptions(t,r){const n=this.options,o=P(this,Be);if(this.options=P(this,At).defaultQueryOptions(t),tu(n,this.options)||P(this,At).getQueryCache().notify({type:"observerOptionsUpdated",query:P(this,Be),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),ye(this,Vs,pf).call(this);const i=this.hasListeners();i&&Lm(P(this,Be),o,this.options,n)&&ye(this,Jn,Es).call(this),this.updateResult(r),i&&(P(this,Be)!==o||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&ye(this,Us,uf).call(this);const a=ye(this,$s,cf).call(this);i&&(P(this,Be)!==o||this.options.enabled!==n.enabled||a!==P(this,an))&&ye(this,js,lf).call(this,a)}getOptimisticResult(t){const r=P(this,At).getQueryCache().build(P(this,At),t),n=this.createResult(r,t);return F1(this,n)&&(J(this,pt,n),J(this,Vi,this.options),J(this,Qn,P(this,Be).state)),n}getCurrentResult(){return P(this,pt)}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(P(this,Xn).add(n),t[n])})}),r}getCurrentQuery(){return P(this,Be)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=P(this,At).defaultQueryOptions(t),n=P(this,At).getQueryCache().build(P(this,At),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return ye(this,Jn,Es).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),P(this,pt)))}createResult(t,r){var N;const n=P(this,Be),o=this.options,i=P(this,pt),a=P(this,Qn),s=P(this,Vi),l=t!==n?t.state:P(this,Gi),{state:u}=t;let{error:d,errorUpdatedAt:h,fetchStatus:f,status:p}=u,m=!1,_;if(r._optimisticResults){const R=this.hasListeners(),L=!R&&Im(t,r),$=R&&Lm(t,n,r,o);(L||$)&&(f=Ou(t.options.networkMode)?"fetching":"paused",u.dataUpdatedAt||(p="pending")),r._optimisticResults==="isRestoring"&&(f="idle")}if(r.select&&typeof u.data<"u")if(i&&u.data===(a==null?void 0:a.data)&&r.select===P(this,Bs))_=P(this,Wi);else try{J(this,Bs,r.select),_=r.select(u.data),_=af(i==null?void 0:i.data,_,r),J(this,Wi,_),J(this,dr,null)}catch(R){J(this,dr,R)}else _=u.data;if(typeof r.placeholderData<"u"&&typeof _>"u"&&p==="pending"){let R;if(i!=null&&i.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))R=i.data;else if(R=typeof r.placeholderData=="function"?r.placeholderData((N=P(this,zi))==null?void 0:N.state.data,P(this,zi)):r.placeholderData,r.select&&typeof R<"u")try{R=r.select(R),J(this,dr,null)}catch(L){J(this,dr,L)}typeof R<"u"&&(p="success",_=af(i==null?void 0:i.data,R,r),m=!0)}P(this,dr)&&(d=P(this,dr),_=P(this,Wi),h=Date.now(),p="error");const S=f==="fetching",v=p==="pending",b=p==="error",T=v&&S;return{status:p,fetchStatus:f,isPending:v,isSuccess:p==="success",isError:b,isInitialLoading:T,isLoading:T,data:_,dataUpdatedAt:u.dataUpdatedAt,error:d,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:S,isRefetching:S&&!v,isLoadingError:b&&u.dataUpdatedAt===0,isPaused:f==="paused",isPlaceholderData:m,isRefetchError:b&&u.dataUpdatedAt!==0,isStale:Zf(t,r),refetch:this.refetch}}updateResult(t){const r=P(this,pt),n=this.createResult(P(this,Be),this.options);if(J(this,Qn,P(this,Be).state),J(this,Vi,this.options),tu(n,r))return;P(this,Qn).data!==void 0&&J(this,zi,P(this,Be)),J(this,pt,n);const o={},i=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!P(this,Xn).size)return!0;const c=new Set(s??P(this,Xn));return this.options.throwOnError&&c.add("error"),Object.keys(P(this,pt)).some(l=>{const u=l;return P(this,pt)[u]!==r[u]&&c.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),ye(this,du,B0).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ye(this,Hs,ff).call(this)}},At=new WeakMap,Be=new WeakMap,Gi=new WeakMap,pt=new WeakMap,Qn=new WeakMap,Vi=new WeakMap,dr=new WeakMap,Bs=new WeakMap,Wi=new WeakMap,zi=new WeakMap,Yn=new WeakMap,Kn=new WeakMap,an=new WeakMap,Xn=new WeakMap,Jn=new WeakSet,Es=function(t){ye(this,Vs,pf).call(this);let r=P(this,Be).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(jt)),r},Us=new WeakSet,uf=function(){if(ye(this,qs,hf).call(this),so||P(this,pt).isStale||!of(this.options.staleTime))return;const r=N0(P(this,pt).dataUpdatedAt,this.options.staleTime)+1;J(this,Yn,setTimeout(()=>{P(this,pt).isStale||this.updateResult()},r))},$s=new WeakSet,cf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(P(this,Be)):this.options.refetchInterval)??!1},js=new WeakSet,lf=function(t){ye(this,Gs,df).call(this),J(this,an,t),!(so||this.options.enabled===!1||!of(P(this,an))||P(this,an)===0)&&J(this,Kn,setInterval(()=>{(this.options.refetchIntervalInBackground||ru.isFocused())&&ye(this,Jn,Es).call(this)},P(this,an)))},Hs=new WeakSet,ff=function(){ye(this,Us,uf).call(this),ye(this,js,lf).call(this,ye(this,$s,cf).call(this))},qs=new WeakSet,hf=function(){P(this,Yn)&&(clearTimeout(P(this,Yn)),J(this,Yn,void 0))},Gs=new WeakSet,df=function(){P(this,Kn)&&(clearInterval(P(this,Kn)),J(this,Kn,void 0))},Vs=new WeakSet,pf=function(){const t=P(this,At).getQueryCache().build(P(this,At),this.options);if(t===P(this,Be))return;const r=P(this,Be);J(this,Be,t),J(this,Gi,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},du=new WeakSet,B0=function(t){Ke.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(P(this,pt))}),P(this,At).getQueryCache().notify({query:P(this,Be),type:"observerResultsUpdated"})})},og);function M1(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Im(e,t){return M1(e,t)||e.state.dataUpdatedAt>0&&mf(e,t,t.refetchOnMount)}function mf(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Zf(e,t)}return!1}function Lm(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&Zf(e,r)}function Zf(e,t){return e.isStaleByTime(t.staleTime)}function F1(e,t){return!tu(e.getCurrentResult(),t)}var un,Et,$t,Fr,Qi,qa,Ws,gf,sg,D1=(sg=class extends po{constructor(t,r){super();ne(this,Qi);ne(this,Ws);ne(this,un,void 0);ne(this,Et,void 0);ne(this,$t,void 0);ne(this,Fr,void 0);J(this,Et,void 0),J(this,un,t),this.setOptions(r),this.bindMethods(),ye(this,Qi,qa).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=P(this,un).defaultMutationOptions(t),tu(r,this.options)||P(this,un).getMutationCache().notify({type:"observerOptionsUpdated",mutation:P(this,$t),observer:this}),(n=P(this,$t))==null||n.setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=P(this,$t))==null||t.removeObserver(this)}onMutationUpdate(t){ye(this,Qi,qa).call(this),ye(this,Ws,gf).call(this,t)}getCurrentResult(){return P(this,Et)}reset(){J(this,$t,void 0),ye(this,Qi,qa).call(this),ye(this,Ws,gf).call(this)}mutate(t,r){var n;return J(this,Fr,r),(n=P(this,$t))==null||n.removeObserver(this),J(this,$t,P(this,un).getMutationCache().build(P(this,un),this.options)),P(this,$t).addObserver(this),P(this,$t).execute(t)}},un=new WeakMap,Et=new WeakMap,$t=new WeakMap,Fr=new WeakMap,Qi=new WeakSet,qa=function(){var r;const t=((r=P(this,$t))==null?void 0:r.state)??D0();J(this,Et,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Ws=new WeakSet,gf=function(t){Ke.batch(()=>{var r,n,o,i,a,s,c,l;P(this,Fr)&&this.hasListeners()&&((t==null?void 0:t.type)==="success"?((n=(r=P(this,Fr)).onSuccess)==null||n.call(r,t.data,P(this,Et).variables,P(this,Et).context),(i=(o=P(this,Fr)).onSettled)==null||i.call(o,t.data,null,P(this,Et).variables,P(this,Et).context)):(t==null?void 0:t.type)==="error"&&((s=(a=P(this,Fr)).onError)==null||s.call(a,t.error,P(this,Et).variables,P(this,Et).context),(l=(c=P(this,Fr)).onSettled)==null||l.call(c,void 0,t.error,P(this,Et).variables,P(this,Et).context))),this.listeners.forEach(u=>{u(P(this,Et))})})},sg),U0=pe.createContext(void 0),mo=e=>{const t=pe.useContext(U0);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},B1=({client:e,children:t})=>(pe.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),pe.createElement(U0.Provider,{value:e},t)),$0=pe.createContext(!1),U1=()=>pe.useContext($0);$0.Provider;function $1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var j1=pe.createContext($1()),H1=()=>pe.useContext(j1);function j0(e,t){return typeof e=="function"?e(...t):!!e}var q1=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},G1=e=>{pe.useEffect(()=>{e.clearReset()},[e])},V1=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&j0(r,[e.error,n]),W1=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},z1=(e,t)=>e.isLoading&&e.isFetching&&!t,Q1=(e,t,r)=>(e==null?void 0:e.suspense)&&z1(t,r),Y1=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function K1(e,t,r){const n=mo(r),o=U1(),i=H1(),a=n.defaultQueryOptions(e);a._optimisticResults=o?"isRestoring":"optimistic",W1(a),q1(a,i),G1(i);const[s]=pe.useState(()=>new t(n,a)),c=s.getOptimisticResult(a);if(pe.useSyncExternalStore(pe.useCallback(l=>{const u=o?()=>{}:s.subscribe(Ke.batchCalls(l));return s.updateResult(),u},[s,o]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),pe.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),Q1(a,c,o))throw Y1(a,s,i);if(V1({result:c,errorResetBoundary:i,throwOnError:a.throwOnError,query:s.getCurrentQuery()}))throw c.error;return a.notifyOnChangeProps?c:s.trackResult(c)}function H0(e,t){return K1(e,k1,t)}function fn(e,t){const r=mo(t),[n]=pe.useState(()=>new D1(r,e));pe.useEffect(()=>{n.setOptions(e)},[n,e]);const o=pe.useSyncExternalStore(pe.useCallback(a=>n.subscribe(Ke.batchCalls(a)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=pe.useCallback((a,s)=>{n.mutate(a,s).catch(X1)},[n]);if(o.error&&j0(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function X1(){}var ve={context:void 0,registry:void 0};function _s(e){ve.context=e}var J1=(e,t)=>e===t,Ns=Symbol("solid-proxy"),eh=Symbol("solid-track"),Z1=Symbol("solid-dev-component"),nu={equals:J1},q0=z0,jr=1,iu=2,G0={owned:null,cleanups:null,context:null,owner:null},fl={},Ue=null,hl=null,Me=null,mt=null,Ur=null,Au=0,[eR,rI]=bt(!1);function hn(e,t){const r=Me,n=Ue,o=e.length===0,i=o?G0:{owned:null,cleanups:null,context:null,owner:t===void 0?n:t},a=o?e:()=>e(()=>Xe(()=>Ru(i)));Ue=i,Me=null;try{return vr(a,!0)}finally{Me=r,Ue=n}}function bt(e,t){t=t?Object.assign({},nu,t):nu;const r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=o=>(typeof o=="function"&&(o=o(r.value)),W0(r,o));return[V0.bind(r),n]}function yf(e,t,r){const n=Cu(e,t,!0,jr);go(n)}function dn(e,t,r){const n=Cu(e,t,!1,jr);go(n)}function th(e,t,r){q0=pR;const n=Cu(e,t,!1,jr);(!r||!r.render)&&(n.user=!0),Ur?Ur.push(n):go(n)}function St(e,t,r){r=r?Object.assign({},nu,r):nu;const n=Cu(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=r.equals||void 0,go(n),V0.bind(n)}function tR(e,t,r){let n,o,i;arguments.length===2&&typeof t=="object"||arguments.length===1?(n=!0,o=e,i=t||{}):(n=e,o=t,i=r||{});let a=null,s=fl,c=null,l=!1,u="initialValue"in i,d=typeof n=="function"&&St(n);const h=new Set,[f,p]=(i.storage||bt)(i.initialValue),[m,_]=bt(void 0),[S,v]=bt(void 0,{equals:!1}),[b,T]=bt(u?"ready":"unresolved");if(ve.context){c=`${ve.context.id}${ve.context.count++}`;let $;i.ssrLoadFrom==="initial"?s=i.initialValue:ve.load&&($=ve.load(c))&&(s=$[0])}function w($,G,q,H){return a===$&&(a=null,H!==void 0&&(u=!0),($===s||G===s)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated(H,{value:G})),s=fl,N(G,q)),G}function N($,G){vr(()=>{G===void 0&&p(()=>$),T(G!==void 0?"errored":u?"ready":"unresolved"),_(G);for(const q of h.keys())q.decrement();h.clear()},!1)}function R(){const $=fR,G=f(),q=m();if(q!==void 0&&!a)throw q;return Me&&!Me.user&&$&&yf(()=>{S(),a&&($.resolved||h.has($)||($.increment(),h.add($)))}),G}function L($=!0){if($!==!1&&l)return;l=!1;const G=d?d():n;if(G==null||G===!1){w(a,Xe(f));return}const q=s!==fl?s:Xe(()=>o(G,{value:f(),refetching:$}));return typeof q!="object"||!(q&&"then"in q)?(w(a,q,void 0,G),q):(a=q,l=!0,queueMicrotask(()=>l=!1),vr(()=>{T(u?"refreshing":"pending"),v()},!1),q.then(H=>w(q,H,void 0,G),H=>w(q,void 0,Y0(H),G)))}return Object.defineProperties(R,{state:{get:()=>b()},error:{get:()=>m()},loading:{get(){const $=b();return $==="pending"||$==="refreshing"}},latest:{get(){if(!u)return R();const $=m();if($&&!a)throw $;return f()}}}),d?yf(()=>L(!1)):L(!1),[R,{refetch:L,mutate:p}]}function rR(e){return vr(e,!1)}function Xe(e){if(Me===null)return e();const t=Me;Me=null;try{return e()}finally{Me=t}}function nR(e,t,r){const n=Array.isArray(e);let o,i=r&&r.defer;return a=>{let s;if(n){s=Array(e.length);for(let l=0;l<e.length;l++)s[l]=e[l]()}else s=e();if(i){i=!1;return}const c=Xe(()=>t(s,o,a));return o=s,c}}function iR(e){th(()=>Xe(e))}function Is(e){return Ue===null||(Ue.cleanups===null?Ue.cleanups=[e]:Ue.cleanups.push(e)),e}function oR(){return Me}function km(){return Ue}function sR(e,t){const r=Ue,n=Me;Ue=e,Me=null;try{return vr(t,!0)}catch(o){nh(o)}finally{Ue=r,Me=n}}function aR(e){const t=Me,r=Ue;return Promise.resolve().then(()=>{Me=t,Ue=r;let n;return vr(e,!1),Me=Ue=null,n?n.done:void 0})}function uR(){return[eR,aR]}function cR(e,t){const r=Symbol("context");return{id:r,Provider:mR(r),defaultValue:e}}function lR(e){let t;return(t=K0(Ue,e.id))!==void 0?t:e.defaultValue}function rh(e){const t=St(e),r=St(()=>vf(t()));return r.toArray=()=>{const n=r();return Array.isArray(n)?n:n!=null?[n]:[]},r}var fR;function V0(){if(this.sources&&this.state)if(this.state===jr)go(this);else{const e=mt;mt=null,vr(()=>su(this),!1),mt=e}if(Me){const e=this.observers?this.observers.length:0;Me.sources?(Me.sources.push(this),Me.sourceSlots.push(e)):(Me.sources=[this],Me.sourceSlots=[e]),this.observers?(this.observers.push(Me),this.observerSlots.push(Me.sources.length-1)):(this.observers=[Me],this.observerSlots=[Me.sources.length-1])}return this.value}function W0(e,t,r){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&vr(()=>{for(let o=0;o<e.observers.length;o+=1){const i=e.observers[o],a=hl&&hl.running;a&&hl.disposed.has(i),(a?!i.tState:!i.state)&&(i.pure?mt.push(i):Ur.push(i),i.observers&&Q0(i)),a||(i.state=jr)}if(mt.length>1e6)throw mt=[],new Error},!1)),t}function go(e){if(!e.fn)return;Ru(e);const t=Ue,r=Me,n=Au;Me=Ue=e,hR(e,e.value,n),Me=r,Ue=t}function hR(e,t,r){let n;try{n=e.fn(t)}catch(o){return e.pure&&(e.state=jr,e.owned&&e.owned.forEach(Ru),e.owned=null),e.updatedAt=r+1,nh(o)}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?W0(e,n):e.value=n,e.updatedAt=r)}function Cu(e,t,r,n=jr,o){const i={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ue,context:null,pure:r};return Ue===null||Ue!==G0&&(Ue.owned?Ue.owned.push(i):Ue.owned=[i]),i}function ou(e){if(e.state===0)return;if(e.state===iu)return su(e);if(e.suspense&&Xe(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Au);)e.state&&t.push(e);for(let r=t.length-1;r>=0;r--)if(e=t[r],e.state===jr)go(e);else if(e.state===iu){const n=mt;mt=null,vr(()=>su(e,t[0]),!1),mt=n}}function vr(e,t){if(mt)return e();let r=!1;t||(mt=[]),Ur?r=!0:Ur=[],Au++;try{const n=e();return dR(r),n}catch(n){r||(Ur=null),mt=null,nh(n)}}function dR(e){if(mt&&(z0(mt),mt=null),e)return;const t=Ur;Ur=null,t.length&&vr(()=>q0(t),!1)}function z0(e){for(let t=0;t<e.length;t++)ou(e[t])}function pR(e){let t,r=0;for(t=0;t<e.length;t++){const n=e[t];n.user?e[r++]=n:ou(n)}if(ve.context){if(ve.count){ve.effects||(ve.effects=[]),ve.effects.push(...e.slice(0,r));return}else ve.effects&&(e=[...ve.effects,...e],r+=ve.effects.length,delete ve.effects);_s()}for(t=0;t<r;t++)ou(e[t])}function su(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){const n=e.sources[r];if(n.sources){const o=n.state;o===jr?n!==t&&(!n.updatedAt||n.updatedAt<Au)&&ou(n):o===iu&&su(n,t)}}}function Q0(e){for(let t=0;t<e.observers.length;t+=1){const r=e.observers[t];r.state||(r.state=iu,r.pure?mt.push(r):Ur.push(r),r.observers&&Q0(r))}}function Ru(e){let t;if(e.sources)for(;e.sources.length;){const r=e.sources.pop(),n=e.sourceSlots.pop(),o=r.observers;if(o&&o.length){const i=o.pop(),a=r.observerSlots.pop();n<o.length&&(i.sourceSlots[a]=n,o[n]=i,r.observerSlots[n]=a)}}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Ru(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function Y0(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function nh(e,t=Ue){throw Y0(e)}function K0(e,t){return e?e.context&&e.context[t]!==void 0?e.context[t]:K0(e.owner,t):void 0}function vf(e){if(typeof e=="function"&&!e.length)return vf(e());if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++){const n=vf(e[r]);Array.isArray(n)?t.push.apply(t,n):t.push(n)}return t}return e}function mR(e,t){return function(n){let o;return dn(()=>o=Xe(()=>(Ue.context={[e]:n.value},rh(()=>n.children))),void 0),o}}var Ef=Symbol("fallback");function au(e){for(let t=0;t<e.length;t++)e[t]()}function gR(e,t,r={}){let n=[],o=[],i=[],a=0,s=t.length>1?[]:null;return Is(()=>au(i)),()=>{let c=e()||[],l,u;return c[eh],Xe(()=>{let h=c.length,f,p,m,_,S,v,b,T,w;if(h===0)a!==0&&(au(i),i=[],n=[],o=[],a=0,s&&(s=[])),r.fallback&&(n=[Ef],o[0]=hn(N=>(i[0]=N,r.fallback())),a=1);else if(a===0){for(o=new Array(h),u=0;u<h;u++)n[u]=c[u],o[u]=hn(d);a=h}else{for(m=new Array(h),_=new Array(h),s&&(S=new Array(h)),v=0,b=Math.min(a,h);v<b&&n[v]===c[v];v++);for(b=a-1,T=h-1;b>=v&&T>=v&&n[b]===c[T];b--,T--)m[T]=o[b],_[T]=i[b],s&&(S[T]=s[b]);for(f=new Map,p=new Array(T+1),u=T;u>=v;u--)w=c[u],l=f.get(w),p[u]=l===void 0?-1:l,f.set(w,u);for(l=v;l<=b;l++)w=n[l],u=f.get(w),u!==void 0&&u!==-1?(m[u]=o[l],_[u]=i[l],s&&(S[u]=s[l]),u=p[u],f.set(w,u)):i[l]();for(u=v;u<h;u++)u in m?(o[u]=m[u],i[u]=_[u],s&&(s[u]=S[u],s[u](u))):o[u]=hn(d);o=o.slice(0,a=h),n=c.slice(0)}return o});function d(h){if(i[u]=h,s){const[f,p]=bt(u);return s[u]=p,t(c[u],f)}return t(c[u])}}}function yR(e,t,r={}){let n=[],o=[],i=[],a=[],s=0,c;return Is(()=>au(i)),()=>{const l=e()||[];return l[eh],Xe(()=>{if(l.length===0)return s!==0&&(au(i),i=[],n=[],o=[],s=0,a=[]),r.fallback&&(n=[Ef],o[0]=hn(d=>(i[0]=d,r.fallback())),s=1),o;for(n[0]===Ef&&(i[0](),i=[],n=[],o=[],s=0),c=0;c<l.length;c++)c<n.length&&n[c]!==l[c]?a[c](()=>l[c]):c>=n.length&&(o[c]=hn(u));for(;c<n.length;c++)i[c]();return s=a.length=i.length=l.length,n=l.slice(0),o=o.slice(0,s)});function u(d){i[c]=d;const[h,f]=bt(l[c]);return a[c]=f,t(h,c)}}}function X0(e,t){return Xe(()=>e(t||{}))}function La(){return!0}var _f={get(e,t,r){return t===Ns?r:e.get(t)},has(e,t){return t===Ns?!0:e.has(t)},set:La,deleteProperty:La,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:La,deleteProperty:La}},ownKeys(e){return e.keys()}};function dl(e){return(e=typeof e=="function"?e():e)?e:{}}function vR(){for(let e=0,t=this.length;e<t;++e){const r=this[e]();if(r!==void 0)return r}}function J0(...e){let t=!1;for(let i=0;i<e.length;i++){const a=e[i];t=t||!!a&&Ns in a,e[i]=typeof a=="function"?(t=!0,St(a)):a}if(t)return new Proxy({get(i){for(let a=e.length-1;a>=0;a--){const s=dl(e[a])[i];if(s!==void 0)return s}},has(i){for(let a=e.length-1;a>=0;a--)if(i in dl(e[a]))return!0;return!1},keys(){const i=[];for(let a=0;a<e.length;a++)i.push(...Object.keys(dl(e[a])));return[...new Set(i)]}},_f);const r={},n={},o=new Set;for(let i=e.length-1;i>=0;i--){const a=e[i];if(!a)continue;const s=Object.getOwnPropertyNames(a);for(let c=0,l=s.length;c<l;c++){const u=s[c];if(u==="__proto__"||u==="constructor")continue;const d=Object.getOwnPropertyDescriptor(a,u);if(!o.has(u))d.get?(o.add(u),Object.defineProperty(r,u,{enumerable:!0,configurable:!0,get:vR.bind(n[u]=[d.get.bind(a)])})):(d.value!==void 0&&o.add(u),r[u]=d.value);else{const h=n[u];h?d.get?h.push(d.get.bind(a)):d.value!==void 0&&h.push(()=>d.value):r[u]===void 0&&(r[u]=d.value)}}}return r}function Z0(e,...t){if(Ns in e){const o=new Set(t.length>1?t.flat():t[0]),i=t.map(a=>new Proxy({get(s){return a.includes(s)?e[s]:void 0},has(s){return a.includes(s)&&s in e},keys(){return a.filter(s=>s in e)}},_f));return i.push(new Proxy({get(a){return o.has(a)?void 0:e[a]},has(a){return o.has(a)?!1:a in e},keys(){return Object.keys(e).filter(a=>!o.has(a))}},_f)),i}const r={},n=t.map(()=>({}));for(const o of Object.getOwnPropertyNames(e)){const i=Object.getOwnPropertyDescriptor(e,o),a=!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable;let s=!1,c=0;for(const l of t)l.includes(o)&&(s=!0,a?n[c][o]=i.value:Object.defineProperty(n[c],o,i)),++c;s||(a?r[o]=i.value:Object.defineProperty(r,o,i))}return[...n,r]}function ER(e){let t,r;const n=o=>{const i=ve.context;if(i){const[s,c]=bt();ve.count||(ve.count=0),ve.count++,(r||(r=e())).then(l=>{_s(i),ve.count--,c(()=>l.default),_s()}),t=s}else if(!t){const[s]=tR(()=>(r||(r=e())).then(c=>c.default));t=s}let a;return St(()=>(a=t())&&Xe(()=>{if(!i)return a(o);const s=ve.context;_s(i);const c=a(o);return _s(s),c}))};return n.preload=()=>r||((r=e()).then(o=>t=()=>o.default),r),n}var _R=0;function bR(){const e=ve.context;return e?`${e.id}${e.count++}`:`cl-${_R++}`}var eE=e=>`Stale read from <${e}>.`;function wR(e){const t="fallback"in e&&{fallback:()=>e.fallback};return St(gR(()=>e.each,e.children,t||void 0))}function SR(e){const t="fallback"in e&&{fallback:()=>e.fallback};return St(yR(()=>e.each,e.children,t||void 0))}function TR(e){const t=e.keyed,r=St(()=>e.when,void 0,{equals:(n,o)=>t?n===o:!n==!o});return St(()=>{const n=r();if(n){const o=e.children;return typeof o=="function"&&o.length>0?Xe(()=>o(t?n:()=>{if(!Xe(r))throw eE("Show");return e.when})):o}return e.fallback},void 0,void 0)}function xR(e){let t=!1;const r=(i,a)=>i[0]===a[0]&&(t?i[1]===a[1]:!i[1]==!a[1])&&i[2]===a[2],n=rh(()=>e.children),o=St(()=>{let i=n();Array.isArray(i)||(i=[i]);for(let a=0;a<i.length;a++){const s=i[a].when;if(s)return t=!!i[a].keyed,[a,s,i[a]]}return[-1]},void 0,{equals:r});return St(()=>{const[i,a,s]=o();if(i<0)return e.fallback;const c=s.children;return typeof c=="function"&&c.length>0?Xe(()=>c(t?a:()=>{if(Xe(o)[0]!==i)throw eE("Match");return s.when})):c},void 0,void 0)}function OR(e){return e}var AR=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],CR=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...AR]),RR=new Set(["innerHTML","textContent","innerText","children"]),PR=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),NR=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function IR(e,t){const r=NR[e];return typeof r=="object"?r[t]?r.$:void 0:r}var LR=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),kR=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),MR={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function FR(e,t,r){let n=r.length,o=t.length,i=n,a=0,s=0,c=t[o-1].nextSibling,l=null;for(;a<o||s<i;){if(t[a]===r[s]){a++,s++;continue}for(;t[o-1]===r[i-1];)o--,i--;if(o===a){const u=i<n?s?r[s-1].nextSibling:r[i-s]:c;for(;s<i;)e.insertBefore(r[s++],u)}else if(i===s)for(;a<o;)(!l||!l.has(t[a]))&&t[a].remove(),a++;else if(t[a]===r[i-1]&&r[s]===t[o-1]){const u=t[--o].nextSibling;e.insertBefore(r[s++],t[a++].nextSibling),e.insertBefore(r[--i],u),t[o]=r[i]}else{if(!l){l=new Map;let d=s;for(;d<i;)l.set(r[d],d++)}const u=l.get(t[a]);if(u!=null)if(s<u&&u<i){let d=a,h=1,f;for(;++d<o&&d<i&&!((f=l.get(t[d]))==null||f!==u+h);)h++;if(h>u-s){const p=t[a];for(;s<u;)e.insertBefore(r[s++],p)}else e.replaceChild(r[s++],t[a++])}else a++;else t[a++].remove()}}}var Mm="_$DX_DELEGATE";function DR(e,t,r,n={}){let o;return hn(i=>{o=i,t===document?e():cu(t,e(),t.firstChild?null:void 0,r)},n.owner),()=>{o(),t.textContent=""}}function BR(e,t,r){let n;const o=()=>{const a=document.createElement("template");return a.innerHTML=e,r?a.content.firstChild.firstChild:a.content.firstChild},i=t?()=>Xe(()=>document.importNode(n||(n=o()),!0)):()=>(n||(n=o())).cloneNode(!0);return i.cloneNode=i,i}function tE(e,t=window.document){const r=t[Mm]||(t[Mm]=new Set);for(let n=0,o=e.length;n<o;n++){const i=e[n];r.has(i)||(r.add(i),t.addEventListener(i,WR))}}function uu(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)}function UR(e,t,r,n){n==null?e.removeAttributeNS(t,r):e.setAttributeNS(t,r,n)}function rE(e,t){t==null?e.removeAttribute("class"):e.className=t}function nE(e,t,r,n){if(n)Array.isArray(r)?(e[`$$${t}`]=r[0],e[`$$${t}Data`]=r[1]):e[`$$${t}`]=r;else if(Array.isArray(r)){const o=r[0];e.addEventListener(t,r[0]=i=>o.call(e,r[1],i))}else e.addEventListener(t,r)}function $R(e,t,r={}){const n=Object.keys(t||{}),o=Object.keys(r);let i,a;for(i=0,a=o.length;i<a;i++){const s=o[i];!s||s==="undefined"||t[s]||(Fm(e,s,!1),delete r[s])}for(i=0,a=n.length;i<a;i++){const s=n[i],c=!!t[s];!s||s==="undefined"||r[s]===c||!c||(Fm(e,s,!0),r[s]=c)}return r}function jR(e,t,r){if(!t)return r?uu(e,"style"):t;const n=e.style;if(typeof t=="string")return n.cssText=t;typeof r=="string"&&(n.cssText=r=void 0),r||(r={}),t||(t={});let o,i;for(i in r)t[i]==null&&n.removeProperty(i),delete r[i];for(i in t)o=t[i],o!==r[i]&&(n.setProperty(i,o),r[i]=o);return r}function iE(e,t={},r,n){const o={};return n||dn(()=>o.children=ao(e,t.children,o.children)),dn(()=>t.ref&&t.ref(e)),dn(()=>qR(e,t,r,!0,o,!0)),o}function HR(e,t,r){return Xe(()=>e(t,r))}function cu(e,t,r,n){if(r!==void 0&&!n&&(n=[]),typeof t!="function")return ao(e,t,n,r);dn(o=>ao(e,t(),o,r),n)}function qR(e,t,r,n,o={},i=!1){t||(t={});for(const a in o)if(!(a in t)){if(a==="children")continue;o[a]=Dm(e,a,null,o[a],r,i)}for(const a in t){if(a==="children"){n||ao(e,t.children);continue}const s=t[a];o[a]=Dm(e,a,s,o[a],r,i)}}function GR(e){let t,r;if(!ve.context||!(t=ve.registry.get(r=zR()))){if(ve.context,!e)throw new Error("Unrecoverable Hydration Mismatch. No template for key: "+r);return e()}return ve.completed&&ve.completed.add(t),ve.registry.delete(r),t}function VR(e){return e.toLowerCase().replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function Fm(e,t,r){const n=t.trim().split(/\s+/);for(let o=0,i=n.length;o<i;o++)e.classList.toggle(n[o],r)}function Dm(e,t,r,n,o,i){let a,s,c,l,u;if(t==="style")return jR(e,r,n);if(t==="classList")return $R(e,r,n);if(r===n)return n;if(t==="ref")i||r(e);else if(t.slice(0,3)==="on:"){const d=t.slice(3);n&&e.removeEventListener(d,n),r&&e.addEventListener(d,r)}else if(t.slice(0,10)==="oncapture:"){const d=t.slice(10);n&&e.removeEventListener(d,n,!0),r&&e.addEventListener(d,r,!0)}else if(t.slice(0,2)==="on"){const d=t.slice(2).toLowerCase(),h=LR.has(d);if(!h&&n){const f=Array.isArray(n)?n[0]:n;e.removeEventListener(d,f)}(h||r)&&(nE(e,d,r,h),h&&tE([d]))}else if(t.slice(0,5)==="attr:")uu(e,t.slice(5),r);else if((u=t.slice(0,5)==="prop:")||(c=RR.has(t))||!o&&((l=IR(t,e.tagName))||(s=CR.has(t)))||(a=e.nodeName.includes("-")))u&&(t=t.slice(5),s=!0),t==="class"||t==="className"?rE(e,r):a&&!s&&!c?e[VR(t)]=r:e[l||t]=r;else{const d=o&&t.indexOf(":")>-1&&MR[t.split(":")[0]];d?UR(e,d,t,r):uu(e,PR[t]||t,r)}return r}function WR(e){const t=`$$${e.type}`;let r=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==r&&Object.defineProperty(e,"target",{configurable:!0,value:r}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return r||document}}),ve.registry&&!ve.done&&(ve.done=_$HY.done=!0);r;){const n=r[t];if(n&&!r.disabled){const o=r[`${t}Data`];if(o!==void 0?n.call(r,o,e):n.call(r,e),e.cancelBubble)return}r=r._$host||r.parentNode||r.host}}function ao(e,t,r,n,o){if(ve.context){!r&&(r=[...e.childNodes]);let s=[];for(let c=0;c<r.length;c++){const l=r[c];l.nodeType===8&&l.data.slice(0,2)==="!$"?l.remove():s.push(l)}r=s}for(;typeof r=="function";)r=r();if(t===r)return r;const i=typeof t,a=n!==void 0;if(e=a&&r[0]&&r[0].parentNode||e,i==="string"||i==="number"){if(ve.context)return r;if(i==="number"&&(t=t.toString()),a){let s=r[0];s&&s.nodeType===3?s.data=t:s=document.createTextNode(t),r=Ci(e,r,n,s)}else r!==""&&typeof r=="string"?r=e.firstChild.data=t:r=e.textContent=t}else if(t==null||i==="boolean"){if(ve.context)return r;r=Ci(e,r,n)}else{if(i==="function")return dn(()=>{let s=t();for(;typeof s=="function";)s=s();r=ao(e,s,r,n)}),()=>r;if(Array.isArray(t)){const s=[],c=r&&Array.isArray(r);if(bf(s,t,r,o))return dn(()=>r=ao(e,s,r,n,!0)),()=>r;if(ve.context){if(!s.length)return r;for(let l=0;l<s.length;l++)if(s[l].parentNode)return r=s}if(s.length===0){if(r=Ci(e,r,n),a)return r}else c?r.length===0?Bm(e,s,n):FR(e,r,s):(r&&Ci(e),Bm(e,s));r=s}else if(t.nodeType){if(ve.context&&t.parentNode)return r=a?[t]:t;if(Array.isArray(r)){if(a)return r=Ci(e,r,n,t);Ci(e,r,null,t)}else r==null||r===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);r=t}}return r}function bf(e,t,r,n){let o=!1;for(let i=0,a=t.length;i<a;i++){let s=t[i],c=r&&r[i],l;if(!(s==null||s===!0||s===!1))if((l=typeof s)=="object"&&s.nodeType)e.push(s);else if(Array.isArray(s))o=bf(e,s,c)||o;else if(l==="function")if(n){for(;typeof s=="function";)s=s();o=bf(e,Array.isArray(s)?s:[s],Array.isArray(c)?c:[c])||o}else e.push(s),o=!0;else{const u=String(s);c&&c.nodeType===3&&c.data===u?e.push(c):e.push(document.createTextNode(u))}}return o}function Bm(e,t,r=null){for(let n=0,o=t.length;n<o;n++)e.insertBefore(t[n],r)}function Ci(e,t,r,n){if(r===void 0)return e.textContent="";const o=n||document.createTextNode("");if(t.length){let i=!1;for(let a=t.length-1;a>=0;a--){const s=t[a];if(o!==s){const c=s.parentNode===e;!i&&!a?c?e.replaceChild(o,s):e.insertBefore(o,r):c&&s.remove()}else i=!0}}else e.insertBefore(o,r);return[o]}function zR(){const e=ve.context;return`${e.id}${e.count++}`}var QR="http://www.w3.org/2000/svg";function oE(e,t=!1){return t?document.createElementNS(QR,e):document.createElement(e)}function YR(e){const{useShadow:t}=e,r=document.createTextNode(""),n=()=>e.mount||document.body,o=km();let i,a=!!ve.context;return th(()=>{a&&(km().user=a=!1),i||(i=sR(o,()=>St(()=>e.children)));const s=n();if(s instanceof HTMLHeadElement){const[c,l]=bt(!1),u=()=>l(!0);hn(d=>cu(s,()=>c()?d():i(),null)),Is(u)}else{const c=oE(e.isSVG?"g":"div",e.isSVG),l=t&&c.attachShadow?c.attachShadow({mode:"open"}):c;Object.defineProperty(c,"_$host",{get(){return r.parentNode},configurable:!0}),cu(l,i),s.appendChild(c),e.ref&&e.ref(c),Is(()=>s.removeChild(c))}},void 0,{render:!a}),r}function KR(e){const[t,r]=Z0(e,["component"]),n=St(()=>t.component);return St(()=>{const o=n();switch(typeof o){case"function":return Object.assign(o,{[Z1]:!0}),Xe(()=>o(r));case"string":const i=kR.has(o),a=ve.context?GR():oE(o,i);return iE(a,r,i),a}})}var Yi,zs,Qs,Ys,Zn,Ki,Xi,Ji,Zi,eo,Ks,ag,XR=(ag=class{constructor(e){ne(this,Yi,void 0);ne(this,zs,void 0);ne(this,Qs,void 0);ne(this,Ys,void 0);ne(this,Zn,!1);ne(this,Ki,void 0);ne(this,Xi,void 0);ne(this,Ji,void 0);ne(this,Zi,void 0);ne(this,eo,void 0);ne(this,Ks,void 0);const{client:t,queryFlavor:r,version:n,onlineManager:o,buttonPosition:i,position:a,initialIsOpen:s,errorTypes:c}=e;J(this,Yi,bt(t)),J(this,Qs,r),J(this,Ys,n),J(this,zs,o),J(this,Ki,bt(i)),J(this,Xi,bt(a)),J(this,Ji,bt(s)),J(this,Zi,bt(c))}setButtonPosition(e){P(this,Ki)[1](e)}setPosition(e){P(this,Xi)[1](e)}setInitialIsOpen(e){P(this,Ji)[1](e)}setErrorTypes(e){P(this,Zi)[1](e)}setClient(e){P(this,Yi)[1](e)}mount(e){if(P(this,Zn))throw new Error("Devtools is already mounted");const t=DR(()=>{const[r]=P(this,Ki),[n]=P(this,Xi),[o]=P(this,Ji),[i]=P(this,Zi),[a]=P(this,Yi);let s;P(this,eo)?s=P(this,eo):(s=ER(()=>Promise.resolve().then(()=>require("./4TNE5QTO-eb76e362.js"))),J(this,eo,s));const c=this;return X0(s,J0({get queryFlavor(){return P(c,Qs)},get version(){return P(c,Ys)},get onlineManager(){return P(c,zs)}},{get client(){return a()},get buttonPosition(){return r()},get position(){return n()},get initialIsOpen(){return o()},get errorTypes(){return i()}}))},e);J(this,Zn,!0),J(this,Ks,t)}unmount(){var e;if(!P(this,Zn))throw new Error("Devtools is not mounted");(e=P(this,Ks))==null||e.call(this),J(this,Zn,!1)}},Yi=new WeakMap,zs=new WeakMap,Qs=new WeakMap,Ys=new WeakMap,Zn=new WeakMap,Ki=new WeakMap,Xi=new WeakMap,Ji=new WeakMap,Zi=new WeakMap,eo=new WeakMap,Ks=new WeakMap,ag);function JR(e){const t=mo(),r=e.client||t,n=U.useRef(null),{buttonPosition:o,position:i,initialIsOpen:a,errorTypes:s}=e,[c]=U.useState(new XR({client:r,queryFlavor:"React Query",version:"5",onlineManager:Ps,buttonPosition:o,position:i,initialIsOpen:a,errorTypes:s}));return U.useEffect(()=>{c.setClient(r)},[r,c]),U.useEffect(()=>{o&&c.setButtonPosition(o)},[o,c]),U.useEffect(()=>{i&&c.setPosition(i)},[i,c]),U.useEffect(()=>{c.setInitialIsOpen(a||!1)},[a,c]),U.useEffect(()=>{c.setErrorTypes(s||[])},[s,c]),U.useEffect(()=>(n.current&&c.mount(n.current),()=>{c.unmount()}),[c]),U.createElement("div",{className:"tsqd-parent-container",ref:n})}var ZR=process.env.NODE_ENV!=="development"?function(){return null}:JR;const eP=({showDevTools:e,children:t})=>{const r=new L1({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:6e4}}});return O.jsxs(B1,{client:r,children:[t,e&&O.jsx(ZR,{initialIsOpen:!1})]})};const pl="joinCommunityButton",ih=({isMember:e=!1,isShort:t=!1,functions:{join:r,leave:n}={join:()=>{},leave:()=>{}}})=>{const o=Oe(),i=U.useContext($r),a=i&&typeof i.id=="string",[s,c]=U.useState(e),[l,u]=U.useState(e?"joined":"notJoined");U.useEffect(()=>{l==="joining"?u("joined"):l==="leaving"&&u("notJoined")},[s]);const d={},h={};return s&&l!=="leaving"&&(d["data-hover-text"]=o.formatMessage({id:`${pl}_leave`}),d["aria-label"]=o.formatMessage({id:`${pl}_member_aria`}),h["aria-hidden"]="true"),O.jsx(ze,{variant:s?"secondary":"primary",size:"medium",styling:{fullWidth:!0},icon:s&&l!=="leaving"?{icon:"tick",position:"left"}:!1,onClick:async f=>{a&&(f.currentTarget.blur(),s?(u("leaving"),typeof n=="function"&&await n()):(u("joining"),typeof r=="function"&&await r()),c(!s))},className:se("join-community-button",l,{active:l==="joining"}),disabled:!a,...d,children:O.jsx("span",{className:"text",...h,children:o.formatMessage({id:`${pl}${["joining","leaving"].includes(l)?`_${l}`:s?"_member":t?"_short":""}`})})})};const ml="communityDetails_",tP=({isMember:e=!1,slug:t,members:{number:r,data:n}={number:void 0,data:[]},className:o="",...i})=>{const a=Oe(),s=r||(n==null?void 0:n.length)||0;return O.jsxs("div",{className:se("community-details",o),children:[O.jsx(Ja,{}),O.jsxs("div",{className:"member-details",children:[O.jsxs("div",{className:"top",children:[O.jsxs("h3",{children:[a.formatMessage({id:`${ml}members`}),O.jsx("span",{className:"count",children:s})]}),O.jsx("p",{className:"text-small",children:O.jsx("a",{href:`/communities/${t}/members`,children:a.formatMessage({id:`${ml}viewAll`})})})]}),O.jsx(P0,{contributors:{total:r,data:n!=null&&n.length?n:[{},{},{},{},{}]},styling:{size:"medium",showGap:!0,showPlaceholders:s===0},cutoff:5})]}),O.jsx(ih,{isMember:e,...i}),e&&O.jsx(ze,{variant:"primary",icon:{icon:"plus"},styling:{fullWidth:!0},children:a.formatMessage({id:`${ml}invite`})})]})};const rP=({breadcrumbs:e,cutoff:t=20,className:r=""})=>{const n=Oe();return O.jsxs(O.Fragment,{children:[O.jsx(lt,{element:"p",children:n.formatMessage({id:"breadcrumbs_label"})}),O.jsx("ul",{className:se("breadcrumbs text-small",r),children:e.map(({text:o,href:i,current:a=!1},s)=>O.jsxs("li",{children:[a&&O.jsx(lt,{element:"span",children:n.formatMessage({id:"breadcrumbs_currentPage"})}),O.jsx(bu,{href:a?void 0:i,children:zf(o,t)})]},`${window.btoa(o)}_${s}`))})]})};const nP=({options:e,allOption:t=!1,allowMultiple:r=!0,onChange:n=()=>{},className:o=""})=>{const i=Oe(),a=t?[{id:"all",text:typeof t!="boolean"&&t.text||i.formatMessage({id:"filters_all"})},...e]:e,[s,c]=U.useState(t?["all"]:[]),l=(u,d)=>{let h=[];s.includes(u)?h=s.filter(f=>f!==u):u==="all"?h=["all"]:r?h=[...s.filter(f=>f!=="all"),u]:h=[u],c(f=>(n&&typeof n=="function"&&n({current:h,previous:f}),h)),d&&typeof d=="function"&&d()};return O.jsx("ul",{className:se("filters",o),children:a.map(({id:u,text:d,disabled:h=!1,callback:f=()=>{}})=>{let p={};return h&&(p={disabled:!0,"aria-label":i.formatMessage({id:"filters_disabled"},{name:d})}),O.jsx("li",{children:O.jsx("button",{className:se(u,{selected:s.includes(u)}),onClick:m=>{m.preventDefault(),m.stopPropagation(),l(u,f)},...p,children:d})},u)})})};const gl=Jl({locale:"en",messages:jf}),sE=({page:e=1,length:t=0,limit:r=10,loadNextPage:n=()=>{},icon:o=!1,messages:i={button:gl.formatMessage({id:"loadMore_button"}),endOfFeed:gl.formatMessage({id:"loadMore_endOfFeed"}),error:gl.formatMessage({id:"loadMore_error"})},className:a="",gtmContext:s="LoadMore"})=>{const[c,l]=U.useState(!1),[u,d]=U.useState(!1);if(t<=0||t<r*e)return null;const h=async f=>{try{await n(f)}catch(p){p instanceof Error&&p.message&&p.message.includes("Cannot read items")?d(!0):l(!0)}};return O.jsxs("footer",{className:se("load-more",a),children:[c&&O.jsx("p",{className:"error",children:i.error}),u?O.jsx("p",{children:i.endOfFeed}):O.jsx(ze,{variant:"secondary",icon:o,onClick:h,"data-gtm-event-context":s,"data-gtm-event-type":"load-more-click",className:"gtm-trackable","data-testid":"load-more-button",children:i.button})]})};let ka=!1;const aE=({element:e="div",id:t="more-menu",options:r,className:n=""})=>{const o=Oe(),i=U.useRef(null),[a,s]=U.useState(!1),c=l=>{i.current&&l.target instanceof HTMLElement&&!i.current.contains(l.target)&&s(!1)};return U.useEffect(()=>(document.addEventListener("click",c,!0),()=>{document.removeEventListener("click",c,!0)})),U.createElement(e,{ref:i,className:se("more-menu text-medium",n),children:O.jsxs(O.Fragment,{children:[O.jsx(ze,{variant:"tertiary",size:"medium",icon:{icon:"ellipsis"},onClick:()=>s(!a),"aria-haspopup":"true","aria-expanded":a,"aria-controls":t,screenreaderText:o.formatMessage({id:"moreMenu"})}),O.jsx("ul",{id:t,hidden:!a,children:r.map(({href:l,onClick:u,text:d,icon:h,...f},p)=>{const m={...f,onClick:_=>{s(!1),typeof u=="function"&&u(_)},onFocus:()=>{ka&&(clearTimeout(ka),ka=!1)},onBlur:()=>{ka=setTimeout(()=>{s(!1)},100)}};return l&&(m.href=l),O.jsx("li",{children:O.jsx(ze,{variant:"tertiary",size:"medium",icon:h?{icon:h,position:"left"}:!1,...m,children:d})},`${window.btoa(d)}_${p}`)})})]})})};const oh=({variant:e="default",version:t="default",className:r="",...n})=>O.jsx("p",{className:"logo-wrapper",children:O.jsx("a",{href:"/home/",className:se("logo",e,t,r),...n,children:O.jsx(lt,{children:O.jsx(ln,{id:"apolitical"})})})});const iP={"2-1":901},oP=({layout:e="2-1",hideOnMobile:t=!1,className:r="",children:n})=>{const o=ta(!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:se("columns",`layout-${e}`,r),children:U.Children.map(i,(a,s)=>t!==!1&&s===t&&o&&o<iP[e]?null:a)})};const yl="cookieBanner_",vl=["apol-cookie-banner","apolitical-performance-cookie-consent","functional-cookie-consent"],El=new Date(Date.now()+12*30*24*60*60*1e3),uE=()=>{const e=Oe(),[t,r,n]=pg(vl),[o,i]=U.useState(!t["apol-cookie-banner"]),a=()=>{vl.forEach(u=>{r(u,!0,{path:"/",expires:El,domain:u==="apolitical-performance-cookie-consent"?".apolitical.co":void 0})}),i(!1),window.location.reload()},s=()=>{r("apol-cookie-banner",!0,{path:"/",expires:El}),vl.forEach(u=>{if(u==="apol-cookie-banner"){r(u,!0,{path:"/",expires:El});return}n(u)}),i(!1)};if(!o)return null;const c=[{id:"settings",href:"/pages/cookie-policy",gtmType:"policy-page"},{id:"reject",onClick:s,gtmType:"reject-all"},{id:"accept",onClick:a,gtmType:"accepted-all"}],l=[];return c.forEach(u=>{l.push({variant:u.href?"tertiary":"primary",href:u.href,onClick:u.onClick,className:"gtm-trackable","data-gtm-event-context":"cookie-banner","data-gtm-event-type":`cookie-${u.gtmType}-click`,children:e.formatMessage({id:`${yl}buttons_${u.id}`})})}),O.jsxs("aside",{id:"cookie-banner",className:"text-medium",children:[O.jsx("h6",{children:e.formatMessage({id:`${yl}title`})}),O.jsx("p",{children:e.formatMessage({id:`${yl}text`})}),O.jsx(ra,{buttons:l})]})},Dr={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 Ni="footer_",lu="SiteFooter",Um=({group:e})=>{const t=Dr[e].order||[];let r=!1;return"text"in Dr[e]&&(r=Dr[e].text),O.jsxs(U.Fragment,{children:[O.jsx("p",{className:"pre-title",children:O.jsx(ln,{id:`${Ni}${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}=Dr[e][n],a={};return["legal"].includes(e)&&(a.target="_blank",a.rel="noopener"),O.jsx("li",{children:O.jsx("a",{href:o,className:"gtm-trackable","data-gtm-event-context":lu,"data-gtm-event-type":i,...a,children:O.jsx(ln,{id:`${Ni}${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(ln,{id:`${Ni}${e}_${n}`})}),O.jsxs("dd",{children:[typeof r!="boolean"&&r[n].address&&O.jsx("address",{children:O.jsx(ln,{id:`${Ni}${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":lu,"data-gtm-event-type":r[n].gtmType,children:r[n].email})]})]},`dl-${e}-${n}`))})]},e)},sh=()=>O.jsx("div",{id:"footer",children:O.jsxs("div",{className:"wrapper",children:[O.jsx(Sf,{element:"hr"}),O.jsx(oh,{variant:"inverted",version:"full",className:"gtm-trackable","data-gtm-event-context":lu,"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(Um,{group:e}),Object.keys(Dr[e]).includes("child")&&O.jsx(Um,{group:Dr[e].child})]},e))}),O.jsx("hr",{}),O.jsxs("div",{className:"sub-footer",children:[O.jsx("ul",{children:Array.isArray(Dr.social.order)&&Dr.social.order.map(e=>{const t=Dr.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":lu,"data-gtm-event-type":"social-click",children:O.jsx("span",{className:"hidden",children:O.jsx(ln,{id:`${Ni}social_${e}`})})})},e)})}),O.jsx("small",{children:O.jsx(ln,{id:`${Ni}copyright`,values:{currentYear:new Date().getFullYear()}})})]})]})});const Ma="emailHelperTextBox_",sP=({type:e,email:t,redirectPath:r,resendVerificationCode:n})=>{const o=Oe(),[i,a]=U.useState({path:`${Ma}default`,type:"default",link:{},mail:{},error:""}),[s,c]=U.useState(!1),l=U.useCallback(f=>{f.preventDefault(),f.stopPropagation();const p=m=>{a({path:`${Ma}error_verificationFailedToSend`,type:"error",link:{"data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:_=>l(_),href:"#","data-testid":"send-verify-email-click"},mail:{href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"ErrorVerifyingBox","data-gtm-event-type":"email-concierge-click"},error:m})};if(typeof n!="function"){p(o.formatMessage({id:`${Ma}error_noFunction`}));return}c(!0),n(t).then(()=>{localStorage.setItem("email",t),window.location.href=r||"/signup/verify-email"}).catch(m=>{p(m.message)}).finally(()=>{c(!1)})},[t,r,n]);U.useEffect(()=>{let f=Ma,p="default",m={},_={};switch(e){case"gov":f+="autoApproved",p="success";break;case"nonGov":f+="unrecognisedEmail",p="error",m={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"NonGovEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break;case"pending":f+="pendingApproval",p="error",_={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;case"verify":f+="emailUnverified",p="error",m={href:"#","data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:S=>l(S),"data-testid":"send-verify-email-click"};break;case"exists":f+="emailAlreadyExists",p="error",m={href:"/user-onboarding/login","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"login-click"},_={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;default:f+="default",m={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"DefaultEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break}a({...i,path:f,type:p,link:m,mail:_})},[e]);const u={};return["link","mail"].forEach(f=>{u[f]=Object.keys(i[f]).length?p=>O.jsx("a",{...i[f],children:p}):p=>p}),O.jsx(S0,{type:i.type,heading:s?!1:o.formatMessage({id:`${i.path}_title`}),children:s?O.jsxs(O.Fragment,{children:[O.jsx(yr,{element:"span"}),O.jsx(yr,{element:"span"})]}):o.formatMessage({id:`${i.path}_text`},{...u,strong:f=>O.jsx("strong",{children:f}),em:f=>O.jsx("em",{children:f}),br:O.jsxs(O.Fragment,{children:[O.jsx("br",{}),O.jsx("br",{})]}),error:i.error})})};const Fa="passwordRules_",cE="isMoreThanEightCharacters",lE="includesNumberAndSymbol",fE="includesLowerAndUppercase",aP={[cE]:"8Characters",[lE]:"numberSymbol",[fE]:"lowercaseUppercase"},uP=({matchingRules:e={isMoreThanEightCharacters:!1,includesNumberAndSymbol:!1,includesLowerAndUppercase:!1},className:t=""})=>{const r=Oe();return O.jsxs("aside",{className:se("password-rules",t),children:[O.jsx("small",{children:r.formatMessage({id:`${Fa}intro`})}),O.jsx("ul",{children:[cE,lE,fE].map(n=>O.jsxs("li",{className:se({matches:e[n]}),children:[O.jsxs(lt,{children:[r.formatMessage({id:`${Fa}rule_label`})," "]}),O.jsx("span",{children:r.formatMessage({id:`${Fa}rule_${aP[n]}`})}),!e[n]&&O.jsxs(lt,{element:"strong",children:[" "," ",r.formatMessage({id:`${Fa}notMet`})]})]},`rule-${n}`))})]})},cP=U.memo(uP);const lP=({text:e={},topRating:t=5,functions:{createRating:r=()=>null,updateRating:n=()=>{},reportError:o=()=>{}},className:i="",hasLoaded:a=!1})=>{const s=Oe(),[c,l]=U.useState({setUp:!1,id:null,rating:null,disabled:!0}),u=async()=>{try{const S=await r();l(v=>({...v,setUp:!0,id:S&&S.id,disabled:!1}))}catch(S){l(v=>({...v,setUp:!0,disabled:!0})),o(S)}};if(U.useEffect(()=>{a&&!c.setUp&&u()},[a]),!a)return O.jsx(yr,{className:"rating-placeholder"});const{id:d,rating:h,disabled:f}=c,p="ratings_",m={text:s.formatMessage({id:`${p}text`}),low:s.formatMessage({id:`${p}low`}),high:s.formatMessage({id:`${p}high`}),success:s.formatMessage({id:`${p}success`}),...e},_=async S=>{if(!(!d||f))try{l(v=>({...v,rating:S,disabled:!0})),await n({id:d,value:S})}catch(v){l(b=>({...b,rating:null})),o(v)}finally{l(v=>({...v,disabled:!1}))}};return O.jsxs("div",{className:se("rating",i),children:[O.jsx("span",{className:"label",children:m[h?"success":"text"]}),O.jsx("ol",{children:Array.from(new Array(t).keys()).map(S=>{const v=S+1;return O.jsx("li",{className:se({selected:h&&v<=h}),children:O.jsx(ze,{variant:"tertiary",size:"small",icon:{icon:`star${!h||v>h?"_empty":""}`,position:"left",hover:"star"},screenreaderText:`${s.formatMessage({id:`${p}stars`},{number:v,total:t})}${v===1||v===t?` - ${m[v===1?"low":"high"]}`:""}`,onClick:b=>{b.preventDefault(),b.stopPropagation(),_(v)},disabled:f})},`rating-${v}`)})})]})};const hE=({id:e="search",className:t="",handleToggle:r=!1,defaultValue:n="",gtmContext:o="search-bar",gtmEvent:i="form-submission"})=>{const{searchIsOpen:a=!0,isDesktopVersion:s=!1}=r||{},c=Oe(),l=U.useRef(null);ri(()=>{!r||s||!a||l.current&&l.current.focus()},[a]);const u=d=>{d.preventDefault(),d.stopPropagation(),!(!l.current||!l.current.value||l.current.value.length<1)&&(window.location.href=`/search?search=${encodeURIComponent(l.current.value)}`)};return O.jsx("form",{onSubmit:u,className:se("search-form gtm-trackable",t),"data-gtm-event-context":o,"data-gtm-event-type":i,children:O.jsx("fieldset",{id:`${e}-form`,hidden:r?!a:!1,role:"search",children:O.jsxs("p",{children:[O.jsx(lt,{element:"label",htmlFor:e,children:c.formatMessage({id:"search_label"})}),O.jsx("input",{ref:l,type:"search",id:e,name:e,defaultValue:n,placeholder:c.formatMessage({id:"search_placeholder"}),onKeyDown:d=>{d.key==="Enter"&&u(d)}}),O.jsx("button",{className:"clear",onClick:d=>{d.preventDefault(),d.stopPropagation(),l.current&&l.current.value&&(l.current.value="")},children:O.jsx(lt,{children:c.formatMessage({id:"search_clear"})})}),O.jsx("button",{className:"search",onClick:u,children:O.jsx(lt,{children:c.formatMessage({id:"search_cta"})})})]})})})};var fP="Expected a function",dE="__lodash_hash_undefined__",pE=1/0,hP="[object Function]",dP="[object GeneratorFunction]",pP="[object Symbol]",mP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gP=/^\w*$/,yP=/^\./,vP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,EP=/[\\^$.*+?()[\]{}|]/g,_P=/\\(\\)?/g,bP=/^\[object .+?Constructor\]$/,wP=typeof fe=="object"&&fe&&fe.Object===Object&&fe,SP=typeof self=="object"&&self&&self.Object===Object&&self,ah=wP||SP||Function("return this")();function TP(e,t){return e==null?void 0:e[t]}function xP(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var OP=Array.prototype,AP=Function.prototype,mE=Object.prototype,_l=ah["__core-js_shared__"],$m=function(){var e=/[^.]+$/.exec(_l&&_l.keys&&_l.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),gE=AP.toString,uh=mE.hasOwnProperty,yE=mE.toString,CP=RegExp("^"+gE.call(uh).replace(EP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jm=ah.Symbol,RP=OP.splice,PP=vE(ah,"Map"),Ls=vE(Object,"create"),Hm=jm?jm.prototype:void 0,qm=Hm?Hm.toString:void 0;function oi(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function NP(){this.__data__=Ls?Ls(null):{}}function IP(e){return this.has(e)&&delete this.__data__[e]}function LP(e){var t=this.__data__;if(Ls){var r=t[e];return r===dE?void 0:r}return uh.call(t,e)?t[e]:void 0}function kP(e){var t=this.__data__;return Ls?t[e]!==void 0:uh.call(t,e)}function MP(e,t){var r=this.__data__;return r[e]=Ls&&t===void 0?dE:t,this}oi.prototype.clear=NP;oi.prototype.delete=IP;oi.prototype.get=LP;oi.prototype.has=kP;oi.prototype.set=MP;function yo(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 FP(){this.__data__=[]}function DP(e){var t=this.__data__,r=Pu(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():RP.call(t,r,1),!0}function BP(e){var t=this.__data__,r=Pu(t,e);return r<0?void 0:t[r][1]}function UP(e){return Pu(this.__data__,e)>-1}function $P(e,t){var r=this.__data__,n=Pu(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}yo.prototype.clear=FP;yo.prototype.delete=DP;yo.prototype.get=BP;yo.prototype.has=UP;yo.prototype.set=$P;function ci(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function jP(){this.__data__={hash:new oi,map:new(PP||yo),string:new oi}}function HP(e){return Nu(this,e).delete(e)}function qP(e){return Nu(this,e).get(e)}function GP(e){return Nu(this,e).has(e)}function VP(e,t){return Nu(this,e).set(e,t),this}ci.prototype.clear=jP;ci.prototype.delete=HP;ci.prototype.get=qP;ci.prototype.has=GP;ci.prototype.set=VP;function Pu(e,t){for(var r=e.length;r--;)if(rN(e[r][0],t))return r;return-1}function WP(e,t){t=KP(t,e)?[t]:YP(t);for(var r=0,n=t.length;e!=null&&r<n;)e=e[eN(t[r++])];return r&&r==n?e:void 0}function zP(e){if(!_E(e)||JP(e))return!1;var t=nN(e)||xP(e)?CP:bP;return t.test(tN(e))}function QP(e){if(typeof e=="string")return e;if(lh(e))return qm?qm.call(e):"";var t=e+"";return t=="0"&&1/e==-pE?"-0":t}function YP(e){return EE(e)?e:ZP(e)}function Nu(e,t){var r=e.__data__;return XP(t)?r[typeof t=="string"?"string":"hash"]:r.map}function vE(e,t){var r=TP(e,t);return zP(r)?r:void 0}function KP(e,t){if(EE(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||lh(e)?!0:gP.test(e)||!mP.test(e)||t!=null&&e in Object(t)}function XP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function JP(e){return!!$m&&$m in e}var ZP=ch(function(e){e=oN(e);var t=[];return yP.test(e)&&t.push(""),e.replace(vP,function(r,n,o,i){t.push(o?i.replace(_P,"$1"):n||r)}),t});function eN(e){if(typeof e=="string"||lh(e))return e;var t=e+"";return t=="0"&&1/e==-pE?"-0":t}function tN(e){if(e!=null){try{return gE.call(e)}catch{}try{return e+""}catch{}}return""}function ch(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(fP);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new(ch.Cache||ci),r}ch.Cache=ci;function rN(e,t){return e===t||e!==e&&t!==t}var EE=Array.isArray;function nN(e){var t=_E(e)?yE.call(e):"";return t==hP||t==dP}function _E(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function iN(e){return!!e&&typeof e=="object"}function lh(e){return typeof e=="symbol"||iN(e)&&yE.call(e)==pP}function oN(e){return e==null?"":QP(e)}function sN(e,t,r){var n=e==null?void 0:WP(e,t);return n===void 0?r:n}var aN=sN;const bE=Er(aN),Fe={timeouts:{},handlerCalled:{},getIsDesktopVersion:(e,t)=>{const r={navigation:{loggedIn:769,loggedOut:881},search:{loggedIn:961,loggedOut:1121}},n=i=>{const a=`logged${e?"In":"Out"}`;return t>=r[i][a]};let o={};return["navigation","search"].forEach(i=>{o[i]=n(i)}),o},shouldChangeHeaderIsVisible:(e,t,r)=>{Object.values(t).filter(o=>o===!0).length||r([{type:"headerIsVisible",value:e}])},handleMenus:({id:e,value:t,menus:r,dispatch:n})=>{if(r[e]===t||e==="account"&&t===!1&&r.navigation===!0)return;const o=Date.now();if(!t&&Fe.handlerCalled[e]&&o-Fe.handlerCalled[e]<500)return;Fe.handlerCalled[e]=o;let i=[{type:`menus.${e}`,value:t}];t===!0&&Object.keys(r).forEach(a=>{a===e||r[a]===!1||i.push({type:`menus.${a}`,value:!1})}),n(i)},findFirstChild:(e,t,r=!1)=>{if(!e||!e[0])return!1;for(let n=0;n<=e.length;n++){if(!e[n])continue;if(e[n][t]&&(!r||e[n][t].includes(r)))return e[n];if(!t.includes("."))continue;const o=bE(e[n],t);if(!(typeof o>"u")&&(!r||o[t]&&o[t].includes(r)||o.value&&o.value.includes(r)||o.toString().includes(r)))return e[n]}return e[0].children?Fe.findFirstChild(e[0].children,t,r):!1},autoFocus:({menu:e,navigationRef:t,isDesktopVersion:r,focusElements:n,dispatch:o})=>{if(!t.current||!t.current.children)return;const i=r?"desktop":"default";if(n[e][i]){n[e][i].focus();return}let a,s;switch(e){case"navigation":if(r){const c=Fe.findFirstChild(t.current.children,"attributes.aria-controls","navigation");a=Fe.findFirstChild(c.children,"href")}else a=Fe.findFirstChild(t.current.children,"href");a||(a=t.current);break;case"account":if(s=Fe.findFirstChild(t.current.children,"className","account"),!s||!s.children)return;a=Fe.findFirstChild(s.children,"href");break;default:return}a&&(o([{type:`focusElements.${e}.${i}`,value:a}]),a.focus())},events:{onClick:(e,{id:t,callback:r,isOpen:n})=>{e.target&&e.target.attributes&&e.target.attributes.href||(e.preventDefault(),e.stopPropagation(),clearTimeout(Fe.timeouts[t]),r(t,!n))},onFocus:({id:e})=>{clearTimeout(Fe.timeouts[e])},onMouseEnter:({id:e,callback:t})=>{clearTimeout(Fe.timeouts[e]),t(e,!0)},onBlur:({id:e,callback:t})=>{Fe.timeouts[e]=setTimeout(()=>{t(e,!1)},250)}}},ks={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"}}}},fu=({id:e,isLoggedIn:t=!1,isDesktopVersion:r=!1,menus:n={},callback:o=()=>{},doTrack:i=null})=>{const a=Oe(),s=bE(ks,e);if(!s||s.onlyShow&&(s.onlyShow==="logged-in"&&!t||s.onlyShow==="logged-out"&&t))return null;const c="doTrack"in s,l=i===null?c?s.doTrack:!0:i,u=e.includes("buttons.");let d=`header_${e.replaceAll(".","_")}`;s.hasVariantText&&(d+=`_logged${t?"In":"Out"}`);let h=!1;if(s.href){let v=s.gtmType||`${e}-click`;if(v.includes(".")){const b=v.split("."),T=b[b.length-2];v=`${T==="topics"?`${T}-`:""}${b[b.length-1]}`}h={href:s.href,role:"menuitem"},l&&(h={...h,className:"gtm-trackable","data-gtm-event-type":v,"data-gtm-event-context":"HeaderButtons"}),u&&(h={...h,variant:"secondary",size:{mobile:"small",881:"large"},...s.props||{}})}const f=s.order&&s.order[0]&&s[s.order[0]],p=f&&s[s.order[0]].order,m=h&&window.location.pathname===s.href;let _={},S={};if(f){const v=s.menuId||e,b={onClick:T=>Fe.events.onClick(T,{id:v,callback:o,isOpen:n[v]}),onFocus:()=>Fe.events.onFocus({id:v}),onBlur:()=>Fe.events.onBlur({id:v,callback:o}),onMouseLeave:()=>Fe.events.onBlur({id:v,callback:o}),onMouseEnter:()=>Fe.events.onMouseEnter({id:v,callback:o})};r&&(p&&(_={...b,onKeyPress:T=>{T.key==="Enter"&&Fe.events.onClick(T,{id:v,callback:o,isOpen:n[v]})},tabIndex:"0","aria-haspopup":!0,"aria-expanded":n[v],"aria-controls":v}),S={hidden:v in n?!n[v]:!0}),p||(S={...S,...b})}return O.jsxs("li",{className:se({[s.className]:s.className,"has-submenu":f,parent:p,active:m}),role:"none",..._,children:[h?U.createElement(u?ze:"a",h,a.formatMessage({id:d})):a.formatMessage({id:d}),s.order&&O.jsx("ul",{...S,children:s.order.map(v=>{if(!s[v])return null;const b={isLoggedIn:t,isDesktopVersion:r,menus:n,callback:o,doTrack:c?l:null};return s[v].order?O.jsxs("li",{className:se({[s[v].className]:s[v].className}),children:[a.formatMessage({id:`${d}_${v}`}),O.jsx("ul",{children:s[v].order.map(T=>O.jsx(fu,{id:`${e}.${v}.${T}`,...b},T))})]},v):O.jsx(fu,{id:`${e}.${v}`,...b},v)})})]},e)};const uN={height:67,height_desktop:83},fh=()=>{const e=Oe(),t=U.useContext($r),r=ta(!0,!0),n=t&&typeof t.id=="string",o=U.useMemo(()=>Fe.getIsDesktopVersion(n,r),[n,r]),[i,a]=U.useReducer(gO,{headerIsVisible:!0,menus:{navigation:!1,search:!1,account:!1},focusElements:{navigation:{desktop:!1,default:!1},account:{desktop:!1,default:!1}}}),{headerIsVisible:s,menus:c,focusElements:l}=i;hv({scrollPosition:uN[`height${o.navigation?"_desktop":""}`],callbacks:{scrollUp:()=>{!o&&c.navigation||Fe.shouldChangeHeaderIsVisible(!0,c,a)},scrollDown:()=>{!o&&c.navigation||Fe.shouldChangeHeaderIsVisible(!1,c,a)}}});const u=(h,f)=>{Fe.handleMenus({id:h,value:f,menus:c,dispatch:a})},d=U.useRef(null);return ri(()=>{c.navigation&&Fe.autoFocus({menu:"navigation",navigationRef:d,isDesktopVersion:o.navigation,focusElements:l,dispatch:a})},[c.navigation]),ri(()=>{c.account&&Fe.autoFocus({menu:"account",navigationRef:d,isDesktopVersion:o.navigation,focusElements:l,dispatch:a})},[c.account]),t&&t.isLoading?null:O.jsxs(O.Fragment,{children:[O.jsxs("nav",{id:"header",className:se({"logged-in":n,"logged-out":!n,visible:s}),children:[O.jsx(lt,{element:"a",href:"#content-of-page",children:e.formatMessage({id:"header_skip"})}),O.jsx(oh,{}),!o.navigation&&O.jsx("button",{className:"menu-button gtm-trackable",onClick:h=>{h.preventDefault(),h.stopPropagation(),u("navigation",!c.navigation)},"data-gtm-event-type":"open-tab-menu-click","data-gtm-event-context":"HeaderLeft-Chevron","aria-haspopup":"true","aria-expanded":c.navigation,"aria-controls":"navigation",children:O.jsx(lt,{children:e.formatMessage({id:`header_menu_${c.navigation?"hide":"show"}`})})}),O.jsx("ul",{ref:d,id:"navigation",hidden:o.navigation||c.account?!1:!c.navigation,role:"menu","data-showing":!o.navigation&&c.account?"account":"default",children:ks.order.map(h=>O.jsx(fu,{id:h,isLoggedIn:n,isDesktopVersion:o.navigation,menus:{navigation:c.navigation,account:c.account},callback:u},h))}),!o.search&&O.jsx("button",{className:"search toggle-search-button",onClick:h=>{h.preventDefault(),h.stopPropagation(),u("search",!c.search)},"aria-haspopup":"true","aria-expanded":c.search,"aria-controls":"search-form",children:O.jsx(lt,{children:e.formatMessage({id:`header_search_${c.search?"hide":"show"}`})})}),O.jsx(hE,{id:"global-search",handleToggle:{searchIsOpen:c.search,isDesktopVersion:o.search},gtmContext:"search-bar-header",gtmEvent:"form-submission"}),n?O.jsxs("button",{className:"account-button",onClick:h=>Fe.events.onClick(h,{id:"account",callback:u,isOpen:c.account}),onMouseEnter:()=>Fe.events.onMouseEnter({id:"account",callback:u}),onMouseLeave:()=>Fe.events.onBlur({id:"account",callback:u}),"aria-haspopup":"true","aria-expanded":c.account,"aria-controls":"navigation",children:[O.jsx(lt,{children:e.formatMessage({id:`header_account_${c.account?"hide":"show"}`})}),O.jsx(Tu,{name:t&&t.name||"",src:t&&t.image&&t.image.thumbnail||""})]}):O.jsx("ul",{className:"sign-in-buttons",children:ks.buttons.order.map(h=>O.jsx(fu,{id:`buttons.${h}`},h))})]}),O.jsx("hr",{id:"content-of-page"}),O.jsx("div",{className:se("overlay",{open:c.navigation||c.account||!o.search&&c.search})})]})},cN=U.createContext(null),bl={didCatch:!1,error:null};class lN extends U.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=bl}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:i,reason:"imperative-api"}),this.setState(bl)}}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&&fN(t.resetKeys,o)){var i,a;(i=(a=this.props).onReset)===null||i===void 0||i.call(a,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(bl)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:o}=this.props,{didCatch:i,error:a}=this.state;let s=t;if(i){const c={error:a,resetErrorBoundary:this.resetErrorBoundary};if(U.isValidElement(o))s=o;else if(typeof r=="function")s=r(c);else if(n)s=U.createElement(n,c);else throw a}return U.createElement(cN.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}function fN(){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 hN=()=>{const e=Oe();return O.jsxs(O.Fragment,{children:[O.jsx(fh,{}),O.jsx("div",{className:"content",children:O.jsx(oa,{variant:"error",text:e.formatMessage({id:"pageLayout_error"})})}),O.jsx(sh,{})]})},dN=({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 a=Sv(e,{locale:i});return O.jsx(lN,{onError:t,fallback:O.jsx(hN,{}),children:O.jsx(U.Suspense,{fallback:O.jsx(C0,{layout:"overview-page"}),children:O.jsx("div",{id:"wrapper",className:se(o,{[n]:n!=="default"}),children:O.jsxs(KE,{children:[O.jsx(fh,{}),O.jsx("div",{className:"content",children:a}),r&&O.jsx(sh,{}),O.jsx(uE,{})]})})})})},Gm={default:"tags_",headerTopics:"header_topics_topics_"},wl={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"},pN={getTagDetails:e=>{if(e.includes("topic_")){if(e=wl.topic[e.replace("topic_","")],e){const t=ks.topics.topics[e].href;return t?{id:e,href:t,text:`${Gm.headerTopics}${e}`}:null}return null}return wl[e]?(e=wl[e],{id:e,text:`${Gm.default}${e}`}):null}};const mN=({tags:e=[],color:t="default",forceOneLine:r=!1,canHaveLinks:n=!0,className:o="",gtmType:i="tag-click",gtmContext:a="tags"})=>{const s=Oe();if(!e||e.length<1)return null;const c=[];return e.forEach(l=>{if(!l)return;const u=pN.getTagDetails(l);u&&c.push(u)}),c.length<1?null:O.jsx("ul",{className:se("tags text-small",t,o,{"one-line":r}),children:c.map(l=>{const u=s.formatMessage({id:l.text});return O.jsx("li",{children:l.href&&n?O.jsx("a",{href:l.href,className:"gtm-trackable","data-gtm-event-type":i,"data-gtm-event-context":a,children:u}):u},l.id)})})};const gN=({members:{total:e,data:t=[]},pagination:r,gtmContext:n="member",gtmType:o="member-click",className:i=""})=>{const a=Oe();return t.length===0?null:(e||(e=t.length),O.jsxs("div",{className:se("members-list",i),children:[O.jsxs("h1",{children:[a.formatMessage({id:"membersList"}),O.jsx("span",{className:"count",children:e})]}),O.jsx("ul",{children:t.map((s,c)=>O.jsxs("li",{children:[O.jsx(xu,{member:s,gtmContext:n,gtmType:o}),s.isAdmin&&O.jsx(x0,{children:a.formatMessage({id:"membersList_admin"})})]},c))}),r&&O.jsx(sE,{...r,icon:{icon:"arrow-down",position:"right"},gtmContext:n})]}))};function wf(){return wf=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},wf.apply(this,arguments)}function yN(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 vN=U.useLayoutEffect,EN=function(t){var r=pe.useRef(t);return vN(function(){r.current=t}),r},Vm=function(t,r){if(typeof t=="function"){t(r);return}t.current=r},_N=function(t,r){var n=U.useRef();return U.useCallback(function(o){t.current=o,n.current&&Vm(n.current,null),n.current=r,r&&Vm(r,o)},[r])},Wm={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},bN=function(t){Object.keys(Wm).forEach(function(r){t.style.setProperty(r,Wm[r],"important")})},zm=bN,vt=null,Qm=function(t,r){var n=t.scrollHeight;return r.sizingStyle.boxSizing==="border-box"?n+r.borderSize:n-r.paddingSize};function wN(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),vt||(vt=document.createElement("textarea"),vt.setAttribute("tabindex","-1"),vt.setAttribute("aria-hidden","true"),zm(vt)),vt.parentNode===null&&document.body.appendChild(vt);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach(function(h){var f=h;vt.style[f]=a[f]}),zm(vt),vt.value=t;var c=Qm(vt,e);vt.value=t,c=Qm(vt,e),vt.value="x";var l=vt.scrollHeight-o,u=l*r;s==="border-box"&&(u=u+o+i),c=Math.max(u,c);var d=l*n;return s==="border-box"&&(d=d+o+i),c=Math.min(d,c),[c,l]}var Ym=function(){},SN=function(t,r){return t.reduce(function(n,o){return n[o]=r[o],n},{})},TN=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],xN=!!document.documentElement.currentStyle,ON=function(t){var r=window.getComputedStyle(t);if(r===null)return null;var n=SN(TN,r),o=n.boxSizing;if(o==="")return null;xN&&o==="border-box"&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var i=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),a=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:i,borderSize:a}},AN=ON;function wE(e,t,r){var n=EN(r);pe.useLayoutEffect(function(){var o=function(a){return n.current(a)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var CN=function(t){wE(window,"resize",t)},RN=function(t){wE(document.fonts,"loadingdone",t)},PN=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],NN=function(t,r){var n=t.cacheMeasurements,o=t.maxRows,i=t.minRows,a=t.onChange,s=a===void 0?Ym:a,c=t.onHeightChange,l=c===void 0?Ym:c,u=yN(t,PN),d=u.value!==void 0,h=pe.useRef(null),f=_N(h,r),p=pe.useRef(0),m=pe.useRef(),_=function(){var b=h.current,T=n&&m.current?m.current:AN(b);if(T){m.current=T;var w=wN(T,b.value||b.placeholder||"x",i,o),N=w[0],R=w[1];p.current!==N&&(p.current=N,b.style.setProperty("height",N+"px","important"),l(N,{rowHeight:R}))}},S=function(b){d||_(),s(b)};return pe.useLayoutEffect(_),CN(_),RN(_),pe.createElement("textarea",wf({},u,{onChange:S,ref:f}))},IN=pe.forwardRef(NN);let Da=null;const Ot="discussion_form_",hh=({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:a={cancel:!1,error:!1},functions:s={create:()=>{},handleSaveEdit:()=>{},handleCancel:()=>{},callback:()=>{},props:{create:{projectNames:["questions-answers"]}}},gtmContext:c="DiscussionForm"})=>{var $,G;const l=Oe(),u=U.useContext($r),[d,h]=U.useState(r.isEditing&&r.isEditing.text||""),[f,p]=U.useState(a.error||!1),[m,_]=U.useState(!1),S=U.useRef(null);if(n||(n=S),r.isLoading)return O.jsx(yr,{className:"discussion-card discussion-form","data-testid":"loading-placeholder"});const v=q=>{const H=q.target.value;h(H);let Y;!u||!u.id?Y=ar(l.formatMessage,`${Ot}error_loggedOut`,e.type,"action"):t?H.length>=o&&(Y=`${Ot}error_tooLong`):Y=ar(l.formatMessage,`${Ot}error_noPermission`,e.type,"action"),Y?p(Y):f&&p(!1)};let b=`${e.type}-form`;if(e.type==="response"||e.type==="reply"){const q=e.type==="response"?(($=e.slugs)==null?void 0:$.question)||"":((G=e.slugs)==null?void 0:G.answer)||"";q&&(b=`${b}-${q.slice(-15)}`)}const T=async q=>{var Y;if(q.preventDefault(),q.stopPropagation(),!u||!u.id||!t||N)return;Da&&clearTimeout(Da),_("submitting");const H=window.location.pathname;try{let ie;switch(e.type){case"post":ie=await s.create({content:d});break;case"question":ie=await s.create({title:d,authorId:u&&u.id,...(Y=s.props)==null?void 0:Y.create});break;case"response":ie=await s.create({question:e.slugs.question},{body:d,authorId:u&&u.id,contentPath:H});break;case"reply":ie=await s.create({question:e.slugs.question,answer:e.slugs.answer},{body:d,authorId:u&&u.id,contentPath:H});break;default:break}await EO(1e3),s.callback&&await s.callback(ie),Da=setTimeout(()=>{h(""),_("submitted"),w()},500)}catch(ie){const K=ie;let k=`${Ot}error`;K.message.includes("entry already exists")&&(k=ar(l.formatMessage,`${Ot}error_alreadyExists`,e.type,"action")),K.message.includes("429")?k=ar(l.formatMessage,`${Ot}error_tooMany`,e.type,"action"):K.message.includes("400")&&(k=`${Ot}error`),p(k),w()}},w=()=>{Da=setTimeout(()=>{p(!1),_(!1)},5e3)},N=!d||!SO(d),R=m==="submitting",L=[];return(r.isEditing&&!R||a.cancel)&&L.push({variant:"secondary",size:{mobile:"small",600:"medium"},onClick:s.handleCancel,className:"gtm-trackable","data-gtm-event-context":c,"data-gtm-event-type":`cancel-${e.type}-click`,disabled:!a.cancel&&(!u||!u.id||!d),children:l.formatMessage({id:`${Ot}cancel`})}),L.push({variant:"primary",size:{mobile:"small",600:"medium"},onClick:q=>{if(r.isEditing){_("submitting"),s.handleSaveEdit&&s.handleSaveEdit(S.current&&"value"in S.current?S.current.value:"");return}T(q)},className:"gtm-trackable","data-gtm-event-context":c,"data-gtm-event-type":`${r.isEditing?"save":"submit"}-${e.type}-click`,"data-testid":"save-button",disabled:!u||!u.id||!t||N||R||r.isEditing&&d===r.isEditing.text,children:l.formatMessage({id:`${Ot}${R?r.isEditing?"saving":"posting":r.isEditing?"save":"post"}`})}),O.jsxs("form",{id:b,className:se("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:ar(l.formatMessage,`${Ot}title`,e.type,"action")}),O.jsx(xu,{member:u||"community",gtmContext:c,gtmType:"profile-click"}),O.jsx(lt,{element:"label",showOnFocus:!1,htmlFor:`${b}-input`,children:ar(l.formatMessage,`${Ot}label`,e.type,"action")}),O.jsx(IN,{ref:n,id:`${b}-input`,name:e.type,placeholder:ar(l.formatMessage,`${Ot}placeholder`,e.type,"action"),onChange:v,value:d,maxLength:o,"aria-invalid":!!f,"aria-errormessage":"error-message",minRows:i,autoFocus:!!r.isEditing}),O.jsx("small",{children:ar(l.formatMessage,`${Ot}explainer`,e.type,"action",{a:q=>O.jsx("a",{href:"https://about.apolitical.co/q-and-a-community-guidelines",target:"_blank",className:"gtm-trackable","data-gtm-event-context":c,"data-gtm-event-type":"community-guidelines-link",children:q})})}),O.jsx(ra,{buttons:L}),m==="submitted"&&O.jsx(eu,{className:"success","data-testid":"success",children:ar(l.formatMessage,`${Ot}success`,e.type,"action")}),f&&O.jsx(eu,{id:"error-message",className:"error","data-testid":"error",children:a.error?a.error:typeof f=="string"?f.includes(" ")?f:l.formatMessage({id:f},{action:l.formatMessage({id:`discussion_action_${e.type}`}),maxLength:o}):f})]})},dh=({contentType:e,createPost:t,membershipRequiredToPost:{isMember:r,required:n,join:o,leave:i,notMemberStateText:a}})=>n&&!r?O.jsx(oa,{text:a,button:{component:O.jsx(ih,{functions:{join:o,leave:i}})}}):O.jsx(hh,{content:{type:e,slugs:{}},functions:{create:t}}),LN={showThread:!1,showForm:!1},ph=U.createContext(LN),kN=({children:e})=>{const[t,r]=U.useState({showThread:!1,showForm:!1});return O.jsx(ph.Provider,{value:{...t,updateConversation:r},children:e})},MN=({question:e,answer:t,reply:r})=>({...e&&{questionSlug:e},...t&&{answerSlug:t},...r&&{replySlug:r}}),FN=(e,t=10)=>!e||e.length===0?[]:e.slice(0,t);let xs=!1;const Sl=()=>{xs!==!1&&(clearTimeout(xs),xs=!1)},Tl=10,SE=({element:e="div",likes:t=0,peopleWhoLiked:r=!1,isShort:n=!0,userLiked:o=!1,content:i={type:"reply",slugs:{}},canLike:a=!0,functions:{createLike:s=()=>{},deleteLike:c=()=>{}}={}})=>{const l=Oe();U.useEffect(()=>{f(o)},[o]);const[u,d]=U.useState(t),[h,f]=U.useState(o),[p,m]=U.useState(!1),[_,S]=U.useState(!1),v=U.useMemo(()=>FN(r,Tl),[r]),b=w=>{if(w.preventDefault(),w.stopPropagation(),S(!1),xs)return Sl(),!1;if(Sl(),p||!a)return!1;xs=setTimeout(T,350)},T=async()=>{if(Sl(),p||!a)return!1;let w=h?u-1:u+1;w<0&&(w=0),m(!0),d(w),f(!h);try{if(i&&i.slugs){const N=MN(i.slugs);h?await c(N):await s(N,{contentPath:window.location.pathname})}}catch{d(t),f(o)}finally{m(!1)}};return U.createElement(e,{className:se("likes-wrapper text-medium action-button",{"show-spinner":p,"is-liked":h,disabled:!a}),onClick:b,onMouseEnter:()=>{S(!0)},onMouseLeave:()=>{S(!1)},onFocus:()=>{S(!0)},onBlur:()=>{S(!1)},children:O.jsxs(O.Fragment,{children:[O.jsx(ze,{variant:"tertiary",size:"medium",icon:{icon:h?"heart":"heart_empty",animate:"bounce"},className:se({"do-animation":h&&!o}),screenreaderText:a?l.formatMessage({id:`discussion_likes_${h?"unlike":"like"}`},{action:l.formatMessage({id:`discussion_action_${i.type}`})}):!1,onClick:b,disabled:!a,"aria-hidden":!a,"data-testid":"like-button","data-gtm-event-context":"Likes","data-gtm-event-type":`like-${i.type}-click`}),O.jsx("span",{className:se("number-of-likes",{"no-likes":u===0}),"data-testid":"number-of-likes",children:l.formatMessage({id:`discussion_likes${n?"_short":""}`},{number:u})}),r&&O.jsx(t0,{isOpen:_,isLoading:r.length===0,children:r.length&&O.jsxs("ul",{children:[v.map(w=>typeof w=="string"||!w.name?null:O.jsx("li",{children:O.jsx(bu,{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>Tl&&O.jsx("li",{children:l.formatMessage({id:"discussion_likes_more"},{number:r.length-Tl})})]})})]})})};var hu={exports:{}};hu.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,s="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",p="[object GeneratorFunction]",m="[object Map]",_="[object Number]",S="[object Null]",v="[object Object]",b="[object Promise]",T="[object Proxy]",w="[object RegExp]",N="[object Set]",R="[object String]",L="[object Symbol]",$="[object Undefined]",G="[object WeakMap]",q="[object ArrayBuffer]",H="[object DataView]",Y="[object Float32Array]",ie="[object Float64Array]",K="[object Int8Array]",k="[object Int16Array]",Q="[object Int32Array]",ee="[object Uint8Array]",he="[object Uint8ClampedArray]",Z="[object Uint16Array]",X="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,de=/^\[object .+?Constructor\]$/,Ve=/^(?:0|[1-9]\d*)$/,te={};te[Y]=te[ie]=te[K]=te[k]=te[Q]=te[ee]=te[he]=te[Z]=te[X]=!0,te[s]=te[c]=te[q]=te[u]=te[H]=te[d]=te[h]=te[f]=te[m]=te[_]=te[v]=te[w]=te[N]=te[R]=te[G]=!1;var ae=typeof fe=="object"&&fe&&fe.Object===Object&&fe,De=typeof self=="object"&&self&&self.Object===Object&&self,Ie=ae||De||Function("return this")(),Tt=t&&!t.nodeType&&t,Ct=Tt&&!0&&e&&!e.nodeType&&e,Gt=Ct&&Ct.exports===Tt,oe=Gt&&ae.process,st=function(){try{return oe&&oe.binding&&oe.binding("util")}catch{}}(),Je=st&&st.isTypedArray;function Vt(y,A){for(var I=-1,W=y==null?0:y.length,ge=0,ce=[];++I<W;){var _e=y[I];A(_e,I,y)&&(ce[ge++]=_e)}return ce}function wr(y,A){for(var I=-1,W=A.length,ge=y.length;++I<W;)y[ge+I]=A[I];return y}function er(y,A){for(var I=-1,W=y==null?0:y.length;++I<W;)if(A(y[I],I,y))return!0;return!1}function kt(y,A){for(var I=-1,W=Array(y);++I<y;)W[I]=A(I);return W}function yn(y){return function(A){return y(A)}}function Wt(y,A){return y.has(A)}function Mt(y,A){return y==null?void 0:y[A]}function Ze(y){var A=-1,I=Array(y.size);return y.forEach(function(W,ge){I[++A]=[ge,W]}),I}function zt(y,A){return function(I){return y(A(I))}}function yt(y){var A=-1,I=Array(y.size);return y.forEach(function(W){I[++A]=W}),I}var at=Array.prototype,vn=Function.prototype,x=Object.prototype,g=Ie["__core-js_shared__"],E=vn.toString,C=x.hasOwnProperty,M=function(){var y=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),j=x.toString,z=RegExp("^"+E.call(C).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=Gt?Ie.Buffer:void 0,Ce=Ie.Symbol,Re=Ie.Uint8Array,Pe=x.propertyIsEnumerable,Ee=at.splice,Rt=Ce?Ce.toStringTag:void 0,Hr=Object.getOwnPropertySymbols,En=me?me.isBuffer:void 0,Sr=zt(Object.keys,Object),_n=Yt(Ie,"DataView"),Tr=Yt(Ie,"Map"),bn=Yt(Ie,"Promise"),wn=Yt(Ie,"Set"),Sn=Yt(Ie,"WeakMap"),tr=Yt(Object,"create"),li=ut(_n),Qt=ut(Tr),vo=ut(bn),Eo=ut(wn),_o=ut(Sn),fi=Ce?Ce.prototype:void 0,Tn=fi?fi.valueOf:void 0;function We(y){var A=-1,I=y==null?0:y.length;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function xn(){this.__data__=tr?tr(null):{},this.size=0}function On(y){var A=this.has(y)&&delete this.__data__[y];return this.size-=A?1:0,A}function xr(y){var A=this.__data__;if(tr){var I=A[y];return I===n?void 0:I}return C.call(A,y)?A[y]:void 0}function hi(y){var A=this.__data__;return tr?A[y]!==void 0:C.call(A,y)}function bo(y,A){var I=this.__data__;return this.size+=this.has(y)?0:1,I[y]=tr&&A===void 0?n:A,this}We.prototype.clear=xn,We.prototype.delete=On,We.prototype.get=xr,We.prototype.has=hi,We.prototype.set=bo;function et(y){var A=-1,I=y==null?0:y.length;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function wo(){this.__data__=[],this.size=0}function So(y){var A=this.__data__,I=Vr(A,y);if(I<0)return!1;var W=A.length-1;return I==W?A.pop():Ee.call(A,I,1),--this.size,!0}function To(y){var A=this.__data__,I=Vr(A,y);return I<0?void 0:A[I][1]}function xo(y){return Vr(this.__data__,y)>-1}function An(y,A){var I=this.__data__,W=Vr(I,y);return W<0?(++this.size,I.push([y,A])):I[W][1]=A,this}et.prototype.clear=wo,et.prototype.delete=So,et.prototype.get=To,et.prototype.has=xo,et.prototype.set=An;function ht(y){var A=-1,I=y==null?0:y.length;for(this.clear();++A<I;){var W=y[A];this.set(W[0],W[1])}}function Oo(){this.size=0,this.__data__={hash:new We,map:new(Tr||et),string:new We}}function Ao(y){var A=Pt(this,y).delete(y);return this.size-=A?1:0,A}function Co(y){return Pt(this,y).get(y)}function Ro(y){return Pt(this,y).has(y)}function Po(y,A){var I=Pt(this,y),W=I.size;return I.set(y,A),this.size+=I.size==W?0:1,this}ht.prototype.clear=Oo,ht.prototype.delete=Ao,ht.prototype.get=Co,ht.prototype.has=Ro,ht.prototype.set=Po;function qr(y){var A=-1,I=y==null?0:y.length;for(this.__data__=new ht;++A<I;)this.add(y[A])}function di(y){return this.__data__.set(y,n),this}function Gr(y){return this.__data__.has(y)}qr.prototype.add=qr.prototype.push=di,qr.prototype.has=Gr;function xt(y){var A=this.__data__=new et(y);this.size=A.size}function Cn(){this.__data__=new et,this.size=0}function No(y){var A=this.__data__,I=A.delete(y);return this.size=A.size,I}function Io(y){return this.__data__.get(y)}function Lo(y){return this.__data__.has(y)}function ko(y,A){var I=this.__data__;if(I instanceof et){var W=I.__data__;if(!Tr||W.length<r-1)return W.push([y,A]),this.size=++I.size,this;I=this.__data__=new ht(W)}return I.set(y,A),this.size=I.size,this}xt.prototype.clear=Cn,xt.prototype.delete=No,xt.prototype.get=Io,xt.prototype.has=Lo,xt.prototype.set=ko;function Mo(y,A){var I=Wr(y),W=!I&&Ei(y),ge=!I&&!W&&Qr(y),ce=!I&&!W&&!ge&&Ln(y),_e=I||W||ge||ce,be=_e?kt(y.length,String):[],He=be.length;for(var Ae in y)(A||C.call(y,Ae))&&!(_e&&(Ae=="length"||ge&&(Ae=="offset"||Ae=="parent")||ce&&(Ae=="buffer"||Ae=="byteLength"||Ae=="byteOffset")||rr(Ae,He)))&&be.push(Ae);return be}function Vr(y,A){for(var I=y.length;I--;)if(vi(y[I][0],A))return I;return-1}function Rn(y,A,I){var W=A(y);return Wr(y)?W:wr(W,I(y))}function Or(y){return y==null?y===void 0?$:S:Rt&&Rt in Object(y)?Kt(y):yi(y)}function pi(y){return Ft(y)&&Or(y)==s}function mi(y,A,I,W,ge){return y===A?!0:y==null||A==null||!Ft(y)&&!Ft(A)?y!==y&&A!==A:gi(y,A,I,W,mi,ge)}function gi(y,A,I,W,ge,ce){var _e=Wr(y),be=Wr(A),He=_e?c:Nt(y),Ae=be?c:Nt(A);He=He==s?v:He,Ae=Ae==s?v:Ae;var tt=He==v,ct=Ae==v,Ge=He==Ae;if(Ge&&Qr(y)){if(!Qr(A))return!1;_e=!0,tt=!1}if(Ge&&!tt)return ce||(ce=new xt),_e||Ln(y)?Pn(y,A,I,W,ge,ce):Uo(y,A,He,I,W,ge,ce);if(!(I&o)){var rt=tt&&C.call(y,"__wrapped__"),Qe=ct&&C.call(A,"__wrapped__");if(rt||Qe){var nr=rt?y.value():y,Xt=Qe?A.value():A;return ce||(ce=new xt),ge(nr,Xt,I,W,ce)}}return Ge?(ce||(ce=new xt),Nn(y,A,I,W,ge,ce)):!1}function Fo(y){if(!bi(y)||Ho(y))return!1;var A=_i(y)?z:de;return A.test(ut(y))}function Do(y){return Ft(y)&&In(y.length)&&!!te[Or(y)]}function Bo(y){if(!qo(y))return Sr(y);var A=[];for(var I in Object(y))C.call(y,I)&&I!="constructor"&&A.push(I);return A}function Pn(y,A,I,W,ge,ce){var _e=I&o,be=y.length,He=A.length;if(be!=He&&!(_e&&He>be))return!1;var Ae=ce.get(y);if(Ae&&ce.get(A))return Ae==A;var tt=-1,ct=!0,Ge=I&i?new qr:void 0;for(ce.set(y,A),ce.set(A,y);++tt<be;){var rt=y[tt],Qe=A[tt];if(W)var nr=_e?W(Qe,rt,tt,A,y,ce):W(rt,Qe,tt,y,A,ce);if(nr!==void 0){if(nr)continue;ct=!1;break}if(Ge){if(!er(A,function(Xt,Cr){if(!Wt(Ge,Cr)&&(rt===Xt||ge(rt,Xt,I,W,ce)))return Ge.push(Cr)})){ct=!1;break}}else if(!(rt===Qe||ge(rt,Qe,I,W,ce))){ct=!1;break}}return ce.delete(y),ce.delete(A),ct}function Uo(y,A,I,W,ge,ce,_e){switch(I){case H:if(y.byteLength!=A.byteLength||y.byteOffset!=A.byteOffset)return!1;y=y.buffer,A=A.buffer;case q:return!(y.byteLength!=A.byteLength||!ce(new Re(y),new Re(A)));case u:case d:case _:return vi(+y,+A);case h:return y.name==A.name&&y.message==A.message;case w:case R:return y==A+"";case m:var be=Ze;case N:var He=W&o;if(be||(be=yt),y.size!=A.size&&!He)return!1;var Ae=_e.get(y);if(Ae)return Ae==A;W|=i,_e.set(y,A);var tt=Pn(be(y),be(A),W,ge,ce,_e);return _e.delete(y),tt;case L:if(Tn)return Tn.call(y)==Tn.call(A)}return!1}function Nn(y,A,I,W,ge,ce){var _e=I&o,be=Ar(y),He=be.length,Ae=Ar(A),tt=Ae.length;if(He!=tt&&!_e)return!1;for(var ct=He;ct--;){var Ge=be[ct];if(!(_e?Ge in A:C.call(A,Ge)))return!1}var rt=ce.get(y);if(rt&&ce.get(A))return rt==A;var Qe=!0;ce.set(y,A),ce.set(A,y);for(var nr=_e;++ct<He;){Ge=be[ct];var Xt=y[Ge],Cr=A[Ge];if(W)var sa=_e?W(Cr,Xt,Ge,A,y,ce):W(Xt,Cr,Ge,y,A,ce);if(!(sa===void 0?Xt===Cr||ge(Xt,Cr,I,W,ce):sa)){Qe=!1;break}nr||(nr=Ge=="constructor")}if(Qe&&!nr){var ir=y.constructor,Yr=A.constructor;ir!=Yr&&"constructor"in y&&"constructor"in A&&!(typeof ir=="function"&&ir instanceof ir&&typeof Yr=="function"&&Yr instanceof Yr)&&(Qe=!1)}return ce.delete(y),ce.delete(A),Qe}function Ar(y){return Rn(y,wi,$o)}function Pt(y,A){var I=y.__data__;return jo(A)?I[typeof A=="string"?"string":"hash"]:I.map}function Yt(y,A){var I=Mt(y,A);return Fo(I)?I:void 0}function Kt(y){var A=C.call(y,Rt),I=y[Rt];try{y[Rt]=void 0;var W=!0}catch{}var ge=j.call(y);return W&&(A?y[Rt]=I:delete y[Rt]),ge}var $o=Hr?function(y){return y==null?[]:(y=Object(y),Vt(Hr(y),function(A){return Pe.call(y,A)}))}:Si,Nt=Or;(_n&&Nt(new _n(new ArrayBuffer(1)))!=H||Tr&&Nt(new Tr)!=m||bn&&Nt(bn.resolve())!=b||wn&&Nt(new wn)!=N||Sn&&Nt(new Sn)!=G)&&(Nt=function(y){var A=Or(y),I=A==v?y.constructor:void 0,W=I?ut(I):"";if(W)switch(W){case li:return H;case Qt:return m;case vo:return b;case Eo:return N;case _o:return G}return A});function rr(y,A){return A=A??a,!!A&&(typeof y=="number"||Ve.test(y))&&y>-1&&y%1==0&&y<A}function jo(y){var A=typeof y;return A=="string"||A=="number"||A=="symbol"||A=="boolean"?y!=="__proto__":y===null}function Ho(y){return!!M&&M in y}function qo(y){var A=y&&y.constructor,I=typeof A=="function"&&A.prototype||x;return y===I}function yi(y){return j.call(y)}function ut(y){if(y!=null){try{return E.call(y)}catch{}try{return y+""}catch{}}return""}function vi(y,A){return y===A||y!==y&&A!==A}var Ei=pi(function(){return arguments}())?pi:function(y){return Ft(y)&&C.call(y,"callee")&&!Pe.call(y,"callee")},Wr=Array.isArray;function zr(y){return y!=null&&In(y.length)&&!_i(y)}var Qr=En||Vo;function Go(y,A){return mi(y,A)}function _i(y){if(!bi(y))return!1;var A=Or(y);return A==f||A==p||A==l||A==T}function In(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=a}function bi(y){var A=typeof y;return y!=null&&(A=="object"||A=="function")}function Ft(y){return y!=null&&typeof y=="object"}var Ln=Je?yn(Je):Do;function wi(y){return zr(y)?Mo(y):Bo(y)}function Si(){return[]}function Vo(){return!1}e.exports=Go})(hu,hu.exports);var DN=hu.exports;const BN=Er(DN);const TE=({element:e="section",children:t,className:r,...n})=>U.createElement(e,{className:se("modal",r),children:typeof t=="string"?O.jsx("p",{children:t}):t,...n});const xE=({id:e="content-overlay",isOpen:t=!1,maxWidth:r,functions:{onOpen:n=()=>{},onClose:o=()=>{}}={},forceShow:{error:i=!1}={},title:a,children:s,buttons:c,className:l="",gtmContext:u="Modal"})=>{const d=Oe(),[h,f]=U.useState(t),p=_=>{f(_),_?(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:se("overlay",{open:h}),children:O.jsx(TE,{id:e,className:se("overlay-modal",l,{"has-max-width":r}),hidden:!h,style:m,children:t&&O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"top",children:[O.jsx("h2",{children:a}),O.jsx(ze,{variant:"tertiary",size:"medium",icon:{icon:"close"},onClick:()=>p(!1),className:"gtm-trackable","data-gtm-event-type":"close-modal-click","data-gtm-event-context":u,screenreaderText:d.formatMessage({id:"overlay_button"})})]}),O.jsx(Ja,{}),s,c&&O.jsxs("div",{className:"bottom",children:[O.jsx(Ja,{}),O.jsx(ra,{buttons:c})]}),i&&O.jsx(eu,{className:"error",children:i})]})})})},OE=(e,t)=>({"aria-haspopup":!0,"aria-expanded":t,"aria-controls":e}),Km=e=>{const t={};return Object.keys(e).forEach(r=>{t[`${r}Slug`]=e[r]}),t};const Lr="discussion_",Iu=({element:e="div",content:t,userHasPermissions:r=!0,isLoading:n=!1,originalAuthorId:o,functions:{content:{createContent:i,deleteContent:a,updateContent:s}={createContent:()=>{},deleteContent:()=>{},updateContent:()=>{}},likes:{createLike:c,deleteLike:l}={createLike:()=>{},deleteLike:()=>{}},comments:{openComments:u}={openComments:()=>{}}},links:d={},className:h,gtmContext:f="DiscussionAnswer",children:p})=>{const m=Oe(),_=U.useContext($r),S=U.useContext(ph),[v,b]=U.useState({body:t&&t.body||"",isEditing:!1,didEdit:t&&t.isEdited||!1}),[T,w]=U.useState(!1),[N,R]=U.useState("");if(U.useEffect(()=>{b({...v,body:t&&t.body||"",didEdit:t&&t.isEdited||!1})},[t.isEdited]),n||!t||t.type==="answer"&&(!t.slugs||!t.slugs.question))return O.jsx(yr,{className:"discussion-card discussion-post"});const{author:L,canLike:$,createdAt:G,id:q,likes:H=0,userLiked:Y,comments:ie=0}=t,K=_&&_.id&&typeof L!="string"&&L.id&&L.id===_.id||!1,k=typeof $=="boolean"?$:r?!K:!1,Q=async X=>{X||(X=""),R("");try{if(!BN(X,v.body)){const le=t.type==="question"?{title:X}:{body:X};await s(Km(t.slugs),le)}b({body:X,isEditing:!1,didEdit:!0})}catch{R(`${Lr}form_error`)}},ee=()=>{S&&S.updateConversation&&S.updateConversation({showThread:!0,showForm:!0}),setTimeout(()=>{const le=`reply-form-${(t.type==="answer"?t.slug:t.slugs.answer||"").toLowerCase().slice(-15)}`,de=document.getElementById(le),Ve=document.getElementById(`${le}-input`);Ve&&Ve.focus(),de&&de.scrollIntoView({behavior:"smooth"})},0)},he=()=>{try{a(Km(t.slugs))}catch{R("delete-error")}},Z=[{text:m.formatMessage({id:`${Lr}moreMenu_report`}),href:`mailto:community@apolitical.co?subject=${encodeURI(m.formatMessage({id:`${Lr}report_subject`}))}&body=${encodeURI(m.formatMessage({id:`${Lr}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&&K&&Z.push({text:m.formatMessage({id:`${Lr}moreMenu_edit`}),onClick:()=>b({...v,isEditing:!0}),icon:"pencil-paper",className:"gtm-trackable","data-gtm-event-context":f,"data-gtm-event-type":`edit-${t.type}-click`},{text:m.formatMessage({id:`${Lr}moreMenu_delete`}),onClick:X=>{X.preventDefault(),X.stopPropagation(),w(!0)},icon:"trash",className:"gtm-trackable","data-gtm-event-context":f,"data-gtm-event-type":`delete-${t.type}-click`,...OE(`delete-${t.slug}-modal`,T)}),U.createElement(e,{className:se("discussion-post",h),"data-testid":`discussion-${t.type}-thread`,children:O.jsxs(O.Fragment,{children:[O.jsxs("div",{id:q||t.slug,className:se("discussion-card",t.type,{editing:v.isEditing,"has-link":d.post&&!v.isEditing}),onClick:X=>{!d.post||v.isEditing||(X.preventDefault(),X.stopPropagation(),window.location.href=d.post)},children:[!v.isEditing&&O.jsx(xu,{member:L,additionalContent:{createdAt:G,didEdit:v.didEdit},className:typeof L!="string"&&L.id===o?"highlighted":"",gtmContext:f,gtmType:"profile-click"}),v.isEditing?O.jsx(hh,{content:{type:t.type,slugs:t.slugs},userHasPermissions:r,meta:{isLoading:n,isInWrapper:!0,isEditing:{text:v.body}},maxLength:t.type==="question"?250:5e4,forceShow:{error:N!==""&&N!=="delete-error"?m.formatMessage({id:N},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},functions:{create:i,handleSaveEdit:Q,handleCancel:()=>{R(""),b({...v,isEditing:!1})}},gtmContext:`${f}Form`}):d.post?O.jsx("a",{href:d.post,className:"gtm-trackable","data-gtm-event-context":f,"data-gtm-event-type":"title-click",children:O.jsx(rf,{options:{overrides:{a:T0}},children:v.body})}):O.jsx(rf,{options:{wrapper:t.type==="question"?"h1":U.Fragment,forceWrapper:t.type==="question",forceInline:t.type==="question",forceBlock:t.type!=="question"},children:v.body}),!v.isEditing&&O.jsxs("ul",{className:se("actions text-medium",t.type),"data-testid":`${t.type}-actions`,children:[O.jsx(SE,{element:"li",likes:H,isShort:!1,userLiked:Y,content:{type:t.type,slugs:t.slugs},canLike:k,functions:{createLike:c,deleteLike:l}}),["question","post"].includes(t.type)||d.comments||typeof u=="function"&&O.jsxs("li",{className:"action-button",onClick:X=>{X.preventDefault(),X.stopPropagation(),d.comments&&(window.location.href=d.comments),typeof u=="function"&&u()},children:[O.jsx(ze,{variant:"tertiary",size:"medium",styling:{muted:!0},icon:{icon:"speech-bubble_square_thick"},href:d.comments?d.comments:!1,onClick:d.comments||typeof u!="function"?!1:u,className:"gtm-trackable","data-gtm-event-context":f,"data-gtm-event-type":`answer-${t.type}-click`,screenreaderText:m.formatMessage({id:`${Lr}comments_screenReader`},{count:ie})}),O.jsx("span",{children:m.formatMessage({id:`${Lr}comments`},{count:ie})})]}),(t.type==="answer"||t.type==="reply")&&O.jsx("li",{children:O.jsx(ze,{variant:"tertiary",size:"medium",styling:{muted:!0},onClick:ee,children:m.formatMessage({id:`${Lr}reply`})})}),O.jsx(aE,{element:"li",id:`more-${t.slug}`,options:Z})]})]}),p,O.jsx(xE,{id:`delete-${t.slug}-modal`,isOpen:T,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:he,children:m.formatMessage({id:"discussion_delete_delete"})}],gtmContext:`${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,children:O.jsx(ln,{id:"discussion_delete_text",values:{p:X=>O.jsx("p",{children:X}),action:m.formatMessage({id:`discussion_action_${t.type}`})}})})]})})};const xl="discussion_responses_",UN=({type:e="answer",responses:t=0})=>{const r=Oe();return O.jsxs("div",{className:"responses-heading",children:[O.jsx("h3",{children:r.formatMessage({id:`${xl}title`},{action:r.formatMessage({id:`${xl}${e}`}),count:t})}),t===0&&O.jsx("p",{children:ar(r.formatMessage,`${xl}empty`,e,e)})]})};const $N=({isOpen:e=!1,count:t=0,children:r})=>{const n=Oe(),o=U.useRef(null),[i,a]=U.useState(e),[s,c]=U.useState("closed");U.useEffect(()=>{const h=o.current;if(h)return h.addEventListener("transitionend",l),()=>{h.removeEventListener("transitionend",l)}},[]),ri(()=>{s==="closed"&&!i||c(["opening","open"].includes(s)?"ready-to-close":"opening")},[i]),U.useEffect(()=>{s==="ready-to-close"&&c("closing")},[s]);const l=({propertyName:h})=>{h==="max-height"&&c(f=>f==="opening"?"open":f==="closing"?"closed":f)},u=["opening","open"].includes(s),d=Sv(r,{element:"li"});return O.jsxs("div",{className:"thread-wrapper",children:[O.jsx(ze,{variant:"secondary",size:"small",styling:{muted:!0},icon:{icon:`arrow_corner-down_${u?"left":"right"}`},onClick:()=>{a(!i)},children:n.formatMessage({id:`discussion_thread_${u?"hide":"show"}`},{count:t})}),O.jsx("ul",{ref:o,className:se("thread",s),hidden:!i,children:d})]})},jN=({user:e,content:t,verb:r="post"})=>({actor:{id:e.id,data:{name:e.name,organization:e==null?void 0:e.organization,jobTitle:e==null?void 0:e.jobTitle}},content:t,latest_reactions:{like:[]},reaction_counts:{like:0},verb:r}),HN=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({content:s})=>{if(!r)return;const c=jN({user:r,content:s,verb:"post"});await e.cancelQueries({queryKey:t});const l=e.getQueryData(t);return e.setQueryData(t,u=>[...u,c]),{previousActivities:l}},onError:(s,c,l)=>{e.setQueryData(t,l.previousActivities)},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),qN=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async({activityId:s})=>{await e.cancelQueries({queryKey:t});const c=e.getQueryData(t),l=c==null?void 0:c.map(u=>{var d;return(u==null?void 0:u.id)===s&&((d=u.reaction_counts)!=null&&d.like?u.reaction_counts.like+=1:u.reaction_counts.like=1),u});return e.setQueryData(t,()=>l&&[...l]),{previousActivities:l}},onError:(s,c,l)=>{e.setQueryData(t,l.previousActivities)},onSuccess:s=>{const c=e.getQueryData(t),l=c==null?void 0:c.map(u=>((u==null?void 0:u.id)===(s==null?void 0:s.activity_id)&&(u.latest_reactions.like?u.latest_reactions.like.push(s):u.latest_reactions.like=[s]),u));return e.setQueryData(t,()=>l&&[...l]),{previousActivities:c}},onSettled:(s,c,l)=>{e.invalidateQueries({queryKey:[...t,l.activityId]})}}),GN=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({activityId:c})=>{await e.cancelQueries({queryKey:t});const l=e.getQueryData(t),u=l==null?void 0:l.map(d=>{var h;return(d==null?void 0:d.id)===c&&(h=d.reaction_counts)!=null&&h.like&&(d.reaction_counts.like-=1),d});return e.setQueryData(t,()=>u&&[...u]),{previousActivities:u}},onError:(c,l,u)=>{e.setQueryData(t,u.previousActivities)},onSuccess:(c,{activityId:l})=>{const u=e.getQueryData(t),d=u==null?void 0:u.map(h=>{var f,p,m,_;if(h.id===l){const S=(m=(p=(f=h.latest_reactions)==null?void 0:f.like)==null?void 0:p.find(v=>v.user_id===(r==null?void 0:r.id)))==null?void 0:m.id;return h.latest_reactions.like=(_=h.latest_reactions.like)==null?void 0:_.filter(v=>v.id!==S),h}else return h});return e.setQueryData(t,()=>d&&[...d]),{previousActivities:u}},onSettled:(c,l,u)=>{e.invalidateQueries({queryKey:[...t,u.activityId]})}}),VN=({basePath:e,parentId:t,membershipRequiredToPost:{isMember:r,join:n,leave:o},functions:{list:i,create:a,like:s,unlike:c}})=>{const l=mo(),u=U.useContext($r),{data:d,error:h,isLoading:f,isFetching:p}=H0({queryKey:[e,t],queryFn:i}),m=HN({queryClient:l,queryKey:[e,t],user:u,mutationFn:a}),{mutate:_}=fn(m),S=qN({queryClient:l,queryKey:[e,t],mutationFn:s}),{mutate:v}=fn(S),b=GN({queryClient:l,queryKey:[e,t],user:u,mutationFn:async({activityId:R})=>{var G,q,H;const L=d&&(d==null?void 0:d.find(Y=>Y.id===R)),$=(H=(q=(G=L==null?void 0:L.latest_reactions)==null?void 0:G.like)==null?void 0:q.find(Y=>Y.user_id===(u==null?void 0:u.id)))==null?void 0:H.id;await c({reactionId:$||"",activityId:R})}}),{mutate:T}=fn(b),w=U.useCallback(({activityId:R})=>v({activityId:R}),[v]),N=U.useCallback(({activityId:R})=>T({activityId:R}),[T]);return h?O.jsx(oa,{variant:"error",text:h.message}):f?O.jsx(yr,{style:{height:"400px"}}):O.jsxs(O.Fragment,{children:[O.jsx(dh,{contentType:"post",createPost:_,membershipRequiredToPost:{isMember:r,required:!0,join:n,leave:o,notMemberStateText:"Join community to create a post."}}),!p&&Array.isArray(d)&&(d==null?void 0:d.map(R=>{var L,$,G,q,H,Y,ie,K,k,Q;return O.jsx(Iu,{content:{type:"post",body:R==null?void 0:R.content,createdAt:(R==null?void 0:R.time)||"",slugs:{question:t},slug:R==null?void 0:R.id,author:{id:(L=R==null?void 0:R.actor)==null?void 0:L.id,name:(G=($=R==null?void 0:R.actor)==null?void 0:$.data)==null?void 0:G.name,organization:(H=(q=R==null?void 0:R.actor)==null?void 0:q.data)==null?void 0:H.organization,jobTitle:(ie=(Y=R==null?void 0:R.actor)==null?void 0:Y.data)==null?void 0:ie.jobTitle,image:{thumbnail:((k=(K=R==null?void 0:R.actor)==null?void 0:K.data)==null?void 0:k.thumbnail)||void 0}},userLiked:R.own_reactions.like&&((Q=R==null?void 0:R.own_reactions)==null?void 0:Q.like.length)>0,likes:(R==null?void 0:R.reaction_counts.like)||0,comments:(R==null?void 0:R.reaction_counts.reply)||0},links:{post:`${e}/${t}/${R==null?void 0:R.id}`,comments:`${e}/${t}/${R==null?void 0:R.id}`},functions:{content:{createContent:()=>null,deleteContent:()=>null,updateContent:()=>null},likes:{createLike:()=>{w({activityId:R==null?void 0:R.id})},deleteLike:()=>{N({activityId:R==null?void 0:R.id})}},comments:{openComments:()=>null}}},R==null?void 0:R.id)}))]})},WN=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async()=>{await e.cancelQueries({queryKey:t})},onError:(s,c,l)=>{e.setQueryData(t,l.previousActivity)},onSuccess:s=>{var l;const c=e.getQueryData(t);if(c)return(l=c==null?void 0:c.latest_reactions)!=null&&l.reply?(c.latest_reactions.reply.unshift(s),c&&(c.reaction_counts={reply:c.latest_reactions.reply.length})):(c.latest_reactions={reply:[s]},c.reaction_counts={reply:1}),e.setQueryData(t,()=>({...c})),{previousActivity:c}},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),zN=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async({replyId:a})=>{var l,u;await e.cancelQueries({queryKey:t});const s=e.getQueryData(t),c=(u=(l=s==null?void 0:s.latest_reactions)==null?void 0:l.reply)==null?void 0:u.map(d=>{var h;return d.id===a&&((h=d.children_counts)!=null&&h.like?d.children_counts.like+=1:d.children_counts={like:1}),d});return e.setQueryData(t,()=>({...s,latest_reactions:{reply:c}})),{previousActivity:s}},onError:(a,s,c)=>{e.setQueryData(t,c.previousActivity)},onSuccess:a=>{var l;const s=e.getQueryData(t),c=(l=s==null?void 0:s.latest_reactions.reply)==null?void 0:l.map(u=>(u.id===a.id&&(u.latest_children.like?u.latest_children.like.push(a):u.latest_children.like=[a]),u));return e.setQueryData(t,()=>({...s,latest_reactions:{reply:c}})),{previousActivity:s}}}),QN=({queryClient:e,queryKey:t,user:r,mutationFn:n})=>({mutationFn:n,onMutate:async({replyId:s})=>{var u;await e.cancelQueries({queryKey:t});const c=e.getQueryData(t);if(!c)return;const l=(u=c.latest_reactions.reply)==null?void 0:u.map(d=>(d.id===s&&d.children_counts.like&&(d.children_counts.like-=1),d));return e.setQueryData(t,()=>({...c,latest_reactions:{reply:l}})),{previousActivity:c}},onError:(s,c,l)=>{e.setQueryData(t,l.previousActivity)},onSuccess:(s,{replyId:c})=>{var d;const l=e.getQueryData(t);if(!l)return;const u=(d=l.latest_reactions.reply)==null?void 0:d.map(h=>{var f;return h.id===c?(f=h.latest_children.reply)==null?void 0:f.filter(m=>m.user_id!==(r==null?void 0:r.id)):h});return e.setQueryData(t,()=>({...l,latest_reactions:{reply:u}})),{previousActivity:l}}}),AE=({basePath:e,parentId:t,activityId:r,repliesList:n,membershipRequiredToPost:{isMember:o,join:i,leave:a},functions:{createReply:s,like:c,unlike:l}})=>{const u=mo(),d=U.useContext($r),h=WN({queryClient:u,queryKey:[e,t,r],mutationFn:s}),{mutate:f}=fn(h),p=zN({queryClient:u,queryKey:[e,t,r],mutationFn:c}),{mutate:m}=fn(p),_=QN({queryClient:u,queryKey:[e,t,r],user:d,mutationFn:l}),{mutate:S}=fn(_),v=U.useCallback(({replyId:T})=>m({replyId:T}),[m]),b=U.useCallback(({replyId:T})=>S({replyId:T}),[S]);return O.jsxs(O.Fragment,{children:[O.jsx(dh,{contentType:"post",createPost:f,membershipRequiredToPost:{isMember:o,required:!0,join:i,leave:a,notMemberStateText:"Join community to create a post."}}),(n==null?void 0:n.length)===0||(n==null?void 0:n.map(T=>{var N,R,L,$,G,q,H,Y,ie,K,k,Q,ee,he,Z,X;const w=((N=T==null?void 0:T.latest_children)==null?void 0:N.like)&&((R=T==null?void 0:T.latest_children)==null?void 0:R.like.filter(le=>le.user_id===(d==null?void 0:d.id)));return O.jsx(Iu,{content:{type:"post",body:typeof T.data.content=="string"?(L=T==null?void 0:T.data)==null?void 0:L.content:((G=($=T==null?void 0:T.data)==null?void 0:$.content)==null?void 0:G.text)||"",createdAt:T==null?void 0:T.created_at,slugs:{question:`${e}/${t}/${r}`,reply:T==null?void 0:T.id},slug:`${e}/${t}/${r}#${T==null?void 0:T.id}`,author:{id:(q=T==null?void 0:T.user)==null?void 0:q.id,name:(Y=(H=T==null?void 0:T.user)==null?void 0:H.data)==null?void 0:Y.name,organization:(K=(ie=T==null?void 0:T.user)==null?void 0:ie.data)==null?void 0:K.organization,jobTitle:(Q=(k=T==null?void 0:T.user)==null?void 0:k.data)==null?void 0:Q.jobTitle,image:{thumbnail:((he=(ee=T==null?void 0:T.user)==null?void 0:ee.data)==null?void 0:he.thumbnail)||void 0}},userLiked:!!(w!=null&&w.length),likes:((Z=T==null?void 0:T.children_counts)==null?void 0:Z.like)||0,comments:((X=T==null?void 0:T.children_counts)==null?void 0:X.reply)||0},functions:{content:{createContent:()=>console.log("create"),deleteContent:()=>console.log("delete"),updateContent:()=>console.log("update")},likes:{createLike:()=>v({replyId:T==null?void 0:T.id}),deleteLike:()=>b({replyId:T==null?void 0:T.id})},comments:{openComments:()=>{}}}},T==null?void 0:T.id)}))]})},YN=({queryClient:e,queryKey:t,mutationFn:r})=>({mutationFn:r,onMutate:async()=>{var c;await e.cancelQueries({queryKey:t});const s=e.getQueryData(t);return(c=s==null?void 0:s.reaction_counts)!=null&&c.like?s.reaction_counts.like+=1:s&&(s.reaction_counts={like:1}),e.setQueryData(t,()=>({...s})),{previousActivity:s}},onError:(s,c,l)=>{e.setQueryData(t,l.previousActivity)},onSuccess:s=>{const c=e.getQueryData(t);return c!=null&&c.latest_reactions.like?c.latest_reactions.like.push(s):c&&(c.latest_reactions={like:[s]}),e.setQueryData(t,()=>({...c})),{previousActivity:c}},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),KN=({queryClient:e,queryKey:t,user:r,activity:n,mutationFn:o})=>({mutationFn:o,onMutate:async()=>{var u;await e.cancelQueries({queryKey:t});const l=e.getQueryData(t);return(u=l==null?void 0:l.reaction_counts)!=null&&u.like&&l.reaction_counts.like>0&&(l.reaction_counts.like-=1),e.setQueryData(t,()=>({...l})),{previousActivity:l}},onError:(l,u,d)=>{e.setQueryData(t,d.previousActivity)},onSuccess:()=>{var d,h,f;if(!n)return;const l=(f=(h=(d=n.latest_reactions)==null?void 0:d.like)==null?void 0:h.find(p=>p.user_id===(r==null?void 0:r.id)))==null?void 0:f.id,u=e.getQueryData(t);if(u!=null&&u.latest_reactions.like)return u.latest_reactions.like=u.latest_reactions.like.filter(p=>p.id!==l),e.setQueryData(t,()=>({...u})),{previousActivity:u}},onSettled:()=>{e.invalidateQueries({queryKey:t})}}),XN=({basePath:e,parentId:t,activityId:r,membershipRequiredToPost:n,functions:{get:o,likeActivity:i,unlikeActivity:a,createReply:s,likeReply:c,unlikeReply:l}})=>{var N,R,L,$,G,q,H,Y,ie,K;const u=U.useContext($r),d=mo(),{data:h,error:f,isLoading:p,isFetching:m}=H0({queryKey:[e,t,r],queryFn:o}),_=YN({queryClient:d,queryKey:[e,t,r],mutationFn:i}),{mutate:S}=fn(_),v=KN({queryClient:d,queryKey:[e,t,r],user:u,mutationFn:async()=>{var Q,ee,he;const k=(he=(ee=(Q=h==null?void 0:h.latest_reactions)==null?void 0:Q.like)==null?void 0:ee.find(Z=>Z.user_id===(u==null?void 0:u.id)))==null?void 0:he.id;await a({activityId:r,reactionId:k})},activity:h}),{mutate:b}=fn(v),T=U.useCallback(({activityId:k})=>S({activityId:k}),[S]),w=U.useCallback(async({activityId:k})=>b({activityId:k}),[b]);return f?O.jsx(oa,{variant:"error",text:f.message}):p||m?O.jsx(yr,{style:{height:"400px"}}):O.jsx(Iu,{content:{type:"post",body:h==null?void 0:h.content,createdAt:(h==null?void 0:h.time)||"",slugs:{question:`${t}/${r}`},slug:r,author:{id:(N=h==null?void 0:h.actor)==null?void 0:N.id,name:(R=h==null?void 0:h.actor)==null?void 0:R.data.name,organization:(L=h==null?void 0:h.actor)==null?void 0:L.data.organization,jobTitle:($=h==null?void 0:h.actor)==null?void 0:$.data.jobTitle,image:{thumbnail:((G=h==null?void 0:h.actor)==null?void 0:G.data.thumbnail)||void 0}},userLiked:((q=h==null?void 0:h.own_reactions)==null?void 0:q.like)&&((H=h==null?void 0:h.own_reactions)==null?void 0:H.like.length)>0,likes:h&&(h==null?void 0:h.reaction_counts.like),comments:h&&(h==null?void 0:h.reaction_counts.reply)},originalAuthorId:(Y=h==null?void 0:h.actor)==null?void 0:Y.id,functions:{content:{createContent:()=>console.log("create"),deleteContent:()=>console.log("delete"),updateContent:()=>console.log("update")},likes:{createLike:()=>T({activityId:r}),deleteLike:()=>w({activityId:r})},comments:{openComments:()=>{}}},children:O.jsxs(O.Fragment,{children:[O.jsxs("h3",{children:["Comments (",((ie=h==null?void 0:h.reaction_counts)==null?void 0:ie.reply)||0,")"]}),O.jsx(AE,{basePath:e,parentId:t,activityId:r,repliesList:(K=h==null?void 0:h.latest_reactions)==null?void 0:K.reply,membershipRequiredToPost:n,functions:{createReply:s,like:c,unlike:l}})]})},r)},JN=({id:e,data:{jobTitle:t,name:r,organization:n,thumbnail:o}})=>({id:e,name:r,jobTitle:t,organization:n,image:{thumbnail:o}});exports.$PROXY=Ns;exports.$TRACK=eh;exports.ASSETS_BUCKET=Za;exports.ActivitiesFeed=VN;exports.ActivitySection=XN;exports.AddPost=dh;exports.Breadcrumbs=rP;exports.Button=ze;exports.ButtonWrapper=ra;exports.CollapsibleSection=Qf;exports.Columns=oP;exports.CommunityDetails=tP;exports.Contributors=P0;exports.Conversation=kN;exports.ConversationContext=ph;exports.CookieBanner=uE;exports.Divider=Ja;exports.DownloadSection=zA;exports.Dynamic=KR;exports.EmailHelperTextBox=sP;exports.EmptyStateBox=oa;exports.Filters=nP;exports.Footer=sh;exports.For=wR;exports.Form=hh;exports.FullWidthSection=Wf;exports.Header=fh;exports.HelperTextBox=S0;exports.HiddenFromScreenReaders=Sf;exports.HideShowTextBox=i1;exports.HighlightedTextBoxWrapper=Br;exports.Index=SR;exports.IntlProvider=y1;exports.JoinButton=ih;exports.Likes=SE;exports.Link=bu;exports.LoadMore=sE;exports.LoadingPlaceholder=yr;exports.LoadingState=C0;exports.Logo=oh;exports.LogoSection=QA;exports.MarkdownText=rf;exports.MarketingBlock=JA;exports.Match=OR;exports.Member=xu;exports.MembersList=gN;exports.Modal=TE;exports.MoreMenu=aE;exports.NUMBER_OF_USERS=eC;exports.Overlay=xE;exports.PageLayout=dN;exports.Pill=x0;exports.Portal=YR;exports.Post=Iu;exports.ProfilePicture=Tu;exports.ProgressBar=O0;exports.Rating=lP;exports.ReactQueryProvider=eP;exports.RepliesFeed=AE;exports.ResponsesHeading=UN;exports.ResponsiveImage=Tv;exports.SearchForm=hE;exports.Show=TR;exports.Span=T0;exports.StatusBanner=eu;exports.Switch=xR;exports.Tags=mN;exports.Thread=$N;exports.Tooltip=t0;exports.UserContext=$r;exports.UserProvider=v1;exports.VisuallyHidden=lt;exports.addAriaProps=OE;exports.addEventListener=nE;exports.bannerSection=XA;exports.batch=rR;exports.children=rh;exports.className=rE;exports.createComponent=X0;exports.createComputed=yf;exports.createContext=cR;exports.createEffect=th;exports.createMemo=St;exports.createRenderEffect=dn;exports.createRoot=hn;exports.createSignal=bt;exports.createUniqueId=bR;exports.delegateEvents=tE;exports.getListener=oR;exports.getMember=Xf;exports.headerData=ks;exports.insert=cu;exports.loadingBlock=p1;exports.mapGetSteamData=JN;exports.mergeProps=J0;exports.on=nR;exports.onCleanup=Is;exports.onMount=iR;exports.passwordRules=cP;exports.setAttribute=uu;exports.splitProps=Z0;exports.spread=iE;exports.template=BR;exports.untrack=Xe;exports.use=HR;exports.useContext=lR;exports.useEffectAfterMount=ri;exports.useFeatureFlag=lx;exports.useScreenWidth=ta;exports.useScrollListener=hv;exports.useScrollToHash=hx;exports.useTransition=uR;
|