galaxy-charts 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/galaxy-charts.js
CHANGED
|
@@ -21168,7 +21168,7 @@ function JC(e, t) {
|
|
|
21168
21168
|
function QC() {
|
|
21169
21169
|
var l;
|
|
21170
21170
|
const e = document.getElementById("app"), t = JSON.parse((e == null ? void 0 : e.getAttribute("data-incoming")) || "{}") || {}, n = t.root || "/", r = t.visualization_id || null, o = t.visualization_plugin, i = t.visualization_title || "Unnamed Visualization";
|
|
21171
|
-
let a = t.visualization_config;
|
|
21171
|
+
let a = t.visualization_config || {};
|
|
21172
21172
|
if ((l = t.visualization_config) != null && l.chart_dict) {
|
|
21173
21173
|
const s = t.visualization_config.chart_dict;
|
|
21174
21174
|
a.groups = s.groups, a.settings = s.settings, delete a.chart_dict;
|
|
@@ -2070,4 +2070,4 @@ ${t}
|
|
|
2070
2070
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Gc]=this[Gc]={accessors:{}}).accessors,i=this.prototype;function a(l){const s=Rr(l);r[s]||(Qw(i,l),r[s]=!0)}return V.isArray(t)?t.forEach(a):a(t),this}}ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(ut.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),V.freezeMethods(ut);function ca(e,t){const n=this||kr,r=t||n,i=ut.from(r.headers);let a=r.data;return V.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function qc(e){return!!(e&&e.__CANCEL__)}function Yn(e,t,n){ye.call(this,e??"canceled",ye.ERR_CANCELED,t,n),this.name="CanceledError"}V.inherits(Yn,ye,{__CANCEL__:!0});function Kc(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ye("Request failed with status code "+n.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function e1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function t1(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,l;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),u=r[a];l||(l=d),n[i]=c,r[i]=d;let f=a,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),d-l<t)return;const b=u&&d-u;return b?Math.round(p*1e3/b):void 0}}function n1(e,t){let n=0,r=1e3/t,i,a;const l=(d,u=Date.now())=>{n=u,i=null,a&&(clearTimeout(a),a=null),e.apply(null,d)};return[(...d)=>{const u=Date.now(),f=u-n;f>=r?l(d,u):(i=d,a||(a=setTimeout(()=>{a=null,l(i)},r-f)))},()=>i&&l(i)]}const Po=(e,t,n=3)=>{let r=0;const i=t1(50,250);return n1(a=>{const l=a.loaded,s=a.lengthComputable?a.total:void 0,c=l-r,d=i(c),u=l<=s;r=l;const f={loaded:l,total:s,progress:s?l/s:void 0,bytes:c,rate:d||void 0,estimated:d&&s&&u?(s-l)/d:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},Xc=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Yc=e=>(...t)=>V.asap(()=>e(...t)),r1=Rt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(a){let l=a;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(l){const s=V.isString(l)?i(l):l;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),o1=Rt.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const l=[e+"="+encodeURIComponent(t)];V.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),V.isString(r)&&l.push("path="+r),V.isString(i)&&l.push("domain="+i),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function i1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function a1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Zc(e,t){return e&&!i1(t)?a1(e,t):t}const Jc=e=>e instanceof ut?{...e}:e;function zn(e,t){t=t||{};const n={};function r(d,u,f){return V.isPlainObject(d)&&V.isPlainObject(u)?V.merge.call({caseless:f},d,u):V.isPlainObject(u)?V.merge({},u):V.isArray(u)?u.slice():u}function i(d,u,f){if(V.isUndefined(u)){if(!V.isUndefined(d))return r(void 0,d,f)}else return r(d,u,f)}function a(d,u){if(!V.isUndefined(u))return r(void 0,u)}function l(d,u){if(V.isUndefined(u)){if(!V.isUndefined(d))return r(void 0,d)}else return r(void 0,u)}function s(d,u,f){if(f in t)return r(d,u);if(f in e)return r(void 0,d)}const c={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s,headers:(d,u)=>i(Jc(d),Jc(u),!0)};return V.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=c[u]||i,p=f(e[u],t[u],u);V.isUndefined(p)&&f!==s||(n[u]=p)}),n}const Qc=e=>{const t=zn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:l,auth:s}=t;t.headers=l=ut.from(l),t.url=Vc(Zc(t.baseURL,t.url),e.params,e.paramsSerializer),s&&l.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(V.isFormData(n)){if(Rt.hasStandardBrowserEnv||Rt.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...u]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...u].join("; "))}}if(Rt.hasStandardBrowserEnv&&(r&&V.isFunction(r)&&(r=r(t)),r||r!==!1&&r1(t.url))){const d=i&&a&&o1.read(a);d&&l.set(i,d)}return t},l1=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=Qc(e);let a=i.data;const l=ut.from(i.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:d}=i,u,f,p,b,h;function x(){b&&b(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function g(){if(!v)return;const z=ut.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),T={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:z,config:e,request:v};Kc(function(m){n(m),x()},function(m){r(m),x()},T),v=null}"onloadend"in v?v.onloadend=g:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(g)},v.onabort=function(){v&&(r(new ye("Request aborted",ye.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new ye("Network Error",ye.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let $=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||Wc;i.timeoutErrorMessage&&($=i.timeoutErrorMessage),r(new ye($,T.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,v)),v=null},a===void 0&&l.setContentType(null),"setRequestHeader"in v&&V.forEach(l.toJSON(),function($,T){v.setRequestHeader(T,$)}),V.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),d&&([p,h]=Po(d,!0),v.addEventListener("progress",p)),c&&v.upload&&([f,b]=Po(c),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",b)),(i.cancelToken||i.signal)&&(u=z=>{v&&(r(!z||z.type?new Yn(null,e,v):z),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const k=e1(i.url);if(k&&Rt.protocols.indexOf(k)===-1){r(new ye("Unsupported protocol "+k+":",ye.ERR_BAD_REQUEST,e));return}v.send(a||null)})},s1=(e,t)=>{let n=new AbortController,r;const i=function(c){if(!r){r=!0,l();const d=c instanceof Error?c:this.reason;n.abort(d instanceof ye?d:new Yn(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{i(new ye(`timeout ${t} of ms exceeded`,ye.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",i):c.unsubscribe(i))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",i));const{signal:s}=n;return s.unsubscribe=l,[s,()=>{a&&clearTimeout(a),a=null}]},c1=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},d1=async function*(e,t,n){for await(const r of e)yield*c1(ArrayBuffer.isView(r)?r:await n(String(r)),t)},ed=(e,t,n,r,i)=>{const a=d1(e,t,i);let l=0,s,c=d=>{s||(s=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:u,value:f}=await a.next();if(u){c(),d.close();return}let p=f.byteLength;if(n){let b=l+=p;n(b)}d.enqueue(new Uint8Array(f))}catch(u){throw c(u),u}},cancel(d){return c(d),a.return()}},{highWaterMark:2})},Eo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",td=Eo&&typeof ReadableStream=="function",da=Eo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),nd=(e,...t)=>{try{return!!e(...t)}catch{return!1}},u1=td&&nd(()=>{let e=!1;const t=new Request(Rt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),rd=64*1024,ua=td&&nd(()=>V.isReadableStream(new Response("").body)),zo={stream:ua&&(e=>e.body)};Eo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!zo[t]&&(zo[t]=V.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ye(`Response type '${t}' is not supported`,ye.ERR_NOT_SUPPORT,r)})})})(new Response);const f1=async e=>{if(e==null)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(V.isArrayBufferView(e)||V.isArrayBuffer(e))return e.byteLength;if(V.isURLSearchParams(e)&&(e=e+""),V.isString(e))return(await da(e)).byteLength},h1=async(e,t)=>{const n=V.toFiniteNumber(e.getContentLength());return n??f1(t)},fa={http:Iw,xhr:l1,fetch:Eo&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:l,onDownloadProgress:s,onUploadProgress:c,responseType:d,headers:u,withCredentials:f="same-origin",fetchOptions:p}=Qc(e);d=d?(d+"").toLowerCase():"text";let[b,h]=i||a||l?s1([i,a],l):[],x,v;const g=()=>{!x&&setTimeout(()=>{b&&b.unsubscribe()}),x=!0};let k;try{if(c&&u1&&n!=="get"&&n!=="head"&&(k=await h1(u,r))!==0){let O=new Request(t,{method:"POST",body:r,duplex:"half"}),m;if(V.isFormData(r)&&(m=O.headers.get("content-type"))&&u.setContentType(m),O.body){const[S,M]=Xc(k,Po(Yc(c)));r=ed(O.body,rd,S,M,da)}}V.isString(f)||(f=f?"include":"omit"),v=new Request(t,{...p,signal:b,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:f});let z=await fetch(v);const $=ua&&(d==="stream"||d==="response");if(ua&&(s||$)){const O={};["status","statusText","headers"].forEach(N=>{O[N]=z[N]});const m=V.toFiniteNumber(z.headers.get("content-length")),[S,M]=s&&Xc(m,Po(Yc(s),!0))||[];z=new Response(ed(z.body,rd,S,()=>{M&&M(),$&&g()},da),O)}d=d||"text";let T=await zo[V.findKey(zo,d)||"text"](z,e);return!$&&g(),h&&h(),await new Promise((O,m)=>{Kc(O,m,{data:T,headers:ut.from(z.headers),status:z.status,statusText:z.statusText,config:e,request:v})})}catch(z){throw g(),z&&z.name==="TypeError"&&/fetch/i.test(z.message)?Object.assign(new ye("Network Error",ye.ERR_NETWORK,e,v),{cause:z.cause||z}):ye.from(z,z&&z.code,e,v)}})};V.forEach(fa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const od=e=>`- ${e}`,p1=e=>V.isFunction(e)||e===null||e===!1,id={getAdapter:e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a<t;a++){n=e[a];let l;if(r=n,!p1(n)&&(r=fa[(l=String(n)).toLowerCase()],r===void 0))throw new ye(`Unknown adapter '${l}'`);if(r)break;i[l||"#"+a]=r}if(!r){const a=Object.entries(i).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=t?a.length>1?`since :
|
|
2071
2071
|
`+a.map(od).join(`
|
|
2072
2072
|
`):" "+od(a[0]):"as no adapter specified";throw new ye("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:fa};function ha(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yn(null,e)}function ad(e){return ha(e),e.headers=ut.from(e.headers),e.data=ca.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),id.getAdapter(e.adapter||kr.adapter)(e).then(function(r){return ha(e),r.data=ca.call(e,e.transformResponse,r),r.headers=ut.from(r.headers),r},function(r){return qc(r)||(ha(e),r&&r.response&&(r.response.data=ca.call(e,e.transformResponse,r.response),r.response.headers=ut.from(r.response.headers))),Promise.reject(r)})}const ld="1.7.4",pa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pa[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const sd={};pa.transitional=function(t,n,r){function i(a,l){return"[Axios v"+ld+"] Transitional option '"+a+"'"+l+(r?". "+r:"")}return(a,l,s)=>{if(t===!1)throw new ye(i(l," has been removed"+(n?" in "+n:"")),ye.ERR_DEPRECATED);return n&&!sd[l]&&(sd[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,l,s):!0}};function b1(e,t,n){if(typeof e!="object")throw new ye("options must be an object",ye.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],l=t[a];if(l){const s=e[a],c=s===void 0||l(s,a,e);if(c!==!0)throw new ye("option "+a+" must be "+c,ye.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ye("Unknown option "+a,ye.ERR_BAD_OPTION)}}const ba={assertOptions:b1,validators:pa},rn=ba.validators;class _n{constructor(t){this.defaults=t,this.interceptors={request:new jc,response:new jc}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
2073
|
-
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&ba.assertOptions(r,{silentJSONParsing:rn.transitional(rn.boolean),forcedJSONParsing:rn.transitional(rn.boolean),clarifyTimeoutError:rn.transitional(rn.boolean)},!1),i!=null&&(V.isFunction(i)?n.paramsSerializer={serialize:i}:ba.assertOptions(i,{encode:rn.function,serialize:rn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=a&&V.merge(a.common,a[n.method]);a&&V.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),n.headers=ut.concat(l,a);const s=[];let c=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(c=c&&x.synchronous,s.unshift(x.fulfilled,x.rejected))});const d=[];this.interceptors.response.forEach(function(x){d.push(x.fulfilled,x.rejected)});let u,f=0,p;if(!c){const h=[ad.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,d),p=h.length,u=Promise.resolve(n);f<p;)u=u.then(h[f++],h[f++]);return u}p=s.length;let b=n;for(f=0;f<p;){const h=s[f++],x=s[f++];try{b=h(b)}catch(v){x.call(this,v);break}}try{u=ad.call(this,b)}catch(h){return Promise.reject(h)}for(f=0,p=d.length;f<p;)u=u.then(d[f++],d[f++]);return u}getUri(t){t=zn(this.defaults,t);const n=Zc(t.baseURL,t.url);return Vc(n,t.params,t.paramsSerializer)}}V.forEach(["delete","get","head","options"],function(t){_n.prototype[t]=function(n,r){return this.request(zn(r||{},{method:t,url:n,data:(r||{}).data}))}}),V.forEach(["post","put","patch"],function(t){function n(r){return function(a,l,s){return this.request(zn(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:l}))}}_n.prototype[t]=n(),_n.prototype[t+"Form"]=n(!0)});class ma{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const l=new Promise(s=>{r.subscribe(s),a=s}).then(i);return l.cancel=function(){r.unsubscribe(a)},l},t(function(a,l,s){r.reason||(r.reason=new Yn(a,l,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ma(function(i){t=i}),cancel:t}}}function m1(e){return function(n){return e.apply(null,n)}}function g1(e){return V.isObject(e)&&e.isAxiosError===!0}const ga={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ga).forEach(([e,t])=>{ga[t]=e});function cd(e){const t=new _n(e),n=kc(_n.prototype.request,t);return V.extend(n,_n.prototype,t,{allOwnKeys:!0}),V.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return cd(zn(e,i))},n}const qe=cd(kr);qe.Axios=_n,qe.CanceledError=Yn,qe.CancelToken=ma,qe.isCancel=qc,qe.VERSION=ld,qe.toFormData=ko,qe.AxiosError=ye,qe.Cancel=qe.CanceledError,qe.all=function(t){return Promise.all(t)},qe.spread=m1,qe.isAxiosError=g1,qe.mergeConfig=zn,qe.AxiosHeaders=ut,qe.formToJSON=e=>Uc(V.isHTMLForm(e)?new FormData(e):e),qe.getAdapter=id.getAdapter,qe.HttpStatusCode=ga,qe.default=qe;function v1(e){const t=e.replace(/^.*[\\\/]/,"");return t.substring(0,t.lastIndexOf("."))}const dd=new DOMParser;async function x1(e,t=""){var s,c,d;const n=dd.parseFromString(e,"text/xml"),r=[],i=n.documentElement.getElementsByTagName("macros");if(i.length>0)for(const u of Array.from(i))for(const f of Array.from(u.children))r.push(((s=f.textContent)==null?void 0:s.trim())||"");console.debug(`Detected ${r.length} macro file(s) in xml.`);const a={};for(const u of r){const{data:f}=await qe.get(`${t}${u}`),b=dd.parseFromString(f,"text/xml").documentElement.getElementsByTagName("xml");if(b.length>0)for(const h of Array.from(b)){const x=h.getAttribute("name");if(x)for(const v of Array.from(h.children))a[x]=a[x]||[],a[x].push(v)}}console.debug("Successfully collected macro files.");const l=n.documentElement.getElementsByTagName("expand");if(l.length>0)for(const u of Array.from(l)){const f=u.getAttribute("macro");if(f&&f in a){const p=a[f];for(const b of p)(c=u.parentNode)==null||c.appendChild(b.cloneNode(!0));(d=u.parentNode)==null||d.removeChild(u)}else console.error(`Failed to detect '${f}' macros source.`)}return n}async function y1(e){var l;const t=await qe.get(e),n=await x1(t.data),r={name:v1(e)};r.html=n.documentElement.getAttribute("name"),r.logo=n.documentElement.getAttribute("logo");const i=n.documentElement.getElementsByTagName("description");i.length===1&&(r.description=((l=i[0].textContent)==null?void 0:l.trim())||null);const a=n.documentElement.getElementsByTagName("specs");return a.length===1&&(r.specs=new Bo(a[0])),["settings","tracks"].forEach(s=>{const c=n.documentElement.getElementsByTagName(s);c.length===1&&(r[s]=new _o(c[0]))}),r}class _o extends Array{constructor(t){super();for(const n of Array.from(t.children))n.children.length>0?n.tagName===n.children[0].tagName?this.push(new _o(n)):this.push(new Bo(n)):n.textContent&&n.textContent.trim()&&this.push(n.textContent.trim())}}class Bo{constructor(t){var n;if(t.attributes.length>0)for(const r of Array.from(t.attributes))this[r.name]=r.value;for(const r of Array.from(t.children))if(r.children.length>0){let i;if(r.tagName===r.children[0].tagName)i=new _o(r);else{const a=new Bo(r);for(const l of Array.from(r.attributes))a[l.name]=l.value;i=a}this[r.tagName]=i}else if(r.attributes.length>0){const i={};for(const a of Array.from(r.attributes))i[a.name]=a.value;this[r.tagName]=i}else this[r.tagName]=((n=r.textContent)==null?void 0:n.trim())||null}}async function w1(e,t,n={}){if(!t)try{t=await y1(e)}catch(l){console.error("Visualization requires configuration from XML or attached `visualization_plugin` details."),_r(l)}const r=fd(t.settings,n.settings),i=t.specs,a=S1(t.tracks,n.tracks);return{plugin:t,settings:r,specs:i,tracks:a}}function ud(e,t){let n=t??e.value;return e.type==="float"&&(n=Number(n)),n}function C1(e,t={}){var i,a,l;const n=t,r=(i=e.test_param)==null?void 0:i.name;if(!r)console.error(`Test parameter has no name: ${e.name}.`);else{const s=n[r]??((a=e.test_param)==null?void 0:a.value);for(const c of e.cases||[])if(c.value===s&&(n[r]=s,(l=c.inputs)!=null&&l.length))for(const d of c.inputs)n[d.name]=ud(d,n[d.name])}return n}function fd(e,t){const n=t||{};return e==null||e.forEach(r=>{r.type==="conditional"?n[r.name]=C1(r,n[r.name]):n[r.name]=ud(r,n[r.name])}),n}function S1(e,t){const n=t||[];return e&&(n.length===0&&n.push({}),n.forEach((r,i)=>{n[i]=fd(e,r)})),n}function $1(){var s;const e=document.getElementById("app"),t=JSON.parse((e==null?void 0:e.getAttribute("data-incoming"))||"{}")||{},n=t.root||"/",r=t.visualization_id||null,i=t.visualization_plugin,a=t.visualization_title||"Unnamed Visualization";let l=t.visualization_config;if((s=t.visualization_config)!=null&&s.chart_dict){const c=t.visualization_config.chart_dict;l.groups=c.groups,l.settings=c.settings,delete l.chart_dict}return{root:n,visualizationConfig:l,visualizationId:r,visualizationPlugin:i,visualizationTitle:a}}const T1={key:1,class:"m-2"},k1=o.createElementVNode("span",{class:"text-xs"},"Please wait...",-1),R1={key:0},P1=o.defineComponent({__name:"GalaxyCharts",props:{credentials:{},xml:{}},setup(e){const t=e,n=o.ref(!1),r=o.ref(""),i=o.ref(""),a=o.ref(""),l=o.ref(""),s=o.ref(!0),c=o.ref(""),d=o.ref(""),u=o.ref([]),f=o.ref({}),p=o.ref({}),b=o.ref([]),h=o.ref([]),{root:x,visualizationConfig:v,visualizationId:g,visualizationPlugin:k,visualizationTitle:z}=$1(),$=ka();$.setCredentials(t.credentials||"include"),$.setRoot(x||"/"),w1(t.xml,k,v).then(({plugin:A,settings:L,specs:U,tracks:J})=>{i.value=A.description||"",l.value=A.html||"",s.value=!1,c.value=A.logo||"",d.value=A.name,u.value=A.settings||[],f.value=L,p.value=U||{},b.value=A.tracks||[],h.value=J});const T=v.dataset_id||"";v.dataset_url?(r.value=v.dataset_url,console.debug(`GalaxyCharts: Evaluating dataset url: ${r.value}.`)):T?(r.value=pd(T),console.debug(`GalaxyCharts: Built dataset url from dataset id: ${r.value}.`)):a.value="Visualization requires `dataset_id` or `dataset_url`.";const O=o.computed(()=>c.value&&`${x}${c.value}`),m=o.computed(()=>u.value.length===0&&b.value.length===0);async function S(){n.value=!n.value,await o.nextTick(),window.dispatchEvent(new Event("resize"))}function M(A){f.value={...A}}function N(A){h.value=[...A]}return(A,L)=>a.value?(o.openBlock(),o.createBlock(o.unref(rc),{key:0,title:"Visualization Error!",type:"error",class:"m-2"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(a.value),1)]),_:1})):s.value?(o.openBlock(),o.createElementBlock("div",T1,[o.createElementVNode("span",null,[o.createVNode(o.unref(gd),{class:"animate-spin size-4 inline mx-1"})]),k1])):(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["grid h-screen",{"grid-cols-[70%_30%]":!n.value&&!m.value}])},[o.renderSlot(A.$slots,"default",{datasetId:o.unref(T),datasetUrl:r.value,root:o.unref(x),settings:f.value,specs:p.value,tracks:h.value}),n.value&&!m.value?(o.openBlock(),o.createElementBlock("div",R1,[o.createVNode(o.unref(Wx),{strong:"",secondary:"",circle:"",class:"bg-sky-100 m-2",top:0,right:0,onClick:S},{default:o.withCtx(()=>[o.createVNode(o.unref(Tt),null,{default:o.withCtx(()=>[o.createVNode(o.unref(vd))]),_:1})]),_:1})])):(o.openBlock(),o.createBlock(Yy,{key:1,"dataset-id":o.unref(T),description:i.value,html:l.value,"logo-url":O.value,name:d.value,"setting-inputs":u.value,"setting-values":f.value,"track-inputs":b.value,"track-values":h.value,"visualization-id":o.unref(g),"visualization-title":o.unref(z),"onUpdate:settings":M,"onUpdate:tracks":N,onToggle:S},null,8,["dataset-id","description","html","logo-url","name","setting-inputs","setting-values","track-inputs","track-values","visualization-id","visualization-title"]))],2))}});Ue.GalaxyApi=cn,Ue.GalaxyCharts=P1,Ue.useColumnsStore=bd,Object.defineProperty(Ue,Symbol.toStringTag,{value:"Module"})});
|
|
2073
|
+
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&ba.assertOptions(r,{silentJSONParsing:rn.transitional(rn.boolean),forcedJSONParsing:rn.transitional(rn.boolean),clarifyTimeoutError:rn.transitional(rn.boolean)},!1),i!=null&&(V.isFunction(i)?n.paramsSerializer={serialize:i}:ba.assertOptions(i,{encode:rn.function,serialize:rn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=a&&V.merge(a.common,a[n.method]);a&&V.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),n.headers=ut.concat(l,a);const s=[];let c=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(c=c&&x.synchronous,s.unshift(x.fulfilled,x.rejected))});const d=[];this.interceptors.response.forEach(function(x){d.push(x.fulfilled,x.rejected)});let u,f=0,p;if(!c){const h=[ad.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,d),p=h.length,u=Promise.resolve(n);f<p;)u=u.then(h[f++],h[f++]);return u}p=s.length;let b=n;for(f=0;f<p;){const h=s[f++],x=s[f++];try{b=h(b)}catch(v){x.call(this,v);break}}try{u=ad.call(this,b)}catch(h){return Promise.reject(h)}for(f=0,p=d.length;f<p;)u=u.then(d[f++],d[f++]);return u}getUri(t){t=zn(this.defaults,t);const n=Zc(t.baseURL,t.url);return Vc(n,t.params,t.paramsSerializer)}}V.forEach(["delete","get","head","options"],function(t){_n.prototype[t]=function(n,r){return this.request(zn(r||{},{method:t,url:n,data:(r||{}).data}))}}),V.forEach(["post","put","patch"],function(t){function n(r){return function(a,l,s){return this.request(zn(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:l}))}}_n.prototype[t]=n(),_n.prototype[t+"Form"]=n(!0)});class ma{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const l=new Promise(s=>{r.subscribe(s),a=s}).then(i);return l.cancel=function(){r.unsubscribe(a)},l},t(function(a,l,s){r.reason||(r.reason=new Yn(a,l,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ma(function(i){t=i}),cancel:t}}}function m1(e){return function(n){return e.apply(null,n)}}function g1(e){return V.isObject(e)&&e.isAxiosError===!0}const ga={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ga).forEach(([e,t])=>{ga[t]=e});function cd(e){const t=new _n(e),n=kc(_n.prototype.request,t);return V.extend(n,_n.prototype,t,{allOwnKeys:!0}),V.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return cd(zn(e,i))},n}const qe=cd(kr);qe.Axios=_n,qe.CanceledError=Yn,qe.CancelToken=ma,qe.isCancel=qc,qe.VERSION=ld,qe.toFormData=ko,qe.AxiosError=ye,qe.Cancel=qe.CanceledError,qe.all=function(t){return Promise.all(t)},qe.spread=m1,qe.isAxiosError=g1,qe.mergeConfig=zn,qe.AxiosHeaders=ut,qe.formToJSON=e=>Uc(V.isHTMLForm(e)?new FormData(e):e),qe.getAdapter=id.getAdapter,qe.HttpStatusCode=ga,qe.default=qe;function v1(e){const t=e.replace(/^.*[\\\/]/,"");return t.substring(0,t.lastIndexOf("."))}const dd=new DOMParser;async function x1(e,t=""){var s,c,d;const n=dd.parseFromString(e,"text/xml"),r=[],i=n.documentElement.getElementsByTagName("macros");if(i.length>0)for(const u of Array.from(i))for(const f of Array.from(u.children))r.push(((s=f.textContent)==null?void 0:s.trim())||"");console.debug(`Detected ${r.length} macro file(s) in xml.`);const a={};for(const u of r){const{data:f}=await qe.get(`${t}${u}`),b=dd.parseFromString(f,"text/xml").documentElement.getElementsByTagName("xml");if(b.length>0)for(const h of Array.from(b)){const x=h.getAttribute("name");if(x)for(const v of Array.from(h.children))a[x]=a[x]||[],a[x].push(v)}}console.debug("Successfully collected macro files.");const l=n.documentElement.getElementsByTagName("expand");if(l.length>0)for(const u of Array.from(l)){const f=u.getAttribute("macro");if(f&&f in a){const p=a[f];for(const b of p)(c=u.parentNode)==null||c.appendChild(b.cloneNode(!0));(d=u.parentNode)==null||d.removeChild(u)}else console.error(`Failed to detect '${f}' macros source.`)}return n}async function y1(e){var l;const t=await qe.get(e),n=await x1(t.data),r={name:v1(e)};r.html=n.documentElement.getAttribute("name"),r.logo=n.documentElement.getAttribute("logo");const i=n.documentElement.getElementsByTagName("description");i.length===1&&(r.description=((l=i[0].textContent)==null?void 0:l.trim())||null);const a=n.documentElement.getElementsByTagName("specs");return a.length===1&&(r.specs=new Bo(a[0])),["settings","tracks"].forEach(s=>{const c=n.documentElement.getElementsByTagName(s);c.length===1&&(r[s]=new _o(c[0]))}),r}class _o extends Array{constructor(t){super();for(const n of Array.from(t.children))n.children.length>0?n.tagName===n.children[0].tagName?this.push(new _o(n)):this.push(new Bo(n)):n.textContent&&n.textContent.trim()&&this.push(n.textContent.trim())}}class Bo{constructor(t){var n;if(t.attributes.length>0)for(const r of Array.from(t.attributes))this[r.name]=r.value;for(const r of Array.from(t.children))if(r.children.length>0){let i;if(r.tagName===r.children[0].tagName)i=new _o(r);else{const a=new Bo(r);for(const l of Array.from(r.attributes))a[l.name]=l.value;i=a}this[r.tagName]=i}else if(r.attributes.length>0){const i={};for(const a of Array.from(r.attributes))i[a.name]=a.value;this[r.tagName]=i}else this[r.tagName]=((n=r.textContent)==null?void 0:n.trim())||null}}async function w1(e,t,n={}){if(!t)try{t=await y1(e)}catch(l){console.error("Visualization requires configuration from XML or attached `visualization_plugin` details."),_r(l)}const r=fd(t.settings,n.settings),i=t.specs,a=S1(t.tracks,n.tracks);return{plugin:t,settings:r,specs:i,tracks:a}}function ud(e,t){let n=t??e.value;return e.type==="float"&&(n=Number(n)),n}function C1(e,t={}){var i,a,l;const n=t,r=(i=e.test_param)==null?void 0:i.name;if(!r)console.error(`Test parameter has no name: ${e.name}.`);else{const s=n[r]??((a=e.test_param)==null?void 0:a.value);for(const c of e.cases||[])if(c.value===s&&(n[r]=s,(l=c.inputs)!=null&&l.length))for(const d of c.inputs)n[d.name]=ud(d,n[d.name])}return n}function fd(e,t){const n=t||{};return e==null||e.forEach(r=>{r.type==="conditional"?n[r.name]=C1(r,n[r.name]):n[r.name]=ud(r,n[r.name])}),n}function S1(e,t){const n=t||[];return e&&(n.length===0&&n.push({}),n.forEach((r,i)=>{n[i]=fd(e,r)})),n}function $1(){var s;const e=document.getElementById("app"),t=JSON.parse((e==null?void 0:e.getAttribute("data-incoming"))||"{}")||{},n=t.root||"/",r=t.visualization_id||null,i=t.visualization_plugin,a=t.visualization_title||"Unnamed Visualization";let l=t.visualization_config||{};if((s=t.visualization_config)!=null&&s.chart_dict){const c=t.visualization_config.chart_dict;l.groups=c.groups,l.settings=c.settings,delete l.chart_dict}return{root:n,visualizationConfig:l,visualizationId:r,visualizationPlugin:i,visualizationTitle:a}}const T1={key:1,class:"m-2"},k1=o.createElementVNode("span",{class:"text-xs"},"Please wait...",-1),R1={key:0},P1=o.defineComponent({__name:"GalaxyCharts",props:{credentials:{},xml:{}},setup(e){const t=e,n=o.ref(!1),r=o.ref(""),i=o.ref(""),a=o.ref(""),l=o.ref(""),s=o.ref(!0),c=o.ref(""),d=o.ref(""),u=o.ref([]),f=o.ref({}),p=o.ref({}),b=o.ref([]),h=o.ref([]),{root:x,visualizationConfig:v,visualizationId:g,visualizationPlugin:k,visualizationTitle:z}=$1(),$=ka();$.setCredentials(t.credentials||"include"),$.setRoot(x||"/"),w1(t.xml,k,v).then(({plugin:A,settings:L,specs:U,tracks:J})=>{i.value=A.description||"",l.value=A.html||"",s.value=!1,c.value=A.logo||"",d.value=A.name,u.value=A.settings||[],f.value=L,p.value=U||{},b.value=A.tracks||[],h.value=J});const T=v.dataset_id||"";v.dataset_url?(r.value=v.dataset_url,console.debug(`GalaxyCharts: Evaluating dataset url: ${r.value}.`)):T?(r.value=pd(T),console.debug(`GalaxyCharts: Built dataset url from dataset id: ${r.value}.`)):a.value="Visualization requires `dataset_id` or `dataset_url`.";const O=o.computed(()=>c.value&&`${x}${c.value}`),m=o.computed(()=>u.value.length===0&&b.value.length===0);async function S(){n.value=!n.value,await o.nextTick(),window.dispatchEvent(new Event("resize"))}function M(A){f.value={...A}}function N(A){h.value=[...A]}return(A,L)=>a.value?(o.openBlock(),o.createBlock(o.unref(rc),{key:0,title:"Visualization Error!",type:"error",class:"m-2"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(a.value),1)]),_:1})):s.value?(o.openBlock(),o.createElementBlock("div",T1,[o.createElementVNode("span",null,[o.createVNode(o.unref(gd),{class:"animate-spin size-4 inline mx-1"})]),k1])):(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["grid h-screen",{"grid-cols-[70%_30%]":!n.value&&!m.value}])},[o.renderSlot(A.$slots,"default",{datasetId:o.unref(T),datasetUrl:r.value,root:o.unref(x),settings:f.value,specs:p.value,tracks:h.value}),n.value&&!m.value?(o.openBlock(),o.createElementBlock("div",R1,[o.createVNode(o.unref(Wx),{strong:"",secondary:"",circle:"",class:"bg-sky-100 m-2",top:0,right:0,onClick:S},{default:o.withCtx(()=>[o.createVNode(o.unref(Tt),null,{default:o.withCtx(()=>[o.createVNode(o.unref(vd))]),_:1})]),_:1})])):(o.openBlock(),o.createBlock(Yy,{key:1,"dataset-id":o.unref(T),description:i.value,html:l.value,"logo-url":O.value,name:d.value,"setting-inputs":u.value,"setting-values":f.value,"track-inputs":b.value,"track-values":h.value,"visualization-id":o.unref(g),"visualization-title":o.unref(z),"onUpdate:settings":M,"onUpdate:tracks":N,onToggle:S},null,8,["dataset-id","description","html","logo-url","name","setting-inputs","setting-values","track-inputs","track-values","visualization-id","visualization-title"]))],2))}});Ue.GalaxyApi=cn,Ue.GalaxyCharts=P1,Ue.useColumnsStore=bd,Object.defineProperty(Ue,Symbol.toStringTag,{value:"Module"})});
|