@atlar-widgets/rasor-components-status 0.1.0

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.
@@ -0,0 +1,666 @@
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+=`
5
+
6
+ `+mi(r.loc));else if(this.source&&this.locations)for(const r of this.locations)t+=`
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.
11
+
12
+ Ensure that there is only one instance of "graphql" in the node_modules
13
+ directory. If different versions of "graphql" are the dependencies of other
14
+ relied on modules, use "resolutions" to ensure only one version is installed.
15
+
16
+ https://yarnpkg.com/en/docs/selective-version-resolutions
17
+
18
+ Duplicate "graphql" modules cannot be used at the same time since different
19
+ versions may have different capabilities and behavior. The data from one
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.
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={};/**
26
+ * @license React
27
+ * react-jsx-runtime.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
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 {
35
+ --octopus-font-family: "Segoe UI", sans-serif;
36
+ --octopus-font-family-mono:
37
+ "SFMono-Regular",
38
+ Consolas,
39
+ "Liberation Mono",
40
+ Menlo,
41
+ monospace;
42
+ }
43
+ .octopus-font {
44
+ font-family: var(--octopus-font-family, "Segoe UI", sans-serif);
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 {
47
+ position: relative;
48
+ z-index: 0;
49
+ width: 100%;
50
+ box-sizing: border-box;
51
+ padding: 8px;
52
+ display: flex;
53
+ flex-direction: column;
54
+ gap: 8px;
55
+ background-color: var(--alert-error-bg);
56
+ color: var(--alert-error-text);
57
+ border: 1px solid var(--border-color);
58
+ border-radius: 4px;
59
+ overflow: hidden;
60
+ }
61
+ .headerRow {
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: space-between;
65
+ gap: 8px;
66
+ }
67
+ .messageRow {
68
+ display: flex;
69
+ align-items: center;
70
+ gap: 4px;
71
+ font-weight: bold;
72
+ flex-shrink: 0;
73
+ }
74
+ .actionsRow {
75
+ display: flex;
76
+ align-items: center;
77
+ gap: 8px;
78
+ flex-shrink: 0;
79
+ }
80
+ .errorWrapper {
81
+ width: 100%;
82
+ max-height: 0;
83
+ overflow: hidden;
84
+ transition: max-height 0.2s ease;
85
+ }
86
+ .errorWrapper.expanded {
87
+ max-height: 1000px;
88
+ overflow-y: auto;
89
+ }
90
+ .errorMessage {
91
+ margin: 0;
92
+ font-family: monospace;
93
+ white-space: pre-wrap;
94
+ word-break: break-word;
95
+ overflow-x: auto;
96
+ }
97
+ .toggleButton {
98
+ text-transform: none;
99
+ padding: 0;
100
+ min-width: auto;
101
+ }
102
+ `),Mt(`.inlineOutput {
103
+ background-color: var(--bg-color);
104
+ color: var(--text-color);
105
+ padding: 8px;
106
+ border-radius: 4px;
107
+ font-family: monospace;
108
+ width: 100%;
109
+ overflow-x: auto;
110
+ }
111
+ .resultBox {
112
+ background-color: var(--bg-color);
113
+ color: var(--text-color);
114
+ padding: 16px;
115
+ border-radius: 4px;
116
+ font-family: monospace;
117
+ overflow-x: auto;
118
+ }
119
+ `);var An="16518da1ec1bb552e40a22d8c5ee66af5c11d9a99d76f77a1b5a2910c9ec1ae6",js=`.U8-oZ0h1GEU- {
120
+ display: flex;
121
+ flex-direction: column;
122
+ align-items: center;
123
+ justify-content: center;
124
+ height: 100%;
125
+ text-align: center;
126
+ padding: 24px;
127
+ color: var(--text-muted, #666);
128
+ }
129
+
130
+ ._0z3AJODF4pA- {
131
+ width: 48px;
132
+ height: 48px;
133
+ margin-bottom: 12px;
134
+ color: var(--icon-muted, #aaa);
135
+ }
136
+
137
+ .E1wz0NOX-q4- {
138
+ font-size: 16px;
139
+ font-weight: 500;
140
+ margin-bottom: 4px;
141
+ }
142
+
143
+ .PNGdowf2FNM- {
144
+ font-size: 14px;
145
+ color: var(--text-light, #999);
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 */
148
+ ._1pYT6JXJoYA- {
149
+ position: absolute;
150
+ z-index: 2;
151
+ display: inline-flex;
152
+ align-items: center;
153
+ gap: 6px;
154
+ padding: 4px 8px;
155
+ border-radius: 999px;
156
+ backdrop-filter: saturate(180%) blur(6px);
157
+ background: var(--badge-bg, rgba(0, 0, 0, 0.45));
158
+ color: var(--badge-fg, #fff);
159
+ font-size: 12px;
160
+ line-height: 1;
161
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
162
+ pointer-events: none;
163
+ /* don’t block the chart */
164
+ }
165
+
166
+ .ZtP6ZQDkKJo- {
167
+ margin: 0;
168
+ }
169
+
170
+ .tjxzH5cmQLo- {
171
+ white-space: nowrap;
172
+ }
173
+
174
+ /* Corners */
175
+ .K6qk9QzKSTo- {
176
+ top: 8px;
177
+ right: 10px;
178
+ }
179
+
180
+ .IJc8XPnKfPE- {
181
+ top: 8px;
182
+ left: 10px;
183
+ }
184
+
185
+ .hbfYYXJ2vuE- {
186
+ bottom: 8px;
187
+ right: 10px;
188
+ }
189
+
190
+ .AOwYmGXl9LQ- {
191
+ bottom: 8px;
192
+ left: 10px;
193
+ }
194
+
195
+ /* Thin top progress bar */
196
+ .XC8zQeTQr0o- {
197
+ position: absolute;
198
+ top: 0;
199
+ left: 0;
200
+ right: 0;
201
+ height: 3px;
202
+ z-index: 2;
203
+ overflow: hidden;
204
+ background: var(--bar-track, rgba(0, 0, 0, 0.15));
205
+ border-radius: 2px;
206
+ pointer-events: none;
207
+ }
208
+
209
+ .GEtWd1PPwKc- {
210
+ position: absolute;
211
+ inset: 0 auto 0 0;
212
+ width: 30%;
213
+ background: var(--bar-fill, rgba(255, 255, 255, 0.8));
214
+ border-radius: 2px;
215
+ animation: AgwE8Qaxvt0- 1.2s infinite;
216
+ opacity: 0.95;
217
+ }
218
+
219
+ @keyframes AgwE8Qaxvt0- {
220
+ 0% {
221
+ transform: translateX(-100%);
222
+ }
223
+
224
+ 50% {
225
+ transform: translateX(80%);
226
+ width: 40%;
227
+ }
228
+
229
+ 100% {
230
+ transform: translateX(200%);
231
+ }
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- {
234
+ position: relative;
235
+ pointer-events: none;
236
+ max-width: 300px;
237
+ overflow: visible;
238
+ padding: 8px 10px;
239
+ border-radius: 8px;
240
+ background: var(--widget-bg, rgba(17, 24, 39, 0.95));
241
+ /* slate-900-ish */
242
+ color: var(--tooltip-fg, #e5e7eb);
243
+ /* gray-200 */
244
+ border: 1px solid rgba(255, 255, 255, 0.08);
245
+ box-shadow:
246
+ 0 10px 20px rgba(0, 0, 0, 0.25),
247
+ 0 2px 6px rgba(0, 0, 0, 0.2);
248
+ font-size: var(--font-size, 11px);
249
+ font-family: var(--octopus-font-family, "Segoe UI", sans-serif);
250
+ backdrop-filter: blur(4px);
251
+ }
252
+
253
+ .DXCNlP9sZ-E- {
254
+ position: absolute;
255
+ top: 6px;
256
+ right: 8px;
257
+ border: none;
258
+ background: transparent;
259
+ color: inherit;
260
+ font-size: 14px;
261
+ line-height: 1;
262
+ cursor: pointer;
263
+ opacity: 0.7;
264
+ padding: 0;
265
+ }
266
+
267
+ .DXCNlP9sZ-E-:hover {
268
+ opacity: 1;
269
+ }
270
+
271
+ ._6Zm9Y3H7ogI- {
272
+ display: flex;
273
+ align-items: flex-start;
274
+ gap: 8px;
275
+ margin: 4px 0;
276
+ }
277
+
278
+ .-p-428Skg3M- {
279
+ flex: 0 0 auto;
280
+ min-width: 84px;
281
+ font-weight: 600;
282
+ color: var(--tooltip-key, #cbd5e1);
283
+ /* gray-300 */
284
+ }
285
+
286
+ .lQirUmQctiU- {
287
+ flex: 1 1 auto;
288
+ display: inline-flex;
289
+ align-items: center;
290
+ gap: 6px;
291
+ min-width: 0;
292
+ }
293
+
294
+ .P-fbtcjJqQk- {
295
+ white-space: normal;
296
+ overflow-wrap: anywhere;
297
+ word-break: break-word;
298
+ color: var(--tooltip-fg, #e5e7eb);
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- {
301
+ width: 100%;
302
+ height: 100%;
303
+ padding: 0;
304
+ box-sizing: border-box;
305
+ display: flex;
306
+ flex-direction: column;
307
+ position: relative;
308
+ }
309
+
310
+ .mYJxM0qeSB0- {
311
+ color: var(--widget-title, #333);
312
+ font-size: 14px;
313
+ font-weight: 600;
314
+ line-height: 1.2;
315
+ margin: 10px 0 6px;
316
+ text-align: center;
317
+ z-index: 1;
318
+ }
319
+
320
+ .Weg-bjzLWRw- {
321
+ flex-grow: 1;
322
+ height: 100%;
323
+ position: relative;
324
+ min-height: 0;
325
+ }
326
+
327
+ .Fk4UWU1pZhM- {
328
+ width: 100%;
329
+ height: 100%;
330
+ position: relative;
331
+ }
332
+
333
+ ._8wRHOvFn9Nk- {
334
+ width: 100%;
335
+ height: 100%;
336
+ position: relative;
337
+ }
338
+
339
+ .v0w-7oIUj-Q- .svg-container {
340
+ overflow: hidden;
341
+ }
342
+
343
+ .v0w-7oIUj-Q- .main-svg {
344
+ transform: translate(10%, -7%);
345
+ }
346
+
347
+ .Fss-MIHu6oo- .svg-container {
348
+ overflow: hidden;
349
+ }
350
+
351
+ .Fss-MIHu6oo- .main-svg {
352
+ transform: translate(5%, -7%);
353
+ }
354
+
355
+ .YiiKmJC2Sg4- {
356
+ border-radius: 4px;
357
+ padding: 4px 5px;
358
+ font-size: var(--sunburst-legend-font-size, 10px);
359
+ line-height: 1.1;
360
+ overflow: hidden;
361
+ pointer-events: auto;
362
+ z-index: 1;
363
+ max-width: calc(100% - 16px);
364
+ max-height: calc(100% - 16px);
365
+ }
366
+
367
+ .h2UUWW94k04- {
368
+ background: rgba(255, 255, 255, 0.78);
369
+ color: #111;
370
+ }
371
+
372
+ .QHax3Q9Fu1I- {
373
+ background: rgba(30, 30, 30, 0.78);
374
+ color: #e0e0e0;
375
+ }
376
+
377
+ .-QwZTY5VxsA- {
378
+ position: absolute;
379
+ }
380
+
381
+ .Ka2dLfNdqSY- {
382
+ left: 8px;
383
+ top: 8px;
384
+ }
385
+
386
+ .Opye0k33yvI- {
387
+ right: 8px;
388
+ top: 8px;
389
+ }
390
+
391
+ ._4bvQqH5jZ3U- {
392
+ left: 8px;
393
+ bottom: 8px;
394
+ }
395
+
396
+ .RHuky-RozcQ- {
397
+ right: 8px;
398
+ bottom: 8px;
399
+ }
400
+
401
+ .u9R5WTmhEJU- {
402
+ display: flex;
403
+ gap: 4px 6px;
404
+ max-width: 100%;
405
+ max-height: 100%;
406
+ }
407
+
408
+ .Ka2dLfNdqSY- .u9R5WTmhEJU-,
409
+ .Opye0k33yvI- .u9R5WTmhEJU-,
410
+ ._4bvQqH5jZ3U- .u9R5WTmhEJU-,
411
+ .RHuky-RozcQ- .u9R5WTmhEJU- {
412
+ flex-direction: column;
413
+ flex-wrap: wrap;
414
+ align-content: flex-start;
415
+ overflow: hidden;
416
+ }
417
+
418
+ .-hVNnFzTQOU- {
419
+ display: inline-flex;
420
+ align-items: center;
421
+ gap: 4px;
422
+ white-space: nowrap;
423
+ }
424
+
425
+ .PWALczgFy9k- .-hVNnFzTQOU- {
426
+ flex-direction: row;
427
+ justify-content: flex-start;
428
+ text-align: left;
429
+ }
430
+
431
+ ._4-kJg33ImGg- .-hVNnFzTQOU- {
432
+ flex-direction: row-reverse;
433
+ justify-content: flex-start;
434
+ width: 100%;
435
+ text-align: right;
436
+ }
437
+
438
+ .IXPe0NjMD9Y- {
439
+ width: 8px;
440
+ height: 8px;
441
+ border-radius: 2px;
442
+ border: 1px solid rgba(0, 0, 0, 0.2);
443
+ box-sizing: border-box;
444
+ display: inline-block;
445
+ }
446
+
447
+ .Fk4UWU1pZhM- .modebar-container {
448
+ z-index: 40 !important;
449
+ }
450
+
451
+ .Fk4UWU1pZhM- .modebar {
452
+ z-index: 40 !important;
453
+ }
454
+
455
+ .hS6klkoAy9M- {
456
+ z-index: 18 !important;
457
+ }
458
+
459
+ .rHE8XubyKIU- {
460
+ max-width: 560px;
461
+ min-width: 360px;
462
+ max-height: 320px;
463
+ overflow: auto;
464
+ border-radius: 10px;
465
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
466
+ padding: 10px 12px 12px;
467
+ font-family: var(--octopus-font-family, "Segoe UI", sans-serif);
468
+ pointer-events: auto;
469
+ }
470
+
471
+ .Wp3aijhY650- {
472
+ background: rgba(255, 255, 255, 0.96);
473
+ color: #111;
474
+ border: 1px solid rgba(0, 0, 0, 0.12);
475
+ }
476
+
477
+ .v3wg-yt-64M- {
478
+ background: rgba(30, 30, 30, 0.96);
479
+ color: #eee;
480
+ border: 1px solid rgba(255, 255, 255, 0.08);
481
+ }
482
+
483
+ .wQDaS0DkICI- {
484
+ font-weight: 600;
485
+ font-size: 13px;
486
+ margin: 0 16px 6px 0;
487
+ white-space: nowrap;
488
+ overflow: hidden;
489
+ text-overflow: ellipsis;
490
+ }
491
+
492
+ ._0-Hqfxd-6R4- {
493
+ font-family:
494
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
495
+ monospace;
496
+ font-size: 12px;
497
+ line-height: 1.35;
498
+ white-space: normal;
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- {
501
+ width: 100%;
502
+ height: 100%;
503
+ min-height: 0;
504
+ display: flex;
505
+ flex-direction: column;
506
+ overflow: hidden;
507
+ box-sizing: border-box;
508
+ font-family: var(--octopus-font-family, "Segoe UI", sans-serif);
509
+ color: var(--text-color);
510
+ background: var(--widget-bg);
511
+ }
512
+
513
+ ._3P-awdcseWY- {
514
+ flex: 1 1 auto;
515
+ min-height: 0;
516
+ overflow: auto;
517
+ }
518
+
519
+ .ETCC2a15Avg- {
520
+ width: auto;
521
+ border-collapse: separate;
522
+ border-spacing: 0;
523
+ table-layout: fixed;
524
+ box-sizing: border-box;
525
+ }
526
+
527
+ .z5zl37CkU1o-,
528
+ .P8PSzurEmnE- {
529
+ padding: 8px 10px;
530
+ white-space: nowrap;
531
+ overflow: hidden;
532
+ text-overflow: ellipsis;
533
+ box-sizing: border-box;
534
+ font-size: var(--interactive-table-font-size, 0.8em);
535
+ }
536
+
537
+ .z5zl37CkU1o- {
538
+ position: sticky;
539
+ top: var(--interactive-table-sticky-offset, 0px);
540
+ z-index: 2;
541
+ text-align: left;
542
+ font-weight: 600;
543
+ color: var(--text-color);
544
+ background: var(--table-header-bg, var(--widget-bg));
545
+ border-bottom: 1px solid var(--table-border);
546
+ }
547
+
548
+ .z5zl37CkU1o-:not(:last-child),
549
+ .P8PSzurEmnE-:not(:last-child) {
550
+ border-right: 1px solid var(--table-border);
551
+ }
552
+
553
+ .-j49mW7jRfg-:nth-of-type(even) .P8PSzurEmnE- {
554
+ background: var(--table-row-bg-even);
555
+ }
556
+
557
+ .-j49mW7jRfg-:hover .P8PSzurEmnE- {
558
+ background: var(--hover-color);
559
+ }
560
+
561
+ .P8PSzurEmnE- {
562
+ color: var(--text-color);
563
+ border-bottom: 1px solid var(--table-border);
564
+ background: var(--widget-bg);
565
+ }
566
+
567
+ .hutKcs-UlGU- {
568
+ cursor: pointer;
569
+ }
570
+
571
+ .hutKcs-UlGU-::after {
572
+ content: attr(data-dir);
573
+ font-size: 0.75rem;
574
+ margin-left: 4px;
575
+ opacity: 0.6;
576
+ }
577
+
578
+ ._5zq0x2F13gc- {
579
+ cursor: move;
580
+ }
581
+
582
+ .Q1kdygcfuzI- {
583
+ position: relative;
584
+ }
585
+
586
+ .e1Oesu1qiS0- {
587
+ position: absolute;
588
+ top: 0;
589
+ right: 0;
590
+ width: 6px;
591
+ height: 100%;
592
+ cursor: col-resize;
593
+ user-select: none;
594
+ border: 0;
595
+ background: transparent;
596
+ padding: 0;
597
+ }
598
+
599
+ ._2pFMKOlX9Oo- {
600
+ text-align: left;
601
+ }
602
+
603
+ .v5p03cR5TQk- {
604
+ text-align: center;
605
+ }
606
+
607
+ .zoaXof1wE34- {
608
+ text-align: right;
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- {
611
+ display: inline-flex;
612
+ align-items: center;
613
+ justify-content: center;
614
+ max-width: 100%;
615
+ min-height: 20px;
616
+ padding: 0 8px;
617
+ border: 0;
618
+ border-radius: 8px;
619
+ box-sizing: border-box;
620
+ font: inherit;
621
+ font-weight: 600;
622
+ line-height: 1.2;
623
+ letter-spacing: 0.2px;
624
+ color: #000;
625
+ background: var(--table-row-bg-even);
626
+ box-shadow:
627
+ 0 0 0 1px rgba(0, 0, 0, 0.08) inset,
628
+ 0 1px 2px rgba(0, 0, 0, 0.12);
629
+ overflow: hidden;
630
+ text-overflow: ellipsis;
631
+ white-space: nowrap;
632
+ user-select: none;
633
+ vertical-align: middle;
634
+ }
635
+
636
+ .qORB5Pcc9ew- {
637
+ cursor: pointer;
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`
640
+ query ComponentsQuery {
641
+ components {
642
+ lastStatus
643
+ lastSeen
644
+ state
645
+ name
646
+ }
647
+ }
648
+ `,Va=z`
649
+ subscription HeartbeatEvent($componentName: String!) {
650
+ heartbeatEvent(componentName: $componentName) {
651
+ componentName
652
+ seq
653
+ interval
654
+ ts
655
+ lastSeen
656
+ state
657
+ }
658
+ }
659
+ `,za=z`
660
+ mutation Ping($componentName: String!) {
661
+ ping(componentName: $componentName) {
662
+ ttl
663
+ }
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);
666
+ //# sourceMappingURL=index.iife.js.map