@atlar-widgets/rasor-components-status 0.1.0 → 0.1.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.
@@ -1,13 +1,13 @@
1
- (function(){"use strict";try{if(typeof document!="undefined"){var r=document.createElement("style");r.appendChild(document.createTextNode('._container_rf8sx_3{--bg: var(--bg-color, #fff);--surface: var(--widget-bg, #fafafa);--panel-bg: var(--card-bg, #fff);--border: var(--widget-border, #e0e0e0);--text: var(--text-color, #1a1a1a);--muted: var(--text-secondary, #666);--title-color: var(--widget-title, #333);--accent: var(--accent-color, #0077cc);--hover: var(--hover-color, #f0f0f0);--radius: 8px;--space: 4px;--status-idle-bg: #e8f5e9;--status-idle-text: #256029;--status-idle-border: #a5d6a7;--status-running-bg: #e3f2fd;--status-running-text: #0d47a1;--status-running-border: #90caf9;--status-error-bg: #fdecea;--status-error-text: #c62828;--status-error-border: #ef9a9a;--status-warning-bg: #fff8e1;--status-warning-text: #e65100;--status-warning-border: #ffcc80;--status-offline-bg: #f5f5f5;--status-offline-text: #616161;--status-offline-border: #bdbdbd;background:var(--bg);block-size:100%;border-radius:16px;color:var(--text);display:flex;font-family:IBM Plex Sans,"Source Sans 3",Segoe UI,sans-serif;flex-direction:column;gap:0;inline-size:100%;min-block-size:0;min-inline-size:0;overflow:hidden;padding:12px;position:relative;box-sizing:border-box}._header_rf8sx_52{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-shrink:0}._title_rf8sx_60{font-size:14px;font-weight:600;color:var(--title-color);margin:0;letter-spacing:.01em}._componentCount_rf8sx_68{display:inline-flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);border-radius:10px;font-size:11px;font-weight:600;min-width:20px;height:18px;padding:0 6px}._grid_rf8sx_84{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));overflow-y:auto;flex:1;min-height:0;padding-right:2px}._componentCard_rf8sx_96{background:var(--panel-bg);border:1px solid var(--border);border-radius:var(--radius);display:flex;flex-direction:column;gap:6px;padding:10px 12px;position:relative;transition:box-shadow .15s ease;overflow:hidden}._componentCard_rf8sx_96:hover{box-shadow:0 2px 12px #00000014}._componentCard_rf8sx_96:before{content:"";position:absolute;inset-inline-start:0;inset-block:0;width:3px;border-radius:var(--radius) 0 0 var(--radius);background:var(--card-accent, var(--border));transition:background .2s ease}._componentCard_rf8sx_96[data-status=idle]:before{background:var(--status-idle-border)}._componentCard_rf8sx_96[data-status=running]:before{background:var(--status-running-border)}._componentCard_rf8sx_96[data-status=error]:before{background:var(--status-error-border)}._componentCard_rf8sx_96[data-status=warning]:before{background:var(--status-warning-border)}._cardHeader_rf8sx_143{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}._componentName_rf8sx_150{font-size:12px;font-weight:600;color:var(--text);line-height:1.3;word-break:break-word;flex:1;min-width:0}._statusBadge_rf8sx_162{display:inline-flex;align-items:center;gap:4px;border-radius:4px;font-size:10px;font-weight:700;letter-spacing:.04em;padding:2px 5px;white-space:nowrap;flex-shrink:0}._statusBadge_rf8sx_162:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}._statusIdle_rf8sx_184{background:var(--status-idle-bg);color:var(--status-idle-text)}._statusRunning_rf8sx_189{background:var(--status-running-bg);color:var(--status-running-text);animation:_runningPulse_rf8sx_1 2s ease-in-out infinite}._statusError_rf8sx_195{background:var(--status-error-bg);color:var(--status-error-text)}._statusWarning_rf8sx_200{background:var(--status-warning-bg);color:var(--status-warning-text)}._statusOffline_rf8sx_205{background:var(--status-offline-bg);color:var(--status-offline-text)}._statusUnknown_rf8sx_210{background:var(--status-offline-bg);color:var(--muted)}._cardBody_rf8sx_217{display:flex;flex-direction:column;gap:3px}._lastSeen_rf8sx_223{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}._hostLabel_rf8sx_229{font-size:10px;color:color-mix(in srgb,var(--muted) 70%,transparent);font-family:IBM Plex Mono,Fira Code,monospace}._cardFooter_rf8sx_237{display:flex;align-items:center;gap:6px;margin-top:2px}._pingBtn_rf8sx_246{display:inline-flex;align-items:center;gap:4px;background:transparent;border:1px solid var(--border);border-radius:4px;color:var(--muted);cursor:pointer;font-size:11px;padding:3px 6px;transition:background .12s ease,color .12s ease,border-color .12s ease;line-height:1}._pingBtn_rf8sx_246:hover:not(:disabled){background:var(--hover);color:var(--accent);border-color:var(--accent)}._pingBtn_rf8sx_246:disabled{cursor:default;opacity:.7}._pingBtn_rf8sx_246 svg{flex-shrink:0}._pinging_rf8sx_276 svg{animation:_pingRotate_rf8sx_1 1s linear infinite}._ttlChip_rf8sx_280{font-variant-numeric:tabular-nums;color:var(--accent);font-weight:600}._skeleton_rf8sx_288{animation:_skeletonPulse_rf8sx_1 1.2s ease-in-out infinite;background:linear-gradient(90deg,color-mix(in srgb,var(--hover) 85%,transparent) 25%,color-mix(in srgb,var(--surface) 100%,white),color-mix(in srgb,var(--hover) 85%,transparent) 75%);background-size:250% 100%;border-radius:6px}._skeletonTitle_rf8sx_300{height:18px;width:120px}._skeletonCard_rf8sx_305{min-height:90px}._skeletonLine_rf8sx_309{height:12px;width:100%;margin-bottom:6px}._skeletonLineShort_rf8sx_315{height:10px;width:60%}._errorState_rf8sx_322{display:flex;align-items:center;justify-content:center;flex:1;padding:24px;color:var(--status-error-text);font-size:13px;text-align:center}._emptyState_rf8sx_333{display:flex;align-items:center;justify-content:center;flex:1;color:var(--muted);font-size:13px}@keyframes _skeletonPulse_rf8sx_1{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes _runningPulse_rf8sx_1{0%,to{opacity:1}50%{opacity:.7}}@keyframes _pingRotate_rf8sx_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){._skeleton_rf8sx_288,._statusRunning_rf8sx_189,._pinging_rf8sx_276 svg{animation:none}}')),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- var ScheduleStateWidget=(function(tt,he){"use strict";function ai(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function ci(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rt=function(e,t){return rt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},rt(e,t)};function nt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");rt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var E=function(){return E=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},E.apply(this,arguments)};function Ce(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Q(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var it="Invariant Violation",er=Object.setPrototypeOf,ui=er===void 0?function(e,t){return e.__proto__=t,e}:er,tr=(function(e){nt(t,e);function t(r){r===void 0&&(r=it);var n=e.call(this,typeof r=="number"?it+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=it,ui(n,t.prototype),n}return t})(Error);function G(e,t){if(!e)throw new tr(t)}var rr=["debug","log","warn","error","silent"],li=rr.indexOf("log");function ke(e){return function(){if(rr.indexOf(e)>=li){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=ke("debug"),e.log=ke("log"),e.warn=ke("warn"),e.error=ke("error")})(G||(G={}));var nr="3.14.1";function U(e){try{return e()}catch{}}const De=U(function(){return globalThis})||U(function(){return window})||U(function(){return self})||U(function(){return global})||U(function(){return U.constructor("return this")()});var ir=new Map;function fi(e){var t=ir.get(e)||1;return ir.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function hi(e,t){var r=fi("stringifyForDisplay");return JSON.stringify(e,function(n,i){return i===void 0?r:i},t).split(JSON.stringify(r)).join("<undefined>")}function Re(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(typeof t=="number"){var i=t;t=ot(i),t||(t=st(i,r),r=[])}e.apply(void 0,[t].concat(r))}}var T=Object.assign(function(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];t||G(t,ot(r,n)||st(r,n))},{debug:Re(G.debug),log:Re(G.log),warn:Re(G.warn),error:Re(G.error)});function or(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new tr(ot(e,t)||st(e,t))}var sr=Symbol.for("ApolloErrorMessageHandler_"+nr);function ar(e){if(typeof e=="string")return e;try{return hi(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function ot(e,t){if(t===void 0&&(t=[]),!!e)return De[sr]&&De[sr](e,t.map(ar))}function st(e,t){if(t===void 0&&(t=[]),!!e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:nr,message:e,args:t.map(ar)})))}function at(e,t){if(!!!e)throw new Error(t)}function di(e){return typeof e=="object"&&e!==null}function pi(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const yi=/\r\n|[\n\r]/g;function ct(e,t){let r=0,n=1;for(const i of e.body.matchAll(yi)){if(typeof i.index=="number"||pi(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function mi(e){return cr(e.source,ct(e.source,e.start))}function cr(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=t.line===1?r:0,c=t.column+a,u=`${e.name}:${s}:${c}
3
- `,h=n.split(/\r\n|[\n\r]/g),d=h[i];if(d.length>120){const p=Math.floor(c/80),m=c%80,y=[];for(let O=0;O<d.length;O+=80)y.push(d.slice(O,O+80));return u+ur([[`${s} |`,y[0]],...y.slice(1,p+1).map(O=>["|",O]),["|","^".padStart(m)],["|",y[p+1]]])}return u+ur([[`${s-1} |`,h[i-1]],[`${s} |`,d],["|","^".padStart(c)],[`${s+1} |`,h[i+1]]])}function ur(e){const t=e.filter(([n,i])=>i!==void 0),r=Math.max(...t.map(([n])=>n.length));return t.map(([n,i])=>n.padStart(r)+(i?" "+i:"")).join(`
4
- `)}function vi(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class ut extends Error{constructor(t,...r){var n,i,o;const{nodes:s,source:a,positions:c,path:u,originalError:h,extensions:d}=vi(r);super(t),this.name="GraphQLError",this.path=u!=null?u:void 0,this.originalError=h!=null?h:void 0,this.nodes=lr(Array.isArray(s)?s:s?[s]:void 0);const p=lr((n=this.nodes)===null||n===void 0?void 0:n.map(y=>y.loc).filter(y=>y!=null));this.source=a!=null?a:p==null||(i=p[0])===null||i===void 0?void 0:i.source,this.positions=c!=null?c:p==null?void 0:p.map(y=>y.start),this.locations=c&&a?c.map(y=>ct(a,y)):p==null?void 0:p.map(y=>ct(y.source,y.start));const m=di(h==null?void 0:h.extensions)?h==null?void 0:h.extensions:void 0;this.extensions=(o=d!=null?d:m)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),h!=null&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,ut):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(t+=`
1
+ (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('._container_2hjmx_3{--bg: var(--bg-color, #fff);--surface: var(--widget-bg, #fafafa);--panel-bg: var(--card-bg, #fff);--border: var(--widget-border, #e0e0e0);--text: var(--text-color, #1a1a1a);--muted: var(--text-secondary, #666);--title-color: var(--widget-title, #333);--accent: var(--accent-color, #0077cc);--hover: var(--hover-color, #f0f0f0);--radius: 8px;--c-idle: #2e7d32;--c-running: #1565c0;--c-error: #c62828;--c-warning: #e65100;--c-init: #6d4fc2;--c-waiting: #b26a00;--c-offline: #757575;--c-stale: #8d6e63;--c-unknown: #757575;background:var(--bg);block-size:100%;border-radius:16px;color:var(--text);container-type:inline-size;display:flex;font-family:IBM Plex Sans,"Source Sans 3",Segoe UI,sans-serif;flex-direction:column;gap:0;inline-size:100%;min-block-size:0;min-inline-size:0;overflow:hidden;padding:12px;position:relative;box-sizing:border-box}@media(prefers-color-scheme:dark){._container_2hjmx_3{--c-idle: #81c784;--c-running: #64b5f6;--c-error: #ef9a9a;--c-warning: #ffb74d;--c-init: #b39ddb;--c-waiting: #ffcc80;--c-offline: #bdbdbd;--c-stale: #bcaaa4;--c-unknown: #bdbdbd}}._header_2hjmx_61{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-shrink:0;flex-wrap:wrap}._title_2hjmx_70{font-size:14px;font-weight:600;color:var(--title-color);margin:0;letter-spacing:.01em}._componentCount_2hjmx_78{display:inline-flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);border-radius:10px;font-size:11px;font-weight:600;min-width:20px;height:18px;padding:0 6px}._summary_2hjmx_94{display:flex;align-items:center;gap:4px;margin-inline-start:auto;flex-wrap:wrap}._summaryChip_2hjmx_102{display:inline-flex;align-items:center;gap:4px;border-radius:9px;font-size:10px;font-weight:600;font-variant-numeric:tabular-nums;height:18px;padding:0 7px;color:var(--status-color, var(--muted));background:color-mix(in srgb,var(--status-color, var(--muted)) 12%,transparent)}._summaryDot_2hjmx_116{width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}._grid_2hjmx_126{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));grid-auto-rows:min-content;align-content:start;overflow-y:auto;flex:1;min-height:0;padding-right:2px}@container (max-width: 359px){._header_2hjmx_61{margin-bottom:8px}._grid_2hjmx_126{grid-template-columns:1fr;gap:6px}._componentCard_2hjmx_148{padding:8px 10px}}@container (min-width: 720px){._grid_2hjmx_126{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}}._container_2hjmx_3 [data-status=idle]{--status-color: var(--c-idle)}._container_2hjmx_3 [data-status=running]{--status-color: var(--c-running)}._container_2hjmx_3 [data-status=error]{--status-color: var(--c-error)}._container_2hjmx_3 [data-status=warning]{--status-color: var(--c-warning)}._container_2hjmx_3 [data-status=init]{--status-color: var(--c-init)}._container_2hjmx_3 [data-status=waiting]{--status-color: var(--c-waiting)}._container_2hjmx_3 [data-status=offline]{--status-color: var(--c-offline)}._container_2hjmx_3 [data-status=stale]{--status-color: var(--c-stale)}._container_2hjmx_3 [data-status=unknown]{--status-color: var(--c-unknown)}._componentCard_2hjmx_148{background:var(--panel-bg);border:1px solid var(--border);border-radius:var(--radius);display:flex;flex-direction:column;gap:6px;padding:10px 12px;position:relative;transition:box-shadow .15s ease;overflow:hidden}._componentCard_2hjmx_148:hover{box-shadow:0 2px 12px #00000014}._infoBtn_2hjmx_220{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:4px;color:color-mix(in srgb,var(--muted) 75%,transparent);cursor:pointer;padding:3px;line-height:1;transition:color .12s ease,background .12s ease}._infoBtn_2hjmx_220:hover{background:var(--hover);color:var(--accent)}._infoBtn_2hjmx_220:focus-visible{outline:2px solid var(--accent);outline-offset:1px}._componentCard_2hjmx_148[data-status=stale],._componentCard_2hjmx_148[data-status=offline]{background:color-mix(in srgb,var(--panel-bg) 60%,var(--surface))}._componentCard_2hjmx_148[data-status=stale] ._componentName_2hjmx_250,._componentCard_2hjmx_148[data-status=offline] ._componentName_2hjmx_250{color:var(--muted)}._componentCard_2hjmx_148:before{content:"";position:absolute;inset-inline-start:0;inset-block:0;width:3px;border-radius:var(--radius) 0 0 var(--radius);background:var(--status-color, var(--border));opacity:.75;transition:background .2s ease}._cardHeader_2hjmx_270{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}._componentName_2hjmx_250{font-size:12px;font-weight:600;color:var(--text);line-height:1.3;word-break:break-word;flex:1;min-width:0}._statusBadge_2hjmx_289{display:inline-flex;align-items:center;gap:4px;border-radius:4px;font-size:10px;font-weight:700;letter-spacing:.04em;padding:2px 5px;white-space:nowrap;flex-shrink:0;max-width:45%;overflow:hidden;text-overflow:ellipsis;color:var(--status-color, var(--muted));background:color-mix(in srgb,var(--status-color, var(--muted)) 13%,transparent)}._statusBadge_2hjmx_289:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}._statusBadge_2hjmx_289[data-status=running]{animation:_runningPulse_2hjmx_1 2s ease-in-out infinite}._cardBody_2hjmx_322{display:flex;align-items:baseline;column-gap:8px;row-gap:3px;flex-wrap:wrap}._lastSeen_2hjmx_330{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}._lastSeen_2hjmx_330[data-stale]{color:var(--c-warning);font-weight:600}._hostLabel_2hjmx_341{font-size:10px;color:color-mix(in srgb,var(--muted) 70%,transparent);font-family:IBM Plex Mono,Fira Code,monospace}._cardFooter_2hjmx_349{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:auto;padding-top:2px}._pingBtn_2hjmx_362{display:inline-flex;align-items:center;gap:4px;background:transparent;border:1px solid var(--border);border-radius:4px;color:var(--muted);cursor:pointer;font-size:11px;padding:3px 6px;transition:background .12s ease,color .12s ease,border-color .12s ease;line-height:1}._pingBtn_2hjmx_362:hover:not(:disabled){background:var(--hover);color:var(--accent);border-color:var(--accent)}._pingBtn_2hjmx_362:focus-visible{outline:2px solid var(--accent);outline-offset:1px}._pingBtn_2hjmx_362:disabled{cursor:default;opacity:.7}._pingBtn_2hjmx_362 svg{flex-shrink:0}._pinging_2hjmx_397 svg{animation:_pingRotate_2hjmx_1 1s linear infinite}._ttlChip_2hjmx_401{font-variant-numeric:tabular-nums;color:var(--accent);font-weight:600}._pingFailChip_2hjmx_407{color:var(--c-error);font-weight:600}._skeleton_2hjmx_414{animation:_skeletonPulse_2hjmx_1 1.2s ease-in-out infinite;background:linear-gradient(90deg,color-mix(in srgb,var(--hover) 85%,transparent) 25%,color-mix(in srgb,var(--surface) 100%,white),color-mix(in srgb,var(--hover) 85%,transparent) 75%);background-size:250% 100%;border-radius:6px}._skeletonTitle_2hjmx_426{height:18px;width:120px}._skeletonCard_2hjmx_431{min-height:90px}._skeletonLine_2hjmx_435{height:12px;width:100%;margin-bottom:6px}._skeletonLineShort_2hjmx_441{height:10px;width:60%}._errorState_2hjmx_448{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;flex:1;padding:24px;color:var(--c-error);font-size:13px;text-align:center}._errorMessage_2hjmx_461{max-width:40ch;line-height:1.4}._retryBtn_2hjmx_466{background:transparent;border:1px solid var(--border);border-radius:6px;color:var(--text);cursor:pointer;font-size:12px;font-weight:600;padding:5px 14px;transition:background .12s ease,border-color .12s ease}._retryBtn_2hjmx_466:hover{background:var(--hover);border-color:var(--accent)}._emptyState_2hjmx_483{display:flex;align-items:center;justify-content:center;flex:1;color:var(--muted);font-size:13px}@keyframes _skeletonPulse_2hjmx_1{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes _runningPulse_2hjmx_1{0%,to{opacity:1}50%{opacity:.7}}@keyframes _pingRotate_2hjmx_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){._skeleton_2hjmx_414,._statusBadge_2hjmx_289[data-status=running],._pinging_2hjmx_397 svg{animation:none;transition:none}}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
+ var ScheduleStateWidget=(function(Ye,C,Ln){"use strict";function Fn(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}function Mn(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const Un=Fn(Ln);function Bn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var He=function(t,e){return He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},He(t,e)};function We(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");He(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var b=function(){return b=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},b.apply(this,arguments)};function Se(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function Z(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var $e="Invariant Violation",Ft=Object.setPrototypeOf,jn=Ft===void 0?function(t,e){return t.__proto__=e,t}:Ft,Mt=(function(t){We(e,t);function e(r){r===void 0&&(r=$e);var n=t.call(this,typeof r=="number"?$e+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=$e,jn(n,e.prototype),n}return e})(Error);function J(t,e){if(!t)throw new Mt(e)}var Ut=["debug","log","warn","error","silent"],Vn=Ut.indexOf("log");function Ae(t){return function(){if(Ut.indexOf(t)>=Vn){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=Ae("debug"),t.log=Ae("log"),t.warn=Ae("warn"),t.error=Ae("error")})(J||(J={}));var Bt="3.14.1";function z(t){try{return t()}catch{}}const Ie=z(function(){return globalThis})||z(function(){return window})||z(function(){return self})||z(function(){return global})||z(function(){return z.constructor("return this")()});var jt=new Map;function qn(t){var e=jt.get(t)||1;return jt.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function Qn(t,e){var r=qn("stringifyForDisplay");return JSON.stringify(t,function(n,i){return i===void 0?r:i},e).split(JSON.stringify(r)).join("<undefined>")}function Ce(t){return function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(typeof e=="number"){var i=e;e=Xe(i),e||(e=Ke(i,r),r=[])}t.apply(void 0,[e].concat(r))}}var N=Object.assign(function(e,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];e||J(e,Xe(r,n)||Ke(r,n))},{debug:Ce(J.debug),log:Ce(J.log),warn:Ce(J.warn),error:Ce(J.error)});function Vt(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return new Mt(Xe(t,e)||Ke(t,e))}var qt=Symbol.for("ApolloErrorMessageHandler_"+Bt);function Qt(t){if(typeof t=="string")return t;try{return Qn(t,2).slice(0,1e3)}catch{return"<non-serializable>"}}function Xe(t,e){if(e===void 0&&(e=[]),!!t)return Ie[qt]&&Ie[qt](t,e.map(Qt))}function Ke(t,e){if(e===void 0&&(e=[]),!!t)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Bt,message:t,args:e.map(Qt)})))}function Ze(t,e){if(!!!t)throw new Error(e)}function zn(t){return typeof t=="object"&&t!==null}function Gn(t,e){if(!!!t)throw new Error("Unexpected invariant triggered.")}const Yn=/\r\n|[\n\r]/g;function Je(t,e){let r=0,n=1;for(const i of t.body.matchAll(Yn)){if(typeof i.index=="number"||Gn(!1),i.index>=e)break;r=i.index+i[0].length,n+=1}return{line:n,column:e+1-r}}function Hn(t){return zt(t.source,Je(t.source,t.start))}function zt(t,e){const r=t.locationOffset.column-1,n="".padStart(r)+t.body,i=e.line-1,o=t.locationOffset.line-1,a=e.line+o,s=e.line===1?r:0,c=e.column+s,l=`${t.name}:${a}:${c}
3
+ `,f=n.split(/\r\n|[\n\r]/g),h=f[i];if(h.length>120){const p=Math.floor(c/80),y=c%80,m=[];for(let T=0;T<h.length;T+=80)m.push(h.slice(T,T+80));return l+Gt([[`${a} |`,m[0]],...m.slice(1,p+1).map(T=>["|",T]),["|","^".padStart(y)],["|",m[p+1]]])}return l+Gt([[`${a-1} |`,f[i-1]],[`${a} |`,h],["|","^".padStart(c)],[`${a+1} |`,f[i+1]]])}function Gt(t){const e=t.filter(([n,i])=>i!==void 0),r=Math.max(...e.map(([n])=>n.length));return e.map(([n,i])=>n.padStart(r)+(i?" "+i:"")).join(`
4
+ `)}function Wn(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class et extends Error{constructor(e,...r){var n,i,o;const{nodes:a,source:s,positions:c,path:l,originalError:f,extensions:h}=Wn(r);super(e),this.name="GraphQLError",this.path=l!=null?l:void 0,this.originalError=f!=null?f:void 0,this.nodes=Yt(Array.isArray(a)?a:a?[a]:void 0);const p=Yt((n=this.nodes)===null||n===void 0?void 0:n.map(m=>m.loc).filter(m=>m!=null));this.source=s!=null?s:p==null||(i=p[0])===null||i===void 0?void 0:i.source,this.positions=c!=null?c:p==null?void 0:p.map(m=>m.start),this.locations=c&&s?c.map(m=>Je(s,m)):p==null?void 0:p.map(m=>Je(m.source,m.start));const y=zn(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(o=h!=null?h:y)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),f!=null&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,et):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(e+=`
5
5
 
6
- `+mi(r.loc));else if(this.source&&this.locations)for(const r of this.locations)t+=`
6
+ `+Hn(r.loc));else if(this.source&&this.locations)for(const r of this.locations)e+=`
7
7
 
8
- `+cr(this.source,r);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function lr(e){return e===void 0||e.length===0?void 0:e}function w(e,t,r){return new ut(`Syntax Error: ${r}`,{source:e,positions:[t]})}class gi{constructor(t,r,n){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class fr{constructor(t,r,n,i,o,s){this.kind=t,this.start=r,this.end=n,this.line=i,this.column=o,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Ei={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};new Set(Object.keys(Ei));var re;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(re||(re={}));var lt;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",e.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"})(lt||(lt={}));var v;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.DIRECTIVE_EXTENSION="DirectiveExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(v||(v={}));function bi(e){return e===9||e===32}function de(e){return e>=48&&e<=57}function hr(e){return e>=97&&e<=122||e>=65&&e<=90}function dr(e){return hr(e)||e===95}function _i(e){return hr(e)||de(e)||e===95}function xi(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let s=0;s<e.length;++s){var o;const a=e[s],c=Ti(a);c!==a.length&&(n=(o=n)!==null&&o!==void 0?o:s,i=s,s!==0&&c<r&&(r=c))}return e.map((s,a)=>a===0?s:s.slice(r)).slice((t=n)!==null&&t!==void 0?t:0,i+1)}function Ti(e){let t=0;for(;t<e.length&&bi(e.charCodeAt(t));)++t;return t}var f;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(f||(f={}));class Oi{constructor(t){const r=new fr(f.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==f.EOF)do if(t.next)t=t.next;else{const r=Ni(this,t.end);t.next=r,r.prev=t,t=r}while(t.kind===f.COMMENT);return t}}function Si(e){return e===f.BANG||e===f.DOLLAR||e===f.AMP||e===f.PAREN_L||e===f.PAREN_R||e===f.DOT||e===f.SPREAD||e===f.COLON||e===f.EQUALS||e===f.AT||e===f.BRACKET_L||e===f.BRACKET_R||e===f.BRACE_L||e===f.PIPE||e===f.BRACE_R}function ne(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Pe(e,t){return pr(e.charCodeAt(t))&&yr(e.charCodeAt(t+1))}function pr(e){return e>=55296&&e<=56319}function yr(e){return e>=56320&&e<=57343}function Y(e,t){const r=e.source.body.codePointAt(t);if(r===void 0)return f.EOF;if(r>=32&&r<=126){const n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function I(e,t,r,n,i){const o=e.line,s=1+r-e.lineStart;return new fr(t,r,n,o,s,i)}function Ni(e,t){const r=e.source.body,n=r.length;let i=t;for(;i<n;){const o=r.charCodeAt(i);switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:r.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return Ii(e,i);case 33:return I(e,f.BANG,i,i+1);case 36:return I(e,f.DOLLAR,i,i+1);case 38:return I(e,f.AMP,i,i+1);case 40:return I(e,f.PAREN_L,i,i+1);case 41:return I(e,f.PAREN_R,i,i+1);case 46:if(r.charCodeAt(i+1)===46&&r.charCodeAt(i+2)===46)return I(e,f.SPREAD,i,i+3);break;case 58:return I(e,f.COLON,i,i+1);case 61:return I(e,f.EQUALS,i,i+1);case 64:return I(e,f.AT,i,i+1);case 91:return I(e,f.BRACKET_L,i,i+1);case 93:return I(e,f.BRACKET_R,i,i+1);case 123:return I(e,f.BRACE_L,i,i+1);case 124:return I(e,f.PIPE,i,i+1);case 125:return I(e,f.BRACE_R,i,i+1);case 34:return r.charCodeAt(i+1)===34&&r.charCodeAt(i+2)===34?Ri(e,i):wi(e,i)}if(de(o)||o===45)return Ai(e,i,o);if(dr(o))return Pi(e,i);throw w(e.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:ne(o)||Pe(r,i)?`Unexpected character: ${Y(e,i)}.`:`Invalid character: ${Y(e,i)}.`)}return I(e,f.EOF,n,n)}function Ii(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){const o=r.charCodeAt(i);if(o===10||o===13)break;if(ne(o))++i;else if(Pe(r,i))i+=2;else break}return I(e,f.COMMENT,t,i,r.slice(t+1,i))}function Ai(e,t,r){const n=e.source.body;let i=t,o=r,s=!1;if(o===45&&(o=n.charCodeAt(++i)),o===48){if(o=n.charCodeAt(++i),de(o))throw w(e.source,i,`Invalid number, unexpected digit after 0: ${Y(e,i)}.`)}else i=ft(e,i,o),o=n.charCodeAt(i);if(o===46&&(s=!0,o=n.charCodeAt(++i),i=ft(e,i,o),o=n.charCodeAt(i)),(o===69||o===101)&&(s=!0,o=n.charCodeAt(++i),(o===43||o===45)&&(o=n.charCodeAt(++i)),i=ft(e,i,o),o=n.charCodeAt(i)),o===46||dr(o))throw w(e.source,i,`Invalid number, expected digit but got: ${Y(e,i)}.`);return I(e,s?f.FLOAT:f.INT,t,i,n.slice(t,i))}function ft(e,t,r){if(!de(r))throw w(e.source,t,`Invalid number, expected digit but got: ${Y(e,t)}.`);const n=e.source.body;let i=t+1;for(;de(n.charCodeAt(i));)++i;return i}function wi(e,t){const r=e.source.body,n=r.length;let i=t+1,o=i,s="";for(;i<n;){const a=r.charCodeAt(i);if(a===34)return s+=r.slice(o,i),I(e,f.STRING,t,i+1,s);if(a===92){s+=r.slice(o,i);const c=r.charCodeAt(i+1)===117?r.charCodeAt(i+2)===123?Ci(e,i):ki(e,i):Di(e,i);s+=c.value,i+=c.size,o=i;continue}if(a===10||a===13)break;if(ne(a))++i;else if(Pe(r,i))i+=2;else throw w(e.source,i,`Invalid character within String: ${Y(e,i)}.`)}throw w(e.source,i,"Unterminated string.")}function Ci(e,t){const r=e.source.body;let n=0,i=3;for(;i<12;){const o=r.charCodeAt(t+i++);if(o===125){if(i<5||!ne(n))break;return{value:String.fromCodePoint(n),size:i}}if(n=n<<4|pe(o),n<0)break}throw w(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}function ki(e,t){const r=e.source.body,n=mr(r,t+2);if(ne(n))return{value:String.fromCodePoint(n),size:6};if(pr(n)&&r.charCodeAt(t+6)===92&&r.charCodeAt(t+7)===117){const i=mr(r,t+8);if(yr(i))return{value:String.fromCodePoint(n,i),size:12}}throw w(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function mr(e,t){return pe(e.charCodeAt(t))<<12|pe(e.charCodeAt(t+1))<<8|pe(e.charCodeAt(t+2))<<4|pe(e.charCodeAt(t+3))}function pe(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Di(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
9
- `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw w(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function Ri(e,t){const r=e.source.body,n=r.length;let i=e.lineStart,o=t+3,s=o,a="";const c=[];for(;o<n;){const u=r.charCodeAt(o);if(u===34&&r.charCodeAt(o+1)===34&&r.charCodeAt(o+2)===34){a+=r.slice(s,o),c.push(a);const h=I(e,f.BLOCK_STRING,t,o+3,xi(c).join(`
10
- `));return e.line+=c.length-1,e.lineStart=i,h}if(u===92&&r.charCodeAt(o+1)===34&&r.charCodeAt(o+2)===34&&r.charCodeAt(o+3)===34){a+=r.slice(s,o),s=o+1,o+=4;continue}if(u===10||u===13){a+=r.slice(s,o),c.push(a),u===13&&r.charCodeAt(o+1)===10?o+=2:++o,a="",s=o,i=o;continue}if(ne(u))++o;else if(Pe(r,o))o+=2;else throw w(e.source,o,`Invalid character within String: ${Y(e,o)}.`)}throw w(e.source,o,"Unterminated string.")}function Pi(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){const o=r.charCodeAt(i);if(_i(o))++i;else break}return I(e,f.NAME,t,i,r.slice(t,i))}const Fi=10,vr=2;function gr(e){return Fe(e,[])}function Fe(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Li(e,t);default:return String(e)}}function Li(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(Mi(e)){const n=e.toJSON();if(n!==e)return typeof n=="string"?n:Fe(n,r)}else if(Array.isArray(e))return Bi(e,r);return Ui(e,r)}function Mi(e){return typeof e.toJSON=="function"}function Ui(e,t){const r=Object.entries(e);return r.length===0?"{}":t.length>vr?"["+ji(e)+"]":"{ "+r.map(([i,o])=>i+": "+Fe(o,t)).join(", ")+" }"}function Bi(e,t){if(e.length===0)return"[]";if(t.length>vr)return"[Array]";const r=Math.min(Fi,e.length),n=e.length-r,i=[];for(let o=0;o<r;++o)i.push(Fe(e[o],t));return n===1?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function ji(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}const Vi=globalThis.process&&!0?function(t,r){return t instanceof r}:function(t,r){if(t instanceof r)return!0;if(typeof t=="object"&&t!==null){var n;const i=r.prototype[Symbol.toStringTag],o=Symbol.toStringTag in t?t[Symbol.toStringTag]:(n=t.constructor)===null||n===void 0?void 0:n.name;if(i===o){const s=gr(t);throw new Error(`Cannot use ${i} "${s}" from another module or realm.
8
+ `+zt(this.source,r);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function Yt(t){return t===void 0||t.length===0?void 0:t}function D(t,e,r){return new et(`Syntax Error: ${r}`,{source:t,positions:[e]})}class $n{constructor(e,r,n){this.start=e.start,this.end=r.end,this.startToken=e,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Ht{constructor(e,r,n,i,o,a){this.kind=e,this.start=r,this.end=n,this.line=i,this.column=o,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Xn={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};new Set(Object.keys(Xn));var ce;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(ce||(ce={}));var tt;(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",t.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"})(tt||(tt={}));var g;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.DIRECTIVE_EXTENSION="DirectiveExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",t.TYPE_COORDINATE="TypeCoordinate",t.MEMBER_COORDINATE="MemberCoordinate",t.ARGUMENT_COORDINATE="ArgumentCoordinate",t.DIRECTIVE_COORDINATE="DirectiveCoordinate",t.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(g||(g={}));function Kn(t){return t===9||t===32}function ye(t){return t>=48&&t<=57}function Wt(t){return t>=97&&t<=122||t>=65&&t<=90}function $t(t){return Wt(t)||t===95}function Zn(t){return Wt(t)||ye(t)||t===95}function Jn(t){var e;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let a=0;a<t.length;++a){var o;const s=t[a],c=ei(s);c!==s.length&&(n=(o=n)!==null&&o!==void 0?o:a,i=a,a!==0&&c<r&&(r=c))}return t.map((a,s)=>s===0?a:a.slice(r)).slice((e=n)!==null&&e!==void 0?e:0,i+1)}function ei(t){let e=0;for(;e<t.length&&Kn(t.charCodeAt(e));)++e;return e}var d;(function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.DOT=".",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(d||(d={}));class ti{constructor(e){const r=new Ht(d.SOF,0,0,0,0);this.source=e,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==d.EOF)do if(e.next)e=e.next;else{const r=ni(this,e.end);e.next=r,r.prev=e,e=r}while(e.kind===d.COMMENT);return e}}function ri(t){return t===d.BANG||t===d.DOLLAR||t===d.AMP||t===d.PAREN_L||t===d.PAREN_R||t===d.DOT||t===d.SPREAD||t===d.COLON||t===d.EQUALS||t===d.AT||t===d.BRACKET_L||t===d.BRACKET_R||t===d.BRACE_L||t===d.PIPE||t===d.BRACE_R}function le(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function ke(t,e){return Xt(t.charCodeAt(e))&&Kt(t.charCodeAt(e+1))}function Xt(t){return t>=55296&&t<=56319}function Kt(t){return t>=56320&&t<=57343}function ee(t,e){const r=t.source.body.codePointAt(e);if(r===void 0)return d.EOF;if(r>=32&&r<=126){const n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function k(t,e,r,n,i){const o=t.line,a=1+r-t.lineStart;return new Ht(e,r,n,o,a,i)}function ni(t,e){const r=t.source.body,n=r.length;let i=e;for(;i<n;){const o=r.charCodeAt(i);switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++t.line,t.lineStart=i;continue;case 13:r.charCodeAt(i+1)===10?i+=2:++i,++t.line,t.lineStart=i;continue;case 35:return ii(t,i);case 33:return k(t,d.BANG,i,i+1);case 36:return k(t,d.DOLLAR,i,i+1);case 38:return k(t,d.AMP,i,i+1);case 40:return k(t,d.PAREN_L,i,i+1);case 41:return k(t,d.PAREN_R,i,i+1);case 46:if(r.charCodeAt(i+1)===46&&r.charCodeAt(i+2)===46)return k(t,d.SPREAD,i,i+3);break;case 58:return k(t,d.COLON,i,i+1);case 61:return k(t,d.EQUALS,i,i+1);case 64:return k(t,d.AT,i,i+1);case 91:return k(t,d.BRACKET_L,i,i+1);case 93:return k(t,d.BRACKET_R,i,i+1);case 123:return k(t,d.BRACE_L,i,i+1);case 124:return k(t,d.PIPE,i,i+1);case 125:return k(t,d.BRACE_R,i,i+1);case 34:return r.charCodeAt(i+1)===34&&r.charCodeAt(i+2)===34?ui(t,i):ai(t,i)}if(ye(o)||o===45)return oi(t,i,o);if($t(o))return fi(t,i);throw D(t.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:le(o)||ke(r,i)?`Unexpected character: ${ee(t,i)}.`:`Invalid character: ${ee(t,i)}.`)}return k(t,d.EOF,n,n)}function ii(t,e){const r=t.source.body,n=r.length;let i=e+1;for(;i<n;){const o=r.charCodeAt(i);if(o===10||o===13)break;if(le(o))++i;else if(ke(r,i))i+=2;else break}return k(t,d.COMMENT,e,i,r.slice(e+1,i))}function oi(t,e,r){const n=t.source.body;let i=e,o=r,a=!1;if(o===45&&(o=n.charCodeAt(++i)),o===48){if(o=n.charCodeAt(++i),ye(o))throw D(t.source,i,`Invalid number, unexpected digit after 0: ${ee(t,i)}.`)}else i=rt(t,i,o),o=n.charCodeAt(i);if(o===46&&(a=!0,o=n.charCodeAt(++i),i=rt(t,i,o),o=n.charCodeAt(i)),(o===69||o===101)&&(a=!0,o=n.charCodeAt(++i),(o===43||o===45)&&(o=n.charCodeAt(++i)),i=rt(t,i,o),o=n.charCodeAt(i)),o===46||$t(o))throw D(t.source,i,`Invalid number, expected digit but got: ${ee(t,i)}.`);return k(t,a?d.FLOAT:d.INT,e,i,n.slice(e,i))}function rt(t,e,r){if(!ye(r))throw D(t.source,e,`Invalid number, expected digit but got: ${ee(t,e)}.`);const n=t.source.body;let i=e+1;for(;ye(n.charCodeAt(i));)++i;return i}function ai(t,e){const r=t.source.body,n=r.length;let i=e+1,o=i,a="";for(;i<n;){const s=r.charCodeAt(i);if(s===34)return a+=r.slice(o,i),k(t,d.STRING,e,i+1,a);if(s===92){a+=r.slice(o,i);const c=r.charCodeAt(i+1)===117?r.charCodeAt(i+2)===123?si(t,i):ci(t,i):li(t,i);a+=c.value,i+=c.size,o=i;continue}if(s===10||s===13)break;if(le(s))++i;else if(ke(r,i))i+=2;else throw D(t.source,i,`Invalid character within String: ${ee(t,i)}.`)}throw D(t.source,i,"Unterminated string.")}function si(t,e){const r=t.source.body;let n=0,i=3;for(;i<12;){const o=r.charCodeAt(e+i++);if(o===125){if(i<5||!le(n))break;return{value:String.fromCodePoint(n),size:i}}if(n=n<<4|ve(o),n<0)break}throw D(t.source,e,`Invalid Unicode escape sequence: "${r.slice(e,e+i)}".`)}function ci(t,e){const r=t.source.body,n=Zt(r,e+2);if(le(n))return{value:String.fromCodePoint(n),size:6};if(Xt(n)&&r.charCodeAt(e+6)===92&&r.charCodeAt(e+7)===117){const i=Zt(r,e+8);if(Kt(i))return{value:String.fromCodePoint(n,i),size:12}}throw D(t.source,e,`Invalid Unicode escape sequence: "${r.slice(e,e+6)}".`)}function Zt(t,e){return ve(t.charCodeAt(e))<<12|ve(t.charCodeAt(e+1))<<8|ve(t.charCodeAt(e+2))<<4|ve(t.charCodeAt(e+3))}function ve(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function li(t,e){const r=t.source.body;switch(r.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
9
+ `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw D(t.source,e,`Invalid character escape sequence: "${r.slice(e,e+2)}".`)}function ui(t,e){const r=t.source.body,n=r.length;let i=t.lineStart,o=e+3,a=o,s="";const c=[];for(;o<n;){const l=r.charCodeAt(o);if(l===34&&r.charCodeAt(o+1)===34&&r.charCodeAt(o+2)===34){s+=r.slice(a,o),c.push(s);const f=k(t,d.BLOCK_STRING,e,o+3,Jn(c).join(`
10
+ `));return t.line+=c.length-1,t.lineStart=i,f}if(l===92&&r.charCodeAt(o+1)===34&&r.charCodeAt(o+2)===34&&r.charCodeAt(o+3)===34){s+=r.slice(a,o),a=o+1,o+=4;continue}if(l===10||l===13){s+=r.slice(a,o),c.push(s),l===13&&r.charCodeAt(o+1)===10?o+=2:++o,s="",a=o,i=o;continue}if(le(l))++o;else if(ke(r,o))o+=2;else throw D(t.source,o,`Invalid character within String: ${ee(t,o)}.`)}throw D(t.source,o,"Unterminated string.")}function fi(t,e){const r=t.source.body,n=r.length;let i=e+1;for(;i<n;){const o=r.charCodeAt(i);if(Zn(o))++i;else break}return k(t,d.NAME,e,i,r.slice(e,i))}const hi=10,Jt=2;function er(t){return De(t,[])}function De(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return di(t,e);default:return String(t)}}function di(t,e){if(t===null)return"null";if(e.includes(t))return"[Circular]";const r=[...e,t];if(pi(t)){const n=t.toJSON();if(n!==t)return typeof n=="string"?n:De(n,r)}else if(Array.isArray(t))return yi(t,r);return mi(t,r)}function pi(t){return typeof t.toJSON=="function"}function mi(t,e){const r=Object.entries(t);return r.length===0?"{}":e.length>Jt?"["+vi(t)+"]":"{ "+r.map(([i,o])=>i+": "+De(o,e)).join(", ")+" }"}function yi(t,e){if(t.length===0)return"[]";if(e.length>Jt)return"[Array]";const r=Math.min(hi,t.length),n=t.length-r,i=[];for(let o=0;o<r;++o)i.push(De(t[o],e));return n===1?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function vi(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const r=t.constructor.name;if(typeof r=="string"&&r!=="")return r}return e}const gi=globalThis.process&&!0?function(e,r){return e instanceof r}:function(e,r){if(e instanceof r)return!0;if(typeof e=="object"&&e!==null){var n;const i=r.prototype[Symbol.toStringTag],o=Symbol.toStringTag in e?e[Symbol.toStringTag]:(n=e.constructor)===null||n===void 0?void 0:n.name;if(i===o){const a=er(e);throw new Error(`Cannot use ${i} "${a}" from another module or realm.
11
11
 
12
12
  Ensure that there is only one instance of "graphql" in the node_modules
13
13
  directory. If different versions of "graphql" are the dependencies of other
@@ -18,11 +18,11 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
18
18
  Duplicate "graphql" modules cannot be used at the same time since different
19
19
  versions may have different capabilities and behavior. The data from one
20
20
  version used in the function from another could produce confusing and
21
- spurious results.`)}}return!1};class Er{constructor(t,r="GraphQL request",n={line:1,column:1}){typeof t=="string"||at(!1,`Body must be a string. Received: ${gr(t)}.`),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||at(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||at(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function zi(e){return Vi(e,Er)}function qi(e,t){const r=new Qi(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}class Qi{constructor(t,r={}){const{lexer:n,...i}=r;if(n)this._lexer=n;else{const o=zi(t)?t:new Er(t);this._lexer=new Oi(o)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(f.NAME);return this.node(t,{kind:v.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:v.DOCUMENT,definitions:this.many(f.SOF,this.parseDefinition,f.EOF)})}parseDefinition(){if(this.peek(f.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),r=t?this._lexer.lookahead():this._lexer.token;if(t&&r.kind===f.BRACE_L)throw w(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(r.kind===f.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw w(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");switch(r.value){case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(f.BRACE_L))return this.node(t,{kind:v.OPERATION_DEFINITION,operation:re.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseDescription(),n=this.parseOperationType();let i;return this.peek(f.NAME)&&(i=this.parseName()),this.node(t,{kind:v.OPERATION_DEFINITION,operation:n,description:r,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(f.NAME);switch(t.value){case"query":return re.QUERY;case"mutation":return re.MUTATION;case"subscription":return re.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(f.PAREN_L,this.parseVariableDefinition,f.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:v.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(f.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(f.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(f.DOLLAR),this.node(t,{kind:v.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:v.SELECTION_SET,selections:this.many(f.BRACE_L,this.parseSelection,f.BRACE_R)})}parseSelection(){return this.peek(f.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,r=this.parseName();let n,i;return this.expectOptionalToken(f.COLON)?(n=r,i=this.parseName()):i=r,this.node(t,{kind:v.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(f.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(f.PAREN_L,r,f.PAREN_R)}parseArgument(t=!1){const r=this._lexer.token,n=this.parseName();return this.expectToken(f.COLON),this.node(r,{kind:v.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(f.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(f.NAME)?this.node(t,{kind:v.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:v.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token,r=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:v.FRAGMENT_DEFINITION,description:r,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:v.FRAGMENT_DEFINITION,description:r,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const r=this._lexer.token;switch(r.kind){case f.BRACKET_L:return this.parseList(t);case f.BRACE_L:return this.parseObject(t);case f.INT:return this.advanceLexer(),this.node(r,{kind:v.INT,value:r.value});case f.FLOAT:return this.advanceLexer(),this.node(r,{kind:v.FLOAT,value:r.value});case f.STRING:case f.BLOCK_STRING:return this.parseStringLiteral();case f.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:v.BOOLEAN,value:!0});case"false":return this.node(r,{kind:v.BOOLEAN,value:!1});case"null":return this.node(r,{kind:v.NULL});default:return this.node(r,{kind:v.ENUM,value:r.value})}case f.DOLLAR:if(t)if(this.expectToken(f.DOLLAR),this._lexer.token.kind===f.NAME){const n=this._lexer.token.value;throw w(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:v.STRING,value:t.value,block:t.kind===f.BLOCK_STRING})}parseList(t){const r=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:v.LIST,values:this.any(f.BRACKET_L,r,f.BRACKET_R)})}parseObject(t){const r=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:v.OBJECT,fields:this.any(f.BRACE_L,r,f.BRACE_R)})}parseObjectField(t){const r=this._lexer.token,n=this.parseName();return this.expectToken(f.COLON),this.node(r,{kind:v.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){const r=[];for(;this.peek(f.AT);)r.push(this.parseDirective(t));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const r=this._lexer.token;return this.expectToken(f.AT),this.node(r,{kind:v.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let r;if(this.expectOptionalToken(f.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(f.BRACKET_R),r=this.node(t,{kind:v.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(f.BANG)?this.node(t,{kind:v.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:v.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(f.STRING)||this.peek(f.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(f.BRACE_L,this.parseOperationTypeDefinition,f.BRACE_R);return this.node(t,{kind:v.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,r=this.parseOperationType();this.expectToken(f.COLON);const n=this.parseNamedType();return this.node(t,{kind:v.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:v.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:v.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(f.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(f.BRACE_L,this.parseFieldDefinition,f.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(f.COLON);const o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:v.FIELD_DEFINITION,description:r,name:n,arguments:i,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(f.PAREN_L,this.parseInputValueDef,f.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(f.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(f.EQUALS)&&(o=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:v.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:v.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:o,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:v.UNION_TYPE_DEFINITION,description:r,name:n,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(f.EQUALS)?this.delimitedMany(f.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:v.ENUM_TYPE_DEFINITION,description:r,name:n,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(f.BRACE_L,this.parseEnumValueDefinition,f.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:v.ENUM_VALUE_DEFINITION,description:r,name:n,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw w(this._lexer.source,this._lexer.token.start,`${Le(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:v.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(f.BRACE_L,this.parseInputValueDef,f.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===f.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension();break}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.optionalMany(f.BRACE_L,this.parseOperationTypeDefinition,f.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:v.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(t,{kind:v.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:v.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:v.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:v.UNION_TYPE_EXTENSION,name:r,directives:n,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:v.ENUM_TYPE_EXTENSION,name:r,directives:n,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:v.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:i})}parseDirectiveDefinitionExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(f.AT);const r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(t,{kind:v.DIRECTIVE_EXTENSION,name:r,directives:n})}parseDirectiveDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(f.AT);const n=this.parseName(),i=this.parseArgumentDefs(),o=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(t,{kind:v.DIRECTIVE_DEFINITION,description:r,name:n,arguments:i,directives:o,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(f.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(lt,r.value))return r;throw this.unexpected(t)}parseSchemaCoordinate(){const t=this._lexer.token,r=this.expectOptionalToken(f.AT),n=this.parseName();let i;!r&&this.expectOptionalToken(f.DOT)&&(i=this.parseName());let o;return(r||i)&&this.expectOptionalToken(f.PAREN_L)&&(o=this.parseName(),this.expectToken(f.COLON),this.expectToken(f.PAREN_R)),r?o?this.node(t,{kind:v.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:o}):this.node(t,{kind:v.DIRECTIVE_COORDINATE,name:n}):i?o?this.node(t,{kind:v.ARGUMENT_COORDINATE,name:n,fieldName:i,argumentName:o}):this.node(t,{kind:v.MEMBER_COORDINATE,name:n,memberName:i}):this.node(t,{kind:v.TYPE_COORDINATE,name:n})}node(t,r){return this._options.noLocation!==!0&&(r.loc=new gi(t,this._lexer.lastToken,this._lexer.source)),r}peek(t){return this._lexer.token.kind===t}expectToken(t){const r=this._lexer.token;if(r.kind===t)return this.advanceLexer(),r;throw w(this._lexer.source,r.start,`Expected ${br(t)}, found ${Le(r)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const r=this._lexer.token;if(r.kind===f.NAME&&r.value===t)this.advanceLexer();else throw w(this._lexer.source,r.start,`Expected "${t}", found ${Le(r)}.`)}expectOptionalKeyword(t){const r=this._lexer.token;return r.kind===f.NAME&&r.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const r=t!=null?t:this._lexer.token;return w(this._lexer.source,r.start,`Unexpected ${Le(r)}.`)}any(t,r,n){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(n);)i.push(r.call(this));return i}optionalMany(t,r,n){if(this.expectOptionalToken(t)){const i=[];do i.push(r.call(this));while(!this.expectOptionalToken(n));return i}return[]}many(t,r,n){this.expectToken(t);const i=[];do i.push(r.call(this));while(!this.expectOptionalToken(n));return i}delimitedMany(t,r){this.expectOptionalToken(t);const n=[];do n.push(r.call(this));while(this.expectOptionalToken(t));return n}advanceLexer(){const{maxTokens:t}=this._options,r=this._lexer.advance();if(r.kind!==f.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw w(this._lexer.source,r.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Le(e){const t=e.value;return br(e.kind)+(t!=null?` "${t}"`:"")}function br(e){return Si(e)?`"${e}"`:e}function Gi(e,t){var r=e.directives;return!r||!r.length?!0:Wi(r).every(function(n){var i=n.directive,o=n.ifArgument,s=!1;return o.value.kind==="Variable"?(s=t&&t[o.value.name.value],T(s!==void 0,105,i.name.value)):s=o.value.value,i.name.value==="skip"?!s:s})}function Yi(e){var t=e.name.value;return t==="skip"||t==="include"}function Wi(e){var t=[];return e&&e.length&&e.forEach(function(r){if(Yi(r)){var n=r.arguments,i=r.name.value;T(n&&n.length===1,106,i);var o=n[0];T(o.name&&o.name.value==="if",107,i);var s=o.value;T(s&&(s.kind==="Variable"||s.kind==="BooleanValue"),108,i),t.push({directive:r,ifArgument:o})}}),t}var Hi=U(function(){return navigator.product})=="ReactNative",_r=typeof Symbol=="function"&&typeof Symbol.for=="function",xr=typeof U(function(){return window.document.createElement})=="function",$i=U(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,Xi=(xr||Hi)&&!$i;function ht(e){return e!==null&&typeof e=="object"}function Ki(e){e===void 0&&(e=[]);var t={};return e.forEach(function(r){t[r.name.value]=r}),t}function Zi(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var r=e.name.value;if(typeof t=="function")return t(r);var n=t&&t[r];return T(n,114,r),n||null}default:return null}}function Ji(){}class Tr{constructor(t=1/0,r=Ji){this.max=t,this.dispose=r,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const r=this.getNode(t);return r&&r.value}get size(){return this.map.size}getNode(t){const r=this.map.get(t);if(r&&r!==this.newest){const{older:n,newer:i}=r;i&&(i.older=n),n&&(n.newer=i),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=i)}return r}set(t,r){let n=this.getNode(t);return n?n.value=r:(n={key:t,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(t,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const r=this.map.get(t);return r?(r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.map.delete(t),this.dispose(r.value,t),!0):!1}}function dt(){}const eo=dt,to=typeof WeakRef!="undefined"?WeakRef:function(e){return{deref:()=>e}},ro=typeof WeakMap!="undefined"?WeakMap:Map,no=typeof FinalizationRegistry!="undefined"?FinalizationRegistry:function(){return{register:dt,unregister:dt}},io=10024;class Or{constructor(t=1/0,r=eo){this.max=t,this.dispose=r,this.map=new ro,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const n=this.unfinalizedNodes.values();for(let i=0;i<io;i++){const o=n.next().value;if(!o)break;this.unfinalizedNodes.delete(o);const s=o.key;delete o.key,o.keyRef=new to(s),this.registry.register(s,o,o)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new no(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const r=this.getNode(t);return r&&r.value}getNode(t){const r=this.map.get(t);if(r&&r!==this.newest){const{older:n,newer:i}=r;i&&(i.older=n),n&&(n.newer=i),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=i)}return r}set(t,r){let n=this.getNode(t);return n?n.value=r:(n={key:t,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(t,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(t){t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.size--;const r=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,r),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),r&&this.map.delete(r)}delete(t){const r=this.map.get(t);return r?(this.deleteNode(r),!0):!1}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var pt=new WeakSet;function Sr(e){e.size<=(e.max||-1)||pt.has(e)||(pt.add(e),setTimeout(function(){e.clean(),pt.delete(e)},100))}var oo=function(e,t){var r=new Or(e,t);return r.set=function(n,i){var o=Or.prototype.set.call(this,n,i);return Sr(this),o},r},so=function(e,t){var r=new Tr(e,t);return r.set=function(n,i){var o=Tr.prototype.set.call(this,n,i);return Sr(this),o},r},ao=Symbol.for("apollo.cacheSize"),Nr=E({},De[ao]),co={};function Ir(e,t){co[e]=t}var Ar=Object.assign(function(t){return JSON.stringify(t,uo)},{reset:function(){ie=new so(Nr.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&Ir("canonicalStringify",function(){return ie.size});var ie;Ar.reset();function uo(e,t){if(t&&typeof t=="object"){var r=Object.getPrototypeOf(t);if(r===Object.prototype||r===null){var n=Object.keys(t);if(n.every(lo))return t;var i=JSON.stringify(n),o=ie.get(i);if(!o){n.sort();var s=JSON.stringify(n);o=ie.get(s)||n,ie.set(i,o),ie.set(s,o)}var a=Object.create(r);return o.forEach(function(c){a[c]=t[c]}),a}}return t}function lo(e,t,r){return t===0||r[t-1]<=e}var fo=["connection","include","skip","client","rest","export","nonreactive"],ye=Ar;Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key)if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(a){i[a]=t[a]}),"".concat(r.connection.key,"(").concat(ye(i),")")}else return r.connection.key;var o=e;if(t){var s=ye(t);o+="(".concat(s,")")}return r&&Object.keys(r).forEach(function(a){fo.indexOf(a)===-1&&(r[a]&&Object.keys(r[a]).length?o+="@".concat(a,"(").concat(ye(r[a]),")"):o+="@".concat(a))}),o},{setStringify:function(e){var t=ye;return ye=e,t}});function ho(e){return e.alias?e.alias.value:e.name.value}function po(e){return e.kind==="Field"}function wr(e){T(e&&e.kind==="Document",115);var t=e.definitions.filter(function(r){return r.kind!=="FragmentDefinition"}).map(function(r){if(r.kind!=="OperationDefinition")throw or(116,r.kind);return r});return T(t.length<=1,117,t.length),e}function Cr(e){return wr(e),e.definitions.filter(function(t){return t.kind==="OperationDefinition"})[0]}function yo(e){return e.definitions.filter(function(t){return t.kind==="FragmentDefinition"})}function mo(e){var t=Cr(e);return T(t&&t.operation==="query",118),t}function vo(e){wr(e);for(var t,r=0,n=e.definitions;r<n.length;r++){var i=n[r];if(i.kind==="OperationDefinition"){var o=i.operation;if(o==="query"||o==="mutation"||o==="subscription")return i}i.kind==="FragmentDefinition"&&!t&&(t=i)}if(t)return t;throw or(122)}let k=null;const kr={};let go=1;const Eo=()=>class{constructor(){this.id=["slot",go++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=k;t;t=t.parent)if(this.id in t.slots){const r=t.slots[this.id];if(r===kr)break;return t!==k&&(k.slots[this.id]=r),!0}return k&&(k.slots[this.id]=kr),!1}getValue(){if(this.hasValue())return k.slots[this.id]}withValue(t,r,n,i){const o={__proto__:null,[this.id]:t},s=k;k={parent:s,slots:o};try{return r.apply(i,n)}finally{k=s}}static bind(t){const r=k;return function(){const n=k;try{return k=r,t.apply(this,arguments)}finally{k=n}}}static noContext(t,r,n){if(k){const i=k;try{return k=null,t.apply(n,r)}finally{k=i}}else return t.apply(n,r)}};function Dr(e){try{return e()}catch{}}const yt="@wry/context:Slot",Rr=Dr(()=>globalThis)||Dr(()=>global)||Object.create(null),Me=Rr[yt]||Array[yt]||(function(e){try{Object.defineProperty(Rr,yt,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}})(Eo()),{bind:r0,noContext:n0}=Me;new Me;function Pr(e){return Array.isArray(e)&&e.length>0}function bo(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_o(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
22
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _o(e,t){if(e){if(typeof e=="string")return Fr(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 Fr(e,t)}}function Fr(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 Lr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mt(e,t,r){return t&&Lr(e.prototype,t),r&&Lr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var vt=function(){return typeof Symbol=="function"},gt=function(e){return vt()&&!!Symbol[e]},Et=function(e){return gt(e)?Symbol[e]:"@@"+e};vt()&&!gt("observable")&&(Symbol.observable=Symbol("observable"));var xo=Et("iterator"),bt=Et("observable"),Mr=Et("species");function Ue(e,t){var r=e[t];if(r!=null){if(typeof r!="function")throw new TypeError(r+" is not a function");return r}}function me(e){var t=e.constructor;return t!==void 0&&(t=t[Mr],t===null&&(t=void 0)),t!==void 0?t:W}function To(e){return e instanceof W}function oe(e){oe.log?oe.log(e):setTimeout(function(){throw e})}function Be(e){Promise.resolve().then(function(){try{e()}catch(t){oe(t)}})}function Ur(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,!!t))try{if(typeof t=="function")t();else{var r=Ue(t,"unsubscribe");r&&r.call(t)}}catch(n){oe(n)}}function _t(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Oo(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(Br(e,t[r].type,t[r].value),e._state!=="closed");++r);}}function Br(e,t,r){e._state="running";var n=e._observer;try{var i=Ue(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(_t(e),i)i.call(n,r);else throw r;break;case"complete":_t(e),i&&i.call(n);break}}catch(o){oe(o)}e._state==="closed"?Ur(e):e._state==="running"&&(e._state="ready")}function xt(e,t,r){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:t,value:r});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:t,value:r}],Be(function(){return Oo(e)});return}Br(e,t,r)}}var So=(function(){function e(r,n){this._cleanup=void 0,this._observer=r,this._queue=void 0,this._state="initializing";var i=new No(this);try{this._cleanup=n.call(void 0,i)}catch(o){i.error(o)}this._state==="initializing"&&(this._state="ready")}var t=e.prototype;return t.unsubscribe=function(){this._state!=="closed"&&(_t(this),Ur(this))},mt(e,[{key:"closed",get:function(){return this._state==="closed"}}]),e})(),No=(function(){function e(r){this._subscription=r}var t=e.prototype;return t.next=function(n){xt(this._subscription,"next",n)},t.error=function(n){xt(this._subscription,"error",n)},t.complete=function(){xt(this._subscription,"complete")},mt(e,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),e})(),W=(function(){function e(r){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof r!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=r}var t=e.prototype;return t.subscribe=function(n){return(typeof n!="object"||n===null)&&(n={next:n,error:arguments[1],complete:arguments[2]}),new So(n,this._subscriber)},t.forEach=function(n){var i=this;return new Promise(function(o,s){if(typeof n!="function"){s(new TypeError(n+" is not a function"));return}function a(){c.unsubscribe(),o()}var c=i.subscribe({next:function(u){try{n(u,a)}catch(h){s(h),c.unsubscribe()}},error:s,complete:o})})},t.map=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var o=me(this);return new o(function(s){return i.subscribe({next:function(a){try{a=n(a)}catch(c){return s.error(c)}s.next(a)},error:function(a){s.error(a)},complete:function(){s.complete()}})})},t.filter=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var o=me(this);return new o(function(s){return i.subscribe({next:function(a){try{if(!n(a))return}catch(c){return s.error(c)}s.next(a)},error:function(a){s.error(a)},complete:function(){s.complete()}})})},t.reduce=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var o=me(this),s=arguments.length>1,a=!1,c=arguments[1],u=c;return new o(function(h){return i.subscribe({next:function(d){var p=!a;if(a=!0,!p||s)try{u=n(u,d)}catch(m){return h.error(m)}else u=d},error:function(d){h.error(d)},complete:function(){if(!a&&!s)return h.error(new TypeError("Cannot reduce an empty sequence"));h.next(u),h.complete()}})})},t.concat=function(){for(var n=this,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];var a=me(this);return new a(function(c){var u,h=0;function d(p){u=p.subscribe({next:function(m){c.next(m)},error:function(m){c.error(m)},complete:function(){h===o.length?(u=void 0,c.complete()):d(a.from(o[h++]))}})}return d(n),function(){u&&(u.unsubscribe(),u=void 0)}})},t.flatMap=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var o=me(this);return new o(function(s){var a=[],c=i.subscribe({next:function(h){if(n)try{h=n(h)}catch(p){return s.error(p)}var d=o.from(h).subscribe({next:function(p){s.next(p)},error:function(p){s.error(p)},complete:function(){var p=a.indexOf(d);p>=0&&a.splice(p,1),u()}});a.push(d)},error:function(h){s.error(h)},complete:function(){u()}});function u(){c.closed&&a.length===0&&s.complete()}return function(){a.forEach(function(h){return h.unsubscribe()}),c.unsubscribe()}})},t[bt]=function(){return this},e.from=function(n){var i=typeof this=="function"?this:e;if(n==null)throw new TypeError(n+" is not an object");var o=Ue(n,bt);if(o){var s=o.call(n);if(Object(s)!==s)throw new TypeError(s+" is not an object");return To(s)&&s.constructor===i?s:new i(function(a){return s.subscribe(a)})}if(gt("iterator")&&(o=Ue(n,xo),o))return new i(function(a){Be(function(){if(!a.closed){for(var c=bo(o.call(n)),u;!(u=c()).done;){var h=u.value;if(a.next(h),a.closed)return}a.complete()}})});if(Array.isArray(n))return new i(function(a){Be(function(){if(!a.closed){for(var c=0;c<n.length;++c)if(a.next(n[c]),a.closed)return;a.complete()}})});throw new TypeError(n+" is not observable")},e.of=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var s=typeof this=="function"?this:e;return new s(function(a){Be(function(){if(!a.closed){for(var c=0;c<i.length;++c)if(a.next(i[c]),a.closed)return;a.complete()}})})},mt(e,null,[{key:Mr,get:function(){return this}}]),e})();vt()&&Object.defineProperty(W,Symbol("extensions"),{value:{symbol:bt,hostReportError:oe},configurable:!0});function Io(e){var t,r=e.Symbol;if(typeof r=="function")if(r.observable)t=r.observable;else{typeof r.for=="function"?t=r.for("https://github.com/benlesh/symbol-observable"):t=r("https://github.com/benlesh/symbol-observable");try{r.observable=t}catch{}}else t="@@observable";return t}var se;typeof self!="undefined"?se=self:typeof window!="undefined"?se=window:typeof global!="undefined"?se=global:typeof module!="undefined"?se=module:se=Function("return this")(),Io(se);var jr=W.prototype,Vr="@@observable";jr[Vr]||(jr[Vr]=function(){return this});function Ao(e){return e.catch(function(){}),e}var wo=Object.prototype.toString;function Co(e){return Tt(e)}function Tt(e,t){switch(wo.call(e)){case"[object Array]":{if(t=t||new Map,t.has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(i,o){r[o]=Tt(i,t)}),r}case"[object Object]":{if(t=t||new Map,t.has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach(function(i){n[i]=Tt(e[i],t)}),n}default:return e}}function ko(e){var t=new Set([e]);return t.forEach(function(r){ht(r)&&Do(r)===r&&Object.getOwnPropertyNames(r).forEach(function(n){ht(r[n])&&t.add(r[n])})}),e}function Do(e){if(globalThis.__DEV__!==!1&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}function zr(e){return globalThis.__DEV__!==!1&&ko(e),e}function qr(e,t,r){var n=[];e.forEach(function(i){return i[t]&&n.push(i)}),n.forEach(function(i){return i[t](r)})}function Ro(e){function t(r){Object.defineProperty(e,r,{value:W})}return _r&&Symbol.species&&t(Symbol.species),t("@@species"),e}function ve(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(n){n&&Object.keys(n).forEach(function(i){var o=n[i];o!==void 0&&(r[i]=o)})}),r}function Qr(e,t){return ve(e,t,t.variables&&{variables:ve(E(E({},e&&e.variables),t.variables))})}var Ot,Po=Symbol.for("apollo.deprecations"),Gr=Symbol.for("apollo.deprecations.slot"),St=De,Nt=(Ot=St[Gr])!==null&&Ot!==void 0?Ot:St[Gr]=new Me;function Fo(e){return St[Po]||(Nt.getValue()||[]).includes(e)}function V(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Nt.withValue.apply(Nt,Q([Array.isArray(e)?e:[e]],t,!1))}function Yr(e,t,r,n){n===void 0&&(n="Please remove this option."),H(t,function(){t in e&&globalThis.__DEV__!==!1&&T.warn(103,r,t,n)})}function H(e,t){Fo(e)||t()}function Lo(e){return e.hasOwnProperty("graphQLErrors")}var Mo=function(e){var t=Q(Q(Q([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(r){return ht(r)&&r.message||"Error message not found."}).join(`
23
- `)},ae=(function(e){nt(t,e);function t(r){var n=r.graphQLErrors,i=r.protocolErrors,o=r.clientErrors,s=r.networkError,a=r.errorMessage,c=r.extraInfo,u=e.call(this,a)||this;return u.name="ApolloError",u.graphQLErrors=n||[],u.protocolErrors=i||[],u.clientErrors=o||[],u.networkError=s||null,u.message=a||Mo(u),u.extraInfo=c,u.cause=Q(Q(Q([s],n||[],!0),i||[],!0),o||[],!0).find(function(h){return!!h})||null,u.__proto__=t.prototype,u}return t})(Error);const{toString:Wr,hasOwnProperty:Uo}=Object.prototype,Hr=Function.prototype.toString,It=new Map;function C(e,t){try{return At(e,t)}finally{It.clear()}}function At(e,t){if(e===t)return!0;const r=Wr.call(e),n=Wr.call(t);if(r!==n)return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(Xr(e,t))return!0;const i=$r(e),o=$r(t),s=i.length;if(s!==o.length)return!1;for(let a=0;a<s;++a)if(!Uo.call(t,i[a]))return!1;for(let a=0;a<s;++a){const c=i[a];if(!At(e[c],t[c]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(Xr(e,t))return!0;const i=e.entries(),o=r==="[object Map]";for(;;){const s=i.next();if(s.done)break;const[a,c]=s.value;if(!t.has(a)||o&&!At(c,t.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let i=e.byteLength;if(i===t.byteLength)for(;i--&&e[i]===t[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const i=Hr.call(e);return i!==Hr.call(t)?!1:!Vo(i,jo)}}return!1}function $r(e){return Object.keys(e).filter(Bo,e)}function Bo(e){return this[e]!==void 0}const jo="{ [native code] }";function Vo(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function Xr(e,t){let r=It.get(e);if(r){if(r.has(t))return!0}else It.set(e,r=new Set);return r.add(t),!1}function zo(e,t,r,n){var i=t.data,o=Ce(t,["data"]),s=r.data,a=Ce(r,["data"]);return C(o,a)&&je(vo(e).selectionSet,i,s,{fragmentMap:Ki(yo(e)),variables:n})}function je(e,t,r,n){if(t===r)return!0;var i=new Set;return e.selections.every(function(o){if(i.has(o)||(i.add(o),!Gi(o,n.variables))||Kr(o))return!0;if(po(o)){var s=ho(o),a=t&&t[s],c=r&&r[s],u=o.selectionSet;if(!u)return C(a,c);var h=Array.isArray(a),d=Array.isArray(c);if(h!==d)return!1;if(h&&d){var p=a.length;if(c.length!==p)return!1;for(var m=0;m<p;++m)if(!je(u,a[m],c[m],n))return!1;return!0}return je(u,a,c,n)}else{var y=Zi(o,n.fragmentMap);if(y)return Kr(y)?!0:je(y.selectionSet,t,r,n)}})}function Kr(e){return!!e.directives&&e.directives.some(qo)}function qo(e){return e.name.value==="nonreactive"}var N;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(N||(N={}));function Ve(e){return e?e<7:!1}var Zr=Object.assign,Qo=Object.hasOwnProperty,Jr=(function(e){nt(t,e);function t(r){var n=r.queryManager,i=r.queryInfo,o=r.options,s=this,a=t.inactiveOnCreation.getValue();s=e.call(this,function(g){s._getOrCreateQuery();try{var S=g._subscription._observer;S&&!S.error&&(S.error=Go)}catch{}var D=!s.observers.size;s.observers.add(g);var A=s.last;return A&&A.error?g.error&&g.error(A.error):A&&A.result&&g.next&&g.next(s.maskResult(A.result)),D&&s.reobserve().catch(function(){}),function(){s.observers.delete(g)&&!s.observers.size&&s.tearDownQuery()}})||this,s.observers=new Set,s.subscriptions=new Set,s.dirty=!1,s._getOrCreateQuery=function(){return a&&(n.queries.set(s.queryId,i),a=!1),s.queryManager.getOrCreateQuery(s.queryId)},s.queryInfo=i,s.queryManager=n,s.waitForOwnResult=wt(o.fetchPolicy),s.isTornDown=!1,s.subscribeToMore=s.subscribeToMore.bind(s),s.maskResult=s.maskResult.bind(s);var c=n.defaultOptions.watchQuery,u=c===void 0?{}:c,h=u.fetchPolicy,d=h===void 0?"cache-first":h,p=o.fetchPolicy,m=p===void 0?d:p,y=o.initialFetchPolicy,O=y===void 0?m==="standby"?d:m:y;s.options=E(E({},o),{initialFetchPolicy:O,fetchPolicy:m}),s.queryId=i.queryId||n.generateQueryId();var b=Cr(s.query);return s.queryName=b&&b.name&&b.name.value,s}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var r=this;return globalThis.__DEV__!==!1&&H("observableQuery.result",function(){globalThis.__DEV__!==!1&&T.warn(23)}),new Promise(function(n,i){var o={next:function(a){n(a),r.observers.delete(o),r.observers.size||r.queryManager.removeQuery(r.queryId),setTimeout(function(){s.unsubscribe()},0)},error:i},s=r.subscribe(o)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(r){var n=this;r===void 0&&(r=!0);var i=V("getLastResult",function(){return n.getLastResult(!0)}),o=this.queryInfo.networkStatus||i&&i.networkStatus||N.ready,s=E(E({},i),{loading:Ve(o),networkStatus:o}),a=this.options.fetchPolicy,c=a===void 0?"cache-first":a;if(!(wt(c)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(s.data=u.result),C(s.data,{})&&(s.data=void 0),u.complete?(delete s.partial,u.complete&&s.networkStatus===N.loading&&(c==="cache-first"||c==="cache-only")&&(s.networkStatus=N.ready,s.loading=!1)):s.partial=!0,s.networkStatus===N.ready&&(s.error||s.errors)&&(s.networkStatus=N.error),globalThis.__DEV__!==!1&&!u.complete&&!this.options.partialRefetch&&!s.loading&&!s.data&&!s.error&&Yo(u.missing)}return r&&this.updateLastResult(s),s},t.prototype.getCurrentResult=function(r){return r===void 0&&(r=!0),this.maskResult(this.getCurrentFullResult(r))},t.prototype.isDifferentFromLastResult=function(r,n){if(!this.last)return!0;var i=this.queryManager.getDocumentInfo(this.query),o=this.queryManager.dataMasking,s=o?i.nonReactiveQuery:this.query,a=o||i.hasNonreactiveDirective?!zo(s,this.last.result,r,this.variables):!C(this.last.result,r);return a||n&&!C(this.last.variables,n)},t.prototype.getLast=function(r,n){var i=this.last;if(i&&i[r]&&(!n||C(i.variables,this.variables)))return i[r]},t.prototype.getLastResult=function(r){return globalThis.__DEV__!==!1&&H("getLastResult",function(){globalThis.__DEV__!==!1&&T.warn(24)}),this.getLast("result",r)},t.prototype.getLastError=function(r){return globalThis.__DEV__!==!1&&H("getLastError",function(){globalThis.__DEV__!==!1&&T.warn(25)}),this.getLast("error",r)},t.prototype.resetLastResults=function(){globalThis.__DEV__!==!1&&H("resetLastResults",function(){globalThis.__DEV__!==!1&&T.warn(26)}),delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&T.warn(27),this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(r){var n,i={pollInterval:0},o=this.options.fetchPolicy;if(o==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",globalThis.__DEV__!==!1&&r&&Qo.call(r,"variables")){var s=mo(this.query),a=s.variableDefinitions;(!a||!a.some(function(c){return c.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&T.warn(28,r,((n=s.name)===null||n===void 0?void 0:n.value)||s)}return r&&!C(this.options.variables,r)&&(i.variables=this.options.variables=E(E({},this.options.variables),r)),this.queryInfo.resetLastWrite(),this.reobserve(i,N.refetch)},t.prototype.fetchMore=function(r){var n=this,i=E(E({},r.query?r:E(E(E(E({},this.options),{query:this.options.query}),r),{variables:E(E({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var o=this.queryManager.generateQueryId();this.lastQuery=r.query?this.transformDocument(this.options.query):i.query;var s=this.queryInfo,a=s.networkStatus;s.networkStatus=N.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var c=new Set,u=r==null?void 0:r.updateQuery,h=this.options.fetchPolicy!=="no-cache";return h||T(u,29),this.queryManager.fetchQuery(o,i,N.fetchMore).then(function(d){if(n.queryManager.removeQuery(o),s.networkStatus===N.fetchMore&&(s.networkStatus=a),h)n.queryManager.cache.batch({update:function(y){var O=r.updateQuery;O?y.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(b){return O(b,{fetchMoreResult:d.data,variables:i.variables})}):y.writeQuery({query:i.query,variables:i.variables,data:d.data})},onWatchUpdated:function(y){c.add(y.query)}});else{var p=n.getLast("result"),m=u(p.data,{fetchMoreResult:d.data,variables:i.variables});n.reportResult(E(E({},p),{networkStatus:a,loading:Ve(a),data:m}),n.variables)}return n.maskResult(d)}).finally(function(){h&&!c.has(n.query)&&n.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(r){var n=this,i=this.queryManager.startGraphQLSubscription({query:r.document,variables:r.variables,context:r.context}).subscribe({next:function(o){var s=r.updateQuery;s&&n.updateQuery(function(a,c){return s(a,E({subscriptionData:o},c))})},error:function(o){if(r.onError){r.onError(o);return}globalThis.__DEV__!==!1&&T.error(30,o)}});return this.subscriptions.add(i),function(){n.subscriptions.delete(i)&&i.unsubscribe()}},t.prototype.setOptions=function(r){return globalThis.__DEV__!==!1&&(Yr(r,"canonizeResults","setOptions"),H("setOptions",function(){globalThis.__DEV__!==!1&&T.warn(31)})),this.reobserve(r)},t.prototype.silentSetOptions=function(r){var n=ve(this.options,r||{});Zr(this.options,n)},t.prototype.setVariables=function(r){var n=this;return C(this.variables,r)?this.observers.size?V("observableQuery.result",function(){return n.result()}):Promise.resolve():(this.options.variables=r,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:r},N.setVariables):Promise.resolve())},t.prototype.updateQuery=function(r){var n=this.queryManager,i=n.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),o=i.result,s=i.complete,a=r(o,{variables:this.variables,complete:!!s,previousData:o});a&&(n.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),n.broadcastQueries())},t.prototype.startPolling=function(r){this.options.pollInterval=r,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(r,n){if(n.nextFetchPolicy){var i=n.fetchPolicy,o=i===void 0?"cache-first":i,s=n.initialFetchPolicy,a=s===void 0?o:s;o==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy(o,{reason:r,options:n,observable:this,initialFetchPolicy:a}):r==="variables-changed"?n.fetchPolicy=a:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy},t.prototype.fetch=function(r,n,i){var o=this._getOrCreateQuery();return o.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(o,r,n,i)},t.prototype.updatePolling=function(){var r=this;if(!this.queryManager.ssrMode){var n=this,i=n.pollingInfo,o=n.options.pollInterval;if(!o||!this.hasObservers()){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===o)){T(o,32);var s=i||(this.pollingInfo={});s.interval=o;var a=function(){var u,h;r.pollingInfo&&(!Ve(r.queryInfo.networkStatus)&&!(!((h=(u=r.options).skipPollAttempt)===null||h===void 0)&&h.call(u))?r.reobserve({fetchPolicy:r.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},N.poll).then(c,c):c())},c=function(){var u=r.pollingInfo;u&&(clearTimeout(u.timeout),u.timeout=setTimeout(a,u.interval))};c()}}},t.prototype.updateLastResult=function(r,n){var i=this;n===void 0&&(n=this.variables);var o=V("getLastError",function(){return i.getLastError()});return o&&this.last&&!C(n,this.last.variables)&&(o=void 0),this.last=E({result:this.queryManager.assumeImmutableResults?r:Co(r),variables:n},o?{error:o}:null)},t.prototype.reobserveAsConcast=function(r,n){var i=this;this.isTornDown=!1;var o=n===N.refetch||n===N.fetchMore||n===N.poll,s=this.options.variables,a=this.options.fetchPolicy,c=ve(this.options,r||{}),u=o?c:Zr(this.options,c),h=this.transformDocument(u.query);this.lastQuery=h,o||(this.updatePolling(),r&&r.variables&&!C(r.variables,s)&&u.fetchPolicy!=="standby"&&(u.fetchPolicy===a||typeof u.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",u),n===void 0&&(n=N.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=wt(u.fetchPolicy));var d=function(){i.concast===y&&(i.waitForOwnResult=!1)},p=u.variables&&E({},u.variables),m=this.fetch(u,n,h),y=m.concast,O=m.fromLink,b={next:function(g){C(i.variables,p)&&(d(),i.reportResult(g,p))},error:function(g){C(i.variables,p)&&(Lo(g)||(g=new ae({networkError:g})),d(),i.reportError(g,p))}};return!o&&(O||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=y,this.observer=b),y.addObserver(b),y},t.prototype.reobserve=function(r,n){return Ao(this.reobserveAsConcast(r,n).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=this.last;V("resetLastResults",function(){return r.resetLastResults()});var s=this.subscribe.apply(this,n);return this.last=o,s},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(r,n){var i=this,o=V("getLastError",function(){return i.getLastError()}),s=this.isDifferentFromLastResult(r,n);(o||!r.partial||this.options.returnPartialData)&&this.updateLastResult(r,n),(o||s)&&qr(this.observers,"next",this.maskResult(r))},t.prototype.reportError=function(r,n){var i=this,o=E(E({},V("getLastResult",function(){return i.getLastResult()})),{error:r,errors:r.graphQLErrors,networkStatus:N.error,loading:!1});this.updateLastResult(o,n),qr(this.observers,"error",this.last.error=r)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(r){return r.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(r){return this.queryManager.transform(r)},t.prototype.maskResult=function(r){return r&&"data"in r?E(E({},r),{data:this.queryManager.maskOperation({document:this.query,data:r.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):r},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var r=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0)))},t.prototype.notify=function(){if(this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy=="cache-only"||this.options.fetchPolicy=="cache-and-network"||!Ve(this.queryInfo.networkStatus))){var r=this.queryInfo.getDiff();r.fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()}this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var r=this.options,n=r.fetchPolicy,i=r.nextFetchPolicy;return n==="cache-and-network"||n==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(o,s){return this.nextFetchPolicy=i,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(o,s):n}}):this.reobserve()},t.inactiveOnCreation=new Me,t})(W);Ro(Jr);function Go(e){globalThis.__DEV__!==!1&&T.error(33,e.message,e.stack)}function Yo(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&T.debug(34,e)}function wt(e){return e==="network-only"||e==="no-cache"||e==="standby"}var ze=new Map,Ct=new Map,en=!0,qe=!1;function tn(e){return e.replace(/[\s,]+/g," ").trim()}function Wo(e){return tn(e.source.body.substring(e.start,e.end))}function Ho(e){var t=new Set,r=[];return e.definitions.forEach(function(n){if(n.kind==="FragmentDefinition"){var i=n.name.value,o=Wo(n.loc),s=Ct.get(i);s&&!s.has(o)?en&&console.warn("Warning: fragment with name "+i+` already exists.
21
+ spurious results.`)}}return!1};class tr{constructor(e,r="GraphQL request",n={line:1,column:1}){typeof e=="string"||Ze(!1,`Body must be a string. Received: ${er(e)}.`),this.body=e,this.name=r,this.locationOffset=n,this.locationOffset.line>0||Ze(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ze(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function Ei(t){return gi(t,tr)}function bi(t,e){const r=new xi(t,e),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}class xi{constructor(e,r={}){const{lexer:n,...i}=r;if(n)this._lexer=n;else{const o=Ei(e)?e:new tr(e);this._lexer=new ti(o)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(d.NAME);return this.node(e,{kind:g.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:g.DOCUMENT,definitions:this.many(d.SOF,this.parseDefinition,d.EOF)})}parseDefinition(){if(this.peek(d.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),r=e?this._lexer.lookahead():this._lexer.token;if(e&&r.kind===d.BRACE_L)throw D(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(r.kind===d.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw D(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(r.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(r)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(d.BRACE_L))return this.node(e,{kind:g.OPERATION_DEFINITION,operation:ce.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseDescription(),n=this.parseOperationType();let i;return this.peek(d.NAME)&&(i=this.parseName()),this.node(e,{kind:g.OPERATION_DEFINITION,operation:n,description:r,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(d.NAME);switch(e.value){case"query":return ce.QUERY;case"mutation":return ce.MUTATION;case"subscription":return ce.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(d.PAREN_L,this.parseVariableDefinition,d.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:g.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(d.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(d.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(d.DOLLAR),this.node(e,{kind:g.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:g.SELECTION_SET,selections:this.many(d.BRACE_L,this.parseSelection,d.BRACE_R)})}parseSelection(){return this.peek(d.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,r=this.parseName();let n,i;return this.expectOptionalToken(d.COLON)?(n=r,i=this.parseName()):i=r,this.node(e,{kind:g.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(d.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const r=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(d.PAREN_L,r,d.PAREN_R)}parseArgument(e=!1){const r=this._lexer.token,n=this.parseName();return this.expectToken(d.COLON),this.node(r,{kind:g.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(d.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(d.NAME)?this.node(e,{kind:g.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:g.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,r=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:g.FRAGMENT_DEFINITION,description:r,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:g.FRAGMENT_DEFINITION,description:r,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const r=this._lexer.token;switch(r.kind){case d.BRACKET_L:return this.parseList(e);case d.BRACE_L:return this.parseObject(e);case d.INT:return this.advanceLexer(),this.node(r,{kind:g.INT,value:r.value});case d.FLOAT:return this.advanceLexer(),this.node(r,{kind:g.FLOAT,value:r.value});case d.STRING:case d.BLOCK_STRING:return this.parseStringLiteral();case d.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:g.BOOLEAN,value:!0});case"false":return this.node(r,{kind:g.BOOLEAN,value:!1});case"null":return this.node(r,{kind:g.NULL});default:return this.node(r,{kind:g.ENUM,value:r.value})}case d.DOLLAR:if(e)if(this.expectToken(d.DOLLAR),this._lexer.token.kind===d.NAME){const n=this._lexer.token.value;throw D(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:g.STRING,value:e.value,block:e.kind===d.BLOCK_STRING})}parseList(e){const r=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:g.LIST,values:this.any(d.BRACKET_L,r,d.BRACKET_R)})}parseObject(e){const r=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:g.OBJECT,fields:this.any(d.BRACE_L,r,d.BRACE_R)})}parseObjectField(e){const r=this._lexer.token,n=this.parseName();return this.expectToken(d.COLON),this.node(r,{kind:g.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const r=[];for(;this.peek(d.AT);)r.push(this.parseDirective(e));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const r=this._lexer.token;return this.expectToken(d.AT),this.node(r,{kind:g.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let r;if(this.expectOptionalToken(d.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(d.BRACKET_R),r=this.node(e,{kind:g.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(d.BANG)?this.node(e,{kind:g.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:g.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(d.STRING)||this.peek(d.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);return this.node(e,{kind:g.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,r=this.parseOperationType();this.expectToken(d.COLON);const n=this.parseNamedType();return this.node(e,{kind:g.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:g.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:g.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:o,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(d.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseFieldDefinition,d.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(d.COLON);const o=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:g.FIELD_DEFINITION,description:r,name:n,arguments:i,type:o,directives:a})}parseArgumentDefs(){return this.optionalMany(d.PAREN_L,this.parseInputValueDef,d.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(d.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(d.EQUALS)&&(o=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:g.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:o,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:g.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:o,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(e,{kind:g.UNION_TYPE_DEFINITION,description:r,name:n,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(d.EQUALS)?this.delimitedMany(d.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(e,{kind:g.ENUM_TYPE_DEFINITION,description:r,name:n,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(d.BRACE_L,this.parseEnumValueDefinition,d.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:g.ENUM_VALUE_DEFINITION,description:r,name:n,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw D(this._lexer.source,this._lexer.token.start,`${we(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(e,{kind:g.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseInputValueDef,d.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===d.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension();break}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.optionalMany(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:g.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:g.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:g.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:o})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:g.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:g.UNION_TYPE_EXTENSION,name:r,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:g.ENUM_TYPE_EXTENSION,name:r,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:g.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:i})}parseDirectiveDefinitionExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(d.AT);const r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:g.DIRECTIVE_EXTENSION,name:r,directives:n})}parseDirectiveDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(d.AT);const n=this.parseName(),i=this.parseArgumentDefs(),o=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:g.DIRECTIVE_DEFINITION,description:r,name:n,arguments:i,directives:o,repeatable:a,locations:s})}parseDirectiveLocations(){return this.delimitedMany(d.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(tt,r.value))return r;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,r=this.expectOptionalToken(d.AT),n=this.parseName();let i;!r&&this.expectOptionalToken(d.DOT)&&(i=this.parseName());let o;return(r||i)&&this.expectOptionalToken(d.PAREN_L)&&(o=this.parseName(),this.expectToken(d.COLON),this.expectToken(d.PAREN_R)),r?o?this.node(e,{kind:g.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:o}):this.node(e,{kind:g.DIRECTIVE_COORDINATE,name:n}):i?o?this.node(e,{kind:g.ARGUMENT_COORDINATE,name:n,fieldName:i,argumentName:o}):this.node(e,{kind:g.MEMBER_COORDINATE,name:n,memberName:i}):this.node(e,{kind:g.TYPE_COORDINATE,name:n})}node(e,r){return this._options.noLocation!==!0&&(r.loc=new $n(e,this._lexer.lastToken,this._lexer.source)),r}peek(e){return this._lexer.token.kind===e}expectToken(e){const r=this._lexer.token;if(r.kind===e)return this.advanceLexer(),r;throw D(this._lexer.source,r.start,`Expected ${rr(e)}, found ${we(r)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const r=this._lexer.token;if(r.kind===d.NAME&&r.value===e)this.advanceLexer();else throw D(this._lexer.source,r.start,`Expected "${e}", found ${we(r)}.`)}expectOptionalKeyword(e){const r=this._lexer.token;return r.kind===d.NAME&&r.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const r=e!=null?e:this._lexer.token;return D(this._lexer.source,r.start,`Unexpected ${we(r)}.`)}any(e,r,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(r.call(this));return i}optionalMany(e,r,n){if(this.expectOptionalToken(e)){const i=[];do i.push(r.call(this));while(!this.expectOptionalToken(n));return i}return[]}many(e,r,n){this.expectToken(e);const i=[];do i.push(r.call(this));while(!this.expectOptionalToken(n));return i}delimitedMany(e,r){this.expectOptionalToken(e);const n=[];do n.push(r.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,r=this._lexer.advance();if(r.kind!==d.EOF&&(++this._tokenCounter,e!==void 0&&this._tokenCounter>e))throw D(this._lexer.source,r.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function we(t){const e=t.value;return rr(t.kind)+(e!=null?` "${e}"`:"")}function rr(t){return ri(t)?`"${t}"`:t}function _i(t,e){var r=t.directives;return!r||!r.length?!0:Oi(r).every(function(n){var i=n.directive,o=n.ifArgument,a=!1;return o.value.kind==="Variable"?(a=e&&e[o.value.name.value],N(a!==void 0,105,i.name.value)):a=o.value.value,i.name.value==="skip"?!a:a})}function Ti(t){var e=t.name.value;return e==="skip"||e==="include"}function Oi(t){var e=[];return t&&t.length&&t.forEach(function(r){if(Ti(r)){var n=r.arguments,i=r.name.value;N(n&&n.length===1,106,i);var o=n[0];N(o.name&&o.name.value==="if",107,i);var a=o.value;N(a&&(a.kind==="Variable"||a.kind==="BooleanValue"),108,i),e.push({directive:r,ifArgument:o})}}),e}var Ni=z(function(){return navigator.product})=="ReactNative",nr=typeof Symbol=="function"&&typeof Symbol.for=="function",ir=typeof z(function(){return window.document.createElement})=="function",Si=z(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,Ai=(ir||Ni)&&!Si;function nt(t){return t!==null&&typeof t=="object"}function Ii(t){t===void 0&&(t=[]);var e={};return t.forEach(function(r){e[r.name.value]=r}),e}function Ci(t,e){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{var r=t.name.value;if(typeof e=="function")return e(r);var n=e&&e[r];return N(n,114,r),n||null}default:return null}}function ki(){}class or{constructor(e=1/0,r=ki){this.max=e,this.dispose=r,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}get size(){return this.map.size}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:i}=r;i&&(i.older=n),n&&(n.newer=i),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=i)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const r=this.map.get(e);return r?(r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.map.delete(e),this.dispose(r.value,e),!0):!1}}function it(){}const Di=it,wi=typeof WeakRef!="undefined"?WeakRef:function(t){return{deref:()=>t}},Ri=typeof WeakMap!="undefined"?WeakMap:Map,Pi=typeof FinalizationRegistry!="undefined"?FinalizationRegistry:function(){return{register:it,unregister:it}},Li=10024;class ar{constructor(e=1/0,r=Di){this.max=e,this.dispose=r,this.map=new Ri,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const n=this.unfinalizedNodes.values();for(let i=0;i<Li;i++){const o=n.next().value;if(!o)break;this.unfinalizedNodes.delete(o);const a=o.key;delete o.key,o.keyRef=new wi(a),this.registry.register(a,o,o)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Pi(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:i}=r;i&&(i.older=n),n&&(n.newer=i),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=i)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const r=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,r),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),r&&this.map.delete(r)}delete(e){const r=this.map.get(e);return r?(this.deleteNode(r),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var ot=new WeakSet;function sr(t){t.size<=(t.max||-1)||ot.has(t)||(ot.add(t),setTimeout(function(){t.clean(),ot.delete(t)},100))}var Fi=function(t,e){var r=new ar(t,e);return r.set=function(n,i){var o=ar.prototype.set.call(this,n,i);return sr(this),o},r},Mi=function(t,e){var r=new or(t,e);return r.set=function(n,i){var o=or.prototype.set.call(this,n,i);return sr(this),o},r},Ui=Symbol.for("apollo.cacheSize"),cr=b({},Ie[Ui]),Bi={};function lr(t,e){Bi[t]=e}var ur=Object.assign(function(e){return JSON.stringify(e,ji)},{reset:function(){ue=new Mi(cr.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&lr("canonicalStringify",function(){return ue.size});var ue;ur.reset();function ji(t,e){if(e&&typeof e=="object"){var r=Object.getPrototypeOf(e);if(r===Object.prototype||r===null){var n=Object.keys(e);if(n.every(Vi))return e;var i=JSON.stringify(n),o=ue.get(i);if(!o){n.sort();var a=JSON.stringify(n);o=ue.get(a)||n,ue.set(i,o),ue.set(a,o)}var s=Object.create(r);return o.forEach(function(c){s[c]=e[c]}),s}}return e}function Vi(t,e,r){return e===0||r[e-1]<=t}var qi=["connection","include","skip","client","rest","export","nonreactive"],ge=ur;Object.assign(function(t,e,r){if(e&&r&&r.connection&&r.connection.key)if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(s){i[s]=e[s]}),"".concat(r.connection.key,"(").concat(ge(i),")")}else return r.connection.key;var o=t;if(e){var a=ge(e);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(s){qi.indexOf(s)===-1&&(r[s]&&Object.keys(r[s]).length?o+="@".concat(s,"(").concat(ge(r[s]),")"):o+="@".concat(s))}),o},{setStringify:function(t){var e=ge;return ge=t,e}});function Qi(t){return t.alias?t.alias.value:t.name.value}function zi(t){return t.kind==="Field"}function fr(t){N(t&&t.kind==="Document",115);var e=t.definitions.filter(function(r){return r.kind!=="FragmentDefinition"}).map(function(r){if(r.kind!=="OperationDefinition")throw Vt(116,r.kind);return r});return N(e.length<=1,117,e.length),t}function hr(t){return fr(t),t.definitions.filter(function(e){return e.kind==="OperationDefinition"})[0]}function Gi(t){return t.definitions.filter(function(e){return e.kind==="FragmentDefinition"})}function Yi(t){var e=hr(t);return N(e&&e.operation==="query",118),e}function Hi(t){fr(t);for(var e,r=0,n=t.definitions;r<n.length;r++){var i=n[r];if(i.kind==="OperationDefinition"){var o=i.operation;if(o==="query"||o==="mutation"||o==="subscription")return i}i.kind==="FragmentDefinition"&&!e&&(e=i)}if(e)return e;throw Vt(122)}let R=null;const dr={};let Wi=1;const $i=()=>class{constructor(){this.id=["slot",Wi++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=R;e;e=e.parent)if(this.id in e.slots){const r=e.slots[this.id];if(r===dr)break;return e!==R&&(R.slots[this.id]=r),!0}return R&&(R.slots[this.id]=dr),!1}getValue(){if(this.hasValue())return R.slots[this.id]}withValue(e,r,n,i){const o={__proto__:null,[this.id]:e},a=R;R={parent:a,slots:o};try{return r.apply(i,n)}finally{R=a}}static bind(e){const r=R;return function(){const n=R;try{return R=r,e.apply(this,arguments)}finally{R=n}}}static noContext(e,r,n){if(R){const i=R;try{return R=null,e.apply(n,r)}finally{R=i}}else return e.apply(n,r)}};function pr(t){try{return t()}catch{}}const at="@wry/context:Slot",mr=pr(()=>globalThis)||pr(()=>global)||Object.create(null),Re=mr[at]||Array[at]||(function(t){try{Object.defineProperty(mr,at,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}})($i()),{bind:Ms,noContext:Us}=Re;new Re;function yr(t){return Array.isArray(t)&&t.length>0}function Xi(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=Ki(t))||e){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ki(t,e){if(t){if(typeof t=="string")return vr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vr(t,e)}}function vr(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function gr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function st(t,e,r){return e&&gr(t.prototype,e),r&&gr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var ct=function(){return typeof Symbol=="function"},lt=function(t){return ct()&&!!Symbol[t]},ut=function(t){return lt(t)?Symbol[t]:"@@"+t};ct()&&!lt("observable")&&(Symbol.observable=Symbol("observable"));var Zi=ut("iterator"),ft=ut("observable"),Er=ut("species");function Pe(t,e){var r=t[e];if(r!=null){if(typeof r!="function")throw new TypeError(r+" is not a function");return r}}function Ee(t){var e=t.constructor;return e!==void 0&&(e=e[Er],e===null&&(e=void 0)),e!==void 0?e:te}function Ji(t){return t instanceof te}function fe(t){fe.log?fe.log(t):setTimeout(function(){throw t})}function Le(t){Promise.resolve().then(function(){try{t()}catch(e){fe(e)}})}function br(t){var e=t._cleanup;if(e!==void 0&&(t._cleanup=void 0,!!e))try{if(typeof e=="function")e();else{var r=Pe(e,"unsubscribe");r&&r.call(e)}}catch(n){fe(n)}}function ht(t){t._observer=void 0,t._queue=void 0,t._state="closed"}function eo(t){var e=t._queue;if(e){t._queue=void 0,t._state="ready";for(var r=0;r<e.length&&(xr(t,e[r].type,e[r].value),t._state!=="closed");++r);}}function xr(t,e,r){t._state="running";var n=t._observer;try{var i=Pe(n,e);switch(e){case"next":i&&i.call(n,r);break;case"error":if(ht(t),i)i.call(n,r);else throw r;break;case"complete":ht(t),i&&i.call(n);break}}catch(o){fe(o)}t._state==="closed"?br(t):t._state==="running"&&(t._state="ready")}function dt(t,e,r){if(t._state!=="closed"){if(t._state==="buffering"){t._queue.push({type:e,value:r});return}if(t._state!=="ready"){t._state="buffering",t._queue=[{type:e,value:r}],Le(function(){return eo(t)});return}xr(t,e,r)}}var to=(function(){function t(r,n){this._cleanup=void 0,this._observer=r,this._queue=void 0,this._state="initializing";var i=new ro(this);try{this._cleanup=n.call(void 0,i)}catch(o){i.error(o)}this._state==="initializing"&&(this._state="ready")}var e=t.prototype;return e.unsubscribe=function(){this._state!=="closed"&&(ht(this),br(this))},st(t,[{key:"closed",get:function(){return this._state==="closed"}}]),t})(),ro=(function(){function t(r){this._subscription=r}var e=t.prototype;return e.next=function(n){dt(this._subscription,"next",n)},e.error=function(n){dt(this._subscription,"error",n)},e.complete=function(){dt(this._subscription,"complete")},st(t,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),t})(),te=(function(){function t(r){if(!(this instanceof t))throw new TypeError("Observable cannot be called as a function");if(typeof r!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=r}var e=t.prototype;return e.subscribe=function(n){return(typeof n!="object"||n===null)&&(n={next:n,error:arguments[1],complete:arguments[2]}),new to(n,this._subscriber)},e.forEach=function(n){var i=this;return new Promise(function(o,a){if(typeof n!="function"){a(new TypeError(n+" is not a function"));return}function s(){c.unsubscribe(),o()}var c=i.subscribe({next:function(l){try{n(l,s)}catch(f){a(f),c.unsubscribe()}},error:a,complete:o})})},e.map=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var o=Ee(this);return new o(function(a){return i.subscribe({next:function(s){try{s=n(s)}catch(c){return a.error(c)}a.next(s)},error:function(s){a.error(s)},complete:function(){a.complete()}})})},e.filter=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var o=Ee(this);return new o(function(a){return i.subscribe({next:function(s){try{if(!n(s))return}catch(c){return a.error(c)}a.next(s)},error:function(s){a.error(s)},complete:function(){a.complete()}})})},e.reduce=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var o=Ee(this),a=arguments.length>1,s=!1,c=arguments[1],l=c;return new o(function(f){return i.subscribe({next:function(h){var p=!s;if(s=!0,!p||a)try{l=n(l,h)}catch(y){return f.error(y)}else l=h},error:function(h){f.error(h)},complete:function(){if(!s&&!a)return f.error(new TypeError("Cannot reduce an empty sequence"));f.next(l),f.complete()}})})},e.concat=function(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=Ee(this);return new s(function(c){var l,f=0;function h(p){l=p.subscribe({next:function(y){c.next(y)},error:function(y){c.error(y)},complete:function(){f===o.length?(l=void 0,c.complete()):h(s.from(o[f++]))}})}return h(n),function(){l&&(l.unsubscribe(),l=void 0)}})},e.flatMap=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var o=Ee(this);return new o(function(a){var s=[],c=i.subscribe({next:function(f){if(n)try{f=n(f)}catch(p){return a.error(p)}var h=o.from(f).subscribe({next:function(p){a.next(p)},error:function(p){a.error(p)},complete:function(){var p=s.indexOf(h);p>=0&&s.splice(p,1),l()}});s.push(h)},error:function(f){a.error(f)},complete:function(){l()}});function l(){c.closed&&s.length===0&&a.complete()}return function(){s.forEach(function(f){return f.unsubscribe()}),c.unsubscribe()}})},e[ft]=function(){return this},t.from=function(n){var i=typeof this=="function"?this:t;if(n==null)throw new TypeError(n+" is not an object");var o=Pe(n,ft);if(o){var a=o.call(n);if(Object(a)!==a)throw new TypeError(a+" is not an object");return Ji(a)&&a.constructor===i?a:new i(function(s){return a.subscribe(s)})}if(lt("iterator")&&(o=Pe(n,Zi),o))return new i(function(s){Le(function(){if(!s.closed){for(var c=Xi(o.call(n)),l;!(l=c()).done;){var f=l.value;if(s.next(f),s.closed)return}s.complete()}})});if(Array.isArray(n))return new i(function(s){Le(function(){if(!s.closed){for(var c=0;c<n.length;++c)if(s.next(n[c]),s.closed)return;s.complete()}})});throw new TypeError(n+" is not observable")},t.of=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=typeof this=="function"?this:t;return new a(function(s){Le(function(){if(!s.closed){for(var c=0;c<i.length;++c)if(s.next(i[c]),s.closed)return;s.complete()}})})},st(t,null,[{key:Er,get:function(){return this}}]),t})();ct()&&Object.defineProperty(te,Symbol("extensions"),{value:{symbol:ft,hostReportError:fe},configurable:!0});function no(t){var e,r=t.Symbol;if(typeof r=="function")if(r.observable)e=r.observable;else{typeof r.for=="function"?e=r.for("https://github.com/benlesh/symbol-observable"):e=r("https://github.com/benlesh/symbol-observable");try{r.observable=e}catch{}}else e="@@observable";return e}var he;typeof self!="undefined"?he=self:typeof window!="undefined"?he=window:typeof global!="undefined"?he=global:typeof module!="undefined"?he=module:he=Function("return this")(),no(he);var _r=te.prototype,Tr="@@observable";_r[Tr]||(_r[Tr]=function(){return this});function io(t){return t.catch(function(){}),t}var oo=Object.prototype.toString;function ao(t){return pt(t)}function pt(t,e){switch(oo.call(t)){case"[object Array]":{if(e=e||new Map,e.has(t))return e.get(t);var r=t.slice(0);return e.set(t,r),r.forEach(function(i,o){r[o]=pt(i,e)}),r}case"[object Object]":{if(e=e||new Map,e.has(t))return e.get(t);var n=Object.create(Object.getPrototypeOf(t));return e.set(t,n),Object.keys(t).forEach(function(i){n[i]=pt(t[i],e)}),n}default:return t}}function so(t){var e=new Set([t]);return e.forEach(function(r){nt(r)&&co(r)===r&&Object.getOwnPropertyNames(r).forEach(function(n){nt(r[n])&&e.add(r[n])})}),t}function co(t){if(globalThis.__DEV__!==!1&&!Object.isFrozen(t))try{Object.freeze(t)}catch(e){if(e instanceof TypeError)return null;throw e}return t}function Or(t){return globalThis.__DEV__!==!1&&so(t),t}function Nr(t,e,r){var n=[];t.forEach(function(i){return i[e]&&n.push(i)}),n.forEach(function(i){return i[e](r)})}function lo(t){function e(r){Object.defineProperty(t,r,{value:te})}return nr&&Symbol.species&&e(Symbol.species),e("@@species"),t}function be(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Object.create(null);return t.forEach(function(n){n&&Object.keys(n).forEach(function(i){var o=n[i];o!==void 0&&(r[i]=o)})}),r}function Sr(t,e){return be(t,e,e.variables&&{variables:be(b(b({},t&&t.variables),e.variables))})}var mt,uo=Symbol.for("apollo.deprecations"),Ar=Symbol.for("apollo.deprecations.slot"),yt=Ie,vt=(mt=yt[Ar])!==null&&mt!==void 0?mt:yt[Ar]=new Re;function fo(t){return yt[uo]||(vt.getValue()||[]).includes(t)}function H(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return vt.withValue.apply(vt,Z([Array.isArray(t)?t:[t]],e,!1))}function Ir(t,e,r,n){n===void 0&&(n="Please remove this option."),re(e,function(){e in t&&globalThis.__DEV__!==!1&&N.warn(103,r,e,n)})}function re(t,e){fo(t)||e()}function ho(t){return t.hasOwnProperty("graphQLErrors")}var po=function(t){var e=Z(Z(Z([],t.graphQLErrors,!0),t.clientErrors,!0),t.protocolErrors,!0);return t.networkError&&e.push(t.networkError),e.map(function(r){return nt(r)&&r.message||"Error message not found."}).join(`
23
+ `)},de=(function(t){We(e,t);function e(r){var n=r.graphQLErrors,i=r.protocolErrors,o=r.clientErrors,a=r.networkError,s=r.errorMessage,c=r.extraInfo,l=t.call(this,s)||this;return l.name="ApolloError",l.graphQLErrors=n||[],l.protocolErrors=i||[],l.clientErrors=o||[],l.networkError=a||null,l.message=s||po(l),l.extraInfo=c,l.cause=Z(Z(Z([a],n||[],!0),i||[],!0),o||[],!0).find(function(f){return!!f})||null,l.__proto__=e.prototype,l}return e})(Error);const{toString:Cr,hasOwnProperty:mo}=Object.prototype,kr=Function.prototype.toString,gt=new Map;function w(t,e){try{return Et(t,e)}finally{gt.clear()}}function Et(t,e){if(t===e)return!0;const r=Cr.call(t),n=Cr.call(e);if(r!==n)return!1;switch(r){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(wr(t,e))return!0;const i=Dr(t),o=Dr(e),a=i.length;if(a!==o.length)return!1;for(let s=0;s<a;++s)if(!mo.call(e,i[s]))return!1;for(let s=0;s<a;++s){const c=i[s];if(!Et(t[c],e[c]))return!1}return!0}case"[object Error]":return t.name===e.name&&t.message===e.message;case"[object Number]":if(t!==t)return e!==e;case"[object Boolean]":case"[object Date]":return+t==+e;case"[object RegExp]":case"[object String]":return t==`${e}`;case"[object Map]":case"[object Set]":{if(t.size!==e.size)return!1;if(wr(t,e))return!0;const i=t.entries(),o=r==="[object Map]";for(;;){const a=i.next();if(a.done)break;const[s,c]=a.value;if(!e.has(s)||o&&!Et(c,e.get(s)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),e=new Uint8Array(e);case"[object DataView]":{let i=t.byteLength;if(i===e.byteLength)for(;i--&&t[i]===e[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const i=kr.call(t);return i!==kr.call(e)?!1:!go(i,vo)}}return!1}function Dr(t){return Object.keys(t).filter(yo,t)}function yo(t){return this[t]!==void 0}const vo="{ [native code] }";function go(t,e){const r=t.length-e.length;return r>=0&&t.indexOf(e,r)===r}function wr(t,e){let r=gt.get(t);if(r){if(r.has(e))return!0}else gt.set(t,r=new Set);return r.add(e),!1}function Eo(t,e,r,n){var i=e.data,o=Se(e,["data"]),a=r.data,s=Se(r,["data"]);return w(o,s)&&Fe(Hi(t).selectionSet,i,a,{fragmentMap:Ii(Gi(t)),variables:n})}function Fe(t,e,r,n){if(e===r)return!0;var i=new Set;return t.selections.every(function(o){if(i.has(o)||(i.add(o),!_i(o,n.variables))||Rr(o))return!0;if(zi(o)){var a=Qi(o),s=e&&e[a],c=r&&r[a],l=o.selectionSet;if(!l)return w(s,c);var f=Array.isArray(s),h=Array.isArray(c);if(f!==h)return!1;if(f&&h){var p=s.length;if(c.length!==p)return!1;for(var y=0;y<p;++y)if(!Fe(l,s[y],c[y],n))return!1;return!0}return Fe(l,s,c,n)}else{var m=Ci(o,n.fragmentMap);if(m)return Rr(m)?!0:Fe(m.selectionSet,e,r,n)}})}function Rr(t){return!!t.directives&&t.directives.some(bo)}function bo(t){return t.name.value==="nonreactive"}var I;(function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"})(I||(I={}));function Me(t){return t?t<7:!1}var Pr=Object.assign,xo=Object.hasOwnProperty,Lr=(function(t){We(e,t);function e(r){var n=r.queryManager,i=r.queryInfo,o=r.options,a=this,s=e.inactiveOnCreation.getValue();a=t.call(this,function(v){a._getOrCreateQuery();try{var S=v._subscription._observer;S&&!S.error&&(S.error=_o)}catch{}var L=!a.observers.size;a.observers.add(v);var A=a.last;return A&&A.error?v.error&&v.error(A.error):A&&A.result&&v.next&&v.next(a.maskResult(A.result)),L&&a.reobserve().catch(function(){}),function(){a.observers.delete(v)&&!a.observers.size&&a.tearDownQuery()}})||this,a.observers=new Set,a.subscriptions=new Set,a.dirty=!1,a._getOrCreateQuery=function(){return s&&(n.queries.set(a.queryId,i),s=!1),a.queryManager.getOrCreateQuery(a.queryId)},a.queryInfo=i,a.queryManager=n,a.waitForOwnResult=bt(o.fetchPolicy),a.isTornDown=!1,a.subscribeToMore=a.subscribeToMore.bind(a),a.maskResult=a.maskResult.bind(a);var c=n.defaultOptions.watchQuery,l=c===void 0?{}:c,f=l.fetchPolicy,h=f===void 0?"cache-first":f,p=o.fetchPolicy,y=p===void 0?h:p,m=o.initialFetchPolicy,T=m===void 0?y==="standby"?h:y:m;a.options=b(b({},o),{initialFetchPolicy:T,fetchPolicy:y}),a.queryId=i.queryId||n.generateQueryId();var E=hr(a.query);return a.queryName=E&&E.name&&E.name.value,a}return Object.defineProperty(e.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var r=this;return globalThis.__DEV__!==!1&&re("observableQuery.result",function(){globalThis.__DEV__!==!1&&N.warn(23)}),new Promise(function(n,i){var o={next:function(s){n(s),r.observers.delete(o),r.observers.size||r.queryManager.removeQuery(r.queryId),setTimeout(function(){a.unsubscribe()},0)},error:i},a=r.subscribe(o)})},e.prototype.resetDiff=function(){this.queryInfo.resetDiff()},e.prototype.getCurrentFullResult=function(r){var n=this;r===void 0&&(r=!0);var i=H("getLastResult",function(){return n.getLastResult(!0)}),o=this.queryInfo.networkStatus||i&&i.networkStatus||I.ready,a=b(b({},i),{loading:Me(o),networkStatus:o}),s=this.options.fetchPolicy,c=s===void 0?"cache-first":s;if(!(bt(c)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var l=this.queryInfo.getDiff();(l.complete||this.options.returnPartialData)&&(a.data=l.result),w(a.data,{})&&(a.data=void 0),l.complete?(delete a.partial,l.complete&&a.networkStatus===I.loading&&(c==="cache-first"||c==="cache-only")&&(a.networkStatus=I.ready,a.loading=!1)):a.partial=!0,a.networkStatus===I.ready&&(a.error||a.errors)&&(a.networkStatus=I.error),globalThis.__DEV__!==!1&&!l.complete&&!this.options.partialRefetch&&!a.loading&&!a.data&&!a.error&&To(l.missing)}return r&&this.updateLastResult(a),a},e.prototype.getCurrentResult=function(r){return r===void 0&&(r=!0),this.maskResult(this.getCurrentFullResult(r))},e.prototype.isDifferentFromLastResult=function(r,n){if(!this.last)return!0;var i=this.queryManager.getDocumentInfo(this.query),o=this.queryManager.dataMasking,a=o?i.nonReactiveQuery:this.query,s=o||i.hasNonreactiveDirective?!Eo(a,this.last.result,r,this.variables):!w(this.last.result,r);return s||n&&!w(this.last.variables,n)},e.prototype.getLast=function(r,n){var i=this.last;if(i&&i[r]&&(!n||w(i.variables,this.variables)))return i[r]},e.prototype.getLastResult=function(r){return globalThis.__DEV__!==!1&&re("getLastResult",function(){globalThis.__DEV__!==!1&&N.warn(24)}),this.getLast("result",r)},e.prototype.getLastError=function(r){return globalThis.__DEV__!==!1&&re("getLastError",function(){globalThis.__DEV__!==!1&&N.warn(25)}),this.getLast("error",r)},e.prototype.resetLastResults=function(){globalThis.__DEV__!==!1&&re("resetLastResults",function(){globalThis.__DEV__!==!1&&N.warn(26)}),delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&N.warn(27),this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(r){var n,i={pollInterval:0},o=this.options.fetchPolicy;if(o==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",globalThis.__DEV__!==!1&&r&&xo.call(r,"variables")){var a=Yi(this.query),s=a.variableDefinitions;(!s||!s.some(function(c){return c.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&N.warn(28,r,((n=a.name)===null||n===void 0?void 0:n.value)||a)}return r&&!w(this.options.variables,r)&&(i.variables=this.options.variables=b(b({},this.options.variables),r)),this.queryInfo.resetLastWrite(),this.reobserve(i,I.refetch)},e.prototype.fetchMore=function(r){var n=this,i=b(b({},r.query?r:b(b(b(b({},this.options),{query:this.options.query}),r),{variables:b(b({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var o=this.queryManager.generateQueryId();this.lastQuery=r.query?this.transformDocument(this.options.query):i.query;var a=this.queryInfo,s=a.networkStatus;a.networkStatus=I.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var c=new Set,l=r==null?void 0:r.updateQuery,f=this.options.fetchPolicy!=="no-cache";return f||N(l,29),this.queryManager.fetchQuery(o,i,I.fetchMore).then(function(h){if(n.queryManager.removeQuery(o),a.networkStatus===I.fetchMore&&(a.networkStatus=s),f)n.queryManager.cache.batch({update:function(m){var T=r.updateQuery;T?m.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(E){return T(E,{fetchMoreResult:h.data,variables:i.variables})}):m.writeQuery({query:i.query,variables:i.variables,data:h.data})},onWatchUpdated:function(m){c.add(m.query)}});else{var p=n.getLast("result"),y=l(p.data,{fetchMoreResult:h.data,variables:i.variables});n.reportResult(b(b({},p),{networkStatus:s,loading:Me(s),data:y}),n.variables)}return n.maskResult(h)}).finally(function(){f&&!c.has(n.query)&&n.reobserveCacheFirst()})},e.prototype.subscribeToMore=function(r){var n=this,i=this.queryManager.startGraphQLSubscription({query:r.document,variables:r.variables,context:r.context}).subscribe({next:function(o){var a=r.updateQuery;a&&n.updateQuery(function(s,c){return a(s,b({subscriptionData:o},c))})},error:function(o){if(r.onError){r.onError(o);return}globalThis.__DEV__!==!1&&N.error(30,o)}});return this.subscriptions.add(i),function(){n.subscriptions.delete(i)&&i.unsubscribe()}},e.prototype.setOptions=function(r){return globalThis.__DEV__!==!1&&(Ir(r,"canonizeResults","setOptions"),re("setOptions",function(){globalThis.__DEV__!==!1&&N.warn(31)})),this.reobserve(r)},e.prototype.silentSetOptions=function(r){var n=be(this.options,r||{});Pr(this.options,n)},e.prototype.setVariables=function(r){var n=this;return w(this.variables,r)?this.observers.size?H("observableQuery.result",function(){return n.result()}):Promise.resolve():(this.options.variables=r,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:r},I.setVariables):Promise.resolve())},e.prototype.updateQuery=function(r){var n=this.queryManager,i=n.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),o=i.result,a=i.complete,s=r(o,{variables:this.variables,complete:!!a,previousData:o});s&&(n.cache.writeQuery({query:this.options.query,data:s,variables:this.variables}),n.broadcastQueries())},e.prototype.startPolling=function(r){this.options.pollInterval=r,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(r,n){if(n.nextFetchPolicy){var i=n.fetchPolicy,o=i===void 0?"cache-first":i,a=n.initialFetchPolicy,s=a===void 0?o:a;o==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy(o,{reason:r,options:n,observable:this,initialFetchPolicy:s}):r==="variables-changed"?n.fetchPolicy=s:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy},e.prototype.fetch=function(r,n,i){var o=this._getOrCreateQuery();return o.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(o,r,n,i)},e.prototype.updatePolling=function(){var r=this;if(!this.queryManager.ssrMode){var n=this,i=n.pollingInfo,o=n.options.pollInterval;if(!o||!this.hasObservers()){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===o)){N(o,32);var a=i||(this.pollingInfo={});a.interval=o;var s=function(){var l,f;r.pollingInfo&&(!Me(r.queryInfo.networkStatus)&&!(!((f=(l=r.options).skipPollAttempt)===null||f===void 0)&&f.call(l))?r.reobserve({fetchPolicy:r.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},I.poll).then(c,c):c())},c=function(){var l=r.pollingInfo;l&&(clearTimeout(l.timeout),l.timeout=setTimeout(s,l.interval))};c()}}},e.prototype.updateLastResult=function(r,n){var i=this;n===void 0&&(n=this.variables);var o=H("getLastError",function(){return i.getLastError()});return o&&this.last&&!w(n,this.last.variables)&&(o=void 0),this.last=b({result:this.queryManager.assumeImmutableResults?r:ao(r),variables:n},o?{error:o}:null)},e.prototype.reobserveAsConcast=function(r,n){var i=this;this.isTornDown=!1;var o=n===I.refetch||n===I.fetchMore||n===I.poll,a=this.options.variables,s=this.options.fetchPolicy,c=be(this.options,r||{}),l=o?c:Pr(this.options,c),f=this.transformDocument(l.query);this.lastQuery=f,o||(this.updatePolling(),r&&r.variables&&!w(r.variables,a)&&l.fetchPolicy!=="standby"&&(l.fetchPolicy===s||typeof l.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",l),n===void 0&&(n=I.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=bt(l.fetchPolicy));var h=function(){i.concast===m&&(i.waitForOwnResult=!1)},p=l.variables&&b({},l.variables),y=this.fetch(l,n,f),m=y.concast,T=y.fromLink,E={next:function(v){w(i.variables,p)&&(h(),i.reportResult(v,p))},error:function(v){w(i.variables,p)&&(ho(v)||(v=new de({networkError:v})),h(),i.reportError(v,p))}};return!o&&(T||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=m,this.observer=E),m.addObserver(E),m},e.prototype.reobserve=function(r,n){return io(this.reobserveAsConcast(r,n).promise.then(this.maskResult))},e.prototype.resubscribeAfterError=function(){for(var r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=this.last;H("resetLastResults",function(){return r.resetLastResults()});var a=this.subscribe.apply(this,n);return this.last=o,a},e.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},e.prototype.reportResult=function(r,n){var i=this,o=H("getLastError",function(){return i.getLastError()}),a=this.isDifferentFromLastResult(r,n);(o||!r.partial||this.options.returnPartialData)&&this.updateLastResult(r,n),(o||a)&&Nr(this.observers,"next",this.maskResult(r))},e.prototype.reportError=function(r,n){var i=this,o=b(b({},H("getLastResult",function(){return i.getLastResult()})),{error:r,errors:r.graphQLErrors,networkStatus:I.error,loading:!1});this.updateLastResult(o,n),Nr(this.observers,"error",this.last.error=r)},e.prototype.hasObservers=function(){return this.observers.size>0},e.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(r){return r.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e.prototype.transformDocument=function(r){return this.queryManager.transform(r)},e.prototype.maskResult=function(r){return r&&"data"in r?b(b({},r),{data:this.queryManager.maskOperation({document:this.query,data:r.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):r},e.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},e.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},e.prototype.scheduleNotify=function(){var r=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0)))},e.prototype.notify=function(){if(this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy=="cache-only"||this.options.fetchPolicy=="cache-and-network"||!Me(this.queryInfo.networkStatus))){var r=this.queryInfo.getDiff();r.fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()}this.dirty=!1},e.prototype.reobserveCacheFirst=function(){var r=this.options,n=r.fetchPolicy,i=r.nextFetchPolicy;return n==="cache-and-network"||n==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(o,a){return this.nextFetchPolicy=i,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(o,a):n}}):this.reobserve()},e.inactiveOnCreation=new Re,e})(te);lo(Lr);function _o(t){globalThis.__DEV__!==!1&&N.error(33,t.message,t.stack)}function To(t){globalThis.__DEV__!==!1&&t&&globalThis.__DEV__!==!1&&N.debug(34,t)}function bt(t){return t==="network-only"||t==="no-cache"||t==="standby"}var Ue=new Map,xt=new Map,Fr=!0,Be=!1;function Mr(t){return t.replace(/[\s,]+/g," ").trim()}function Oo(t){return Mr(t.source.body.substring(t.start,t.end))}function No(t){var e=new Set,r=[];return t.definitions.forEach(function(n){if(n.kind==="FragmentDefinition"){var i=n.name.value,o=Oo(n.loc),a=xt.get(i);a&&!a.has(o)?Fr&&console.warn("Warning: fragment with name "+i+` already exists.
24
24
  graphql-tag enforces all fragment names across your application to be unique; read more about
25
- this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s||Ct.set(i,s=new Set),s.add(o),t.has(o)||(t.add(o),r.push(n))}else r.push(n)}),E(E({},e),{definitions:r})}function $o(e){var t=new Set(e.definitions);t.forEach(function(n){n.loc&&delete n.loc,Object.keys(n).forEach(function(i){var o=n[i];o&&typeof o=="object"&&t.add(o)})});var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}function Xo(e){var t=tn(e);if(!ze.has(t)){var r=qi(e,{experimentalFragmentVariables:qe,allowLegacyFragmentVariables:qe});if(!r||r.kind!=="Document")throw new Error("Not a valid GraphQL document.");ze.set(t,$o(Ho(r)))}return ze.get(t)}function z(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];typeof e=="string"&&(e=[e]);var n=e[0];return t.forEach(function(i,o){i&&i.kind==="Document"?n+=i.loc.source.body:n+=i,n+=e[o+1]}),Xo(n)}function Ko(){ze.clear(),Ct.clear()}function Zo(){en=!1}function Jo(){qe=!0}function es(){qe=!1}var ge={gql:z,resetCaches:Ko,disableFragmentWarnings:Zo,enableExperimentalFragmentVariables:Jo,disableExperimentalFragmentVariables:es};(function(e){e.gql=ge.gql,e.resetCaches=ge.resetCaches,e.disableFragmentWarnings=ge.disableFragmentWarnings,e.enableExperimentalFragmentVariables=ge.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=ge.disableExperimentalFragmentVariables})(z||(z={})),z.default=z;var kt={exports:{}},rn;function ts(){return rn||(rn=1,(function(e){e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,he)})(kt)),kt.exports}var x=ts();const nn=ai({__proto__:null,default:ci(x)},[x]);var on=_r?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function sn(){T("createContext"in nn,69);var e=x.createContext[on];return e||(Object.defineProperty(x.createContext,on,{value:e=x.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}function Qe(e){var t=x.useContext(sn()),r=e||t.client;return T(!!r,78),r}var an=!1,rs="useSyncExternalStore",ns=nn[rs],cn=ns||(function(e,t,r){var n=t();globalThis.__DEV__!==!1&&!an&&n!==t()&&(an=!0,globalThis.__DEV__!==!1&&T.error(91));var i=x.useState({inst:{value:n,getSnapshot:t}}),o=i[0].inst,s=i[1];return Xi?x.useLayoutEffect(function(){Object.assign(o,{value:n,getSnapshot:t}),Dt(o)&&s({inst:o})},[e,n,t]):Object.assign(o,{value:n,getSnapshot:t}),x.useEffect(function(){return Dt(o)&&s({inst:o}),e(function(){Dt(o)&&s({inst:o})})},[e]),n});function Dt(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch{return!0}}var F;(function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"})(F||(F={}));var $;function un(e){var t;switch(e){case F.Query:t="Query";break;case F.Mutation:t="Mutation";break;case F.Subscription:t="Subscription";break}return t}function ln(e){H("parser",function(){globalThis.__DEV__!==!1&&T.warn(93)}),$||($=new oo(Nr.parser||1e3));var t=$.get(e);if(t)return t;var r,n,i;T(!!e&&!!e.kind,94,e);for(var o=[],s=[],a=[],c=[],u=0,h=e.definitions;u<h.length;u++){var d=h[u];if(d.kind==="FragmentDefinition"){o.push(d);continue}if(d.kind==="OperationDefinition")switch(d.operation){case"query":s.push(d);break;case"mutation":a.push(d);break;case"subscription":c.push(d);break}}T(!o.length||s.length||a.length||c.length,95),T(s.length+a.length+c.length<=1,96,e,s.length,c.length,a.length),n=s.length?F.Query:F.Mutation,!s.length&&!a.length&&(n=F.Subscription);var p=s.length?s:a.length?a:c;T(p.length===1,97,e,p.length);var m=p[0];r=m.variableDefinitions||[],m.name&&m.name.kind==="Name"?i=m.name.value:i="data";var y={name:i,type:n,variables:r};return $.set(e,y),y}ln.resetCache=function(){$=void 0},globalThis.__DEV__!==!1&&Ir("parser",function(){return $?$.size:0});function Rt(e,t){var r=V("parser",ln,[e]),n=un(t),i=un(r.type);T(r.type===t,98,n,n,i)}function is(e,t){var r=x.useRef(void 0);return(!r.current||!C(r.current.deps,t))&&(r.current={value:e(),deps:t}),r.current.value}var Pt=xr?x.useLayoutEffect:x.useEffect;function ce(e,t,r,n){"use no memo";n===void 0&&(n="Please remove this option.");var i=x.useRef(!1);globalThis.__DEV__!==!1&&t in e&&!i.current&&(Yr(e,t,r,n),i.current=!0)}var os=Symbol.for("apollo.hook.wrappers");function ss(e,t,r){var n=r.queryManager,i=n&&n[os],o=i&&i[e];return o?o(t):t}var as=Object.prototype.hasOwnProperty;function fn(){}var Ge=Symbol();function cs(e,t){return t===void 0&&(t=Object.create(null)),ss("useQuery",us,Qe(t&&t.client))(e,t)}function us(e,t){globalThis.__DEV__!==!1&&(ce(t,"canonizeResults","useQuery"),ce(t,"partialRefetch","useQuery"),ce(t,"defaultOptions","useQuery","Pass the options directly to the hook instead."),ce(t,"onCompleted","useQuery","If your `onCompleted` callback sets local state, switch to use derived state using `data` returned from the hook instead. Use `useEffect` to perform side-effects as a result of updates to `data`."),ce(t,"onError","useQuery","If your `onError` callback sets local state, switch to use derived state using `data`, `error` or `errors` returned from the hook instead. Use `useEffect` if you need to perform side-effects as a result of updates to `data`, `error` or `errors`."));var r=fs(e,t),n=r.result,i=r.obsQueryFields;return x.useMemo(function(){return E(E({},n),i)},[n,i])}function ls(e,t,r,n,i){function o(d){var p;Rt(t,F.Query);var m={client:e,query:t,observable:n&&n.getSSRObservable(i())||Jr.inactiveOnCreation.withValue(!n,function(){return V(["canonizeResults","partialRefetch"],function(){return e.watchQuery(hn(void 0,e,r,i()))})}),resultData:{previousData:(p=d==null?void 0:d.resultData.current)===null||p===void 0?void 0:p.data}};return m}var s=x.useState(o),a=s[0],c=s[1];function u(d){var p,m;Object.assign(a.observable,(p={},p[Ge]=d,p));var y=a.resultData;c(E(E({},a),{query:d.query,resultData:Object.assign(y,{previousData:((m=y.current)===null||m===void 0?void 0:m.data)||y.previousData,current:void 0})}))}if(e!==a.client||t!==a.query){var h=o(a);return c(h),[h,u]}return[a,u]}function fs(e,t){var r=Qe(t.client),n=x.useContext(sn()).renderPromises,i=!!n,o=r.disableNetworkFetches,s=t.ssr!==!1&&!t.skip,a=t.partialRefetch,c=ys(r,e,t,i),u=ls(r,e,t,n,c),h=u[0],d=h.observable,p=h.resultData,m=u[1],y=c(d);ps(p,d,r,t,y);var O=x.useMemo(function(){return gs(d)},[d]);ds(d,n,s);var b=hs(p,d,r,t,y,o,a,i,{onCompleted:t.onCompleted||fn,onError:t.onError||fn});return{result:b,obsQueryFields:O,observable:d,resultData:p,client:r,onQueryExecuted:m}}function hs(e,t,r,n,i,o,s,a,c){var u=x.useRef(c);x.useEffect(function(){u.current=c});var h=(a||o)&&n.ssr===!1&&!n.skip?vn:n.skip||i.fetchPolicy==="standby"?gn:void 0,d=e.previousData,p=x.useMemo(function(){return h&&mn(h,d,t,r)},[r,t,h,d]);return cn(x.useCallback(function(m){if(a)return function(){};var y=function(){var g=e.current,S=t.getCurrentResult();g&&g.loading===S.loading&&g.networkStatus===S.networkStatus&&C(g.data,S.data)||Ft(S,e,t,r,s,m,u.current)},O=function(g){if(b.current.unsubscribe(),b.current=t.resubscribeAfterError(y,O),!as.call(g,"graphQLErrors"))throw g;var S=e.current;(!S||S&&S.loading||!C(g,S.error))&&Ft({data:S&&S.data,error:g,loading:!1,networkStatus:N.error},e,t,r,s,m,u.current)},b={current:t.subscribe(y,O)};return function(){setTimeout(function(){return b.current.unsubscribe()})}},[o,a,t,e,s,r]),function(){return p||dn(e,t,u.current,s,r)},function(){return p||dn(e,t,u.current,s,r)})}function ds(e,t,r){t&&r&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}function ps(e,t,r,n,i){var o;t[Ge]&&!C(t[Ge],i)&&(t.reobserve(hn(t,r,n,i)),e.previousData=((o=e.current)===null||o===void 0?void 0:o.data)||e.previousData,e.current=void 0),t[Ge]=i}function ys(e,t,r,n){r===void 0&&(r={});var i=r.skip;r.ssr,r.onCompleted,r.onError;var o=r.defaultOptions,s=Ce(r,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(a){var c=Object.assign(s,{query:t});return n&&(c.fetchPolicy==="network-only"||c.fetchPolicy==="cache-and-network")&&(c.fetchPolicy="cache-first"),c.variables||(c.variables={}),i?(c.initialFetchPolicy=c.initialFetchPolicy||c.fetchPolicy||pn(o,e.defaultOptions),c.fetchPolicy="standby"):c.fetchPolicy||(c.fetchPolicy=(a==null?void 0:a.options.initialFetchPolicy)||pn(o,e.defaultOptions)),c}}function hn(e,t,r,n){var i=[],o=t.defaultOptions.watchQuery;return o&&i.push(o),r.defaultOptions&&i.push(r.defaultOptions),i.push(ve(e&&e.options,n)),i.reduce(Qr)}function Ft(e,t,r,n,i,o,s){var a=t.current;a&&a.data&&(t.previousData=a.data),!e.error&&Pr(e.errors)&&(e.error=new ae({graphQLErrors:e.errors})),t.current=mn(vs(e,r,i),t.previousData,r,n),o(),ms(e,a==null?void 0:a.networkStatus,s)}function ms(e,t,r){if(!e.loading){var n=yn(e);Promise.resolve().then(function(){n?r.onError(n):e.data&&t!==e.networkStatus&&e.networkStatus===N.ready&&r.onCompleted(e.data)}).catch(function(i){globalThis.__DEV__!==!1&&T.warn(i)})}}function dn(e,t,r,n,i){return e.current||Ft(t.getCurrentResult(),e,t,i,n,function(){},r),e.current}function pn(e,t){var r;return(e==null?void 0:e.fetchPolicy)||((r=t==null?void 0:t.watchQuery)===null||r===void 0?void 0:r.fetchPolicy)||"cache-first"}function yn(e){return Pr(e.errors)?new ae({graphQLErrors:e.errors}):e.error}function mn(e,t,r,n){var i=e.data;e.partial;var o=Ce(e,["data","partial"]),s=E(E({data:i},o),{client:n,observable:r,variables:r.variables,called:e!==vn&&e!==gn,previousData:t});return s}function vs(e,t,r){return e.partial&&r&&!e.loading&&(!e.data||Object.keys(e.data).length===0)&&t.options.fetchPolicy!=="cache-only"?(t.refetch(),E(E({},e),{loading:!0,networkStatus:N.refetch})):e}var vn=zr({loading:!0,data:void 0,error:void 0,networkStatus:N.loading}),gn=zr({loading:!1,data:void 0,error:void 0,networkStatus:N.ready});function gs(e){return{refetch:e.refetch.bind(e),reobserve:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&T.warn(83),e.reobserve.apply(e,t)},fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}function Es(e,t){globalThis.__DEV__!==!1&&ce({},"ignoreResults","useMutation","If you don't want to synchronize component state with the mutation, please use the `useApolloClient` hook to get the client instance and call `client.mutate` directly.");var r=Qe(void 0);Rt(e,F.Mutation);var n=x.useState({called:!1,loading:!1,client:r}),i=n[0],o=n[1],s=x.useRef({result:i,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});Pt(function(){Object.assign(s.current,{client:r,options:t,mutation:e})});var a=x.useCallback(function(u){u===void 0&&(u={});var h=s.current,d=h.options,p=h.mutation,m=E(E({},d),{mutation:p}),y=u.client||s.current.client;!s.current.result.loading&&!m.ignoreResults&&s.current.isMounted&&o(s.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:y});var O=++s.current.mutationId,b=Qr(m,u);return y.mutate(b).then(function(g){var S,D,A=g.data,P=g.errors,M=P&&P.length>0?new ae({graphQLErrors:P}):void 0,q=u.onError||((S=s.current.options)===null||S===void 0?void 0:S.onError);if(M&&q&&q(M,b),O===s.current.mutationId&&!b.ignoreResults){var ee={called:!0,loading:!1,data:A,error:M,client:y};s.current.isMounted&&!C(s.current.result,ee)&&o(s.current.result=ee)}var fe=u.onCompleted||((D=s.current.options)===null||D===void 0?void 0:D.onCompleted);return M||fe==null||fe(g.data,b),g},function(g){var S;if(O===s.current.mutationId&&s.current.isMounted){var D={loading:!1,error:g,data:void 0,called:!0,client:y};C(s.current.result,D)||o(s.current.result=D)}var A=u.onError||((S=s.current.options)===null||S===void 0?void 0:S.onError);if(A)return A(g,b),{data:void 0,errors:g};throw g})},[]),c=x.useCallback(function(){if(s.current.isMounted){var u={called:!1,loading:!1,client:s.current.client};Object.assign(s.current,{mutationId:0,result:u}),o(u)}},[]);return x.useEffect(function(){var u=s.current;return u.isMounted=!0,function(){u.isMounted=!1}},[]),[a,E({reset:c},i)]}function bs(e,t){t===void 0&&(t=Object.create(null));var r=x.useRef(!1),n=Qe(t.client);Rt(e,F.Subscription),r.current||(r.current=!0,t.onSubscriptionData&&globalThis.__DEV__!==!1&&T.warn(t.onData?84:85),t.onSubscriptionComplete&&globalThis.__DEV__!==!1&&T.warn(t.onComplete?86:87));var i=t.skip,o=t.fetchPolicy,s=t.errorPolicy,a=t.shouldResubscribe,c=t.context,u=t.extensions,h=t.ignoreResults,d=is(function(){return t.variables},[t.variables]),p=function(){return _s(n,e,d,o,s,c,u)},m=x.useState(t.skip?null:p),y=m[0],O=m[1],b=x.useRef(p);Pt(function(){b.current=p}),i?y&&O(y=null):(!y||(n!==y.__.client||e!==y.__.query||o!==y.__.fetchPolicy||s!==y.__.errorPolicy||!C(d,y.__.variables))&&(typeof a=="function"?!!a(t):a)!==!1)&&O(y=p());var g=x.useRef(t);x.useEffect(function(){g.current=t});var S=!i&&!h,D=x.useMemo(function(){return{loading:S,error:void 0,data:void 0,variables:d}},[S,d]),A=x.useRef(h);Pt(function(){A.current=h});var P=cn(x.useCallback(function(q){if(!y)return function(){};var ee=!1,fe=y.__.variables,si=y.__.client,Ja=y.subscribe({next:function(j){var Ae,te;if(!ee){var we={loading:!1,data:j.data,error:yn(j),variables:fe};y.__.setResult(we),A.current||q(),we.error?(te=(Ae=g.current).onError)===null||te===void 0||te.call(Ae,we.error):g.current.onData?g.current.onData({client:si,data:we}):g.current.onSubscriptionData&&g.current.onSubscriptionData({client:si,subscriptionData:we})}},error:function(j){var Ae,te;j=j instanceof ae?j:new ae({protocolErrors:[j]}),ee||(y.__.setResult({loading:!1,data:void 0,error:j,variables:fe}),A.current||q(),(te=(Ae=g.current).onError)===null||te===void 0||te.call(Ae,j))},complete:function(){ee||(g.current.onComplete?g.current.onComplete():g.current.onSubscriptionComplete&&g.current.onSubscriptionComplete())}});return function(){ee=!0,setTimeout(function(){Ja.unsubscribe()})}},[y]),function(){return y&&!i&&!h?y.__.result:D},function(){return D}),M=x.useCallback(function(){T(!g.current.skip,88),O(b.current())},[g,b]);return x.useMemo(function(){return E(E({},P),{restart:M})},[P,M])}function _s(e,t,r,n,i,o,s){var a={query:t,variables:r,fetchPolicy:n,errorPolicy:i,context:o,extensions:s},c=E(E({},a),{client:e,result:{loading:!0,data:void 0,error:void 0,variables:r},setResult:function(h){c.result=h}}),u=null;return Object.assign(new W(function(h){u||(u=e.subscribe(a));var d=u.subscribe(h);return function(){return d.unsubscribe()}}),{__:c})}var Lt={exports:{}},Ee={};/**
25
+ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||xt.set(i,a=new Set),a.add(o),e.has(o)||(e.add(o),r.push(n))}else r.push(n)}),b(b({},t),{definitions:r})}function So(t){var e=new Set(t.definitions);e.forEach(function(n){n.loc&&delete n.loc,Object.keys(n).forEach(function(i){var o=n[i];o&&typeof o=="object"&&e.add(o)})});var r=t.loc;return r&&(delete r.startToken,delete r.endToken),t}function Ao(t){var e=Mr(t);if(!Ue.has(e)){var r=bi(t,{experimentalFragmentVariables:Be,allowLegacyFragmentVariables:Be});if(!r||r.kind!=="Document")throw new Error("Not a valid GraphQL document.");Ue.set(e,So(No(r)))}return Ue.get(e)}function W(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];typeof t=="string"&&(t=[t]);var n=t[0];return e.forEach(function(i,o){i&&i.kind==="Document"?n+=i.loc.source.body:n+=i,n+=t[o+1]}),Ao(n)}function Io(){Ue.clear(),xt.clear()}function Co(){Fr=!1}function ko(){Be=!0}function Do(){Be=!1}var xe={gql:W,resetCaches:Io,disableFragmentWarnings:Co,enableExperimentalFragmentVariables:ko,disableExperimentalFragmentVariables:Do};(function(t){t.gql=xe.gql,t.resetCaches=xe.resetCaches,t.disableFragmentWarnings=xe.disableFragmentWarnings,t.enableExperimentalFragmentVariables=xe.enableExperimentalFragmentVariables,t.disableExperimentalFragmentVariables=xe.disableExperimentalFragmentVariables})(W||(W={})),W.default=W;var _t={exports:{}},Ur;function wo(){return Ur||(Ur=1,(function(t){t.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,t.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,t.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(t.exports,C)})(_t)),_t.exports}var O=wo();const Br=Mn({__proto__:null,default:Bn(O)},[O]);var jr=nr?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function Vr(){N("createContext"in Br,69);var t=O.createContext[jr];return t||(Object.defineProperty(O.createContext,jr,{value:t=O.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t}function je(t){var e=O.useContext(Vr()),r=t||e.client;return N(!!r,78),r}var qr=!1,Ro="useSyncExternalStore",Po=Br[Ro],Qr=Po||(function(t,e,r){var n=e();globalThis.__DEV__!==!1&&!qr&&n!==e()&&(qr=!0,globalThis.__DEV__!==!1&&N.error(91));var i=O.useState({inst:{value:n,getSnapshot:e}}),o=i[0].inst,a=i[1];return Ai?O.useLayoutEffect(function(){Object.assign(o,{value:n,getSnapshot:e}),Tt(o)&&a({inst:o})},[t,n,e]):Object.assign(o,{value:n,getSnapshot:e}),O.useEffect(function(){return Tt(o)&&a({inst:o}),t(function(){Tt(o)&&a({inst:o})})},[t]),n});function Tt(t){var e=t.value,r=t.getSnapshot;try{return e!==r()}catch{return!0}}var U;(function(t){t[t.Query=0]="Query",t[t.Mutation=1]="Mutation",t[t.Subscription=2]="Subscription"})(U||(U={}));var ne;function zr(t){var e;switch(t){case U.Query:e="Query";break;case U.Mutation:e="Mutation";break;case U.Subscription:e="Subscription";break}return e}function Gr(t){re("parser",function(){globalThis.__DEV__!==!1&&N.warn(93)}),ne||(ne=new Fi(cr.parser||1e3));var e=ne.get(t);if(e)return e;var r,n,i;N(!!t&&!!t.kind,94,t);for(var o=[],a=[],s=[],c=[],l=0,f=t.definitions;l<f.length;l++){var h=f[l];if(h.kind==="FragmentDefinition"){o.push(h);continue}if(h.kind==="OperationDefinition")switch(h.operation){case"query":a.push(h);break;case"mutation":s.push(h);break;case"subscription":c.push(h);break}}N(!o.length||a.length||s.length||c.length,95),N(a.length+s.length+c.length<=1,96,t,a.length,c.length,s.length),n=a.length?U.Query:U.Mutation,!a.length&&!s.length&&(n=U.Subscription);var p=a.length?a:s.length?s:c;N(p.length===1,97,t,p.length);var y=p[0];r=y.variableDefinitions||[],y.name&&y.name.kind==="Name"?i=y.name.value:i="data";var m={name:i,type:n,variables:r};return ne.set(t,m),m}Gr.resetCache=function(){ne=void 0},globalThis.__DEV__!==!1&&lr("parser",function(){return ne?ne.size:0});function Ot(t,e){var r=H("parser",Gr,[t]),n=zr(e),i=zr(r.type);N(r.type===e,98,n,n,i)}function Lo(t,e){var r=O.useRef(void 0);return(!r.current||!w(r.current.deps,e))&&(r.current={value:t(),deps:e}),r.current.value}var Nt=ir?O.useLayoutEffect:O.useEffect;function pe(t,e,r,n){"use no memo";n===void 0&&(n="Please remove this option.");var i=O.useRef(!1);globalThis.__DEV__!==!1&&e in t&&!i.current&&(Ir(t,e,r,n),i.current=!0)}var Fo=Symbol.for("apollo.hook.wrappers");function Mo(t,e,r){var n=r.queryManager,i=n&&n[Fo],o=i&&i[t];return o?o(e):e}var Uo=Object.prototype.hasOwnProperty;function Yr(){}var Ve=Symbol();function Bo(t,e){return e===void 0&&(e=Object.create(null)),Mo("useQuery",jo,je(e&&e.client))(t,e)}function jo(t,e){globalThis.__DEV__!==!1&&(pe(e,"canonizeResults","useQuery"),pe(e,"partialRefetch","useQuery"),pe(e,"defaultOptions","useQuery","Pass the options directly to the hook instead."),pe(e,"onCompleted","useQuery","If your `onCompleted` callback sets local state, switch to use derived state using `data` returned from the hook instead. Use `useEffect` to perform side-effects as a result of updates to `data`."),pe(e,"onError","useQuery","If your `onError` callback sets local state, switch to use derived state using `data`, `error` or `errors` returned from the hook instead. Use `useEffect` if you need to perform side-effects as a result of updates to `data`, `error` or `errors`."));var r=qo(t,e),n=r.result,i=r.obsQueryFields;return O.useMemo(function(){return b(b({},n),i)},[n,i])}function Vo(t,e,r,n,i){function o(h){var p;Ot(e,U.Query);var y={client:t,query:e,observable:n&&n.getSSRObservable(i())||Lr.inactiveOnCreation.withValue(!n,function(){return H(["canonizeResults","partialRefetch"],function(){return t.watchQuery(Hr(void 0,t,r,i()))})}),resultData:{previousData:(p=h==null?void 0:h.resultData.current)===null||p===void 0?void 0:p.data}};return y}var a=O.useState(o),s=a[0],c=a[1];function l(h){var p,y;Object.assign(s.observable,(p={},p[Ve]=h,p));var m=s.resultData;c(b(b({},s),{query:h.query,resultData:Object.assign(m,{previousData:((y=m.current)===null||y===void 0?void 0:y.data)||m.previousData,current:void 0})}))}if(t!==s.client||e!==s.query){var f=o(s);return c(f),[f,l]}return[s,l]}function qo(t,e){var r=je(e.client),n=O.useContext(Vr()).renderPromises,i=!!n,o=r.disableNetworkFetches,a=e.ssr!==!1&&!e.skip,s=e.partialRefetch,c=Yo(r,t,e,i),l=Vo(r,t,e,n,c),f=l[0],h=f.observable,p=f.resultData,y=l[1],m=c(h);Go(p,h,r,e,m);var T=O.useMemo(function(){return $o(h)},[h]);zo(h,n,a);var E=Qo(p,h,r,e,m,o,s,i,{onCompleted:e.onCompleted||Yr,onError:e.onError||Yr});return{result:E,obsQueryFields:T,observable:h,resultData:p,client:r,onQueryExecuted:y}}function Qo(t,e,r,n,i,o,a,s,c){var l=O.useRef(c);O.useEffect(function(){l.current=c});var f=(s||o)&&n.ssr===!1&&!n.skip?Zr:n.skip||i.fetchPolicy==="standby"?Jr:void 0,h=t.previousData,p=O.useMemo(function(){return f&&Kr(f,h,e,r)},[r,e,f,h]);return Qr(O.useCallback(function(y){if(s)return function(){};var m=function(){var v=t.current,S=e.getCurrentResult();v&&v.loading===S.loading&&v.networkStatus===S.networkStatus&&w(v.data,S.data)||St(S,t,e,r,a,y,l.current)},T=function(v){if(E.current.unsubscribe(),E.current=e.resubscribeAfterError(m,T),!Uo.call(v,"graphQLErrors"))throw v;var S=t.current;(!S||S&&S.loading||!w(v,S.error))&&St({data:S&&S.data,error:v,loading:!1,networkStatus:I.error},t,e,r,a,y,l.current)},E={current:e.subscribe(m,T)};return function(){setTimeout(function(){return E.current.unsubscribe()})}},[o,s,e,t,a,r]),function(){return p||Wr(t,e,l.current,a,r)},function(){return p||Wr(t,e,l.current,a,r)})}function zo(t,e,r){e&&r&&(e.registerSSRObservable(t),t.getCurrentResult().loading&&e.addObservableQueryPromise(t))}function Go(t,e,r,n,i){var o;e[Ve]&&!w(e[Ve],i)&&(e.reobserve(Hr(e,r,n,i)),t.previousData=((o=t.current)===null||o===void 0?void 0:o.data)||t.previousData,t.current=void 0),e[Ve]=i}function Yo(t,e,r,n){r===void 0&&(r={});var i=r.skip;r.ssr,r.onCompleted,r.onError;var o=r.defaultOptions,a=Se(r,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(s){var c=Object.assign(a,{query:e});return n&&(c.fetchPolicy==="network-only"||c.fetchPolicy==="cache-and-network")&&(c.fetchPolicy="cache-first"),c.variables||(c.variables={}),i?(c.initialFetchPolicy=c.initialFetchPolicy||c.fetchPolicy||$r(o,t.defaultOptions),c.fetchPolicy="standby"):c.fetchPolicy||(c.fetchPolicy=(s==null?void 0:s.options.initialFetchPolicy)||$r(o,t.defaultOptions)),c}}function Hr(t,e,r,n){var i=[],o=e.defaultOptions.watchQuery;return o&&i.push(o),r.defaultOptions&&i.push(r.defaultOptions),i.push(be(t&&t.options,n)),i.reduce(Sr)}function St(t,e,r,n,i,o,a){var s=e.current;s&&s.data&&(e.previousData=s.data),!t.error&&yr(t.errors)&&(t.error=new de({graphQLErrors:t.errors})),e.current=Kr(Wo(t,r,i),e.previousData,r,n),o(),Ho(t,s==null?void 0:s.networkStatus,a)}function Ho(t,e,r){if(!t.loading){var n=Xr(t);Promise.resolve().then(function(){n?r.onError(n):t.data&&e!==t.networkStatus&&t.networkStatus===I.ready&&r.onCompleted(t.data)}).catch(function(i){globalThis.__DEV__!==!1&&N.warn(i)})}}function Wr(t,e,r,n,i){return t.current||St(e.getCurrentResult(),t,e,i,n,function(){},r),t.current}function $r(t,e){var r;return(t==null?void 0:t.fetchPolicy)||((r=e==null?void 0:e.watchQuery)===null||r===void 0?void 0:r.fetchPolicy)||"cache-first"}function Xr(t){return yr(t.errors)?new de({graphQLErrors:t.errors}):t.error}function Kr(t,e,r,n){var i=t.data;t.partial;var o=Se(t,["data","partial"]),a=b(b({data:i},o),{client:n,observable:r,variables:r.variables,called:t!==Zr&&t!==Jr,previousData:e});return a}function Wo(t,e,r){return t.partial&&r&&!t.loading&&(!t.data||Object.keys(t.data).length===0)&&e.options.fetchPolicy!=="cache-only"?(e.refetch(),b(b({},t),{loading:!0,networkStatus:I.refetch})):t}var Zr=Or({loading:!0,data:void 0,error:void 0,networkStatus:I.loading}),Jr=Or({loading:!1,data:void 0,error:void 0,networkStatus:I.ready});function $o(t){return{refetch:t.refetch.bind(t),reobserve:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&N.warn(83),t.reobserve.apply(t,e)},fetchMore:t.fetchMore.bind(t),updateQuery:t.updateQuery.bind(t),startPolling:t.startPolling.bind(t),stopPolling:t.stopPolling.bind(t),subscribeToMore:t.subscribeToMore.bind(t)}}function Xo(t,e){globalThis.__DEV__!==!1&&pe({},"ignoreResults","useMutation","If you don't want to synchronize component state with the mutation, please use the `useApolloClient` hook to get the client instance and call `client.mutate` directly.");var r=je(void 0);Ot(t,U.Mutation);var n=O.useState({called:!1,loading:!1,client:r}),i=n[0],o=n[1],a=O.useRef({result:i,mutationId:0,isMounted:!0,client:r,mutation:t,options:e});Nt(function(){Object.assign(a.current,{client:r,options:e,mutation:t})});var s=O.useCallback(function(l){l===void 0&&(l={});var f=a.current,h=f.options,p=f.mutation,y=b(b({},h),{mutation:p}),m=l.client||a.current.client;!a.current.result.loading&&!y.ignoreResults&&a.current.isMounted&&o(a.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:m});var T=++a.current.mutationId,E=Sr(y,l);return m.mutate(E).then(function(v){var S,L,A=v.data,F=v.errors,B=F&&F.length>0?new de({graphQLErrors:F}):void 0,V=l.onError||((S=a.current.options)===null||S===void 0?void 0:S.onError);if(B&&V&&V(B,E),T===a.current.mutationId&&!E.ignoreResults){var q={called:!0,loading:!1,data:A,error:B,client:m};a.current.isMounted&&!w(a.current.result,q)&&o(a.current.result=q)}var Y=l.onCompleted||((L=a.current.options)===null||L===void 0?void 0:L.onCompleted);return B||Y==null||Y(v.data,E),v},function(v){var S;if(T===a.current.mutationId&&a.current.isMounted){var L={loading:!1,error:v,data:void 0,called:!0,client:m};w(a.current.result,L)||o(a.current.result=L)}var A=l.onError||((S=a.current.options)===null||S===void 0?void 0:S.onError);if(A)return A(v,E),{data:void 0,errors:v};throw v})},[]),c=O.useCallback(function(){if(a.current.isMounted){var l={called:!1,loading:!1,client:a.current.client};Object.assign(a.current,{mutationId:0,result:l}),o(l)}},[]);return O.useEffect(function(){var l=a.current;return l.isMounted=!0,function(){l.isMounted=!1}},[]),[s,b({reset:c},i)]}function Ko(t,e){e===void 0&&(e=Object.create(null));var r=O.useRef(!1),n=je(e.client);Ot(t,U.Subscription),r.current||(r.current=!0,e.onSubscriptionData&&globalThis.__DEV__!==!1&&N.warn(e.onData?84:85),e.onSubscriptionComplete&&globalThis.__DEV__!==!1&&N.warn(e.onComplete?86:87));var i=e.skip,o=e.fetchPolicy,a=e.errorPolicy,s=e.shouldResubscribe,c=e.context,l=e.extensions,f=e.ignoreResults,h=Lo(function(){return e.variables},[e.variables]),p=function(){return Zo(n,t,h,o,a,c,l)},y=O.useState(e.skip?null:p),m=y[0],T=y[1],E=O.useRef(p);Nt(function(){E.current=p}),i?m&&T(m=null):(!m||(n!==m.__.client||t!==m.__.query||o!==m.__.fetchPolicy||a!==m.__.errorPolicy||!w(h,m.__.variables))&&(typeof s=="function"?!!s(e):s)!==!1)&&T(m=p());var v=O.useRef(e);O.useEffect(function(){v.current=e});var S=!i&&!f,L=O.useMemo(function(){return{loading:S,error:void 0,data:void 0,variables:h}},[S,h]),A=O.useRef(f);Nt(function(){A.current=f});var F=Qr(O.useCallback(function(V){if(!m)return function(){};var q=!1,Y=m.__.variables,$=m.__.client,Ge=m.subscribe({next:function(j){var X,Q;if(!q){var K={loading:!1,data:j.data,error:Xr(j),variables:Y};m.__.setResult(K),A.current||V(),K.error?(Q=(X=v.current).onError)===null||Q===void 0||Q.call(X,K.error):v.current.onData?v.current.onData({client:$,data:K}):v.current.onSubscriptionData&&v.current.onSubscriptionData({client:$,subscriptionData:K})}},error:function(j){var X,Q;j=j instanceof de?j:new de({protocolErrors:[j]}),q||(m.__.setResult({loading:!1,data:void 0,error:j,variables:Y}),A.current||V(),(Q=(X=v.current).onError)===null||Q===void 0||Q.call(X,j))},complete:function(){q||(v.current.onComplete?v.current.onComplete():v.current.onSubscriptionComplete&&v.current.onSubscriptionComplete())}});return function(){q=!0,setTimeout(function(){Ge.unsubscribe()})}},[m]),function(){return m&&!i&&!f?m.__.result:L},function(){return L}),B=O.useCallback(function(){N(!v.current.skip,88),T(E.current())},[v,E]);return O.useMemo(function(){return b(b({},F),{restart:B})},[F,B])}function Zo(t,e,r,n,i,o,a){var s={query:e,variables:r,fetchPolicy:n,errorPolicy:i,context:o,extensions:a},c=b(b({},s),{client:t,result:{loading:!0,data:void 0,error:void 0,variables:r},setResult:function(f){c.result=f}}),l=null;return Object.assign(new te(function(f){l||(l=t.subscribe(s));var h=l.subscribe(f);return function(){return h.unsubscribe()}}),{__:c})}var At={exports:{}},_e={};/**
26
26
  * @license React
27
27
  * react-jsx-runtime.production.js
28
28
  *
@@ -30,8 +30,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var En;function xs(){if(En)return Ee;En=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,i,o){var s=null;if(o!==void 0&&(s=""+o),i.key!==void 0&&(s=""+i.key),"key"in i){o={};for(var a in i)a!=="key"&&(o[a]=i[a])}else o=i;return i=o.ref,{$$typeof:e,type:n,key:s,ref:i!==void 0?i:null,props:o}}return Ee.Fragment=t,Ee.jsx=r,Ee.jsxs=r,Ee}var bn;function Ts(){return bn||(bn=1,Lt.exports=xs()),Lt.exports}Ts();class Os{add(t,r,n){if(typeof arguments[0]!="string")for(let i in arguments[0])this.add(i,arguments[0][i],arguments[1]);else(Array.isArray(t)?t:[t]).forEach(function(i){this[i]=this[i]||[],r&&this[i][n?"unshift":"push"](r)},this)}run(t,r){this[t]=this[t]||[],this[t].forEach(function(n){n.call(r&&r.context?r.context:r,r)})}}class Ss{constructor(t){this.jsep=t,this.registered={}}register(...t){t.forEach(r=>{if(typeof r!="object"||!r.name||!r.init)throw new Error("Invalid JSEP plugin format");this.registered[r.name]||(r.init(this.jsep),this.registered[r.name]=r)})}}class l{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+l.version}static addUnaryOp(t){return l.max_unop_len=Math.max(t.length,l.max_unop_len),l.unary_ops[t]=1,l}static addBinaryOp(t,r,n){return l.max_binop_len=Math.max(t.length,l.max_binop_len),l.binary_ops[t]=r,n?l.right_associative.add(t):l.right_associative.delete(t),l}static addIdentifierChar(t){return l.additional_identifier_chars.add(t),l}static addLiteral(t,r){return l.literals[t]=r,l}static removeUnaryOp(t){return delete l.unary_ops[t],t.length===l.max_unop_len&&(l.max_unop_len=l.getMaxKeyLen(l.unary_ops)),l}static removeAllUnaryOps(){return l.unary_ops={},l.max_unop_len=0,l}static removeIdentifierChar(t){return l.additional_identifier_chars.delete(t),l}static removeBinaryOp(t){return delete l.binary_ops[t],t.length===l.max_binop_len&&(l.max_binop_len=l.getMaxKeyLen(l.binary_ops)),l.right_associative.delete(t),l}static removeAllBinaryOps(){return l.binary_ops={},l.max_binop_len=0,l}static removeLiteral(t){return delete l.literals[t],l}static removeAllLiterals(){return l.literals={},l}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(t){this.expr=t,this.index=0}static parse(t){return new l(t).parse()}static getMaxKeyLen(t){return Math.max(0,...Object.keys(t).map(r=>r.length))}static isDecimalDigit(t){return t>=48&&t<=57}static binaryPrecedence(t){return l.binary_ops[t]||0}static isIdentifierStart(t){return t>=65&&t<=90||t>=97&&t<=122||t>=128&&!l.binary_ops[String.fromCharCode(t)]||l.additional_identifier_chars.has(String.fromCharCode(t))}static isIdentifierPart(t){return l.isIdentifierStart(t)||l.isDecimalDigit(t)}throwError(t){const r=new Error(t+" at character "+this.index);throw r.index=this.index,r.description=t,r}runHook(t,r){if(l.hooks[t]){const n={context:this,node:r};return l.hooks.run(t,n),n.node}return r}searchHook(t){if(l.hooks[t]){const r={context:this};return l.hooks[t].find(function(n){return n.call(r.context,r),r.node}),r.node}}gobbleSpaces(){let t=this.code;for(;t===l.SPACE_CODE||t===l.TAB_CODE||t===l.LF_CODE||t===l.CR_CODE;)t=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const t=this.gobbleExpressions(),r=t.length===1?t[0]:{type:l.COMPOUND,body:t};return this.runHook("after-all",r)}gobbleExpressions(t){let r=[],n,i;for(;this.index<this.expr.length;)if(n=this.code,n===l.SEMCOL_CODE||n===l.COMMA_CODE)this.index++;else if(i=this.gobbleExpression())r.push(i);else if(this.index<this.expr.length){if(n===t)break;this.throwError('Unexpected "'+this.char+'"')}return r}gobbleExpression(){const t=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",t)}gobbleBinaryOp(){this.gobbleSpaces();let t=this.expr.substr(this.index,l.max_binop_len),r=t.length;for(;r>0;){if(l.binary_ops.hasOwnProperty(t)&&(!l.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!l.isIdentifierPart(this.expr.charCodeAt(this.index+t.length))))return this.index+=r,t;t=t.substr(0,--r)}return!1}gobbleBinaryExpression(){let t,r,n,i,o,s,a,c,u;if(s=this.gobbleToken(),!s||(r=this.gobbleBinaryOp(),!r))return s;for(o={value:r,prec:l.binaryPrecedence(r),right_a:l.right_associative.has(r)},a=this.gobbleToken(),a||this.throwError("Expected expression after "+r),i=[s,o,a];r=this.gobbleBinaryOp();){if(n=l.binaryPrecedence(r),n===0){this.index-=r.length;break}o={value:r,prec:n,right_a:l.right_associative.has(r)},u=r;const h=d=>o.right_a&&d.right_a?n>d.prec:n<=d.prec;for(;i.length>2&&h(i[i.length-2]);)a=i.pop(),r=i.pop().value,s=i.pop(),t={type:l.BINARY_EXP,operator:r,left:s,right:a},i.push(t);t=this.gobbleToken(),t||this.throwError("Expected expression after "+u),i.push(o,t)}for(c=i.length-1,t=i[c];c>1;)t={type:l.BINARY_EXP,operator:i[c-1].value,left:i[c-2],right:t},c-=2;return t}gobbleToken(){let t,r,n,i;if(this.gobbleSpaces(),i=this.searchHook("gobble-token"),i)return this.runHook("after-token",i);if(t=this.code,l.isDecimalDigit(t)||t===l.PERIOD_CODE)return this.gobbleNumericLiteral();if(t===l.SQUOTE_CODE||t===l.DQUOTE_CODE)i=this.gobbleStringLiteral();else if(t===l.OBRACK_CODE)i=this.gobbleArray();else{for(r=this.expr.substr(this.index,l.max_unop_len),n=r.length;n>0;){if(l.unary_ops.hasOwnProperty(r)&&(!l.isIdentifierStart(this.code)||this.index+r.length<this.expr.length&&!l.isIdentifierPart(this.expr.charCodeAt(this.index+r.length)))){this.index+=n;const o=this.gobbleToken();return o||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:l.UNARY_EXP,operator:r,argument:o,prefix:!0})}r=r.substr(0,--n)}l.isIdentifierStart(t)?(i=this.gobbleIdentifier(),l.literals.hasOwnProperty(i.name)?i={type:l.LITERAL,value:l.literals[i.name],raw:i.name}:i.name===l.this_str&&(i={type:l.THIS_EXP})):t===l.OPAREN_CODE&&(i=this.gobbleGroup())}return i?(i=this.gobbleTokenProperty(i),this.runHook("after-token",i)):this.runHook("after-token",!1)}gobbleTokenProperty(t){this.gobbleSpaces();let r=this.code;for(;r===l.PERIOD_CODE||r===l.OBRACK_CODE||r===l.OPAREN_CODE||r===l.QUMARK_CODE;){let n;if(r===l.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==l.PERIOD_CODE)break;n=!0,this.index+=2,this.gobbleSpaces(),r=this.code}this.index++,r===l.OBRACK_CODE?(t={type:l.MEMBER_EXP,computed:!0,object:t,property:this.gobbleExpression()},t.property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),r=this.code,r!==l.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):r===l.OPAREN_CODE?t={type:l.CALL_EXP,arguments:this.gobbleArguments(l.CPAREN_CODE),callee:t}:(r===l.PERIOD_CODE||n)&&(n&&this.index--,this.gobbleSpaces(),t={type:l.MEMBER_EXP,computed:!1,object:t,property:this.gobbleIdentifier()}),n&&(t.optional=!0),this.gobbleSpaces(),r=this.code}return t}gobbleNumericLiteral(){let t="",r,n;for(;l.isDecimalDigit(this.code);)t+=this.expr.charAt(this.index++);if(this.code===l.PERIOD_CODE)for(t+=this.expr.charAt(this.index++);l.isDecimalDigit(this.code);)t+=this.expr.charAt(this.index++);if(r=this.char,r==="e"||r==="E"){for(t+=this.expr.charAt(this.index++),r=this.char,(r==="+"||r==="-")&&(t+=this.expr.charAt(this.index++));l.isDecimalDigit(this.code);)t+=this.expr.charAt(this.index++);l.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+t+this.char+")")}return n=this.code,l.isIdentifierStart(n)?this.throwError("Variable names cannot start with a number ("+t+this.char+")"):(n===l.PERIOD_CODE||t.length===1&&t.charCodeAt(0)===l.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:l.LITERAL,value:parseFloat(t),raw:t}}gobbleStringLiteral(){let t="";const r=this.index,n=this.expr.charAt(this.index++);let i=!1;for(;this.index<this.expr.length;){let o=this.expr.charAt(this.index++);if(o===n){i=!0;break}else if(o==="\\")switch(o=this.expr.charAt(this.index++),o){case"n":t+=`
34
- `;break;case"r":t+="\r";break;case"t":t+=" ";break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:t+=o}else t+=o}return i||this.throwError('Unclosed quote after "'+t+'"'),{type:l.LITERAL,value:t,raw:this.expr.substring(r,this.index)}}gobbleIdentifier(){let t=this.code,r=this.index;for(l.isIdentifierStart(t)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length&&(t=this.code,l.isIdentifierPart(t));)this.index++;return{type:l.IDENTIFIER,name:this.expr.slice(r,this.index)}}gobbleArguments(t){const r=[];let n=!1,i=0;for(;this.index<this.expr.length;){this.gobbleSpaces();let o=this.code;if(o===t){n=!0,this.index++,t===l.CPAREN_CODE&&i&&i>=r.length&&this.throwError("Unexpected token "+String.fromCharCode(t));break}else if(o===l.COMMA_CODE){if(this.index++,i++,i!==r.length){if(t===l.CPAREN_CODE)this.throwError("Unexpected token ,");else if(t===l.CBRACK_CODE)for(let s=r.length;s<i;s++)r.push(null)}}else if(r.length!==i&&i!==0)this.throwError("Expected comma");else{const s=this.gobbleExpression();(!s||s.type===l.COMPOUND)&&this.throwError("Expected comma"),r.push(s)}}return n||this.throwError("Expected "+String.fromCharCode(t)),r}gobbleGroup(){this.index++;let t=this.gobbleExpressions(l.CPAREN_CODE);if(this.code===l.CPAREN_CODE)return this.index++,t.length===1?t[0]:t.length?{type:l.SEQUENCE_EXP,expressions:t}:!1;this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:l.ARRAY_EXP,elements:this.gobbleArguments(l.CBRACK_CODE)}}}const Ns=new Os;Object.assign(l,{hooks:Ns,plugins:new Ss(l),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),l.max_unop_len=l.getMaxKeyLen(l.unary_ops),l.max_binop_len=l.getMaxKeyLen(l.binary_ops);const Ye=e=>new l(e).parse(),Is=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(l).filter(e=>!Is.includes(e)&&Ye[e]===void 0).forEach(e=>{Ye[e]=l[e]}),Ye.Jsep=l;const As="ConditionalExpression";var ws={name:"ternary",init(e){e.hooks.add("after-expression",function(r){if(r.node&&this.code===e.QUMARK_CODE){this.index++;const n=r.node,i=this.gobbleExpression();if(i||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;const o=this.gobbleExpression();if(o||this.throwError("Expected expression"),r.node={type:As,test:n,consequent:i,alternate:o},n.operator&&e.binary_ops[n.operator]<=.9){let s=n;for(;s.right.operator&&e.binary_ops[s.right.operator]<=.9;)s=s.right;r.node.test=s.right,s.right=r.node,r.node=n}}else this.throwError("Expected :")}})}};Ye.plugins.register(ws);function Mt(e,{insertAt:t}={}){if(!e||typeof document=="undefined")return;const r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Mt(`:root {
33
+ */var en;function Jo(){if(en)return _e;en=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(n,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var s in i)s!=="key"&&(o[s]=i[s])}else o=i;return i=o.ref,{$$typeof:t,type:n,key:a,ref:i!==void 0?i:null,props:o}}return _e.Fragment=e,_e.jsx=r,_e.jsxs=r,_e}var tn;function ea(){return tn||(tn=1,At.exports=Jo()),At.exports}var ie=ea();class ta{add(e,r,n){if(typeof arguments[0]!="string")for(let i in arguments[0])this.add(i,arguments[0][i],arguments[1]);else(Array.isArray(e)?e:[e]).forEach(function(i){this[i]=this[i]||[],r&&this[i][n?"unshift":"push"](r)},this)}run(e,r){this[e]=this[e]||[],this[e].forEach(function(n){n.call(r&&r.context?r.context:r,r)})}}class ra{constructor(e){this.jsep=e,this.registered={}}register(...e){e.forEach(r=>{if(typeof r!="object"||!r.name||!r.init)throw new Error("Invalid JSEP plugin format");this.registered[r.name]||(r.init(this.jsep),this.registered[r.name]=r)})}}class u{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+u.version}static addUnaryOp(e){return u.max_unop_len=Math.max(e.length,u.max_unop_len),u.unary_ops[e]=1,u}static addBinaryOp(e,r,n){return u.max_binop_len=Math.max(e.length,u.max_binop_len),u.binary_ops[e]=r,n?u.right_associative.add(e):u.right_associative.delete(e),u}static addIdentifierChar(e){return u.additional_identifier_chars.add(e),u}static addLiteral(e,r){return u.literals[e]=r,u}static removeUnaryOp(e){return delete u.unary_ops[e],e.length===u.max_unop_len&&(u.max_unop_len=u.getMaxKeyLen(u.unary_ops)),u}static removeAllUnaryOps(){return u.unary_ops={},u.max_unop_len=0,u}static removeIdentifierChar(e){return u.additional_identifier_chars.delete(e),u}static removeBinaryOp(e){return delete u.binary_ops[e],e.length===u.max_binop_len&&(u.max_binop_len=u.getMaxKeyLen(u.binary_ops)),u.right_associative.delete(e),u}static removeAllBinaryOps(){return u.binary_ops={},u.max_binop_len=0,u}static removeLiteral(e){return delete u.literals[e],u}static removeAllLiterals(){return u.literals={},u}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new u(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map(r=>r.length))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return u.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!u.binary_ops[String.fromCharCode(e)]||u.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return u.isIdentifierStart(e)||u.isDecimalDigit(e)}throwError(e){const r=new Error(e+" at character "+this.index);throw r.index=this.index,r.description=e,r}runHook(e,r){if(u.hooks[e]){const n={context:this,node:r};return u.hooks.run(e,n),n.node}return r}searchHook(e){if(u.hooks[e]){const r={context:this};return u.hooks[e].find(function(n){return n.call(r.context,r),r.node}),r.node}}gobbleSpaces(){let e=this.code;for(;e===u.SPACE_CODE||e===u.TAB_CODE||e===u.LF_CODE||e===u.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const e=this.gobbleExpressions(),r=e.length===1?e[0]:{type:u.COMPOUND,body:e};return this.runHook("after-all",r)}gobbleExpressions(e){let r=[],n,i;for(;this.index<this.expr.length;)if(n=this.code,n===u.SEMCOL_CODE||n===u.COMMA_CODE)this.index++;else if(i=this.gobbleExpression())r.push(i);else if(this.index<this.expr.length){if(n===e)break;this.throwError('Unexpected "'+this.char+'"')}return r}gobbleExpression(){const e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}gobbleBinaryOp(){this.gobbleSpaces();let e=this.expr.substr(this.index,u.max_binop_len),r=e.length;for(;r>0;){if(u.binary_ops.hasOwnProperty(e)&&(!u.isIdentifierStart(this.code)||this.index+e.length<this.expr.length&&!u.isIdentifierPart(this.expr.charCodeAt(this.index+e.length))))return this.index+=r,e;e=e.substr(0,--r)}return!1}gobbleBinaryExpression(){let e,r,n,i,o,a,s,c,l;if(a=this.gobbleToken(),!a||(r=this.gobbleBinaryOp(),!r))return a;for(o={value:r,prec:u.binaryPrecedence(r),right_a:u.right_associative.has(r)},s=this.gobbleToken(),s||this.throwError("Expected expression after "+r),i=[a,o,s];r=this.gobbleBinaryOp();){if(n=u.binaryPrecedence(r),n===0){this.index-=r.length;break}o={value:r,prec:n,right_a:u.right_associative.has(r)},l=r;const f=h=>o.right_a&&h.right_a?n>h.prec:n<=h.prec;for(;i.length>2&&f(i[i.length-2]);)s=i.pop(),r=i.pop().value,a=i.pop(),e={type:u.BINARY_EXP,operator:r,left:a,right:s},i.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+l),i.push(o,e)}for(c=i.length-1,e=i[c];c>1;)e={type:u.BINARY_EXP,operator:i[c-1].value,left:i[c-2],right:e},c-=2;return e}gobbleToken(){let e,r,n,i;if(this.gobbleSpaces(),i=this.searchHook("gobble-token"),i)return this.runHook("after-token",i);if(e=this.code,u.isDecimalDigit(e)||e===u.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===u.SQUOTE_CODE||e===u.DQUOTE_CODE)i=this.gobbleStringLiteral();else if(e===u.OBRACK_CODE)i=this.gobbleArray();else{for(r=this.expr.substr(this.index,u.max_unop_len),n=r.length;n>0;){if(u.unary_ops.hasOwnProperty(r)&&(!u.isIdentifierStart(this.code)||this.index+r.length<this.expr.length&&!u.isIdentifierPart(this.expr.charCodeAt(this.index+r.length)))){this.index+=n;const o=this.gobbleToken();return o||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:u.UNARY_EXP,operator:r,argument:o,prefix:!0})}r=r.substr(0,--n)}u.isIdentifierStart(e)?(i=this.gobbleIdentifier(),u.literals.hasOwnProperty(i.name)?i={type:u.LITERAL,value:u.literals[i.name],raw:i.name}:i.name===u.this_str&&(i={type:u.THIS_EXP})):e===u.OPAREN_CODE&&(i=this.gobbleGroup())}return i?(i=this.gobbleTokenProperty(i),this.runHook("after-token",i)):this.runHook("after-token",!1)}gobbleTokenProperty(e){this.gobbleSpaces();let r=this.code;for(;r===u.PERIOD_CODE||r===u.OBRACK_CODE||r===u.OPAREN_CODE||r===u.QUMARK_CODE;){let n;if(r===u.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==u.PERIOD_CODE)break;n=!0,this.index+=2,this.gobbleSpaces(),r=this.code}this.index++,r===u.OBRACK_CODE?(e={type:u.MEMBER_EXP,computed:!0,object:e,property:this.gobbleExpression()},e.property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),r=this.code,r!==u.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):r===u.OPAREN_CODE?e={type:u.CALL_EXP,arguments:this.gobbleArguments(u.CPAREN_CODE),callee:e}:(r===u.PERIOD_CODE||n)&&(n&&this.index--,this.gobbleSpaces(),e={type:u.MEMBER_EXP,computed:!1,object:e,property:this.gobbleIdentifier()}),n&&(e.optional=!0),this.gobbleSpaces(),r=this.code}return e}gobbleNumericLiteral(){let e="",r,n;for(;u.isDecimalDigit(this.code);)e+=this.expr.charAt(this.index++);if(this.code===u.PERIOD_CODE)for(e+=this.expr.charAt(this.index++);u.isDecimalDigit(this.code);)e+=this.expr.charAt(this.index++);if(r=this.char,r==="e"||r==="E"){for(e+=this.expr.charAt(this.index++),r=this.char,(r==="+"||r==="-")&&(e+=this.expr.charAt(this.index++));u.isDecimalDigit(this.code);)e+=this.expr.charAt(this.index++);u.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+e+this.char+")")}return n=this.code,u.isIdentifierStart(n)?this.throwError("Variable names cannot start with a number ("+e+this.char+")"):(n===u.PERIOD_CODE||e.length===1&&e.charCodeAt(0)===u.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:u.LITERAL,value:parseFloat(e),raw:e}}gobbleStringLiteral(){let e="";const r=this.index,n=this.expr.charAt(this.index++);let i=!1;for(;this.index<this.expr.length;){let o=this.expr.charAt(this.index++);if(o===n){i=!0;break}else if(o==="\\")switch(o=this.expr.charAt(this.index++),o){case"n":e+=`
34
+ `;break;case"r":e+="\r";break;case"t":e+=" ";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:e+=o}else e+=o}return i||this.throwError('Unclosed quote after "'+e+'"'),{type:u.LITERAL,value:e,raw:this.expr.substring(r,this.index)}}gobbleIdentifier(){let e=this.code,r=this.index;for(u.isIdentifierStart(e)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length&&(e=this.code,u.isIdentifierPart(e));)this.index++;return{type:u.IDENTIFIER,name:this.expr.slice(r,this.index)}}gobbleArguments(e){const r=[];let n=!1,i=0;for(;this.index<this.expr.length;){this.gobbleSpaces();let o=this.code;if(o===e){n=!0,this.index++,e===u.CPAREN_CODE&&i&&i>=r.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}else if(o===u.COMMA_CODE){if(this.index++,i++,i!==r.length){if(e===u.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===u.CBRACK_CODE)for(let a=r.length;a<i;a++)r.push(null)}}else if(r.length!==i&&i!==0)this.throwError("Expected comma");else{const a=this.gobbleExpression();(!a||a.type===u.COMPOUND)&&this.throwError("Expected comma"),r.push(a)}}return n||this.throwError("Expected "+String.fromCharCode(e)),r}gobbleGroup(){this.index++;let e=this.gobbleExpressions(u.CPAREN_CODE);if(this.code===u.CPAREN_CODE)return this.index++,e.length===1?e[0]:e.length?{type:u.SEQUENCE_EXP,expressions:e}:!1;this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:u.ARRAY_EXP,elements:this.gobbleArguments(u.CBRACK_CODE)}}}const na=new ta;Object.assign(u,{hooks:na,plugins:new ra(u),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),u.max_unop_len=u.getMaxKeyLen(u.unary_ops),u.max_binop_len=u.getMaxKeyLen(u.binary_ops);const qe=t=>new u(t).parse(),ia=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(u).filter(t=>!ia.includes(t)&&qe[t]===void 0).forEach(t=>{qe[t]=u[t]}),qe.Jsep=u;const oa="ConditionalExpression";var aa={name:"ternary",init(t){t.hooks.add("after-expression",function(r){if(r.node&&this.code===t.QUMARK_CODE){this.index++;const n=r.node,i=this.gobbleExpression();if(i||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===t.COLON_CODE){this.index++;const o=this.gobbleExpression();if(o||this.throwError("Expected expression"),r.node={type:oa,test:n,consequent:i,alternate:o},n.operator&&t.binary_ops[n.operator]<=.9){let a=n;for(;a.right.operator&&t.binary_ops[a.right.operator]<=.9;)a=a.right;r.node.test=a.right,a.right=r.node,r.node=n}}else this.throwError("Expected :")}})}};qe.plugins.register(aa);function It(t,{insertAt:e}={}){if(!t||typeof document=="undefined")return;const r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}It(`:root {
35
35
  --octopus-font-family: "Segoe UI", sans-serif;
36
36
  --octopus-font-family-mono:
37
37
  "SFMono-Regular",
@@ -43,7 +43,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
43
43
  .octopus-font {
44
44
  font-family: var(--octopus-font-family, "Segoe UI", sans-serif);
45
45
  }
46
- `);var be=e=>e.swatches.reduce((t,r)=>(t[r.key]=r.hex,t),{}),Cs=[{key:"blue",name:"Blue",hex:"#5778a4"},{key:"orange",name:"Orange",hex:"#e49444"},{key:"red",name:"Red",hex:"#d1615d"},{key:"teal",name:"Teal",hex:"#85b6b2"},{key:"green",name:"Green",hex:"#6a9f58"},{key:"yellow",name:"Yellow",hex:"#e7ca60"},{key:"purple",name:"Purple",hex:"#a87c9f"},{key:"pink",name:"Pink",hex:"#f1a2a9"},{key:"brown",name:"Brown",hex:"#967662"},{key:"grey",name:"Grey",hex:"#b8b0ac"}],_n={id:"tableau-10",label:"Tableau 10",description:"Default categorical palette shipped with Tableau",tags:["categorical","tableau"],swatches:Cs};be(_n);var Ut=e=>{const t=Math.round(e*255);return Number.isNaN(t)?0:Math.max(0,Math.min(255,t))},Bt=e=>e.toString(16).padStart(2,"0").toUpperCase(),jt=(e,t={})=>{var r,n;const i=(r=t.keyPrefix)!=null?r:"step",o=(n=t.namePrefix)!=null?n:"step",s=Math.max(3,String(e.length).length);return e.map((a,c)=>{const[u,h,d]=a,p=[Ut(u),Ut(h),Ut(d)],m=`#${Bt(p[0])}${Bt(p[1])}${Bt(p[2])}`;return{key:`${i}${String(c+1).padStart(s,"0")}`,name:`${o}-${c+1}`,hex:m,rgb:p}})},ks=[[.1494,.049588,.2492],[.15292,.054745,.25374],[.1565,.059987,.25825],[.15997,.065016,.26278],[.16352,.070056,.26727],[.16701,.075019,.27176],[.17046,.079947,.27627],[.1739,.084871,.2807],[.17734,.089731,.28514],[.18072,.094578,.28957],[.18411,.099319,.29396],[.1875,.10408,.29834],[.19081,.1088,.30269],[.19416,.11354,.30703],[.19745,.11822,.31134],[.20071,.12281,.31563],[.20401,.12746,.3199],[.20725,.13209,.32412],[.21047,.13666,.32835],[.21368,.14126,.33256],[.21689,.14581,.33673],[.22007,.15032,.34089],[.22323,.15482,.34503],[.22638,.15931,.34915],[.22949,.16383,.35325],[.23263,.16825,.35734],[.23575,.1727,.3614],[.23883,.17714,.36545],[.24192,.18153,.36948],[.24497,.18597,.3735],[.24807,.19033,.3775],[.25111,.19472,.3815],[.25414,.19904,.38546],[.25717,.2034,.38942],[.26018,.20772,.39336],[.26319,.21205,.39729],[.26619,.21635,.40122],[.26918,.22063,.40511],[.27212,.22486,.409],[.2751,.22913,.41288],[.27806,.23336,.41674],[.28099,.23762,.42058],[.28393,.24182,.42442],[.28685,.246,.42824],[.28978,.25018,.43206],[.29268,.25438,.43585],[.29558,.25853,.43963],[.29848,.26268,.44341],[.30136,.26681,.44716],[.30425,.27094,.45091],[.30713,.27503,.45465],[.31003,.27914,.45836],[.31289,.28321,.46207],[.3158,.28726,.46576],[.31868,.29133,.46946],[.32158,.29535,.47311],[.32451,.29938,.47677],[.32747,.30337,.48041],[.33046,.30736,.48403],[.3335,.31133,.48764],[.33657,.31528,.49123],[.33973,.3192,.49478],[.34295,.3231,.49832],[.34623,.32694,.5018],[.34964,.33075,.50525],[.35314,.33453,.50866],[.35676,.3382,.51199],[.36048,.34183,.51526],[.36434,.34536,.51845],[.36834,.3488,.52152],[.37244,.3521,.5245],[.37668,.35531,.52735],[.38102,.35833,.53006],[.38545,.3612,.53263],[.38998,.36391,.53502],[.39459,.36646,.53727],[.39925,.3688,.53932],[.40397,.37095,.54121],[.4087,.37293,.54294],[.41346,.37473,.54449],[.41821,.37636,.54589],[.42296,.3778,.54712],[.42772,.3791,.54822],[.43245,.38027,.54919],[.43716,.3813,.55004],[.44186,.38221,.55079],[.44653,.38304,.55145],[.45121,.38377,.55203],[.45586,.38442,.55254],[.46051,.38502,.55299],[.46517,.38556,.5534],[.46983,.38606,.55377],[.4745,.38652,.55411],[.47917,.38696,.55442],[.48385,.38738,.55472],[.48857,.38778,.55499],[.49329,.38817,.55525],[.49805,.38855,.55551],[.50281,.38893,.55575],[.50762,.38929,.556],[.51244,.38965,.55624],[.5173,.39,.55649],[.52217,.39037,.55673],[.5271,.39073,.55697],[.53204,.3911,.55721],[.53701,.39146,.55745],[.542,.39182,.55769],[.54703,.39219,.55792],[.55209,.39255,.55816],[.55718,.39292,.55841],[.5623,.39329,.55865],[.56744,.39367,.5589],[.57262,.39404,.55915],[.57781,.39442,.5594],[.58304,.3948,.55965],[.5883,.39519,.55991],[.59359,.39557,.56016],[.59891,.39596,.56041],[.60425,.39634,.56067],[.60962,.39673,.56092],[.61501,.39712,.56118],[.62045,.39752,.56145],[.62589,.39793,.56172],[.63138,.39834,.562],[.63689,.39874,.56227],[.64242,.39916,.56256],[.64797,.39958,.56284],[.65356,.40003,.56315],[.65918,.4005,.56346],[.66482,.40098,.56379],[.67049,.40146,.56414],[.67618,.40198,.56451],[.68188,.40254,.56491],[.68762,.40315,.56535],[.69337,.40381,.56585],[.69914,.40452,.5664],[.70491,.40532,.56702],[.7107,.40621,.5677],[.71648,.40719,.56848],[.72223,.4083,.56936],[.72798,.40954,.57036],[.73368,.41094,.57149],[.73934,.4125,.57277],[.74492,.41424,.57419],[.75043,.41618,.5758],[.75583,.41833,.57756],[.76111,.4207,.57953],[.76624,.4233,.58167],[.77122,.42613,.58402],[.77601,.42919,.58656],[.78061,.43248,.58928],[.78501,.43597,.59221],[.78919,.43967,.59529],[.79315,.44356,.59854],[.79688,.44763,.60195],[.80039,.45187,.60549],[.80368,.45624,.60917],[.80677,.46074,.61294],[.80965,.46535,.61683],[.81235,.47006,.6208],[.81487,.47484,.62483],[.81725,.47969,.62893],[.81948,.48458,.63307],[.82159,.48952,.63726],[.8236,.49451,.64148],[.82551,.4995,.64574],[.82735,.50454,.65002],[.82912,.50958,.65431],[.83084,.51464,.65862],[.83251,.51971,.66295],[.83415,.5248,.66728],[.83576,.52989,.67162],[.83735,.53498,.67597],[.83892,.54009,.68032],[.84048,.5452,.68469],[.84203,.55032,.68906],[.84356,.55544,.69343],[.8451,.56057,.6978],[.84663,.56569,.70217],[.84816,.57083,.70655],[.84969,.57598,.71093],[.8512,.58112,.71531],[.85273,.58627,.71969],[.85425,.59141,.72406],[.85577,.59657,.72843],[.85728,.60172,.73281],[.85879,.60688,.73717],[.8603,.61203,.74153],[.8618,.6172,.74588],[.86331,.62235,.75022],[.86479,.62751,.75455],[.86628,.63267,.75886],[.86776,.63783,.76316],[.86924,.64298,.76744],[.8707,.64812,.7717],[.87216,.65326,.77594],[.8736,.6584,.78016],[.87503,.66353,.78436],[.87645,.66865,.78852],[.87786,.67375,.79265],[.87925,.67885,.79676],[.88064,.68393,.80083],[.88201,.689,.80488],[.88337,.69404,.80889],[.88471,.69908,.81286],[.88604,.7041,.81681],[.88735,.7091,.82072],[.88866,.71406,.82459],[.88994,.71902,.82844],[.89122,.72395,.83225],[.89248,.72885,.83603],[.89373,.73373,.83978],[.89497,.73859,.84348],[.8962,.74342,.84717],[.89742,.74822,.85082],[.89862,.75299,.85446],[.89982,.75775,.85805],[.90101,.76247,.86163],[.90218,.76716,.86517],[.90335,.77183,.8687],[.90451,.77647,.8722],[.90567,.78107,.87566],[.90681,.78565,.87911],[.90794,.7902,.88253],[.90906,.79472,.88593],[.91019,.79922,.88931],[.9113,.80367,.89266],[.9124,.8081,.89599],[.91349,.8125,.8993],[.91458,.81688,.90258],[.91565,.82121,.90584],[.91673,.82552,.90907],[.9178,.8298,.91228],[.91885,.83405,.91546],[.9199,.83826,.91863],[.92093,.84245,.92177],[.92197,.84659,.92488],[.92299,.85071,.92797],[.92401,.8548,.93104],[.92501,.85885,.93408],[.92601,.86287,.9371],[.92699,.86685,.94009],[.92797,.8708,.94306],[.92894,.87472,.94599],[.92991,.8786,.94891],[.93086,.88245,.9518],[.9318,.88626,.95466],[.93273,.89004,.95749],[.93365,.89378,.96031],[.93457,.8975,.96309],[.93547,.90117,.96585],[.93637,.90482,.96859],[.93725,.90844,.97131],[.93813,.91203,.974],[.939,.9156,.97668],[.93986,.91915,.97935]],Ds=jt(ks),xn={id:"scientific-colour-map-acton",label:"Scientific Colour Map – Acton",description:"Acton sequential palette sampled at 256 steps from Fabio Crameri's Scientific Colour Maps",source:"https://www.fabiocrameri.ch/colourmaps/",tags:["sequential","scientific-colour-map","acton"],swatches:Ds};be(xn);var Rs=[[.90019,.89986,.99991],[.88957,.8921,.9936],[.87895,.88435,.9873],[.86836,.8766,.981],[.85776,.86888,.97471],[.84718,.86115,.96843],[.83662,.85344,.96215],[.82607,.84574,.95589],[.81553,.83806,.94962],[.80499,.83038,.94336],[.79448,.82271,.93711],[.78398,.81505,.93086],[.77348,.8074,.92462],[.763,.79976,.91838],[.75253,.79212,.91216],[.74208,.7845,.90593],[.73164,.77688,.89972],[.72122,.76927,.8935],[.71081,.76167,.8873],[.70041,.75408,.8811],[.69002,.74649,.87491],[.67965,.73892,.86872],[.6693,.73134,.86254],[.65896,.72378,.85636],[.64863,.71623,.85019],[.63832,.70868,.84402],[.62803,.70113,.83787],[.61774,.6936,.83171],[.60748,.68607,.82555],[.59723,.67854,.8194],[.58699,.67103,.81326],[.57678,.66352,.80713],[.56658,.65601,.80098],[.55639,.6485,.79485],[.54623,.641,.78872],[.53607,.63351,.78258],[.52594,.62601,.77644],[.51581,.61852,.7703],[.50571,.61104,.76416],[.49564,.60355,.75801],[.48558,.59606,.75185],[.47555,.58857,.74568],[.46551,.58109,.73951],[.45552,.57361,.73331],[.44554,.56612,.7271],[.4356,.55862,.72086],[.42566,.55113,.71459],[.41576,.54363,.70831],[.40589,.53612,.70197],[.39604,.52861,.69561],[.38621,.52108,.6892],[.37644,.51355,.68272],[.3667,.506,.6762],[.357,.49846,.66961],[.34734,.4909,.66295],[.33772,.48331,.65622],[.32816,.47573,.6494],[.31867,.46812,.64248],[.30926,.46051,.63547],[.29989,.45291,.62837],[.29062,.44528,.62115],[.28145,.43766,.61382],[.27237,.43002,.60638],[.26344,.42238,.59882],[.25462,.41477,.59114],[.2459,.40715,.58333],[.23739,.39954,.57541],[.22901,.39196,.56736],[.22082,.3844,.55919],[.21278,.37688,.55092],[.20499,.36938,.54253],[.1974,.36193,.53402],[.19002,.35453,.52543],[.18288,.34718,.51674],[.17599,.33988,.50798],[.1694,.33265,.49912],[.16302,.32546,.49021],[.15689,.31838,.48124],[.15103,.31136,.47222],[.14549,.30442,.46315],[.14012,.29756,.45407],[.13509,.29078,.44496],[.1303,.28408,.43583],[.12572,.27748,.42669],[.12135,.27096,.41756],[.11727,.2645,.40842],[.11345,.25812,.3993],[.10981,.25186,.39021],[.10635,.24564,.38115],[.10306,.23952,.37208],[.099941,.23345,.36307],[.097002,.2275,.35409],[.094303,.22159,.34515],[.091713,.21576,.33624],[.08922,.20999,.32738],[.086919,.20432,.31857],[.084717,.19867,.30982],[.082644,.19313,.30108],[.080696,.18768,.29243],[.078849,.18223,.28382],[.077157,.17692,.27529],[.075616,.17166,.26679],[.074219,.16651,.25838],[.072907,.16146,.25002],[.071722,.15647,.24178],[.070637,.15156,.23358],[.069756,.14679,.22551],[.068993,.14217,.21752],[.068301,.13767,.20963],[.067772,.13328,.20186],[.067395,.12903,.19427],[.067165,.12499,.18675],[.067086,.1211,.17943],[.06716,.11745,.17227],[.06739,.114,.1653],[.067779,.11082,.1586],[.068337,.10781,.15205],[.069084,.1051,.14582],[.069909,.10272,.13976],[.070958,.10059,.13409],[.07215,.098812,.12866],[.073639,.097347,.12356],[.075176,.096199,.11887],[.076956,.095493,.11442],[.078977,.095119,.11047],[.081272,.095095,.10685],[.08373,.095427,.10358],[.086376,.0961,.10069],[.089318,.097212,.098263],[.092445,.098697,.096142],[.095823,.1005,.094539],[.099434,.1027,.093176],[.10331,.10518,.092312],[.10736,.10803,.091807],[.11165,.11122,.091623],[.11615,.11461,.091779],[.12079,.11839,.092234],[.12572,.1223,.092972],[.13079,.12655,.094115],[.13596,.13101,.09548],[.14139,.13561,.097052],[.14689,.14047,.098938],[.15255,.1455,.10101],[.15837,.15062,.10334],[.16427,.15594,.1058],[.17026,.16138,.10841],[.17633,.16692,.11128],[.18252,.17255,.11419],[.18882,.17834,.11728],[.19515,.18416,.12049],[.20155,.19009,.12381],[.20805,.19611,.12723],[.21458,.20216,.13079],[.22119,.20831,.13438],[.22783,.2145,.13805],[.23454,.22078,.14177],[.24127,.22707,.14559],[.24807,.23339,.14942],[.2549,.2398,.1533],[.26176,.24624,.15725],[.26868,.25273,.16129],[.27563,.25926,.16528],[.28262,.26581,.16941],[.28963,.27238,.17349],[.29669,.27902,.17766],[.30376,.28566,.18179],[.3109,.29236,.18603],[.31804,.29909,.19023],[.32522,.30585,.19452],[.33245,.31261,.19876],[.3397,.31943,.20308],[.34697,.32626,.20741],[.35426,.33314,.21177],[.3616,.34004,.21615],[.36896,.34696,.22055],[.37635,.3539,.22493],[.38376,.36087,.22938],[.3912,.36788,.23384],[.39866,.37491,.23833],[.40617,.38197,.24285],[.41369,.38907,.24741],[.42124,.39618,.25198],[.42882,.40333,.25657],[.43643,.41052,.26122],[.44408,.41772,.2659],[.45174,.42496,.27062],[.45943,.43224,.27538],[.46716,.43954,.28017],[.47492,.44688,.28502],[.48269,.45427,.28994],[.49051,.46168,.29492],[.49836,.46915,.29998],[.50622,.47664,.3051],[.51414,.48418,.31031],[.52207,.49178,.3156],[.53005,.4994,.32098],[.53805,.50709,.32645],[.54608,.51482,.33206],[.55413,.52259,.33776],[.56223,.53042,.34359],[.57033,.5383,.34955],[.57847,.54623,.35565],[.58663,.5542,.36188],[.59481,.56223,.36826],[.60301,.57029,.37478],[.61122,.57841,.38147],[.61944,.58657,.38831],[.62766,.59478,.39532],[.63589,.60302,.40247],[.64412,.6113,.40981],[.65234,.61961,.41731],[.66055,.62795,.42496],[.66876,.63632,.43277],[.67694,.6447,.44072],[.6851,.6531,.44885],[.69323,.66153,.45711],[.70133,.66997,.46551],[.70942,.67841,.47407],[.71746,.68685,.48274],[.72547,.6953,.49156],[.73343,.70375,.50046],[.74136,.7122,.5095],[.74926,.72065,.51864],[.75712,.72909,.52786],[.76495,.73752,.53719],[.77273,.74596,.5466],[.78049,.75439,.55608],[.78821,.7628,.56564],[.7959,.77122,.57527],[.80357,.77962,.58497],[.81121,.78803,.59472],[.81882,.79643,.60453],[.82642,.80483,.61437],[.834,.81323,.62428],[.84156,.82163,.63423],[.84911,.83004,.64421],[.85665,.83844,.65423],[.86419,.84685,.66429],[.87171,.85527,.67438],[.87923,.8637,.6845],[.88675,.87213,.69466],[.89427,.88056,.70484],[.90179,.88902,.71505],[.90931,.89748,.7253],[.91683,.90595,.73555],[.92435,.91443,.74584],[.93188,.92293,.75615],[.93942,.93143,.76649],[.94696,.93996,.77685],[.9545,.94849,.78723],[.96204,.95704,.79763],[.9696,.9656,.80806],[.97716,.97418,.81851],[.98473,.98277,.82899],[.9923,.99138,.83948],[.99987,1,.84999]],Ps=jt(Rs),Tn={id:"scientific-colour-map-lisbon",label:"Scientific Colour Map – Lisbon",description:"Lisbon sequential palette sampled at 256 steps from Fabio Crameri's Scientific Colour Maps",source:"https://www.fabiocrameri.ch/colourmaps/",tags:["sequential","scientific-colour-map","lisbon"],swatches:Ps};be(Tn);var On=[{key:"ALARM",name:"Alarm",hex:"#e15153",text:"#000000"},{key:"ERROR",name:"Error",hex:"#e15153",text:"#000000"},{key:"FAILED",name:"Failed",hex:"#e15153",text:"#000000"},{key:"FAULT",name:"Fault",hex:"#e15153",text:"#000000"},{key:"NOT_ESTABLISHED",name:"Not_establiched",hex:"#e15153",text:"#000000"},{key:"ABORTED",name:"Aborted",hex:"#e49444ff",text:"#000000"},{key:"ABORTING",name:"Aborting",hex:"#e49444ff",text:"#000000"},{key:"DEGRADED",name:"Degraded",hex:"#f9c26aff",text:"#000000"},{key:"OPERATE_DEGRADED",name:"Operate_Degraded",hex:"#f9c26aff",text:"#000000"},{key:"WARNING",name:"Warning",hex:"#e7bf60ff",text:"#000000"},{key:"MOVING",name:"Moving",hex:"#B68AC2",text:"#000000"},{key:"MAINTENANCE",name:"Maintenance",hex:"#4E79A7",text:"#000000"},{key:"ENGINEERING",name:"Engineering",hex:"#4E79A7",text:"#000000"},{key:"RESERVED",name:"Reserved",hex:"#4E79A7",text:"#000000"},{key:"DISABLE",name:"Disable",hex:"#f7ebe5e1",text:"#000000"},{key:"EMPTY",name:"Idle",hex:"#f7ebe5e1",text:"#000000"},{key:"INIT",name:"Init",hex:"#f7ebe5e1",text:"#000000"},{key:"NO_SUPPLY",name:"No Supply",hex:"#646464da",text:"#FFFFFF"},{key:"OFF",name:"Off",hex:"#646464da",text:"#FFFFFF"},{key:"OFFLINE",name:"Offline",hex:"#646464da",text:"#FFFFFF"},{key:"RESTARTING",name:"Restarting",hex:"#f7ebe5e1",text:"#000000"},{key:"NOT PROGRAMMED",name:"Not programmed",hex:"#f7ebe5e1",text:"#000000"},{key:"STANDBY",name:"Standby",hex:"#f7ebe5e1",text:"#000000"},{key:"STANDBY_LP",name:"Standby_lp",hex:"#EED8A3",text:"#000000"},{key:"STANDBY_FP",name:"Standby_fp",hex:"#A3CCEE",text:"#000000"},{key:"UNCONNECTED",name:"Unconnected",hex:"#f7ebe5e1",text:"#000000"},{key:"UNKNOWN",name:"Unknown",hex:"#f7ebe5e1",text:"#000000"},{key:"NOT_FITTED",name:"Not Fitted",hex:"#f7ebe5e1",text:"#000000"},{key:"UNINITIALISED",name:"Uninitialised",hex:"#f7ebe5e1",text:"#000000"},{key:"CALIBRATING",name:"Calibrating",hex:"#78927A",text:"#000000"},{key:"CONFIGURING",name:"Configuring",hex:"#78927A",text:"#000000"},{key:"CONFIGURE",name:"Configure",hex:"#78927A",text:"#000000"},{key:"GOOD",name:"Good",hex:"#78927A",text:"#000000"},{key:"HEALTHY",name:"Healthy",hex:"#78927A",text:"#000000"},{key:"IDLE",name:"Idle",hex:"#78927A",text:"#000000"},{key:"OK",name:"Ok",hex:"#78927A",text:"#000000"},{key:"ON",name:"On",hex:"#78927A",text:"#000000"},{key:"NORMAL",name:"Normal",hex:"#78927A",text:"#000000"},{key:"ONLINE",name:"Online",hex:"#78927A",text:"#000000"},{key:"OPEN",name:"Open",hex:"#78927A",text:"#000000"},{key:"OPERATE",name:"Operate",hex:"#78927A",text:"#000000"},{key:"OPERATE_FULL",name:"Operate_Full",hex:"#78927A",text:"#000000"},{key:"OPERATIONAL",name:"Operational",hex:"#78927A",text:"#000000"},{key:"PROGRAMMED",name:"Programmed",hex:"#78927A",text:"#000000"},{key:"PROGRAMMING",name:"Programming",hex:"#78927A",text:"#000000"},{key:"READY",name:"Ready",hex:"#78927A",text:"#000000"},{key:"REMOTE",name:"Remote",hex:"#78927A",text:"#000000"},{key:"RESETTING",name:"Resetting",hex:"#78927A",text:"#000000"},{key:"RUNNING",name:"Running",hex:"#78927A",text:"#000000"},{key:"RESOURCING",name:"Resourcing",hex:"#78927A",text:"#000000"},{key:"SCAN",name:"Scan",hex:"#78927A",text:"#000000"},{key:"SCANNING",name:"Scanning",hex:"#78927A",text:"#000000"},{key:"SYNCHRONISED",name:"Synchronised",hex:"#78927A",text:"#000000"},{key:"STOW",name:"Stow",hex:"#78927A",text:"#000000"},{key:"TRACK",name:"Track",hex:"#78927A",text:"#000000"},{key:"LOW",name:"Low",hex:"#E9C061",text:"#000000"},{key:"FULL",name:"Full",hex:"#55A3E3",text:"#000000"},{key:"DISABLED",name:"Disabled",hex:"#f7ebe5e1",text:"#000000"},{key:"ESTABLISHED",name:"Established",hex:"#78927A",text:"#000000"},{key:"EXTRACT",name:"Extract",hex:"#76B7B2",text:"#000000"},{key:"INSERT",name:"Insert",hex:"#4E79A7",text:"#000000"},{key:"CLOSE",name:"Close",hex:"#4E79A7",text:"#000000"}],Sn={id:"state-colors",label:"State Colors",description:"Status colors with gray-safe states and alarms highlighted.",tags:["state","status"],swatches:On},Nn=be(Sn),Fs=On.reduce((e,t)=>(e[t.key]=t.text,e),{}),Ls=[[.171032,.100402,.299782],[.170868,.104144,.303372],[.170677,.107856,.306989],[.170463,.111594,.310614],[.170227,.11524,.314216],[.169972,.118939,.31784],[.169698,.122543,.321462],[.169404,.12624,.325088],[.169084,.129892,.328738],[.168737,.133501,.332383],[.168373,.137129,.336012],[.168007,.140767,.339673],[.167646,.144378,.343319],[.167278,.14799,.346977],[.166888,.1516,.350639],[.166476,.155235,.354294],[.166051,.158875,.357969],[.165623,.162508,.361639],[.165203,.166121,.365312],[.164797,.169787,.369002],[.164391,.173411,.372682],[.163968,.177075,.376391],[.163527,.180716,.380085],[.163081,.184398,.383795],[.162637,.188101,.387502],[.162198,.191754,.391238],[.16176,.195449,.394962],[.16131,.199141,.3987],[.160837,.202866,.402443],[.160362,.20662,.406214],[.159908,.210329,.409984],[.159471,.214084,.413758],[.159039,.217839,.417555],[.158601,.221601,.421349],[.158144,.225384,.425181],[.157676,.229179,.429013],[.157228,.232977,.43287],[.156806,.236829,.436744],[.156386,.240632,.440631],[.155952,.244485,.444564],[.155517,.248387,.448507],[.155097,.252261,.452491],[.154694,.256148,.456492],[.154309,.260084,.460536],[.153943,.264033,.464642],[.1536,.267966,.468777],[.153286,.271942,.472958],[.153005,.275975,.477209],[.152762,.279975,.481516],[.152563,.284007,.485886],[.152415,.288059,.490337],[.152323,.292137,.494857],[.152295,.296219,.499444],[.152339,.30031,.504136],[.152463,.304414,.508899],[.152674,.308529,.513749],[.152981,.312618,.518688],[.153392,.316727,.523706],[.153915,.320817,.528817],[.154555,.324864,.533993],[.155323,.328919,.53926],[.156229,.332926,.544598],[.157206,.336879,.549998],[.158378,.340797,.555448],[.159616,.344655,.560957],[.161055,.348463,.566511],[.162589,.352195,.57209],[.164258,.355879,.577689],[.166003,.35947,.583313],[.167904,.362993,.588941],[.169932,.366457,.594581],[.172025,.369823,.600212],[.174249,.37313,.60583],[.176531,.376379,.611449],[.178949,.37954,.617045],[.181403,.382648,.622622],[.183976,.385696,.62819],[.186619,.388711,.633736],[.189341,.391669,.639262],[.192134,.394587,.644771],[.195027,.397481,.650276],[.197982,.400359,.655767],[.20103,.403213,.661243],[.204231,.406065,.666711],[.207483,.408906,.672184],[.210863,.411761,.677651],[.214378,.414631,.683108],[.218033,.417528,.688571],[.221826,.420436,.694021],[.225816,.423384,.699481],[.22993,.426373,.704939],[.234292,.429408,.71039],[.238813,.432492,.715836],[.243553,.435617,.721257],[.248547,.438782,.726672],[.253725,.442028,.732066],[.259152,.445303,.737422],[.264778,.448649,.74275],[.270677,.452043,.748029],[.276773,.45548,.75325],[.283095,.458971,.758422],[.289622,.462495,.763516],[.296351,.466068,.768535],[.303257,.469688,.773474],[.310367,.473307,.778324],[.317597,.476974,.783072],[.32497,.480647,.787721],[.332494,.484334,.792267],[.340093,.488042,.796701],[.347786,.491739,.80103],[.355555,.495425,.805247],[.363359,.499108,.809363],[.371217,.502778,.813363],[.379113,.506438,.817267],[.387014,.510082,.821072],[.394935,.513709,.82478],[.402847,.51731,.828402],[.410758,.520881,.831943],[.418634,.524436,.835398],[.426504,.527966,.838782],[.434346,.531477,.842105],[.442172,.534964,.845359],[.449948,.538437,.848559],[.457695,.541872,.851707],[.465406,.545307,.85481],[.473085,.548724,.857863],[.480729,.552119,.860879],[.488341,.555493,.863862],[.495894,.558869,.866797],[.503414,.562249,.869705],[.510895,.565597,.872582],[.518335,.568956,.875424],[.525716,.57232,.878233],[.533049,.575682,.881008],[.540328,.579042,.883754],[.547548,.582405,.886461],[.55471,.585792,.88913],[.561804,.589169,.89176],[.568813,.592583,.894351],[.57576,.595989,.896895],[.5826,.599423,.89939],[.589354,.602864,.90183],[.596014,.606322,.904217],[.602558,.6098,.90655],[.608993,.613288,.908815],[.615285,.616803,.911017],[.621456,.620324,.91315],[.62749,.623854,.915206],[.633377,.627389,.917197],[.63911,.630941,.919099],[.644686,.634493,.920929],[.650114,.638043,.922685],[.655374,.641594,.924355],[.660476,.645145,.925951],[.665423,.648695,.927463],[.670216,.652234,.928904],[.674845,.655767,.930274],[.679329,.659281,.931567],[.683675,.662794,.932793],[.687888,.666281,.933957],[.691973,.669769,.935062],[.695936,.673235,.936114],[.699783,.67669,.93711],[.703538,.680123,.938058],[.707197,.683555,.938964],[.710775,.686972,.939834],[.714271,.690376,.940666],[.717713,.693771,.941466],[.721083,.69716,.942246],[.724414,.700543,.942999],[.727695,.703915,.94373],[.73094,.707284,.944446],[.734158,.710651,.945148],[.737345,.714009,.945832],[.740512,.717375,.946509],[.743663,.720725,.947182],[.746797,.724085,.947844],[.749918,.727443,.9485],[.753034,.730802,.949152],[.756148,.734165,.949802],[.759251,.737524,.95045],[.762355,.740887,.951095],[.765464,.744257,.951736],[.768558,.747631,.952378],[.771667,.751005,.953024],[.774765,.75438,.953665],[.777876,.757757,.954305],[.780981,.761139,.954947],[.784096,.764526,.955591],[.787207,.767912,.956232],[.790319,.771312,.956872],[.793444,.774703,.957517],[.796559,.778108,.958163],[.799691,.781515,.958806],[.802814,.784924,.95945],[.805948,.788334,.960097],[.809088,.791749,.960744],[.812223,.795169,.961389],[.815367,.798594,.962035],[.81851,.80202,.962686],[.821666,.80545,.963336],[.824815,.808891,.963984],[.827972,.812327,.964634],[.831138,.815773,.965286],[.834302,.819214,.965939],[.83747,.82267,.966593],[.84064,.826123,.967249],[.84381,.829585,.967905],[.846989,.833043,.968558],[.850174,.83651,.969212],[.853356,.839984,.969868],[.856547,.843451,.970526],[.859742,.846929,.971184],[.86294,.850412,.971844],[.866137,.853895,.972506],[.86934,.857386,.973165],[.872548,.860879,.973823],[.875758,.864379,.974484],[.878969,.867881,.975146],[.882187,.871384,.975809],[.885409,.87489,.976473],[.888635,.878403,.97714],[.891863,.88192,.977804],[.895095,.885439,.978468],[.898326,.888964,.979137],[.901566,.892492,.979807],[.904809,.896022,.980474],[.908057,.899559,.981142],[.911303,.903098,.981813],[.914556,.906639,.982484],[.917813,.910187,.983151],[.921066,.913737,.983823],[.92433,.917292,.984498],[.927593,.920843,.98517],[.930866,.924406,.985842],[.934133,.92797,.986516],[.937412,.93154,.987191],[.940689,.935113,.987862],[.943968,.93869,.988536],[.947251,.942272,.989213],[.950534,.945851,.989888],[.953821,.949437,.990561],[.957106,.95303,.991236],[.960399,.956621,.991911],[.963687,.960219,.992587],[.966981,.963815,.993262],[.970273,.967421,.993933],[.973568,.971024,.994603],[.976862,.974631,.995274],[.980158,.978242,.995945],[.98345,.981861,.996615],[.986748,.985477,.997285],[.99004,.989098,.997954],[.993335,.992721,.998623],[.996621,.99634,.99929],[.999916,.99997,.999952]],Ms=jt(Ls),In={id:"scientific-colour-map-devon",label:"Scientific Colour Map - Devon",description:"Devon sequential palette sampled at 256 steps from Fabio Crameri's Scientific Colour Maps",source:"https://www.fabiocrameri.ch/colourmaps/",tags:["sequential","scientific-colour-map","devon"],swatches:Ms};be(In);var Us={tableau10:_n,scientificActon10:xn,scientificDevon10:In,scientificLisbon10:Tn,stateColors:Sn},Bs=Object.keys(Us);Bs[0],Mt(`.dataLoadFailedContainer {
46
+ `);var oe=t=>t.swatches.reduce((e,r)=>(e[r.key]=r.hex,e),{}),sa=[{key:"blue",name:"Blue",hex:"#5778a4"},{key:"orange",name:"Orange",hex:"#e49444"},{key:"red",name:"Red",hex:"#d1615d"},{key:"teal",name:"Teal",hex:"#85b6b2"},{key:"green",name:"Green",hex:"#6a9f58"},{key:"yellow",name:"Yellow",hex:"#e7ca60"},{key:"purple",name:"Purple",hex:"#a87c9f"},{key:"pink",name:"Pink",hex:"#f1a2a9"},{key:"brown",name:"Brown",hex:"#967662"},{key:"grey",name:"Grey",hex:"#b8b0ac"}],rn={id:"tableau-10",label:"Tableau 10",description:"Default categorical palette shipped with Tableau",tags:["categorical","tableau"],swatches:sa};oe(rn);var Ct=t=>{const e=Math.round(t*255);return Number.isNaN(e)?0:Math.max(0,Math.min(255,e))},kt=t=>t.toString(16).padStart(2,"0").toUpperCase(),Dt=(t,e={})=>{var r,n;const i=(r=e.keyPrefix)!=null?r:"step",o=(n=e.namePrefix)!=null?n:"step",a=Math.max(3,String(t.length).length);return t.map((s,c)=>{const[l,f,h]=s,p=[Ct(l),Ct(f),Ct(h)],y=`#${kt(p[0])}${kt(p[1])}${kt(p[2])}`;return{key:`${i}${String(c+1).padStart(a,"0")}`,name:`${o}-${c+1}`,hex:y,rgb:p}})},ca=[[.1494,.049588,.2492],[.15292,.054745,.25374],[.1565,.059987,.25825],[.15997,.065016,.26278],[.16352,.070056,.26727],[.16701,.075019,.27176],[.17046,.079947,.27627],[.1739,.084871,.2807],[.17734,.089731,.28514],[.18072,.094578,.28957],[.18411,.099319,.29396],[.1875,.10408,.29834],[.19081,.1088,.30269],[.19416,.11354,.30703],[.19745,.11822,.31134],[.20071,.12281,.31563],[.20401,.12746,.3199],[.20725,.13209,.32412],[.21047,.13666,.32835],[.21368,.14126,.33256],[.21689,.14581,.33673],[.22007,.15032,.34089],[.22323,.15482,.34503],[.22638,.15931,.34915],[.22949,.16383,.35325],[.23263,.16825,.35734],[.23575,.1727,.3614],[.23883,.17714,.36545],[.24192,.18153,.36948],[.24497,.18597,.3735],[.24807,.19033,.3775],[.25111,.19472,.3815],[.25414,.19904,.38546],[.25717,.2034,.38942],[.26018,.20772,.39336],[.26319,.21205,.39729],[.26619,.21635,.40122],[.26918,.22063,.40511],[.27212,.22486,.409],[.2751,.22913,.41288],[.27806,.23336,.41674],[.28099,.23762,.42058],[.28393,.24182,.42442],[.28685,.246,.42824],[.28978,.25018,.43206],[.29268,.25438,.43585],[.29558,.25853,.43963],[.29848,.26268,.44341],[.30136,.26681,.44716],[.30425,.27094,.45091],[.30713,.27503,.45465],[.31003,.27914,.45836],[.31289,.28321,.46207],[.3158,.28726,.46576],[.31868,.29133,.46946],[.32158,.29535,.47311],[.32451,.29938,.47677],[.32747,.30337,.48041],[.33046,.30736,.48403],[.3335,.31133,.48764],[.33657,.31528,.49123],[.33973,.3192,.49478],[.34295,.3231,.49832],[.34623,.32694,.5018],[.34964,.33075,.50525],[.35314,.33453,.50866],[.35676,.3382,.51199],[.36048,.34183,.51526],[.36434,.34536,.51845],[.36834,.3488,.52152],[.37244,.3521,.5245],[.37668,.35531,.52735],[.38102,.35833,.53006],[.38545,.3612,.53263],[.38998,.36391,.53502],[.39459,.36646,.53727],[.39925,.3688,.53932],[.40397,.37095,.54121],[.4087,.37293,.54294],[.41346,.37473,.54449],[.41821,.37636,.54589],[.42296,.3778,.54712],[.42772,.3791,.54822],[.43245,.38027,.54919],[.43716,.3813,.55004],[.44186,.38221,.55079],[.44653,.38304,.55145],[.45121,.38377,.55203],[.45586,.38442,.55254],[.46051,.38502,.55299],[.46517,.38556,.5534],[.46983,.38606,.55377],[.4745,.38652,.55411],[.47917,.38696,.55442],[.48385,.38738,.55472],[.48857,.38778,.55499],[.49329,.38817,.55525],[.49805,.38855,.55551],[.50281,.38893,.55575],[.50762,.38929,.556],[.51244,.38965,.55624],[.5173,.39,.55649],[.52217,.39037,.55673],[.5271,.39073,.55697],[.53204,.3911,.55721],[.53701,.39146,.55745],[.542,.39182,.55769],[.54703,.39219,.55792],[.55209,.39255,.55816],[.55718,.39292,.55841],[.5623,.39329,.55865],[.56744,.39367,.5589],[.57262,.39404,.55915],[.57781,.39442,.5594],[.58304,.3948,.55965],[.5883,.39519,.55991],[.59359,.39557,.56016],[.59891,.39596,.56041],[.60425,.39634,.56067],[.60962,.39673,.56092],[.61501,.39712,.56118],[.62045,.39752,.56145],[.62589,.39793,.56172],[.63138,.39834,.562],[.63689,.39874,.56227],[.64242,.39916,.56256],[.64797,.39958,.56284],[.65356,.40003,.56315],[.65918,.4005,.56346],[.66482,.40098,.56379],[.67049,.40146,.56414],[.67618,.40198,.56451],[.68188,.40254,.56491],[.68762,.40315,.56535],[.69337,.40381,.56585],[.69914,.40452,.5664],[.70491,.40532,.56702],[.7107,.40621,.5677],[.71648,.40719,.56848],[.72223,.4083,.56936],[.72798,.40954,.57036],[.73368,.41094,.57149],[.73934,.4125,.57277],[.74492,.41424,.57419],[.75043,.41618,.5758],[.75583,.41833,.57756],[.76111,.4207,.57953],[.76624,.4233,.58167],[.77122,.42613,.58402],[.77601,.42919,.58656],[.78061,.43248,.58928],[.78501,.43597,.59221],[.78919,.43967,.59529],[.79315,.44356,.59854],[.79688,.44763,.60195],[.80039,.45187,.60549],[.80368,.45624,.60917],[.80677,.46074,.61294],[.80965,.46535,.61683],[.81235,.47006,.6208],[.81487,.47484,.62483],[.81725,.47969,.62893],[.81948,.48458,.63307],[.82159,.48952,.63726],[.8236,.49451,.64148],[.82551,.4995,.64574],[.82735,.50454,.65002],[.82912,.50958,.65431],[.83084,.51464,.65862],[.83251,.51971,.66295],[.83415,.5248,.66728],[.83576,.52989,.67162],[.83735,.53498,.67597],[.83892,.54009,.68032],[.84048,.5452,.68469],[.84203,.55032,.68906],[.84356,.55544,.69343],[.8451,.56057,.6978],[.84663,.56569,.70217],[.84816,.57083,.70655],[.84969,.57598,.71093],[.8512,.58112,.71531],[.85273,.58627,.71969],[.85425,.59141,.72406],[.85577,.59657,.72843],[.85728,.60172,.73281],[.85879,.60688,.73717],[.8603,.61203,.74153],[.8618,.6172,.74588],[.86331,.62235,.75022],[.86479,.62751,.75455],[.86628,.63267,.75886],[.86776,.63783,.76316],[.86924,.64298,.76744],[.8707,.64812,.7717],[.87216,.65326,.77594],[.8736,.6584,.78016],[.87503,.66353,.78436],[.87645,.66865,.78852],[.87786,.67375,.79265],[.87925,.67885,.79676],[.88064,.68393,.80083],[.88201,.689,.80488],[.88337,.69404,.80889],[.88471,.69908,.81286],[.88604,.7041,.81681],[.88735,.7091,.82072],[.88866,.71406,.82459],[.88994,.71902,.82844],[.89122,.72395,.83225],[.89248,.72885,.83603],[.89373,.73373,.83978],[.89497,.73859,.84348],[.8962,.74342,.84717],[.89742,.74822,.85082],[.89862,.75299,.85446],[.89982,.75775,.85805],[.90101,.76247,.86163],[.90218,.76716,.86517],[.90335,.77183,.8687],[.90451,.77647,.8722],[.90567,.78107,.87566],[.90681,.78565,.87911],[.90794,.7902,.88253],[.90906,.79472,.88593],[.91019,.79922,.88931],[.9113,.80367,.89266],[.9124,.8081,.89599],[.91349,.8125,.8993],[.91458,.81688,.90258],[.91565,.82121,.90584],[.91673,.82552,.90907],[.9178,.8298,.91228],[.91885,.83405,.91546],[.9199,.83826,.91863],[.92093,.84245,.92177],[.92197,.84659,.92488],[.92299,.85071,.92797],[.92401,.8548,.93104],[.92501,.85885,.93408],[.92601,.86287,.9371],[.92699,.86685,.94009],[.92797,.8708,.94306],[.92894,.87472,.94599],[.92991,.8786,.94891],[.93086,.88245,.9518],[.9318,.88626,.95466],[.93273,.89004,.95749],[.93365,.89378,.96031],[.93457,.8975,.96309],[.93547,.90117,.96585],[.93637,.90482,.96859],[.93725,.90844,.97131],[.93813,.91203,.974],[.939,.9156,.97668],[.93986,.91915,.97935]],la=Dt(ca),nn={id:"scientific-colour-map-acton",label:"Scientific Colour Map – Acton",description:"Acton sequential palette sampled at 256 steps from Fabio Crameri's Scientific Colour Maps",source:"https://www.fabiocrameri.ch/colourmaps/",tags:["sequential","scientific-colour-map","acton"],swatches:la};oe(nn);var ua=[[.90019,.89986,.99991],[.88957,.8921,.9936],[.87895,.88435,.9873],[.86836,.8766,.981],[.85776,.86888,.97471],[.84718,.86115,.96843],[.83662,.85344,.96215],[.82607,.84574,.95589],[.81553,.83806,.94962],[.80499,.83038,.94336],[.79448,.82271,.93711],[.78398,.81505,.93086],[.77348,.8074,.92462],[.763,.79976,.91838],[.75253,.79212,.91216],[.74208,.7845,.90593],[.73164,.77688,.89972],[.72122,.76927,.8935],[.71081,.76167,.8873],[.70041,.75408,.8811],[.69002,.74649,.87491],[.67965,.73892,.86872],[.6693,.73134,.86254],[.65896,.72378,.85636],[.64863,.71623,.85019],[.63832,.70868,.84402],[.62803,.70113,.83787],[.61774,.6936,.83171],[.60748,.68607,.82555],[.59723,.67854,.8194],[.58699,.67103,.81326],[.57678,.66352,.80713],[.56658,.65601,.80098],[.55639,.6485,.79485],[.54623,.641,.78872],[.53607,.63351,.78258],[.52594,.62601,.77644],[.51581,.61852,.7703],[.50571,.61104,.76416],[.49564,.60355,.75801],[.48558,.59606,.75185],[.47555,.58857,.74568],[.46551,.58109,.73951],[.45552,.57361,.73331],[.44554,.56612,.7271],[.4356,.55862,.72086],[.42566,.55113,.71459],[.41576,.54363,.70831],[.40589,.53612,.70197],[.39604,.52861,.69561],[.38621,.52108,.6892],[.37644,.51355,.68272],[.3667,.506,.6762],[.357,.49846,.66961],[.34734,.4909,.66295],[.33772,.48331,.65622],[.32816,.47573,.6494],[.31867,.46812,.64248],[.30926,.46051,.63547],[.29989,.45291,.62837],[.29062,.44528,.62115],[.28145,.43766,.61382],[.27237,.43002,.60638],[.26344,.42238,.59882],[.25462,.41477,.59114],[.2459,.40715,.58333],[.23739,.39954,.57541],[.22901,.39196,.56736],[.22082,.3844,.55919],[.21278,.37688,.55092],[.20499,.36938,.54253],[.1974,.36193,.53402],[.19002,.35453,.52543],[.18288,.34718,.51674],[.17599,.33988,.50798],[.1694,.33265,.49912],[.16302,.32546,.49021],[.15689,.31838,.48124],[.15103,.31136,.47222],[.14549,.30442,.46315],[.14012,.29756,.45407],[.13509,.29078,.44496],[.1303,.28408,.43583],[.12572,.27748,.42669],[.12135,.27096,.41756],[.11727,.2645,.40842],[.11345,.25812,.3993],[.10981,.25186,.39021],[.10635,.24564,.38115],[.10306,.23952,.37208],[.099941,.23345,.36307],[.097002,.2275,.35409],[.094303,.22159,.34515],[.091713,.21576,.33624],[.08922,.20999,.32738],[.086919,.20432,.31857],[.084717,.19867,.30982],[.082644,.19313,.30108],[.080696,.18768,.29243],[.078849,.18223,.28382],[.077157,.17692,.27529],[.075616,.17166,.26679],[.074219,.16651,.25838],[.072907,.16146,.25002],[.071722,.15647,.24178],[.070637,.15156,.23358],[.069756,.14679,.22551],[.068993,.14217,.21752],[.068301,.13767,.20963],[.067772,.13328,.20186],[.067395,.12903,.19427],[.067165,.12499,.18675],[.067086,.1211,.17943],[.06716,.11745,.17227],[.06739,.114,.1653],[.067779,.11082,.1586],[.068337,.10781,.15205],[.069084,.1051,.14582],[.069909,.10272,.13976],[.070958,.10059,.13409],[.07215,.098812,.12866],[.073639,.097347,.12356],[.075176,.096199,.11887],[.076956,.095493,.11442],[.078977,.095119,.11047],[.081272,.095095,.10685],[.08373,.095427,.10358],[.086376,.0961,.10069],[.089318,.097212,.098263],[.092445,.098697,.096142],[.095823,.1005,.094539],[.099434,.1027,.093176],[.10331,.10518,.092312],[.10736,.10803,.091807],[.11165,.11122,.091623],[.11615,.11461,.091779],[.12079,.11839,.092234],[.12572,.1223,.092972],[.13079,.12655,.094115],[.13596,.13101,.09548],[.14139,.13561,.097052],[.14689,.14047,.098938],[.15255,.1455,.10101],[.15837,.15062,.10334],[.16427,.15594,.1058],[.17026,.16138,.10841],[.17633,.16692,.11128],[.18252,.17255,.11419],[.18882,.17834,.11728],[.19515,.18416,.12049],[.20155,.19009,.12381],[.20805,.19611,.12723],[.21458,.20216,.13079],[.22119,.20831,.13438],[.22783,.2145,.13805],[.23454,.22078,.14177],[.24127,.22707,.14559],[.24807,.23339,.14942],[.2549,.2398,.1533],[.26176,.24624,.15725],[.26868,.25273,.16129],[.27563,.25926,.16528],[.28262,.26581,.16941],[.28963,.27238,.17349],[.29669,.27902,.17766],[.30376,.28566,.18179],[.3109,.29236,.18603],[.31804,.29909,.19023],[.32522,.30585,.19452],[.33245,.31261,.19876],[.3397,.31943,.20308],[.34697,.32626,.20741],[.35426,.33314,.21177],[.3616,.34004,.21615],[.36896,.34696,.22055],[.37635,.3539,.22493],[.38376,.36087,.22938],[.3912,.36788,.23384],[.39866,.37491,.23833],[.40617,.38197,.24285],[.41369,.38907,.24741],[.42124,.39618,.25198],[.42882,.40333,.25657],[.43643,.41052,.26122],[.44408,.41772,.2659],[.45174,.42496,.27062],[.45943,.43224,.27538],[.46716,.43954,.28017],[.47492,.44688,.28502],[.48269,.45427,.28994],[.49051,.46168,.29492],[.49836,.46915,.29998],[.50622,.47664,.3051],[.51414,.48418,.31031],[.52207,.49178,.3156],[.53005,.4994,.32098],[.53805,.50709,.32645],[.54608,.51482,.33206],[.55413,.52259,.33776],[.56223,.53042,.34359],[.57033,.5383,.34955],[.57847,.54623,.35565],[.58663,.5542,.36188],[.59481,.56223,.36826],[.60301,.57029,.37478],[.61122,.57841,.38147],[.61944,.58657,.38831],[.62766,.59478,.39532],[.63589,.60302,.40247],[.64412,.6113,.40981],[.65234,.61961,.41731],[.66055,.62795,.42496],[.66876,.63632,.43277],[.67694,.6447,.44072],[.6851,.6531,.44885],[.69323,.66153,.45711],[.70133,.66997,.46551],[.70942,.67841,.47407],[.71746,.68685,.48274],[.72547,.6953,.49156],[.73343,.70375,.50046],[.74136,.7122,.5095],[.74926,.72065,.51864],[.75712,.72909,.52786],[.76495,.73752,.53719],[.77273,.74596,.5466],[.78049,.75439,.55608],[.78821,.7628,.56564],[.7959,.77122,.57527],[.80357,.77962,.58497],[.81121,.78803,.59472],[.81882,.79643,.60453],[.82642,.80483,.61437],[.834,.81323,.62428],[.84156,.82163,.63423],[.84911,.83004,.64421],[.85665,.83844,.65423],[.86419,.84685,.66429],[.87171,.85527,.67438],[.87923,.8637,.6845],[.88675,.87213,.69466],[.89427,.88056,.70484],[.90179,.88902,.71505],[.90931,.89748,.7253],[.91683,.90595,.73555],[.92435,.91443,.74584],[.93188,.92293,.75615],[.93942,.93143,.76649],[.94696,.93996,.77685],[.9545,.94849,.78723],[.96204,.95704,.79763],[.9696,.9656,.80806],[.97716,.97418,.81851],[.98473,.98277,.82899],[.9923,.99138,.83948],[.99987,1,.84999]],fa=Dt(ua),on={id:"scientific-colour-map-lisbon",label:"Scientific Colour Map – Lisbon",description:"Lisbon sequential palette sampled at 256 steps from Fabio Crameri's Scientific Colour Maps",source:"https://www.fabiocrameri.ch/colourmaps/",tags:["sequential","scientific-colour-map","lisbon"],swatches:fa};oe(on);var an=[{key:"ALARM",name:"Alarm",hex:"#e15153",text:"#000000"},{key:"ERROR",name:"Error",hex:"#e15153",text:"#000000"},{key:"FAILED",name:"Failed",hex:"#e15153",text:"#000000"},{key:"FAULT",name:"Fault",hex:"#e15153",text:"#000000"},{key:"NOT_ESTABLISHED",name:"Not_establiched",hex:"#e15153",text:"#000000"},{key:"ABORTED",name:"Aborted",hex:"#e49444ff",text:"#000000"},{key:"ABORTING",name:"Aborting",hex:"#e49444ff",text:"#000000"},{key:"DEGRADED",name:"Degraded",hex:"#f9c26aff",text:"#000000"},{key:"OPERATE_DEGRADED",name:"Operate_Degraded",hex:"#f9c26aff",text:"#000000"},{key:"WARNING",name:"Warning",hex:"#e7bf60ff",text:"#000000"},{key:"MOVING",name:"Moving",hex:"#B68AC2",text:"#000000"},{key:"MAINTENANCE",name:"Maintenance",hex:"#4E79A7",text:"#000000"},{key:"ENGINEERING",name:"Engineering",hex:"#4E79A7",text:"#000000"},{key:"RESERVED",name:"Reserved",hex:"#4E79A7",text:"#000000"},{key:"DISABLE",name:"Disable",hex:"#f7ebe5e1",text:"#000000"},{key:"EMPTY",name:"Idle",hex:"#f7ebe5e1",text:"#000000"},{key:"INIT",name:"Init",hex:"#f7ebe5e1",text:"#000000"},{key:"NO_SUPPLY",name:"No Supply",hex:"#646464da",text:"#FFFFFF"},{key:"OFF",name:"Off",hex:"#646464da",text:"#FFFFFF"},{key:"OFFLINE",name:"Offline",hex:"#646464da",text:"#FFFFFF"},{key:"RESTARTING",name:"Restarting",hex:"#f7ebe5e1",text:"#000000"},{key:"NOT PROGRAMMED",name:"Not programmed",hex:"#f7ebe5e1",text:"#000000"},{key:"STANDBY",name:"Standby",hex:"#f7ebe5e1",text:"#000000"},{key:"STANDBY_LP",name:"Standby_lp",hex:"#EED8A3",text:"#000000"},{key:"STANDBY_FP",name:"Standby_fp",hex:"#A3CCEE",text:"#000000"},{key:"UNCONNECTED",name:"Unconnected",hex:"#f7ebe5e1",text:"#000000"},{key:"UNKNOWN",name:"Unknown",hex:"#f7ebe5e1",text:"#000000"},{key:"NOT_FITTED",name:"Not Fitted",hex:"#f7ebe5e1",text:"#000000"},{key:"UNINITIALISED",name:"Uninitialised",hex:"#f7ebe5e1",text:"#000000"},{key:"CALIBRATING",name:"Calibrating",hex:"#78927A",text:"#000000"},{key:"CONFIGURING",name:"Configuring",hex:"#78927A",text:"#000000"},{key:"CONFIGURE",name:"Configure",hex:"#78927A",text:"#000000"},{key:"GOOD",name:"Good",hex:"#78927A",text:"#000000"},{key:"HEALTHY",name:"Healthy",hex:"#78927A",text:"#000000"},{key:"IDLE",name:"Idle",hex:"#78927A",text:"#000000"},{key:"OK",name:"Ok",hex:"#78927A",text:"#000000"},{key:"ON",name:"On",hex:"#78927A",text:"#000000"},{key:"NORMAL",name:"Normal",hex:"#78927A",text:"#000000"},{key:"ONLINE",name:"Online",hex:"#78927A",text:"#000000"},{key:"OPEN",name:"Open",hex:"#78927A",text:"#000000"},{key:"OPERATE",name:"Operate",hex:"#78927A",text:"#000000"},{key:"OPERATE_FULL",name:"Operate_Full",hex:"#78927A",text:"#000000"},{key:"OPERATIONAL",name:"Operational",hex:"#78927A",text:"#000000"},{key:"PROGRAMMED",name:"Programmed",hex:"#78927A",text:"#000000"},{key:"PROGRAMMING",name:"Programming",hex:"#78927A",text:"#000000"},{key:"READY",name:"Ready",hex:"#78927A",text:"#000000"},{key:"REMOTE",name:"Remote",hex:"#78927A",text:"#000000"},{key:"RESETTING",name:"Resetting",hex:"#78927A",text:"#000000"},{key:"RUNNING",name:"Running",hex:"#78927A",text:"#000000"},{key:"RESOURCING",name:"Resourcing",hex:"#78927A",text:"#000000"},{key:"SCAN",name:"Scan",hex:"#78927A",text:"#000000"},{key:"SCANNING",name:"Scanning",hex:"#78927A",text:"#000000"},{key:"SYNCHRONISED",name:"Synchronised",hex:"#78927A",text:"#000000"},{key:"STOW",name:"Stow",hex:"#78927A",text:"#000000"},{key:"TRACK",name:"Track",hex:"#78927A",text:"#000000"},{key:"LOW",name:"Low",hex:"#E9C061",text:"#000000"},{key:"FULL",name:"Full",hex:"#55A3E3",text:"#000000"},{key:"DISABLED",name:"Disabled",hex:"#f7ebe5e1",text:"#000000"},{key:"ESTABLISHED",name:"Established",hex:"#78927A",text:"#000000"},{key:"EXTRACT",name:"Extract",hex:"#76B7B2",text:"#000000"},{key:"INSERT",name:"Insert",hex:"#4E79A7",text:"#000000"},{key:"CLOSE",name:"Close",hex:"#4E79A7",text:"#000000"}],sn={id:"state-colors",label:"State Colors",description:"Status colors with gray-safe states and alarms highlighted.",tags:["state","status"],swatches:an},cn=oe(sn),ha=an.reduce((t,e)=>(t[e.key]=e.text,t),{}),x=(t,e,r,n)=>({key:t,name:e,hex:r,dash:n}),da=[x("sky","Sky Blue","#4CC9F0","solid"),x("green","Vivid Green","#4ADE80","solid"),x("cyan","Cyan","#22D3EE","solid"),x("indigo","Indigo","#4361EE","solid"),x("lavender","Lavender","#C77DFF","solid"),x("teal","Aqua Teal","#2DD4BF","solid"),x("lemon","Lemon","#FFE066","dot"),x("emerald","Emerald","#34D399","dot"),x("cornflower","Cornflower","#60A5FA","dot"),x("violet","Violet","#8B5CF6","dot"),x("orchid","Orchid","#E879F9","dot"),x("chartreuse","Chartreuse","#AADC32","dot"),x("periwinkle","Periwinkle","#818CF8","dash"),x("turquoise","Turquoise","#5EEAD4","dash"),x("skyblue","Sky Blue 2","#38BDF8","dash"),x("amethyst","Amethyst","#A78BFA","dash"),x("lime","Lime","#B5E550","dash"),x("powder","Powder Cyan","#67E8F9","dash"),x("mint","Soft Mint","#86EFAC","longdash"),x("lilac","Lilac","#F0ABFC","longdash")],pa=[x("cobalt","Cobalt","#0077B6","solid"),x("forest","Forest","#386641","solid"),x("teal","Teal","#00916E","solid"),x("purple","Purple","#6D3FA4","solid"),x("gold","Gold","#B5830B","solid"),x("darkcyan","Dark Cyan","#0E7490","solid"),x("green","Medium Green","#2B9348","dot"),x("indigo","Indigo","#5E60CE","dot"),x("rose","Rose","#C1417A","dot"),x("deepteal","Deep Teal","#0F766E","dot"),x("royal","Royal Blue","#1D4ED8","dot"),x("violet","Violet","#7C3AED","dot"),x("deepforest","Deep Forest","#166534","dash"),x("emerald","Emerald","#047857","dash"),x("deepblue","Deep Blue","#0369A1","dash"),x("deepindigo","Deep Indigo","#4338CA","dash"),x("deepviolet","Deep Violet","#6D28D9","dash"),x("deeprose","Deep Rose","#9C2260","dash"),x("navy","Navy","#1E3A5F","longdash"),x("plum","Plum","#4C1D95","longdash")],ma={swatches:da},ya={swatches:pa};oe(ma),oe(ya);var va=[[.171032,.100402,.299782],[.170868,.104144,.303372],[.170677,.107856,.306989],[.170463,.111594,.310614],[.170227,.11524,.314216],[.169972,.118939,.31784],[.169698,.122543,.321462],[.169404,.12624,.325088],[.169084,.129892,.328738],[.168737,.133501,.332383],[.168373,.137129,.336012],[.168007,.140767,.339673],[.167646,.144378,.343319],[.167278,.14799,.346977],[.166888,.1516,.350639],[.166476,.155235,.354294],[.166051,.158875,.357969],[.165623,.162508,.361639],[.165203,.166121,.365312],[.164797,.169787,.369002],[.164391,.173411,.372682],[.163968,.177075,.376391],[.163527,.180716,.380085],[.163081,.184398,.383795],[.162637,.188101,.387502],[.162198,.191754,.391238],[.16176,.195449,.394962],[.16131,.199141,.3987],[.160837,.202866,.402443],[.160362,.20662,.406214],[.159908,.210329,.409984],[.159471,.214084,.413758],[.159039,.217839,.417555],[.158601,.221601,.421349],[.158144,.225384,.425181],[.157676,.229179,.429013],[.157228,.232977,.43287],[.156806,.236829,.436744],[.156386,.240632,.440631],[.155952,.244485,.444564],[.155517,.248387,.448507],[.155097,.252261,.452491],[.154694,.256148,.456492],[.154309,.260084,.460536],[.153943,.264033,.464642],[.1536,.267966,.468777],[.153286,.271942,.472958],[.153005,.275975,.477209],[.152762,.279975,.481516],[.152563,.284007,.485886],[.152415,.288059,.490337],[.152323,.292137,.494857],[.152295,.296219,.499444],[.152339,.30031,.504136],[.152463,.304414,.508899],[.152674,.308529,.513749],[.152981,.312618,.518688],[.153392,.316727,.523706],[.153915,.320817,.528817],[.154555,.324864,.533993],[.155323,.328919,.53926],[.156229,.332926,.544598],[.157206,.336879,.549998],[.158378,.340797,.555448],[.159616,.344655,.560957],[.161055,.348463,.566511],[.162589,.352195,.57209],[.164258,.355879,.577689],[.166003,.35947,.583313],[.167904,.362993,.588941],[.169932,.366457,.594581],[.172025,.369823,.600212],[.174249,.37313,.60583],[.176531,.376379,.611449],[.178949,.37954,.617045],[.181403,.382648,.622622],[.183976,.385696,.62819],[.186619,.388711,.633736],[.189341,.391669,.639262],[.192134,.394587,.644771],[.195027,.397481,.650276],[.197982,.400359,.655767],[.20103,.403213,.661243],[.204231,.406065,.666711],[.207483,.408906,.672184],[.210863,.411761,.677651],[.214378,.414631,.683108],[.218033,.417528,.688571],[.221826,.420436,.694021],[.225816,.423384,.699481],[.22993,.426373,.704939],[.234292,.429408,.71039],[.238813,.432492,.715836],[.243553,.435617,.721257],[.248547,.438782,.726672],[.253725,.442028,.732066],[.259152,.445303,.737422],[.264778,.448649,.74275],[.270677,.452043,.748029],[.276773,.45548,.75325],[.283095,.458971,.758422],[.289622,.462495,.763516],[.296351,.466068,.768535],[.303257,.469688,.773474],[.310367,.473307,.778324],[.317597,.476974,.783072],[.32497,.480647,.787721],[.332494,.484334,.792267],[.340093,.488042,.796701],[.347786,.491739,.80103],[.355555,.495425,.805247],[.363359,.499108,.809363],[.371217,.502778,.813363],[.379113,.506438,.817267],[.387014,.510082,.821072],[.394935,.513709,.82478],[.402847,.51731,.828402],[.410758,.520881,.831943],[.418634,.524436,.835398],[.426504,.527966,.838782],[.434346,.531477,.842105],[.442172,.534964,.845359],[.449948,.538437,.848559],[.457695,.541872,.851707],[.465406,.545307,.85481],[.473085,.548724,.857863],[.480729,.552119,.860879],[.488341,.555493,.863862],[.495894,.558869,.866797],[.503414,.562249,.869705],[.510895,.565597,.872582],[.518335,.568956,.875424],[.525716,.57232,.878233],[.533049,.575682,.881008],[.540328,.579042,.883754],[.547548,.582405,.886461],[.55471,.585792,.88913],[.561804,.589169,.89176],[.568813,.592583,.894351],[.57576,.595989,.896895],[.5826,.599423,.89939],[.589354,.602864,.90183],[.596014,.606322,.904217],[.602558,.6098,.90655],[.608993,.613288,.908815],[.615285,.616803,.911017],[.621456,.620324,.91315],[.62749,.623854,.915206],[.633377,.627389,.917197],[.63911,.630941,.919099],[.644686,.634493,.920929],[.650114,.638043,.922685],[.655374,.641594,.924355],[.660476,.645145,.925951],[.665423,.648695,.927463],[.670216,.652234,.928904],[.674845,.655767,.930274],[.679329,.659281,.931567],[.683675,.662794,.932793],[.687888,.666281,.933957],[.691973,.669769,.935062],[.695936,.673235,.936114],[.699783,.67669,.93711],[.703538,.680123,.938058],[.707197,.683555,.938964],[.710775,.686972,.939834],[.714271,.690376,.940666],[.717713,.693771,.941466],[.721083,.69716,.942246],[.724414,.700543,.942999],[.727695,.703915,.94373],[.73094,.707284,.944446],[.734158,.710651,.945148],[.737345,.714009,.945832],[.740512,.717375,.946509],[.743663,.720725,.947182],[.746797,.724085,.947844],[.749918,.727443,.9485],[.753034,.730802,.949152],[.756148,.734165,.949802],[.759251,.737524,.95045],[.762355,.740887,.951095],[.765464,.744257,.951736],[.768558,.747631,.952378],[.771667,.751005,.953024],[.774765,.75438,.953665],[.777876,.757757,.954305],[.780981,.761139,.954947],[.784096,.764526,.955591],[.787207,.767912,.956232],[.790319,.771312,.956872],[.793444,.774703,.957517],[.796559,.778108,.958163],[.799691,.781515,.958806],[.802814,.784924,.95945],[.805948,.788334,.960097],[.809088,.791749,.960744],[.812223,.795169,.961389],[.815367,.798594,.962035],[.81851,.80202,.962686],[.821666,.80545,.963336],[.824815,.808891,.963984],[.827972,.812327,.964634],[.831138,.815773,.965286],[.834302,.819214,.965939],[.83747,.82267,.966593],[.84064,.826123,.967249],[.84381,.829585,.967905],[.846989,.833043,.968558],[.850174,.83651,.969212],[.853356,.839984,.969868],[.856547,.843451,.970526],[.859742,.846929,.971184],[.86294,.850412,.971844],[.866137,.853895,.972506],[.86934,.857386,.973165],[.872548,.860879,.973823],[.875758,.864379,.974484],[.878969,.867881,.975146],[.882187,.871384,.975809],[.885409,.87489,.976473],[.888635,.878403,.97714],[.891863,.88192,.977804],[.895095,.885439,.978468],[.898326,.888964,.979137],[.901566,.892492,.979807],[.904809,.896022,.980474],[.908057,.899559,.981142],[.911303,.903098,.981813],[.914556,.906639,.982484],[.917813,.910187,.983151],[.921066,.913737,.983823],[.92433,.917292,.984498],[.927593,.920843,.98517],[.930866,.924406,.985842],[.934133,.92797,.986516],[.937412,.93154,.987191],[.940689,.935113,.987862],[.943968,.93869,.988536],[.947251,.942272,.989213],[.950534,.945851,.989888],[.953821,.949437,.990561],[.957106,.95303,.991236],[.960399,.956621,.991911],[.963687,.960219,.992587],[.966981,.963815,.993262],[.970273,.967421,.993933],[.973568,.971024,.994603],[.976862,.974631,.995274],[.980158,.978242,.995945],[.98345,.981861,.996615],[.986748,.985477,.997285],[.99004,.989098,.997954],[.993335,.992721,.998623],[.996621,.99634,.99929],[.999916,.99997,.999952]],ga=Dt(va),ln={id:"scientific-colour-map-devon",label:"Scientific Colour Map - Devon",description:"Devon sequential palette sampled at 256 steps from Fabio Crameri's Scientific Colour Maps",source:"https://www.fabiocrameri.ch/colourmaps/",tags:["sequential","scientific-colour-map","devon"],swatches:ga};oe(ln);var Ea={tableau10:rn,scientificActon10:nn,scientificDevon10:ln,scientificLisbon10:on,stateColors:sn},ba=Object.keys(Ea);ba[0],It(`.dataLoadFailedContainer {
47
47
  position: relative;
48
48
  z-index: 0;
49
49
  width: 100%;
@@ -99,7 +99,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
99
99
  padding: 0;
100
100
  min-width: auto;
101
101
  }
102
- `),Mt(`.inlineOutput {
102
+ `),It(`.inlineOutput {
103
103
  background-color: var(--bg-color);
104
104
  color: var(--text-color);
105
105
  padding: 8px;
@@ -116,7 +116,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
116
116
  font-family: monospace;
117
117
  overflow-x: auto;
118
118
  }
119
- `);var An="16518da1ec1bb552e40a22d8c5ee66af5c11d9a99d76f77a1b5a2910c9ec1ae6",js=`.U8-oZ0h1GEU- {
119
+ `);var un="bc7593992017a9e0072eda06cc0f0a72beacf5556ed9d594312ab19ef6e15c00",xa=`.U8-oZ0h1GEU- {
120
120
  display: flex;
121
121
  flex-direction: column;
122
122
  align-items: center;
@@ -144,7 +144,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
144
144
  font-size: 14px;
145
145
  color: var(--text-light, #999);
146
146
  }
147
- `;(function(){if(typeof document!="undefined"&&!document.getElementById(An)){var e=document.createElement("style");e.id=An,e.textContent=js,document.head.appendChild(e)}})();var wn="5a920c036019a7981173adef19c90f53d58c6b3ea9ef4815576a8deeadd3a725",Vs=`/* File: src/components/RefreshingBadge.module.css */
147
+ `;(function(){if(typeof document!="undefined"&&!document.getElementById(un)){var t=document.createElement("style");t.id=un,t.textContent=xa,document.head.appendChild(t)}})();var fn="d138591aa70c9ed4cc131e2905ba47f9f154e97e285f3c4a39457f180b73a542",_a=`/* File: src/components/RefreshingBadge.module.css */
148
148
  ._1pYT6JXJoYA- {
149
149
  position: absolute;
150
150
  z-index: 2;
@@ -230,7 +230,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
230
230
  transform: translateX(200%);
231
231
  }
232
232
  }
233
- `;(function(){if(typeof document!="undefined"&&!document.getElementById(wn)){var e=document.createElement("style");e.id=wn,e.textContent=Vs,document.head.appendChild(e)}})();var Cn="2674c207ffaa6d62e608419326ecb9943de949b16c000cc398ad36f226e9b2b7",zs=`.w-BISUqqx8Y- {
233
+ `;(function(){if(typeof document!="undefined"&&!document.getElementById(fn)){var t=document.createElement("style");t.id=fn,t.textContent=_a,document.head.appendChild(t)}})();var Ta=({x:t,y:e,offset:r=12,interactive:n=!1,children:i})=>{var o,a,s;const c=C.useRef(null);if(!c.current&&typeof document!="undefined"){const E=document.createElement("div");E.style.position="fixed",E.style.left="0px",E.style.top="0px",E.style.zIndex="2147483647",E.style.pointerEvents=n?"auto":"none",c.current=E}C.useEffect(()=>{const E=c.current;if(!(!E||typeof document=="undefined"))return document.body.appendChild(E),()=>{try{document.body.removeChild(E)}catch{}}},[]);const[l,f]=[typeof window!="undefined"?window.innerWidth:1920,typeof window!="undefined"?window.innerHeight:1080],h=(o=c.current)==null?void 0:o.firstElementChild,p=(a=h==null?void 0:h.offsetWidth)!=null?a:300,y=(s=h==null?void 0:h.offsetHeight)!=null?s:200,m=Math.min(Math.max(0,t+r),Math.max(0,l-p-4)),T=Math.min(Math.max(0,e+r),Math.max(0,f-y-4));return c.current?(c.current.style.pointerEvents=n?"auto":"none",c.current.style.transform=`translate(${m}px, ${T}px)`,Un.createPortal(i,c.current)):null},Oa=Ta,hn="a1d7b596ea46b28fe45d6a63a46b12c012ec61e92febc6b3ba50a87140c6aa54",Na=`.w-BISUqqx8Y- {
234
234
  position: relative;
235
235
  pointer-events: none;
236
236
  max-width: 300px;
@@ -297,7 +297,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
297
297
  word-break: break-word;
298
298
  color: var(--tooltip-fg, #e5e7eb);
299
299
  }
300
- `;(function(){if(typeof document!="undefined"&&!document.getElementById(Cn)){var e=document.createElement("style");e.id=Cn,e.textContent=zs,document.head.appendChild(e)}})();var kn="b1d7ba4a94248b408eff6da56a09a4d54815289c844ba456e38117aaaf6de2b2",qs=`.tXAuDY84FlQ- {
300
+ `;(function(){if(typeof document!="undefined"&&!document.getElementById(hn)){var t=document.createElement("style");t.id=hn,t.textContent=Na,document.head.appendChild(t)}})();var ae={card:"w-BISUqqx8Y-",closeButton:"DXCNlP9sZ-E-",row:"_6Zm9Y3H7ogI-",label:"-p-428Skg3M-",value:"lQirUmQctiU-",valueText:"P-fbtcjJqQk-"},Sa=({x:t,y:e,rows:r,children:n,className:i,style:o,offset:a,interactive:s=!1,onClose:c,closeAriaLabel:l="Close",role:f,ariaLive:h,onMouseEnter:p,onMouseLeave:y})=>{const m=i?`${ae.card} ${i}`:ae.card,T=Array.isArray(r)&&r.length>0,E={pointerEvents:s?"auto":"none",...o||{}};return ie.jsx(Oa,{x:t,y:e,offset:a,interactive:s,children:ie.jsxs("div",{className:m,style:E,role:f,"aria-live":h,onMouseEnter:p,onMouseLeave:y,children:[c&&ie.jsx("button",{className:ae.closeButton,"aria-label":l,onClick:c,children:"x"}),T?r.map((v,S)=>{var L;return ie.jsxs("div",{className:ae.row,children:[ie.jsx("span",{className:ae.label,children:v.label}),ie.jsx("span",{className:ae.value,children:typeof v.value=="string"||typeof v.value=="number"?ie.jsx("span",{className:ae.valueText,children:v.value}):v.value})]},(L=v.key)!=null?L:S)}):n]})})},Aa=Sa,dn="75d8c592a080f46ddd71a05d99e2a940cc9b865fed8ad1b8587067b9dc6ba95a",Ia=`.tXAuDY84FlQ- {
301
301
  width: 100%;
302
302
  height: 100%;
303
303
  padding: 0;
@@ -497,7 +497,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
497
497
  line-height: 1.35;
498
498
  white-space: normal;
499
499
  }
500
- `;(function(){if(typeof document!="undefined"&&!document.getElementById(kn)){var e=document.createElement("style");e.id=kn,e.textContent=qs,document.head.appendChild(e)}})();var Dn="ad9d29331059bd9ce14dd711241cf572d5f6f5a358d1ba78e3e706d1380c960c",Qs=`.NZnKiFNV87Y- {
500
+ `;(function(){if(typeof document!="undefined"&&!document.getElementById(dn)){var t=document.createElement("style");t.id=dn,t.textContent=Ia,document.head.appendChild(t)}})();var pn="39428306c649820729d5928034de1df85b254d51648dd510f097b73937eb01af",Ca=`.NZnKiFNV87Y- {
501
501
  width: 100%;
502
502
  height: 100%;
503
503
  min-height: 0;
@@ -607,7 +607,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
607
607
  .zoaXof1wE34- {
608
608
  text-align: right;
609
609
  }
610
- `;(function(){if(typeof document!="undefined"&&!document.getElementById(Dn)){var e=document.createElement("style");e.id=Dn,e.textContent=Qs,document.head.appendChild(e)}})();var Rn="e10a63b8c12b6fb939b840a338738a1c9877f5c71d29c677b0f2bcc93fbe3e59",Gs=`.rPGZzDOxUGU- {
610
+ `;(function(){if(typeof document!="undefined"&&!document.getElementById(pn)){var t=document.createElement("style");t.id=pn,t.textContent=Ca,document.head.appendChild(t)}})();var mn="735c5b614f49976895cd3dd64c37d9dfabea2b9f8e8feff74eb309f4c51491d6",ka=`.rPGZzDOxUGU- {
611
611
  display: inline-flex;
612
612
  align-items: center;
613
613
  justify-content: center;
@@ -636,7 +636,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
636
636
  .qORB5Pcc9ew- {
637
637
  cursor: pointer;
638
638
  }
639
- `;(function(){if(typeof document!="undefined"&&!document.getElementById(Rn)){var e=document.createElement("style");e.id=Rn,e.textContent=Gs,document.head.appendChild(e)}})();var Ys="#000000",Pn=Object.values(Nn),Fn,Ws=(Fn=Nn.UNKNOWN)!=null?Fn:"#b8b0ac",Ln;(Ln=Fs.UNKNOWN)!=null,Pn.length>0;var Mn="INPUT_FORMATTED",ue="INPUT_FORMATED",Un="LEGEND_FORMAT",_e="legend",X="expression",We={[_e]:"Path format: {split(0)} (same as {split('/',0)}), {split(-1)} (same as {split('/',-1)}), {split(1:3)} (same as {split('/',1:3)}), {match('subarray/(\\\\d+)')}, {replace({split(3)},'_ErrorStatus_errErrorActive','')}, {replace({split(3)},/[-_]ErrorStatus[-_]errErrorActive$/,'')}.",[X]:"Expression format: {value}; variables: {VAR_KEY}; math: {{VAR_KEY}*2}, {{A}+{B}}, {{BASE}^{EXP}}."},Hs="{INPUT_FORMATTED_PRESET_DESCRIPTIONS}",Bn=[We[_e],We[X]].filter(Boolean).join(" "),$s={[_e]:"TPM-{split(0)}-{split(1)}",[X]:"{{VAR_KEY}*2}"};function Xs(e,t){var r,n;const i=String((n=(r=e==null?void 0:e.formatPreset)!=null?r:e==null?void 0:e.inputFormatPreset)!=null?n:"").trim().toLowerCase();return i||(String(t!=null?t:"").trim().toLowerCase().includes("legend"),_e)}function Ks(e,t){var r,n;const i=String((r=e==null?void 0:e.description)!=null?r:"").trim();if(i)return i.split(Hs).join(Bn);const o=String((n=e==null?void 0:e.type)!=null?n:"").trim().toUpperCase();if(o===Mn||o===ue||o===Un)return Bn}function Zs(e,t){var r;const n=String((r=e==null?void 0:e.placeholder)!=null?r:"").trim();if(n)return n;const i=Xs(e,t);return $s[i]}var Js="WORKSPACES",ea="WORKSPACE",ta="VARIABLES",ra="VARIABLE",na="__OCTOPUS_WORKSPACES__",ia="__OCTOPUS_VARIABLES__",oa="INPUT_TANGO_ATTRIBUTES",sa="INPUT_MULTIPLE_TANGO_ATTRIBUTES",aa="INPUT_DB",ca="INPUT_MULTIPLE_DB",ua="INPUT_DEVICES",jn="INPUT_ATTRIBUTES",Vn="INPUT_STRINGS",zn="TANGO_DB",la="TANGO_DBS",fa={type:zn,title:"Tango DB",default:"",description:"Optional Tango Database endpoint. Leave empty to use the default connection."},qn={type:ue,formatPreset:X,title:"Attribute",default:"",description:`Full Tango attribute path in the form device/attribute. ${We[X]}`},Qn={type:ue,formatPreset:X,title:"Device",default:"",description:`Full Tango device name. ${We[X]}`},ha={type:ue,title:"Attribute",default:"",description:"Attribute name, for example State or HealthState."},da={type:ue,title:"Value",default:"",description:"String value."},pa=e=>String(e!=null?e:"").trim().toUpperCase(),B=e=>!!e&&typeof e=="object"&&!Array.isArray(e),xe=(e,t)=>B(t)?{...e,...t}:{...e};function Vt(e,t){var r,n;const i=B(e.items)?e.items:{},o=B(i.properties)?i.properties:{},s=(r=o.endpoint)!=null?r:e.endpoint,a=(n=o[t.fieldKey])!=null?n:e[t.fieldKey],c=xe(fa,s),u=xe(t.fieldDefaults,a),h=Array.isArray(i.required)&&i.required.length>0?i.required:[t.fieldKey];return{...e,type:"array",...e.default===void 0?{default:[]}:{},...t.grouped?{allowMultipleAttributesPerRow:!0}:{},items:{...i,type:"object",properties:{...o,endpoint:c,[t.fieldKey]:u},required:h}}}function Gn(e,t){const r=B(e.items)?e.items:{},n=xe(t.itemDefaults,r);return{...e,type:"array",widgetInputType:t.widgetInputType,...e.default===void 0?{default:[]}:{},items:n}}function ya(e){switch(pa(e.type)){case aa:return{...e,type:zn,...e.default===void 0?{default:""}:{}};case ca:return{...e,type:la,...e.default===void 0?{default:[]}:{}};case oa:return Vt(e,{fieldKey:"attribute",fieldDefaults:qn,grouped:!1});case sa:return Vt(e,{fieldKey:"attribute",fieldDefaults:qn,grouped:!0});case ua:return(()=>{const r=Vt(e,{fieldKey:"device",fieldDefaults:Qn,grouped:!1}),n=B(r.items)?r.items:{},i=B(n.properties)?n.properties:{},o=xe(Qn,i.device),s=xe({...o,title:"Device"},i.attribute);return{...r,items:{...n,properties:{...i,device:o,attribute:s}}}})();case jn:return Gn(e,{itemDefaults:ha,widgetInputType:jn});case Vn:return Gn(e,{itemDefaults:da,widgetInputType:Vn});default:return e}}function Te(e){if(!B(e))return e;const r={...ya(e)};return B(r.properties)&&(r.properties=Object.fromEntries(Object.entries(r.properties).map(([n,i])=>[n,Te(i)]))),r.items!==void 0&&(r.items=Te(r.items)),r}function ma(e){return B(e)?Te(e):e}var va=e=>e&&typeof e=="object"&&"value"in e;function zt(e=[]){return e.map(t=>va(t)?t:{label:String(t),value:t})}function ga(e){switch(e){case"boolean":return"boolean";case"integer":case"number":return"number";case"array":return"list";default:return"string"}}function Ea(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.max(0,Math.floor(e))}function ba(e){if(typeof e!="string")return;const t=e.trim().toLowerCase();if(t==="css")return"css";if(t==="functionality")return"functionality"}function _a(e){return String(e!=null?e:"").trim().toUpperCase()}function xa(e){return e===Mn||e===ue||e===Un}function Ta(e){return e===Js||e===ea}function Oa(e){return e===ta||e===ra}function Sa(e={}){var t,r,n,i;const o={};if(!e.properties||typeof e.properties!="object")return o;for(const[s,a]of Object.entries(e.properties)){const c=Te(a||{})||{},u=(t=c.title)!=null?t:s,h=Ea(c.level),d=ba((r=c.propertyType)!=null?r:c.property_type),p=Ks(c),m=_a(c.type);if(xa(m)){const b=Zs(c,s);o[s]={type:"string",label:u,...p?{description:p}:{},...b?{placeholder:b}:{},...h!==void 0?{level:h}:{},...d?{propertyType:d}:{},default:c.default};continue}if(Ta(m)){o[s]={type:"select",label:u,...p?{description:p}:{},...h!==void 0?{level:h}:{},...d?{propertyType:d}:{},optionsSource:na,options:[],default:(n=c.default)!=null?n:""};continue}if(Oa(m)){o[s]={type:"select",label:u,...p?{description:p}:{},...h!==void 0?{level:h}:{},...d?{propertyType:d}:{},optionsSource:ia,options:[],default:(i=c.default)!=null?i:""};continue}if(["select","radio","multiselect","file","files","color"].includes(c.type)){const b=c.type;if(b==="select"||b==="radio"||b==="multiselect"){o[s]={type:b,label:u,...p?{description:p}:{},...h!==void 0?{level:h}:{},...d?{propertyType:d}:{},options:zt(c.options||c.enum||[]),default:c.default};continue}if(b==="file"||b==="files"){o[s]={type:b,label:u,...p?{description:p}:{},...h!==void 0?{level:h}:{},...d?{propertyType:d}:{},accept:c.accept,maxFiles:c.maxFiles,default:c.default};continue}if(b==="color"){o[s]={type:b,label:u,...p?{description:p}:{},...h!==void 0?{level:h}:{},...d?{propertyType:d}:{},default:c.default};continue}}if(Array.isArray(c.enum)&&c.enum.length>0){o[s]={type:"select",label:u,...p?{description:p}:{},...h!==void 0?{level:h}:{},...d?{propertyType:d}:{},options:zt(c.enum),default:c.default};continue}const y=Array.isArray(c.type)?c.type[0]:c.type,O=ga(y);o[s]={type:O,label:u,...p?{description:p}:{},...h!==void 0?{level:h}:{},...d?{propertyType:d}:{},...c.default!==void 0?{default:c.default}:{},...O==="number"?{min:c.minimum,max:c.maximum,step:c.multipleOf}:{}}}return o}function Na(e={}){const t={};if(!e.properties||typeof e.properties!="object")return t;for(const[r,n]of Object.entries(e.properties)){const i=Te(n||{})||{};if(i.default!==void 0){t[r]=i.default;continue}if(["select","radio","multiselect"].includes(i.type)||Array.isArray(i.enum)){const s=zt(i.options||i.enum||[]);s.length>0&&(t[r]=i.type==="multiselect"?[s[0].value]:s[0].value)}}return t}var Ia={version:"0.5.0"};function Aa(e){var t;const{key:r,component:n,label:i,layout:o,requiredStreams:s=[],config:a,polls:c=!1,version:u,docsUrl:h}=e,d=a!=null&&a.schema?ma(a.schema):void 0,m={...d?Na(d):{},...(t=a==null?void 0:a.default)!=null?t:{}};return{key:r,component:n,label:i,layout:o,requiredStreams:s,polls:c,config:d?{...a,schema:d}:a,version:u!=null?u:Ia.version,defaultConfig:m,configFields:d?Sa(d):void 0,docsUrl:h}}var Yn=Symbol.for("immer-nothing"),Wn=Symbol.for("immer-draftable"),R=Symbol.for("immer-state");function L(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Oe=Object.getPrototypeOf;function le(e){return!!e&&!!e[R]}function K(e){var t;return e?$n(e)||Array.isArray(e)||!!e[Wn]||!!((t=e.constructor)!=null&&t[Wn])||Se(e)||Xe(e):!1}var wa=Object.prototype.constructor.toString(),Hn=new WeakMap;function $n(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=Hn.get(r);return n===void 0&&(n=Function.toString.call(r),Hn.set(r,n)),n===wa}function He(e,t,r=!0){$e(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function $e(e){const t=e[R];return t?t.type_:Array.isArray(e)?1:Se(e)?2:Xe(e)?3:0}function qt(e,t){return $e(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Xn(e,t,r){const n=$e(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Ca(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Se(e){return e instanceof Map}function Xe(e){return e instanceof Set}function Z(e){return e.copy_||e.base_}function Qt(e,t){if(Se(e))return new Map(e);if(Xe(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=$n(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[R];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){const s=i[o],a=n[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(Oe(e),n)}else{const n=Oe(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function Gt(e,t=!1){return Ze(e)||le(e)||!K(e)||($e(e)>1&&Object.defineProperties(e,{set:Ke,add:Ke,clear:Ke,delete:Ke}),Object.freeze(e),t&&Object.values(e).forEach(r=>Gt(r,!0))),e}function ka(){L(2)}var Ke={value:ka};function Ze(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var Da={};function J(e){const t=Da[e];return t||L(0,e),t}var Ne;function Kn(){return Ne}function Ra(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Zn(e,t){t&&(J("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Yt(e){Wt(e),e.drafts_.forEach(Pa),e.drafts_=null}function Wt(e){e===Ne&&(Ne=e.parent_)}function Jn(e){return Ne=Ra(Ne,e)}function Pa(e){const t=e[R];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ei(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[R].modified_&&(Yt(t),L(4)),K(e)&&(e=Je(t,e),t.parent_||et(t,e)),t.patches_&&J("Patches").generateReplacementPatches_(r[R].base_,e,t.patches_,t.inversePatches_)):e=Je(t,r,[]),Yt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Yn?e:void 0}function Je(e,t,r){if(Ze(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[R];if(!i)return He(t,(o,s)=>ti(e,i,t,o,s,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return et(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const o=i.copy_;let s=o,a=!1;i.type_===3&&(s=new Set(o),o.clear(),a=!0),He(s,(c,u)=>ti(e,i,o,c,u,r,a),n),et(e,o,!1),r&&e.patches_&&J("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function ti(e,t,r,n,i,o,s){if(i==null||typeof i!="object"&&!s)return;const a=Ze(i);if(!(a&&!s)){if(le(i)){const c=o&&t&&t.type_!==3&&!qt(t.assigned_,n)?o.concat(n):void 0,u=Je(e,i,c);if(Xn(r,n,u),le(u))e.canAutoFreeze_=!1;else return}else s&&r.add(i);if(K(i)&&!a){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&a)return;Je(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Se(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&et(e,i)}}}function et(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Gt(t,r)}function Fa(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Kn(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=Ht;r&&(i=[n],o=Ie);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return n.draft_=a,n.revoke_=s,a}var Ht={get(e,t){if(t===R)return e;const r=Z(e);if(!qt(r,t))return La(e,r,t);const n=r[t];return e.finalized_||!K(n)?n:n===$t(e.base_,t)?(Kt(e),e.copy_[t]=Zt(n,e)):n},has(e,t){return t in Z(e)},ownKeys(e){return Reflect.ownKeys(Z(e))},set(e,t,r){const n=ri(Z(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=$t(Z(e),t),o=i==null?void 0:i[R];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Ca(r,i)&&(r!==void 0||qt(e.base_,t)))return!0;Kt(e),Xt(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return $t(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Kt(e),Xt(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Z(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){L(11)},getPrototypeOf(e){return Oe(e.base_)},setPrototypeOf(){L(12)}},Ie={};He(Ht,(e,t)=>{Ie[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ie.deleteProperty=function(e,t){return Ie.set.call(this,e,t,void 0)},Ie.set=function(e,t,r){return Ht.set.call(this,e[0],t,r,e[0])};function $t(e,t){const r=e[R];return(r?Z(r):e)[t]}function La(e,t,r){var n;const i=ri(t,r);return i?"value"in i?i.value:(n=i.get)==null?void 0:n.call(e.draft_):void 0}function ri(e,t){if(!(t in e))return;let r=Oe(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Oe(r)}}function Xt(e){e.modified_||(e.modified_=!0,e.parent_&&Xt(e.parent_))}function Kt(e){e.copy_||(e.copy_=Qt(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ma=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const s=this;return function(c=o,...u){return s.produce(c,h=>r.call(this,h,...u))}}typeof r!="function"&&L(6),n!==void 0&&typeof n!="function"&&L(7);let i;if(K(t)){const o=Jn(this),s=Zt(t,void 0);let a=!0;try{i=r(s),a=!1}finally{a?Yt(o):Wt(o)}return Zn(o,n),ei(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===Yn&&(i=void 0),this.autoFreeze_&&Gt(i,!0),n){const o=[],s=[];J("Patches").generateReplacementPatches_(t,i,o,s),n(o,s)}return i}else L(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,c=>t(c,...a));let n,i;return[this.produce(t,r,(s,a)=>{n=s,i=a}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){K(e)||L(8),le(e)&&(e=Ua(e));const t=Jn(this),r=Zt(e,void 0);return r[R].isManual_=!0,Wt(t),r}finishDraft(e,t){const r=e&&e[R];(!r||!r.isManual_)&&L(9);const{scope_:n}=r;return Zn(n,t),ei(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=J("Patches").applyPatches_;return le(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Zt(e,t){const r=Se(e)?J("MapSet").proxyMap_(e,t):Xe(e)?J("MapSet").proxySet_(e,t):Fa(e,t);return(t?t.scope_:Kn()).drafts_.push(r),r}function Ua(e){return le(e)||L(10,e),ni(e)}function ni(e){if(!K(e)||Ze(e))return e;const t=e[R];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Qt(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Qt(e,!0);return He(r,(i,o)=>{Xn(r,i,ni(o))},n),t&&(t.finalized_=!1),r}var Jt=new Ma;Jt.produce;var Ba=Jt.setUseStrictIteration.bind(Jt);Ba(!1);const ja=z`
639
+ `;(function(){if(typeof document!="undefined"&&!document.getElementById(mn)){var t=document.createElement("style");t.id=mn,t.textContent=ka,document.head.appendChild(t)}})();var Da="#000000",yn=Object.values(cn),vn,wa=(vn=cn.UNKNOWN)!=null?vn:"#b8b0ac",gn;(gn=ha.UNKNOWN)!=null,yn.length>0;var En="INPUT_FORMATTED",me="INPUT_FORMATED",bn="LEGEND_FORMAT",Te="legend",se="expression",Qe={[Te]:"Path format: {split(0)} (same as {split('/',0)}), {split(-1)} (same as {split('/',-1)}), {split(1:3)} (same as {split('/',1:3)}), {match('subarray/(\\\\d+)')}, {space([1],'-',2)}, {replace({split(3)},'_ErrorStatus_errErrorActive','')}, {replace({split(3)},/[-_]ErrorStatus[-_]errErrorActive$/,'')}.",[se]:"Expression format: {value}; variables: {VAR_KEY}; math: {{VAR_KEY}*2}, {{A}+{B}}, {{BASE}^{EXP}}."},Ra="{INPUT_FORMATTED_PRESET_DESCRIPTIONS}",xn=[Qe[Te],Qe[se]].filter(Boolean).join(" "),Pa={[Te]:"TPM-{split(0)}-{split(1)}",[se]:"{{VAR_KEY}*2}"};function La(t,e){var r,n;const i=String((n=(r=t==null?void 0:t.formatPreset)!=null?r:t==null?void 0:t.inputFormatPreset)!=null?n:"").trim().toLowerCase();return i||(String(e!=null?e:"").trim().toLowerCase().includes("legend"),Te)}function Fa(t,e){var r,n;const i=String((r=t==null?void 0:t.description)!=null?r:"").trim();if(i)return i.split(Ra).join(xn);const o=String((n=t==null?void 0:t.type)!=null?n:"").trim().toUpperCase();if(o===En||o===me||o===bn)return xn}function Ma(t,e){var r;const n=String((r=t==null?void 0:t.placeholder)!=null?r:"").trim();if(n)return n;const i=La(t,e);return Pa[i]}var Ua="WORKSPACES",Ba="WORKSPACE",ja="VARIABLES",Va="VARIABLE",qa="__OCTOPUS_WORKSPACES__",Qa="__OCTOPUS_VARIABLES__",za="INPUT_TANGO_ATTRIBUTES",Ga="INPUT_MULTIPLE_TANGO_ATTRIBUTES",Ya="INPUT_DB",Ha="INPUT_MULTIPLE_DB",Wa="INPUT_DEVICES",_n="INPUT_ATTRIBUTES",Tn="INPUT_STRINGS",On="TANGO_DB",$a="TANGO_DBS",Xa={type:On,title:"Tango DB",default:"",description:"Optional Tango Database endpoint. Leave empty to use the default connection."},Nn={type:me,formatPreset:se,title:"Attribute",default:"",description:`Full Tango attribute path in the form device/attribute. ${Qe[se]}`},Sn={type:me,formatPreset:se,title:"Device",default:"",description:`Full Tango device name. ${Qe[se]}`},Ka={type:me,title:"Attribute",default:"",description:"Attribute name, for example State or HealthState."},Za={type:me,title:"Value",default:"",description:"String value."},Ja=t=>String(t!=null?t:"").trim().toUpperCase(),G=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Oe=(t,e)=>G(e)?{...t,...e}:{...t};function wt(t,e){var r,n;const i=G(t.items)?t.items:{},o=G(i.properties)?i.properties:{},a=(r=o.endpoint)!=null?r:t.endpoint,s=(n=o[e.fieldKey])!=null?n:t[e.fieldKey],c=Oe(Xa,a),l=Oe(e.fieldDefaults,s),f=Array.isArray(i.required)&&i.required.length>0?i.required:[e.fieldKey];return{...t,type:"array",...t.default===void 0?{default:[]}:{},...e.grouped?{allowMultipleAttributesPerRow:!0}:{},items:{...i,type:"object",properties:{...o,endpoint:c,[e.fieldKey]:l},required:f}}}function An(t,e){const r=G(t.items)?t.items:{},n=Oe(e.itemDefaults,r);return{...t,type:"array",widgetInputType:e.widgetInputType,...t.default===void 0?{default:[]}:{},items:n}}function es(t){switch(Ja(t.type)){case Ya:return{...t,type:On,...t.default===void 0?{default:""}:{}};case Ha:return{...t,type:$a,...t.default===void 0?{default:[]}:{}};case za:return wt(t,{fieldKey:"attribute",fieldDefaults:Nn,grouped:!1});case Ga:return wt(t,{fieldKey:"attribute",fieldDefaults:Nn,grouped:!0});case Wa:return(()=>{const r=wt(t,{fieldKey:"device",fieldDefaults:Sn,grouped:!1}),n=G(r.items)?r.items:{},i=G(n.properties)?n.properties:{},o=Oe(Sn,i.device),a=Oe({...o,title:"Device"},i.attribute);return{...r,items:{...n,properties:{...i,device:o,attribute:a}}}})();case _n:return An(t,{itemDefaults:Ka,widgetInputType:_n});case Tn:return An(t,{itemDefaults:Za,widgetInputType:Tn});default:return t}}function Ne(t){if(!G(t))return t;const r={...es(t)};return G(r.properties)&&(r.properties=Object.fromEntries(Object.entries(r.properties).map(([n,i])=>[n,Ne(i)]))),r.items!==void 0&&(r.items=Ne(r.items)),r}function ts(t){return G(t)?Ne(t):t}var rs=t=>t&&typeof t=="object"&&"value"in t;function Rt(t=[]){return t.map(e=>rs(e)?e:{label:String(e),value:e})}function ns(t){switch(t){case"boolean":return"boolean";case"integer":case"number":return"number";case"array":return"list";default:return"string"}}function is(t){if(!(typeof t!="number"||!Number.isFinite(t)))return Math.max(0,Math.floor(t))}function os(t){if(typeof t!="string")return;const e=t.trim().toLowerCase();if(e==="css")return"css";if(e==="functionality")return"functionality"}function as(t){return String(t!=null?t:"").trim().toUpperCase()}function ss(t){return t===En||t===me||t===bn}function cs(t){return t===Ua||t===Ba}function ls(t){return t===ja||t===Va}function us(t={}){var e,r,n,i;const o={};if(!t.properties||typeof t.properties!="object")return o;for(const[a,s]of Object.entries(t.properties)){const c=Ne(s||{})||{},l=(e=c.title)!=null?e:a,f=is(c.level),h=os((r=c.propertyType)!=null?r:c.property_type),p=Fa(c),y=as(c.type);if(ss(y)){const E=Ma(c,a);o[a]={type:"string",label:l,...p?{description:p}:{},...E?{placeholder:E}:{},...f!==void 0?{level:f}:{},...h?{propertyType:h}:{},default:c.default};continue}if(cs(y)){o[a]={type:"select",label:l,...p?{description:p}:{},...f!==void 0?{level:f}:{},...h?{propertyType:h}:{},optionsSource:qa,options:[],default:(n=c.default)!=null?n:""};continue}if(ls(y)){o[a]={type:"select",label:l,...p?{description:p}:{},...f!==void 0?{level:f}:{},...h?{propertyType:h}:{},optionsSource:Qa,options:[],default:(i=c.default)!=null?i:""};continue}if(["select","radio","multiselect","file","files","color"].includes(c.type)){const E=c.type;if(E==="select"||E==="radio"||E==="multiselect"){o[a]={type:E,label:l,...p?{description:p}:{},...f!==void 0?{level:f}:{},...h?{propertyType:h}:{},options:Rt(c.options||c.enum||[]),default:c.default};continue}if(E==="file"||E==="files"){o[a]={type:E,label:l,...p?{description:p}:{},...f!==void 0?{level:f}:{},...h?{propertyType:h}:{},accept:c.accept,maxFiles:c.maxFiles,default:c.default};continue}if(E==="color"){o[a]={type:E,label:l,...p?{description:p}:{},...f!==void 0?{level:f}:{},...h?{propertyType:h}:{},default:c.default};continue}}if(Array.isArray(c.enum)&&c.enum.length>0){o[a]={type:"select",label:l,...p?{description:p}:{},...f!==void 0?{level:f}:{},...h?{propertyType:h}:{},options:Rt(c.enum),default:c.default};continue}const m=Array.isArray(c.type)?c.type[0]:c.type,T=ns(m);o[a]={type:T,label:l,...p?{description:p}:{},...f!==void 0?{level:f}:{},...h?{propertyType:h}:{},...c.default!==void 0?{default:c.default}:{},...T==="number"?{min:c.minimum,max:c.maximum,step:c.multipleOf}:{}}}return o}function fs(t={}){const e={};if(!t.properties||typeof t.properties!="object")return e;for(const[r,n]of Object.entries(t.properties)){const i=Ne(n||{})||{};if(i.default!==void 0){e[r]=i.default;continue}if(["select","radio","multiselect"].includes(i.type)||Array.isArray(i.enum)){const a=Rt(i.options||i.enum||[]);a.length>0&&(e[r]=i.type==="multiselect"?[a[0].value]:a[0].value)}}return e}var hs={version:"0.7.10"};function ds(t){var e;const{key:r,component:n,label:i,layout:o,requiredStreams:a=[],config:s,polls:c=!1,version:l,docsUrl:f}=t,h=s!=null&&s.schema?ts(s.schema):void 0,y={...h?fs(h):{},...(e=s==null?void 0:s.default)!=null?e:{}};return{key:r,component:n,label:i,layout:o,requiredStreams:a,polls:c,config:h?{...s,schema:h}:s,version:l!=null?l:hs.version,defaultConfig:y,configFields:h?us(h):void 0,docsUrl:f}}const ps=W`
640
640
  query ComponentsQuery {
641
641
  components {
642
642
  lastStatus
@@ -645,7 +645,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
645
645
  name
646
646
  }
647
647
  }
648
- `,Va=z`
648
+ `,ms=W`
649
649
  subscription HeartbeatEvent($componentName: String!) {
650
650
  heartbeatEvent(componentName: $componentName) {
651
651
  componentName
@@ -656,11 +656,11 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
656
656
  state
657
657
  }
658
658
  }
659
- `,za=z`
659
+ `,ys=W`
660
660
  mutation Ping($componentName: String!) {
661
661
  ping(componentName: $componentName) {
662
662
  ttl
663
663
  }
664
664
  }
665
- `,_={container:"_container_rf8sx_3",header:"_header_rf8sx_52",title:"_title_rf8sx_60",componentCount:"_componentCount_rf8sx_68",grid:"_grid_rf8sx_84",componentCard:"_componentCard_rf8sx_96",cardHeader:"_cardHeader_rf8sx_143",componentName:"_componentName_rf8sx_150",statusBadge:"_statusBadge_rf8sx_162",statusIdle:"_statusIdle_rf8sx_184",statusRunning:"_statusRunning_rf8sx_189",statusError:"_statusError_rf8sx_195",statusWarning:"_statusWarning_rf8sx_200",statusOffline:"_statusOffline_rf8sx_205",statusUnknown:"_statusUnknown_rf8sx_210",cardBody:"_cardBody_rf8sx_217",lastSeen:"_lastSeen_rf8sx_223",hostLabel:"_hostLabel_rf8sx_229",cardFooter:"_cardFooter_rf8sx_237",pingBtn:"_pingBtn_rf8sx_246",pinging:"_pinging_rf8sx_276",ttlChip:"_ttlChip_rf8sx_280",skeleton:"_skeleton_rf8sx_288",skeletonTitle:"_skeletonTitle_rf8sx_300",skeletonCard:"_skeletonCard_rf8sx_305",skeletonLine:"_skeletonLine_rf8sx_309",skeletonLineShort:"_skeletonLineShort_rf8sx_315",errorState:"_errorState_rf8sx_322",emptyState:"_emptyState_rf8sx_333"};function qa(e){return e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase())}function ii(e){const t=(e!=null?e:"").toLowerCase();return t==="idle"?"idle":t==="running"?"running":t==="error"?"error":t==="warning"?"warning":t==="offline"||t==="disconnected"?"offline":"unknown"}function Qa(e){var n;const t=ii(e);return(n={idle:_.statusIdle,running:_.statusRunning,error:_.statusError,warning:_.statusWarning,offline:_.statusOffline,unknown:_.statusUnknown}[t])!=null?n:_.statusUnknown}function Ga(e){if(!e)return"—";try{const t=new Date(e);return isNaN(t.getTime())?"—":t.toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return"—"}}function Ya(){return React.createElement("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},React.createElement("circle",{cx:"12",cy:"12",r:"2",fill:"currentColor",stroke:"none"}),React.createElement("path",{d:"M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49"}),React.createElement("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14M4.93 4.93a10 10 0 0 0 0 14.14"}))}function Wa({component:e}){var m,y,O,b,g,S,D;const[t,r]=he.useState(null),[n,i]=he.useState(!1),[o,s]=he.useState(null);bs(Va,{variables:{componentName:e.name},onData:({data:A})=>{var M;const P=(M=A.data)==null?void 0:M.heartbeatEvent;P&&s(P)}});const[a]=Es(za),c=he.useCallback(async()=>{var A,P;if(!n){i(!0),r(null);try{const q=(P=(A=(await a({variables:{componentName:e.name}})).data)==null?void 0:A.ping)==null?void 0:P.ttl;r(typeof q=="number"?q:null)}catch{r(null)}finally{i(!1)}}},[n,a,e.name]),u=(O=(y=(m=o==null?void 0:o.state)==null?void 0:m.status)!=null?y:e.lastStatus)!=null?O:"UNKNOWN",h=(b=o==null?void 0:o.lastSeen)!=null?b:e.lastSeen,d=(D=(g=o==null?void 0:o.state)==null?void 0:g.host)!=null?D:(S=e.state)==null?void 0:S.host,p=ii(u);return React.createElement("article",{className:_.componentCard,"data-status":p},React.createElement("div",{className:_.cardHeader},React.createElement("span",{className:_.componentName},qa(e.name)),React.createElement("span",{className:`${_.statusBadge} ${Qa(u)}`},u.toUpperCase())),React.createElement("div",{className:_.cardBody},React.createElement("span",{className:_.lastSeen,title:h},Ga(h)),d&&React.createElement("span",{className:_.hostLabel},d)),React.createElement("div",{className:_.cardFooter},React.createElement("button",{className:`${_.pingBtn} ${n?_.pinging:""}`,onClick:c,disabled:n,"aria-label":`Ping ${e.name}`,title:t!==null?`TTL: ${t}`:`Ping ${e.name}`},React.createElement(Ya,null),t!==null&&React.createElement("span",{className:_.ttlChip},"TTL ",t))))}function Ha(){return React.createElement("div",{className:_.container,role:"status","aria-label":"Loading components"},React.createElement("header",{className:_.header},React.createElement("div",{className:`${_.skeleton} ${_.skeletonTitle}`})),React.createElement("div",{className:_.grid},[...Array(6)].map((e,t)=>React.createElement("div",{key:t,className:`${_.componentCard} ${_.skeletonCard}`},React.createElement("div",{className:`${_.skeleton} ${_.skeletonLine}`}),React.createElement("div",{className:`${_.skeleton} ${_.skeletonLineShort}`})))))}function oi(e){var o;const{data:t,loading:r,error:n}=cs(ja,{fetchPolicy:"network-only",pollInterval:3e4}),i=(o=t==null?void 0:t.components)!=null?o:[];return r&&i.length===0?Ha():n?React.createElement("div",{className:_.container},React.createElement("div",{className:_.errorState,role:"alert"},"Unable to load components: ",n.message)):React.createElement("div",{className:_.container},React.createElement("header",{className:_.header},React.createElement("h2",{className:_.title},"Components"),i.length>0&&React.createElement("span",{className:_.componentCount},i.length)),i.length===0?React.createElement("div",{className:_.emptyState},"No components found"):React.createElement("div",{className:_.grid},i.map(s=>React.createElement(Wa,{key:s.name,component:s}))))}const $a={version:"0.1.0"},{version:Xa}=$a,Ka=Aa({key:"componentsStatus",component:oi,label:"Components Status",layout:{x:0,y:0,w:24,h:18},config:{default:{},schema:{type:"object",properties:{}}},polls:!0,version:Xa,docsUrl:"https://developer.skao.int/projects/rasor-components-status/en/latest/"});function Za(e){e.registerWidget(Ka)}return(function e(t){typeof t.registerWidget=="function"?Za(t):setTimeout(e,50,t)})(globalThis.Octopus||(globalThis.Octopus={})),tt.ComponentsStatusWidget=oi,Object.defineProperty(tt,Symbol.toStringTag,{value:"Module"}),tt})({},React);
665
+ `,vs=12e4;function In(t){const e=(t!=null?t:"").toUpperCase();return e==="IDLE"?"idle":e==="RUNNING"||e==="BUSY"||e==="ACTIVE"?"running":e==="ERROR"||e==="FAULT"||e==="FAILED"?"error":e==="WARNING"||e==="DEGRADED"?"warning":e==="INIT"||e==="STARTING"?"init":e==="WAITING_DEPS"||e==="WAITING"?"waiting":e==="OFFLINE"||e==="DISCONNECTED"||e==="STOPPED"?"offline":"unknown"}function Pt(t,e,r){return Cn(e,r)?"stale":In(t)}function Cn(t,e){if(!t)return!0;const r=Date.parse(t);return isNaN(r)?!0:e-r>vs}const kn=["error","stale","offline","warning","waiting","init","running","idle","unknown"];function ze(t){const e=kn.indexOf(t);return e===-1?kn.length:e}const gs={idle:"Idle",running:"Running",error:"Error",warning:"Warning",init:"Init",waiting:"Waiting",offline:"Offline",stale:"Stale",unknown:"Unknown"};function Es(t,e){if(!t)return"—";const r=Date.parse(t);if(isNaN(r))return"—";const n=Math.max(0,e-r),i=Math.floor(n/1e3);if(i<10)return"just now";if(i<60)return`${i}s ago`;const o=Math.floor(i/60);if(o<60)return`${o}m ago`;const a=Math.floor(o/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}function bs(t,e){if(!t)return"—";const r=Date.parse(t);if(isNaN(r)||r>e)return"—";const n=Math.floor((e-r)/1e3),i=Math.floor(n/86400),o=Math.floor(n%86400/3600),a=Math.floor(n%3600/60);return i>0?`${i}d ${o}h`:o>0?`${o}h ${a}m`:a>0?`${a}m`:`${n}s`}function xs(t){if(!t)return"—";const e=new Date(t);return isNaN(e.getTime())?"—":e.toLocaleString("en-GB",{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}const _={container:"_container_2hjmx_3",header:"_header_2hjmx_61",title:"_title_2hjmx_70",componentCount:"_componentCount_2hjmx_78",summary:"_summary_2hjmx_94",summaryChip:"_summaryChip_2hjmx_102",summaryDot:"_summaryDot_2hjmx_116",grid:"_grid_2hjmx_126",componentCard:"_componentCard_2hjmx_148",infoBtn:"_infoBtn_2hjmx_220",componentName:"_componentName_2hjmx_250",cardHeader:"_cardHeader_2hjmx_270",statusBadge:"_statusBadge_2hjmx_289",cardBody:"_cardBody_2hjmx_322",lastSeen:"_lastSeen_2hjmx_330",hostLabel:"_hostLabel_2hjmx_341",cardFooter:"_cardFooter_2hjmx_349",pingBtn:"_pingBtn_2hjmx_362",pinging:"_pinging_2hjmx_397",ttlChip:"_ttlChip_2hjmx_401",pingFailChip:"_pingFailChip_2hjmx_407",skeleton:"_skeleton_2hjmx_414",skeletonTitle:"_skeletonTitle_2hjmx_426",skeletonCard:"_skeletonCard_2hjmx_431",skeletonLine:"_skeletonLine_2hjmx_435",skeletonLineShort:"_skeletonLineShort_2hjmx_441",errorState:"_errorState_2hjmx_448",errorMessage:"_errorMessage_2hjmx_461",retryBtn:"_retryBtn_2hjmx_466",emptyState:"_emptyState_2hjmx_483"};function _s(t){return t.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}const Ts=new Set(["status","ts","name","host","running_since","last_error"]);function Os(t){return t?Object.entries(t).filter(([e,r])=>!Ts.has(e)&&r!==null&&r!==void 0&&(typeof r=="string"||typeof r=="number"||typeof r=="boolean")).map(([e,r])=>[e.replace(/_/g," "),String(r)]):[]}function Ns(){return React.createElement("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},React.createElement("circle",{cx:"12",cy:"12",r:"2",fill:"currentColor",stroke:"none"}),React.createElement("path",{d:"M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49"}),React.createElement("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14M4.93 4.93a10 10 0 0 0 0 14.14"}))}function Ss(){return React.createElement("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},React.createElement("circle",{cx:"12",cy:"12",r:"10"}),React.createElement("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),React.createElement("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"}))}const As=800;function Is({component:t,now:e}){var X,Q,K,wn,Rn;const[r,n]=C.useState(null),[i,o]=C.useState(!1),[a,s]=C.useState(null),[c,l]=C.useState(null),f=C.useRef(null),h=C.useRef(null),p=C.useRef(null);Ko(ms,{variables:{componentName:t.name},onData:({data:P})=>{var Lt;const M=(Lt=P.data)==null?void 0:Lt.heartbeatEvent;M&&l(M)}});const[y]=Xo(ys);C.useEffect(()=>()=>{f.current&&clearTimeout(f.current),h.current&&clearTimeout(h.current),p.current&&clearTimeout(p.current)},[]);const m=C.useCallback(()=>{h.current&&(clearTimeout(h.current),h.current=null),p.current&&(clearTimeout(p.current),p.current=null)},[]),T=C.useCallback(P=>{m();const M=P.getBoundingClientRect();s({x:M.left+M.width/2,y:M.bottom})},[m]),E=C.useCallback(P=>{const M=P.currentTarget;m(),h.current=setTimeout(()=>T(M),As)},[m,T]),v=C.useCallback(()=>{h.current&&(clearTimeout(h.current),h.current=null),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>s(null),150)},[]),S=C.useCallback(P=>{n(P),f.current&&clearTimeout(f.current),f.current=setTimeout(()=>n(null),4e3)},[]),L=C.useCallback(async()=>{var P,M;if(!i){o(!0),n(null);try{const Pn=(M=(P=(await y({variables:{componentName:t.name}})).data)==null?void 0:P.ping)==null?void 0:M.ttl;S({kind:"ok",ttl:typeof Pn=="number"?Pn:null})}catch{S({kind:"fail"})}finally{o(!1)}}},[i,y,t.name,S]),A=(X=c==null?void 0:c.state)!=null?X:t.state,F=(wn=(K=(Q=c==null?void 0:c.state)==null?void 0:Q.status)!=null?K:t.lastStatus)!=null?wn:"UNKNOWN",B=(Rn=c==null?void 0:c.lastSeen)!=null?Rn:t.lastSeen,V=A==null?void 0:A.host,q=A==null?void 0:A.running_since,Y=A==null?void 0:A.last_error,$=Cn(B,e),Ge=$?"stale":In(F),j=[{key:"status",label:"status",value:$?`${F} (stale)`:F},{key:"last-seen",label:"last seen",value:xs(B)},...q?[{key:"uptime",label:"uptime",value:bs(q,e)}]:[],...V?[{key:"host",label:"host",value:V}]:[],...Y?[{key:"last-error",label:"last error",value:Y}]:[],...Os(A).map(([P,M])=>({key:`state-${P}`,label:P,value:M}))];return React.createElement("article",{className:_.componentCard,"data-status":Ge},React.createElement("div",{className:_.cardHeader},React.createElement("span",{className:_.componentName,title:t.name},_s(t.name)),React.createElement("span",{className:_.statusBadge,"data-status":Ge,title:$?`Last reported ${F}, may be unreachable`:F},$?"STALE":F.toUpperCase())),React.createElement("div",{className:_.cardBody},React.createElement("span",{className:_.lastSeen,"data-stale":$||void 0},Es(B,e)),V&&React.createElement("span",{className:_.hostLabel},V)),React.createElement("div",{className:_.cardFooter},React.createElement("button",{className:`${_.pingBtn} ${i?_.pinging:""}`,onClick:L,disabled:i,"aria-label":`Ping ${t.name}`,title:`Ping ${t.name}`},React.createElement(Ns,null),(r==null?void 0:r.kind)==="ok"&&React.createElement("span",{className:_.ttlChip},r.ttl!==null?`TTL ${r.ttl}`:"OK"),(r==null?void 0:r.kind)==="fail"&&React.createElement("span",{className:_.pingFailChip},"no reply")),React.createElement("button",{className:_.infoBtn,onMouseEnter:E,onMouseLeave:v,onFocus:P=>T(P.currentTarget),onBlur:v,onClick:P=>a?s(null):T(P.currentTarget),"aria-expanded":!!a,"aria-label":`Details for ${t.name}`},React.createElement(Ss,null))),a&&React.createElement(Aa,{x:a.x,y:a.y,rows:j,interactive:!0,role:"tooltip",style:{maxHeight:260,overflowY:"auto"},onMouseEnter:m,onMouseLeave:v}))}function Cs(t=5e3){const[e,r]=C.useState(()=>Date.now());return C.useEffect(()=>{const n=setInterval(()=>r(Date.now()),t);return()=>clearInterval(n)},[t]),e}function ks(){return React.createElement("div",{className:_.container,role:"status","aria-label":"Loading components"},React.createElement("header",{className:_.header},React.createElement("div",{className:`${_.skeleton} ${_.skeletonTitle}`})),React.createElement("div",{className:_.grid},[...Array(6)].map((t,e)=>React.createElement("div",{key:e,className:`${_.componentCard} ${_.skeletonCard}`},React.createElement("div",{className:`${_.skeleton} ${_.skeletonLine}`}),React.createElement("div",{className:`${_.skeleton} ${_.skeletonLineShort}`})))))}function Dn(t){const{data:e,loading:r,error:n,refetch:i}=Bo(ps,{fetchPolicy:"network-only",pollInterval:3e4}),o=Cs(),a=C.useMemo(()=>{var l;return(l=e==null?void 0:e.components)!=null?l:[]},[e]),s=C.useMemo(()=>[...a].sort((l,f)=>{const h=ze(Pt(l.lastStatus,l.lastSeen,o)),p=ze(Pt(f.lastStatus,f.lastSeen,o));return h!==p?h-p:l.name.localeCompare(f.name)}),[a,o]),c=C.useMemo(()=>{var f;const l=new Map;for(const h of a){const p=Pt(h.lastStatus,h.lastSeen,o);l.set(p,((f=l.get(p))!=null?f:0)+1)}return[...l.entries()].sort((h,p)=>ze(h[0])-ze(p[0]))},[a,o]);return r&&a.length===0?ks():n&&a.length===0?React.createElement("div",{className:_.container},React.createElement("div",{className:_.errorState,role:"alert"},React.createElement("span",{className:_.errorMessage},"Unable to load components: ",n.message),React.createElement("button",{className:_.retryBtn,onClick:()=>i()},"Retry"))):React.createElement("div",{className:_.container},React.createElement("header",{className:_.header},React.createElement("h2",{className:_.title},"Components"),a.length>0&&React.createElement("span",{className:_.componentCount},a.length),React.createElement("div",{className:_.summary,"aria-label":"Status summary"},c.map(([l,f])=>React.createElement("span",{key:l,className:_.summaryChip,"data-status":l,title:`${f} ${gs[l].toLowerCase()}`},React.createElement("span",{className:_.summaryDot}),f)))),a.length===0?React.createElement("div",{className:_.emptyState},"No components found"):React.createElement("div",{className:_.grid},s.map(l=>React.createElement(Is,{key:l.name,component:l,now:o}))))}const Ds={version:"0.1.1"},{version:ws}=Ds,Rs=ds({key:"componentsStatus",component:Dn,label:"Components Status",layout:{x:0,y:0,w:24,h:18},config:{default:{},schema:{type:"object",properties:{}}},polls:!0,version:ws,docsUrl:"https://developer.skao.int/projects/rasor-components-status/en/latest/"});function Ps(t){t.registerWidget(Rs)}return(function t(e){typeof e.registerWidget=="function"?Ps(e):setTimeout(t,50,e)})(globalThis.Octopus||(globalThis.Octopus={})),Ye.ComponentsStatusWidget=Dn,Object.defineProperty(Ye,Symbol.toStringTag,{value:"Module"}),Ye})({},React,ReactDOM);
666
666
  //# sourceMappingURL=index.iife.js.map