openc3-cosmos-tool-tlmgrapher 5.17.1 → 5.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/tlmgrapher/js/118.js +2 -0
- data/tools/tlmgrapher/js/118.js.map +1 -0
- data/tools/tlmgrapher/js/581.js +23 -0
- data/tools/tlmgrapher/js/581.js.map +1 -0
- data/tools/tlmgrapher/js/app.js +1 -1
- data/tools/tlmgrapher/js/app.js.map +1 -1
- metadata +6 -6
- data/tools/tlmgrapher/js/104.js +0 -23
- data/tools/tlmgrapher/js/104.js.map +0 -1
- data/tools/tlmgrapher/js/799.js +0 -2
- data/tools/tlmgrapher/js/799.js.map +0 -1
data/tools/tlmgrapher/js/104.js
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]=self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]||[]).push([[104],{7752:(t,e,i)=>{"use strict";i.d(e,{Be:()=>w,D$:()=>a});var n={logger:"undefined"!==typeof console?console:void 0,WebSocket:"undefined"!==typeof WebSocket?WebSocket:void 0},r={log(...t){this.enabled&&(t.push(Date.now()),n.logger.log("[ActionCable]",...t))}};const s=()=>(new Date).getTime(),o=t=>(s()-t)/1e3;class a{constructor(t){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=t,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=s(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),r.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=s(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),r.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=s()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,r.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=s(),r.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout((()=>{this.reconnectIfStale(),this.poll()}),this.getPollInterval())}getPollInterval(){const{staleThreshold:t,reconnectionBackoffRate:e}=this.constructor,i=Math.pow(1+e,Math.min(this.reconnectAttempts,10)),n=0===this.reconnectAttempts?1:e,r=n*Math.random();return 1e3*t*i*(1+r)}reconnectIfStale(){this.connectionIsStale()&&(r.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${o(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?r.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${o(this.disconnectedAt)} s`):(r.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return o(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&o(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){"visible"===document.visibilityState&&setTimeout((()=>{!this.connectionIsStale()&&this.connection.isOpen()||(r.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())}),200)}}a.staleThreshold=6,a.reconnectionBackoffRate=.15;var l={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:u,protocols:c}=l,h=c.slice(0,c.length-1),d=[].indexOf;class f{constructor(t){this.open=this.open.bind(this),this.consumer=t,this.subscriptions=this.consumer.subscriptions,this.monitor=new a(this),this.disconnected=!0}send(t){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(t)),!0)}open(){if(this.isActive())return r.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const t=[...c,...this.consumer.subprotocols||[]];return r.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${t}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new n.WebSocket(this.consumer.url,t),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:t}={allowReconnect:!0}){if(t||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(r.log(`Reopening WebSocket, current state is ${this.getState()}`),!this.isActive())return this.open();try{return this.close()}catch(t){r.log("Failed to reopen WebSocket",t)}finally{r.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return d.call(h,this.getProtocol())>=0}isState(...t){return d.call(t,this.getState())>=0}getState(){if(this.webSocket)for(let t in n.WebSocket)if(n.WebSocket[t]===this.webSocket.readyState)return t.toLowerCase();return null}installEventHandlers(){for(let t in this.events){const e=this.events[t].bind(this);this.webSocket[`on${t}`]=e}}uninstallEventHandlers(){for(let t in this.events)this.webSocket[`on${t}`]=function(){}}}f.reopenDelay=500,f.prototype.events={message(t){if(!this.isProtocolSupported())return;const{identifier:e,message:i,reason:n,reconnect:s,type:o}=JSON.parse(t.data);switch(o){case u.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case u.disconnect:return r.log(`Disconnecting. Reason: ${n}`),this.close({allowReconnect:s});case u.ping:return this.monitor.recordPing();case u.confirmation:return this.subscriptions.confirmSubscription(e),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(e,"connected",{reconnected:!0})):this.subscriptions.notify(e,"connected",{reconnected:!1});case u.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",i)}},open(){if(r.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return r.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(t){if(r.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){r.log("WebSocket onerror event")}};const p=function(t,e){if(null!=e)for(let i in e){const n=e[i];t[i]=n}return t};class m{constructor(t,e={},i){this.consumer=t,this.identifier=JSON.stringify(e),p(this,i)}perform(t,e={}){return e.action=t,this.send(e)}send(t){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(t)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class _{constructor(t){this.subscriptions=t,this.pendingSubscriptions=[]}guarantee(t){-1==this.pendingSubscriptions.indexOf(t)?(r.log(`SubscriptionGuarantor guaranteeing ${t.identifier}`),this.pendingSubscriptions.push(t)):r.log(`SubscriptionGuarantor already guaranteeing ${t.identifier}`),this.startGuaranteeing()}forget(t){r.log(`SubscriptionGuarantor forgetting ${t.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter((e=>e!==t))}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout((()=>{this.subscriptions&&"function"===typeof this.subscriptions.subscribe&&this.pendingSubscriptions.map((t=>{r.log(`SubscriptionGuarantor resubscribing ${t.identifier}`),this.subscriptions.subscribe(t)}))}),500)}}class g{constructor(t){this.consumer=t,this.guarantor=new _(this),this.subscriptions=[]}create(t,e){const i=t,n="object"===typeof i?i:{channel:i},r=new m(this.consumer,n,e);return this.add(r)}add(t){return this.subscriptions.push(t),this.consumer.ensureActiveConnection(),this.notify(t,"initialized"),this.subscribe(t),t}remove(t){return this.forget(t),this.findAll(t.identifier).length||this.sendCommand(t,"unsubscribe"),t}reject(t){return this.findAll(t).map((t=>(this.forget(t),this.notify(t,"rejected"),t)))}forget(t){return this.guarantor.forget(t),this.subscriptions=this.subscriptions.filter((e=>e!==t)),t}findAll(t){return this.subscriptions.filter((e=>e.identifier===t))}reload(){return this.subscriptions.map((t=>this.subscribe(t)))}notifyAll(t,...e){return this.subscriptions.map((i=>this.notify(i,t,...e)))}notify(t,e,...i){let n;return n="string"===typeof t?this.findAll(t):[t],n.map((t=>"function"===typeof t[e]?t[e](...i):void 0))}subscribe(t){this.sendCommand(t,"subscribe")&&this.guarantor.guarantee(t)}confirmSubscription(t){r.log(`Subscription confirmed ${t}`),this.findAll(t).map((t=>this.guarantor.forget(t)))}sendCommand(t,e){const{identifier:i}=t;return this.consumer.send({command:e,identifier:i})}}class y{constructor(t){this._url=t,this.subscriptions=new g(this),this.connection=new f(this),this.subprotocols=[]}get url(){return v(this._url)}send(t){return this.connection.send(t)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(t){this.subprotocols=[...this.subprotocols,t]}}function v(t){if("function"===typeof t&&(t=t()),t&&!/^wss?:/i.test(t)){const e=document.createElement("a");return e.href=t,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href}return t}function w(t=b("url")||l.default_mount_path){return new y(t)}function b(t){const e=document.head.querySelector(`meta[name='action-cable-${t}']`);if(e)return e.getAttribute("content")}},2132:(t,e,i)=>{"use strict";i.d(e,{A:()=>or});i(9375),i(2482),i(7067),i(4147),i(7146),i(4293),i(2682),i(785),i(8357),i(6196),i(821),i(6554),i(8472),i(7404),i(5803),i(3912),i(5100),i(7162),i(6403),i(4154),i(4777),i(8846),i(2896),i(7010);const n=!0,r="u-",s="uplot",o=r+"hz",a=r+"vt",l=r+"title",u=r+"wrap",c=r+"under",h=r+"over",d=r+"axis",f=r+"off",p=r+"select",m=r+"cursor-x",_=r+"cursor-y",g=r+"cursor-pt",y=r+"legend",v=r+"live",w=r+"inline",b=r+"series",x=r+"marker",S=r+"label",T=r+"value",D="width",A="height",k="top",E="bottom",R="left",M="right",P="#000",O=P+"0",L="mousemove",C="mousedown",I="mouseup",N="mouseenter",Y="mouseleave",q="dblclick",F="resize",B="scroll",H="change",W="dppxchange",X="--",j="undefined"!=typeof window,z=j?document:null,G=j?window:null,U=j?navigator:null;let V,Q;function $(){let t=devicePixelRatio;V!=t&&(V=t,Q&&ht(H,Q,$),Q=matchMedia(`(min-resolution: ${V-.001}dppx) and (max-resolution: ${V+.001}dppx)`),ct(H,Q,$),G.dispatchEvent(new CustomEvent(W)))}function J(t,e){if(null!=e){let i=t.classList;!i.contains(e)&&i.add(e)}}function K(t,e){let i=t.classList;i.contains(e)&&i.remove(e)}function Z(t,e,i){t.style[e]=i+"px"}function tt(t,e,i,n){let r=z.createElement(t);return null!=e&&J(r,e),null!=i&&i.insertBefore(r,n),r}function et(t,e){return tt("div",t,e)}const it=new WeakMap;function nt(t,e,i,n,r){let s="translate("+e+"px,"+i+"px)",o=it.get(t);s!=o&&(t.style.transform=s,it.set(t,s),e<0||i<0||e>n||i>r?J(t,f):K(t,f))}const rt=new WeakMap;function st(t,e,i){let n=e+i,r=rt.get(t);n!=r&&(rt.set(t,n),t.style.background=e,t.style.borderColor=i)}const ot=new WeakMap;function at(t,e,i,n){let r=e+""+i,s=ot.get(t);r!=s&&(ot.set(t,r),t.style.height=i+"px",t.style.width=e+"px",t.style.marginLeft=n?-e/2+"px":0,t.style.marginTop=n?-i/2+"px":0)}const lt={passive:!0},ut={...lt,capture:!0};function ct(t,e,i,n){e.addEventListener(t,i,n?ut:lt)}function ht(t,e,i,n){e.removeEventListener(t,i,n?ut:lt)}function dt(t,e,i,n){let r;i=i||0,n=n||e.length-1;let s=n<=2147483647;while(n-i>1)r=s?i+n>>1:Pt((i+n)/2),e[r]<t?i=r:n=r;return t-e[i]<=e[n]-t?i:n}function ft(t,e,i,n){for(let r=1==n?e:i;r>=e&&r<=i;r+=n)if(null!=t[r])return r;return-1}function pt(t,e,i,n){let r=Wt,s=-Wt;if(1==n)r=t[e],s=t[i];else if(-1==n)r=t[i],s=t[e];else for(let o=e;o<=i;o++){let e=t[o];null!=e&&(e<r&&(r=e),e>s&&(s=e))}return[r,s]}function mt(t,e,i){let n=Wt,r=-Wt;for(let s=e;s<=i;s++){let e=t[s];null!=e&&e>0&&(e<n&&(n=e),e>r&&(r=e))}return[n,r]}function _t(t,e,i,n){let r=Yt(t),s=Yt(e);t==e&&(-1==r?(t*=i,e/=i):(t/=i,e*=i));let o=10==i?qt:Ft,a=1==r?Pt:Lt,l=1==s?Lt:Pt,u=a(o(Mt(t))),c=l(o(Mt(e))),h=Nt(i,u),d=Nt(i,c);return 10==i&&(u<0&&(h=ie(h,-u)),c<0&&(d=ie(d,-c))),n||2==i?(t=h*r,e=d*s):(t=ee(t,h),e=te(e,d)),[t,e]}function gt(t,e,i,n){let r=_t(t,e,i,n);return 0==t&&(r[0]=0),0==e&&(r[1]=0),r}j&&$();const yt=.1,vt={mode:3,pad:yt},wt={pad:0,soft:null,mode:0},bt={min:wt,max:wt};function xt(t,e,i,n){return fe(i)?Dt(t,e,i):(wt.pad=i,wt.soft=n?0:null,wt.mode=n?3:0,Dt(t,e,bt))}function St(t,e){return null==t?e:t}function Tt(t,e,i){e=St(e,0),i=St(i,t.length-1);while(e<=i){if(null!=t[e])return!0;e++}return!1}function Dt(t,e,i){let n=i.min,r=i.max,s=St(n.pad,0),o=St(r.pad,0),a=St(n.hard,-Wt),l=St(r.hard,Wt),u=St(n.soft,Wt),c=St(r.soft,-Wt),h=St(n.mode,0),d=St(r.mode,0),f=e-t,p=qt(f),m=It(Mt(t),Mt(e)),_=qt(m),g=Mt(_-p);(f<1e-9||g>10)&&(f=0,0!=t&&0!=e||(f=1e-9,2==h&&u!=Wt&&(s=0),2==d&&c!=-Wt&&(o=0)));let y=f||m||1e3,v=qt(y),w=Nt(10,Pt(v)),b=y*(0==f?0==t?.1:1:s),x=ie(ee(t-b,w/10),9),S=t>=u&&(1==h||3==h&&x<=u||2==h&&x>=u)?u:Wt,T=It(a,x<S&&t>=S?S:Ct(S,x)),D=y*(0==f?0==e?.1:1:o),A=ie(te(e+D,w/10),9),k=e<=c&&(1==d||3==d&&A>=c||2==d&&A<=c)?c:-Wt,E=Ct(l,A>k&&e<=k?k:It(k,A));return T==E&&0==T&&(E=100),[T,E]}const At=new Intl.NumberFormat(j?U.language:"en-US"),kt=t=>At.format(t),Et=Math,Rt=Et.PI,Mt=Et.abs,Pt=Et.floor,Ot=Et.round,Lt=Et.ceil,Ct=Et.min,It=Et.max,Nt=Et.pow,Yt=Et.sign,qt=Et.log10,Ft=Et.log2,Bt=(t,e=1)=>Et.sinh(t)*e,Ht=(t,e=1)=>Et.asinh(t/e),Wt=1/0;function Xt(t){return 1+(0|qt((t^t>>31)-(t>>31)))}function jt(t,e,i){return Ct(It(t,e),i)}function zt(t){return"function"==typeof t?t:()=>t}const Gt=()=>{},Ut=t=>t,Vt=(t,e)=>e,Qt=t=>null,$t=t=>!0,Jt=(t,e)=>t==e,Kt=t=>ie(t,14);function Zt(t,e){return Kt(ie(Kt(t/e))*e)}function te(t,e){return Kt(Lt(Kt(t/e))*e)}function ee(t,e){return Kt(Pt(Kt(t/e))*e)}function ie(t,e=0){if(ce(t))return t;let i=10**e,n=t*i*(1+Number.EPSILON);return Ot(n)/i}const ne=new Map;function re(t){return((""+t).split(".")[1]||"").length}function se(t,e,i,n){let r=[],s=n.map(re);for(let o=e;o<i;o++){let e=Mt(o),i=ie(Nt(t,o),e);for(let t=0;t<n.length;t++){let a=n[t]*i,l=(a>=0&&o>=0?0:e)+(o>=s[t]?0:s[t]),u=ie(a,l);r.push(u),ne.set(u,l)}}return r}const oe={},ae=[],le=[null,null],ue=Array.isArray,ce=Number.isInteger,he=t=>void 0===t;function de(t){return"string"==typeof t}function fe(t){let e=!1;if(null!=t){let i=t.constructor;e=null==i||i==Object}return e}function pe(t){return null!=t&&"object"==typeof t}const me=Object.getPrototypeOf(Uint8Array);function _e(t,e=fe){let i;if(ue(t)){let n=t.find((t=>null!=t));if(ue(n)||e(n)){i=Array(t.length);for(let n=0;n<t.length;n++)i[n]=_e(t[n],e)}else i=t.slice()}else if(t instanceof me)i=t.slice();else if(e(t)){i={};for(let n in t)i[n]=_e(t[n],e)}else i=t;return i}function ge(t){let e=arguments;for(let i=1;i<e.length;i++){let n=e[i];for(let e in n)fe(t[e])?ge(t[e],_e(n[e])):t[e]=_e(n[e])}return t}const ye=0,ve=1,we=2;function be(t,e,i){for(let n,r=0,s=-1;r<e.length;r++){let o=e[r];if(o>s){n=o-1;while(n>=0&&null==t[n])t[n--]=null;n=o+1;while(n<i&&null==t[n])t[s=n++]=null}}}function xe(t,e){if(De(t)){let e=t[0].slice();for(let i=1;i<t.length;i++)e.push(...t[i].slice(1));return Ae(e[0])||(e=Te(e)),e}let i=new Set;for(let o=0;o<t.length;o++){let e=t[o],n=e[0],r=n.length;for(let t=0;t<r;t++)i.add(n[t])}let n=[Array.from(i).sort(((t,e)=>t-e))],r=n[0].length,s=new Map;for(let o=0;o<r;o++)s.set(n[0][o],o);for(let o=0;o<t.length;o++){let i=t[o],a=i[0];for(let t=1;t<i.length;t++){let l=i[t],u=Array(r).fill(void 0),c=e?e[o][t]:ve,h=[];for(let t=0;t<l.length;t++){let e=l[t],i=s.get(a[t]);null===e?c!=ye&&(u[i]=e,c==we&&h.push(i)):u[i]=e}be(u,h,r),n.push(u)}}return n}const Se="undefined"==typeof queueMicrotask?t=>Promise.resolve().then(t):queueMicrotask;function Te(t){let e=t[0],i=e.length,n=Array(i);for(let s=0;s<n.length;s++)n[s]=s;n.sort(((t,i)=>e[t]-e[i]));let r=[];for(let s=0;s<t.length;s++){let e=t[s],o=Array(i);for(let t=0;t<i;t++)o[t]=e[n[t]];r.push(o)}return r}function De(t){let e=t[0][0],i=e.length;for(let n=1;n<t.length;n++){let r=t[n][0];if(r.length!=i)return!1;if(r!=e)for(let t=0;t<i;t++)if(r[t]!=e[t])return!1}return!0}function Ae(t,e=100){const i=t.length;if(i<=1)return!0;let n=0,r=i-1;while(n<=r&&null==t[n])n++;while(r>=n&&null==t[r])r--;if(r<=n)return!0;const s=It(1,Pt((r-n+1)/e));for(let o=t[n],a=n+s;a<=r;a+=s){const e=t[a];if(null!=e){if(e<=o)return!1;o=e}}return!0}const ke=["January","February","March","April","May","June","July","August","September","October","November","December"],Ee=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Re(t){return t.slice(0,3)}const Me=Ee.map(Re),Pe=ke.map(Re),Oe={MMMM:ke,MMM:Pe,WWWW:Ee,WWW:Me};function Le(t){return(t<10?"0":"")+t}function Ce(t){return(t<10?"00":t<100?"0":"")+t}const Ie={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,e)=>e.MMMM[t.getMonth()],MMM:(t,e)=>e.MMM[t.getMonth()],MM:t=>Le(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>Le(t.getDate()),D:t=>t.getDate(),WWWW:(t,e)=>e.WWWW[t.getDay()],WWW:(t,e)=>e.WWW[t.getDay()],HH:t=>Le(t.getHours()),H:t=>t.getHours(),h:t=>{let e=t.getHours();return 0==e?12:e>12?e-12:e},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>Le(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>Le(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>Ce(t.getMilliseconds())};function Ne(t,e){e=e||Oe;let i,n=[],r=/\{([a-z]+)\}|[^{]+/gi;while(i=r.exec(t))n.push("{"==i[0][0]?Ie[i[1]]:i[0]);return t=>{let i="";for(let r=0;r<n.length;r++)i+="string"==typeof n[r]?n[r]:n[r](t,e);return i}}const Ye=(new Intl.DateTimeFormat).resolvedOptions().timeZone;function qe(t,e){let i;return"UTC"==e||"Etc/UTC"==e?i=new Date(+t+6e4*t.getTimezoneOffset()):e==Ye?i=t:(i=new Date(t.toLocaleString("en-US",{timeZone:e})),i.setMilliseconds(t.getMilliseconds())),i}const Fe=t=>t%1==0,Be=[1,2,2.5,5],He=se(10,-16,0,Be),We=se(10,0,16,Be),Xe=We.filter(Fe),je=He.concat(We),ze="\n",Ge="{YYYY}",Ue=ze+Ge,Ve="{M}/{D}",Qe=ze+Ve,$e=Qe+"/{YY}",Je="{aa}",Ke="{h}:{mm}",Ze=Ke+Je,ti=ze+Ze,ei=":{ss}",ii=null;function ni(t){let e=1e3*t,i=60*e,n=60*i,r=24*n,s=30*r,o=365*r,a=1==t?se(10,0,3,Be).filter(Fe):se(10,-3,0,Be),l=a.concat([e,5*e,10*e,15*e,30*e,i,5*i,10*i,15*i,30*i,n,2*n,3*n,4*n,6*n,8*n,12*n,r,2*r,3*r,4*r,5*r,6*r,7*r,8*r,9*r,10*r,15*r,s,2*s,3*s,4*s,6*s,o,2*o,5*o,10*o,25*o,50*o,100*o]);const u=[[o,Ge,ii,ii,ii,ii,ii,ii,1],[28*r,"{MMM}",Ue,ii,ii,ii,ii,ii,1],[r,Ve,Ue,ii,ii,ii,ii,ii,1],[n,"{h}"+Je,$e,ii,Qe,ii,ii,ii,1],[i,Ze,$e,ii,Qe,ii,ii,ii,1],[e,ei,$e+" "+Ze,ii,Qe+" "+Ze,ii,ti,ii,1],[t,ei+".{fff}",$e+" "+Ze,ii,Qe+" "+Ze,ii,ti,ii,1]];function c(e){return(a,l,u,c,h,d)=>{let f=[],p=h>=o,m=h>=s&&h<o,_=e(u),g=ie(_*t,3),y=fi(_.getFullYear(),p?0:_.getMonth(),m||p?1:_.getDate()),v=ie(y*t,3);if(m||p){let i=m?h/s:0,n=p?h/o:0,r=g==v?g:ie(fi(y.getFullYear()+n,y.getMonth()+i,1)*t,3),a=new Date(Ot(r/t)),l=a.getFullYear(),u=a.getMonth();for(let s=0;r<=c;s++){let o=fi(l+n*s,u+i*s,1),a=o-e(ie(o*t,3));r=ie((+o+a)*t,3),r<=c&&f.push(r)}}else{let s=h>=r?r:h,o=Pt(u)-Pt(g),p=v+o+te(g-v,s);f.push(p);let m=e(p),_=m.getHours()+m.getMinutes()/i+m.getSeconds()/n,y=h/n,w=a.axes[l]._space,b=d/w;while(1){if(p=ie(p+h,1==t?0:3),p>c)break;if(y>1){let t=Pt(ie(_+y,6))%24,i=e(p),r=i.getHours(),s=r-t;s>1&&(s=-1),p-=s*n,_=(_+y)%24;let o=f[f.length-1],a=ie((p-o)/h,3);a*b>=.7&&f.push(p)}else f.push(p)}}return f}}return[l,u,c]}const[ri,si,oi]=ni(1),[ai,li,ui]=ni(.001);function ci(t,e){return t.map((t=>t.map(((i,n)=>0==n||8==n||null==i?i:e(1==n||0==t[8]?i:t[1]+i)))))}function hi(t,e){return(i,n,r,s,o)=>{let a,l,u,c,h,d,f=e.find((t=>o>=t[0]))||e[e.length-1];return n.map((e=>{let i=t(e),n=i.getFullYear(),r=i.getMonth(),s=i.getDate(),o=i.getHours(),p=i.getMinutes(),m=i.getSeconds(),_=n!=a&&f[2]||r!=l&&f[3]||s!=u&&f[4]||o!=c&&f[5]||p!=h&&f[6]||m!=d&&f[7]||f[1];return a=n,l=r,u=s,c=o,h=p,d=m,_(i)}))}}function di(t,e){let i=Ne(e);return(e,n,r,s,o)=>n.map((e=>i(t(e))))}function fi(t,e,i){return new Date(t,e,i)}function pi(t,e){return e(t)}se(2,-53,53,[1]);const mi="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function _i(t,e){return(i,n,r,s)=>null==s?X:e(t(n))}function gi(t,e){let i=t.series[e];return i.width?i.stroke(t,e):i.points.width?i.points.stroke(t,e):null}function yi(t,e){return t.series[e].fill(t,e)}const vi={show:!0,live:!0,isolate:!1,mount:Gt,markers:{show:!0,width:2,stroke:gi,fill:yi,dash:"solid"},idx:null,idxs:null,values:[]};function wi(t,e){let i=t.cursor.points,n=et(),r=i.size(t,e);Z(n,D,r),Z(n,A,r);let s=r/-2;Z(n,"marginLeft",s),Z(n,"marginTop",s);let o=i.width(t,e,r);return o&&Z(n,"borderWidth",o),n}function bi(t,e){let i=t.series[e].points;return i._fill||i._stroke}function xi(t,e){let i=t.series[e].points;return i._stroke||i._fill}function Si(t,e){let i=t.series[e].points;return i.size}const Ti=[0,0];function Di(t,e,i){return Ti[0]=e,Ti[1]=i,Ti}function Ai(t,e,i,n=!0){return t=>{0==t.button&&(!n||t.target==e)&&i(t)}}function ki(t,e,i,n=!0){return t=>{(!n||t.target==e)&&i(t)}}const Ei={show:!0,x:!0,y:!0,lock:!1,move:Di,points:{show:wi,size:Si,width:0,stroke:xi,fill:bi},bind:{mousedown:Ai,mouseup:Ai,click:Ai,dblclick:Ai,mousemove:ki,mouseleave:ki,mouseenter:ki},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,e)=>{e.stopPropagation(),e.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,e,i,n,r)=>n-r,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Ri={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Mi=ge({},Ri,{filter:Vt}),Pi=ge({},Mi,{size:10}),Oi=ge({},Ri,{show:!1}),Li='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',Ci="bold "+Li,Ii=1.5,Ni={show:!0,scale:"x",stroke:P,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Ci,side:2,grid:Mi,ticks:Pi,border:Oi,font:Li,lineGap:Ii,rotate:0},Yi="Value",qi="Time",Fi={show:!0,scale:"x",auto:!1,sorted:1,min:Wt,max:-Wt,idxs:[]};function Bi(t,e,i,n,r){return e.map((t=>null==t?"":kt(t)))}function Hi(t,e,i,n,r,s,o){let a=[],l=ne.get(r)||0;i=o?i:ie(te(i,r),l);for(let u=i;u<=n;u=ie(u+r,l))a.push(Object.is(u,-0)?0:u);return a}function Wi(t,e,i,n,r,s,o){const a=[],l=t.scales[t.axes[e].scale].log,u=10==l?qt:Ft,c=Pt(u(i));r=Nt(l,c),10==l&&c<0&&(r=ie(r,-c));let h=i;do{a.push(h),h+=r,10==l&&(h=ie(h,ne.get(r))),h>=r*l&&(r=h)}while(h<=n);return a}function Xi(t,e,i,n,r,s,o){let a=t.scales[t.axes[e].scale],l=a.asinh,u=n>l?Wi(t,e,It(l,i),n,r):[l],c=n>=0&&i<=0?[0]:[],h=i<-l?Wi(t,e,It(l,-n),-i,r):[l];return h.reverse().map((t=>-t)).concat(c,u)}const ji=/./,zi=/[12357]/,Gi=/[125]/,Ui=/1/,Vi=(t,e,i,n)=>t.map(((t,r)=>4==e&&0==t||r%n==0&&i.test(t.toExponential()[t<0?1:0])?t:null));function Qi(t,e,i,n,r){let s=t.axes[i],o=s.scale,a=t.scales[o],l=t.valToPos,u=s._space,c=l(10,o),h=l(9,o)-c>=u?ji:l(7,o)-c>=u?zi:l(5,o)-c>=u?Gi:Ui;if(h==Ui){let t=Mt(l(1,o)-c);if(t<u)return Vi(e.slice().reverse(),a.distr,h,Lt(u/t)).reverse()}return Vi(e,a.distr,h,1)}function $i(t,e,i,n,r){let s=t.axes[i],o=s.scale,a=s._space,l=t.valToPos,u=Mt(l(1,o)-l(2,o));return u<a?Vi(e.slice().reverse(),3,ji,Lt(a/u)).reverse():e}function Ji(t,e,i,n){return null==n?X:null==e?"":kt(e)}const Ki={show:!0,scale:"y",stroke:P,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Ci,side:3,grid:Mi,ticks:Pi,border:Oi,font:Li,lineGap:Ii,rotate:0};function Zi(t,e){let i=3+2*(t||1);return ie(i*e,3)}function tn(t,e){let{scale:i,idxs:n}=t.series[0],r=t._data[0],s=t.valToPos(r[n[0]],i,!0),o=t.valToPos(r[n[1]],i,!0),a=Mt(o-s),l=t.series[e],u=a/(l.points.space*V);return n[1]-n[0]<=u}const en={scale:null,auto:!0,sorted:0,min:Wt,max:-Wt},nn=(t,e,i,n,r)=>r,rn={show:!0,auto:!0,sorted:0,gaps:nn,alpha:1,facets:[ge({},en,{scale:"x"}),ge({},en,{scale:"y"})]},sn={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:nn,alpha:1,points:{show:tn,filter:null},values:null,min:Wt,max:-Wt,idxs:[],path:null,clip:null};function on(t,e,i,n,r){return i/10}const an={time:n,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},ln=ge({},an,{time:!1,ori:1}),un={};function cn(t,e){let i=un[t];return i||(i={key:t,plots:[],sub(t){i.plots.push(t)},unsub(t){i.plots=i.plots.filter((e=>e!=t))},pub(t,e,n,r,s,o,a){for(let l=0;l<i.plots.length;l++)i.plots[l]!=e&&i.plots[l].pub(t,e,n,r,s,o,a)}},null!=t&&(un[t]=i)),i}const hn=1,dn=2;function fn(t,e,i){const n=t.mode,r=t.series[e],s=2==n?t._data[e]:t._data,o=t.scales,a=t.bbox;let l=s[0],u=2==n?s[1]:s[e],c=2==n?o[r.facets[0].scale]:o[t.series[0].scale],h=2==n?o[r.facets[1].scale]:o[r.scale],d=a.left,f=a.top,p=a.width,m=a.height,_=t.valToPosH,g=t.valToPosV;return 0==c.ori?i(r,l,u,c,h,_,g,d,f,p,m,xn,Tn,An,En,Mn):i(r,l,u,c,h,g,_,f,d,m,p,Sn,Dn,kn,Rn,Pn)}function pn(t,e){let i=0,n=0,r=St(t.bands,ae);for(let s=0;s<r.length;s++){let t=r[s];t.series[0]==e?i=t.dir:t.series[1]==e&&(1==t.dir?n|=1:n|=2)}return[i,1==n?-1:2==n?1:3==n?2:0]}function mn(t,e,i,n,r){let s=t.mode,o=t.series[e],a=2==s?o.facets[1].scale:o.scale,l=t.scales[a];return-1==r?l.min:1==r?l.max:3==l.distr?1==l.dir?l.min:l.max:0}function _n(t,e,i,n,r,s){return fn(t,e,((t,e,o,a,l,u,c,h,d,f,p)=>{let m=t.pxRound;const _=a.dir*(0==a.ori?1:-1),g=0==a.ori?Tn:Dn;let y,v;1==_?(y=i,v=n):(y=n,v=i);let w=m(u(e[y],a,f,h)),b=m(c(o[y],l,p,d)),x=m(u(e[v],a,f,h)),S=m(c(1==s?l.max:l.min,l,p,d)),T=new Path2D(r);return g(T,x,S),g(T,w,S),g(T,w,b),T}))}function gn(t,e,i,n,r,s){let o=null;if(t.length>0){o=new Path2D;const a=0==e?An:kn;let l=i;for(let e=0;e<t.length;e++){let i=t[e];if(i[1]>i[0]){let t=i[0]-l;t>0&&a(o,l,n,t,n+s),l=i[1]}}let u=i+r-l,c=10;u>0&&a(o,l,n-c/2,u,n+s+c)}return o}function yn(t,e,i){let n=t[t.length-1];n&&n[0]==e?n[1]=i:t.push([e,i])}function vn(t,e,i,n,r,s,o){let a=[],l=t.length;for(let u=1==r?i:n;u>=i&&u<=n;u+=r){let c=e[u];if(null===c){let c=u,h=u;if(1==r)while(++u<=n&&null===e[u])h=u;else while(--u>=i&&null===e[u])h=u;let d=s(t[c]),f=h==c?d:s(t[h]),p=c-r,m=o<=0&&p>=0&&p<l?s(t[p]):d;d=m;let _=h+r,g=o>=0&&_>=0&&_<l?s(t[_]):f;f=g,f>=d&&a.push([d,f])}}return a}function wn(t){return 0==t?Ut:1==t?Ot:e=>Zt(e,t)}function bn(t){let e=0==t?xn:Sn,i=0==t?(t,e,i,n,r,s)=>{t.arcTo(e,i,n,r,s)}:(t,e,i,n,r,s)=>{t.arcTo(i,e,r,n,s)},n=0==t?(t,e,i,n,r)=>{t.rect(e,i,n,r)}:(t,e,i,n,r)=>{t.rect(i,e,r,n)};return(t,r,s,o,a,l=0,u=0)=>{0==l&&0==u?n(t,r,s,o,a):(l=Ct(l,o/2,a/2),u=Ct(u,o/2,a/2),e(t,r+l,s),i(t,r+o,s,r+o,s+a,l),i(t,r+o,s+a,r,s+a,u),i(t,r,s+a,r,s,u),i(t,r,s,r+o,s,l),t.closePath())}}const xn=(t,e,i)=>{t.moveTo(e,i)},Sn=(t,e,i)=>{t.moveTo(i,e)},Tn=(t,e,i)=>{t.lineTo(e,i)},Dn=(t,e,i)=>{t.lineTo(i,e)},An=bn(0),kn=bn(1),En=(t,e,i,n,r,s)=>{t.arc(e,i,n,r,s)},Rn=(t,e,i,n,r,s)=>{t.arc(i,e,n,r,s)},Mn=(t,e,i,n,r,s,o)=>{t.bezierCurveTo(e,i,n,r,s,o)},Pn=(t,e,i,n,r,s,o)=>{t.bezierCurveTo(i,e,r,n,o,s)};function On(t){return(t,e,i,n,r)=>fn(t,e,((e,s,o,a,l,u,c,h,d,f,p)=>{let m,_,{pxRound:g,points:y}=e;0==a.ori?(m=xn,_=En):(m=Sn,_=Rn);const v=ie(y.width*V,3);let w=(y.size-y.width)/2*V,b=ie(2*w,3),x=new Path2D,S=new Path2D,{left:T,top:D,width:A,height:k}=t.bbox;An(S,T-b,D-b,A+2*b,k+2*b);const E=t=>{if(null!=o[t]){let e=g(u(s[t],a,f,h)),i=g(c(o[t],l,p,d));m(x,e+w,i),_(x,e,i,w,0,2*Rt)}};if(r)r.forEach(E);else for(let t=i;t<=n;t++)E(t);return{stroke:v>0?x:null,fill:x,clip:S,flags:hn|dn}}))}function Ln(t){return(e,i,n,r,s,o)=>{n!=r&&(s!=n&&o!=n&&t(e,i,n),s!=r&&o!=r&&t(e,i,r),t(e,i,o))}}const Cn=Ln(Tn),In=Ln(Dn);function Nn(t){const e=St(null===t||void 0===t?void 0:t.alignGaps,0);return(t,i,n,r)=>fn(t,i,((s,o,a,l,u,c,h,d,f,p,m)=>{let _,g,y=s.pxRound,v=t=>y(c(t,l,p,d)),w=t=>y(h(t,u,m,f));0==l.ori?(_=Tn,g=Cn):(_=Dn,g=In);const b=l.dir*(0==l.ori?1:-1),x={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:hn},S=x.stroke;let T,D,A,k=Wt,E=-Wt,R=v(o[1==b?n:r]),M=ft(a,n,r,1*b),P=ft(a,n,r,-1*b),O=v(o[M]),L=v(o[P]),C=!1;for(let t=1==b?n:r;t>=n&&t<=r;t+=b){let e=v(o[t]),i=a[t];e==R?null!=i?(D=w(i),k==Wt&&(_(S,e,D),T=D),k=Ct(D,k),E=It(D,E)):null===i&&(C=!0):(k!=Wt&&(g(S,R,k,E,T,D),A=R),null!=i?(D=w(i),_(S,e,D),k=E=T=D):(k=Wt,E=-Wt,null===i&&(C=!0)),R=e)}k!=Wt&&k!=E&&A!=R&&g(S,R,k,E,T,D);let[I,N]=pn(t,i);if(null!=s.fill||0!=I){let e=x.fill=new Path2D(S),n=s.fillTo(t,i,s.min,s.max,I),r=w(n);_(e,L,r),_(e,O,r)}if(!s.spanGaps){let u=[];C&&u.push(...vn(o,a,n,r,b,v,e)),x.gaps=u=s.gaps(t,i,n,r,u),x.clip=gn(u,l.ori,d,f,p,m)}return 0!=N&&(x.band=2==N?[_n(t,i,n,r,S,-1),_n(t,i,n,r,S,1)]:_n(t,i,n,r,S,N)),x}))}function Yn(t){const e=St(t.align,1),i=St(t.ascDesc,!1),n=St(t.alignGaps,0),r=St(t.extend,!1);return(t,s,o,a)=>fn(t,s,((l,u,c,h,d,f,p,m,_,g,y)=>{let v=l.pxRound,{left:w,width:b}=t.bbox,x=t=>v(f(t,h,g,m)),S=t=>v(p(t,d,y,_)),T=0==h.ori?Tn:Dn;const D={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:hn},A=D.stroke,k=h.dir*(0==h.ori?1:-1);o=ft(c,o,a,1),a=ft(c,o,a,-1);let E=S(c[1==k?o:a]),R=x(u[1==k?o:a]),M=R,P=R;r&&-1==e&&(P=w,T(A,P,E)),T(A,R,E);for(let t=1==k?o:a;t>=o&&t<=a;t+=k){let i=c[t];if(null==i)continue;let n=x(u[t]),r=S(i);1==e?T(A,n,E):T(A,M,r),T(A,n,r),E=r,M=n}let O=M;r&&1==e&&(O=w+b,T(A,O,E));let[L,C]=pn(t,s);if(null!=l.fill||0!=L){let e=D.fill=new Path2D(A),i=l.fillTo(t,s,l.min,l.max,L),n=S(i);T(e,O,n),T(e,P,n)}if(!l.spanGaps){let r=[];r.push(...vn(u,c,o,a,k,x,n));let d=l.width*V/2,f=i||1==e?d:-d,p=i||-1==e?-d:d;r.forEach((t=>{t[0]+=f,t[1]+=p})),D.gaps=r=l.gaps(t,s,o,a,r),D.clip=gn(r,h.ori,m,_,g,y)}return 0!=C&&(D.band=2==C?[_n(t,s,o,a,A,-1),_n(t,s,o,a,A,1)]:_n(t,s,o,a,A,C)),D}))}function qn(t,e,i,n,r,s,o=Wt){if(t.length>1){let a=null;for(let l=0,u=1/0;l<t.length;l++)if(void 0!==e[l]){if(null!=a){let e=Mt(t[l]-t[a]);e<u&&(u=e,o=Mt(i(t[l],n,r,s)-i(t[a],n,r,s)))}a=l}}return o}function Fn(t){t=t||oe;const e=St(t.size,[.6,Wt,1]),i=t.align||0,n=t.gap||0;let r=t.radius;r=null==r?[0,0]:"number"==typeof r?[r,0]:r;const s=zt(r),o=1-e[0],a=St(e[1],Wt),l=St(e[2],1),u=St(t.disp,oe),c=St(t.each,(t=>{})),{fill:h,stroke:d}=u;return(t,e,r,f)=>fn(t,e,((p,m,_,g,y,v,w,b,x,S,T)=>{let D,A,k=p.pxRound,E=i,R=n*V,M=a*V,P=l*V;0==g.ori?[D,A]=s(t,e):[A,D]=s(t,e);const O=g.dir*(0==g.ori?1:-1);let L,C,I,N=0==g.ori?An:kn,Y=0==g.ori?c:(t,e,i,n,r,s,o)=>{c(t,e,i,r,n,o,s)},q=St(t.bands,ae).find((t=>t.series[0]==e)),F=null!=q?q.dir:0,B=p.fillTo(t,e,p.min,p.max,F),H=k(w(B,y,T,x)),W=S,X=k(p.width*V),j=!1,z=null,G=null,U=null,Q=null;null==h||0!=X&&null==d||(j=!0,z=h.values(t,e,r,f),G=new Map,new Set(z).forEach((t=>{null!=t&&G.set(t,new Path2D)})),X>0&&(U=d.values(t,e,r,f),Q=new Map,new Set(U).forEach((t=>{null!=t&&Q.set(t,new Path2D)}))));let{x0:$,size:J}=u;if(null!=$&&null!=J){E=1,m=$.values(t,e,r,f),2==$.unit&&(m=m.map((e=>t.posToVal(b+e*S,g.key,!0))));let i=J.values(t,e,r,f);C=2==J.unit?i[0]*S:v(i[0],g,S,b)-v(0,g,S,b),W=qn(m,_,v,g,S,b,W);let n=W-C;I=n+R}else{W=qn(m,_,v,g,S,b,W);let t=W*o;I=t+R,C=W-I}I<1&&(I=0),X>=C/2&&(X=0),I<5&&(k=Ut);let K=I>0,Z=W-I-(K?X:0);C=k(jt(Z,P,M)),L=(0==E?C/2:E==O?0:C)-E*O*((0==E?R/2:0)+(K?X/2:0));const tt={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},et=j?null:new Path2D;let it=null;if(null!=q)it=t.data[q.series[1]];else{let{y0:i,y1:n}=u;null!=i&&null!=n&&(_=n.values(t,e,r,f),it=i.values(t,e,r,f))}let nt=D*C,rt=A*C;for(let i=1==O?r:f;i>=r&&i<=f;i+=O){let n=_[i];if(null==n)continue;if(null!=it){var st;let t=null!==(st=it[i])&&void 0!==st?st:0;if(n-t==0)continue;H=w(t,y,T,x)}let r=2!=g.distr||null!=u?m[i]:i,s=v(r,g,S,b),o=w(St(n,B),y,T,x),a=k(s-L),l=k(It(o,H)),c=k(Ct(o,H)),h=l-c;if(null!=n){let r=n<0?rt:nt,s=n<0?nt:rt;j?(X>0&&null!=U[i]&&N(Q.get(U[i]),a,c+Pt(X/2),C,It(0,h-X),r,s),null!=z[i]&&N(G.get(z[i]),a,c+Pt(X/2),C,It(0,h-X),r,s)):N(et,a,c+Pt(X/2),C,It(0,h-X),r,s),Y(t,e,i,a-X/2,c,C+X,h)}}if(X>0)tt.stroke=j?Q:et;else if(!j){var ot;tt._fill=0==p.width?p._fill:null!==(ot=p._stroke)&&void 0!==ot?ot:p._fill,tt.width=0}return tt.fill=j?G:et,tt}))}function Bn(t,e){const i=St(null===e||void 0===e?void 0:e.alignGaps,0);return(e,n,r,s)=>fn(e,n,((o,a,l,u,c,h,d,f,p,m,_)=>{let g,y,v,w=o.pxRound,b=t=>w(h(t,u,m,f)),x=t=>w(d(t,c,_,p));0==u.ori?(g=xn,v=Tn,y=Mn):(g=Sn,v=Dn,y=Pn);const S=u.dir*(0==u.ori?1:-1);r=ft(l,r,s,1),s=ft(l,r,s,-1);let T=b(a[1==S?r:s]),D=T,A=[],k=[];for(let t=1==S?r:s;t>=r&&t<=s;t+=S){let e=l[t];if(null!=e){let e=a[t],i=b(e);A.push(D=i),k.push(x(l[t]))}}const E={stroke:t(A,k,g,v,y,w),fill:null,clip:null,band:null,gaps:null,flags:hn},R=E.stroke;let[M,P]=pn(e,n);if(null!=o.fill||0!=M){let t=E.fill=new Path2D(R),i=o.fillTo(e,n,o.min,o.max,M),r=x(i);v(t,D,r),v(t,T,r)}if(!o.spanGaps){let t=[];t.push(...vn(a,l,r,s,S,b,i)),E.gaps=t=o.gaps(e,n,r,s,t),E.clip=gn(t,u.ori,f,p,m,_)}return 0!=P&&(E.band=2==P?[_n(e,n,r,s,R,-1),_n(e,n,r,s,R,1)]:_n(e,n,r,s,R,P)),E}))}function Hn(t){return Bn(Wn,t)}function Wn(t,e,i,n,r,s){const o=t.length;if(o<2)return null;const a=new Path2D;if(i(a,t[0],e[0]),2==o)n(a,t[1],e[1]);else{let i=Array(o),n=Array(o-1),s=Array(o-1),l=Array(o-1);for(let r=0;r<o-1;r++)s[r]=e[r+1]-e[r],l[r]=t[r+1]-t[r],n[r]=s[r]/l[r];i[0]=n[0];for(let t=1;t<o-1;t++)0===n[t]||0===n[t-1]||n[t-1]>0!==n[t]>0?i[t]=0:(i[t]=3*(l[t-1]+l[t])/((2*l[t]+l[t-1])/n[t-1]+(l[t]+2*l[t-1])/n[t]),isFinite(i[t])||(i[t]=0));i[o-1]=n[o-2];for(let u=0;u<o-1;u++)r(a,t[u]+l[u]/3,e[u]+i[u]*l[u]/3,t[u+1]-l[u]/3,e[u+1]-i[u+1]*l[u]/3,t[u+1],e[u+1])}return a}const Xn=new Set;function jn(){for(let t of Xn)t.syncRect(!0)}j&&(ct(F,G,jn),ct(B,G,jn,!0),ct(W,G,(()=>{or.pxRatio=V})));const zn=Nn(),Gn=On();function Un(t,e,i,n){let r=n?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1));return r.map(((t,n)=>Qn(t,n,e,i)))}function Vn(t,e){return t.map(((t,i)=>0==i?null:ge({},e,t)))}function Qn(t,e,i,n){return ge({},0==e?i:n,t)}function $n(t,e,i){return null==e?le:[e,i]}const Jn=$n;function Kn(t,e,i){return null==e?le:xt(e,i,yt,!0)}function Zn(t,e,i,n){return null==e?le:_t(e,i,t.scales[n].log,!1)}const tr=Zn;function er(t,e,i,n){return null==e?le:gt(e,i,t.scales[n].log,!1)}const ir=er;function nr(t,e,i,n,r){let s=It(Xt(t),Xt(e)),o=e-t,a=dt(r/n*o,i);do{let t=i[a],e=n*t/o;if(e>=r&&s+(t<5?ne.get(t):0)<=17)return[t,e]}while(++a<i.length);return[0,0]}function rr(t){let e,i;return t=t.replace(/(\d+)px/,((t,n)=>(e=Ot((i=+n)*V))+"px")),[t,e,i]}function sr(t){t.show&&[t.font,t.labelFont].forEach((t=>{let e=ie(t[2]*V,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e}))}function or(t,e,i){const n={mode:St(t.mode,1)},r=n.mode;function P(t,e){let i=3==e.distr?qt(t>0?t:e.clamp(n,t,e.min,e.max,e.key)):4==e.distr?Ht(t,e.asinh):t;return(i-e._min)/(e._max-e._min)}function F(t,e,i,n){let r=P(t,e);return n+i*(-1==e.dir?1-r:r)}function B(t,e,i,n){let r=P(t,e);return n+i*(-1==e.dir?r:1-r)}function H(t,e,i,n){return 0==e.ori?F(t,e,i,n):B(t,e,i,n)}n.valToPosH=F,n.valToPosV=B;let j=!1;n.status=0;const U=n.root=et(s);if(null!=t.id&&(U.id=t.id),J(U,t.class),t.title){let e=et(l,U);e.textContent=t.title}const Q=tt("canvas"),$=n.ctx=Q.getContext("2d"),it=et(u,U);ct("click",it,(t=>{if(t.target===ot){let e=Er!=Tr||Rr!=Dr;e&&Fr.click(n,t)}}),!0);const rt=n.under=et(c,it);it.appendChild(Q);const ot=n.over=et(h,it);t=_e(t);const lt=+St(t.pxAlign,1),ut=wn(lt);(t.plugins||[]).forEach((e=>{e.opts&&(t=e.opts(n,t)||t)}));const ft=t.ms||.001,wt=n.series=1==r?Un(t.series||[],Fi,sn,!1):Vn(t.series||[null],rn),bt=n.axes=Un(t.axes||[],Ni,Ki,!0),Dt=n.scales={},At=n.bands=t.bands||[];At.forEach((t=>{t.fill=zt(t.fill||null),t.dir=St(t.dir,-1)}));const kt=2==r?wt[1].facets[0].scale:wt[0].scale,Et={axes:_r,series:Wn},Pt=(t.drawOrder||["axes","series"]).map((t=>Et[t]));function Yt(e){let i=Dt[e];if(null==i){let n=(t.scales||oe)[e]||oe;if(null!=n.from)Yt(n.from),Dt[e]=ge({},Dt[n.from],n,{key:e});else{i=Dt[e]=ge({},e==kt?an:ln,n),i.key=e;let t=i.time,s=i.range,o=ue(s);if((e!=kt||2==r&&!t)&&(!o||null!=s[0]&&null!=s[1]||(s={min:null==s[0]?vt:{mode:1,hard:s[0],soft:s[0]},max:null==s[1]?vt:{mode:1,hard:s[1],soft:s[1]}},o=!1),!o&&fe(s))){let t=s;s=(e,i,n)=>null==i?le:xt(i,n,t)}i.range=zt(s||(t?Jn:e==kt?3==i.distr?tr:4==i.distr?ir:$n:3==i.distr?Zn:4==i.distr?er:Kn)),i.auto=zt(!o&&i.auto),i.clamp=zt(i.clamp||on),i._min=i._max=null}}}Yt("x"),Yt("y"),1==r&&wt.forEach((t=>{Yt(t.scale)})),bt.forEach((t=>{Yt(t.scale)}));for(let s in t.scales)Yt(s);const Ft=Dt[kt],Xt=Ft.distr;let Gt,Ut;0==Ft.ori?(J(U,o),Gt=F,Ut=B):(J(U,a),Gt=B,Ut=F);const Kt={};for(let s in Dt){let t=Dt[s];null==t.min&&null==t.max||(Kt[s]={min:t.min,max:t.max},t.min=t.max=null)}const ee=t.tzDate||(t=>new Date(Ot(t/ft))),se=t.fmtDate||Ne,ce=1==ft?oi(ee):ui(ee),me=hi(ee,ci(1==ft?si:li,se)),ye=_i(ee,pi(mi,se)),ve=[],we=n.legend=ge({},vi,t.legend),be=we.show,xe=we.markers;let Te,De,Ae;we.idxs=ve,xe.width=zt(xe.width),xe.dash=zt(xe.dash),xe.stroke=zt(xe.stroke),xe.fill=zt(xe.fill);let ke,Ee=[],Re=[],Me=!1,Pe={};if(we.live){const t=wt[1]?wt[1].values:null;Me=null!=t,ke=Me?t(n,1,0):{_:0};for(let e in ke)Pe[e]=X}if(be)if(Te=tt("table",y,U),Ae=tt("tbody",null,Te),we.mount(n,Te),Me){De=tt("thead",null,Te,Ae);let t=tt("tr",null,De);for(var Oe in tt("th",null,t),ke)tt("th",S,t).textContent=Oe}else J(Te,w),we.live&&J(Te,v);const Le={show:!0},Ce={show:!1};function Ie(t,e){if(0==e&&(Me||!we.live||2==r))return le;let i=[],s=tt("tr",b,Ae,Ae.childNodes[e]);J(s,t.class),t.show||J(s,f);let o=tt("th",null,s);if(xe.show){let t=et(x,o);if(e>0){let i=xe.width(n,e);i&&(t.style.border=i+"px "+xe.dash(n,e)+" "+xe.stroke(n,e)),t.style.background=xe.fill(n,e)}}let a=et(S,o);for(var l in a.textContent=t.label,e>0&&(xe.show||(a.style.color=t.width>0?xe.stroke(n,e):xe.fill(n,e)),qe("click",o,(e=>{if(Ri._lock)return;Oi(e);let i=wt.indexOf(t);if((e.ctrlKey||e.metaKey)!=we.isolate){let t=wt.some(((t,e)=>e>0&&e!=i&&t.show));wt.forEach(((e,n)=>{n>0&&Ur(n,t?n==i?Le:Ce:Le,!0,Os.setSeries)}))}else Ur(i,{show:!t.show},!0,Os.setSeries)}),!1),Ii&&qe(N,o,(e=>{Ri._lock||(Oi(e),Ur(wt.indexOf(t),es,!0,Os.setSeries))}),!1)),ke){let t=tt("td",T,s);t.textContent="--",i.push(t)}return[s,i]}const Ye=new Map;function qe(t,e,i,r=!0){const s=Ye.get(e)||{},o=Ri.bind[t](n,e,i,r);o&&(ct(t,e,s[t]=o),Ye.set(e,s))}function Fe(t,e,i){const n=Ye.get(e)||{};for(let r in n)null!=t&&r!=t||(ht(r,e,n[r]),delete n[r]);null==t&&Ye.delete(e)}let Be=0,He=0,We=0,ze=0,Ge=0,Ue=0,Ve=Ge,Qe=Ue,$e=We,Je=ze,Ke=0,Ze=0,ti=0,ei=0;n.bbox={};let ii=!1,ni=!1,fi=!1,gi=!1,yi=!1,wi=!1;function bi(t,e,i){(i||t!=n.width||e!=n.height)&&xi(t,e),gr(!1),fi=!0,ni=!0,Cr()}function xi(t,e){n.width=Be=We=t,n.height=He=ze=e,Ge=Ue=0,Ai(),ki();let i=n.bbox;Ke=i.left=Zt(Ge*V,.5),Ze=i.top=Zt(Ue*V,.5),ti=i.width=Zt(We*V,.5),ei=i.height=Zt(ze*V,.5)}const Si=3;function Ti(){let t=!1,e=0;while(!t){e++;let i=pr(e),r=mr(e);t=e==Si||i&&r,t||(xi(n.width,n.height),ni=!0)}}function Di({width:t,height:e}){bi(t,e)}function Ai(){let t=!1,e=!1,i=!1,n=!1;bt.forEach(((r,s)=>{if(r.show&&r._show){let{side:s,_size:o}=r,a=s%2,l=null!=r.label?r.labelSize:0,u=o+l;u>0&&(a?(We-=u,3==s?(Ge+=u,n=!0):i=!0):(ze-=u,0==s?(Ue+=u,t=!0):e=!0))}})),nn[0]=t,nn[1]=i,nn[2]=e,nn[3]=n,We-=_n[1]+_n[3],Ge+=_n[3],ze-=_n[2]+_n[0],Ue+=_n[0]}function ki(){let t=Ge+We,e=Ue+ze,i=Ge,n=Ue;function r(r,s){switch(r){case 1:return t+=s,t-s;case 2:return e+=s,e-s;case 3:return i-=s,i+s;case 0:return n-=s,n+s}}bt.forEach(((t,e)=>{if(t.show&&t._show){let e=t.side;t._pos=r(e,t._size),null!=t.label&&(t._lpos=r(e,t.labelSize))}}))}n.setSize=Di;const Ri=n.cursor=ge({},Ei,{drag:{y:2==r}},t.cursor);if(null==Ri.dataIdx){var Mi,Pi;let t=Ri.hover,i=t.skip=new Set(null!==(Mi=t.skip)&&void 0!==Mi?Mi:[]);i.add(void 0);let n=t.prox=zt(t.prox),r=null!==(Pi=t.bias)&&void 0!==Pi?Pi:t.bias=0;Ri.dataIdx=(t,s,o,a)=>{var l;if(0==s)return o;let u=o,c=null!==(l=n(t,s,o,a))&&void 0!==l?l:Wt,h=c>=0&&c<Wt,d=0==Ft.ori?We:ze,f=Ri.left,p=e[0],m=e[s];if(i.has(m[o])){u=null;let t,e=null,n=null;if(0==r||-1==r){t=o;while(null==e&&t-- >0)i.has(m[t])||(e=t)}if(0==r||1==r){t=o;while(null==n&&t++<m.length)i.has(m[t])||(n=t)}if(null!=e||null!=n)if(h){let t=null==e?-1/0:Gt(p[e],Ft,d,0),i=null==n?1/0:Gt(p[n],Ft,d,0),r=f-t,s=i-f;r<=s?r<=c&&(u=e):s<=c&&(u=n)}else u=null==n?e:null==e?n:o-e<=n-o?e:n}else if(h){let t=Mt(f-Gt(p[o],Ft,d,0));t>c&&(u=null)}return u}}const Oi=t=>{Ri.event=t};Ri.idxs=ve,Ri._lock=!1;let Li=Ri.points;Li.show=zt(Li.show),Li.size=zt(Li.size),Li.stroke=zt(Li.stroke),Li.width=zt(Li.width),Li.fill=zt(Li.fill);const Ci=n.focus=ge({},t.focus||{alpha:.3},Ri.focus),Ii=Ci.prox>=0;let ji=[null],zi=[null],Gi=[null];function Ui(t,e){if(e>0){let i=Ri.points.show(n,e);if(i)return J(i,g),J(i,t.class),nt(i,-10,-10,We,ze),ot.insertBefore(i,ji[e]),i}}function Vi(t,e){if(1==r||e>0){let e=1==r&&Dt[t.scale].time,i=t.value;t.value=e?de(i)?_i(ee,pi(i,se)):i||ye:i||Ji,t.label=t.label||(e?qi:Yi)}if(e>0){t.width=null==t.width?1:t.width,t.paths=t.paths||zn||Qt,t.fillTo=zt(t.fillTo||mn),t.pxAlign=+St(t.pxAlign,lt),t.pxRound=wn(t.pxAlign),t.stroke=zt(t.stroke||null),t.fill=zt(t.fill||null),t._stroke=t._fill=t._paths=t._focus=null;let e=Zi(It(1,t.width),1),i=t.points=ge({},{size:e,width:It(1,.2*e),stroke:t.stroke,space:2*e,paths:Gn,_stroke:null,_fill:null},t.points);i.show=zt(i.show),i.filter=zt(i.filter),i.fill=zt(i.fill),i.stroke=zt(i.stroke),i.paths=zt(i.paths),i.pxAlign=t.pxAlign}if(be){let i=Ie(t,e);Ee.splice(e,0,i[0]),Re.splice(e,0,i[1]),we.values.push(null)}if(Ri.show){ve.splice(e,0,null);let i=Ui(t,e);null!=i&&(ji.splice(e,0,i),zi.splice(e,0,0),Gi.splice(e,0,0))}Ms("addSeries",e)}function tn(t,e){e=null==e?wt.length:e,t=1==r?Qn(t,e,Fi,sn):Qn(t,e,null,rn),wt.splice(e,0,t),Vi(wt[e],e)}function en(t){if(wt.splice(t,1),be){we.values.splice(t,1),Re.splice(t,1);let e=Ee.splice(t,1)[0];Fe(null,e.firstChild),e.remove()}Ri.show&&(ve.splice(t,1),ji.length>1&&(ji.splice(t,1)[0].remove(),zi.splice(t,1),Gi.splice(t,1))),Ms("delSeries",t)}n.addSeries=tn,n.delSeries=en;const nn=[!1,!1,!1,!1];function un(t,e){if(t._show=t.show,t.show){let i=t.side%2,r=Dt[t.scale];null==r&&(t.scale=i?wt[1].scale:kt,r=Dt[t.scale]);let s=r.time;t.size=zt(t.size),t.space=zt(t.space),t.rotate=zt(t.rotate),ue(t.incrs)&&t.incrs.forEach((t=>{!ne.has(t)&&ne.set(t,re(t))})),t.incrs=zt(t.incrs||(2==r.distr?Xe:s?1==ft?ri:ai:je)),t.splits=zt(t.splits||(s&&1==r.distr?ce:3==r.distr?Wi:4==r.distr?Xi:Hi)),t.stroke=zt(t.stroke),t.grid.stroke=zt(t.grid.stroke),t.ticks.stroke=zt(t.ticks.stroke),t.border.stroke=zt(t.border.stroke);let o=t.values;t.values=ue(o)&&!ue(o[0])?zt(o):s?ue(o)?hi(ee,ci(o,se)):de(o)?di(ee,o):o||me:o||Bi,t.filter=zt(t.filter||(r.distr>=3&&10==r.log?Qi:3==r.distr&&2==r.log?$i:Vt)),t.font=rr(t.font),t.labelFont=rr(t.labelFont),t._size=t.size(n,null,e,0),t._space=t._rotate=t._incrs=t._found=t._splits=t._values=null,t._size>0&&(nn[e]=!0,t._el=et(d,it))}}function fn(t,e,i,n){let[r,s,o,a]=i,l=e%2,u=0;return 0==l&&(a||s)&&(u=0==e&&!r||2==e&&!o?Ot(Ni.size/3):0),1==l&&(r||o)&&(u=1==e&&!s||3==e&&!a?Ot(Ki.size/2):0),u}const pn=n.padding=(t.padding||[fn,fn,fn,fn]).map((t=>zt(St(t,fn)))),_n=n._padding=pn.map(((t,e)=>t(n,e,nn,0)));let gn,yn=null,vn=null;const bn=1==r?wt[0].idxs:null;let xn,Sn,Tn,Dn,An,kn,En,Rn,Mn,Pn,On=null,Ln=!1;function Cn(t,i){if(e=null==t?[]:t,n.data=n._data=e,2==r){gn=0;for(let t=1;t<wt.length;t++)gn+=e[t][0].length}else{0==e.length&&(n.data=n._data=e=[[]]),On=e[0],gn=On.length;let t=e;if(2==Xt){t=e.slice();let i=t[0]=Array(gn);for(let t=0;t<gn;t++)i[t]=t}n._data=e=t}if(gr(!0),Ms("setData"),2==Xt&&(fi=!0),!1!==i){let t=Ft;t.auto(n,Ln)?In():Gr(kt,t.min,t.max),gi=gi||Ri.left>=0,wi=!0,Cr()}}function In(){let t,i;Ln=!0,1==r&&(gn>0?(yn=bn[0]=0,vn=bn[1]=gn-1,t=e[0][yn],i=e[0][vn],2==Xt?(t=yn,i=vn):t==i&&(3==Xt?[t,i]=_t(t,t,Ft.log,!1):4==Xt?[t,i]=gt(t,t,Ft.log,!1):Ft.time?i=t+Ot(86400/ft):[t,i]=xt(t,i,yt,!0))):(yn=bn[0]=t=null,vn=bn[1]=i=null)),Gr(kt,t,i)}function Nn(t,e,i,n,r,s){var o,a,l,u,c;null!==(o=t)&&void 0!==o||(t=O),null!==(a=i)&&void 0!==a||(i=ae),null!==(l=n)&&void 0!==l||(n="butt"),null!==(u=r)&&void 0!==u||(r=O),null!==(c=s)&&void 0!==c||(s="round"),t!=xn&&($.strokeStyle=xn=t),r!=Sn&&($.fillStyle=Sn=r),e!=Tn&&($.lineWidth=Tn=e),s!=An&&($.lineJoin=An=s),n!=kn&&($.lineCap=kn=n),i!=Dn&&$.setLineDash(Dn=i)}function Yn(t,e,i,n){e!=Sn&&($.fillStyle=Sn=e),t!=En&&($.font=En=t),i!=Rn&&($.textAlign=Rn=i),n!=Mn&&($.textBaseline=Mn=n)}function qn(t,e,i,r,s=0){if(r.length>0&&t.auto(n,Ln)&&(null==e||null==e.min)){let e=St(yn,0),n=St(vn,r.length-1),o=null==i.min?3==t.distr?mt(r,e,n):pt(r,e,n,s):[i.min,i.max];t.min=Ct(t.min,i.min=o[0]),t.max=It(t.max,i.max=o[1])}}n.setData=Cn;const Fn={min:null,max:null};function Bn(){for(let e in Dt){let t=Dt[e];null==Kt[e]&&(null==t.min||null!=Kt[kt]&&t.auto(n,Ln))&&(Kt[e]=Fn)}for(let e in Dt){let t=Dt[e];null==Kt[e]&&null!=t.from&&null!=Kt[t.from]&&(Kt[e]=Fn)}null!=Kt[kt]&&gr(!0);let t={};for(let e in Kt){let i=Kt[e];if(null!=i){let s=t[e]=_e(Dt[e],pe);if(null!=i.min)ge(s,i);else if(e!=kt||2==r)if(0==gn&&null==s.from){let t=s.range(n,null,null,e);s.min=t[0],s.max=t[1]}else s.min=Wt,s.max=-Wt}}if(gn>0){wt.forEach(((i,s)=>{if(1==r){let r=i.scale,o=Kt[r];if(null==o)return;let a=t[r];if(0==s){let t=a.range(n,a.min,a.max,r);a.min=t[0],a.max=t[1],yn=dt(a.min,e[0]),vn=dt(a.max,e[0]),vn-yn>1&&(e[0][yn]<a.min&&yn++,e[0][vn]>a.max&&vn--),i.min=On[yn],i.max=On[vn]}else i.show&&i.auto&&qn(a,o,i,e[s],i.sorted);i.idxs[0]=yn,i.idxs[1]=vn}else if(s>0&&i.show&&i.auto){let[n,r]=i.facets,o=n.scale,a=r.scale,[l,u]=e[s],c=t[o],h=t[a];null!=c&&qn(c,Kt[o],n,l,n.sorted),null!=h&&qn(h,Kt[a],r,u,r.sorted),i.min=r.min,i.max=r.max}}));for(let e in t){let i=t[e],r=Kt[e];if(null==i.from&&(null==r||null==r.min)){let t=i.range(n,i.min==Wt?null:i.min,i.max==-Wt?null:i.max,e);i.min=t[0],i.max=t[1]}}}for(let e in t){let i=t[e];if(null!=i.from){let r=t[i.from];if(null==r.min)i.min=i.max=null;else{let t=i.range(n,r.min,r.max,e);i.min=t[0],i.max=t[1]}}}let i={},s=!1;for(let e in t){let n=t[e],r=Dt[e];if(r.min!=n.min||r.max!=n.max){r.min=n.min,r.max=n.max;let t=r.distr;r._min=3==t?qt(r.min):4==t?Ht(r.min,r.asinh):r.min,r._max=3==t?qt(r.max):4==t?Ht(r.max,r.asinh):r.max,i[e]=s=!0}}if(s){wt.forEach(((t,e)=>{2==r?e>0&&i.y&&(t._paths=null):i[t.scale]&&(t._paths=null)}));for(let t in i)fi=!0,Ms("setScale",t);Ri.show&&Ri.left>=0&&(gi=wi=!0)}for(let e in Kt)Kt[e]=null}function Hn(t){let e=jt(yn-1,0,gn-1),i=jt(vn+1,0,gn-1);while(null==t[e]&&e>0)e--;while(null==t[i]&&i<gn-1)i++;return[e,i]}function Wn(){gn>0&&(wt.forEach(((t,i)=>{if(i>0&&t.show&&(jn(i,!1),jn(i,!0),null==t._paths)){Pn!=t.alpha&&($.globalAlpha=Pn=t.alpha);let s=2==r?[0,e[i][0].length-1]:Hn(e[i]);t._paths=t.paths(n,i,s[0],s[1]),1!=Pn&&($.globalAlpha=Pn=1)}})),wt.forEach(((t,e)=>{if(e>0&&t.show){Pn!=t.alpha&&($.globalAlpha=Pn=t.alpha),null!=t._paths&&or(e,!1);{let i=null!=t._paths?t._paths.gaps:null,r=t.points.show(n,e,yn,vn,i),s=t.points.filter(n,e,r,i);(r||s)&&(t.points._paths=t.points.paths(n,e,yn,vn,s),or(e,!0))}1!=Pn&&($.globalAlpha=Pn=1),Ms("drawSeries",e)}})))}function jn(t,e){let i=e?wt[t].points:wt[t];i._stroke=i.stroke(n,t),i._fill=i.fill(n,t)}function or(t,e){let i=e?wt[t].points:wt[t],{stroke:n,fill:r,clip:s,flags:o,_stroke:a=i._stroke,_fill:l=i._fill,_width:u=i.width}=i._paths;u=ie(u*V,3);let c=null,h=u%2/2;e&&null==l&&(l=u>0?"#fff":a);let d=1==i.pxAlign&&h>0;if(d&&$.translate(h,h),!e){let t=Ke-u/2,e=Ze-u/2,i=ti+u,n=ei+u;c=new Path2D,c.rect(t,e,i,n)}e?ur(a,u,i.dash,i.cap,l,n,r,o,s):ar(t,a,u,i.dash,i.cap,l,n,r,o,c,s),d&&$.translate(-h,-h)}function ar(t,i,r,s,o,a,l,u,c,h,d){let f=!1;0!=c&&At.forEach(((p,m)=>{if(p.series[0]==t){let t,_=wt[p.series[1]],g=e[p.series[1]],y=(_._paths||oe).band;ue(y)&&(y=1==p.dir?y[0]:y[1]);let v=null;_.show&&y&&Tt(g,yn,vn)?(v=p.fill(n,m)||a,t=_._paths.clip):y=null,ur(i,r,s,o,v,l,u,c,h,d,t,y),f=!0}})),f||ur(i,r,s,o,a,l,u,c,h,d)}const lr=hn|dn;function ur(t,e,i,n,r,s,o,a,l,u,c,h){Nn(t,e,i,n,r),(l||u||h)&&($.save(),l&&$.clip(l),u&&$.clip(u)),h?(a&lr)==lr?($.clip(h),c&&$.clip(c),hr(r,o),cr(t,s,e)):a&dn?(hr(r,o),$.clip(h),cr(t,s,e)):a&hn&&($.save(),$.clip(h),c&&$.clip(c),hr(r,o),$.restore(),cr(t,s,e)):(hr(r,o),cr(t,s,e)),(l||u||h)&&$.restore()}function cr(t,e,i){i>0&&(e instanceof Map?e.forEach(((t,e)=>{$.strokeStyle=xn=e,$.stroke(t)})):null!=e&&t&&$.stroke(e))}function hr(t,e){e instanceof Map?e.forEach(((t,e)=>{$.fillStyle=Sn=e,$.fill(t)})):null!=e&&t&&$.fill(e)}function dr(t,e,i,r){let s,o=bt[t];if(r<=0)s=[0,0];else{let a=o._space=o.space(n,t,e,i,r),l=o._incrs=o.incrs(n,t,e,i,r,a);s=nr(e,i,l,r,a)}return o._found=s}function fr(t,e,i,n,r,s,o,a,l,u){let c=o%2/2;1==lt&&$.translate(c,c),Nn(a,o,l,u,a),$.beginPath();let h,d,f,p,m=r+(0==n||3==n?-s:s);0==i?(d=r,p=m):(h=r,f=m);for(let _=0;_<t.length;_++)null!=e[_]&&(0==i?h=f=t[_]:d=p=t[_],$.moveTo(h,d),$.lineTo(f,p));$.stroke(),1==lt&&$.translate(-c,-c)}function pr(t){let e=!0;return bt.forEach(((i,r)=>{if(!i.show)return;let s=Dt[i.scale];if(null==s.min)return void(i._show&&(e=!1,i._show=!1,gr(!1)));i._show||(e=!1,i._show=!0,gr(!1));let o=i.side,a=o%2,{min:l,max:u}=s,[c,h]=dr(r,l,u,0==a?We:ze);if(0==h)return;let d=2==s.distr,f=i._splits=i.splits(n,r,l,u,c,h,d),p=2==s.distr?f.map((t=>On[t])):f,m=2==s.distr?On[f[1]]-On[f[0]]:c,_=i._values=i.values(n,i.filter(n,p,r,h,m),r,h,m);i._rotate=2==o?i.rotate(n,_,r,h):0;let g=i._size;i._size=Lt(i.size(n,_,r,t)),null!=g&&i._size!=g&&(e=!1)})),e}function mr(t){let e=!0;return pn.forEach(((i,r)=>{let s=i(n,r,nn,t);s!=_n[r]&&(e=!1),_n[r]=s})),e}function _r(){for(let t=0;t<bt.length;t++){let e=bt[t];if(!e.show||!e._show)continue;let i,r,s=e.side,o=s%2,a=e.stroke(n,t),l=0==s||3==s?-1:1;if(e.label){let t=e.labelGap*l,n=Ot((e._lpos+t)*V);Yn(e.labelFont[0],a,"center",2==s?k:E),$.save(),1==o?(i=r=0,$.translate(n,Ot(Ze+ei/2)),$.rotate((3==s?-Rt:Rt)/2)):(i=Ot(Ke+ti/2),r=n),$.fillText(e.label,i,r),$.restore()}let[u,c]=e._found;if(0==c)continue;let h=Dt[e.scale],d=0==o?ti:ei,f=0==o?Ke:Ze,p=Ot(e.gap*V),m=e._splits,_=2==h.distr?m.map((t=>On[t])):m,g=2==h.distr?On[m[1]]-On[m[0]]:u,y=e.ticks,v=e.border,w=y.show?Ot(y.size*V):0,b=e._rotate*-Rt/180,x=ut(e._pos*V),S=(w+p)*l,T=x+S;r=0==o?T:0,i=1==o?T:0;let D=e.font[0],A=1==e.align?R:2==e.align?M:b>0?R:b<0?M:0==o?"center":3==s?M:R,P=b||1==o?"middle":2==s?k:E;Yn(D,a,A,P);let O=e.font[1]*e.lineGap,L=m.map((t=>ut(H(t,h,d,f)))),C=e._values;for(let t=0;t<C.length;t++){let e=C[t];if(null!=e){0==o?i=L[t]:r=L[t],e=""+e;let n=-1==e.indexOf("\n")?[e]:e.split(/\n/gm);for(let t=0;t<n.length;t++){let e=n[t];b?($.save(),$.translate(i,r+t*O),$.rotate(b),$.fillText(e,0,0),$.restore()):$.fillText(e,i,r+t*O)}}}y.show&&fr(L,y.filter(n,_,t,c,g),o,s,x,w,ie(y.width*V,3),y.stroke(n,t),y.dash,y.cap);let I=e.grid;I.show&&fr(L,I.filter(n,_,t,c,g),o,0==o?2:1,0==o?Ze:Ke,0==o?ei:ti,ie(I.width*V,3),I.stroke(n,t),I.dash,I.cap),v.show&&fr([x],[1],0==o?1:0,0==o?1:2,1==o?Ze:Ke,1==o?ei:ti,ie(v.width*V,3),v.stroke(n,t),v.dash,v.cap)}Ms("drawAxes")}function gr(t){wt.forEach(((e,i)=>{i>0&&(e._paths=null,t&&(1==r?(e.min=null,e.max=null):e.facets.forEach((t=>{t.min=null,t.max=null}))))}))}let yr,vr,wr,br,xr,Sr,Tr,Dr,Ar,kr,Er,Rr,Mr=!1,Pr=!1,Or=[];function Lr(){Pr=!1;for(let t=0;t<Or.length;t++)Ms(...Or[t]);Or.length=0}function Cr(){Mr||(Se(Nr),Mr=!0)}function Ir(t,e=!1){Mr=!0,Pr=e,t(n),Nr(),e&&Or.length>0&&queueMicrotask(Lr)}function Nr(){if(ii&&(Bn(),ii=!1),fi&&(Ti(),fi=!1),ni){if(Z(rt,R,Ge),Z(rt,k,Ue),Z(rt,D,We),Z(rt,A,ze),Z(ot,R,Ge),Z(ot,k,Ue),Z(ot,D,We),Z(ot,A,ze),Z(it,D,Be),Z(it,A,He),Q.width=Ot(Be*V),Q.height=Ot(He*V),bt.forEach((({_el:t,_show:e,_size:i,_pos:n,side:r})=>{if(null!=t)if(e){let e=3===r||0===r?i:0,s=r%2==1;Z(t,s?"left":"top",n-e),Z(t,s?"width":"height",i),Z(t,s?"top":"left",s?Ue:Ge),Z(t,s?"height":"width",s?ze:We),K(t,f)}else J(t,f)})),xn=Sn=Tn=An=kn=En=Rn=Mn=Dn=null,Pn=1,ps(!0),Ge!=Ve||Ue!=Qe||We!=$e||ze!=Je){gr(!1);let t=We/$e,e=ze/Je;if(Ri.show&&!gi&&Ri.left>=0){Ri.left*=t,Ri.top*=e,wr&&nt(wr,Ot(Ri.left),0,We,ze),br&&nt(br,0,Ot(Ri.top),We,ze);for(let i=1;i<ji.length;i++)zi[i]*=t,Gi[i]*=e,nt(ji[i],te(zi[i],1),te(Gi[i],1),We,ze)}if(Wr.show&&!yi&&Wr.left>=0&&Wr.width>0){Wr.left*=t,Wr.width*=t,Wr.top*=e,Wr.height*=e;for(let t in gs)Z(Xr,t,Wr[t])}Ve=Ge,Qe=Ue,$e=We,Je=ze}Ms("setSize"),ni=!1}Be>0&&He>0&&($.clearRect(0,0,Q.width,Q.height),Ms("drawClear"),Pt.forEach((t=>t())),Ms("draw")),Wr.show&&yi&&(jr(Wr),yi=!1),Ri.show&&gi&&(ds(null,!0,!1),gi=!1),we.show&&we.live&&wi&&(cs(),wi=!1),j||(j=!0,n.status=1,Ms("ready")),Ln=!1,Mr=!1}function Yr(t,i){let r=Dt[t];if(null==r.from){if(0==gn){let e=r.range(n,i.min,i.max,t);i.min=e[0],i.max=e[1]}if(i.min>i.max){let t=i.min;i.min=i.max,i.max=t}if(gn>1&&null!=i.min&&null!=i.max&&i.max-i.min<1e-16)return;t==kt&&2==r.distr&&gn>0&&(i.min=dt(i.min,e[0]),i.max=dt(i.max,e[0]),i.min==i.max&&i.max++),Kt[t]=i,ii=!0,Cr()}}n.batch=Ir,n.redraw=(t,e)=>{fi=e||!1,!1!==t?Gr(kt,Ft.min,Ft.max):Cr()},n.setScale=Yr;let qr=!1;const Fr=Ri.drag;let Br=Fr.x,Hr=Fr.y;Ri.show&&(Ri.x&&(yr=et(m,ot)),Ri.y&&(vr=et(_,ot)),0==Ft.ori?(wr=yr,br=vr):(wr=vr,br=yr),Er=Ri.left,Rr=Ri.top);const Wr=n.select=ge({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),Xr=Wr.show?et(p,Wr.over?ot:rt):null;function jr(t,e){if(Wr.show){for(let e in t)Wr[e]=t[e],e in gs&&Z(Xr,e,t[e]);!1!==e&&Ms("setSelect")}}function zr(t,e){let i=wt[t],n=be?Ee[t]:null;i.show?n&&K(n,f):(n&&J(n,f),ji.length>1&&nt(ji[t],-10,-10,We,ze))}function Gr(t,e,i){Yr(t,{min:e,max:i})}function Ur(t,e,i,s){null!=e.focus&&is(t),null!=e.show&&wt.forEach(((i,n)=>{n>0&&(t==n||null==t)&&(i.show=e.show,zr(n,e.show),2==r?(Gr(i.facets[0].scale,null,null),Gr(i.facets[1].scale,null,null)):Gr(i.scale,null,null),Cr())})),!1!==i&&Ms("setSeries",t,e),s&&Is("setSeries",n,t,e)}function Vr(t,e){ge(At[t],e)}function Qr(t,e){t.fill=zt(t.fill||null),t.dir=St(t.dir,-1),e=null==e?At.length:e,At.splice(e,0,t)}function $r(t){null==t?At.length=0:At.splice(t,1)}function Jr(t,e){wt[t].alpha=e,Ri.show&&ji[t]&&(ji[t].style.opacity=e),be&&Ee[t]&&(Ee[t].style.opacity=e)}let Kr,Zr,ts;n.setSelect=jr,n.setSeries=Ur,n.addBand=Qr,n.setBand=Vr,n.delBand=$r;const es={focus:!0};function is(t){if(t!=ts){let e=null==t,i=1!=Ci.alpha;wt.forEach(((n,s)=>{if(1==r||s>0){let r=e||0==s||s==t;n._focus=e?null:r,i&&Jr(s,r?1:Ci.alpha)}})),ts=t,i&&Cr()}}function ns(t,e,i){let n=Dt[e];i&&(t=t/V-(1==n.ori?Ue:Ge));let r=We;1==n.ori&&(r=ze,t=r-t),-1==n.dir&&(t=r-t);let s=n._min,o=n._max,a=t/r,l=s+(o-s)*a,u=n.distr;return 3==u?Nt(10,l):4==u?Bt(l,n.asinh):l}function rs(t,i){let n=ns(t,kt,i);return dt(n,e[0],yn,vn)}function ss(t,e){Z(Xr,R,Wr.left=t),Z(Xr,D,Wr.width=e)}function os(t,e){Z(Xr,k,Wr.top=t),Z(Xr,A,Wr.height=e)}be&&Ii&&qe(Y,Te,(t=>{Ri._lock||(Oi(t),null!=ts&&Ur(null,es,!0,Os.setSeries))})),n.valToIdx=t=>dt(t,e[0]),n.posToIdx=rs,n.posToVal=ns,n.valToPos=(t,e,i)=>0==Dt[e].ori?F(t,Dt[e],i?ti:We,i?Ke:0):B(t,Dt[e],i?ei:ze,i?Ze:0),n.setCursor=(t,e,i)=>{Er=t.left,Rr=t.top,ds(null,e,i)};let as=0==Ft.ori?ss:os,ls=1==Ft.ori?ss:os;function us(){if(be&&we.live)for(let t=2==r?1:0;t<wt.length;t++){if(0==t&&Me)continue;let e=we.values[t],i=0;for(let n in e)Re[t][i++].firstChild.nodeValue=e[n]}}function cs(t,e){null!=t&&(t.idxs?t.idxs.forEach(((t,e)=>{ve[e]=t})):he(t.idx)||ve.fill(t.idx),we.idx=ve[0]);for(let i=0;i<wt.length;i++)(i>0||1==r&&!Me)&&hs(i,ve[i]);be&&we.live&&us(),wi=!1,!1!==e&&Ms("setLegend")}function hs(t,i){var r;let s,o=wt[t],a=0==t&&2==Xt?On:e[t];Me?s=null!==(r=o.values(n,t,i))&&void 0!==r?r:Pe:(s=o.value(n,null==i?null:a[i],t,i),s=null==s?Pe:{_:s}),we.values[t]=s}function ds(t,i,s){let o;Ar=Er,kr=Rr,[Er,Rr]=Ri.move(n,Er,Rr),Ri.left=Er,Ri.top=Rr,Ri.show&&(wr&&nt(wr,Ot(Er),0,We,ze),br&&nt(br,0,Ot(Rr),We,ze));let a=yn>vn;Kr=Wt;let l=0==Ft.ori?We:ze,u=1==Ft.ori?We:ze;if(Er<0||0==gn||a){o=Ri.idx=null;for(let t=0;t<wt.length;t++)t>0&&ji.length>1&&nt(ji[t],-10,-10,We,ze);Ii&&Ur(null,es,!0,null==t&&Os.setSeries),we.live&&(ve.fill(o),wi=!0)}else{let t,i,s;1==r&&(t=0==Ft.ori?Er:Rr,i=ns(t,kt),o=Ri.idx=dt(i,e[0],yn,vn),s=Gt(e[0][o],Ft,l,0));for(let a=2==r?1:0;a<wt.length;a++){let t=wt[a],c=ve[a],h=null==c?null:1==r?e[a][c]:e[a][1][c],d=Ri.dataIdx(n,a,o,i),f=null==d?null:1==r?e[a][d]:e[a][1][d];wi=wi||f!=h||d!=c,ve[a]=d;let p=d==o?s:Gt(1==r?e[0][d]:e[a][0][d],Ft,l,0);if(a>0&&t.show){let e,i,s=null==f?-10:Ut(f,1==r?Dt[t.scale]:Dt[t.facets[1].scale],u,0);if(Ii&&null!=f){let e=1==Ft.ori?Er:Rr,i=Mt(Ci.dist(n,a,d,s,e));if(i<Kr){let n=Ci.bias;if(0!=n){let r=ns(e,t.scale),s=f>=0?1:-1,o=r>=0?1:-1;o==s&&(1==o?1==n?f>=r:f<=r:1==n?f<=r:f>=r)&&(Kr=i,Zr=a)}else Kr=i,Zr=a}}if(0==Ft.ori?(e=p,i=s):(e=s,i=p),wi&&ji.length>1){st(ji[a],Ri.points.fill(n,a),Ri.points.stroke(n,a));let t,r,s,o,l=!0,u=Ri.points.bbox;if(null!=u){l=!1;let e=u(n,a);s=e.left,o=e.top,t=e.width,r=e.height}else s=e,o=i,t=r=Ri.points.size(n,a);at(ji[a],t,r,l),zi[a]=s,Gi[a]=o,nt(ji[a],te(s,1),te(o,1),We,ze)}}}}if(Wr.show&&qr)if(null!=t){let[e,i]=Os.scales,[n,r]=Os.match,[s,o]=t.cursor.sync.scales,a=t.cursor.drag;if(Br=a._x,Hr=a._y,Br||Hr){let a,c,h,d,f,{left:p,top:m,width:_,height:g}=t.select,y=t.scales[e].ori,v=t.posToVal,w=null!=e&&n(e,s),b=null!=i&&r(i,o);w&&Br?(0==y?(a=p,c=_):(a=m,c=g),h=Dt[e],d=Gt(v(a,s),h,l,0),f=Gt(v(a+c,s),h,l,0),as(Ct(d,f),Mt(f-d))):as(0,l),b&&Hr?(1==y?(a=p,c=_):(a=m,c=g),h=Dt[i],d=Ut(v(a,o),h,u,0),f=Ut(v(a+c,o),h,u,0),ls(Ct(d,f),Mt(f-d))):ls(0,u)}else ys()}else{let t=Mt(Ar-xr),e=Mt(kr-Sr);if(1==Ft.ori){let i=t;t=e,e=i}Br=Fr.x&&t>=Fr.dist,Hr=Fr.y&&e>=Fr.dist;let i,n,r=Fr.uni;null!=r?Br&&Hr&&(Br=t>=r,Hr=e>=r,Br||Hr||(e>t?Hr=!0:Br=!0)):Fr.x&&Fr.y&&(Br||Hr)&&(Br=Hr=!0),Br&&(0==Ft.ori?(i=Tr,n=Er):(i=Dr,n=Rr),as(Ct(i,n),Mt(n-i)),Hr||ls(0,u)),Hr&&(1==Ft.ori?(i=Tr,n=Er):(i=Dr,n=Rr),ls(Ct(i,n),Mt(n-i)),Br||as(0,l)),Br||Hr||(as(0,0),ls(0,0))}if(Fr._x=Br,Fr._y=Hr,null==t){if(s){if(null!=Ls){let[t,e]=Os.scales;Os.values[0]=null!=t?ns(0==Ft.ori?Er:Rr,t):null,Os.values[1]=null!=e?ns(1==Ft.ori?Er:Rr,e):null}Is(L,n,Er,Rr,We,ze,o)}if(Ii){let t=s&&Os.setSeries,e=Ci.prox;null==ts?Kr<=e&&Ur(Zr,es,!0,t):Kr>e?Ur(null,es,!0,t):Zr!=ts&&Ur(Zr,es,!0,t)}}wi&&(we.idx=o,cs()),!1!==i&&Ms("setCursor")}n.setLegend=cs;let fs=null;function ps(t=!1){t?fs=null:(fs=ot.getBoundingClientRect(),Ms("syncRect",fs))}function ms(t,e,i,n,r,s,o){Ri._lock||qr&&null!=t&&0==t.movementX&&0==t.movementY||(_s(t,e,i,n,r,s,o,!1,null!=t),null!=t?ds(null,!0,!0):ds(e,!0,!1))}function _s(t,e,i,r,s,o,a,l,u){if(null==fs&&ps(!1),Oi(t),null!=t)i=t.clientX-fs.left,r=t.clientY-fs.top;else{if(i<0||r<0)return Er=-10,void(Rr=-10);let[t,n]=Os.scales,a=e.cursor.sync,[l,u]=a.values,[c,h]=a.scales,[d,f]=Os.match,p=e.axes[0].side%2==1,m=0==Ft.ori?We:ze,_=1==Ft.ori?We:ze,g=p?o:s,y=p?s:o,v=p?r:i,w=p?i:r;if(i=null!=c?d(t,c)?H(l,Dt[t],m,0):-10:m*(v/g),r=null!=h?f(n,h)?H(u,Dt[n],_,0):-10:_*(w/y),1==Ft.ori){let t=i;i=r,r=t}}u&&((i<=1||i>=We-1)&&(i=Zt(i,We)),(r<=1||r>=ze-1)&&(r=Zt(r,ze))),l?(xr=i,Sr=r,[Tr,Dr]=Ri.move(n,i,r)):(Er=i,Rr=r)}Object.defineProperty(n,"rect",{get(){return null==fs&&ps(!1),fs}});const gs={width:0,height:0,left:0,top:0};function ys(){jr(gs,!1)}let vs,ws,bs,xs;function Ss(t,e,i,r,s,o,a){qr=!0,Br=Hr=Fr._x=Fr._y=!1,_s(t,e,i,r,s,o,a,!0,!1),null!=t&&(qe(I,z,Ts,!1),Is(C,n,Tr,Dr,We,ze,null));let{left:l,top:u,width:c,height:h}=Wr;vs=l,ws=u,bs=c,xs=h,ys()}function Ts(t,e,i,r,s,o,a){qr=Fr._x=Fr._y=!1,_s(t,e,i,r,s,o,a,!1,!0);let{left:l,top:u,width:c,height:h}=Wr,d=c>0||h>0,f=vs!=l||ws!=u||bs!=c||xs!=h;if(d&&f&&jr(Wr),Fr.setScale&&d&&f){let t=l,e=c,i=u,n=h;if(1==Ft.ori&&(t=u,e=h,i=l,n=c),Br&&Gr(kt,ns(t,kt),ns(t+e,kt)),Hr)for(let r in Dt){let t=Dt[r];r!=kt&&null==t.from&&t.min!=Wt&&Gr(r,ns(i+n,r),ns(i,r))}ys()}else Ri.lock&&(Ri._lock=!Ri._lock,Ri._lock||ds(null,!0,!1));null!=t&&(Fe(I,z),Is(I,n,Er,Rr,We,ze,null))}function Ds(t,e,i,n,r,s,o){if(Ri._lock)return;Oi(t);let a=qr;if(qr){let t,e,i=!0,n=!0,r=10;0==Ft.ori?(t=Br,e=Hr):(t=Hr,e=Br),t&&e&&(i=Er<=r||Er>=We-r,n=Rr<=r||Rr>=ze-r),t&&i&&(Er=Er<Tr?0:We),e&&n&&(Rr=Rr<Dr?0:ze),ds(null,!0,!0),qr=!1}Er=-10,Rr=-10,ds(null,!0,!0),a&&(qr=a)}function As(t,e,i,r,s,o,a){Ri._lock||(Oi(t),In(),ys(),null!=t&&Is(q,n,Er,Rr,We,ze,null))}function ks(){bt.forEach(sr),bi(n.width,n.height,!0)}ct(W,G,ks);const Es={};Es.mousedown=Ss,Es.mousemove=ms,Es.mouseup=Ts,Es.dblclick=As,Es["setSeries"]=(t,e,i,r)=>{let s=Os.match[2];i=s(n,e,i),-1!=i&&Ur(i,r,!0,!1)},Ri.show&&(qe(C,ot,Ss),qe(L,ot,ms),qe(N,ot,(t=>{Oi(t),ps(!1)})),qe(Y,ot,Ds),qe(q,ot,As),Xn.add(n),n.syncRect=ps);const Rs=n.hooks=t.hooks||{};function Ms(t,e,i){Pr?Or.push([t,e,i]):t in Rs&&Rs[t].forEach((t=>{t.call(null,n,e,i)}))}(t.plugins||[]).forEach((t=>{for(let e in t.hooks)Rs[e]=(Rs[e]||[]).concat(t.hooks[e])}));const Ps=(t,e,i)=>i,Os=ge({key:null,setSeries:!1,filters:{pub:$t,sub:$t},scales:[kt,wt[1]?wt[1].scale:null],match:[Jt,Jt,Ps],values:[null,null]},Ri.sync);2==Os.match.length&&Os.match.push(Ps),Ri.sync=Os;const Ls=Os.key,Cs=cn(Ls);function Is(t,e,i,n,r,s,o){Os.filters.pub(t,e,i,n,r,s,o)&&Cs.pub(t,e,i,n,r,s,o)}function Ns(t,e,i,n,r,s,o){Os.filters.sub(t,e,i,n,r,s,o)&&Es[t](null,e,i,n,r,s,o)}function Ys(){var t;Cs.unsub(n),Xn.delete(n),Ye.clear(),ht(W,G,ks),U.remove(),null===(t=Te)||void 0===t||t.remove(),Ms("destroy")}function qs(){Ms("init",t,e),Cn(e||t.data,!1),Kt[kt]?Yr(kt,Kt[kt]):In(),yi=Wr.show&&(Wr.width>0||Wr.height>0),gi=wi=!0,bi(t.width,t.height)}return Cs.sub(n),n.pub=Ns,n.destroy=Ys,wt.forEach(Vi),bt.forEach(un),i?i instanceof HTMLElement?(i.appendChild(U),qs()):i(n,qs):qs(),n}or.assign=ge,or.fmtNum=kt,or.rangeNum=xt,or.rangeLog=_t,or.rangeAsinh=gt,or.orient=fn,or.pxRatio=V,or.join=xe,or.fmtDate=Ne,or.tzDate=qe,or.sync=cn;{or.addGap=yn,or.clipGaps=gn;let t=or.paths={points:On};t.linear=Nn,t.stepped=Yn,t.bars=Fn,t.spline=Hn}},5914:t=>{t.exports=function(t,e,i,n,r){var s,o;if(void 0===n)n=0;else if(n|=0,n<0||n>=t.length)throw new RangeError("invalid lower bound");if(void 0===r)r=t.length-1;else if(r|=0,r<n||r>=t.length)throw new RangeError("invalid upper bound");while(n<=r)if(s=n+(r-n>>>1),o=+i(t[s],e,s,t),o<0)n=s+1;else{if(!(o>0))return s;r=s-1}return~n}},5859:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>l});var n=i(6758),r=i.n(n),s=i(935),o=i.n(s),a=o()(r());a.push([t.id,'.uplot,.uplot *,.uplot :after,.uplot :before{box-sizing:border-box}.uplot{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;width:-moz-min-content;width:min-content}.u-title{text-align:center;font-size:18px;font-weight:700}.u-wrap{position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.u-over,.u-under{position:absolute}.u-under{overflow:hidden}.uplot canvas{display:block;position:relative;width:100%;height:100%}.u-axis{position:absolute}.u-legend{font-size:14px;margin:auto;text-align:center}.u-inline{display:block}.u-inline *{display:inline-block}.u-inline tr{margin-right:16px}.u-legend th{font-weight:600}.u-legend th>*{vertical-align:middle;display:inline-block}.u-legend .u-marker{width:1em;height:1em;margin-right:4px;background-clip:padding-box!important}.u-inline.u-live th:after{content:":";vertical-align:middle}.u-inline:not(.u-live) .u-value{display:none}.u-series>*{padding:4px}.u-series th{cursor:pointer}.u-legend .u-off>*{opacity:.3}.u-select{background:rgba(0,0,0,.07)}.u-cursor-x,.u-cursor-y,.u-select{position:absolute;pointer-events:none}.u-cursor-x,.u-cursor-y{left:0;top:0;will-change:transform}.u-hz .u-cursor-x,.u-vt .u-cursor-y{height:100%;border-right:1px dashed #607d8b}.u-hz .u-cursor-y,.u-vt .u-cursor-x{width:100%;border-bottom:1px dashed #607d8b}.u-cursor-pt{position:absolute;top:0;left:0;border-radius:50%;border:0 solid;pointer-events:none;will-change:transform;background-clip:padding-box!important}.u-axis.u-off,.u-cursor-pt.u-off,.u-cursor-x.u-off,.u-cursor-y.u-off,.u-select.u-off{display:none}',""]);const l=a},8893:(t,e,i)=>{"use strict";i.d(e,{A:()=>kn});
|
2
|
-
/**
|
3
|
-
* Muuri v0.9.5
|
4
|
-
* https://muuri.dev/
|
5
|
-
* Copyright (c) 2015-present, Haltu Oy
|
6
|
-
* Released under the MIT license
|
7
|
-
* https://github.com/haltu/muuri/blob/master/LICENSE.md
|
8
|
-
* @license MIT
|
9
|
-
*
|
10
|
-
* Muuri Packer
|
11
|
-
* Copyright (c) 2016-present, Niklas Rämö <inramo@gmail.com>
|
12
|
-
* @license MIT
|
13
|
-
*
|
14
|
-
* Muuri Ticker / Muuri Emitter / Muuri Dragger
|
15
|
-
* Copyright (c) 2018-present, Niklas Rämö <inramo@gmail.com>
|
16
|
-
* @license MIT
|
17
|
-
*
|
18
|
-
* Muuri AutoScroller
|
19
|
-
* Copyright (c) 2019-present, Niklas Rämö <inramo@gmail.com>
|
20
|
-
* @license MIT
|
21
|
-
*/
|
22
|
-
var n={},r="function"===typeof Map?new Map:null,s="swap",o="move",a="synchronize",l="layoutStart",u="layoutEnd",c="layoutAbort",h="add",d="remove",f="showStart",p="showEnd",m="hideStart",_="hideEnd",g="filter",y="sort",v="move",w="send",b="beforeSend",x="receive",S="beforeReceive",T="dragInit",D="dragStart",A="dragMove",k="dragScroll",E="dragEnd",R="dragReleaseStart",M="dragReleaseEnd",P="destroy",O="ontouchstart"in window,L=!!window.PointerEvent,C=!!window.navigator.msPointerEnabled,I=16777216;function N(){this._events={},this._queue=[],this._counter=0,this._clearOnEmit=!1}N.prototype.on=function(t,e){if(!this._events||!t||!e)return this;var i=this._events[t];return i||(i=this._events[t]=[]),i.push(e),this},N.prototype.off=function(t,e){if(!this._events||!t||!e)return this;var i,n=this._events[t];if(!n||!n.length)return this;while(-1!==(i=n.indexOf(e)))n.splice(i,1);return this},N.prototype.clear=function(t){if(!this._events||!t)return this;var e=this._events[t];return e&&(e.length=0,delete this._events[t]),this},N.prototype.emit=function(t){if(!this._events||!t)return this._clearOnEmit=!1,this;var e=this._events[t];if(!e||!e.length)return this._clearOnEmit=!1,this;var i,n=this._queue,r=n.length,s=arguments.length-1;s>3&&(i=[],i.push.apply(i,arguments),i.shift()),n.push.apply(n,e),this._clearOnEmit&&(e.length=0,this._clearOnEmit=!1),++this._counter;for(var o=r,a=n.length;o<a;o++)if(0===s?n[o]():1===s?n[o](arguments[1]):2===s?n[o](arguments[1],arguments[2]):3===s?n[o](arguments[1],arguments[2],arguments[3]):n[o].apply(null,i),!this._events)return this;return--this._counter,this._counter||(n.length=0),this},N.prototype.burst=function(){return this._events?(this._clearOnEmit=!0,this.emit.apply(this,arguments),this):this},N.prototype.countListeners=function(t){if(!this._events)return 0;var e=this._events[t];return e?e.length:0},N.prototype.destroy=function(){return this._events?(this._queue.length=this._counter=0,this._events=null,this):this};var Y=L?"pointerout":C?"MSPointerOut":"",q=100;function F(t){Y&&(this._dragger=t,this._timeout=null,this._outEvent=null,this._isActive=!1,this._addBehaviour=this._addBehaviour.bind(this),this._removeBehaviour=this._removeBehaviour.bind(this),this._onTimeout=this._onTimeout.bind(this),this._resetData=this._resetData.bind(this),this._onStart=this._onStart.bind(this),this._onOut=this._onOut.bind(this),this._dragger.on("start",this._onStart))}F.prototype._addBehaviour=function(){this._isActive||(this._isActive=!0,this._dragger.on("move",this._resetData),this._dragger.on("cancel",this._removeBehaviour),this._dragger.on("end",this._removeBehaviour),window.addEventListener(Y,this._onOut))},F.prototype._removeBehaviour=function(){this._isActive&&(this._dragger.off("move",this._resetData),this._dragger.off("cancel",this._removeBehaviour),this._dragger.off("end",this._removeBehaviour),window.removeEventListener(Y,this._onOut),this._resetData(),this._isActive=!1)},F.prototype._resetData=function(){window.clearTimeout(this._timeout),this._timeout=null,this._outEvent=null},F.prototype._onStart=function(t){"mouse"!==t.pointerType&&this._addBehaviour()},F.prototype._onOut=function(t){this._dragger._getTrackedTouch(t)&&(this._resetData(),this._outEvent=t,this._timeout=window.setTimeout(this._onTimeout,q))},F.prototype._onTimeout=function(){var t=this._outEvent;this._resetData(),this._dragger.isActive()&&this._dragger._onCancel(t)},F.prototype.destroy=function(){Y&&(this._dragger.off("start",this._onStart),this._removeBehaviour())};var B=["","webkit","moz","ms","o","Webkit","Moz","MS","O"],H={};function W(t,e){var i=H[e]||"";if(i)return i;var n=e[0].toUpperCase()+e.slice(1),r=0;while(r<B.length){if(i=B[r]?B[r]+n:e,i in t)return H[e]=i,i;++r}return""}function X(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(i){}return t}var j=window.navigator.userAgent.toLowerCase(),z=j.indexOf("edge")>-1,G=j.indexOf("trident")>-1,U=j.indexOf("firefox")>-1,V=j.indexOf("android")>-1,Q=!!X()&&{passive:!0},$="touchAction",J=W(document.documentElement.style,$),K="auto";function Z(t,e){this._element=t,this._emitter=new N,this._isDestroyed=!1,this._cssProps={},this._touchAction="",this._isActive=!1,this._pointerId=null,this._startTime=0,this._startX=0,this._startY=0,this._currentX=0,this._currentY=0,this._onStart=this._onStart.bind(this),this._onMove=this._onMove.bind(this),this._onCancel=this._onCancel.bind(this),this._onEnd=this._onEnd.bind(this),this._edgeHack=null,(z||G)&&(L||C)&&(this._edgeHack=new F(this)),this.setCssProps(e),this._touchAction||this.setTouchAction(K),t.addEventListener("dragstart",Z._preventDefault,!1),t.addEventListener(Z._inputEvents.start,this._onStart,Q)}Z._pointerEvents={start:"pointerdown",move:"pointermove",cancel:"pointercancel",end:"pointerup"},Z._msPointerEvents={start:"MSPointerDown",move:"MSPointerMove",cancel:"MSPointerCancel",end:"MSPointerUp"},Z._touchEvents={start:"touchstart",move:"touchmove",cancel:"touchcancel",end:"touchend"},Z._mouseEvents={start:"mousedown",move:"mousemove",cancel:"",end:"mouseup"},Z._inputEvents=function(){return O?Z._touchEvents:L?Z._pointerEvents:C?Z._msPointerEvents:Z._mouseEvents}(),Z._emitter=new N,Z._emitterEvents={start:"start",move:"move",end:"end",cancel:"cancel"},Z._activeInstances=[],Z._preventDefault=function(t){t.preventDefault&&!1!==t.cancelable&&t.preventDefault()},Z._activateInstance=function(t){var e=Z._activeInstances.indexOf(t);e>-1||(Z._activeInstances.push(t),Z._emitter.on(Z._emitterEvents.move,t._onMove),Z._emitter.on(Z._emitterEvents.cancel,t._onCancel),Z._emitter.on(Z._emitterEvents.end,t._onEnd),1===Z._activeInstances.length&&Z._bindListeners())},Z._deactivateInstance=function(t){var e=Z._activeInstances.indexOf(t);-1!==e&&(Z._activeInstances.splice(e,1),Z._emitter.off(Z._emitterEvents.move,t._onMove),Z._emitter.off(Z._emitterEvents.cancel,t._onCancel),Z._emitter.off(Z._emitterEvents.end,t._onEnd),Z._activeInstances.length||Z._unbindListeners())},Z._bindListeners=function(){window.addEventListener(Z._inputEvents.move,Z._onMove,Q),window.addEventListener(Z._inputEvents.end,Z._onEnd,Q),Z._inputEvents.cancel&&window.addEventListener(Z._inputEvents.cancel,Z._onCancel,Q)},Z._unbindListeners=function(){window.removeEventListener(Z._inputEvents.move,Z._onMove,Q),window.removeEventListener(Z._inputEvents.end,Z._onEnd,Q),Z._inputEvents.cancel&&window.removeEventListener(Z._inputEvents.cancel,Z._onCancel,Q)},Z._getEventPointerId=function(t){return"number"===typeof t.pointerId?t.pointerId:t.changedTouches?t.changedTouches[0]?t.changedTouches[0].identifier:null:1},Z._getTouchById=function(t,e){if("number"===typeof t.pointerId)return t.pointerId===e?t:null;if(t.changedTouches){for(var i=0;i<t.changedTouches.length;i++)if(t.changedTouches[i].identifier===e)return t.changedTouches[i];return null}return t},Z._onMove=function(t){Z._emitter.emit(Z._emitterEvents.move,t)},Z._onCancel=function(t){Z._emitter.emit(Z._emitterEvents.cancel,t)},Z._onEnd=function(t){Z._emitter.emit(Z._emitterEvents.end,t)},Z.prototype._reset=function(){this._pointerId=null,this._startTime=0,this._startX=0,this._startY=0,this._currentX=0,this._currentY=0,this._isActive=!1,Z._deactivateInstance(this)},Z.prototype._createEvent=function(t,e){var i=this._getTrackedTouch(e);return{type:t,srcEvent:e,distance:this.getDistance(),deltaX:this.getDeltaX(),deltaY:this.getDeltaY(),deltaTime:t===Z._emitterEvents.start?0:this.getDeltaTime(),isFirst:t===Z._emitterEvents.start,isFinal:t===Z._emitterEvents.end||t===Z._emitterEvents.cancel,pointerType:e.pointerType||(e.touches?"touch":"mouse"),identifier:this._pointerId,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY,pageX:i.pageX,pageY:i.pageY,target:i.target}},Z.prototype._emit=function(t,e){this._emitter.emit(t,this._createEvent(t,e))},Z.prototype._getTrackedTouch=function(t){return null===this._pointerId?null:Z._getTouchById(t,this._pointerId)},Z.prototype._onStart=function(t){if(!this._isDestroyed&&null===this._pointerId&&(this._pointerId=Z._getEventPointerId(t),null!==this._pointerId)){var e=this._getTrackedTouch(t);this._startX=this._currentX=e.clientX,this._startY=this._currentY=e.clientY,this._startTime=Date.now(),this._isActive=!0,this._emit(Z._emitterEvents.start,t),this._isActive&&Z._activateInstance(this)}},Z.prototype._onMove=function(t){var e=this._getTrackedTouch(t);e&&(this._currentX=e.clientX,this._currentY=e.clientY,this._emit(Z._emitterEvents.move,t))},Z.prototype._onCancel=function(t){this._getTrackedTouch(t)&&(this._emit(Z._emitterEvents.cancel,t),this._reset())},Z.prototype._onEnd=function(t){this._getTrackedTouch(t)&&(this._emit(Z._emitterEvents.end,t),this._reset())},Z.prototype.isActive=function(){return this._isActive},Z.prototype.setTouchAction=function(t){this._touchAction=t,J&&(this._cssProps[J]="",this._element.style[J]=t),O&&(this._element.removeEventListener(Z._touchEvents.start,Z._preventDefault,!0),(this._element.style[J]!==t||U&&V)&&this._element.addEventListener(Z._touchEvents.start,Z._preventDefault,!0))},Z.prototype.setCssProps=function(t){if(t){var e,i,n=this._cssProps,r=this._element;for(e in n)r.style[e]=n[e],delete n[e];for(e in t)t[e]&&(e!==$?(i=W(r.style,e),i&&(n[i]="",r.style[i]=t[e])):this.setTouchAction(t[e]))}},Z.prototype.getDeltaX=function(){return this._currentX-this._startX},Z.prototype.getDeltaY=function(){return this._currentY-this._startY},Z.prototype.getDistance=function(){var t=this.getDeltaX(),e=this.getDeltaY();return Math.sqrt(t*t+e*e)},Z.prototype.getDeltaTime=function(){return this._startTime?Date.now()-this._startTime:0},Z.prototype.on=function(t,e){this._emitter.on(t,e)},Z.prototype.off=function(t,e){this._emitter.off(t,e)},Z.prototype.destroy=function(){if(!this._isDestroyed){var t=this._element;for(var e in this._edgeHack&&this._edgeHack.destroy(),this._reset(),this._emitter.destroy(),t.removeEventListener(Z._inputEvents.start,this._onStart,Q),t.removeEventListener("dragstart",Z._preventDefault,!1),t.removeEventListener(Z._touchEvents.start,Z._preventDefault,!0),this._cssProps)t.style[e]=this._cssProps[e],delete this._cssProps[e];this._element=null,this._isDestroyed=!0}};var tt=1e3/60,et=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return this.setTimeout((function(){t(Date.now())}),tt)}).bind(window);function it(t){this._nextStep=null,this._lanes=[],this._stepQueue=[],this._stepCallbacks={},this._step=this._step.bind(this);for(var e=0;e<t;e++)this._lanes.push(new nt)}function nt(){this.queue=[],this.indices={},this.callbacks={}}it.prototype._step=function(t){var e,i,n,r,s,o,a=this._lanes,l=this._stepQueue,u=this._stepCallbacks;for(this._nextStep=null,e=0;e<a.length;e++){for(r=a[e].queue,s=a[e].callbacks,o=a[e].indices,i=0;i<r.length;i++)n=r[i],n&&(l.push(n),u[n]=s[n],delete s[n],delete o[n]);r.length=0}for(e=0;e<l.length;e++)n=l[e],u[n]&&u[n](t),delete u[n];l.length=0},it.prototype.add=function(t,e,i){this._lanes[t].add(e,i),this._nextStep||(this._nextStep=et(this._step))},it.prototype.remove=function(t,e){this._lanes[t].remove(e)},nt.prototype.add=function(t,e){var i=this.indices[t];void 0!==i&&(this.queue[i]=void 0),this.queue.push(t),this.callbacks[t]=e,this.indices[t]=this.queue.length-1},nt.prototype.remove=function(t){var e=this.indices[t];void 0!==e&&(this.queue[e]=void 0,delete this.callbacks[t],delete this.indices[t])};var rt="layoutRead",st="layoutWrite",ot="visibilityRead",at="visibilityWrite",lt="dragStartRead",ut="dragStartWrite",ct="dragMoveRead",ht="dragMoveWrite",dt="dragScrollRead",ft="dragScrollWrite",pt="dragSortRead",mt="placeholderLayoutRead",_t="placeholderLayoutWrite",gt="placeholderResizeWrite",yt="autoScrollRead",vt="autoScrollWrite",wt="debounceRead",bt=0,xt=1,St=2,Tt=new it(3);function Dt(t,e,i){Tt.add(bt,rt+t,e),Tt.add(St,st+t,i)}function At(t){Tt.remove(bt,rt+t),Tt.remove(St,st+t)}function kt(t,e,i){Tt.add(bt,ot+t,e),Tt.add(St,at+t,i)}function Et(t){Tt.remove(bt,ot+t),Tt.remove(St,at+t)}function Rt(t,e,i){Tt.add(bt,lt+t,e),Tt.add(St,ut+t,i)}function Mt(t){Tt.remove(bt,lt+t),Tt.remove(St,ut+t)}function Pt(t,e,i){Tt.add(bt,ct+t,e),Tt.add(St,ht+t,i)}function Ot(t){Tt.remove(bt,ct+t),Tt.remove(St,ht+t)}function Lt(t,e,i){Tt.add(bt,dt+t,e),Tt.add(St,ft+t,i)}function Ct(t){Tt.remove(bt,dt+t),Tt.remove(St,ft+t)}function It(t,e){Tt.add(xt,pt+t,e)}function Nt(t){Tt.remove(xt,pt+t)}function Yt(t,e,i){Tt.add(bt,mt+t,e),Tt.add(St,_t+t,i)}function qt(t){Tt.remove(bt,mt+t),Tt.remove(St,_t+t)}function Ft(t,e){Tt.add(St,gt+t,e)}function Bt(t){Tt.remove(St,gt+t)}function Ht(t,e){Tt.add(bt,yt,t),Tt.add(St,vt,e)}function Wt(){Tt.remove(bt,yt),Tt.remove(St,vt)}function Xt(t,e){Tt.add(bt,wt+t,e)}function jt(t){Tt.remove(bt,wt+t)}var zt=1,Gt=2,Ut=4,Vt=8,Qt=zt|Vt,$t=zt|Ut,Jt=Gt|Vt,Kt=Gt|Ut,Zt="function";function te(t){return typeof t===Zt}var ee="function"===typeof WeakMap?new WeakMap:null;function ie(t,e){var i=ee&&ee.get(t);return i||(i=window.getComputedStyle(t,null),ee&&ee.set(t,i)),i.getPropertyValue(e)}function ne(t,e){return parseFloat(ie(t,e))||0}var re=document.documentElement,se=document.body,oe={value:0,offset:0};function ae(t){return t===window||t===re||t===se?window:t}function le(t){return t===window?t.pageXOffset:t.scrollLeft}function ue(t){return t===window?t.pageYOffset:t.scrollTop}function ce(t){return t===window?re.scrollWidth-re.clientWidth:t.scrollWidth-t.clientWidth}function he(t){return t===window?re.scrollHeight-re.clientHeight:t.scrollHeight-t.clientHeight}function de(t,e){if(e=e||{},t===window)e.width=re.clientWidth,e.height=re.clientHeight,e.left=0,e.right=e.width,e.top=0,e.bottom=e.height;else{var i=t.getBoundingClientRect(),n=t.clientLeft||ne(t,"border-left-width"),r=t.clientTop||ne(t,"border-top-width");e.width=t.clientWidth,e.height=t.clientHeight,e.left=i.left+n,e.right=e.left+e.width,e.top=i.top+r,e.bottom=e.top+e.height}return e}function fe(t){return t._drag._getGrid()._settings.dragAutoScroll}function pe(t){t._drag&&t._drag._prepareScroll()}function me(t){if(t._drag&&t._isActive){var e=t._drag;e._scrollDiffX=e._scrollDiffY=0,t._setTranslate(e._left,e._top)}}function _e(t,e,i,n){return oe.value=Math.min(n/2,t),oe.offset=Math.max(0,i+2*oe.value+n*e-n)/2,oe}function ge(){this.reset()}function ye(){this.element=null,this.requestX=null,this.requestY=null,this.scrollLeft=0,this.scrollTop=0}function ve(t,e){this.pool=[],this.createItem=t,this.releaseItem=e}function we(t,e){return!(t.left+t.width<=e.left||e.left+e.width<=t.left||t.top+t.height<=e.top||e.top+e.height<=t.top)}function be(t,e){if(!we(t,e))return 0;var i=Math.min(t.left+t.width,e.left+e.width)-Math.max(t.left,e.left),n=Math.min(t.top+t.height,e.top+e.height)-Math.max(t.top,e.top);return i*n}function xe(t,e){var i=be(t,e);if(!i)return 0;var n=Math.min(t.width,e.width)*Math.min(t.height,e.height);return i/n*100}ge.prototype.reset=function(){this.isActive&&this.onStop(),this.item=null,this.element=null,this.isActive=!1,this.isEnding=!1,this.direction=null,this.value=null,this.maxValue=0,this.threshold=0,this.distance=0,this.speed=0,this.duration=0,this.action=null},ge.prototype.hasReachedEnd=function(){return Ut&this.direction?this.value>=this.maxValue:this.value<=0},ge.prototype.computeCurrentScrollValue=function(){return null===this.value?zt&this.direction?le(this.element):ue(this.element):Math.max(0,Math.min(this.value,this.maxValue))},ge.prototype.computeNextScrollValue=function(t){var e=this.speed*(t/1e3),i=Ut&this.direction?this.value+e:this.value-e;return Math.max(0,Math.min(i,this.maxValue))},ge.prototype.computeSpeed=function(){var t={direction:null,threshold:0,distance:0,value:0,maxValue:0,deltaTime:0,duration:0,isEnding:!1};return function(e){var i=this.item,n=fe(i).speed;return te(n)?(t.direction=this.direction,t.threshold=this.threshold,t.distance=this.distance,t.value=this.value,t.maxValue=this.maxValue,t.duration=this.duration,t.speed=this.speed,t.deltaTime=e,t.isEnding=this.isEnding,n(i,this.element,t)):n}}(),ge.prototype.tick=function(t){return this.isActive||(this.isActive=!0,this.onStart()),this.value=this.computeCurrentScrollValue(),this.speed=this.computeSpeed(t),this.value=this.computeNextScrollValue(t),this.duration+=t,this.value},ge.prototype.onStart=function(){var t=this.item,e=fe(t).onStart;te(e)&&e(t,this.element,this.direction)},ge.prototype.onStop=function(){var t=this.item,e=fe(t).onStop;te(e)&&e(t,this.element,this.direction),t._drag&&t._drag.sort()},ye.prototype.reset=function(){this.requestX&&(this.requestX.action=null),this.requestY&&(this.requestY.action=null),this.element=null,this.requestX=null,this.requestY=null,this.scrollLeft=0,this.scrollTop=0},ye.prototype.addRequest=function(t){zt&t.direction?(this.removeRequest(this.requestX),this.requestX=t):(this.removeRequest(this.requestY),this.requestY=t),t.action=this},ye.prototype.removeRequest=function(t){t&&(this.requestX===t?(this.requestX=null,t.action=null):this.requestY===t&&(this.requestY=null,t.action=null))},ye.prototype.computeScrollValues=function(){this.scrollLeft=this.requestX?this.requestX.value:le(this.element),this.scrollTop=this.requestY?this.requestY.value:ue(this.element)},ye.prototype.scroll=function(){var t=this.element;t&&(t.scrollTo?t.scrollTo(this.scrollLeft,this.scrollTop):(t.scrollLeft=this.scrollLeft,t.scrollTop=this.scrollTop))},ve.prototype.pick=function(){return this.pool.pop()||this.createItem()},ve.prototype.release=function(t){this.releaseItem(t),-1===this.pool.indexOf(t)&&this.pool.push(t)},ve.prototype.reset=function(){this.pool.length=0};var Se={width:0,height:0,left:0,right:0,top:0,bottom:0},Te={width:0,height:0,left:0,right:0,top:0,bottom:0};function De(){this._isDestroyed=!1,this._isTicking=!1,this._tickTime=0,this._tickDeltaTime=0,this._items=[],this._actions=[],this._requests={},this._requests[zt]={},this._requests[Gt]={},this._requestOverlapCheck={},this._dragPositions={},this._dragDirections={},this._overlapCheckInterval=150,this._requestPool=new ve((function(){return new ge}),(function(t){t.reset()})),this._actionPool=new ve((function(){return new ye}),(function(t){t.reset()})),this._readTick=this._readTick.bind(this),this._writeTick=this._writeTick.bind(this)}De.AXIS_X=zt,De.AXIS_Y=Gt,De.FORWARD=Ut,De.BACKWARD=Vt,De.LEFT=Qt,De.RIGHT=$t,De.UP=Jt,De.DOWN=Kt,De.smoothSpeed=function(t,e,i){return function(n,r,s){var o=0;if(!s.isEnding)if(s.threshold>0){var a=s.threshold-Math.max(0,s.distance);o=t/s.threshold*a}else o=t;var l=s.speed,u=o;return l===o?u:l<o?(u=l+e*(s.deltaTime/1e3),Math.min(o,u)):(u=l-i*(s.deltaTime/1e3),Math.max(o,u))}},De.pointerHandle=function(t){var e={left:0,top:0,width:0,height:0},i=t||1;return function(t,n,r,s,o,a,l){return e.left=a-.5*i,e.top=l-.5*i,e.width=i,e.height=i,e}},De.prototype._readTick=function(t){this._isDestroyed||(t&&this._tickTime?(this._tickDeltaTime=t-this._tickTime,this._tickTime=t,this._updateRequests(),this._updateActions()):(this._tickTime=t,this._tickDeltaTime=0))},De.prototype._writeTick=function(){this._isDestroyed||(this._applyActions(),Ht(this._readTick,this._writeTick))},De.prototype._startTicking=function(){this._isTicking=!0,Ht(this._readTick,this._writeTick)},De.prototype._stopTicking=function(){this._isTicking=!1,this._tickTime=0,this._tickDeltaTime=0,Wt()},De.prototype._getItemHandleRect=function(t,e,i){var n=t._drag;if(e){var r=n._dragMoveEvent||n._dragStartEvent,s=e(t,n._clientX,n._clientY,t._width,t._height,r.clientX,r.clientY);i.left=s.left,i.top=s.top,i.width=s.width,i.height=s.height}else i.left=n._clientX,i.top=n._clientY,i.width=t._width,i.height=t._height;return i.right=i.left+i.width,i.bottom=i.top+i.height,i},De.prototype._requestItemScroll=function(t,e,i,n,r,s,o){var a=this._requests[e],l=a[t._id];l?l.element===i&&l.direction===n||l.reset():l=this._requestPool.pick(),l.item=t,l.element=i,l.direction=n,l.threshold=r,l.distance=s,l.maxValue=o,a[t._id]=l},De.prototype._cancelItemScroll=function(t,e){var i=this._requests[e],n=i[t._id];n&&(n.action&&n.action.removeRequest(n),this._requestPool.release(n),delete i[t._id])},De.prototype._checkItemOverlap=function(t,e,i){var n=fe(t),r=te(n.targets)?n.targets(t):n.targets,s=n.threshold,o=n.safeZone;if(!r||!r.length)return e&&this._cancelItemScroll(t,zt),void(i&&this._cancelItemScroll(t,Gt));var a=this._dragDirections[t._id],l=a[0],u=a[1];if(!l&&!u)return e&&this._cancelItemScroll(t,zt),void(i&&this._cancelItemScroll(t,Gt));for(var c=this._getItemHandleRect(t,n.handle,Se),h=Te,d=null,f=null,p=!0,m=!0,_=0,g=0,y=null,v=null,w=0,b=0,x=0,S=null,T=-1/0,D=0,A=0,k=null,E=0,R=0,M=null,P=-1/0,O=0,L=0,C=null,I=0,N=0,Y=0;Y<r.length;Y++)d=r[Y],p=e&&l&&d.axis!==Gt,m=i&&u&&d.axis!==zt,g=d.priority||0,(!p||g<T)&&(!m||g<P)||(f=ae(d.element||d),b=p?ce(f):-1,x=m?he(f):-1,(b||x)&&(h=de(f,h),_=xe(c,h),_<=0||(p&&g>=T&&b>0&&(g>T||_>A)&&(v=null,y=_e("number"===typeof d.threshold?d.threshold:s,o,c.width,h.width),l===$t?(w=h.right+y.offset-c.right,w<=y.value&&le(f)<b&&(v=$t)):l===Qt&&(w=c.left-(h.left-y.offset),w<=y.value&&le(f)>0&&(v=Qt)),null!==v&&(S=f,T=g,D=y.value,A=_,k=v,E=w,R=b)),m&&g>=P&&x>0&&(g>P||_>L)&&(v=null,y=_e("number"===typeof d.threshold?d.threshold:s,o,c.height,h.height),u===Kt?(w=h.bottom+y.offset-c.bottom,w<=y.value&&ue(f)<x&&(v=Kt)):u===Jt&&(w=c.top-(h.top-y.offset),w<=y.value&&ue(f)>0&&(v=Jt)),null!==v&&(M=f,P=g,O=y.value,L=_,C=v,I=w,N=x)))));e&&(S?this._requestItemScroll(t,zt,S,k,D,E,R):this._cancelItemScroll(t,zt)),i&&(M?this._requestItemScroll(t,Gt,M,C,O,I,N):this._cancelItemScroll(t,Gt))},De.prototype._updateScrollRequest=function(t){for(var e=t.item,i=fe(e),n=te(i.targets)?i.targets(e):i.targets,r=n&&n.length||0,s=i.threshold,o=i.safeZone,a=this._getItemHandleRect(e,i.handle,Se),l=Te,u=null,c=null,h=!1,d=null,f=null,p=null,m=null,_=null,g=null,y=0;y<r;y++)if(u=n[y],c=ae(u.element||u),c===t.element){if(h=!!(zt&t.direction),h){if(u.axis===Gt)continue}else if(u.axis===zt)continue;if(_=h?ce(c):he(c),_<=0)break;if(l=de(c,l),d=xe(a,l),d<=0)break;if(f=_e("number"===typeof u.threshold?u.threshold:s,o,h?a.width:a.height,h?l.width:l.height),p=t.direction===Qt?a.left-(l.left-f.offset):t.direction===$t?l.right+f.offset-a.right:t.direction===Jt?a.top-(l.top-f.offset):l.bottom+f.offset-a.bottom,p>f.value)break;if(m=h?le(c):ue(c),g=Ut&t.direction?m>=_:m<=0,g)break;return t.maxValue=_,t.threshold=f.value,t.distance=p,t.isEnding=!1,!0}return!0===i.smoothStop&&t.speed>0?(null===g&&(g=t.hasReachedEnd()),t.isEnding=!g):t.isEnding=!1,t.isEnding},De.prototype._updateRequests=function(){for(var t,e,i,n,r,s,o,a=this._items,l=this._requests[zt],u=this._requests[Gt],c=0;c<a.length;c++)t=a[c],n=this._requestOverlapCheck[t._id],r=n>0&&this._tickTime-n>this._overlapCheckInterval,s=!0,e=l[t._id],e&&e.isActive&&(s=!this._updateScrollRequest(e),s&&(r=!0,this._cancelItemScroll(t,zt))),o=!0,i=u[t._id],i&&i.isActive&&(o=!this._updateScrollRequest(i),o&&(r=!0,this._cancelItemScroll(t,Gt))),r&&(this._requestOverlapCheck[t._id]=0,this._checkItemOverlap(t,s,o))},De.prototype._requestAction=function(t,e){for(var i=this._actions,n=e===zt,r=null,s=0;s<i.length;s++){if(r=i[s],t.element===r.element){if(n?r.requestX:r.requestY)return void this._cancelItemScroll(t.item,e);break}r=null}r||(r=this._actionPool.pick()),r.element=t.element,r.addRequest(t),t.tick(this._tickDeltaTime),i.push(r)},De.prototype._updateActions=function(){var t,e,i,n,r=this._items,s=this._requests,o=this._actions;for(n=0;n<r.length;n++)t=r[n]._id,e=s[zt][t],i=s[Gt][t],e&&this._requestAction(e,zt),i&&this._requestAction(i,Gt);for(n=0;n<o.length;n++)o[n].computeScrollValues()},De.prototype._applyActions=function(){var t,e=this._actions,i=this._items;if(e.length){for(t=0;t<e.length;t++)e[t].scroll(),this._actionPool.release(e[t]);for(e.length=0,t=0;t<i.length;t++)pe(i[t]);for(t=0;t<i.length;t++)me(i[t])}},De.prototype._updateDragDirection=function(t){var e=this._dragPositions[t._id],i=this._dragDirections[t._id],n=t._drag._left,r=t._drag._top;if(e.length){var s=e[0],o=e[1];i[0]=n>s?$t:n<s?Qt:i[0]||0,i[1]=r>o?Kt:r<o?Jt:i[1]||0}e[0]=n,e[1]=r},De.prototype.addItem=function(t){if(!this._isDestroyed){var e=this._items.indexOf(t);-1===e&&(this._items.push(t),this._requestOverlapCheck[t._id]=this._tickTime,this._dragDirections[t._id]=[0,0],this._dragPositions[t._id]=[],this._isTicking||this._startTicking())}},De.prototype.updateItem=function(t){this._isDestroyed||this._dragDirections[t._id]&&(this._updateDragDirection(t),this._requestOverlapCheck[t._id]||(this._requestOverlapCheck[t._id]=this._tickTime))},De.prototype.removeItem=function(t){if(!this._isDestroyed){var e=this._items.indexOf(t);if(-1!==e){var i=t._id,n=this._requests[zt][i];n&&(this._cancelItemScroll(t,zt),delete this._requests[zt][i]);var r=this._requests[Gt][i];r&&(this._cancelItemScroll(t,Gt),delete this._requests[Gt][i]),delete this._requestOverlapCheck[i],delete this._dragPositions[i],delete this._dragDirections[i],this._items.splice(e,1),this._isTicking&&!this._items.length&&this._stopTicking()}}},De.prototype.isItemScrollingX=function(t){var e=this._requests[zt][t._id];return!(!e||!e.isActive)},De.prototype.isItemScrollingY=function(t){var e=this._requests[Gt][t._id];return!(!e||!e.isActive)},De.prototype.isItemScrolling=function(t){return this.isItemScrollingX(t)||this.isItemScrollingY(t)},De.prototype.destroy=function(){if(!this._isDestroyed){for(var t=this._items.slice(0),e=0;e<t.length;e++)this.removeItem(t[e]);this._actions.length=0,this._requestPool.reset(),this._actionPool.reset(),this._isDestroyed=!0}};var Ae=window.Element.prototype,ke=Ae.matches||Ae.matchesSelector||Ae.webkitMatchesSelector||Ae.mozMatchesSelector||Ae.msMatchesSelector||Ae.oMatchesSelector||function(){return!1};function Ee(t,e){return ke.call(t,e)}function Re(t,e){e&&(t.classList?t.classList.add(e):Ee(t,"."+e)||(t.className+=" "+e))}var Me=[],Pe="number";function Oe(t,e,i){var n=typeof i===Pe?i:-1;n<0&&(n=t.length-n+1),t.splice.apply(t,Me.concat(n,0,e)),Me.length=0}function Le(t,e,i){var n=Math.max(0,t.length-1+(i||0));return e>n?n:e<0?Math.max(n+e+1,0):e}function Ce(t,e,i){if(!(t.length<2)){var n=Le(t,e),r=Le(t,i);n!==r&&t.splice(r,0,t.splice(n,1)[0])}}function Ie(t,e,i){if(!(t.length<2)){var n,r=Le(t,e),s=Le(t,i);r!==s&&(n=t[r],t[r]=t[s],t[s]=n)}}var Ne=W(document.documentElement.style,"transform")||"transform",Ye=/([A-Z])/g,qe=/^(webkit-|moz-|ms-|o-)/,Fe=/^(-m-s-)/;function Be(t){var e=t.replace(Ye,"-$1").toLowerCase();return e=e.replace(qe,"-$1"),e=e.replace(Fe,"-ms-"),e}var He=Be(Ne),We="none",Xe="inline",je="none",ze="display";function Ge(t){var e=ie(t,He);if(!e||e===We)return!1;var i=ie(t,ze);return i!==Xe&&i!==je}function Ue(t){var e=document,i=t||e;while(i&&i!==e&&"static"===ie(i,"position")&&!Ge(i))i=i.parentElement||e;return i}var Ve={},Qe={},$e={};function Je(t,e){var i,n=e||{};return n.left=0,n.top=0,t===document?n:(n.left=window.pageXOffset||0,n.top=window.pageYOffset||0,t.self===window.self||(i=t.getBoundingClientRect(),n.left+=i.left,n.top+=i.top,n.left+=ne(t,"border-left-width"),n.top+=ne(t,"border-top-width")),n)}function Ke(t,e,i){return $e.left=0,$e.top=0,t===e||i&&(t=Ue(t),e=Ue(e),t===e)||(Je(t,Ve),Je(e,Qe),$e.left=Qe.left-Ve.left,$e.top=Qe.top-Ve.top),$e}function Ze(t){return"auto"===t||"scroll"===t||"overlay"===t}function ti(t){return Ze(ie(t,"overflow"))||Ze(ie(t,"overflow-x"))||Ze(ie(t,"overflow-y"))}function ei(t,e){e=e||[];while(t&&t!==document)t.getRootNode&&t instanceof DocumentFragment?t=t.getRootNode().host:(ti(t)&&e.push(t),t=t.parentNode);return e.push(window),e}var ii={},ni="none",ri=/^matrix3d/,si=/([^,]*,){4}/,oi=/([^,]*,){12}/,ai=/[^,]*,/;function li(t){ii.x=0,ii.y=0;var e=ie(t,He);if(!e||e===ni)return ii;var i=ri.test(e),n=e.replace(i?oi:si,""),r=n.replace(ai,"");return ii.x=parseFloat(n)||0,ii.y=parseFloat(r)||0,ii}function ui(t,e){e&&(t.classList?t.classList.remove(e):Ee(t,"."+e)&&(t.className=(" "+t.className+" ").replace(" "+e+" "," ").trim()))}var ci=/^(iPad|iPhone|iPod)/.test(window.navigator.platform)||/^Mac/.test(window.navigator.platform)&&window.navigator.maxTouchPoints>1,hi=0,di=1,fi=2,pi=!!X()&&{passive:!0};function mi(t){var e=t._element,i=t.getGrid(),n=i._settings;this._item=t,this._gridId=i._id,this._isDestroyed=!1,this._isMigrating=!1,this._startPredicate=te(n.dragStartPredicate)?n.dragStartPredicate:mi.defaultStartPredicate,this._startPredicateState=hi,this._startPredicateResult=void 0,this._isSortNeeded=!1,this._sortTimer=void 0,this._blockedSortIndex=null,this._sortX1=0,this._sortX2=0,this._sortY1=0,this._sortY2=0,this._reset(),this._preStartCheck=this._preStartCheck.bind(this),this._preEndCheck=this._preEndCheck.bind(this),this._onScroll=this._onScroll.bind(this),this._prepareStart=this._prepareStart.bind(this),this._applyStart=this._applyStart.bind(this),this._prepareMove=this._prepareMove.bind(this),this._applyMove=this._applyMove.bind(this),this._prepareScroll=this._prepareScroll.bind(this),this._applyScroll=this._applyScroll.bind(this),this._handleSort=this._handleSort.bind(this),this._handleSortDelayed=this._handleSortDelayed.bind(this),this._handle=n.dragHandle&&e.querySelector(n.dragHandle)||e,this._dragger=new Z(this._handle,n.dragCssProps),this._dragger.on("start",this._preStartCheck),this._dragger.on("move",this._preStartCheck),this._dragger.on("cancel",this._preEndCheck),this._dragger.on("end",this._preEndCheck)}function _i(t){if("a"===t.tagName.toLowerCase()){var e=t.getAttribute("href");if(e){var i=t.getAttribute("target");i&&"_self"!==i?window.open(e,i):window.location.href=e}}}function gi(t,e){var i,n,r={};if(Array.isArray(e))for(n=0;n<e.length;n++)i=e[n],r[i]=ie(t,Be(i));else for(i in e)r[i]=ie(t,Be(i));return r}mi.autoScroller=new De,mi.defaultStartPredicate=function(t,e,i){var n=t._drag;if(e.isFirst&&e.srcEvent.button)return!1;if(!ci&&e.isFirst&&!0===e.srcEvent.isTrusted&&!1===e.srcEvent.defaultPrevented&&!1===e.srcEvent.cancelable)return!1;if(!e.isFinal){var r=n._startPredicateData;if(!r){var s=i||n._getGrid()._settings.dragStartPredicate||{};n._startPredicateData=r={distance:Math.max(s.distance,0)||0,delay:Math.max(s.delay,0)||0}}return r.delay&&(r.event=e,r.delayTimer||(r.delayTimer=window.setTimeout((function(){r.delay=0,n._resolveStartPredicate(r.event)&&(n._forceResolveStartPredicate(r.event),n._resetStartPredicate())}),r.delay))),n._resolveStartPredicate(e)}n._finishStartPredicate(e)},mi.defaultSortPredicate=function(){var t={},e={},i={},n=[],r=1,a=100;function l(i,r,s){var o,a,l,u,c,h,d,f,p,m,_=null,g=r._settings.dragSort,y=-1;if(!0===g?(n[0]=r,a=n):te(g)&&(a=g.call(r,i)),!a||!Array.isArray(a)||!a.length)return _;for(m=0;m<a.length;m++)if(l=a[m],!l._isDestroyed){l._updateBoundingRect(),h=Math.max(0,l._left),d=Math.max(0,l._top),f=Math.min(window.innerWidth,l._right),p=Math.min(window.innerHeight,l._bottom),u=l._element.parentNode;while(u&&u!==document&&u!==document.documentElement&&u!==document.body)if(u.getRootNode&&u instanceof DocumentFragment)u=u.getRootNode().host;else{if("visible"!==ie(u,"overflow")&&(c=u.getBoundingClientRect(),h=Math.max(h,c.left),d=Math.max(d,c.top),f=Math.min(f,c.right),p=Math.min(p,c.bottom)),"fixed"===ie(u,"position"))break;u=u.parentNode}h>=f||d>=p||(e.left=h,e.top=d,e.width=f-h,e.height=p-d,o=xe(t,e),o>s&&o>y&&(y=o,_=l))}return n.length=0,_}return function(n,u){var c=n._drag,h=c._getGrid(),d=u&&"number"===typeof u.threshold?u.threshold:50,f=u&&u.action===s?s:o,p=u&&u.migrateAction===s?s:o;d=Math.min(Math.max(d,r),a),t.width=n._width,t.height=n._height,t.left=c._clientX,t.top=c._clientY;var m=l(n,h,d);if(!m)return null;var _,g,y,v=n.getGrid()!==m,w=0,b=0,x=0,S=-1,T=!1;for(m===h?(t.left=c._gridX+n._marginLeft,t.top=c._gridY+n._marginTop):(m._updateBorders(1,0,1,0),w=m._left+m._borderLeft,b=m._top+m._borderTop),y=0;y<m._items.length;y++)_=m._items[y],_._isActive&&_!==n&&(T=!0,e.width=_._width,e.height=_._height,e.left=_._left+_._marginLeft+w,e.top=_._top+_._marginTop+b,g=xe(t,e),g>x&&(S=y,x=g));return v&&x<d&&(S=T?S:0,x=d),x>=d?(i.grid=m,i.index=S,i.action=v?p:f,i):null}}(),mi.prototype.stop=function(){if(this._isActive)if(this._isMigrating)this._finishMigration();else{var t=this._item,e=t._id;if(mi.autoScroller.removeItem(t),Mt(e),Ot(e),Ct(e),this._cancelSort(),this._isStarted){this._unbindScrollListeners();var i=t._element,n=this._getGrid(),r=n._settings.itemDraggingClass;i.parentNode!==n._element&&(n._element.appendChild(i),t._setTranslate(this._gridX,this._gridY),r&&i.clientWidth),ui(i,r)}this._reset()}},mi.prototype.sort=function(t){var e=this._item;this._isActive&&e._isActive&&this._dragMoveEvent&&(!0===t?this._handleSort():It(e._id,this._handleSort))},mi.prototype.destroy=function(){this._isDestroyed||(this.stop(),this._dragger.destroy(),mi.autoScroller.removeItem(this._item),this._isDestroyed=!0)},mi.prototype._getGrid=function(){return n[this._gridId]||null},mi.prototype._reset=function(){this._isActive=!1,this._isStarted=!1,this._container=null,this._containingBlock=null,this._dragStartEvent=null,this._dragMoveEvent=null,this._dragPrevMoveEvent=null,this._scrollEvent=null,this._scrollers=[],this._left=0,this._top=0,this._gridX=0,this._gridY=0,this._clientX=0,this._clientY=0,this._scrollDiffX=0,this._scrollDiffY=0,this._moveDiffX=0,this._moveDiffY=0,this._containerDiffX=0,this._containerDiffY=0},mi.prototype._bindScrollListeners=function(){var t,e,i=this._getGrid()._element,n=this._container,r=this._scrollers;if(r.length=0,ei(this._item._element.parentNode,r),n!==i)for(t=[],ei(i,t),e=0;e<t.length;e++)r.indexOf(t[e])<0&&r.push(t[e]);for(e=0;e<r.length;e++)r[e].addEventListener("scroll",this._onScroll,pi)},mi.prototype._unbindScrollListeners=function(){var t,e=this._scrollers;for(t=0;t<e.length;t++)e[t].removeEventListener("scroll",this._onScroll,pi);e.length=0},mi.prototype._resolveStartPredicate=function(t){var e=this._startPredicateData;if(!(t.distance<e.distance||e.delay))return this._resetStartPredicate(),!0},mi.prototype._forceResolveStartPredicate=function(t){this._isDestroyed||this._startPredicateState!==di||(this._startPredicateState=fi,this._onStart(t))},mi.prototype._finishStartPredicate=function(t){var e=this._item._element,i=Math.abs(t.deltaX)<2&&Math.abs(t.deltaY)<2&&t.deltaTime<200;this._resetStartPredicate(),i&&_i(e)},mi.prototype._resetHeuristics=function(t,e){this._blockedSortIndex=null,this._sortX1=this._sortX2=t,this._sortY1=this._sortY2=e},mi.prototype._checkHeuristics=function(t,e){var i=this._getGrid()._settings.dragSortHeuristics,n=i.minDragDistance;if(n<=0)return this._blockedSortIndex=null,!0;var r=t-this._sortX2,s=e-this._sortY2,o=n>3&&i.minBounceBackAngle>0;if(o||(this._blockedSortIndex=null),Math.abs(r)>n||Math.abs(s)>n){if(o){var a=Math.atan2(r,s),l=Math.atan2(this._sortX2-this._sortX1,this._sortY2-this._sortY1),u=Math.atan2(Math.sin(a-l),Math.cos(a-l));Math.abs(u)>i.minBounceBackAngle&&(this._blockedSortIndex=null)}return this._sortX1=this._sortX2,this._sortY1=this._sortY2,this._sortX2=t,this._sortY2=e,!0}return!1},mi.prototype._resetStartPredicate=function(){var t=this._startPredicateData;t&&(t.delayTimer&&(t.delayTimer=window.clearTimeout(t.delayTimer)),this._startPredicateData=null)},mi.prototype._handleSort=function(){if(this._isActive){var t=this._getGrid()._settings;if(!t.dragSort||!t.dragAutoScroll.sortDuringScroll&&mi.autoScroller.isItemScrolling(this._item))return this._sortX1=this._sortX2=this._gridX,this._sortY1=this._sortY2=this._gridY,this._isSortNeeded=!0,void(void 0!==this._sortTimer&&(this._sortTimer=window.clearTimeout(this._sortTimer)));var e=this._checkHeuristics(this._gridX,this._gridY);if(this._isSortNeeded||e){var i=t.dragSortHeuristics.sortInterval;i<=0||this._isSortNeeded?(this._isSortNeeded=!1,void 0!==this._sortTimer&&(this._sortTimer=window.clearTimeout(this._sortTimer)),this._checkOverlap()):void 0===this._sortTimer&&(this._sortTimer=window.setTimeout(this._handleSortDelayed,i))}}},mi.prototype._handleSortDelayed=function(){this._isSortNeeded=!0,this._sortTimer=void 0,It(this._item._id,this._handleSort)},mi.prototype._cancelSort=function(){this._isSortNeeded=!1,void 0!==this._sortTimer&&(this._sortTimer=window.clearTimeout(this._sortTimer)),Nt(this._item._id)},mi.prototype._finishSort=function(){var t=this._getGrid()._settings.dragSort,e=t&&(this._isSortNeeded||void 0!==this._sortTimer);this._cancelSort(),e&&this._checkOverlap()},mi.prototype._checkOverlap=function(){if(this._isActive){var t,e,i,n,r,a,l,u,c=this._item,h=this._getGrid()._settings;t=te(h.dragSortPredicate)?h.dragSortPredicate(c,this._dragMoveEvent):mi.defaultSortPredicate(c,h.dragSortPredicate),t&&"number"===typeof t.index&&(l=t.action===s?s:o,e=c.getGrid(),n=t.grid||e,u=e!==n,i=e._items.indexOf(c),r=Le(n._items,t.index,u&&l===o?1:0),(u||r!==this._blockedSortIndex)&&(u?(this._blockedSortIndex=null,a=n._items[r],e._hasListeners(b)&&e._emit(b,{item:c,fromGrid:e,fromIndex:i,toGrid:n,toIndex:r}),n._hasListeners(S)&&n._emit(S,{item:c,fromGrid:e,fromIndex:i,toGrid:n,toIndex:r}),c._gridId=n._id,this._isMigrating=c._gridId!==this._gridId,e._items.splice(i,1),Oe(n._items,c,r),c._sortData=null,e._hasListeners(w)&&e._emit(w,{item:c,fromGrid:e,fromIndex:i,toGrid:n,toIndex:r}),n._hasListeners(x)&&n._emit(x,{item:c,fromGrid:e,fromIndex:i,toGrid:n,toIndex:r}),l===s&&a&&a.isActive()&&n._items.indexOf(a)>-1&&n.send(a,e,i,{appendTo:this._container||document.body,layoutSender:!1,layoutReceiver:!1}),e.layout(),n.layout()):i!==r&&(this._blockedSortIndex=i,(l===s?Ie:Ce)(e._items,i,r),e._hasListeners(v)&&e._emit(v,{item:c,fromIndex:i,toIndex:r,action:l}),e.layout())))}},mi.prototype._finishMigration=function(){var t,e,i=this._item,n=i._dragRelease,r=i._element,s=i._isActive,o=i.getGrid(),a=o._element,l=o._settings,u=l.dragContainer||a,c=this._getGrid()._settings,h=r.parentNode,d=s?c.itemVisibleClass:c.itemHiddenClass,f=s?l.itemVisibleClass:l.itemHiddenClass;this._isMigrating=!1,this.destroy(),c.itemClass!==l.itemClass&&(ui(r,c.itemClass),Re(r,l.itemClass)),d!==f&&(ui(r,d),Re(r,f)),u!==h&&(u.appendChild(r),e=Ke(h,u,!0),t=li(r),t.x-=e.left,t.y-=e.top),i._refreshDimensions(),e=Ke(u,a,!0),n._containerDiffX=e.left,n._containerDiffY=e.top,i._drag=l.dragEnabled?new mi(i):null,u!==h&&i._setTranslate(t.x,t.y),i._visibility.setStyles(s?l.visibleStyles:l.hiddenStyles),n.start()},mi.prototype._preStartCheck=function(t){this._startPredicateState===hi&&(this._startPredicateState=di),this._startPredicateState===di?(this._startPredicateResult=this._startPredicate(this._item,t),!0===this._startPredicateResult?(this._startPredicateState=fi,this._onStart(t)):!1===this._startPredicateResult&&(this._resetStartPredicate(t),this._dragger._reset(),this._startPredicateState=hi)):this._startPredicateState===fi&&this._isActive&&this._onMove(t)},mi.prototype._preEndCheck=function(t){var e=this._startPredicateState===fi;this._startPredicate(this._item,t),this._startPredicateState=hi,e&&this._isActive&&(this._isStarted?this._onEnd(t):this.stop())},mi.prototype._onStart=function(t){var e=this._item;e._isActive&&(this._isActive=!0,this._dragStartEvent=t,mi.autoScroller.addItem(e),Rt(e._id,this._prepareStart,this._applyStart))},mi.prototype._prepareStart=function(){if(this._isActive){var t=this._item;if(t._isActive){var e=t._element,i=this._getGrid(),n=i._settings,r=i._element,s=n.dragContainer||r,o=Ue(s),a=li(e),l=e.getBoundingClientRect(),u=s!==r;if(this._container=s,this._containingBlock=o,this._clientX=l.left,this._clientY=l.top,this._left=this._gridX=a.x,this._top=this._gridY=a.y,this._scrollDiffX=this._scrollDiffY=0,this._moveDiffX=this._moveDiffY=0,this._resetHeuristics(this._gridX,this._gridY),u){var c=Ke(o,r);this._containerDiffX=c.left,this._containerDiffY=c.top}}}},mi.prototype._applyStart=function(){if(this._isActive){var t=this._item;if(t._isActive){var e=this._getGrid(),i=t._element,n=t._dragRelease,r=t._migrate,s=this._container!==e._element;t.isPositioning()&&t._layout.stop(!0,this._left,this._top),r._isActive&&(this._left-=r._containerDiffX,this._top-=r._containerDiffY,this._gridX-=r._containerDiffX,this._gridY-=r._containerDiffY,r.stop(!0,this._left,this._top)),t.isReleasing()&&n._reset(),e._settings.dragPlaceholder.enabled&&t._dragPlaceholder.create(),this._isStarted=!0,e._emit(T,t,this._dragStartEvent),s&&(i.parentNode===this._container?(this._gridX-=this._containerDiffX,this._gridY-=this._containerDiffY):(this._left+=this._containerDiffX,this._top+=this._containerDiffY,this._container.appendChild(i),t._setTranslate(this._left,this._top))),Re(i,e._settings.itemDraggingClass),this._bindScrollListeners(),e._emit(D,t,this._dragStartEvent)}}},mi.prototype._onMove=function(t){var e=this._item;e._isActive?(this._dragMoveEvent=t,Pt(e._id,this._prepareMove,this._applyMove),It(e._id,this._handleSort)):this.stop()},mi.prototype._prepareMove=function(){if(this._isActive){var t=this._item;if(t._isActive){var e=this._getGrid()._settings,i=e.dragAxis,n=this._dragMoveEvent,r=this._dragPrevMoveEvent||this._dragStartEvent||n;if("y"!==i){var s=n.clientX-r.clientX;this._left=this._left-this._moveDiffX+s,this._gridX=this._gridX-this._moveDiffX+s,this._clientX=this._clientX-this._moveDiffX+s,this._moveDiffX=s}if("x"!==i){var o=n.clientY-r.clientY;this._top=this._top-this._moveDiffY+o,this._gridY=this._gridY-this._moveDiffY+o,this._clientY=this._clientY-this._moveDiffY+o,this._moveDiffY=o}this._dragPrevMoveEvent=n}}},mi.prototype._applyMove=function(){if(this._isActive){var t=this._item;t._isActive&&(this._moveDiffX=this._moveDiffY=0,t._setTranslate(this._left,this._top),this._getGrid()._emit(A,t,this._dragMoveEvent),mi.autoScroller.updateItem(t))}},mi.prototype._onScroll=function(t){var e=this._item;e._isActive?(this._scrollEvent=t,Lt(e._id,this._prepareScroll,this._applyScroll),It(e._id,this._handleSort)):this.stop()},mi.prototype._prepareScroll=function(){if(this._isActive){var t=this._item;if(t._isActive){var e=t._element,i=this._getGrid(),n=i._element,r=e.getBoundingClientRect();if(this._container!==n){var s=Ke(this._containingBlock,n);this._containerDiffX=s.left,this._containerDiffY=s.top}var o=this._clientX-this._moveDiffX-r.left;this._left=this._left-this._scrollDiffX+o,this._scrollDiffX=o;var a=this._clientY-this._moveDiffY-r.top;this._top=this._top-this._scrollDiffY+a,this._scrollDiffY=a,this._gridX=this._left-this._containerDiffX,this._gridY=this._top-this._containerDiffY}}},mi.prototype._applyScroll=function(){if(this._isActive){var t=this._item;t._isActive&&(this._scrollDiffX=this._scrollDiffY=0,t._setTranslate(this._left,this._top),this._getGrid()._emit(k,t,this._scrollEvent))}},mi.prototype._onEnd=function(t){var e=this._item,i=e._element,n=this._getGrid(),r=n._settings,s=e._dragRelease;e._isActive?(Mt(e._id),Ot(e._id),Ct(e._id),this._finishSort(),this._unbindScrollListeners(),s._containerDiffX=this._containerDiffX,s._containerDiffY=this._containerDiffY,this._reset(),ui(i,r.itemDraggingClass),mi.autoScroller.removeItem(e),n._emit(E,e,t),this._isMigrating?this._finishMigration():s.start()):this.stop()};var yi=/^(webkit|moz|ms|o|Webkit|Moz|MS|O)(?=[A-Z])/,vi={};function wi(t){var e=vi[t];return e||(e=t.replace(yi,""),e!==t&&(e=e[0].toLowerCase()+e.slice(1)),vi[t]=e,e)}var bi="[native code]";function xi(t){var e=window.Symbol;return!!(t&&te(e)&&te(e.toString)&&e(t).toString().indexOf(bi)>-1)}function Si(t,e){for(var i in e)t.style[i]=e[i]}var Ti=!(!Element||!te(Element.prototype.animate)),Di=!(!Element||!xi(Element.prototype.animate));function Ai(t){this._element=t,this._animation=null,this._duration=0,this._easing="",this._callback=null,this._props=[],this._values=[],this._isDestroyed=!1,this._onFinish=this._onFinish.bind(this)}function ki(t,e){var i={};for(var n in t)i[e?n:wi(n)]=t[n];return i}function Ei(t,e){return"translateX("+t+"px) translateY("+e+"px)"}function Ri(t){this._item=t,this._animation=new Ai,this._element=null,this._className="",this._didMigrate=!1,this._resetAfterLayout=!1,this._left=0,this._top=0,this._transX=0,this._transY=0,this._nextTransX=0,this._nextTransY=0,this._setupAnimation=this._setupAnimation.bind(this),this._startAnimation=this._startAnimation.bind(this),this._updateDimensions=this._updateDimensions.bind(this),this._onLayoutStart=this._onLayoutStart.bind(this),this._onLayoutEnd=this._onLayoutEnd.bind(this),this._onReleaseEnd=this._onReleaseEnd.bind(this),this._onMigrate=this._onMigrate.bind(this),this._onHide=this._onHide.bind(this)}function Mi(t){this._item=t,this._isActive=!1,this._isDestroyed=!1,this._isPositioningStarted=!1,this._containerDiffX=0,this._containerDiffY=0}Ai.prototype.start=function(t,e,i){if(!this._isDestroyed){var n=this._element,r=i||{};if(!Ti)return Si(n,e),this._callback=te(r.onFinish)?r.onFinish:null,void this._onFinish();var s,o,a,l=this._animation,u=this._props,c=this._values,h=r.duration||300,d=r.easing||"ease",f=!1;if(l&&(o=0,h===this._duration&&d===this._easing||(f=!0),!f)){for(s in e)if(++o,a=u.indexOf(s),-1===a||e[s]!==c[a]){f=!0;break}o!==u.length&&(f=!0)}if(f&&l.cancel(),this._callback=te(r.onFinish)?r.onFinish:null,!l||f){for(s in u.length=c.length=0,e)u.push(s),c.push(e[s]);this._duration=h,this._easing=d,this._animation=n.animate([ki(t,Di),ki(e,Di)],{duration:h,easing:d}),this._animation.onfinish=this._onFinish,Si(n,e)}}},Ai.prototype.stop=function(){!this._isDestroyed&&this._animation&&(this._animation.cancel(),this._animation=this._callback=null,this._props.length=this._values.length=0)},Ai.prototype.getCurrentStyles=function(){return gi(element,currentProps)},Ai.prototype.isAnimating=function(){return!!this._animation},Ai.prototype.destroy=function(){this._isDestroyed||(this.stop(),this._element=null,this._isDestroyed=!0)},Ai.prototype._onFinish=function(){var t=this._callback;this._animation=this._callback=null,this._props.length=this._values.length=0,t&&t()},Ri.prototype._updateDimensions=function(){this.isActive()&&Si(this._element,{width:this._item._width+"px",height:this._item._height+"px"})},Ri.prototype._onLayoutStart=function(t,e){var i=this._item;if(-1!==t.indexOf(i)){var n=i._left,r=i._top,s=this._left,o=this._top;if(this._left=n,this._top=r,e||this._didMigrate||s!==n||o!==r){var a=n+i._marginLeft,l=r+i._marginTop,u=i.getGrid(),c=!e&&u._settings.layoutDuration>0;if(!c||this._didMigrate)return qt(i._id),this._element.style[Ne]=Ei(a,l),this._animation.stop(),void(this._didMigrate&&(u.getElement().appendChild(this._element),this._didMigrate=!1));this._nextTransX=a,this._nextTransY=l,Yt(i._id,this._setupAnimation,this._startAnimation)}}else this.reset()},Ri.prototype._setupAnimation=function(){if(this.isActive()){var t=li(this._element);this._transX=t.x,this._transY=t.y}},Ri.prototype._startAnimation=function(){if(this.isActive()){var t=this._animation,e=this._transX,i=this._transY,n=this._nextTransX,r=this._nextTransY;if(e!==n||i!==r){var s=this._item.getGrid()._settings,o={},a={};o[Ne]=Ei(e,i),a[Ne]=Ei(n,r),t.start(o,a,{duration:s.layoutDuration,easing:s.layoutEasing,onFinish:this._onLayoutEnd})}else t.isAnimating()&&(this._element.style[Ne]=Ei(n,r),t.stop())}},Ri.prototype._onLayoutEnd=function(){this._resetAfterLayout&&this.reset()},Ri.prototype._onReleaseEnd=function(t){if(t._id===this._item._id){if(!this._animation.isAnimating())return void this.reset();this._resetAfterLayout=!0}},Ri.prototype._onMigrate=function(t){if(t.item===this._item){var e=this._item.getGrid(),i=t.toGrid;e.off(M,this._onReleaseEnd),e.off(l,this._onLayoutStart),e.off(b,this._onMigrate),e.off(m,this._onHide),i.on(M,this._onReleaseEnd),i.on(l,this._onLayoutStart),i.on(b,this._onMigrate),i.on(m,this._onHide),this._didMigrate=!0}},Ri.prototype._onHide=function(t){t.indexOf(this._item)>-1&&this.reset()},Ri.prototype.create=function(){if(this.isActive())this._resetAfterLayout=!1;else{var t,e=this._item,i=e.getGrid(),n=i._settings,r=this._animation;this._left=e._left,this._top=e._top,t=te(n.dragPlaceholder.createElement)?n.dragPlaceholder.createElement(e):document.createElement("div"),this._element=t,r._element=t,this._className=n.itemPlaceholderClass||"",this._className&&Re(t,this._className),Si(t,{position:"absolute",left:"0px",top:"0px",width:e._width+"px",height:e._height+"px"}),t.style[Ne]=Ei(e._left+e._marginLeft,e._top+e._marginTop),i.on(l,this._onLayoutStart),i.on(M,this._onReleaseEnd),i.on(b,this._onMigrate),i.on(m,this._onHide),te(n.dragPlaceholder.onCreate)&&n.dragPlaceholder.onCreate(e,t),i.getElement().appendChild(t)}},Ri.prototype.reset=function(){if(this.isActive()){var t=this._element,e=this._item,i=e.getGrid(),n=i._settings,r=this._animation;this._resetAfterLayout=!1,qt(e._id),Bt(e._id),r.stop(),r._element=null,i.off(M,this._onReleaseEnd),i.off(l,this._onLayoutStart),i.off(b,this._onMigrate),i.off(m,this._onHide),this._className&&(ui(t,this._className),this._className=""),t.parentNode.removeChild(t),this._element=null,te(n.dragPlaceholder.onRemove)&&n.dragPlaceholder.onRemove(e,t)}},Ri.prototype.isActive=function(){return!!this._element},Ri.prototype.getElement=function(){return this._element},Ri.prototype.updateDimensions=function(){this.isActive()&&Ft(this._item._id,this._updateDimensions)},Ri.prototype.destroy=function(){this.reset(),this._animation.destroy(),this._item=this._animation=null},Mi.prototype.start=function(){if(!this._isDestroyed&&!this._isActive){var t=this._item,e=t.getGrid(),i=e._settings;this._isActive=!0,Re(t._element,i.itemReleasingClass),i.dragRelease.useDragContainer||this._placeToGrid(),e._emit(R,t),e._nextLayoutData||t._layout.start(!1)}},Mi.prototype.stop=function(t,e,i){if(!this._isDestroyed&&this._isActive){var n=this._item,r=n.getGrid();t||void 0!==e&&void 0!==i||(e=n._left,i=n._top);var s=this._placeToGrid(e,i);this._reset(s),t||r._emit(M,n)}},Mi.prototype.isJustReleased=function(){return this._isActive&&!1===this._isPositioningStarted},Mi.prototype.destroy=function(){this._isDestroyed||(this.stop(!0),this._item=null,this._isDestroyed=!0)},Mi.prototype._placeToGrid=function(t,e){if(!this._isDestroyed){var i=this._item,n=i._element,r=i.getGrid()._element,s=!1;if(n.parentNode!==r){if(void 0===t||void 0===e){var o=li(n);t=o.x-this._containerDiffX,e=o.y-this._containerDiffY}r.appendChild(n),i._setTranslate(t,e),s=!0}return this._containerDiffX=0,this._containerDiffY=0,s}},Mi.prototype._reset=function(t){if(!this._isDestroyed){var e=this._item,i=e.getGrid()._settings.itemReleasingClass;this._isActive=!1,this._isPositioningStarted=!1,this._containerDiffX=0,this._containerDiffY=0,i&&(t&&e._element.clientWidth,ui(e._element,i))}};var Pi=2;function Oi(t){var e=t._element,i=e.style;this._item=t,this._isActive=!1,this._isDestroyed=!1,this._isInterrupted=!1,this._currentStyles={},this._targetStyles={},this._nextLeft=0,this._nextTop=0,this._offsetLeft=0,this._offsetTop=0,this._skipNextAnimation=!1,this._animOptions={onFinish:this._finish.bind(this),duration:0,easing:0},i.left="0px",i.top="0px",t._setTranslate(0,0),this._animation=new Ai(e),this._queue="layout-"+t._id,this._setupAnimation=this._setupAnimation.bind(this),this._startAnimation=this._startAnimation.bind(this)}function Li(t){this._item=t,this._isActive=!1,this._isDestroyed=!1,this._container=!1,this._containerDiffX=0,this._containerDiffY=0}function Ci(t){var e=t._isActive,i=t._element,n=i.children[0],r=t.getGrid()._settings;if(!n)throw new Error("No valid child element found within item element.");this._item=t,this._isDestroyed=!1,this._isHidden=!e,this._isHiding=!1,this._isShowing=!1,this._childElement=n,this._currentStyleProps=[],this._animation=new Ai(n),this._queue="visibility-"+t._id,this._finishShow=this._finishShow.bind(this),this._finishHide=this._finishHide.bind(this),i.style.display=e?"":"none",Re(i,e?r.itemVisibleClass:r.itemHiddenClass),this.setStyles(e?r.visibleStyles:r.hiddenStyles)}Oi.prototype.start=function(t,e){if(!this._isDestroyed){var i=this._item,n=i._dragRelease,r=i.getGrid()._settings,s=this._isActive,o=n.isJustReleased(),a=o?r.dragRelease.duration:r.layoutDuration,l=o?r.dragRelease.easing:r.layoutEasing,u=!t&&!this._skipNextAnimation&&a>0;if(s&&(At(i._id),i._emitter.burst(this._queue,!0,i)),o&&(n._isPositioningStarted=!0),te(e)&&i._emitter.on(this._queue,e),this._skipNextAnimation=!1,!u)return this._updateOffsets(),i._setTranslate(this._nextLeft,this._nextTop),this._animation.stop(),void this._finish();this._animation.isAnimating()&&(this._animation._animation.onfinish=null),this._isActive=!0,this._animOptions.easing=l,this._animOptions.duration=a,this._isInterrupted=s,Dt(i._id,this._setupAnimation,this._startAnimation)}},Oi.prototype.stop=function(t,e,i){if(!this._isDestroyed&&this._isActive){var n=this._item;if(At(n._id),this._animation.isAnimating()){if(void 0===e||void 0===i){var r=li(n._element);e=r.x,i=r.y}n._setTranslate(e,i),this._animation.stop()}ui(n._element,n.getGrid()._settings.itemPositioningClass),this._isActive=!1,t&&n._emitter.burst(this._queue,!0,n)}},Oi.prototype.destroy=function(){if(!this._isDestroyed){var t=this._item._element.style;this.stop(!0,0,0),this._item._emitter.clear(this._queue),this._animation.destroy(),t[Ne]="",t.left="",t.top="",this._item=null,this._currentStyles=null,this._targetStyles=null,this._animOptions=null,this._isDestroyed=!0}},Oi.prototype._updateOffsets=function(){if(!this._isDestroyed){var t=this._item,e=t._migrate,i=t._dragRelease;this._offsetLeft=i._isActive?i._containerDiffX:e._isActive?e._containerDiffX:0,this._offsetTop=i._isActive?i._containerDiffY:e._isActive?e._containerDiffY:0,this._nextLeft=this._item._left+this._offsetLeft,this._nextTop=this._item._top+this._offsetTop}},Oi.prototype._finish=function(){if(!this._isDestroyed){var t=this._item,e=t._migrate,i=t._dragRelease;t._tX=this._nextLeft,t._tY=this._nextTop,this._isActive&&(this._isActive=!1,ui(t._element,t.getGrid()._settings.itemPositioningClass)),i._isActive&&i.stop(),e._isActive&&e.stop(),t._emitter.burst(this._queue,!1,t)}},Oi.prototype._setupAnimation=function(){var t=this._item;if(void 0===t._tX||void 0===t._tY){var e=li(t._element);t._tX=e.x,t._tY=e.y}},Oi.prototype._startAnimation=function(){var t=this._item,e=t.getGrid()._settings,i=this._animOptions.duration<=0;this._updateOffsets();var n=Math.abs(t._left-(t._tX-this._offsetLeft)),r=Math.abs(t._top-(t._tY-this._offsetTop));if(i||n<Pi&&r<Pi)return(n||r||this._isInterrupted)&&t._setTranslate(this._nextLeft,this._nextTop),this._animation.stop(),void this._finish();this._isInterrupted||Re(t._element,e.itemPositioningClass),this._currentStyles[Ne]=Ei(t._tX,t._tY),this._targetStyles[Ne]=Ei(this._nextLeft,this._nextTop),t._tX=t._tY=void 0,this._animation.start(this._currentStyles,this._targetStyles,this._animOptions)},Li.prototype.start=function(t,e,i){if(!this._isDestroyed){var n,r,s,o,a,l,u,c,h,d,f=this._item,p=f._element,m=f.isActive(),_=f.isVisible(),g=f.getGrid(),y=g._settings,v=t._settings,T=t._element,D=t._items,A=g._items.indexOf(f),k=i||document.body;if("number"===typeof e)n=Le(D,e,1);else{if(r=t.getItem(e),!r)return;n=D.indexOf(r)}(f.isPositioning()||this._isActive||f.isReleasing())&&(l=li(p),u=l.x,c=l.y),f.isPositioning()&&f._layout.stop(!0,u,c),this._isActive&&(u-=this._containerDiffX,c-=this._containerDiffY,this.stop(!0,u,c)),f.isReleasing()&&(u-=f._dragRelease._containerDiffX,c-=f._dragRelease._containerDiffY,f._dragRelease.stop(!0,u,c)),f._visibility.stop(!0),f._drag&&f._drag.destroy(),g._hasListeners(b)&&g._emit(b,{item:f,fromGrid:g,fromIndex:A,toGrid:t,toIndex:n}),t._hasListeners(S)&&t._emit(S,{item:f,fromGrid:g,fromIndex:A,toGrid:t,toIndex:n}),y.itemClass!==v.itemClass&&(ui(p,y.itemClass),Re(p,v.itemClass)),h=_?y.itemVisibleClass:y.itemHiddenClass,d=_?v.itemVisibleClass:v.itemHiddenClass,h!==d&&(ui(p,h),Re(p,d)),g._items.splice(A,1),Oe(D,f,n),f._gridId=t._id,m?(s=p.parentNode,k!==s&&(k.appendChild(p),o=Ke(k,s,!0),l||(l=li(p),u=l.x,c=l.y),f._setTranslate(u+o.left,c+o.top))):T.appendChild(p),f._visibility.setStyles(_?v.visibleStyles:v.hiddenStyles),m&&(a=Ke(k,T,!0)),f._refreshDimensions(),f._sortData=null,f._drag=v.dragEnabled?new mi(f):null,m?(this._isActive=!0,this._container=k,this._containerDiffX=a.left,this._containerDiffY=a.top):(this._isActive=!1,this._container=null,this._containerDiffX=0,this._containerDiffY=0),g._hasListeners(w)&&g._emit(w,{item:f,fromGrid:g,fromIndex:A,toGrid:t,toIndex:n}),t._hasListeners(x)&&t._emit(x,{item:f,fromGrid:g,fromIndex:A,toGrid:t,toIndex:n})}},Li.prototype.stop=function(t,e,i){if(!this._isDestroyed&&this._isActive){var n,r=this._item,s=r._element,o=r.getGrid(),a=o._element;this._container!==a&&(void 0!==e&&void 0!==i||(t?(n=li(s),e=n.x-this._containerDiffX,i=n.y-this._containerDiffY):(e=r._left,i=r._top)),a.appendChild(s),r._setTranslate(e,i)),this._isActive=!1,this._container=null,this._containerDiffX=0,this._containerDiffY=0}},Li.prototype.destroy=function(){this._isDestroyed||(this.stop(!0),this._item=null,this._isDestroyed=!0)},Ci.prototype.show=function(t,e){if(!this._isDestroyed){var i=this._item,n=i._element,r=te(e)?e:null,s=i.getGrid(),o=s._settings;this._isShowing||this._isHidden?!this._isShowing||t?(this._isShowing||(i._emitter.burst(this._queue,!0,i),ui(n,o.itemHiddenClass),Re(n,o.itemVisibleClass),this._isHiding||(n.style.display="")),r&&i._emitter.on(this._queue,r),this._isShowing=!0,this._isHiding=this._isHidden=!1,this._startAnimation(!0,t,this._finishShow)):r&&i._emitter.on(this._queue,r):r&&r(!1,i)}},Ci.prototype.hide=function(t,e){if(!this._isDestroyed){var i=this._item,n=i._element,r=te(e)?e:null,s=i.getGrid(),o=s._settings;this._isHiding||!this._isHidden?!this._isHiding||t?(this._isHiding||(i._emitter.burst(this._queue,!0,i),Re(n,o.itemHiddenClass),ui(n,o.itemVisibleClass)),r&&i._emitter.on(this._queue,r),this._isHidden=this._isHiding=!0,this._isShowing=!1,this._startAnimation(!1,t,this._finishHide)):r&&i._emitter.on(this._queue,r):r&&r(!1,i)}},Ci.prototype.stop=function(t){if(!this._isDestroyed&&(this._isHiding||this._isShowing)){var e=this._item;Et(e._id),this._animation.stop(),t&&e._emitter.burst(this._queue,!0,e)}},Ci.prototype.setStyles=function(t){var e=this._childElement,i=this._currentStyleProps;for(var n in this._removeCurrentStyles(),t)i.push(n),e.style[n]=t[n]},Ci.prototype.destroy=function(){if(!this._isDestroyed){var t=this._item,e=t._element,i=t.getGrid(),n=i._settings;this.stop(!0),t._emitter.clear(this._queue),this._animation.destroy(),this._removeCurrentStyles(),ui(e,n.itemVisibleClass),ui(e,n.itemHiddenClass),e.style.display="",this._isHiding=this._isShowing=!1,this._isDestroyed=this._isHidden=!0}},Ci.prototype._startAnimation=function(t,e,i){if(!this._isDestroyed){var n,r=this._item,s=this._animation,o=this._childElement,a=r.getGrid()._settings,l=t?a.visibleStyles:a.hiddenStyles,u=t?a.showDuration:a.hideDuration,c=t?a.showEasing:a.hideEasing,h=e||u<=0;if(l){if(Et(r._id),h)return Si(o,l),s.stop(),void(i&&i());s.isAnimating()&&(s._animation.onfinish=null),kt(r._id,(function(){n=gi(o,l)}),(function(){s.start(n,l,{duration:u,easing:c,onFinish:i})}))}else i&&i()}},Ci.prototype._finishShow=function(){this._isHidden||(this._isShowing=!1,this._item._emitter.burst(this._queue,!1,this._item))},Ci.prototype._finishHide=function(){if(this._isHidden){var t=this._item;this._isHiding=!1,t._layout.stop(!0,0,0),t._element.style.display="none",t._emitter.burst(this._queue,!1,t)}},Ci.prototype._removeCurrentStyles=function(){for(var t=this._childElement,e=this._currentStyleProps,i=0;i<e.length;i++)t.style[e[i]]="";e.length=0};var Ii=0;function Ni(){return++Ii}function Yi(t,e,i){var n=t._settings;if(r){if(r.has(e))throw new Error("You can only create one Muuri Item per element!");r.set(e,this)}this._id=Ni(),this._gridId=t._id,this._element=e,this._isDestroyed=!1,this._left=0,this._top=0,this._width=0,this._height=0,this._marginLeft=0,this._marginRight=0,this._marginTop=0,this._marginBottom=0,this._tX=void 0,this._tY=void 0,this._sortData=null,this._emitter=new N,e.parentNode!==t._element&&t._element.appendChild(e),Re(e,n.itemClass),"boolean"!==typeof i&&(i="none"!==ie(e,"display")),this._isActive=i,this._visibility=new Ci(this),this._layout=new Oi(this),this._migrate=new Li(this),this._drag=n.dragEnabled?new mi(this):null,this._dragRelease=new Mi(this),this._dragPlaceholder=new Ri(this)}function qi(t){var e=1,i=2,n=4,r=8,s=16,o=.001,a=.5;function l(t){return((1e3*t+.5|0)/10|0)/100}function u(){this.currentRects=[],this.nextRects=[],this.rectTarget={},this.rectStore=[],this.slotSizes=[],this.rectId=0,this.slotIndex=-1,this.slotData={left:0,top:0,width:0,height:0},this.sortRectsLeftTop=this.sortRectsLeftTop.bind(this),this.sortRectsTopLeft=this.sortRectsTopLeft.bind(this)}if(u.prototype.computeLayout=function(t,o){var a,u,c,h,d,f,p=t.items,m=t.slots,_=!!(o&e),g=!!(o&i),y=!!(o&n),v=!!(o&r),w=!!(o&s),b="number"===typeof p[0];if(!p.length)return t;for(u=b?2:1,a=0;a<p.length;a+=u)b?(h=p[a],d=p[a+1]):(c=p[a],h=c._width+c._marginLeft+c._marginRight,d=c._height+c._marginTop+c._marginBottom),w&&(h=l(h),d=l(d)),f=this.computeNextSlot(t,h,d,_,g),g?f.left+f.width>t.width&&(t.width=f.left+f.width):f.top+f.height>t.height&&(t.height=f.top+f.height),m[++this.slotIndex]=f.left,m[++this.slotIndex]=f.top,(y||v)&&this.slotSizes.push(f.width,f.height);if(y)for(a=0;a<m.length;a+=2)m[a]=t.width-(m[a]+this.slotSizes[a]);if(v)for(a=1;a<m.length;a+=2)m[a]=t.height-(m[a]+this.slotSizes[a]);return this.slotSizes.length=0,this.currentRects.length=0,this.nextRects.length=0,this.rectStore.length=0,this.rectId=0,this.slotIndex=-1,t},u.prototype.computeNextSlot=function(t,e,i,n,r){var s,l,u,c,h,d=this.slotData,f=this.currentRects,p=this.nextRects,m=!1;for(p.length=0,d.left=null,d.top=null,d.width=e,d.height=i,c=0;c<f.length;c++)if(l=f[c],l&&(s=this.getRect(l),d.width<=s.width+o&&d.height<=s.height+o)){d.left=s.left,d.top=s.top;break}if(null===d.left&&(r?(d.left=t.width,d.top=0):(d.left=0,d.top=t.height),n||(m=!0)),!r&&d.top+d.height>t.height+o&&(d.left>a&&p.push(this.addRect(0,t.height,d.left,1/0)),d.left+d.width<t.width-a&&p.push(this.addRect(d.left+d.width,t.height,t.width-d.left-d.width,1/0)),t.height=d.top+d.height),r&&d.left+d.width>t.width+o&&(d.top>a&&p.push(this.addRect(t.width,0,1/0,d.top)),d.top+d.height<t.height-a&&p.push(this.addRect(t.width,d.top+d.height,1/0,t.height-d.top-d.height)),t.width=d.left+d.width),!m)for(n&&(c=0);c<f.length;c++)if(l=f[c],l)for(s=this.getRect(l),u=this.splitRect(s,d),h=0;h<u.length;h++)l=u[h],s=this.getRect(l),(r?s.left+o<t.width-o:s.top+o<t.height-o)&&p.push(l);return p.length>1&&this.purgeRects(p).sort(r?this.sortRectsLeftTop:this.sortRectsTopLeft),this.currentRects=p,this.nextRects=f,d},u.prototype.addRect=function(t,e,i,n){var r=++this.rectId;return this.rectStore[r]=t||0,this.rectStore[++this.rectId]=e||0,this.rectStore[++this.rectId]=i||0,this.rectStore[++this.rectId]=n||0,r},u.prototype.getRect=function(t,e){return e||(e=this.rectTarget),e.left=this.rectStore[t]||0,e.top=this.rectStore[++t]||0,e.width=this.rectStore[++t]||0,e.height=this.rectStore[++t]||0,e},u.prototype.splitRect=function(){var t=[],e=0,i=0;return function(n,r){return t.length=0,n.left+n.width<=r.left+o||r.left+r.width<=n.left+o||n.top+n.height<=r.top+o||r.top+r.height<=n.top+o?(t.push(this.addRect(n.left,n.top,n.width,n.height)),t):(e=r.left-n.left,e>=a&&t.push(this.addRect(n.left,n.top,e,n.height)),e=n.left+n.width-(r.left+r.width),e>=a&&t.push(this.addRect(r.left+r.width,n.top,e,n.height)),i=r.top-n.top,i>=a&&t.push(this.addRect(n.left,n.top,n.width,i)),i=n.top+n.height-(r.top+r.height),i>=a&&t.push(this.addRect(n.left,r.top+r.height,n.width,i)),t)}}(),u.prototype.isRectAWithinRectB=function(t,e){return t.left+o>=e.left&&t.top+o>=e.top&&t.left+t.width-o<=e.left+e.width&&t.top+t.height-o<=e.top+e.height},u.prototype.purgeRects=function(){var t={},e={};return function(i){var n,r=i.length;while(r--)if(n=i.length,i[r]){this.getRect(i[r],t);while(n--)if(i[n]&&r!==n&&(this.getRect(i[n],e),this.isRectAWithinRectB(t,e))){i[r]=0;break}}return i}}(),u.prototype.sortRectsTopLeft=function(){var t={},e={};return function(i,n){return this.getRect(i,t),this.getRect(n,e),t.top<e.top&&t.top+o<e.top?-1:t.top>e.top&&t.top-o>e.top?1:t.left<e.left&&t.left+o<e.left?-1:t.left>e.left&&t.left-o>e.left?1:0}}(),u.prototype.sortRectsLeftTop=function(){var t={},e={};return function(i,n){return this.getRect(i,t),this.getRect(n,e),t.left<e.left&&t.left+o<e.left?-1:t.left>e.left&&t.left-o<e.left?1:t.top<e.top&&t.top+o<e.top?-1:t.top>e.top&&t.top-o>e.top?1:0}}(),t){var c=1,h=2,d=3,f=4,p=new u;self.onmessage=function(t){var e=new Float32Array(t.data),i=e.subarray(f,e.length),n=new Float32Array(i.length),r=e[d],s={items:i,slots:n,width:e[c],height:e[h]};p.computeLayout(s,r),e[c]=s.width,e[h]=s.height,e.set(s.slots,f),postMessage(e.buffer,[e.buffer])}}return u}Yi.prototype.getGrid=function(){return n[this._gridId]},Yi.prototype.getElement=function(){return this._element},Yi.prototype.getWidth=function(){return this._width},Yi.prototype.getHeight=function(){return this._height},Yi.prototype.getMargin=function(){return{left:this._marginLeft,right:this._marginRight,top:this._marginTop,bottom:this._marginBottom}},Yi.prototype.getPosition=function(){return{left:this._left,top:this._top}},Yi.prototype.isActive=function(){return this._isActive},Yi.prototype.isVisible=function(){return!!this._visibility&&!this._visibility._isHidden},Yi.prototype.isShowing=function(){return!(!this._visibility||!this._visibility._isShowing)},Yi.prototype.isHiding=function(){return!(!this._visibility||!this._visibility._isHiding)},Yi.prototype.isPositioning=function(){return!(!this._layout||!this._layout._isActive)},Yi.prototype.isDragging=function(){return!(!this._drag||!this._drag._isActive)},Yi.prototype.isReleasing=function(){return!(!this._dragRelease||!this._dragRelease._isActive)},Yi.prototype.isDestroyed=function(){return this._isDestroyed},Yi.prototype._refreshDimensions=function(t){if(!this._isDestroyed&&(!0===t||!this._visibility._isHidden)){var e=this._element,i=this._dragPlaceholder,n=e.getBoundingClientRect();this._width=n.width,this._height=n.height,this._marginLeft=Math.max(0,ne(e,"margin-left")),this._marginRight=Math.max(0,ne(e,"margin-right")),this._marginTop=Math.max(0,ne(e,"margin-top")),this._marginBottom=Math.max(0,ne(e,"margin-bottom")),i&&i.updateDimensions()}},Yi.prototype._refreshSortData=function(){if(!this._isDestroyed){var t,e=this._sortData={},i=this.getGrid()._settings.sortData;for(t in i)e[t]=i[t](this,this._element)}},Yi.prototype._addToLayout=function(t,e){!0!==this._isActive&&(this._isActive=!0,this._left=t||0,this._top=e||0)},Yi.prototype._removeFromLayout=function(){!1!==this._isActive&&(this._isActive=!1,this._left=0,this._top=0)},Yi.prototype._canSkipLayout=function(t,e){return this._left===t&&this._top===e&&!this._migrate._isActive&&!this._layout._skipNextAnimation&&!this._dragRelease.isJustReleased()},Yi.prototype._setTranslate=function(t,e){return(this._tX!==t||this._tY!==e)&&(this._tX=t,this._tY=e,this._element.style[Ne]=Ei(t,e),!0)},Yi.prototype._destroy=function(t){if(!this._isDestroyed){var e=this._element,i=this.getGrid(),n=i._settings;this._dragPlaceholder.destroy(),this._dragRelease.destroy(),this._migrate.destroy(),this._layout.destroy(),this._visibility.destroy(),this._drag&&this._drag.destroy(),this._emitter.destroy(),ui(e,n.itemClass),t&&e.parentNode.removeChild(e),r&&r.delete(e),this._isActive=!1,this._isDestroyed=!0}};var Fi=qi(),Bi=null,Hi=[];function Wi(t,e){var i=[];if(t>0){Bi||(Bi=URL.createObjectURL(new Blob(["("+qi.toString()+")(true)"],{type:"application/javascript"})));for(var n,r=0;r<t;r++)n=new Worker(Bi),e&&(n.onmessage=e),i.push(n),Hi.push(n)}return i}function Xi(t){for(var e,i,n=0;n<t.length;n++)e=t[n],e.onmessage=null,e.onerror=null,e.onmessageerror=null,e.terminate(),i=Hi.indexOf(e),i>-1&&Hi.splice(i,1);Bi&&!Hi.length&&(URL.revokeObjectURL(Bi),Bi=null)}function ji(){return!!(window.Worker&&window.URL&&window.Blob)}var zi=1,Gi=2,Ui=4,Vi=8,Qi=16,$i=0,Ji=1,Ki=2,Zi=3,tn=4;function en(t,e){if(this._options=0,this._processor=null,this._layoutQueue=[],this._layouts={},this._layoutCallbacks={},this._layoutWorkers={},this._layoutWorkerData={},this._workers=[],this._onWorkerMessage=this._onWorkerMessage.bind(this),this.setOptions(e),t="number"===typeof t?Math.max(0,t):0,t&&ji())try{this._workers=Wi(t,this._onWorkerMessage)}catch(i){this._processor=new Fi}else this._processor=new Fi}en.prototype._sendToWorker=function(){if(this._layoutQueue.length&&this._workers.length){var t=this._layoutQueue.shift(),e=this._workers.pop(),i=this._layoutWorkerData[t];delete this._layoutWorkerData[t],this._layoutWorkers[t]=e,e.postMessage(i.buffer,[i.buffer])}},en.prototype._onWorkerMessage=function(t){var e=new Float32Array(t.data),i=e[$i],n=this._layouts[i],r=this._layoutCallbacks[i],s=this._layoutWorkers[i];n&&delete this._layouts[i],r&&delete this._layoutCallbacks[i],s&&delete this._layoutWorkers[i],n&&r&&(n.width=e[Ji],n.height=e[Ki],n.slots=e.subarray(tn,e.length),this._finalizeLayout(n),r(n)),s&&(this._workers.push(s),this._sendToWorker())},en.prototype._finalizeLayout=function(t){var e=t._grid,i=t._settings&Gi,n="border-box"===e._boxSizing;return delete t._grid,delete t._settings,t.styles={},i?t.styles.width=(n?t.width+e._borderLeft+e._borderRight:t.width)+"px":t.styles.height=(n?t.height+e._borderTop+e._borderBottom:t.height)+"px",t},en.prototype.setOptions=function(t){var e,i,n,r,s;t&&(e="boolean"===typeof t.fillGaps?t.fillGaps?zi:0:this._options&zi,i="boolean"===typeof t.horizontal?t.horizontal?Gi:0:this._options&Gi,n="boolean"===typeof t.alignRight?t.alignRight?Ui:0:this._options&Ui,r="boolean"===typeof t.alignBottom?t.alignBottom?Vi:0:this._options&Vi,s="boolean"===typeof t.rounding?t.rounding?Qi:0:this._options&Qi,this._options=e|i|n|r|s)},en.prototype.createLayout=function(t,e,i,n,r,s){if(this._layouts[e])throw new Error("A layout with the provided id is currently being processed.");var o=this._options&Gi,a={id:e,items:i,slots:null,width:o?0:n,height:o?r:0,_grid:t,_settings:this._options};if(!i.length)return a.slots=[],this._finalizeLayout(a),void s(a);if(this._processor)return a.slots=window.Float32Array?new Float32Array(2*i.length):new Array(2*i.length),this._processor.computeLayout(a,a._settings),this._finalizeLayout(a),void s(a);var l,u,c,h=new Float32Array(tn+2*i.length);for(h[$i]=e,h[Ji]=a.width,h[Ki]=a.height,h[Zi]=a._settings,l=0,u=tn-1,c;l<i.length;l++)c=i[l],h[++u]=c._width+c._marginLeft+c._marginRight,h[++u]=c._height+c._marginTop+c._marginBottom;return this._layoutQueue.push(e),this._layouts[e]=a,this._layoutCallbacks[e]=s,this._layoutWorkerData[e]=h,this._sendToWorker(),this.cancelLayout.bind(this,e)},en.prototype.cancelLayout=function(t){var e=this._layouts[t];if(e&&(delete this._layouts[t],delete this._layoutCallbacks[t],this._layoutWorkerData[t])){delete this._layoutWorkerData[t];var i=this._layoutQueue.indexOf(t);i>-1&&this._layoutQueue.splice(i,1)}},en.prototype.destroy=function(){for(var t in this._layoutWorkers)this._workers.push(this._layoutWorkers[t]);Xi(this._workers),this._workers.length=0,this._layoutQueue.length=0,this._layouts={},this._layoutCallbacks={},this._layoutWorkers={},this._layoutWorkerData={}};var nn=0;function rn(t,e){var i=++nn,n=0,r=0,s=!1,o=function(e){s||(r&&(n-=e-r),r=e,n>0?Xt(i,o):(n=r=0,t()))};return function(a){if(!s){if(!(e<=0))return!0===a?(s=!0,n=r=0,o=void 0,void jt(i)):void(n<=0?(n=e,o(0)):n=e);!0!==a&&t()}}}var sn="[object HTMLCollection]",on="[object NodeList]";function an(t){var e=Object.prototype.toString.call(t);return e===sn||e===on}var ln="object",un="[object Object]",cn=Object.prototype.toString;function hn(t){return typeof t===ln&&cn.call(t)===un}function dn(){}function fn(t){return an(t)?Array.prototype.slice.call(t):Array.prototype.concat(t)}var pn="number",mn="string",_n="instant",gn=0;function yn(t,e){typeof t===mn&&(t=document.querySelector(t));var i=t.getRootNode?t.getRootNode({composed:!0})===document:document.body.contains(t);if(!i||t===document.documentElement)throw new Error("Container element must be an existing DOM element.");var r=vn(yn.defaultOptions,e);r.visibleStyles=Tn(r.visibleStyles),r.hiddenStyles=Tn(r.hiddenStyles),te(r.dragSort)||(r.dragSort=!!r.dragSort),this._id=Ni(),this._element=t,this._settings=r,this._isDestroyed=!1,this._items=[],this._layout={id:0,items:[],slots:[]},this._isLayoutFinished=!0,this._nextLayoutData=null,this._emitter=new N,this._onLayoutDataReceived=this._onLayoutDataReceived.bind(this),n[this._id]=this,Re(t,r.containerClass),xn(this,r.layoutOnResize),this.add(bn(t,r.items),{layout:!1}),r.layoutOnInit&&this.layout(!0)}function vn(t,e){var i=wn({},t);return e&&(i=wn(i,e)),e&&e.visibleStyles?i.visibleStyles=e.visibleStyles:t&&t.visibleStyles&&(i.visibleStyles=t.visibleStyles),e&&e.hiddenStyles?i.hiddenStyles=e.hiddenStyles:t&&t.hiddenStyles&&(i.hiddenStyles=t.hiddenStyles),i}function wn(t,e){var i,n,r,s=Object.keys(e),o=s.length;for(r=0;r<o;r++)n=s[r],i=hn(e[n]),hn(t[n])&&i?t[n]=wn(wn({},t[n]),e[n]):i?t[n]=wn({},e[n]):Array.isArray(e[n])?t[n]=e[n].slice(0):t[n]=e[n];return t}function bn(t,e){if("*"===e)return t.children;if(typeof e===mn){for(var i=[],n=t.children,r=0;r<n.length;r++)Ee(n[r],e)&&i.push(n[r]);return i}return Array.isArray(e)||an(e)?e:[]}function xn(t,e){typeof e!==pn&&(e=!0===e?0:-1),e>=0&&(t._resizeHandler=rn((function(){t.refreshItems().layout()}),e),window.addEventListener("resize",t._resizeHandler))}function Sn(t){t._resizeHandler&&(t._resizeHandler(!0),window.removeEventListener("resize",t._resizeHandler),t._resizeHandler=null)}function Tn(t){var e,i,n={},r=document.documentElement.style;for(e in t)t[e]&&(i=W(r,e),i&&(n[i]=t[e]));return n}function Dn(t){for(var e={},i=0;i<t.length;i++)e[t[i]._id]=i;return e}function An(t,e,i){var n=t[e._id],r=t[i._id];return n-r}yn.Item=Yi,yn.ItemLayout=Oi,yn.ItemVisibility=Ci,yn.ItemMigrate=Li,yn.ItemDrag=mi,yn.ItemDragRelease=Mi,yn.ItemDragPlaceholder=Ri,yn.Emitter=N,yn.Animator=Ai,yn.Dragger=Z,yn.Packer=en,yn.AutoScroller=De,yn.defaultPacker=new en(2),yn.defaultOptions={items:"*",showDuration:300,showEasing:"ease",hideDuration:300,hideEasing:"ease",visibleStyles:{opacity:"1",transform:"scale(1)"},hiddenStyles:{opacity:"0",transform:"scale(0.5)"},layout:{fillGaps:!1,horizontal:!1,alignRight:!1,alignBottom:!1,rounding:!1},layoutOnResize:150,layoutOnInit:!0,layoutDuration:300,layoutEasing:"ease",sortData:null,dragEnabled:!1,dragContainer:null,dragHandle:null,dragStartPredicate:{distance:0,delay:0},dragAxis:"xy",dragSort:!0,dragSortHeuristics:{sortInterval:100,minDragDistance:10,minBounceBackAngle:1},dragSortPredicate:{threshold:50,action:o,migrateAction:o},dragRelease:{duration:300,easing:"ease",useDragContainer:!0},dragCssProps:{touchAction:"none",userSelect:"none",userDrag:"none",tapHighlightColor:"rgba(0, 0, 0, 0)",touchCallout:"none",contentZooming:"none"},dragPlaceholder:{enabled:!1,createElement:null,onCreate:null,onRemove:null},dragAutoScroll:{targets:[],handle:null,threshold:50,safeZone:.2,speed:De.smoothSpeed(1e3,2e3,2500),sortDuringScroll:!0,smoothStop:!1,onStart:null,onStop:null},containerClass:"muuri",itemClass:"muuri-item",itemVisibleClass:"muuri-item-shown",itemHiddenClass:"muuri-item-hidden",itemPositioningClass:"muuri-item-positioning",itemDraggingClass:"muuri-item-dragging",itemReleasingClass:"muuri-item-releasing",itemPlaceholderClass:"muuri-item-placeholder"},yn.prototype.on=function(t,e){return this._emitter.on(t,e),this},yn.prototype.off=function(t,e){return this._emitter.off(t,e),this},yn.prototype.getElement=function(){return this._element},yn.prototype.getItem=function(t){if(this._isDestroyed||!t&&0!==t)return null;if(typeof t===pn)return this._items[t>-1?t:this._items.length+t]||null;if(t instanceof Yi)return t._gridId===this._id?t:null;if(r){var e=r.get(t);return e&&e._gridId===this._id?e:null}for(var i=0;i<this._items.length;i++)if(this._items[i]._element===t)return this._items[i];return null},yn.prototype.getItems=function(t){if(this._isDestroyed||void 0===t)return this._items.slice(0);var e,i,n=[];if(Array.isArray(t)||an(t))for(e=0;e<t.length;e++)i=this.getItem(t[e]),i&&n.push(i);else i=this.getItem(t),i&&n.push(i);return n},yn.prototype.refreshItems=function(t,e){if(this._isDestroyed)return this;var i,n,r,s,o=t||this._items;if(!0===e)for(s=[],i=0;i<o.length;i++)n=o[i],n.isVisible()||n.isHiding()||(r=n.getElement().style,r.visibility="hidden",r.display="",s.push(r));for(i=0;i<o.length;i++)o[i]._refreshDimensions(e);if(!0===e){for(i=0;i<s.length;i++)r=s[i],r.visibility="",r.display="none";s.length=0}return this},yn.prototype.refreshSortData=function(t){if(this._isDestroyed)return this;for(var e=t||this._items,i=0;i<e.length;i++)e[i]._refreshSortData();return this},yn.prototype.synchronize=function(){if(this._isDestroyed)return this;var t,e,i=this._items;if(!i.length)return this;for(var n=0;n<i.length;n++)e=i[n]._element,e.parentNode===this._element&&(t=t||document.createDocumentFragment(),t.appendChild(e));return t?(this._element.appendChild(t),this._emit(a),this):this},yn.prototype.layout=function(t,e){if(this._isDestroyed)return this;var i=this._nextLayoutData;i&&te(i.cancel)&&i.cancel(),gn=gn%I+1;var n=gn;this._nextLayoutData={id:n,instant:t,onFinish:e,cancel:null};for(var r=this._items,s=[],o=0;o<r.length;o++)r[o]._isActive&&s.push(r[o]);this._refreshDimensions();var a,l=this._width-this._borderLeft-this._borderRight,u=this._height-this._borderTop-this._borderBottom,c=this._settings.layout;return te(c)?a=c(this,n,s,l,u,this._onLayoutDataReceived):(yn.defaultPacker.setOptions(c),a=yn.defaultPacker.createLayout(this,n,s,l,u,this._onLayoutDataReceived)),te(a)&&this._nextLayoutData&&this._nextLayoutData.id===n&&(this._nextLayoutData.cancel=a),this},yn.prototype.add=function(t,e){if(this._isDestroyed||!t)return[];var i=fn(t);if(!i.length)return i;var n,r,s,o,a=e||{},l=a.layout?a.layout:void 0===a.layout,u=this._items,c=!1;for(o=0;o<i.length;o++)r=i[o],r.parentNode!==this._element&&(n=n||document.createDocumentFragment(),n.appendChild(r));for(n&&this._element.appendChild(n),o=0;o<i.length;o++)r=i[o],s=i[o]=new Yi(this,r,a.active),s._isActive&&(c=!0,s._layout._skipNextAnimation=!0);for(o=0;o<i.length;o++)s=i[o],s._refreshDimensions(),s._refreshSortData();return Oe(u,i,a.index),this._hasListeners(h)&&this._emit(h,i.slice(0)),c&&l&&this.layout(l===_n,te(l)?l:void 0),i},yn.prototype.remove=function(t,e){if(this._isDestroyed||!t.length)return[];var i,n,r,s=e||{},o=s.layout?s.layout:void 0===s.layout,a=!1,l=this.getItems(),u=[],c=[];for(r=0;r<t.length;r++)n=t[r],n._isDestroyed||(i=this._items.indexOf(n),-1!==i&&(n._isActive&&(a=!0),u.push(n),c.push(l.indexOf(n)),n._destroy(s.removeElements),this._items.splice(i,1)));return this._hasListeners(d)&&this._emit(d,u.slice(0),c),a&&o&&this.layout(o===_n,te(o)?o:void 0),u},yn.prototype.show=function(t,e){return!this._isDestroyed&&t.length&&this._setItemsVisibility(t,!0,e),this},yn.prototype.hide=function(t,e){return!this._isDestroyed&&t.length&&this._setItemsVisibility(t,!1,e),this},yn.prototype.filter=function(t,e){if(this._isDestroyed||!this._items.length)return this;var i,n,r=[],s=[],o=typeof t===mn,a=te(t),l=e||{},u=!0===l.instant,c=l.syncWithLayout,h=l.layout?l.layout:void 0===l.layout,d=te(l.onFinish)?l.onFinish:null,f=-1,p=dn;if(d&&(p=function(){++f&&d(r.slice(0),s.slice(0))}),a||o)for(n=0;n<this._items.length;n++)i=this._items[n],(a?t(i):Ee(i._element,t))?r.push(i):s.push(i);return r.length?this.show(r,{instant:u,syncWithLayout:c,onFinish:p,layout:!1}):p(),s.length?this.hide(s,{instant:u,syncWithLayout:c,onFinish:p,layout:!1}):p(),(r.length||s.length)&&(this._hasListeners(g)&&this._emit(g,r.slice(0),s.slice(0)),h&&this.layout(h===_n,te(h)?h:void 0)),this},yn.prototype.sort=function(){var t,e,i,n;function r(r,s){for(var o,a,l,u,c=0,h=0;h<t.length;h++)if(o=t[h][0],a=t[h][1],l=(r._sortData?r:r._refreshSortData())._sortData[o],u=(s._sortData?s:s._refreshSortData())._sortData[o],c="desc"===a||!a&&e?u<l?-1:u>l?1:0:l<u?-1:l>u?1:0,c)return c;return c||(n||(n=Dn(i)),c=e?An(n,s,r):An(n,r,s)),c}function s(r,s){var o=e?-t(r,s):t(r,s);return o||(n||(n=Dn(i)),o=e?An(n,s,r):An(n,r,s)),o}return function(o,a){if(this._isDestroyed||this._items.length<2)return this;var l=this._items,u=a||{},c=u.layout?u.layout:void 0===u.layout;if(e=!!u.descending,i=l.slice(0),n=null,te(o))t=o,l.sort(s);else if(typeof o===mn)t=o.trim().split(" ").filter((function(t){return t})).map((function(t){return t.split(":")})),l.sort(r);else{if(!Array.isArray(o))throw t=e=i=n=null,new Error("Invalid comparer argument provided.");l.length=0,l.push.apply(l,o)}return this._hasListeners(y)&&this._emit(y,l.slice(0),i),c&&this.layout(c===_n,te(c)?c:void 0),t=e=i=n=null,this}}(),yn.prototype.move=function(t,e,i){if(this._isDestroyed||this._items.length<2)return this;var n,r,a=this._items,l=i||{},u=l.layout?l.layout:void 0===l.layout,c=l.action===s,h=c?s:o,d=this.getItem(t),f=this.getItem(e);return d&&f&&d!==f&&(n=a.indexOf(d),r=a.indexOf(f),c?Ie(a,n,r):Ce(a,n,r),this._hasListeners(v)&&this._emit(v,{item:d,fromIndex:n,toIndex:r,action:h}),u&&this.layout(u===_n,te(u)?u:void 0)),this},yn.prototype.send=function(t,e,i,n){if(this._isDestroyed||e._isDestroyed||this===e)return this;if(t=this.getItem(t),!t)return this;var r=n||{},s=r.appendTo||document.body,o=r.layoutSender?r.layoutSender:void 0===r.layoutSender,a=r.layoutReceiver?r.layoutReceiver:void 0===r.layoutReceiver;return t._migrate.start(e,i,s),t._migrate._isActive&&t._isActive&&(o&&this.layout(o===_n,te(o)?o:void 0),a&&e.layout(a===_n,te(a)?a:void 0)),this},yn.prototype.destroy=function(t){if(this._isDestroyed)return this;var e,i,r=this._element,s=this._items.slice(0),o=this._layout&&this._layout.styles||{};for(Sn(this),e=0;e<s.length;e++)s[e]._destroy(t);for(i in this._items.length=0,ui(r,this._settings.containerClass),o)r.style[i]="";return this._emit(P),this._emitter.destroy(),delete n[this._id],this._isDestroyed=!0,this},yn.prototype._emit=function(){this._isDestroyed||this._emitter.emit.apply(this._emitter,arguments)},yn.prototype._hasListeners=function(t){return!this._isDestroyed&&this._emitter.countListeners(t)>0},yn.prototype._updateBoundingRect=function(){var t=this._element,e=t.getBoundingClientRect();this._width=e.width,this._height=e.height,this._left=e.left,this._top=e.top,this._right=e.right,this._bottom=e.bottom},yn.prototype._updateBorders=function(t,e,i,n){var r=this._element;t&&(this._borderLeft=ne(r,"border-left-width")),e&&(this._borderRight=ne(r,"border-right-width")),i&&(this._borderTop=ne(r,"border-top-width")),n&&(this._borderBottom=ne(r,"border-bottom-width"))},yn.prototype._refreshDimensions=function(){this._updateBoundingRect(),this._updateBorders(1,1,1,1),this._boxSizing=ie(this._element,"box-sizing")},yn.prototype._onLayoutDataReceived=function(){var t=[];return function(e){if(!this._isDestroyed&&this._nextLayoutData&&this._nextLayoutData.id===e.id){var i,n,r,s,o=this,a=this._nextLayoutData.instant,h=this._nextLayoutData.onFinish,d=e.items.length,f=d;for(this._nextLayoutData=null,!this._isLayoutFinished&&this._hasListeners(c)&&this._emit(c,this._layout.items.slice(0)),this._layout=e,t.length=0,s=0;s<d;s++)i=e.items[s],i?(n=e.slots[2*s],r=e.slots[2*s+1],i._canSkipLayout(n,r)?--f:(i._left=n,i._top=r,i.isActive()&&!i.isDragging()?t.push(i):--f)):--f;if(e.styles&&Si(this._element,e.styles),!this._hasListeners(l)||(this._emit(l,e.items.slice(0),!0===a),this._layout.id===e.id)){var p=function(){if(!(--f>0)){var t=o._layout.id!==e.id,i=te(a)?a:h;t||(o._isLayoutFinished=!0),te(i)&&i(e.items.slice(0),t),!t&&o._hasListeners(u)&&o._emit(u,e.items.slice(0))}};if(!t.length)return p(),this;for(this._isLayoutFinished=!1,s=0;s<t.length;s++){if(this._layout.id!==e.id)break;t[s]._layout.start(!0===a,p)}return this._layout.id===e.id&&(t.length=0),this}}}}(),yn.prototype._setItemsVisibility=function(t,e,i){var n,r,s=this,o=t.slice(0),a=i||{},u=!0===a.instant,c=a.onFinish,h=a.layout?a.layout:void 0===a.layout,d=o.length,g=e?f:m,y=e?p:_,v=e?"show":"hide",w=!1,b=[],x=[];if(d){for(r=0;r<o.length;r++)n=o[r],(e&&!n._isActive||!e&&n._isActive)&&(w=!0),n._layout._skipNextAnimation=!(!e||n._isActive),e&&n._visibility._isHidden&&x.push(n),e?n._addToLayout():n._removeFromLayout();x.length&&(this.refreshItems(x,!0),x.length=0),w&&!1!==a.syncWithLayout?this.on(l,S):S(),w&&h&&this.layout(h===_n,te(h)?h:void 0)}else te(c)&&c(o);function S(){for(w&&!1!==a.syncWithLayout&&s.off(l,S),s._hasListeners(g)&&s._emit(g,o.slice(0)),r=0;r<o.length;r++)o[r]._gridId===s._id?o[r]._visibility[v](u,(function(t,e){t||b.push(e),--d<1&&(te(c)&&c(b.slice(0)),s._hasListeners(y)&&s._emit(y,b.slice(0)))})):--d<1&&(te(c)&&c(b.slice(0)),s._hasListeners(y)&&s._emit(y,b.slice(0)))}};const kn=yn},9037:(t,e,i)=>{var n=i(5859);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var r=i(4825).A;r("400a75d9",n,!0,{sourceMap:!1,shadowMode:!1})},2937:(t,e,i)=>{"use strict";var n=i(3243).has;t.exports=function(t){return n(t),t}},286:(t,e,i)=>{"use strict";var n=i(4578),r=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new r("Incorrect invocation")}},8732:t=>{"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},1617:(t,e,i)=>{"use strict";var n=i(1025),r=i(8689),s=TypeError;t.exports=n(ArrayBuffer.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==r(t))throw new s("ArrayBuffer expected");return t.byteLength}},6821:(t,e,i)=>{"use strict";var n=i(6881),r=i(1617),s=n(ArrayBuffer.prototype.slice);t.exports=function(t){if(0!==r(t))return!1;try{return s(t,0,0),!1}catch(e){return!0}}},5677:(t,e,i)=>{"use strict";var n=i(1488),r=i(6881),s=i(1025),o=i(4579),a=i(6821),l=i(1617),u=i(8850),c=i(9059),h=n.structuredClone,d=n.ArrayBuffer,f=n.DataView,p=n.TypeError,m=Math.min,_=d.prototype,g=f.prototype,y=r(_.slice),v=s(_,"resizable","get"),w=s(_,"maxByteLength","get"),b=r(g.getInt8),x=r(g.setInt8);t.exports=(c||u)&&function(t,e,i){var n,r=l(t),s=void 0===e?r:o(e),_=!v||!v(t);if(a(t))throw new p("ArrayBuffer is detached");if(c&&(t=h(t,{transfer:[t]}),r===s&&(i||_)))return t;if(r>=s&&(!i||_))n=y(t,0,s);else{var g=i&&!_&&w?{maxByteLength:w(t)}:void 0;n=new d(s,g);for(var S=new f(t),T=new f(n),D=m(s,r),A=0;A<D;A++)x(T,A,b(S,A))}return c||u(t),n}},7223:(t,e,i)=>{"use strict";var n,r,s,o=i(8732),a=i(6893),l=i(1488),u=i(4188),c=i(831),h=i(4418),d=i(5438),f=i(3174),p=i(8088),m=i(7509),_=i(997),g=i(4578),y=i(1786),v=i(5054),w=i(4282),b=i(6209),x=i(3086),S=x.enforce,T=x.get,D=l.Int8Array,A=D&&D.prototype,k=l.Uint8ClampedArray,E=k&&k.prototype,R=D&&y(D),M=A&&y(A),P=Object.prototype,O=l.TypeError,L=w("toStringTag"),C=b("TYPED_ARRAY_TAG"),I="TypedArrayConstructor",N=o&&!!v&&"Opera"!==d(l.opera),Y=!1,q={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},B=function(t){if(!c(t))return!1;var e=d(t);return"DataView"===e||h(q,e)||h(F,e)},H=function(t){var e=y(t);if(c(e)){var i=T(e);return i&&h(i,I)?i[I]:H(e)}},W=function(t){if(!c(t))return!1;var e=d(t);return h(q,e)||h(F,e)},X=function(t){if(W(t))return t;throw new O("Target is not a typed array")},j=function(t){if(u(t)&&(!v||g(R,t)))return t;throw new O(f(t)+" is not a typed array constructor")},z=function(t,e,i,n){if(a){if(i)for(var r in q){var s=l[r];if(s&&h(s.prototype,t))try{delete s.prototype[t]}catch(o){try{s.prototype[t]=e}catch(u){}}}M[t]&&!i||m(M,t,i?e:N&&A[t]||e,n)}},G=function(t,e,i){var n,r;if(a){if(v){if(i)for(n in q)if(r=l[n],r&&h(r,t))try{delete r[t]}catch(s){}if(R[t]&&!i)return;try{return m(R,t,i?e:N&&R[t]||e)}catch(s){}}for(n in q)r=l[n],!r||r[t]&&!i||m(r,t,e)}};for(n in q)r=l[n],s=r&&r.prototype,s?S(s)[I]=r:N=!1;for(n in F)r=l[n],s=r&&r.prototype,s&&(S(s)[I]=r);if((!N||!u(R)||R===Function.prototype)&&(R=function(){throw new O("Incorrect invocation")},N))for(n in q)l[n]&&v(l[n],R);if((!N||!M||M===P)&&(M=R.prototype,N))for(n in q)l[n]&&v(l[n].prototype,M);if(N&&y(E)!==M&&v(E,M),a&&!h(M,L))for(n in Y=!0,_(M,L,{configurable:!0,get:function(){return c(this)?this[C]:void 0}}),q)l[n]&&p(l[n],C,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:Y&&C,aTypedArray:X,aTypedArrayConstructor:j,exportTypedArrayMethod:z,exportTypedArrayStaticMethod:G,getTypedArrayConstructor:H,isView:B,isTypedArray:W,TypedArray:R,TypedArrayPrototype:M}},8633:(t,e,i)=>{"use strict";var n=i(1488),r=i(6881),s=i(6893),o=i(8732),a=i(2735),l=i(8088),u=i(997),c=i(4320),h=i(5234),d=i(286),f=i(6744),p=i(7611),m=i(4579),_=i(2420),g=i(6103),y=i(1786),v=i(5054),w=i(8150),b=i(7825),x=i(4166),S=i(8657),T=i(3754),D=i(3086),A=a.PROPER,k=a.CONFIGURABLE,E="ArrayBuffer",R="DataView",M="prototype",P="Wrong length",O="Wrong index",L=D.getterFor(E),C=D.getterFor(R),I=D.set,N=n[E],Y=N,q=Y&&Y[M],F=n[R],B=F&&F[M],H=Object.prototype,W=n.Array,X=n.RangeError,j=r(w),z=r([].reverse),G=g.pack,U=g.unpack,V=function(t){return[255&t]},Q=function(t){return[255&t,t>>8&255]},$=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},J=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},K=function(t){return G(_(t),23,4)},Z=function(t){return G(t,52,8)},tt=function(t,e,i){u(t[M],e,{configurable:!0,get:function(){return i(this)[e]}})},et=function(t,e,i,n){var r=C(t),s=m(i),o=!!n;if(s+e>r.byteLength)throw new X(O);var a=r.bytes,l=s+r.byteOffset,u=b(a,l,l+e);return o?u:z(u)},it=function(t,e,i,n,r,s){var o=C(t),a=m(i),l=n(+r),u=!!s;if(a+e>o.byteLength)throw new X(O);for(var c=o.bytes,h=a+o.byteOffset,d=0;d<e;d++)c[h+d]=l[u?d:e-d-1]};if(o){var nt=A&&N.name!==E;h((function(){N(1)}))&&h((function(){new N(-1)}))&&!h((function(){return new N,new N(1.5),new N(NaN),1!==N.length||nt&&!k}))?nt&&k&&l(N,"name",E):(Y=function(t){return d(this,q),x(new N(m(t)),this,Y)},Y[M]=q,q.constructor=Y,S(Y,N)),v&&y(B)!==H&&v(B,H);var rt=new F(new Y(2)),st=r(B.setInt8);rt.setInt8(0,2147483648),rt.setInt8(1,2147483649),!rt.getInt8(0)&&rt.getInt8(1)||c(B,{setInt8:function(t,e){st(this,t,e<<24>>24)},setUint8:function(t,e){st(this,t,e<<24>>24)}},{unsafe:!0})}else Y=function(t){d(this,q);var e=m(t);I(this,{type:E,bytes:j(W(e),0),byteLength:e}),s||(this.byteLength=e,this.detached=!1)},q=Y[M],F=function(t,e,i){d(this,B),d(t,q);var n=L(t),r=n.byteLength,o=f(e);if(o<0||o>r)throw new X("Wrong offset");if(i=void 0===i?r-o:p(i),o+i>r)throw new X(P);I(this,{type:R,buffer:t,byteLength:i,byteOffset:o,bytes:n.bytes}),s||(this.buffer=t,this.byteLength=i,this.byteOffset=o)},B=F[M],s&&(tt(Y,"byteLength",L),tt(F,"buffer",C),tt(F,"byteLength",C),tt(F,"byteOffset",C)),c(B,{getInt8:function(t){return et(this,1,t)[0]<<24>>24},getUint8:function(t){return et(this,1,t)[0]},getInt16:function(t){var e=et(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=et(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return J(et(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return J(et(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return U(et(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return U(et(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){it(this,1,t,V,e)},setUint8:function(t,e){it(this,1,t,V,e)},setInt16:function(t,e){it(this,2,t,Q,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){it(this,2,t,Q,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){it(this,4,t,$,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){it(this,4,t,$,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){it(this,4,t,K,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){it(this,8,t,Z,e,arguments.length>2&&arguments[2])}});T(Y,E),T(F,R),t.exports={ArrayBuffer:Y,DataView:F}},8150:(t,e,i)=>{"use strict";var n=i(3628),r=i(675),s=i(9389);t.exports=function(t){var e=n(this),i=s(e),o=arguments.length,a=r(o>1?arguments[1]:void 0,i),l=o>2?arguments[2]:void 0,u=void 0===l?i:r(l,i);while(u>a)e[a++]=t;return e}},6759:(t,e,i)=>{"use strict";var n=i(9389);t.exports=function(t,e,i){var r=0,s=arguments.length>2?i:n(e),o=new t(s);while(s>r)o[r]=e[r++];return o}},710:(t,e,i)=>{"use strict";var n=i(5821),r=i(7568),s=i(3628),o=i(9389),a=function(t){var e=1===t;return function(i,a,l){var u,c,h=s(i),d=r(h),f=o(d),p=n(a,l);while(f-- >0)if(u=d[f],c=p(u,f,h),c)switch(t){case 0:return u;case 1:return f}return e?-1:void 0}};t.exports={findLast:a(0),findLastIndex:a(1)}},4104:(t,e,i)=>{"use strict";var n=i(5821),r=i(6881),s=i(7568),o=i(3628),a=i(9389),l=i(5022),u=r([].push),c=function(t){var e=1===t,i=2===t,r=3===t,c=4===t,h=6===t,d=7===t,f=5===t||h;return function(p,m,_,g){for(var y,v,w=o(p),b=s(w),x=a(b),S=n(m,_),T=0,D=g||l,A=e?D(p,x):i||d?D(p,0):void 0;x>T;T++)if((f||T in b)&&(y=b[T],v=S(y,T,w),t))if(e)A[T]=v;else if(v)switch(t){case 3:return!0;case 5:return y;case 6:return T;case 2:u(A,y)}else switch(t){case 4:return!1;case 7:u(A,y)}return h?-1:r||c?c:A}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},7825:(t,e,i)=>{"use strict";var n=i(6881);t.exports=n([].slice)},9295:(t,e,i)=>{"use strict";var n=i(7825),r=Math.floor,s=function(t,e){var i=t.length;if(i<8){var o,a,l=1;while(l<i){a=l,o=t[l];while(a&&e(t[a-1],o)>0)t[a]=t[--a];a!==l++&&(t[a]=o)}}else{var u=r(i/2),c=s(n(t,0,u),e),h=s(n(t,u),e),d=c.length,f=h.length,p=0,m=0;while(p<d||m<f)t[p+m]=p<d&&m<f?e(c[p],h[m])<=0?c[p++]:h[m++]:p<d?c[p++]:h[m++]}return t};t.exports=s},9980:(t,e,i)=>{"use strict";var n=i(6719),r=i(866),s=i(831),o=i(4282),a=o("species"),l=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,r(e)&&(e===l||n(e.prototype))?e=void 0:s(e)&&(e=e[a],null===e&&(e=void 0))),void 0===e?l:e}},5022:(t,e,i)=>{"use strict";var n=i(9980);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},1433:(t,e,i)=>{"use strict";var n=i(9389);t.exports=function(t,e){for(var i=n(t),r=new e(i),s=0;s<i;s++)r[s]=t[i-s-1];return r}},6803:(t,e,i)=>{"use strict";var n=i(9389),r=i(6744),s=RangeError;t.exports=function(t,e,i,o){var a=n(t),l=r(i),u=l<0?a+l:l;if(u>=a||u<0)throw new s("Incorrect index");for(var c=new e(a),h=0;h<a;h++)c[h]=h===u?o:t[h];return c}},7283:(t,e,i)=>{"use strict";var n=i(4282),r=n("iterator"),s=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){s=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(l){}t.exports=function(t,e){try{if(!e&&!s)return!1}catch(l){return!1}var i=!1;try{var n={};n[r]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(l){}return i}},997:(t,e,i)=>{"use strict";var n=i(4530),r=i(4466);t.exports=function(t,e,i){return i.get&&n(i.get,e,{getter:!0}),i.set&&n(i.set,e,{setter:!0}),r.f(t,e,i)}},4320:(t,e,i)=>{"use strict";var n=i(7509);t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},8850:(t,e,i)=>{"use strict";var n,r,s,o,a=i(1488),l=i(9577),u=i(9059),c=a.structuredClone,h=a.ArrayBuffer,d=a.MessageChannel,f=!1;if(u)f=function(t){c(t,{transfer:[t]})};else if(h)try{d||(n=l("worker_threads"),n&&(d=n.MessageChannel)),d&&(r=new d,s=new h(2),o=function(t){r.port1.postMessage(null,[t])},2===s.byteLength&&(o(s),0===s.byteLength&&(f=o)))}catch(p){}t.exports=f},8807:(t,e,i)=>{"use strict";var n=i(4109),r=n.match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},7267:(t,e,i)=>{"use strict";var n=i(7499),r=i(7359);t.exports=!n&&!r&&"object"==typeof window&&"object"==typeof document},7499:t=>{"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},5661:(t,e,i)=>{"use strict";var n=i(4109);t.exports=/MSIE|Trident/.test(n)},3589:(t,e,i)=>{"use strict";var n=i(4109),r=n.match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},5821:(t,e,i)=>{"use strict";var n=i(5691),r=i(4977),s=i(9055),o=n(n.bind);t.exports=function(t,e){return r(t),void 0===e?t:s?o(t,e):function(){return t.apply(e,arguments)}}},5691:(t,e,i)=>{"use strict";var n=i(8689),r=i(6881);t.exports=function(t){if("Function"===n(t))return r(t)}},6002:t=>{"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},9874:(t,e,i)=>{"use strict";var n=i(5438),r=i(2913),s=i(4318),o=i(9164),a=i(4282),l=a("iterator");t.exports=function(t){if(!s(t))return r(t,l)||r(t,"@@iterator")||o[n(t)]}},2350:(t,e,i)=>{"use strict";var n=i(9944),r=i(4977),s=i(3770),o=i(3174),a=i(9874),l=TypeError;t.exports=function(t,e){var i=arguments.length<2?a(t):e;if(r(i))return s(n(i,t));throw new l(o(t)+" is not iterable")}},5558:(t,e,i)=>{"use strict";var n=i(4977),r=i(3770),s=i(9944),o=i(6744),a=i(6002),l="Invalid size",u=RangeError,c=TypeError,h=Math.max,d=function(t,e){this.set=t,this.size=h(e,0),this.has=n(t.has),this.keys=n(t.keys)};d.prototype={getIterator:function(){return a(r(s(this.keys,this.set)))},includes:function(t){return s(this.has,this.set,t)}},t.exports=function(t){r(t);var e=+t.size;if(e!==e)throw new c(l);var i=o(e);if(i<0)throw new u(l);return new d(t,i)}},6103:t=>{"use strict";var e=Array,i=Math.abs,n=Math.pow,r=Math.floor,s=Math.log,o=Math.LN2,a=function(t,a,l){var u,c,h,d=e(l),f=8*l-a-1,p=(1<<f)-1,m=p>>1,_=23===a?n(2,-24)-n(2,-77):0,g=t<0||0===t&&1/t<0?1:0,y=0;t=i(t),t!==t||t===1/0?(c=t!==t?1:0,u=p):(u=r(s(t)/o),h=n(2,-u),t*h<1&&(u--,h*=2),t+=u+m>=1?_/h:_*n(2,1-m),t*h>=2&&(u++,h/=2),u+m>=p?(c=0,u=p):u+m>=1?(c=(t*h-1)*n(2,a),u+=m):(c=t*n(2,m-1)*n(2,a),u=0));while(a>=8)d[y++]=255&c,c/=256,a-=8;u=u<<a|c,f+=a;while(f>0)d[y++]=255&u,u/=256,f-=8;return d[--y]|=128*g,d},l=function(t,e){var i,r=t.length,s=8*r-e-1,o=(1<<s)-1,a=o>>1,l=s-7,u=r-1,c=t[u--],h=127&c;c>>=7;while(l>0)h=256*h+t[u--],l-=8;i=h&(1<<-l)-1,h>>=-l,l+=e;while(l>0)i=256*i+t[u--],l-=8;if(0===h)h=1-a;else{if(h===o)return i?NaN:c?-1/0:1/0;i+=n(2,e),h-=a}return(c?-1:1)*i*n(2,h-e)};t.exports={pack:a,unpack:l}},8146:(t,e,i)=>{"use strict";var n=i(4282),r=i(9164),s=n("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[s]===t)}},5448:(t,e,i)=>{"use strict";var n=i(5438);t.exports=function(t){var e=n(t);return"BigInt64Array"===e||"BigUint64Array"===e}},4752:(t,e,i)=>{"use strict";var n=i(831),r=Math.floor;t.exports=Number.isInteger||function(t){return!n(t)&&isFinite(t)&&r(t)===t}},473:(t,e,i)=>{"use strict";var n=i(831),r=i(8689),s=i(4282),o=s("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"===r(t))}},7032:(t,e,i)=>{"use strict";var n=i(9944);t.exports=function(t,e,i){var r,s,o=i?t:t.iterator,a=t.next;while(!(r=n(a,o)).done)if(s=e(r.value),void 0!==s)return s}},8500:(t,e,i)=>{"use strict";var n=i(9944),r=i(3770),s=i(2913);t.exports=function(t,e,i){var o,a;r(t);try{if(o=s(t,"return"),!o){if("throw"===e)throw i;return i}o=n(o,t)}catch(l){a=!0,o=l}if("throw"===e)throw i;if(a)throw o;return r(o),i}},2871:(t,e,i)=>{"use strict";var n=i(579),r=Math.abs,s=2220446049250313e-31,o=1/s,a=function(t){return t+o-o};t.exports=function(t,e,i,o){var l=+t,u=r(l),c=n(l);if(u<o)return c*a(u/o/e)*o*e;var h=(1+e/s)*u,d=h-(h-u);return d>i||d!==d?c*(1/0):c*d}},2420:(t,e,i)=>{"use strict";var n=i(2871),r=1.1920928955078125e-7,s=34028234663852886e22,o=11754943508222875e-54;t.exports=Math.fround||function(t){return n(t,r,s,o)}},579:t=>{"use strict";t.exports=Math.sign||function(t){var e=+t;return 0===e||e!==e?e:e<0?-1:1}},3113:(t,e,i)=>{"use strict";var n=i(9944),r=i(4418),s=i(4578),o=i(4932),a=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in a||r(t,"flags")||!s(a,t)?e:n(o,t)}},679:(t,e,i)=>{"use strict";var n=i(3243),r=i(9800),s=n.Set,o=n.add;t.exports=function(t){var e=new s;return r(t,(function(t){o(e,t)})),e}},7059:(t,e,i)=>{"use strict";var n=i(2937),r=i(3243),s=i(679),o=i(7173),a=i(5558),l=i(9800),u=i(7032),c=r.has,h=r.remove;t.exports=function(t){var e=n(this),i=a(t),r=s(e);return o(e)<=i.size?l(e,(function(t){i.includes(t)&&h(r,t)})):u(i.getIterator(),(function(t){c(e,t)&&h(r,t)})),r}},3243:(t,e,i)=>{"use strict";var n=i(6881),r=Set.prototype;t.exports={Set,add:n(r.add),has:n(r.has),remove:n(r["delete"]),proto:r}},3721:(t,e,i)=>{"use strict";var n=i(2937),r=i(3243),s=i(7173),o=i(5558),a=i(9800),l=i(7032),u=r.Set,c=r.add,h=r.has;t.exports=function(t){var e=n(this),i=o(t),r=new u;return s(e)>i.size?l(i.getIterator(),(function(t){h(e,t)&&c(r,t)})):a(e,(function(t){i.includes(t)&&c(r,t)})),r}},9978:(t,e,i)=>{"use strict";var n=i(2937),r=i(3243).has,s=i(7173),o=i(5558),a=i(9800),l=i(7032),u=i(8500);t.exports=function(t){var e=n(this),i=o(t);if(s(e)<=i.size)return!1!==a(e,(function(t){if(i.includes(t))return!1}),!0);var c=i.getIterator();return!1!==l(c,(function(t){if(r(e,t))return u(c,"normal",!1)}))}},4361:(t,e,i)=>{"use strict";var n=i(2937),r=i(7173),s=i(9800),o=i(5558);t.exports=function(t){var e=n(this),i=o(t);return!(r(e)>i.size)&&!1!==s(e,(function(t){if(!i.includes(t))return!1}),!0)}},7528:(t,e,i)=>{"use strict";var n=i(2937),r=i(3243).has,s=i(7173),o=i(5558),a=i(7032),l=i(8500);t.exports=function(t){var e=n(this),i=o(t);if(s(e)<i.size)return!1;var u=i.getIterator();return!1!==a(u,(function(t){if(!r(e,t))return l(u,"normal",!1)}))}},9800:(t,e,i)=>{"use strict";var n=i(6881),r=i(7032),s=i(3243),o=s.Set,a=s.proto,l=n(a.forEach),u=n(a.keys),c=u(new o).next;t.exports=function(t,e,i){return i?r({iterator:u(t),next:c},e):l(t,e)}},4471:(t,e,i)=>{"use strict";var n=i(5604),r=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};t.exports=function(t){var e=n("Set");try{(new e)[t](r(0));try{return(new e)[t](r(-1)),!1}catch(i){return!0}}catch(s){return!1}}},7173:(t,e,i)=>{"use strict";var n=i(1025),r=i(3243);t.exports=n(r.proto,"size","get")||function(t){return t.size}},3900:(t,e,i)=>{"use strict";var n=i(5604),r=i(997),s=i(4282),o=i(6893),a=s("species");t.exports=function(t){var e=n(t);o&&e&&!e[a]&&r(e,a,{configurable:!0,get:function(){return this}})}},1657:(t,e,i)=>{"use strict";var n=i(2937),r=i(3243),s=i(679),o=i(5558),a=i(7032),l=r.add,u=r.has,c=r.remove;t.exports=function(t){var e=n(this),i=o(t).getIterator(),r=s(e);return a(i,(function(t){u(e,t)?c(r,t):l(r,t)})),r}},5077:(t,e,i)=>{"use strict";var n=i(2937),r=i(3243).add,s=i(679),o=i(5558),a=i(7032);t.exports=function(t){var e=n(this),i=o(t).getIterator(),l=s(e);return a(i,(function(t){r(l,t)})),l}},9059:(t,e,i)=>{"use strict";var n=i(1488),r=i(5234),s=i(3749),o=i(7267),a=i(7499),l=i(7359),u=n.structuredClone;t.exports=!!u&&!r((function(){if(a&&s>92||l&&s>94||o&&s>97)return!1;var t=new ArrayBuffer(8),e=u(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength}))},7429:(t,e,i)=>{"use strict";var n=i(290),r=TypeError;t.exports=function(t){var e=n(t,"number");if("number"==typeof e)throw new r("Can't convert number to bigint");return BigInt(e)}},4579:(t,e,i)=>{"use strict";var n=i(6744),r=i(7611),s=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=n(t),i=r(e);if(e!==i)throw new s("Wrong length or index");return i}},7584:(t,e,i)=>{"use strict";var n=i(939),r=RangeError;t.exports=function(t,e){var i=n(t);if(i%e)throw new r("Wrong offset");return i}},939:(t,e,i)=>{"use strict";var n=i(6744),r=RangeError;t.exports=function(t){var e=n(t);if(e<0)throw new r("The argument can't be less than 0");return e}},4108:t=>{"use strict";var e=Math.round;t.exports=function(t){var i=e(t);return i<0?0:i>255?255:255&i}},9577:(t,e,i)=>{"use strict";var n=i(7359);t.exports=function(t){try{if(n)return Function('return require("'+t+'")')()}catch(e){}}},3978:(t,e,i)=>{"use strict";var n=i(5613),r=i(1488),s=i(9944),o=i(6893),a=i(5772),l=i(7223),u=i(8633),c=i(286),h=i(9123),d=i(8088),f=i(4752),p=i(7611),m=i(4579),_=i(7584),g=i(4108),y=i(2344),v=i(4418),w=i(5438),b=i(831),x=i(6032),S=i(7065),T=i(4578),D=i(5054),A=i(5629).f,k=i(3292),E=i(4104).forEach,R=i(3900),M=i(997),P=i(4466),O=i(9304),L=i(6759),C=i(3086),I=i(4166),N=C.get,Y=C.set,q=C.enforce,F=P.f,B=O.f,H=r.RangeError,W=u.ArrayBuffer,X=W.prototype,j=u.DataView,z=l.NATIVE_ARRAY_BUFFER_VIEWS,G=l.TYPED_ARRAY_TAG,U=l.TypedArray,V=l.TypedArrayPrototype,Q=l.isTypedArray,$="BYTES_PER_ELEMENT",J="Wrong length",K=function(t,e){M(t,e,{configurable:!0,get:function(){return N(this)[e]}})},Z=function(t){var e;return T(X,t)||"ArrayBuffer"===(e=w(t))||"SharedArrayBuffer"===e},tt=function(t,e){return Q(t)&&!x(e)&&e in t&&f(+e)&&e>=0},et=function(t,e){return e=y(e),tt(t,e)?h(2,t[e]):B(t,e)},it=function(t,e,i){return e=y(e),!(tt(t,e)&&b(i)&&v(i,"value"))||v(i,"get")||v(i,"set")||i.configurable||v(i,"writable")&&!i.writable||v(i,"enumerable")&&!i.enumerable?F(t,e,i):(t[e]=i.value,t)};o?(z||(O.f=et,P.f=it,K(V,"buffer"),K(V,"byteOffset"),K(V,"byteLength"),K(V,"length")),n({target:"Object",stat:!0,forced:!z},{getOwnPropertyDescriptor:et,defineProperty:it}),t.exports=function(t,e,i){var o=t.match(/\d+/)[0]/8,l=t+(i?"Clamped":"")+"Array",u="get"+t,h="set"+t,f=r[l],y=f,v=y&&y.prototype,w={},x=function(t,e){var i=N(t);return i.view[u](e*o+i.byteOffset,!0)},T=function(t,e,n){var r=N(t);r.view[h](e*o+r.byteOffset,i?g(n):n,!0)},M=function(t,e){F(t,e,{get:function(){return x(this,e)},set:function(t){return T(this,e,t)},enumerable:!0})};z?a&&(y=e((function(t,e,i,n){return c(t,v),I(function(){return b(e)?Z(e)?void 0!==n?new f(e,_(i,o),n):void 0!==i?new f(e,_(i,o)):new f(e):Q(e)?L(y,e):s(k,y,e):new f(m(e))}(),t,y)})),D&&D(y,U),E(A(f),(function(t){t in y||d(y,t,f[t])})),y.prototype=v):(y=e((function(t,e,i,n){c(t,v);var r,a,l,u=0,h=0;if(b(e)){if(!Z(e))return Q(e)?L(y,e):s(k,y,e);r=e,h=_(i,o);var d=e.byteLength;if(void 0===n){if(d%o)throw new H(J);if(a=d-h,a<0)throw new H(J)}else if(a=p(n)*o,a+h>d)throw new H(J);l=a/o}else l=m(e),a=l*o,r=new W(a);Y(t,{buffer:r,byteOffset:h,byteLength:a,length:l,view:new j(r)});while(u<l)M(t,u++)})),D&&D(y,U),v=y.prototype=S(V)),v.constructor!==y&&d(v,"constructor",y),q(v).TypedArrayConstructor=y,G&&d(v,G,l);var P=y!==f;w[l]=y,n({global:!0,constructor:!0,forced:P,sham:!z},w),$ in y||d(y,$,o),$ in v||d(v,$,o),R(l)}):t.exports=function(){}},5772:(t,e,i)=>{"use strict";var n=i(1488),r=i(5234),s=i(7283),o=i(7223).NATIVE_ARRAY_BUFFER_VIEWS,a=n.ArrayBuffer,l=n.Int8Array;t.exports=!o||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!s((function(t){new l,new l(null),new l(1.5),new l(t)}),!0)||r((function(){return 1!==new l(new a(2),1,void 0).length}))},3292:(t,e,i)=>{"use strict";var n=i(5821),r=i(9944),s=i(1361),o=i(3628),a=i(9389),l=i(2350),u=i(9874),c=i(8146),h=i(5448),d=i(7223).aTypedArrayConstructor,f=i(7429);t.exports=function(t){var e,i,p,m,_,g,y,v,w=s(this),b=o(t),x=arguments.length,S=x>1?arguments[1]:void 0,T=void 0!==S,D=u(b);if(D&&!c(D)){y=l(b,D),v=y.next,b=[];while(!(g=r(v,y)).done)b.push(g.value)}for(T&&x>2&&(S=n(S,arguments[2])),i=a(b),p=new(d(w))(i),m=h(p),e=0;i>e;e++)_=T?S(b[e],e):b[e],p[e]=m?f(_):+_;return p}},2482:(t,e,i)=>{"use strict";var n=i(6893),r=i(997),s=i(6821),o=ArrayBuffer.prototype;n&&!("detached"in o)&&r(o,"detached",{configurable:!0,get:function(){return s(this)}})},4147:(t,e,i)=>{"use strict";var n=i(5613),r=i(5677);r&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return r(this,arguments.length?arguments[0]:void 0,!1)}})},7067:(t,e,i)=>{"use strict";var n=i(5613),r=i(5677);r&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return r(this,arguments.length?arguments[0]:void 0,!0)}})},8752:(t,e,i)=>{"use strict";var n=i(5458);n("flatMap")},7146:(t,e,i)=>{"use strict";var n=i(1488),r=i(6893),s=i(997),o=i(4932),a=i(5234),l=n.RegExp,u=l.prototype,c=r&&a((function(){var t=!0;try{l(".","d")}catch(c){t=!1}var e={},i="",n=t?"dgimsy":"gimsy",r=function(t,n){Object.defineProperty(e,t,{get:function(){return i+=n,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(s.hasIndices="d"),s)r(o,s[o]);var a=Object.getOwnPropertyDescriptor(u,"flags").get.call(e);return a!==n||i!==n}));c&&s(u,"flags",{configurable:!0,get:o})},9033:(t,e,i)=>{"use strict";var n=i(5613),r=i(7059),s=i(4471);n({target:"Set",proto:!0,real:!0,forced:!s("difference")},{difference:r})},8903:(t,e,i)=>{"use strict";var n=i(5613),r=i(5234),s=i(3721),o=i(4471),a=!o("intersection")||r((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));n({target:"Set",proto:!0,real:!0,forced:a},{intersection:s})},1018:(t,e,i)=>{"use strict";var n=i(5613),r=i(9978),s=i(4471);n({target:"Set",proto:!0,real:!0,forced:!s("isDisjointFrom")},{isDisjointFrom:r})},1415:(t,e,i)=>{"use strict";var n=i(5613),r=i(4361),s=i(4471);n({target:"Set",proto:!0,real:!0,forced:!s("isSubsetOf")},{isSubsetOf:r})},4448:(t,e,i)=>{"use strict";var n=i(5613),r=i(7528),s=i(4471);n({target:"Set",proto:!0,real:!0,forced:!s("isSupersetOf")},{isSupersetOf:r})},8871:(t,e,i)=>{"use strict";var n=i(5613),r=i(1657),s=i(4471);n({target:"Set",proto:!0,real:!0,forced:!s("symmetricDifference")},{symmetricDifference:r})},6539:(t,e,i)=>{"use strict";var n=i(5613),r=i(5077),s=i(4471);n({target:"Set",proto:!0,real:!0,forced:!s("union")},{union:r})},8715:(t,e,i)=>{"use strict";var n=i(5613),r=i(9944),s=i(6881),o=i(9509),a=i(4188),l=i(4318),u=i(473),c=i(2618),h=i(2913),d=i(3113),f=i(1113),p=i(4282),m=i(1942),_=p("replace"),g=TypeError,y=s("".indexOf),v=s("".replace),w=s("".slice),b=Math.max;n({target:"String",proto:!0},{replaceAll:function(t,e){var i,n,s,p,x,S,T,D,A,k=o(this),E=0,R=0,M="";if(!l(t)){if(i=u(t),i&&(n=c(o(d(t))),!~y(n,"g")))throw new g("`.replaceAll` does not allow non-global regexes");if(s=h(t,_),s)return r(s,t,k,e);if(m&&i)return v(c(k),t,e)}p=c(k),x=c(t),S=a(e),S||(e=c(e)),T=x.length,D=b(1,T),E=y(p,x);while(-1!==E)A=S?c(e(x,E,p)):f(x,p,E,[],void 0,e),M+=w(p,R,E)+A,R=E+T,E=E+D>p.length?-1:y(p,x,E+D);return R<p.length&&(M+=w(p,R)),M}})},785:(t,e,i)=>{"use strict";var n=i(7223),r=i(9389),s=i(6744),o=n.aTypedArray,a=n.exportTypedArrayMethod;a("at",(function(t){var e=o(this),i=r(e),n=s(t),a=n>=0?n:i+n;return a<0||a>=i?void 0:e[a]}))},8357:(t,e,i)=>{"use strict";var n=i(7223),r=i(8150),s=i(7429),o=i(5438),a=i(9944),l=i(6881),u=i(5234),c=n.aTypedArray,h=n.exportTypedArrayMethod,d=l("".slice),f=u((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t}));h("fill",(function(t){var e=arguments.length;c(this);var i="Big"===d(o(this),0,3)?s(t):+t;return a(r,this,i,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),f)},821:(t,e,i)=>{"use strict";var n=i(7223),r=i(710).findLastIndex,s=n.aTypedArray,o=n.exportTypedArrayMethod;o("findLastIndex",(function(t){return r(s(this),t,arguments.length>1?arguments[1]:void 0)}))},6196:(t,e,i)=>{"use strict";var n=i(7223),r=i(710).findLast,s=n.aTypedArray,o=n.exportTypedArrayMethod;o("findLast",(function(t){return r(s(this),t,arguments.length>1?arguments[1]:void 0)}))},6554:(t,e,i)=>{"use strict";var n=i(1488),r=i(9944),s=i(7223),o=i(9389),a=i(7584),l=i(3628),u=i(5234),c=n.RangeError,h=n.Int8Array,d=h&&h.prototype,f=d&&d.set,p=s.aTypedArray,m=s.exportTypedArrayMethod,_=!u((function(){var t=new Uint8ClampedArray(2);return r(f,t,{length:1,0:3},1),3!==t[1]})),g=_&&s.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var t=new h(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));m("set",(function(t){p(this);var e=a(arguments.length>1?arguments[1]:void 0,1),i=l(t);if(_)return r(f,this,i,e);var n=this.length,s=o(i),u=0;if(s+e>n)throw new c("Wrong length");while(u<s)this[e+u]=i[u++]}),!_||g)},8472:(t,e,i)=>{"use strict";var n=i(1488),r=i(5691),s=i(5234),o=i(4977),a=i(9295),l=i(7223),u=i(8807),c=i(5661),h=i(3749),d=i(3589),f=l.aTypedArray,p=l.exportTypedArrayMethod,m=n.Uint16Array,_=m&&r(m.prototype.sort),g=!!_&&!(s((function(){_(new m(2),null)}))&&s((function(){_(new m(2),{})}))),y=!!_&&!s((function(){if(h)return h<74;if(u)return u<67;if(c)return!0;if(d)return d<602;var t,e,i=new m(516),n=Array(516);for(t=0;t<516;t++)e=t%4,i[t]=515-t,n[t]=t-2*e+3;for(_(i,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(i[t]!==n[t])return!0})),v=function(t){return function(e,i){return void 0!==t?+t(e,i)||0:i!==i?-1:e!==e?1:0===e&&0===i?1/e>0&&1/i<0?1:-1:e>i}};p("sort",(function(t){return void 0!==t&&o(t),y?_(this,t):a(f(this),v(t))}),!y||g)},7404:(t,e,i)=>{"use strict";var n=i(1433),r=i(7223),s=r.aTypedArray,o=r.exportTypedArrayMethod,a=r.getTypedArrayConstructor;o("toReversed",(function(){return n(s(this),a(this))}))},5803:(t,e,i)=>{"use strict";var n=i(7223),r=i(6881),s=i(4977),o=i(6759),a=n.aTypedArray,l=n.getTypedArrayConstructor,u=n.exportTypedArrayMethod,c=r(n.TypedArrayPrototype.sort);u("toSorted",(function(t){void 0!==t&&s(t);var e=a(this),i=o(l(e),e);return c(i,t)}))},2682:(t,e,i)=>{"use strict";var n=i(3978);n("Uint8",(function(t){return function(e,i,n){return t(this,e,i,n)}}))},3912:(t,e,i)=>{"use strict";var n=i(6803),r=i(7223),s=i(5448),o=i(6744),a=i(7429),l=r.aTypedArray,u=r.getTypedArrayConstructor,c=r.exportTypedArrayMethod,h=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();c("with",{with:function(t,e){var i=l(this),r=o(t),c=s(i)?a(e):+e;return n(i,u(i),r,c)}}["with"],!h)},5100:(t,e,i)=>{"use strict";i(9033)},7162:(t,e,i)=>{"use strict";i(8903)},6403:(t,e,i)=>{"use strict";i(1018)},4154:(t,e,i)=>{"use strict";i(1415)},4777:(t,e,i)=>{"use strict";i(4448)},8846:(t,e,i)=>{"use strict";i(8871)},2896:(t,e,i)=>{"use strict";i(6539)},3816:(t,e,i)=>{"use strict";i.d(e,{A:()=>di});var n={};function r(t,e){return function(){return t.apply(e,arguments)}}i.r(n),i.d(n,{hasBrowserEnv:()=>Nt,hasStandardBrowserEnv:()=>Yt,hasStandardBrowserWebWorkerEnv:()=>qt,origin:()=>Ft});const{toString:s}=Object.prototype,{getPrototypeOf:o}=Object,a=(t=>e=>{const i=s.call(e);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),l=t=>(t=t.toLowerCase(),e=>a(e)===t),u=t=>e=>typeof e===t,{isArray:c}=Array,h=u("undefined");function d(t){return null!==t&&!h(t)&&null!==t.constructor&&!h(t.constructor)&&_(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const f=l("ArrayBuffer");function p(t){let e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&f(t.buffer),e}const m=u("string"),_=u("function"),g=u("number"),y=t=>null!==t&&"object"===typeof t,v=t=>!0===t||!1===t,w=t=>{if("object"!==a(t))return!1;const e=o(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},b=l("Date"),x=l("File"),S=l("Blob"),T=l("FileList"),D=t=>y(t)&&_(t.pipe),A=t=>{let e;return t&&("function"===typeof FormData&&t instanceof FormData||_(t.append)&&("formdata"===(e=a(t))||"object"===e&&_(t.toString)&&"[object FormData]"===t.toString()))},k=l("URLSearchParams"),[E,R,M,P]=["ReadableStream","Request","Response","Headers"].map(l),O=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function L(t,e,{allOwnKeys:i=!1}={}){if(null===t||"undefined"===typeof t)return;let n,r;if("object"!==typeof t&&(t=[t]),c(t))for(n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else{const r=i?Object.getOwnPropertyNames(t):Object.keys(t),s=r.length;let o;for(n=0;n<s;n++)o=r[n],e.call(null,t[o],o,t)}}function C(t,e){e=e.toLowerCase();const i=Object.keys(t);let n,r=i.length;while(r-- >0)if(n=i[r],e===n.toLowerCase())return n;return null}const I=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),N=t=>!h(t)&&t!==I;function Y(){const{caseless:t}=N(this)&&this||{},e={},i=(i,n)=>{const r=t&&C(e,n)||n;w(e[r])&&w(i)?e[r]=Y(e[r],i):w(i)?e[r]=Y({},i):c(i)?e[r]=i.slice():e[r]=i};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&L(arguments[n],i);return e}const q=(t,e,i,{allOwnKeys:n}={})=>(L(e,((e,n)=>{i&&_(e)?t[n]=r(e,i):t[n]=e}),{allOwnKeys:n}),t),F=t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),B=(t,e,i,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),i&&Object.assign(t.prototype,i)},H=(t,e,i,n)=>{let r,s,a;const l={};if(e=e||{},null==t)return e;do{r=Object.getOwnPropertyNames(t),s=r.length;while(s-- >0)a=r[s],n&&!n(a,t,e)||l[a]||(e[a]=t[a],l[a]=!0);t=!1!==i&&o(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},W=(t,e,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=e.length;const n=t.indexOf(e,i);return-1!==n&&n===i},X=t=>{if(!t)return null;if(c(t))return t;let e=t.length;if(!g(e))return null;const i=new Array(e);while(e-- >0)i[e]=t[e];return i},j=(t=>e=>t&&e instanceof t)("undefined"!==typeof Uint8Array&&o(Uint8Array)),z=(t,e)=>{const i=t&&t[Symbol.iterator],n=i.call(t);let r;while((r=n.next())&&!r.done){const i=r.value;e.call(t,i[0],i[1])}},G=(t,e)=>{let i;const n=[];while(null!==(i=t.exec(e)))n.push(i);return n},U=l("HTMLFormElement"),V=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,i){return e.toUpperCase()+i})),Q=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),$=l("RegExp"),J=(t,e)=>{const i=Object.getOwnPropertyDescriptors(t),n={};L(i,((i,r)=>{let s;!1!==(s=e(i,r,t))&&(n[r]=s||i)})),Object.defineProperties(t,n)},K=t=>{J(t,((e,i)=>{if(_(t)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;const n=t[i];_(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")}))}))},Z=(t,e)=>{const i={},n=t=>{t.forEach((t=>{i[t]=!0}))};return c(t)?n(t):n(String(t).split(e)),i},tt=()=>{},et=(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,it="abcdefghijklmnopqrstuvwxyz",nt="0123456789",rt={DIGIT:nt,ALPHA:it,ALPHA_DIGIT:it+it.toUpperCase()+nt},st=(t=16,e=rt.ALPHA_DIGIT)=>{let i="";const{length:n}=e;while(t--)i+=e[Math.random()*n|0];return i};function ot(t){return!!(t&&_(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])}const at=t=>{const e=new Array(10),i=(t,n)=>{if(y(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const r=c(t)?[]:{};return L(t,((t,e)=>{const s=i(t,n+1);!h(s)&&(r[e]=s)})),e[n]=void 0,r}}return t};return i(t,0)},lt=l("AsyncFunction"),ut=t=>t&&(y(t)||_(t))&&_(t.then)&&_(t.catch),ct={isArray:c,isArrayBuffer:f,isBuffer:d,isFormData:A,isArrayBufferView:p,isString:m,isNumber:g,isBoolean:v,isObject:y,isPlainObject:w,isReadableStream:E,isRequest:R,isResponse:M,isHeaders:P,isUndefined:h,isDate:b,isFile:x,isBlob:S,isRegExp:$,isFunction:_,isStream:D,isURLSearchParams:k,isTypedArray:j,isFileList:T,forEach:L,merge:Y,extend:q,trim:O,stripBOM:F,inherits:B,toFlatObject:H,kindOf:a,kindOfTest:l,endsWith:W,toArray:X,forEachEntry:z,matchAll:G,isHTMLForm:U,hasOwnProperty:Q,hasOwnProp:Q,reduceDescriptors:J,freezeMethods:K,toObjectSet:Z,toCamelCase:V,noop:tt,toFiniteNumber:et,findKey:C,global:I,isContextDefined:N,ALPHABET:rt,generateString:st,isSpecCompliantForm:ot,toJSONObject:at,isAsyncFn:lt,isThenable:ut};function ht(t,e,i,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),i&&(this.config=i),n&&(this.request=n),r&&(this.response=r)}ct.inherits(ht,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ct.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const dt=ht.prototype,ft={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{ft[t]={value:t}})),Object.defineProperties(ht,ft),Object.defineProperty(dt,"isAxiosError",{value:!0}),ht.from=(t,e,i,n,r,s)=>{const o=Object.create(dt);return ct.toFlatObject(t,o,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),ht.call(o,t.message,e,i,n,r),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};const pt=ht,mt=null;function _t(t){return ct.isPlainObject(t)||ct.isArray(t)}function gt(t){return ct.endsWith(t,"[]")?t.slice(0,-2):t}function yt(t,e,i){return t?t.concat(e).map((function(t,e){return t=gt(t),!i&&e?"["+t+"]":t})).join(i?".":""):e}function vt(t){return ct.isArray(t)&&!t.some(_t)}const wt=ct.toFlatObject(ct,{},null,(function(t){return/^is[A-Z]/.test(t)}));function bt(t,e,i){if(!ct.isObject(t))throw new TypeError("target must be an object");e=e||new(mt||FormData),i=ct.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!ct.isUndefined(e[t])}));const n=i.metaTokens,r=i.visitor||c,s=i.dots,o=i.indexes,a=i.Blob||"undefined"!==typeof Blob&&Blob,l=a&&ct.isSpecCompliantForm(e);if(!ct.isFunction(r))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(ct.isDate(t))return t.toISOString();if(!l&&ct.isBlob(t))throw new pt("Blob is not supported. Use a Buffer instead.");return ct.isArrayBuffer(t)||ct.isTypedArray(t)?l&&"function"===typeof Blob?new Blob([t]):Buffer.from(t):t}function c(t,i,r){let a=t;if(t&&!r&&"object"===typeof t)if(ct.endsWith(i,"{}"))i=n?i:i.slice(0,-2),t=JSON.stringify(t);else if(ct.isArray(t)&&vt(t)||(ct.isFileList(t)||ct.endsWith(i,"[]"))&&(a=ct.toArray(t)))return i=gt(i),a.forEach((function(t,n){!ct.isUndefined(t)&&null!==t&&e.append(!0===o?yt([i],n,s):null===o?i:i+"[]",u(t))})),!1;return!!_t(t)||(e.append(yt(r,i,s),u(t)),!1)}const h=[],d=Object.assign(wt,{defaultVisitor:c,convertValue:u,isVisitable:_t});function f(t,i){if(!ct.isUndefined(t)){if(-1!==h.indexOf(t))throw Error("Circular reference detected in "+i.join("."));h.push(t),ct.forEach(t,(function(t,n){const s=!(ct.isUndefined(t)||null===t)&&r.call(e,t,ct.isString(n)?n.trim():n,i,d);!0===s&&f(t,i?i.concat(n):[n])})),h.pop()}}if(!ct.isObject(t))throw new TypeError("data must be an object");return f(t),e}const xt=bt;function St(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function Tt(t,e){this._pairs=[],t&&xt(t,this,e)}const Dt=Tt.prototype;Dt.append=function(t,e){this._pairs.push([t,e])},Dt.toString=function(t){const e=t?function(e){return t.call(this,e,St)}:St;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const At=Tt;function kt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Et(t,e,i){if(!e)return t;const n=i&&i.encode||kt,r=i&&i.serialize;let s;if(s=r?r(e,i):ct.isURLSearchParams(e)?e.toString():new At(e,i).toString(n),s){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+s}return t}class Rt{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ct.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}const Mt=Rt,Pt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ot="undefined"!==typeof URLSearchParams?URLSearchParams:At,Lt="undefined"!==typeof FormData?FormData:null,Ct="undefined"!==typeof Blob?Blob:null,It={isBrowser:!0,classes:{URLSearchParams:Ot,FormData:Lt,Blob:Ct},protocols:["http","https","file","blob","url","data"]},Nt="undefined"!==typeof window&&"undefined"!==typeof document,Yt=(t=>Nt&&["ReactNative","NativeScript","NS"].indexOf(t)<0)("undefined"!==typeof navigator&&navigator.product),qt=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Ft=Nt&&window.location.href||"http://localhost",Bt={...n,...It};function Ht(t,e){return xt(t,new Bt.classes.URLSearchParams,Object.assign({visitor:function(t,e,i,n){return Bt.isNode&&ct.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}function Wt(t){return ct.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}function Xt(t){const e={},i=Object.keys(t);let n;const r=i.length;let s;for(n=0;n<r;n++)s=i[n],e[s]=t[s];return e}function jt(t){function e(t,i,n,r){let s=t[r++];if("__proto__"===s)return!0;const o=Number.isFinite(+s),a=r>=t.length;if(s=!s&&ct.isArray(n)?n.length:s,a)return ct.hasOwnProp(n,s)?n[s]=[n[s],i]:n[s]=i,!o;n[s]&&ct.isObject(n[s])||(n[s]=[]);const l=e(t,i,n[s],r);return l&&ct.isArray(n[s])&&(n[s]=Xt(n[s])),!o}if(ct.isFormData(t)&&ct.isFunction(t.entries)){const i={};return ct.forEachEntry(t,((t,n)=>{e(Wt(t),n,i,0)})),i}return null}const zt=jt;function Gt(t,e,i){if(ct.isString(t))try{return(e||JSON.parse)(t),ct.trim(t)}catch(n){if("SyntaxError"!==n.name)throw n}return(i||JSON.stringify)(t)}const Ut={transitional:Pt,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const i=e.getContentType()||"",n=i.indexOf("application/json")>-1,r=ct.isObject(t);r&&ct.isHTMLForm(t)&&(t=new FormData(t));const s=ct.isFormData(t);if(s)return n?JSON.stringify(zt(t)):t;if(ct.isArrayBuffer(t)||ct.isBuffer(t)||ct.isStream(t)||ct.isFile(t)||ct.isBlob(t)||ct.isReadableStream(t))return t;if(ct.isArrayBufferView(t))return t.buffer;if(ct.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(r){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Ht(t,this.formSerializer).toString();if((o=ct.isFileList(t))||i.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return xt(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return r||n?(e.setContentType("application/json",!1),Gt(t)):t}],transformResponse:[function(t){const e=this.transitional||Ut.transitional,i=e&&e.forcedJSONParsing,n="json"===this.responseType;if(ct.isResponse(t)||ct.isReadableStream(t))return t;if(t&&ct.isString(t)&&(i&&!this.responseType||n)){const i=e&&e.silentJSONParsing,s=!i&&n;try{return JSON.parse(t)}catch(r){if(s){if("SyntaxError"===r.name)throw pt.from(r,pt.ERR_BAD_RESPONSE,this,null,this.response);throw r}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bt.classes.FormData,Blob:Bt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ct.forEach(["delete","get","head","post","put","patch"],(t=>{Ut.headers[t]={}}));const Vt=Ut,Qt=ct.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$t=t=>{const e={};let i,n,r;return t&&t.split("\n").forEach((function(t){r=t.indexOf(":"),i=t.substring(0,r).trim().toLowerCase(),n=t.substring(r+1).trim(),!i||e[i]&&Qt[i]||("set-cookie"===i?e[i]?e[i].push(n):e[i]=[n]:e[i]=e[i]?e[i]+", "+n:n)})),e},Jt=Symbol("internals");function Kt(t){return t&&String(t).trim().toLowerCase()}function Zt(t){return!1===t||null==t?t:ct.isArray(t)?t.map(Zt):String(t)}function te(t){const e=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;while(n=i.exec(t))e[n[1]]=n[2];return e}const ee=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ie(t,e,i,n,r){return ct.isFunction(n)?n.call(this,e,i):(r&&(e=i),ct.isString(e)?ct.isString(n)?-1!==e.indexOf(n):ct.isRegExp(n)?n.test(e):void 0:void 0)}function ne(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,i)=>e.toUpperCase()+i))}function re(t,e){const i=ct.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+i,{value:function(t,i,r){return this[n].call(this,e,t,i,r)},configurable:!0})}))}class se{constructor(t){t&&this.set(t)}set(t,e,i){const n=this;function r(t,e,i){const r=Kt(e);if(!r)throw new Error("header name must be a non-empty string");const s=ct.findKey(n,r);(!s||void 0===n[s]||!0===i||void 0===i&&!1!==n[s])&&(n[s||e]=Zt(t))}const s=(t,e)=>ct.forEach(t,((t,i)=>r(t,i,e)));if(ct.isPlainObject(t)||t instanceof this.constructor)s(t,e);else if(ct.isString(t)&&(t=t.trim())&&!ee(t))s($t(t),e);else if(ct.isHeaders(t))for(const[o,a]of t.entries())r(a,o,i);else null!=t&&r(e,t,i);return this}get(t,e){if(t=Kt(t),t){const i=ct.findKey(this,t);if(i){const t=this[i];if(!e)return t;if(!0===e)return te(t);if(ct.isFunction(e))return e.call(this,t,i);if(ct.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Kt(t),t){const i=ct.findKey(this,t);return!(!i||void 0===this[i]||e&&!ie(this,this[i],i,e))}return!1}delete(t,e){const i=this;let n=!1;function r(t){if(t=Kt(t),t){const r=ct.findKey(i,t);!r||e&&!ie(i,i[r],r,e)||(delete i[r],n=!0)}}return ct.isArray(t)?t.forEach(r):r(t),n}clear(t){const e=Object.keys(this);let i=e.length,n=!1;while(i--){const r=e[i];t&&!ie(this,this[r],r,t,!0)||(delete this[r],n=!0)}return n}normalize(t){const e=this,i={};return ct.forEach(this,((n,r)=>{const s=ct.findKey(i,r);if(s)return e[s]=Zt(n),void delete e[r];const o=t?ne(r):String(r).trim();o!==r&&delete e[r],e[o]=Zt(n),i[o]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return ct.forEach(this,((i,n)=>{null!=i&&!1!==i&&(e[n]=t&&ct.isArray(i)?i.join(", "):i)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach((t=>i.set(t))),i}static accessor(t){const e=this[Jt]=this[Jt]={accessors:{}},i=e.accessors,n=this.prototype;function r(t){const e=Kt(t);i[e]||(re(n,t),i[e]=!0)}return ct.isArray(t)?t.forEach(r):r(t),this}}se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ct.reduceDescriptors(se.prototype,(({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[i]=t}}})),ct.freezeMethods(se);const oe=se;function ae(t,e){const i=this||Vt,n=e||i,r=oe.from(n.headers);let s=n.data;return ct.forEach(t,(function(t){s=t.call(i,s,r.normalize(),e?e.status:void 0)})),r.normalize(),s}function le(t){return!(!t||!t.__CANCEL__)}function ue(t,e,i){pt.call(this,null==t?"canceled":t,pt.ERR_CANCELED,e,i),this.name="CanceledError"}ct.inherits(ue,pt,{__CANCEL__:!0});const ce=ue;function he(t,e,i){const n=i.config.validateStatus;i.status&&n&&!n(i.status)?e(new pt("Request failed with status code "+i.status,[pt.ERR_BAD_REQUEST,pt.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):t(i)}function de(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function fe(t,e){t=t||10;const i=new Array(t),n=new Array(t);let r,s=0,o=0;return e=void 0!==e?e:1e3,function(a){const l=Date.now(),u=n[o];r||(r=l),i[s]=a,n[s]=l;let c=o,h=0;while(c!==s)h+=i[c++],c%=t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),l-r<e)return;const d=u&&l-u;return d?Math.round(1e3*h/d):void 0}}const pe=fe;function me(t,e){let i=0;const n=1e3/e;let r=null;return function(){const e=!0===this,s=Date.now();if(e||s-i>n)return r&&(clearTimeout(r),r=null),i=s,t.apply(null,arguments);r||(r=setTimeout((()=>(r=null,i=Date.now(),t.apply(null,arguments))),n-(s-i)))}}const _e=me,ge=(t,e,i=3)=>{let n=0;const r=pe(50,250);return _e((i=>{const s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-n,l=r(a),u=s<=o;n=s;const c={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&u?(o-s)/l:void 0,event:i,lengthComputable:null!=o};c[e?"download":"upload"]=!0,t(c)}),i)},ye=Bt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let i;function n(i){let n=i;return t&&(e.setAttribute("href",n),n=e.href),e.setAttribute("href",n),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return i=n(window.location.href),function(t){const e=ct.isString(t)?n(t):t;return e.protocol===i.protocol&&e.host===i.host}}():function(){return function(){return!0}}(),ve=Bt.hasStandardBrowserEnv?{write(t,e,i,n,r,s){const o=[t+"="+encodeURIComponent(e)];ct.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),ct.isString(n)&&o.push("path="+n),ct.isString(r)&&o.push("domain="+r),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function we(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function be(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function xe(t,e){return t&&!we(e)?be(t,e):e}const Se=t=>t instanceof oe?{...t}:t;function Te(t,e){e=e||{};const i={};function n(t,e,i){return ct.isPlainObject(t)&&ct.isPlainObject(e)?ct.merge.call({caseless:i},t,e):ct.isPlainObject(e)?ct.merge({},e):ct.isArray(e)?e.slice():e}function r(t,e,i){return ct.isUndefined(e)?ct.isUndefined(t)?void 0:n(void 0,t,i):n(t,e,i)}function s(t,e){if(!ct.isUndefined(e))return n(void 0,e)}function o(t,e){return ct.isUndefined(e)?ct.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(i,r,s){return s in e?n(i,r):s in t?n(void 0,i):void 0}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(t,e)=>r(Se(t),Se(e),!0)};return ct.forEach(Object.keys(Object.assign({},t,e)),(function(n){const s=l[n]||r,o=s(t[n],e[n],n);ct.isUndefined(o)&&s!==a||(i[n]=o)})),i}const De=t=>{const e=Te({},t);let i,{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:l}=e;if(e.headers=a=oe.from(a),e.url=Et(xe(e.baseURL,e.url),t.params,t.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),ct.isFormData(n))if(Bt.hasStandardBrowserEnv||Bt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(i=a.getContentType())){const[t,...e]=i?i.split(";").map((t=>t.trim())).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...e].join("; "))}if(Bt.hasStandardBrowserEnv&&(r&&ct.isFunction(r)&&(r=r(e)),r||!1!==r&&ye(e.url))){const t=s&&o&&ve.read(o);t&&a.set(s,t)}return e},Ae="undefined"!==typeof XMLHttpRequest,ke=Ae&&function(t){return new Promise((function(e,i){const n=De(t);let r=n.data;const s=oe.from(n.headers).normalize();let o,{responseType:a}=n;function l(){n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let u=new XMLHttpRequest;function c(){if(!u)return;const n=oe.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),r=a&&"text"!==a&&"json"!==a?u.response:u.responseText,s={data:r,status:u.status,statusText:u.statusText,headers:n,config:t,request:u};he((function(t){e(t),l()}),(function(t){i(t),l()}),s),u=null}u.open(n.method.toUpperCase(),n.url,!0),u.timeout=n.timeout,"onloadend"in u?u.onloadend=c:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(c)},u.onabort=function(){u&&(i(new pt("Request aborted",pt.ECONNABORTED,n,u)),u=null)},u.onerror=function(){i(new pt("Network Error",pt.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const e=n.transitional||Pt;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),i(new pt(t,e.clarifyTimeoutError?pt.ETIMEDOUT:pt.ECONNABORTED,n,u)),u=null},void 0===r&&s.setContentType(null),"setRequestHeader"in u&&ct.forEach(s.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),ct.isUndefined(n.withCredentials)||(u.withCredentials=!!n.withCredentials),a&&"json"!==a&&(u.responseType=n.responseType),"function"===typeof n.onDownloadProgress&&u.addEventListener("progress",ge(n.onDownloadProgress,!0)),"function"===typeof n.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",ge(n.onUploadProgress)),(n.cancelToken||n.signal)&&(o=e=>{u&&(i(!e||e.type?new ce(null,t,u):e),u.abort(),u=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const h=de(n.url);h&&-1===Bt.protocols.indexOf(h)?i(new pt("Unsupported protocol "+h+":",pt.ERR_BAD_REQUEST,t)):u.send(r||null)}))},Ee=(t,e)=>{let i,n=new AbortController;const r=function(t){if(!i){i=!0,o();const e=t instanceof Error?t:this.reason;n.abort(e instanceof pt?e:new ce(e instanceof Error?e.message:e))}};let s=e&&setTimeout((()=>{r(new pt(`timeout ${e} of ms exceeded`,pt.ETIMEDOUT))}),e);const o=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach((t=>{t&&(t.removeEventListener?t.removeEventListener("abort",r):t.unsubscribe(r))})),t=null)};t.forEach((t=>t&&t.addEventListener&&t.addEventListener("abort",r)));const{signal:a}=n;return a.unsubscribe=o,[a,()=>{s&&clearTimeout(s),s=null}]},Re=Ee,Me=function*(t,e){let i=t.byteLength;if(!e||i<e)return void(yield t);let n,r=0;while(r<i)n=r+e,yield t.slice(r,n),r=n},Pe=async function*(t,e,i){for await(const n of t)yield*Me(ArrayBuffer.isView(n)?n:await i(String(n)),e)},Oe=(t,e,i,n,r)=>{const s=Pe(t,e,r);let o=0;return new ReadableStream({type:"bytes",async pull(t){const{done:e,value:r}=await s.next();if(e)return t.close(),void n();let a=r.byteLength;i&&i(o+=a),t.enqueue(new Uint8Array(r))},cancel(t){return n(t),s.return()}},{highWaterMark:2})},Le=(t,e)=>{const i=null!=t;return n=>setTimeout((()=>e({lengthComputable:i,total:t,loaded:n})))},Ce="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Ie=Ce&&"function"===typeof ReadableStream,Ne=Ce&&("function"===typeof TextEncoder?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Ye=Ie&&(()=>{let t=!1;const e=new Request(Bt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),qe=65536,Fe=Ie&&!!(()=>{try{return ct.isReadableStream(new Response("").body)}catch(t){}})(),Be={stream:Fe&&(t=>t.body)};Ce&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Be[e]&&(Be[e]=ct.isFunction(t[e])?t=>t[e]():(t,i)=>{throw new pt(`Response type '${e}' is not supported`,pt.ERR_NOT_SUPPORT,i)})}))})(new Response);const He=async t=>null==t?0:ct.isBlob(t)?t.size:ct.isSpecCompliantForm(t)?(await new Request(t).arrayBuffer()).byteLength:ct.isArrayBufferView(t)?t.byteLength:(ct.isURLSearchParams(t)&&(t+=""),ct.isString(t)?(await Ne(t)).byteLength:void 0),We=async(t,e)=>{const i=ct.toFiniteNumber(t.getContentLength());return null==i?He(e):i},Xe=Ce&&(async t=>{let{url:e,method:i,data:n,signal:r,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:u,headers:c,withCredentials:h="same-origin",fetchOptions:d}=De(t);u=u?(u+"").toLowerCase():"text";let f,p,[m,_]=r||s||o?Re([r,s],o):[];const g=()=>{!f&&setTimeout((()=>{m&&m.unsubscribe()})),f=!0};let y;try{if(l&&Ye&&"get"!==i&&"head"!==i&&0!==(y=await We(c,n))){let t,i=new Request(e,{method:"POST",body:n,duplex:"half"});ct.isFormData(n)&&(t=i.headers.get("content-type"))&&c.setContentType(t),i.body&&(n=Oe(i.body,qe,Le(y,ge(l)),null,Ne))}ct.isString(h)||(h=h?"cors":"omit"),p=new Request(e,{...d,signal:m,method:i.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",withCredentials:h});let r=await fetch(p);const s=Fe&&("stream"===u||"response"===u);if(Fe&&(a||s)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=r[e]}));const e=ct.toFiniteNumber(r.headers.get("content-length"));r=new Response(Oe(r.body,qe,a&&Le(e,ge(a,!0)),s&&g,Ne),t)}u=u||"text";let o=await Be[ct.findKey(Be,u)||"text"](r,t);return!s&&g(),_&&_(),await new Promise(((e,i)=>{he(e,i,{data:o,headers:oe.from(r.headers),status:r.status,statusText:r.statusText,config:t,request:p})}))}catch(v){if(g(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new pt("Network Error",pt.ERR_NETWORK,t,p),{cause:v.cause||v});throw pt.from(v,v&&v.code,t,p)}}),je={http:mt,xhr:ke,fetch:Xe};ct.forEach(je,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(i){}Object.defineProperty(t,"adapterName",{value:e})}}));const ze=t=>`- ${t}`,Ge=t=>ct.isFunction(t)||null===t||!1===t,Ue={getAdapter:t=>{t=ct.isArray(t)?t:[t];const{length:e}=t;let i,n;const r={};for(let s=0;s<e;s++){let e;if(i=t[s],n=i,!Ge(i)&&(n=je[(e=String(i)).toLowerCase()],void 0===n))throw new pt(`Unknown adapter '${e}'`);if(n)break;r[e||"#"+s]=n}if(!n){const t=Object.entries(r).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let i=e?t.length>1?"since :\n"+t.map(ze).join("\n"):" "+ze(t[0]):"as no adapter specified";throw new pt("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:je};function Ve(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ce(null,t)}function Qe(t){Ve(t),t.headers=oe.from(t.headers),t.data=ae.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const e=Ue.getAdapter(t.adapter||Vt.adapter);return e(t).then((function(e){return Ve(t),e.data=ae.call(t,t.transformResponse,e),e.headers=oe.from(e.headers),e}),(function(e){return le(e)||(Ve(t),e&&e.response&&(e.response.data=ae.call(t,t.transformResponse,e.response),e.response.headers=oe.from(e.response.headers))),Promise.reject(e)}))}const $e="1.7.2",Je={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Je[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}}));const Ke={};function Ze(t,e,i){if("object"!==typeof t)throw new pt("options must be an object",pt.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let r=n.length;while(r-- >0){const s=n[r],o=e[s];if(o){const e=t[s],i=void 0===e||o(e,s,t);if(!0!==i)throw new pt("option "+s+" must be "+i,pt.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new pt("Unknown option "+s,pt.ERR_BAD_OPTION)}}Je.transitional=function(t,e,i){function n(t,e){return"[Axios v"+$e+"] Transitional option '"+t+"'"+e+(i?". "+i:"")}return(i,r,s)=>{if(!1===t)throw new pt(n(r," has been removed"+(e?" in "+e:"")),pt.ERR_DEPRECATED);return e&&!Ke[r]&&(Ke[r]=!0,console.warn(n(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(i,r,s)}};const ti={assertOptions:Ze,validators:Je},ei=ti.validators;class ii{constructor(t){this.defaults=t,this.interceptors={request:new Mt,response:new Mt}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const e=t.stack?t.stack.replace(/^.+\n/,""):"";try{i.stack?e&&!String(i.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(i.stack+="\n"+e):i.stack=e}catch(n){}}throw i}}_request(t,e){"string"===typeof t?(e=e||{},e.url=t):e=t||{},e=Te(this.defaults,e);const{transitional:i,paramsSerializer:n,headers:r}=e;void 0!==i&&ti.assertOptions(i,{silentJSONParsing:ei.transitional(ei.boolean),forcedJSONParsing:ei.transitional(ei.boolean),clarifyTimeoutError:ei.transitional(ei.boolean)},!1),null!=n&&(ct.isFunction(n)?e.paramsSerializer={serialize:n}:ti.assertOptions(n,{encode:ei.function,serialize:ei.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let s=r&&ct.merge(r.common,r[e.method]);r&&ct.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete r[t]})),e.headers=oe.concat(s,r);const o=[];let a=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let c,h=0;if(!a){const t=[Qe.bind(this),void 0];t.unshift.apply(t,o),t.push.apply(t,l),c=t.length,u=Promise.resolve(e);while(h<c)u=u.then(t[h++],t[h++]);return u}c=o.length;let d=e;h=0;while(h<c){const t=o[h++],e=o[h++];try{d=t(d)}catch(f){e.call(this,f);break}}try{u=Qe.call(this,d)}catch(f){return Promise.reject(f)}h=0,c=l.length;while(h<c)u=u.then(l[h++],l[h++]);return u}getUri(t){t=Te(this.defaults,t);const e=xe(t.baseURL,t.url);return Et(e,t.params,t.paramsSerializer)}}ct.forEach(["delete","get","head","options"],(function(t){ii.prototype[t]=function(e,i){return this.request(Te(i||{},{method:t,url:e,data:(i||{}).data}))}})),ct.forEach(["post","put","patch"],(function(t){function e(e){return function(i,n,r){return this.request(Te(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}ii.prototype[t]=e(),ii.prototype[t+"Form"]=e(!0)}));const ni=ii;class ri{constructor(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const i=this;this.promise.then((t=>{if(!i._listeners)return;let e=i._listeners.length;while(e-- >0)i._listeners[e](t);i._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{i.subscribe(t),e=t})).then(t);return n.cancel=function(){i.unsubscribe(e)},n},t((function(t,n,r){i.reason||(i.reason=new ce(t,n,r),e(i.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;const e=new ri((function(e){t=e}));return{token:e,cancel:t}}}const si=ri;function oi(t){return function(e){return t.apply(null,e)}}function ai(t){return ct.isObject(t)&&!0===t.isAxiosError}const li={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(li).forEach((([t,e])=>{li[e]=t}));const ui=li;function ci(t){const e=new ni(t),i=r(ni.prototype.request,e);return ct.extend(i,ni.prototype,e,{allOwnKeys:!0}),ct.extend(i,e,null,{allOwnKeys:!0}),i.create=function(e){return ci(Te(t,e))},i}const hi=ci(Vt);hi.Axios=ni,hi.CanceledError=ce,hi.CancelToken=si,hi.isCancel=le,hi.VERSION=$e,hi.toFormData=xt,hi.AxiosError=pt,hi.Cancel=hi.CanceledError,hi.all=function(t){return Promise.all(t)},hi.spread=oi,hi.isAxiosError=ai,hi.mergeConfig=Te,hi.AxiosHeaders=oe,hi.formToJSON=t=>zt(ct.isHTMLForm(t)?new FormData(t):t),hi.getAdapter=Ue.getAdapter,hi.HttpStatusCode=ui,hi.default=hi;const di=hi},3702:(t,e,i)=>{"use strict";i.d(e,{q:()=>r});let n={};function r(){return n}},1964:(t,e,i)=>{"use strict";i.d(e,{m:()=>o});const n=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},r=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},s=(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],s=i[1],o=i[2];if(!o)return n(t,e);let a;switch(s){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",n(s,e)).replace("{{time}}",r(o,e))},o={p:r,P:s}},9356:(t,e,i)=>{"use strict";i.d(e,{G:()=>r});var n=i(2509);function r(t){const e=(0,n.a)(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}},5399:(t,e,i)=>{"use strict";i.d(e,{Ss:()=>l,ef:()=>o,xM:()=>a});const n=/^D+$/,r=/^Y+$/,s=["D","DD","YY","YYYY"];function o(t){return n.test(t)}function a(t){return r.test(t)}function l(t,e,i){const n=u(t,e,i);if(console.warn(n),s.includes(t))throw new RangeError(n)}function u(t,e,i){const n="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${n} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}},8997:(t,e,i)=>{"use strict";i.d(e,{Cg:()=>s,_m:()=>a,my:()=>n,s0:()=>o,w4:()=>r});Math.pow(10,8);const n=6048e5,r=864e5,s=6e4,o=36e5,a=1e3},8989:(t,e,i)=>{"use strict";function n(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}i.d(e,{w:()=>n})},3769:(t,e,i)=>{"use strict";i.d(e,{GP:()=>O});var n=i(588),r=i(3702),s=i(8997),o=i(2509);function a(t){const e=(0,o.a)(t);return e.setHours(0,0,0,0),e}var l=i(9356);function u(t,e){const i=a(t),n=a(e),r=+i-(0,l.G)(i),o=+n-(0,l.G)(n);return Math.round((r-o)/s.w4)}var c=i(8989);function h(t){const e=(0,o.a)(t),i=(0,c.w)(t,0);return i.setFullYear(e.getFullYear(),0,1),i.setHours(0,0,0,0),i}function d(t){const e=(0,o.a)(t),i=u(e,h(e)),n=i+1;return n}var f=i(9795),p=i(4962),m=i(9960),_=i(8897);function g(t,e){const i=t<0?"-":"",n=Math.abs(t).toString().padStart(e,"0");return i+n}const y={y(t,e){const i=t.getFullYear(),n=i>0?i:1-i;return g("yy"===e?n%100:n,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):g(i+1,2)},d(t,e){return g(t.getDate(),e.length)},a(t,e){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return"am"===i?"a.m.":"p.m."}},h(t,e){return g(t.getHours()%12||12,e.length)},H(t,e){return g(t.getHours(),e.length)},m(t,e){return g(t.getMinutes(),e.length)},s(t,e){return g(t.getSeconds(),e.length)},S(t,e){const i=e.length,n=t.getMilliseconds(),r=Math.trunc(n*Math.pow(10,i-3));return g(r,e.length)}},v={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},w={G:function(t,e,i){const n=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})}},y:function(t,e,i){if("yo"===e){const e=t.getFullYear(),n=e>0?e:1-e;return i.ordinalNumber(n,{unit:"year"})}return y.y(t,e)},Y:function(t,e,i,n){const r=(0,_.h)(t,n),s=r>0?r:1-r;if("YY"===e){const t=s%100;return g(t,2)}return"Yo"===e?i.ordinalNumber(s,{unit:"year"}):g(s,e.length)},R:function(t,e){const i=(0,p.p)(t);return g(i,e.length)},u:function(t,e){const i=t.getFullYear();return g(i,e.length)},Q:function(t,e,i){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return g(n,2);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,i){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return g(n,2);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,i){const n=t.getMonth();switch(e){case"M":case"MM":return y.M(t,e);case"Mo":return i.ordinalNumber(n+1,{unit:"month"});case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,i){const n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return g(n+1,2);case"Lo":return i.ordinalNumber(n+1,{unit:"month"});case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,i,n){const r=(0,m.N)(t,n);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):g(r,e.length)},I:function(t,e,i){const n=(0,f.s)(t);return"Io"===e?i.ordinalNumber(n,{unit:"week"}):g(n,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):y.d(t,e)},D:function(t,e,i){const n=d(t);return"Do"===e?i.ordinalNumber(n,{unit:"dayOfYear"}):g(n,e.length)},E:function(t,e,i){const n=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,i,n){const r=t.getDay(),s=(r-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return g(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});case"eeee":default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,n){const r=t.getDay(),s=(r-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return g(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});case"cccc":default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){const n=t.getDay(),r=0===n?7:n;switch(e){case"i":return String(r);case"ii":return g(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(n,{width:"short",context:"formatting"});case"iiii":default:return i.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,i){const n=t.getHours(),r=n/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,i){const n=t.getHours();let r;switch(r=12===n?v.noon:0===n?v.midnight:n/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,i){const n=t.getHours();let r;switch(r=n>=17?v.evening:n>=12?v.afternoon:n>=4?v.morning:v.night,e){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return y.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):y.H(t,e)},K:function(t,e,i){const n=t.getHours()%12;return"Ko"===e?i.ordinalNumber(n,{unit:"hour"}):g(n,e.length)},k:function(t,e,i){let n=t.getHours();return 0===n&&(n=24),"ko"===e?i.ordinalNumber(n,{unit:"hour"}):g(n,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):y.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):y.s(t,e)},S:function(t,e){return y.S(t,e)},X:function(t,e,i){const n=t.getTimezoneOffset();if(0===n)return"Z";switch(e){case"X":return x(n);case"XXXX":case"XX":return S(n);case"XXXXX":case"XXX":default:return S(n,":")}},x:function(t,e,i){const n=t.getTimezoneOffset();switch(e){case"x":return x(n);case"xxxx":case"xx":return S(n);case"xxxxx":case"xxx":default:return S(n,":")}},O:function(t,e,i){const n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+b(n,":");case"OOOO":default:return"GMT"+S(n,":")}},z:function(t,e,i){const n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+b(n,":");case"zzzz":default:return"GMT"+S(n,":")}},t:function(t,e,i){const n=Math.trunc(t.getTime()/1e3);return g(n,e.length)},T:function(t,e,i){const n=t.getTime();return g(n,e.length)}};function b(t,e=""){const i=t>0?"-":"+",n=Math.abs(t),r=Math.trunc(n/60),s=n%60;return 0===s?i+String(r):i+String(r)+e+g(s,2)}function x(t,e){if(t%60===0){const e=t>0?"-":"+";return e+g(Math.abs(t)/60,2)}return S(t,e)}function S(t,e=""){const i=t>0?"-":"+",n=Math.abs(t),r=g(Math.trunc(n/60),2),s=g(n%60,2);return i+r+e+s}var T=i(1964),D=i(5399),A=i(6375);const k=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,E=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,R=/^'([^]*?)'?$/,M=/''/g,P=/[a-zA-Z]/;function O(t,e,i){const s=(0,r.q)(),a=i?.locale??s.locale??n.c,l=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,u=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,c=(0,o.a)(t);if(!(0,A.f)(c))throw new RangeError("Invalid time value");let h=e.match(E).map((t=>{const e=t[0];if("p"===e||"P"===e){const i=T.m[e];return i(t,a.formatLong)}return t})).join("").match(k).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:L(t)};if(w[e])return{isToken:!0,value:t};if(e.match(P))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));a.localize.preprocessor&&(h=a.localize.preprocessor(c,h));const d={firstWeekContainsDate:l,weekStartsOn:u,locale:a};return h.map((n=>{if(!n.isToken)return n.value;const r=n.value;(!i?.useAdditionalWeekYearTokens&&(0,D.xM)(r)||!i?.useAdditionalDayOfYearTokens&&(0,D.ef)(r))&&(0,D.Ss)(r,e,String(t));const s=w[r[0]];return s(c,r,a.localize,d)})).join("")}function L(t){const e=t.match(R);return e?e[1].replace(M,"'"):t}},9795:(t,e,i)=>{"use strict";i.d(e,{s:()=>u});var n=i(8997),r=i(9628),s=i(4962),o=i(8989);function a(t){const e=(0,s.p)(t),i=(0,o.w)(t,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),(0,r.b)(i)}var l=i(2509);function u(t){const e=(0,l.a)(t),i=+(0,r.b)(e)-+a(e);return Math.round(i/n.my)+1}},4962:(t,e,i)=>{"use strict";i.d(e,{p:()=>o});var n=i(8989),r=i(9628),s=i(2509);function o(t){const e=(0,s.a)(t),i=e.getFullYear(),o=(0,n.w)(t,0);o.setFullYear(i+1,0,4),o.setHours(0,0,0,0);const a=(0,r.b)(o),l=(0,n.w)(t,0);l.setFullYear(i,0,4),l.setHours(0,0,0,0);const u=(0,r.b)(l);return e.getTime()>=a.getTime()?i+1:e.getTime()>=u.getTime()?i:i-1}},9960:(t,e,i)=>{"use strict";i.d(e,{N:()=>c});var n=i(8997),r=i(3957),s=i(8989),o=i(8897),a=i(3702);function l(t,e){const i=(0,a.q)(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,l=(0,o.h)(t,e),u=(0,s.w)(t,0);u.setFullYear(l,0,n),u.setHours(0,0,0,0);const c=(0,r.k)(u,e);return c}var u=i(2509);function c(t,e){const i=(0,u.a)(t),s=+(0,r.k)(i,e)-+l(i,e);return Math.round(s/n.my)+1}},8897:(t,e,i)=>{"use strict";i.d(e,{h:()=>a});var n=i(8989),r=i(3957),s=i(2509),o=i(3702);function a(t,e){const i=(0,s.a)(t),a=i.getFullYear(),l=(0,o.q)(),u=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1,c=(0,n.w)(t,0);c.setFullYear(a+1,0,u),c.setHours(0,0,0,0);const h=(0,r.k)(c,e),d=(0,n.w)(t,0);d.setFullYear(a,0,u),d.setHours(0,0,0,0);const f=(0,r.k)(d,e);return i.getTime()>=h.getTime()?a+1:i.getTime()>=f.getTime()?a:a-1}},6375:(t,e,i)=>{"use strict";function n(t){return t instanceof Date||"object"===typeof t&&"[object Date]"===Object.prototype.toString.call(t)}i.d(e,{f:()=>s});var r=i(2509);function s(t){if(!n(t)&&"number"!==typeof t)return!1;const e=(0,r.a)(t);return!isNaN(Number(e))}},588:(t,e,i)=>{"use strict";i.d(e,{c:()=>q});const n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=(t,e,i)=>{let r;const s=n[t];return r="string"===typeof s?s:1===e?s.one:s.other.replace("{{count}}",e.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+r:r+" ago":r};function s(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth,n=t.formats[i]||t.formats[t.defaultWidth];return n}}const o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},l={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u={date:s({formats:o,defaultWidth:"full"}),time:s({formats:a,defaultWidth:"full"}),dateTime:s({formats:l,defaultWidth:"full"})},c={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},h=(t,e,i,n)=>c[t];function d(t){return(e,i)=>{const n=i?.context?String(i.context):"standalone";let r;if("formatting"===n&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,n=i?.width?String(i.width):e;r=t.formattingValues[n]||t.formattingValues[e]}else{const e=t.defaultWidth,n=i?.width?String(i.width):t.defaultWidth;r=t.values[n]||t.values[e]}const s=t.argumentCallback?t.argumentCallback(e):e;return r[s]}}const f={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},p={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},m={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},g={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},y={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},v=(t,e)=>{const i=Number(t),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},w={ordinalNumber:v,era:d({values:f,defaultWidth:"wide"}),quarter:d({values:p,defaultWidth:"wide",argumentCallback:t=>t-1}),month:d({values:m,defaultWidth:"wide"}),day:d({values:_,defaultWidth:"wide"}),dayPeriod:d({values:g,defaultWidth:"wide",formattingValues:y,defaultFormattingWidth:"wide"})};function b(t){return(e,i={})=>{const n=i.width,r=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;const o=s[0],a=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?S(a,(t=>t.test(o))):x(a,(t=>t.test(o)));let u;u=t.valueCallback?t.valueCallback(l):l,u=i.valueCallback?i.valueCallback(u):u;const c=e.slice(o.length);return{value:u,rest:c}}}function x(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i}function S(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i}function T(t){return(e,i={})=>{const n=e.match(t.matchPattern);if(!n)return null;const r=n[0],s=e.match(t.parsePattern);if(!s)return null;let o=t.valueCallback?t.valueCallback(s[0]):s[0];o=i.valueCallback?i.valueCallback(o):o;const a=e.slice(r.length);return{value:o,rest:a}}}const D=/^(\d+)(th|st|nd|rd)?/i,A=/\d+/i,k={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},E={any:[/^b/i,/^(a|c)/i]},R={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},M={any:[/1/i,/2/i,/3/i,/4/i]},P={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},O={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},L={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},C={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},I={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},N={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Y={ordinalNumber:T({matchPattern:D,parsePattern:A,valueCallback:t=>parseInt(t,10)}),era:b({matchPatterns:k,defaultMatchWidth:"wide",parsePatterns:E,defaultParseWidth:"any"}),quarter:b({matchPatterns:R,defaultMatchWidth:"wide",parsePatterns:M,defaultParseWidth:"any",valueCallback:t=>t+1}),month:b({matchPatterns:P,defaultMatchWidth:"wide",parsePatterns:O,defaultParseWidth:"any"}),day:b({matchPatterns:L,defaultMatchWidth:"wide",parsePatterns:C,defaultParseWidth:"any"}),dayPeriod:b({matchPatterns:I,defaultMatchWidth:"any",parsePatterns:N,defaultParseWidth:"any"})},q={code:"en-US",formatDistance:r,formatLong:u,formatRelative:h,localize:w,match:Y,options:{weekStartsOn:0,firstWeekContainsDate:1}}},1131:(t,e,i)=>{"use strict";i.d(e,{qg:()=>At});var n=i(8989),r=i(3702);function s(){return Object.assign({},(0,r.q)())}var o=i(588),a=i(2509),l=i(1964),u=i(5399);function c(t,e){const i=e instanceof Date?(0,n.w)(e,0):new e(0);return i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),i.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),i}const h=10;class d{subPriority=0;validate(t,e){return!0}}class f extends d{constructor(t,e,i,n,r){super(),this.value=t,this.validateValue=e,this.setValue=i,this.priority=n,r&&(this.subPriority=r)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,i){return this.setValue(t,e,this.value,i)}}class p extends d{priority=h;subPriority=-1;set(t,e){return e.timestampIsSet?t:(0,n.w)(t,c(t,Date))}}class m{run(t,e,i,n){const r=this.parse(t,e,i,n);return r?{setter:new f(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(t,e,i){return!0}}class _ extends m{priority=140;parse(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});case"GGGG":default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}set(t,e,i){return e.era=i,t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]}var g=i(8997);const y={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},v={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function w(t,e){return t?{value:e(t.value),rest:t.rest}:t}function b(t,e){const i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function x(t,e){const i=e.match(t);if(!i)return null;if("Z"===i[0])return{value:0,rest:e.slice(1)};const n="+"===i[1]?1:-1,r=i[2]?parseInt(i[2],10):0,s=i[3]?parseInt(i[3],10):0,o=i[5]?parseInt(i[5],10):0;return{value:n*(r*g.s0+s*g.Cg+o*g._m),rest:e.slice(i[0].length)}}function S(t){return b(y.anyDigitsSigned,t)}function T(t,e){switch(t){case 1:return b(y.singleDigit,e);case 2:return b(y.twoDigits,e);case 3:return b(y.threeDigits,e);case 4:return b(y.fourDigits,e);default:return b(new RegExp("^\\d{1,"+t+"}"),e)}}function D(t,e){switch(t){case 1:return b(y.singleDigitSigned,e);case 2:return b(y.twoDigitsSigned,e);case 3:return b(y.threeDigitsSigned,e);case 4:return b(y.fourDigitsSigned,e);default:return b(new RegExp("^-?\\d{1,"+t+"}"),e)}}function A(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function k(t,e){const i=e>0,n=i?e:1-e;let r;if(n<=50)r=t||100;else{const e=n+50,i=100*Math.trunc(e/100),s=t>=e%100;r=t+i-(s?100:0)}return i?r:1-r}function E(t){return t%400===0||t%4===0&&t%100!==0}class R extends m{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,e,i){const n=t=>({year:t,isTwoDigitYear:"yy"===e});switch(e){case"y":return w(T(4,t),n);case"yo":return w(i.ordinalNumber(t,{unit:"year"}),n);default:return w(T(e.length,t),n)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i){const n=t.getFullYear();if(i.isTwoDigitYear){const e=k(i.year,n);return t.setFullYear(e,0,1),t.setHours(0,0,0,0),t}const r="era"in e&&1!==e.era?1-i.year:i.year;return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}var M=i(8897),P=i(3957);class O extends m{priority=130;parse(t,e,i){const n=t=>({year:t,isTwoDigitYear:"YY"===e});switch(e){case"Y":return w(T(4,t),n);case"Yo":return w(i.ordinalNumber(t,{unit:"year"}),n);default:return w(T(e.length,t),n)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i,n){const r=(0,M.h)(t,n);if(i.isTwoDigitYear){const e=k(i.year,r);return t.setFullYear(e,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),(0,P.k)(t,n)}const s="era"in e&&1!==e.era?1-i.year:i.year;return t.setFullYear(s,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),(0,P.k)(t,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}var L=i(9628);class C extends m{priority=130;parse(t,e){return D("R"===e?4:e.length,t)}set(t,e,i){const r=(0,n.w)(t,0);return r.setFullYear(i,0,4),r.setHours(0,0,0,0),(0,L.b)(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class I extends m{priority=130;parse(t,e){return D("u"===e?4:e.length,t)}set(t,e,i){return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class N extends m{priority=120;parse(t,e,i){switch(e){case"Q":case"QQ":return T(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth(3*(i-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class Y extends m{priority=120;parse(t,e,i){switch(e){case"q":case"qq":return T(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth(3*(i-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class q extends m{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,e,i){const n=t=>t-1;switch(e){case"M":return w(b(y.month,t),n);case"MM":return w(T(2,t),n);case"Mo":return w(i.ordinalNumber(t,{unit:"month"}),n);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}}class F extends m{priority=110;parse(t,e,i){const n=t=>t-1;switch(e){case"L":return w(b(y.month,t),n);case"LL":return w(T(2,t),n);case"Lo":return w(i.ordinalNumber(t,{unit:"month"}),n);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}var B=i(9960);function H(t,e,i){const n=(0,a.a)(t),r=(0,B.N)(n,i)-e;return n.setDate(n.getDate()-7*r),n}class W extends m{priority=100;parse(t,e,i){switch(e){case"w":return b(y.week,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return T(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i,n){return(0,P.k)(H(t,i,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}var X=i(9795);function j(t,e){const i=(0,a.a)(t),n=(0,X.s)(i)-e;return i.setDate(i.getDate()-7*n),i}class z extends m{priority=100;parse(t,e,i){switch(e){case"I":return b(y.week,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return T(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i){return(0,L.b)(j(t,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const G=[31,28,31,30,31,30,31,31,30,31,30,31],U=[31,29,31,30,31,30,31,31,30,31,30,31];class V extends m{priority=90;subPriority=1;parse(t,e,i){switch(e){case"d":return b(y.date,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return T(e.length,t)}}validate(t,e){const i=t.getFullYear(),n=E(i),r=t.getMonth();return n?e>=1&&e<=U[r]:e>=1&&e<=G[r]}set(t,e,i){return t.setDate(i),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class Q extends m{priority=90;subpriority=1;parse(t,e,i){switch(e){case"D":case"DD":return b(y.dayOfYear,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return T(e.length,t)}}validate(t,e){const i=t.getFullYear(),n=E(i);return n?e>=1&&e<=366:e>=1&&e<=365}set(t,e,i){return t.setMonth(0,i),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function $(t,e){const i=(0,a.a)(t);return isNaN(e)?(0,n.w)(t,NaN):e?(i.setDate(i.getDate()+e),i):i}function J(t,e,i){const n=(0,r.q)(),s=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=(0,a.a)(t),l=o.getDay(),u=e%7,c=(u+7)%7,h=7-s,d=e<0||e>6?e-(l+h)%7:(c+h)%7-(l+h)%7;return $(o,d)}class K extends m{priority=90;parse(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,n){return t=J(t,i,n),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}class Z extends m{priority=90;parse(t,e,i,n){const r=t=>{const e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return w(T(e.length,t),r);case"eo":return w(i.ordinalNumber(t,{unit:"day"}),r);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,n){return t=J(t,i,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class tt extends m{priority=90;parse(t,e,i,n){const r=t=>{const e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return w(T(e.length,t),r);case"co":return w(i.ordinalNumber(t,{unit:"day"}),r);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,n){return t=J(t,i,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function et(t){const e=(0,a.a)(t);let i=e.getDay();return 0===i&&(i=7),i}function it(t,e){const i=(0,a.a)(t),n=et(i),r=e-n;return $(i,r)}class nt extends m{priority=90;parse(t,e,i){const n=t=>0===t?7:t;switch(e){case"i":case"ii":return T(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return w(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return w(i.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return w(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),n);case"iiii":default:return w(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),n)}}validate(t,e){return e>=1&&e<=7}set(t,e,i){return t=it(t,i),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class rt extends m{priority=80;parse(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(A(i),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]}class st extends m{priority=80;parse(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(A(i),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]}class ot extends m{priority=80;parse(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(A(i),0,0,0),t}incompatibleTokens=["a","b","t","T"]}class at extends m{priority=70;parse(t,e,i){switch(e){case"h":return b(y.hour12h,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return T(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,i){const n=t.getHours()>=12;return n&&i<12?t.setHours(i+12,0,0,0):n||12!==i?t.setHours(i,0,0,0):t.setHours(0,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]}class lt extends m{priority=70;parse(t,e,i){switch(e){case"H":return b(y.hour23h,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return T(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,i){return t.setHours(i,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]}class ut extends m{priority=70;parse(t,e,i){switch(e){case"K":return b(y.hour11h,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return T(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,i){const n=t.getHours()>=12;return n&&i<12?t.setHours(i+12,0,0,0):t.setHours(i,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]}class ct extends m{priority=70;parse(t,e,i){switch(e){case"k":return b(y.hour24h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return T(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,i){const n=i<=24?i%24:i;return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]}class ht extends m{priority=60;parse(t,e,i){switch(e){case"m":return b(y.minute,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return T(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setMinutes(i,0,0),t}incompatibleTokens=["t","T"]}class dt extends m{priority=50;parse(t,e,i){switch(e){case"s":return b(y.second,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return T(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setSeconds(i,0),t}incompatibleTokens=["t","T"]}class ft extends m{priority=30;parse(t,e){const i=t=>Math.trunc(t*Math.pow(10,3-e.length));return w(T(e.length,t),i)}set(t,e,i){return t.setMilliseconds(i),t}incompatibleTokens=["t","T"]}var pt=i(9356);class mt extends m{priority=10;parse(t,e){switch(e){case"X":return x(v.basicOptionalMinutes,t);case"XX":return x(v.basic,t);case"XXXX":return x(v.basicOptionalSeconds,t);case"XXXXX":return x(v.extendedOptionalSeconds,t);case"XXX":default:return x(v.extended,t)}}set(t,e,i){return e.timestampIsSet?t:(0,n.w)(t,t.getTime()-(0,pt.G)(t)-i)}incompatibleTokens=["t","T","x"]}class _t extends m{priority=10;parse(t,e){switch(e){case"x":return x(v.basicOptionalMinutes,t);case"xx":return x(v.basic,t);case"xxxx":return x(v.basicOptionalSeconds,t);case"xxxxx":return x(v.extendedOptionalSeconds,t);case"xxx":default:return x(v.extended,t)}}set(t,e,i){return e.timestampIsSet?t:(0,n.w)(t,t.getTime()-(0,pt.G)(t)-i)}incompatibleTokens=["t","T","X"]}class gt extends m{priority=40;parse(t){return S(t)}set(t,e,i){return[(0,n.w)(t,1e3*i),{timestampIsSet:!0}]}incompatibleTokens="*"}class yt extends m{priority=20;parse(t){return S(t)}set(t,e,i){return[(0,n.w)(t,i),{timestampIsSet:!0}]}incompatibleTokens="*"}const vt={G:new _,y:new R,Y:new O,R:new C,u:new I,Q:new N,q:new Y,M:new q,L:new F,w:new W,I:new z,d:new V,D:new Q,E:new K,e:new Z,c:new tt,i:new nt,a:new rt,b:new st,B:new ot,h:new at,H:new lt,K:new ut,k:new ct,m:new ht,s:new dt,S:new ft,X:new mt,x:new _t,t:new gt,T:new yt},wt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xt=/^'([^]*?)'?$/,St=/''/g,Tt=/\S/,Dt=/[a-zA-Z]/;function At(t,e,i,r){const c=s(),h=r?.locale??c.locale??o.c,d=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,f=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??c.weekStartsOn??c.locale?.options?.weekStartsOn??0;if(""===e)return""===t?(0,a.a)(i):(0,n.w)(i,NaN);const m={firstWeekContainsDate:d,weekStartsOn:f,locale:h},_=[new p],g=e.match(bt).map((t=>{const e=t[0];if(e in l.m){const i=l.m[e];return i(t,h.formatLong)}return t})).join("").match(wt),y=[];for(let s of g){!r?.useAdditionalWeekYearTokens&&(0,u.xM)(s)&&(0,u.Ss)(s,e,t),!r?.useAdditionalDayOfYearTokens&&(0,u.ef)(s)&&(0,u.Ss)(s,e,t);const o=s[0],a=vt[o];if(a){const{incompatibleTokens:e}=a;if(Array.isArray(e)){const t=y.find((t=>e.includes(t.token)||t.token===o));if(t)throw new RangeError(`The format string mustn't contain \`${t.fullToken}\` and \`${s}\` at the same time`)}else if("*"===a.incompatibleTokens&&y.length>0)throw new RangeError(`The format string mustn't contain \`${s}\` and any other token at the same time`);y.push({token:o,fullToken:s});const r=a.run(t,s,h.match,m);if(!r)return(0,n.w)(i,NaN);_.push(r.setter),t=r.rest}else{if(o.match(Dt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");if("''"===s?s="'":"'"===o&&(s=kt(s)),0!==t.indexOf(s))return(0,n.w)(i,NaN);t=t.slice(s.length)}}if(t.length>0&&Tt.test(t))return(0,n.w)(i,NaN);const v=_.map((t=>t.priority)).sort(((t,e)=>e-t)).filter(((t,e,i)=>i.indexOf(t)===e)).map((t=>_.filter((e=>e.priority===t)).sort(((t,e)=>e.subPriority-t.subPriority)))).map((t=>t[0]));let w=(0,a.a)(i);if(isNaN(w.getTime()))return(0,n.w)(i,NaN);const b={};for(const s of v){if(!s.validate(w,m))return(0,n.w)(i,NaN);const t=s.set(w,b,m);Array.isArray(t)?(w=t[0],Object.assign(b,t[1])):w=t}return(0,n.w)(i,w)}function kt(t){return t.match(xt)[1].replace(St,"'")}},9628:(t,e,i)=>{"use strict";i.d(e,{b:()=>r});var n=i(3957);function r(t){return(0,n.k)(t,{weekStartsOn:1})}},3957:(t,e,i)=>{"use strict";i.d(e,{k:()=>s});var n=i(2509),r=i(3702);function s(t,e){const i=(0,r.q)(),s=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=(0,n.a)(t),a=o.getDay(),l=(a<s?7:0)+a-s;return o.setDate(o.getDate()-l),o.setHours(0,0,0,0),o}},2509:(t,e,i)=>{"use strict";function n(t){const e=Object.prototype.toString.call(t);return t instanceof Date||"object"===typeof t&&"[object Date]"===e?new t.constructor(+t):"number"===typeof t||"[object Number]"===e||"string"===typeof t||"[object String]"===e?new Date(t):new Date(NaN)}i.d(e,{a:()=>n})}}]);
|
23
|
-
//# sourceMappingURL=104.js.map
|