file-viewer-demo/public/dist/assets/PptxRender-5a3debe6.js

48 lines
408 KiB
JavaScript
Raw Normal View History

2024-01-30 00:54:29 +00:00
import{c as cf,g as lf,d as uf,r as ff,o as df,a as hf,b as gf,_ as pf}from"./index-be50c070.js";import{r as vf}from"./worker-ref-b3abaee8.js";var Rc={exports:{}};/*!
* jQuery JavaScript Library v3.7.1
* https://jquery.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2023-08-28T13:37Z
*/(function(t){(function(e,n){t.exports=e.document?n(e,!0):function(i){if(!i.document)throw new Error("jQuery requires a window with a document");return n(i)}})(typeof window<"u"?window:cf,function(e,n){var i=[],r=Object.getPrototypeOf,a=i.slice,o=i.flat?function(c){return i.flat.call(c)}:function(c){return i.concat.apply([],c)},s=i.push,l=i.indexOf,u={},d=u.toString,h=u.hasOwnProperty,g=h.toString,x=g.call(Object),_={},T=function(f){return typeof f=="function"&&typeof f.nodeType!="number"&&typeof f.item!="function"},A=function(f){return f!=null&&f===f.window},$=e.document,S={type:!0,src:!0,nonce:!0,noModule:!0};function M(c,f,v){v=v||$;var y,m,b=v.createElement("script");if(b.text=c,f)for(y in S)m=f[y]||f.getAttribute&&f.getAttribute(y),m&&b.setAttribute(y,m);v.head.appendChild(b).parentNode.removeChild(b)}function k(c){return c==null?c+"":typeof c=="object"||typeof c=="function"?u[d.call(c)]||"object":typeof c}var P="3.7.1",D=/HTML$/i,p=function(c,f){return new p.fn.init(c,f)};p.fn=p.prototype={jquery:P,constructor:p,length:0,toArray:function(){return a.call(this)},get:function(c){return c==null?a.call(this):c<0?this[c+this.length]:this[c]},pushStack:function(c){var f=p.merge(this.constructor(),c);return f.prevObject=this,f},each:function(c){return p.each(this,c)},map:function(c){return this.pushStack(p.map(this,function(f,v){return c.call(f,v,f)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(p.grep(this,function(c,f){return(f+1)%2}))},odd:function(){return this.pushStack(p.grep(this,function(c,f){return f%2}))},eq:function(c){var f=this.length,v=+c+(c<0?f:0);return this.pushStack(v>=0&&v<f?[this[v]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:i.sort,splice:i.splice},p.extend=p.fn.extend=function(){var c,f,v,y,m,b,w=arguments[0]||{},R=1,E=arguments.length,I=!1;for(typeof w=="boolean"&&(I=w,w=arguments[R]||{},R++),typeof w!="object"&&!T(w)&&(w={}),R===E&&(w=this,R--);R<E;R++)if((c=arguments[R])!=null)for(f in c)y=c[f],!(f==="__proto__"||w===y)&&(I&&y&&(p.isPlainObject(y)||(m=Array.isArray(y)))?(v=w[f],m&&!Array.isArray(v)?b=[]:!m&&!p.isPlainObject(v)?b={}:b=v,m=!1,w[f]=p.extend(I,b,y)):y!==void 0&&(w[f]=y));return w},p.extend({expando:"jQuery"+(P+Math.random()).replace(/\D/g,""),isReady:!0,error:function(c){throw new Error(c)},noop:function(){},isPlainObject:function(c){var f,v;return!c||d.call(c)!=="[object Object]"?!1:(f=r(c),f?(v=h.call(f,"constructor")&&f.constructor,typeof v=="function"&&g.call(v)===x):!0)},isEmptyObject:function(c){var f;for(f in c)return!1;return!0},globalEval:function(c,f,v){M(c,{nonce:f&&f.nonce},v)},each:function(c,f){var v,y=0;if(j(c))for(v=c.length;y<v&&f.call(c[y],y,c[y])!==!1;y++);else for(y in c)if(f.call(c[y],y,c[y])===!1)break;return c},text:function(c){var f,v="",y=0,m=c.nodeType;if(!m)for(;f=c[y++];)v+=p.text(f);return m===1||m===11?c.textContent:m===9?c.documentElement.textContent:m===3||m===4?c.nodeValue:v},makeArray:function(c,f){var v=f||[];return c!=null&&(j(Object(c))?p.merge(v,typeof c=="string"?[c]:c):s.call(v,c)),v},inArray:function(c,f,v){return f==null?-1:l.call(f,c,v)},isXMLDoc:function(c){var f=c&&c.namespaceURI,v=c&&(c.ownerDocument||c).documentElement;return!D.test(f||v&&v.nodeName||"HTML")},merge:function(c,f){for(var v=+f.length,y=0,m=c.length;y<v;y++)c[m++]=f[y];return c.length=m,c},grep:function(c,f,v){for(var y,m=[],b=0,w=c.length,R=!v;b<w;b++)y=!f(c[b],b),y!==R&&m.push(c[b]);return m},map:function(c,f,v){var y,m,b=0,w=[];if(j(c))for(y=c.length;b<y;b++)m=f(c[b],b,v),m!=null&&w.push(m);else for(b in c)m=f(c[b],b,v),m!=null&&w.push(m);return o(w)},guid:1,support:_}),typeof Symbol=="function"&&(p.fn[Symbol.iterator]=i[Symbol.iterator]),p.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(c,f){u["[object "+f+"]"]=f.toLowerCase()});function j(c){var f=!!c&&"length"in c&&c.length,v=k(c);return T(c)||A(c)?!1:v==="array"||f===0||typeof f=="number"&&f>0&&f-1 in c}fun
`):c)),f};var ss=/^(?:focusinfocus|focusoutblur)$/,cs=function(c){c.stopPropagation()};p.extend(p.event,{trigger:function(c,f,v,y){var m,b,w,R,E,I,B,Y,O=[v||$],W=h.call(c,"type")?c.type:c,ut=h.call(c,"namespace")?c.namespace.split("."):[];if(b=Y=w=v=v||$,!(v.nodeType===3||v.nodeType===8)&&!ss.test(W+p.event.triggered)&&(W.indexOf(".")>-1&&(ut=W.split("."),W=ut.shift(),ut.sort()),E=W.indexOf(":")<0&&"on"+W,c=c[p.expando]?c:new p.Event(W,typeof c=="object"&&c),c.isTrigger=y?2:3,c.namespace=ut.join("."),c.rnamespace=c.namespace?new RegExp("(^|\\.)"+ut.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c.result=void 0,c.target||(c.target=v),f=f==null?[c]:p.makeArray(f,[c]),B=p.event.special[W]||{},!(!y&&B.trigger&&B.trigger.apply(v,f)===!1))){if(!y&&!B.noBubble&&!A(v)){for(R=B.delegateType||W,ss.test(R+W)||(b=b.parentNode);b;b=b.parentNode)O.push(b),w=b;w===(v.ownerDocument||$)&&O.push(w.defaultView||w.parentWindow||e)}for(m=0;(b=O[m++])&&!c.isPropagationStopped();)Y=b,c.type=m>1?R:B.bindType||W,I=(at.get(b,"events")||Object.create(null))[c.type]&&at.get(b,"handle"),I&&I.apply(b,f),I=E&&b[E],I&&I.apply&&fi(b)&&(c.result=I.apply(b,f),c.result===!1&&c.preventDefault());return c.type=W,!y&&!c.isDefaultPrevented()&&(!B._default||B._default.apply(O.pop(),f)===!1)&&fi(v)&&E&&T(v[W])&&!A(v)&&(w=v[E],w&&(v[E]=null),p.event.triggered=W,c.isPropagationStopped()&&Y.addEventListener(W,cs),v[W](),c.isPropagationStopped()&&Y.removeEventListener(W,cs),p.event.triggered=void 0,w&&(v[E]=w)),c.result}},simulate:function(c,f,v){var y=p.extend(new p.Event,v,{type:c,isSimulated:!0});p.event.trigger(y,null,f)}}),p.fn.extend({trigger:function(c,f){return this.each(function(){p.event.trigger(c,f,this)})},triggerHandler:function(c,f){var v=this[0];if(v)return p.event.trigger(c,f,v,!0)}});var Fu=/\[\]$/,ls=/\r?\n/g,Bu=/^(?:submit|button|image|reset|file)$/i,Xu=/^(?:input|select|textarea|keygen)/i;function ia(c,f,v,y){var m;if(Array.isArray(f))p.each(f,function(b,w){v||Fu.test(c)?y(c,w):ia(c+"["+(typeof w=="object"&&w!=null?b:"")+"]",w,v,y)});else if(!v&&k(f)==="object")for(m in f)ia(c+"["+m+"]",f[m],v,y);else y(c,f)}p.param=function(c,f){var v,y=[],m=function(b,w){var R=T(w)?w():w;y[y.length]=encodeURIComponent(b)+"="+encodeURIComponent(R??"")};if(c==null)return"";if(Array.isArray(c)||c.jquery&&!p.isPlainObject(c))p.each(c,function(){m(this.name,this.value)});else for(v in c)ia(v,c[v],f,m);return y.join("&")},p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var c=p.prop(this,"elements");return c?p.makeArray(c):this}).filter(function(){var c=this.type;return this.name&&!p(this).is(":disabled")&&Xu.test(this.nodeName)&&!Bu.test(c)&&(this.checked||!gi.test(c))}).map(function(c,f){var v=p(this).val();return v==null?null:Array.isArray(v)?p.map(v,function(y){return{name:f.name,value:y.replace(ls,`\r
`)}}):{name:f.name,value:v.replace(ls,`\r
`)}}).get()}});var zu=/%20/g,Hu=/#.*$/,Yu=/([?&])_=[^&]*/,Uu=/^(.*?):[ \t]*([^\r\n]*)$/mg,Vu=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ju=/^(?:GET|HEAD)$/,Gu=/^\/\//,us={},ra={},fs="*/".concat("*"),aa=$.createElement("a");aa.href=xi.href;function ds(c){return function(f,v){typeof f!="string"&&(v=f,f="*");var y,m=0,b=f.toLowerCase().match(ot)||[];if(T(v))for(;y=b[m++];)y[0]==="+"?(y=y.slice(1)||"*",(c[y]=c[y]||[]).unshift(v)):(c[y]=c[y]||[]).push(v)}}function hs(c,f,v,y){var m={},b=c===ra;function w(R){var E;return m[R]=!0,p.each(c[R]||[],function(I,B){var Y=B(f,v,y);if(typeof Y=="string"&&!b&&!m[Y])return f.dataTypes.unshift(Y),w(Y),!1;if(b)return!(E=Y)}),E}return w(f.dataTypes[0])||!m["*"]&&w("*")}function oa(c,f){var v,y,m=p.ajaxSettings.flatOptions||{};for(v in f)f[v]!==void 0&&((m[v]?c:y||(y={}))[v]=f[v]);return y&&p.extend(!0,c,y),c}function Wu(c,f,v){for(var y,m,b,w,R=c.contents,E=c.dataTypes;E[0]==="*";)E.shift(),y===void 0&&(y=c.mimeType||f.getResponseHeader("Content-Type"));if(y){for(m in R)if(R[m]&&R[m].test(y)){E.unshift(m);break}}if(E[0]in v)b=E[0];else{for(m in v){if(!E[0]||c.converters[m+" "+E[0]]){b=m;break}w||(w=m)}b=b||w}if(b)return b!==E[0]&&E.unshift(b),v[b]}function qu(c,f,v,y){var m,b,w,R,E,I={},B=c.dataTypes.slice();if(B[1])for(w in c.converters)I[w.toLowerCase()]=c.converters[w];for(b=B.shift();b;)if(c.responseFields[b]&&(v[c.responseFields[b]]=f),!E&&y&&c.dataFilter&&(f=c.dataFilter(f,c.dataType)),E=b,b=B.shift(),b){if(b==="*")b=E;else if(E!=="*"&&E!==b){if(w=I[E+" "+b]||I["* "+b],!w){for(m in I)if(R=m.split(" "),R[1]===b&&(w=I[E+" "+R[0]]||I["* "+R[0]],w)){w===!0?w=I[m]:I[m]!==!0&&(b=R[0],B.unshift(R[1]));break}}if(w!==!0)if(w&&c.throws)f=w(f);else try{f=w(f)}catch(Y){return{state:"parsererror",error:w?Y:"No conversion from "+E+" to "+b}}}}return{state:"success",data:f}}p.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xi.href,type:"GET",isLocal:Vu.test(xi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":fs,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":p.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(c,f){return f?oa(oa(c,p.ajaxSettings),f):oa(p.ajaxSettings,c)},ajaxPrefilter:ds(us),ajaxTransport:ds(ra),ajax:function(c,f){typeof c=="object"&&(f=c,c=void 0),f=f||{};var v,y,m,b,w,R,E,I,B,Y,O=p.ajaxSetup({},f),W=O.context||O,ut=O.context&&(W.nodeType||W.jquery)?p(W):p.event,wt=p.Deferred(),gt=p.Callbacks("once memory"),se=O.statusCode||{},Kt={},ze={},He="canceled",bt={readyState:0,getResponseHeader:function(At){var Vt;if(E){if(!b)for(b={};Vt=Uu.exec(m);)b[Vt[1].toLowerCase()+" "]=(b[Vt[1].toLowerCase()+" "]||[]).concat(Vt[2]);Vt=b[At.toLowerCase()+" "]}return Vt==null?null:Vt.join(", ")},getAllResponseHeaders:function(){return E?m:null},setRequestHeader:function(At,Vt){return E==null&&(At=ze[At.toLowerCase()]=ze[At.toLowerCase()]||At,Kt[At]=Vt),this},overrideMimeType:function(At){return E==null&&(O.mimeType=At),this},statusCode:function(At){var Vt;if(At)if(E)bt.always(At[bt.status]);else for(Vt in At)se[Vt]=[se[Vt],At[Vt]];return this},abort:function(At){var Vt=At||He;return v&&v.abort(Vt),An(0,Vt),this}};if(wt.promise(bt),O.url=((c||O.url||xi.href)+"").replace(Gu,xi.protocol+"//"),O.type=f.method||f.type||O.method||O.type,O.dataTypes=(O.dataType||"*").toLowerCase().match(ot)||[""],O.crossDomain==null){R=$.createElement("a");try{R.href=O.url,R.href=R.href,O.crossDomain=aa.protocol+"//"+aa.host!=R.protocol+"//"+R.host}catch{O.crossDomain=!0}}if(O.data&&O.processData&&typeof O.data!="string"&&(O.data=p.param(O.data,O.traditional)),hs(us,O,f,bt),E)return bt;I=p.event&&O.global,I&&p.active++===0&&p.event.trigger("ajaxStart"),O.type=O.type.toUpperCase(),O.hasContent=!ju.test(O.type),y=O.url.replace(Hu,""),O.hasContent?O.data&
\r]`),n=t.charCodeAt(0);function i(h,g){var x,_,T=r(h,function(A,$){if(x)return x(A,$-1);_=A,x=g?yp(A,g):al(A)});return T.columns=_||[],T}function r(h,g){var x=[],_=h.length,T=0,A=0,$,S=_<=0,M=!1;h.charCodeAt(_-1)===wi&&--_,h.charCodeAt(_-1)===ma&&--_;function k(){if(S)return ya;if(M)return M=!1,Os;var D,p=T,j;if(h.charCodeAt(p)===_a){for(;T++<_&&h.charCodeAt(T)!==_a||h.charCodeAt(++T)===_a;);return(D=T)>=_?S=!0:(j=h.charCodeAt(T++))===wi?M=!0:j===ma&&(M=!0,h.charCodeAt(T)===wi&&++T),h.slice(p+1,D-1).replace(/""/g,'"')}for(;T<_;){if((j=h.charCodeAt(D=T++))===wi)M=!0;else if(j===ma)M=!0,h.charCodeAt(T)===wi&&++T;else if(j!==n)continue;return h.slice(p,D)}return S=!0,h.slice(p,_)}for(;($=k())!==ya;){for(var P=[];$!==Os&&$!==ya;)P.push($),$=k();g&&(P=g(P,A++))==null||x.push(P)}return x}function a(h,g){return h.map(function(x){return g.map(function(_){return d(x[_])}).join(t)})}function o(h,g){return g==null&&(g=Fs(h)),[g.map(d).join(t)].concat(a(h,g)).join(`
`)}function s(h,g){return g==null&&(g=Fs(h)),a(h,g).join(`
`)}function l(h){return h.map(u).join(`
`)}function u(h){return h.map(d).join(t)}function d(h){return h==null?"":h instanceof Date?mp(h):e.test(h+="")?'"'+h.replace(/"/g,'""')+'"':h}return{parse:i,parseRows:r,format:o,formatBody:s,formatRows:l,formatRow:u,formatValue:d}}var sl=ol(","),bp=sl.parse,Tp=sl.parseRows,cl=ol(" "),wp=cl.parse,$p=cl.parseRows;function Ap(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function $r(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function ii(t){return t=$r(Math.abs(t)),t?t[1]:NaN}function Cp(t,e){return function(n,i){for(var r=n.length,a=[],o=0,s=t[0],l=0;r>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),a.push(n.substring(r-=s,r+s)),!((l+=s+1)>i));)s=t[o=(o+1)%t.length];return a.reverse().join(e)}}function Sp(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var kp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pi(t){if(!(e=kp.exec(t)))throw new Error("invalid format: "+t);var e;return new vo({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Pi.prototype=vo.prototype;function vo(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}vo.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Ep(t){t:for(var e=t.length,n=1,i=-1,r;n<e;++n)switch(t[n]){case".":i=r=n;break;case"0":i===0&&(i=n),r=n;break;default:if(!+t[n])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(r+1):t}var ll;function Rp(t,e){var n=$r(t,e);if(!n)return t+"";var i=n[0],r=n[1],a=r-(ll=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+$r(t,Math.max(0,e+a-1))[0]}function Bs(t,e){var n=$r(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const Xs={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Ap,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Bs(t*100,e),r:Bs,s:Rp,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function zs(t){return t}var Hs=Array.prototype.map,Ys=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Mp(t){var e=t.grouping===void 0||t.thousands===void 0?zs:Cp(Hs.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",r=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?zs:Sp(Hs.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function u(h){h=Pi(h);var g=h.fill,x=h.align,_=h.sign,T=h.symbol,A=h.zero,$=h.width,S=h.comma,M=h.precision,k=h.trim,P=h.type;P==="n"?(S=!0,P="g"):Xs[P]||(M===void 0&&(M=12),k=!0,P="g"),(A||g==="0"&&x==="=")&&(A=!0,g="0",x="=");var D=T==="$"?n:T==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",p=T==="$"?i:/[%p]/.test(P)?o:"",j=Xs[P],U=/[defgprs%]/.test(P);M=M===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M));function G(X){var Q=D,z=p,q,Mt,it;if(P==="c")z=j(X)+z,X="";else{X=+X;var K=X<0||1/X<0;if(X=isNaN(X)?l:j(Math.abs(X),M),k&&(X=Ep(X)),K&&+X==0&&_!=="+"&&(K=!1),Q=(K?_==="("?_:s:_==="-"||_==="("?"":_)+Q,z=(P==="s"?Ys[8+ll/3]:"")+z+(K&&_==="("?")":"")
* Copyright (c) 2017 ~ present NAVER Corp.
* billboard.js project is licensed under the MIT license
*
* billboard.js, JavaScript chart library
* https://naver.github.io/billboard.js/
*
* @version 3.10.3
*/function Hx(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function Yx(t){var e=typeof(t==null?void 0:t.requestAnimationFrame)=="function"&&typeof(t==null?void 0:t.cancelAnimationFrame)=="function",n=typeof(t==null?void 0:t.requestIdleCallback)=="function"&&typeof(t==null?void 0:t.cancelIdleCallback)=="function",i=function(a){return setTimeout(a,1)},r=function(a){return clearTimeout(a)};return[e?t.requestAnimationFrame:i,e?t.cancelAnimationFrame:r,n?t.requestIdleCallback:i,n?t.cancelIdleCallback:r]}var It=Hx(),zt=It==null?void 0:It.document,Bl=Yx(It),Ux=Bl[0],Xl=Bl[2],_t={AREA:"area",AREA_LINE_RANGE:"area-line-range",AREA_SPLINE:"area-spline",AREA_SPLINE_RANGE:"area-spline-range",AREA_STEP:"area-step",BAR:"bar",BUBBLE:"bubble",CANDLESTICK:"candlestick",DONUT:"donut",GAUGE:"gauge",LINE:"line",PIE:"pie",POLAR:"polar",RADAR:"radar",SCATTER:"scatter",SPLINE:"spline",STEP:"step",TREEMAP:"treemap"},ka={AREA:"initArea",AREA_LINE_RANGE:"initArea",AREA_SPLINE:"initArea",AREA_SPLINE_RANGE:"initArea",AREA_STEP:"initArea",BAR:"initBar",BUBBLE:"initCircle",CANDLESTICK:"initCandlestick",DONUT:"initArc",GAUGE:"initArc",LINE:"initLine",PIE:"initArc",POLAR:"initPolar",RADAR:"initCircle",SCATTER:"initCircle",SPLINE:"initLine",STEP:"initLine",TREEMAP:"initTreemap"},xn={Area:[_t.AREA,_t.AREA_SPLINE,_t.AREA_SPLINE_RANGE,_t.AREA_LINE_RANGE,_t.AREA_STEP],AreaRange:[_t.AREA_SPLINE_RANGE,_t.AREA_LINE_RANGE],Arc:[_t.PIE,_t.DONUT,_t.GAUGE,_t.POLAR,_t.RADAR],Line:[_t.LINE,_t.SPLINE,_t.AREA,_t.AREA_SPLINE,_t.AREA_SPLINE_RANGE,_t.AREA_LINE_RANGE,_t.STEP,_t.AREA_STEP],Step:[_t.STEP,_t.AREA_STEP],Spline:[_t.SPLINE,_t.AREA_SPLINE,_t.AREA_SPLINE_RANGE]},mt=function(){return mt=Object.assign||function(e){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},mt.apply(this,arguments)};function qt(t,e,n){if(n||arguments.length===2)for(var i=0,r=e.length,a;i<r;i++)(a||!(i in e))&&(a||(a=Array.prototype.slice.call(e,0,i)),a[i]=e[i]);return t.concat(a||Array.prototype.slice.call(e))}var $t=function(t){return t||t===0},pt=function(t){return typeof t=="function"},Pt=function(t){return typeof t=="string"},ht=function(t){return typeof t=="number"},ee=function(t){return typeof t>"u"},Ft=function(t){return typeof t<"u"},zl=function(t){return typeof t=="boolean"},Vx=function(t){return Math.ceil(t/10)*10},Si=function(t){return Math.ceil(t)+.5},Mi=function(t){return t[1]-t[0]},Ke=function(t){return typeof t=="object"},Qe=function(t){return ee(t)||t===null||Pt(t)&&t.length===0||Ke(t)&&!(t instanceof Date)&&Object.keys(t).length===0||ht(t)&&isNaN(t)},Wt=function(t){return!Qe(t)},Dt=function(t){return Array.isArray(t)},Bt=function(t){return t&&!(t!=null&&t.nodeType)&&Ke(t)&&!Dt(t)};function mn(t,e,n){return Ft(t[e])?t[e]:n}function jx(t,e){var n=!1;return Object.keys(t).forEach(function(i){return t[i]===e&&(n=!0)}),n}function Gt(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=pt(t);return r&&t.call.apply(t,qt([e],n,!1)),r}function Dr(t,e){var n=0,i=function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];!--n&&e.apply.apply(e,qt([this],r,!1))};"duration"in t?t.each(function(){return++n}).on("end",i):(++n,t.call(i))}function Ea(t){return Pt(t)?t.replace(/<(script|img)?/ig,"&lt;").replace(/(script)?>/ig,"&gt;"):t}function Ir(t,e,n,i){if(n===void 0&&(n=[-1,1]),i===void 0&&(i=!1),!(!t||!Pt(e)))if(e.indexOf(`
`)===-1)t.text(e);else{var r=[t.text(),e].map(function(s){return s.replace(/[\s\n]/g,"")});if(r[0]!==r[1]){var a=e.split(`
`),o=i?a.length-1:1;t.html(""),a.forEach(function(s,l){t.append("tspan").attr("x",0).attr("dy","".concat(l===0?n[0]*o:n[1],"em")).text(s)})}}}function Hl(t){var e=t.getBBox(),n=e.x,i=e.y,r=e.width,a=e.height;return[{x:n,y:i+a},{x:n,y:i},{x:n+r,y:i},{x:n+r,y:i+a}]}function Gx(t){var e=t.getBoundingClientRect(),n=e.width,i=e.height,r=Hl(t),a=r[0].x,o=Math.min(r[0].y,r[1].y);return{x:a,y:o,width:n,height:i}}function cn(t,e){var n,i=t&&((n=t.touches||t.sourceEvent&&t.sourceEvent.touches)===null||n===void 0?void 0:n[0]),r=[0,0];try{r=za(i||t,e)}catch{}return r.map(function(a){return isNaN(a)?0:a})}function Yl(t){var e=t.event,n=t.$el,i=n.subchart.main||n.main,r;return e&&e.type==="brush"?r=e.selection:i&&(r=i.select(".bb-brush").node())&&(r=gp(r)),r}function gr(t){var e=!("rect"in t)||"rect"in t&&t.hasAttribute("width")&&t.rect.width!==+t.getAttribute("width");return e?t.rect=t.getBoundingClientRect():t.rect}function Fn(t,e,n){t===void 0&&(t=!0),e===void 0&&(e=0),n===void 0&&(n=1e4);var i=It.crypto||It.msCrypto,r=i?e+i.getRandomValues(new Uint32Array(1))[0]%(n-e+1):Math.floor(Math.random()*(n-e)+e);return t?String(r):r}function Qa(t,e,n,i,r){if(n>i)return-1;var a=Math.floor((n+i)/2),o=t[a],s=o.x,l=o.w,u=l===void 0?0:l;return r&&(s=t[a].y,u=t[a].h),e>=s&&e<=s+u?a:e<s?Qa(t,e,n,a-1,r):Qa(t,e,a+1,i,r)}function Wx(t){var e=Yl(t);return e?e[0]===e[1]:!0}function qx(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=function(i){if(Bt(i)&&i.constructor){var r=new i.constructor;for(var a in i)r[a]=n(i[a]);return r}return i};return t.map(function(i){return n(i)}).reduce(function(i,r){return mt(mt({},i),r)})}function Me(t,e){t===void 0&&(t={}),Dt(e)&&e.forEach(function(i){return Me(t,i)});for(var n in e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}var hn=function(t){return t.charAt(0).toUpperCase()+t.slice(1)};function Zx(t,e){return e===void 0&&(e="-"),t.split(e).map(function(n,i){return i?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}).join("")}var oi=function(t){return[].slice.call(t)};function Kx(t,e,n){var i=t.rootSelctor,r=t.sheet,a=function(s){return s.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,".")},o="".concat(i," ").concat(a(e)," {").concat(n.join(";"),"}");return r[r.insertRule?"insertRule":"addRule"](o,r.cssRules.length)}function Qx(t){var e=[];return t.forEach(function(n){var i;try{n.cssRules&&n.cssRules.length&&(e=e.concat(oi(n.cssRules)))}catch(r){(i=It.console)===null||i===void 0||i.warn("Error while reading rules from ".concat(n.href,": ").concat(r.toString()))}}),e}function pc(t){var e=t?t.transform:null,n=e&&e.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Ja(t){var e=t[0]instanceof Date,n=(e?t.map(Number):t).filter(function(i,r,a){return a.indexOf(i)===r});return e?n.map(function(i){return new Date(i)}):n}function Ra(t){return t&&t.length?t.reduce(function(e,n){return e.concat(n)}):[]}function si(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!e.length||e.length===1&&!e[0])return t;var i=e.shift();return Bt(t)&&Bt(i)&&Object.keys(i).forEach(function(r){var a=i[r];Bt(a)?(!t[r]&&(t[r]={}),t[r]=si(t[r],a)):t[r]=Dt(a)?a.concat():a}),si.apply(void 0,qt([t],e,!1))}function ci(t,e){e===void 0&&(e=!0);var n;return t[0]instanceof Date?n=e?function(i,r){return i-r}:function(i,r){return r-i}:e&&!t.every(isNaN)?n=function(i,r){return i-r}:e||(n=function(i,r){return i>r&&-1||i<r&&1||i===r&&0}),t.concat().sort(n)}function yn(t,e){var n=e.filter(function(i){return Wt(i)});return n.length?ht(n[0])?n=Math[t].apply(Math,n):n[0]instanceof Date&&(n=ci(n,t==="min")[0]):n=void 0,n}var Jx={mouse:function(){var t=function(){return{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}};try{return new MouseEvent("t"),function(e,n,i){i===void 0&&(i=t()),e.dispatchEvent(new MouseEvent(n,i))}}catch{return function(n,i,r){r===void 0&&(r=t());var a=zt.createEvent("MouseEvent");a.initMouseEvent(i,r.bubbles,r.cancelable,It,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(a)}}}(),touch:function(t,e,n){var i=new To
self.onmessage=function({data}) {
const result = (`).concat(i,`).apply(null, data);
self.postMessage(result);
};`)],{type:"text/javascript"})),It.URL.createObjectURL(Ma[r])}function b0(t){var e=new It.Worker(t);return e.onerror=function(n){console.error?console.error(n):console.log(n)},e}function La(t,e,n,i){t===void 0&&(t=!0);var r=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];var u=e.apply(void 0,s);n(u)};if(It.Worker&&t){var a=m0(e,i),o=b0(a);r=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];o.postMessage(s),o.onmessage=function(u){return It.URL.revokeObjectURL(a),n(u.data)}}}return r}function io(t){var e=[];return t.forEach(function(n,i){var r=n[0];n.forEach(function(a,o){if(o>0){if(typeof e[o-1]>"u"&&(e[o-1]={}),typeof a>"u")throw new Error("Source data is missing a component at (".concat(i,", ").concat(o,")!"));e[o-1][r]=a}})}),e}function ro(t){var e=t[0],n=[];return t.forEach(function(i,r){if(r>0){var a={};i.forEach(function(o,s){if(typeof o>"u")throw new Error("Source data is missing a component at (".concat(r,", ").concat(s,")!"));a[e[s]]=o}),n.push(a)}}),n}function Wl(t,e){var n=[],i,r;if(Array.isArray(t)){var a=function(o,s){if(o[s]!==void 0)return o[s];var l=s.replace(/\[(\w+)\]/g,".$1"),u=l.replace(/^\./,"").split("."),d=o;return u.some(function(h){return!(d=d&&h in d?d[h]:void 0)}),d};e.x?i=e.value.concat(e.x):i=e.value,n.push(i),t.forEach(function(o){var s=i.map(function(l){var u=a(o,l);return typeof u>"u"&&(u=null),u});n.push(s)}),r=ro(n)}else Object.keys(t).forEach(function(o){var s,l=t[o].concat();(s=l.unshift)===null||s===void 0||s.call(l,o),n.push(l)}),r=io(n);return r}function T0(t,e,n,i,r){e===void 0&&(e="csv");var a=new XMLHttpRequest,o={csv:w0,tsv:$0,json:Wl};a.open("GET",t),n&&Object.keys(n).forEach(function(s){a.setRequestHeader(s,n[s])}),a.onreadystatechange=function(){if(a.readyState===4)if(a.status===200){var s=a.responseText;s&&r.call(this,o[e](e==="json"?JSON.parse(s):s,i))}else throw new Error("".concat(t,": Something went wrong loading!"))},a.send()}function ql(t,e){var n=t.rows(e),i;return n.length===1?(i=[{}],n[0].forEach(function(r){i[0][r]=null})):i=t.parse(e),i}function w0(t){return ql({rows:Tp,parse:bp},t)}function $0(t){return ql({rows:$p,parse:wp},t)}function xc(t,e){var n=t||(e==null?void 0:e.data_keys);return n!=null&&n.x&&(e.data_x=n.x),n}var A0={convertData:function(t,e){var n=this.config,i=n.boost_useWorker,r=t;if(t.bindto&&(r={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach(function(a){var o="data_".concat(a);o in t&&(r[a]=t[o])})),r.url&&e)T0(r.url,r.mimeType,r.headers,xc(r.keys,n),e);else if(r.json)La(i,Wl,e,[io,ro])(r.json,xc(r.keys,n));else if(r.rows)La(i,ro,e)(r.rows);else if(r.columns)La(i,io,e)(r.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.")},convertDataToTargets:function(t,e){var n=this,i=this,r=i.axis,a=i.config,o=i.state,s=a.data_type,l=!1,u=!1,d=!1;r&&(l=r.isCategorized(),u=r.isTimeSeries(),d=r.isCustomX());var h=Object.keys(t[0]||{}),g=h.length?h.filter(i.isNotX,i):[],x=h.length?h.filter(i.isX,i):[],_;g.forEach(function($){var S=n.getXKey($);d||u?x.indexOf(S)>=0?_=(e&&i.data.xs[$]||[]).concat(t.map(function(M){return M[S]}).filter($t).map(function(M,k){return i.generateTargetX(M,$,k)})):a.data_x?_=n.getOtherTargetXs():Wt(a.data_xs)&&(_=i.getXValuesOfXKey(S,i.data.targets)):_=t.map(function(M,k){return k}),_&&(n.data.xs[$]=_)}),g.forEach(function($){if(!n.data.xs[$])throw new Error('x is not defined for id = "'.concat($,'".'))});var T=g.map(function($,S){var M=a.data_idConverter.bind(i.api)($),k=i.getXKey($),P=d&&l,D=P&&t.map(function(U){return U.x}).every(function(U){return a.axis_x_categories.indexOf(U)>-1}),p=t.__append__,j=k===null&&p?i.api.data.values($).length:0;return{id:M,id_org:$,values:t.map(function(U,G){var X=U[k],Q=U[$],z;return Q=Q!==null&&!isNaN(Q)&&!Bt(Q)?+Q:Dt(Q)||Bt(Q)?Q:null,(P||o.hasRadar)&&S===0&&!ee(X)?(!D&&S===0&&G===0&&!p&&(a.axis_x_categories=[]),z=a.axis_x_categories.indexOf(X),z===-1&&(z=a.axis_x_categories.length,a.axis_x_categories.push(X))):z=i.generateTargetX(X,$,j+G),(ee(Q)||i.data.xs[$].length<=G)&&(z=void 0),{x:z,value:Q,id:
{=TITLE}
{{<tr class="{=CLASS_TOOLTIP_NAME}">
<td class="name">`.concat(this.patterns?"{=COLOR}":'<span style="background-color:{=COLOR}"></span>',`{=NAME}</td>
<td class="value">{=VALUE}</td>
</tr>}}
</tbody></table>`)).replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},setTooltipPosition:function(t,e){var n,i,r=this,a=r.config,o=r.scale,s=r.state,l=r.$el,u=l.eventRect,d=l.tooltip,h=a.tooltip_contents.bindto,g=a.axis_rotated,x=d==null?void 0:d.datum();if(!h&&x){var _=t??JSON.parse(x.current),T=cn(s.event,e??(u==null?void 0:u.node())),A=T[0],$=T[1],S={x:A,y:$};if(s.hasAxis&&o.x&&x&&"x"in x){var M=function(U,G,X){var Q;U===void 0&&(U=0),X===void 0&&(X="y");var z=o[G?(Q=r.axis)===null||Q===void 0?void 0:Q.getId(G):X];return z?z(U)+(g?s.margin.left:s.margin.top):0};S.xAxis=o.x(x.x)+(a.tooltip_position?g?s.margin.top:s.margin.left:0),_.length===1?S.yAxis=M(_[0].value,_[0].id):S.yAxis=M}var k=x.width,P=k===void 0?0:k,D=x.height,p=D===void 0?0:D,j=(i=(n=a.tooltip_position)===null||n===void 0?void 0:n.bind(r.api)(_,P,p,u==null?void 0:u.node(),S))!==null&&i!==void 0?i:r.getTooltipPosition.bind(r)(P,p,S);["top","left"].forEach(function(U){var G=j[U];d.style(U,"".concat(G,"px")),U==="left"&&!x.xPosInPercent&&(x.xPosInPercent=G/s.current.width*100)})}},getTooltipPosition:function(t,e,n){var i=this,r=i.config,a=i.scale,o=i.state,s=o.width,l=o.height,u=o.current,d=o.isLegendRight,h=o.inputType,g=i.hasType("gauge")&&!r.gauge_fullCircle,x=o.hasTreemap,_=r.axis_rotated,T=i.hasArcType(),A=i.getSvgLeft(!0),$=A+u.width-i.getCurrentPaddingByDirection("right"),S=20,M=n.x,k=n.y;if(T){var P=h==="touch"||i.hasType("radar");P||(M+=(s-(d?i.getLegendWidth():0))/2,k+=g?l:l/2)}else if(!x){var D={top:i.getCurrentPaddingByDirection("top",!0),left:i.getCurrentPaddingByDirection("left",!0)};_?(M+=A+D.left+S,k=D.top+n.xAxis+S,$-=A):(M=A+D.left+S+(a.zoom?M:n.xAxis),k+=D.top-5)}if(M+t+15>$&&(M-=t+(x||T?0:_?S*2:38)),k+e>u.height){var p=x?0:30;k-=g?e*3:e+p}var j={top:k,left:M};return Object.keys(j).forEach(function(U){j[U]<0&&(j[U]=0)}),j},showTooltip:function(t,e){var n=this,i=n.config,r=n.$el.tooltip,a=t.filter(function(h){return h&&$t(n.getBaseValue(h))});if(!(!r||a.length===0||!i.tooltip_show)){var o=r.datum(),s=JSON.stringify(t);if(!o||o.current!==s){var l=t.concat().sort()[0],u=l.index,d=l.x;Gt(i.tooltip_onshow,n.api,t),r.html(n.getTooltipHTML(t,n.axis?n.axis.getXAxisTickFormat():n.categoryName.bind(n),n.getDefaultValueFormat(),n.color)).style("display",null).style("visibility",null).datum(o={index:u,x:d,current:s,width:r.property("offsetWidth"),height:r.property("offsetHeight")}),Gt(i.tooltip_onshown,n.api,t),n._handleLinkedCharts(!0,u)}n.setTooltipPosition(a,e)}},bindTooltipResizePos:function(){var t=this,e=t.resizeFunction,n=t.state,i=t.$el.tooltip;e.add(function(){if(i.style("display")==="block"){var r=n.current,a=i.datum(),o=a.width,s=a.xPosInPercent,l=r.width/100*s,u=r.width-(l+o);u<0&&(l+=u),i.style("left","".concat(l,"px"))}})},hideTooltip:function(t){var e,n=this,i=n.api,r=n.config,a=n.$el.tooltip;if(a&&a.style("display")!=="none"&&(!r.tooltip_doNotHide||t)){var o=JSON.parse((e=a.datum().current)!==null&&e!==void 0?e:{});Gt(r.tooltip_onhide,i,o),a.style("display","none").style("visibility","hidden").datum(null),Gt(r.tooltip_onhidden,i,o)}},_handleLinkedCharts:function(t,e){var n=this,i=n.charts,r=n.config,a=n.state.event;if(a!=null&&a.isTrusted&&r.tooltip_linked&&i.length>1){var o=r.tooltip_linked_name;i.filter(function(s){return s!==n.api}).forEach(function(s){var l=s.internal,u=l.config,d=l.$el,h=u.tooltip_linked,g=u.tooltip_linked_name,x=zt.body.contains(d.chart.node());if(h&&o===g&&x){var _=d.tooltip.data()[0],T=e!==(_==null?void 0:_.index);try{s.tooltip[t&&T?"show":"hide"]({index:e})}catch{}}})}},updateTooltipOnRedraw:function(t,e){var n,i=this,r=i.config,a=i.$el,o=a.eventRect,s=a.svg,l=a.tooltip,u=i.state,d=u.event,h=u.hasAxis,g=u.hasRadar,x=u.hasTreemap;if((l==null?void 0:l.style("display"))==="block"&&d){var _=t??((n=g?s:o)===null||n===void 0?void 0:n.node());if(h||g)if(i.isMultipleX())i.selectRectForMultipleXs(_,!1);else{var T=e??i.getDataIndexFromEvent(d);e===-1?i.api.tooltip.hide():(i.selectRectForSingle(_,T),i.setExpand(T,null,!0))}else{var A=d.clientX,$=d.clientY;setTimeout(function(){var S=zt.elementFromPoint(A,$),M=lt(S).datum(
`)));var h=o.serializeToString(d),g='<svg xmlns="'.concat(ti.svg,'" width="').concat(r,'" height="').concat(a,`"
viewBox="0 0 `).concat(n.width," ").concat(n.height,`"
preserveAspectRatio="`).concat((e==null?void 0:e.preserveAspectRatio)===!1?"none":"xMinYMid meet",`">
<foreignObject width="100%" height="100%">
`).concat(h,`
`).concat(u.replace(/(url\()[^#]+/g,"$1"),`
</foreignObject></svg>`);return"data:image/svg+xml;base64,".concat(ey(g))}function iy(t,e){var n=e.top,i=e.left,r=t.getBBox(),a=r.x,o=r.y,s=t.getScreenCTM(),l=s.a,u=s.b,d=s.c,h=s.d,g=s.e,x=s.f,_=t.getBoundingClientRect(),T=_.width,A=_.height;return{x:l*a+d*o+g-i,y:u*a+h*o+x-n+(A-Math.round(A/4)),width:T,height:A}}function ry(t){var e=t.getBoundingClientRect(),n=e.left,i=e.top,r=function(o){return o.textContent||o.childElementCount},a=[];return oi(t.querySelectorAll("text")).filter(r).forEach(function(o){var s=function(u){var d,h=It.getComputedStyle(u),g=h.fill,x=h.fontFamily,_=h.fontSize,T=h.textAnchor,A=h.transform,$=iy(u,{left:n,top:i}),S=$.x,M=$.y,k=$.width,P=$.height;return d={},d[u.textContent]={x:S,y:M,width:k,height:P,fill:g,fontFamily:x,fontSize:_,textAnchor:T,transform:A},d};if(o.childElementCount>1){var l=[];return oi(o.querySelectorAll("tspan")).filter(r).forEach(function(u){a.push(s(u))}),l}else a.push(s(o))}),a}function ay(t,e){e.forEach(function(n){Object.keys(n).forEach(function(i){var r=n[i],a=r.x,o=r.y,s=r.width,l=r.height,u=r.fill,d=r.fontFamily,h=r.fontSize,g=r.transform;if(t.save(),t.font="".concat(h," ").concat(d),t.fillStyle=u,g==="none")t.fillText(i,a,o);else{var x=g.replace(/(matrix|\(|\))/g,"").split(",");x.splice(4).every(function(_){return+_==0})?(x.push(a+s-s/4),x.push(o-l+l/3)):(x.push(a),x.push(o)),t.transform.apply(t,x),t.fillText(i,0,0)}t.restore()})})}var oy={export:function(t,e){var n=this,i=this.internal,r=i.state,a=i.$el,o=a.chart,s=a.svg,l=r.current,u=l.width,d=l.height,h=si({width:u,height:d,preserveAspectRatio:!0,preserveFontStyle:!1,mimeType:"image/png"},t),g=ny(o.node(),h,{width:u,height:d}),x=h.preserveFontStyle?ry(s.node()):[];if(e&&pt(e)){var _=new Image;_.crossOrigin="Anonymous",_.onload=function(){var T=zt.createElement("canvas"),A=T.getContext("2d");T.width=h.width||u,T.height=h.height||d,A.drawImage(_,0,0),x.length&&(ay(A,x),x.length=0),e.bind(n)(T.toDataURL(h.mimeType))},_.src=g}return g}},sy={focus:function(t){var e=this.internal,n=e.state,i=e.mapToTargetIds(t),r=e.$el.svg.selectAll(e.selectorTargets(i.filter(e.isTargetToShow,e)));this.revert(),this.defocus(),r.classed(Xt.focused,!0).classed(Xt.defocused,!1),e.hasArcType()&&!n.hasRadar&&(e.expandArc(i),e.hasType("gauge")&&e.markOverlapped(t,e,".".concat(Ge.gaugeValue))),e.toggleFocusLegend(i,!0),n.focusedTargetIds=i,n.defocusedTargetIds=n.defocusedTargetIds.filter(function(a){return i.indexOf(a)<0})},defocus:function(t){var e=this.internal,n=e.state,i=e.mapToTargetIds(t),r=e.$el.svg.selectAll(e.selectorTargets(i.filter(e.isTargetToShow,e)));r.classed(Xt.focused,!1).classed(Xt.defocused,!0),e.hasArcType(null,["polar"])&&(e.unexpandArc(i),e.hasType("gauge")&&e.undoMarkOverlapped(e,".".concat(Ge.gaugeValue))),e.toggleFocusLegend(i,!1),n.focusedTargetIds=n.focusedTargetIds.filter(function(a){return i.indexOf(a)<0}),n.defocusedTargetIds=i},revert:function(t){var e=this.internal,n=e.config,i=e.state,r=e.$el,a=e.mapToTargetIds(t),o=r.svg.selectAll(e.selectorTargets(a));o.classed(Xt.focused,!1).classed(Xt.defocused,!1),e.hasArcType(null,["polar"])&&e.unexpandArc(a),n.legend_show&&(e.showLegend(a.filter(e.isLegendToShow.bind(e))),r.legend.selectAll(e.selectorLegends(a)).filter(function(){return lt(this).classed(Xt.legendItemFocused)}).classed(Xt.legendItemFocused,!1)),i.focusedTargetIds=[],i.defocusedTargetIds=[]}},cy={show:function(t){var e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},hide:function(t){var e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})}},ly={legend:cy},uy={load:function(t){var e=this.internal,n=e.config;t.xs&&e.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEach(function(i){n.data_classes[i]=t.classes[i]}),"categories"in t&&e.axis.isCategorized()&&(n.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach(function(i){n.data_axes[i]=t.axes[i]}),"colors"in t&&Object.keys(t.colors).forEach(function(i){n.data_colors[i]=t.colors[i]}),"unload"in t&&t.unload!==!1?e.unload(e.mapToTar
`)>-1?s.split(`
`):[];if(l.length)return l;if(Dt(s))return s;var u=o.tickWidth;(!u||u<=0)&&(u=r?95:o.isCategory?Math.ceil(o.isInverted?n(i[0])-n(i[1]):n(i[1])-n(i[0]))-12:110);function d(h,g){for(var x,_,T,A=1;A<g.length;A++)if(g.charAt(A)===" "&&(_=A),x=g.substr(0,A+1),T=a*x.length,u<T)return d(h.concat(g.substr(0,_||A)),g.slice(_?_+1:A));return h.concat(g)}return d(l,String(s))},t.prototype.scale=function(e){return arguments.length?(this.helper.scale=e,this):this.helper.scale},t.prototype.orient=function(e){return arguments.length?(this.config.orient=e in{top:1,right:1,bottom:1,left:1}?String(e):"bottom",this):this.config.orient},t.prototype.tickFormat=function(e){var n=this.config;return arguments.length?(n.tickFormat=e,this):n.tickFormat},t.prototype.tickCentered=function(e){var n=this.config;return arguments.length?(n.tickCentered=e,this):n.tickCentered},t.prototype.tickOffset=function(){return this.config.tickOffset},t.prototype.tickInterval=function(e){var n=this,i=this.config,r=i.outerTickSize,a=i.tickOffset,o=i.tickValues,s;if(this.params.isCategory)s=a*2;else{var l=this.g.select("path.domain").node().getTotalLength()-r*2;s=l/(e||this.g.selectAll("line").size());var u=o?o.map(function(d,h,g){var x=h+1;return x<g.length?n.helper.scale(g[x])-n.helper.scale(d):null}).filter(Boolean):[];s=Math.min.apply(Math,qt(qt([],u,!1),[s],!1))}return s===1/0?0:s},t.prototype.ticks=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this.config;return e.length?(i.tickArguments=oi(e),this):i.tickArguments},t.prototype.tickCulling=function(e){var n=this.config;return arguments.length?(n.tickCulling=e,this):n.tickCulling},t.prototype.tickValues=function(e){var n=this,i=this.config;if(pt(e))i.tickValues=function(){return e(n.helper.scale.domain())};else{if(!arguments.length)return i.tickValues;i.tickValues=e}return this},t.prototype.setTransition=function(e){return this.config.transition=e,this},t}(),wy={getAxisInstance:function(){return this.axis||new $y(this)}},$y=function(){function t(e){this.axesList={},this.tick={x:null,y:null,y2:null},this.xs=[],this.orient={x:"bottom",y:"left",y2:"right",subX:"bottom"},this.owner=e,this.setOrient()}return t.prototype.getAxisClassName=function(e){return"".concat(te.axis," ").concat(te["axis".concat(hn(e))])},t.prototype.isHorizontal=function(e,n){var i=e.config.axis_rotated;return n?i:!i},t.prototype.isCategorized=function(){var e=this.owner,n=e.config,i=e.state;return n.axis_x_type.indexOf("category")>=0||i.hasRadar},t.prototype.isCustomX=function(){var e=this.owner.config;return!this.isTimeSeries()&&(e.data_x||Wt(e.data_xs))},t.prototype.isTimeSeries=function(e){return e===void 0&&(e="x"),this.owner.config["axis_".concat(e,"_type")]==="timeseries"},t.prototype.isLog=function(e){return e===void 0&&(e="x"),this.owner.config["axis_".concat(e,"_type")]==="log"},t.prototype.isTimeSeriesY=function(){return this.isTimeSeries("y")},t.prototype.getAxisType=function(e){e===void 0&&(e="x");var n="linear";return this.isTimeSeries(e)?n=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(e)&&(n="log"),n},t.prototype.init=function(){var e=this,n=this.owner,i=n.config,r=n.$el,a=r.main,o=r.axis,s=n.state.clip,l=i.axis_rotated,u=["x","y"];i.axis_y2_show&&u.push("y2"),u.forEach(function(d){var h=e.getAxisClassName(d),g=te["axis".concat(d.toUpperCase(),"Label")];o[d]=a.append("g").attr("class",h).attr("clip-path",function(){var x=null;return d==="x"?x=s.pathXAxis:d==="y"&&(x=s.pathYAxis),x}).attr("transform",n.getTranslate(d)).style("visibility",i["axis_".concat(d,"_show")]?null:"hidden"),o[d].append("text").attr("class",g).attr("transform",["rotate(-90)",null][d==="x"?+!l:+l]).style("text-anchor",function(){return e.textAnchorForAxisLabel(d)}),e.generateAxes(d)})},t.prototype.setOrient=function(){var e=this.owner,n=e.config,i=n.axis_rotated,r=n.axis_y_inner,a=n.axis_y2_inner;this.orient={x:i?"left":"bottom",y:i?r?"top":"bottom":r?"right":"left",y2:i?a?"bottom":"top":a?"left":"right",subX:i?"left":"bottom"}},t.prototype.generateAxes=function(e){var n=this.owner,i=n.config,r=[],a=i["axis_".concat(