(()=>{var _D=Object.create;var Eg=Object.defineProperty;var wD=Object.getOwnPropertyDescriptor;var xD=Object.getOwnPropertyNames;var ED=Object.getPrototypeOf,CD=Object.prototype.hasOwnProperty;var SD=(n,e,t)=>e in n?Eg(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Zl=(n,e)=>()=>(n&&(e=n(n=0)),e);var eu=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),Us=(n,e)=>{for(var t in e)Eg(n,t,{get:e[t],enumerable:!0})},TD=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of xD(e))!CD.call(n,i)&&i!==t&&Eg(n,i,{get:()=>e[i],enumerable:!(r=wD(e,i))||r.enumerable});return n};var Fi=(n,e,t)=>(t=n!=null?_D(ED(n)):{},TD(e||!n||!n.__esModule?Eg(t,"default",{value:n,enumerable:!0}):t,n));var As=(n,e,t)=>(SD(n,typeof e!="symbol"?e+"":e,t),t);var Sc,Bg=Zl(()=>{Sc={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0}});var Xr,Md=Zl(()=>{Bg();Xr={log(...n){this.enabled&&(n.push(Date.now()),Sc.logger.log("[ActionCable]",...n))}}});var yp,Hg,bp,qg,u_=Zl(()=>{Md();yp=()=>new Date().getTime(),Hg=n=>(yp()-n)/1e3,bp=class{constructor(e){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=e,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=yp(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),Xr.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=yp(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),Xr.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=yp()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,Xr.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=yp(),Xr.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){let{staleThreshold:e,reconnectionBackoffRate:t}=this.constructor,r=Math.pow(1+t,Math.min(this.reconnectAttempts,10)),a=(this.reconnectAttempts===0?1:t)*Math.random();return e*1e3*r*(1+a)}reconnectIfStale(){this.connectionIsStale()&&(Xr.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${Hg(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?Xr.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${Hg(this.disconnectedAt)} s`):(Xr.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return Hg(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&Hg(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(Xr.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}};bp.staleThreshold=6;bp.reconnectionBackoffRate=.15;qg=bp});var _p,c_=Zl(()=>{_p={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"]}});var wp,f_,kk,t1,xp,zg,d_=Zl(()=>{Bg();u_();c_();Md();({message_types:wp,protocols:f_}=_p),kk=f_.slice(0,f_.length-1),t1=[].indexOf,xp=class{constructor(e){this.open=this.open.bind(this),this.consumer=e,this.subscriptions=this.consumer.subscriptions,this.monitor=new qg(this),this.disconnected=!0}send(e){return this.isOpen()?(this.webSocket.send(JSON.stringify(e)),!0):!1}open(){if(this.isActive())return Xr.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{let e=[...f_,...this.consumer.subprotocols||[]];return Xr.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${e}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new Sc.WebSocket(this.consumer.url,e),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:e}={allowReconnect:!0}){if(e||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(Xr.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(e){Xr.log("Failed to reopen WebSocket",e)}finally{Xr.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()}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 t1.call(kk,this.getProtocol())>=0}isState(...e){return t1.call(e,this.getState())>=0}getState(){if(this.webSocket){for(let e in Sc.WebSocket)if(Sc.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase()}return null}installEventHandlers(){for(let e in this.events){let t=this.events[e].bind(this);this.webSocket[`on${e}`]=t}}uninstallEventHandlers(){for(let e in this.events)this.webSocket[`on${e}`]=function(){}}};xp.reopenDelay=500;xp.prototype.events={message(n){if(!this.isProtocolSupported())return;let{identifier:e,message:t,reason:r,reconnect:i,type:a}=JSON.parse(n.data);switch(a){case wp.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case wp.disconnect:return Xr.log(`Disconnecting. Reason: ${r}`),this.close({allowReconnect:i});case wp.ping:return this.monitor.recordPing();case wp.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 wp.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",t)}},open(){if(Xr.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return Xr.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(n){if(Xr.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){Xr.log("WebSocket onerror event")}};zg=xp});var Ok,bf,h_=Zl(()=>{Ok=function(n,e){if(e!=null)for(let t in e){let r=e[t];n[t]=r}return n},bf=class{constructor(e,t={},r){this.consumer=e,this.identifier=JSON.stringify(t),Ok(this,r)}perform(e,t={}){return t.action=e,this.send(t)}send(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}});var p_,Wg,m_=Zl(()=>{Md();p_=class{constructor(e){this.subscriptions=e,this.pendingSubscriptions=[]}guarantee(e){this.pendingSubscriptions.indexOf(e)==-1?(Xr.log(`SubscriptionGuarantor guaranteeing ${e.identifier}`),this.pendingSubscriptions.push(e)):Xr.log(`SubscriptionGuarantor already guaranteeing ${e.identifier}`),this.startGuaranteeing()}forget(e){Xr.log(`SubscriptionGuarantor forgetting ${e.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(t=>t!==e)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(e=>{Xr.log(`SubscriptionGuarantor resubscribing ${e.identifier}`),this.subscriptions.subscribe(e)})},500)}},Wg=p_});var _f,g_=Zl(()=>{h_();m_();Md();_f=class{constructor(e){this.consumer=e,this.guarantor=new Wg(this),this.subscriptions=[]}create(e,t){let r=e,i=typeof r=="object"?r:{channel:r},a=new bf(this.consumer,i,t);return this.add(a)}add(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e}remove(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e}reject(e){return this.findAll(e).map(t=>(this.forget(t),this.notify(t,"rejected"),t))}forget(e){return this.guarantor.forget(e),this.subscriptions=this.subscriptions.filter(t=>t!==e),e}findAll(e){return this.subscriptions.filter(t=>t.identifier===e)}reload(){return this.subscriptions.map(e=>this.subscribe(e))}notifyAll(e,...t){return this.subscriptions.map(r=>this.notify(r,e,...t))}notify(e,t,...r){let i;return typeof e=="string"?i=this.findAll(e):i=[e],i.map(a=>typeof a[t]=="function"?a[t](...r):void 0)}subscribe(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)}confirmSubscription(e){Xr.log(`Subscription confirmed ${e}`),this.findAll(e).map(t=>this.guarantor.forget(t))}sendCommand(e,t){let{identifier:r}=e;return this.consumer.send({command:t,identifier:r})}}});function v_(n){if(typeof n=="function"&&(n=n()),n&&!/^wss?:/i.test(n)){let e=document.createElement("a");return e.href=n,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href}else return n}var Ad,n1=Zl(()=>{d_();g_();Ad=class{constructor(e){this._url=e,this.subscriptions=new _f(this),this.connection=new zg(this),this.subprotocols=[]}get url(){return v_(this._url)}send(e){return this.connection.send(e)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(e){this.subprotocols=[...this.subprotocols,e]}}});var i1={};Us(i1,{Connection:()=>zg,ConnectionMonitor:()=>qg,Consumer:()=>Ad,INTERNAL:()=>_p,Subscription:()=>bf,SubscriptionGuarantor:()=>Wg,Subscriptions:()=>_f,adapters:()=>Sc,createConsumer:()=>Ik,createWebSocketURL:()=>v_,getConfig:()=>r1,logger:()=>Xr});function Ik(n=r1("url")||_p.default_mount_path){return new Ad(n)}function r1(n){let e=document.head.querySelector(`meta[name='action-cable-${n}']`);if(e)return e.getAttribute("content")}var o1=Zl(()=>{d_();u_();n1();c_();h_();g_();m_();Bg();Md()});var Cp=eu((c1,jg)=>{(function(n,e){"use strict";typeof jg=="object"&&typeof jg.exports=="object"?jg.exports=n.document?e(n,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(n)})(typeof window<"u"?window:c1,function(n,e){"use strict";var t=[],r=Object.getPrototypeOf,i=t.slice,a=t.flat?function(p){return t.flat.call(p)}:function(p){return t.concat.apply([],p)},u=t.push,d=t.indexOf,m={},y=m.toString,x=m.hasOwnProperty,S=x.toString,L=S.call(Object),H={},V=function(w){return typeof w=="function"&&typeof w.nodeType!="number"&&typeof w.item!="function"},U=function(w){return w!=null&&w===w.window},Z=n.document,ae={type:!0,src:!0,nonce:!0,noModule:!0};function le(p,w,M){M=M||Z;var k,B,z=M.createElement("script");if(z.text=p,w)for(k in ae)B=w[k]||w.getAttribute&&w.getAttribute(k),B&&z.setAttribute(k,B);M.head.appendChild(z).parentNode.removeChild(z)}function Ae(p){return p==null?p+"":typeof p=="object"||typeof p=="function"?m[y.call(p)]||"object":typeof p}var ve="3.6.0",b=function(p,w){return new b.fn.init(p,w)};b.fn=b.prototype={jquery:ve,constructor:b,length:0,toArray:function(){return i.call(this)},get:function(p){return p==null?i.call(this):p<0?this[p+this.length]:this[p]},pushStack:function(p){var w=b.merge(this.constructor(),p);return w.prevObject=this,w},each:function(p){return b.each(this,p)},map:function(p){return this.pushStack(b.map(this,function(w,M){return p.call(w,M,w)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(b.grep(this,function(p,w){return(w+1)%2}))},odd:function(){return this.pushStack(b.grep(this,function(p,w){return w%2}))},eq:function(p){var w=this.length,M=+p+(p<0?w:0);return this.pushStack(M>=0&&M<w?[this[M]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},b.extend=b.fn.extend=function(){var p,w,M,k,B,z,K=arguments[0]||{},Ee=1,Se=arguments.length,Ve=!1;for(typeof K=="boolean"&&(Ve=K,K=arguments[Ee]||{},Ee++),typeof K!="object"&&!V(K)&&(K={}),Ee===Se&&(K=this,Ee--);Ee<Se;Ee++)if((p=arguments[Ee])!=null)for(w in p)k=p[w],!(w==="__proto__"||K===k)&&(Ve&&k&&(b.isPlainObject(k)||(B=Array.isArray(k)))?(M=K[w],B&&!Array.isArray(M)?z=[]:!B&&!b.isPlainObject(M)?z={}:z=M,B=!1,K[w]=b.extend(Ve,z,k)):k!==void 0&&(K[w]=k));return K},b.extend({expando:"jQuery"+(ve+Math.random()).replace(/\D/g,""),isReady:!0,error:function(p){throw new Error(p)},noop:function(){},isPlainObject:function(p){var w,M;return!p||y.call(p)!=="[object Object]"?!1:(w=r(p),w?(M=x.call(w,"constructor")&&w.constructor,typeof M=="function"&&S.call(M)===L):!0)},isEmptyObject:function(p){var w;for(w in p)return!1;return!0},globalEval:function(p,w,M){le(p,{nonce:w&&w.nonce},M)},each:function(p,w){var M,k=0;if(te(p))for(M=p.length;k<M&&w.call(p[k],k,p[k])!==!1;k++);else for(k in p)if(w.call(p[k],k,p[k])===!1)break;return p},makeArray:function(p,w){var M=w||[];return p!=null&&(te(Object(p))?b.merge(M,typeof p=="string"?[p]:p):u.call(M,p)),M},inArray:function(p,w,M){return w==null?-1:d.call(w,p,M)},merge:function(p,w){for(var M=+w.length,k=0,B=p.length;k<M;k++)p[B++]=w[k];return p.length=B,p},grep:function(p,w,M){for(var k,B=[],z=0,K=p.length,Ee=!M;z<K;z++)k=!w(p[z],z),k!==Ee&&B.push(p[z]);return B},map:function(p,w,M){var k,B,z=0,K=[];if(te(p))for(k=p.length;z<k;z++)B=w(p[z],z,M),B!=null&&K.push(B);else for(z in p)B=w(p[z],z,M),B!=null&&K.push(B);return a(K)},guid:1,support:H}),typeof Symbol=="function"&&(b.fn[Symbol.iterator]=t[Symbol.iterator]),b.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(p,w){m["[object "+w+"]"]=w.toLowerCase()});function te(p){var w=!!p&&"length"in p&&p.length,M=Ae(p);return V(p)||U(p)?!1:M==="array"||w===0||typeof w=="number"&&w>0&&w-1 in p}var ye=function(p){var w,M,k,B,z,K,Ee,Se,Ve,at,Et,Ke,dt,Jt,Rn,sn,_r,$r,_i,hn="sizzle"+1*new Date,pn=p.document,wi=0,Zn=0,Or=ya(),us=ya(),pa=ya(),Di=ya(),ma=function(ne,_e){return ne===_e&&(Et=!0),0},$o={}.hasOwnProperty,ri=[],Lo=ri.pop,Ui=ri.push,ga=ri.push,va=ri.slice,Ro=function(ne,_e){for(var Fe=0,ht=ne.length;Fe<ht;Fe++)if(ne[Fe]===_e)return Fe;return-1},Pl="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",vr="[\\x20\\t\\r\\n\\f]",Go="(?:\\\\[\\da-fA-F]{1,6}"+vr+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ll="\\["+vr+"*("+Go+")(?:"+vr+"*([*^$|!~]?=)"+vr+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Go+"))|)"+vr+"*\\]",Rl=":("+Go+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Ll+")*)|.*)\\)|)",hu=new RegExp(vr+"+","g"),Gr=new RegExp("^"+vr+"+|((?:^|[^\\\\])(?:\\\\.)*)"+vr+"+$","g"),pu=new RegExp("^"+vr+"*,"+vr+"*"),io=new RegExp("^"+vr+"*([>+~]|"+vr+")"+vr+"*"),ki=new RegExp(vr+"|>"),Zu=new RegExp(Rl),ec=new RegExp("^"+Go+"$"),il={ID:new RegExp("^#("+Go+")"),CLASS:new RegExp("^\\.("+Go+")"),TAG:new RegExp("^("+Go+"|[*])"),ATTR:new RegExp("^"+Ll),PSEUDO:new RegExp("^"+Rl),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+vr+"*(even|odd|(([+-]|)(\\d*)n|)"+vr+"*(?:([+-]|)"+vr+"*(\\d+)|))"+vr+"*\\)|)","i"),bool:new RegExp("^(?:"+Pl+")$","i"),needsContext:new RegExp("^"+vr+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+vr+"*((?:-\\d)?\\d*)"+vr+"*\\)|)(?=[^-]|$)","i")},ol=/HTML$/i,al=/^(?:input|select|textarea|button)$/i,Pa=/^h\d$/i,Oi=/^[^{]+\{\s*\[native \w/,sl=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Bs=/[+~]/,Xi=new RegExp("\\\\[\\da-fA-F]{1,6}"+vr+"?|\\\\([^\\r\\n\\f])","g"),xi=function(ne,_e){var Fe="0x"+ne.slice(1)-65536;return _e||(Fe<0?String.fromCharCode(Fe+65536):String.fromCharCode(Fe>>10|55296,Fe&1023|56320))},Do=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,cs=function(ne,_e){return _e?ne==="\0"?"\uFFFD":ne.slice(0,-1)+"\\"+ne.charCodeAt(ne.length-1).toString(16)+" ":"\\"+ne},tc=function(){Ke()},Vc=Gt(function(ne){return ne.disabled===!0&&ne.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{ga.apply(ri=va.call(pn.childNodes),pn.childNodes),ri[pn.childNodes.length].nodeType}catch{ga={apply:ri.length?function(_e,Fe){Ui.apply(_e,va.call(Fe))}:function(_e,Fe){for(var ht=_e.length,Ye=0;_e[ht++]=Fe[Ye++];);_e.length=ht-1}}}function Ir(ne,_e,Fe,ht){var Ye,_t,ut,zt,Wt,mn,gn,En=_e&&_e.ownerDocument,Hn=_e?_e.nodeType:9;if(Fe=Fe||[],typeof ne!="string"||!ne||Hn!==1&&Hn!==9&&Hn!==11)return Fe;if(!ht&&(Ke(_e),_e=_e||dt,Rn)){if(Hn!==11&&(Wt=sl.exec(ne)))if(Ye=Wt[1]){if(Hn===9)if(ut=_e.getElementById(Ye)){if(ut.id===Ye)return Fe.push(ut),Fe}else return Fe;else if(En&&(ut=En.getElementById(Ye))&&_i(_e,ut)&&ut.id===Ye)return Fe.push(ut),Fe}else{if(Wt[2])return ga.apply(Fe,_e.getElementsByTagName(ne)),Fe;if((Ye=Wt[3])&&M.getElementsByClassName&&_e.getElementsByClassName)return ga.apply(Fe,_e.getElementsByClassName(Ye)),Fe}if(M.qsa&&!Di[ne+" "]&&(!sn||!sn.test(ne))&&(Hn!==1||_e.nodeName.toLowerCase()!=="object")){if(gn=ne,En=_e,Hn===1&&(ki.test(ne)||io.test(ne))){for(En=Bs.test(ne)&&We(_e.parentNode)||_e,(En!==_e||!M.scope)&&((zt=_e.getAttribute("id"))?zt=zt.replace(Do,cs):_e.setAttribute("id",zt=hn)),mn=K(ne),_t=mn.length;_t--;)mn[_t]=(zt?"#"+zt:":scope")+" "+ot(mn[_t]);gn=mn.join(",")}try{return ga.apply(Fe,En.querySelectorAll(gn)),Fe}catch{Di(ne,!0)}finally{zt===hn&&_e.removeAttribute("id")}}}return Se(ne.replace(Gr,"$1"),_e,Fe,ht)}function ya(){var ne=[];function _e(Fe,ht){return ne.push(Fe+" ")>k.cacheLength&&delete _e[ne.shift()],_e[Fe+" "]=ht}return _e}function ii(ne){return ne[hn]=!0,ne}function oi(ne){var _e=dt.createElement("fieldset");try{return!!ne(_e)}catch{return!1}finally{_e.parentNode&&_e.parentNode.removeChild(_e),_e=null}}function La(ne,_e){for(var Fe=ne.split("|"),ht=Fe.length;ht--;)k.attrHandle[Fe[ht]]=_e}function Fl(ne,_e){var Fe=_e&&ne,ht=Fe&&ne.nodeType===1&&_e.nodeType===1&&ne.sourceIndex-_e.sourceIndex;if(ht)return ht;if(Fe){for(;Fe=Fe.nextSibling;)if(Fe===_e)return-1}return ne?1:-1}function ll(ne){return function(_e){var Fe=_e.nodeName.toLowerCase();return Fe==="input"&&_e.type===ne}}function gi(ne){return function(_e){var Fe=_e.nodeName.toLowerCase();return(Fe==="input"||Fe==="button")&&_e.type===ne}}function mu(ne){return function(_e){return"form"in _e?_e.parentNode&&_e.disabled===!1?"label"in _e?"label"in _e.parentNode?_e.parentNode.disabled===ne:_e.disabled===ne:_e.isDisabled===ne||_e.isDisabled!==!ne&&Vc(_e)===ne:_e.disabled===ne:"label"in _e?_e.disabled===ne:!1}}function di(ne){return ii(function(_e){return _e=+_e,ii(function(Fe,ht){for(var Ye,_t=ne([],Fe.length,_e),ut=_t.length;ut--;)Fe[Ye=_t[ut]]&&(Fe[Ye]=!(ht[Ye]=Fe[Ye]))})})}function We(ne){return ne&&typeof ne.getElementsByTagName<"u"&&ne}M=Ir.support={},z=Ir.isXML=function(ne){var _e=ne&&ne.namespaceURI,Fe=ne&&(ne.ownerDocument||ne).documentElement;return!ol.test(_e||Fe&&Fe.nodeName||"HTML")},Ke=Ir.setDocument=function(ne){var _e,Fe,ht=ne?ne.ownerDocument||ne:pn;return ht==dt||ht.nodeType!==9||!ht.documentElement||(dt=ht,Jt=dt.documentElement,Rn=!z(dt),pn!=dt&&(Fe=dt.defaultView)&&Fe.top!==Fe&&(Fe.addEventListener?Fe.addEventListener("unload",tc,!1):Fe.attachEvent&&Fe.attachEvent("onunload",tc)),M.scope=oi(function(Ye){return Jt.appendChild(Ye).appendChild(dt.createElement("div")),typeof Ye.querySelectorAll<"u"&&!Ye.querySelectorAll(":scope fieldset div").length}),M.attributes=oi(function(Ye){return Ye.className="i",!Ye.getAttribute("className")}),M.getElementsByTagName=oi(function(Ye){return Ye.appendChild(dt.createComment("")),!Ye.getElementsByTagName("*").length}),M.getElementsByClassName=Oi.test(dt.getElementsByClassName),M.getById=oi(function(Ye){return Jt.appendChild(Ye).id=hn,!dt.getElementsByName||!dt.getElementsByName(hn).length}),M.getById?(k.filter.ID=function(Ye){var _t=Ye.replace(Xi,xi);return function(ut){return ut.getAttribute("id")===_t}},k.find.ID=function(Ye,_t){if(typeof _t.getElementById<"u"&&Rn){var ut=_t.getElementById(Ye);return ut?[ut]:[]}}):(k.filter.ID=function(Ye){var _t=Ye.replace(Xi,xi);return function(ut){var zt=typeof ut.getAttributeNode<"u"&&ut.getAttributeNode("id");return zt&&zt.value===_t}},k.find.ID=function(Ye,_t){if(typeof _t.getElementById<"u"&&Rn){var ut,zt,Wt,mn=_t.getElementById(Ye);if(mn){if(ut=mn.getAttributeNode("id"),ut&&ut.value===Ye)return[mn];for(Wt=_t.getElementsByName(Ye),zt=0;mn=Wt[zt++];)if(ut=mn.getAttributeNode("id"),ut&&ut.value===Ye)return[mn]}return[]}}),k.find.TAG=M.getElementsByTagName?function(Ye,_t){if(typeof _t.getElementsByTagName<"u")return _t.getElementsByTagName(Ye);if(M.qsa)return _t.querySelectorAll(Ye)}:function(Ye,_t){var ut,zt=[],Wt=0,mn=_t.getElementsByTagName(Ye);if(Ye==="*"){for(;ut=mn[Wt++];)ut.nodeType===1&&zt.push(ut);return zt}return mn},k.find.CLASS=M.getElementsByClassName&&function(Ye,_t){if(typeof _t.getElementsByClassName<"u"&&Rn)return _t.getElementsByClassName(Ye)},_r=[],sn=[],(M.qsa=Oi.test(dt.querySelectorAll))&&(oi(function(Ye){var _t;Jt.appendChild(Ye).innerHTML="<a id='"+hn+"'></a><select id='"+hn+"-\r\\' msallowcapture=''><option selected=''></option></select>",Ye.querySelectorAll("[msallowcapture^='']").length&&sn.push("[*^$]="+vr+`*(?:''|"")`),Ye.querySelectorAll("[selected]").length||sn.push("\\["+vr+"*(?:value|"+Pl+")"),Ye.querySelectorAll("[id~="+hn+"-]").length||sn.push("~="),_t=dt.createElement("input"),_t.setAttribute("name",""),Ye.appendChild(_t),Ye.querySelectorAll("[name='']").length||sn.push("\\["+vr+"*name"+vr+"*="+vr+`*(?:''|"")`),Ye.querySelectorAll(":checked").length||sn.push(":checked"),Ye.querySelectorAll("a#"+hn+"+*").length||sn.push(".#.+[+~]"),Ye.querySelectorAll("\\\f"),sn.push("[\\r\\n\\f]")}),oi(function(Ye){Ye.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var _t=dt.createElement("input");_t.setAttribute("type","hidden"),Ye.appendChild(_t).setAttribute("name","D"),Ye.querySelectorAll("[name=d]").length&&sn.push("name"+vr+"*[*^$|!~]?="),Ye.querySelectorAll(":enabled").length!==2&&sn.push(":enabled",":disabled"),Jt.appendChild(Ye).disabled=!0,Ye.querySelectorAll(":disabled").length!==2&&sn.push(":enabled",":disabled"),Ye.querySelectorAll("*,:x"),sn.push(",.*:")})),(M.matchesSelector=Oi.test($r=Jt.matches||Jt.webkitMatchesSelector||Jt.mozMatchesSelector||Jt.oMatchesSelector||Jt.msMatchesSelector))&&oi(function(Ye){M.disconnectedMatch=$r.call(Ye,"*"),$r.call(Ye,"[s!='']:x"),_r.push("!=",Rl)}),sn=sn.length&&new RegExp(sn.join("|")),_r=_r.length&&new RegExp(_r.join("|")),_e=Oi.test(Jt.compareDocumentPosition),_i=_e||Oi.test(Jt.contains)?function(Ye,_t){var ut=Ye.nodeType===9?Ye.documentElement:Ye,zt=_t&&_t.parentNode;return Ye===zt||!!(zt&&zt.nodeType===1&&(ut.contains?ut.contains(zt):Ye.compareDocumentPosition&&Ye.compareDocumentPosition(zt)&16))}:function(Ye,_t){if(_t){for(;_t=_t.parentNode;)if(_t===Ye)return!0}return!1},ma=_e?function(Ye,_t){if(Ye===_t)return Et=!0,0;var ut=!Ye.compareDocumentPosition-!_t.compareDocumentPosition;return ut||(ut=(Ye.ownerDocument||Ye)==(_t.ownerDocument||_t)?Ye.compareDocumentPosition(_t):1,ut&1||!M.sortDetached&&_t.compareDocumentPosition(Ye)===ut?Ye==dt||Ye.ownerDocument==pn&&_i(pn,Ye)?-1:_t==dt||_t.ownerDocument==pn&&_i(pn,_t)?1:at?Ro(at,Ye)-Ro(at,_t):0:ut&4?-1:1)}:function(Ye,_t){if(Ye===_t)return Et=!0,0;var ut,zt=0,Wt=Ye.parentNode,mn=_t.parentNode,gn=[Ye],En=[_t];if(!Wt||!mn)return Ye==dt?-1:_t==dt?1:Wt?-1:mn?1:at?Ro(at,Ye)-Ro(at,_t):0;if(Wt===mn)return Fl(Ye,_t);for(ut=Ye;ut=ut.parentNode;)gn.unshift(ut);for(ut=_t;ut=ut.parentNode;)En.unshift(ut);for(;gn[zt]===En[zt];)zt++;return zt?Fl(gn[zt],En[zt]):gn[zt]==pn?-1:En[zt]==pn?1:0}),dt},Ir.matches=function(ne,_e){return Ir(ne,null,null,_e)},Ir.matchesSelector=function(ne,_e){if(Ke(ne),M.matchesSelector&&Rn&&!Di[_e+" "]&&(!_r||!_r.test(_e))&&(!sn||!sn.test(_e)))try{var Fe=$r.call(ne,_e);if(Fe||M.disconnectedMatch||ne.document&&ne.document.nodeType!==11)return Fe}catch{Di(_e,!0)}return Ir(_e,dt,null,[ne]).length>0},Ir.contains=function(ne,_e){return(ne.ownerDocument||ne)!=dt&&Ke(ne),_i(ne,_e)},Ir.attr=function(ne,_e){(ne.ownerDocument||ne)!=dt&&Ke(ne);var Fe=k.attrHandle[_e.toLowerCase()],ht=Fe&&$o.call(k.attrHandle,_e.toLowerCase())?Fe(ne,_e,!Rn):void 0;return ht!==void 0?ht:M.attributes||!Rn?ne.getAttribute(_e):(ht=ne.getAttributeNode(_e))&&ht.specified?ht.value:null},Ir.escape=function(ne){return(ne+"").replace(Do,cs)},Ir.error=function(ne){throw new Error("Syntax error, unrecognized expression: "+ne)},Ir.uniqueSort=function(ne){var _e,Fe=[],ht=0,Ye=0;if(Et=!M.detectDuplicates,at=!M.sortStable&&ne.slice(0),ne.sort(ma),Et){for(;_e=ne[Ye++];)_e===ne[Ye]&&(ht=Fe.push(Ye));for(;ht--;)ne.splice(Fe[ht],1)}return at=null,ne},B=Ir.getText=function(ne){var _e,Fe="",ht=0,Ye=ne.nodeType;if(Ye){if(Ye===1||Ye===9||Ye===11){if(typeof ne.textContent=="string")return ne.textContent;for(ne=ne.firstChild;ne;ne=ne.nextSibling)Fe+=B(ne)}else if(Ye===3||Ye===4)return ne.nodeValue}else for(;_e=ne[ht++];)Fe+=B(_e);return Fe},k=Ir.selectors={cacheLength:50,createPseudo:ii,match:il,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(ne){return ne[1]=ne[1].replace(Xi,xi),ne[3]=(ne[3]||ne[4]||ne[5]||"").replace(Xi,xi),ne[2]==="~="&&(ne[3]=" "+ne[3]+" "),ne.slice(0,4)},CHILD:function(ne){return ne[1]=ne[1].toLowerCase(),ne[1].slice(0,3)==="nth"?(ne[3]||Ir.error(ne[0]),ne[4]=+(ne[4]?ne[5]+(ne[6]||1):2*(ne[3]==="even"||ne[3]==="odd")),ne[5]=+(ne[7]+ne[8]||ne[3]==="odd")):ne[3]&&Ir.error(ne[0]),ne},PSEUDO:function(ne){var _e,Fe=!ne[6]&&ne[2];return il.CHILD.test(ne[0])?null:(ne[3]?ne[2]=ne[4]||ne[5]||"":Fe&&Zu.test(Fe)&&(_e=K(Fe,!0))&&(_e=Fe.indexOf(")",Fe.length-_e)-Fe.length)&&(ne[0]=ne[0].slice(0,_e),ne[2]=Fe.slice(0,_e)),ne.slice(0,3))}},filter:{TAG:function(ne){var _e=ne.replace(Xi,xi).toLowerCase();return ne==="*"?function(){return!0}:function(Fe){return Fe.nodeName&&Fe.nodeName.toLowerCase()===_e}},CLASS:function(ne){var _e=Or[ne+" "];return _e||(_e=new RegExp("(^|"+vr+")"+ne+"("+vr+"|$)"))&&Or(ne,function(Fe){return _e.test(typeof Fe.className=="string"&&Fe.className||typeof Fe.getAttribute<"u"&&Fe.getAttribute("class")||"")})},ATTR:function(ne,_e,Fe){return function(ht){var Ye=Ir.attr(ht,ne);return Ye==null?_e==="!=":_e?(Ye+="",_e==="="?Ye===Fe:_e==="!="?Ye!==Fe:_e==="^="?Fe&&Ye.indexOf(Fe)===0:_e==="*="?Fe&&Ye.indexOf(Fe)>-1:_e==="$="?Fe&&Ye.slice(-Fe.length)===Fe:_e==="~="?(" "+Ye.replace(hu," ")+" ").indexOf(Fe)>-1:_e==="|="?Ye===Fe||Ye.slice(0,Fe.length+1)===Fe+"-":!1):!0}},CHILD:function(ne,_e,Fe,ht,Ye){var _t=ne.slice(0,3)!=="nth",ut=ne.slice(-4)!=="last",zt=_e==="of-type";return ht===1&&Ye===0?function(Wt){return!!Wt.parentNode}:function(Wt,mn,gn){var En,Hn,dr,ln,si,Ei,Ii=_t!==ut?"nextSibling":"previousSibling",Hr=Wt.parentNode,Hs=zt&&Wt.nodeName.toLowerCase(),ba=!gn&&!zt,Qi=!1;if(Hr){if(_t){for(;Ii;){for(ln=Wt;ln=ln[Ii];)if(zt?ln.nodeName.toLowerCase()===Hs:ln.nodeType===1)return!1;Ei=Ii=ne==="only"&&!Ei&&"nextSibling"}return!0}if(Ei=[ut?Hr.firstChild:Hr.lastChild],ut&&ba){for(ln=Hr,dr=ln[hn]||(ln[hn]={}),Hn=dr[ln.uniqueID]||(dr[ln.uniqueID]={}),En=Hn[ne]||[],si=En[0]===wi&&En[1],Qi=si&&En[2],ln=si&&Hr.childNodes[si];ln=++si&&ln&&ln[Ii]||(Qi=si=0)||Ei.pop();)if(ln.nodeType===1&&++Qi&&ln===Wt){Hn[ne]=[wi,si,Qi];break}}else if(ba&&(ln=Wt,dr=ln[hn]||(ln[hn]={}),Hn=dr[ln.uniqueID]||(dr[ln.uniqueID]={}),En=Hn[ne]||[],si=En[0]===wi&&En[1],Qi=si),Qi===!1)for(;(ln=++si&&ln&&ln[Ii]||(Qi=si=0)||Ei.pop())&&!((zt?ln.nodeName.toLowerCase()===Hs:ln.nodeType===1)&&++Qi&&(ba&&(dr=ln[hn]||(ln[hn]={}),Hn=dr[ln.uniqueID]||(dr[ln.uniqueID]={}),Hn[ne]=[wi,Qi]),ln===Wt)););return Qi-=Ye,Qi===ht||Qi%ht===0&&Qi/ht>=0}}},PSEUDO:function(ne,_e){var Fe,ht=k.pseudos[ne]||k.setFilters[ne.toLowerCase()]||Ir.error("unsupported pseudo: "+ne);return ht[hn]?ht(_e):ht.length>1?(Fe=[ne,ne,"",_e],k.setFilters.hasOwnProperty(ne.toLowerCase())?ii(function(Ye,_t){for(var ut,zt=ht(Ye,_e),Wt=zt.length;Wt--;)ut=Ro(Ye,zt[Wt]),Ye[ut]=!(_t[ut]=zt[Wt])}):function(Ye){return ht(Ye,0,Fe)}):ht}},pseudos:{not:ii(function(ne){var _e=[],Fe=[],ht=Ee(ne.replace(Gr,"$1"));return ht[hn]?ii(function(Ye,_t,ut,zt){for(var Wt,mn=ht(Ye,null,zt,[]),gn=Ye.length;gn--;)(Wt=mn[gn])&&(Ye[gn]=!(_t[gn]=Wt))}):function(Ye,_t,ut){return _e[0]=Ye,ht(_e,null,ut,Fe),_e[0]=null,!Fe.pop()}}),has:ii(function(ne){return function(_e){return Ir(ne,_e).length>0}}),contains:ii(function(ne){return ne=ne.replace(Xi,xi),function(_e){return(_e.textContent||B(_e)).indexOf(ne)>-1}}),lang:ii(function(ne){return ec.test(ne||"")||Ir.error("unsupported lang: "+ne),ne=ne.replace(Xi,xi).toLowerCase(),function(_e){var Fe;do if(Fe=Rn?_e.lang:_e.getAttribute("xml:lang")||_e.getAttribute("lang"))return Fe=Fe.toLowerCase(),Fe===ne||Fe.indexOf(ne+"-")===0;while((_e=_e.parentNode)&&_e.nodeType===1);return!1}}),target:function(ne){var _e=p.location&&p.location.hash;return _e&&_e.slice(1)===ne.id},root:function(ne){return ne===Jt},focus:function(ne){return ne===dt.activeElement&&(!dt.hasFocus||dt.hasFocus())&&!!(ne.type||ne.href||~ne.tabIndex)},enabled:mu(!1),disabled:mu(!0),checked:function(ne){var _e=ne.nodeName.toLowerCase();return _e==="input"&&!!ne.checked||_e==="option"&&!!ne.selected},selected:function(ne){return ne.parentNode&&ne.parentNode.selectedIndex,ne.selected===!0},empty:function(ne){for(ne=ne.firstChild;ne;ne=ne.nextSibling)if(ne.nodeType<6)return!1;return!0},parent:function(ne){return!k.pseudos.empty(ne)},header:function(ne){return Pa.test(ne.nodeName)},input:function(ne){return al.test(ne.nodeName)},button:function(ne){var _e=ne.nodeName.toLowerCase();return _e==="input"&&ne.type==="button"||_e==="button"},text:function(ne){var _e;return ne.nodeName.toLowerCase()==="input"&&ne.type==="text"&&((_e=ne.getAttribute("type"))==null||_e.toLowerCase()==="text")},first:di(function(){return[0]}),last:di(function(ne,_e){return[_e-1]}),eq:di(function(ne,_e,Fe){return[Fe<0?Fe+_e:Fe]}),even:di(function(ne,_e){for(var Fe=0;Fe<_e;Fe+=2)ne.push(Fe);return ne}),odd:di(function(ne,_e){for(var Fe=1;Fe<_e;Fe+=2)ne.push(Fe);return ne}),lt:di(function(ne,_e,Fe){for(var ht=Fe<0?Fe+_e:Fe>_e?_e:Fe;--ht>=0;)ne.push(ht);return ne}),gt:di(function(ne,_e,Fe){for(var ht=Fe<0?Fe+_e:Fe;++ht<_e;)ne.push(ht);return ne})}},k.pseudos.nth=k.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[w]=ll(w);for(w in{submit:!0,reset:!0})k.pseudos[w]=gi(w);function gt(){}gt.prototype=k.filters=k.pseudos,k.setFilters=new gt,K=Ir.tokenize=function(ne,_e){var Fe,ht,Ye,_t,ut,zt,Wt,mn=us[ne+" "];if(mn)return _e?0:mn.slice(0);for(ut=ne,zt=[],Wt=k.preFilter;ut;){(!Fe||(ht=pu.exec(ut)))&&(ht&&(ut=ut.slice(ht[0].length)||ut),zt.push(Ye=[])),Fe=!1,(ht=io.exec(ut))&&(Fe=ht.shift(),Ye.push({value:Fe,type:ht[0].replace(Gr," ")}),ut=ut.slice(Fe.length));for(_t in k.filter)(ht=il[_t].exec(ut))&&(!Wt[_t]||(ht=Wt[_t](ht)))&&(Fe=ht.shift(),Ye.push({value:Fe,type:_t,matches:ht}),ut=ut.slice(Fe.length));if(!Fe)break}return _e?ut.length:ut?Ir.error(ne):us(ne,zt).slice(0)};function ot(ne){for(var _e=0,Fe=ne.length,ht="";_e<Fe;_e++)ht+=ne[_e].value;return ht}function Gt(ne,_e,Fe){var ht=_e.dir,Ye=_e.next,_t=Ye||ht,ut=Fe&&_t==="parentNode",zt=Zn++;return _e.first?function(Wt,mn,gn){for(;Wt=Wt[ht];)if(Wt.nodeType===1||ut)return ne(Wt,mn,gn);return!1}:function(Wt,mn,gn){var En,Hn,dr,ln=[wi,zt];if(gn){for(;Wt=Wt[ht];)if((Wt.nodeType===1||ut)&&ne(Wt,mn,gn))return!0}else for(;Wt=Wt[ht];)if(Wt.nodeType===1||ut)if(dr=Wt[hn]||(Wt[hn]={}),Hn=dr[Wt.uniqueID]||(dr[Wt.uniqueID]={}),Ye&&Ye===Wt.nodeName.toLowerCase())Wt=Wt[ht]||Wt;else{if((En=Hn[_t])&&En[0]===wi&&En[1]===zt)return ln[2]=En[2];if(Hn[_t]=ln,ln[2]=ne(Wt,mn,gn))return!0}return!1}}function Pn(ne){return ne.length>1?function(_e,Fe,ht){for(var Ye=ne.length;Ye--;)if(!ne[Ye](_e,Fe,ht))return!1;return!0}:ne[0]}function fr(ne,_e,Fe){for(var ht=0,Ye=_e.length;ht<Ye;ht++)Ir(ne,_e[ht],Fe);return Fe}function ai(ne,_e,Fe,ht,Ye){for(var _t,ut=[],zt=0,Wt=ne.length,mn=_e!=null;zt<Wt;zt++)(_t=ne[zt])&&(!Fe||Fe(_t,ht,Ye))&&(ut.push(_t),mn&&_e.push(zt));return ut}function wr(ne,_e,Fe,ht,Ye,_t){return ht&&!ht[hn]&&(ht=wr(ht)),Ye&&!Ye[hn]&&(Ye=wr(Ye,_t)),ii(function(ut,zt,Wt,mn){var gn,En,Hn,dr=[],ln=[],si=zt.length,Ei=ut||fr(_e||"*",Wt.nodeType?[Wt]:Wt,[]),Ii=ne&&(ut||!_e)?ai(Ei,dr,ne,Wt,mn):Ei,Hr=Fe?Ye||(ut?ne:si||ht)?[]:zt:Ii;if(Fe&&Fe(Ii,Hr,Wt,mn),ht)for(gn=ai(Hr,ln),ht(gn,[],Wt,mn),En=gn.length;En--;)(Hn=gn[En])&&(Hr[ln[En]]=!(Ii[ln[En]]=Hn));if(ut){if(Ye||ne){if(Ye){for(gn=[],En=Hr.length;En--;)(Hn=Hr[En])&&gn.push(Ii[En]=Hn);Ye(null,Hr=[],gn,mn)}for(En=Hr.length;En--;)(Hn=Hr[En])&&(gn=Ye?Ro(ut,Hn):dr[En])>-1&&(ut[gn]=!(zt[gn]=Hn))}}else Hr=ai(Hr===zt?Hr.splice(si,Hr.length):Hr),Ye?Ye(null,zt,Hr,mn):ga.apply(zt,Hr)})}function Ra(ne){for(var _e,Fe,ht,Ye=ne.length,_t=k.relative[ne[0].type],ut=_t||k.relative[" "],zt=_t?1:0,Wt=Gt(function(En){return En===_e},ut,!0),mn=Gt(function(En){return Ro(_e,En)>-1},ut,!0),gn=[function(En,Hn,dr){var ln=!_t&&(dr||Hn!==Ve)||((_e=Hn).nodeType?Wt(En,Hn,dr):mn(En,Hn,dr));return _e=null,ln}];zt<Ye;zt++)if(Fe=k.relative[ne[zt].type])gn=[Gt(Pn(gn),Fe)];else{if(Fe=k.filter[ne[zt].type].apply(null,ne[zt].matches),Fe[hn]){for(ht=++zt;ht<Ye&&!k.relative[ne[ht].type];ht++);return wr(zt>1&&Pn(gn),zt>1&&ot(ne.slice(0,zt-1).concat({value:ne[zt-2].type===" "?"*":""})).replace(Gr,"$1"),Fe,zt<ht&&Ra(ne.slice(zt,ht)),ht<Ye&&Ra(ne=ne.slice(ht)),ht<Ye&&ot(ne))}gn.push(Fe)}return Pn(gn)}function fs(ne,_e){var Fe=_e.length>0,ht=ne.length>0,Ye=function(_t,ut,zt,Wt,mn){var gn,En,Hn,dr=0,ln="0",si=_t&&[],Ei=[],Ii=Ve,Hr=_t||ht&&k.find.TAG("*",mn),Hs=wi+=Ii==null?1:Math.random()||.1,ba=Hr.length;for(mn&&(Ve=ut==dt||ut||mn);ln!==ba&&(gn=Hr[ln])!=null;ln++){if(ht&&gn){for(En=0,!ut&&gn.ownerDocument!=dt&&(Ke(gn),zt=!Rn);Hn=ne[En++];)if(Hn(gn,ut||dt,zt)){Wt.push(gn);break}mn&&(wi=Hs)}Fe&&((gn=!Hn&&gn)&&dr--,_t&&si.push(gn))}if(dr+=ln,Fe&&ln!==dr){for(En=0;Hn=_e[En++];)Hn(si,Ei,ut,zt);if(_t){if(dr>0)for(;ln--;)si[ln]||Ei[ln]||(Ei[ln]=Lo.call(Wt));Ei=ai(Ei)}ga.apply(Wt,Ei),mn&&!_t&&Ei.length>0&&dr+_e.length>1&&Ir.uniqueSort(Wt)}return mn&&(wi=Hs,Ve=Ii),si};return Fe?ii(Ye):Ye}return Ee=Ir.compile=function(ne,_e){var Fe,ht=[],Ye=[],_t=pa[ne+" "];if(!_t){for(_e||(_e=K(ne)),Fe=_e.length;Fe--;)_t=Ra(_e[Fe]),_t[hn]?ht.push(_t):Ye.push(_t);_t=pa(ne,fs(Ye,ht)),_t.selector=ne}return _t},Se=Ir.select=function(ne,_e,Fe,ht){var Ye,_t,ut,zt,Wt,mn=typeof ne=="function"&&ne,gn=!ht&&K(ne=mn.selector||ne);if(Fe=Fe||[],gn.length===1){if(_t=gn[0]=gn[0].slice(0),_t.length>2&&(ut=_t[0]).type==="ID"&&_e.nodeType===9&&Rn&&k.relative[_t[1].type]){if(_e=(k.find.ID(ut.matches[0].replace(Xi,xi),_e)||[])[0],_e)mn&&(_e=_e.parentNode);else return Fe;ne=ne.slice(_t.shift().value.length)}for(Ye=il.needsContext.test(ne)?0:_t.length;Ye--&&(ut=_t[Ye],!k.relative[zt=ut.type]);)if((Wt=k.find[zt])&&(ht=Wt(ut.matches[0].replace(Xi,xi),Bs.test(_t[0].type)&&We(_e.parentNode)||_e))){if(_t.splice(Ye,1),ne=ht.length&&ot(_t),!ne)return ga.apply(Fe,ht),Fe;break}}return(mn||Ee(ne,gn))(ht,_e,!Rn,Fe,!_e||Bs.test(ne)&&We(_e.parentNode)||_e),Fe},M.sortStable=hn.split("").sort(ma).join("")===hn,M.detectDuplicates=!!Et,Ke(),M.sortDetached=oi(function(ne){return ne.compareDocumentPosition(dt.createElement("fieldset"))&1}),oi(function(ne){return ne.innerHTML="<a href='#'></a>",ne.firstChild.getAttribute("href")==="#"})||La("type|href|height|width",function(ne,_e,Fe){if(!Fe)return ne.getAttribute(_e,_e.toLowerCase()==="type"?1:2)}),(!M.attributes||!oi(function(ne){return ne.innerHTML="<input/>",ne.firstChild.setAttribute("value",""),ne.firstChild.getAttribute("value")===""}))&&La("value",function(ne,_e,Fe){if(!Fe&&ne.nodeName.toLowerCase()==="input")return ne.defaultValue}),oi(function(ne){return ne.getAttribute("disabled")==null})||La(Pl,function(ne,_e,Fe){var ht;if(!Fe)return ne[_e]===!0?_e.toLowerCase():(ht=ne.getAttributeNode(_e))&&ht.specified?ht.value:null}),Ir}(n);b.find=ye,b.expr=ye.selectors,b.expr[":"]=b.expr.pseudos,b.uniqueSort=b.unique=ye.uniqueSort,b.text=ye.getText,b.isXMLDoc=ye.isXML,b.contains=ye.contains,b.escapeSelector=ye.escape;var Oe=function(p,w,M){for(var k=[],B=M!==void 0;(p=p[w])&&p.nodeType!==9;)if(p.nodeType===1){if(B&&b(p).is(M))break;k.push(p)}return k},De=function(p,w){for(var M=[];p;p=p.nextSibling)p.nodeType===1&&p!==w&&M.push(p);return M},lt=b.expr.match.needsContext;function ct(p,w){return p.nodeName&&p.nodeName.toLowerCase()===w.toLowerCase()}var Dt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Mt(p,w,M){return V(w)?b.grep(p,function(k,B){return!!w.call(k,B,k)!==M}):w.nodeType?b.grep(p,function(k){return k===w!==M}):typeof w!="string"?b.grep(p,function(k){return d.call(w,k)>-1!==M}):b.filter(w,p,M)}b.filter=function(p,w,M){var k=w[0];return M&&(p=":not("+p+")"),w.length===1&&k.nodeType===1?b.find.matchesSelector(k,p)?[k]:[]:b.find.matches(p,b.grep(w,function(B){return B.nodeType===1}))},b.fn.extend({find:function(p){var w,M,k=this.length,B=this;if(typeof p!="string")return this.pushStack(b(p).filter(function(){for(w=0;w<k;w++)if(b.contains(B[w],this))return!0}));for(M=this.pushStack([]),w=0;w<k;w++)b.find(p,B[w],M);return k>1?b.uniqueSort(M):M},filter:function(p){return this.pushStack(Mt(this,p||[],!1))},not:function(p){return this.pushStack(Mt(this,p||[],!0))},is:function(p){return!!Mt(this,typeof p=="string"&&lt.test(p)?b(p):p||[],!1).length}});var en,Yt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,At=b.fn.init=function(p,w,M){var k,B;if(!p)return this;if(M=M||en,typeof p=="string")if(p[0]==="<"&&p[p.length-1]===">"&&p.length>=3?k=[null,p,null]:k=Yt.exec(p),k&&(k[1]||!w))if(k[1]){if(w=w instanceof b?w[0]:w,b.merge(this,b.parseHTML(k[1],w&&w.nodeType?w.ownerDocument||w:Z,!0)),Dt.test(k[1])&&b.isPlainObject(w))for(k in w)V(this[k])?this[k](w[k]):this.attr(k,w[k]);return this}else return B=Z.getElementById(k[2]),B&&(this[0]=B,this.length=1),this;else return!w||w.jquery?(w||M).find(p):this.constructor(w).find(p);else{if(p.nodeType)return this[0]=p,this.length=1,this;if(V(p))return M.ready!==void 0?M.ready(p):p(b)}return b.makeArray(p,this)};At.prototype=b.fn,en=b(Z);var tn=/^(?:parents|prev(?:Until|All))/,In={children:!0,contents:!0,next:!0,prev:!0};b.fn.extend({has:function(p){var w=b(p,this),M=w.length;return this.filter(function(){for(var k=0;k<M;k++)if(b.contains(this,w[k]))return!0})},closest:function(p,w){var M,k=0,B=this.length,z=[],K=typeof p!="string"&&b(p);if(!lt.test(p)){for(;k<B;k++)for(M=this[k];M&&M!==w;M=M.parentNode)if(M.nodeType<11&&(K?K.index(M)>-1:M.nodeType===1&&b.find.matchesSelector(M,p))){z.push(M);break}}return this.pushStack(z.length>1?b.uniqueSort(z):z)},index:function(p){return p?typeof p=="string"?d.call(b(p),this[0]):d.call(this,p.jquery?p[0]:p):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(p,w){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(p,w))))},addBack:function(p){return this.add(p==null?this.prevObject:this.prevObject.filter(p))}});function Cn(p,w){for(;(p=p[w])&&p.nodeType!==1;);return p}b.each({parent:function(p){var w=p.parentNode;return w&&w.nodeType!==11?w:null},parents:function(p){return Oe(p,"parentNode")},parentsUntil:function(p,w,M){return Oe(p,"parentNode",M)},next:function(p){return Cn(p,"nextSibling")},prev:function(p){return Cn(p,"previousSibling")},nextAll:function(p){return Oe(p,"nextSibling")},prevAll:function(p){return Oe(p,"previousSibling")},nextUntil:function(p,w,M){return Oe(p,"nextSibling",M)},prevUntil:function(p,w,M){return Oe(p,"previousSibling",M)},siblings:function(p){return De((p.parentNode||{}).firstChild,p)},children:function(p){return De(p.firstChild)},contents:function(p){return p.contentDocument!=null&&r(p.contentDocument)?p.contentDocument:(ct(p,"template")&&(p=p.content||p),b.merge([],p.childNodes))}},function(p,w){b.fn[p]=function(M,k){var B=b.map(this,w,M);return p.slice(-5)!=="Until"&&(k=M),k&&typeof k=="string"&&(B=b.filter(k,B)),this.length>1&&(In[p]||b.uniqueSort(B),tn.test(p)&&B.reverse()),this.pushStack(B)}});var Vn=/[^\x20\t\r\n\f]+/g;function rr(p){var w={};return b.each(p.match(Vn)||[],function(M,k){w[k]=!0}),w}b.Callbacks=function(p){p=typeof p=="string"?rr(p):b.extend({},p);var w,M,k,B,z=[],K=[],Ee=-1,Se=function(){for(B=B||p.once,k=w=!0;K.length;Ee=-1)for(M=K.shift();++Ee<z.length;)z[Ee].apply(M[0],M[1])===!1&&p.stopOnFalse&&(Ee=z.length,M=!1);p.memory||(M=!1),w=!1,B&&(M?z=[]:z="")},Ve={add:function(){return z&&(M&&!w&&(Ee=z.length-1,K.push(M)),function at(Et){b.each(Et,function(Ke,dt){V(dt)?(!p.unique||!Ve.has(dt))&&z.push(dt):dt&&dt.length&&Ae(dt)!=="string"&&at(dt)})}(arguments),M&&!w&&Se()),this},remove:function(){return b.each(arguments,function(at,Et){for(var Ke;(Ke=b.inArray(Et,z,Ke))>-1;)z.splice(Ke,1),Ke<=Ee&&Ee--}),this},has:function(at){return at?b.inArray(at,z)>-1:z.length>0},empty:function(){return z&&(z=[]),this},disable:function(){return B=K=[],z=M="",this},disabled:function(){return!z},lock:function(){return B=K=[],!M&&!w&&(z=M=""),this},locked:function(){return!!B},fireWith:function(at,Et){return B||(Et=Et||[],Et=[at,Et.slice?Et.slice():Et],K.push(Et),w||Se()),this},fire:function(){return Ve.fireWith(this,arguments),this},fired:function(){return!!k}};return Ve};function ur(p){return p}function yt(p){throw p}function Yn(p,w,M,k){var B;try{p&&V(B=p.promise)?B.call(p).done(w).fail(M):p&&V(B=p.then)?B.call(p,w,M):w.apply(void 0,[p].slice(k))}catch(z){M.apply(void 0,[z])}}b.extend({Deferred:function(p){var w=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],M="pending",k={state:function(){return M},always:function(){return B.done(arguments).fail(arguments),this},catch:function(z){return k.then(null,z)},pipe:function(){var z=arguments;return b.Deferred(function(K){b.each(w,function(Ee,Se){var Ve=V(z[Se[4]])&&z[Se[4]];B[Se[1]](function(){var at=Ve&&Ve.apply(this,arguments);at&&V(at.promise)?at.promise().progress(K.notify).done(K.resolve).fail(K.reject):K[Se[0]+"With"](this,Ve?[at]:arguments)})}),z=null}).promise()},then:function(z,K,Ee){var Se=0;function Ve(at,Et,Ke,dt){return function(){var Jt=this,Rn=arguments,sn=function(){var $r,_i;if(!(at<Se)){if($r=Ke.apply(Jt,Rn),$r===Et.promise())throw new TypeError("Thenable self-resolution");_i=$r&&(typeof $r=="object"||typeof $r=="function")&&$r.then,V(_i)?dt?_i.call($r,Ve(Se,Et,ur,dt),Ve(Se,Et,yt,dt)):(Se++,_i.call($r,Ve(Se,Et,ur,dt),Ve(Se,Et,yt,dt),Ve(Se,Et,ur,Et.notifyWith))):(Ke!==ur&&(Jt=void 0,Rn=[$r]),(dt||Et.resolveWith)(Jt,Rn))}},_r=dt?sn:function(){try{sn()}catch($r){b.Deferred.exceptionHook&&b.Deferred.exceptionHook($r,_r.stackTrace),at+1>=Se&&(Ke!==yt&&(Jt=void 0,Rn=[$r]),Et.rejectWith(Jt,Rn))}};at?_r():(b.Deferred.getStackHook&&(_r.stackTrace=b.Deferred.getStackHook()),n.setTimeout(_r))}}return b.Deferred(function(at){w[0][3].add(Ve(0,at,V(Ee)?Ee:ur,at.notifyWith)),w[1][3].add(Ve(0,at,V(z)?z:ur)),w[2][3].add(Ve(0,at,V(K)?K:yt))}).promise()},promise:function(z){return z!=null?b.extend(z,k):k}},B={};return b.each(w,function(z,K){var Ee=K[2],Se=K[5];k[K[1]]=Ee.add,Se&&Ee.add(function(){M=Se},w[3-z][2].disable,w[3-z][3].disable,w[0][2].lock,w[0][3].lock),Ee.add(K[3].fire),B[K[0]]=function(){return B[K[0]+"With"](this===B?void 0:this,arguments),this},B[K[0]+"With"]=Ee.fireWith}),k.promise(B),p&&p.call(B,B),B},when:function(p){var w=arguments.length,M=w,k=Array(M),B=i.call(arguments),z=b.Deferred(),K=function(Ee){return function(Se){k[Ee]=this,B[Ee]=arguments.length>1?i.call(arguments):Se,--w||z.resolveWith(k,B)}};if(w<=1&&(Yn(p,z.done(K(M)).resolve,z.reject,!w),z.state()==="pending"||V(B[M]&&B[M].then)))return z.then();for(;M--;)Yn(B[M],K(M),z.reject);return z.promise()}});var Vr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(p,w){n.console&&n.console.warn&&p&&Vr.test(p.name)&&n.console.warn("jQuery.Deferred exception: "+p.message,p.stack,w)},b.readyException=function(p){n.setTimeout(function(){throw p})};var yr=b.Deferred();b.fn.ready=function(p){return yr.then(p).catch(function(w){b.readyException(w)}),this},b.extend({isReady:!1,readyWait:1,ready:function(p){(p===!0?--b.readyWait:b.isReady)||(b.isReady=!0,!(p!==!0&&--b.readyWait>0)&&yr.resolveWith(Z,[b]))}}),b.ready.then=yr.then;function fn(){Z.removeEventListener("DOMContentLoaded",fn),n.removeEventListener("load",fn),b.ready()}Z.readyState==="complete"||Z.readyState!=="loading"&&!Z.documentElement.doScroll?n.setTimeout(b.ready):(Z.addEventListener("DOMContentLoaded",fn),n.addEventListener("load",fn));var qn=function(p,w,M,k,B,z,K){var Ee=0,Se=p.length,Ve=M==null;if(Ae(M)==="object"){B=!0;for(Ee in M)qn(p,w,Ee,M[Ee],!0,z,K)}else if(k!==void 0&&(B=!0,V(k)||(K=!0),Ve&&(K?(w.call(p,k),w=null):(Ve=w,w=function(at,Et,Ke){return Ve.call(b(at),Ke)})),w))for(;Ee<Se;Ee++)w(p[Ee],M,K?k:k.call(p[Ee],Ee,w(p[Ee],M)));return B?p:Ve?w.call(p):Se?w(p[0],M):z},re=/^-ms-/,ge=/-([a-z])/g;function Te(p,w){return w.toUpperCase()}function Ue(p){return p.replace(re,"ms-").replace(ge,Te)}var Be=function(p){return p.nodeType===1||p.nodeType===9||!+p.nodeType};function $e(){this.expando=b.expando+$e.uid++}$e.uid=1,$e.prototype={cache:function(p){var w=p[this.expando];return w||(w={},Be(p)&&(p.nodeType?p[this.expando]=w:Object.defineProperty(p,this.expando,{value:w,configurable:!0}))),w},set:function(p,w,M){var k,B=this.cache(p);if(typeof w=="string")B[Ue(w)]=M;else for(k in w)B[Ue(k)]=w[k];return B},get:function(p,w){return w===void 0?this.cache(p):p[this.expando]&&p[this.expando][Ue(w)]},access:function(p,w,M){return w===void 0||w&&typeof w=="string"&&M===void 0?this.get(p,w):(this.set(p,w,M),M!==void 0?M:w)},remove:function(p,w){var M,k=p[this.expando];if(k!==void 0){if(w!==void 0)for(Array.isArray(w)?w=w.map(Ue):(w=Ue(w),w=w in k?[w]:w.match(Vn)||[]),M=w.length;M--;)delete k[w[M]];(w===void 0||b.isEmptyObject(k))&&(p.nodeType?p[this.expando]=void 0:delete p[this.expando])}},hasData:function(p){var w=p[this.expando];return w!==void 0&&!b.isEmptyObject(w)}};var Ne=new $e,Ie=new $e,je=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Xe=/[A-Z]/g;function He(p){return p==="true"?!0:p==="false"?!1:p==="null"?null:p===+p+""?+p:je.test(p)?JSON.parse(p):p}function st(p,w,M){var k;if(M===void 0&&p.nodeType===1)if(k="data-"+w.replace(Xe,"-$&").toLowerCase(),M=p.getAttribute(k),typeof M=="string"){try{M=He(M)}catch{}Ie.set(p,w,M)}else M=void 0;return M}b.extend({hasData:function(p){return Ie.hasData(p)||Ne.hasData(p)},data:function(p,w,M){return Ie.access(p,w,M)},removeData:function(p,w){Ie.remove(p,w)},_data:function(p,w,M){return Ne.access(p,w,M)},_removeData:function(p,w){Ne.remove(p,w)}}),b.fn.extend({data:function(p,w){var M,k,B,z=this[0],K=z&&z.attributes;if(p===void 0){if(this.length&&(B=Ie.get(z),z.nodeType===1&&!Ne.get(z,"hasDataAttrs"))){for(M=K.length;M--;)K[M]&&(k=K[M].name,k.indexOf("data-")===0&&(k=Ue(k.slice(5)),st(z,k,B[k])));Ne.set(z,"hasDataAttrs",!0)}return B}return typeof p=="object"?this.each(function(){Ie.set(this,p)}):qn(this,function(Ee){var Se;if(z&&Ee===void 0)return Se=Ie.get(z,p),Se!==void 0||(Se=st(z,p),Se!==void 0)?Se:void 0;this.each(function(){Ie.set(this,p,Ee)})},null,w,arguments.length>1,null,!0)},removeData:function(p){return this.each(function(){Ie.remove(this,p)})}}),b.extend({queue:function(p,w,M){var k;if(p)return w=(w||"fx")+"queue",k=Ne.get(p,w),M&&(!k||Array.isArray(M)?k=Ne.access(p,w,b.makeArray(M)):k.push(M)),k||[]},dequeue:function(p,w){w=w||"fx";var M=b.queue(p,w),k=M.length,B=M.shift(),z=b._queueHooks(p,w),K=function(){b.dequeue(p,w)};B==="inprogress"&&(B=M.shift(),k--),B&&(w==="fx"&&M.unshift("inprogress"),delete z.stop,B.call(p,K,z)),!k&&z&&z.empty.fire()},_queueHooks:function(p,w){var M=w+"queueHooks";return Ne.get(p,M)||Ne.access(p,M,{empty:b.Callbacks("once memory").add(function(){Ne.remove(p,[w+"queue",M])})})}}),b.fn.extend({queue:function(p,w){var M=2;return typeof p!="string"&&(w=p,p="fx",M--),arguments.length<M?b.queue(this[0],p):w===void 0?this:this.each(function(){var k=b.queue(this,p,w);b._queueHooks(this,p),p==="fx"&&k[0]!=="inprogress"&&b.dequeue(this,p)})},dequeue:function(p){return this.each(function(){b.dequeue(this,p)})},clearQueue:function(p){return this.queue(p||"fx",[])},promise:function(p,w){var M,k=1,B=b.Deferred(),z=this,K=this.length,Ee=function(){--k||B.resolveWith(z,[z])};for(typeof p!="string"&&(w=p,p=void 0),p=p||"fx";K--;)M=Ne.get(z[K],p+"queueHooks"),M&&M.empty&&(k++,M.empty.add(Ee));return Ee(),B.promise(w)}});var Xt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Qt=new RegExp("^(?:([+-])=|)("+Xt+")([a-z%]*)$","i"),un=["Top","Right","Bottom","Left"],Ln=Z.documentElement,xn=function(p){return b.contains(p.ownerDocument,p)},An={composed:!0};Ln.getRootNode&&(xn=function(p){return b.contains(p.ownerDocument,p)||p.getRootNode(An)===p.ownerDocument});var bn=function(p,w){return p=w||p,p.style.display==="none"||p.style.display===""&&xn(p)&&b.css(p,"display")==="none"};function Xn(p,w,M,k){var B,z,K=20,Ee=k?function(){return k.cur()}:function(){return b.css(p,w,"")},Se=Ee(),Ve=M&&M[3]||(b.cssNumber[w]?"":"px"),at=p.nodeType&&(b.cssNumber[w]||Ve!=="px"&&+Se)&&Qt.exec(b.css(p,w));if(at&&at[3]!==Ve){for(Se=Se/2,Ve=Ve||at[3],at=+Se||1;K--;)b.style(p,w,at+Ve),(1-z)*(1-(z=Ee()/Se||.5))<=0&&(K=0),at=at/z;at=at*2,b.style(p,w,at+Ve),M=M||[]}return M&&(at=+at||+Se||0,B=M[1]?at+(M[1]+1)*M[2]:+M[2],k&&(k.unit=Ve,k.start=at,k.end=B)),B}var Sr={};function ji(p){var w,M=p.ownerDocument,k=p.nodeName,B=Sr[k];return B||(w=M.body.appendChild(M.createElement(k)),B=b.css(w,"display"),w.parentNode.removeChild(w),B==="none"&&(B="block"),Sr[k]=B,B)}function Jr(p,w){for(var M,k,B=[],z=0,K=p.length;z<K;z++)k=p[z],k.style&&(M=k.style.display,w?(M==="none"&&(B[z]=Ne.get(k,"display")||null,B[z]||(k.style.display="")),k.style.display===""&&bn(k)&&(B[z]=ji(k))):M!=="none"&&(B[z]="none",Ne.set(k,"display",M)));for(z=0;z<K;z++)B[z]!=null&&(p[z].style.display=B[z]);return p}b.fn.extend({show:function(){return Jr(this,!0)},hide:function(){return Jr(this)},toggle:function(p){return typeof p=="boolean"?p?this.show():this.hide():this.each(function(){bn(this)?b(this).show():b(this).hide()})}});var Tr=/^(?:checkbox|radio)$/i,ci=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Br=/^$|^module$|\/(?:java|ecma)script/i;(function(){var p=Z.createDocumentFragment(),w=p.appendChild(Z.createElement("div")),M=Z.createElement("input");M.setAttribute("type","radio"),M.setAttribute("checked","checked"),M.setAttribute("name","t"),w.appendChild(M),H.checkClone=w.cloneNode(!0).cloneNode(!0).lastChild.checked,w.innerHTML="<textarea>x</textarea>",H.noCloneChecked=!!w.cloneNode(!0).lastChild.defaultValue,w.innerHTML="<option></option>",H.option=!!w.lastChild})();var Ht={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ht.tbody=Ht.tfoot=Ht.colgroup=Ht.caption=Ht.thead,Ht.th=Ht.td,H.option||(Ht.optgroup=Ht.option=[1,"<select multiple='multiple'>","</select>"]);function Tn(p,w){var M;return typeof p.getElementsByTagName<"u"?M=p.getElementsByTagName(w||"*"):typeof p.querySelectorAll<"u"?M=p.querySelectorAll(w||"*"):M=[],w===void 0||w&&ct(p,w)?b.merge([p],M):M}function to(p,w){for(var M=0,k=p.length;M<k;M++)Ne.set(p[M],"globalEval",!w||Ne.get(w[M],"globalEval"))}var po=/<|&#?\w+;/;function mo(p,w,M,k,B){for(var z,K,Ee,Se,Ve,at,Et=w.createDocumentFragment(),Ke=[],dt=0,Jt=p.length;dt<Jt;dt++)if(z=p[dt],z||z===0)if(Ae(z)==="object")b.merge(Ke,z.nodeType?[z]:z);else if(!po.test(z))Ke.push(w.createTextNode(z));else{for(K=K||Et.appendChild(w.createElement("div")),Ee=(ci.exec(z)||["",""])[1].toLowerCase(),Se=Ht[Ee]||Ht._default,K.innerHTML=Se[1]+b.htmlPrefilter(z)+Se[2],at=Se[0];at--;)K=K.lastChild;b.merge(Ke,K.childNodes),K=Et.firstChild,K.textContent=""}for(Et.textContent="",dt=0;z=Ke[dt++];){if(k&&b.inArray(z,k)>-1){B&&B.push(z);continue}if(Ve=xn(z),K=Tn(Et.appendChild(z),"script"),Ve&&to(K),M)for(at=0;z=K[at++];)Br.test(z.type||"")&&M.push(z)}return Et}var vi=/^([^.]*)(?:\.(.+)|)/;function Zr(){return!0}function Ki(){return!1}function xo(p,w){return p===A()==(w==="focus")}function A(){try{return Z.activeElement}catch{}}function R(p,w,M,k,B,z){var K,Ee;if(typeof w=="object"){typeof M!="string"&&(k=k||M,M=void 0);for(Ee in w)R(p,Ee,M,k,w[Ee],z);return p}if(k==null&&B==null?(B=M,k=M=void 0):B==null&&(typeof M=="string"?(B=k,k=void 0):(B=k,k=M,M=void 0)),B===!1)B=Ki;else if(!B)return p;return z===1&&(K=B,B=function(Se){return b().off(Se),K.apply(this,arguments)},B.guid=K.guid||(K.guid=b.guid++)),p.each(function(){b.event.add(this,w,B,k,M)})}b.event={global:{},add:function(p,w,M,k,B){var z,K,Ee,Se,Ve,at,Et,Ke,dt,Jt,Rn,sn=Ne.get(p);if(Be(p))for(M.handler&&(z=M,M=z.handler,B=z.selector),B&&b.find.matchesSelector(Ln,B),M.guid||(M.guid=b.guid++),(Se=sn.events)||(Se=sn.events=Object.create(null)),(K=sn.handle)||(K=sn.handle=function(_r){return typeof b<"u"&&b.event.triggered!==_r.type?b.event.dispatch.apply(p,arguments):void 0}),w=(w||"").match(Vn)||[""],Ve=w.length;Ve--;)Ee=vi.exec(w[Ve])||[],dt=Rn=Ee[1],Jt=(Ee[2]||"").split(".").sort(),dt&&(Et=b.event.special[dt]||{},dt=(B?Et.delegateType:Et.bindType)||dt,Et=b.event.special[dt]||{},at=b.extend({type:dt,origType:Rn,data:k,handler:M,guid:M.guid,selector:B,needsContext:B&&b.expr.match.needsContext.test(B),namespace:Jt.join(".")},z),(Ke=Se[dt])||(Ke=Se[dt]=[],Ke.delegateCount=0,(!Et.setup||Et.setup.call(p,k,Jt,K)===!1)&&p.addEventListener&&p.addEventListener(dt,K)),Et.add&&(Et.add.call(p,at),at.handler.guid||(at.handler.guid=M.guid)),B?Ke.splice(Ke.delegateCount++,0,at):Ke.push(at),b.event.global[dt]=!0)},remove:function(p,w,M,k,B){var z,K,Ee,Se,Ve,at,Et,Ke,dt,Jt,Rn,sn=Ne.hasData(p)&&Ne.get(p);if(!(!sn||!(Se=sn.events))){for(w=(w||"").match(Vn)||[""],Ve=w.length;Ve--;){if(Ee=vi.exec(w[Ve])||[],dt=Rn=Ee[1],Jt=(Ee[2]||"").split(".").sort(),!dt){for(dt in Se)b.event.remove(p,dt+w[Ve],M,k,!0);continue}for(Et=b.event.special[dt]||{},dt=(k?Et.delegateType:Et.bindType)||dt,Ke=Se[dt]||[],Ee=Ee[2]&&new RegExp("(^|\\.)"+Jt.join("\\.(?:.*\\.|)")+"(\\.|$)"),K=z=Ke.length;z--;)at=Ke[z],(B||Rn===at.origType)&&(!M||M.guid===at.guid)&&(!Ee||Ee.test(at.namespace))&&(!k||k===at.selector||k==="**"&&at.selector)&&(Ke.splice(z,1),at.selector&&Ke.delegateCount--,Et.remove&&Et.remove.call(p,at));K&&!Ke.length&&((!Et.teardown||Et.teardown.call(p,Jt,sn.handle)===!1)&&b.removeEvent(p,dt,sn.handle),delete Se[dt])}b.isEmptyObject(Se)&&Ne.remove(p,"handle events")}},dispatch:function(p){var w,M,k,B,z,K,Ee=new Array(arguments.length),Se=b.event.fix(p),Ve=(Ne.get(this,"events")||Object.create(null))[Se.type]||[],at=b.event.special[Se.type]||{};for(Ee[0]=Se,w=1;w<arguments.length;w++)Ee[w]=arguments[w];if(Se.delegateTarget=this,!(at.preDispatch&&at.preDispatch.call(this,Se)===!1)){for(K=b.event.handlers.call(this,Se,Ve),w=0;(B=K[w++])&&!Se.isPropagationStopped();)for(Se.currentTarget=B.elem,M=0;(z=B.handlers[M++])&&!Se.isImmediatePropagationStopped();)(!Se.rnamespace||z.namespace===!1||Se.rnamespace.test(z.namespace))&&(Se.handleObj=z,Se.data=z.data,k=((b.event.special[z.origType]||{}).handle||z.handler).apply(B.elem,Ee),k!==void 0&&(Se.result=k)===!1&&(Se.preventDefault(),Se.stopPropagation()));return at.postDispatch&&at.postDispatch.call(this,Se),Se.result}},handlers:function(p,w){var M,k,B,z,K,Ee=[],Se=w.delegateCount,Ve=p.target;if(Se&&Ve.nodeType&&!(p.type==="click"&&p.button>=1)){for(;Ve!==this;Ve=Ve.parentNode||this)if(Ve.nodeType===1&&!(p.type==="click"&&Ve.disabled===!0)){for(z=[],K={},M=0;M<Se;M++)k=w[M],B=k.selector+" ",K[B]===void 0&&(K[B]=k.needsContext?b(B,this).index(Ve)>-1:b.find(B,this,null,[Ve]).length),K[B]&&z.push(k);z.length&&Ee.push({elem:Ve,handlers:z})}}return Ve=this,Se<w.length&&Ee.push({elem:Ve,handlers:w.slice(Se)}),Ee},addProp:function(p,w){Object.defineProperty(b.Event.prototype,p,{enumerable:!0,configurable:!0,get:V(w)?function(){if(this.originalEvent)return w(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[p]},set:function(M){Object.defineProperty(this,p,{enumerable:!0,configurable:!0,writable:!0,value:M})}})},fix:function(p){return p[b.expando]?p:new b.Event(p)},special:{load:{noBubble:!0},click:{setup:function(p){var w=this||p;return Tr.test(w.type)&&w.click&&ct(w,"input")&&G(w,"click",Zr),!1},trigger:function(p){var w=this||p;return Tr.test(w.type)&&w.click&&ct(w,"input")&&G(w,"click"),!0},_default:function(p){var w=p.target;return Tr.test(w.type)&&w.click&&ct(w,"input")&&Ne.get(w,"click")||ct(w,"a")}},beforeunload:{postDispatch:function(p){p.result!==void 0&&p.originalEvent&&(p.originalEvent.returnValue=p.result)}}}};function G(p,w,M){if(!M){Ne.get(p,w)===void 0&&b.event.add(p,w,Zr);return}Ne.set(p,w,!1),b.event.add(p,w,{namespace:!1,handler:function(k){var B,z,K=Ne.get(this,w);if(k.isTrigger&1&&this[w]){if(K.length)(b.event.special[w]||{}).delegateType&&k.stopPropagation();else if(K=i.call(arguments),Ne.set(this,w,K),B=M(this,w),this[w](),z=Ne.get(this,w),K!==z||B?Ne.set(this,w,!1):z={},K!==z)return k.stopImmediatePropagation(),k.preventDefault(),z&&z.value}else K.length&&(Ne.set(this,w,{value:b.event.trigger(b.extend(K[0],b.Event.prototype),K.slice(1),this)}),k.stopImmediatePropagation())}})}b.removeEvent=function(p,w,M){p.removeEventListener&&p.removeEventListener(w,M)},b.Event=function(p,w){if(!(this instanceof b.Event))return new b.Event(p,w);p&&p.type?(this.originalEvent=p,this.type=p.type,this.isDefaultPrevented=p.defaultPrevented||p.defaultPrevented===void 0&&p.returnValue===!1?Zr:Ki,this.target=p.target&&p.target.nodeType===3?p.target.parentNode:p.target,this.currentTarget=p.currentTarget,this.relatedTarget=p.relatedTarget):this.type=p,w&&b.extend(this,w),this.timeStamp=p&&p.timeStamp||Date.now(),this[b.expando]=!0},b.Event.prototype={constructor:b.Event,isDefaultPrevented:Ki,isPropagationStopped:Ki,isImmediatePropagationStopped:Ki,isSimulated:!1,preventDefault:function(){var p=this.originalEvent;this.isDefaultPrevented=Zr,p&&!this.isSimulated&&p.preventDefault()},stopPropagation:function(){var p=this.originalEvent;this.isPropagationStopped=Zr,p&&!this.isSimulated&&p.stopPropagation()},stopImmediatePropagation:function(){var p=this.originalEvent;this.isImmediatePropagationStopped=Zr,p&&!this.isSimulated&&p.stopImmediatePropagation(),this.stopPropagation()}},b.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},b.event.addProp),b.each({focus:"focusin",blur:"focusout"},function(p,w){b.event.special[p]={setup:function(){return G(this,p,xo),!1},trigger:function(){return G(this,p),!0},_default:function(){return!0},delegateType:w}}),b.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(p,w){b.event.special[p]={delegateType:w,bindType:w,handle:function(M){var k,B=this,z=M.relatedTarget,K=M.handleObj;return(!z||z!==B&&!b.contains(B,z))&&(M.type=K.origType,k=K.handler.apply(this,arguments),M.type=w),k}}}),b.fn.extend({on:function(p,w,M,k){return R(this,p,w,M,k)},one:function(p,w,M,k){return R(this,p,w,M,k,1)},off:function(p,w,M){var k,B;if(p&&p.preventDefault&&p.handleObj)return k=p.handleObj,b(p.delegateTarget).off(k.namespace?k.origType+"."+k.namespace:k.origType,k.selector,k.handler),this;if(typeof p=="object"){for(B in p)this.off(B,w,p[B]);return this}return(w===!1||typeof w=="function")&&(M=w,w=void 0),M===!1&&(M=Ki),this.each(function(){b.event.remove(this,p,M,w)})}});var ue=/<script|<style|<link/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,qe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function rt(p,w){return ct(p,"table")&&ct(w.nodeType!==11?w:w.firstChild,"tr")&&b(p).children("tbody")[0]||p}function et(p){return p.type=(p.getAttribute("type")!==null)+"/"+p.type,p}function bt(p){return(p.type||"").slice(0,5)==="true/"?p.type=p.type.slice(5):p.removeAttribute("type"),p}function ft(p,w){var M,k,B,z,K,Ee,Se;if(w.nodeType===1){if(Ne.hasData(p)&&(z=Ne.get(p),Se=z.events,Se)){Ne.remove(w,"handle events");for(B in Se)for(M=0,k=Se[B].length;M<k;M++)b.event.add(w,B,Se[B][M])}Ie.hasData(p)&&(K=Ie.access(p),Ee=b.extend({},K),Ie.set(w,Ee))}}function kt(p,w){var M=w.nodeName.toLowerCase();M==="input"&&Tr.test(p.type)?w.checked=p.checked:(M==="input"||M==="textarea")&&(w.defaultValue=p.defaultValue)}function Nt(p,w,M,k){w=a(w);var B,z,K,Ee,Se,Ve,at=0,Et=p.length,Ke=Et-1,dt=w[0],Jt=V(dt);if(Jt||Et>1&&typeof dt=="string"&&!H.checkClone&&Re.test(dt))return p.each(function(Rn){var sn=p.eq(Rn);Jt&&(w[0]=dt.call(this,Rn,sn.html())),Nt(sn,w,M,k)});if(Et&&(B=mo(w,p[0].ownerDocument,!1,p,k),z=B.firstChild,B.childNodes.length===1&&(B=z),z||k)){for(K=b.map(Tn(B,"script"),et),Ee=K.length;at<Et;at++)Se=B,at!==Ke&&(Se=b.clone(Se,!0,!0),Ee&&b.merge(K,Tn(Se,"script"))),M.call(p[at],Se,at);if(Ee)for(Ve=K[K.length-1].ownerDocument,b.map(K,bt),at=0;at<Ee;at++)Se=K[at],Br.test(Se.type||"")&&!Ne.access(Se,"globalEval")&&b.contains(Ve,Se)&&(Se.src&&(Se.type||"").toLowerCase()!=="module"?b._evalUrl&&!Se.noModule&&b._evalUrl(Se.src,{nonce:Se.nonce||Se.getAttribute("nonce")},Ve):le(Se.textContent.replace(qe,""),Se,Ve))}return p}function an(p,w,M){for(var k,B=w?b.filter(w,p):p,z=0;(k=B[z])!=null;z++)!M&&k.nodeType===1&&b.cleanData(Tn(k)),k.parentNode&&(M&&xn(k)&&to(Tn(k,"script")),k.parentNode.removeChild(k));return p}b.extend({htmlPrefilter:function(p){return p},clone:function(p,w,M){var k,B,z,K,Ee=p.cloneNode(!0),Se=xn(p);if(!H.noCloneChecked&&(p.nodeType===1||p.nodeType===11)&&!b.isXMLDoc(p))for(K=Tn(Ee),z=Tn(p),k=0,B=z.length;k<B;k++)kt(z[k],K[k]);if(w)if(M)for(z=z||Tn(p),K=K||Tn(Ee),k=0,B=z.length;k<B;k++)ft(z[k],K[k]);else ft(p,Ee);return K=Tn(Ee,"script"),K.length>0&&to(K,!Se&&Tn(p,"script")),Ee},cleanData:function(p){for(var w,M,k,B=b.event.special,z=0;(M=p[z])!==void 0;z++)if(Be(M)){if(w=M[Ne.expando]){if(w.events)for(k in w.events)B[k]?b.event.remove(M,k):b.removeEvent(M,k,w.handle);M[Ne.expando]=void 0}M[Ie.expando]&&(M[Ie.expando]=void 0)}}}),b.fn.extend({detach:function(p){return an(this,p,!0)},remove:function(p){return an(this,p)},text:function(p){return qn(this,function(w){return w===void 0?b.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=w)})},null,p,arguments.length)},append:function(){return Nt(this,arguments,function(p){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var w=rt(this,p);w.appendChild(p)}})},prepend:function(){return Nt(this,arguments,function(p){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var w=rt(this,p);w.insertBefore(p,w.firstChild)}})},before:function(){return Nt(this,arguments,function(p){this.parentNode&&this.parentNode.insertBefore(p,this)})},after:function(){return Nt(this,arguments,function(p){this.parentNode&&this.parentNode.insertBefore(p,this.nextSibling)})},empty:function(){for(var p,w=0;(p=this[w])!=null;w++)p.nodeType===1&&(b.cleanData(Tn(p,!1)),p.textContent="");return this},clone:function(p,w){return p=p??!1,w=w??p,this.map(function(){return b.clone(this,p,w)})},html:function(p){return qn(this,function(w){var M=this[0]||{},k=0,B=this.length;if(w===void 0&&M.nodeType===1)return M.innerHTML;if(typeof w=="string"&&!ue.test(w)&&!Ht[(ci.exec(w)||["",""])[1].toLowerCase()]){w=b.htmlPrefilter(w);try{for(;k<B;k++)M=this[k]||{},M.nodeType===1&&(b.cleanData(Tn(M,!1)),M.innerHTML=w);M=0}catch{}}M&&this.empty().append(w)},null,p,arguments.length)},replaceWith:function(){var p=[];return Nt(this,arguments,function(w){var M=this.parentNode;b.inArray(this,p)<0&&(b.cleanData(Tn(this)),M&&M.replaceChild(w,this))},p)}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(p,w){b.fn[p]=function(M){for(var k,B=[],z=b(M),K=z.length-1,Ee=0;Ee<=K;Ee++)k=Ee===K?this:this.clone(!0),b(z[Ee])[w](k),u.apply(B,k.get());return this.pushStack(B)}});var $t=new RegExp("^("+Xt+")(?!px)[a-z%]+$","i"),rn=function(p){var w=p.ownerDocument.defaultView;return(!w||!w.opener)&&(w=n),w.getComputedStyle(p)},$n=function(p,w,M){var k,B,z={};for(B in w)z[B]=p.style[B],p.style[B]=w[B];k=M.call(p);for(B in w)p.style[B]=z[B];return k},ei=new RegExp(un.join("|"),"i");(function(){function p(){if(Ve){Se.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Ve.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ln.appendChild(Se).appendChild(Ve);var at=n.getComputedStyle(Ve);M=at.top!=="1%",Ee=w(at.marginLeft)===12,Ve.style.right="60%",z=w(at.right)===36,k=w(at.width)===36,Ve.style.position="absolute",B=w(Ve.offsetWidth/3)===12,Ln.removeChild(Se),Ve=null}}function w(at){return Math.round(parseFloat(at))}var M,k,B,z,K,Ee,Se=Z.createElement("div"),Ve=Z.createElement("div");Ve.style&&(Ve.style.backgroundClip="content-box",Ve.cloneNode(!0).style.backgroundClip="",H.clearCloneStyle=Ve.style.backgroundClip==="content-box",b.extend(H,{boxSizingReliable:function(){return p(),k},pixelBoxStyles:function(){return p(),z},pixelPosition:function(){return p(),M},reliableMarginLeft:function(){return p(),Ee},scrollboxSize:function(){return p(),B},reliableTrDimensions:function(){var at,Et,Ke,dt;return K==null&&(at=Z.createElement("table"),Et=Z.createElement("tr"),Ke=Z.createElement("div"),at.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Et.style.cssText="border:1px solid",Et.style.height="1px",Ke.style.height="9px",Ke.style.display="block",Ln.appendChild(at).appendChild(Et).appendChild(Ke),dt=n.getComputedStyle(Et),K=parseInt(dt.height,10)+parseInt(dt.borderTopWidth,10)+parseInt(dt.borderBottomWidth,10)===Et.offsetHeight,Ln.removeChild(at)),K}}))})();function ir(p,w,M){var k,B,z,K,Ee=p.style;return M=M||rn(p),M&&(K=M.getPropertyValue(w)||M[w],K===""&&!xn(p)&&(K=b.style(p,w)),!H.pixelBoxStyles()&&$t.test(K)&&ei.test(w)&&(k=Ee.width,B=Ee.minWidth,z=Ee.maxWidth,Ee.minWidth=Ee.maxWidth=Ee.width=K,K=M.width,Ee.width=k,Ee.minWidth=B,Ee.maxWidth=z)),K!==void 0?K+"":K}function Dr(p,w){return{get:function(){if(p()){delete this.get;return}return(this.get=w).apply(this,arguments)}}}var ti=["Webkit","Moz","ms"],go=Z.createElement("div").style,sa={};function Qn(p){for(var w=p[0].toUpperCase()+p.slice(1),M=ti.length;M--;)if(p=ti[M]+w,p in go)return p}function no(p){var w=b.cssProps[p]||sa[p];return w||(p in go?p:sa[p]=Qn(p)||p)}var el=/^(none|table(?!-c[ea]).+)/,la=/^--/,ua={position:"absolute",visibility:"hidden",display:"block"},Aa={letterSpacing:"0",fontWeight:"400"};function Da(p,w,M){var k=Qt.exec(w);return k?Math.max(0,k[2]-(M||0))+(k[3]||"px"):w}function ka(p,w,M,k,B,z){var K=w==="width"?1:0,Ee=0,Se=0;if(M===(k?"border":"content"))return 0;for(;K<4;K+=2)M==="margin"&&(Se+=b.css(p,M+un[K],!0,B)),k?(M==="content"&&(Se-=b.css(p,"padding"+un[K],!0,B)),M!=="margin"&&(Se-=b.css(p,"border"+un[K]+"Width",!0,B))):(Se+=b.css(p,"padding"+un[K],!0,B),M!=="padding"?Se+=b.css(p,"border"+un[K]+"Width",!0,B):Ee+=b.css(p,"border"+un[K]+"Width",!0,B));return!k&&z>=0&&(Se+=Math.max(0,Math.ceil(p["offset"+w[0].toUpperCase()+w.slice(1)]-z-Se-Ee-.5))||0),Se}function os(p,w,M){var k=rn(p),B=!H.boxSizingReliable()||M,z=B&&b.css(p,"boxSizing",!1,k)==="border-box",K=z,Ee=ir(p,w,k),Se="offset"+w[0].toUpperCase()+w.slice(1);if($t.test(Ee)){if(!M)return Ee;Ee="auto"}return(!H.boxSizingReliable()&&z||!H.reliableTrDimensions()&&ct(p,"tr")||Ee==="auto"||!parseFloat(Ee)&&b.css(p,"display",!1,k)==="inline")&&p.getClientRects().length&&(z=b.css(p,"boxSizing",!1,k)==="border-box",K=Se in p,K&&(Ee=p[Se])),Ee=parseFloat(Ee)||0,Ee+ka(p,w,M||(z?"border":"content"),K,k,Ee)+"px"}b.extend({cssHooks:{opacity:{get:function(p,w){if(w){var M=ir(p,"opacity");return M===""?"1":M}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(p,w,M,k){if(!(!p||p.nodeType===3||p.nodeType===8||!p.style)){var B,z,K,Ee=Ue(w),Se=la.test(w),Ve=p.style;if(Se||(w=no(Ee)),K=b.cssHooks[w]||b.cssHooks[Ee],M!==void 0){if(z=typeof M,z==="string"&&(B=Qt.exec(M))&&B[1]&&(M=Xn(p,w,B),z="number"),M==null||M!==M)return;z==="number"&&!Se&&(M+=B&&B[3]||(b.cssNumber[Ee]?"":"px")),!H.clearCloneStyle&&M===""&&w.indexOf("background")===0&&(Ve[w]="inherit"),(!K||!("set"in K)||(M=K.set(p,M,k))!==void 0)&&(Se?Ve.setProperty(w,M):Ve[w]=M)}else return K&&"get"in K&&(B=K.get(p,!1,k))!==void 0?B:Ve[w]}},css:function(p,w,M,k){var B,z,K,Ee=Ue(w),Se=la.test(w);return Se||(w=no(Ee)),K=b.cssHooks[w]||b.cssHooks[Ee],K&&"get"in K&&(B=K.get(p,!0,M)),B===void 0&&(B=ir(p,w,k)),B==="normal"&&w in Aa&&(B=Aa[w]),M===""||M?(z=parseFloat(B),M===!0||isFinite(z)?z||0:B):B}}),b.each(["height","width"],function(p,w){b.cssHooks[w]={get:function(M,k,B){if(k)return el.test(b.css(M,"display"))&&(!M.getClientRects().length||!M.getBoundingClientRect().width)?$n(M,ua,function(){return os(M,w,B)}):os(M,w,B)},set:function(M,k,B){var z,K=rn(M),Ee=!H.scrollboxSize()&&K.position==="absolute",Se=Ee||B,Ve=Se&&b.css(M,"boxSizing",!1,K)==="border-box",at=B?ka(M,w,B,Ve,K):0;return Ve&&Ee&&(at-=Math.ceil(M["offset"+w[0].toUpperCase()+w.slice(1)]-parseFloat(K[w])-ka(M,w,"border",!1,K)-.5)),at&&(z=Qt.exec(k))&&(z[3]||"px")!=="px"&&(M.style[w]=k,k=b.css(M,w)),Da(M,k,at)}}}),b.cssHooks.marginLeft=Dr(H.reliableMarginLeft,function(p,w){if(w)return(parseFloat(ir(p,"marginLeft"))||p.getBoundingClientRect().left-$n(p,{marginLeft:0},function(){return p.getBoundingClientRect().left}))+"px"}),b.each({margin:"",padding:"",border:"Width"},function(p,w){b.cssHooks[p+w]={expand:function(M){for(var k=0,B={},z=typeof M=="string"?M.split(" "):[M];k<4;k++)B[p+un[k]+w]=z[k]||z[k-2]||z[0];return B}},p!=="margin"&&(b.cssHooks[p+w].set=Da)}),b.fn.extend({css:function(p,w){return qn(this,function(M,k,B){var z,K,Ee={},Se=0;if(Array.isArray(k)){for(z=rn(M),K=k.length;Se<K;Se++)Ee[k[Se]]=b.css(M,k[Se],!1,z);return Ee}return B!==void 0?b.style(M,k,B):b.css(M,k)},p,w,arguments.length>1)}});function Ai(p,w,M,k,B){return new Ai.prototype.init(p,w,M,k,B)}b.Tween=Ai,Ai.prototype={constructor:Ai,init:function(p,w,M,k,B,z){this.elem=p,this.prop=M,this.easing=B||b.easing._default,this.options=w,this.start=this.now=this.cur(),this.end=k,this.unit=z||(b.cssNumber[M]?"":"px")},cur:function(){var p=Ai.propHooks[this.prop];return p&&p.get?p.get(this):Ai.propHooks._default.get(this)},run:function(p){var w,M=Ai.propHooks[this.prop];return this.options.duration?this.pos=w=b.easing[this.easing](p,this.options.duration*p,0,1,this.options.duration):this.pos=w=p,this.now=(this.end-this.start)*w+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),M&&M.set?M.set(this):Ai.propHooks._default.set(this),this}},Ai.prototype.init.prototype=Ai.prototype,Ai.propHooks={_default:{get:function(p){var w;return p.elem.nodeType!==1||p.elem[p.prop]!=null&&p.elem.style[p.prop]==null?p.elem[p.prop]:(w=b.css(p.elem,p.prop,""),!w||w==="auto"?0:w)},set:function(p){b.fx.step[p.prop]?b.fx.step[p.prop](p):p.elem.nodeType===1&&(b.cssHooks[p.prop]||p.elem.style[no(p.prop)]!=null)?b.style(p.elem,p.prop,p.now+p.unit):p.elem[p.prop]=p.now}}},Ai.propHooks.scrollTop=Ai.propHooks.scrollLeft={set:function(p){p.elem.nodeType&&p.elem.parentNode&&(p.elem[p.prop]=p.now)}},b.easing={linear:function(p){return p},swing:function(p){return .5-Math.cos(p*Math.PI)/2},_default:"swing"},b.fx=Ai.prototype.init,b.fx.step={};var Wr,W,N=/^(?:toggle|show|hide)$/,ie=/queueHooks$/;function Me(){W&&(Z.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(Me):n.setTimeout(Me,b.fx.interval),b.fx.tick())}function Ze(){return n.setTimeout(function(){Wr=void 0}),Wr=Date.now()}function mt(p,w){var M,k=0,B={height:p};for(w=w?1:0;k<4;k+=2-w)M=un[k],B["margin"+M]=B["padding"+M]=p;return w&&(B.opacity=B.width=p),B}function Ut(p,w,M){for(var k,B=(nn.tweeners[w]||[]).concat(nn.tweeners["*"]),z=0,K=B.length;z<K;z++)if(k=B[z].call(M,w,p))return k}function dn(p,w,M){var k,B,z,K,Ee,Se,Ve,at,Et="width"in w||"height"in w,Ke=this,dt={},Jt=p.style,Rn=p.nodeType&&bn(p),sn=Ne.get(p,"fxshow");M.queue||(K=b._queueHooks(p,"fx"),K.unqueued==null&&(K.unqueued=0,Ee=K.empty.fire,K.empty.fire=function(){K.unqueued||Ee()}),K.unqueued++,Ke.always(function(){Ke.always(function(){K.unqueued--,b.queue(p,"fx").length||K.empty.fire()})}));for(k in w)if(B=w[k],N.test(B)){if(delete w[k],z=z||B==="toggle",B===(Rn?"hide":"show"))if(B==="show"&&sn&&sn[k]!==void 0)Rn=!0;else continue;dt[k]=sn&&sn[k]||b.style(p,k)}if(Se=!b.isEmptyObject(w),!(!Se&&b.isEmptyObject(dt))){Et&&p.nodeType===1&&(M.overflow=[Jt.overflow,Jt.overflowX,Jt.overflowY],Ve=sn&&sn.display,Ve==null&&(Ve=Ne.get(p,"display")),at=b.css(p,"display"),at==="none"&&(Ve?at=Ve:(Jr([p],!0),Ve=p.style.display||Ve,at=b.css(p,"display"),Jr([p]))),(at==="inline"||at==="inline-block"&&Ve!=null)&&b.css(p,"float")==="none"&&(Se||(Ke.done(function(){Jt.display=Ve}),Ve==null&&(at=Jt.display,Ve=at==="none"?"":at)),Jt.display="inline-block")),M.overflow&&(Jt.overflow="hidden",Ke.always(function(){Jt.overflow=M.overflow[0],Jt.overflowX=M.overflow[1],Jt.overflowY=M.overflow[2]})),Se=!1;for(k in dt)Se||(sn?"hidden"in sn&&(Rn=sn.hidden):sn=Ne.access(p,"fxshow",{display:Ve}),z&&(sn.hidden=!Rn),Rn&&Jr([p],!0),Ke.done(function(){Rn||Jr([p]),Ne.remove(p,"fxshow");for(k in dt)b.style(p,k,dt[k])})),Se=Ut(Rn?sn[k]:0,k,Ke),k in sn||(sn[k]=Se.start,Rn&&(Se.end=Se.start,Se.start=0))}}function cn(p,w){var M,k,B,z,K;for(M in p)if(k=Ue(M),B=w[k],z=p[M],Array.isArray(z)&&(B=z[1],z=p[M]=z[0]),M!==k&&(p[k]=z,delete p[M]),K=b.cssHooks[k],K&&"expand"in K){z=K.expand(z),delete p[k];for(M in z)M in p||(p[M]=z[M],w[M]=B)}else w[k]=B}function nn(p,w,M){var k,B,z=0,K=nn.prefilters.length,Ee=b.Deferred().always(function(){delete Se.elem}),Se=function(){if(B)return!1;for(var Et=Wr||Ze(),Ke=Math.max(0,Ve.startTime+Ve.duration-Et),dt=Ke/Ve.duration||0,Jt=1-dt,Rn=0,sn=Ve.tweens.length;Rn<sn;Rn++)Ve.tweens[Rn].run(Jt);return Ee.notifyWith(p,[Ve,Jt,Ke]),Jt<1&&sn?Ke:(sn||Ee.notifyWith(p,[Ve,1,0]),Ee.resolveWith(p,[Ve]),!1)},Ve=Ee.promise({elem:p,props:b.extend({},w),opts:b.extend(!0,{specialEasing:{},easing:b.easing._default},M),originalProperties:w,originalOptions:M,startTime:Wr||Ze(),duration:M.duration,tweens:[],createTween:function(Et,Ke){var dt=b.Tween(p,Ve.opts,Et,Ke,Ve.opts.specialEasing[Et]||Ve.opts.easing);return Ve.tweens.push(dt),dt},stop:function(Et){var Ke=0,dt=Et?Ve.tweens.length:0;if(B)return this;for(B=!0;Ke<dt;Ke++)Ve.tweens[Ke].run(1);return Et?(Ee.notifyWith(p,[Ve,1,0]),Ee.resolveWith(p,[Ve,Et])):Ee.rejectWith(p,[Ve,Et]),this}}),at=Ve.props;for(cn(at,Ve.opts.specialEasing);z<K;z++)if(k=nn.prefilters[z].call(Ve,p,at,Ve.opts),k)return V(k.stop)&&(b._queueHooks(Ve.elem,Ve.opts.queue).stop=k.stop.bind(k)),k;return b.map(at,Ut,Ve),V(Ve.opts.start)&&Ve.opts.start.call(p,Ve),Ve.progress(Ve.opts.progress).done(Ve.opts.done,Ve.opts.complete).fail(Ve.opts.fail).always(Ve.opts.always),b.fx.timer(b.extend(Se,{elem:p,anim:Ve,queue:Ve.opts.queue})),Ve}b.Animation=b.extend(nn,{tweeners:{"*":[function(p,w){var M=this.createTween(p,w);return Xn(M.elem,p,Qt.exec(w),M),M}]},tweener:function(p,w){V(p)?(w=p,p=["*"]):p=p.match(Vn);for(var M,k=0,B=p.length;k<B;k++)M=p[k],nn.tweeners[M]=nn.tweeners[M]||[],nn.tweeners[M].unshift(w)},prefilters:[dn],prefilter:function(p,w){w?nn.prefilters.unshift(p):nn.prefilters.push(p)}}),b.speed=function(p,w,M){var k=p&&typeof p=="object"?b.extend({},p):{complete:M||!M&&w||V(p)&&p,duration:p,easing:M&&w||w&&!V(w)&&w};return b.fx.off?k.duration=0:typeof k.duration!="number"&&(k.duration in b.fx.speeds?k.duration=b.fx.speeds[k.duration]:k.duration=b.fx.speeds._default),(k.queue==null||k.queue===!0)&&(k.queue="fx"),k.old=k.complete,k.complete=function(){V(k.old)&&k.old.call(this),k.queue&&b.dequeue(this,k.queue)},k},b.fn.extend({fadeTo:function(p,w,M,k){return this.filter(bn).css("opacity",0).show().end().animate({opacity:w},p,M,k)},animate:function(p,w,M,k){var B=b.isEmptyObject(p),z=b.speed(w,M,k),K=function(){var Ee=nn(this,b.extend({},p),z);(B||Ne.get(this,"finish"))&&Ee.stop(!0)};return K.finish=K,B||z.queue===!1?this.each(K):this.queue(z.queue,K)},stop:function(p,w,M){var k=function(B){var z=B.stop;delete B.stop,z(M)};return typeof p!="string"&&(M=w,w=p,p=void 0),w&&this.queue(p||"fx",[]),this.each(function(){var B=!0,z=p!=null&&p+"queueHooks",K=b.timers,Ee=Ne.get(this);if(z)Ee[z]&&Ee[z].stop&&k(Ee[z]);else for(z in Ee)Ee[z]&&Ee[z].stop&&ie.test(z)&&k(Ee[z]);for(z=K.length;z--;)K[z].elem===this&&(p==null||K[z].queue===p)&&(K[z].anim.stop(M),B=!1,K.splice(z,1));(B||!M)&&b.dequeue(this,p)})},finish:function(p){return p!==!1&&(p=p||"fx"),this.each(function(){var w,M=Ne.get(this),k=M[p+"queue"],B=M[p+"queueHooks"],z=b.timers,K=k?k.length:0;for(M.finish=!0,b.queue(this,p,[]),B&&B.stop&&B.stop.call(this,!0),w=z.length;w--;)z[w].elem===this&&z[w].queue===p&&(z[w].anim.stop(!0),z.splice(w,1));for(w=0;w<K;w++)k[w]&&k[w].finish&&k[w].finish.call(this);delete M.finish})}}),b.each(["toggle","show","hide"],function(p,w){var M=b.fn[w];b.fn[w]=function(k,B,z){return k==null||typeof k=="boolean"?M.apply(this,arguments):this.animate(mt(w,!0),k,B,z)}}),b.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(p,w){b.fn[p]=function(M,k,B){return this.animate(w,M,k,B)}}),b.timers=[],b.fx.tick=function(){var p,w=0,M=b.timers;for(Wr=Date.now();w<M.length;w++)p=M[w],!p()&&M[w]===p&&M.splice(w--,1);M.length||b.fx.stop(),Wr=void 0},b.fx.timer=function(p){b.timers.push(p),b.fx.start()},b.fx.interval=13,b.fx.start=function(){W||(W=!0,Me())},b.fx.stop=function(){W=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fn.delay=function(p,w){return p=b.fx&&b.fx.speeds[p]||p,w=w||"fx",this.queue(w,function(M,k){var B=n.setTimeout(M,p);k.stop=function(){n.clearTimeout(B)}})},function(){var p=Z.createElement("input"),w=Z.createElement("select"),M=w.appendChild(Z.createElement("option"));p.type="checkbox",H.checkOn=p.value!=="",H.optSelected=M.selected,p=Z.createElement("input"),p.value="t",p.type="radio",H.radioValue=p.value==="t"}();var Nn,or=b.expr.attrHandle;b.fn.extend({attr:function(p,w){return qn(this,b.attr,p,w,arguments.length>1)},removeAttr:function(p){return this.each(function(){b.removeAttr(this,p)})}}),b.extend({attr:function(p,w,M){var k,B,z=p.nodeType;if(!(z===3||z===8||z===2)){if(typeof p.getAttribute>"u")return b.prop(p,w,M);if((z!==1||!b.isXMLDoc(p))&&(B=b.attrHooks[w.toLowerCase()]||(b.expr.match.bool.test(w)?Nn:void 0)),M!==void 0){if(M===null){b.removeAttr(p,w);return}return B&&"set"in B&&(k=B.set(p,M,w))!==void 0?k:(p.setAttribute(w,M+""),M)}return B&&"get"in B&&(k=B.get(p,w))!==null?k:(k=b.find.attr(p,w),k??void 0)}},attrHooks:{type:{set:function(p,w){if(!H.radioValue&&w==="radio"&&ct(p,"input")){var M=p.value;return p.setAttribute("type",w),M&&(p.value=M),w}}}},removeAttr:function(p,w){var M,k=0,B=w&&w.match(Vn);if(B&&p.nodeType===1)for(;M=B[k++];)p.removeAttribute(M)}}),Nn={set:function(p,w,M){return w===!1?b.removeAttr(p,M):p.setAttribute(M,M),M}},b.each(b.expr.match.bool.source.match(/\w+/g),function(p,w){var M=or[w]||b.find.attr;or[w]=function(k,B,z){var K,Ee,Se=B.toLowerCase();return z||(Ee=or[Se],or[Se]=K,K=M(k,B,z)!=null?Se:null,or[Se]=Ee),K}});var on=/^(?:input|select|textarea|button)$/i,zn=/^(?:a|area)$/i;b.fn.extend({prop:function(p,w){return qn(this,b.prop,p,w,arguments.length>1)},removeProp:function(p){return this.each(function(){delete this[b.propFix[p]||p]})}}),b.extend({prop:function(p,w,M){var k,B,z=p.nodeType;if(!(z===3||z===8||z===2))return(z!==1||!b.isXMLDoc(p))&&(w=b.propFix[w]||w,B=b.propHooks[w]),M!==void 0?B&&"set"in B&&(k=B.set(p,M,w))!==void 0?k:p[w]=M:B&&"get"in B&&(k=B.get(p,w))!==null?k:p[w]},propHooks:{tabIndex:{get:function(p){var w=b.find.attr(p,"tabindex");return w?parseInt(w,10):on.test(p.nodeName)||zn.test(p.nodeName)&&p.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),H.optSelected||(b.propHooks.selected={get:function(p){var w=p.parentNode;return w&&w.parentNode&&w.parentNode.selectedIndex,null},set:function(p){var w=p.parentNode;w&&(w.selectedIndex,w.parentNode&&w.parentNode.selectedIndex)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){b.propFix[this.toLowerCase()]=this});function Yr(p){var w=p.match(Vn)||[];return w.join(" ")}function yi(p){return p.getAttribute&&p.getAttribute("class")||""}function Eo(p){return Array.isArray(p)?p:typeof p=="string"?p.match(Vn)||[]:[]}b.fn.extend({addClass:function(p){var w,M,k,B,z,K,Ee,Se=0;if(V(p))return this.each(function(Ve){b(this).addClass(p.call(this,Ve,yi(this)))});if(w=Eo(p),w.length){for(;M=this[Se++];)if(B=yi(M),k=M.nodeType===1&&" "+Yr(B)+" ",k){for(K=0;z=w[K++];)k.indexOf(" "+z+" ")<0&&(k+=z+" ");Ee=Yr(k),B!==Ee&&M.setAttribute("class",Ee)}}return this},removeClass:function(p){var w,M,k,B,z,K,Ee,Se=0;if(V(p))return this.each(function(Ve){b(this).removeClass(p.call(this,Ve,yi(this)))});if(!arguments.length)return this.attr("class","");if(w=Eo(p),w.length){for(;M=this[Se++];)if(B=yi(M),k=M.nodeType===1&&" "+Yr(B)+" ",k){for(K=0;z=w[K++];)for(;k.indexOf(" "+z+" ")>-1;)k=k.replace(" "+z+" "," ");Ee=Yr(k),B!==Ee&&M.setAttribute("class",Ee)}}return this},toggleClass:function(p,w){var M=typeof p,k=M==="string"||Array.isArray(p);return typeof w=="boolean"&&k?w?this.addClass(p):this.removeClass(p):V(p)?this.each(function(B){b(this).toggleClass(p.call(this,B,yi(this),w),w)}):this.each(function(){var B,z,K,Ee;if(k)for(z=0,K=b(this),Ee=Eo(p);B=Ee[z++];)K.hasClass(B)?K.removeClass(B):K.addClass(B);else(p===void 0||M==="boolean")&&(B=yi(this),B&&Ne.set(this,"__className__",B),this.setAttribute&&this.setAttribute("class",B||p===!1?"":Ne.get(this,"__className__")||""))})},hasClass:function(p){var w,M,k=0;for(w=" "+p+" ";M=this[k++];)if(M.nodeType===1&&(" "+Yr(yi(M))+" ").indexOf(w)>-1)return!0;return!1}});var Co=/\r/g;b.fn.extend({val:function(p){var w,M,k,B=this[0];return arguments.length?(k=V(p),this.each(function(z){var K;this.nodeType===1&&(k?K=p.call(this,z,b(this).val()):K=p,K==null?K="":typeof K=="number"?K+="":Array.isArray(K)&&(K=b.map(K,function(Ee){return Ee==null?"":Ee+""})),w=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()],(!w||!("set"in w)||w.set(this,K,"value")===void 0)&&(this.value=K))})):B?(w=b.valHooks[B.type]||b.valHooks[B.nodeName.toLowerCase()],w&&"get"in w&&(M=w.get(B,"value"))!==void 0?M:(M=B.value,typeof M=="string"?M.replace(Co,""):M??"")):void 0}}),b.extend({valHooks:{option:{get:function(p){var w=b.find.attr(p,"value");return w??Yr(b.text(p))}},select:{get:function(p){var w,M,k,B=p.options,z=p.selectedIndex,K=p.type==="select-one",Ee=K?null:[],Se=K?z+1:B.length;for(z<0?k=Se:k=K?z:0;k<Se;k++)if(M=B[k],(M.selected||k===z)&&!M.disabled&&(!M.parentNode.disabled||!ct(M.parentNode,"optgroup"))){if(w=b(M).val(),K)return w;Ee.push(w)}return Ee},set:function(p,w){for(var M,k,B=p.options,z=b.makeArray(w),K=B.length;K--;)k=B[K],(k.selected=b.inArray(b.valHooks.option.get(k),z)>-1)&&(M=!0);return M||(p.selectedIndex=-1),z}}}}),b.each(["radio","checkbox"],function(){b.valHooks[this]={set:function(p,w){if(Array.isArray(w))return p.checked=b.inArray(b(p).val(),w)>-1}},H.checkOn||(b.valHooks[this].get=function(p){return p.getAttribute("value")===null?"on":p.value})}),H.focusin="onfocusin"in n;var br=/^(?:focusinfocus|focusoutblur)$/,kr=function(p){p.stopPropagation()};b.extend(b.event,{trigger:function(p,w,M,k){var B,z,K,Ee,Se,Ve,at,Et,Ke=[M||Z],dt=x.call(p,"type")?p.type:p,Jt=x.call(p,"namespace")?p.namespace.split("."):[];if(z=Et=K=M=M||Z,!(M.nodeType===3||M.nodeType===8)&&!br.test(dt+b.event.triggered)&&(dt.indexOf(".")>-1&&(Jt=dt.split("."),dt=Jt.shift(),Jt.sort()),Se=dt.indexOf(":")<0&&"on"+dt,p=p[b.expando]?p:new b.Event(dt,typeof p=="object"&&p),p.isTrigger=k?2:3,p.namespace=Jt.join("."),p.rnamespace=p.namespace?new RegExp("(^|\\.)"+Jt.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,p.result=void 0,p.target||(p.target=M),w=w==null?[p]:b.makeArray(w,[p]),at=b.event.special[dt]||{},!(!k&&at.trigger&&at.trigger.apply(M,w)===!1))){if(!k&&!at.noBubble&&!U(M)){for(Ee=at.delegateType||dt,br.test(Ee+dt)||(z=z.parentNode);z;z=z.parentNode)Ke.push(z),K=z;K===(M.ownerDocument||Z)&&Ke.push(K.defaultView||K.parentWindow||n)}for(B=0;(z=Ke[B++])&&!p.isPropagationStopped();)Et=z,p.type=B>1?Ee:at.bindType||dt,Ve=(Ne.get(z,"events")||Object.create(null))[p.type]&&Ne.get(z,"handle"),Ve&&Ve.apply(z,w),Ve=Se&&z[Se],Ve&&Ve.apply&&Be(z)&&(p.result=Ve.apply(z,w),p.result===!1&&p.preventDefault());return p.type=dt,!k&&!p.isDefaultPrevented()&&(!at._default||at._default.apply(Ke.pop(),w)===!1)&&Be(M)&&Se&&V(M[dt])&&!U(M)&&(K=M[Se],K&&(M[Se]=null),b.event.triggered=dt,p.isPropagationStopped()&&Et.addEventListener(dt,kr),M[dt](),p.isPropagationStopped()&&Et.removeEventListener(dt,kr),b.event.triggered=void 0,K&&(M[Se]=K)),p.result}},simulate:function(p,w,M){var k=b.extend(new b.Event,M,{type:p,isSimulated:!0});b.event.trigger(k,null,w)}}),b.fn.extend({trigger:function(p,w){return this.each(function(){b.event.trigger(p,w,this)})},triggerHandler:function(p,w){var M=this[0];if(M)return b.event.trigger(p,w,M,!0)}}),H.focusin||b.each({focus:"focusin",blur:"focusout"},function(p,w){var M=function(k){b.event.simulate(w,k.target,b.event.fix(k))};b.event.special[w]={setup:function(){var k=this.ownerDocument||this.document||this,B=Ne.access(k,w);B||k.addEventListener(p,M,!0),Ne.access(k,w,(B||0)+1)},teardown:function(){var k=this.ownerDocument||this.document||this,B=Ne.access(k,w)-1;B?Ne.access(k,w,B):(k.removeEventListener(p,M,!0),Ne.remove(k,w))}}});var fi=n.location,ca={guid:Date.now()},vo=/\?/;b.parseXML=function(p){var w,M;if(!p||typeof p!="string")return null;try{w=new n.DOMParser().parseFromString(p,"text/xml")}catch{}return M=w&&w.getElementsByTagName("parsererror")[0],(!w||M)&&b.error("Invalid XML: "+(M?b.map(M.childNodes,function(k){return k.textContent}).join(`
`):p)),w};var mi=/\[\]$/,So=/\r?\n/g,fa=/^(?:submit|button|image|reset|file)$/i,ro=/^(?:input|select|textarea|keygen)/i;function To(p,w,M,k){var B;if(Array.isArray(w))b.each(w,function(z,K){M||mi.test(p)?k(p,K):To(p+"["+(typeof K=="object"&&K!=null?z:"")+"]",K,M,k)});else if(!M&&Ae(w)==="object")for(B in w)To(p+"["+B+"]",w[B],M,k);else k(p,w)}b.param=function(p,w){var M,k=[],B=function(z,K){var Ee=V(K)?K():K;k[k.length]=encodeURIComponent(z)+"="+encodeURIComponent(Ee??"")};if(p==null)return"";if(Array.isArray(p)||p.jquery&&!b.isPlainObject(p))b.each(p,function(){B(this.name,this.value)});else for(M in p)To(M,p[M],w,B);return k.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var p=b.prop(this,"elements");return p?b.makeArray(p):this}).filter(function(){var p=this.type;return this.name&&!b(this).is(":disabled")&&ro.test(this.nodeName)&&!fa.test(p)&&(this.checked||!Tr.test(p))}).map(function(p,w){var M=b(this).val();return M==null?null:Array.isArray(M)?b.map(M,function(k){return{name:w.name,value:k.replace(So,`\r
`)}}):{name:w.name,value:M.replace(So,`\r
`)}}).get()}});var Rs=/%20/g,Oa=/#.*$/,as=/([?&])_=[^&]*/,Ia=/^(.*?):[ \t]*([^\r\n]*)$/mg,tl=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Uo=/^(?:GET|HEAD)$/,Vo=/^\/\//,Yo={},ni={},da="*/".concat("*"),Fs=Z.createElement("a");Fs.href=fi.href;function Na(p){return function(w,M){typeof w!="string"&&(M=w,w="*");var k,B=0,z=w.toLowerCase().match(Vn)||[];if(V(M))for(;k=z[B++];)k[0]==="+"?(k=k.slice(1)||"*",(p[k]=p[k]||[]).unshift(M)):(p[k]=p[k]||[]).push(M)}}function Mo(p,w,M,k){var B={},z=p===ni;function K(Ee){var Se;return B[Ee]=!0,b.each(p[Ee]||[],function(Ve,at){var Et=at(w,M,k);if(typeof Et=="string"&&!z&&!B[Et])return w.dataTypes.unshift(Et),K(Et),!1;if(z)return!(Se=Et)}),Se}return K(w.dataTypes[0])||!B["*"]&&K("*")}function Jn(p,w){var M,k,B=b.ajaxSettings.flatOptions||{};for(M in w)w[M]!==void 0&&((B[M]?p:k||(k={}))[M]=w[M]);return k&&b.extend(!0,p,k),p}function gr(p,w,M){for(var k,B,z,K,Ee=p.contents,Se=p.dataTypes;Se[0]==="*";)Se.shift(),k===void 0&&(k=p.mimeType||w.getResponseHeader("Content-Type"));if(k){for(B in Ee)if(Ee[B]&&Ee[B].test(k)){Se.unshift(B);break}}if(Se[0]in M)z=Se[0];else{for(B in M){if(!Se[0]||p.converters[B+" "+Se[0]]){z=B;break}K||(K=B)}z=z||K}if(z)return z!==Se[0]&&Se.unshift(z),M[z]}function nl(p,w,M,k){var B,z,K,Ee,Se,Ve={},at=p.dataTypes.slice();if(at[1])for(K in p.converters)Ve[K.toLowerCase()]=p.converters[K];for(z=at.shift();z;)if(p.responseFields[z]&&(M[p.responseFields[z]]=w),!Se&&k&&p.dataFilter&&(w=p.dataFilter(w,p.dataType)),Se=z,z=at.shift(),z){if(z==="*")z=Se;else if(Se!=="*"&&Se!==z){if(K=Ve[Se+" "+z]||Ve["* "+z],!K){for(B in Ve)if(Ee=B.split(" "),Ee[1]===z&&(K=Ve[Se+" "+Ee[0]]||Ve["* "+Ee[0]],K)){K===!0?K=Ve[B]:Ve[B]!==!0&&(z=Ee[0],at.unshift(Ee[1]));break}}if(K!==!0)if(K&&p.throws)w=K(w);else try{w=K(w)}catch(Et){return{state:"parsererror",error:K?Et:"No conversion from "+Se+" to "+z}}}}return{state:"success",data:w}}b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fi.href,type:"GET",isLocal:tl.test(fi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":da,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(p,w){return w?Jn(Jn(p,b.ajaxSettings),w):Jn(b.ajaxSettings,p)},ajaxPrefilter:Na(Yo),ajaxTransport:Na(ni),ajax:function(p,w){typeof p=="object"&&(w=p,p=void 0),w=w||{};var M,k,B,z,K,Ee,Se,Ve,at,Et,Ke=b.ajaxSetup({},w),dt=Ke.context||Ke,Jt=Ke.context&&(dt.nodeType||dt.jquery)?b(dt):b.event,Rn=b.Deferred(),sn=b.Callbacks("once memory"),_r=Ke.statusCode||{},$r={},_i={},hn="canceled",pn={readyState:0,getResponseHeader:function(Zn){var Or;if(Se){if(!z)for(z={};Or=Ia.exec(B);)z[Or[1].toLowerCase()+" "]=(z[Or[1].toLowerCase()+" "]||[]).concat(Or[2]);Or=z[Zn.toLowerCase()+" "]}return Or==null?null:Or.join(", ")},getAllResponseHeaders:function(){return Se?B:null},setRequestHeader:function(Zn,Or){return Se==null&&(Zn=_i[Zn.toLowerCase()]=_i[Zn.toLowerCase()]||Zn,$r[Zn]=Or),this},overrideMimeType:function(Zn){return Se==null&&(Ke.mimeType=Zn),this},statusCode:function(Zn){var Or;if(Zn)if(Se)pn.always(Zn[pn.status]);else for(Or in Zn)_r[Or]=[_r[Or],Zn[Or]];return this},abort:function(Zn){var Or=Zn||hn;return M&&M.abort(Or),wi(0,Or),this}};if(Rn.promise(pn),Ke.url=((p||Ke.url||fi.href)+"").replace(Vo,fi.protocol+"//"),Ke.type=w.method||w.type||Ke.method||Ke.type,Ke.dataTypes=(Ke.dataType||"*").toLowerCase().match(Vn)||[""],Ke.crossDomain==null){Ee=Z.createElement("a");try{Ee.href=Ke.url,Ee.href=Ee.href,Ke.crossDomain=Fs.protocol+"//"+Fs.host!=Ee.protocol+"//"+Ee.host}catch{Ke.crossDomain=!0}}if(Ke.data&&Ke.processData&&typeof Ke.data!="string"&&(Ke.data=b.param(Ke.data,Ke.traditional)),Mo(Yo,Ke,w,pn),Se)return pn;Ve=b.event&&Ke.global,Ve&&b.active++===0&&b.event.trigger("ajaxStart"),Ke.type=Ke.type.toUpperCase(),Ke.hasContent=!Uo.test(Ke.type),k=Ke.url.replace(Oa,""),Ke.hasContent?Ke.data&&Ke.processData&&(Ke.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Ke.data=Ke.data.replace(Rs,"+")):(Et=Ke.url.slice(k.length),Ke.data&&(Ke.processData||typeof Ke.data=="string")&&(k+=(vo.test(k)?"&":"?")+Ke.data,delete Ke.data),Ke.cache===!1&&(k=k.replace(as,"$1"),Et=(vo.test(k)?"&":"?")+"_="+ca.guid+++Et),Ke.url=k+Et),Ke.ifModified&&(b.lastModified[k]&&pn.setRequestHeader("If-Modified-Since",b.lastModified[k]),b.etag[k]&&pn.setRequestHeader("If-None-Match",b.etag[k])),(Ke.data&&Ke.hasContent&&Ke.contentType!==!1||w.contentType)&&pn.setRequestHeader("Content-Type",Ke.contentType),pn.setRequestHeader("Accept",Ke.dataTypes[0]&&Ke.accepts[Ke.dataTypes[0]]?Ke.accepts[Ke.dataTypes[0]]+(Ke.dataTypes[0]!=="*"?", "+da+"; q=0.01":""):Ke.accepts["*"]);for(at in Ke.headers)pn.setRequestHeader(at,Ke.headers[at]);if(Ke.beforeSend&&(Ke.beforeSend.call(dt,pn,Ke)===!1||Se))return pn.abort();if(hn="abort",sn.add(Ke.complete),pn.done(Ke.success),pn.fail(Ke.error),M=Mo(ni,Ke,w,pn),!M)wi(-1,"No Transport");else{if(pn.readyState=1,Ve&&Jt.trigger("ajaxSend",[pn,Ke]),Se)return pn;Ke.async&&Ke.timeout>0&&(K=n.setTimeout(function(){pn.abort("timeout")},Ke.timeout));try{Se=!1,M.send($r,wi)}catch(Zn){if(Se)throw Zn;wi(-1,Zn)}}function wi(Zn,Or,us,pa){var Di,ma,$o,ri,Lo,Ui=Or;Se||(Se=!0,K&&n.clearTimeout(K),M=void 0,B=pa||"",pn.readyState=Zn>0?4:0,Di=Zn>=200&&Zn<300||Zn===304,us&&(ri=gr(Ke,pn,us)),!Di&&b.inArray("script",Ke.dataTypes)>-1&&b.inArray("json",Ke.dataTypes)<0&&(Ke.converters["text script"]=function(){}),ri=nl(Ke,ri,pn,Di),Di?(Ke.ifModified&&(Lo=pn.getResponseHeader("Last-Modified"),Lo&&(b.lastModified[k]=Lo),Lo=pn.getResponseHeader("etag"),Lo&&(b.etag[k]=Lo)),Zn===204||Ke.type==="HEAD"?Ui="nocontent":Zn===304?Ui="notmodified":(Ui=ri.state,ma=ri.data,$o=ri.error,Di=!$o)):($o=Ui,(Zn||!Ui)&&(Ui="error",Zn<0&&(Zn=0))),pn.status=Zn,pn.statusText=(Or||Ui)+"",Di?Rn.resolveWith(dt,[ma,Ui,pn]):Rn.rejectWith(dt,[pn,Ui,$o]),pn.statusCode(_r),_r=void 0,Ve&&Jt.trigger(Di?"ajaxSuccess":"ajaxError",[pn,Ke,Di?ma:$o]),sn.fireWith(dt,[pn,Ui]),Ve&&(Jt.trigger("ajaxComplete",[pn,Ke]),--b.active||b.event.trigger("ajaxStop")))}return pn},getJSON:function(p,w,M){return b.get(p,w,M,"json")},getScript:function(p,w){return b.get(p,void 0,w,"script")}}),b.each(["get","post"],function(p,w){b[w]=function(M,k,B,z){return V(k)&&(z=z||B,B=k,k=void 0),b.ajax(b.extend({url:M,type:w,dataType:z,data:k,success:B},b.isPlainObject(M)&&M))}}),b.ajaxPrefilter(function(p){var w;for(w in p.headers)w.toLowerCase()==="content-type"&&(p.contentType=p.headers[w]||"")}),b._evalUrl=function(p,w,M){return b.ajax({url:p,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(k){b.globalEval(k,w,M)}})},b.fn.extend({wrapAll:function(p){var w;return this[0]&&(V(p)&&(p=p.call(this[0])),w=b(p,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&w.insertBefore(this[0]),w.map(function(){for(var M=this;M.firstElementChild;)M=M.firstElementChild;return M}).append(this)),this},wrapInner:function(p){return V(p)?this.each(function(w){b(this).wrapInner(p.call(this,w))}):this.each(function(){var w=b(this),M=w.contents();M.length?M.wrapAll(p):w.append(p)})},wrap:function(p){var w=V(p);return this.each(function(M){b(this).wrapAll(w?p.call(this,M):p)})},unwrap:function(p){return this.parent(p).not("body").each(function(){b(this).replaceWith(this.childNodes)}),this}}),b.expr.pseudos.hidden=function(p){return!b.expr.pseudos.visible(p)},b.expr.pseudos.visible=function(p){return!!(p.offsetWidth||p.offsetHeight||p.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch{}};var ss={0:200,1223:204},bi=b.ajaxSettings.xhr();H.cors=!!bi&&"withCredentials"in bi,H.ajax=bi=!!bi,b.ajaxTransport(function(p){var w,M;if(H.cors||bi&&!p.crossDomain)return{send:function(k,B){var z,K=p.xhr();if(K.open(p.type,p.url,p.async,p.username,p.password),p.xhrFields)for(z in p.xhrFields)K[z]=p.xhrFields[z];p.mimeType&&K.overrideMimeType&&K.overrideMimeType(p.mimeType),!p.crossDomain&&!k["X-Requested-With"]&&(k["X-Requested-With"]="XMLHttpRequest");for(z in k)K.setRequestHeader(z,k[z]);w=function(Ee){return function(){w&&(w=M=K.onload=K.onerror=K.onabort=K.ontimeout=K.onreadystatechange=null,Ee==="abort"?K.abort():Ee==="error"?typeof K.status!="number"?B(0,"error"):B(K.status,K.statusText):B(ss[K.status]||K.status,K.statusText,(K.responseType||"text")!=="text"||typeof K.responseText!="string"?{binary:K.response}:{text:K.responseText},K.getAllResponseHeaders()))}},K.onload=w(),M=K.onerror=K.ontimeout=w("error"),K.onabort!==void 0?K.onabort=M:K.onreadystatechange=function(){K.readyState===4&&n.setTimeout(function(){w&&M()})},w=w("abort");try{K.send(p.hasContent&&p.data||null)}catch(Ee){if(w)throw Ee}},abort:function(){w&&w()}}}),b.ajaxPrefilter(function(p){p.crossDomain&&(p.contents.script=!1)}),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(p){return b.globalEval(p),p}}}),b.ajaxPrefilter("script",function(p){p.cache===void 0&&(p.cache=!1),p.crossDomain&&(p.type="GET")}),b.ajaxTransport("script",function(p){if(p.crossDomain||p.scriptAttrs){var w,M;return{send:function(k,B){w=b("<script>").attr(p.scriptAttrs||{}).prop({charset:p.scriptCharset,src:p.url}).on("load error",M=function(z){w.remove(),M=null,z&&B(z.type==="error"?404:200,z.type)}),Z.head.appendChild(w[0])},abort:function(){M&&M()}}}});var Ao=[],ls=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var p=Ao.pop()||b.expando+"_"+ca.guid++;return this[p]=!0,p}}),b.ajaxPrefilter("json jsonp",function(p,w,M){var k,B,z,K=p.jsonp!==!1&&(ls.test(p.url)?"url":typeof p.data=="string"&&(p.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ls.test(p.data)&&"data");if(K||p.dataTypes[0]==="jsonp")return k=p.jsonpCallback=V(p.jsonpCallback)?p.jsonpCallback():p.jsonpCallback,K?p[K]=p[K].replace(ls,"$1"+k):p.jsonp!==!1&&(p.url+=(vo.test(p.url)?"&":"?")+p.jsonp+"="+k),p.converters["script json"]=function(){return z||b.error(k+" was not called"),z[0]},p.dataTypes[0]="json",B=n[k],n[k]=function(){z=arguments},M.always(function(){B===void 0?b(n).removeProp(k):n[k]=B,p[k]&&(p.jsonpCallback=w.jsonpCallback,Ao.push(k)),z&&V(B)&&B(z[0]),z=B=void 0}),"script"}),H.createHTMLDocument=function(){var p=Z.implementation.createHTMLDocument("").body;return p.innerHTML="<form></form><form></form>",p.childNodes.length===2}(),b.parseHTML=function(p,w,M){if(typeof p!="string")return[];typeof w=="boolean"&&(M=w,w=!1);var k,B,z;return w||(H.createHTMLDocument?(w=Z.implementation.createHTMLDocument(""),k=w.createElement("base"),k.href=Z.location.href,w.head.appendChild(k)):w=Z),B=Dt.exec(p),z=!M&&[],B?[w.createElement(B[1])]:(B=mo([p],w,z),z&&z.length&&b(z).remove(),b.merge([],B.childNodes))},b.fn.load=function(p,w,M){var k,B,z,K=this,Ee=p.indexOf(" ");return Ee>-1&&(k=Yr(p.slice(Ee)),p=p.slice(0,Ee)),V(w)?(M=w,w=void 0):w&&typeof w=="object"&&(B="POST"),K.length>0&&b.ajax({url:p,type:B||"GET",dataType:"html",data:w}).done(function(Se){z=arguments,K.html(k?b("<div>").append(b.parseHTML(Se)).find(k):Se)}).always(M&&function(Se,Ve){K.each(function(){M.apply(this,z||[Se.responseText,Ve,Se])})}),this},b.expr.pseudos.animated=function(p){return b.grep(b.timers,function(w){return p===w.elem}).length},b.offset={setOffset:function(p,w,M){var k,B,z,K,Ee,Se,Ve,at=b.css(p,"position"),Et=b(p),Ke={};at==="static"&&(p.style.position="relative"),Ee=Et.offset(),z=b.css(p,"top"),Se=b.css(p,"left"),Ve=(at==="absolute"||at==="fixed")&&(z+Se).indexOf("auto")>-1,Ve?(k=Et.position(),K=k.top,B=k.left):(K=parseFloat(z)||0,B=parseFloat(Se)||0),V(w)&&(w=w.call(p,M,b.extend({},Ee))),w.top!=null&&(Ke.top=w.top-Ee.top+K),w.left!=null&&(Ke.left=w.left-Ee.left+B),"using"in w?w.using.call(p,Ke):Et.css(Ke)}},b.fn.extend({offset:function(p){if(arguments.length)return p===void 0?this:this.each(function(B){b.offset.setOffset(this,p,B)});var w,M,k=this[0];if(k)return k.getClientRects().length?(w=k.getBoundingClientRect(),M=k.ownerDocument.defaultView,{top:w.top+M.pageYOffset,left:w.left+M.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var p,w,M,k=this[0],B={top:0,left:0};if(b.css(k,"position")==="fixed")w=k.getBoundingClientRect();else{for(w=this.offset(),M=k.ownerDocument,p=k.offsetParent||M.documentElement;p&&(p===M.body||p===M.documentElement)&&b.css(p,"position")==="static";)p=p.parentNode;p&&p!==k&&p.nodeType===1&&(B=b(p).offset(),B.top+=b.css(p,"borderTopWidth",!0),B.left+=b.css(p,"borderLeftWidth",!0))}return{top:w.top-B.top-b.css(k,"marginTop",!0),left:w.left-B.left-b.css(k,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var p=this.offsetParent;p&&b.css(p,"position")==="static";)p=p.offsetParent;return p||Ln})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(p,w){var M=w==="pageYOffset";b.fn[p]=function(k){return qn(this,function(B,z,K){var Ee;if(U(B)?Ee=B:B.nodeType===9&&(Ee=B.defaultView),K===void 0)return Ee?Ee[w]:B[z];Ee?Ee.scrollTo(M?Ee.pageXOffset:K,M?K:Ee.pageYOffset):B[z]=K},p,k,arguments.length)}}),b.each(["top","left"],function(p,w){b.cssHooks[w]=Dr(H.pixelPosition,function(M,k){if(k)return k=ir(M,w),$t.test(k)?b(M).position()[w]+"px":k})}),b.each({Height:"height",Width:"width"},function(p,w){b.each({padding:"inner"+p,content:w,"":"outer"+p},function(M,k){b.fn[k]=function(B,z){var K=arguments.length&&(M||typeof B!="boolean"),Ee=M||(B===!0||z===!0?"margin":"border");return qn(this,function(Se,Ve,at){var Et;return U(Se)?k.indexOf("outer")===0?Se["inner"+p]:Se.document.documentElement["client"+p]:Se.nodeType===9?(Et=Se.documentElement,Math.max(Se.body["scroll"+p],Et["scroll"+p],Se.body["offset"+p],Et["offset"+p],Et["client"+p])):at===void 0?b.css(Se,Ve,Ee):b.style(Se,Ve,at,Ee)},w,K?B:void 0,K)}})}),b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(p,w){b.fn[w]=function(M){return this.on(w,M)}}),b.fn.extend({bind:function(p,w,M){return this.on(p,null,w,M)},unbind:function(p,w){return this.off(p,null,w)},delegate:function(p,w,M,k){return this.on(w,p,M,k)},undelegate:function(p,w,M){return arguments.length===1?this.off(p,"**"):this.off(w,p||"**",M)},hover:function(p,w){return this.mouseenter(p).mouseleave(w||p)}}),b.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(p,w){b.fn[w]=function(M,k){return arguments.length>0?this.on(w,null,M,k):this.trigger(w)}});var rl=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;b.proxy=function(p,w){var M,k,B;if(typeof w=="string"&&(M=p[w],w=p,p=M),!!V(p))return k=i.call(arguments,2),B=function(){return p.apply(w||this,k.concat(i.call(arguments)))},B.guid=p.guid=p.guid||b.guid++,B},b.holdReady=function(p){p?b.readyWait++:b.ready(!0)},b.isArray=Array.isArray,b.parseJSON=JSON.parse,b.nodeName=ct,b.isFunction=V,b.isWindow=U,b.camelCase=Ue,b.type=Ae,b.now=Date.now,b.isNumeric=function(p){var w=b.type(p);return(w==="number"||w==="string")&&!isNaN(p-parseFloat(p))},b.trim=function(p){return p==null?"":(p+"").replace(rl,"")},typeof define=="function"&&define.amd&&define("jquery",[],function(){return b});var Nl=n.jQuery,ha=n.$;return b.noConflict=function(p){return n.$===b&&(n.$=ha),p&&n.jQuery===b&&(n.jQuery=Nl),b},typeof e>"u"&&(n.jQuery=n.$=b),b})});var P1=eu((L_,R_)=>{(function(n,e){typeof L_=="object"&&typeof R_<"u"?R_.exports=e():typeof define=="function"&&define.amd?define(e):(n=typeof globalThis<"u"?globalThis:n||self,n.Chartkick=e())})(L_,function(){"use strict";function n(W){return Object.prototype.toString.call(W)==="[object Array]"}function e(W){return W instanceof Function}function t(W){return Object.prototype.toString.call(W)==="[object Object]"&&!e(W)&&W instanceof Object}function r(W,N){var ie;for(ie in N)ie!=="__proto__"&&(t(N[ie])||n(N[ie])?(t(N[ie])&&!t(W[ie])&&(W[ie]={}),n(N[ie])&&!n(W[ie])&&(W[ie]=[]),r(W[ie],N[ie])):N[ie]!==void 0&&(W[ie]=N[ie]))}function i(W,N){var ie={};return r(ie,W),r(ie,N),ie}var a=/^(\d\d\d\d)(-)?(\d\d)(-)?(\d\d)$/i;function u(W){var N,ie,Me;for(N=0;N<W.length;N++)for(Me=W[N].data,ie=0;ie<Me.length;ie++)if(Me[ie][1]<0)return!0;return!1}function d(W){return""+W}function m(W){return parseFloat(W)}function y(W){var N,ie,Me,Ze;if(typeof W!="object")if(typeof W=="number")W=new Date(W*1e3);else{if(W=d(W),N=W.match(a))return ie=parseInt(N[1],10),Me=parseInt(N[3],10)-1,Ze=parseInt(N[5],10),new Date(ie,Me,Ze);var mt=W.replace(/ /,"T").replace(" ","").replace("UTC","Z");W=new Date(Date.parse(mt)||W)}return W}function x(W){if(!n(W)){var N=[],ie;for(ie in W)W.hasOwnProperty(ie)&&N.push([ie,W[ie]]);W=N}return W}function S(W,N,ie,Me,Ze,mt,Ut,dn){return function(cn,nn,Nn){var or=cn.data,on=i({},W);return on=i(on,Nn||{}),(cn.singleSeriesFormat||"legend"in nn)&&N(on,nn.legend,cn.singleSeriesFormat),nn.title&&ie(on,nn.title),"min"in nn?Me(on,nn.min):u(or)||Me(on,0),nn.max&&Ze(on,nn.max),"stacked"in nn&&mt(on,nn.stacked),nn.colors&&(on.colors=nn.colors),nn.xtitle&&Ut(on,nn.xtitle),nn.ytitle&&dn(on,nn.ytitle),on=i(on,nn.library||{}),on}}function L(W,N){return W[0].getTime()-N[0].getTime()}function H(W,N){return W[0]-N[0]}function V(W,N){return W-N}function U(W){return W.getMilliseconds()===0&&W.getSeconds()===0}function Z(W){return U(W)&&W.getMinutes()===0}function ae(W){return Z(W)&&W.getHours()===0}function le(W,N){return ae(W)&&W.getDay()===N}function Ae(W){return ae(W)&&W.getDate()===1}function ve(W){return Ae(W)&&W.getMonth()===0}function b(W){return!isNaN(y(W))&&d(W).length>=6}function te(W){return typeof W=="number"}var ye=["bytes","KB","MB","GB","TB","PB","EB"];function Oe(W,N,ie,Me){W=W||"",ie.prefix&&(N<0&&(N=N*-1,W+="-"),W+=ie.prefix);var Ze=ie.suffix||"",mt=ie.precision,Ut=ie.round;if(ie.byteScale){var dn,cn=Me?ie.byteScale:N;cn>=1152921504606847e3?(N/=1152921504606847e3,dn=6):cn>=0x4000000000000?(N/=0x4000000000000,dn=5):cn>=1099511627776?(N/=1099511627776,dn=4):cn>=1073741824?(N/=1073741824,dn=3):cn>=1048576?(N/=1048576,dn=2):cn>=1024?(N/=1024,dn=1):dn=0,mt===void 0&&Ut===void 0&&(N>=1023.5&&dn<ye.length-1&&(N=1,dn+=1),mt=N>=1e3?4:3),Ze=" "+ye[dn]}if(mt!==void 0&&Ut!==void 0)throw Error("Use either round or precision, not both");if(!Me&&(mt!==void 0&&(N=N.toPrecision(mt),ie.zeros||(N=parseFloat(N))),Ut!==void 0))if(Ut<0){var nn=Math.pow(10,-1*Ut);N=parseInt((1*N/nn).toFixed(0))*nn}else N=N.toFixed(Ut),ie.zeros||(N=parseFloat(N));if(ie.thousands||ie.decimal){N=d(N);var Nn=N.split(".");N=Nn[0],ie.thousands&&(N=N.replace(/\B(?=(\d{3})+(?!\d))/g,ie.thousands)),Nn.length>1&&(N+=(ie.decimal||".")+Nn[1])}return W+N+Ze}function De(W,N,ie){return ie in N?N[ie]:ie in W.options?W.options[ie]:null}function lt(W){var N,ie,Me;for(N=0;N<W.length;N++)for(Me=W[N].data,ie=0;ie<Me.length;ie++)if(Me[ie][1]!=0)return!1;return!0}var ct={maintainAspectRatio:!1,animation:!1,plugins:{legend:{},tooltip:{displayColors:!1,callbacks:{}},title:{font:{size:20},color:"#333"}},interaction:{}},Dt={scales:{y:{ticks:{maxTicksLimit:4},title:{font:{size:16},color:"#333"},grid:{}},x:{grid:{drawOnChartArea:!1},title:{font:{size:16},color:"#333"},time:{},ticks:{}}}},Mt=["#3366CC","#DC3912","#FF9900","#109618","#990099","#3B3EAC","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#329262","#5574A6","#651067"],en=function(W,N,ie){N!==void 0?(W.plugins.legend.display=!!N,N&&N!==!0&&(W.plugins.legend.position=N)):ie&&(W.plugins.legend.display=!1)},Yt=function(W,N){W.plugins.title.display=!0,W.plugins.title.text=N},At=function(W,N){N!==null&&(W.scales.y.min=m(N))},tn=function(W,N){W.scales.y.max=m(N)},In=function(W,N){N!==null&&(W.scales.x.min=m(N))},Cn=function(W,N){W.scales.x.max=m(N)},Vn=function(W,N){W.scales.x.stacked=!!N,W.scales.y.stacked=!!N},rr=function(W,N){W.scales.x.title.display=!0,W.scales.x.title.text=N},ur=function(W,N){W.scales.y.title.display=!0,W.scales.y.title.text=N},yt=function(W,N){var ie=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(W);return ie?"rgba("+parseInt(ie[1],16)+", "+parseInt(ie[2],16)+", "+parseInt(ie[3],16)+", "+N+")":W},Yn=function(W){return W!=null},Vr=function(W,N,ie){var Me=Math.ceil(W.element.offsetWidth/4/N.labels.length);Me>25?Me=25:Me<10&&(Me=10),ie.scales.x.ticks.callback||(ie.scales.x.ticks.callback=function(Ze){return Ze=d(this.getLabelForValue(Ze)),Ze.length>Me?Ze.substring(0,Me-2)+"...":Ze})},yr=function(W,N,ie){var Me={prefix:W.options.prefix,suffix:W.options.suffix,thousands:W.options.thousands,decimal:W.options.decimal,precision:W.options.precision,round:W.options.round,zeros:W.options.zeros};if(W.options.bytes){var Ze=W.data;ie==="pie"&&(Ze=[{data:Ze}]);for(var mt=0,Ut=0;Ut<Ze.length;Ut++)for(var dn=Ze[Ut],cn=0;cn<dn.data.length;cn++)dn.data[cn][1]>mt&&(mt=dn.data[cn][1]);for(var nn=1;mt>=1024;)nn*=1024,mt/=1024;Me.byteScale=nn}if(ie!=="pie"){var Nn=N.scales.y;ie==="bar"&&(Nn=N.scales.x),Me.byteScale&&(Nn.ticks.stepSize||(Nn.ticks.stepSize=Me.byteScale/2),Nn.ticks.maxTicksLimit||(Nn.ticks.maxTicksLimit=4)),Nn.ticks.callback||(Nn.ticks.callback=function(on){return Oe("",on,Me,!0)})}if(!N.plugins.tooltip.callbacks.label)if(ie==="scatter")N.plugins.tooltip.callbacks.label=function(on){var zn=on.dataset.label||"";return zn&&(zn+=": "),zn+"("+on.label+", "+on.formattedValue+")"};else if(ie==="bubble")N.plugins.tooltip.callbacks.label=function(on){var zn=on.dataset.label||"";zn&&(zn+=": ");var Yr=on.raw;return zn+"("+Yr.x+", "+Yr.y+", "+Yr.v+")"};else if(ie==="pie")N.plugins.tooltip.callbacks.label=function(on){var zn=on.label,Yr=": ";return n(zn)?(zn=zn.slice(),zn[0]+=Yr):zn+=Yr,Oe(zn,on.parsed,Me)};else{var or=ie==="bar"?"x":"y";N.plugins.tooltip.callbacks.label=function(on){if(on.parsed[or]!==null){var zn=on.dataset.label||"";return zn&&(zn+=": "),Oe(zn,on.parsed[or],Me)}}}},fn=S(i(ct,Dt),en,Yt,At,tn,Vn,rr,ur),qn=function(W,N,ie){var Me=[],Ze=[],mt=W.options.colors||Mt,Ut=!0,dn=!0,cn,nn=!0,Nn=!0,or=!0,on=!0,zn=W.data,Yr=0;if(ie==="bubble")for(var yi=0;yi<zn.length;yi++)for(var Eo=zn[yi],Co=0;Co<Eo.data.length;Co++)Eo.data[Co][2]>Yr&&(Yr=Eo.data[Co][2]);var br,kr,fi,ca,vo,mi=[],So=[];if(ie==="bar"||ie==="column"||W.xtype!=="number"&&W.xtype!=="bubble"){var fa=[];for(br=0;br<zn.length;br++)for(fi=zn[br],kr=0;kr<fi.data.length;kr++)ca=fi.data[kr],vo=W.xtype=="datetime"?ca[0].getTime():ca[0],mi[vo]||(mi[vo]=new Array(zn.length)),mi[vo][br]=m(ca[1]),fa.indexOf(vo)===-1&&fa.push(vo);for((W.xtype==="datetime"||W.xtype==="number")&&fa.sort(V),kr=0;kr<zn.length;kr++)So.push([]);var ro,To;for(To=0;To<fa.length;To++)for(br=fa[To],W.xtype==="datetime"?(ro=new Date(m(br)),Ut=Ut&&ae(ro),cn||(cn=ro.getDay()),dn=dn&&le(ro,cn),nn=nn&&Ae(ro),Nn=Nn&&ve(ro),or=or&&Z(ro),on=on&&U(ro)):ro=br,Ze.push(ro),kr=0;kr<zn.length;kr++)So[kr].push(mi[br][kr]===void 0?null:mi[br][kr])}else for(var Rs=0;Rs<zn.length;Rs++){for(var Oa=zn[Rs],as=[],Ia=0;Ia<Oa.data.length;Ia++){var tl={x:m(Oa.data[Ia][0]),y:m(Oa.data[Ia][1])};ie==="bubble"&&(tl.r=m(Oa.data[Ia][2])*20/Yr,tl.v=Oa.data[Ia][2]),as.push(tl)}So.push(as)}var Uo,Vo;for(br=0;br<zn.length;br++){if(fi=zn[br],W.options.colors&&W.singleSeriesFormat&&(ie==="bar"||ie==="column")&&!fi.color&&n(W.options.colors)&&!n(W.options.colors[0])){Uo=mt,Vo=[];for(var Yo=0;Yo<mt.length;Yo++)Vo[Yo]=yt(Uo[Yo],.5)}else Uo=fi.color||mt[br],Vo=ie!=="line"?yt(Uo,.5):Uo;var ni={label:fi.name||"",data:So[br],fill:ie==="area",borderColor:Uo,backgroundColor:Vo,borderWidth:2},da=ie==="line"||ie==="area"||ie==="scatter"||ie==="bubble";da&&(ni.pointBackgroundColor=Uo,ni.pointHoverBackgroundColor=Uo,ni.pointHitRadius=50),ie==="bubble"&&(ni.pointBackgroundColor=Vo,ni.pointHoverBackgroundColor=Vo,ni.pointHoverBorderWidth=2),fi.stack&&(ni.stack=fi.stack);var Fs=De(W,fi,"curve");Fs===!1?ni.tension=0:da&&(ni.tension=.4);var Na=De(W,fi,"points");Na===!1&&(ni.pointRadius=0,ni.pointHoverRadius=0),ni=i(ni,W.options.dataset||{}),ni=i(ni,fi.library||{}),ni=i(ni,fi.dataset||{}),Me.push(ni)}var Mo=W.options.xmin,Jn=W.options.xmax;if(W.xtype==="datetime"?(Yn(Mo)&&(N.scales.x.ticks.min=y(Mo).getTime()),Yn(Jn)&&(N.scales.x.ticks.max=y(Jn).getTime())):W.xtype==="number"&&(Yn(Mo)&&(N.scales.x.ticks.min=Mo),Yn(Jn)&&(N.scales.x.ticks.max=Jn)),W.xtype==="datetime"&&Ze.length===0&&(Yn(Mo)&&Ze.push(y(Mo)),Yn(Jn)&&Ze.push(y(Jn)),Ut=!1,dn=!1,nn=!1,Nn=!1,or=!1,on=!1),W.xtype==="datetime"&&Ze.length>0){var gr=(Yn(Mo)?y(Mo):Ze[0]).getTime(),nl=(Yn(Jn)?y(Jn):Ze[0]).getTime();for(br=1;br<Ze.length;br++){var ss=Ze[br].getTime();ss<gr&&(gr=ss),ss>nl&&(nl=ss)}var bi=(nl-gr)/(86400*1e3);if(!N.scales.x.time.unit){var Ao;if(Nn||bi>365*10?(N.scales.x.time.unit="year",Ao=365):nn||bi>30*10?(N.scales.x.time.unit="month",Ao=30):Ut||bi>10?(N.scales.x.time.unit="day",Ao=1):or||bi>.5?(N.scales.x.time.displayFormats={hour:"MMM d, h a"},N.scales.x.time.unit="hour",Ao=1/24):on&&(N.scales.x.time.displayFormats={minute:"h:mm a"},N.scales.x.time.unit="minute",Ao=1/24/60),Ao&&bi>0){var ls=W.element.offsetWidth;if(ls>0){var rl=Math.ceil(bi/Ao/(ls/100));dn&&Ao===1&&(rl=Math.ceil(rl/7)*7),N.scales.x.time.stepSize=rl}}}N.scales.x.time.tooltipFormat||(Ut?N.scales.x.time.tooltipFormat="PP":or?N.scales.x.time.tooltipFormat="MMM d, h a":on&&(N.scales.x.time.tooltipFormat="h:mm a"))}var Nl={labels:Ze,datasets:Me};return Nl},re=function(N){this.name="chartjs",this.library=N};re.prototype.renderLineChart=function(N,ie){var Me={};!N.options.max&&lt(N.data)&&(Me.max=1);var Ze=fn(N,i(Me,N.options));yr(N,Ze,ie);var mt=qn(N,Ze,ie||"line");N.xtype==="number"?(Ze.scales.x.type=Ze.scales.x.type||"linear",Ze.scales.x.position=Ze.scales.x.position||"bottom"):Ze.scales.x.type=N.xtype==="string"?"category":"time",this.drawChart(N,"line",mt,Ze)},re.prototype.renderPieChart=function(N){var ie=i({},ct);N.options.donut&&(ie.cutout="50%"),"legend"in N.options&&en(ie,N.options.legend),N.options.title&&Yt(ie,N.options.title),ie=i(ie,N.options.library||{}),yr(N,ie,"pie");for(var Me=[],Ze=[],mt=0;mt<N.data.length;mt++){var Ut=N.data[mt];Me.push(Ut[0]),Ze.push(Ut[1])}var dn={data:Ze,backgroundColor:N.options.colors||Mt};dn=i(dn,N.options.dataset||{});var cn={labels:Me,datasets:[dn]};this.drawChart(N,"pie",cn,ie)},re.prototype.renderColumnChart=function(N,ie){var Me;if(ie==="bar"){var Ze=i(ct,Dt);Ze.indexAxis="y",Ze.scales.x.grid.drawOnChartArea=!0,Ze.scales.y.grid.drawOnChartArea=!1,delete Ze.scales.y.ticks.maxTicksLimit,Me=S(Ze,en,Yt,In,Cn,Vn,rr,ur)(N,N.options)}else Me=fn(N,N.options);yr(N,Me,ie);var mt=qn(N,Me,"column");ie!=="bar"&&Vr(N,mt,Me),this.drawChart(N,"bar",mt,Me)},re.prototype.renderAreaChart=function(N){this.renderLineChart(N,"area")},re.prototype.renderBarChart=function(N){this.renderColumnChart(N,"bar")},re.prototype.renderScatterChart=function(N,ie){ie=ie||"scatter";var Me=fn(N,N.options);yr(N,Me,ie),"showLine"in Me||(Me.showLine=!1);var Ze=qn(N,Me,ie);Me.scales.x.type=Me.scales.x.type||"linear",Me.scales.x.position=Me.scales.x.position||"bottom","mode"in Me.interaction||(Me.interaction.mode="nearest"),this.drawChart(N,ie,Ze,Me)},re.prototype.renderBubbleChart=function(N){this.renderScatterChart(N,"bubble")},re.prototype.destroy=function(N){N.chart&&N.chart.destroy()},re.prototype.drawChart=function(N,ie,Me,Ze){if(this.destroy(N),!N.destroyed){var mt={type:ie,data:Me,options:Ze};N.options.code&&window.console.log("new Chart(ctx, "+JSON.stringify(mt)+");"),N.element.innerHTML="<canvas></canvas>";var Ut=N.element.getElementsByTagName("CANVAS")[0];N.chart=new this.library(Ut,mt)}};var ge={chart:{},xAxis:{title:{text:null},labels:{style:{fontSize:"12px"}}},yAxis:{title:{text:null},labels:{style:{fontSize:"12px"}}},title:{text:null},credits:{enabled:!1},legend:{borderWidth:0},tooltip:{style:{fontSize:"12px"}},plotOptions:{areaspline:{},area:{},series:{marker:{}}},time:{useUTC:!1}},Te=function(W,N,ie){N!==void 0?(W.legend.enabled=!!N,N&&N!==!0&&(N==="top"||N==="bottom"?W.legend.verticalAlign=N:(W.legend.layout="vertical",W.legend.verticalAlign="middle",W.legend.align=N))):ie&&(W.legend.enabled=!1)},Ue=function(W,N){W.title.text=N},Be=function(W,N){W.yAxis.min=N},$e=function(W,N){W.yAxis.max=N},Ne=function(W,N){var ie=N?N===!0?"normal":N:null;W.plotOptions.series.stacking=ie,W.plotOptions.area.stacking=ie,W.plotOptions.areaspline.stacking=ie},Ie=function(W,N){W.xAxis.title.text=N},je=function(W,N){W.yAxis.title.text=N},Xe=S(ge,Te,Ue,Be,$e,Ne,Ie,je),He=function(W,N,ie){var Me={prefix:W.options.prefix,suffix:W.options.suffix,thousands:W.options.thousands,decimal:W.options.decimal,precision:W.options.precision,round:W.options.round,zeros:W.options.zeros};ie!=="pie"&&!N.yAxis.labels.formatter&&(N.yAxis.labels.formatter=function(){return Oe("",this.value,Me)}),!N.tooltip.pointFormatter&&!N.tooltip.pointFormat&&(N.tooltip.pointFormatter=function(){return'<span style="color:'+this.color+'">\u25CF</span> '+Oe(this.series.name+": <b>",this.y,Me)+"</b><br/>"})},st=function(N){this.name="highcharts",this.library=N};st.prototype.renderLineChart=function(N,ie){ie=ie||"spline";var Me={};ie==="areaspline"&&(Me={plotOptions:{areaspline:{stacking:"normal"},area:{stacking:"normal"},series:{marker:{enabled:!1}}}}),N.options.curve===!1&&(ie==="areaspline"?ie="area":ie==="spline"&&(ie="line"));var Ze=Xe(N,N.options,Me),mt,Ut,dn;N.xtype==="number"?Ze.xAxis.type=Ze.xAxis.type||"linear":Ze.xAxis.type=N.xtype==="string"?"category":"datetime",Ze.chart.type||(Ze.chart.type=ie),He(N,Ze,ie);var cn=N.data;for(Ut=0;Ut<cn.length;Ut++){if(cn[Ut].name=cn[Ut].name||"Value",mt=cn[Ut].data,N.xtype==="datetime")for(dn=0;dn<mt.length;dn++)mt[dn][0]=mt[dn][0].getTime();cn[Ut].marker={symbol:"circle"},N.options.points===!1&&(cn[Ut].marker.enabled=!1)}this.drawChart(N,cn,Ze)},st.prototype.renderScatterChart=function(N){var ie=Xe(N,N.options,{});ie.chart.type="scatter",this.drawChart(N,N.data,ie)},st.prototype.renderPieChart=function(N){var ie=i(ge,{});N.options.colors&&(ie.colors=N.options.colors),N.options.donut&&(ie.plotOptions={pie:{innerSize:"50%"}}),"legend"in N.options&&Te(ie,N.options.legend),N.options.title&&Ue(ie,N.options.title);var Me=i(ie,N.options.library||{});He(N,Me,"pie");var Ze=[{type:"pie",name:N.options.label||"Value",data:N.data}];this.drawChart(N,Ze,Me)},st.prototype.renderColumnChart=function(N,ie){ie=ie||"column";var Me=N.data,Ze=Xe(N,N.options),mt,Ut,dn,cn,nn=[],Nn=[];for(Ze.chart.type=ie,He(N,Ze,ie),mt=0;mt<Me.length;mt++)for(dn=Me[mt],Ut=0;Ut<dn.data.length;Ut++)cn=dn.data[Ut],nn[cn[0]]||(nn[cn[0]]=new Array(Me.length),Nn.push(cn[0])),nn[cn[0]][mt]=cn[1];N.xtype==="number"&&Nn.sort(V),Ze.xAxis.categories=Nn;var or=[],on;for(mt=0;mt<Me.length;mt++){for(cn=[],Ut=0;Ut<Nn.length;Ut++)cn.push(nn[Nn[Ut]][mt]||0);on={name:Me[mt].name||"Value",data:cn},Me[mt].stack&&(on.stack=Me[mt].stack),or.push(on)}this.drawChart(N,or,Ze)},st.prototype.renderBarChart=function(N){this.renderColumnChart(N,"bar")},st.prototype.renderAreaChart=function(N){this.renderLineChart(N,"areaspline")},st.prototype.destroy=function(N){N.chart&&N.chart.destroy()},st.prototype.drawChart=function(N,ie,Me){this.destroy(N),!N.destroyed&&(Me.chart.renderTo=N.element.id,Me.series=ie,N.options.code&&window.console.log("new Highcharts.Chart("+JSON.stringify(Me)+");"),N.chart=new this.library.Chart(Me))};var Xt={},Qt=[],un={chartArea:{},fontName:"'Lucida Grande', 'Lucida Sans Unicode', Verdana, Arial, Helvetica, sans-serif",pointSize:6,legend:{textStyle:{fontSize:12,color:"#444"},alignment:"center",position:"right"},curveType:"function",hAxis:{textStyle:{color:"#666",fontSize:12},titleTextStyle:{},gridlines:{color:"transparent"},baselineColor:"#ccc",viewWindow:{}},vAxis:{textStyle:{color:"#666",fontSize:12},titleTextStyle:{},baselineColor:"#ccc",viewWindow:{}},tooltip:{textStyle:{color:"#666",fontSize:12}}},Ln=function(W,N,ie){if(N!==void 0){var Me;N?N===!0?Me="right":Me=N:Me="none",W.legend.position=Me}else ie&&(W.legend.position="none")},xn=function(W,N){W.title=N,W.titleTextStyle={color:"#333",fontSize:"20px"}},An=function(W,N){W.vAxis.viewWindow.min=N},bn=function(W,N){W.vAxis.viewWindow.max=N},Xn=function(W,N){W.hAxis.viewWindow.min=N},Sr=function(W,N){W.hAxis.viewWindow.max=N},ji=function(W,N){W.isStacked=N||!1},Jr=function(W,N){W.hAxis.title=N,W.hAxis.titleTextStyle.italic=!1},Tr=function(W,N){W.vAxis.title=N,W.vAxis.titleTextStyle.italic=!1},ci=S(un,Ln,xn,An,bn,ji,Jr,Tr),Br=function(W){window.attachEvent?window.attachEvent("onresize",W):window.addEventListener&&window.addEventListener("resize",W,!0),W()},Ht=function(N){this.name="google",this.library=N};Ht.prototype.renderLineChart=function(N){var ie=this;this.waitForLoaded(N,function(){var Me={};N.options.curve===!1&&(Me.curveType="none"),N.options.points===!1&&(Me.pointSize=0);var Ze=ci(N,N.options,Me),mt=ie.createDataTable(N.data,N.xtype);ie.drawChart(N,"LineChart",mt,Ze)})},Ht.prototype.renderPieChart=function(N){var ie=this;this.waitForLoaded(N,function(){var Me={chartArea:{top:"10%",height:"80%"},legend:{}};N.options.colors&&(Me.colors=N.options.colors),N.options.donut&&(Me.pieHole=.5),"legend"in N.options&&Ln(Me,N.options.legend),N.options.title&&xn(Me,N.options.title);var Ze=i(i(un,Me),N.options.library||{}),mt=new ie.library.visualization.DataTable;mt.addColumn("string",""),mt.addColumn("number","Value"),mt.addRows(N.data),ie.drawChart(N,"PieChart",mt,Ze)})},Ht.prototype.renderColumnChart=function(N){var ie=this;this.waitForLoaded(N,function(){var Me=ci(N,N.options),Ze=ie.createDataTable(N.data,N.xtype);ie.drawChart(N,"ColumnChart",Ze,Me)})},Ht.prototype.renderBarChart=function(N){var ie=this;this.waitForLoaded(N,function(){var Me={hAxis:{gridlines:{color:"#ccc"}}},Ze=S(un,Ln,xn,Xn,Sr,ji,Jr,Tr)(N,N.options,Me),mt=ie.createDataTable(N.data,N.xtype);ie.drawChart(N,"BarChart",mt,Ze)})},Ht.prototype.renderAreaChart=function(N){var ie=this;this.waitForLoaded(N,function(){var Me={isStacked:!0,pointSize:0,areaOpacity:.5},Ze=ci(N,N.options,Me),mt=ie.createDataTable(N.data,N.xtype);ie.drawChart(N,"AreaChart",mt,Ze)})},Ht.prototype.renderGeoChart=function(N){var ie=this;this.waitForLoaded(N,"geochart",function(){var Me={legend:"none",colorAxis:{colors:N.options.colors||["#f6c7b6","#ce502d"]}},Ze=i(i(un,Me),N.options.library||{}),mt=new ie.library.visualization.DataTable;mt.addColumn("string",""),mt.addColumn("number",N.options.label||"Value"),mt.addRows(N.data),ie.drawChart(N,"GeoChart",mt,Ze)})},Ht.prototype.renderScatterChart=function(N){var ie=this;this.waitForLoaded(N,function(){var Me={},Ze=ci(N,N.options,Me),mt=N.data,Ut=[],dn,cn,nn,Nn;for(dn=0;dn<mt.length;dn++)for(mt[dn].name=mt[dn].name||"Value",Nn=mt[dn].data,cn=0;cn<Nn.length;cn++){var or=new Array(mt.length+1);or[0]=Nn[cn][0],or[dn+1]=Nn[cn][1],Ut.push(or)}for(nn=new ie.library.visualization.DataTable,nn.addColumn("number",""),dn=0;dn<mt.length;dn++)nn.addColumn("number",mt[dn].name);nn.addRows(Ut),ie.drawChart(N,"ScatterChart",nn,Ze)})},Ht.prototype.renderTimeline=function(N){var ie=this;this.waitForLoaded(N,"timeline",function(){var Me={legend:"none"};N.options.colors&&(Me.colors=N.options.colors);var Ze=i(i(un,Me),N.options.library||{}),mt=new ie.library.visualization.DataTable;mt.addColumn({type:"string",id:"Name"}),mt.addColumn({type:"date",id:"Start"}),mt.addColumn({type:"date",id:"End"}),mt.addRows(N.data),N.element.style.lineHeight="normal",ie.drawChart(N,"Timeline",mt,Ze)})},Ht.prototype.destroy=function(N){N.chart&&N.chart.clearChart()},Ht.prototype.drawChart=function(N,ie,Me,Ze){this.destroy(N),!N.destroyed&&(N.options.code&&window.console.log("var data = new google.visualization.DataTable("+Me.toJSON()+`);
var chart = new google.visualization.`+ie+`(element);
chart.draw(data, `+JSON.stringify(Ze)+");"),N.chart=new this.library.visualization[ie](N.element),Br(function(){N.chart.draw(Me,Ze)}))},Ht.prototype.waitForLoaded=function(N,ie,Me){var Ze=this;if(Me||(Me=ie,ie="corechart"),Qt.push({pack:ie,callback:Me}),Xt[ie])this.runCallbacks();else{Xt[ie]=!0;var mt={packages:[ie],callback:function(){Ze.runCallbacks()}},Ut=N.__config();Ut.language&&(mt.language=Ut.language),ie==="geochart"&&Ut.mapsApiKey&&(mt.mapsApiKey=Ut.mapsApiKey),this.library.charts.load("current",mt)}},Ht.prototype.runCallbacks=function(){for(var N,ie,Me=0;Me<Qt.length;Me++)N=Qt[Me],ie=this.library.visualization&&(N.pack==="corechart"&&this.library.visualization.LineChart||N.pack==="timeline"&&this.library.visualization.Timeline||N.pack==="geochart"&&this.library.visualization.GeoChart),ie&&(N.callback(),Qt.splice(Me,1),Me--)},Ht.prototype.createDataTable=function(N,ie){var Me,Ze,mt,Ut,dn,cn=[],nn=[];for(Me=0;Me<N.length;Me++)for(mt=N[Me],N[Me].name=N[Me].name||"Value",Ze=0;Ze<mt.data.length;Ze++)Ut=mt.data[Ze],dn=ie==="datetime"?Ut[0].getTime():Ut[0],cn[dn]||(cn[dn]=new Array(N.length),nn.push(dn)),cn[dn][Me]=m(Ut[1]);var Nn=[],or=!0,on;for(Ze=0;Ze<nn.length;Ze++)Me=nn[Ze],ie==="datetime"?(on=new Date(m(Me)),or=or&&ae(on)):ie==="number"?on=m(Me):on=Me,Nn.push([on].concat(cn[Me]));if(ie==="datetime")Nn.sort(L);else if(ie==="number"){for(Nn.sort(H),Me=0;Me<Nn.length;Me++)Nn[Me][0]=d(Nn[Me][0]);ie="string"}var zn=new this.library.visualization.DataTable;for(ie=ie==="datetime"&&or?"date":ie,zn.addColumn(ie,""),Me=0;Me<N.length;Me++)zn.addColumn("number",N[Me].name);return zn.addRows(Nn),zn};function Tn(W,N){var ie=[],Me,Ze;if(N==="number"?Ze=m:N==="datetime"?Ze=y:Ze=d,N==="bubble")for(Me=0;Me<W.length;Me++)ie.push([m(W[Me][0]),m(W[Me][1]),m(W[Me][2])]);else for(Me=0;Me<W.length;Me++)ie.push([Ze(W[Me][0]),m(W[Me][1])]);return N==="datetime"?ie.sort(L):N==="number"&&ie.sort(H),ie}function to(W,N,ie){return Ki(W)?(ie.xmin||ie.xmax)&&(!ie.xmin||b(ie.xmin))&&(!ie.xmax||b(ie.xmax))?"datetime":"number":po(W,te)?"number":!N&&po(W,b)?"datetime":"string"}function po(W,N){var ie,Me,Ze;for(ie=0;ie<W.length;ie++)for(Ze=x(W[ie].data),Me=0;Me<Ze.length;Me++)if(!N(Ze[Me][0]))return!1;return!0}function mo(W){var N=[],ie,Me;for(ie=0;ie<W.length;ie++){var Ze={};for(Me in W[ie])W[ie].hasOwnProperty(Me)&&(Ze[Me]=W[ie][Me]);N.push(Ze)}return N}function vi(W,N,ie){var Me,Ze=W.options,mt=W.rawData;for(W.singleSeriesFormat=!n(mt)||typeof mt[0]!="object"||n(mt[0]),W.singleSeriesFormat&&(mt=[{name:Ze.label,data:mt}]),mt=mo(mt),Me=0;Me<mt.length;Me++)mt[Me].data=x(mt[Me].data);for(W.xtype=N||(Ze.discrete?"string":to(mt,ie,Ze)),Me=0;Me<mt.length;Me++)mt[Me].data=Tn(mt[Me].data,W.xtype);return mt}function Zr(W){var N=x(W.rawData),ie;for(ie=0;ie<N.length;ie++)N[ie]=[d(N[ie][0]),m(N[ie][1])];return N}function Ki(W,N){if(N==="PieChart"||N==="GeoChart"||N==="Timeline")return W.length===0;for(var ie=0;ie<W.length;ie++)if(W[ie].data.length>0)return!1;return!0}function xo(W){var N=W.element,ie=document.createElement("a"),Me=W.options.download;Me===!0?Me={}:typeof Me=="string"&&(Me={filename:Me}),ie.download=Me.filename||"chart.png",ie.style.position="absolute",ie.style.top="20px",ie.style.right="20px",ie.style.zIndex=1e3,ie.style.lineHeight="20px",ie.target="_blank";var Ze=document.createElement("img");Ze.alt="Download",Ze.style.border="none",Ze.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABCFBMVEUAAADMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMywEsqxAAAAV3RSTlMAAQIDBggJCgsMDQ4PERQaHB0eISIjJCouLzE0OTo/QUJHSUpLTU5PUllhYmltcHh5foWLjI+SlaCio6atr7S1t7m6vsHHyM7R2tze5Obo7fHz9ff5+/1hlxK2AAAA30lEQVQYGUXBhVYCQQBA0TdYWAt2d3d3YWAHyur7/z9xgD16Lw0DW+XKx+1GgX+FRzM3HWQWrHl5N/oapW5RPe0PkBu+UYeICvozTWZVK23Ao04B79oJrOsJDOoxkZoQPWgX29pHpCZEk7rEvQYiNSFq1UMqvlCjJkRBS1R8hb00Vb/TajtBL7nTHE1X1vyMQF732dQhyF2o6SAwrzP06iUQzvwsArlnzcOdrgBhJyHa1QOgO9U1GsKuvjUTjavliZYQ8nNPapG6sap/3nrIdJ6bOWzmX/fy0XVpfzZP3S8OJT3g9EEiJwAAAABJRU5ErkJggg==",ie.appendChild(Ze),N.style.position="relative",W.__downloadAttached=!0,W.__enterEvent=A(N,"mouseover",function(mt){var Ut=mt.relatedTarget;(!Ut||Ut!==this&&!G(this,Ut))&&W.options.download&&(ie.href=W.toImage(Me),N.appendChild(ie))}),W.__leaveEvent=A(N,"mouseout",function(mt){var Ut=mt.relatedTarget;(!Ut||Ut!==this&&!G(this,Ut))&&ie.parentNode&&ie.parentNode.removeChild(ie)})}function A(W,N,ie){if(W.addEventListener)return W.addEventListener(N,ie,!1),ie;var Me=function(){return ie.call(W,window.event)};return W.attachEvent("on"+N,Me),Me}function R(W,N,ie){W.removeEventListener?W.removeEventListener(N,ie,!1):W.detachEvent("on"+N,ie)}function G(W,N){if(W===N)return!1;for(;N&&N!==W;)N=N.parentNode;return N===W}var ue=[],Re=0,qe=4;function rt(W,N,ie){ue.push([W,N,ie]),et()}function et(){if(Re<qe){var W=ue.shift();W&&(Re++,ft(W[0],W[1],W[2]),et())}}function bt(){Re--,et()}function ft(W,N,ie){kt(W,N,function(Me,Ze,mt){var Ut=typeof mt=="string"?mt:mt.message;ie(Ut)})}function kt(W,N,ie){var Me=window.jQuery||window.Zepto||window.$;if(Me&&Me.ajax)Me.ajax({dataType:"json",url:W,success:N,error:ie,complete:bt});else{var Ze=new XMLHttpRequest;Ze.open("GET",W,!0),Ze.setRequestHeader("Content-Type","application/json"),Ze.onload=function(){bt(),Ze.status===200?N(JSON.parse(Ze.responseText),Ze.statusText,Ze):ie(Ze,"error",Ze.statusText)},Ze.send()}}var Nt={},an=[];function $t(W,N){document.body.innerText?W.innerText=N:W.textContent=N}function rn(W,N,ie){ie||(N="Error Loading Chart: "+N),$t(W,N),W.style.color="#ff0000"}function $n(W){try{W.__render()}catch(N){throw rn(W.element,N.message),N}}function ei(W,N,ie){if(ie&&W.options.loading&&(typeof N=="string"||typeof N=="function")&&$t(W.element,W.options.loading),typeof N=="string")rt(N,function(Me){W.rawData=Me,$n(W)},function(Me){rn(W.element,Me)});else if(typeof N=="function")try{N(function(Me){W.rawData=Me,$n(W)},function(Me){rn(W.element,Me,!0)})}catch(Me){rn(W.element,Me,!0)}else W.rawData=N,$n(W)}function ir(W){if(W){if(W.product==="Highcharts")return st;if(W.charts)return Ht;if(e(W))return re}throw new Error("Unknown adapter")}function Dr(W){var N=ir(W),ie=new N(W);an.indexOf(ie)===-1&&an.push(ie)}function ti(){"Chart"in window&&Dr(window.Chart),"Highcharts"in window&&Dr(window.Highcharts),window.google&&window.google.charts&&Dr(window.google)}function go(W,N){if(Ki(N.data,W)){var ie=N.options.empty||N.options.messages&&N.options.messages.empty||"No data";$t(N.element,ie)}else sa(W,N),N.options.download&&!N.__downloadAttached&&N.adapter==="chartjs"&&xo(N)}function sa(W,N){var ie,Me,Ze,mt;for(Ze="render"+W,mt=N.options.adapter,ti(),ie=0;ie<an.length;ie++)if(Me=an[ie],(!mt||mt===Me.name)&&e(Me[Ze]))return N.adapter=Me.name,N.__adapterObject=Me,Me[Ze](N);throw an.length>0?new Error("No charting library found for "+W):new Error("No charting libraries found - be sure to include one before your charts")}var Qn=function(N,ie,Me){var Ze;if(typeof N=="string"&&(Ze=N,N=document.getElementById(N),!N))throw new Error("No element with id "+Ze);this.element=N,this.options=i(Wr.options,Me||{}),this.dataSource=ie,Wr.charts[N.id]=this,ei(this,ie,!0),this.options.refresh&&this.startRefresh()};Qn.prototype.getElement=function(){return this.element},Qn.prototype.getDataSource=function(){return this.dataSource},Qn.prototype.getData=function(){return this.data},Qn.prototype.getOptions=function(){return this.options},Qn.prototype.getChartObject=function(){return this.chart},Qn.prototype.getAdapter=function(){return this.adapter},Qn.prototype.updateData=function(N,ie){this.dataSource=N,ie&&this.__updateOptions(ie),ei(this,N,!0)},Qn.prototype.setOptions=function(N){this.__updateOptions(N),this.redraw()},Qn.prototype.redraw=function(){ei(this,this.rawData)},Qn.prototype.refreshData=function(){if(typeof this.dataSource=="string"){var N=this.dataSource.indexOf("?")===-1?"?":"&",ie=this.dataSource+N+"_="+new Date().getTime();ei(this,ie)}else typeof this.dataSource=="function"&&ei(this,this.dataSource)},Qn.prototype.startRefresh=function(){var N=this,ie=this.options.refresh;if(ie&&typeof this.dataSource!="string"&&typeof this.dataSource!="function")throw new Error("Data source must be a URL or callback for refresh");if(!this.intervalId)if(ie)this.intervalId=setInterval(function(){N.refreshData()},ie*1e3);else throw new Error("No refresh interval")},Qn.prototype.stopRefresh=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},Qn.prototype.toImage=function(N){if(this.adapter==="chartjs")if(N&&N.background&&N.background!=="transparent"){var ie=this.chart.canvas,Me=this.chart.ctx,Ze=document.createElement("canvas"),mt=Ze.getContext("2d");return Ze.width=Me.canvas.width,Ze.height=Me.canvas.height,mt.fillStyle=N.background,mt.fillRect(0,0,Ze.width,Ze.height),mt.drawImage(ie,0,0),Ze.toDataURL("image/png")}else return this.chart.toBase64Image();else throw new Error("Feature only available for Chart.js")},Qn.prototype.destroy=function(){this.destroyed=!0,this.stopRefresh(),this.__adapterObject&&this.__adapterObject.destroy(this),this.__enterEvent&&R(this.element,"mouseover",this.__enterEvent),this.__leaveEvent&&R(this.element,"mouseout",this.__leaveEvent)},Qn.prototype.__updateOptions=function(N){var ie=N.refresh&&N.refresh!==this.options.refresh;this.options=i(Wr.options,N),ie&&(this.stopRefresh(),this.startRefresh())},Qn.prototype.__render=function(){this.data=this.__processData(),go(this.__chartName(),this)},Qn.prototype.__config=function(){return Nt};var no=function(W){function N(){W.apply(this,arguments)}return W&&(N.__proto__=W),N.prototype=Object.create(W&&W.prototype),N.prototype.constructor=N,N.prototype.__processData=function(){return vi(this)},N.prototype.__chartName=function(){return"LineChart"},N}(Qn),el=function(W){function N(){W.apply(this,arguments)}return W&&(N.__proto__=W),N.prototype=Object.create(W&&W.prototype),N.prototype.constructor=N,N.prototype.__processData=function(){return Zr(this)},N.prototype.__chartName=function(){return"PieChart"},N}(Qn),la=function(W){function N(){W.apply(this,arguments)}return W&&(N.__proto__=W),N.prototype=Object.create(W&&W.prototype),N.prototype.constructor=N,N.prototype.__processData=function(){return vi(this,null,!0)},N.prototype.__chartName=function(){return"ColumnChart"},N}(Qn),ua=function(W){function N(){W.apply(this,arguments)}return W&&(N.__proto__=W),N.prototype=Object.create(W&&W.prototype),N.prototype.constructor=N,N.prototype.__processData=function(){return vi(this,null,!0)},N.prototype.__chartName=function(){return"BarChart"},N}(Qn),Aa=function(W){function N(){W.apply(this,arguments)}return W&&(N.__proto__=W),N.prototype=Object.create(W&&W.prototype),N.prototype.constructor=N,N.prototype.__processData=function(){return vi(this)},N.prototype.__chartName=function(){return"AreaChart"},N}(Qn),Da=function(W){function N(){W.apply(this,arguments)}return W&&(N.__proto__=W),N.prototype=Object.create(W&&W.prototype),N.prototype.constructor=N,N.prototype.__processData=function(){return Zr(this)},N.prototype.__chartName=function(){return"GeoChart"},N}(Qn),ka=function(W){function N(){W.apply(this,arguments)}return W&&(N.__proto__=W),N.prototype=Object.create(W&&W.prototype),N.prototype.constructor=N,N.prototype.__processData=function(){return vi(this,"number")},N.prototype.__chartName=function(){return"ScatterChart"},N}(Qn),os=function(W){function N(){W.apply(this,arguments)}return W&&(N.__proto__=W),N.prototype=Object.create(W&&W.prototype),N.prototype.constructor=N,N.prototype.__processData=function(){return vi(this,"bubble")},N.prototype.__chartName=function(){return"BubbleChart"},N}(Qn),Ai=function(W){function N(){W.apply(this,arguments)}return W&&(N.__proto__=W),N.prototype=Object.create(W&&W.prototype),N.prototype.constructor=N,N.prototype.__processData=function(){var Me,Ze=this.rawData;for(Me=0;Me<Ze.length;Me++)Ze[Me][1]=y(Ze[Me][1]),Ze[Me][2]=y(Ze[Me][2]);return Ze},N.prototype.__chartName=function(){return"Timeline"},N}(Qn),Wr={LineChart:no,PieChart:el,ColumnChart:la,BarChart:ua,AreaChart:Aa,GeoChart:Da,ScatterChart:ka,BubbleChart:os,Timeline:Ai,charts:{},configure:function(W){for(var N in W)W.hasOwnProperty(N)&&(Nt[N]=W[N])},setDefaultOptions:function(W){Wr.options=W},eachChart:function(W){for(var N in Wr.charts)Wr.charts.hasOwnProperty(N)&&W(Wr.charts[N])},destroyAll:function(){for(var W in Wr.charts)Wr.charts.hasOwnProperty(W)&&(Wr.charts[W].destroy(),delete Wr.charts[W])},config:Nt,options:{},adapters:an,addAdapter:Dr,use:function(W){return Dr(W),Wr}};return typeof window<"u"&&!window.Chartkick&&(window.Chartkick=Wr,document.addEventListener("turbolinks:before-render",function(){Wr.destroyAll()}),setTimeout(function(){window.dispatchEvent(new Event("chartkick:load"))},0)),Wr.default=Wr,Wr})});var Gu=eu((fh,xm)=>{(function(){var n,e="4.17.21",t=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,m="__lodash_placeholder__",y=1,x=2,S=4,L=1,H=2,V=1,U=2,Z=4,ae=8,le=16,Ae=32,ve=64,b=128,te=256,ye=512,Oe=30,De="...",lt=800,ct=16,Dt=1,Mt=2,en=3,Yt=1/0,At=9007199254740991,tn=17976931348623157e292,In=0/0,Cn=4294967295,Vn=Cn-1,rr=Cn>>>1,ur=[["ary",b],["bind",V],["bindKey",U],["curry",ae],["curryRight",le],["flip",ye],["partial",Ae],["partialRight",ve],["rearg",te]],yt="[object Arguments]",Yn="[object Array]",Vr="[object AsyncFunction]",yr="[object Boolean]",fn="[object Date]",qn="[object DOMException]",re="[object Error]",ge="[object Function]",Te="[object GeneratorFunction]",Ue="[object Map]",Be="[object Number]",$e="[object Null]",Ne="[object Object]",Ie="[object Promise]",je="[object Proxy]",Xe="[object RegExp]",He="[object Set]",st="[object String]",Xt="[object Symbol]",Qt="[object Undefined]",un="[object WeakMap]",Ln="[object WeakSet]",xn="[object ArrayBuffer]",An="[object DataView]",bn="[object Float32Array]",Xn="[object Float64Array]",Sr="[object Int8Array]",ji="[object Int16Array]",Jr="[object Int32Array]",Tr="[object Uint8Array]",ci="[object Uint8ClampedArray]",Br="[object Uint16Array]",Ht="[object Uint32Array]",Tn=/\b__p \+= '';/g,to=/\b(__p \+=) '' \+/g,po=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mo=/&(?:amp|lt|gt|quot|#39);/g,vi=/[&<>"']/g,Zr=RegExp(mo.source),Ki=RegExp(vi.source),xo=/<%-([\s\S]+?)%>/g,A=/<%([\s\S]+?)%>/g,R=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ue=/^\w*$/,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qe=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(qe.source),et=/^\s+/,bt=/\s/,ft=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kt=/\{\n\/\* \[wrapped with (.+)\] \*/,Nt=/,? & /,an=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$t=/[()=,{}\[\]\/\s]/,rn=/\\(\\)?/g,$n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ei=/\w*$/,ir=/^[-+]0x[0-9a-f]+$/i,Dr=/^0b[01]+$/i,ti=/^\[object .+?Constructor\]$/,go=/^0o[0-7]+$/i,sa=/^(?:0|[1-9]\d*)$/,Qn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,no=/($^)/,el=/['\n\r\u2028\u2029\\]/g,la="\\ud800-\\udfff",ua="\\u0300-\\u036f",Aa="\\ufe20-\\ufe2f",Da="\\u20d0-\\u20ff",ka=ua+Aa+Da,os="\\u2700-\\u27bf",Ai="a-z\\xdf-\\xf6\\xf8-\\xff",Wr="\\xac\\xb1\\xd7\\xf7",W="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",N="\\u2000-\\u206f",ie=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Me="A-Z\\xc0-\\xd6\\xd8-\\xde",Ze="\\ufe0e\\ufe0f",mt=Wr+W+N+ie,Ut="['\u2019]",dn="["+la+"]",cn="["+mt+"]",nn="["+ka+"]",Nn="\\d+",or="["+os+"]",on="["+Ai+"]",zn="[^"+la+mt+Nn+os+Ai+Me+"]",Yr="\\ud83c[\\udffb-\\udfff]",yi="(?:"+nn+"|"+Yr+")",Eo="[^"+la+"]",Co="(?:\\ud83c[\\udde6-\\uddff]){2}",br="[\\ud800-\\udbff][\\udc00-\\udfff]",kr="["+Me+"]",fi="\\u200d",ca="(?:"+on+"|"+zn+")",vo="(?:"+kr+"|"+zn+")",mi="(?:"+Ut+"(?:d|ll|m|re|s|t|ve))?",So="(?:"+Ut+"(?:D|LL|M|RE|S|T|VE))?",fa=yi+"?",ro="["+Ze+"]?",To="(?:"+fi+"(?:"+[Eo,Co,br].join("|")+")"+ro+fa+")*",Rs="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oa="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",as=ro+fa+To,Ia="(?:"+[or,Co,br].join("|")+")"+as,tl="(?:"+[Eo+nn+"?",nn,Co,br,dn].join("|")+")",Uo=RegExp(Ut,"g"),Vo=RegExp(nn,"g"),Yo=RegExp(Yr+"(?="+Yr+")|"+tl+as,"g"),ni=RegExp([kr+"?"+on+"+"+mi+"(?="+[cn,kr,"$"].join("|")+")",vo+"+"+So+"(?="+[cn,kr+ca,"$"].join("|")+")",kr+"?"+ca+"+"+mi,kr+"+"+So,Oa,Rs,Nn,Ia].join("|"),"g"),da=RegExp("["+fi+la+ka+Ze+"]"),Fs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Na=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Mo=-1,Jn={};Jn[bn]=Jn[Xn]=Jn[Sr]=Jn[ji]=Jn[Jr]=Jn[Tr]=Jn[ci]=Jn[Br]=Jn[Ht]=!0,Jn[yt]=Jn[Yn]=Jn[xn]=Jn[yr]=Jn[An]=Jn[fn]=Jn[re]=Jn[ge]=Jn[Ue]=Jn[Be]=Jn[Ne]=Jn[Xe]=Jn[He]=Jn[st]=Jn[un]=!1;var gr={};gr[yt]=gr[Yn]=gr[xn]=gr[An]=gr[yr]=gr[fn]=gr[bn]=gr[Xn]=gr[Sr]=gr[ji]=gr[Jr]=gr[Ue]=gr[Be]=gr[Ne]=gr[Xe]=gr[He]=gr[st]=gr[Xt]=gr[Tr]=gr[ci]=gr[Br]=gr[Ht]=!0,gr[re]=gr[ge]=gr[un]=!1;var nl={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},ss={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bi={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ao={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ls=parseFloat,rl=parseInt,Nl=typeof global=="object"&&global&&global.Object===Object&&global,ha=typeof self=="object"&&self&&self.Object===Object&&self,p=Nl||ha||Function("return this")(),w=typeof fh=="object"&&fh&&!fh.nodeType&&fh,M=w&&typeof xm=="object"&&xm&&!xm.nodeType&&xm,k=M&&M.exports===w,B=k&&Nl.process,z=function(){try{var We=M&&M.require&&M.require("util").types;return We||B&&B.binding&&B.binding("util")}catch{}}(),K=z&&z.isArrayBuffer,Ee=z&&z.isDate,Se=z&&z.isMap,Ve=z&&z.isRegExp,at=z&&z.isSet,Et=z&&z.isTypedArray;function Ke(We,gt,ot){switch(ot.length){case 0:return We.call(gt);case 1:return We.call(gt,ot[0]);case 2:return We.call(gt,ot[0],ot[1]);case 3:return We.call(gt,ot[0],ot[1],ot[2])}return We.apply(gt,ot)}function dt(We,gt,ot,Gt){for(var Pn=-1,fr=We==null?0:We.length;++Pn<fr;){var ai=We[Pn];gt(Gt,ai,ot(ai),We)}return Gt}function Jt(We,gt){for(var ot=-1,Gt=We==null?0:We.length;++ot<Gt&&gt(We[ot],ot,We)!==!1;);return We}function Rn(We,gt){for(var ot=We==null?0:We.length;ot--&&gt(We[ot],ot,We)!==!1;);return We}function sn(We,gt){for(var ot=-1,Gt=We==null?0:We.length;++ot<Gt;)if(!gt(We[ot],ot,We))return!1;return!0}function _r(We,gt){for(var ot=-1,Gt=We==null?0:We.length,Pn=0,fr=[];++ot<Gt;){var ai=We[ot];gt(ai,ot,We)&&(fr[Pn++]=ai)}return fr}function $r(We,gt){var ot=We==null?0:We.length;return!!ot&&ri(We,gt,0)>-1}function _i(We,gt,ot){for(var Gt=-1,Pn=We==null?0:We.length;++Gt<Pn;)if(ot(gt,We[Gt]))return!0;return!1}function hn(We,gt){for(var ot=-1,Gt=We==null?0:We.length,Pn=Array(Gt);++ot<Gt;)Pn[ot]=gt(We[ot],ot,We);return Pn}function pn(We,gt){for(var ot=-1,Gt=gt.length,Pn=We.length;++ot<Gt;)We[Pn+ot]=gt[ot];return We}function wi(We,gt,ot,Gt){var Pn=-1,fr=We==null?0:We.length;for(Gt&&fr&&(ot=We[++Pn]);++Pn<fr;)ot=gt(ot,We[Pn],Pn,We);return ot}function Zn(We,gt,ot,Gt){var Pn=We==null?0:We.length;for(Gt&&Pn&&(ot=We[--Pn]);Pn--;)ot=gt(ot,We[Pn],Pn,We);return ot}function Or(We,gt){for(var ot=-1,Gt=We==null?0:We.length;++ot<Gt;)if(gt(We[ot],ot,We))return!0;return!1}var us=va("length");function pa(We){return We.split("")}function Di(We){return We.match(an)||[]}function ma(We,gt,ot){var Gt;return ot(We,function(Pn,fr,ai){if(gt(Pn,fr,ai))return Gt=fr,!1}),Gt}function $o(We,gt,ot,Gt){for(var Pn=We.length,fr=ot+(Gt?1:-1);Gt?fr--:++fr<Pn;)if(gt(We[fr],fr,We))return fr;return-1}function ri(We,gt,ot){return gt===gt?Vc(We,gt,ot):$o(We,Ui,ot)}function Lo(We,gt,ot,Gt){for(var Pn=ot-1,fr=We.length;++Pn<fr;)if(Gt(We[Pn],gt))return Pn;return-1}function Ui(We){return We!==We}function ga(We,gt){var ot=We==null?0:We.length;return ot?Go(We,gt)/ot:In}function va(We){return function(gt){return gt==null?n:gt[We]}}function Ro(We){return function(gt){return We==null?n:We[gt]}}function Pl(We,gt,ot,Gt,Pn){return Pn(We,function(fr,ai,wr){ot=Gt?(Gt=!1,fr):gt(ot,fr,ai,wr)}),ot}function vr(We,gt){var ot=We.length;for(We.sort(gt);ot--;)We[ot]=We[ot].value;return We}function Go(We,gt){for(var ot,Gt=-1,Pn=We.length;++Gt<Pn;){var fr=gt(We[Gt]);fr!==n&&(ot=ot===n?fr:ot+fr)}return ot}function Ll(We,gt){for(var ot=-1,Gt=Array(We);++ot<We;)Gt[ot]=gt(ot);return Gt}function Rl(We,gt){return hn(gt,function(ot){return[ot,We[ot]]})}function hu(We){return We&&We.slice(0,oi(We)+1).replace(et,"")}function Gr(We){return function(gt){return We(gt)}}function pu(We,gt){return hn(gt,function(ot){return We[ot]})}function io(We,gt){return We.has(gt)}function ki(We,gt){for(var ot=-1,Gt=We.length;++ot<Gt&&ri(gt,We[ot],0)>-1;);return ot}function Zu(We,gt){for(var ot=We.length;ot--&&ri(gt,We[ot],0)>-1;);return ot}function ec(We,gt){for(var ot=We.length,Gt=0;ot--;)We[ot]===gt&&++Gt;return Gt}var il=Ro(nl),ol=Ro(ss);function al(We){return"\\"+Ao[We]}function Pa(We,gt){return We==null?n:We[gt]}function Oi(We){return da.test(We)}function sl(We){return Fs.test(We)}function Bs(We){for(var gt,ot=[];!(gt=We.next()).done;)ot.push(gt.value);return ot}function Xi(We){var gt=-1,ot=Array(We.size);return We.forEach(function(Gt,Pn){ot[++gt]=[Pn,Gt]}),ot}function xi(We,gt){return function(ot){return We(gt(ot))}}function Do(We,gt){for(var ot=-1,Gt=We.length,Pn=0,fr=[];++ot<Gt;){var ai=We[ot];(ai===gt||ai===m)&&(We[ot]=m,fr[Pn++]=ot)}return fr}function cs(We){var gt=-1,ot=Array(We.size);return We.forEach(function(Gt){ot[++gt]=Gt}),ot}function tc(We){var gt=-1,ot=Array(We.size);return We.forEach(function(Gt){ot[++gt]=[Gt,Gt]}),ot}function Vc(We,gt,ot){for(var Gt=ot-1,Pn=We.length;++Gt<Pn;)if(We[Gt]===gt)return Gt;return-1}function Ir(We,gt,ot){for(var Gt=ot+1;Gt--;)if(We[Gt]===gt)return Gt;return Gt}function ya(We){return Oi(We)?Fl(We):us(We)}function ii(We){return Oi(We)?ll(We):pa(We)}function oi(We){for(var gt=We.length;gt--&&bt.test(We.charAt(gt)););return gt}var La=Ro(bi);function Fl(We){for(var gt=Yo.lastIndex=0;Yo.test(We);)++gt;return gt}function ll(We){return We.match(Yo)||[]}function gi(We){return We.match(ni)||[]}var mu=function We(gt){gt=gt==null?p:di.defaults(p.Object(),gt,di.pick(p,Na));var ot=gt.Array,Gt=gt.Date,Pn=gt.Error,fr=gt.Function,ai=gt.Math,wr=gt.Object,Ra=gt.RegExp,fs=gt.String,ne=gt.TypeError,_e=ot.prototype,Fe=fr.prototype,ht=wr.prototype,Ye=gt["__core-js_shared__"],_t=Fe.toString,ut=ht.hasOwnProperty,zt=0,Wt=function(){var s=/[^.]+$/.exec(Ye&&Ye.keys&&Ye.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),mn=ht.toString,gn=_t.call(wr),En=p._,Hn=Ra("^"+_t.call(ut).replace(qe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dr=k?gt.Buffer:n,ln=gt.Symbol,si=gt.Uint8Array,Ei=dr?dr.allocUnsafe:n,Ii=xi(wr.getPrototypeOf,wr),Hr=wr.create,Hs=ht.propertyIsEnumerable,ba=_e.splice,Qi=ln?ln.isConcatSpreadable:n,ds=ln?ln.iterator:n,_a=ln?ln.toStringTag:n,nc=function(){try{var s=Ea(wr,"defineProperty");return s({},"",{}),s}catch{}}(),rc=gt.clearTimeout!==p.clearTimeout&&gt.clearTimeout,gu=Gt&&Gt.now!==p.Date.now&&Gt.now,jf=gt.setTimeout!==p.setTimeout&&gt.setTimeout,qs=ai.ceil,zs=ai.floor,oo=wr.getOwnPropertySymbols,xh=dr?dr.isBuffer:n,Yc=gt.isFinite,Uf=_e.join,Eh=xi(wr.keys,wr),Ni=ai.max,ao=ai.min,Ch=Gt.now,$c=gt.parseInt,ic=ai.random,Sh=_e.reverse,oc=Ea(gt,"DataView"),Bl=Ea(gt,"Map"),Gc=Ea(gt,"Promise"),ul=Ea(gt,"Set"),vu=Ea(gt,"WeakMap"),hs=Ea(wr,"create"),wa=vu&&new vu,cl={},yu=Xl(oc),Hl=Xl(Bl),Th=Xl(Gc),Mh=Xl(ul),Kc=Xl(vu),ps=ln?ln.prototype:n,fl=ps?ps.valueOf:n,bu=ps?ps.toString:n;function ee(s){if(Vi(s)&&!Kn(s)&&!(s instanceof ar)){if(s instanceof Ko)return s;if(ut.call(s,"__wrapped__"))return fg(s)}return new Ko(s)}var ql=function(){function s(){}return function(c){if(!Ri(c))return{};if(Hr)return Hr(c);s.prototype=c;var _=new s;return s.prototype=n,_}}();function ac(){}function Ko(s,c){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=n}ee.templateSettings={escape:xo,evaluate:A,interpolate:R,variable:"",imports:{_:ee}},ee.prototype=ac.prototype,ee.prototype.constructor=ee,Ko.prototype=ql(ac.prototype),Ko.prototype.constructor=Ko;function ar(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Cn,this.__views__=[]}function Vf(){var s=new ar(this.__wrapped__);return s.__actions__=Ci(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Ci(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Ci(this.__views__),s}function Yf(){if(this.__filtered__){var s=new ar(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function _u(){var s=this.__wrapped__.value(),c=this.__dir__,_=Kn(s),O=c<0,j=_?s.length:0,oe=ag(0,j,this.__views__),Ce=oe.start,Le=oe.end,Ge=Le-Ce,Ct=O?Le:Ce-1,St=this.__iteratees__,Lt=St.length,Zt=0,yn=ao(Ge,this.__takeCount__);if(!_||!O&&j==Ge&&yn==Ge)return id(s,this.__actions__);var Fn=[];e:for(;Ge--&&Zt<yn;){Ct+=c;for(var lr=-1,Bn=s[Ct];++lr<Lt;){var pr=St[lr],Er=pr.iteratee,Ts=pr.type,Sa=Er(Bn);if(Ts==Mt)Bn=Sa;else if(!Sa){if(Ts==Dt)continue e;break e}}Fn[Zt++]=Bn}return Fn}ar.prototype=ql(ac.prototype),ar.prototype.constructor=ar;function Qe(s){var c=-1,_=s==null?0:s.length;for(this.clear();++c<_;){var O=s[c];this.set(O[0],O[1])}}function ke(){this.__data__=hs?hs(null):{},this.size=0}function be(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}function P(s){var c=this.__data__;if(hs){var _=c[s];return _===u?n:_}return ut.call(c,s)?c[s]:n}function Q(s){var c=this.__data__;return hs?c[s]!==n:ut.call(c,s)}function me(s,c){var _=this.__data__;return this.size+=this.has(s)?0:1,_[s]=hs&&c===n?u:c,this}Qe.prototype.clear=ke,Qe.prototype.delete=be,Qe.prototype.get=P,Qe.prototype.has=Q,Qe.prototype.set=me;function tt(s){var c=-1,_=s==null?0:s.length;for(this.clear();++c<_;){var O=s[c];this.set(O[0],O[1])}}function pt(){this.__data__=[],this.size=0}function Pt(s){var c=this.__data__,_=Qo(c,s);if(_<0)return!1;var O=c.length-1;return _==O?c.pop():ba.call(c,_,1),--this.size,!0}function Mn(s){var c=this.__data__,_=Qo(c,s);return _<0?n:c[_][1]}function hr(s){return Qo(this.__data__,s)>-1}function sr(s,c){var _=this.__data__,O=Qo(_,s);return O<0?(++this.size,_.push([s,c])):_[O][1]=c,this}tt.prototype.clear=pt,tt.prototype.delete=Pt,tt.prototype.get=Mn,tt.prototype.has=hr,tt.prototype.set=sr;function Pr(s){var c=-1,_=s==null?0:s.length;for(this.clear();++c<_;){var O=s[c];this.set(O[0],O[1])}}function Xo(){this.size=0,this.__data__={hash:new Qe,map:new(Bl||tt),string:new Qe}}function ko(s){var c=Au(this,s).delete(s);return this.size-=c?1:0,c}function zl(s){return Au(this,s).get(s)}function sc(s){return Au(this,s).has(s)}function $f(s,c){var _=Au(this,s),O=_.size;return _.set(s,c),this.size+=_.size==O?0:1,this}Pr.prototype.clear=Xo,Pr.prototype.delete=ko,Pr.prototype.get=zl,Pr.prototype.has=sc,Pr.prototype.set=$f;function xa(s){var c=-1,_=s==null?0:s.length;for(this.__data__=new Pr;++c<_;)this.add(s[c])}function jm(s){return this.__data__.set(s,u),this}function Um(s){return this.__data__.has(s)}xa.prototype.add=xa.prototype.push=jm,xa.prototype.has=Um;function Fa(s){var c=this.__data__=new tt(s);this.size=c.size}function Vm(){this.__data__=new tt,this.size=0}function Ym(s){var c=this.__data__,_=c.delete(s);return this.size=c.size,_}function eb(s){return this.__data__.get(s)}function tb(s){return this.__data__.has(s)}function nb(s,c){var _=this.__data__;if(_ instanceof tt){var O=_.__data__;if(!Bl||O.length<t-1)return O.push([s,c]),this.size=++_.size,this;_=this.__data__=new Pr(O)}return _.set(s,c),this.size=_.size,this}Fa.prototype.clear=Vm,Fa.prototype.delete=Ym,Fa.prototype.get=eb,Fa.prototype.has=tb,Fa.prototype.set=nb;function Ah(s,c){var _=Kn(s),O=!_&&gf(s),j=!_&&!O&&_c(s),oe=!_&&!O&&!j&&wd(s),Ce=_||O||j||oe,Le=Ce?Ll(s.length,fs):[],Ge=Le.length;for(var Ct in s)(c||ut.call(s,Ct))&&!(Ce&&(Ct=="length"||j&&(Ct=="offset"||Ct=="parent")||oe&&(Ct=="buffer"||Ct=="byteLength"||Ct=="byteOffset")||_l(Ct,Ge)))&&Le.push(Ct);return Le}function Dh(s){var c=s.length;return c?s[tf(0,c-1)]:n}function rb(s,c){return Du(Ci(s),wu(c,0,s.length))}function Gf(s){return Du(Ci(s))}function lc(s,c,_){(_!==n&&!El(s[c],_)||_===n&&!(c in s))&&ms(s,c,_)}function uc(s,c,_){var O=s[c];(!(ut.call(s,c)&&El(O,_))||_===n&&!(c in s))&&ms(s,c,_)}function Qo(s,c){for(var _=s.length;_--;)if(El(s[_][0],c))return _;return-1}function $m(s,c,_,O){return Wl(s,function(j,oe,Ce){c(O,j,_(j),Ce)}),O}function Gm(s,c){return s&&bs(c,No(c),s)}function kh(s,c){return s&&bs(c,Va(c),s)}function ms(s,c,_){c=="__proto__"&&nc?nc(s,c,{configurable:!0,enumerable:!0,value:_,writable:!0}):s[c]=_}function Oh(s,c){for(var _=-1,O=c.length,j=ot(O),oe=s==null;++_<O;)j[_]=oe?n:Db(s,c[_]);return j}function wu(s,c,_){return s===s&&(_!==n&&(s=s<=_?s:_),c!==n&&(s=s>=c?s:c)),s}function Ba(s,c,_,O,j,oe){var Ce,Le=c&y,Ge=c&x,Ct=c&S;if(_&&(Ce=j?_(s,O,j,oe):_(s)),Ce!==n)return Ce;if(!Ri(s))return s;var St=Kn(s);if(St){if(Ce=ep(s),!Le)return Ci(s,Ce)}else{var Lt=bo(s),Zt=Lt==ge||Lt==Te;if(_c(s))return sf(s,Le);if(Lt==Ne||Lt==yt||Zt&&!j){if(Ce=Ge||Zt?{}:tp(s),!Le)return Ge?og(s,kh(Ce,s)):pi(s,Gm(Ce,s))}else{if(!gr[Lt])return j?s:{};Ce=fb(s,Lt,Le)}}oe||(oe=new Fa);var yn=oe.get(s);if(yn)return yn;oe.set(s,Ce),Mx(s)?s.forEach(function(Bn){Ce.add(Ba(Bn,c,_,Bn,s,oe))}):Sx(s)&&s.forEach(function(Bn,pr){Ce.set(pr,Ba(Bn,c,_,pr,s,oe))});var Fn=Ct?Ge?hd:$l:Ge?Va:No,lr=St?n:Fn(s);return Jt(lr||s,function(Bn,pr){lr&&(pr=Bn,Bn=s[pr]),uc(Ce,pr,Ba(Bn,c,_,pr,s,oe))}),Ce}function Kf(s){var c=No(s);return function(_){return Xf(_,s,c)}}function Xf(s,c,_){var O=_.length;if(s==null)return!O;for(s=wr(s);O--;){var j=_[O],oe=c[j],Ce=s[j];if(Ce===n&&!(j in s)||!oe(Ce))return!1}return!0}function Ih(s,c,_){if(typeof s!="function")throw new ne(i);return yc(function(){s.apply(n,_)},c)}function Xc(s,c,_,O){var j=-1,oe=$r,Ce=!0,Le=s.length,Ge=[],Ct=c.length;if(!Le)return Ge;_&&(c=hn(c,Gr(_))),O?(oe=_i,Ce=!1):c.length>=t&&(oe=io,Ce=!1,c=new xa(c));e:for(;++j<Le;){var St=s[j],Lt=_==null?St:_(St);if(St=O||St!==0?St:0,Ce&&Lt===Lt){for(var Zt=Ct;Zt--;)if(c[Zt]===Lt)continue e;Ge.push(St)}else oe(c,Lt,O)||Ge.push(St)}return Ge}var Wl=Xh(gs),Km=Xh(Rh,!0);function Ha(s,c){var _=!0;return Wl(s,function(O,j,oe){return _=!!c(O,j,oe),_}),_}function cc(s,c,_){for(var O=-1,j=s.length;++O<j;){var oe=s[O],Ce=c(oe);if(Ce!=null&&(Le===n?Ce===Ce&&!Ss(Ce):_(Ce,Le)))var Le=Ce,Ge=oe}return Ge}function Nh(s,c,_,O){var j=s.length;for(_=nr(_),_<0&&(_=-_>j?0:j+_),O=O===n||O>j?j:nr(O),O<0&&(O+=j),O=_>O?0:Dx(O);_<O;)s[_++]=c;return s}function Xm(s,c){var _=[];return Wl(s,function(O,j,oe){c(O,j,oe)&&_.push(O)}),_}function yo(s,c,_,O,j){var oe=-1,Ce=s.length;for(_||(_=hb),j||(j=[]);++oe<Ce;){var Le=s[oe];c>0&&_(Le)?c>1?yo(Le,c-1,_,O,j):pn(j,Le):O||(j[j.length]=Le)}return j}var Ph=Qh(),Lh=Qh(!0);function gs(s,c){return s&&Ph(s,c,No)}function Rh(s,c){return s&&Lh(s,c,No)}function Qc(s,c){return _r(c,function(_){return Iu(s[_])})}function xu(s,c){c=hl(c,s);for(var _=0,O=c.length;s!=null&&_<O;)s=s[Lr(c[_++])];return _&&_==O?s:n}function Qm(s,c,_){var O=c(s);return Kn(s)?O:pn(O,_(s))}function Fo(s){return s==null?s===n?Qt:$e:_a&&_a in wr(s)?gc(s):bb(s)}function Qf(s,c){return s>c}function Jm(s,c){return s!=null&&ut.call(s,c)}function Jc(s,c){return s!=null&&c in wr(s)}function Fh(s,c,_){return s>=ao(c,_)&&s<Ni(c,_)}function Bh(s,c,_){for(var O=_?_i:$r,j=s[0].length,oe=s.length,Ce=oe,Le=ot(oe),Ge=1/0,Ct=[];Ce--;){var St=s[Ce];Ce&&c&&(St=hn(St,Gr(c))),Ge=ao(St.length,Ge),Le[Ce]=!_&&(c||j>=120&&St.length>=120)?new xa(Ce&&St):n}St=s[0];var Lt=-1,Zt=Le[0];e:for(;++Lt<j&&Ct.length<Ge;){var yn=St[Lt],Fn=c?c(yn):yn;if(yn=_||yn!==0?yn:0,!(Zt?io(Zt,Fn):O(Ct,Fn,_))){for(Ce=oe;--Ce;){var lr=Le[Ce];if(!(lr?io(lr,Fn):O(s[Ce],Fn,_)))continue e}Zt&&Zt.push(Fn),Ct.push(yn)}}return Ct}function Hh(s,c,_,O){return gs(s,function(j,oe,Ce){c(O,_(j),oe,Ce)}),O}function jl(s,c,_){c=hl(c,s),s=vd(s,c);var O=s==null?s:s[Lr(Y(c))];return O==null?n:Ke(O,s,_)}function Zm(s){return Vi(s)&&Fo(s)==yt}function ib(s){return Vi(s)&&Fo(s)==xn}function qh(s){return Vi(s)&&Fo(s)==fn}function Eu(s,c,_,O,j){return s===c?!0:s==null||c==null||!Vi(s)&&!Vi(c)?s!==s&&c!==c:Cu(s,c,_,O,Eu,j)}function Cu(s,c,_,O,j,oe){var Ce=Kn(s),Le=Kn(c),Ge=Ce?Yn:bo(s),Ct=Le?Yn:bo(c);Ge=Ge==yt?Ne:Ge,Ct=Ct==yt?Ne:Ct;var St=Ge==Ne,Lt=Ct==Ne,Zt=Ge==Ct;if(Zt&&_c(s)){if(!_c(c))return!1;Ce=!0,St=!1}if(Zt&&!St)return oe||(oe=new Fa),Ce||wd(s)?bl(s,c,_,O,j,oe):cb(s,c,Ge,_,O,j,oe);if(!(_&L)){var yn=St&&ut.call(s,"__wrapped__"),Fn=Lt&&ut.call(c,"__wrapped__");if(yn||Fn){var lr=yn?s.value():s,Bn=Fn?c.value():c;return oe||(oe=new Fa),j(lr,Bn,_,O,oe)}}return Zt?(oe||(oe=new Fa),ws(s,c,_,O,j,oe)):!1}function ob(s){return Vi(s)&&bo(s)==Ue}function zh(s,c,_,O){var j=_.length,oe=j,Ce=!O;if(s==null)return!oe;for(s=wr(s);j--;){var Le=_[j];if(Ce&&Le[2]?Le[1]!==s[Le[0]]:!(Le[0]in s))return!1}for(;++j<oe;){Le=_[j];var Ge=Le[0],Ct=s[Ge],St=Le[1];if(Ce&&Le[2]){if(Ct===n&&!(Ge in s))return!1}else{var Lt=new Fa;if(O)var Zt=O(Ct,St,Ge,s,c,Lt);if(!(Zt===n?Eu(St,Ct,L|H,O,Lt):Zt))return!1}}return!0}function X(s){if(!Ri(s)||pb(s))return!1;var c=Iu(s)?Hn:ti;return c.test(Xl(s))}function eg(s){return Vi(s)&&Fo(s)==Xe}function Ws(s){return Vi(s)&&bo(s)==He}function Oo(s){return Vi(s)&&_g(s.length)&&!!Jn[Fo(s)]}function Zc(s){return typeof s=="function"?s:s==null?Ya:typeof s=="object"?Kn(s)?Sn(s[0],s[1]):jh(s):qx(s)}function Wh(s){if(!hf(s))return Eh(s);var c=[];for(var _ in wr(s))ut.call(s,_)&&_!="constructor"&&c.push(_);return c}function ab(s){if(!Ri(s))return yb(s);var c=hf(s),_=[];for(var O in s)O=="constructor"&&(c||!ut.call(s,O))||_.push(O);return _}function Jf(s,c){return s<c}function tg(s,c){var _=-1,O=Ua(s)?ot(s.length):[];return Wl(s,function(j,oe,Ce){O[++_]=c(j,oe,Ce)}),O}function jh(s){var c=Gl(s);return c.length==1&&c[0][2]?lg(c[0][0],c[0][1]):function(_){return _===s||zh(_,s,c)}}function Sn(s,c){return np(s)&&ip(c)?lg(Lr(s),c):function(_){var O=Db(_,s);return O===n&&O===c?kb(_,s):Eu(c,O,L|H)}}function Zf(s,c,_,O,j){s!==c&&Ph(c,function(oe,Ce){if(j||(j=new Fa),Ri(oe))Uh(s,c,Ce,_,Zf,O,j);else{var Le=O?O(yd(s,Ce),oe,Ce+"",s,c,j):n;Le===n&&(Le=oe),lc(s,Ce,Le)}},Va)}function Uh(s,c,_,O,j,oe,Ce){var Le=yd(s,_),Ge=yd(c,_),Ct=Ce.get(Ge);if(Ct){lc(s,_,Ct);return}var St=oe?oe(Le,Ge,_+"",s,c,Ce):n,Lt=St===n;if(Lt){var Zt=Kn(Ge),yn=!Zt&&_c(Ge),Fn=!Zt&&!yn&&wd(Ge);St=Ge,Zt||yn||Fn?Kn(Le)?St=Le:Ji(Le)?St=Ci(Le):yn?(Lt=!1,St=sf(Ge,!0)):Fn?(Lt=!1,St=ig(Ge,!0)):St=[]:up(Ge)||gf(Ge)?(St=Le,gf(Le)?St=kx(Le):(!Ri(Le)||Iu(Le))&&(St=tp(Ge))):Lt=!1}Lt&&(Ce.set(Ge,St),j(St,Ge,O,oe,Ce),Ce.delete(Ge)),lc(s,_,St)}function Vh(s,c){var _=s.length;if(_)return c+=c<0?_:0,_l(c,_)?s[c]:n}function ng(s,c,_){c.length?c=hn(c,function(oe){return Kn(oe)?function(Ce){return xu(Ce,oe.length===1?oe[0]:oe)}:oe}):c=[Ya];var O=-1;c=hn(c,Gr(kn()));var j=tg(s,function(oe,Ce,Le){var Ge=hn(c,function(Ct){return Ct(oe)});return{criteria:Ge,index:++O,value:oe}});return vr(j,function(oe,Ce){return ub(oe,Ce,_)})}function ed(s,c){return td(s,c,function(_,O){return kb(s,O)})}function td(s,c,_){for(var O=-1,j=c.length,oe={};++O<j;){var Ce=c[O],Le=xu(s,Ce);_(Le,Ce)&&Tu(oe,hl(Ce,s),Le)}return oe}function Yh(s){return function(c){return xu(c,s)}}function ef(s,c,_,O){var j=O?Lo:ri,oe=-1,Ce=c.length,Le=s;for(s===c&&(c=Ci(c)),_&&(Le=hn(s,Gr(_)));++oe<Ce;)for(var Ge=0,Ct=c[oe],St=_?_(Ct):Ct;(Ge=j(Le,St,Ge,O))>-1;)Le!==s&&ba.call(Le,Ge,1),ba.call(s,Ge,1);return s}function cr(s,c){for(var _=s?c.length:0,O=_-1;_--;){var j=c[_];if(_==O||j!==oe){var oe=j;_l(j)?ba.call(s,j,1):dc(s,j)}}return s}function tf(s,c){return s+zs(ic()*(c-s+1))}function $h(s,c,_,O){for(var j=-1,oe=Ni(qs((c-s)/(_||1)),0),Ce=ot(oe);oe--;)Ce[O?oe:++j]=s,s+=_;return Ce}function vs(s,c){var _="";if(!s||c<1||c>At)return _;do c%2&&(_+=s),c=zs(c/2),c&&(s+=s);while(c);return _}function Gn(s,c){return bc(pf(s,c,Ya),s+"")}function Su(s){return Dh(xd(s))}function sb(s,c){var _=xd(s);return Du(_,wu(c,0,_.length))}function Tu(s,c,_,O){if(!Ri(s))return s;c=hl(c,s);for(var j=-1,oe=c.length,Ce=oe-1,Le=s;Le!=null&&++j<oe;){var Ge=Lr(c[j]),Ct=_;if(Ge==="__proto__"||Ge==="constructor"||Ge==="prototype")return s;if(j!=Ce){var St=Le[Ge];Ct=O?O(St,Ge,Le):n,Ct===n&&(Ct=Ri(St)?St:_l(c[j+1])?[]:{})}uc(Le,Ge,Ct),Le=Le[Ge]}return s}var qt=wa?function(s,c){return wa.set(s,c),s}:Ya,nd=nc?function(s,c){return nc(s,"toString",{configurable:!0,enumerable:!1,value:Ib(c),writable:!0})}:Ya;function Dn(s){return Du(xd(s))}function hi(s,c,_){var O=-1,j=s.length;c<0&&(c=-c>j?0:j+c),_=_>j?j:_,_<0&&(_+=j),j=c>_?0:_-c>>>0,c>>>=0;for(var oe=ot(j);++O<j;)oe[O]=s[O+c];return oe}function lb(s,c){var _;return Wl(s,function(O,j,oe){return _=c(O,j,oe),!_}),!!_}function Kr(s,c,_){var O=0,j=s==null?O:s.length;if(typeof c=="number"&&c===c&&j<=rr){for(;O<j;){var oe=O+j>>>1,Ce=s[oe];Ce!==null&&!Ss(Ce)&&(_?Ce<=c:Ce<c)?O=oe+1:j=oe}return j}return _n(s,c,Ya,_)}function _n(s,c,_,O){var j=0,oe=s==null?0:s.length;if(oe===0)return 0;c=_(c);for(var Ce=c!==c,Le=c===null,Ge=Ss(c),Ct=c===n;j<oe;){var St=zs((j+oe)/2),Lt=_(s[St]),Zt=Lt!==n,yn=Lt===null,Fn=Lt===Lt,lr=Ss(Lt);if(Ce)var Bn=O||Fn;else Ct?Bn=Fn&&(O||Zt):Le?Bn=Fn&&Zt&&(O||!yn):Ge?Bn=Fn&&Zt&&!yn&&(O||!lr):yn||lr?Bn=!1:Bn=O?Lt<=c:Lt<c;Bn?j=St+1:oe=St}return ao(oe,Vn)}function jr(s,c){for(var _=-1,O=s.length,j=0,oe=[];++_<O;){var Ce=s[_],Le=c?c(Ce):Ce;if(!_||!El(Le,Ge)){var Ge=Le;oe[j++]=Ce===0?0:Ce}}return oe}function fc(s){return typeof s=="number"?s:Ss(s)?In:+s}function Bo(s){if(typeof s=="string")return s;if(Kn(s))return hn(s,Bo)+"";if(Ss(s))return bu?bu.call(s):"";var c=s+"";return c=="0"&&1/s==-Yt?"-0":c}function dl(s,c,_){var O=-1,j=$r,oe=s.length,Ce=!0,Le=[],Ge=Le;if(_)Ce=!1,j=_i;else if(oe>=t){var Ct=c?null:Zh(s);if(Ct)return cs(Ct);Ce=!1,j=io,Ge=new xa}else Ge=c?[]:Le;e:for(;++O<oe;){var St=s[O],Lt=c?c(St):St;if(St=_||St!==0?St:0,Ce&&Lt===Lt){for(var Zt=Ge.length;Zt--;)if(Ge[Zt]===Lt)continue e;c&&Ge.push(Lt),Le.push(St)}else j(Ge,Lt,_)||(Ge!==Le&&Ge.push(Lt),Le.push(St))}return Le}function dc(s,c){return c=hl(c,s),s=vd(s,c),s==null||delete s[Lr(Y(c))]}function rd(s,c,_,O){return Tu(s,c,_(xu(s,c)),O)}function nf(s,c,_,O){for(var j=s.length,oe=O?j:-1;(O?oe--:++oe<j)&&c(s[oe],oe,s););return _?hi(s,O?0:oe,O?oe+1:j):hi(s,O?oe+1:0,O?j:oe)}function id(s,c){var _=s;return _ instanceof ar&&(_=_.value()),wi(c,function(O,j){return j.func.apply(j.thisArg,pn([O],j.args))},_)}function rf(s,c,_){var O=s.length;if(O<2)return O?dl(s[0]):[];for(var j=-1,oe=ot(O);++j<O;)for(var Ce=s[j],Le=-1;++Le<O;)Le!=j&&(oe[j]=Xc(oe[j]||Ce,s[Le],c,_));return dl(yo(oe,1),c,_)}function of(s,c,_){for(var O=-1,j=s.length,oe=c.length,Ce={};++O<j;){var Le=O<oe?c[O]:n;_(Ce,s[O],Le)}return Ce}function od(s){return Ji(s)?s:[]}function ad(s){return typeof s=="function"?s:Ya}function hl(s,c){return Kn(s)?s:np(s,c)?[s]:mf(Ur(s))}var Gh=Gn;function ys(s,c,_){var O=s.length;return _=_===n?O:_,!c&&_>=O?s:hi(s,c,_)}var af=rc||function(s){return p.clearTimeout(s)};function sf(s,c){if(c)return s.slice();var _=s.length,O=Ei?Ei(_):new s.constructor(_);return s.copy(O),O}function hc(s){var c=new s.constructor(s.byteLength);return new si(c).set(new si(s)),c}function sd(s,c){var _=c?hc(s.buffer):s.buffer;return new s.constructor(_,s.byteOffset,s.byteLength)}function ld(s){var c=new s.constructor(s.source,ei.exec(s));return c.lastIndex=s.lastIndex,c}function rg(s){return fl?wr(fl.call(s)):{}}function ig(s,c){var _=c?hc(s.buffer):s.buffer;return new s.constructor(_,s.byteOffset,s.length)}function Kh(s,c){if(s!==c){var _=s!==n,O=s===null,j=s===s,oe=Ss(s),Ce=c!==n,Le=c===null,Ge=c===c,Ct=Ss(c);if(!Le&&!Ct&&!oe&&s>c||oe&&Ce&&Ge&&!Le&&!Ct||O&&Ce&&Ge||!_&&Ge||!j)return 1;if(!O&&!oe&&!Ct&&s<c||Ct&&_&&j&&!O&&!oe||Le&&_&&j||!Ce&&j||!Ge)return-1}return 0}function ub(s,c,_){for(var O=-1,j=s.criteria,oe=c.criteria,Ce=j.length,Le=_.length;++O<Ce;){var Ge=Kh(j[O],oe[O]);if(Ge){if(O>=Le)return Ge;var Ct=_[O];return Ge*(Ct=="desc"?-1:1)}}return s.index-c.index}function Vt(s,c,_,O){for(var j=-1,oe=s.length,Ce=_.length,Le=-1,Ge=c.length,Ct=Ni(oe-Ce,0),St=ot(Ge+Ct),Lt=!O;++Le<Ge;)St[Le]=c[Le];for(;++j<Ce;)(Lt||j<oe)&&(St[_[j]]=s[j]);for(;Ct--;)St[Le++]=s[j++];return St}function so(s,c,_,O){for(var j=-1,oe=s.length,Ce=-1,Le=_.length,Ge=-1,Ct=c.length,St=Ni(oe-Le,0),Lt=ot(St+Ct),Zt=!O;++j<St;)Lt[j]=s[j];for(var yn=j;++Ge<Ct;)Lt[yn+Ge]=c[Ge];for(;++Ce<Le;)(Zt||j<oe)&&(Lt[yn+_[Ce]]=s[j++]);return Lt}function Ci(s,c){var _=-1,O=s.length;for(c||(c=ot(O));++_<O;)c[_]=s[_];return c}function bs(s,c,_,O){var j=!_;_||(_={});for(var oe=-1,Ce=c.length;++oe<Ce;){var Le=c[oe],Ge=O?O(_[Le],s[Le],Le,_,s):n;Ge===n&&(Ge=s[Le]),j?ms(_,Le,Ge):uc(_,Le,Ge)}return _}function pi(s,c){return bs(s,df(s),c)}function og(s,c){return bs(s,vc(s),c)}function lf(s,c){return function(_,O){var j=Kn(_)?dt:$m,oe=c?c():{};return j(_,s,kn(O,2),oe)}}function pl(s){return Gn(function(c,_){var O=-1,j=_.length,oe=j>1?_[j-1]:n,Ce=j>2?_[2]:n;for(oe=s.length>3&&typeof oe=="function"?(j--,oe):n,Ce&&Ho(_[0],_[1],Ce)&&(oe=j<3?n:oe,j=1),c=wr(c);++O<j;){var Le=_[O];Le&&s(c,Le,O,oe)}return c})}function Xh(s,c){return function(_,O){if(_==null)return _;if(!Ua(_))return s(_,O);for(var j=_.length,oe=c?j:-1,Ce=wr(_);(c?oe--:++oe<j)&&O(Ce[oe],oe,Ce)!==!1;);return _}}function Qh(s){return function(c,_,O){for(var j=-1,oe=wr(c),Ce=O(c),Le=Ce.length;Le--;){var Ge=Ce[s?Le:++j];if(_(oe[Ge],Ge,oe)===!1)break}return c}}function ud(s,c,_){var O=c&V,j=ml(s);function oe(){var Ce=this&&this!==p&&this instanceof oe?j:s;return Ce.apply(O?_:this,arguments)}return oe}function Ul(s){return function(c){c=Ur(c);var _=Oi(c)?ii(c):n,O=_?_[0]:c.charAt(0),j=_?ys(_,1).join(""):c.slice(1);return O[s]()+j}}function lo(s){return function(c){return wi(Bx(Fx(c).replace(Uo,"")),s,"")}}function ml(s){return function(){var c=arguments;switch(c.length){case 0:return new s;case 1:return new s(c[0]);case 2:return new s(c[0],c[1]);case 3:return new s(c[0],c[1],c[2]);case 4:return new s(c[0],c[1],c[2],c[3]);case 5:return new s(c[0],c[1],c[2],c[3],c[4]);case 6:return new s(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new s(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var _=ql(s.prototype),O=s.apply(_,c);return Ri(O)?O:_}}function cd(s,c,_){var O=ml(s);function j(){for(var oe=arguments.length,Ce=ot(oe),Le=oe,Ge=Mu(j);Le--;)Ce[Le]=arguments[Le];var Ct=oe<3&&Ce[0]!==Ge&&Ce[oe-1]!==Ge?[]:Do(Ce,Ge);if(oe-=Ct.length,oe<_)return Jh(s,c,qa,j.placeholder,n,Ce,Ct,n,n,_-oe);var St=this&&this!==p&&this instanceof j?O:s;return Ke(St,this,Ce)}return j}function Vl(s){return function(c,_,O){var j=wr(c);if(!Ua(c)){var oe=kn(_,3);c=No(c),_=function(Le){return oe(j[Le],Le,j)}}var Ce=s(c,_,O);return Ce>-1?j[oe?c[Ce]:Ce]:n}}function Yl(s){return xs(function(c){var _=c.length,O=_,j=Ko.prototype.thru;for(s&&c.reverse();O--;){var oe=c[O];if(typeof oe!="function")throw new ne(i);if(j&&!Ce&&ff(oe)=="wrapper")var Ce=new Ko([],!0)}for(O=Ce?O:_;++O<_;){oe=c[O];var Le=ff(oe),Ge=Le=="wrapper"?pd(oe):n;Ge&&rp(Ge[0])&&Ge[1]==(b|ae|Ae|te)&&!Ge[4].length&&Ge[9]==1?Ce=Ce[ff(Ge[0])].apply(Ce,Ge[3]):Ce=oe.length==1&&rp(oe)?Ce[Le]():Ce.thru(oe)}return function(){var Ct=arguments,St=Ct[0];if(Ce&&Ct.length==1&&Kn(St))return Ce.plant(St).value();for(var Lt=0,Zt=_?c[Lt].apply(this,Ct):St;++Lt<_;)Zt=c[Lt].call(this,Zt);return Zt}})}function qa(s,c,_,O,j,oe,Ce,Le,Ge,Ct){var St=c&b,Lt=c&V,Zt=c&U,yn=c&(ae|le),Fn=c&ye,lr=Zt?n:ml(s);function Bn(){for(var pr=arguments.length,Er=ot(pr),Ts=pr;Ts--;)Er[Ts]=arguments[Ts];if(yn)var Sa=Mu(Bn),Ms=ec(Er,Sa);if(O&&(Er=Vt(Er,O,j,yn)),oe&&(Er=so(Er,oe,Ce,yn)),pr-=Ms,yn&&pr<Ct){var Zi=Do(Er,Sa);return Jh(s,c,qa,Bn.placeholder,_,Er,Zi,Le,Ge,Ct-pr)}var Cl=Lt?_:this,Pu=Zt?Cl[s]:s;return pr=Er.length,Le?Er=ug(Er,Le):Fn&&pr>1&&Er.reverse(),St&&Ge<pr&&(Er.length=Ge),this&&this!==p&&this instanceof Bn&&(Pu=lr||ml(Pu)),Pu.apply(Cl,Er)}return Bn}function gl(s,c){return function(_,O){return Hh(_,s,c(O),{})}}function _s(s,c){return function(_,O){var j;if(_===n&&O===n)return c;if(_!==n&&(j=_),O!==n){if(j===n)return O;typeof _=="string"||typeof O=="string"?(_=Bo(_),O=Bo(O)):(_=fc(_),O=fc(O)),j=s(_,O)}return j}}function za(s){return xs(function(c){return c=hn(c,Gr(kn())),Gn(function(_){var O=this;return s(c,function(j){return Ke(j,O,_)})})})}function vl(s,c){c=c===n?" ":Bo(c);var _=c.length;if(_<2)return _?vs(c,s):c;var O=vs(c,qs(s/ya(c)));return Oi(c)?ys(ii(O),0,s).join(""):O.slice(0,s)}function pc(s,c,_,O){var j=c&V,oe=ml(s);function Ce(){for(var Le=-1,Ge=arguments.length,Ct=-1,St=O.length,Lt=ot(St+Ge),Zt=this&&this!==p&&this instanceof Ce?oe:s;++Ct<St;)Lt[Ct]=O[Ct];for(;Ge--;)Lt[Ct++]=arguments[++Le];return Ke(Zt,j?_:this,Lt)}return Ce}function yl(s){return function(c,_,O){return O&&typeof O!="number"&&Ho(c,_,O)&&(_=O=n),c=Nu(c),_===n?(_=c,c=0):_=Nu(_),O=O===n?c<_?1:-1:Nu(O),$h(c,_,O,s)}}function Jo(s){return function(c,_){return typeof c=="string"&&typeof _=="string"||(c=js(c),_=js(_)),s(c,_)}}function Jh(s,c,_,O,j,oe,Ce,Le,Ge,Ct){var St=c&ae,Lt=St?Ce:n,Zt=St?n:Ce,yn=St?oe:n,Fn=St?n:oe;c|=St?Ae:ve,c&=~(St?ve:Ae),c&Z||(c&=~(V|U));var lr=[s,c,j,yn,Lt,Fn,Zt,Le,Ge,Ct],Bn=_.apply(n,lr);return rp(s)&&wl(Bn,lr),Bn.placeholder=O,op(Bn,s,c)}function mc(s){var c=ai[s];return function(_,O){if(_=js(_),O=O==null?0:ao(nr(O),292),O&&Yc(_)){var j=(Ur(_)+"e").split("e"),oe=c(j[0]+"e"+(+j[1]+O));return j=(Ur(oe)+"e").split("e"),+(j[0]+"e"+(+j[1]-O))}return c(_)}}var Zh=ul&&1/cs(new ul([,-0]))[1]==Yt?function(s){return new ul(s)}:Lb;function fd(s){return function(c){var _=bo(c);return _==Ue?Xi(c):_==He?tc(c):Rl(c,s(c))}}function Wa(s,c,_,O,j,oe,Ce,Le){var Ge=c&U;if(!Ge&&typeof s!="function")throw new ne(i);var Ct=O?O.length:0;if(Ct||(c&=~(Ae|ve),O=j=n),Ce=Ce===n?Ce:Ni(nr(Ce),0),Le=Le===n?Le:nr(Le),Ct-=j?j.length:0,c&ve){var St=O,Lt=j;O=j=n}var Zt=Ge?n:pd(s),yn=[s,c,_,O,j,St,Lt,oe,Ce,Le];if(Zt&&vb(yn,Zt),s=yn[0],c=yn[1],_=yn[2],O=yn[3],j=yn[4],Le=yn[9]=yn[9]===n?Ge?0:s.length:Ni(yn[9]-Ct,0),!Le&&c&(ae|le)&&(c&=~(ae|le)),!c||c==V)var Fn=ud(s,c,_);else c==ae||c==le?Fn=cd(s,c,Le):(c==Ae||c==(V|Ae))&&!j.length?Fn=pc(s,c,_,O):Fn=qa.apply(n,yn);var lr=Zt?qt:wl;return op(lr(Fn,yn),s,c)}function uf(s,c,_,O){return s===n||El(s,ht[_])&&!ut.call(O,_)?c:s}function cf(s,c,_,O,j,oe){return Ri(s)&&Ri(c)&&(oe.set(c,s),Zf(s,c,n,cf,oe),oe.delete(c)),s}function dd(s){return up(s)?n:s}function bl(s,c,_,O,j,oe){var Ce=_&L,Le=s.length,Ge=c.length;if(Le!=Ge&&!(Ce&&Ge>Le))return!1;var Ct=oe.get(s),St=oe.get(c);if(Ct&&St)return Ct==c&&St==s;var Lt=-1,Zt=!0,yn=_&H?new xa:n;for(oe.set(s,c),oe.set(c,s);++Lt<Le;){var Fn=s[Lt],lr=c[Lt];if(O)var Bn=Ce?O(lr,Fn,Lt,c,s,oe):O(Fn,lr,Lt,s,c,oe);if(Bn!==n){if(Bn)continue;Zt=!1;break}if(yn){if(!Or(c,function(pr,Er){if(!io(yn,Er)&&(Fn===pr||j(Fn,pr,_,O,oe)))return yn.push(Er)})){Zt=!1;break}}else if(!(Fn===lr||j(Fn,lr,_,O,oe))){Zt=!1;break}}return oe.delete(s),oe.delete(c),Zt}function cb(s,c,_,O,j,oe,Ce){switch(_){case An:if(s.byteLength!=c.byteLength||s.byteOffset!=c.byteOffset)return!1;s=s.buffer,c=c.buffer;case xn:return!(s.byteLength!=c.byteLength||!oe(new si(s),new si(c)));case yr:case fn:case Be:return El(+s,+c);case re:return s.name==c.name&&s.message==c.message;case Xe:case st:return s==c+"";case Ue:var Le=Xi;case He:var Ge=O&L;if(Le||(Le=cs),s.size!=c.size&&!Ge)return!1;var Ct=Ce.get(s);if(Ct)return Ct==c;O|=H,Ce.set(s,c);var St=bl(Le(s),Le(c),O,j,oe,Ce);return Ce.delete(s),St;case Xt:if(fl)return fl.call(s)==fl.call(c)}return!1}function ws(s,c,_,O,j,oe){var Ce=_&L,Le=$l(s),Ge=Le.length,Ct=$l(c),St=Ct.length;if(Ge!=St&&!Ce)return!1;for(var Lt=Ge;Lt--;){var Zt=Le[Lt];if(!(Ce?Zt in c:ut.call(c,Zt)))return!1}var yn=oe.get(s),Fn=oe.get(c);if(yn&&Fn)return yn==c&&Fn==s;var lr=!0;oe.set(s,c),oe.set(c,s);for(var Bn=Ce;++Lt<Ge;){Zt=Le[Lt];var pr=s[Zt],Er=c[Zt];if(O)var Ts=Ce?O(Er,pr,Zt,c,s,oe):O(pr,Er,Zt,s,c,oe);if(!(Ts===n?pr===Er||j(pr,Er,_,O,oe):Ts)){lr=!1;break}Bn||(Bn=Zt=="constructor")}if(lr&&!Bn){var Sa=s.constructor,Ms=c.constructor;Sa!=Ms&&"constructor"in s&&"constructor"in c&&!(typeof Sa=="function"&&Sa instanceof Sa&&typeof Ms=="function"&&Ms instanceof Ms)&&(lr=!1)}return oe.delete(s),oe.delete(c),lr}function xs(s){return bc(pf(s,n,f),s+"")}function $l(s){return Qm(s,No,df)}function hd(s){return Qm(s,Va,vc)}var pd=wa?function(s){return wa.get(s)}:Lb;function ff(s){for(var c=s.name+"",_=cl[c],O=ut.call(cl,c)?_.length:0;O--;){var j=_[O],oe=j.func;if(oe==null||oe==s)return j.name}return c}function Mu(s){var c=ut.call(ee,"placeholder")?ee:s;return c.placeholder}function kn(){var s=ee.iteratee||Nb;return s=s===Nb?Zc:s,arguments.length?s(arguments[0],arguments[1]):s}function Au(s,c){var _=s.__data__;return sg(c)?_[typeof c=="string"?"string":"hash"]:_.map}function Gl(s){for(var c=No(s),_=c.length;_--;){var O=c[_],j=s[O];c[_]=[O,j,ip(j)]}return c}function Ea(s,c){var _=Pa(s,c);return X(_)?_:n}function gc(s){var c=ut.call(s,_a),_=s[_a];try{s[_a]=n;var O=!0}catch{}var j=mn.call(s);return O&&(c?s[_a]=_:delete s[_a]),j}var df=oo?function(s){return s==null?[]:(s=wr(s),_r(oo(s),function(c){return Hs.call(s,c)}))}:Rb,vc=oo?function(s){for(var c=[];s;)pn(c,df(s)),s=Ii(s);return c}:Rb,bo=Fo;(oc&&bo(new oc(new ArrayBuffer(1)))!=An||Bl&&bo(new Bl)!=Ue||Gc&&bo(Gc.resolve())!=Ie||ul&&bo(new ul)!=He||vu&&bo(new vu)!=un)&&(bo=function(s){var c=Fo(s),_=c==Ne?s.constructor:n,O=_?Xl(_):"";if(O)switch(O){case yu:return An;case Hl:return Ue;case Th:return Ie;case Mh:return He;case Kc:return un}return c});function ag(s,c,_){for(var O=-1,j=_.length;++O<j;){var oe=_[O],Ce=oe.size;switch(oe.type){case"drop":s+=Ce;break;case"dropRight":c-=Ce;break;case"take":c=ao(c,s+Ce);break;case"takeRight":s=Ni(s,c-Ce);break}}return{start:s,end:c}}function md(s){var c=s.match(kt);return c?c[1].split(Nt):[]}function gd(s,c,_){c=hl(c,s);for(var O=-1,j=c.length,oe=!1;++O<j;){var Ce=Lr(c[O]);if(!(oe=s!=null&&_(s,Ce)))break;s=s[Ce]}return oe||++O!=j?oe:(j=s==null?0:s.length,!!j&&_g(j)&&_l(Ce,j)&&(Kn(s)||gf(s)))}function ep(s){var c=s.length,_=new s.constructor(c);return c&&typeof s[0]=="string"&&ut.call(s,"index")&&(_.index=s.index,_.input=s.input),_}function tp(s){return typeof s.constructor=="function"&&!hf(s)?ql(Ii(s)):{}}function fb(s,c,_){var O=s.constructor;switch(c){case xn:return hc(s);case yr:case fn:return new O(+s);case An:return sd(s,_);case bn:case Xn:case Sr:case ji:case Jr:case Tr:case ci:case Br:case Ht:return ig(s,_);case Ue:return new O;case Be:case st:return new O(s);case Xe:return ld(s);case He:return new O;case Xt:return rg(s)}}function db(s,c){var _=c.length;if(!_)return s;var O=_-1;return c[O]=(_>1?"& ":"")+c[O],c=c.join(_>2?", ":" "),s.replace(ft,`{
/* [wrapped with `+c+`] */
`)}function hb(s){return Kn(s)||gf(s)||!!(Qi&&s&&s[Qi])}function _l(s,c){var _=typeof s;return c=c??At,!!c&&(_=="number"||_!="symbol"&&sa.test(s))&&s>-1&&s%1==0&&s<c}function Ho(s,c,_){if(!Ri(_))return!1;var O=typeof c;return(O=="number"?Ua(_)&&_l(c,_.length):O=="string"&&c in _)?El(_[c],s):!1}function np(s,c){if(Kn(s))return!1;var _=typeof s;return _=="number"||_=="symbol"||_=="boolean"||s==null||Ss(s)?!0:ue.test(s)||!G.test(s)||c!=null&&s in wr(c)}function sg(s){var c=typeof s;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?s!=="__proto__":s===null}function rp(s){var c=ff(s),_=ee[c];if(typeof _!="function"||!(c in ar.prototype))return!1;if(s===_)return!0;var O=pd(_);return!!O&&s===O[0]}function pb(s){return!!Wt&&Wt in s}var mb=Ye?Iu:Fb;function hf(s){var c=s&&s.constructor,_=typeof c=="function"&&c.prototype||ht;return s===_}function ip(s){return s===s&&!Ri(s)}function lg(s,c){return function(_){return _==null?!1:_[s]===c&&(c!==n||s in wr(_))}}function gb(s){var c=yg(s,function(O){return _.size===d&&_.clear(),O}),_=c.cache;return c}function vb(s,c){var _=s[1],O=c[1],j=_|O,oe=j<(V|U|b),Ce=O==b&&_==ae||O==b&&_==te&&s[7].length<=c[8]||O==(b|te)&&c[7].length<=c[8]&&_==ae;if(!(oe||Ce))return s;O&V&&(s[2]=c[2],j|=_&V?0:Z);var Le=c[3];if(Le){var Ge=s[3];s[3]=Ge?Vt(Ge,Le,c[4]):Le,s[4]=Ge?Do(s[3],m):c[4]}return Le=c[5],Le&&(Ge=s[5],s[5]=Ge?so(Ge,Le,c[6]):Le,s[6]=Ge?Do(s[5],m):c[6]),Le=c[7],Le&&(s[7]=Le),O&b&&(s[8]=s[8]==null?c[8]:ao(s[8],c[8])),s[9]==null&&(s[9]=c[9]),s[0]=c[0],s[1]=j,s}function yb(s){var c=[];if(s!=null)for(var _ in wr(s))c.push(_);return c}function bb(s){return mn.call(s)}function pf(s,c,_){return c=Ni(c===n?s.length-1:c,0),function(){for(var O=arguments,j=-1,oe=Ni(O.length-c,0),Ce=ot(oe);++j<oe;)Ce[j]=O[c+j];j=-1;for(var Le=ot(c+1);++j<c;)Le[j]=O[j];return Le[c]=_(Ce),Ke(s,this,Le)}}function vd(s,c){return c.length<2?s:xu(s,hi(c,0,-1))}function ug(s,c){for(var _=s.length,O=ao(c.length,_),j=Ci(s);O--;){var oe=c[O];s[O]=_l(oe,_)?j[oe]:n}return s}function yd(s,c){if(!(c==="constructor"&&typeof s[c]=="function")&&c!="__proto__")return s[c]}var wl=Kl(qt),yc=jf||function(s,c){return p.setTimeout(s,c)},bc=Kl(nd);function op(s,c,_){var O=c+"";return bc(s,db(O,cg(md(O),_)))}function Kl(s){var c=0,_=0;return function(){var O=Ch(),j=ct-(O-_);if(_=O,j>0){if(++c>=lt)return arguments[0]}else c=0;return s.apply(n,arguments)}}function Du(s,c){var _=-1,O=s.length,j=O-1;for(c=c===n?O:c;++_<c;){var oe=tf(_,j),Ce=s[oe];s[oe]=s[_],s[_]=Ce}return s.length=c,s}var mf=gb(function(s){var c=[];return s.charCodeAt(0)===46&&c.push(""),s.replace(Re,function(_,O,j,oe){c.push(j?oe.replace(rn,"$1"):O||_)}),c});function Lr(s){if(typeof s=="string"||Ss(s))return s;var c=s+"";return c=="0"&&1/s==-Yt?"-0":c}function Xl(s){if(s!=null){try{return _t.call(s)}catch{}try{return s+""}catch{}}return""}function cg(s,c){return Jt(ur,function(_){var O="_."+_[0];c&_[1]&&!$r(s,O)&&s.push(O)}),s.sort()}function fg(s){if(s instanceof ar)return s.clone();var c=new Ko(s.__wrapped__,s.__chain__);return c.__actions__=Ci(s.__actions__),c.__index__=s.__index__,c.__values__=s.__values__,c}function _b(s,c,_){(_?Ho(s,c,_):c===n)?c=1:c=Ni(nr(c),0);var O=s==null?0:s.length;if(!O||c<1)return[];for(var j=0,oe=0,Ce=ot(qs(O/c));j<O;)Ce[oe++]=hi(s,j,j+=c);return Ce}function ap(s){for(var c=-1,_=s==null?0:s.length,O=0,j=[];++c<_;){var oe=s[c];oe&&(j[O++]=oe)}return j}function sp(){var s=arguments.length;if(!s)return[];for(var c=ot(s-1),_=arguments[0],O=s;O--;)c[O-1]=arguments[O];return pn(Kn(_)?Ci(_):[_],yo(c,1))}var dg=Gn(function(s,c){return Ji(s)?Xc(s,yo(c,1,Ji,!0)):[]}),hg=Gn(function(s,c){var _=Y(c);return Ji(_)&&(_=n),Ji(s)?Xc(s,yo(c,1,Ji,!0),kn(_,2)):[]}),bd=Gn(function(s,c){var _=Y(c);return Ji(_)&&(_=n),Ji(s)?Xc(s,yo(c,1,Ji,!0),n,_):[]});function lp(s,c,_){var O=s==null?0:s.length;return O?(c=_||c===n?1:nr(c),hi(s,c<0?0:c,O)):[]}function wb(s,c,_){var O=s==null?0:s.length;return O?(c=_||c===n?1:nr(c),c=O-c,hi(s,0,c<0?0:c)):[]}function xb(s,c){return s&&s.length?nf(s,kn(c,3),!0,!0):[]}function pg(s,c){return s&&s.length?nf(s,kn(c,3),!0):[]}function Eb(s,c,_,O){var j=s==null?0:s.length;return j?(_&&typeof _!="number"&&Ho(s,c,_)&&(_=0,O=j),Nh(s,c,_,O)):[]}function o(s,c,_){var O=s==null?0:s.length;if(!O)return-1;var j=_==null?0:nr(_);return j<0&&(j=Ni(O+j,0)),$o(s,kn(c,3),j)}function l(s,c,_){var O=s==null?0:s.length;if(!O)return-1;var j=O-1;return _!==n&&(j=nr(_),j=_<0?Ni(O+j,0):ao(j,O-1)),$o(s,kn(c,3),j,!0)}function f(s){var c=s==null?0:s.length;return c?yo(s,1):[]}function h(s){var c=s==null?0:s.length;return c?yo(s,Yt):[]}function v(s,c){var _=s==null?0:s.length;return _?(c=c===n?1:nr(c),yo(s,c)):[]}function g(s){for(var c=-1,_=s==null?0:s.length,O={};++c<_;){var j=s[c];O[j[0]]=j[1]}return O}function T(s){return s&&s.length?s[0]:n}function E(s,c,_){var O=s==null?0:s.length;if(!O)return-1;var j=_==null?0:nr(_);return j<0&&(j=Ni(O+j,0)),ri(s,c,j)}function C(s){var c=s==null?0:s.length;return c?hi(s,0,-1):[]}var D=Gn(function(s){var c=hn(s,od);return c.length&&c[0]===s[0]?Bh(c):[]}),I=Gn(function(s){var c=Y(s),_=hn(s,od);return c===Y(_)?c=n:_.pop(),_.length&&_[0]===s[0]?Bh(_,kn(c,2)):[]}),q=Gn(function(s){var c=Y(s),_=hn(s,od);return c=typeof c=="function"?c:n,c&&_.pop(),_.length&&_[0]===s[0]?Bh(_,n,c):[]});function F(s,c){return s==null?"":Uf.call(s,c)}function Y(s){var c=s==null?0:s.length;return c?s[c-1]:n}function de(s,c,_){var O=s==null?0:s.length;if(!O)return-1;var j=O;return _!==n&&(j=nr(_),j=j<0?Ni(O+j,0):ao(j,O-1)),c===c?Ir(s,c,j):$o(s,Ui,j,!0)}function J(s,c){return s&&s.length?Vh(s,nr(c)):n}var fe=Gn(ce);function ce(s,c){return s&&s.length&&c&&c.length?ef(s,c):s}function he(s,c,_){return s&&s.length&&c&&c.length?ef(s,c,kn(_,2)):s}function se(s,c,_){return s&&s.length&&c&&c.length?ef(s,c,n,_):s}var pe=xs(function(s,c){var _=s==null?0:s.length,O=Oh(s,c);return cr(s,hn(c,function(j){return _l(j,_)?+j:j}).sort(Kh)),O});function we(s,c){var _=[];if(!(s&&s.length))return _;var O=-1,j=[],oe=s.length;for(c=kn(c,3);++O<oe;){var Ce=s[O];c(Ce,O,s)&&(_.push(Ce),j.push(O))}return cr(s,j),_}function Pe(s){return s==null?s:Sh.call(s)}function xe(s,c,_){var O=s==null?0:s.length;return O?(_&&typeof _!="number"&&Ho(s,c,_)?(c=0,_=O):(c=c==null?0:nr(c),_=_===n?O:nr(_)),hi(s,c,_)):[]}function ze(s,c){return Kr(s,c)}function vt(s,c,_){return _n(s,c,kn(_,2))}function Tt(s,c){var _=s==null?0:s.length;if(_){var O=Kr(s,c);if(O<_&&El(s[O],c))return O}return-1}function Rt(s,c){return Kr(s,c,!0)}function Ot(s,c,_){return _n(s,c,kn(_,2),!0)}function Ft(s,c){var _=s==null?0:s.length;if(_){var O=Kr(s,c,!0)-1;if(El(s[O],c))return O}return-1}function nt(s){return s&&s.length?jr(s):[]}function it(s,c){return s&&s.length?jr(s,kn(c,2)):[]}function It(s){var c=s==null?0:s.length;return c?hi(s,1,c):[]}function Je(s,c,_){return s&&s.length?(c=_||c===n?1:nr(c),hi(s,0,c<0?0:c)):[]}function wt(s,c,_){var O=s==null?0:s.length;return O?(c=_||c===n?1:nr(c),c=O-c,hi(s,c<0?0:c,O)):[]}function Kt(s,c){return s&&s.length?nf(s,kn(c,3),!1,!0):[]}function vn(s,c){return s&&s.length?nf(s,kn(c,3)):[]}var On=Gn(function(s){return dl(yo(s,1,Ji,!0))}),Wn=Gn(function(s){var c=Y(s);return Ji(c)&&(c=n),dl(yo(s,1,Ji,!0),kn(c,2))}),xr=Gn(function(s){var c=Y(s);return c=typeof c=="function"?c:n,dl(yo(s,1,Ji,!0),n,c)});function Pi(s){return s&&s.length?dl(s):[]}function ja(s,c){return s&&s.length?dl(s,kn(c,2)):[]}function Zo(s,c){return c=typeof c=="function"?c:n,s&&s.length?dl(s,n,c):[]}function Li(s){if(!(s&&s.length))return[];var c=0;return s=_r(s,function(_){if(Ji(_))return c=Ni(_.length,c),!0}),Ll(c,function(_){return hn(s,va(_))})}function qo(s,c){if(!(s&&s.length))return[];var _=Li(s);return c==null?_:hn(_,function(O){return Ke(c,n,O)})}var Es=Gn(function(s,c){return Ji(s)?Xc(s,c):[]}),Ql=Gn(function(s){return rf(_r(s,Ji))}),Cb=Gn(function(s){var c=Y(s);return Ji(c)&&(c=n),rf(_r(s,Ji),kn(c,2))}),Io=Gn(function(s){var c=Y(s);return c=typeof c=="function"?c:n,rf(_r(s,Ji),n,c)}),_o=Gn(Li);function Ca(s,c){return of(s||[],c||[],uc)}function xl(s,c){return of(s||[],c||[],Tu)}var Jl=Gn(function(s){var c=s.length,_=c>1?s[c-1]:n;return _=typeof _=="function"?(s.pop(),_):n,qo(s,_)});function ku(s){var c=ee(s);return c.__chain__=!0,c}function Ou(s,c){return c(s),s}function Cs(s,c){return c(s)}var _d=xs(function(s){var c=s.length,_=c?s[0]:0,O=this.__wrapped__,j=function(oe){return Oh(oe,s)};return c>1||this.__actions__.length||!(O instanceof ar)||!_l(_)?this.thru(j):(O=O.slice(_,+_+(c?1:0)),O.__actions__.push({func:Cs,args:[j],thisArg:n}),new Ko(O,this.__chain__).thru(function(oe){return c&&!oe.length&&oe.push(n),oe}))});function mg(){return ku(this)}function dT(){return new Ko(this.value(),this.__chain__)}function hT(){this.__values__===n&&(this.__values__=Ax(this.value()));var s=this.__index__>=this.__values__.length,c=s?n:this.__values__[this.__index__++];return{done:s,value:c}}function pT(){return this}function mT(s){for(var c,_=this;_ instanceof ac;){var O=fg(_);O.__index__=0,O.__values__=n,c?j.__wrapped__=O:c=O;var j=O;_=_.__wrapped__}return j.__wrapped__=s,c}function gT(){var s=this.__wrapped__;if(s instanceof ar){var c=s;return this.__actions__.length&&(c=new ar(this)),c=c.reverse(),c.__actions__.push({func:Cs,args:[Pe],thisArg:n}),new Ko(c,this.__chain__)}return this.thru(Pe)}function vT(){return id(this.__wrapped__,this.__actions__)}var yT=lf(function(s,c,_){ut.call(s,_)?++s[_]:ms(s,_,1)});function bT(s,c,_){var O=Kn(s)?sn:Ha;return _&&Ho(s,c,_)&&(c=n),O(s,kn(c,3))}function _T(s,c){var _=Kn(s)?_r:Xm;return _(s,kn(c,3))}var wT=Vl(o),xT=Vl(l);function ET(s,c){return yo(gg(s,c),1)}function CT(s,c){return yo(gg(s,c),Yt)}function ST(s,c,_){return _=_===n?1:nr(_),yo(gg(s,c),_)}function mx(s,c){var _=Kn(s)?Jt:Wl;return _(s,kn(c,3))}function gx(s,c){var _=Kn(s)?Rn:Km;return _(s,kn(c,3))}var TT=lf(function(s,c,_){ut.call(s,_)?s[_].push(c):ms(s,_,[c])});function MT(s,c,_,O){s=Ua(s)?s:xd(s),_=_&&!O?nr(_):0;var j=s.length;return _<0&&(_=Ni(j+_,0)),wg(s)?_<=j&&s.indexOf(c,_)>-1:!!j&&ri(s,c,_)>-1}var AT=Gn(function(s,c,_){var O=-1,j=typeof c=="function",oe=Ua(s)?ot(s.length):[];return Wl(s,function(Ce){oe[++O]=j?Ke(c,Ce,_):jl(Ce,c,_)}),oe}),DT=lf(function(s,c,_){ms(s,_,c)});function gg(s,c){var _=Kn(s)?hn:tg;return _(s,kn(c,3))}function kT(s,c,_,O){return s==null?[]:(Kn(c)||(c=c==null?[]:[c]),_=O?n:_,Kn(_)||(_=_==null?[]:[_]),ng(s,c,_))}var OT=lf(function(s,c,_){s[_?0:1].push(c)},function(){return[[],[]]});function IT(s,c,_){var O=Kn(s)?wi:Pl,j=arguments.length<3;return O(s,kn(c,4),_,j,Wl)}function NT(s,c,_){var O=Kn(s)?Zn:Pl,j=arguments.length<3;return O(s,kn(c,4),_,j,Km)}function PT(s,c){var _=Kn(s)?_r:Xm;return _(s,bg(kn(c,3)))}function LT(s){var c=Kn(s)?Dh:Su;return c(s)}function RT(s,c,_){(_?Ho(s,c,_):c===n)?c=1:c=nr(c);var O=Kn(s)?rb:sb;return O(s,c)}function FT(s){var c=Kn(s)?Gf:Dn;return c(s)}function BT(s){if(s==null)return 0;if(Ua(s))return wg(s)?ya(s):s.length;var c=bo(s);return c==Ue||c==He?s.size:Wh(s).length}function HT(s,c,_){var O=Kn(s)?Or:lb;return _&&Ho(s,c,_)&&(c=n),O(s,kn(c,3))}var qT=Gn(function(s,c){if(s==null)return[];var _=c.length;return _>1&&Ho(s,c[0],c[1])?c=[]:_>2&&Ho(c[0],c[1],c[2])&&(c=[c[0]]),ng(s,yo(c,1),[])}),vg=gu||function(){return p.Date.now()};function zT(s,c){if(typeof c!="function")throw new ne(i);return s=nr(s),function(){if(--s<1)return c.apply(this,arguments)}}function vx(s,c,_){return c=_?n:c,c=s&&c==null?s.length:c,Wa(s,b,n,n,n,n,c)}function yx(s,c){var _;if(typeof c!="function")throw new ne(i);return s=nr(s),function(){return--s>0&&(_=c.apply(this,arguments)),s<=1&&(c=n),_}}var Sb=Gn(function(s,c,_){var O=V;if(_.length){var j=Do(_,Mu(Sb));O|=Ae}return Wa(s,O,c,_,j)}),bx=Gn(function(s,c,_){var O=V|U;if(_.length){var j=Do(_,Mu(bx));O|=Ae}return Wa(c,O,s,_,j)});function _x(s,c,_){c=_?n:c;var O=Wa(s,ae,n,n,n,n,n,c);return O.placeholder=_x.placeholder,O}function wx(s,c,_){c=_?n:c;var O=Wa(s,le,n,n,n,n,n,c);return O.placeholder=wx.placeholder,O}function xx(s,c,_){var O,j,oe,Ce,Le,Ge,Ct=0,St=!1,Lt=!1,Zt=!0;if(typeof s!="function")throw new ne(i);c=js(c)||0,Ri(_)&&(St=!!_.leading,Lt="maxWait"in _,oe=Lt?Ni(js(_.maxWait)||0,c):oe,Zt="trailing"in _?!!_.trailing:Zt);function yn(Zi){var Cl=O,Pu=j;return O=j=n,Ct=Zi,Ce=s.apply(Pu,Cl),Ce}function Fn(Zi){return Ct=Zi,Le=yc(pr,c),St?yn(Zi):Ce}function lr(Zi){var Cl=Zi-Ge,Pu=Zi-Ct,zx=c-Cl;return Lt?ao(zx,oe-Pu):zx}function Bn(Zi){var Cl=Zi-Ge,Pu=Zi-Ct;return Ge===n||Cl>=c||Cl<0||Lt&&Pu>=oe}function pr(){var Zi=vg();if(Bn(Zi))return Er(Zi);Le=yc(pr,lr(Zi))}function Er(Zi){return Le=n,Zt&&O?yn(Zi):(O=j=n,Ce)}function Ts(){Le!==n&&af(Le),Ct=0,O=Ge=j=Le=n}function Sa(){return Le===n?Ce:Er(vg())}function Ms(){var Zi=vg(),Cl=Bn(Zi);if(O=arguments,j=this,Ge=Zi,Cl){if(Le===n)return Fn(Ge);if(Lt)return af(Le),Le=yc(pr,c),yn(Ge)}return Le===n&&(Le=yc(pr,c)),Ce}return Ms.cancel=Ts,Ms.flush=Sa,Ms}var WT=Gn(function(s,c){return Ih(s,1,c)}),jT=Gn(function(s,c,_){return Ih(s,js(c)||0,_)});function UT(s){return Wa(s,ye)}function yg(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new ne(i);var _=function(){var O=arguments,j=c?c.apply(this,O):O[0],oe=_.cache;if(oe.has(j))return oe.get(j);var Ce=s.apply(this,O);return _.cache=oe.set(j,Ce)||oe,Ce};return _.cache=new(yg.Cache||Pr),_}yg.Cache=Pr;function bg(s){if(typeof s!="function")throw new ne(i);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function VT(s){return yx(2,s)}var YT=Gh(function(s,c){c=c.length==1&&Kn(c[0])?hn(c[0],Gr(kn())):hn(yo(c,1),Gr(kn()));var _=c.length;return Gn(function(O){for(var j=-1,oe=ao(O.length,_);++j<oe;)O[j]=c[j].call(this,O[j]);return Ke(s,this,O)})}),Tb=Gn(function(s,c){var _=Do(c,Mu(Tb));return Wa(s,Ae,n,c,_)}),Ex=Gn(function(s,c){var _=Do(c,Mu(Ex));return Wa(s,ve,n,c,_)}),$T=xs(function(s,c){return Wa(s,te,n,n,n,c)});function GT(s,c){if(typeof s!="function")throw new ne(i);return c=c===n?c:nr(c),Gn(s,c)}function KT(s,c){if(typeof s!="function")throw new ne(i);return c=c==null?0:Ni(nr(c),0),Gn(function(_){var O=_[c],j=ys(_,0,c);return O&&pn(j,O),Ke(s,this,j)})}function XT(s,c,_){var O=!0,j=!0;if(typeof s!="function")throw new ne(i);return Ri(_)&&(O="leading"in _?!!_.leading:O,j="trailing"in _?!!_.trailing:j),xx(s,c,{leading:O,maxWait:c,trailing:j})}function QT(s){return vx(s,1)}function JT(s,c){return Tb(ad(c),s)}function ZT(){if(!arguments.length)return[];var s=arguments[0];return Kn(s)?s:[s]}function eM(s){return Ba(s,S)}function tM(s,c){return c=typeof c=="function"?c:n,Ba(s,S,c)}function nM(s){return Ba(s,y|S)}function rM(s,c){return c=typeof c=="function"?c:n,Ba(s,y|S,c)}function iM(s,c){return c==null||Xf(s,c,No(c))}function El(s,c){return s===c||s!==s&&c!==c}var oM=Jo(Qf),aM=Jo(function(s,c){return s>=c}),gf=Zm(function(){return arguments}())?Zm:function(s){return Vi(s)&&ut.call(s,"callee")&&!Hs.call(s,"callee")},Kn=ot.isArray,sM=K?Gr(K):ib;function Ua(s){return s!=null&&_g(s.length)&&!Iu(s)}function Ji(s){return Vi(s)&&Ua(s)}function lM(s){return s===!0||s===!1||Vi(s)&&Fo(s)==yr}var _c=xh||Fb,uM=Ee?Gr(Ee):qh;function cM(s){return Vi(s)&&s.nodeType===1&&!up(s)}function fM(s){if(s==null)return!0;if(Ua(s)&&(Kn(s)||typeof s=="string"||typeof s.splice=="function"||_c(s)||wd(s)||gf(s)))return!s.length;var c=bo(s);if(c==Ue||c==He)return!s.size;if(hf(s))return!Wh(s).length;for(var _ in s)if(ut.call(s,_))return!1;return!0}function dM(s,c){return Eu(s,c)}function hM(s,c,_){_=typeof _=="function"?_:n;var O=_?_(s,c):n;return O===n?Eu(s,c,n,_):!!O}function Mb(s){if(!Vi(s))return!1;var c=Fo(s);return c==re||c==qn||typeof s.message=="string"&&typeof s.name=="string"&&!up(s)}function pM(s){return typeof s=="number"&&Yc(s)}function Iu(s){if(!Ri(s))return!1;var c=Fo(s);return c==ge||c==Te||c==Vr||c==je}function Cx(s){return typeof s=="number"&&s==nr(s)}function _g(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=At}function Ri(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function Vi(s){return s!=null&&typeof s=="object"}var Sx=Se?Gr(Se):ob;function mM(s,c){return s===c||zh(s,c,Gl(c))}function gM(s,c,_){return _=typeof _=="function"?_:n,zh(s,c,Gl(c),_)}function vM(s){return Tx(s)&&s!=+s}function yM(s){if(mb(s))throw new Pn(r);return X(s)}function bM(s){return s===null}function _M(s){return s==null}function Tx(s){return typeof s=="number"||Vi(s)&&Fo(s)==Be}function up(s){if(!Vi(s)||Fo(s)!=Ne)return!1;var c=Ii(s);if(c===null)return!0;var _=ut.call(c,"constructor")&&c.constructor;return typeof _=="function"&&_ instanceof _&&_t.call(_)==gn}var Ab=Ve?Gr(Ve):eg;function wM(s){return Cx(s)&&s>=-At&&s<=At}var Mx=at?Gr(at):Ws;function wg(s){return typeof s=="string"||!Kn(s)&&Vi(s)&&Fo(s)==st}function Ss(s){return typeof s=="symbol"||Vi(s)&&Fo(s)==Xt}var wd=Et?Gr(Et):Oo;function xM(s){return s===n}function EM(s){return Vi(s)&&bo(s)==un}function CM(s){return Vi(s)&&Fo(s)==Ln}var SM=Jo(Jf),TM=Jo(function(s,c){return s<=c});function Ax(s){if(!s)return[];if(Ua(s))return wg(s)?ii(s):Ci(s);if(ds&&s[ds])return Bs(s[ds]());var c=bo(s),_=c==Ue?Xi:c==He?cs:xd;return _(s)}function Nu(s){if(!s)return s===0?s:0;if(s=js(s),s===Yt||s===-Yt){var c=s<0?-1:1;return c*tn}return s===s?s:0}function nr(s){var c=Nu(s),_=c%1;return c===c?_?c-_:c:0}function Dx(s){return s?wu(nr(s),0,Cn):0}function js(s){if(typeof s=="number")return s;if(Ss(s))return In;if(Ri(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=Ri(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=hu(s);var _=Dr.test(s);return _||go.test(s)?rl(s.slice(2),_?2:8):ir.test(s)?In:+s}function kx(s){return bs(s,Va(s))}function MM(s){return s?wu(nr(s),-At,At):s===0?s:0}function Ur(s){return s==null?"":Bo(s)}var AM=pl(function(s,c){if(hf(c)||Ua(c)){bs(c,No(c),s);return}for(var _ in c)ut.call(c,_)&&uc(s,_,c[_])}),Ox=pl(function(s,c){bs(c,Va(c),s)}),xg=pl(function(s,c,_,O){bs(c,Va(c),s,O)}),DM=pl(function(s,c,_,O){bs(c,No(c),s,O)}),kM=xs(Oh);function OM(s,c){var _=ql(s);return c==null?_:Gm(_,c)}var IM=Gn(function(s,c){s=wr(s);var _=-1,O=c.length,j=O>2?c[2]:n;for(j&&Ho(c[0],c[1],j)&&(O=1);++_<O;)for(var oe=c[_],Ce=Va(oe),Le=-1,Ge=Ce.length;++Le<Ge;){var Ct=Ce[Le],St=s[Ct];(St===n||El(St,ht[Ct])&&!ut.call(s,Ct))&&(s[Ct]=oe[Ct])}return s}),NM=Gn(function(s){return s.push(n,cf),Ke(Ix,n,s)});function PM(s,c){return ma(s,kn(c,3),gs)}function LM(s,c){return ma(s,kn(c,3),Rh)}function RM(s,c){return s==null?s:Ph(s,kn(c,3),Va)}function FM(s,c){return s==null?s:Lh(s,kn(c,3),Va)}function BM(s,c){return s&&gs(s,kn(c,3))}function HM(s,c){return s&&Rh(s,kn(c,3))}function qM(s){return s==null?[]:Qc(s,No(s))}function zM(s){return s==null?[]:Qc(s,Va(s))}function Db(s,c,_){var O=s==null?n:xu(s,c);return O===n?_:O}function WM(s,c){return s!=null&&gd(s,c,Jm)}function kb(s,c){return s!=null&&gd(s,c,Jc)}var jM=gl(function(s,c,_){c!=null&&typeof c.toString!="function"&&(c=mn.call(c)),s[c]=_},Ib(Ya)),UM=gl(function(s,c,_){c!=null&&typeof c.toString!="function"&&(c=mn.call(c)),ut.call(s,c)?s[c].push(_):s[c]=[_]},kn),VM=Gn(jl);function No(s){return Ua(s)?Ah(s):Wh(s)}function Va(s){return Ua(s)?Ah(s,!0):ab(s)}function YM(s,c){var _={};return c=kn(c,3),gs(s,function(O,j,oe){ms(_,c(O,j,oe),O)}),_}function $M(s,c){var _={};return c=kn(c,3),gs(s,function(O,j,oe){ms(_,j,c(O,j,oe))}),_}var GM=pl(function(s,c,_){Zf(s,c,_)}),Ix=pl(function(s,c,_,O){Zf(s,c,_,O)}),KM=xs(function(s,c){var _={};if(s==null)return _;var O=!1;c=hn(c,function(oe){return oe=hl(oe,s),O||(O=oe.length>1),oe}),bs(s,hd(s),_),O&&(_=Ba(_,y|x|S,dd));for(var j=c.length;j--;)dc(_,c[j]);return _});function XM(s,c){return Nx(s,bg(kn(c)))}var QM=xs(function(s,c){return s==null?{}:ed(s,c)});function Nx(s,c){if(s==null)return{};var _=hn(hd(s),function(O){return[O]});return c=kn(c),td(s,_,function(O,j){return c(O,j[0])})}function JM(s,c,_){c=hl(c,s);var O=-1,j=c.length;for(j||(j=1,s=n);++O<j;){var oe=s==null?n:s[Lr(c[O])];oe===n&&(O=j,oe=_),s=Iu(oe)?oe.call(s):oe}return s}function ZM(s,c,_){return s==null?s:Tu(s,c,_)}function eA(s,c,_,O){return O=typeof O=="function"?O:n,s==null?s:Tu(s,c,_,O)}var Px=fd(No),Lx=fd(Va);function tA(s,c,_){var O=Kn(s),j=O||_c(s)||wd(s);if(c=kn(c,4),_==null){var oe=s&&s.constructor;j?_=O?new oe:[]:Ri(s)?_=Iu(oe)?ql(Ii(s)):{}:_={}}return(j?Jt:gs)(s,function(Ce,Le,Ge){return c(_,Ce,Le,Ge)}),_}function nA(s,c){return s==null?!0:dc(s,c)}function rA(s,c,_){return s==null?s:rd(s,c,ad(_))}function iA(s,c,_,O){return O=typeof O=="function"?O:n,s==null?s:rd(s,c,ad(_),O)}function xd(s){return s==null?[]:pu(s,No(s))}function oA(s){return s==null?[]:pu(s,Va(s))}function aA(s,c,_){return _===n&&(_=c,c=n),_!==n&&(_=js(_),_=_===_?_:0),c!==n&&(c=js(c),c=c===c?c:0),wu(js(s),c,_)}function sA(s,c,_){return c=Nu(c),_===n?(_=c,c=0):_=Nu(_),s=js(s),Fh(s,c,_)}function lA(s,c,_){if(_&&typeof _!="boolean"&&Ho(s,c,_)&&(c=_=n),_===n&&(typeof c=="boolean"?(_=c,c=n):typeof s=="boolean"&&(_=s,s=n)),s===n&&c===n?(s=0,c=1):(s=Nu(s),c===n?(c=s,s=0):c=Nu(c)),s>c){var O=s;s=c,c=O}if(_||s%1||c%1){var j=ic();return ao(s+j*(c-s+ls("1e-"+((j+"").length-1))),c)}return tf(s,c)}var uA=lo(function(s,c,_){return c=c.toLowerCase(),s+(_?Rx(c):c)});function Rx(s){return Ob(Ur(s).toLowerCase())}function Fx(s){return s=Ur(s),s&&s.replace(Qn,il).replace(Vo,"")}function cA(s,c,_){s=Ur(s),c=Bo(c);var O=s.length;_=_===n?O:wu(nr(_),0,O);var j=_;return _-=c.length,_>=0&&s.slice(_,j)==c}function fA(s){return s=Ur(s),s&&Ki.test(s)?s.replace(vi,ol):s}function dA(s){return s=Ur(s),s&&rt.test(s)?s.replace(qe,"\\$&"):s}var hA=lo(function(s,c,_){return s+(_?"-":"")+c.toLowerCase()}),pA=lo(function(s,c,_){return s+(_?" ":"")+c.toLowerCase()}),mA=Ul("toLowerCase");function gA(s,c,_){s=Ur(s),c=nr(c);var O=c?ya(s):0;if(!c||O>=c)return s;var j=(c-O)/2;return vl(zs(j),_)+s+vl(qs(j),_)}function vA(s,c,_){s=Ur(s),c=nr(c);var O=c?ya(s):0;return c&&O<c?s+vl(c-O,_):s}function yA(s,c,_){s=Ur(s),c=nr(c);var O=c?ya(s):0;return c&&O<c?vl(c-O,_)+s:s}function bA(s,c,_){return _||c==null?c=0:c&&(c=+c),$c(Ur(s).replace(et,""),c||0)}function _A(s,c,_){return(_?Ho(s,c,_):c===n)?c=1:c=nr(c),vs(Ur(s),c)}function wA(){var s=arguments,c=Ur(s[0]);return s.length<3?c:c.replace(s[1],s[2])}var xA=lo(function(s,c,_){return s+(_?"_":"")+c.toLowerCase()});function EA(s,c,_){return _&&typeof _!="number"&&Ho(s,c,_)&&(c=_=n),_=_===n?Cn:_>>>0,_?(s=Ur(s),s&&(typeof c=="string"||c!=null&&!Ab(c))&&(c=Bo(c),!c&&Oi(s))?ys(ii(s),0,_):s.split(c,_)):[]}var CA=lo(function(s,c,_){return s+(_?" ":"")+Ob(c)});function SA(s,c,_){return s=Ur(s),_=_==null?0:wu(nr(_),0,s.length),c=Bo(c),s.slice(_,_+c.length)==c}function TA(s,c,_){var O=ee.templateSettings;_&&Ho(s,c,_)&&(c=n),s=Ur(s),c=xg({},c,O,uf);var j=xg({},c.imports,O.imports,uf),oe=No(j),Ce=pu(j,oe),Le,Ge,Ct=0,St=c.interpolate||no,Lt="__p += '",Zt=Ra((c.escape||no).source+"|"+St.source+"|"+(St===R?$n:no).source+"|"+(c.evaluate||no).source+"|$","g"),yn="//# sourceURL="+(ut.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Mo+"]")+`
`;s.replace(Zt,function(Bn,pr,Er,Ts,Sa,Ms){return Er||(Er=Ts),Lt+=s.slice(Ct,Ms).replace(el,al),pr&&(Le=!0,Lt+=`' +
__e(`+pr+`) +
'`),Sa&&(Ge=!0,Lt+=`';
`+Sa+`;
__p += '`),Er&&(Lt+=`' +
((__t = (`+Er+`)) == null ? '' : __t) +
'`),Ct=Ms+Bn.length,Bn}),Lt+=`';
`;var Fn=ut.call(c,"variable")&&c.variable;if(!Fn)Lt=`with (obj) {
`+Lt+`
}
`;else if($t.test(Fn))throw new Pn(a);Lt=(Ge?Lt.replace(Tn,""):Lt).replace(to,"$1").replace(po,"$1;"),Lt="function("+(Fn||"obj")+`) {
`+(Fn?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Le?", __e = _.escape":"")+(Ge?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Lt+`return __p
}`;var lr=Hx(function(){return fr(oe,yn+"return "+Lt).apply(n,Ce)});if(lr.source=Lt,Mb(lr))throw lr;return lr}function MA(s){return Ur(s).toLowerCase()}function AA(s){return Ur(s).toUpperCase()}function DA(s,c,_){if(s=Ur(s),s&&(_||c===n))return hu(s);if(!s||!(c=Bo(c)))return s;var O=ii(s),j=ii(c),oe=ki(O,j),Ce=Zu(O,j)+1;return ys(O,oe,Ce).join("")}function kA(s,c,_){if(s=Ur(s),s&&(_||c===n))return s.slice(0,oi(s)+1);if(!s||!(c=Bo(c)))return s;var O=ii(s),j=Zu(O,ii(c))+1;return ys(O,0,j).join("")}function OA(s,c,_){if(s=Ur(s),s&&(_||c===n))return s.replace(et,"");if(!s||!(c=Bo(c)))return s;var O=ii(s),j=ki(O,ii(c));return ys(O,j).join("")}function IA(s,c){var _=Oe,O=De;if(Ri(c)){var j="separator"in c?c.separator:j;_="length"in c?nr(c.length):_,O="omission"in c?Bo(c.omission):O}s=Ur(s);var oe=s.length;if(Oi(s)){var Ce=ii(s);oe=Ce.length}if(_>=oe)return s;var Le=_-ya(O);if(Le<1)return O;var Ge=Ce?ys(Ce,0,Le).join(""):s.slice(0,Le);if(j===n)return Ge+O;if(Ce&&(Le+=Ge.length-Le),Ab(j)){if(s.slice(Le).search(j)){var Ct,St=Ge;for(j.global||(j=Ra(j.source,Ur(ei.exec(j))+"g")),j.lastIndex=0;Ct=j.exec(St);)var Lt=Ct.index;Ge=Ge.slice(0,Lt===n?Le:Lt)}}else if(s.indexOf(Bo(j),Le)!=Le){var Zt=Ge.lastIndexOf(j);Zt>-1&&(Ge=Ge.slice(0,Zt))}return Ge+O}function NA(s){return s=Ur(s),s&&Zr.test(s)?s.replace(mo,La):s}var PA=lo(function(s,c,_){return s+(_?" ":"")+c.toUpperCase()}),Ob=Ul("toUpperCase");function Bx(s,c,_){return s=Ur(s),c=_?n:c,c===n?sl(s)?gi(s):Di(s):s.match(c)||[]}var Hx=Gn(function(s,c){try{return Ke(s,n,c)}catch(_){return Mb(_)?_:new Pn(_)}}),LA=xs(function(s,c){return Jt(c,function(_){_=Lr(_),ms(s,_,Sb(s[_],s))}),s});function RA(s){var c=s==null?0:s.length,_=kn();return s=c?hn(s,function(O){if(typeof O[1]!="function")throw new ne(i);return[_(O[0]),O[1]]}):[],Gn(function(O){for(var j=-1;++j<c;){var oe=s[j];if(Ke(oe[0],this,O))return Ke(oe[1],this,O)}})}function FA(s){return Kf(Ba(s,y))}function Ib(s){return function(){return s}}function BA(s,c){return s==null||s!==s?c:s}var HA=Yl(),qA=Yl(!0);function Ya(s){return s}function Nb(s){return Zc(typeof s=="function"?s:Ba(s,y))}function zA(s){return jh(Ba(s,y))}function WA(s,c){return Sn(s,Ba(c,y))}var jA=Gn(function(s,c){return function(_){return jl(_,s,c)}}),UA=Gn(function(s,c){return function(_){return jl(s,_,c)}});function Pb(s,c,_){var O=No(c),j=Qc(c,O);_==null&&!(Ri(c)&&(j.length||!O.length))&&(_=c,c=s,s=this,j=Qc(c,No(c)));var oe=!(Ri(_)&&"chain"in _)||!!_.chain,Ce=Iu(s);return Jt(j,function(Le){var Ge=c[Le];s[Le]=Ge,Ce&&(s.prototype[Le]=function(){var Ct=this.__chain__;if(oe||Ct){var St=s(this.__wrapped__),Lt=St.__actions__=Ci(this.__actions__);return Lt.push({func:Ge,args:arguments,thisArg:s}),St.__chain__=Ct,St}return Ge.apply(s,pn([this.value()],arguments))})}),s}function VA(){return p._===this&&(p._=En),this}function Lb(){}function YA(s){return s=nr(s),Gn(function(c){return Vh(c,s)})}var $A=za(hn),GA=za(sn),KA=za(Or);function qx(s){return np(s)?va(Lr(s)):Yh(s)}function XA(s){return function(c){return s==null?n:xu(s,c)}}var QA=yl(),JA=yl(!0);function Rb(){return[]}function Fb(){return!1}function ZA(){return{}}function eD(){return""}function tD(){return!0}function nD(s,c){if(s=nr(s),s<1||s>At)return[];var _=Cn,O=ao(s,Cn);c=kn(c),s-=Cn;for(var j=Ll(O,c);++_<s;)c(_);return j}function rD(s){return Kn(s)?hn(s,Lr):Ss(s)?[s]:Ci(mf(Ur(s)))}function iD(s){var c=++zt;return Ur(s)+c}var oD=_s(function(s,c){return s+c},0),aD=mc("ceil"),sD=_s(function(s,c){return s/c},1),lD=mc("floor");function uD(s){return s&&s.length?cc(s,Ya,Qf):n}function cD(s,c){return s&&s.length?cc(s,kn(c,2),Qf):n}function fD(s){return ga(s,Ya)}function dD(s,c){return ga(s,kn(c,2))}function hD(s){return s&&s.length?cc(s,Ya,Jf):n}function pD(s,c){return s&&s.length?cc(s,kn(c,2),Jf):n}var mD=_s(function(s,c){return s*c},1),gD=mc("round"),vD=_s(function(s,c){return s-c},0);function yD(s){return s&&s.length?Go(s,Ya):0}function bD(s,c){return s&&s.length?Go(s,kn(c,2)):0}return ee.after=zT,ee.ary=vx,ee.assign=AM,ee.assignIn=Ox,ee.assignInWith=xg,ee.assignWith=DM,ee.at=kM,ee.before=yx,ee.bind=Sb,ee.bindAll=LA,ee.bindKey=bx,ee.castArray=ZT,ee.chain=ku,ee.chunk=_b,ee.compact=ap,ee.concat=sp,ee.cond=RA,ee.conforms=FA,ee.constant=Ib,ee.countBy=yT,ee.create=OM,ee.curry=_x,ee.curryRight=wx,ee.debounce=xx,ee.defaults=IM,ee.defaultsDeep=NM,ee.defer=WT,ee.delay=jT,ee.difference=dg,ee.differenceBy=hg,ee.differenceWith=bd,ee.drop=lp,ee.dropRight=wb,ee.dropRightWhile=xb,ee.dropWhile=pg,ee.fill=Eb,ee.filter=_T,ee.flatMap=ET,ee.flatMapDeep=CT,ee.flatMapDepth=ST,ee.flatten=f,ee.flattenDeep=h,ee.flattenDepth=v,ee.flip=UT,ee.flow=HA,ee.flowRight=qA,ee.fromPairs=g,ee.functions=qM,ee.functionsIn=zM,ee.groupBy=TT,ee.initial=C,ee.intersection=D,ee.intersectionBy=I,ee.intersectionWith=q,ee.invert=jM,ee.invertBy=UM,ee.invokeMap=AT,ee.iteratee=Nb,ee.keyBy=DT,ee.keys=No,ee.keysIn=Va,ee.map=gg,ee.mapKeys=YM,ee.mapValues=$M,ee.matches=zA,ee.matchesProperty=WA,ee.memoize=yg,ee.merge=GM,ee.mergeWith=Ix,ee.method=jA,ee.methodOf=UA,ee.mixin=Pb,ee.negate=bg,ee.nthArg=YA,ee.omit=KM,ee.omitBy=XM,ee.once=VT,ee.orderBy=kT,ee.over=$A,ee.overArgs=YT,ee.overEvery=GA,ee.overSome=KA,ee.partial=Tb,ee.partialRight=Ex,ee.partition=OT,ee.pick=QM,ee.pickBy=Nx,ee.property=qx,ee.propertyOf=XA,ee.pull=fe,ee.pullAll=ce,ee.pullAllBy=he,ee.pullAllWith=se,ee.pullAt=pe,ee.range=QA,ee.rangeRight=JA,ee.rearg=$T,ee.reject=PT,ee.remove=we,ee.rest=GT,ee.reverse=Pe,ee.sampleSize=RT,ee.set=ZM,ee.setWith=eA,ee.shuffle=FT,ee.slice=xe,ee.sortBy=qT,ee.sortedUniq=nt,ee.sortedUniqBy=it,ee.split=EA,ee.spread=KT,ee.tail=It,ee.take=Je,ee.takeRight=wt,ee.takeRightWhile=Kt,ee.takeWhile=vn,ee.tap=Ou,ee.throttle=XT,ee.thru=Cs,ee.toArray=Ax,ee.toPairs=Px,ee.toPairsIn=Lx,ee.toPath=rD,ee.toPlainObject=kx,ee.transform=tA,ee.unary=QT,ee.union=On,ee.unionBy=Wn,ee.unionWith=xr,ee.uniq=Pi,ee.uniqBy=ja,ee.uniqWith=Zo,ee.unset=nA,ee.unzip=Li,ee.unzipWith=qo,ee.update=rA,ee.updateWith=iA,ee.values=xd,ee.valuesIn=oA,ee.without=Es,ee.words=Bx,ee.wrap=JT,ee.xor=Ql,ee.xorBy=Cb,ee.xorWith=Io,ee.zip=_o,ee.zipObject=Ca,ee.zipObjectDeep=xl,ee.zipWith=Jl,ee.entries=Px,ee.entriesIn=Lx,ee.extend=Ox,ee.extendWith=xg,Pb(ee,ee),ee.add=oD,ee.attempt=Hx,ee.camelCase=uA,ee.capitalize=Rx,ee.ceil=aD,ee.clamp=aA,ee.clone=eM,ee.cloneDeep=nM,ee.cloneDeepWith=rM,ee.cloneWith=tM,ee.conformsTo=iM,ee.deburr=Fx,ee.defaultTo=BA,ee.divide=sD,ee.endsWith=cA,ee.eq=El,ee.escape=fA,ee.escapeRegExp=dA,ee.every=bT,ee.find=wT,ee.findIndex=o,ee.findKey=PM,ee.findLast=xT,ee.findLastIndex=l,ee.findLastKey=LM,ee.floor=lD,ee.forEach=mx,ee.forEachRight=gx,ee.forIn=RM,ee.forInRight=FM,ee.forOwn=BM,ee.forOwnRight=HM,ee.get=Db,ee.gt=oM,ee.gte=aM,ee.has=WM,ee.hasIn=kb,ee.head=T,ee.identity=Ya,ee.includes=MT,ee.indexOf=E,ee.inRange=sA,ee.invoke=VM,ee.isArguments=gf,ee.isArray=Kn,ee.isArrayBuffer=sM,ee.isArrayLike=Ua,ee.isArrayLikeObject=Ji,ee.isBoolean=lM,ee.isBuffer=_c,ee.isDate=uM,ee.isElement=cM,ee.isEmpty=fM,ee.isEqual=dM,ee.isEqualWith=hM,ee.isError=Mb,ee.isFinite=pM,ee.isFunction=Iu,ee.isInteger=Cx,ee.isLength=_g,ee.isMap=Sx,ee.isMatch=mM,ee.isMatchWith=gM,ee.isNaN=vM,ee.isNative=yM,ee.isNil=_M,ee.isNull=bM,ee.isNumber=Tx,ee.isObject=Ri,ee.isObjectLike=Vi,ee.isPlainObject=up,ee.isRegExp=Ab,ee.isSafeInteger=wM,ee.isSet=Mx,ee.isString=wg,ee.isSymbol=Ss,ee.isTypedArray=wd,ee.isUndefined=xM,ee.isWeakMap=EM,ee.isWeakSet=CM,ee.join=F,ee.kebabCase=hA,ee.last=Y,ee.lastIndexOf=de,ee.lowerCase=pA,ee.lowerFirst=mA,ee.lt=SM,ee.lte=TM,ee.max=uD,ee.maxBy=cD,ee.mean=fD,ee.meanBy=dD,ee.min=hD,ee.minBy=pD,ee.stubArray=Rb,ee.stubFalse=Fb,ee.stubObject=ZA,ee.stubString=eD,ee.stubTrue=tD,ee.multiply=mD,ee.nth=J,ee.noConflict=VA,ee.noop=Lb,ee.now=vg,ee.pad=gA,ee.padEnd=vA,ee.padStart=yA,ee.parseInt=bA,ee.random=lA,ee.reduce=IT,ee.reduceRight=NT,ee.repeat=_A,ee.replace=wA,ee.result=JM,ee.round=gD,ee.runInContext=We,ee.sample=LT,ee.size=BT,ee.snakeCase=xA,ee.some=HT,ee.sortedIndex=ze,ee.sortedIndexBy=vt,ee.sortedIndexOf=Tt,ee.sortedLastIndex=Rt,ee.sortedLastIndexBy=Ot,ee.sortedLastIndexOf=Ft,ee.startCase=CA,ee.startsWith=SA,ee.subtract=vD,ee.sum=yD,ee.sumBy=bD,ee.template=TA,ee.times=nD,ee.toFinite=Nu,ee.toInteger=nr,ee.toLength=Dx,ee.toLower=MA,ee.toNumber=js,ee.toSafeInteger=MM,ee.toString=Ur,ee.toUpper=AA,ee.trim=DA,ee.trimEnd=kA,ee.trimStart=OA,ee.truncate=IA,ee.unescape=NA,ee.uniqueId=iD,ee.upperCase=PA,ee.upperFirst=Ob,ee.each=mx,ee.eachRight=gx,ee.first=T,Pb(ee,function(){var s={};return gs(ee,function(c,_){ut.call(ee.prototype,_)||(s[_]=c)}),s}(),{chain:!1}),ee.VERSION=e,Jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){ee[s].placeholder=ee}),Jt(["drop","take"],function(s,c){ar.prototype[s]=function(_){_=_===n?1:Ni(nr(_),0);var O=this.__filtered__&&!c?new ar(this):this.clone();return O.__filtered__?O.__takeCount__=ao(_,O.__takeCount__):O.__views__.push({size:ao(_,Cn),type:s+(O.__dir__<0?"Right":"")}),O},ar.prototype[s+"Right"]=function(_){return this.reverse()[s](_).reverse()}}),Jt(["filter","map","takeWhile"],function(s,c){var _=c+1,O=_==Dt||_==en;ar.prototype[s]=function(j){var oe=this.clone();return oe.__iteratees__.push({iteratee:kn(j,3),type:_}),oe.__filtered__=oe.__filtered__||O,oe}}),Jt(["head","last"],function(s,c){var _="take"+(c?"Right":"");ar.prototype[s]=function(){return this[_](1).value()[0]}}),Jt(["initial","tail"],function(s,c){var _="drop"+(c?"":"Right");ar.prototype[s]=function(){return this.__filtered__?new ar(this):this[_](1)}}),ar.prototype.compact=function(){return this.filter(Ya)},ar.prototype.find=function(s){return this.filter(s).head()},ar.prototype.findLast=function(s){return this.reverse().find(s)},ar.prototype.invokeMap=Gn(function(s,c){return typeof s=="function"?new ar(this):this.map(function(_){return jl(_,s,c)})}),ar.prototype.reject=function(s){return this.filter(bg(kn(s)))},ar.prototype.slice=function(s,c){s=nr(s);var _=this;return _.__filtered__&&(s>0||c<0)?new ar(_):(s<0?_=_.takeRight(-s):s&&(_=_.drop(s)),c!==n&&(c=nr(c),_=c<0?_.dropRight(-c):_.take(c-s)),_)},ar.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ar.prototype.toArray=function(){return this.take(Cn)},gs(ar.prototype,function(s,c){var _=/^(?:filter|find|map|reject)|While$/.test(c),O=/^(?:head|last)$/.test(c),j=ee[O?"take"+(c=="last"?"Right":""):c],oe=O||/^find/.test(c);j&&(ee.prototype[c]=function(){var Ce=this.__wrapped__,Le=O?[1]:arguments,Ge=Ce instanceof ar,Ct=Le[0],St=Ge||Kn(Ce),Lt=function(pr){var Er=j.apply(ee,pn([pr],Le));return O&&Zt?Er[0]:Er};St&&_&&typeof Ct=="function"&&Ct.length!=1&&(Ge=St=!1);var Zt=this.__chain__,yn=!!this.__actions__.length,Fn=oe&&!Zt,lr=Ge&&!yn;if(!oe&&St){Ce=lr?Ce:new ar(this);var Bn=s.apply(Ce,Le);return Bn.__actions__.push({func:Cs,args:[Lt],thisArg:n}),new Ko(Bn,Zt)}return Fn&&lr?s.apply(this,Le):(Bn=this.thru(Lt),Fn?O?Bn.value()[0]:Bn.value():Bn)})}),Jt(["pop","push","shift","sort","splice","unshift"],function(s){var c=_e[s],_=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",O=/^(?:pop|shift)$/.test(s);ee.prototype[s]=function(){var j=arguments;if(O&&!this.__chain__){var oe=this.value();return c.apply(Kn(oe)?oe:[],j)}return this[_](function(Ce){return c.apply(Kn(Ce)?Ce:[],j)})}}),gs(ar.prototype,function(s,c){var _=ee[c];if(_){var O=_.name+"";ut.call(cl,O)||(cl[O]=[]),cl[O].push({name:c,func:_})}}),cl[qa(n,U).name]=[{name:"wrapper",func:n}],ar.prototype.clone=Vf,ar.prototype.reverse=Yf,ar.prototype.value=_u,ee.prototype.at=_d,ee.prototype.chain=mg,ee.prototype.commit=dT,ee.prototype.next=hT,ee.prototype.plant=mT,ee.prototype.reverse=gT,ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=vT,ee.prototype.first=ee.prototype.head,ds&&(ee.prototype[ds]=pT),ee},di=mu();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(p._=di,define(function(){return di})):M?((M.exports=di)._=di,w._=di):p._=di}).call(fh)});var zf=eu((uS,Ay)=>{(function(n){"use strict";var e,t=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,r=Math.ceil,i=Math.floor,a="[BigNumber Error] ",u=a+"Number primitive has more than 15 significant digits: ",d=1e14,m=14,y=9007199254740991,x=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],S=1e7,L=1e9;function H(b){var te,ye,Oe,De=yt.prototype={constructor:yt,toString:null,valueOf:null},lt=new yt(1),ct=20,Dt=4,Mt=-7,en=21,Yt=-1e7,At=1e7,tn=!1,In=1,Cn=0,Vn={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},rr="0123456789abcdefghijklmnopqrstuvwxyz",ur=!0;function yt(re,ge){var Te,Ue,Be,$e,Ne,Ie,je,Xe,He=this;if(!(He instanceof yt))return new yt(re,ge);if(ge==null){if(re&&re._isBigNumber===!0){He.s=re.s,!re.c||re.e>At?He.c=He.e=null:re.e<Yt?He.c=[He.e=0]:(He.e=re.e,He.c=re.c.slice());return}if((Ie=typeof re=="number")&&re*0==0){if(He.s=1/re<0?(re=-re,-1):1,re===~~re){for($e=0,Ne=re;Ne>=10;Ne/=10,$e++);$e>At?He.c=He.e=null:(He.e=$e,He.c=[re]);return}Xe=String(re)}else{if(!t.test(Xe=String(re)))return Oe(He,Xe,Ie);He.s=Xe.charCodeAt(0)==45?(Xe=Xe.slice(1),-1):1}($e=Xe.indexOf("."))>-1&&(Xe=Xe.replace(".","")),(Ne=Xe.search(/e/i))>0?($e<0&&($e=Ne),$e+=+Xe.slice(Ne+1),Xe=Xe.substring(0,Ne)):$e<0&&($e=Xe.length)}else{if(ae(ge,2,rr.length,"Base"),ge==10&&ur)return He=new yt(re),fn(He,ct+He.e+1,Dt);if(Xe=String(re),Ie=typeof re=="number"){if(re*0!=0)return Oe(He,Xe,Ie,ge);if(He.s=1/re<0?(Xe=Xe.slice(1),-1):1,yt.DEBUG&&Xe.replace(/^0\.0*|\./,"").length>15)throw Error(u+re)}else He.s=Xe.charCodeAt(0)===45?(Xe=Xe.slice(1),-1):1;for(Te=rr.slice(0,ge),$e=Ne=0,je=Xe.length;Ne<je;Ne++)if(Te.indexOf(Ue=Xe.charAt(Ne))<0){if(Ue=="."){if(Ne>$e){$e=je;continue}}else if(!Be&&(Xe==Xe.toUpperCase()&&(Xe=Xe.toLowerCase())||Xe==Xe.toLowerCase()&&(Xe=Xe.toUpperCase()))){Be=!0,Ne=-1,$e=0;continue}return Oe(He,String(re),Ie,ge)}Ie=!1,Xe=ye(Xe,ge,10,He.s),($e=Xe.indexOf("."))>-1?Xe=Xe.replace(".",""):$e=Xe.length}for(Ne=0;Xe.charCodeAt(Ne)===48;Ne++);for(je=Xe.length;Xe.charCodeAt(--je)===48;);if(Xe=Xe.slice(Ne,++je)){if(je-=Ne,Ie&&yt.DEBUG&&je>15&&(re>y||re!==i(re)))throw Error(u+He.s*re);if(($e=$e-Ne-1)>At)He.c=He.e=null;else if($e<Yt)He.c=[He.e=0];else{if(He.e=$e,He.c=[],Ne=($e+1)%m,$e<0&&(Ne+=m),Ne<je){for(Ne&&He.c.push(+Xe.slice(0,Ne)),je-=m;Ne<je;)He.c.push(+Xe.slice(Ne,Ne+=m));Ne=m-(Xe=Xe.slice(Ne)).length}else Ne-=je;for(;Ne--;Xe+="0");He.c.push(+Xe)}}else He.c=[He.e=0]}yt.clone=H,yt.ROUND_UP=0,yt.ROUND_DOWN=1,yt.ROUND_CEIL=2,yt.ROUND_FLOOR=3,yt.ROUND_HALF_UP=4,yt.ROUND_HALF_DOWN=5,yt.ROUND_HALF_EVEN=6,yt.ROUND_HALF_CEIL=7,yt.ROUND_HALF_FLOOR=8,yt.EUCLID=9,yt.config=yt.set=function(re){var ge,Te;if(re!=null)if(typeof re=="object"){if(re.hasOwnProperty(ge="DECIMAL_PLACES")&&(Te=re[ge],ae(Te,0,L,ge),ct=Te),re.hasOwnProperty(ge="ROUNDING_MODE")&&(Te=re[ge],ae(Te,0,8,ge),Dt=Te),re.hasOwnProperty(ge="EXPONENTIAL_AT")&&(Te=re[ge],Te&&Te.pop?(ae(Te[0],-L,0,ge),ae(Te[1],0,L,ge),Mt=Te[0],en=Te[1]):(ae(Te,-L,L,ge),Mt=-(en=Te<0?-Te:Te))),re.hasOwnProperty(ge="RANGE"))if(Te=re[ge],Te&&Te.pop)ae(Te[0],-L,-1,ge),ae(Te[1],1,L,ge),Yt=Te[0],At=Te[1];else if(ae(Te,-L,L,ge),Te)Yt=-(At=Te<0?-Te:Te);else throw Error(a+ge+" cannot be zero: "+Te);if(re.hasOwnProperty(ge="CRYPTO"))if(Te=re[ge],Te===!!Te)if(Te)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))tn=Te;else throw tn=!Te,Error(a+"crypto unavailable");else tn=Te;else throw Error(a+ge+" not true or false: "+Te);if(re.hasOwnProperty(ge="MODULO_MODE")&&(Te=re[ge],ae(Te,0,9,ge),In=Te),re.hasOwnProperty(ge="POW_PRECISION")&&(Te=re[ge],ae(Te,0,L,ge),Cn=Te),re.hasOwnProperty(ge="FORMAT"))if(Te=re[ge],typeof Te=="object")Vn=Te;else throw Error(a+ge+" not an object: "+Te);if(re.hasOwnProperty(ge="ALPHABET"))if(Te=re[ge],typeof Te=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(Te))ur=Te.slice(0,10)=="0123456789",rr=Te;else throw Error(a+ge+" invalid: "+Te)}else throw Error(a+"Object expected: "+re);return{DECIMAL_PLACES:ct,ROUNDING_MODE:Dt,EXPONENTIAL_AT:[Mt,en],RANGE:[Yt,At],CRYPTO:tn,MODULO_MODE:In,POW_PRECISION:Cn,FORMAT:Vn,ALPHABET:rr}},yt.isBigNumber=function(re){if(!re||re._isBigNumber!==!0)return!1;if(!yt.DEBUG)return!0;var ge,Te,Ue=re.c,Be=re.e,$e=re.s;e:if({}.toString.call(Ue)=="[object Array]"){if(($e===1||$e===-1)&&Be>=-L&&Be<=L&&Be===i(Be)){if(Ue[0]===0){if(Be===0&&Ue.length===1)return!0;break e}if(ge=(Be+1)%m,ge<1&&(ge+=m),String(Ue[0]).length==ge){for(ge=0;ge<Ue.length;ge++)if(Te=Ue[ge],Te<0||Te>=d||Te!==i(Te))break e;if(Te!==0)return!0}}}else if(Ue===null&&Be===null&&($e===null||$e===1||$e===-1))return!0;throw Error(a+"Invalid BigNumber: "+re)},yt.maximum=yt.max=function(){return Vr(arguments,De.lt)},yt.minimum=yt.min=function(){return Vr(arguments,De.gt)},yt.random=function(){var re=9007199254740992,ge=Math.random()*re&2097151?function(){return i(Math.random()*re)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(Te){var Ue,Be,$e,Ne,Ie,je=0,Xe=[],He=new yt(lt);if(Te==null?Te=ct:ae(Te,0,L),Ne=r(Te/m),tn)if(crypto.getRandomValues){for(Ue=crypto.getRandomValues(new Uint32Array(Ne*=2));je<Ne;)Ie=Ue[je]*131072+(Ue[je+1]>>>11),Ie>=9e15?(Be=crypto.getRandomValues(new Uint32Array(2)),Ue[je]=Be[0],Ue[je+1]=Be[1]):(Xe.push(Ie%1e14),je+=2);je=Ne/2}else if(crypto.randomBytes){for(Ue=crypto.randomBytes(Ne*=7);je<Ne;)Ie=(Ue[je]&31)*281474976710656+Ue[je+1]*1099511627776+Ue[je+2]*4294967296+Ue[je+3]*16777216+(Ue[je+4]<<16)+(Ue[je+5]<<8)+Ue[je+6],Ie>=9e15?crypto.randomBytes(7).copy(Ue,je):(Xe.push(Ie%1e14),je+=7);je=Ne/7}else throw tn=!1,Error(a+"crypto unavailable");if(!tn)for(;je<Ne;)Ie=ge(),Ie<9e15&&(Xe[je++]=Ie%1e14);for(Ne=Xe[--je],Te%=m,Ne&&Te&&(Ie=x[m-Te],Xe[je]=i(Ne/Ie)*Ie);Xe[je]===0;Xe.pop(),je--);if(je<0)Xe=[$e=0];else{for($e=-1;Xe[0]===0;Xe.splice(0,1),$e-=m);for(je=1,Ie=Xe[0];Ie>=10;Ie/=10,je++);je<m&&($e-=m-je)}return He.e=$e,He.c=Xe,He}}(),yt.sum=function(){for(var re=1,ge=arguments,Te=new yt(ge[0]);re<ge.length;)Te=Te.plus(ge[re++]);return Te},ye=function(){var re="0123456789";function ge(Te,Ue,Be,$e){for(var Ne,Ie=[0],je,Xe=0,He=Te.length;Xe<He;){for(je=Ie.length;je--;Ie[je]*=Ue);for(Ie[0]+=$e.indexOf(Te.charAt(Xe++)),Ne=0;Ne<Ie.length;Ne++)Ie[Ne]>Be-1&&(Ie[Ne+1]==null&&(Ie[Ne+1]=0),Ie[Ne+1]+=Ie[Ne]/Be|0,Ie[Ne]%=Be)}return Ie.reverse()}return function(Te,Ue,Be,$e,Ne){var Ie,je,Xe,He,st,Xt,Qt,un,Ln=Te.indexOf("."),xn=ct,An=Dt;for(Ln>=0&&(He=Cn,Cn=0,Te=Te.replace(".",""),un=new yt(Ue),Xt=un.pow(Te.length-Ln),Cn=He,un.c=ge(ve(U(Xt.c),Xt.e,"0"),10,Be,re),un.e=un.c.length),Qt=ge(Te,Ue,Be,Ne?(Ie=rr,re):(Ie=re,rr)),Xe=He=Qt.length;Qt[--He]==0;Qt.pop());if(!Qt[0])return Ie.charAt(0);if(Ln<0?--Xe:(Xt.c=Qt,Xt.e=Xe,Xt.s=$e,Xt=te(Xt,un,xn,An,Be),Qt=Xt.c,st=Xt.r,Xe=Xt.e),je=Xe+xn+1,Ln=Qt[je],He=Be/2,st=st||je<0||Qt[je+1]!=null,st=An<4?(Ln!=null||st)&&(An==0||An==(Xt.s<0?3:2)):Ln>He||Ln==He&&(An==4||st||An==6&&Qt[je-1]&1||An==(Xt.s<0?8:7)),je<1||!Qt[0])Te=st?ve(Ie.charAt(1),-xn,Ie.charAt(0)):Ie.charAt(0);else{if(Qt.length=je,st)for(--Be;++Qt[--je]>Be;)Qt[je]=0,je||(++Xe,Qt=[1].concat(Qt));for(He=Qt.length;!Qt[--He];);for(Ln=0,Te="";Ln<=He;Te+=Ie.charAt(Qt[Ln++]));Te=ve(Te,Xe,Ie.charAt(0))}return Te}}(),te=function(){function re(Ue,Be,$e){var Ne,Ie,je,Xe,He=0,st=Ue.length,Xt=Be%S,Qt=Be/S|0;for(Ue=Ue.slice();st--;)je=Ue[st]%S,Xe=Ue[st]/S|0,Ne=Qt*je+Xe*Xt,Ie=Xt*je+Ne%S*S+He,He=(Ie/$e|0)+(Ne/S|0)+Qt*Xe,Ue[st]=Ie%$e;return He&&(Ue=[He].concat(Ue)),Ue}function ge(Ue,Be,$e,Ne){var Ie,je;if($e!=Ne)je=$e>Ne?1:-1;else for(Ie=je=0;Ie<$e;Ie++)if(Ue[Ie]!=Be[Ie]){je=Ue[Ie]>Be[Ie]?1:-1;break}return je}function Te(Ue,Be,$e,Ne){for(var Ie=0;$e--;)Ue[$e]-=Ie,Ie=Ue[$e]<Be[$e]?1:0,Ue[$e]=Ie*Ne+Ue[$e]-Be[$e];for(;!Ue[0]&&Ue.length>1;Ue.splice(0,1));}return function(Ue,Be,$e,Ne,Ie){var je,Xe,He,st,Xt,Qt,un,Ln,xn,An,bn,Xn,Sr,ji,Jr,Tr,ci,Br=Ue.s==Be.s?1:-1,Ht=Ue.c,Tn=Be.c;if(!Ht||!Ht[0]||!Tn||!Tn[0])return new yt(!Ue.s||!Be.s||(Ht?Tn&&Ht[0]==Tn[0]:!Tn)?NaN:Ht&&Ht[0]==0||!Tn?Br*0:Br/0);for(Ln=new yt(Br),xn=Ln.c=[],Xe=Ue.e-Be.e,Br=$e+Xe+1,Ie||(Ie=d,Xe=V(Ue.e/m)-V(Be.e/m),Br=Br/m|0),He=0;Tn[He]==(Ht[He]||0);He++);if(Tn[He]>(Ht[He]||0)&&Xe--,Br<0)xn.push(1),st=!0;else{for(ji=Ht.length,Tr=Tn.length,He=0,Br+=2,Xt=i(Ie/(Tn[0]+1)),Xt>1&&(Tn=re(Tn,Xt,Ie),Ht=re(Ht,Xt,Ie),Tr=Tn.length,ji=Ht.length),Sr=Tr,An=Ht.slice(0,Tr),bn=An.length;bn<Tr;An[bn++]=0);ci=Tn.slice(),ci=[0].concat(ci),Jr=Tn[0],Tn[1]>=Ie/2&&Jr++;do{if(Xt=0,je=ge(Tn,An,Tr,bn),je<0){if(Xn=An[0],Tr!=bn&&(Xn=Xn*Ie+(An[1]||0)),Xt=i(Xn/Jr),Xt>1)for(Xt>=Ie&&(Xt=Ie-1),Qt=re(Tn,Xt,Ie),un=Qt.length,bn=An.length;ge(Qt,An,un,bn)==1;)Xt--,Te(Qt,Tr<un?ci:Tn,un,Ie),un=Qt.length,je=1;else Xt==0&&(je=Xt=1),Qt=Tn.slice(),un=Qt.length;if(un<bn&&(Qt=[0].concat(Qt)),Te(An,Qt,bn,Ie),bn=An.length,je==-1)for(;ge(Tn,An,Tr,bn)<1;)Xt++,Te(An,Tr<bn?ci:Tn,bn,Ie),bn=An.length}else je===0&&(Xt++,An=[0]);xn[He++]=Xt,An[0]?An[bn++]=Ht[Sr]||0:(An=[Ht[Sr]],bn=1)}while((Sr++<ji||An[0]!=null)&&Br--);st=An[0]!=null,xn[0]||xn.splice(0,1)}if(Ie==d){for(He=1,Br=xn[0];Br>=10;Br/=10,He++);fn(Ln,$e+(Ln.e=He+Xe*m-1)+1,Ne,st)}else Ln.e=Xe,Ln.r=+st;return Ln}}();function Yn(re,ge,Te,Ue){var Be,$e,Ne,Ie,je;if(Te==null?Te=Dt:ae(Te,0,8),!re.c)return re.toString();if(Be=re.c[0],Ne=re.e,ge==null)je=U(re.c),je=Ue==1||Ue==2&&(Ne<=Mt||Ne>=en)?Ae(je,Ne):ve(je,Ne,"0");else if(re=fn(new yt(re),ge,Te),$e=re.e,je=U(re.c),Ie=je.length,Ue==1||Ue==2&&(ge<=$e||$e<=Mt)){for(;Ie<ge;je+="0",Ie++);je=Ae(je,$e)}else if(ge-=Ne,je=ve(je,$e,"0"),$e+1>Ie){if(--ge>0)for(je+=".";ge--;je+="0");}else if(ge+=$e-Ie,ge>0)for($e+1==Ie&&(je+=".");ge--;je+="0");return re.s<0&&Be?"-"+je:je}function Vr(re,ge){for(var Te,Ue=1,Be=new yt(re[0]);Ue<re.length;Ue++)if(Te=new yt(re[Ue]),Te.s)ge.call(Be,Te)&&(Be=Te);else{Be=Te;break}return Be}function yr(re,ge,Te){for(var Ue=1,Be=ge.length;!ge[--Be];ge.pop());for(Be=ge[0];Be>=10;Be/=10,Ue++);return(Te=Ue+Te*m-1)>At?re.c=re.e=null:Te<Yt?re.c=[re.e=0]:(re.e=Te,re.c=ge),re}Oe=function(){var re=/^(-?)0([xbo])(?=\w[\w.]*$)/i,ge=/^([^.]+)\.$/,Te=/^\.([^.]+)$/,Ue=/^-?(Infinity|NaN)$/,Be=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function($e,Ne,Ie,je){var Xe,He=Ie?Ne:Ne.replace(Be,"");if(Ue.test(He))$e.s=isNaN(He)?null:He<0?-1:1;else{if(!Ie&&(He=He.replace(re,function(st,Xt,Qt){return Xe=(Qt=Qt.toLowerCase())=="x"?16:Qt=="b"?2:8,!je||je==Xe?Xt:st}),je&&(Xe=je,He=He.replace(ge,"$1").replace(Te,"0.$1")),Ne!=He))return new yt(He,Xe);if(yt.DEBUG)throw Error(a+"Not a"+(je?" base "+je:"")+" number: "+Ne);$e.s=null}$e.c=$e.e=null}}();function fn(re,ge,Te,Ue){var Be,$e,Ne,Ie,je,Xe,He,st=re.c,Xt=x;if(st){e:{for(Be=1,Ie=st[0];Ie>=10;Ie/=10,Be++);if($e=ge-Be,$e<0)$e+=m,Ne=ge,je=st[Xe=0],He=je/Xt[Be-Ne-1]%10|0;else if(Xe=r(($e+1)/m),Xe>=st.length)if(Ue){for(;st.length<=Xe;st.push(0));je=He=0,Be=1,$e%=m,Ne=$e-m+1}else break e;else{for(je=Ie=st[Xe],Be=1;Ie>=10;Ie/=10,Be++);$e%=m,Ne=$e-m+Be,He=Ne<0?0:je/Xt[Be-Ne-1]%10|0}if(Ue=Ue||ge<0||st[Xe+1]!=null||(Ne<0?je:je%Xt[Be-Ne-1]),Ue=Te<4?(He||Ue)&&(Te==0||Te==(re.s<0?3:2)):He>5||He==5&&(Te==4||Ue||Te==6&&($e>0?Ne>0?je/Xt[Be-Ne]:0:st[Xe-1])%10&1||Te==(re.s<0?8:7)),ge<1||!st[0])return st.length=0,Ue?(ge-=re.e+1,st[0]=Xt[(m-ge%m)%m],re.e=-ge||0):st[0]=re.e=0,re;if($e==0?(st.length=Xe,Ie=1,Xe--):(st.length=Xe+1,Ie=Xt[m-$e],st[Xe]=Ne>0?i(je/Xt[Be-Ne]%Xt[Ne])*Ie:0),Ue)for(;;)if(Xe==0){for($e=1,Ne=st[0];Ne>=10;Ne/=10,$e++);for(Ne=st[0]+=Ie,Ie=1;Ne>=10;Ne/=10,Ie++);$e!=Ie&&(re.e++,st[0]==d&&(st[0]=1));break}else{if(st[Xe]+=Ie,st[Xe]!=d)break;st[Xe--]=0,Ie=1}for($e=st.length;st[--$e]===0;st.pop());}re.e>At?re.c=re.e=null:re.e<Yt&&(re.c=[re.e=0])}return re}function qn(re){var ge,Te=re.e;return Te===null?re.toString():(ge=U(re.c),ge=Te<=Mt||Te>=en?Ae(ge,Te):ve(ge,Te,"0"),re.s<0?"-"+ge:ge)}return De.absoluteValue=De.abs=function(){var re=new yt(this);return re.s<0&&(re.s=1),re},De.comparedTo=function(re,ge){return Z(this,new yt(re,ge))},De.decimalPlaces=De.dp=function(re,ge){var Te,Ue,Be,$e=this;if(re!=null)return ae(re,0,L),ge==null?ge=Dt:ae(ge,0,8),fn(new yt($e),re+$e.e+1,ge);if(!(Te=$e.c))return null;if(Ue=((Be=Te.length-1)-V(this.e/m))*m,Be=Te[Be])for(;Be%10==0;Be/=10,Ue--);return Ue<0&&(Ue=0),Ue},De.dividedBy=De.div=function(re,ge){return te(this,new yt(re,ge),ct,Dt)},De.dividedToIntegerBy=De.idiv=function(re,ge){return te(this,new yt(re,ge),0,1)},De.exponentiatedBy=De.pow=function(re,ge){var Te,Ue,Be,$e,Ne,Ie,je,Xe,He,st=this;if(re=new yt(re),re.c&&!re.isInteger())throw Error(a+"Exponent not an integer: "+qn(re));if(ge!=null&&(ge=new yt(ge)),Ie=re.e>14,!st.c||!st.c[0]||st.c[0]==1&&!st.e&&st.c.length==1||!re.c||!re.c[0])return He=new yt(Math.pow(+qn(st),Ie?2-le(re):+qn(re))),ge?He.mod(ge):He;if(je=re.s<0,ge){if(ge.c?!ge.c[0]:!ge.s)return new yt(NaN);Ue=!je&&st.isInteger()&&ge.isInteger(),Ue&&(st=st.mod(ge))}else{if(re.e>9&&(st.e>0||st.e<-1||(st.e==0?st.c[0]>1||Ie&&st.c[1]>=24e7:st.c[0]<8e13||Ie&&st.c[0]<=9999975e7)))return $e=st.s<0&&le(re)?-0:0,st.e>-1&&($e=1/$e),new yt(je?1/$e:$e);Cn&&($e=r(Cn/m+2))}for(Ie?(Te=new yt(.5),je&&(re.s=1),Xe=le(re)):(Be=Math.abs(+qn(re)),Xe=Be%2),He=new yt(lt);;){if(Xe){if(He=He.times(st),!He.c)break;$e?He.c.length>$e&&(He.c.length=$e):Ue&&(He=He.mod(ge))}if(Be){if(Be=i(Be/2),Be===0)break;Xe=Be%2}else if(re=re.times(Te),fn(re,re.e+1,1),re.e>14)Xe=le(re);else{if(Be=+qn(re),Be===0)break;Xe=Be%2}st=st.times(st),$e?st.c&&st.c.length>$e&&(st.c.length=$e):Ue&&(st=st.mod(ge))}return Ue?He:(je&&(He=lt.div(He)),ge?He.mod(ge):$e?fn(He,Cn,Dt,Ne):He)},De.integerValue=function(re){var ge=new yt(this);return re==null?re=Dt:ae(re,0,8),fn(ge,ge.e+1,re)},De.isEqualTo=De.eq=function(re,ge){return Z(this,new yt(re,ge))===0},De.isFinite=function(){return!!this.c},De.isGreaterThan=De.gt=function(re,ge){return Z(this,new yt(re,ge))>0},De.isGreaterThanOrEqualTo=De.gte=function(re,ge){return(ge=Z(this,new yt(re,ge)))===1||ge===0},De.isInteger=function(){return!!this.c&&V(this.e/m)>this.c.length-2},De.isLessThan=De.lt=function(re,ge){return Z(this,new yt(re,ge))<0},De.isLessThanOrEqualTo=De.lte=function(re,ge){return(ge=Z(this,new yt(re,ge)))===-1||ge===0},De.isNaN=function(){return!this.s},De.isNegative=function(){return this.s<0},De.isPositive=function(){return this.s>0},De.isZero=function(){return!!this.c&&this.c[0]==0},De.minus=function(re,ge){var Te,Ue,Be,$e,Ne=this,Ie=Ne.s;if(re=new yt(re,ge),ge=re.s,!Ie||!ge)return new yt(NaN);if(Ie!=ge)return re.s=-ge,Ne.plus(re);var je=Ne.e/m,Xe=re.e/m,He=Ne.c,st=re.c;if(!je||!Xe){if(!He||!st)return He?(re.s=-ge,re):new yt(st?Ne:NaN);if(!He[0]||!st[0])return st[0]?(re.s=-ge,re):new yt(He[0]?Ne:Dt==3?-0:0)}if(je=V(je),Xe=V(Xe),He=He.slice(),Ie=je-Xe){for(($e=Ie<0)?(Ie=-Ie,Be=He):(Xe=je,Be=st),Be.reverse(),ge=Ie;ge--;Be.push(0));Be.reverse()}else for(Ue=($e=(Ie=He.length)<(ge=st.length))?Ie:ge,Ie=ge=0;ge<Ue;ge++)if(He[ge]!=st[ge]){$e=He[ge]<st[ge];break}if($e&&(Be=He,He=st,st=Be,re.s=-re.s),ge=(Ue=st.length)-(Te=He.length),ge>0)for(;ge--;He[Te++]=0);for(ge=d-1;Ue>Ie;){if(He[--Ue]<st[Ue]){for(Te=Ue;Te&&!He[--Te];He[Te]=ge);--He[Te],He[Ue]+=d}He[Ue]-=st[Ue]}for(;He[0]==0;He.splice(0,1),--Xe);return He[0]?yr(re,He,Xe):(re.s=Dt==3?-1:1,re.c=[re.e=0],re)},De.modulo=De.mod=function(re,ge){var Te,Ue,Be=this;return re=new yt(re,ge),!Be.c||!re.s||re.c&&!re.c[0]?new yt(NaN):!re.c||Be.c&&!Be.c[0]?new yt(Be):(In==9?(Ue=re.s,re.s=1,Te=te(Be,re,0,3),re.s=Ue,Te.s*=Ue):Te=te(Be,re,0,In),re=Be.minus(Te.times(re)),!re.c[0]&&In==1&&(re.s=Be.s),re)},De.multipliedBy=De.times=function(re,ge){var Te,Ue,Be,$e,Ne,Ie,je,Xe,He,st,Xt,Qt,un,Ln,xn,An=this,bn=An.c,Xn=(re=new yt(re,ge)).c;if(!bn||!Xn||!bn[0]||!Xn[0])return!An.s||!re.s||bn&&!bn[0]&&!Xn||Xn&&!Xn[0]&&!bn?re.c=re.e=re.s=null:(re.s*=An.s,!bn||!Xn?re.c=re.e=null:(re.c=[0],re.e=0)),re;for(Ue=V(An.e/m)+V(re.e/m),re.s*=An.s,je=bn.length,st=Xn.length,je<st&&(un=bn,bn=Xn,Xn=un,Be=je,je=st,st=Be),Be=je+st,un=[];Be--;un.push(0));for(Ln=d,xn=S,Be=st;--Be>=0;){for(Te=0,Xt=Xn[Be]%xn,Qt=Xn[Be]/xn|0,Ne=je,$e=Be+Ne;$e>Be;)Xe=bn[--Ne]%xn,He=bn[Ne]/xn|0,Ie=Qt*Xe+He*Xt,Xe=Xt*Xe+Ie%xn*xn+un[$e]+Te,Te=(Xe/Ln|0)+(Ie/xn|0)+Qt*He,un[$e--]=Xe%Ln;un[$e]=Te}return Te?++Ue:un.splice(0,1),yr(re,un,Ue)},De.negated=function(){var re=new yt(this);return re.s=-re.s||null,re},De.plus=function(re,ge){var Te,Ue=this,Be=Ue.s;if(re=new yt(re,ge),ge=re.s,!Be||!ge)return new yt(NaN);if(Be!=ge)return re.s=-ge,Ue.minus(re);var $e=Ue.e/m,Ne=re.e/m,Ie=Ue.c,je=re.c;if(!$e||!Ne){if(!Ie||!je)return new yt(Be/0);if(!Ie[0]||!je[0])return je[0]?re:new yt(Ie[0]?Ue:Be*0)}if($e=V($e),Ne=V(Ne),Ie=Ie.slice(),Be=$e-Ne){for(Be>0?(Ne=$e,Te=je):(Be=-Be,Te=Ie),Te.reverse();Be--;Te.push(0));Te.reverse()}for(Be=Ie.length,ge=je.length,Be-ge<0&&(Te=je,je=Ie,Ie=Te,ge=Be),Be=0;ge;)Be=(Ie[--ge]=Ie[ge]+je[ge]+Be)/d|0,Ie[ge]=d===Ie[ge]?0:Ie[ge]%d;return Be&&(Ie=[Be].concat(Ie),++Ne),yr(re,Ie,Ne)},De.precision=De.sd=function(re,ge){var Te,Ue,Be,$e=this;if(re!=null&&re!==!!re)return ae(re,1,L),ge==null?ge=Dt:ae(ge,0,8),fn(new yt($e),re,ge);if(!(Te=$e.c))return null;if(Be=Te.length-1,Ue=Be*m+1,Be=Te[Be]){for(;Be%10==0;Be/=10,Ue--);for(Be=Te[0];Be>=10;Be/=10,Ue++);}return re&&$e.e+1>Ue&&(Ue=$e.e+1),Ue},De.shiftedBy=function(re){return ae(re,-y,y),this.times("1e"+re)},De.squareRoot=De.sqrt=function(){var re,ge,Te,Ue,Be,$e=this,Ne=$e.c,Ie=$e.s,je=$e.e,Xe=ct+4,He=new yt("0.5");if(Ie!==1||!Ne||!Ne[0])return new yt(!Ie||Ie<0&&(!Ne||Ne[0])?NaN:Ne?$e:1/0);if(Ie=Math.sqrt(+qn($e)),Ie==0||Ie==1/0?(ge=U(Ne),(ge.length+je)%2==0&&(ge+="0"),Ie=Math.sqrt(+ge),je=V((je+1)/2)-(je<0||je%2),Ie==1/0?ge="5e"+je:(ge=Ie.toExponential(),ge=ge.slice(0,ge.indexOf("e")+1)+je),Te=new yt(ge)):Te=new yt(Ie+""),Te.c[0]){for(je=Te.e,Ie=je+Xe,Ie<3&&(Ie=0);;)if(Be=Te,Te=He.times(Be.plus(te($e,Be,Xe,1))),U(Be.c).slice(0,Ie)===(ge=U(Te.c)).slice(0,Ie))if(Te.e<je&&--Ie,ge=ge.slice(Ie-3,Ie+1),ge=="9999"||!Ue&&ge=="4999"){if(!Ue&&(fn(Be,Be.e+ct+2,0),Be.times(Be).eq($e))){Te=Be;break}Xe+=4,Ie+=4,Ue=1}else{(!+ge||!+ge.slice(1)&&ge.charAt(0)=="5")&&(fn(Te,Te.e+ct+2,1),re=!Te.times(Te).eq($e));break}}return fn(Te,Te.e+ct+1,Dt,re)},De.toExponential=function(re,ge){return re!=null&&(ae(re,0,L),re++),Yn(this,re,ge,1)},De.toFixed=function(re,ge){return re!=null&&(ae(re,0,L),re=re+this.e+1),Yn(this,re,ge)},De.toFormat=function(re,ge,Te){var Ue,Be=this;if(Te==null)re!=null&&ge&&typeof ge=="object"?(Te=ge,ge=null):re&&typeof re=="object"?(Te=re,re=ge=null):Te=Vn;else if(typeof Te!="object")throw Error(a+"Argument not an object: "+Te);if(Ue=Be.toFixed(re,ge),Be.c){var $e,Ne=Ue.split("."),Ie=+Te.groupSize,je=+Te.secondaryGroupSize,Xe=Te.groupSeparator||"",He=Ne[0],st=Ne[1],Xt=Be.s<0,Qt=Xt?He.slice(1):He,un=Qt.length;if(je&&($e=Ie,Ie=je,je=$e,un-=$e),Ie>0&&un>0){for($e=un%Ie||Ie,He=Qt.substr(0,$e);$e<un;$e+=Ie)He+=Xe+Qt.substr($e,Ie);je>0&&(He+=Xe+Qt.slice($e)),Xt&&(He="-"+He)}Ue=st?He+(Te.decimalSeparator||"")+((je=+Te.fractionGroupSize)?st.replace(new RegExp("\\d{"+je+"}\\B","g"),"$&"+(Te.fractionGroupSeparator||"")):st):He}return(Te.prefix||"")+Ue+(Te.suffix||"")},De.toFraction=function(re){var ge,Te,Ue,Be,$e,Ne,Ie,je,Xe,He,st,Xt,Qt=this,un=Qt.c;if(re!=null&&(Ie=new yt(re),!Ie.isInteger()&&(Ie.c||Ie.s!==1)||Ie.lt(lt)))throw Error(a+"Argument "+(Ie.isInteger()?"out of range: ":"not an integer: ")+qn(Ie));if(!un)return new yt(Qt);for(ge=new yt(lt),Xe=Te=new yt(lt),Ue=je=new yt(lt),Xt=U(un),$e=ge.e=Xt.length-Qt.e-1,ge.c[0]=x[(Ne=$e%m)<0?m+Ne:Ne],re=!re||Ie.comparedTo(ge)>0?$e>0?ge:Xe:Ie,Ne=At,At=1/0,Ie=new yt(Xt),je.c[0]=0;He=te(Ie,ge,0,1),Be=Te.plus(He.times(Ue)),Be.comparedTo(re)!=1;)Te=Ue,Ue=Be,Xe=je.plus(He.times(Be=Xe)),je=Be,ge=Ie.minus(He.times(Be=ge)),Ie=Be;return Be=te(re.minus(Te),Ue,0,1),je=je.plus(Be.times(Xe)),Te=Te.plus(Be.times(Ue)),je.s=Xe.s=Qt.s,$e=$e*2,st=te(Xe,Ue,$e,Dt).minus(Qt).abs().comparedTo(te(je,Te,$e,Dt).minus(Qt).abs())<1?[Xe,Ue]:[je,Te],At=Ne,st},De.toNumber=function(){return+qn(this)},De.toPrecision=function(re,ge){return re!=null&&ae(re,1,L),Yn(this,re,ge,2)},De.toString=function(re){var ge,Te=this,Ue=Te.s,Be=Te.e;return Be===null?Ue?(ge="Infinity",Ue<0&&(ge="-"+ge)):ge="NaN":(re==null?ge=Be<=Mt||Be>=en?Ae(U(Te.c),Be):ve(U(Te.c),Be,"0"):re===10&&ur?(Te=fn(new yt(Te),ct+Be+1,Dt),ge=ve(U(Te.c),Te.e,"0")):(ae(re,2,rr.length,"Base"),ge=ye(ve(U(Te.c),Be,"0"),10,re,Ue,!0)),Ue<0&&Te.c[0]&&(ge="-"+ge)),ge},De.valueOf=De.toJSON=function(){return qn(this)},De._isBigNumber=!0,b!=null&&yt.set(b),yt}function V(b){var te=b|0;return b>0||b===te?te:te-1}function U(b){for(var te,ye,Oe=1,De=b.length,lt=b[0]+"";Oe<De;){for(te=b[Oe++]+"",ye=m-te.length;ye--;te="0"+te);lt+=te}for(De=lt.length;lt.charCodeAt(--De)===48;);return lt.slice(0,De+1||1)}function Z(b,te){var ye,Oe,De=b.c,lt=te.c,ct=b.s,Dt=te.s,Mt=b.e,en=te.e;if(!ct||!Dt)return null;if(ye=De&&!De[0],Oe=lt&&!lt[0],ye||Oe)return ye?Oe?0:-Dt:ct;if(ct!=Dt)return ct;if(ye=ct<0,Oe=Mt==en,!De||!lt)return Oe?0:!De^ye?1:-1;if(!Oe)return Mt>en^ye?1:-1;for(Dt=(Mt=De.length)<(en=lt.length)?Mt:en,ct=0;ct<Dt;ct++)if(De[ct]!=lt[ct])return De[ct]>lt[ct]^ye?1:-1;return Mt==en?0:Mt>en^ye?1:-1}function ae(b,te,ye,Oe){if(b<te||b>ye||b!==i(b))throw Error(a+(Oe||"Argument")+(typeof b=="number"?b<te||b>ye?" out of range: ":" not an integer: ":" not a primitive number: ")+String(b))}function le(b){var te=b.c.length-1;return V(b.e/m)==te&&b.c[te]%2!=0}function Ae(b,te){return(b.length>1?b.charAt(0)+"."+b.slice(1):b)+(te<0?"e":"e+")+te}function ve(b,te,ye){var Oe,De;if(te<0){for(De=ye+".";++te;De+=ye);b=De+b}else if(Oe=b.length,++te>Oe){for(De=ye,te-=Oe;--te;De+=ye);b+=De}else te<Oe&&(b=b.slice(0,te)+"."+b.slice(te));return b}e=H(),e.default=e.BigNumber=e,typeof define=="function"&&define.amd?define(function(){return e}):typeof Ay<"u"&&Ay.exports?Ay.exports=e:(n||(n=typeof self<"u"&&self?self:window),n.BigNumber=e)})(uS)});var gS=eu((cU,Iy)=>{(function(){function n(o){return o&&(o.ownerDocument||o.document||o).documentElement}function e(o){return o&&(o.ownerDocument&&o.ownerDocument.defaultView||o.document&&o||o.defaultView)}function t(o,l){return l>o?-1:o>l?1:o>=l?0:NaN}function r(o){return o===null?NaN:+o}function i(o){return!isNaN(o)}function a(o){return{left:function(l,f,h,v){for(arguments.length<3&&(h=0),arguments.length<4&&(v=l.length);v>h;){var g=h+v>>>1;o(l[g],f)<0?h=g+1:v=g}return h},right:function(l,f,h,v){for(arguments.length<3&&(h=0),arguments.length<4&&(v=l.length);v>h;){var g=h+v>>>1;o(l[g],f)>0?v=g:h=g+1}return h}}}function u(o){return o.length}function d(o){for(var l=1;o*l%1;)l*=10;return l}function m(o,l){for(var f in l)Object.defineProperty(o.prototype,f,{value:l[f],enumerable:!1})}function y(){this._=Object.create(null)}function x(o){return(o+="")===Zf||o[0]===Uh?Uh+o:o}function S(o){return(o+="")[0]===Uh?o.slice(1):o}function L(o){return x(o)in this._}function H(o){return(o=x(o))in this._&&delete this._[o]}function V(){var o=[];for(var l in this._)o.push(S(l));return o}function U(){var o=0;for(var l in this._)++o;return o}function Z(){for(var o in this._)return!1;return!0}function ae(){this._=Object.create(null)}function le(o){return o}function Ae(o,l,f){return function(){var h=f.apply(l,arguments);return h===l?o:h}}function ve(o,l){if(l in o)return l;l=l.charAt(0).toUpperCase()+l.slice(1);for(var f=0,h=Vh.length;h>f;++f){var v=Vh[f]+l;if(v in o)return v}}function b(){}function te(){}function ye(o){function l(){for(var v,g=f,T=-1,E=g.length;++T<E;)(v=g[T].on)&&v.apply(this,arguments);return o}var f=[],h=new y;return l.on=function(v,g){var T,E=h.get(v);return arguments.length<2?E&&E.on:(E&&(E.on=null,f=f.slice(0,T=f.indexOf(E)).concat(f.slice(T+1)),h.remove(v)),g&&f.push(h.set(v,{on:g})),o)},l}function Oe(){X.event.preventDefault()}function De(){for(var o,l=X.event;o=l.sourceEvent;)l=o;return l}function lt(o){for(var l=new te,f=0,h=arguments.length;++f<h;)l[arguments[f]]=ye(l);return l.of=function(v,g){return function(T){try{var E=T.sourceEvent=X.event;T.target=o,X.event=T,l[T.type].apply(v,g)}finally{X.event=E}}},l}function ct(o){return ed(o,cr),o}function Dt(o){return typeof o=="function"?o:function(){return td(o,this)}}function Mt(o){return typeof o=="function"?o:function(){return Yh(o,this)}}function en(o,l){function f(){this.removeAttribute(o)}function h(){this.removeAttributeNS(o.space,o.local)}function v(){this.setAttribute(o,l)}function g(){this.setAttributeNS(o.space,o.local,l)}function T(){var C=l.apply(this,arguments);C==null?this.removeAttribute(o):this.setAttribute(o,C)}function E(){var C=l.apply(this,arguments);C==null?this.removeAttributeNS(o.space,o.local):this.setAttributeNS(o.space,o.local,C)}return o=X.ns.qualify(o),l==null?o.local?h:f:typeof l=="function"?o.local?E:T:o.local?g:v}function Yt(o){return o.trim().replace(/\s+/g," ")}function At(o){return new RegExp("(?:^|\\s+)"+X.requote(o)+"(?:\\s+|$)","g")}function tn(o){return(o+"").trim().split(/^|\s+/)}function In(o,l){function f(){for(var g=-1;++g<v;)o[g](this,l)}function h(){for(var g=-1,T=l.apply(this,arguments);++g<v;)o[g](this,T)}o=tn(o).map(Cn);var v=o.length;return typeof l=="function"?h:f}function Cn(o){var l=At(o);return function(f,h){if(v=f.classList)return h?v.add(o):v.remove(o);var v=f.getAttribute("class")||"";h?(l.lastIndex=0,l.test(v)||f.setAttribute("class",Yt(v+" "+o))):f.setAttribute("class",Yt(v.replace(l," ")))}}function Vn(o,l,f){function h(){this.style.removeProperty(o)}function v(){this.style.setProperty(o,l,f)}function g(){var T=l.apply(this,arguments);T==null?this.style.removeProperty(o):this.style.setProperty(o,T,f)}return l==null?h:typeof l=="function"?g:v}function rr(o,l){function f(){delete this[o]}function h(){this[o]=l}function v(){var g=l.apply(this,arguments);g==null?delete this[o]:this[o]=g}return l==null?f:typeof l=="function"?v:h}function ur(o){function l(){var h=this.ownerDocument,v=this.namespaceURI;return v===tf&&h.documentElement.namespaceURI===tf?h.createElement(o):h.createElementNS(v,o)}function f(){return this.ownerDocument.createElementNS(o.space,o.local)}return typeof o=="function"?o:(o=X.ns.qualify(o)).local?f:l}function yt(){var o=this.parentNode;o&&o.removeChild(this)}function Yn(o){return{__data__:o}}function Vr(o){return function(){return ef(this,o)}}function yr(o){return arguments.length||(o=t),function(l,f){return l&&f?o(l.__data__,f.__data__):!l-!f}}function fn(o,l){for(var f=0,h=o.length;h>f;f++)for(var v,g=o[f],T=0,E=g.length;E>T;T++)(v=g[T])&&l(v,T,f);return o}function qn(o){return ed(o,vs),o}function re(o){var l,f;return function(h,v,g){var T,E=o[g].update,C=E.length;for(g!=f&&(f=g,l=0),v>=l&&(l=v+1);!(T=E[l])&&++l<C;);return T}}function ge(o,l,f){function h(){var I=this[T];I&&(this.removeEventListener(o,I,I.$),delete this[T])}function v(){var I=C(l,Ws(arguments));h.call(this),this.addEventListener(o,this[T]=I,I.$=f),I._=l}function g(){var I,q=new RegExp("^__on([^.]+)"+X.requote(o)+"$");for(var F in this)if(I=F.match(q)){var Y=this[F];this.removeEventListener(I[1],Y,Y.$),delete this[F]}}var T="__on"+o,E=o.indexOf("."),C=Te;E>0&&(o=o.slice(0,E));var D=Gn.get(o);return D&&(o=D,C=Ue),E?l?v:h:l?b:g}function Te(o,l){return function(f){var h=X.event;X.event=f,l[0]=this.__data__;try{o.apply(this,l)}finally{X.event=h}}}function Ue(o,l){var f=Te(o,l);return function(h){var v=this,g=h.relatedTarget;g&&(g===v||8&g.compareDocumentPosition(v))||f.call(v,h)}}function Be(o){var l=".dragsuppress-"+ ++sb,f="click"+l,h=X.select(e(o)).on("touchmove"+l,Oe).on("dragstart"+l,Oe).on("selectstart"+l,Oe);if(Su==null&&(Su="onselectstart"in o?!1:ve(o.style,"userSelect")),Su){var v=n(o).style,g=v[Su];v[Su]="none"}return function(T){if(h.on(l,null),Su&&(v[Su]=g),T){var E=function(){h.on(f,null)};h.on(f,function(){Oe(),E()},!0),setTimeout(E,0)}}}function $e(o,l){l.changedTouches&&(l=l.changedTouches[0]);var f=o.ownerSVGElement||o;if(f.createSVGPoint){var h=f.createSVGPoint();if(0>Tu){var v=e(o);if(v.scrollX||v.scrollY){f=X.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var g=f[0][0].getScreenCTM();Tu=!(g.f||g.e),f.remove()}}return Tu?(h.x=l.pageX,h.y=l.pageY):(h.x=l.clientX,h.y=l.clientY),h=h.matrixTransform(o.getScreenCTM().inverse()),[h.x,h.y]}var T=o.getBoundingClientRect();return[l.clientX-T.left-o.clientLeft,l.clientY-T.top-o.clientTop]}function Ne(){return X.event.changedTouches[0].identifier}function Ie(o){return o>0?1:0>o?-1:0}function je(o,l,f){return(l[0]-o[0])*(f[1]-o[1])-(l[1]-o[1])*(f[0]-o[0])}function Xe(o){return o>1?0:-1>o?Dn:Math.acos(o)}function He(o){return o>1?Kr:-1>o?-Kr:Math.asin(o)}function st(o){return((o=Math.exp(o))-1/o)/2}function Xt(o){return((o=Math.exp(o))+1/o)/2}function Qt(o){return((o=Math.exp(2*o))-1)/(o+1)}function un(o){return(o=Math.sin(o/2))*o}function Ln(){}function xn(o,l,f){return this instanceof xn?(this.h=+o,this.s=+l,void(this.l=+f)):arguments.length<2?o instanceof xn?new xn(o.h,o.s,o.l):mo(""+o,vi,xn):new xn(o,l,f)}function An(o,l,f){function h(E){return E>360?E-=360:0>E&&(E+=360),60>E?g+(T-g)*E/60:180>E?T:240>E?g+(T-g)*(240-E)/60:g}function v(E){return Math.round(255*h(E))}var g,T;return o=isNaN(o)?0:(o%=360)<0?o+360:o,l=isNaN(l)||0>l?0:l>1?1:l,f=0>f?0:f>1?1:f,T=.5>=f?f*(1+l):f+l-f*l,g=2*f-T,new Ht(v(o+120),v(o),v(o-120))}function bn(o,l,f){return this instanceof bn?(this.h=+o,this.c=+l,void(this.l=+f)):arguments.length<2?o instanceof bn?new bn(o.h,o.c,o.l):o instanceof Sr?Jr(o.l,o.a,o.b):Jr((o=Zr((o=X.rgb(o)).r,o.g,o.b)).l,o.a,o.b):new bn(o,l,f)}function Xn(o,l,f){return isNaN(o)&&(o=0),isNaN(l)&&(l=0),new Sr(f,Math.cos(o*=_n)*l,Math.sin(o)*l)}function Sr(o,l,f){return this instanceof Sr?(this.l=+o,this.a=+l,void(this.b=+f)):arguments.length<2?o instanceof Sr?new Sr(o.l,o.a,o.b):o instanceof bn?Xn(o.h,o.c,o.l):Zr((o=Ht(o)).r,o.g,o.b):new Sr(o,l,f)}function ji(o,l,f){var h=(o+16)/116,v=h+l/500,g=h-f/200;return v=Tr(v)*od,h=Tr(h)*ad,g=Tr(g)*hl,new Ht(Br(3.2404542*v-1.5371385*h-.4985314*g),Br(-.969266*v+1.8760108*h+.041556*g),Br(.0556434*v-.2040259*h+1.0572252*g))}function Jr(o,l,f){return o>0?new bn(Math.atan2(f,l)*jr,Math.sqrt(l*l+f*f),o):new bn(NaN,NaN,o)}function Tr(o){return o>.206893034?o*o*o:(o-4/29)/7.787037}function ci(o){return o>.008856?Math.pow(o,1/3):7.787037*o+4/29}function Br(o){return Math.round(255*(.00304>=o?12.92*o:1.055*Math.pow(o,1/2.4)-.055))}function Ht(o,l,f){return this instanceof Ht?(this.r=~~o,this.g=~~l,void(this.b=~~f)):arguments.length<2?o instanceof Ht?new Ht(o.r,o.g,o.b):mo(""+o,Ht,An):new Ht(o,l,f)}function Tn(o){return new Ht(o>>16,o>>8&255,255&o)}function to(o){return Tn(o)+""}function po(o){return 16>o?"0"+Math.max(0,o).toString(16):Math.min(255,o).toString(16)}function mo(o,l,f){var h,v,g,T=0,E=0,C=0;if(h=/([a-z]+)\((.*)\)/.exec(o=o.toLowerCase()))switch(v=h[2].split(","),h[1]){case"hsl":return f(parseFloat(v[0]),parseFloat(v[1])/100,parseFloat(v[2])/100);case"rgb":return l(xo(v[0]),xo(v[1]),xo(v[2]))}return(g=af.get(o))?l(g.r,g.g,g.b):(o==null||o.charAt(0)!=="#"||isNaN(g=parseInt(o.slice(1),16))||(o.length===4?(T=(3840&g)>>4,T=T>>4|T,E=240&g,E=E>>4|E,C=15&g,C=C<<4|C):o.length===7&&(T=(16711680&g)>>16,E=(65280&g)>>8,C=255&g)),l(T,E,C))}function vi(o,l,f){var h,v,g=Math.min(o/=255,l/=255,f/=255),T=Math.max(o,l,f),E=T-g,C=(T+g)/2;return E?(v=.5>C?E/(T+g):E/(2-T-g),h=o==T?(l-f)/E+(f>l?6:0):l==T?(f-o)/E+2:(o-l)/E+4,h*=60):(h=NaN,v=C>0&&1>C?0:h),new xn(h,v,C)}function Zr(o,l,f){o=Ki(o),l=Ki(l),f=Ki(f);var h=ci((.4124564*o+.3575761*l+.1804375*f)/od),v=ci((.2126729*o+.7151522*l+.072175*f)/ad),g=ci((.0193339*o+.119192*l+.9503041*f)/hl);return Sr(116*v-16,500*(h-v),200*(v-g))}function Ki(o){return(o/=255)<=.04045?o/12.92:Math.pow((o+.055)/1.055,2.4)}function xo(o){var l=parseFloat(o);return o.charAt(o.length-1)==="%"?Math.round(2.55*l):l}function A(o){return typeof o=="function"?o:function(){return o}}function R(o){return function(l,f,h){return arguments.length===2&&typeof f=="function"&&(h=f,f=null),G(l,f,o,h)}}function G(o,l,f,h){function v(){var I,q=C.status;if(!q&&Re(C)||q>=200&&300>q||q===304){try{I=f.call(g,C)}catch(F){return void T.error.call(g,F)}T.load.call(g,I)}else T.error.call(g,C)}var g={},T=X.dispatch("beforesend","progress","load","error"),E={},C=new XMLHttpRequest,D=null;return!this.XDomainRequest||"withCredentials"in C||!/^(http(s)?:)?\/\//.test(o)||(C=new XDomainRequest),"onload"in C?C.onload=C.onerror=v:C.onreadystatechange=function(){C.readyState>3&&v()},C.onprogress=function(I){var q=X.event;X.event=I;try{T.progress.call(g,C)}finally{X.event=q}},g.header=function(I,q){return I=(I+"").toLowerCase(),arguments.length<2?E[I]:(q==null?delete E[I]:E[I]=q+"",g)},g.mimeType=function(I){return arguments.length?(l=I==null?null:I+"",g):l},g.responseType=function(I){return arguments.length?(D=I,g):D},g.response=function(I){return f=I,g},["get","post"].forEach(function(I){g[I]=function(){return g.send.apply(g,[I].concat(Ws(arguments)))}}),g.send=function(I,q,F){if(arguments.length===2&&typeof q=="function"&&(F=q,q=null),C.open(I,o,!0),l==null||"accept"in E||(E.accept=l+",*/*"),C.setRequestHeader)for(var Y in E)C.setRequestHeader(Y,E[Y]);return l!=null&&C.overrideMimeType&&C.overrideMimeType(l),D!=null&&(C.responseType=D),F!=null&&g.on("error",F).on("load",function(de){F(null,de)}),T.beforesend.call(g,C),C.send(q??null),g},g.abort=function(){return C.abort(),g},X.rebind(g,T,"on"),h==null?g:g.get(ue(h))}function ue(o){return o.length===1?function(l,f){o(l==null?f:null)}:o}function Re(o){var l=o.responseType;return l&&l!=="text"?o.response:o.responseText}function qe(o,l,f){var h=arguments.length;2>h&&(l=0),3>h&&(f=Date.now());var v=f+l,g={c:o,t:v,n:null};return hc?hc.n=g:sf=g,hc=g,sd||(ld=clearTimeout(ld),sd=1,rg(rt)),g}function rt(){var o=et(),l=bt()-o;l>24?(isFinite(l)&&(clearTimeout(ld),ld=setTimeout(rt,l)),sd=0):(sd=1,rg(rt))}function et(){for(var o=Date.now(),l=sf;l;)o>=l.t&&l.c(o-l.t)&&(l.c=null),l=l.n;return o}function bt(){for(var o,l=sf,f=1/0;l;)l.c?(l.t<f&&(f=l.t),l=(o=l).n):l=o?o.n=l.n:sf=l.n;return hc=o,f}function ft(o,l){return l-(o?Math.ceil(Math.log(o)/Math.LN10):1)}function kt(o,l){var f=Math.pow(10,3*Sn(8-l));return{scale:l>8?function(h){return h/f}:function(h){return h*f},symbol:o}}function Nt(o){var l=o.decimal,f=o.thousands,h=o.grouping,v=o.currency,g=h&&f?function(T,E){for(var C=T.length,D=[],I=0,q=h[0],F=0;C>0&&q>0&&(F+q+1>E&&(q=Math.max(1,E-F)),D.push(T.substring(C-=q,C+q)),!((F+=q+1)>E));)q=h[I=(I+1)%h.length];return D.reverse().join(f)}:le;return function(T){var E=Kh.exec(T),C=E[1]||" ",D=E[2]||">",I=E[3]||"-",q=E[4]||"",F=E[5],Y=+E[6],de=E[7],J=E[8],fe=E[9],ce=1,he="",se="",pe=!1,we=!0;switch(J&&(J=+J.substring(1)),(F||C==="0"&&D==="=")&&(F=C="0",D="="),fe){case"n":de=!0,fe="g";break;case"%":ce=100,se="%",fe="f";break;case"p":ce=100,se="%",fe="r";break;case"b":case"o":case"x":case"X":q==="#"&&(he="0"+fe.toLowerCase());case"c":we=!1;case"d":pe=!0,J=0;break;case"s":ce=-1,fe="r"}q==="$"&&(he=v[0],se=v[1]),fe!="r"||J||(fe="g"),J!=null&&(fe=="g"?J=Math.max(1,Math.min(21,J)):fe!="e"&&fe!="f"||(J=Math.max(0,Math.min(20,J)))),fe=ub.get(fe)||an;var Pe=F&&de;return function(xe){var ze=se;if(pe&&xe%1)return"";var vt=0>xe||xe===0&&0>1/xe?(xe=-xe,"-"):I==="-"?"":I;if(0>ce){var Tt=X.formatPrefix(xe,J);xe=Tt.scale(xe),ze=Tt.symbol+se}else xe*=ce;xe=fe(xe,J);var Rt,Ot,Ft=xe.lastIndexOf(".");if(0>Ft){var nt=we?xe.lastIndexOf("e"):-1;0>nt?(Rt=xe,Ot=""):(Rt=xe.substring(0,nt),Ot=xe.substring(nt))}else Rt=xe.substring(0,Ft),Ot=l+xe.substring(Ft+1);!F&&de&&(Rt=g(Rt,1/0));var it=he.length+Rt.length+Ot.length+(Pe?0:vt.length),It=Y>it?new Array(it=Y-it+1).join(C):"";return Pe&&(Rt=g(It+Rt,It.length?Y-Ot.length:1/0)),vt+=he,xe=Rt+Ot,(D==="<"?vt+xe+It:D===">"?It+vt+xe:D==="^"?It.substring(0,it>>=1)+vt+xe+It.substring(it):vt+(Pe?xe:It+xe))+ze}}}function an(o){return o+""}function $t(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function rn(o,l,f){function h(D){var I=o(D),q=g(I,1);return q-D>D-I?I:q}function v(D){return l(D=o(new so(D-1)),1),D}function g(D,I){return l(D=new so(+D),I),D}function T(D,I,q){var F=v(D),Y=[];if(q>1)for(;I>F;)f(F)%q||Y.push(new Date(+F)),l(F,1);else for(;I>F;)Y.push(new Date(+F)),l(F,1);return Y}function E(D,I,q){try{so=$t;var F=new $t;return F._=D,T(F,I,q)}finally{so=Date}}o.floor=o,o.round=h,o.ceil=v,o.offset=g,o.range=T;var C=o.utc=$n(o);return C.floor=C,C.round=$n(h),C.ceil=$n(v),C.offset=$n(g),C.range=E,o}function $n(o){return function(l,f){try{so=$t;var h=new $t;return h._=l,o(h,f)._}finally{so=Date}}}function ei(o){function l(nt){function it(Je){for(var wt,Kt,vn,On=[],Wn=-1,xr=0;++Wn<It;)nt.charCodeAt(Wn)===37&&(On.push(nt.slice(xr,Wn)),(Kt=bs[wt=nt.charAt(++Wn)])!=null&&(wt=nt.charAt(++Wn)),(vn=Ot[wt])&&(wt=vn(Je,Kt??(wt==="e"?" ":"0"))),On.push(wt),xr=Wn+1);return On.push(nt.slice(xr,Wn)),On.join("")}var It=nt.length;return it.parse=function(Je){var wt={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},Kt=f(wt,nt,Je,0);if(Kt!=Je.length)return null;"p"in wt&&(wt.H=wt.H%12+12*wt.p);var vn=wt.Z!=null&&so!==$t,On=new(vn?$t:so);return"j"in wt?On.setFullYear(wt.y,0,wt.j):"W"in wt||"U"in wt?("w"in wt||(wt.w="W"in wt?1:0),On.setFullYear(wt.y,0,1),On.setFullYear(wt.y,0,"W"in wt?(wt.w+6)%7+7*wt.W-(On.getDay()+5)%7:wt.w+7*wt.U-(On.getDay()+6)%7)):On.setFullYear(wt.y,wt.m,wt.d),On.setHours(wt.H+(wt.Z/100|0),wt.M+wt.Z%100,wt.S,wt.L),vn?On._:On},it.toString=function(){return nt},it}function f(nt,it,It,Je){for(var wt,Kt,vn,On=0,Wn=it.length,xr=It.length;Wn>On;){if(Je>=xr)return-1;if(wt=it.charCodeAt(On++),wt===37){if(vn=it.charAt(On++),Kt=Ft[vn in bs?it.charAt(On++):vn],!Kt||(Je=Kt(nt,It,Je))<0)return-1}else if(wt!=It.charCodeAt(Je++))return-1}return Je}function h(nt,it,It){Pe.lastIndex=0;var Je=Pe.exec(it.slice(It));return Je?(nt.w=xe.get(Je[0].toLowerCase()),It+Je[0].length):-1}function v(nt,it,It){pe.lastIndex=0;var Je=pe.exec(it.slice(It));return Je?(nt.w=we.get(Je[0].toLowerCase()),It+Je[0].length):-1}function g(nt,it,It){Tt.lastIndex=0;var Je=Tt.exec(it.slice(It));return Je?(nt.m=Rt.get(Je[0].toLowerCase()),It+Je[0].length):-1}function T(nt,it,It){ze.lastIndex=0;var Je=ze.exec(it.slice(It));return Je?(nt.m=vt.get(Je[0].toLowerCase()),It+Je[0].length):-1}function E(nt,it,It){return f(nt,Ot.c.toString(),it,It)}function C(nt,it,It){return f(nt,Ot.x.toString(),it,It)}function D(nt,it,It){return f(nt,Ot.X.toString(),it,It)}function I(nt,it,It){var Je=se.get(it.slice(It,It+=2).toLowerCase());return Je==null?-1:(nt.p=Je,It)}var q=o.dateTime,F=o.date,Y=o.time,de=o.periods,J=o.days,fe=o.shortDays,ce=o.months,he=o.shortMonths;l.utc=function(nt){function it(Je){try{so=$t;var wt=new so;return wt._=Je,It(wt)}finally{so=Date}}var It=l(nt);return it.parse=function(Je){try{so=$t;var wt=It.parse(Je);return wt&&wt._}finally{so=Date}},it.toString=It.toString,it},l.multi=l.utc.multi=Me;var se=X.map(),pe=Dr(J),we=ti(J),Pe=Dr(fe),xe=ti(fe),ze=Dr(ce),vt=ti(ce),Tt=Dr(he),Rt=ti(he);de.forEach(function(nt,it){se.set(nt.toLowerCase(),it)});var Ot={a:function(nt){return fe[nt.getDay()]},A:function(nt){return J[nt.getDay()]},b:function(nt){return he[nt.getMonth()]},B:function(nt){return ce[nt.getMonth()]},c:l(q),d:function(nt,it){return ir(nt.getDate(),it,2)},e:function(nt,it){return ir(nt.getDate(),it,2)},H:function(nt,it){return ir(nt.getHours(),it,2)},I:function(nt,it){return ir(nt.getHours()%12||12,it,2)},j:function(nt,it){return ir(1+Vt.dayOfYear(nt),it,3)},L:function(nt,it){return ir(nt.getMilliseconds(),it,3)},m:function(nt,it){return ir(nt.getMonth()+1,it,2)},M:function(nt,it){return ir(nt.getMinutes(),it,2)},p:function(nt){return de[+(nt.getHours()>=12)]},S:function(nt,it){return ir(nt.getSeconds(),it,2)},U:function(nt,it){return ir(Vt.sundayOfYear(nt),it,2)},w:function(nt){return nt.getDay()},W:function(nt,it){return ir(Vt.mondayOfYear(nt),it,2)},x:l(F),X:l(Y),y:function(nt,it){return ir(nt.getFullYear()%100,it,2)},Y:function(nt,it){return ir(nt.getFullYear()%1e4,it,4)},Z:N,"%":function(){return"%"}},Ft={a:h,A:v,b:g,B:T,c:E,d:Da,e:Da,H:os,I:os,j:ka,L:W,m:Aa,M:Ai,p:I,S:Wr,U:sa,w:go,W:Qn,x:C,X:D,y:el,Y:no,Z:la,"%":ie};return l}function ir(o,l,f){var h=0>o?"-":"",v=(h?-o:o)+"",g=v.length;return h+(f>g?new Array(f-g+1).join(l)+v:v)}function Dr(o){return new RegExp("^(?:"+o.map(X.requote).join("|")+")","i")}function ti(o){for(var l=new y,f=-1,h=o.length;++f<h;)l.set(o[f].toLowerCase(),f);return l}function go(o,l,f){pi.lastIndex=0;var h=pi.exec(l.slice(f,f+1));return h?(o.w=+h[0],f+h[0].length):-1}function sa(o,l,f){pi.lastIndex=0;var h=pi.exec(l.slice(f));return h?(o.U=+h[0],f+h[0].length):-1}function Qn(o,l,f){pi.lastIndex=0;var h=pi.exec(l.slice(f));return h?(o.W=+h[0],f+h[0].length):-1}function no(o,l,f){pi.lastIndex=0;var h=pi.exec(l.slice(f,f+4));return h?(o.y=+h[0],f+h[0].length):-1}function el(o,l,f){pi.lastIndex=0;var h=pi.exec(l.slice(f,f+2));return h?(o.y=ua(+h[0]),f+h[0].length):-1}function la(o,l,f){return/^[+-]\d{4}$/.test(l=l.slice(f,f+5))?(o.Z=-l,f+5):-1}function ua(o){return o+(o>68?1900:2e3)}function Aa(o,l,f){pi.lastIndex=0;var h=pi.exec(l.slice(f,f+2));return h?(o.m=h[0]-1,f+h[0].length):-1}function Da(o,l,f){pi.lastIndex=0;var h=pi.exec(l.slice(f,f+2));return h?(o.d=+h[0],f+h[0].length):-1}function ka(o,l,f){pi.lastIndex=0;var h=pi.exec(l.slice(f,f+3));return h?(o.j=+h[0],f+h[0].length):-1}function os(o,l,f){pi.lastIndex=0;var h=pi.exec(l.slice(f,f+2));return h?(o.H=+h[0],f+h[0].length):-1}function Ai(o,l,f){pi.lastIndex=0;var h=pi.exec(l.slice(f,f+2));return h?(o.M=+h[0],f+h[0].length):-1}function Wr(o,l,f){pi.lastIndex=0;var h=pi.exec(l.slice(f,f+2));return h?(o.S=+h[0],f+h[0].length):-1}function W(o,l,f){pi.lastIndex=0;var h=pi.exec(l.slice(f,f+3));return h?(o.L=+h[0],f+h[0].length):-1}function N(o){var l=o.getTimezoneOffset(),f=l>0?"-":"+",h=Sn(l)/60|0,v=Sn(l)%60;return f+ir(h,"0",2)+ir(v,"0",2)}function ie(o,l,f){og.lastIndex=0;var h=og.exec(l.slice(f,f+1));return h?f+h[0].length:-1}function Me(o){for(var l=o.length,f=-1;++f<l;)o[f][0]=this(o[f][0]);return function(h){for(var v=0,g=o[v];!g[1](h);)g=o[++v];return g[0](h)}}function Ze(){}function mt(o,l,f){var h=f.s=o+l,v=h-o,g=h-v;f.t=o-g+(l-v)}function Ut(o,l){o&&Qh.hasOwnProperty(o.type)&&Qh[o.type](o,l)}function dn(o,l,f){var h,v=-1,g=o.length-f;for(l.lineStart();++v<g;)h=o[v],l.point(h[0],h[1],h[2]);l.lineEnd()}function cn(o,l){var f=-1,h=o.length;for(l.polygonStart();++f<h;)dn(o[f],l,1);l.polygonEnd()}function nn(){function o(T,E){T*=_n,E=E*_n/2+Dn/4;var C=T-h,D=C>=0?1:-1,I=D*C,q=Math.cos(E),F=Math.sin(E),Y=g*F,de=v*q+Y*Math.cos(I),J=Y*D*Math.sin(I);Ul.add(Math.atan2(J,de)),h=T,v=q,g=F}var l,f,h,v,g;lo.point=function(T,E){lo.point=o,h=(l=T)*_n,v=Math.cos(E=(f=E)*_n/2+Dn/4),g=Math.sin(E)},lo.lineEnd=function(){o(l,f)}}function Nn(o){var l=o[0],f=o[1],h=Math.cos(f);return[h*Math.cos(l),h*Math.sin(l),Math.sin(f)]}function or(o,l){return o[0]*l[0]+o[1]*l[1]+o[2]*l[2]}function on(o,l){return[o[1]*l[2]-o[2]*l[1],o[2]*l[0]-o[0]*l[2],o[0]*l[1]-o[1]*l[0]]}function zn(o,l){o[0]+=l[0],o[1]+=l[1],o[2]+=l[2]}function Yr(o,l){return[o[0]*l,o[1]*l,o[2]*l]}function yi(o){var l=Math.sqrt(o[0]*o[0]+o[1]*o[1]+o[2]*o[2]);o[0]/=l,o[1]/=l,o[2]/=l}function Eo(o){return[Math.atan2(o[1],o[0]),He(o[2])]}function Co(o,l){return Sn(o[0]-l[0])<qt&&Sn(o[1]-l[1])<qt}function br(o,l){o*=_n;var f=Math.cos(l*=_n);kr(f*Math.cos(o),f*Math.sin(o),Math.sin(l))}function kr(o,l,f){++ml,Vl+=(o-Vl)/ml,Yl+=(l-Yl)/ml,qa+=(f-qa)/ml}function fi(){function o(v,g){v*=_n;var T=Math.cos(g*=_n),E=T*Math.cos(v),C=T*Math.sin(v),D=Math.sin(g),I=Math.atan2(Math.sqrt((I=f*D-h*C)*I+(I=h*E-l*D)*I+(I=l*C-f*E)*I),l*E+f*C+h*D);cd+=I,gl+=I*(l+(l=E)),_s+=I*(f+(f=C)),za+=I*(h+(h=D)),kr(l,f,h)}var l,f,h;Jo.point=function(v,g){v*=_n;var T=Math.cos(g*=_n);l=T*Math.cos(v),f=T*Math.sin(v),h=Math.sin(g),Jo.point=o,kr(l,f,h)}}function ca(){Jo.point=br}function vo(){function o(T,E){T*=_n;var C=Math.cos(E*=_n),D=C*Math.cos(T),I=C*Math.sin(T),q=Math.sin(E),F=v*q-g*I,Y=g*D-h*q,de=h*I-v*D,J=Math.sqrt(F*F+Y*Y+de*de),fe=h*D+v*I+g*q,ce=J&&-Xe(fe)/J,he=Math.atan2(J,fe);vl+=ce*F,pc+=ce*Y,yl+=ce*de,cd+=he,gl+=he*(h+(h=D)),_s+=he*(v+(v=I)),za+=he*(g+(g=q)),kr(h,v,g)}var l,f,h,v,g;Jo.point=function(T,E){l=T,f=E,Jo.point=o,T*=_n;var C=Math.cos(E*=_n);h=C*Math.cos(T),v=C*Math.sin(T),g=Math.sin(E),kr(h,v,g)},Jo.lineEnd=function(){o(l,f),Jo.lineEnd=ca,Jo.point=br}}function mi(o,l){function f(h,v){return h=o(h,v),l(h[0],h[1])}return o.invert&&l.invert&&(f.invert=function(h,v){return h=l.invert(h,v),h&&o.invert(h[0],h[1])}),f}function So(){return!0}function fa(o,l,f,h,v){var g=[],T=[];if(o.forEach(function(J){if(!((fe=J.length-1)<=0)){var fe,ce=J[0],he=J[fe];if(Co(ce,he)){v.lineStart();for(var se=0;fe>se;++se)v.point((ce=J[se])[0],ce[1]);return void v.lineEnd()}var pe=new To(ce,J,null,!0),we=new To(ce,null,pe,!1);pe.o=we,g.push(pe),T.push(we),pe=new To(he,J,null,!1),we=new To(he,null,pe,!0),pe.o=we,g.push(pe),T.push(we)}}),T.sort(l),ro(g),ro(T),g.length){for(var E=0,C=f,D=T.length;D>E;++E)T[E].e=C=!C;for(var I,q,F=g[0];;){for(var Y=F,de=!0;Y.v;)if((Y=Y.n)===F)return;I=Y.z,v.lineStart();do{if(Y.v=Y.o.v=!0,Y.e){if(de)for(var E=0,D=I.length;D>E;++E)v.point((q=I[E])[0],q[1]);else h(Y.x,Y.n.x,1,v);Y=Y.n}else{if(de){I=Y.p.z;for(var E=I.length-1;E>=0;--E)v.point((q=I[E])[0],q[1])}else h(Y.x,Y.p.x,-1,v);Y=Y.p}Y=Y.o,I=Y.z,de=!de}while(!Y.v);v.lineEnd()}}}function ro(o){if(l=o.length){for(var l,f,h=0,v=o[0];++h<l;)v.n=f=o[h],f.p=v,v=f;v.n=f=o[0],f.p=v}}function To(o,l,f,h){this.x=o,this.z=l,this.o=f,this.e=h,this.v=!1,this.n=this.p=null}function Rs(o,l,f,h){return function(v,g){function T(Pe,xe){var ze=v(Pe,xe);o(Pe=ze[0],xe=ze[1])&&g.point(Pe,xe)}function E(Pe,xe){var ze=v(Pe,xe);fe.point(ze[0],ze[1])}function C(){he.point=E,fe.lineStart()}function D(){he.point=T,fe.lineEnd()}function I(Pe,xe){J.push([Pe,xe]);var ze=v(Pe,xe);pe.point(ze[0],ze[1])}function q(){pe.lineStart(),J=[]}function F(){I(J[0][0],J[0][1]),pe.lineEnd();var Pe,xe=pe.clean(),ze=se.buffer(),vt=ze.length;if(J.pop(),de.push(J),J=null,vt)if(1&xe){Pe=ze[0];var Tt,vt=Pe.length-1,Rt=-1;if(vt>0){for(we||(g.polygonStart(),we=!0),g.lineStart();++Rt<vt;)g.point((Tt=Pe[Rt])[0],Tt[1]);g.lineEnd()}}else vt>1&&2&xe&&ze.push(ze.pop().concat(ze.shift())),Y.push(ze.filter(Oa))}var Y,de,J,fe=l(g),ce=v.invert(h[0],h[1]),he={point:T,lineStart:C,lineEnd:D,polygonStart:function(){he.point=I,he.lineStart=q,he.lineEnd=F,Y=[],de=[]},polygonEnd:function(){he.point=T,he.lineStart=C,he.lineEnd=D,Y=X.merge(Y);var Pe=Yo(ce,de);Y.length?(we||(g.polygonStart(),we=!0),fa(Y,Ia,Pe,f,g)):Pe&&(we||(g.polygonStart(),we=!0),g.lineStart(),f(null,null,1,g),g.lineEnd()),we&&(g.polygonEnd(),we=!1),Y=de=null},sphere:function(){g.polygonStart(),g.lineStart(),f(null,null,1,g),g.lineEnd(),g.polygonEnd()}},se=as(),pe=l(se),we=!1;return he}}function Oa(o){return o.length>1}function as(){var o,l=[];return{lineStart:function(){l.push(o=[])},point:function(f,h){o.push([f,h])},lineEnd:b,buffer:function(){var f=l;return l=[],o=null,f},rejoin:function(){l.length>1&&l.push(l.pop().concat(l.shift()))}}}function Ia(o,l){return((o=o.x)[0]<0?o[1]-Kr-qt:Kr-o[1])-((l=l.x)[0]<0?l[1]-Kr-qt:Kr-l[1])}function tl(o){var l,f=NaN,h=NaN,v=NaN;return{lineStart:function(){o.lineStart(),l=1},point:function(g,T){var E=g>0?Dn:-Dn,C=Sn(g-f);Sn(C-Dn)<qt?(o.point(f,h=(h+T)/2>0?Kr:-Kr),o.point(v,h),o.lineEnd(),o.lineStart(),o.point(E,h),o.point(g,h),l=0):v!==E&&C>=Dn&&(Sn(f-v)<qt&&(f-=v*qt),Sn(g-E)<qt&&(g-=E*qt),h=Uo(f,h,g,T),o.point(v,h),o.lineEnd(),o.lineStart(),o.point(E,h),l=0),o.point(f=g,h=T),v=E},lineEnd:function(){o.lineEnd(),f=h=NaN},clean:function(){return 2-l}}}function Uo(o,l,f,h){var v,g,T=Math.sin(o-f);return Sn(T)>qt?Math.atan((Math.sin(l)*(g=Math.cos(h))*Math.sin(f)-Math.sin(h)*(v=Math.cos(l))*Math.sin(o))/(v*g*T)):(l+h)/2}function Vo(o,l,f,h){var v;if(o==null)v=f*Kr,h.point(-Dn,v),h.point(0,v),h.point(Dn,v),h.point(Dn,0),h.point(Dn,-v),h.point(0,-v),h.point(-Dn,-v),h.point(-Dn,0),h.point(-Dn,v);else if(Sn(o[0]-l[0])>qt){var g=o[0]<l[0]?Dn:-Dn;v=f*g/2,h.point(-g,v),h.point(0,v),h.point(g,v)}else h.point(l[0],l[1])}function Yo(o,l){var f=o[0],h=o[1],v=[Math.sin(f),-Math.cos(f),0],g=0,T=0;Ul.reset();for(var E=0,C=l.length;C>E;++E){var D=l[E],I=D.length;if(I)for(var q=D[0],F=q[0],Y=q[1]/2+Dn/4,de=Math.sin(Y),J=Math.cos(Y),fe=1;;){fe===I&&(fe=0),o=D[fe];var ce=o[0],he=o[1]/2+Dn/4,se=Math.sin(he),pe=Math.cos(he),we=ce-F,Pe=we>=0?1:-1,xe=Pe*we,ze=xe>Dn,vt=de*se;if(Ul.add(Math.atan2(vt*Pe*Math.sin(xe),J*pe+vt*Math.cos(xe))),g+=ze?we+Pe*hi:we,ze^F>=f^ce>=f){var Tt=on(Nn(q),Nn(o));yi(Tt);var Rt=on(v,Tt);yi(Rt);var Ot=(ze^we>=0?-1:1)*He(Rt[2]);(h>Ot||h===Ot&&(Tt[0]||Tt[1]))&&(T+=ze^we>=0?1:-1)}if(!fe++)break;F=ce,de=se,J=pe,q=o}}return(-qt>g||qt>g&&-qt>Ul)^1&T}function ni(o){function l(D,I){return Math.cos(D)*Math.cos(I)>g}function f(D){var I,q,F,Y,de;return{lineStart:function(){Y=F=!1,de=1},point:function(J,fe){var ce,he=[J,fe],se=l(J,fe),pe=T?se?0:v(J,fe):se?v(J+(0>J?Dn:-Dn),fe):0;if(!I&&(Y=F=se)&&D.lineStart(),se!==F&&(ce=h(I,he),(Co(I,ce)||Co(he,ce))&&(he[0]+=qt,he[1]+=qt,se=l(he[0],he[1]))),se!==F)de=0,se?(D.lineStart(),ce=h(he,I),D.point(ce[0],ce[1])):(ce=h(I,he),D.point(ce[0],ce[1]),D.lineEnd()),I=ce;else if(E&&I&&T^se){var we;pe&q||!(we=h(he,I,!0))||(de=0,T?(D.lineStart(),D.point(we[0][0],we[0][1]),D.point(we[1][0],we[1][1]),D.lineEnd()):(D.point(we[1][0],we[1][1]),D.lineEnd(),D.lineStart(),D.point(we[0][0],we[0][1])))}!se||I&&Co(I,he)||D.point(he[0],he[1]),I=he,F=se,q=pe},lineEnd:function(){F&&D.lineEnd(),I=null},clean:function(){return de|(Y&&F)<<1}}}function h(D,I,q){var F=Nn(D),Y=Nn(I),de=[1,0,0],J=on(F,Y),fe=or(J,J),ce=J[0],he=fe-ce*ce;if(!he)return!q&&D;var se=g*fe/he,pe=-g*ce/he,we=on(de,J),Pe=Yr(de,se),xe=Yr(J,pe);zn(Pe,xe);var ze=we,vt=or(Pe,ze),Tt=or(ze,ze),Rt=vt*vt-Tt*(or(Pe,Pe)-1);if(!(0>Rt)){var Ot=Math.sqrt(Rt),Ft=Yr(ze,(-vt-Ot)/Tt);if(zn(Ft,Pe),Ft=Eo(Ft),!q)return Ft;var nt,it=D[0],It=I[0],Je=D[1],wt=I[1];it>It&&(nt=it,it=It,It=nt);var Kt=It-it,vn=Sn(Kt-Dn)<qt,On=vn||qt>Kt;if(!vn&&Je>wt&&(nt=Je,Je=wt,wt=nt),On?vn?Je+wt>0^Ft[1]<(Sn(Ft[0]-it)<qt?Je:wt):Je<=Ft[1]&&Ft[1]<=wt:Kt>Dn^(it<=Ft[0]&&Ft[0]<=It)){var Wn=Yr(ze,(-vt+Ot)/Tt);return zn(Wn,Pe),[Ft,Eo(Wn)]}}}function v(D,I){var q=T?o:Dn-o,F=0;return-q>D?F|=1:D>q&&(F|=2),-q>I?F|=4:I>q&&(F|=8),F}var g=Math.cos(o),T=g>0,E=Sn(g)>qt,C=Ke(o,6*_n);return Rs(l,f,C,T?[0,-o]:[-Dn,o-Dn])}function da(o,l,f,h){return function(v){var g,T=v.a,E=v.b,C=T.x,D=T.y,I=E.x,q=E.y,F=0,Y=1,de=I-C,J=q-D;if(g=o-C,de||!(g>0)){if(g/=de,0>de){if(F>g)return;Y>g&&(Y=g)}else if(de>0){if(g>Y)return;g>F&&(F=g)}if(g=f-C,de||!(0>g)){if(g/=de,0>de){if(g>Y)return;g>F&&(F=g)}else if(de>0){if(F>g)return;Y>g&&(Y=g)}if(g=l-D,J||!(g>0)){if(g/=J,0>J){if(F>g)return;Y>g&&(Y=g)}else if(J>0){if(g>Y)return;g>F&&(F=g)}if(g=h-D,J||!(0>g)){if(g/=J,0>J){if(g>Y)return;g>F&&(F=g)}else if(J>0){if(F>g)return;Y>g&&(Y=g)}return F>0&&(v.a={x:C+F*de,y:D+F*J}),1>Y&&(v.b={x:C+Y*de,y:D+Y*J}),v}}}}}}function Fs(o,l,f,h){function v(E,C){return Sn(E[0]-o)<qt?C>0?0:3:Sn(E[0]-f)<qt?C>0?2:1:Sn(E[1]-l)<qt?C>0?1:0:C>0?3:2}function g(E,C){return T(E.x,C.x)}function T(E,C){var D=v(E,1),I=v(C,1);return D!==I?D-I:D===0?C[1]-E[1]:D===1?E[0]-C[0]:D===2?E[1]-C[1]:C[0]-E[0]}return function(E){function C(nt){for(var it=0,It=fe.length,Je=nt[1],wt=0;It>wt;++wt)for(var Kt,vn=1,On=fe[wt],Wn=On.length,xr=On[0];Wn>vn;++vn)Kt=On[vn],xr[1]<=Je?Kt[1]>Je&&je(xr,Kt,nt)>0&&++it:Kt[1]<=Je&&je(xr,Kt,nt)<0&&--it,xr=Kt;return it!==0}function D(nt,it,It,Je){var wt=0,Kt=0;if(nt==null||(wt=v(nt,It))!==(Kt=v(it,It))||T(nt,it)<0^It>0)do Je.point(wt===0||wt===3?o:f,wt>1?h:l);while((wt=(wt+It+4)%4)!==Kt);else Je.point(it[0],it[1])}function I(nt,it){return nt>=o&&f>=nt&&it>=l&&h>=it}function q(nt,it){I(nt,it)&&E.point(nt,it)}function F(){Ft.point=de,fe&&fe.push(ce=[]),ze=!0,xe=!1,we=Pe=NaN}function Y(){J&&(de(he,se),pe&&xe&&Rt.rejoin(),J.push(Rt.buffer())),Ft.point=q,xe&&E.lineEnd()}function de(nt,it){nt=Math.max(-mc,Math.min(mc,nt)),it=Math.max(-mc,Math.min(mc,it));var It=I(nt,it);if(fe&&ce.push([nt,it]),ze)he=nt,se=it,pe=It,ze=!1,It&&(E.lineStart(),E.point(nt,it));else if(It&&xe)E.point(nt,it);else{var Je={a:{x:we,y:Pe},b:{x:nt,y:it}};Ot(Je)?(xe||(E.lineStart(),E.point(Je.a.x,Je.a.y)),E.point(Je.b.x,Je.b.y),It||E.lineEnd(),vt=!1):It&&(E.lineStart(),E.point(nt,it),vt=!1)}we=nt,Pe=it,xe=It}var J,fe,ce,he,se,pe,we,Pe,xe,ze,vt,Tt=E,Rt=as(),Ot=da(o,l,f,h),Ft={point:q,lineStart:F,lineEnd:Y,polygonStart:function(){E=Rt,J=[],fe=[],vt=!0},polygonEnd:function(){E=Tt,J=X.merge(J);var nt=C([o,h]),it=vt&&nt,It=J.length;(it||It)&&(E.polygonStart(),it&&(E.lineStart(),D(null,null,1,E),E.lineEnd()),It&&fa(J,g,nt,D,E),E.polygonEnd()),J=fe=ce=null}};return Ft}}function Na(o){var l=0,f=Dn/3,h=B(o),v=h(l,f);return v.parallels=function(g){return arguments.length?h(l=g[0]*Dn/180,f=g[1]*Dn/180):[l/Dn*180,f/Dn*180]},v}function Mo(o,l){function f(E,C){var D=Math.sqrt(g-2*v*Math.sin(C))/v;return[D*Math.sin(E*=v),T-D*Math.cos(E)]}var h=Math.sin(o),v=(h+Math.sin(l))/2,g=1+h*(2*v-h),T=Math.sqrt(g)/v;return f.invert=function(E,C){var D=T-C;return[Math.atan2(E,D)/v,He((g-(E*E+D*D)*v*v)/(2*v))]},f}function Jn(){function o(g,T){fd+=v*g-h*T,h=g,v=T}var l,f,h,v;bl.point=function(g,T){bl.point=o,l=h=g,f=v=T},bl.lineEnd=function(){o(l,f)}}function gr(o,l){Wa>o&&(Wa=o),o>cf&&(cf=o),uf>l&&(uf=l),l>dd&&(dd=l)}function nl(){function o(C,D){T.push("M",C,",",D,g)}function l(C,D){T.push("M",C,",",D),E.point=f}function f(C,D){T.push("L",C,",",D)}function h(){E.point=o}function v(){T.push("Z")}var g=ss(4.5),T=[],E={point:o,lineStart:function(){E.point=l},lineEnd:h,polygonStart:function(){E.lineEnd=v},polygonEnd:function(){E.lineEnd=h,E.point=o},pointRadius:function(C){return g=ss(C),E},result:function(){if(T.length){var C=T.join("");return T=[],C}}};return E}function ss(o){return"m0,"+o+"a"+o+","+o+" 0 1,1 0,"+-2*o+"a"+o+","+o+" 0 1,1 0,"+2*o+"z"}function bi(o,l){Vl+=o,Yl+=l,++qa}function Ao(){function o(h,v){var g=h-l,T=v-f,E=Math.sqrt(g*g+T*T);gl+=E*(l+h)/2,_s+=E*(f+v)/2,za+=E,bi(l=h,f=v)}var l,f;ws.point=function(h,v){ws.point=o,bi(l=h,f=v)}}function ls(){ws.point=bi}function rl(){function o(g,T){var E=g-h,C=T-v,D=Math.sqrt(E*E+C*C);gl+=D*(h+g)/2,_s+=D*(v+T)/2,za+=D,D=v*g-h*T,vl+=D*(h+g),pc+=D*(v+T),yl+=3*D,bi(h=g,v=T)}var l,f,h,v;ws.point=function(g,T){ws.point=o,bi(l=h=g,f=v=T)},ws.lineEnd=function(){o(l,f)}}function Nl(o){function l(C,D){o.moveTo(C+T,D),o.arc(C,D,T,0,hi)}function f(C,D){o.moveTo(C,D),E.point=h}function h(C,D){o.lineTo(C,D)}function v(){E.point=l}function g(){o.closePath()}var T=4.5,E={point:l,lineStart:function(){E.point=f},lineEnd:v,polygonStart:function(){E.lineEnd=g},polygonEnd:function(){E.lineEnd=v,E.point=l},pointRadius:function(C){return T=C,E},result:b};return E}function ha(o){function l(C){return(E?h:f)(C)}function f(C){return M(C,function(D,I){D=o(D,I),C.point(D[0],D[1])})}function h(C){function D(nt,it){nt=o(nt,it),C.point(nt[0],nt[1])}function I(){ze=NaN,Ft.point=q,C.lineStart()}function q(nt,it){var It=Nn([nt,it]),Je=o(nt,it);v(ze,vt,xe,Tt,Rt,Ot,ze=Je[0],vt=Je[1],xe=nt,Tt=It[0],Rt=It[1],Ot=It[2],E,C),C.point(ze,vt)}function F(){Ft.point=D,C.lineEnd()}function Y(){I(),Ft.point=de,Ft.lineEnd=J}function de(nt,it){q(fe=nt,ce=it),he=ze,se=vt,pe=Tt,we=Rt,Pe=Ot,Ft.point=q}function J(){v(ze,vt,xe,Tt,Rt,Ot,he,se,fe,pe,we,Pe,E,C),Ft.lineEnd=F,F()}var fe,ce,he,se,pe,we,Pe,xe,ze,vt,Tt,Rt,Ot,Ft={point:D,lineStart:I,lineEnd:F,polygonStart:function(){C.polygonStart(),Ft.lineStart=Y},polygonEnd:function(){C.polygonEnd(),Ft.lineStart=I}};return Ft}function v(C,D,I,q,F,Y,de,J,fe,ce,he,se,pe,we){var Pe=de-C,xe=J-D,ze=Pe*Pe+xe*xe;if(ze>4*g&&pe--){var vt=q+ce,Tt=F+he,Rt=Y+se,Ot=Math.sqrt(vt*vt+Tt*Tt+Rt*Rt),Ft=Math.asin(Rt/=Ot),nt=Sn(Sn(Rt)-1)<qt||Sn(I-fe)<qt?(I+fe)/2:Math.atan2(Tt,vt),it=o(nt,Ft),It=it[0],Je=it[1],wt=It-C,Kt=Je-D,vn=xe*wt-Pe*Kt;(vn*vn/ze>g||Sn((Pe*wt+xe*Kt)/ze-.5)>.3||T>q*ce+F*he+Y*se)&&(v(C,D,I,q,F,Y,It,Je,nt,vt/=Ot,Tt/=Ot,Rt,pe,we),we.point(It,Je),v(It,Je,nt,vt,Tt,Rt,de,J,fe,ce,he,se,pe,we))}}var g=.5,T=Math.cos(30*_n),E=16;return l.precision=function(C){return arguments.length?(E=(g=C*C)>0&&16,l):Math.sqrt(g)},l}function p(o){var l=ha(function(f,h){return o([f*jr,h*jr])});return function(f){return z(l(f))}}function w(o){this.stream=o}function M(o,l){return{point:l,sphere:function(){o.sphere()},lineStart:function(){o.lineStart()},lineEnd:function(){o.lineEnd()},polygonStart:function(){o.polygonStart()},polygonEnd:function(){o.polygonEnd()}}}function k(o){return B(function(){return o})()}function B(o){function l(ze){return ze=E(ze[0]*_n,ze[1]*_n),[ze[0]*F+C,D-ze[1]*F]}function f(ze){return ze=E.invert((ze[0]-C)/F,(D-ze[1])/F),ze&&[ze[0]*jr,ze[1]*jr]}function h(){E=mi(T=Se(ce,he,se),g);var ze=g(J,fe);return C=Y-ze[0]*F,D=de+ze[1]*F,v()}function v(){return I&&(I.valid=!1,I=null),l}var g,T,E,C,D,I,q=ha(function(ze,vt){return ze=g(ze,vt),[ze[0]*F+C,D-ze[1]*F]}),F=150,Y=480,de=250,J=0,fe=0,ce=0,he=0,se=0,pe=Jh,we=le,Pe=null,xe=null;return l.stream=function(ze){return I&&(I.valid=!1),I=z(pe(T,q(we(ze)))),I.valid=!0,I},l.clipAngle=function(ze){return arguments.length?(pe=ze==null?(Pe=ze,Jh):ni((Pe=+ze)*_n),v()):Pe},l.clipExtent=function(ze){return arguments.length?(xe=ze,we=ze?Fs(ze[0][0],ze[0][1],ze[1][0],ze[1][1]):le,v()):xe},l.scale=function(ze){return arguments.length?(F=+ze,h()):F},l.translate=function(ze){return arguments.length?(Y=+ze[0],de=+ze[1],h()):[Y,de]},l.center=function(ze){return arguments.length?(J=ze[0]%360*_n,fe=ze[1]%360*_n,h()):[J*jr,fe*jr]},l.rotate=function(ze){return arguments.length?(ce=ze[0]%360*_n,he=ze[1]%360*_n,se=ze.length>2?ze[2]%360*_n:0,h()):[ce*jr,he*jr,se*jr]},X.rebind(l,q,"precision"),function(){return g=o.apply(this,arguments),l.invert=g.invert&&f,h()}}function z(o){return M(o,function(l,f){o.point(l*_n,f*_n)})}function K(o,l){return[o,l]}function Ee(o,l){return[o>Dn?o-hi:-Dn>o?o+hi:o,l]}function Se(o,l,f){return o?l||f?mi(at(o),Et(l,f)):at(o):l||f?Et(l,f):Ee}function Ve(o){return function(l,f){return l+=o,[l>Dn?l-hi:-Dn>l?l+hi:l,f]}}function at(o){var l=Ve(o);return l.invert=Ve(-o),l}function Et(o,l){function f(E,C){var D=Math.cos(C),I=Math.cos(E)*D,q=Math.sin(E)*D,F=Math.sin(C),Y=F*h+I*v;return[Math.atan2(q*g-Y*T,I*h-F*v),He(Y*g+q*T)]}var h=Math.cos(o),v=Math.sin(o),g=Math.cos(l),T=Math.sin(l);return f.invert=function(E,C){var D=Math.cos(C),I=Math.cos(E)*D,q=Math.sin(E)*D,F=Math.sin(C),Y=F*g-q*T;return[Math.atan2(q*g+F*T,I*h+Y*v),He(Y*h-I*v)]},f}function Ke(o,l){var f=Math.cos(o),h=Math.sin(o);return function(v,g,T,E){var C=T*l;v!=null?(v=dt(f,v),g=dt(f,g),(T>0?g>v:v>g)&&(v+=T*hi)):(v=o+T*hi,g=o-.5*C);for(var D,I=v;T>0?I>g:g>I;I-=C)E.point((D=Eo([f,-h*Math.cos(I),-h*Math.sin(I)]))[0],D[1])}}function dt(o,l){var f=Nn(l);f[0]-=o,yi(f);var h=Xe(-f[1]);return((-f[2]<0?-h:h)+2*Math.PI-qt)%(2*Math.PI)}function Jt(o,l,f){var h=X.range(o,l-qt,f).concat(l);return function(v){return h.map(function(g){return[v,g]})}}function Rn(o,l,f){var h=X.range(o,l-qt,f).concat(l);return function(v){return h.map(function(g){return[g,v]})}}function sn(o){return o.source}function _r(o){return o.target}function $r(o,l,f,h){var v=Math.cos(l),g=Math.sin(l),T=Math.cos(h),E=Math.sin(h),C=v*Math.cos(o),D=v*Math.sin(o),I=T*Math.cos(f),q=T*Math.sin(f),F=2*Math.asin(Math.sqrt(un(h-l)+v*T*un(f-o))),Y=1/Math.sin(F),de=F?function(J){var fe=Math.sin(J*=F)*Y,ce=Math.sin(F-J)*Y,he=ce*C+fe*I,se=ce*D+fe*q,pe=ce*g+fe*E;return[Math.atan2(se,he)*jr,Math.atan2(pe,Math.sqrt(he*he+se*se))*jr]}:function(){return[o*jr,l*jr]};return de.distance=F,de}function _i(){function o(v,g){var T=Math.sin(g*=_n),E=Math.cos(g),C=Sn((v*=_n)-l),D=Math.cos(C);xs+=Math.atan2(Math.sqrt((C=E*Math.sin(C))*C+(C=h*T-f*E*D)*C),f*T+h*E*D),l=v,f=T,h=E}var l,f,h;$l.point=function(v,g){l=v*_n,f=Math.sin(g*=_n),h=Math.cos(g),$l.point=o},$l.lineEnd=function(){$l.point=$l.lineEnd=b}}function hn(o,l){function f(h,v){var g=Math.cos(h),T=Math.cos(v),E=o(g*T);return[E*T*Math.sin(h),E*Math.sin(v)]}return f.invert=function(h,v){var g=Math.sqrt(h*h+v*v),T=l(g),E=Math.sin(T),C=Math.cos(T);return[Math.atan2(h*E,g*C),Math.asin(g&&v*E/g)]},f}function pn(o,l){function f(E,C){T>0?-Kr+qt>C&&(C=-Kr+qt):C>Kr-qt&&(C=Kr-qt);var D=T/Math.pow(v(C),g);return[D*Math.sin(g*E),T-D*Math.cos(g*E)]}var h=Math.cos(o),v=function(E){return Math.tan(Dn/4+E/2)},g=o===l?Math.sin(o):Math.log(h/Math.cos(l))/Math.log(v(l)/v(o)),T=h*Math.pow(v(o),g)/g;return g?(f.invert=function(E,C){var D=T-C,I=Ie(g)*Math.sqrt(E*E+D*D);return[Math.atan2(E,D)/g,2*Math.atan(Math.pow(T/I,1/g))-Kr]},f):Zn}function wi(o,l){function f(T,E){var C=g-E;return[C*Math.sin(v*T),g-C*Math.cos(v*T)]}var h=Math.cos(o),v=o===l?Math.sin(o):(h-Math.cos(l))/(l-o),g=h/v+o;return Sn(v)<qt?K:(f.invert=function(T,E){var C=g-E;return[Math.atan2(T,C)/v,g-Ie(v)*Math.sqrt(T*T+C*C)]},f)}function Zn(o,l){return[o,Math.log(Math.tan(Dn/4+l/2))]}function Or(o){var l,f=k(o),h=f.scale,v=f.translate,g=f.clipExtent;return f.scale=function(){var T=h.apply(f,arguments);return T===f?l?f.clipExtent(null):f:T},f.translate=function(){var T=v.apply(f,arguments);return T===f?l?f.clipExtent(null):f:T},f.clipExtent=function(T){var E=g.apply(f,arguments);if(E===f){if(l=T==null){var C=Dn*h(),D=v();g([[D[0]-C,D[1]-C],[D[0]+C,D[1]+C]])}}else l&&(E=null);return E},f.clipExtent(null)}function us(o,l){return[Math.log(Math.tan(Dn/4+l/2)),-o]}function pa(o){return o[0]}function Di(o){return o[1]}function ma(o){for(var l=o.length,f=[0,1],h=2,v=2;l>v;v++){for(;h>1&&je(o[f[h-2]],o[f[h-1]],o[v])<=0;)--h;f[h++]=v}return f.slice(0,h)}function $o(o,l){return o[0]-l[0]||o[1]-l[1]}function ri(o,l,f){return(f[0]-l[0])*(o[1]-l[1])<(f[1]-l[1])*(o[0]-l[0])}function Lo(o,l,f,h){var v=o[0],g=f[0],T=l[0]-v,E=h[0]-g,C=o[1],D=f[1],I=l[1]-C,q=h[1]-D,F=(E*(C-D)-q*(v-g))/(q*T-E*I);return[v+F*T,C+F*I]}function Ui(o){var l=o[0],f=o[o.length-1];return!(l[0]-f[0]||l[1]-f[1])}function ga(){Bs(this),this.edge=this.site=this.circle=null}function va(o){var l=bo.pop()||new ga;return l.site=o,l}function Ro(o){ki(o),gc.remove(o),bo.push(o),Bs(o)}function Pl(o){var l=o.circle,f=l.x,h=l.cy,v={x:f,y:h},g=o.P,T=o.N,E=[o];Ro(o);for(var C=g;C.circle&&Sn(f-C.circle.x)<qt&&Sn(h-C.circle.cy)<qt;)g=C.P,E.unshift(C),Ro(C),C=g;E.unshift(C),ki(C);for(var D=T;D.circle&&Sn(f-D.circle.x)<qt&&Sn(h-D.circle.cy)<qt;)T=D.N,E.push(D),Ro(D),D=T;E.push(D),ki(D);var I,q=E.length;for(I=1;q>I;++I)D=E[I],C=E[I-1],Pa(D.edge,C.site,D.site,v);C=E[0],D=E[q-1],D.edge=ol(C.site,D.site,null,v),io(C),io(D)}function vr(o){for(var l,f,h,v,g=o.x,T=o.y,E=gc._;E;)if(h=Go(E,T)-g,h>qt)E=E.L;else{if(v=g-Ll(E,T),!(v>qt)){h>-qt?(l=E.P,f=E):v>-qt?(l=E,f=E.N):l=f=E;break}if(!E.R){l=E;break}E=E.R}var C=va(o);if(gc.insert(l,C),l||f){if(l===f)return ki(l),f=va(l.site),gc.insert(C,f),C.edge=f.edge=ol(l.site,C.site),io(l),void io(f);if(!f)return void(C.edge=ol(l.site,C.site));ki(l),ki(f);var D=l.site,I=D.x,q=D.y,F=o.x-I,Y=o.y-q,de=f.site,J=de.x-I,fe=de.y-q,ce=2*(F*fe-Y*J),he=F*F+Y*Y,se=J*J+fe*fe,pe={x:(fe*he-Y*se)/ce+I,y:(F*se-J*he)/ce+q};Pa(f.edge,D,de,pe),C.edge=ol(D,o,null,pe),f.edge=ol(o,de,null,pe),io(l),io(f)}}function Go(o,l){var f=o.site,h=f.x,v=f.y,g=v-l;if(!g)return h;var T=o.P;if(!T)return-(1/0);f=T.site;var E=f.x,C=f.y,D=C-l;if(!D)return E;var I=E-h,q=1/g-1/D,F=I/D;return q?(-F+Math.sqrt(F*F-2*q*(I*I/(-2*D)-C+D/2+v-g/2)))/q+h:(h+E)/2}function Ll(o,l){var f=o.N;if(f)return Go(f,l);var h=o.site;return h.y===l?h.x:1/0}function Rl(o){this.site=o,this.edges=[]}function hu(o){for(var l,f,h,v,g,T,E,C,D,I,q=o[0][0],F=o[1][0],Y=o[0][1],de=o[1][1],J=Ea,fe=J.length;fe--;)if(g=J[fe],g&&g.prepare())for(E=g.edges,C=E.length,T=0;C>T;)I=E[T].end(),h=I.x,v=I.y,D=E[++T%C].start(),l=D.x,f=D.y,(Sn(h-l)>qt||Sn(v-f)>qt)&&(E.splice(T,0,new Oi(al(g.site,I,Sn(h-q)<qt&&de-v>qt?{x:q,y:Sn(l-q)<qt?f:de}:Sn(v-de)<qt&&F-h>qt?{x:Sn(f-de)<qt?l:F,y:de}:Sn(h-F)<qt&&v-Y>qt?{x:F,y:Sn(l-F)<qt?f:Y}:Sn(v-Y)<qt&&h-q>qt?{x:Sn(f-Y)<qt?l:q,y:Y}:null),g.site,null)),++C)}function Gr(o,l){return l.angle-o.angle}function pu(){Bs(this),this.x=this.y=this.arc=this.site=this.cy=null}function io(o){var l=o.P,f=o.N;if(l&&f){var h=l.site,v=o.site,g=f.site;if(h!==g){var T=v.x,E=v.y,C=h.x-T,D=h.y-E,I=g.x-T,q=g.y-E,F=2*(C*q-D*I);if(!(F>=-nd)){var Y=C*C+D*D,de=I*I+q*q,J=(q*Y-D*de)/F,fe=(C*de-I*Y)/F,q=fe+E,ce=ag.pop()||new pu;ce.arc=o,ce.site=v,ce.x=J+T,ce.y=q+Math.sqrt(J*J+fe*fe),ce.cy=q,o.circle=ce;for(var he=null,se=vc._;se;)if(ce.y<se.y||ce.y===se.y&&ce.x<=se.x){if(!se.L){he=se.P;break}se=se.L}else{if(!se.R){he=se;break}se=se.R}vc.insert(he,ce),he||(df=ce)}}}}function ki(o){var l=o.circle;l&&(l.P||(df=l.N),vc.remove(l),ag.push(l),Bs(l),o.circle=null)}function Zu(o){for(var l,f=Gl,h=da(o[0][0],o[0][1],o[1][0],o[1][1]),v=f.length;v--;)l=f[v],(!ec(l,o)||!h(l)||Sn(l.a.x-l.b.x)<qt&&Sn(l.a.y-l.b.y)<qt)&&(l.a=l.b=null,f.splice(v,1))}function ec(o,l){var f=o.b;if(f)return!0;var h,v,g=o.a,T=l[0][0],E=l[1][0],C=l[0][1],D=l[1][1],I=o.l,q=o.r,F=I.x,Y=I.y,de=q.x,J=q.y,fe=(F+de)/2,ce=(Y+J)/2;if(J===Y){if(T>fe||fe>=E)return;if(F>de){if(g){if(g.y>=D)return}else g={x:fe,y:C};f={x:fe,y:D}}else{if(g){if(g.y<C)return}else g={x:fe,y:D};f={x:fe,y:C}}}else if(h=(F-de)/(J-Y),v=ce-h*fe,-1>h||h>1)if(F>de){if(g){if(g.y>=D)return}else g={x:(C-v)/h,y:C};f={x:(D-v)/h,y:D}}else{if(g){if(g.y<C)return}else g={x:(D-v)/h,y:D};f={x:(C-v)/h,y:C}}else if(J>Y){if(g){if(g.x>=E)return}else g={x:T,y:h*T+v};f={x:E,y:h*E+v}}else{if(g){if(g.x<T)return}else g={x:E,y:h*E+v};f={x:T,y:h*T+v}}return o.a=g,o.b=f,!0}function il(o,l){this.l=o,this.r=l,this.a=this.b=null}function ol(o,l,f,h){var v=new il(o,l);return Gl.push(v),f&&Pa(v,o,l,f),h&&Pa(v,l,o,h),Ea[o.i].edges.push(new Oi(v,o,l)),Ea[l.i].edges.push(new Oi(v,l,o)),v}function al(o,l,f){var h=new il(o,null);return h.a=l,h.b=f,Gl.push(h),h}function Pa(o,l,f,h){o.a||o.b?o.l===f?o.b=h:o.a=h:(o.a=h,o.l=l,o.r=f)}function Oi(o,l,f){var h=o.a,v=o.b;this.edge=o,this.site=l,this.angle=f?Math.atan2(f.y-l.y,f.x-l.x):o.l===l?Math.atan2(v.x-h.x,h.y-v.y):Math.atan2(h.x-v.x,v.y-h.y)}function sl(){this._=null}function Bs(o){o.U=o.C=o.L=o.R=o.P=o.N=null}function Xi(o,l){var f=l,h=l.R,v=f.U;v?v.L===f?v.L=h:v.R=h:o._=h,h.U=v,f.U=h,f.R=h.L,f.R&&(f.R.U=f),h.L=f}function xi(o,l){var f=l,h=l.L,v=f.U;v?v.L===f?v.L=h:v.R=h:o._=h,h.U=v,f.U=h,f.L=h.R,f.L&&(f.L.U=f),h.R=f}function Do(o){for(;o.L;)o=o.L;return o}function cs(o,l){var f,h,v,g=o.sort(tc).pop();for(Gl=[],Ea=new Array(o.length),gc=new sl,vc=new sl;;)if(v=df,g&&(!v||g.y<v.y||g.y===v.y&&g.x<v.x))g.x===f&&g.y===h||(Ea[g.i]=new Rl(g),vr(g),f=g.x,h=g.y),g=o.pop();else{if(!v)break;Pl(v.arc)}l&&(Zu(l),hu(l));var T={cells:Ea,edges:Gl};return gc=vc=Gl=Ea=null,T}function tc(o,l){return l.y-o.y||l.x-o.x}function Vc(o,l,f){return(o.x-f.x)*(l.y-o.y)-(o.x-l.x)*(f.y-o.y)}function Ir(o){return o.x}function ya(o){return o.y}function ii(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function oi(o,l,f,h,v,g){if(!o(l,f,h,v,g)){var T=.5*(f+v),E=.5*(h+g),C=l.nodes;C[0]&&oi(o,C[0],f,h,T,E),C[1]&&oi(o,C[1],T,h,v,E),C[2]&&oi(o,C[2],f,E,T,g),C[3]&&oi(o,C[3],T,E,v,g)}}function La(o,l,f,h,v,g,T){var E,C=1/0;return function D(I,q,F,Y,de){if(!(q>g||F>T||h>Y||v>de)){if(J=I.point){var J,fe=l-I.x,ce=f-I.y,he=fe*fe+ce*ce;if(C>he){var se=Math.sqrt(C=he);h=l-se,v=f-se,g=l+se,T=f+se,E=J}}for(var pe=I.nodes,we=.5*(q+Y),Pe=.5*(F+de),xe=l>=we,ze=f>=Pe,vt=ze<<1|xe,Tt=vt+4;Tt>vt;++vt)if(I=pe[3&vt])switch(3&vt){case 0:D(I,q,F,we,Pe);break;case 1:D(I,we,F,Y,Pe);break;case 2:D(I,q,Pe,we,de);break;case 3:D(I,we,Pe,Y,de)}}}(o,h,v,g,T),E}function Fl(o,l){o=X.rgb(o),l=X.rgb(l);var f=o.r,h=o.g,v=o.b,g=l.r-f,T=l.g-h,E=l.b-v;return function(C){return"#"+po(Math.round(f+g*C))+po(Math.round(h+T*C))+po(Math.round(v+E*C))}}function ll(o,l){var f,h={},v={};for(f in o)f in l?h[f]=di(o[f],l[f]):v[f]=o[f];for(f in l)f in o||(v[f]=l[f]);return function(g){for(f in h)v[f]=h[f](g);return v}}function gi(o,l){return o=+o,l=+l,function(f){return o*(1-f)+l*f}}function mu(o,l){var f,h,v,g=gd.lastIndex=ep.lastIndex=0,T=-1,E=[],C=[];for(o+="",l+="";(f=gd.exec(o))&&(h=ep.exec(l));)(v=h.index)>g&&(v=l.slice(g,v),E[T]?E[T]+=v:E[++T]=v),(f=f[0])===(h=h[0])?E[T]?E[T]+=h:E[++T]=h:(E[++T]=null,C.push({i:T,x:gi(f,h)})),g=ep.lastIndex;return g<l.length&&(v=l.slice(g),E[T]?E[T]+=v:E[++T]=v),E.length<2?C[0]?(l=C[0].x,function(D){return l(D)+""}):function(){return l}:(l=C.length,function(D){for(var I,q=0;l>q;++q)E[(I=C[q]).i]=I.x(D);return E.join("")})}function di(o,l){for(var f,h=X.interpolators.length;--h>=0&&!(f=X.interpolators[h](o,l)););return f}function We(o,l){var f,h=[],v=[],g=o.length,T=l.length,E=Math.min(o.length,l.length);for(f=0;E>f;++f)h.push(di(o[f],l[f]));for(;g>f;++f)v[f]=o[f];for(;T>f;++f)v[f]=l[f];return function(C){for(f=0;E>f;++f)v[f]=h[f](C);return v}}function gt(o){return function(l){return 0>=l?0:l>=1?1:o(l)}}function ot(o){return function(l){return 1-o(1-l)}}function Gt(o){return function(l){return .5*(.5>l?o(2*l):2-o(2-2*l))}}function Pn(o){return o*o}function fr(o){return o*o*o}function ai(o){if(0>=o)return 0;if(o>=1)return 1;var l=o*o,f=l*o;return 4*(.5>o?f:3*(o-l)+f-.75)}function wr(o){return function(l){return Math.pow(l,o)}}function Ra(o){return 1-Math.cos(o*Kr)}function fs(o){return Math.pow(2,10*(o-1))}function ne(o){return 1-Math.sqrt(1-o*o)}function _e(o,l){var f;return arguments.length<2&&(l=.45),arguments.length?f=l/hi*Math.asin(1/o):(o=1,f=l/4),function(h){return 1+o*Math.pow(2,-10*h)*Math.sin((h-f)*hi/l)}}function Fe(o){return o||(o=1.70158),function(l){return l*l*((o+1)*l-o)}}function ht(o){return 1/2.75>o?7.5625*o*o:2/2.75>o?7.5625*(o-=1.5/2.75)*o+.75:2.5/2.75>o?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375}function Ye(o,l){o=X.hcl(o),l=X.hcl(l);var f=o.h,h=o.c,v=o.l,g=l.h-f,T=l.c-h,E=l.l-v;return isNaN(T)&&(T=0,h=isNaN(h)?l.c:h),isNaN(g)?(g=0,f=isNaN(f)?l.h:f):g>180?g-=360:-180>g&&(g+=360),function(C){return Xn(f+g*C,h+T*C,v+E*C)+""}}function _t(o,l){o=X.hsl(o),l=X.hsl(l);var f=o.h,h=o.s,v=o.l,g=l.h-f,T=l.s-h,E=l.l-v;return isNaN(T)&&(T=0,h=isNaN(h)?l.s:h),isNaN(g)?(g=0,f=isNaN(f)?l.h:f):g>180?g-=360:-180>g&&(g+=360),function(C){return An(f+g*C,h+T*C,v+E*C)+""}}function ut(o,l){o=X.lab(o),l=X.lab(l);var f=o.l,h=o.a,v=o.b,g=l.l-f,T=l.a-h,E=l.b-v;return function(C){return ji(f+g*C,h+T*C,v+E*C)+""}}function zt(o,l){return l-=o,function(f){return Math.round(o+l*f)}}function Wt(o){var l=[o.a,o.b],f=[o.c,o.d],h=gn(l),v=mn(l,f),g=gn(En(f,l,-v))||0;l[0]*f[1]<f[0]*l[1]&&(l[0]*=-1,l[1]*=-1,h*=-1,v*=-1),this.rotate=(h?Math.atan2(l[1],l[0]):Math.atan2(-f[0],f[1]))*jr,this.translate=[o.e,o.f],this.scale=[h,g],this.skew=g?Math.atan2(v,g)*jr:0}function mn(o,l){return o[0]*l[0]+o[1]*l[1]}function gn(o){var l=Math.sqrt(mn(o,o));return l&&(o[0]/=l,o[1]/=l),l}function En(o,l,f){return o[0]+=f*l[0],o[1]+=f*l[1],o}function Hn(o){return o.length?o.pop()+",":""}function dr(o,l,f,h){if(o[0]!==l[0]||o[1]!==l[1]){var v=f.push("translate(",null,",",null,")");h.push({i:v-4,x:gi(o[0],l[0])},{i:v-2,x:gi(o[1],l[1])})}else(l[0]||l[1])&&f.push("translate("+l+")")}function ln(o,l,f,h){o!==l?(o-l>180?l+=360:l-o>180&&(o+=360),h.push({i:f.push(Hn(f)+"rotate(",null,")")-2,x:gi(o,l)})):l&&f.push(Hn(f)+"rotate("+l+")")}function si(o,l,f,h){o!==l?h.push({i:f.push(Hn(f)+"skewX(",null,")")-2,x:gi(o,l)}):l&&f.push(Hn(f)+"skewX("+l+")")}function Ei(o,l,f,h){if(o[0]!==l[0]||o[1]!==l[1]){var v=f.push(Hn(f)+"scale(",null,",",null,")");h.push({i:v-4,x:gi(o[0],l[0])},{i:v-2,x:gi(o[1],l[1])})}else l[0]===1&&l[1]===1||f.push(Hn(f)+"scale("+l+")")}function Ii(o,l){var f=[],h=[];return o=X.transform(o),l=X.transform(l),dr(o.translate,l.translate,f,h),ln(o.rotate,l.rotate,f,h),si(o.skew,l.skew,f,h),Ei(o.scale,l.scale,f,h),o=l=null,function(v){for(var g,T=-1,E=h.length;++T<E;)f[(g=h[T]).i]=g.x(v);return f.join("")}}function Hr(o,l){return l=(l-=o=+o)||1/l,function(f){return(f-o)/l}}function Hs(o,l){return l=(l-=o=+o)||1/l,function(f){return Math.max(0,Math.min(1,(f-o)/l))}}function ba(o){for(var l=o.source,f=o.target,h=ds(l,f),v=[l];l!==h;)l=l.parent,v.push(l);for(var g=v.length;f!==h;)v.splice(g,0,f),f=f.parent;return v}function Qi(o){for(var l=[],f=o.parent;f!=null;)l.push(o),o=f,f=f.parent;return l.push(o),l}function ds(o,l){if(o===l)return o;for(var f=Qi(o),h=Qi(l),v=f.pop(),g=h.pop(),T=null;v===g;)T=v,v=f.pop(),g=h.pop();return T}function _a(o){o.fixed|=2}function nc(o){o.fixed&=-7}function rc(o){o.fixed|=4,o.px=o.x,o.py=o.y}function gu(o){o.fixed&=-5}function jf(o,l,f){var h=0,v=0;if(o.charge=0,!o.leaf)for(var g,T=o.nodes,E=T.length,C=-1;++C<E;)g=T[C],g!=null&&(jf(g,l,f),o.charge+=g.charge,h+=g.charge*g.cx,v+=g.charge*g.cy);if(o.point){o.leaf||(o.point.x+=Math.random()-.5,o.point.y+=Math.random()-.5);var D=l*f[o.point.index];o.charge+=o.pointCharge=D,h+=D*o.point.x,v+=D*o.point.y}o.cx=h/o.charge,o.cy=v/o.charge}function qs(o,l){return X.rebind(o,l,"sort","children","value"),o.nodes=o,o.links=Eh,o}function zs(o,l){for(var f=[o];(o=f.pop())!=null;)if(l(o),(v=o.children)&&(h=v.length))for(var h,v;--h>=0;)f.push(v[h])}function oo(o,l){for(var f=[o],h=[];(o=f.pop())!=null;)if(h.push(o),(g=o.children)&&(v=g.length))for(var v,g,T=-1;++T<v;)f.push(g[T]);for(;(o=h.pop())!=null;)l(o)}function xh(o){return o.children}function Yc(o){return o.value}function Uf(o,l){return l.value-o.value}function Eh(o){return X.merge(o.map(function(l){return(l.children||[]).map(function(f){return{source:l,target:f}})}))}function Ni(o){return o.x}function ao(o){return o.y}function Ch(o,l,f){o.y0=l,o.y=f}function $c(o){return X.range(o.length)}function ic(o){for(var l=-1,f=o[0].length,h=[];++l<f;)h[l]=0;return h}function Sh(o){for(var l,f=1,h=0,v=o[0][1],g=o.length;g>f;++f)(l=o[f][1])>v&&(h=f,v=l);return h}function oc(o){return o.reduce(Bl,0)}function Bl(o,l){return o+l[1]}function Gc(o,l){return ul(o,Math.ceil(Math.log(l.length)/Math.LN2+1))}function ul(o,l){for(var f=-1,h=+o[0],v=(o[1]-h)/l,g=[];++f<=l;)g[f]=v*f+h;return g}function vu(o){return[X.min(o),X.max(o)]}function hs(o,l){return o.value-l.value}function wa(o,l){var f=o._pack_next;o._pack_next=l,l._pack_prev=o,l._pack_next=f,f._pack_prev=l}function cl(o,l){o._pack_next=l,l._pack_prev=o}function yu(o,l){var f=l.x-o.x,h=l.y-o.y,v=o.r+l.r;return .999*v*v>f*f+h*h}function Hl(o){function l(pe){I=Math.min(pe.x-pe.r,I),q=Math.max(pe.x+pe.r,q),F=Math.min(pe.y-pe.r,F),Y=Math.max(pe.y+pe.r,Y)}if((f=o.children)&&(D=f.length)){var f,h,v,g,T,E,C,D,I=1/0,q=-(1/0),F=1/0,Y=-(1/0);if(f.forEach(Th),h=f[0],h.x=-h.r,h.y=0,l(h),D>1&&(v=f[1],v.x=v.r,v.y=0,l(v),D>2))for(g=f[2],ps(h,v,g),l(g),wa(h,g),h._pack_prev=g,wa(g,v),v=h._pack_next,T=3;D>T;T++){ps(h,v,g=f[T]);var de=0,J=1,fe=1;for(E=v._pack_next;E!==v;E=E._pack_next,J++)if(yu(E,g)){de=1;break}if(de==1)for(C=h._pack_prev;C!==E._pack_prev&&!yu(C,g);C=C._pack_prev,fe++);de?(fe>J||J==fe&&v.r<h.r?cl(h,v=E):cl(h=C,v),T--):(wa(h,g),v=g,l(g))}var ce=(I+q)/2,he=(F+Y)/2,se=0;for(T=0;D>T;T++)g=f[T],g.x-=ce,g.y-=he,se=Math.max(se,g.r+Math.sqrt(g.x*g.x+g.y*g.y));o.r=se,f.forEach(Mh)}}function Th(o){o._pack_next=o._pack_prev=o}function Mh(o){delete o._pack_next,delete o._pack_prev}function Kc(o,l,f,h){var v=o.children;if(o.x=l+=h*o.x,o.y=f+=h*o.y,o.r*=h,v)for(var g=-1,T=v.length;++g<T;)Kc(v[g],l,f,h)}function ps(o,l,f){var h=o.r+f.r,v=l.x-o.x,g=l.y-o.y;if(h&&(v||g)){var T=l.r+f.r,E=v*v+g*g;T*=T,h*=h;var C=.5+(h-T)/(2*E),D=Math.sqrt(Math.max(0,2*T*(h+E)-(h-=E)*h-T*T))/(2*E);f.x=o.x+C*v+D*g,f.y=o.y+C*g-D*v}else f.x=o.x+h,f.y=o.y}function fl(o,l){return o.parent==l.parent?1:2}function bu(o){var l=o.children;return l.length?l[0]:o.t}function ee(o){var l,f=o.children;return(l=f.length)?f[l-1]:o.t}function ql(o,l,f){var h=f/(l.i-o.i);l.c-=h,l.s+=f,o.c+=h,l.z+=f,l.m+=f}function ac(o){for(var l,f=0,h=0,v=o.children,g=v.length;--g>=0;)l=v[g],l.z+=f,l.m+=f,f+=l.s+(h+=l.c)}function Ko(o,l,f){return o.a.parent===l.parent?o.a:f}function ar(o){return 1+X.max(o,function(l){return l.y})}function Vf(o){return o.reduce(function(l,f){return l+f.x},0)/o.length}function Yf(o){var l=o.children;return l&&l.length?Yf(l[0]):o}function _u(o){var l,f=o.children;return f&&(l=f.length)?_u(f[l-1]):o}function Qe(o){return{x:o.x,y:o.y,dx:o.dx,dy:o.dy}}function ke(o,l){var f=o.x+l[3],h=o.y+l[0],v=o.dx-l[1]-l[3],g=o.dy-l[0]-l[2];return 0>v&&(f+=v/2,v=0),0>g&&(h+=g/2,g=0),{x:f,y:h,dx:v,dy:g}}function be(o){var l=o[0],f=o[o.length-1];return f>l?[l,f]:[f,l]}function P(o){return o.rangeExtent?o.rangeExtent():be(o.range())}function Q(o,l,f,h){var v=f(o[0],o[1]),g=h(l[0],l[1]);return function(T){return g(v(T))}}function me(o,l){var f,h=0,v=o.length-1,g=o[h],T=o[v];return g>T&&(f=h,h=v,v=f,f=g,g=T,T=f),o[h]=l.floor(g),o[v]=l.ceil(T),o}function tt(o){return o?{floor:function(l){return Math.floor(l/o)*o},ceil:function(l){return Math.ceil(l/o)*o}}:mb}function pt(o,l,f,h){var v=[],g=[],T=0,E=Math.min(o.length,l.length)-1;for(o[E]<o[0]&&(o=o.slice().reverse(),l=l.slice().reverse());++T<=E;)v.push(f(o[T-1],o[T])),g.push(h(l[T-1],l[T]));return function(C){var D=X.bisect(o,C,1,E)-1;return g[D](v[D](C))}}function Pt(o,l,f,h){function v(){var C=Math.min(o.length,l.length)>2?pt:Q,D=h?Hs:Hr;return T=C(o,l,D,f),E=C(l,o,D,di),g}function g(C){return T(C)}var T,E;return g.invert=function(C){return E(C)},g.domain=function(C){return arguments.length?(o=C.map(Number),v()):o},g.range=function(C){return arguments.length?(l=C,v()):l},g.rangeRound=function(C){return g.range(C).interpolate(zt)},g.clamp=function(C){return arguments.length?(h=C,v()):h},g.interpolate=function(C){return arguments.length?(f=C,v()):f},g.ticks=function(C){return Pr(o,C)},g.tickFormat=function(C,D){return Xo(o,C,D)},g.nice=function(C){return hr(o,C),v()},g.copy=function(){return Pt(o,l,f,h)},v()}function Mn(o,l){return X.rebind(o,l,"range","rangeRound","interpolate","clamp")}function hr(o,l){return me(o,tt(sr(o,l)[2])),me(o,tt(sr(o,l)[2])),o}function sr(o,l){l==null&&(l=10);var f=be(o),h=f[1]-f[0],v=Math.pow(10,Math.floor(Math.log(h/l)/Math.LN10)),g=l/h*v;return .15>=g?v*=10:.35>=g?v*=5:.75>=g&&(v*=2),f[0]=Math.ceil(f[0]/v)*v,f[1]=Math.floor(f[1]/v)*v+.5*v,f[2]=v,f}function Pr(o,l){return X.range.apply(X,sr(o,l))}function Xo(o,l,f){var h=sr(o,l);if(f){var v=Kh.exec(f);if(v.shift(),v[8]==="s"){var g=X.formatPrefix(Math.max(Sn(h[0]),Sn(h[1])));return v[7]||(v[7]="."+ko(g.scale(h[2]))),v[8]="f",f=X.format(v.join("")),function(T){return f(g.scale(T))+g.symbol}}v[7]||(v[7]="."+zl(v[8],h)),f=v.join("")}else f=",."+ko(h[2])+"f";return X.format(f)}function ko(o){return-Math.floor(Math.log(o)/Math.LN10+.01)}function zl(o,l){var f=ko(l[2]);return o in hf?Math.abs(f-ko(Math.max(Sn(l[0]),Sn(l[1]))))+ +(o!=="e"):f-2*(o==="%")}function sc(o,l,f,h){function v(E){return(f?Math.log(0>E?0:E):-Math.log(E>0?0:-E))/Math.log(l)}function g(E){return f?Math.pow(l,E):-Math.pow(l,-E)}function T(E){return o(v(E))}return T.invert=function(E){return g(o.invert(E))},T.domain=function(E){return arguments.length?(f=E[0]>=0,o.domain((h=E.map(Number)).map(v)),T):h},T.base=function(E){return arguments.length?(l=+E,o.domain(h.map(v)),T):l},T.nice=function(){var E=me(h.map(v),f?Math:lg);return o.domain(E),h=E.map(g),T},T.ticks=function(){var E=be(h),C=[],D=E[0],I=E[1],q=Math.floor(v(D)),F=Math.ceil(v(I)),Y=l%1?2:l;if(isFinite(F-q)){if(f){for(;F>q;q++)for(var de=1;Y>de;de++)C.push(g(q)*de);C.push(g(q))}else for(C.push(g(q));q++<F;)for(var de=Y-1;de>0;de--)C.push(g(q)*de);for(q=0;C[q]<D;q++);for(F=C.length;C[F-1]>I;F--);C=C.slice(q,F)}return C},T.tickFormat=function(E,C){if(!arguments.length)return ip;arguments.length<2?C=ip:typeof C!="function"&&(C=X.format(C));var D=Math.max(1,l*E/T.ticks().length);return function(I){var q=I/g(Math.round(v(I)));return l-.5>q*l&&(q*=l),D>=q?C(I):""}},T.copy=function(){return sc(o.copy(),l,f,h)},Mn(T,o)}function $f(o,l,f){function h(T){return o(v(T))}var v=xa(l),g=xa(1/l);return h.invert=function(T){return g(o.invert(T))},h.domain=function(T){return arguments.length?(o.domain((f=T.map(Number)).map(v)),h):f},h.ticks=function(T){return Pr(f,T)},h.tickFormat=function(T,E){return Xo(f,T,E)},h.nice=function(T){return h.domain(hr(f,T))},h.exponent=function(T){return arguments.length?(v=xa(l=T),g=xa(1/l),o.domain(f.map(v)),h):l},h.copy=function(){return $f(o.copy(),l,f)},Mn(h,o)}function xa(o){return function(l){return 0>l?-Math.pow(-l,o):Math.pow(l,o)}}function jm(o,l){function f(E){return g[((v.get(E)||(l.t==="range"?v.set(E,o.push(E)):NaN))-1)%g.length]}function h(E,C){return X.range(o.length).map(function(D){return E+C*D})}var v,g,T;return f.domain=function(E){if(!arguments.length)return o;o=[],v=new y;for(var C,D=-1,I=E.length;++D<I;)v.has(C=E[D])||v.set(C,o.push(C));return f[l.t].apply(f,l.a)},f.range=function(E){return arguments.length?(g=E,T=0,l={t:"range",a:arguments},f):g},f.rangePoints=function(E,C){arguments.length<2&&(C=0);var D=E[0],I=E[1],q=o.length<2?(D=(D+I)/2,0):(I-D)/(o.length-1+C);return g=h(D+q*C/2,q),T=0,l={t:"rangePoints",a:arguments},f},f.rangeRoundPoints=function(E,C){arguments.length<2&&(C=0);var D=E[0],I=E[1],q=o.length<2?(D=I=Math.round((D+I)/2),0):(I-D)/(o.length-1+C)|0;return g=h(D+Math.round(q*C/2+(I-D-(o.length-1+C)*q)/2),q),T=0,l={t:"rangeRoundPoints",a:arguments},f},f.rangeBands=function(E,C,D){arguments.length<2&&(C=0),arguments.length<3&&(D=C);var I=E[1]<E[0],q=E[I-0],F=E[1-I],Y=(F-q)/(o.length-C+2*D);return g=h(q+Y*D,Y),I&&g.reverse(),T=Y*(1-C),l={t:"rangeBands",a:arguments},f},f.rangeRoundBands=function(E,C,D){arguments.length<2&&(C=0),arguments.length<3&&(D=C);var I=E[1]<E[0],q=E[I-0],F=E[1-I],Y=Math.floor((F-q)/(o.length-C+2*D));return g=h(q+Math.round((F-q-(o.length-C)*Y)/2),Y),I&&g.reverse(),T=Math.round(Y*(1-C)),l={t:"rangeRoundBands",a:arguments},f},f.rangeBand=function(){return T},f.rangeExtent=function(){return be(l.a[0])},f.copy=function(){return jm(o,l)},f.domain(o)}function Um(o,l){function f(){var g=0,T=l.length;for(v=[];++g<T;)v[g-1]=X.quantile(o,g/T);return h}function h(g){return isNaN(g=+g)?void 0:l[X.bisect(v,g)]}var v;return h.domain=function(g){return arguments.length?(o=g.map(r).filter(i).sort(t),f()):o},h.range=function(g){return arguments.length?(l=g,f()):l},h.quantiles=function(){return v},h.invertExtent=function(g){return g=l.indexOf(g),0>g?[NaN,NaN]:[g>0?v[g-1]:o[0],g<v.length?v[g]:o[o.length-1]]},h.copy=function(){return Um(o,l)},f()}function Fa(o,l,f){function h(E){return f[Math.max(0,Math.min(T,Math.floor(g*(E-o))))]}function v(){return g=f.length/(l-o),T=f.length-1,h}var g,T;return h.domain=function(E){return arguments.length?(o=+E[0],l=+E[E.length-1],v()):[o,l]},h.range=function(E){return arguments.length?(f=E,v()):f},h.invertExtent=function(E){return E=f.indexOf(E),E=0>E?NaN:E/g+o,[E,E+1/g]},h.copy=function(){return Fa(o,l,f)},v()}function Vm(o,l){function f(h){return h>=h?l[X.bisect(o,h)]:void 0}return f.domain=function(h){return arguments.length?(o=h,f):o},f.range=function(h){return arguments.length?(l=h,f):l},f.invertExtent=function(h){return h=l.indexOf(h),[o[h-1],o[h]]},f.copy=function(){return Vm(o,l)},f}function Ym(o){function l(f){return+f}return l.invert=l,l.domain=l.range=function(f){return arguments.length?(o=f.map(l),l):o},l.ticks=function(f){return Pr(o,f)},l.tickFormat=function(f,h){return Xo(o,f,h)},l.copy=function(){return Ym(o)},l}function eb(){return 0}function tb(o){return o.innerRadius}function nb(o){return o.outerRadius}function Ah(o){return o.startAngle}function Dh(o){return o.endAngle}function rb(o){return o&&o.padAngle}function Gf(o,l,f,h){return(o-f)*l-(l-h)*o>0?0:1}function lc(o,l,f,h,v){var g=o[0]-l[0],T=o[1]-l[1],E=(v?h:-h)/Math.sqrt(g*g+T*T),C=E*T,D=-E*g,I=o[0]+C,q=o[1]+D,F=l[0]+C,Y=l[1]+D,de=(I+F)/2,J=(q+Y)/2,fe=F-I,ce=Y-q,he=fe*fe+ce*ce,se=f-h,pe=I*Y-F*q,we=(0>ce?-1:1)*Math.sqrt(Math.max(0,se*se*he-pe*pe)),Pe=(pe*ce-fe*we)/he,xe=(-pe*fe-ce*we)/he,ze=(pe*ce+fe*we)/he,vt=(-pe*fe+ce*we)/he,Tt=Pe-de,Rt=xe-J,Ot=ze-de,Ft=vt-J;return Tt*Tt+Rt*Rt>Ot*Ot+Ft*Ft&&(Pe=ze,xe=vt),[[Pe-C,xe-D],[Pe*f/se,xe*f/se]]}function uc(o){function l(C){function D(){q.push("M",g(o(F),E))}for(var I,q=[],F=[],Y=-1,de=C.length,J=A(f),fe=A(h);++Y<de;)v.call(this,I=C[Y],Y)?F.push([+J.call(this,I,Y),+fe.call(this,I,Y)]):F.length&&(D(),F=[]);return F.length&&D(),q.length?q.join(""):null}var f=pa,h=Di,v=So,g=Qo,T=g.key,E=.7;return l.x=function(C){return arguments.length?(f=C,l):f},l.y=function(C){return arguments.length?(h=C,l):h},l.defined=function(C){return arguments.length?(v=C,l):v},l.interpolate=function(C){return arguments.length?(T=typeof C=="function"?g=C:(g=vd.get(C)||Qo).key,l):T},l.tension=function(C){return arguments.length?(E=C,l):E},l}function Qo(o){return o.length>1?o.join("L"):o+"Z"}function $m(o){return o.join("L")+"Z"}function Gm(o){for(var l=0,f=o.length,h=o[0],v=[h[0],",",h[1]];++l<f;)v.push("H",(h[0]+(h=o[l])[0])/2,"V",h[1]);return f>1&&v.push("H",h[0]),v.join("")}function kh(o){for(var l=0,f=o.length,h=o[0],v=[h[0],",",h[1]];++l<f;)v.push("V",(h=o[l])[1],"H",h[0]);return v.join("")}function ms(o){for(var l=0,f=o.length,h=o[0],v=[h[0],",",h[1]];++l<f;)v.push("H",(h=o[l])[0],"V",h[1]);return v.join("")}function Oh(o,l){return o.length<4?Qo(o):o[1]+Kf(o.slice(1,-1),Xf(o,l))}function wu(o,l){return o.length<3?$m(o):o[0]+Kf((o.push(o[0]),o),Xf([o[o.length-2]].concat(o,[o[1]]),l))}function Ba(o,l){return o.length<3?Qo(o):o[0]+Kf(o,Xf(o,l))}function Kf(o,l){if(l.length<1||o.length!=l.length&&o.length!=l.length+2)return Qo(o);var f=o.length!=l.length,h="",v=o[0],g=o[1],T=l[0],E=T,C=1;if(f&&(h+="Q"+(g[0]-2*T[0]/3)+","+(g[1]-2*T[1]/3)+","+g[0]+","+g[1],v=o[1],C=2),l.length>1){E=l[1],g=o[C],C++,h+="C"+(v[0]+T[0])+","+(v[1]+T[1])+","+(g[0]-E[0])+","+(g[1]-E[1])+","+g[0]+","+g[1];for(var D=2;D<l.length;D++,C++)g=o[C],E=l[D],h+="S"+(g[0]-E[0])+","+(g[1]-E[1])+","+g[0]+","+g[1]}if(f){var I=o[C];h+="Q"+(g[0]+2*E[0]/3)+","+(g[1]+2*E[1]/3)+","+I[0]+","+I[1]}return h}function Xf(o,l){for(var f,h=[],v=(1-l)/2,g=o[0],T=o[1],E=1,C=o.length;++E<C;)f=g,g=T,T=o[E],h.push([v*(T[0]-f[0]),v*(T[1]-f[1])]);return h}function Ih(o){if(o.length<3)return Qo(o);var l=1,f=o.length,h=o[0],v=h[0],g=h[1],T=[v,v,v,(h=o[1])[0]],E=[g,g,g,h[1]],C=[v,",",g,"L",Ha(wl,T),",",Ha(wl,E)];for(o.push(o[f-1]);++l<=f;)h=o[l],T.shift(),T.push(h[0]),E.shift(),E.push(h[1]),cc(C,T,E);return o.pop(),C.push("L",h),C.join("")}function Xc(o){if(o.length<4)return Qo(o);for(var l,f=[],h=-1,v=o.length,g=[0],T=[0];++h<3;)l=o[h],g.push(l[0]),T.push(l[1]);for(f.push(Ha(wl,g)+","+Ha(wl,T)),--h;++h<v;)l=o[h],g.shift(),g.push(l[0]),T.shift(),T.push(l[1]),cc(f,g,T);return f.join("")}function Wl(o){for(var l,f,h=-1,v=o.length,g=v+4,T=[],E=[];++h<4;)f=o[h%v],T.push(f[0]),E.push(f[1]);for(l=[Ha(wl,T),",",Ha(wl,E)],--h;++h<g;)f=o[h%v],T.shift(),T.push(f[0]),E.shift(),E.push(f[1]),cc(l,T,E);return l.join("")}function Km(o,l){var f=o.length-1;if(f)for(var h,v,g=o[0][0],T=o[0][1],E=o[f][0]-g,C=o[f][1]-T,D=-1;++D<=f;)h=o[D],v=D/f,h[0]=l*h[0]+(1-l)*(g+v*E),h[1]=l*h[1]+(1-l)*(T+v*C);return Ih(o)}function Ha(o,l){return o[0]*l[0]+o[1]*l[1]+o[2]*l[2]+o[3]*l[3]}function cc(o,l,f){o.push("C",Ha(ug,l),",",Ha(ug,f),",",Ha(yd,l),",",Ha(yd,f),",",Ha(wl,l),",",Ha(wl,f))}function Nh(o,l){return(l[1]-o[1])/(l[0]-o[0])}function Xm(o){for(var l=0,f=o.length-1,h=[],v=o[0],g=o[1],T=h[0]=Nh(v,g);++l<f;)h[l]=(T+(T=Nh(v=g,g=o[l+1])))/2;return h[l]=T,h}function yo(o){for(var l,f,h,v,g=[],T=Xm(o),E=-1,C=o.length-1;++E<C;)l=Nh(o[E],o[E+1]),Sn(l)<qt?T[E]=T[E+1]=0:(f=T[E]/l,h=T[E+1]/l,v=f*f+h*h,v>9&&(v=3*l/Math.sqrt(v),T[E]=v*f,T[E+1]=v*h));for(E=-1;++E<=C;)v=(o[Math.min(C,E+1)][0]-o[Math.max(0,E-1)][0])/(6*(1+T[E]*T[E])),g.push([v||0,T[E]*v||0]);return g}function Ph(o){return o.length<3?Qo(o):o[0]+Kf(o,yo(o))}function Lh(o){for(var l,f,h,v=-1,g=o.length;++v<g;)l=o[v],f=l[0],h=l[1]-Kr,l[0]=f*Math.cos(h),l[1]=f*Math.sin(h);return o}function gs(o){function l(F){function Y(){ce.push("M",E(o(se),q),I,D(o(he.reverse()),q),"Z")}for(var de,J,fe,ce=[],he=[],se=[],pe=-1,we=F.length,Pe=A(f),xe=A(v),ze=f===h?function(){return J}:A(h),vt=v===g?function(){return fe}:A(g);++pe<we;)T.call(this,de=F[pe],pe)?(he.push([J=+Pe.call(this,de,pe),fe=+xe.call(this,de,pe)]),se.push([+ze.call(this,de,pe),+vt.call(this,de,pe)])):he.length&&(Y(),he=[],se=[]);return he.length&&Y(),ce.length?ce.join(""):null}var f=pa,h=pa,v=0,g=Di,T=So,E=Qo,C=E.key,D=E,I="L",q=.7;return l.x=function(F){return arguments.length?(f=h=F,l):h},l.x0=function(F){return arguments.length?(f=F,l):f},l.x1=function(F){return arguments.length?(h=F,l):h},l.y=function(F){return arguments.length?(v=g=F,l):g},l.y0=function(F){return arguments.length?(v=F,l):v},l.y1=function(F){return arguments.length?(g=F,l):g},l.defined=function(F){return arguments.length?(T=F,l):T},l.interpolate=function(F){return arguments.length?(C=typeof F=="function"?E=F:(E=vd.get(F)||Qo).key,D=E.reverse||E,I=E.closed?"M":"L",l):C},l.tension=function(F){return arguments.length?(q=F,l):q},l}function Rh(o){return o.radius}function Qc(o){return[o.x,o.y]}function xu(o){return function(){var l=o.apply(this,arguments),f=l[0],h=l[1]-Kr;return[f*Math.cos(h),f*Math.sin(h)]}}function Qm(){return 64}function Fo(){return"circle"}function Qf(o){var l=Math.sqrt(o/Dn);return"M0,"+l+"A"+l+","+l+" 0 1,1 0,"+-l+"A"+l+","+l+" 0 1,1 0,"+l+"Z"}function Jm(o){return function(){var l,f,h;(l=this[o])&&(h=l[f=l.active])&&(h.timer.c=null,h.timer.t=NaN,--l.count?delete l[f]:delete this[o],l.active+=.5,h.event&&h.event.interrupt.call(this,this.__data__,h.index))}}function Jc(o,l,f){return ed(o,Lr),o.namespace=l,o.id=f,o}function Fh(o,l,f,h){var v=o.id,g=o.namespace;return fn(o,typeof f=="function"?function(T,E,C){T[g][v].tween.set(l,h(f.call(T,T.__data__,E,C)))}:(f=h(f),function(T){T[g][v].tween.set(l,f)}))}function Bh(o){return o==null&&(o=""),function(){this.textContent=o}}function Hh(o){return o==null?"__transition__":"__transition_"+o+"__"}function jl(o,l,f,h,v){function g(J){var fe=de.delay;return D.t=fe+C,J>=fe?T(J-fe):void(D.c=T)}function T(J){var fe=Y.active,ce=Y[fe];ce&&(ce.timer.c=null,ce.timer.t=NaN,--Y.count,delete Y[fe],ce.event&&ce.event.interrupt.call(o,o.__data__,ce.index));for(var he in Y)if(h>+he){var se=Y[he];se.timer.c=null,se.timer.t=NaN,--Y.count,delete Y[he]}D.c=E,qe(function(){return D.c&&E(J||1)&&(D.c=null,D.t=NaN),1},0,C),Y.active=h,de.event&&de.event.start.call(o,o.__data__,l),F=[],de.tween.forEach(function(pe,we){(we=we.call(o,o.__data__,l))&&F.push(we)}),q=de.ease,I=de.duration}function E(J){for(var fe=J/I,ce=q(fe),he=F.length;he>0;)F[--he].call(o,ce);return fe>=1?(de.event&&de.event.end.call(o,o.__data__,l),--Y.count?delete Y[h]:delete o[f],1):void 0}var C,D,I,q,F,Y=o[f]||(o[f]={active:0,count:0}),de=Y[h];de||(C=v.time,D=qe(g,0,C),de=Y[h]={tween:new y,time:C,timer:D,delay:v.delay,duration:v.duration,ease:v.ease,index:l},v=null,++Y.count)}function Zm(o,l,f){o.attr("transform",function(h){var v=l(h);return"translate("+(isFinite(v)?v:f(h))+",0)"})}function ib(o,l,f){o.attr("transform",function(h){var v=l(h);return"translate(0,"+(isFinite(v)?v:f(h))+")"})}function qh(o){return o.toISOString()}function Eu(o,l,f){function h(g){return o(g)}function v(g,T){var E=g[1]-g[0],C=E/T,D=X.bisect(bd,C);return D==bd.length?[l.year,sr(g.map(function(I){return I/31536e6}),T)[2]]:D?l[C/bd[D-1]<bd[D]/C?D-1:D]:[xb,sr(g,T)[2]]}return h.invert=function(g){return Cu(o.invert(g))},h.domain=function(g){return arguments.length?(o.domain(g),h):o.domain().map(Cu)},h.nice=function(g,T){function E(q){return!isNaN(q)&&!g.range(q,Cu(+q+1),T).length}var C=h.domain(),D=be(C),I=g==null?v(D,10):typeof g=="number"&&v(D,g);return I&&(g=I[0],T=I[1]),h.domain(me(C,T>1?{floor:function(q){for(;E(q=g.floor(q));)q=Cu(q-1);return q},ceil:function(q){for(;E(q=g.ceil(q));)q=Cu(+q+1);return q}}:g))},h.ticks=function(g,T){var E=be(h.domain()),C=g==null?v(E,10):typeof g=="number"?v(E,g):!g.range&&[{range:g},T];return C&&(g=C[0],T=C[1]),g.range(E[0],Cu(+E[1]+1),1>T?1:T)},h.tickFormat=function(){return f},h.copy=function(){return Eu(o.copy(),l,f)},Mn(h,o)}function Cu(o){return new Date(o)}function ob(o){return JSON.parse(o.responseText)}function zh(o){var l=Oo.createRange();return l.selectNode(Oo.body),l.createContextualFragment(o.responseText)}var X={version:"3.5.17"},eg=[].slice,Ws=function(o){return eg.call(o)},Oo=this.document;if(Oo)try{Ws(Oo.documentElement.childNodes)[0].nodeType}catch{Ws=function(l){for(var f=l.length,h=new Array(f);f--;)h[f]=l[f];return h}}if(Date.now||(Date.now=function(){return+new Date}),Oo)try{Oo.createElement("DIV").style.setProperty("opacity",0,"")}catch{var Zc=this.Element.prototype,Wh=Zc.setAttribute,ab=Zc.setAttributeNS,Jf=this.CSSStyleDeclaration.prototype,tg=Jf.setProperty;Zc.setAttribute=function(l,f){Wh.call(this,l,f+"")},Zc.setAttributeNS=function(l,f,h){ab.call(this,l,f,h+"")},Jf.setProperty=function(l,f,h){tg.call(this,l,f+"",h)}}X.ascending=t,X.descending=function(o,l){return o>l?-1:l>o?1:l>=o?0:NaN},X.min=function(o,l){var f,h,v=-1,g=o.length;if(arguments.length===1){for(;++v<g;)if((h=o[v])!=null&&h>=h){f=h;break}for(;++v<g;)(h=o[v])!=null&&f>h&&(f=h)}else{for(;++v<g;)if((h=l.call(o,o[v],v))!=null&&h>=h){f=h;break}for(;++v<g;)(h=l.call(o,o[v],v))!=null&&f>h&&(f=h)}return f},X.max=function(o,l){var f,h,v=-1,g=o.length;if(arguments.length===1){for(;++v<g;)if((h=o[v])!=null&&h>=h){f=h;break}for(;++v<g;)(h=o[v])!=null&&h>f&&(f=h)}else{for(;++v<g;)if((h=l.call(o,o[v],v))!=null&&h>=h){f=h;break}for(;++v<g;)(h=l.call(o,o[v],v))!=null&&h>f&&(f=h)}return f},X.extent=function(o,l){var f,h,v,g=-1,T=o.length;if(arguments.length===1){for(;++g<T;)if((h=o[g])!=null&&h>=h){f=v=h;break}for(;++g<T;)(h=o[g])!=null&&(f>h&&(f=h),h>v&&(v=h))}else{for(;++g<T;)if((h=l.call(o,o[g],g))!=null&&h>=h){f=v=h;break}for(;++g<T;)(h=l.call(o,o[g],g))!=null&&(f>h&&(f=h),h>v&&(v=h))}return[f,v]},X.sum=function(o,l){var f,h=0,v=o.length,g=-1;if(arguments.length===1)for(;++g<v;)i(f=+o[g])&&(h+=f);else for(;++g<v;)i(f=+l.call(o,o[g],g))&&(h+=f);return h},X.mean=function(o,l){var f,h=0,v=o.length,g=-1,T=v;if(arguments.length===1)for(;++g<v;)i(f=r(o[g]))?h+=f:--T;else for(;++g<v;)i(f=r(l.call(o,o[g],g)))?h+=f:--T;return T?h/T:void 0},X.quantile=function(o,l){var f=(o.length-1)*l+1,h=Math.floor(f),v=+o[h-1],g=f-h;return g?v+g*(o[h]-v):v},X.median=function(o,l){var f,h=[],v=o.length,g=-1;if(arguments.length===1)for(;++g<v;)i(f=r(o[g]))&&h.push(f);else for(;++g<v;)i(f=r(l.call(o,o[g],g)))&&h.push(f);return h.length?X.quantile(h.sort(t),.5):void 0},X.variance=function(o,l){var f,h,v=o.length,g=0,T=0,E=-1,C=0;if(arguments.length===1)for(;++E<v;)i(f=r(o[E]))&&(h=f-g,g+=h/++C,T+=h*(f-g));else for(;++E<v;)i(f=r(l.call(o,o[E],E)))&&(h=f-g,g+=h/++C,T+=h*(f-g));return C>1?T/(C-1):void 0},X.deviation=function(){var o=X.variance.apply(this,arguments);return o&&Math.sqrt(o)};var jh=a(t);X.bisectLeft=jh.left,X.bisect=X.bisectRight=jh.right,X.bisector=function(o){return a(o.length===1?function(l,f){return t(o(l),f)}:o)},X.shuffle=function(o,l,f){(g=arguments.length)<3&&(f=o.length,2>g&&(l=0));for(var h,v,g=f-l;g;)v=Math.random()*g--|0,h=o[g+l],o[g+l]=o[v+l],o[v+l]=h;return o},X.permute=function(o,l){for(var f=l.length,h=new Array(f);f--;)h[f]=o[l[f]];return h},X.pairs=function(o){for(var l,f=0,h=o.length-1,v=o[0],g=new Array(0>h?0:h);h>f;)g[f]=[l=v,v=o[++f]];return g},X.transpose=function(o){if(!(v=o.length))return[];for(var l=-1,f=X.min(o,u),h=new Array(f);++l<f;)for(var v,g=-1,T=h[l]=new Array(v);++g<v;)T[g]=o[g][l];return h},X.zip=function(){return X.transpose(arguments)},X.keys=function(o){var l=[];for(var f in o)l.push(f);return l},X.values=function(o){var l=[];for(var f in o)l.push(o[f]);return l},X.entries=function(o){var l=[];for(var f in o)l.push({key:f,value:o[f]});return l},X.merge=function(o){for(var l,f,h,v=o.length,g=-1,T=0;++g<v;)T+=o[g].length;for(f=new Array(T);--v>=0;)for(h=o[v],l=h.length;--l>=0;)f[--T]=h[l];return f};var Sn=Math.abs;X.range=function(o,l,f){if(arguments.length<3&&(f=1,arguments.length<2&&(l=o,o=0)),(l-o)/f===1/0)throw new Error("infinite range");var h,v=[],g=d(Sn(f)),T=-1;if(o*=g,l*=g,f*=g,0>f)for(;(h=o+f*++T)>l;)v.push(h/g);else for(;(h=o+f*++T)<l;)v.push(h/g);return v},X.map=function(o,l){var f=new y;if(o instanceof y)o.forEach(function(E,C){f.set(E,C)});else if(Array.isArray(o)){var h,v=-1,g=o.length;if(arguments.length===1)for(;++v<g;)f.set(v,o[v]);else for(;++v<g;)f.set(l.call(o,h=o[v],v),h)}else for(var T in o)f.set(T,o[T]);return f};var Zf="__proto__",Uh="\0";m(y,{has:L,get:function(o){return this._[x(o)]},set:function(o,l){return this._[x(o)]=l},remove:H,keys:V,values:function(){var o=[];for(var l in this._)o.push(this._[l]);return o},entries:function(){var o=[];for(var l in this._)o.push({key:S(l),value:this._[l]});return o},size:U,empty:Z,forEach:function(o){for(var l in this._)o.call(this,S(l),this._[l])}}),X.nest=function(){function o(E,C,D){if(D>=g.length)return h?h.call(v,C):f?C.sort(f):C;for(var I,q,F,Y,de=-1,J=C.length,fe=g[D++],ce=new y;++de<J;)(Y=ce.get(I=fe(q=C[de])))?Y.push(q):ce.set(I,[q]);return E?(q=E(),F=function(he,se){q.set(he,o(E,se,D))}):(q={},F=function(he,se){q[he]=o(E,se,D)}),ce.forEach(F),q}function l(E,C){if(C>=g.length)return E;var D=[],I=T[C++];return E.forEach(function(q,F){D.push({key:q,values:l(F,C)})}),I?D.sort(function(q,F){return I(q.key,F.key)}):D}var f,h,v={},g=[],T=[];return v.map=function(E,C){return o(C,E,0)},v.entries=function(E){return l(o(X.map,E,0),0)},v.key=function(E){return g.push(E),v},v.sortKeys=function(E){return T[g.length-1]=E,v},v.sortValues=function(E){return f=E,v},v.rollup=function(E){return h=E,v},v},X.set=function(o){var l=new ae;if(o)for(var f=0,h=o.length;h>f;++f)l.add(o[f]);return l},m(ae,{has:L,add:function(o){return this._[x(o+="")]=!0,o},remove:H,values:V,size:U,empty:Z,forEach:function(o){for(var l in this._)o.call(this,S(l))}}),X.behavior={},X.rebind=function(o,l){for(var f,h=1,v=arguments.length;++h<v;)o[f=arguments[h]]=Ae(o,l,l[f]);return o};var Vh=["webkit","ms","moz","Moz","o","O"];X.dispatch=function(){for(var o=new te,l=-1,f=arguments.length;++l<f;)o[arguments[l]]=ye(o);return o},te.prototype.on=function(o,l){var f=o.indexOf("."),h="";if(f>=0&&(h=o.slice(f+1),o=o.slice(0,f)),o)return arguments.length<2?this[o].on(h):this[o].on(h,l);if(arguments.length===2){if(l==null)for(o in this)this.hasOwnProperty(o)&&this[o].on(h,null);return this}},X.event=null,X.requote=function(o){return o.replace(ng,"\\$&")};var ng=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,ed={}.__proto__?function(o,l){o.__proto__=l}:function(o,l){for(var f in l)o[f]=l[f]},td=function(o,l){return l.querySelector(o)},Yh=function(o,l){return l.querySelectorAll(o)},ef=function(o,l){var f=o.matches||o[ve(o,"matchesSelector")];return(ef=function(h,v){return f.call(h,v)})(o,l)};typeof Sizzle=="function"&&(td=function(o,l){return Sizzle(o,l)[0]||null},Yh=Sizzle,ef=Sizzle.matchesSelector),X.selection=function(){return X.select(Oo.documentElement)};var cr=X.selection.prototype=[];cr.select=function(o){var l,f,h,v,g=[];o=Dt(o);for(var T=-1,E=this.length;++T<E;){g.push(l=[]),l.parentNode=(h=this[T]).parentNode;for(var C=-1,D=h.length;++C<D;)(v=h[C])?(l.push(f=o.call(v,v.__data__,C,T)),f&&"__data__"in v&&(f.__data__=v.__data__)):l.push(null)}return ct(g)},cr.selectAll=function(o){var l,f,h=[];o=Mt(o);for(var v=-1,g=this.length;++v<g;)for(var T=this[v],E=-1,C=T.length;++E<C;)(f=T[E])&&(h.push(l=Ws(o.call(f,f.__data__,E,v))),l.parentNode=f);return ct(h)};var tf="http://www.w3.org/1999/xhtml",$h={svg:"http://www.w3.org/2000/svg",xhtml:tf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};X.ns={prefix:$h,qualify:function(o){var l=o.indexOf(":"),f=o;return l>=0&&(f=o.slice(0,l))!=="xmlns"&&(o=o.slice(l+1)),$h.hasOwnProperty(f)?{space:$h[f],local:o}:o}},cr.attr=function(o,l){if(arguments.length<2){if(typeof o=="string"){var f=this.node();return o=X.ns.qualify(o),o.local?f.getAttributeNS(o.space,o.local):f.getAttribute(o)}for(l in o)this.each(en(l,o[l]));return this}return this.each(en(o,l))},cr.classed=function(o,l){if(arguments.length<2){if(typeof o=="string"){var f=this.node(),h=(o=tn(o)).length,v=-1;if(l=f.classList){for(;++v<h;)if(!l.contains(o[v]))return!1}else for(l=f.getAttribute("class");++v<h;)if(!At(o[v]).test(l))return!1;return!0}for(l in o)this.each(In(l,o[l]));return this}return this.each(In(o,l))},cr.style=function(o,l,f){var h=arguments.length;if(3>h){if(typeof o!="string"){2>h&&(l="");for(f in o)this.each(Vn(f,o[f],l));return this}if(2>h){var v=this.node();return e(v).getComputedStyle(v,null).getPropertyValue(o)}f=""}return this.each(Vn(o,l,f))},cr.property=function(o,l){if(arguments.length<2){if(typeof o=="string")return this.node()[o];for(l in o)this.each(rr(l,o[l]));return this}return this.each(rr(o,l))},cr.text=function(o){return arguments.length?this.each(typeof o=="function"?function(){var l=o.apply(this,arguments);this.textContent=l??""}:o==null?function(){this.textContent=""}:function(){this.textContent=o}):this.node().textContent},cr.html=function(o){return arguments.length?this.each(typeof o=="function"?function(){var l=o.apply(this,arguments);this.innerHTML=l??""}:o==null?function(){this.innerHTML=""}:function(){this.innerHTML=o}):this.node().innerHTML},cr.append=function(o){return o=ur(o),this.select(function(){return this.appendChild(o.apply(this,arguments))})},cr.insert=function(o,l){return o=ur(o),l=Dt(l),this.select(function(){return this.insertBefore(o.apply(this,arguments),l.apply(this,arguments)||null)})},cr.remove=function(){return this.each(yt)},cr.data=function(o,l){function f(I,q){var F,Y,de,J=I.length,fe=q.length,ce=Math.min(J,fe),he=new Array(fe),se=new Array(fe),pe=new Array(J);if(l){var we,Pe=new y,xe=new Array(J);for(F=-1;++F<J;)(Y=I[F])&&(Pe.has(we=l.call(Y,Y.__data__,F))?pe[F]=Y:Pe.set(we,Y),xe[F]=we);for(F=-1;++F<fe;)(Y=Pe.get(we=l.call(q,de=q[F],F)))?Y!==!0&&(he[F]=Y,Y.__data__=de):se[F]=Yn(de),Pe.set(we,!0);for(F=-1;++F<J;)F in xe&&Pe.get(xe[F])!==!0&&(pe[F]=I[F])}else{for(F=-1;++F<ce;)Y=I[F],de=q[F],Y?(Y.__data__=de,he[F]=Y):se[F]=Yn(de);for(;fe>F;++F)se[F]=Yn(q[F]);for(;J>F;++F)pe[F]=I[F]}se.update=he,se.parentNode=he.parentNode=pe.parentNode=I.parentNode,E.push(se),C.push(he),D.push(pe)}var h,v,g=-1,T=this.length;if(!arguments.length){for(o=new Array(T=(h=this[0]).length);++g<T;)(v=h[g])&&(o[g]=v.__data__);return o}var E=qn([]),C=ct([]),D=ct([]);if(typeof o=="function")for(;++g<T;)f(h=this[g],o.call(h,h.parentNode.__data__,g));else for(;++g<T;)f(h=this[g],o);return C.enter=function(){return E},C.exit=function(){return D},C},cr.datum=function(o){return arguments.length?this.property("__data__",o):this.property("__data__")},cr.filter=function(o){var l,f,h,v=[];typeof o!="function"&&(o=Vr(o));for(var g=0,T=this.length;T>g;g++){v.push(l=[]),l.parentNode=(f=this[g]).parentNode;for(var E=0,C=f.length;C>E;E++)(h=f[E])&&o.call(h,h.__data__,E,g)&&l.push(h)}return ct(v)},cr.order=function(){for(var o=-1,l=this.length;++o<l;)for(var f,h=this[o],v=h.length-1,g=h[v];--v>=0;)(f=h[v])&&(g&&g!==f.nextSibling&&g.parentNode.insertBefore(f,g),g=f);return this},cr.sort=function(o){o=yr.apply(this,arguments);for(var l=-1,f=this.length;++l<f;)this[l].sort(o);return this.order()},cr.each=function(o){return fn(this,function(l,f,h){o.call(l,l.__data__,f,h)})},cr.call=function(o){var l=Ws(arguments);return o.apply(l[0]=this,l),this},cr.empty=function(){return!this.node()},cr.node=function(){for(var o=0,l=this.length;l>o;o++)for(var f=this[o],h=0,v=f.length;v>h;h++){var g=f[h];if(g)return g}return null},cr.size=function(){var o=0;return fn(this,function(){++o}),o};var vs=[];X.selection.enter=qn,X.selection.enter.prototype=vs,vs.append=cr.append,vs.empty=cr.empty,vs.node=cr.node,vs.call=cr.call,vs.size=cr.size,vs.select=function(o){for(var l,f,h,v,g,T=[],E=-1,C=this.length;++E<C;){h=(v=this[E]).update,T.push(l=[]),l.parentNode=v.parentNode;for(var D=-1,I=v.length;++D<I;)(g=v[D])?(l.push(h[D]=f=o.call(v.parentNode,g.__data__,D,E)),f.__data__=g.__data__):l.push(null)}return ct(T)},vs.insert=function(o,l){return arguments.length<2&&(l=re(this)),cr.insert.call(this,o,l)},X.select=function(o){var l;return typeof o=="string"?(l=[td(o,Oo)],l.parentNode=Oo.documentElement):(l=[o],l.parentNode=n(o)),ct([l])},X.selectAll=function(o){var l;return typeof o=="string"?(l=Ws(Yh(o,Oo)),l.parentNode=Oo.documentElement):(l=Ws(o),l.parentNode=null),ct([l])},cr.on=function(o,l,f){var h=arguments.length;if(3>h){if(typeof o!="string"){2>h&&(l=!1);for(f in o)this.each(ge(f,o[f],l));return this}if(2>h)return(h=this.node()["__on"+o])&&h._;f=!1}return this.each(ge(o,l,f))};var Gn=X.map({mouseenter:"mouseover",mouseleave:"mouseout"});Oo&&Gn.forEach(function(o){"on"+o in Oo&&Gn.remove(o)});var Su,sb=0;X.mouse=function(o){return $e(o,De())};var Tu=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;X.touch=function(o,l,f){if(arguments.length<3&&(f=l,l=De().changedTouches),l){for(var h,v=0,g=l.length;g>v;++v)if((h=l[v]).identifier===f)return $e(o,h)}},X.behavior.drag=function(){function o(){this.on("mousedown.drag",v).on("touchstart.drag",g)}function l(T,E,C,D,I){return function(){function q(){var ze,vt,Tt=E(fe,se);Tt&&(ze=Tt[0]-xe[0],vt=Tt[1]-xe[1],he|=ze|vt,xe=Tt,ce({type:"drag",x:Tt[0]+Y[0],y:Tt[1]+Y[1],dx:ze,dy:vt}))}function F(){E(fe,se)&&(we.on(D+pe,null).on(I+pe,null),Pe(he),ce({type:"dragend"}))}var Y,de=this,J=X.event.target.correspondingElement||X.event.target,fe=de.parentNode,ce=f.of(de,arguments),he=0,se=T(),pe=".drag"+(se==null?"":"-"+se),we=X.select(C(J)).on(D+pe,q).on(I+pe,F),Pe=Be(J),xe=E(fe,se);h?(Y=h.apply(de,arguments),Y=[Y.x-xe[0],Y.y-xe[1]]):Y=[0,0],ce({type:"dragstart"})}}var f=lt(o,"drag","dragstart","dragend"),h=null,v=l(b,X.mouse,e,"mousemove","mouseup"),g=l(Ne,X.touch,le,"touchmove","touchend");return o.origin=function(T){return arguments.length?(h=T,o):h},X.rebind(o,f,"on")},X.touches=function(o,l){return arguments.length<2&&(l=De().touches),l?Ws(l).map(function(f){var h=$e(o,f);return h.identifier=f.identifier,h}):[]};var qt=1e-6,nd=qt*qt,Dn=Math.PI,hi=2*Dn,lb=hi-qt,Kr=Dn/2,_n=Dn/180,jr=180/Dn,fc=Math.SQRT2,Bo=2,dl=4;X.interpolateZoom=function(o,l){var f,h,v=o[0],g=o[1],T=o[2],E=l[0],C=l[1],D=l[2],I=E-v,q=C-g,F=I*I+q*q;if(nd>F)h=Math.log(D/T)/fc,f=function(he){return[v+he*I,g+he*q,T*Math.exp(fc*he*h)]};else{var Y=Math.sqrt(F),de=(D*D-T*T+dl*F)/(2*T*Bo*Y),J=(D*D-T*T-dl*F)/(2*D*Bo*Y),fe=Math.log(Math.sqrt(de*de+1)-de),ce=Math.log(Math.sqrt(J*J+1)-J);h=(ce-fe)/fc,f=function(he){var se=he*h,pe=Xt(fe),we=T/(Bo*Y)*(pe*Qt(fc*se+fe)-st(fe));return[v+we*I,g+we*q,T*pe/Xt(fc*se+fe)]}}return f.duration=1e3*h,f},X.behavior.zoom=function(){function o(Je){Je.on(Ot,I).on(rd+".zoom",F).on("dblclick.zoom",Y).on(it,q)}function l(Je){return[(Je[0]-xe.x)/xe.k,(Je[1]-xe.y)/xe.k]}function f(Je){return[Je[0]*xe.k+xe.x,Je[1]*xe.k+xe.y]}function h(Je){xe.k=Math.max(vt[0],Math.min(vt[1],Je))}function v(Je,wt){wt=f(wt),xe.x+=Je[0]-wt[0],xe.y+=Je[1]-wt[1]}function g(Je,wt,Kt,vn){Je.__chart__={x:xe.x,y:xe.y,k:xe.k},h(Math.pow(2,vn)),v(J=wt,Kt),Je=X.select(Je),Tt>0&&(Je=Je.transition().duration(Tt)),Je.call(o.event)}function T(){pe&&pe.domain(se.range().map(function(Je){return(Je-xe.x)/xe.k}).map(se.invert)),Pe&&Pe.domain(we.range().map(function(Je){return(Je-xe.y)/xe.k}).map(we.invert))}function E(Je){Rt++||Je({type:"zoomstart"})}function C(Je){T(),Je({type:"zoom",scale:xe.k,translate:[xe.x,xe.y]})}function D(Je){--Rt||(Je({type:"zoomend"}),J=null)}function I(){function Je(){On=1,v(X.mouse(Kt),xr),C(vn)}function wt(){Wn.on(Ft,null).on(nt,null),Pi(On),D(vn)}var Kt=this,vn=It.of(Kt,arguments),On=0,Wn=X.select(e(Kt)).on(Ft,Je).on(nt,wt),xr=l(X.mouse(Kt)),Pi=Be(Kt);mf.call(Kt),E(vn)}function q(){function Je(){var Io=X.touches(Wn);return On=xe.k,Io.forEach(function(_o){_o.identifier in Pi&&(Pi[_o.identifier]=l(_o))}),Io}function wt(){var Io=X.event.target;X.select(Io).on(Li,Kt).on(qo,vn),Es.push(Io);for(var _o=X.event.changedTouches,Ca=0,xl=_o.length;xl>Ca;++Ca)Pi[_o[Ca].identifier]=null;var Jl=Je(),ku=Date.now();if(Jl.length===1){if(500>ku-he){var Ou=Jl[0];g(Wn,Ou,Pi[Ou.identifier],Math.floor(Math.log(xe.k)/Math.LN2)+1),Oe()}he=ku}else if(Jl.length>1){var Ou=Jl[0],Cs=Jl[1],_d=Ou[0]-Cs[0],mg=Ou[1]-Cs[1];ja=_d*_d+mg*mg}}function Kt(){var Io,_o,Ca,xl,Jl=X.touches(Wn);mf.call(Wn);for(var ku=0,Ou=Jl.length;Ou>ku;++ku,xl=null)if(Ca=Jl[ku],xl=Pi[Ca.identifier]){if(_o)break;Io=Ca,_o=xl}if(xl){var Cs=(Cs=Ca[0]-Io[0])*Cs+(Cs=Ca[1]-Io[1])*Cs,_d=ja&&Math.sqrt(Cs/ja);Io=[(Io[0]+Ca[0])/2,(Io[1]+Ca[1])/2],_o=[(_o[0]+xl[0])/2,(_o[1]+xl[1])/2],h(_d*On)}he=null,v(Io,_o),C(xr)}function vn(){if(X.event.touches.length){for(var Io=X.event.changedTouches,_o=0,Ca=Io.length;Ca>_o;++_o)delete Pi[Io[_o].identifier];for(var xl in Pi)return void Je()}X.selectAll(Es).on(Zo,null),Ql.on(Ot,I).on(it,q),Cb(),D(xr)}var On,Wn=this,xr=It.of(Wn,arguments),Pi={},ja=0,Zo=".zoom-"+X.event.changedTouches[0].identifier,Li="touchmove"+Zo,qo="touchend"+Zo,Es=[],Ql=X.select(Wn),Cb=Be(Wn);wt(),E(xr),Ql.on(Ot,null).on(it,wt)}function F(){var Je=It.of(this,arguments);ce?clearTimeout(ce):(mf.call(this),de=l(J=fe||X.mouse(this)),E(Je)),ce=setTimeout(function(){ce=null,D(Je)},50),Oe(),h(Math.pow(2,.002*dc())*xe.k),v(J,de),C(Je)}function Y(){var Je=X.mouse(this),wt=Math.log(xe.k)/Math.LN2;g(this,Je,l(Je),X.event.shiftKey?Math.ceil(wt)-1:Math.floor(wt)+1)}var de,J,fe,ce,he,se,pe,we,Pe,xe={x:0,y:0,k:1},ze=[960,500],vt=nf,Tt=250,Rt=0,Ot="mousedown.zoom",Ft="mousemove.zoom",nt="mouseup.zoom",it="touchstart.zoom",It=lt(o,"zoomstart","zoom","zoomend");return rd||(rd="onwheel"in Oo?(dc=function(){return-X.event.deltaY*(X.event.deltaMode?120:1)},"wheel"):"onmousewheel"in Oo?(dc=function(){return X.event.wheelDelta},"mousewheel"):(dc=function(){return-X.event.detail},"MozMousePixelScroll")),o.event=function(Je){Je.each(function(){var wt=It.of(this,arguments),Kt=xe;Kl?X.select(this).transition().each("start.zoom",function(){xe=this.__chart__||{x:0,y:0,k:1},E(wt)}).tween("zoom:zoom",function(){var vn=ze[0],On=ze[1],Wn=J?J[0]:vn/2,xr=J?J[1]:On/2,Pi=X.interpolateZoom([(Wn-xe.x)/xe.k,(xr-xe.y)/xe.k,vn/xe.k],[(Wn-Kt.x)/Kt.k,(xr-Kt.y)/Kt.k,vn/Kt.k]);return function(ja){var Zo=Pi(ja),Li=vn/Zo[2];this.__chart__=xe={x:Wn-Zo[0]*Li,y:xr-Zo[1]*Li,k:Li},C(wt)}}).each("interrupt.zoom",function(){D(wt)}).each("end.zoom",function(){D(wt)}):(this.__chart__=xe,E(wt),C(wt),D(wt))})},o.translate=function(Je){return arguments.length?(xe={x:+Je[0],y:+Je[1],k:xe.k},T(),o):[xe.x,xe.y]},o.scale=function(Je){return arguments.length?(xe={x:xe.x,y:xe.y,k:null},h(+Je),T(),o):xe.k},o.scaleExtent=function(Je){return arguments.length?(vt=Je==null?nf:[+Je[0],+Je[1]],o):vt},o.center=function(Je){return arguments.length?(fe=Je&&[+Je[0],+Je[1]],o):fe},o.size=function(Je){return arguments.length?(ze=Je&&[+Je[0],+Je[1]],o):ze},o.duration=function(Je){return arguments.length?(Tt=+Je,o):Tt},o.x=function(Je){return arguments.length?(pe=Je,se=Je.copy(),xe={x:0,y:0,k:1},o):pe},o.y=function(Je){return arguments.length?(Pe=Je,we=Je.copy(),xe={x:0,y:0,k:1},o):Pe},X.rebind(o,It,"on")};var dc,rd,nf=[0,1/0];X.color=Ln,Ln.prototype.toString=function(){return this.rgb()+""},X.hsl=xn;var id=xn.prototype=new Ln;id.brighter=function(o){return o=Math.pow(.7,arguments.length?o:1),new xn(this.h,this.s,this.l/o)},id.darker=function(o){return o=Math.pow(.7,arguments.length?o:1),new xn(this.h,this.s,o*this.l)},id.rgb=function(){return An(this.h,this.s,this.l)},X.hcl=bn;var rf=bn.prototype=new Ln;rf.brighter=function(o){return new bn(this.h,this.c,Math.min(100,this.l+of*(arguments.length?o:1)))},rf.darker=function(o){return new bn(this.h,this.c,Math.max(0,this.l-of*(arguments.length?o:1)))},rf.rgb=function(){return Xn(this.h,this.c,this.l).rgb()},X.lab=Sr;var of=18,od=.95047,ad=1,hl=1.08883,Gh=Sr.prototype=new Ln;Gh.brighter=function(o){return new Sr(Math.min(100,this.l+of*(arguments.length?o:1)),this.a,this.b)},Gh.darker=function(o){return new Sr(Math.max(0,this.l-of*(arguments.length?o:1)),this.a,this.b)},Gh.rgb=function(){return ji(this.l,this.a,this.b)},X.rgb=Ht;var ys=Ht.prototype=new Ln;ys.brighter=function(o){o=Math.pow(.7,arguments.length?o:1);var l=this.r,f=this.g,h=this.b,v=30;return l||f||h?(l&&v>l&&(l=v),f&&v>f&&(f=v),h&&v>h&&(h=v),new Ht(Math.min(255,l/o),Math.min(255,f/o),Math.min(255,h/o))):new Ht(v,v,v)},ys.darker=function(o){return o=Math.pow(.7,arguments.length?o:1),new Ht(o*this.r,o*this.g,o*this.b)},ys.hsl=function(){return vi(this.r,this.g,this.b)},ys.toString=function(){return"#"+po(this.r)+po(this.g)+po(this.b)};var af=X.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});af.forEach(function(o,l){af.set(o,Tn(l))}),X.functor=A,X.xhr=R(le),X.dsv=function(o,l){function f(D,I,q){arguments.length<3&&(q=I,I=null);var F=G(D,l,I==null?h:v(I),q);return F.row=function(Y){return arguments.length?F.response((I=Y)==null?h:v(Y)):I},F}function h(D){return f.parse(D.responseText)}function v(D){return function(I){return f.parse(I.responseText,D)}}function g(D){return D.map(T).join(o)}function T(D){return E.test(D)?'"'+D.replace(/\"/g,'""')+'"':D}var E=new RegExp('["'+o+`
]`),C=o.charCodeAt(0);return f.parse=function(D,I){var q;return f.parseRows(D,function(F,Y){if(q)return q(F,Y-1);var de=new Function("d","return {"+F.map(function(J,fe){return JSON.stringify(J)+": d["+fe+"]"}).join(",")+"}");q=I?function(J,fe){return I(de(J),fe)}:de})},f.parseRows=function(D,I){function q(){if(he>=ce)return J;if(Y)return Y=!1,de;var we=he;if(D.charCodeAt(we)===34){for(var Pe=we;Pe++<ce;)if(D.charCodeAt(Pe)===34){if(D.charCodeAt(Pe+1)!==34)break;++Pe}he=Pe+2;var xe=D.charCodeAt(Pe+1);return xe===13?(Y=!0,D.charCodeAt(Pe+2)===10&&++he):xe===10&&(Y=!0),D.slice(we+1,Pe).replace(/""/g,'"')}for(;ce>he;){var xe=D.charCodeAt(he++),ze=1;if(xe===10)Y=!0;else if(xe===13)Y=!0,D.charCodeAt(he)===10&&(++he,++ze);else if(xe!==C)continue;return D.slice(we,he-ze)}return D.slice(we)}for(var F,Y,de={},J={},fe=[],ce=D.length,he=0,se=0;(F=q())!==J;){for(var pe=[];F!==de&&F!==J;)pe.push(F),F=q();I&&(pe=I(pe,se++))==null||fe.push(pe)}return fe},f.format=function(D){if(Array.isArray(D[0]))return f.formatRows(D);var I=new ae,q=[];return D.forEach(function(F){for(var Y in F)I.has(Y)||q.push(I.add(Y))}),[q.map(T).join(o)].concat(D.map(function(F){return q.map(function(Y){return T(F[Y])}).join(o)})).join(`
`)},f.formatRows=function(D){return D.map(g).join(`
`)},f},X.csv=X.dsv(",","text/csv"),X.tsv=X.dsv("	","text/tab-separated-values");var sf,hc,sd,ld,rg=this[ve(this,"requestAnimationFrame")]||function(o){setTimeout(o,17)};X.timer=function(){qe.apply(this,arguments)},X.timer.flush=function(){et(),bt()},X.round=function(o,l){return l?Math.round(o*(l=Math.pow(10,l)))/l:Math.round(o)};var ig=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"].map(kt);X.formatPrefix=function(o,l){var f=0;return(o=+o)&&(0>o&&(o*=-1),l&&(o=X.round(o,ft(o,l))),f=1+Math.floor(1e-12+Math.log(o)/Math.LN10),f=Math.max(-24,Math.min(24,3*Math.floor((f-1)/3)))),ig[8+f/3]};var Kh=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,ub=X.map({b:function(o){return o.toString(2)},c:function(o){return String.fromCharCode(o)},o:function(o){return o.toString(8)},x:function(o){return o.toString(16)},X:function(o){return o.toString(16).toUpperCase()},g:function(o,l){return o.toPrecision(l)},e:function(o,l){return o.toExponential(l)},f:function(o,l){return o.toFixed(l)},r:function(o,l){return(o=X.round(o,ft(o,l))).toFixed(Math.max(0,Math.min(20,ft(o*(1+1e-15),l))))}}),Vt=X.time={},so=Date;$t.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Ci.setUTCDate.apply(this._,arguments)},setDay:function(){Ci.setUTCDay.apply(this._,arguments)},setFullYear:function(){Ci.setUTCFullYear.apply(this._,arguments)},setHours:function(){Ci.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Ci.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Ci.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Ci.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Ci.setUTCSeconds.apply(this._,arguments)},setTime:function(){Ci.setTime.apply(this._,arguments)}};var Ci=Date.prototype;Vt.year=rn(function(o){return o=Vt.day(o),o.setMonth(0,1),o},function(o,l){o.setFullYear(o.getFullYear()+l)},function(o){return o.getFullYear()}),Vt.years=Vt.year.range,Vt.years.utc=Vt.year.utc.range,Vt.day=rn(function(o){var l=new so(2e3,0);return l.setFullYear(o.getFullYear(),o.getMonth(),o.getDate()),l},function(o,l){o.setDate(o.getDate()+l)},function(o){return o.getDate()-1}),Vt.days=Vt.day.range,Vt.days.utc=Vt.day.utc.range,Vt.dayOfYear=function(o){var l=Vt.year(o);return Math.floor((o-l-6e4*(o.getTimezoneOffset()-l.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(o,l){l=7-l;var f=Vt[o]=rn(function(h){return(h=Vt.day(h)).setDate(h.getDate()-(h.getDay()+l)%7),h},function(h,v){h.setDate(h.getDate()+7*Math.floor(v))},function(h){var v=Vt.year(h).getDay();return Math.floor((Vt.dayOfYear(h)+(v+l)%7)/7)-(v!==l)});Vt[o+"s"]=f.range,Vt[o+"s"].utc=f.utc.range,Vt[o+"OfYear"]=function(h){var v=Vt.year(h).getDay();return Math.floor((Vt.dayOfYear(h)+(v+l)%7)/7)}}),Vt.week=Vt.sunday,Vt.weeks=Vt.sunday.range,Vt.weeks.utc=Vt.sunday.utc.range,Vt.weekOfYear=Vt.sundayOfYear;var bs={"-":"",_:" ",0:"0"},pi=/^\s*\d+/,og=/^%/;X.locale=function(o){return{numberFormat:Nt(o),timeFormat:ei(o)}};var lf=X.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});X.format=lf.numberFormat,X.geo={},Ze.prototype={s:0,t:0,add:function(o){mt(o,this.t,pl),mt(pl.s,this.s,this),this.s?this.t+=pl.t:this.s=pl.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var pl=new Ze;X.geo.stream=function(o,l){o&&Xh.hasOwnProperty(o.type)?Xh[o.type](o,l):Ut(o,l)};var Xh={Feature:function(o,l){Ut(o.geometry,l)},FeatureCollection:function(o,l){for(var f=o.features,h=-1,v=f.length;++h<v;)Ut(f[h].geometry,l)}},Qh={Sphere:function(o,l){l.sphere()},Point:function(o,l){o=o.coordinates,l.point(o[0],o[1],o[2])},MultiPoint:function(o,l){for(var f=o.coordinates,h=-1,v=f.length;++h<v;)o=f[h],l.point(o[0],o[1],o[2])},LineString:function(o,l){dn(o.coordinates,l,0)},MultiLineString:function(o,l){for(var f=o.coordinates,h=-1,v=f.length;++h<v;)dn(f[h],l,0)},Polygon:function(o,l){cn(o.coordinates,l)},MultiPolygon:function(o,l){for(var f=o.coordinates,h=-1,v=f.length;++h<v;)cn(f[h],l)},GeometryCollection:function(o,l){for(var f=o.geometries,h=-1,v=f.length;++h<v;)Ut(f[h],l)}};X.geo.area=function(o){return ud=0,X.geo.stream(o,lo),ud};var ud,Ul=new Ze,lo={sphere:function(){ud+=4*Dn},point:b,lineStart:b,lineEnd:b,polygonStart:function(){Ul.reset(),lo.lineStart=nn},polygonEnd:function(){var o=2*Ul;ud+=0>o?4*Dn+o:o,lo.lineStart=lo.lineEnd=lo.point=b}};X.geo.bounds=function(){function o(Pe,xe){se.push(pe=[I=Pe,F=Pe]),q>xe&&(q=xe),xe>Y&&(Y=xe)}function l(Pe,xe){var ze=Nn([Pe*_n,xe*_n]);if(ce){var vt=on(ce,ze),Tt=[vt[1],-vt[0],0],Rt=on(Tt,vt);yi(Rt),Rt=Eo(Rt);var Ot=Pe-de,Ft=Ot>0?1:-1,nt=Rt[0]*jr*Ft,it=Sn(Ot)>180;if(it^(nt>Ft*de&&Ft*Pe>nt)){var It=Rt[1]*jr;It>Y&&(Y=It)}else if(nt=(nt+360)%360-180,it^(nt>Ft*de&&Ft*Pe>nt)){var It=-Rt[1]*jr;q>It&&(q=It)}else q>xe&&(q=xe),xe>Y&&(Y=xe);it?de>Pe?E(I,Pe)>E(I,F)&&(F=Pe):E(Pe,F)>E(I,F)&&(I=Pe):F>=I?(I>Pe&&(I=Pe),Pe>F&&(F=Pe)):Pe>de?E(I,Pe)>E(I,F)&&(F=Pe):E(Pe,F)>E(I,F)&&(I=Pe)}else o(Pe,xe);ce=ze,de=Pe}function f(){we.point=l}function h(){pe[0]=I,pe[1]=F,we.point=o,ce=null}function v(Pe,xe){if(ce){var ze=Pe-de;he+=Sn(ze)>180?ze+(ze>0?360:-360):ze}else J=Pe,fe=xe;lo.point(Pe,xe),l(Pe,xe)}function g(){lo.lineStart()}function T(){v(J,fe),lo.lineEnd(),Sn(he)>qt&&(I=-(F=180)),pe[0]=I,pe[1]=F,ce=null}function E(Pe,xe){return(xe-=Pe)<0?xe+360:xe}function C(Pe,xe){return Pe[0]-xe[0]}function D(Pe,xe){return xe[0]<=xe[1]?xe[0]<=Pe&&Pe<=xe[1]:Pe<xe[0]||xe[1]<Pe}var I,q,F,Y,de,J,fe,ce,he,se,pe,we={point:o,lineStart:f,lineEnd:h,polygonStart:function(){we.point=v,we.lineStart=g,we.lineEnd=T,he=0,lo.polygonStart()},polygonEnd:function(){lo.polygonEnd(),we.point=o,we.lineStart=f,we.lineEnd=h,0>Ul?(I=-(F=180),q=-(Y=90)):he>qt?Y=90:-qt>he&&(q=-90),pe[0]=I,pe[1]=F}};return function(Pe){Y=F=-(I=q=1/0),se=[],X.geo.stream(Pe,we);var xe=se.length;if(xe){se.sort(C);for(var ze,vt=1,Tt=se[0],Rt=[Tt];xe>vt;++vt)ze=se[vt],D(ze[0],Tt)||D(ze[1],Tt)?(E(Tt[0],ze[1])>E(Tt[0],Tt[1])&&(Tt[1]=ze[1]),E(ze[0],Tt[1])>E(Tt[0],Tt[1])&&(Tt[0]=ze[0])):Rt.push(Tt=ze);for(var Ot,ze,Ft=-(1/0),xe=Rt.length-1,vt=0,Tt=Rt[xe];xe>=vt;Tt=ze,++vt)ze=Rt[vt],(Ot=E(Tt[1],ze[0]))>Ft&&(Ft=Ot,I=ze[0],F=Tt[1])}return se=pe=null,I===1/0||q===1/0?[[NaN,NaN],[NaN,NaN]]:[[I,q],[F,Y]]}}(),X.geo.centroid=function(o){ml=cd=Vl=Yl=qa=gl=_s=za=vl=pc=yl=0,X.geo.stream(o,Jo);var l=vl,f=pc,h=yl,v=l*l+f*f+h*h;return nd>v&&(l=gl,f=_s,h=za,qt>cd&&(l=Vl,f=Yl,h=qa),v=l*l+f*f+h*h,nd>v)?[NaN,NaN]:[Math.atan2(f,l)*jr,He(h/Math.sqrt(v))*jr]};var ml,cd,Vl,Yl,qa,gl,_s,za,vl,pc,yl,Jo={sphere:b,point:br,lineStart:fi,lineEnd:ca,polygonStart:function(){Jo.lineStart=vo},polygonEnd:function(){Jo.lineStart=fi}},Jh=Rs(So,tl,Vo,[-Dn,-Dn/2]),mc=1e9;X.geo.clipExtent=function(){var o,l,f,h,v,g,T={stream:function(E){return v&&(v.valid=!1),v=g(E),v.valid=!0,v},extent:function(E){return arguments.length?(g=Fs(o=+E[0][0],l=+E[0][1],f=+E[1][0],h=+E[1][1]),v&&(v.valid=!1,v=null),T):[[o,l],[f,h]]}};return T.extent([[0,0],[960,500]])},(X.geo.conicEqualArea=function(){return Na(Mo)}).raw=Mo,X.geo.albers=function(){return X.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},X.geo.albersUsa=function(){function o(D){var I=D[0],q=D[1];return l=null,f(I,q),l||(h(I,q),l)||v(I,q),l}var l,f,h,v,g=X.geo.albers(),T=X.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),E=X.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),C={point:function(D,I){l=[D,I]}};return o.invert=function(D){var I=g.scale(),q=g.translate(),F=(D[0]-q[0])/I,Y=(D[1]-q[1])/I;return(Y>=.12&&.234>Y&&F>=-.425&&-.214>F?T:Y>=.166&&.234>Y&&F>=-.214&&-.115>F?E:g).invert(D)},o.stream=function(D){var I=g.stream(D),q=T.stream(D),F=E.stream(D);return{point:function(Y,de){I.point(Y,de),q.point(Y,de),F.point(Y,de)},sphere:function(){I.sphere(),q.sphere(),F.sphere()},lineStart:function(){I.lineStart(),q.lineStart(),F.lineStart()},lineEnd:function(){I.lineEnd(),q.lineEnd(),F.lineEnd()},polygonStart:function(){I.polygonStart(),q.polygonStart(),F.polygonStart()},polygonEnd:function(){I.polygonEnd(),q.polygonEnd(),F.polygonEnd()}}},o.precision=function(D){return arguments.length?(g.precision(D),T.precision(D),E.precision(D),o):g.precision()},o.scale=function(D){return arguments.length?(g.scale(D),T.scale(.35*D),E.scale(D),o.translate(g.translate())):g.scale()},o.translate=function(D){if(!arguments.length)return g.translate();var I=g.scale(),q=+D[0],F=+D[1];return f=g.translate(D).clipExtent([[q-.455*I,F-.238*I],[q+.455*I,F+.238*I]]).stream(C).point,h=T.translate([q-.307*I,F+.201*I]).clipExtent([[q-.425*I+qt,F+.12*I+qt],[q-.214*I-qt,F+.234*I-qt]]).stream(C).point,v=E.translate([q-.205*I,F+.212*I]).clipExtent([[q-.214*I+qt,F+.166*I+qt],[q-.115*I-qt,F+.234*I-qt]]).stream(C).point,o},o.scale(1070)};var Zh,fd,Wa,uf,cf,dd,bl={point:b,lineStart:b,lineEnd:b,polygonStart:function(){fd=0,bl.lineStart=Jn},polygonEnd:function(){bl.lineStart=bl.lineEnd=bl.point=b,Zh+=Sn(fd/2)}},cb={point:gr,lineStart:b,lineEnd:b,polygonStart:b,polygonEnd:b},ws={point:bi,lineStart:Ao,lineEnd:ls,polygonStart:function(){ws.lineStart=rl},polygonEnd:function(){ws.point=bi,ws.lineStart=Ao,ws.lineEnd=ls}};X.geo.path=function(){function o(C){return C&&(typeof E=="function"&&g.pointRadius(+E.apply(this,arguments)),T&&T.valid||(T=v(g)),X.geo.stream(C,T)),g.result()}function l(){return T=null,o}var f,h,v,g,T,E=4.5;return o.area=function(C){return Zh=0,X.geo.stream(C,v(bl)),Zh},o.centroid=function(C){return Vl=Yl=qa=gl=_s=za=vl=pc=yl=0,X.geo.stream(C,v(ws)),yl?[vl/yl,pc/yl]:za?[gl/za,_s/za]:qa?[Vl/qa,Yl/qa]:[NaN,NaN]},o.bounds=function(C){return cf=dd=-(Wa=uf=1/0),X.geo.stream(C,v(cb)),[[Wa,uf],[cf,dd]]},o.projection=function(C){return arguments.length?(v=(f=C)?C.stream||p(C):le,l()):f},o.context=function(C){return arguments.length?(g=(h=C)==null?new nl:new Nl(C),typeof E!="function"&&g.pointRadius(E),l()):h},o.pointRadius=function(C){return arguments.length?(E=typeof C=="function"?C:(g.pointRadius(+C),+C),o):E},o.projection(X.geo.albersUsa()).context(null)},X.geo.transform=function(o){return{stream:function(l){var f=new w(l);for(var h in o)f[h]=o[h];return f}}},w.prototype={point:function(o,l){this.stream.point(o,l)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},X.geo.projection=k,X.geo.projectionMutator=B,(X.geo.equirectangular=function(){return k(K)}).raw=K.invert=K,X.geo.rotation=function(o){function l(f){return f=o(f[0]*_n,f[1]*_n),f[0]*=jr,f[1]*=jr,f}return o=Se(o[0]%360*_n,o[1]*_n,o.length>2?o[2]*_n:0),l.invert=function(f){return f=o.invert(f[0]*_n,f[1]*_n),f[0]*=jr,f[1]*=jr,f},l},Ee.invert=K,X.geo.circle=function(){function o(){var g=typeof h=="function"?h.apply(this,arguments):h,T=Se(-g[0]*_n,-g[1]*_n,0).invert,E=[];return f(null,null,1,{point:function(C,D){E.push(C=T(C,D)),C[0]*=jr,C[1]*=jr}}),{type:"Polygon",coordinates:[E]}}var l,f,h=[0,0],v=6;return o.origin=function(g){return arguments.length?(h=g,o):h},o.angle=function(g){return arguments.length?(f=Ke((l=+g)*_n,v*_n),o):l},o.precision=function(g){return arguments.length?(f=Ke(l*_n,(v=+g)*_n),o):v},o.angle(90)},X.geo.distance=function(o,l){var f,h=(l[0]-o[0])*_n,v=o[1]*_n,g=l[1]*_n,T=Math.sin(h),E=Math.cos(h),C=Math.sin(v),D=Math.cos(v),I=Math.sin(g),q=Math.cos(g);return Math.atan2(Math.sqrt((f=q*T)*f+(f=D*I-C*q*E)*f),C*I+D*q*E)},X.geo.graticule=function(){function o(){return{type:"MultiLineString",coordinates:l()}}function l(){return X.range(Math.ceil(g/fe)*fe,v,fe).map(F).concat(X.range(Math.ceil(D/ce)*ce,C,ce).map(Y)).concat(X.range(Math.ceil(h/de)*de,f,de).filter(function(se){return Sn(se%fe)>qt}).map(I)).concat(X.range(Math.ceil(E/J)*J,T,J).filter(function(se){return Sn(se%ce)>qt}).map(q))}var f,h,v,g,T,E,C,D,I,q,F,Y,de=10,J=de,fe=90,ce=360,he=2.5;return o.lines=function(){return l().map(function(se){return{type:"LineString",coordinates:se}})},o.outline=function(){return{type:"Polygon",coordinates:[F(g).concat(Y(C).slice(1),F(v).reverse().slice(1),Y(D).reverse().slice(1))]}},o.extent=function(se){return arguments.length?o.majorExtent(se).minorExtent(se):o.minorExtent()},o.majorExtent=function(se){return arguments.length?(g=+se[0][0],v=+se[1][0],D=+se[0][1],C=+se[1][1],g>v&&(se=g,g=v,v=se),D>C&&(se=D,D=C,C=se),o.precision(he)):[[g,D],[v,C]]},o.minorExtent=function(se){return arguments.length?(h=+se[0][0],f=+se[1][0],E=+se[0][1],T=+se[1][1],h>f&&(se=h,h=f,f=se),E>T&&(se=E,E=T,T=se),o.precision(he)):[[h,E],[f,T]]},o.step=function(se){return arguments.length?o.majorStep(se).minorStep(se):o.minorStep()},o.majorStep=function(se){return arguments.length?(fe=+se[0],ce=+se[1],o):[fe,ce]},o.minorStep=function(se){return arguments.length?(de=+se[0],J=+se[1],o):[de,J]},o.precision=function(se){return arguments.length?(he=+se,I=Jt(E,T,90),q=Rn(h,f,he),F=Jt(D,C,90),Y=Rn(g,v,he),o):he},o.majorExtent([[-180,-90+qt],[180,90-qt]]).minorExtent([[-180,-80-qt],[180,80+qt]])},X.geo.greatArc=function(){function o(){return{type:"LineString",coordinates:[l||h.apply(this,arguments),f||v.apply(this,arguments)]}}var l,f,h=sn,v=_r;return o.distance=function(){return X.geo.distance(l||h.apply(this,arguments),f||v.apply(this,arguments))},o.source=function(g){return arguments.length?(h=g,l=typeof g=="function"?null:g,o):h},o.target=function(g){return arguments.length?(v=g,f=typeof g=="function"?null:g,o):v},o.precision=function(){return arguments.length?o:0},o},X.geo.interpolate=function(o,l){return $r(o[0]*_n,o[1]*_n,l[0]*_n,l[1]*_n)},X.geo.length=function(o){return xs=0,X.geo.stream(o,$l),xs};var xs,$l={sphere:b,point:b,lineStart:_i,lineEnd:b,polygonStart:b,polygonEnd:b},hd=hn(function(o){return Math.sqrt(2/(1+o))},function(o){return 2*Math.asin(o/2)});(X.geo.azimuthalEqualArea=function(){return k(hd)}).raw=hd;var pd=hn(function(o){var l=Math.acos(o);return l&&l/Math.sin(l)},le);(X.geo.azimuthalEquidistant=function(){return k(pd)}).raw=pd,(X.geo.conicConformal=function(){return Na(pn)}).raw=pn,(X.geo.conicEquidistant=function(){return Na(wi)}).raw=wi;var ff=hn(function(o){return 1/o},Math.atan);(X.geo.gnomonic=function(){return k(ff)}).raw=ff,Zn.invert=function(o,l){return[o,2*Math.atan(Math.exp(l))-Kr]},(X.geo.mercator=function(){return Or(Zn)}).raw=Zn;var Mu=hn(function(){return 1},Math.asin);(X.geo.orthographic=function(){return k(Mu)}).raw=Mu;var kn=hn(function(o){return 1/(1+o)},function(o){return 2*Math.atan(o)});(X.geo.stereographic=function(){return k(kn)}).raw=kn,us.invert=function(o,l){return[-l,2*Math.atan(Math.exp(o))-Kr]},(X.geo.transverseMercator=function(){var o=Or(us),l=o.center,f=o.rotate;return o.center=function(h){return h?l([-h[1],h[0]]):(h=l(),[h[1],-h[0]])},o.rotate=function(h){return h?f([h[0],h[1],h.length>2?h[2]+90:90]):(h=f(),[h[0],h[1],h[2]-90])},f([0,0,90])}).raw=us,X.geom={},X.geom.hull=function(o){function l(v){if(v.length<3)return[];var g,T=A(f),E=A(h),C=v.length,D=[],I=[];for(g=0;C>g;g++)D.push([+T.call(this,v[g],g),+E.call(this,v[g],g),g]);for(D.sort($o),g=0;C>g;g++)I.push([D[g][0],-D[g][1]]);var q=ma(D),F=ma(I),Y=F[0]===q[0],de=F[F.length-1]===q[q.length-1],J=[];for(g=q.length-1;g>=0;--g)J.push(v[D[q[g]][2]]);for(g=+Y;g<F.length-de;++g)J.push(v[D[F[g]][2]]);return J}var f=pa,h=Di;return arguments.length?l(o):(l.x=function(v){return arguments.length?(f=v,l):f},l.y=function(v){return arguments.length?(h=v,l):h},l)},X.geom.polygon=function(o){return ed(o,Au),o};var Au=X.geom.polygon.prototype=[];Au.area=function(){for(var o,l=-1,f=this.length,h=this[f-1],v=0;++l<f;)o=h,h=this[l],v+=o[1]*h[0]-o[0]*h[1];return .5*v},Au.centroid=function(o){var l,f,h=-1,v=this.length,g=0,T=0,E=this[v-1];for(arguments.length||(o=-1/(6*this.area()));++h<v;)l=E,E=this[h],f=l[0]*E[1]-E[0]*l[1],g+=(l[0]+E[0])*f,T+=(l[1]+E[1])*f;return[g*o,T*o]},Au.clip=function(o){for(var l,f,h,v,g,T,E=Ui(o),C=-1,D=this.length-Ui(this),I=this[D-1];++C<D;){for(l=o.slice(),o.length=0,v=this[C],g=l[(h=l.length-E)-1],f=-1;++f<h;)T=l[f],ri(T,I,v)?(ri(g,I,v)||o.push(Lo(g,T,I,v)),o.push(T)):ri(g,I,v)&&o.push(Lo(g,T,I,v)),g=T;E&&o.push(o[0]),I=v}return o};var Gl,Ea,gc,df,vc,bo=[],ag=[];Rl.prototype.prepare=function(){for(var o,l=this.edges,f=l.length;f--;)o=l[f].edge,o.b&&o.a||l.splice(f,1);return l.sort(Gr),l.length},Oi.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},sl.prototype={insert:function(o,l){var f,h,v;if(o){if(l.P=o,l.N=o.N,o.N&&(o.N.P=l),o.N=l,o.R){for(o=o.R;o.L;)o=o.L;o.L=l}else o.R=l;f=o}else this._?(o=Do(this._),l.P=null,l.N=o,o.P=o.L=l,f=o):(l.P=l.N=null,this._=l,f=null);for(l.L=l.R=null,l.U=f,l.C=!0,o=l;f&&f.C;)h=f.U,f===h.L?(v=h.R,v&&v.C?(f.C=v.C=!1,h.C=!0,o=h):(o===f.R&&(Xi(this,f),o=f,f=o.U),f.C=!1,h.C=!0,xi(this,h))):(v=h.L,v&&v.C?(f.C=v.C=!1,h.C=!0,o=h):(o===f.L&&(xi(this,f),o=f,f=o.U),f.C=!1,h.C=!0,Xi(this,h))),f=o.U;this._.C=!1},remove:function(o){o.N&&(o.N.P=o.P),o.P&&(o.P.N=o.N),o.N=o.P=null;var l,f,h,v=o.U,g=o.L,T=o.R;if(f=g?T?Do(T):g:T,v?v.L===o?v.L=f:v.R=f:this._=f,g&&T?(h=f.C,f.C=o.C,f.L=g,g.U=f,f!==T?(v=f.U,f.U=o.U,o=f.R,v.L=o,f.R=T,T.U=f):(f.U=v,v=f,o=f.R)):(h=o.C,o=f),o&&(o.U=v),!h){if(o&&o.C)return void(o.C=!1);do{if(o===this._)break;if(o===v.L){if(l=v.R,l.C&&(l.C=!1,v.C=!0,Xi(this,v),l=v.R),l.L&&l.L.C||l.R&&l.R.C){l.R&&l.R.C||(l.L.C=!1,l.C=!0,xi(this,l),l=v.R),l.C=v.C,v.C=l.R.C=!1,Xi(this,v),o=this._;break}}else if(l=v.L,l.C&&(l.C=!1,v.C=!0,xi(this,v),l=v.L),l.L&&l.L.C||l.R&&l.R.C){l.L&&l.L.C||(l.R.C=!1,l.C=!0,Xi(this,l),l=v.L),l.C=v.C,v.C=l.L.C=!1,xi(this,v),o=this._;break}l.C=!0,o=v,v=v.U}while(!o.C);o&&(o.C=!1)}}},X.geom.voronoi=function(o){function l(C){var D=new Array(C.length),I=E[0][0],q=E[0][1],F=E[1][0],Y=E[1][1];return cs(f(C),E).cells.forEach(function(de,J){var fe=de.edges,ce=de.site,he=D[J]=fe.length?fe.map(function(se){var pe=se.start();return[pe.x,pe.y]}):ce.x>=I&&ce.x<=F&&ce.y>=q&&ce.y<=Y?[[I,Y],[F,Y],[F,q],[I,q]]:[];he.point=C[J]}),D}function f(C){return C.map(function(D,I){return{x:Math.round(g(D,I)/qt)*qt,y:Math.round(T(D,I)/qt)*qt,i:I}})}var h=pa,v=Di,g=h,T=v,E=md;return o?l(o):(l.links=function(C){return cs(f(C)).edges.filter(function(D){return D.l&&D.r}).map(function(D){return{source:C[D.l.i],target:C[D.r.i]}})},l.triangles=function(C){var D=[];return cs(f(C)).cells.forEach(function(I,q){for(var F,Y,de=I.site,J=I.edges.sort(Gr),fe=-1,ce=J.length,he=J[ce-1].edge,se=he.l===de?he.r:he.l;++fe<ce;)F=he,Y=se,he=J[fe].edge,se=he.l===de?he.r:he.l,q<Y.i&&q<se.i&&Vc(de,Y,se)<0&&D.push([C[q],C[Y.i],C[se.i]])}),D},l.x=function(C){return arguments.length?(g=A(h=C),l):h},l.y=function(C){return arguments.length?(T=A(v=C),l):v},l.clipExtent=function(C){return arguments.length?(E=C??md,l):E===md?null:E},l.size=function(C){return arguments.length?l.clipExtent(C&&[[0,0],C]):E===md?null:E&&E[1]},l)};var md=[[-1e6,-1e6],[1e6,1e6]];X.geom.delaunay=function(o){return X.geom.voronoi().triangles(o)},X.geom.quadtree=function(o,l,f,h,v){function g(D){function I(Ot,Ft,nt,it,It,Je,wt,Kt){if(!isNaN(nt)&&!isNaN(it))if(Ot.leaf){var vn=Ot.x,On=Ot.y;if(vn!=null)if(Sn(vn-nt)+Sn(On-it)<.01)q(Ot,Ft,nt,it,It,Je,wt,Kt);else{var Wn=Ot.point;Ot.x=Ot.y=Ot.point=null,q(Ot,Wn,vn,On,It,Je,wt,Kt),q(Ot,Ft,nt,it,It,Je,wt,Kt)}else Ot.x=nt,Ot.y=it,Ot.point=Ft}else q(Ot,Ft,nt,it,It,Je,wt,Kt)}function q(Ot,Ft,nt,it,It,Je,wt,Kt){var vn=.5*(It+wt),On=.5*(Je+Kt),Wn=nt>=vn,xr=it>=On,Pi=xr<<1|Wn;Ot.leaf=!1,Ot=Ot.nodes[Pi]||(Ot.nodes[Pi]=ii()),Wn?It=vn:wt=vn,xr?Je=On:Kt=On,I(Ot,Ft,nt,it,It,Je,wt,Kt)}var F,Y,de,J,fe,ce,he,se,pe,we=A(E),Pe=A(C);if(l!=null)ce=l,he=f,se=h,pe=v;else if(se=pe=-(ce=he=1/0),Y=[],de=[],fe=D.length,T)for(J=0;fe>J;++J)F=D[J],F.x<ce&&(ce=F.x),F.y<he&&(he=F.y),F.x>se&&(se=F.x),F.y>pe&&(pe=F.y),Y.push(F.x),de.push(F.y);else for(J=0;fe>J;++J){var xe=+we(F=D[J],J),ze=+Pe(F,J);ce>xe&&(ce=xe),he>ze&&(he=ze),xe>se&&(se=xe),ze>pe&&(pe=ze),Y.push(xe),de.push(ze)}var vt=se-ce,Tt=pe-he;vt>Tt?pe=he+vt:se=ce+Tt;var Rt=ii();if(Rt.add=function(Ot){I(Rt,Ot,+we(Ot,++J),+Pe(Ot,J),ce,he,se,pe)},Rt.visit=function(Ot){oi(Ot,Rt,ce,he,se,pe)},Rt.find=function(Ot){return La(Rt,Ot[0],Ot[1],ce,he,se,pe)},J=-1,l==null){for(;++J<fe;)I(Rt,D[J],Y[J],de[J],ce,he,se,pe);--J}else D.forEach(Rt.add);return Y=de=D=F=null,Rt}var T,E=pa,C=Di;return(T=arguments.length)?(E=Ir,C=ya,T===3&&(v=f,h=l,f=l=0),g(o)):(g.x=function(D){return arguments.length?(E=D,g):E},g.y=function(D){return arguments.length?(C=D,g):C},g.extent=function(D){return arguments.length?(D==null?l=f=h=v=null:(l=+D[0][0],f=+D[0][1],h=+D[1][0],v=+D[1][1]),g):l==null?null:[[l,f],[h,v]]},g.size=function(D){return arguments.length?(D==null?l=f=h=v=null:(l=f=0,h=+D[0],v=+D[1]),g):l==null?null:[h-l,v-f]},g)},X.interpolateRgb=Fl,X.interpolateObject=ll,X.interpolateNumber=gi,X.interpolateString=mu;var gd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ep=new RegExp(gd.source,"g");X.interpolate=di,X.interpolators=[function(o,l){var f=typeof l;return(f==="string"?af.has(l.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(l)?Fl:mu:l instanceof Ln?Fl:Array.isArray(l)?We:f==="object"&&isNaN(l)?ll:gi)(o,l)}],X.interpolateArray=We;var tp=function(){return le},fb=X.map({linear:tp,poly:wr,quad:function(){return Pn},cubic:function(){return fr},sin:function(){return Ra},exp:function(){return fs},circle:function(){return ne},elastic:_e,back:Fe,bounce:function(){return ht}}),db=X.map({in:le,out:ot,"in-out":Gt,"out-in":function(o){return Gt(ot(o))}});X.ease=function(o){var l=o.indexOf("-"),f=l>=0?o.slice(0,l):o,h=l>=0?o.slice(l+1):"in";return f=fb.get(f)||tp,h=db.get(h)||le,gt(h(f.apply(null,eg.call(arguments,1))))},X.interpolateHcl=Ye,X.interpolateHsl=_t,X.interpolateLab=ut,X.interpolateRound=zt,X.transform=function(o){var l=Oo.createElementNS(X.ns.prefix.svg,"g");return(X.transform=function(f){if(f!=null){l.setAttribute("transform",f);var h=l.transform.baseVal.consolidate()}return new Wt(h?h.matrix:hb)})(o)},Wt.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var hb={a:1,b:0,c:0,d:1,e:0,f:0};X.interpolateTransform=Ii,X.layout={},X.layout.bundle=function(){return function(o){for(var l=[],f=-1,h=o.length;++f<h;)l.push(ba(o[f]));return l}},X.layout.chord=function(){function o(){var q,F,Y,de,J,fe={},ce=[],he=X.range(g),se=[];for(f=[],h=[],q=0,de=-1;++de<g;){for(F=0,J=-1;++J<g;)F+=v[de][J];ce.push(F),se.push(X.range(g)),q+=F}for(T&&he.sort(function(Rt,Ot){return T(ce[Rt],ce[Ot])}),E&&se.forEach(function(Rt,Ot){Rt.sort(function(Ft,nt){return E(v[Ot][Ft],v[Ot][nt])})}),q=(hi-I*g)/q,F=0,de=-1;++de<g;){for(Y=F,J=-1;++J<g;){var pe=he[de],we=se[pe][J],Pe=v[pe][we],xe=F,ze=F+=Pe*q;fe[pe+"-"+we]={index:pe,subindex:we,startAngle:xe,endAngle:ze,value:Pe}}h[pe]={index:pe,startAngle:Y,endAngle:F,value:ce[pe]},F+=I}for(de=-1;++de<g;)for(J=de-1;++J<g;){var vt=fe[de+"-"+J],Tt=fe[J+"-"+de];(vt.value||Tt.value)&&f.push(vt.value<Tt.value?{source:Tt,target:vt}:{source:vt,target:Tt})}C&&l()}function l(){f.sort(function(q,F){return C((q.source.value+q.target.value)/2,(F.source.value+F.target.value)/2)})}var f,h,v,g,T,E,C,D={},I=0;return D.matrix=function(q){return arguments.length?(g=(v=q)&&v.length,f=h=null,D):v},D.padding=function(q){return arguments.length?(I=q,f=h=null,D):I},D.sortGroups=function(q){return arguments.length?(T=q,f=h=null,D):T},D.sortSubgroups=function(q){return arguments.length?(E=q,f=null,D):E},D.sortChords=function(q){return arguments.length?(C=q,f&&l(),D):C},D.chords=function(){return f||o(),f},D.groups=function(){return h||o(),h},D},X.layout.force=function(){function o(pe){return function(we,Pe,xe,ze){if(we.point!==pe){var vt=we.cx-pe.x,Tt=we.cy-pe.y,Rt=ze-Pe,Ot=vt*vt+Tt*Tt;if(Ot>Rt*Rt/ce){if(J>Ot){var Ft=we.charge/Ot;pe.px-=vt*Ft,pe.py-=Tt*Ft}return!0}if(we.point&&Ot&&J>Ot){var Ft=we.pointCharge/Ot;pe.px-=vt*Ft,pe.py-=Tt*Ft}}return!we.charge}}function l(pe){pe.px=X.event.x,pe.py=X.event.y,C.resume()}var f,h,v,g,T,E,C={},D=X.dispatch("start","tick","end"),I=[1,1],q=.9,F=_l,Y=Ho,de=-30,J=np,fe=.1,ce=.64,he=[],se=[];return C.tick=function(){if((v*=.99)<.005)return f=null,D.end({type:"end",alpha:v=0}),!0;var pe,we,Pe,xe,ze,vt,Tt,Rt,Ot,Ft=he.length,nt=se.length;for(we=0;nt>we;++we)Pe=se[we],xe=Pe.source,ze=Pe.target,Rt=ze.x-xe.x,Ot=ze.y-xe.y,(vt=Rt*Rt+Ot*Ot)&&(vt=v*T[we]*((vt=Math.sqrt(vt))-g[we])/vt,Rt*=vt,Ot*=vt,ze.x-=Rt*(Tt=xe.weight+ze.weight?xe.weight/(xe.weight+ze.weight):.5),ze.y-=Ot*Tt,xe.x+=Rt*(Tt=1-Tt),xe.y+=Ot*Tt);if((Tt=v*fe)&&(Rt=I[0]/2,Ot=I[1]/2,we=-1,Tt))for(;++we<Ft;)Pe=he[we],Pe.x+=(Rt-Pe.x)*Tt,Pe.y+=(Ot-Pe.y)*Tt;if(de)for(jf(pe=X.geom.quadtree(he),v,E),we=-1;++we<Ft;)(Pe=he[we]).fixed||pe.visit(o(Pe));for(we=-1;++we<Ft;)Pe=he[we],Pe.fixed?(Pe.x=Pe.px,Pe.y=Pe.py):(Pe.x-=(Pe.px-(Pe.px=Pe.x))*q,Pe.y-=(Pe.py-(Pe.py=Pe.y))*q);D.tick({type:"tick",alpha:v})},C.nodes=function(pe){return arguments.length?(he=pe,C):he},C.links=function(pe){return arguments.length?(se=pe,C):se},C.size=function(pe){return arguments.length?(I=pe,C):I},C.linkDistance=function(pe){return arguments.length?(F=typeof pe=="function"?pe:+pe,C):F},C.distance=C.linkDistance,C.linkStrength=function(pe){return arguments.length?(Y=typeof pe=="function"?pe:+pe,C):Y},C.friction=function(pe){return arguments.length?(q=+pe,C):q},C.charge=function(pe){return arguments.length?(de=typeof pe=="function"?pe:+pe,C):de},C.chargeDistance=function(pe){return arguments.length?(J=pe*pe,C):Math.sqrt(J)},C.gravity=function(pe){return arguments.length?(fe=+pe,C):fe},C.theta=function(pe){return arguments.length?(ce=pe*pe,C):Math.sqrt(ce)},C.alpha=function(pe){return arguments.length?(pe=+pe,v?pe>0?v=pe:(f.c=null,f.t=NaN,f=null,D.end({type:"end",alpha:v=0})):pe>0&&(D.start({type:"start",alpha:v=pe}),f=qe(C.tick)),C):v},C.start=function(){function pe(Ot,Ft){if(!Pe){for(Pe=new Array(ze),Je=0;ze>Je;++Je)Pe[Je]=[];for(Je=0;vt>Je;++Je){var nt=se[Je];Pe[nt.source.index].push(nt.target),Pe[nt.target.index].push(nt.source)}}for(var it,It=Pe[we],Je=-1,wt=It.length;++Je<wt;)if(!isNaN(it=It[Je][Ot]))return it;return Math.random()*Ft}var we,Pe,xe,ze=he.length,vt=se.length,Tt=I[0],Rt=I[1];for(we=0;ze>we;++we)(xe=he[we]).index=we,xe.weight=0;for(we=0;vt>we;++we)xe=se[we],typeof xe.source=="number"&&(xe.source=he[xe.source]),typeof xe.target=="number"&&(xe.target=he[xe.target]),++xe.source.weight,++xe.target.weight;for(we=0;ze>we;++we)xe=he[we],isNaN(xe.x)&&(xe.x=pe("x",Tt)),isNaN(xe.y)&&(xe.y=pe("y",Rt)),isNaN(xe.px)&&(xe.px=xe.x),isNaN(xe.py)&&(xe.py=xe.y);if(g=[],typeof F=="function")for(we=0;vt>we;++we)g[we]=+F.call(this,se[we],we);else for(we=0;vt>we;++we)g[we]=F;if(T=[],typeof Y=="function")for(we=0;vt>we;++we)T[we]=+Y.call(this,se[we],we);else for(we=0;vt>we;++we)T[we]=Y;if(E=[],typeof de=="function")for(we=0;ze>we;++we)E[we]=+de.call(this,he[we],we);else for(we=0;ze>we;++we)E[we]=de;return C.resume()},C.resume=function(){return C.alpha(.1)},C.stop=function(){return C.alpha(0)},C.drag=function(){return h||(h=X.behavior.drag().origin(le).on("dragstart.force",_a).on("drag.force",l).on("dragend.force",nc)),arguments.length?void this.on("mouseover.force",rc).on("mouseout.force",gu).call(h):h},X.rebind(C,D,"on")};var _l=20,Ho=1,np=1/0;X.layout.hierarchy=function(){function o(v){var g,T=[v],E=[];for(v.depth=0;(g=T.pop())!=null;)if(E.push(g),(D=f.call(o,g,g.depth))&&(C=D.length)){for(var C,D,I;--C>=0;)T.push(I=D[C]),I.parent=g,I.depth=g.depth+1;h&&(g.value=0),g.children=D}else h&&(g.value=+h.call(o,g,g.depth)||0),delete g.children;return oo(v,function(q){var F,Y;l&&(F=q.children)&&F.sort(l),h&&(Y=q.parent)&&(Y.value+=q.value)}),E}var l=Uf,f=xh,h=Yc;return o.sort=function(v){return arguments.length?(l=v,o):l},o.children=function(v){return arguments.length?(f=v,o):f},o.value=function(v){return arguments.length?(h=v,o):h},o.revalue=function(v){return h&&(zs(v,function(g){g.children&&(g.value=0)}),oo(v,function(g){var T;g.children||(g.value=+h.call(o,g,g.depth)||0),(T=g.parent)&&(T.value+=g.value)})),v},o},X.layout.partition=function(){function o(g,T,E,C){var D=g.children;if(g.x=T,g.y=g.depth*C,g.dx=E,g.dy=C,D&&(I=D.length)){var I,q,F,Y=-1;for(E=g.value?E/g.value:0;++Y<I;)o(q=D[Y],T,F=q.value*E,C),T+=F}}function l(g){var T=g.children,E=0;if(T&&(C=T.length))for(var C,D=-1;++D<C;)E=Math.max(E,l(T[D]));return 1+E}function f(g,T){var E=h.call(this,g,T);return o(E[0],0,v[0],v[1]/l(E[0])),E}var h=X.layout.hierarchy(),v=[1,1];return f.size=function(g){return arguments.length?(v=g,f):v},qs(f,h)},X.layout.pie=function(){function o(T){var E,C=T.length,D=T.map(function(he,se){return+l.call(o,he,se)}),I=+(typeof h=="function"?h.apply(this,arguments):h),q=(typeof v=="function"?v.apply(this,arguments):v)-I,F=Math.min(Math.abs(q)/C,+(typeof g=="function"?g.apply(this,arguments):g)),Y=F*(0>q?-1:1),de=X.sum(D),J=de?(q-C*Y)/de:0,fe=X.range(C),ce=[];return f!=null&&fe.sort(f===sg?function(he,se){return D[se]-D[he]}:function(he,se){return f(T[he],T[se])}),fe.forEach(function(he){ce[he]={data:T[he],value:E=D[he],startAngle:I,endAngle:I+=E*J+Y,padAngle:F}}),ce}var l=Number,f=sg,h=0,v=hi,g=0;return o.value=function(T){return arguments.length?(l=T,o):l},o.sort=function(T){return arguments.length?(f=T,o):f},o.startAngle=function(T){return arguments.length?(h=T,o):h},o.endAngle=function(T){return arguments.length?(v=T,o):v},o.padAngle=function(T){return arguments.length?(g=T,o):g},o};var sg={};X.layout.stack=function(){function o(E,C){if(!(F=E.length))return E;var D=E.map(function(he,se){return l.call(o,he,se)}),I=D.map(function(he){return he.map(function(se,pe){return[g.call(o,se,pe),T.call(o,se,pe)]})}),q=f.call(o,I,C);D=X.permute(D,q),I=X.permute(I,q);var F,Y,de,J,fe=h.call(o,I,C),ce=D[0].length;for(de=0;ce>de;++de)for(v.call(o,D[0][de],J=fe[de],I[0][de][1]),Y=1;F>Y;++Y)v.call(o,D[Y][de],J+=I[Y-1][de][1],I[Y][de][1]);return E}var l=le,f=$c,h=ic,v=Ch,g=Ni,T=ao;return o.values=function(E){return arguments.length?(l=E,o):l},o.order=function(E){return arguments.length?(f=typeof E=="function"?E:rp.get(E)||$c,o):f},o.offset=function(E){return arguments.length?(h=typeof E=="function"?E:pb.get(E)||ic,o):h},o.x=function(E){return arguments.length?(g=E,o):g},o.y=function(E){return arguments.length?(T=E,o):T},o.out=function(E){return arguments.length?(v=E,o):v},o};var rp=X.map({"inside-out":function(o){var l,f,h=o.length,v=o.map(Sh),g=o.map(oc),T=X.range(h).sort(function(q,F){return v[q]-v[F]}),E=0,C=0,D=[],I=[];for(l=0;h>l;++l)f=T[l],C>E?(E+=g[f],D.push(f)):(C+=g[f],I.push(f));return I.reverse().concat(D)},reverse:function(o){return X.range(o.length).reverse()},default:$c}),pb=X.map({silhouette:function(o){var l,f,h,v=o.length,g=o[0].length,T=[],E=0,C=[];for(f=0;g>f;++f){for(l=0,h=0;v>l;l++)h+=o[l][f][1];h>E&&(E=h),T.push(h)}for(f=0;g>f;++f)C[f]=(E-T[f])/2;return C},wiggle:function(o){var l,f,h,v,g,T,E,C,D,I=o.length,q=o[0],F=q.length,Y=[];for(Y[0]=C=D=0,f=1;F>f;++f){for(l=0,v=0;I>l;++l)v+=o[l][f][1];for(l=0,g=0,E=q[f][0]-q[f-1][0];I>l;++l){for(h=0,T=(o[l][f][1]-o[l][f-1][1])/(2*E);l>h;++h)T+=(o[h][f][1]-o[h][f-1][1])/E;g+=T*o[l][f][1]}Y[f]=C-=v?g/v*E:0,D>C&&(D=C)}for(f=0;F>f;++f)Y[f]-=D;return Y},expand:function(o){var l,f,h,v=o.length,g=o[0].length,T=1/v,E=[];for(f=0;g>f;++f){for(l=0,h=0;v>l;l++)h+=o[l][f][1];if(h)for(l=0;v>l;l++)o[l][f][1]/=h;else for(l=0;v>l;l++)o[l][f][1]=T}for(f=0;g>f;++f)E[f]=0;return E},zero:ic});X.layout.histogram=function(){function o(g,T){for(var E,C,D=[],I=g.map(f,this),q=h.call(this,I,T),F=v.call(this,q,I,T),T=-1,Y=I.length,de=F.length-1,J=l?1:1/Y;++T<de;)E=D[T]=[],E.dx=F[T+1]-(E.x=F[T]),E.y=0;if(de>0)for(T=-1;++T<Y;)C=I[T],C>=q[0]&&C<=q[1]&&(E=D[X.bisect(F,C,1,de)-1],E.y+=J,E.push(g[T]));return D}var l=!0,f=Number,h=vu,v=Gc;return o.value=function(g){return arguments.length?(f=g,o):f},o.range=function(g){return arguments.length?(h=A(g),o):h},o.bins=function(g){return arguments.length?(v=typeof g=="number"?function(T){return ul(T,g)}:A(g),o):v},o.frequency=function(g){return arguments.length?(l=!!g,o):l},o},X.layout.pack=function(){function o(g,T){var E=f.call(this,g,T),C=E[0],D=v[0],I=v[1],q=l==null?Math.sqrt:typeof l=="function"?l:function(){return l};if(C.x=C.y=0,oo(C,function(Y){Y.r=+q(Y.value)}),oo(C,Hl),h){var F=h*(l?1:Math.max(2*C.r/D,2*C.r/I))/2;oo(C,function(Y){Y.r+=F}),oo(C,Hl),oo(C,function(Y){Y.r-=F})}return Kc(C,D/2,I/2,l?1:1/Math.max(2*C.r/D,2*C.r/I)),E}var l,f=X.layout.hierarchy().sort(hs),h=0,v=[1,1];return o.size=function(g){return arguments.length?(v=g,o):v},o.radius=function(g){return arguments.length?(l=g==null||typeof g=="function"?g:+g,o):l},o.padding=function(g){return arguments.length?(h=+g,o):h},qs(o,f)},X.layout.tree=function(){function o(I,q){var F=T.call(this,I,q),Y=F[0],de=l(Y);if(oo(de,f),de.parent.m=-de.z,zs(de,h),D)zs(Y,g);else{var J=Y,fe=Y,ce=Y;zs(Y,function(we){we.x<J.x&&(J=we),we.x>fe.x&&(fe=we),we.depth>ce.depth&&(ce=we)});var he=E(J,fe)/2-J.x,se=C[0]/(fe.x+E(fe,J)/2+he),pe=C[1]/(ce.depth||1);zs(Y,function(we){we.x=(we.x+he)*se,we.y=we.depth*pe})}return F}function l(I){for(var q,F={A:null,children:[I]},Y=[F];(q=Y.pop())!=null;)for(var de,J=q.children,fe=0,ce=J.length;ce>fe;++fe)Y.push((J[fe]=de={_:J[fe],parent:q,children:(de=J[fe].children)&&de.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:fe}).a=de);return F.children[0]}function f(I){var q=I.children,F=I.parent.children,Y=I.i?F[I.i-1]:null;if(q.length){ac(I);var de=(q[0].z+q[q.length-1].z)/2;Y?(I.z=Y.z+E(I._,Y._),I.m=I.z-de):I.z=de}else Y&&(I.z=Y.z+E(I._,Y._));I.parent.A=v(I,Y,I.parent.A||F[0])}function h(I){I._.x=I.z+I.parent.m,I.m+=I.parent.m}function v(I,q,F){if(q){for(var Y,de=I,J=I,fe=q,ce=de.parent.children[0],he=de.m,se=J.m,pe=fe.m,we=ce.m;fe=ee(fe),de=bu(de),fe&&de;)ce=bu(ce),J=ee(J),J.a=I,Y=fe.z+pe-de.z-he+E(fe._,de._),Y>0&&(ql(Ko(fe,I,F),I,Y),he+=Y,se+=Y),pe+=fe.m,he+=de.m,we+=ce.m,se+=J.m;fe&&!ee(J)&&(J.t=fe,J.m+=pe-se),de&&!bu(ce)&&(ce.t=de,ce.m+=he-we,F=I)}return F}function g(I){I.x*=C[0],I.y=I.depth*C[1]}var T=X.layout.hierarchy().sort(null).value(null),E=fl,C=[1,1],D=null;return o.separation=function(I){return arguments.length?(E=I,o):E},o.size=function(I){return arguments.length?(D=(C=I)==null?g:null,o):D?null:C},o.nodeSize=function(I){return arguments.length?(D=(C=I)==null?null:g,o):D?C:null},qs(o,T)},X.layout.cluster=function(){function o(g,T){var E,C=l.call(this,g,T),D=C[0],I=0;oo(D,function(J){var fe=J.children;fe&&fe.length?(J.x=Vf(fe),J.y=ar(fe)):(J.x=E?I+=f(J,E):0,J.y=0,E=J)});var q=Yf(D),F=_u(D),Y=q.x-f(q,F)/2,de=F.x+f(F,q)/2;return oo(D,v?function(J){J.x=(J.x-D.x)*h[0],J.y=(D.y-J.y)*h[1]}:function(J){J.x=(J.x-Y)/(de-Y)*h[0],J.y=(1-(D.y?J.y/D.y:1))*h[1]}),C}var l=X.layout.hierarchy().sort(null).value(null),f=fl,h=[1,1],v=!1;return o.separation=function(g){return arguments.length?(f=g,o):f},o.size=function(g){return arguments.length?(v=(h=g)==null,o):v?null:h},o.nodeSize=function(g){return arguments.length?(v=(h=g)!=null,o):v?h:null},qs(o,l)},X.layout.treemap=function(){function o(J,fe){for(var ce,he,se=-1,pe=J.length;++se<pe;)he=(ce=J[se]).value*(0>fe?0:fe),ce.area=isNaN(he)||0>=he?0:he}function l(J){var fe=J.children;if(fe&&fe.length){var ce,he,se,pe=q(J),we=[],Pe=fe.slice(),xe=1/0,ze=Y==="slice"?pe.dx:Y==="dice"?pe.dy:Y==="slice-dice"?1&J.depth?pe.dy:pe.dx:Math.min(pe.dx,pe.dy);for(o(Pe,pe.dx*pe.dy/J.value),we.area=0;(se=Pe.length)>0;)we.push(ce=Pe[se-1]),we.area+=ce.area,Y!=="squarify"||(he=h(we,ze))<=xe?(Pe.pop(),xe=he):(we.area-=we.pop().area,v(we,ze,pe,!1),ze=Math.min(pe.dx,pe.dy),we.length=we.area=0,xe=1/0);we.length&&(v(we,ze,pe,!0),we.length=we.area=0),fe.forEach(l)}}function f(J){var fe=J.children;if(fe&&fe.length){var ce,he=q(J),se=fe.slice(),pe=[];for(o(se,he.dx*he.dy/J.value),pe.area=0;ce=se.pop();)pe.push(ce),pe.area+=ce.area,ce.z!=null&&(v(pe,ce.z?he.dx:he.dy,he,!se.length),pe.length=pe.area=0);fe.forEach(f)}}function h(J,fe){for(var ce,he=J.area,se=0,pe=1/0,we=-1,Pe=J.length;++we<Pe;)(ce=J[we].area)&&(pe>ce&&(pe=ce),ce>se&&(se=ce));return he*=he,fe*=fe,he?Math.max(fe*se*de/he,he/(fe*pe*de)):1/0}function v(J,fe,ce,he){var se,pe=-1,we=J.length,Pe=ce.x,xe=ce.y,ze=fe?C(J.area/fe):0;if(fe==ce.dx){for((he||ze>ce.dy)&&(ze=ce.dy);++pe<we;)se=J[pe],se.x=Pe,se.y=xe,se.dy=ze,Pe+=se.dx=Math.min(ce.x+ce.dx-Pe,ze?C(se.area/ze):0);se.z=!0,se.dx+=ce.x+ce.dx-Pe,ce.y+=ze,ce.dy-=ze}else{for((he||ze>ce.dx)&&(ze=ce.dx);++pe<we;)se=J[pe],se.x=Pe,se.y=xe,se.dx=ze,xe+=se.dy=Math.min(ce.y+ce.dy-xe,ze?C(se.area/ze):0);se.z=!1,se.dy+=ce.y+ce.dy-xe,ce.x+=ze,ce.dx-=ze}}function g(J){var fe=T||E(J),ce=fe[0];return ce.x=ce.y=0,ce.value?(ce.dx=D[0],ce.dy=D[1]):ce.dx=ce.dy=0,T&&E.revalue(ce),o([ce],ce.dx*ce.dy/ce.value),(T?f:l)(ce),F&&(T=fe),fe}var T,E=X.layout.hierarchy(),C=Math.round,D=[1,1],I=null,q=Qe,F=!1,Y="squarify",de=.5*(1+Math.sqrt(5));return g.size=function(J){return arguments.length?(D=J,g):D},g.padding=function(J){function fe(se){var pe=J.call(g,se,se.depth);return pe==null?Qe(se):ke(se,typeof pe=="number"?[pe,pe,pe,pe]:pe)}function ce(se){return ke(se,J)}if(!arguments.length)return I;var he;return q=(I=J)==null?Qe:(he=typeof J)=="function"?fe:(he==="number"&&(J=[J,J,J,J]),ce),g},g.round=function(J){return arguments.length?(C=J?Math.round:Number,g):C!=Number},g.sticky=function(J){return arguments.length?(F=J,T=null,g):F},g.ratio=function(J){return arguments.length?(de=J,g):de},g.mode=function(J){return arguments.length?(Y=J+"",g):Y},qs(g,E)},X.random={normal:function(o,l){var f=arguments.length;return 2>f&&(l=1),1>f&&(o=0),function(){var h,v,g;do h=2*Math.random()-1,v=2*Math.random()-1,g=h*h+v*v;while(!g||g>1);return o+l*h*Math.sqrt(-2*Math.log(g)/g)}},logNormal:function(){var o=X.random.normal.apply(X,arguments);return function(){return Math.exp(o())}},bates:function(o){var l=X.random.irwinHall(o);return function(){return l()/o}},irwinHall:function(o){return function(){for(var l=0,f=0;o>f;f++)l+=Math.random();return l}}},X.scale={};var mb={floor:le,ceil:le};X.scale.linear=function(){return Pt([0,1],[0,1],di,!1)};var hf={s:1,g:1,p:1,r:1,e:1};X.scale.log=function(){return sc(X.scale.linear().domain([0,1]),10,!0,[1,10])};var ip=X.format(".0e"),lg={floor:function(o){return-Math.ceil(-o)},ceil:function(o){return-Math.floor(-o)}};X.scale.pow=function(){return $f(X.scale.linear(),1,[0,1])},X.scale.sqrt=function(){return X.scale.pow().exponent(.5)},X.scale.ordinal=function(){return jm([],{t:"range",a:[[]]})},X.scale.category10=function(){return X.scale.ordinal().range(gb)},X.scale.category20=function(){return X.scale.ordinal().range(vb)},X.scale.category20b=function(){return X.scale.ordinal().range(yb)},X.scale.category20c=function(){return X.scale.ordinal().range(bb)};var gb=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(to),vb=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(to),yb=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(to),bb=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(to);X.scale.quantile=function(){return Um([],[])},X.scale.quantize=function(){return Fa(0,1,[0,1])},X.scale.threshold=function(){return Vm([.5],[0,1])},X.scale.identity=function(){return Ym([0,1])},X.svg={},X.svg.arc=function(){function o(){var D=Math.max(0,+f.apply(this,arguments)),I=Math.max(0,+h.apply(this,arguments)),q=T.apply(this,arguments)-Kr,F=E.apply(this,arguments)-Kr,Y=Math.abs(F-q),de=q>F?0:1;if(D>I&&(J=I,I=D,D=J),Y>=lb)return l(I,de)+(D?l(D,1-de):"")+"Z";var J,fe,ce,he,se,pe,we,Pe,xe,ze,vt,Tt,Rt=0,Ot=0,Ft=[];if((he=(+C.apply(this,arguments)||0)/2)&&(ce=g===pf?Math.sqrt(D*D+I*I):+g.apply(this,arguments),de||(Ot*=-1),I&&(Ot=He(ce/I*Math.sin(he))),D&&(Rt=He(ce/D*Math.sin(he)))),I){se=I*Math.cos(q+Ot),pe=I*Math.sin(q+Ot),we=I*Math.cos(F-Ot),Pe=I*Math.sin(F-Ot);var nt=Math.abs(F-q-2*Ot)<=Dn?0:1;if(Ot&&Gf(se,pe,we,Pe)===de^nt){var it=(q+F)/2;se=I*Math.cos(it),pe=I*Math.sin(it),we=Pe=null}}else se=pe=0;if(D){xe=D*Math.cos(F-Rt),ze=D*Math.sin(F-Rt),vt=D*Math.cos(q+Rt),Tt=D*Math.sin(q+Rt);var It=Math.abs(q-F+2*Rt)<=Dn?0:1;if(Rt&&Gf(xe,ze,vt,Tt)===1-de^It){var Je=(q+F)/2;xe=D*Math.cos(Je),ze=D*Math.sin(Je),vt=Tt=null}}else xe=ze=0;if(Y>qt&&(J=Math.min(Math.abs(I-D)/2,+v.apply(this,arguments)))>.001){fe=I>D^de?0:1;var wt=J,Kt=J;if(Dn>Y){var vn=vt==null?[xe,ze]:we==null?[se,pe]:Lo([se,pe],[vt,Tt],[we,Pe],[xe,ze]),On=se-vn[0],Wn=pe-vn[1],xr=we-vn[0],Pi=Pe-vn[1],ja=1/Math.sin(Math.acos((On*xr+Wn*Pi)/(Math.sqrt(On*On+Wn*Wn)*Math.sqrt(xr*xr+Pi*Pi)))/2),Zo=Math.sqrt(vn[0]*vn[0]+vn[1]*vn[1]);Kt=Math.min(J,(D-Zo)/(ja-1)),wt=Math.min(J,(I-Zo)/(ja+1))}if(we!=null){var Li=lc(vt==null?[xe,ze]:[vt,Tt],[se,pe],I,wt,de),qo=lc([we,Pe],[xe,ze],I,wt,de);J===wt?Ft.push("M",Li[0],"A",wt,",",wt," 0 0,",fe," ",Li[1],"A",I,",",I," 0 ",1-de^Gf(Li[1][0],Li[1][1],qo[1][0],qo[1][1]),",",de," ",qo[1],"A",wt,",",wt," 0 0,",fe," ",qo[0]):Ft.push("M",Li[0],"A",wt,",",wt," 0 1,",fe," ",qo[0])}else Ft.push("M",se,",",pe);if(vt!=null){var Es=lc([se,pe],[vt,Tt],D,-Kt,de),Ql=lc([xe,ze],we==null?[se,pe]:[we,Pe],D,-Kt,de);J===Kt?Ft.push("L",Ql[0],"A",Kt,",",Kt," 0 0,",fe," ",Ql[1],"A",D,",",D," 0 ",de^Gf(Ql[1][0],Ql[1][1],Es[1][0],Es[1][1]),",",1-de," ",Es[1],"A",Kt,",",Kt," 0 0,",fe," ",Es[0]):Ft.push("L",Ql[0],"A",Kt,",",Kt," 0 0,",fe," ",Es[0])}else Ft.push("L",xe,",",ze)}else Ft.push("M",se,",",pe),we!=null&&Ft.push("A",I,",",I," 0 ",nt,",",de," ",we,",",Pe),Ft.push("L",xe,",",ze),vt!=null&&Ft.push("A",D,",",D," 0 ",It,",",1-de," ",vt,",",Tt);return Ft.push("Z"),Ft.join("")}function l(D,I){return"M0,"+D+"A"+D+","+D+" 0 1,"+I+" 0,"+-D+"A"+D+","+D+" 0 1,"+I+" 0,"+D}var f=tb,h=nb,v=eb,g=pf,T=Ah,E=Dh,C=rb;return o.innerRadius=function(D){return arguments.length?(f=A(D),o):f},o.outerRadius=function(D){return arguments.length?(h=A(D),o):h},o.cornerRadius=function(D){return arguments.length?(v=A(D),o):v},o.padRadius=function(D){return arguments.length?(g=D==pf?pf:A(D),o):g},o.startAngle=function(D){return arguments.length?(T=A(D),o):T},o.endAngle=function(D){return arguments.length?(E=A(D),o):E},o.padAngle=function(D){return arguments.length?(C=A(D),o):C},o.centroid=function(){var D=(+f.apply(this,arguments)+ +h.apply(this,arguments))/2,I=(+T.apply(this,arguments)+ +E.apply(this,arguments))/2-Kr;return[Math.cos(I)*D,Math.sin(I)*D]},o};var pf="auto";X.svg.line=function(){return uc(le)};var vd=X.map({linear:Qo,"linear-closed":$m,step:Gm,"step-before":kh,"step-after":ms,basis:Ih,"basis-open":Xc,"basis-closed":Wl,bundle:Km,cardinal:Ba,"cardinal-open":Oh,"cardinal-closed":wu,monotone:Ph});vd.forEach(function(o,l){l.key=o,l.closed=/-closed$/.test(o)});var ug=[0,2/3,1/3,0],yd=[0,1/3,2/3,0],wl=[0,1/6,2/3,1/6];X.svg.line.radial=function(){var o=uc(Lh);return o.radius=o.x,delete o.x,o.angle=o.y,delete o.y,o},kh.reverse=ms,ms.reverse=kh,X.svg.area=function(){return gs(le)},X.svg.area.radial=function(){var o=gs(Lh);return o.radius=o.x,delete o.x,o.innerRadius=o.x0,delete o.x0,o.outerRadius=o.x1,delete o.x1,o.angle=o.y,delete o.y,o.startAngle=o.y0,delete o.y0,o.endAngle=o.y1,delete o.y1,o},X.svg.chord=function(){function o(I,q){var F=l(this,g,I,q),Y=l(this,T,I,q);return"M"+F.p0+h(F.r,F.p1,F.a1-F.a0)+(f(F,Y)?v(F.r,F.p1,F.r,F.p0):v(F.r,F.p1,Y.r,Y.p0)+h(Y.r,Y.p1,Y.a1-Y.a0)+v(Y.r,Y.p1,F.r,F.p0))+"Z"}function l(I,q,F,Y){var de=q.call(I,F,Y),J=E.call(I,de,Y),fe=C.call(I,de,Y)-Kr,ce=D.call(I,de,Y)-Kr;return{r:J,a0:fe,a1:ce,p0:[J*Math.cos(fe),J*Math.sin(fe)],p1:[J*Math.cos(ce),J*Math.sin(ce)]}}function f(I,q){return I.a0==q.a0&&I.a1==q.a1}function h(I,q,F){return"A"+I+","+I+" 0 "+ +(F>Dn)+",1 "+q}function v(I,q,F,Y){return"Q 0,0 "+Y}var g=sn,T=_r,E=Rh,C=Ah,D=Dh;return o.radius=function(I){return arguments.length?(E=A(I),o):E},o.source=function(I){return arguments.length?(g=A(I),o):g},o.target=function(I){return arguments.length?(T=A(I),o):T},o.startAngle=function(I){return arguments.length?(C=A(I),o):C},o.endAngle=function(I){return arguments.length?(D=A(I),o):D},o},X.svg.diagonal=function(){function o(v,g){var T=l.call(this,v,g),E=f.call(this,v,g),C=(T.y+E.y)/2,D=[T,{x:T.x,y:C},{x:E.x,y:C},E];return D=D.map(h),"M"+D[0]+"C"+D[1]+" "+D[2]+" "+D[3]}var l=sn,f=_r,h=Qc;return o.source=function(v){return arguments.length?(l=A(v),o):l},o.target=function(v){return arguments.length?(f=A(v),o):f},o.projection=function(v){return arguments.length?(h=v,o):h},o},X.svg.diagonal.radial=function(){var o=X.svg.diagonal(),l=Qc,f=o.projection;return o.projection=function(h){return arguments.length?f(xu(l=h)):l},o},X.svg.symbol=function(){function o(h,v){return(yc.get(l.call(this,h,v))||Qf)(f.call(this,h,v))}var l=Fo,f=Qm;return o.type=function(h){return arguments.length?(l=A(h),o):l},o.size=function(h){return arguments.length?(f=A(h),o):f},o};var yc=X.map({circle:Qf,cross:function(o){var l=Math.sqrt(o/5)/2;return"M"+-3*l+","+-l+"H"+-l+"V"+-3*l+"H"+l+"V"+-l+"H"+3*l+"V"+l+"H"+l+"V"+3*l+"H"+-l+"V"+l+"H"+-3*l+"Z"},diamond:function(o){var l=Math.sqrt(o/(2*op)),f=l*op;return"M0,"+-l+"L"+f+",0 0,"+l+" "+-f+",0Z"},square:function(o){var l=Math.sqrt(o)/2;return"M"+-l+","+-l+"L"+l+","+-l+" "+l+","+l+" "+-l+","+l+"Z"},"triangle-down":function(o){var l=Math.sqrt(o/bc),f=l*bc/2;return"M0,"+f+"L"+l+","+-f+" "+-l+","+-f+"Z"},"triangle-up":function(o){var l=Math.sqrt(o/bc),f=l*bc/2;return"M0,"+-f+"L"+l+","+f+" "+-l+","+f+"Z"}});X.svg.symbolTypes=yc.keys();var bc=Math.sqrt(3),op=Math.tan(30*_n);cr.transition=function(o){for(var l,f,h=Kl||++Xl,v=Hh(o),g=[],T=Du||{time:Date.now(),ease:ai,delay:0,duration:250},E=-1,C=this.length;++E<C;){g.push(l=[]);for(var D=this[E],I=-1,q=D.length;++I<q;)(f=D[I])&&jl(f,I,v,h,T),l.push(f)}return Jc(g,v,h)},cr.interrupt=function(o){return this.each(o==null?mf:Jm(Hh(o)))};var Kl,Du,mf=Jm(Hh()),Lr=[],Xl=0;Lr.call=cr.call,Lr.empty=cr.empty,Lr.node=cr.node,Lr.size=cr.size,X.transition=function(o,l){return o&&o.transition?Kl?o.transition(l):o:X.selection().transition(o)},X.transition.prototype=Lr,Lr.select=function(o){var l,f,h,v=this.id,g=this.namespace,T=[];o=Dt(o);for(var E=-1,C=this.length;++E<C;){T.push(l=[]);for(var D=this[E],I=-1,q=D.length;++I<q;)(h=D[I])&&(f=o.call(h,h.__data__,I,E))?("__data__"in h&&(f.__data__=h.__data__),jl(f,I,g,v,h[g][v]),l.push(f)):l.push(null)}return Jc(T,g,v)},Lr.selectAll=function(o){var l,f,h,v,g,T=this.id,E=this.namespace,C=[];o=Mt(o);for(var D=-1,I=this.length;++D<I;)for(var q=this[D],F=-1,Y=q.length;++F<Y;)if(h=q[F]){g=h[E][T],f=o.call(h,h.__data__,F,D),C.push(l=[]);for(var de=-1,J=f.length;++de<J;)(v=f[de])&&jl(v,de,E,T,g),l.push(v)}return Jc(C,E,T)},Lr.filter=function(o){var l,f,h,v=[];typeof o!="function"&&(o=Vr(o));for(var g=0,T=this.length;T>g;g++){v.push(l=[]);for(var f=this[g],E=0,C=f.length;C>E;E++)(h=f[E])&&o.call(h,h.__data__,E,g)&&l.push(h)}return Jc(v,this.namespace,this.id)},Lr.tween=function(o,l){var f=this.id,h=this.namespace;return arguments.length<2?this.node()[h][f].tween.get(o):fn(this,l==null?function(v){v[h][f].tween.remove(o)}:function(v){v[h][f].tween.set(o,l)})},Lr.attr=function(o,l){function f(){this.removeAttribute(E)}function h(){this.removeAttributeNS(E.space,E.local)}function v(C){return C==null?f:(C+="",function(){var D,I=this.getAttribute(E);return I!==C&&(D=T(I,C),function(q){this.setAttribute(E,D(q))})})}function g(C){return C==null?h:(C+="",function(){var D,I=this.getAttributeNS(E.space,E.local);return I!==C&&(D=T(I,C),function(q){this.setAttributeNS(E.space,E.local,D(q))})})}if(arguments.length<2){for(l in o)this.attr(l,o[l]);return this}var T=o=="transform"?Ii:di,E=X.ns.qualify(o);return Fh(this,"attr."+o,l,E.local?g:v)},Lr.attrTween=function(o,l){function f(g,T){var E=l.call(this,g,T,this.getAttribute(v));return E&&function(C){this.setAttribute(v,E(C))}}function h(g,T){var E=l.call(this,g,T,this.getAttributeNS(v.space,v.local));return E&&function(C){this.setAttributeNS(v.space,v.local,E(C))}}var v=X.ns.qualify(o);return this.tween("attr."+o,v.local?h:f)},Lr.style=function(o,l,f){function h(){this.style.removeProperty(o)}function v(T){return T==null?h:(T+="",function(){var E,C=e(this).getComputedStyle(this,null).getPropertyValue(o);return C!==T&&(E=di(C,T),function(D){this.style.setProperty(o,E(D),f)})})}var g=arguments.length;if(3>g){if(typeof o!="string"){2>g&&(l="");for(f in o)this.style(f,o[f],l);return this}f=""}return Fh(this,"style."+o,l,v)},Lr.styleTween=function(o,l,f){function h(v,g){var T=l.call(this,v,g,e(this).getComputedStyle(this,null).getPropertyValue(o));return T&&function(E){this.style.setProperty(o,T(E),f)}}return arguments.length<3&&(f=""),this.tween("style."+o,h)},Lr.text=function(o){return Fh(this,"text",o,Bh)},Lr.remove=function(){var o=this.namespace;return this.each("end.transition",function(){var l;this[o].count<2&&(l=this.parentNode)&&l.removeChild(this)})},Lr.ease=function(o){var l=this.id,f=this.namespace;return arguments.length<1?this.node()[f][l].ease:(typeof o!="function"&&(o=X.ease.apply(X,arguments)),fn(this,function(h){h[f][l].ease=o}))},Lr.delay=function(o){var l=this.id,f=this.namespace;return arguments.length<1?this.node()[f][l].delay:fn(this,typeof o=="function"?function(h,v,g){h[f][l].delay=+o.call(h,h.__data__,v,g)}:(o=+o,function(h){h[f][l].delay=o}))},Lr.duration=function(o){var l=this.id,f=this.namespace;return arguments.length<1?this.node()[f][l].duration:fn(this,typeof o=="function"?function(h,v,g){h[f][l].duration=Math.max(1,o.call(h,h.__data__,v,g))}:(o=Math.max(1,o),function(h){h[f][l].duration=o}))},Lr.each=function(o,l){var f=this.id,h=this.namespace;if(arguments.length<2){var v=Du,g=Kl;try{Kl=f,fn(this,function(T,E,C){Du=T[h][f],o.call(T,T.__data__,E,C)})}finally{Du=v,Kl=g}}else fn(this,function(T){var E=T[h][f];(E.event||(E.event=X.dispatch("start","end","interrupt"))).on(o,l)});return this},Lr.transition=function(){for(var o,l,f,h,v=this.id,g=++Xl,T=this.namespace,E=[],C=0,D=this.length;D>C;C++){E.push(o=[]);for(var l=this[C],I=0,q=l.length;q>I;I++)(f=l[I])&&(h=f[T][v],jl(f,I,T,g,{time:h.time,ease:h.ease,delay:h.delay+h.duration,duration:h.duration})),o.push(f)}return Jc(E,T,g)},X.svg.axis=function(){function o(D){D.each(function(){var I,q=X.select(this),F=this.__chart__||f,Y=this.__chart__=f.copy(),de=C??(Y.ticks?Y.ticks.apply(Y,E):Y.domain()),J=l??(Y.tickFormat?Y.tickFormat.apply(Y,E):le),fe=q.selectAll(".tick").data(de,Y),ce=fe.enter().insert("g",".domain").attr("class","tick").style("opacity",qt),he=X.transition(fe.exit()).style("opacity",qt).remove(),se=X.transition(fe.order()).style("opacity",1),pe=Math.max(v,0)+T,we=P(Y),Pe=q.selectAll(".domain").data([0]),xe=(Pe.enter().append("path").attr("class","domain"),X.transition(Pe));ce.append("line"),ce.append("text");var ze,vt,Tt,Rt,Ot=ce.select("line"),Ft=se.select("line"),nt=fe.select("text").text(J),it=ce.select("text"),It=se.select("text"),Je=h==="top"||h==="left"?-1:1;if(h==="bottom"||h==="top"?(I=Zm,ze="x",Tt="y",vt="x2",Rt="y2",nt.attr("dy",0>Je?"0em":".71em").style("text-anchor","middle"),xe.attr("d","M"+we[0]+","+Je*g+"V0H"+we[1]+"V"+Je*g)):(I=ib,ze="y",Tt="x",vt="y2",Rt="x2",nt.attr("dy",".32em").style("text-anchor",0>Je?"end":"start"),xe.attr("d","M"+Je*g+","+we[0]+"H0V"+we[1]+"H"+Je*g)),Ot.attr(Rt,Je*v),it.attr(Tt,Je*pe),Ft.attr(vt,0).attr(Rt,Je*v),It.attr(ze,0).attr(Tt,Je*pe),Y.rangeBand){var wt=Y,Kt=wt.rangeBand()/2;F=Y=function(vn){return wt(vn)+Kt}}else F.rangeBand?F=Y:he.call(I,Y,F);ce.call(I,F,Y),se.call(I,Y,Y)})}var l,f=X.scale.linear(),h=cg,v=6,g=6,T=3,E=[10],C=null;return o.scale=function(D){return arguments.length?(f=D,o):f},o.orient=function(D){return arguments.length?(h=D in fg?D+"":cg,o):h},o.ticks=function(){return arguments.length?(E=Ws(arguments),o):E},o.tickValues=function(D){return arguments.length?(C=D,o):C},o.tickFormat=function(D){return arguments.length?(l=D,o):l},o.tickSize=function(D){var I=arguments.length;return I?(v=+D,g=+arguments[I-1],o):v},o.innerTickSize=function(D){return arguments.length?(v=+D,o):v},o.outerTickSize=function(D){return arguments.length?(g=+D,o):g},o.tickPadding=function(D){return arguments.length?(T=+D,o):T},o.tickSubdivide=function(){return arguments.length&&o},o};var cg="bottom",fg={top:1,right:1,bottom:1,left:1};X.svg.brush=function(){function o(J){J.each(function(){var fe=X.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",v).on("touchstart.brush",v),ce=fe.selectAll(".background").data([0]);ce.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),fe.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var he=fe.selectAll(".resize").data(de,le);he.exit().remove(),he.enter().append("g").attr("class",function(Pe){return"resize "+Pe}).style("cursor",function(Pe){return _b[Pe]}).append("rect").attr("x",function(Pe){return/[ew]$/.test(Pe)?-3:null}).attr("y",function(Pe){return/^[ns]/.test(Pe)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),he.style("display",o.empty()?"none":null);var se,pe=X.transition(fe),we=X.transition(ce);C&&(se=P(C),we.attr("x",se[0]).attr("width",se[1]-se[0]),f(pe)),D&&(se=P(D),we.attr("y",se[0]).attr("height",se[1]-se[0]),h(pe)),l(pe)})}function l(J){J.selectAll(".resize").attr("transform",function(fe){return"translate("+I[+/e$/.test(fe)]+","+q[+/^s/.test(fe)]+")"})}function f(J){J.select(".extent").attr("x",I[0]),J.selectAll(".extent,.n>rect,.s>rect").attr("width",I[1]-I[0])}function h(J){J.select(".extent").attr("y",q[0]),J.selectAll(".extent,.e>rect,.w>rect").attr("height",q[1]-q[0])}function v(){function J(){X.event.keyCode==32&&(Ft||(pe=null,it[0]-=I[1],it[1]-=q[1],Ft=2),Oe())}function fe(){X.event.keyCode==32&&Ft==2&&(it[0]+=I[1],it[1]+=q[1],Ft=0,Oe())}function ce(){var Kt=X.mouse(Pe),vn=!1;we&&(Kt[0]+=we[0],Kt[1]+=we[1]),Ft||(X.event.altKey?(pe||(pe=[(I[0]+I[1])/2,(q[0]+q[1])/2]),it[0]=I[+(Kt[0]<pe[0])],it[1]=q[+(Kt[1]<pe[1])]):pe=null),Rt&&he(Kt,C,0)&&(f(vt),vn=!0),Ot&&he(Kt,D,1)&&(h(vt),vn=!0),vn&&(l(vt),ze({type:"brush",mode:Ft?"move":"resize"}))}function he(Kt,vn,On){var Wn,xr,Pi=P(vn),ja=Pi[0],Zo=Pi[1],Li=it[On],qo=On?q:I,Es=qo[1]-qo[0];return Ft&&(ja-=Li,Zo-=Es+Li),Wn=(On?Y:F)?Math.max(ja,Math.min(Zo,Kt[On])):Kt[On],Ft?xr=(Wn+=Li)+Es:(pe&&(Li=Math.max(ja,Math.min(Zo,2*pe[On]-Wn))),Wn>Li?(xr=Wn,Wn=Li):xr=Li),qo[0]!=Wn||qo[1]!=xr?(On?T=null:g=null,qo[0]=Wn,qo[1]=xr,!0):void 0}function se(){ce(),vt.style("pointer-events","all").selectAll(".resize").style("display",o.empty()?"none":null),X.select("body").style("cursor",null),It.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),nt(),ze({type:"brushend"})}var pe,we,Pe=this,xe=X.select(X.event.target),ze=E.of(Pe,arguments),vt=X.select(Pe),Tt=xe.datum(),Rt=!/^(n|s)$/.test(Tt)&&C,Ot=!/^(e|w)$/.test(Tt)&&D,Ft=xe.classed("extent"),nt=Be(Pe),it=X.mouse(Pe),It=X.select(e(Pe)).on("keydown.brush",J).on("keyup.brush",fe);if(X.event.changedTouches?It.on("touchmove.brush",ce).on("touchend.brush",se):It.on("mousemove.brush",ce).on("mouseup.brush",se),vt.interrupt().selectAll("*").interrupt(),Ft)it[0]=I[0]-it[0],it[1]=q[0]-it[1];else if(Tt){var Je=+/w$/.test(Tt),wt=+/^n/.test(Tt);we=[I[1-Je]-it[0],q[1-wt]-it[1]],it[0]=I[Je],it[1]=q[wt]}else X.event.altKey&&(pe=it.slice());vt.style("pointer-events","none").selectAll(".resize").style("display",null),X.select("body").style("cursor",xe.style("cursor")),ze({type:"brushstart"}),ce()}var g,T,E=lt(o,"brushstart","brush","brushend"),C=null,D=null,I=[0,0],q=[0,0],F=!0,Y=!0,de=ap[0];return o.event=function(J){J.each(function(){var fe=E.of(this,arguments),ce={x:I,y:q,i:g,j:T},he=this.__chart__||ce;this.__chart__=ce,Kl?X.select(this).transition().each("start.brush",function(){g=he.i,T=he.j,I=he.x,q=he.y,fe({type:"brushstart"})}).tween("brush:brush",function(){var se=We(I,ce.x),pe=We(q,ce.y);return g=T=null,function(we){I=ce.x=se(we),q=ce.y=pe(we),fe({type:"brush",mode:"resize"})}}).each("end.brush",function(){g=ce.i,T=ce.j,fe({type:"brush",mode:"resize"}),fe({type:"brushend"})}):(fe({type:"brushstart"}),fe({type:"brush",mode:"resize"}),fe({type:"brushend"}))})},o.x=function(J){return arguments.length?(C=J,de=ap[!C<<1|!D],o):C},o.y=function(J){return arguments.length?(D=J,de=ap[!C<<1|!D],o):D},o.clamp=function(J){return arguments.length?(C&&D?(F=!!J[0],Y=!!J[1]):C?F=!!J:D&&(Y=!!J),o):C&&D?[F,Y]:C?F:D?Y:null},o.extent=function(J){var fe,ce,he,se,pe;return arguments.length?(C&&(fe=J[0],ce=J[1],D&&(fe=fe[0],ce=ce[0]),g=[fe,ce],C.invert&&(fe=C(fe),ce=C(ce)),fe>ce&&(pe=fe,fe=ce,ce=pe),fe==I[0]&&ce==I[1]||(I=[fe,ce])),D&&(he=J[0],se=J[1],C&&(he=he[1],se=se[1]),T=[he,se],D.invert&&(he=D(he),se=D(se)),he>se&&(pe=he,he=se,se=pe),he==q[0]&&se==q[1]||(q=[he,se])),o):(C&&(g?(fe=g[0],ce=g[1]):(fe=I[0],ce=I[1],C.invert&&(fe=C.invert(fe),ce=C.invert(ce)),fe>ce&&(pe=fe,fe=ce,ce=pe))),D&&(T?(he=T[0],se=T[1]):(he=q[0],se=q[1],D.invert&&(he=D.invert(he),se=D.invert(se)),he>se&&(pe=he,he=se,se=pe))),C&&D?[[fe,he],[ce,se]]:C?[fe,ce]:D&&[he,se])},o.clear=function(){return o.empty()||(I=[0,0],q=[0,0],g=T=null),o},o.empty=function(){return!!C&&I[0]==I[1]||!!D&&q[0]==q[1]},X.rebind(o,E,"on")};var _b={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ap=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],sp=Vt.format=lf.timeFormat,dg=sp.utc,hg=dg("%Y-%m-%dT%H:%M:%S.%LZ");sp.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?qh:hg,qh.parse=function(o){var l=new Date(o);return isNaN(l)?null:l},qh.toString=hg.toString,Vt.second=rn(function(o){return new so(1e3*Math.floor(o/1e3))},function(o,l){o.setTime(o.getTime()+1e3*Math.floor(l))},function(o){return o.getSeconds()}),Vt.seconds=Vt.second.range,Vt.seconds.utc=Vt.second.utc.range,Vt.minute=rn(function(o){return new so(6e4*Math.floor(o/6e4))},function(o,l){o.setTime(o.getTime()+6e4*Math.floor(l))},function(o){return o.getMinutes()}),Vt.minutes=Vt.minute.range,Vt.minutes.utc=Vt.minute.utc.range,Vt.hour=rn(function(o){var l=o.getTimezoneOffset()/60;return new so(36e5*(Math.floor(o/36e5-l)+l))},function(o,l){o.setTime(o.getTime()+36e5*Math.floor(l))},function(o){return o.getHours()}),Vt.hours=Vt.hour.range,Vt.hours.utc=Vt.hour.utc.range,Vt.month=rn(function(o){return o=Vt.day(o),o.setDate(1),o},function(o,l){o.setMonth(o.getMonth()+l)},function(o){return o.getMonth()}),Vt.months=Vt.month.range,Vt.months.utc=Vt.month.utc.range;var bd=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],lp=[[Vt.second,1],[Vt.second,5],[Vt.second,15],[Vt.second,30],[Vt.minute,1],[Vt.minute,5],[Vt.minute,15],[Vt.minute,30],[Vt.hour,1],[Vt.hour,3],[Vt.hour,6],[Vt.hour,12],[Vt.day,1],[Vt.day,2],[Vt.week,1],[Vt.month,1],[Vt.month,3],[Vt.year,1]],wb=sp.multi([[".%L",function(o){return o.getMilliseconds()}],[":%S",function(o){return o.getSeconds()}],["%I:%M",function(o){return o.getMinutes()}],["%I %p",function(o){return o.getHours()}],["%a %d",function(o){return o.getDay()&&o.getDate()!=1}],["%b %d",function(o){return o.getDate()!=1}],["%B",function(o){return o.getMonth()}],["%Y",So]]),xb={range:function(o,l,f){return X.range(Math.ceil(o/f)*f,+l,f).map(Cu)},floor:le,ceil:le};lp.year=Vt.year,Vt.scale=function(){return Eu(X.scale.linear(),lp,wb)};var pg=lp.map(function(o){return[o[0].utc,o[1]]}),Eb=dg.multi([[".%L",function(o){return o.getUTCMilliseconds()}],[":%S",function(o){return o.getUTCSeconds()}],["%I:%M",function(o){return o.getUTCMinutes()}],["%I %p",function(o){return o.getUTCHours()}],["%a %d",function(o){return o.getUTCDay()&&o.getUTCDate()!=1}],["%b %d",function(o){return o.getUTCDate()!=1}],["%B",function(o){return o.getUTCMonth()}],["%Y",So]]);pg.year=Vt.year.utc,Vt.scale.utc=function(){return Eu(X.scale.linear(),pg,Eb)},X.text=R(function(o){return o.responseText}),X.json=function(o,l){return G(o,"application/json",ob,l)},X.html=function(o,l){return G(o,"text/html",zh,l)},X.xml=R(function(o){return o.responseXML}),typeof define=="function"&&define.amd?(this.d3=X,define(X)):typeof Iy=="object"&&Iy.exports?Iy.exports=X:this.d3=X})()});var yS=eu((mw,gw)=>{(function(n,e){typeof mw=="object"&&typeof gw<"u"?gw.exports=e():typeof define=="function"&&define.amd?define(e):n.Popper=e()})(mw,function(){"use strict";var n=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",e=function(){for(var A=["Edge","Trident","Firefox"],R=0;R<A.length;R+=1)if(n&&navigator.userAgent.indexOf(A[R])>=0)return 1;return 0}();function t(A){var R=!1;return function(){R||(R=!0,window.Promise.resolve().then(function(){R=!1,A()}))}}function r(A){var R=!1;return function(){R||(R=!0,setTimeout(function(){R=!1,A()},e))}}var i=n&&window.Promise,a=i?t:r;function u(A){var R={};return A&&R.toString.call(A)==="[object Function]"}function d(A,R){if(A.nodeType!==1)return[];var G=A.ownerDocument.defaultView,ue=G.getComputedStyle(A,null);return R?ue[R]:ue}function m(A){return A.nodeName==="HTML"?A:A.parentNode||A.host}function y(A){if(!A)return document.body;switch(A.nodeName){case"HTML":case"BODY":return A.ownerDocument.body;case"#document":return A.body}var R=d(A),G=R.overflow,ue=R.overflowX,Re=R.overflowY;return/(auto|scroll|overlay)/.test(G+Re+ue)?A:y(m(A))}function x(A){return A&&A.referenceNode?A.referenceNode:A}var S=n&&!!(window.MSInputMethodContext&&document.documentMode),L=n&&/MSIE 10/.test(navigator.userAgent);function H(A){return A===11?S:A===10?L:S||L}function V(A){if(!A)return document.documentElement;for(var R=H(10)?document.body:null,G=A.offsetParent||null;G===R&&A.nextElementSibling;)G=(A=A.nextElementSibling).offsetParent;var ue=G&&G.nodeName;return!ue||ue==="BODY"||ue==="HTML"?A?A.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(G.nodeName)!==-1&&d(G,"position")==="static"?V(G):G}function U(A){var R=A.nodeName;return R==="BODY"?!1:R==="HTML"||V(A.firstElementChild)===A}function Z(A){return A.parentNode!==null?Z(A.parentNode):A}function ae(A,R){if(!A||!A.nodeType||!R||!R.nodeType)return document.documentElement;var G=A.compareDocumentPosition(R)&Node.DOCUMENT_POSITION_FOLLOWING,ue=G?A:R,Re=G?R:A,qe=document.createRange();qe.setStart(ue,0),qe.setEnd(Re,0);var rt=qe.commonAncestorContainer;if(A!==rt&&R!==rt||ue.contains(Re))return U(rt)?rt:V(rt);var et=Z(A);return et.host?ae(et.host,R):ae(A,Z(R).host)}function le(A){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",G=R==="top"?"scrollTop":"scrollLeft",ue=A.nodeName;if(ue==="BODY"||ue==="HTML"){var Re=A.ownerDocument.documentElement,qe=A.ownerDocument.scrollingElement||Re;return qe[G]}return A[G]}function Ae(A,R){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ue=le(R,"top"),Re=le(R,"left"),qe=G?-1:1;return A.top+=ue*qe,A.bottom+=ue*qe,A.left+=Re*qe,A.right+=Re*qe,A}function ve(A,R){var G=R==="x"?"Left":"Top",ue=G==="Left"?"Right":"Bottom";return parseFloat(A["border"+G+"Width"])+parseFloat(A["border"+ue+"Width"])}function b(A,R,G,ue){return Math.max(R["offset"+A],R["scroll"+A],G["client"+A],G["offset"+A],G["scroll"+A],H(10)?parseInt(G["offset"+A])+parseInt(ue["margin"+(A==="Height"?"Top":"Left")])+parseInt(ue["margin"+(A==="Height"?"Bottom":"Right")]):0)}function te(A){var R=A.body,G=A.documentElement,ue=H(10)&&getComputedStyle(G);return{height:b("Height",R,G,ue),width:b("Width",R,G,ue)}}var ye=function(A,R){if(!(A instanceof R))throw new TypeError("Cannot call a class as a function")},Oe=function(){function A(R,G){for(var ue=0;ue<G.length;ue++){var Re=G[ue];Re.enumerable=Re.enumerable||!1,Re.configurable=!0,"value"in Re&&(Re.writable=!0),Object.defineProperty(R,Re.key,Re)}}return function(R,G,ue){return G&&A(R.prototype,G),ue&&A(R,ue),R}}(),De=function(A,R,G){return R in A?Object.defineProperty(A,R,{value:G,enumerable:!0,configurable:!0,writable:!0}):A[R]=G,A},lt=Object.assign||function(A){for(var R=1;R<arguments.length;R++){var G=arguments[R];for(var ue in G)Object.prototype.hasOwnProperty.call(G,ue)&&(A[ue]=G[ue])}return A};function ct(A){return lt({},A,{right:A.left+A.width,bottom:A.top+A.height})}function Dt(A){var R={};try{if(H(10)){R=A.getBoundingClientRect();var G=le(A,"top"),ue=le(A,"left");R.top+=G,R.left+=ue,R.bottom+=G,R.right+=ue}else R=A.getBoundingClientRect()}catch{}var Re={left:R.left,top:R.top,width:R.right-R.left,height:R.bottom-R.top},qe=A.nodeName==="HTML"?te(A.ownerDocument):{},rt=qe.width||A.clientWidth||Re.width,et=qe.height||A.clientHeight||Re.height,bt=A.offsetWidth-rt,ft=A.offsetHeight-et;if(bt||ft){var kt=d(A);bt-=ve(kt,"x"),ft-=ve(kt,"y"),Re.width-=bt,Re.height-=ft}return ct(Re)}function Mt(A,R){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ue=H(10),Re=R.nodeName==="HTML",qe=Dt(A),rt=Dt(R),et=y(A),bt=d(R),ft=parseFloat(bt.borderTopWidth),kt=parseFloat(bt.borderLeftWidth);G&&Re&&(rt.top=Math.max(rt.top,0),rt.left=Math.max(rt.left,0));var Nt=ct({top:qe.top-rt.top-ft,left:qe.left-rt.left-kt,width:qe.width,height:qe.height});if(Nt.marginTop=0,Nt.marginLeft=0,!ue&&Re){var an=parseFloat(bt.marginTop),$t=parseFloat(bt.marginLeft);Nt.top-=ft-an,Nt.bottom-=ft-an,Nt.left-=kt-$t,Nt.right-=kt-$t,Nt.marginTop=an,Nt.marginLeft=$t}return(ue&&!G?R.contains(et):R===et&&et.nodeName!=="BODY")&&(Nt=Ae(Nt,R)),Nt}function en(A){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,G=A.ownerDocument.documentElement,ue=Mt(A,G),Re=Math.max(G.clientWidth,window.innerWidth||0),qe=Math.max(G.clientHeight,window.innerHeight||0),rt=R?0:le(G),et=R?0:le(G,"left"),bt={top:rt-ue.top+ue.marginTop,left:et-ue.left+ue.marginLeft,width:Re,height:qe};return ct(bt)}function Yt(A){var R=A.nodeName;if(R==="BODY"||R==="HTML")return!1;if(d(A,"position")==="fixed")return!0;var G=m(A);return G?Yt(G):!1}function At(A){if(!A||!A.parentElement||H())return document.documentElement;for(var R=A.parentElement;R&&d(R,"transform")==="none";)R=R.parentElement;return R||document.documentElement}function tn(A,R,G,ue){var Re=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,qe={top:0,left:0},rt=Re?At(A):ae(A,x(R));if(ue==="viewport")qe=en(rt,Re);else{var et=void 0;ue==="scrollParent"?(et=y(m(R)),et.nodeName==="BODY"&&(et=A.ownerDocument.documentElement)):ue==="window"?et=A.ownerDocument.documentElement:et=ue;var bt=Mt(et,rt,Re);if(et.nodeName==="HTML"&&!Yt(rt)){var ft=te(A.ownerDocument),kt=ft.height,Nt=ft.width;qe.top+=bt.top-bt.marginTop,qe.bottom=kt+bt.top,qe.left+=bt.left-bt.marginLeft,qe.right=Nt+bt.left}else qe=bt}G=G||0;var an=typeof G=="number";return qe.left+=an?G:G.left||0,qe.top+=an?G:G.top||0,qe.right-=an?G:G.right||0,qe.bottom-=an?G:G.bottom||0,qe}function In(A){var R=A.width,G=A.height;return R*G}function Cn(A,R,G,ue,Re){var qe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(A.indexOf("auto")===-1)return A;var rt=tn(G,ue,qe,Re),et={top:{width:rt.width,height:R.top-rt.top},right:{width:rt.right-R.right,height:rt.height},bottom:{width:rt.width,height:rt.bottom-R.bottom},left:{width:R.left-rt.left,height:rt.height}},bt=Object.keys(et).map(function(an){return lt({key:an},et[an],{area:In(et[an])})}).sort(function(an,$t){return $t.area-an.area}),ft=bt.filter(function(an){var $t=an.width,rn=an.height;return $t>=G.clientWidth&&rn>=G.clientHeight}),kt=ft.length>0?ft[0].key:bt[0].key,Nt=A.split("-")[1];return kt+(Nt?"-"+Nt:"")}function Vn(A,R,G){var ue=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,Re=ue?At(R):ae(R,x(G));return Mt(G,Re,ue)}function rr(A){var R=A.ownerDocument.defaultView,G=R.getComputedStyle(A),ue=parseFloat(G.marginTop||0)+parseFloat(G.marginBottom||0),Re=parseFloat(G.marginLeft||0)+parseFloat(G.marginRight||0),qe={width:A.offsetWidth+Re,height:A.offsetHeight+ue};return qe}function ur(A){var R={left:"right",right:"left",bottom:"top",top:"bottom"};return A.replace(/left|right|bottom|top/g,function(G){return R[G]})}function yt(A,R,G){G=G.split("-")[0];var ue=rr(A),Re={width:ue.width,height:ue.height},qe=["right","left"].indexOf(G)!==-1,rt=qe?"top":"left",et=qe?"left":"top",bt=qe?"height":"width",ft=qe?"width":"height";return Re[rt]=R[rt]+R[bt]/2-ue[bt]/2,G===et?Re[et]=R[et]-ue[ft]:Re[et]=R[ur(et)],Re}function Yn(A,R){return Array.prototype.find?A.find(R):A.filter(R)[0]}function Vr(A,R,G){if(Array.prototype.findIndex)return A.findIndex(function(Re){return Re[R]===G});var ue=Yn(A,function(Re){return Re[R]===G});return A.indexOf(ue)}function yr(A,R,G){var ue=G===void 0?A:A.slice(0,Vr(A,"name",G));return ue.forEach(function(Re){Re.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var qe=Re.function||Re.fn;Re.enabled&&u(qe)&&(R.offsets.popper=ct(R.offsets.popper),R.offsets.reference=ct(R.offsets.reference),R=qe(R,Re))}),R}function fn(){if(!this.state.isDestroyed){var A={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};A.offsets.reference=Vn(this.state,this.popper,this.reference,this.options.positionFixed),A.placement=Cn(this.options.placement,A.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),A.originalPlacement=A.placement,A.positionFixed=this.options.positionFixed,A.offsets.popper=yt(this.popper,A.offsets.reference,A.placement),A.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",A=yr(this.modifiers,A),this.state.isCreated?this.options.onUpdate(A):(this.state.isCreated=!0,this.options.onCreate(A))}}function qn(A,R){return A.some(function(G){var ue=G.name,Re=G.enabled;return Re&&ue===R})}function re(A){for(var R=[!1,"ms","Webkit","Moz","O"],G=A.charAt(0).toUpperCase()+A.slice(1),ue=0;ue<R.length;ue++){var Re=R[ue],qe=Re?""+Re+G:A;if(typeof document.body.style[qe]<"u")return qe}return null}function ge(){return this.state.isDestroyed=!0,qn(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[re("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Te(A){var R=A.ownerDocument;return R?R.defaultView:window}function Ue(A,R,G,ue){var Re=A.nodeName==="BODY",qe=Re?A.ownerDocument.defaultView:A;qe.addEventListener(R,G,{passive:!0}),Re||Ue(y(qe.parentNode),R,G,ue),ue.push(qe)}function Be(A,R,G,ue){G.updateBound=ue,Te(A).addEventListener("resize",G.updateBound,{passive:!0});var Re=y(A);return Ue(Re,"scroll",G.updateBound,G.scrollParents),G.scrollElement=Re,G.eventsEnabled=!0,G}function $e(){this.state.eventsEnabled||(this.state=Be(this.reference,this.options,this.state,this.scheduleUpdate))}function Ne(A,R){return Te(A).removeEventListener("resize",R.updateBound),R.scrollParents.forEach(function(G){G.removeEventListener("scroll",R.updateBound)}),R.updateBound=null,R.scrollParents=[],R.scrollElement=null,R.eventsEnabled=!1,R}function Ie(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Ne(this.reference,this.state))}function je(A){return A!==""&&!isNaN(parseFloat(A))&&isFinite(A)}function Xe(A,R){Object.keys(R).forEach(function(G){var ue="";["width","height","top","right","bottom","left"].indexOf(G)!==-1&&je(R[G])&&(ue="px"),A.style[G]=R[G]+ue})}function He(A,R){Object.keys(R).forEach(function(G){var ue=R[G];ue!==!1?A.setAttribute(G,R[G]):A.removeAttribute(G)})}function st(A){return Xe(A.instance.popper,A.styles),He(A.instance.popper,A.attributes),A.arrowElement&&Object.keys(A.arrowStyles).length&&Xe(A.arrowElement,A.arrowStyles),A}function Xt(A,R,G,ue,Re){var qe=Vn(Re,R,A,G.positionFixed),rt=Cn(G.placement,qe,R,A,G.modifiers.flip.boundariesElement,G.modifiers.flip.padding);return R.setAttribute("x-placement",rt),Xe(R,{position:G.positionFixed?"fixed":"absolute"}),G}function Qt(A,R){var G=A.offsets,ue=G.popper,Re=G.reference,qe=Math.round,rt=Math.floor,et=function(ir){return ir},bt=qe(Re.width),ft=qe(ue.width),kt=["left","right"].indexOf(A.placement)!==-1,Nt=A.placement.indexOf("-")!==-1,an=bt%2===ft%2,$t=bt%2===1&&ft%2===1,rn=R?kt||Nt||an?qe:rt:et,$n=R?qe:et;return{left:rn($t&&!Nt&&R?ue.left-1:ue.left),top:$n(ue.top),bottom:$n(ue.bottom),right:rn(ue.right)}}var un=n&&/Firefox/i.test(navigator.userAgent);function Ln(A,R){var G=R.x,ue=R.y,Re=A.offsets.popper,qe=Yn(A.instance.modifiers,function(ti){return ti.name==="applyStyle"}).gpuAcceleration;qe!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var rt=qe!==void 0?qe:R.gpuAcceleration,et=V(A.instance.popper),bt=Dt(et),ft={position:Re.position},kt=Qt(A,window.devicePixelRatio<2||!un),Nt=G==="bottom"?"top":"bottom",an=ue==="right"?"left":"right",$t=re("transform"),rn=void 0,$n=void 0;if(Nt==="bottom"?et.nodeName==="HTML"?$n=-et.clientHeight+kt.bottom:$n=-bt.height+kt.bottom:$n=kt.top,an==="right"?et.nodeName==="HTML"?rn=-et.clientWidth+kt.right:rn=-bt.width+kt.right:rn=kt.left,rt&&$t)ft[$t]="translate3d("+rn+"px, "+$n+"px, 0)",ft[Nt]=0,ft[an]=0,ft.willChange="transform";else{var ei=Nt==="bottom"?-1:1,ir=an==="right"?-1:1;ft[Nt]=$n*ei,ft[an]=rn*ir,ft.willChange=Nt+", "+an}var Dr={"x-placement":A.placement};return A.attributes=lt({},Dr,A.attributes),A.styles=lt({},ft,A.styles),A.arrowStyles=lt({},A.offsets.arrow,A.arrowStyles),A}function xn(A,R,G){var ue=Yn(A,function(et){var bt=et.name;return bt===R}),Re=!!ue&&A.some(function(et){return et.name===G&&et.enabled&&et.order<ue.order});if(!Re){var qe="`"+R+"`",rt="`"+G+"`";console.warn(rt+" modifier is required by "+qe+" modifier in order to work, be sure to include it before "+qe+"!")}return Re}function An(A,R){var G;if(!xn(A.instance.modifiers,"arrow","keepTogether"))return A;var ue=R.element;if(typeof ue=="string"){if(ue=A.instance.popper.querySelector(ue),!ue)return A}else if(!A.instance.popper.contains(ue))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),A;var Re=A.placement.split("-")[0],qe=A.offsets,rt=qe.popper,et=qe.reference,bt=["left","right"].indexOf(Re)!==-1,ft=bt?"height":"width",kt=bt?"Top":"Left",Nt=kt.toLowerCase(),an=bt?"left":"top",$t=bt?"bottom":"right",rn=rr(ue)[ft];et[$t]-rn<rt[Nt]&&(A.offsets.popper[Nt]-=rt[Nt]-(et[$t]-rn)),et[Nt]+rn>rt[$t]&&(A.offsets.popper[Nt]+=et[Nt]+rn-rt[$t]),A.offsets.popper=ct(A.offsets.popper);var $n=et[Nt]+et[ft]/2-rn/2,ei=d(A.instance.popper),ir=parseFloat(ei["margin"+kt]),Dr=parseFloat(ei["border"+kt+"Width"]),ti=$n-A.offsets.popper[Nt]-ir-Dr;return ti=Math.max(Math.min(rt[ft]-rn,ti),0),A.arrowElement=ue,A.offsets.arrow=(G={},De(G,Nt,Math.round(ti)),De(G,an,""),G),A}function bn(A){return A==="end"?"start":A==="start"?"end":A}var Xn=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Sr=Xn.slice(3);function ji(A){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,G=Sr.indexOf(A),ue=Sr.slice(G+1).concat(Sr.slice(0,G));return R?ue.reverse():ue}var Jr={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Tr(A,R){if(qn(A.instance.modifiers,"inner")||A.flipped&&A.placement===A.originalPlacement)return A;var G=tn(A.instance.popper,A.instance.reference,R.padding,R.boundariesElement,A.positionFixed),ue=A.placement.split("-")[0],Re=ur(ue),qe=A.placement.split("-")[1]||"",rt=[];switch(R.behavior){case Jr.FLIP:rt=[ue,Re];break;case Jr.CLOCKWISE:rt=ji(ue);break;case Jr.COUNTERCLOCKWISE:rt=ji(ue,!0);break;default:rt=R.behavior}return rt.forEach(function(et,bt){if(ue!==et||rt.length===bt+1)return A;ue=A.placement.split("-")[0],Re=ur(ue);var ft=A.offsets.popper,kt=A.offsets.reference,Nt=Math.floor,an=ue==="left"&&Nt(ft.right)>Nt(kt.left)||ue==="right"&&Nt(ft.left)<Nt(kt.right)||ue==="top"&&Nt(ft.bottom)>Nt(kt.top)||ue==="bottom"&&Nt(ft.top)<Nt(kt.bottom),$t=Nt(ft.left)<Nt(G.left),rn=Nt(ft.right)>Nt(G.right),$n=Nt(ft.top)<Nt(G.top),ei=Nt(ft.bottom)>Nt(G.bottom),ir=ue==="left"&&$t||ue==="right"&&rn||ue==="top"&&$n||ue==="bottom"&&ei,Dr=["top","bottom"].indexOf(ue)!==-1,ti=!!R.flipVariations&&(Dr&&qe==="start"&&$t||Dr&&qe==="end"&&rn||!Dr&&qe==="start"&&$n||!Dr&&qe==="end"&&ei),go=!!R.flipVariationsByContent&&(Dr&&qe==="start"&&rn||Dr&&qe==="end"&&$t||!Dr&&qe==="start"&&ei||!Dr&&qe==="end"&&$n),sa=ti||go;(an||ir||sa)&&(A.flipped=!0,(an||ir)&&(ue=rt[bt+1]),sa&&(qe=bn(qe)),A.placement=ue+(qe?"-"+qe:""),A.offsets.popper=lt({},A.offsets.popper,yt(A.instance.popper,A.offsets.reference,A.placement)),A=yr(A.instance.modifiers,A,"flip"))}),A}function ci(A){var R=A.offsets,G=R.popper,ue=R.reference,Re=A.placement.split("-")[0],qe=Math.floor,rt=["top","bottom"].indexOf(Re)!==-1,et=rt?"right":"bottom",bt=rt?"left":"top",ft=rt?"width":"height";return G[et]<qe(ue[bt])&&(A.offsets.popper[bt]=qe(ue[bt])-G[ft]),G[bt]>qe(ue[et])&&(A.offsets.popper[bt]=qe(ue[et])),A}function Br(A,R,G,ue){var Re=A.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),qe=+Re[1],rt=Re[2];if(!qe)return A;if(rt.indexOf("%")===0){var et=void 0;switch(rt){case"%p":et=G;break;case"%":case"%r":default:et=ue}var bt=ct(et);return bt[R]/100*qe}else if(rt==="vh"||rt==="vw"){var ft=void 0;return rt==="vh"?ft=Math.max(document.documentElement.clientHeight,window.innerHeight||0):ft=Math.max(document.documentElement.clientWidth,window.innerWidth||0),ft/100*qe}else return qe}function Ht(A,R,G,ue){var Re=[0,0],qe=["right","left"].indexOf(ue)!==-1,rt=A.split(/(\+|\-)/).map(function(kt){return kt.trim()}),et=rt.indexOf(Yn(rt,function(kt){return kt.search(/,|\s/)!==-1}));rt[et]&&rt[et].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var bt=/\s*,\s*|\s+/,ft=et!==-1?[rt.slice(0,et).concat([rt[et].split(bt)[0]]),[rt[et].split(bt)[1]].concat(rt.slice(et+1))]:[rt];return ft=ft.map(function(kt,Nt){var an=(Nt===1?!qe:qe)?"height":"width",$t=!1;return kt.reduce(function(rn,$n){return rn[rn.length-1]===""&&["+","-"].indexOf($n)!==-1?(rn[rn.length-1]=$n,$t=!0,rn):$t?(rn[rn.length-1]+=$n,$t=!1,rn):rn.concat($n)},[]).map(function(rn){return Br(rn,an,R,G)})}),ft.forEach(function(kt,Nt){kt.forEach(function(an,$t){je(an)&&(Re[Nt]+=an*(kt[$t-1]==="-"?-1:1))})}),Re}function Tn(A,R){var G=R.offset,ue=A.placement,Re=A.offsets,qe=Re.popper,rt=Re.reference,et=ue.split("-")[0],bt=void 0;return je(+G)?bt=[+G,0]:bt=Ht(G,qe,rt,et),et==="left"?(qe.top+=bt[0],qe.left-=bt[1]):et==="right"?(qe.top+=bt[0],qe.left+=bt[1]):et==="top"?(qe.left+=bt[0],qe.top-=bt[1]):et==="bottom"&&(qe.left+=bt[0],qe.top+=bt[1]),A.popper=qe,A}function to(A,R){var G=R.boundariesElement||V(A.instance.popper);A.instance.reference===G&&(G=V(G));var ue=re("transform"),Re=A.instance.popper.style,qe=Re.top,rt=Re.left,et=Re[ue];Re.top="",Re.left="",Re[ue]="";var bt=tn(A.instance.popper,A.instance.reference,R.padding,G,A.positionFixed);Re.top=qe,Re.left=rt,Re[ue]=et,R.boundaries=bt;var ft=R.priority,kt=A.offsets.popper,Nt={primary:function($t){var rn=kt[$t];return kt[$t]<bt[$t]&&!R.escapeWithReference&&(rn=Math.max(kt[$t],bt[$t])),De({},$t,rn)},secondary:function($t){var rn=$t==="right"?"left":"top",$n=kt[rn];return kt[$t]>bt[$t]&&!R.escapeWithReference&&($n=Math.min(kt[rn],bt[$t]-($t==="right"?kt.width:kt.height))),De({},rn,$n)}};return ft.forEach(function(an){var $t=["left","top"].indexOf(an)!==-1?"primary":"secondary";kt=lt({},kt,Nt[$t](an))}),A.offsets.popper=kt,A}function po(A){var R=A.placement,G=R.split("-")[0],ue=R.split("-")[1];if(ue){var Re=A.offsets,qe=Re.reference,rt=Re.popper,et=["bottom","top"].indexOf(G)!==-1,bt=et?"left":"top",ft=et?"width":"height",kt={start:De({},bt,qe[bt]),end:De({},bt,qe[bt]+qe[ft]-rt[ft])};A.offsets.popper=lt({},rt,kt[ue])}return A}function mo(A){if(!xn(A.instance.modifiers,"hide","preventOverflow"))return A;var R=A.offsets.reference,G=Yn(A.instance.modifiers,function(ue){return ue.name==="preventOverflow"}).boundaries;if(R.bottom<G.top||R.left>G.right||R.top>G.bottom||R.right<G.left){if(A.hide===!0)return A;A.hide=!0,A.attributes["x-out-of-boundaries"]=""}else{if(A.hide===!1)return A;A.hide=!1,A.attributes["x-out-of-boundaries"]=!1}return A}function vi(A){var R=A.placement,G=R.split("-")[0],ue=A.offsets,Re=ue.popper,qe=ue.reference,rt=["left","right"].indexOf(G)!==-1,et=["top","left"].indexOf(G)===-1;return Re[rt?"left":"top"]=qe[G]-(et?Re[rt?"width":"height"]:0),A.placement=ur(R),A.offsets.popper=ct(Re),A}var Zr={shift:{order:100,enabled:!0,fn:po},offset:{order:200,enabled:!0,fn:Tn,offset:0},preventOverflow:{order:300,enabled:!0,fn:to,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ci},arrow:{order:500,enabled:!0,fn:An,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Tr,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:vi},hide:{order:800,enabled:!0,fn:mo},computeStyle:{order:850,enabled:!0,fn:Ln,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:st,onLoad:Xt,gpuAcceleration:void 0}},Ki={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Zr},xo=function(){function A(R,G){var ue=this,Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ye(this,A),this.scheduleUpdate=function(){return requestAnimationFrame(ue.update)},this.update=a(this.update.bind(this)),this.options=lt({},A.Defaults,Re),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=R&&R.jquery?R[0]:R,this.popper=G&&G.jquery?G[0]:G,this.options.modifiers={},Object.keys(lt({},A.Defaults.modifiers,Re.modifiers)).forEach(function(rt){ue.options.modifiers[rt]=lt({},A.Defaults.modifiers[rt]||{},Re.modifiers?Re.modifiers[rt]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(rt){return lt({name:rt},ue.options.modifiers[rt])}).sort(function(rt,et){return rt.order-et.order}),this.modifiers.forEach(function(rt){rt.enabled&&u(rt.onLoad)&&rt.onLoad(ue.reference,ue.popper,ue.options,rt,ue.state)}),this.update();var qe=this.options.eventsEnabled;qe&&this.enableEventListeners(),this.state.eventsEnabled=qe}return Oe(A,[{key:"update",value:function(){return fn.call(this)}},{key:"destroy",value:function(){return ge.call(this)}},{key:"enableEventListeners",value:function(){return $e.call(this)}},{key:"disableEventListeners",value:function(){return Ie.call(this)}}]),A}();return xo.Utils=(typeof window<"u"?window:global).PopperUtils,xo.placements=Xn,xo.Defaults=Ki,xo})});var vw=eu((Ny,bS)=>{(function(n,e){typeof Ny=="object"&&typeof bS<"u"?e(Ny,Cp(),yS()):typeof define=="function"&&define.amd?define(["exports","jquery","popper.js"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n.bootstrap={},n.jQuery,n.Popper))})(Ny,function(n,e,t){"use strict";function r(Qe){return Qe&&typeof Qe=="object"&&"default"in Qe?Qe:{default:Qe}}var i=r(e),a=r(t);function u(Qe,ke){for(var be=0;be<ke.length;be++){var P=ke[be];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(Qe,P.key,P)}}function d(Qe,ke,be){return ke&&u(Qe.prototype,ke),be&&u(Qe,be),Qe}function m(){return m=Object.assign||function(Qe){for(var ke=1;ke<arguments.length;ke++){var be=arguments[ke];for(var P in be)Object.prototype.hasOwnProperty.call(be,P)&&(Qe[P]=be[P])}return Qe},m.apply(this,arguments)}function y(Qe,ke){Qe.prototype=Object.create(ke.prototype),Qe.prototype.constructor=Qe,x(Qe,ke)}function x(Qe,ke){return x=Object.setPrototypeOf||function(P,Q){return P.__proto__=Q,P},x(Qe,ke)}var S="transitionend",L=1e6,H=1e3;function V(Qe){return Qe===null||typeof Qe>"u"?""+Qe:{}.toString.call(Qe).match(/\s([a-z]+)/i)[1].toLowerCase()}function U(){return{bindType:S,delegateType:S,handle:function(ke){if(i.default(ke.target).is(this))return ke.handleObj.handler.apply(this,arguments)}}}function Z(Qe){var ke=this,be=!1;return i.default(this).one(le.TRANSITION_END,function(){be=!0}),setTimeout(function(){be||le.triggerTransitionEnd(ke)},Qe),this}function ae(){i.default.fn.emulateTransitionEnd=Z,i.default.event.special[le.TRANSITION_END]=U()}var le={TRANSITION_END:"bsTransitionEnd",getUID:function(ke){do ke+=~~(Math.random()*L);while(document.getElementById(ke));return ke},getSelectorFromElement:function(ke){var be=ke.getAttribute("data-target");if(!be||be==="#"){var P=ke.getAttribute("href");be=P&&P!=="#"?P.trim():""}try{return document.querySelector(be)?be:null}catch{return null}},getTransitionDurationFromElement:function(ke){if(!ke)return 0;var be=i.default(ke).css("transition-duration"),P=i.default(ke).css("transition-delay"),Q=parseFloat(be),me=parseFloat(P);return!Q&&!me?0:(be=be.split(",")[0],P=P.split(",")[0],(parseFloat(be)+parseFloat(P))*H)},reflow:function(ke){return ke.offsetHeight},triggerTransitionEnd:function(ke){i.default(ke).trigger(S)},supportsTransitionEnd:function(){return!!S},isElement:function(ke){return(ke[0]||ke).nodeType},typeCheckConfig:function(ke,be,P){for(var Q in P)if(Object.prototype.hasOwnProperty.call(P,Q)){var me=P[Q],tt=be[Q],pt=tt&&le.isElement(tt)?"element":V(tt);if(!new RegExp(me).test(pt))throw new Error(ke.toUpperCase()+": "+('Option "'+Q+'" provided type "'+pt+'" ')+('but expected type "'+me+'".'))}},findShadowRoot:function(ke){if(!document.documentElement.attachShadow)return null;if(typeof ke.getRootNode=="function"){var be=ke.getRootNode();return be instanceof ShadowRoot?be:null}return ke instanceof ShadowRoot?ke:ke.parentNode?le.findShadowRoot(ke.parentNode):null},jQueryDetection:function(){if(typeof i.default>"u")throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var ke=i.default.fn.jquery.split(" ")[0].split("."),be=1,P=2,Q=9,me=1,tt=4;if(ke[0]<P&&ke[1]<Q||ke[0]===be&&ke[1]===Q&&ke[2]<me||ke[0]>=tt)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};le.jQueryDetection(),ae();var Ae="alert",ve="4.6.1",b="bs.alert",te="."+b,ye=".data-api",Oe=i.default.fn[Ae],De="alert",lt="fade",ct="show",Dt="close"+te,Mt="closed"+te,en="click"+te+ye,Yt='[data-dismiss="alert"]',At=function(){function Qe(be){this._element=be}var ke=Qe.prototype;return ke.close=function(P){var Q=this._element;P&&(Q=this._getRootElement(P));var me=this._triggerCloseEvent(Q);me.isDefaultPrevented()||this._removeElement(Q)},ke.dispose=function(){i.default.removeData(this._element,b),this._element=null},ke._getRootElement=function(P){var Q=le.getSelectorFromElement(P),me=!1;return Q&&(me=document.querySelector(Q)),me||(me=i.default(P).closest("."+De)[0]),me},ke._triggerCloseEvent=function(P){var Q=i.default.Event(Dt);return i.default(P).trigger(Q),Q},ke._removeElement=function(P){var Q=this;if(i.default(P).removeClass(ct),!i.default(P).hasClass(lt)){this._destroyElement(P);return}var me=le.getTransitionDurationFromElement(P);i.default(P).one(le.TRANSITION_END,function(tt){return Q._destroyElement(P,tt)}).emulateTransitionEnd(me)},ke._destroyElement=function(P){i.default(P).detach().trigger(Mt).remove()},Qe._jQueryInterface=function(P){return this.each(function(){var Q=i.default(this),me=Q.data(b);me||(me=new Qe(this),Q.data(b,me)),P==="close"&&me[P](this)})},Qe._handleDismiss=function(P){return function(Q){Q&&Q.preventDefault(),P.close(this)}},d(Qe,null,[{key:"VERSION",get:function(){return ve}}]),Qe}();i.default(document).on(en,Yt,At._handleDismiss(new At)),i.default.fn[Ae]=At._jQueryInterface,i.default.fn[Ae].Constructor=At,i.default.fn[Ae].noConflict=function(){return i.default.fn[Ae]=Oe,At._jQueryInterface};var tn="button",In="4.6.1",Cn="bs.button",Vn="."+Cn,rr=".data-api",ur=i.default.fn[tn],yt="active",Yn="btn",Vr="focus",yr="click"+Vn+rr,fn="focus"+Vn+rr+" "+("blur"+Vn+rr),qn="load"+Vn+rr,re='[data-toggle^="button"]',ge='[data-toggle="buttons"]',Te='[data-toggle="button"]',Ue='[data-toggle="buttons"] .btn',Be='input:not([type="hidden"])',$e=".active",Ne=".btn",Ie=function(){function Qe(be){this._element=be,this.shouldAvoidTriggerChange=!1}var ke=Qe.prototype;return ke.toggle=function(){var P=!0,Q=!0,me=i.default(this._element).closest(ge)[0];if(me){var tt=this._element.querySelector(Be);if(tt){if(tt.type==="radio")if(tt.checked&&this._element.classList.contains(yt))P=!1;else{var pt=me.querySelector($e);pt&&i.default(pt).removeClass(yt)}P&&((tt.type==="checkbox"||tt.type==="radio")&&(tt.checked=!this._element.classList.contains(yt)),this.shouldAvoidTriggerChange||i.default(tt).trigger("change")),tt.focus(),Q=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(Q&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(yt)),P&&i.default(this._element).toggleClass(yt))},ke.dispose=function(){i.default.removeData(this._element,Cn),this._element=null},Qe._jQueryInterface=function(P,Q){return this.each(function(){var me=i.default(this),tt=me.data(Cn);tt||(tt=new Qe(this),me.data(Cn,tt)),tt.shouldAvoidTriggerChange=Q,P==="toggle"&&tt[P]()})},d(Qe,null,[{key:"VERSION",get:function(){return In}}]),Qe}();i.default(document).on(yr,re,function(Qe){var ke=Qe.target,be=ke;if(i.default(ke).hasClass(Yn)||(ke=i.default(ke).closest(Ne)[0]),!ke||ke.hasAttribute("disabled")||ke.classList.contains("disabled"))Qe.preventDefault();else{var P=ke.querySelector(Be);if(P&&(P.hasAttribute("disabled")||P.classList.contains("disabled"))){Qe.preventDefault();return}(be.tagName==="INPUT"||ke.tagName!=="LABEL")&&Ie._jQueryInterface.call(i.default(ke),"toggle",be.tagName==="INPUT")}}).on(fn,re,function(Qe){var ke=i.default(Qe.target).closest(Ne)[0];i.default(ke).toggleClass(Vr,/^focus(in)?$/.test(Qe.type))}),i.default(window).on(qn,function(){for(var Qe=[].slice.call(document.querySelectorAll(Ue)),ke=0,be=Qe.length;ke<be;ke++){var P=Qe[ke],Q=P.querySelector(Be);Q.checked||Q.hasAttribute("checked")?P.classList.add(yt):P.classList.remove(yt)}Qe=[].slice.call(document.querySelectorAll(Te));for(var me=0,tt=Qe.length;me<tt;me++){var pt=Qe[me];pt.getAttribute("aria-pressed")==="true"?pt.classList.add(yt):pt.classList.remove(yt)}}),i.default.fn[tn]=Ie._jQueryInterface,i.default.fn[tn].Constructor=Ie,i.default.fn[tn].noConflict=function(){return i.default.fn[tn]=ur,Ie._jQueryInterface};var je="carousel",Xe="4.6.1",He="bs.carousel",st="."+He,Xt=".data-api",Qt=i.default.fn[je],un=37,Ln=39,xn=500,An=40,bn="carousel",Xn="active",Sr="slide",ji="carousel-item-right",Jr="carousel-item-left",Tr="carousel-item-next",ci="carousel-item-prev",Br="pointer-event",Ht="next",Tn="prev",to="left",po="right",mo="slide"+st,vi="slid"+st,Zr="keydown"+st,Ki="mouseenter"+st,xo="mouseleave"+st,A="touchstart"+st,R="touchmove"+st,G="touchend"+st,ue="pointerdown"+st,Re="pointerup"+st,qe="dragstart"+st,rt="load"+st+Xt,et="click"+st+Xt,bt=".active",ft=".active.carousel-item",kt=".carousel-item",Nt=".carousel-item img",an=".carousel-item-next, .carousel-item-prev",$t=".carousel-indicators",rn="[data-slide], [data-slide-to]",$n='[data-ride="carousel"]',ei={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},ir={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Dr={TOUCH:"touch",PEN:"pen"},ti=function(){function Qe(be,P){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(P),this._element=be,this._indicatorsElement=this._element.querySelector($t),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=!!(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var ke=Qe.prototype;return ke.next=function(){this._isSliding||this._slide(Ht)},ke.nextWhenVisible=function(){var P=i.default(this._element);!document.hidden&&P.is(":visible")&&P.css("visibility")!=="hidden"&&this.next()},ke.prev=function(){this._isSliding||this._slide(Tn)},ke.pause=function(P){P||(this._isPaused=!0),this._element.querySelector(an)&&(le.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},ke.cycle=function(P){P||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},ke.to=function(P){var Q=this;this._activeElement=this._element.querySelector(ft);var me=this._getItemIndex(this._activeElement);if(!(P>this._items.length-1||P<0)){if(this._isSliding){i.default(this._element).one(vi,function(){return Q.to(P)});return}if(me===P){this.pause(),this.cycle();return}var tt=P>me?Ht:Tn;this._slide(tt,this._items[P])}},ke.dispose=function(){i.default(this._element).off(st),i.default.removeData(this._element,He),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},ke._getConfig=function(P){return P=m({},ei,P),le.typeCheckConfig(je,P,ir),P},ke._handleSwipe=function(){var P=Math.abs(this.touchDeltaX);if(!(P<=An)){var Q=P/this.touchDeltaX;this.touchDeltaX=0,Q>0&&this.prev(),Q<0&&this.next()}},ke._addEventListeners=function(){var P=this;this._config.keyboard&&i.default(this._element).on(Zr,function(Q){return P._keydown(Q)}),this._config.pause==="hover"&&i.default(this._element).on(Ki,function(Q){return P.pause(Q)}).on(xo,function(Q){return P.cycle(Q)}),this._config.touch&&this._addTouchEventListeners()},ke._addTouchEventListeners=function(){var P=this;if(this._touchSupported){var Q=function(Pt){P._pointerEvent&&Dr[Pt.originalEvent.pointerType.toUpperCase()]?P.touchStartX=Pt.originalEvent.clientX:P._pointerEvent||(P.touchStartX=Pt.originalEvent.touches[0].clientX)},me=function(Pt){P.touchDeltaX=Pt.originalEvent.touches&&Pt.originalEvent.touches.length>1?0:Pt.originalEvent.touches[0].clientX-P.touchStartX},tt=function(Pt){P._pointerEvent&&Dr[Pt.originalEvent.pointerType.toUpperCase()]&&(P.touchDeltaX=Pt.originalEvent.clientX-P.touchStartX),P._handleSwipe(),P._config.pause==="hover"&&(P.pause(),P.touchTimeout&&clearTimeout(P.touchTimeout),P.touchTimeout=setTimeout(function(Mn){return P.cycle(Mn)},xn+P._config.interval))};i.default(this._element.querySelectorAll(Nt)).on(qe,function(pt){return pt.preventDefault()}),this._pointerEvent?(i.default(this._element).on(ue,function(pt){return Q(pt)}),i.default(this._element).on(Re,function(pt){return tt(pt)}),this._element.classList.add(Br)):(i.default(this._element).on(A,function(pt){return Q(pt)}),i.default(this._element).on(R,function(pt){return me(pt)}),i.default(this._element).on(G,function(pt){return tt(pt)}))}},ke._keydown=function(P){if(!/input|textarea/i.test(P.target.tagName))switch(P.which){case un:P.preventDefault(),this.prev();break;case Ln:P.preventDefault(),this.next();break}},ke._getItemIndex=function(P){return this._items=P&&P.parentNode?[].slice.call(P.parentNode.querySelectorAll(kt)):[],this._items.indexOf(P)},ke._getItemByDirection=function(P,Q){var me=P===Ht,tt=P===Tn,pt=this._getItemIndex(Q),Pt=this._items.length-1,Mn=tt&&pt===0||me&&pt===Pt;if(Mn&&!this._config.wrap)return Q;var hr=P===Tn?-1:1,sr=(pt+hr)%this._items.length;return sr===-1?this._items[this._items.length-1]:this._items[sr]},ke._triggerSlideEvent=function(P,Q){var me=this._getItemIndex(P),tt=this._getItemIndex(this._element.querySelector(ft)),pt=i.default.Event(mo,{relatedTarget:P,direction:Q,from:tt,to:me});return i.default(this._element).trigger(pt),pt},ke._setActiveIndicatorElement=function(P){if(this._indicatorsElement){var Q=[].slice.call(this._indicatorsElement.querySelectorAll(bt));i.default(Q).removeClass(Xn);var me=this._indicatorsElement.children[this._getItemIndex(P)];me&&i.default(me).addClass(Xn)}},ke._updateInterval=function(){var P=this._activeElement||this._element.querySelector(ft);if(P){var Q=parseInt(P.getAttribute("data-interval"),10);Q?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=Q):this._config.interval=this._config.defaultInterval||this._config.interval}},ke._slide=function(P,Q){var me=this,tt=this._element.querySelector(ft),pt=this._getItemIndex(tt),Pt=Q||tt&&this._getItemByDirection(P,tt),Mn=this._getItemIndex(Pt),hr=!!this._interval,sr,Pr,Xo;if(P===Ht?(sr=Jr,Pr=Tr,Xo=to):(sr=ji,Pr=ci,Xo=po),Pt&&i.default(Pt).hasClass(Xn)){this._isSliding=!1;return}var ko=this._triggerSlideEvent(Pt,Xo);if(!ko.isDefaultPrevented()&&!(!tt||!Pt)){this._isSliding=!0,hr&&this.pause(),this._setActiveIndicatorElement(Pt),this._activeElement=Pt;var zl=i.default.Event(vi,{relatedTarget:Pt,direction:Xo,from:pt,to:Mn});if(i.default(this._element).hasClass(Sr)){i.default(Pt).addClass(Pr),le.reflow(Pt),i.default(tt).addClass(sr),i.default(Pt).addClass(sr);var sc=le.getTransitionDurationFromElement(tt);i.default(tt).one(le.TRANSITION_END,function(){i.default(Pt).removeClass(sr+" "+Pr).addClass(Xn),i.default(tt).removeClass(Xn+" "+Pr+" "+sr),me._isSliding=!1,setTimeout(function(){return i.default(me._element).trigger(zl)},0)}).emulateTransitionEnd(sc)}else i.default(tt).removeClass(Xn),i.default(Pt).addClass(Xn),this._isSliding=!1,i.default(this._element).trigger(zl);hr&&this.cycle()}},Qe._jQueryInterface=function(P){return this.each(function(){var Q=i.default(this).data(He),me=m({},ei,i.default(this).data());typeof P=="object"&&(me=m({},me,P));var tt=typeof P=="string"?P:me.slide;if(Q||(Q=new Qe(this,me),i.default(this).data(He,Q)),typeof P=="number")Q.to(P);else if(typeof tt=="string"){if(typeof Q[tt]>"u")throw new TypeError('No method named "'+tt+'"');Q[tt]()}else me.interval&&me.ride&&(Q.pause(),Q.cycle())})},Qe._dataApiClickHandler=function(P){var Q=le.getSelectorFromElement(this);if(Q){var me=i.default(Q)[0];if(!(!me||!i.default(me).hasClass(bn))){var tt=m({},i.default(me).data(),i.default(this).data()),pt=this.getAttribute("data-slide-to");pt&&(tt.interval=!1),Qe._jQueryInterface.call(i.default(me),tt),pt&&i.default(me).data(He).to(pt),P.preventDefault()}}},d(Qe,null,[{key:"VERSION",get:function(){return Xe}},{key:"Default",get:function(){return ei}}]),Qe}();i.default(document).on(et,rn,ti._dataApiClickHandler),i.default(window).on(rt,function(){for(var Qe=[].slice.call(document.querySelectorAll($n)),ke=0,be=Qe.length;ke<be;ke++){var P=i.default(Qe[ke]);ti._jQueryInterface.call(P,P.data())}}),i.default.fn[je]=ti._jQueryInterface,i.default.fn[je].Constructor=ti,i.default.fn[je].noConflict=function(){return i.default.fn[je]=Qt,ti._jQueryInterface};var go="collapse",sa="4.6.1",Qn="bs.collapse",no="."+Qn,el=".data-api",la=i.default.fn[go],ua="show",Aa="collapse",Da="collapsing",ka="collapsed",os="width",Ai="height",Wr="show"+no,W="shown"+no,N="hide"+no,ie="hidden"+no,Me="click"+no+el,Ze=".show, .collapsing",mt='[data-toggle="collapse"]',Ut={toggle:!0,parent:""},dn={toggle:"boolean",parent:"(string|element)"},cn=function(){function Qe(be,P){this._isTransitioning=!1,this._element=be,this._config=this._getConfig(P),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+be.id+'"],'+('[data-toggle="collapse"][data-target="#'+be.id+'"]')));for(var Q=[].slice.call(document.querySelectorAll(mt)),me=0,tt=Q.length;me<tt;me++){var pt=Q[me],Pt=le.getSelectorFromElement(pt),Mn=[].slice.call(document.querySelectorAll(Pt)).filter(function(hr){return hr===be});Pt!==null&&Mn.length>0&&(this._selector=Pt,this._triggerArray.push(pt))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var ke=Qe.prototype;return ke.toggle=function(){i.default(this._element).hasClass(ua)?this.hide():this.show()},ke.show=function(){var P=this;if(!(this._isTransitioning||i.default(this._element).hasClass(ua))){var Q,me;if(this._parent&&(Q=[].slice.call(this._parent.querySelectorAll(Ze)).filter(function(Pr){return typeof P._config.parent=="string"?Pr.getAttribute("data-parent")===P._config.parent:Pr.classList.contains(Aa)}),Q.length===0&&(Q=null)),!(Q&&(me=i.default(Q).not(this._selector).data(Qn),me&&me._isTransitioning))){var tt=i.default.Event(Wr);if(i.default(this._element).trigger(tt),!tt.isDefaultPrevented()){Q&&(Qe._jQueryInterface.call(i.default(Q).not(this._selector),"hide"),me||i.default(Q).data(Qn,null));var pt=this._getDimension();i.default(this._element).removeClass(Aa).addClass(Da),this._element.style[pt]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass(ka).attr("aria-expanded",!0),this.setTransitioning(!0);var Pt=function(){i.default(P._element).removeClass(Da).addClass(Aa+" "+ua),P._element.style[pt]="",P.setTransitioning(!1),i.default(P._element).trigger(W)},Mn=pt[0].toUpperCase()+pt.slice(1),hr="scroll"+Mn,sr=le.getTransitionDurationFromElement(this._element);i.default(this._element).one(le.TRANSITION_END,Pt).emulateTransitionEnd(sr),this._element.style[pt]=this._element[hr]+"px"}}}},ke.hide=function(){var P=this;if(!(this._isTransitioning||!i.default(this._element).hasClass(ua))){var Q=i.default.Event(N);if(i.default(this._element).trigger(Q),!Q.isDefaultPrevented()){var me=this._getDimension();this._element.style[me]=this._element.getBoundingClientRect()[me]+"px",le.reflow(this._element),i.default(this._element).addClass(Da).removeClass(Aa+" "+ua);var tt=this._triggerArray.length;if(tt>0)for(var pt=0;pt<tt;pt++){var Pt=this._triggerArray[pt],Mn=le.getSelectorFromElement(Pt);if(Mn!==null){var hr=i.default([].slice.call(document.querySelectorAll(Mn)));hr.hasClass(ua)||i.default(Pt).addClass(ka).attr("aria-expanded",!1)}}this.setTransitioning(!0);var sr=function(){P.setTransitioning(!1),i.default(P._element).removeClass(Da).addClass(Aa).trigger(ie)};this._element.style[me]="";var Pr=le.getTransitionDurationFromElement(this._element);i.default(this._element).one(le.TRANSITION_END,sr).emulateTransitionEnd(Pr)}}},ke.setTransitioning=function(P){this._isTransitioning=P},ke.dispose=function(){i.default.removeData(this._element,Qn),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},ke._getConfig=function(P){return P=m({},Ut,P),P.toggle=!!P.toggle,le.typeCheckConfig(go,P,dn),P},ke._getDimension=function(){var P=i.default(this._element).hasClass(os);return P?os:Ai},ke._getParent=function(){var P=this,Q;le.isElement(this._config.parent)?(Q=this._config.parent,typeof this._config.parent.jquery<"u"&&(Q=this._config.parent[0])):Q=document.querySelector(this._config.parent);var me='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',tt=[].slice.call(Q.querySelectorAll(me));return i.default(tt).each(function(pt,Pt){P._addAriaAndCollapsedClass(Qe._getTargetFromElement(Pt),[Pt])}),Q},ke._addAriaAndCollapsedClass=function(P,Q){var me=i.default(P).hasClass(ua);Q.length&&i.default(Q).toggleClass(ka,!me).attr("aria-expanded",me)},Qe._getTargetFromElement=function(P){var Q=le.getSelectorFromElement(P);return Q?document.querySelector(Q):null},Qe._jQueryInterface=function(P){return this.each(function(){var Q=i.default(this),me=Q.data(Qn),tt=m({},Ut,Q.data(),typeof P=="object"&&P?P:{});if(!me&&tt.toggle&&typeof P=="string"&&/show|hide/.test(P)&&(tt.toggle=!1),me||(me=new Qe(this,tt),Q.data(Qn,me)),typeof P=="string"){if(typeof me[P]>"u")throw new TypeError('No method named "'+P+'"');me[P]()}})},d(Qe,null,[{key:"VERSION",get:function(){return sa}},{key:"Default",get:function(){return Ut}}]),Qe}();i.default(document).on(Me,mt,function(Qe){Qe.currentTarget.tagName==="A"&&Qe.preventDefault();var ke=i.default(this),be=le.getSelectorFromElement(this),P=[].slice.call(document.querySelectorAll(be));i.default(P).each(function(){var Q=i.default(this),me=Q.data(Qn),tt=me?"toggle":ke.data();cn._jQueryInterface.call(Q,tt)})}),i.default.fn[go]=cn._jQueryInterface,i.default.fn[go].Constructor=cn,i.default.fn[go].noConflict=function(){return i.default.fn[go]=la,cn._jQueryInterface};var nn="dropdown",Nn="4.6.1",or="bs.dropdown",on="."+or,zn=".data-api",Yr=i.default.fn[nn],yi=27,Eo=32,Co=9,br=38,kr=40,fi=3,ca=new RegExp(br+"|"+kr+"|"+yi),vo="disabled",mi="show",So="dropup",fa="dropright",ro="dropleft",To="dropdown-menu-right",Rs="position-static",Oa="hide"+on,as="hidden"+on,Ia="show"+on,tl="shown"+on,Uo="click"+on,Vo="click"+on+zn,Yo="keydown"+on+zn,ni="keyup"+on+zn,da='[data-toggle="dropdown"]',Fs=".dropdown form",Na=".dropdown-menu",Mo=".navbar-nav",Jn=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",gr="top-start",nl="top-end",ss="bottom-start",bi="bottom-end",Ao="right-start",ls="left-start",rl={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Nl={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},ha=function(){function Qe(be,P){this._element=be,this._popper=null,this._config=this._getConfig(P),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var ke=Qe.prototype;return ke.toggle=function(){if(!(this._element.disabled||i.default(this._element).hasClass(vo))){var P=i.default(this._menu).hasClass(mi);Qe._clearMenus(),!P&&this.show(!0)}},ke.show=function(P){if(P===void 0&&(P=!1),!(this._element.disabled||i.default(this._element).hasClass(vo)||i.default(this._menu).hasClass(mi))){var Q={relatedTarget:this._element},me=i.default.Event(Ia,Q),tt=Qe._getParentFromElement(this._element);if(i.default(tt).trigger(me),!me.isDefaultPrevented()){if(!this._inNavbar&&P){if(typeof a.default>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var pt=this._element;this._config.reference==="parent"?pt=tt:le.isElement(this._config.reference)&&(pt=this._config.reference,typeof this._config.reference.jquery<"u"&&(pt=this._config.reference[0])),this._config.boundary!=="scrollParent"&&i.default(tt).addClass(Rs),this._popper=new a.default(pt,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&i.default(tt).closest(Mo).length===0&&i.default(document.body).children().on("mouseover",null,i.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),i.default(this._menu).toggleClass(mi),i.default(tt).toggleClass(mi).trigger(i.default.Event(tl,Q))}}},ke.hide=function(){if(!(this._element.disabled||i.default(this._element).hasClass(vo)||!i.default(this._menu).hasClass(mi))){var P={relatedTarget:this._element},Q=i.default.Event(Oa,P),me=Qe._getParentFromElement(this._element);i.default(me).trigger(Q),!Q.isDefaultPrevented()&&(this._popper&&this._popper.destroy(),i.default(this._menu).toggleClass(mi),i.default(me).toggleClass(mi).trigger(i.default.Event(as,P)))}},ke.dispose=function(){i.default.removeData(this._element,or),i.default(this._element).off(on),this._element=null,this._menu=null,this._popper!==null&&(this._popper.destroy(),this._popper=null)},ke.update=function(){this._inNavbar=this._detectNavbar(),this._popper!==null&&this._popper.scheduleUpdate()},ke._addEventListeners=function(){var P=this;i.default(this._element).on(Uo,function(Q){Q.preventDefault(),Q.stopPropagation(),P.toggle()})},ke._getConfig=function(P){return P=m({},this.constructor.Default,i.default(this._element).data(),P),le.typeCheckConfig(nn,P,this.constructor.DefaultType),P},ke._getMenuElement=function(){if(!this._menu){var P=Qe._getParentFromElement(this._element);P&&(this._menu=P.querySelector(Na))}return this._menu},ke._getPlacement=function(){var P=i.default(this._element.parentNode),Q=ss;return P.hasClass(So)?Q=i.default(this._menu).hasClass(To)?nl:gr:P.hasClass(fa)?Q=Ao:P.hasClass(ro)?Q=ls:i.default(this._menu).hasClass(To)&&(Q=bi),Q},ke._detectNavbar=function(){return i.default(this._element).closest(".navbar").length>0},ke._getOffset=function(){var P=this,Q={};return typeof this._config.offset=="function"?Q.fn=function(me){return me.offsets=m({},me.offsets,P._config.offset(me.offsets,P._element)),me}:Q.offset=this._config.offset,Q},ke._getPopperConfig=function(){var P={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return this._config.display==="static"&&(P.modifiers.applyStyle={enabled:!1}),m({},P,this._config.popperConfig)},Qe._jQueryInterface=function(P){return this.each(function(){var Q=i.default(this).data(or),me=typeof P=="object"?P:null;if(Q||(Q=new Qe(this,me),i.default(this).data(or,Q)),typeof P=="string"){if(typeof Q[P]>"u")throw new TypeError('No method named "'+P+'"');Q[P]()}})},Qe._clearMenus=function(P){if(!(P&&(P.which===fi||P.type==="keyup"&&P.which!==Co)))for(var Q=[].slice.call(document.querySelectorAll(da)),me=0,tt=Q.length;me<tt;me++){var pt=Qe._getParentFromElement(Q[me]),Pt=i.default(Q[me]).data(or),Mn={relatedTarget:Q[me]};if(P&&P.type==="click"&&(Mn.clickEvent=P),!!Pt){var hr=Pt._menu;if(i.default(pt).hasClass(mi)&&!(P&&(P.type==="click"&&/input|textarea/i.test(P.target.tagName)||P.type==="keyup"&&P.which===Co)&&i.default.contains(pt,P.target))){var sr=i.default.Event(Oa,Mn);i.default(pt).trigger(sr),!sr.isDefaultPrevented()&&("ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),Q[me].setAttribute("aria-expanded","false"),Pt._popper&&Pt._popper.destroy(),i.default(hr).removeClass(mi),i.default(pt).removeClass(mi).trigger(i.default.Event(as,Mn)))}}}},Qe._getParentFromElement=function(P){var Q,me=le.getSelectorFromElement(P);return me&&(Q=document.querySelector(me)),Q||P.parentNode},Qe._dataApiKeydownHandler=function(P){if(!(/input|textarea/i.test(P.target.tagName)?P.which===Eo||P.which!==yi&&(P.which!==kr&&P.which!==br||i.default(P.target).closest(Na).length):!ca.test(P.which))&&!(this.disabled||i.default(this).hasClass(vo))){var Q=Qe._getParentFromElement(this),me=i.default(Q).hasClass(mi);if(!(!me&&P.which===yi)){if(P.preventDefault(),P.stopPropagation(),!me||P.which===yi||P.which===Eo){P.which===yi&&i.default(Q.querySelector(da)).trigger("focus"),i.default(this).trigger("click");return}var tt=[].slice.call(Q.querySelectorAll(Jn)).filter(function(Pt){return i.default(Pt).is(":visible")});if(tt.length!==0){var pt=tt.indexOf(P.target);P.which===br&&pt>0&&pt--,P.which===kr&&pt<tt.length-1&&pt++,pt<0&&(pt=0),tt[pt].focus()}}}},d(Qe,null,[{key:"VERSION",get:function(){return Nn}},{key:"Default",get:function(){return rl}},{key:"DefaultType",get:function(){return Nl}}]),Qe}();i.default(document).on(Yo,da,ha._dataApiKeydownHandler).on(Yo,Na,ha._dataApiKeydownHandler).on(Vo+" "+ni,ha._clearMenus).on(Vo,da,function(Qe){Qe.preventDefault(),Qe.stopPropagation(),ha._jQueryInterface.call(i.default(this),"toggle")}).on(Vo,Fs,function(Qe){Qe.stopPropagation()}),i.default.fn[nn]=ha._jQueryInterface,i.default.fn[nn].Constructor=ha,i.default.fn[nn].noConflict=function(){return i.default.fn[nn]=Yr,ha._jQueryInterface};var p="modal",w="4.6.1",M="bs.modal",k="."+M,B=".data-api",z=i.default.fn[p],K=27,Ee="modal-dialog-scrollable",Se="modal-scrollbar-measure",Ve="modal-backdrop",at="modal-open",Et="fade",Ke="show",dt="modal-static",Jt="hide"+k,Rn="hidePrevented"+k,sn="hidden"+k,_r="show"+k,$r="shown"+k,_i="focusin"+k,hn="resize"+k,pn="click.dismiss"+k,wi="keydown.dismiss"+k,Zn="mouseup.dismiss"+k,Or="mousedown.dismiss"+k,us="click"+k+B,pa=".modal-dialog",Di=".modal-body",ma='[data-toggle="modal"]',$o='[data-dismiss="modal"]',ri=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Lo=".sticky-top",Ui={backdrop:!0,keyboard:!0,focus:!0,show:!0},ga={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},va=function(){function Qe(be,P){this._config=this._getConfig(P),this._element=be,this._dialog=be.querySelector(pa),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var ke=Qe.prototype;return ke.toggle=function(P){return this._isShown?this.hide():this.show(P)},ke.show=function(P){var Q=this;if(!(this._isShown||this._isTransitioning)){var me=i.default.Event(_r,{relatedTarget:P});i.default(this._element).trigger(me),!me.isDefaultPrevented()&&(this._isShown=!0,i.default(this._element).hasClass(Et)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),i.default(this._element).on(pn,$o,function(tt){return Q.hide(tt)}),i.default(this._dialog).on(Or,function(){i.default(Q._element).one(Zn,function(tt){i.default(tt.target).is(Q._element)&&(Q._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return Q._showElement(P)}))}},ke.hide=function(P){var Q=this;if(P&&P.preventDefault(),!(!this._isShown||this._isTransitioning)){var me=i.default.Event(Jt);if(i.default(this._element).trigger(me),!(!this._isShown||me.isDefaultPrevented())){this._isShown=!1;var tt=i.default(this._element).hasClass(Et);if(tt&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),i.default(document).off(_i),i.default(this._element).removeClass(Ke),i.default(this._element).off(pn),i.default(this._dialog).off(Or),tt){var pt=le.getTransitionDurationFromElement(this._element);i.default(this._element).one(le.TRANSITION_END,function(Pt){return Q._hideModal(Pt)}).emulateTransitionEnd(pt)}else this._hideModal()}}},ke.dispose=function(){[window,this._element,this._dialog].forEach(function(P){return i.default(P).off(k)}),i.default(document).off(_i),i.default.removeData(this._element,M),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},ke.handleUpdate=function(){this._adjustDialog()},ke._getConfig=function(P){return P=m({},Ui,P),le.typeCheckConfig(p,P,ga),P},ke._triggerBackdropTransition=function(){var P=this,Q=i.default.Event(Rn);if(i.default(this._element).trigger(Q),!Q.isDefaultPrevented()){var me=this._element.scrollHeight>document.documentElement.clientHeight;me||(this._element.style.overflowY="hidden"),this._element.classList.add(dt);var tt=le.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(le.TRANSITION_END),i.default(this._element).one(le.TRANSITION_END,function(){P._element.classList.remove(dt),me||i.default(P._element).one(le.TRANSITION_END,function(){P._element.style.overflowY=""}).emulateTransitionEnd(P._element,tt)}).emulateTransitionEnd(tt),this._element.focus()}},ke._showElement=function(P){var Q=this,me=i.default(this._element).hasClass(Et),tt=this._dialog?this._dialog.querySelector(Di):null;(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE)&&document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),i.default(this._dialog).hasClass(Ee)&&tt?tt.scrollTop=0:this._element.scrollTop=0,me&&le.reflow(this._element),i.default(this._element).addClass(Ke),this._config.focus&&this._enforceFocus();var pt=i.default.Event($r,{relatedTarget:P}),Pt=function(){Q._config.focus&&Q._element.focus(),Q._isTransitioning=!1,i.default(Q._element).trigger(pt)};if(me){var Mn=le.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(le.TRANSITION_END,Pt).emulateTransitionEnd(Mn)}else Pt()},ke._enforceFocus=function(){var P=this;i.default(document).off(_i).on(_i,function(Q){document!==Q.target&&P._element!==Q.target&&i.default(P._element).has(Q.target).length===0&&P._element.focus()})},ke._setEscapeEvent=function(){var P=this;this._isShown?i.default(this._element).on(wi,function(Q){P._config.keyboard&&Q.which===K?(Q.preventDefault(),P.hide()):!P._config.keyboard&&Q.which===K&&P._triggerBackdropTransition()}):this._isShown||i.default(this._element).off(wi)},ke._setResizeEvent=function(){var P=this;this._isShown?i.default(window).on(hn,function(Q){return P.handleUpdate(Q)}):i.default(window).off(hn)},ke._hideModal=function(){var P=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop(function(){i.default(document.body).removeClass(at),P._resetAdjustments(),P._resetScrollbar(),i.default(P._element).trigger(sn)})},ke._removeBackdrop=function(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)},ke._showBackdrop=function(P){var Q=this,me=i.default(this._element).hasClass(Et)?Et:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=Ve,me&&this._backdrop.classList.add(me),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on(pn,function(Mn){if(Q._ignoreBackdropClick){Q._ignoreBackdropClick=!1;return}Mn.target===Mn.currentTarget&&(Q._config.backdrop==="static"?Q._triggerBackdropTransition():Q.hide())}),me&&le.reflow(this._backdrop),i.default(this._backdrop).addClass(Ke),!P)return;if(!me){P();return}var tt=le.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(le.TRANSITION_END,P).emulateTransitionEnd(tt)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass(Ke);var pt=function(){Q._removeBackdrop(),P&&P()};if(i.default(this._element).hasClass(Et)){var Pt=le.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(le.TRANSITION_END,pt).emulateTransitionEnd(Pt)}else pt()}else P&&P()},ke._adjustDialog=function(){var P=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&P&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!P&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},ke._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},ke._checkScrollbar=function(){var P=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(P.left+P.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},ke._setScrollbar=function(){var P=this;if(this._isBodyOverflowing){var Q=[].slice.call(document.querySelectorAll(ri)),me=[].slice.call(document.querySelectorAll(Lo));i.default(Q).each(function(Pt,Mn){var hr=Mn.style.paddingRight,sr=i.default(Mn).css("padding-right");i.default(Mn).data("padding-right",hr).css("padding-right",parseFloat(sr)+P._scrollbarWidth+"px")}),i.default(me).each(function(Pt,Mn){var hr=Mn.style.marginRight,sr=i.default(Mn).css("margin-right");i.default(Mn).data("margin-right",hr).css("margin-right",parseFloat(sr)-P._scrollbarWidth+"px")});var tt=document.body.style.paddingRight,pt=i.default(document.body).css("padding-right");i.default(document.body).data("padding-right",tt).css("padding-right",parseFloat(pt)+this._scrollbarWidth+"px")}i.default(document.body).addClass(at)},ke._resetScrollbar=function(){var P=[].slice.call(document.querySelectorAll(ri));i.default(P).each(function(tt,pt){var Pt=i.default(pt).data("padding-right");i.default(pt).removeData("padding-right"),pt.style.paddingRight=Pt||""});var Q=[].slice.call(document.querySelectorAll(""+Lo));i.default(Q).each(function(tt,pt){var Pt=i.default(pt).data("margin-right");typeof Pt<"u"&&i.default(pt).css("margin-right",Pt).removeData("margin-right")});var me=i.default(document.body).data("padding-right");i.default(document.body).removeData("padding-right"),document.body.style.paddingRight=me||""},ke._getScrollbarWidth=function(){var P=document.createElement("div");P.className=Se,document.body.appendChild(P);var Q=P.getBoundingClientRect().width-P.clientWidth;return document.body.removeChild(P),Q},Qe._jQueryInterface=function(P,Q){return this.each(function(){var me=i.default(this).data(M),tt=m({},Ui,i.default(this).data(),typeof P=="object"&&P?P:{});if(me||(me=new Qe(this,tt),i.default(this).data(M,me)),typeof P=="string"){if(typeof me[P]>"u")throw new TypeError('No method named "'+P+'"');me[P](Q)}else tt.show&&me.show(Q)})},d(Qe,null,[{key:"VERSION",get:function(){return w}},{key:"Default",get:function(){return Ui}}]),Qe}();i.default(document).on(us,ma,function(Qe){var ke=this,be,P=le.getSelectorFromElement(this);P&&(be=document.querySelector(P));var Q=i.default(be).data(M)?"toggle":m({},i.default(be).data(),i.default(this).data());(this.tagName==="A"||this.tagName==="AREA")&&Qe.preventDefault();var me=i.default(be).one(_r,function(tt){tt.isDefaultPrevented()||me.one(sn,function(){i.default(ke).is(":visible")&&ke.focus()})});va._jQueryInterface.call(i.default(be),Q,this)}),i.default.fn[p]=va._jQueryInterface,i.default.fn[p].Constructor=va,i.default.fn[p].noConflict=function(){return i.default.fn[p]=z,va._jQueryInterface};var Ro=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Pl=/^aria-[\w-]*$/i,vr={"*":["class","dir","id","lang","role",Pl],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Go=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Ll=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Rl(Qe,ke){var be=Qe.nodeName.toLowerCase();if(ke.indexOf(be)!==-1)return Ro.indexOf(be)!==-1?!!(Go.test(Qe.nodeValue)||Ll.test(Qe.nodeValue)):!0;for(var P=ke.filter(function(tt){return tt instanceof RegExp}),Q=0,me=P.length;Q<me;Q++)if(P[Q].test(be))return!0;return!1}function hu(Qe,ke,be){if(Qe.length===0)return Qe;if(be&&typeof be=="function")return be(Qe);for(var P=new window.DOMParser,Q=P.parseFromString(Qe,"text/html"),me=Object.keys(ke),tt=[].slice.call(Q.body.querySelectorAll("*")),pt=function(Pr,Xo){var ko=tt[Pr],zl=ko.nodeName.toLowerCase();if(me.indexOf(ko.nodeName.toLowerCase())===-1)return ko.parentNode.removeChild(ko),"continue";var sc=[].slice.call(ko.attributes),$f=[].concat(ke["*"]||[],ke[zl]||[]);sc.forEach(function(xa){Rl(xa,$f)||ko.removeAttribute(xa.nodeName)})},Pt=0,Mn=tt.length;Pt<Mn;Pt++)var hr=pt(Pt);return Q.body.innerHTML}var Gr="tooltip",pu="4.6.1",io="bs.tooltip",ki="."+io,Zu=i.default.fn[Gr],ec="bs-tooltip",il=new RegExp("(^|\\s)"+ec+"\\S+","g"),ol=["sanitize","whiteList","sanitizeFn"],al="fade",Pa="show",Oi="show",sl="out",Bs=".tooltip-inner",Xi=".arrow",xi="hover",Do="focus",cs="click",tc="manual",Vc={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Ir={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:vr,popperConfig:null},ya={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},ii={HIDE:"hide"+ki,HIDDEN:"hidden"+ki,SHOW:"show"+ki,SHOWN:"shown"+ki,INSERTED:"inserted"+ki,CLICK:"click"+ki,FOCUSIN:"focusin"+ki,FOCUSOUT:"focusout"+ki,MOUSEENTER:"mouseenter"+ki,MOUSELEAVE:"mouseleave"+ki},oi=function(){function Qe(be,P){if(typeof a.default>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=be,this.config=this._getConfig(P),this.tip=null,this._setListeners()}var ke=Qe.prototype;return ke.enable=function(){this._isEnabled=!0},ke.disable=function(){this._isEnabled=!1},ke.toggleEnabled=function(){this._isEnabled=!this._isEnabled},ke.toggle=function(P){if(this._isEnabled)if(P){var Q=this.constructor.DATA_KEY,me=i.default(P.currentTarget).data(Q);me||(me=new this.constructor(P.currentTarget,this._getDelegateConfig()),i.default(P.currentTarget).data(Q,me)),me._activeTrigger.click=!me._activeTrigger.click,me._isWithActiveTrigger()?me._enter(null,me):me._leave(null,me)}else{if(i.default(this.getTipElement()).hasClass(Pa)){this._leave(null,this);return}this._enter(null,this)}},ke.dispose=function(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},ke.show=function(){var P=this;if(i.default(this.element).css("display")==="none")throw new Error("Please use show on visible elements");var Q=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(Q);var me=le.findShadowRoot(this.element),tt=i.default.contains(me!==null?me:this.element.ownerDocument.documentElement,this.element);if(Q.isDefaultPrevented()||!tt)return;var pt=this.getTipElement(),Pt=le.getUID(this.constructor.NAME);pt.setAttribute("id",Pt),this.element.setAttribute("aria-describedby",Pt),this.setContent(),this.config.animation&&i.default(pt).addClass(al);var Mn=typeof this.config.placement=="function"?this.config.placement.call(this,pt,this.element):this.config.placement,hr=this._getAttachment(Mn);this.addAttachmentClass(hr);var sr=this._getContainer();i.default(pt).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(pt).appendTo(sr),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new a.default(this.element,pt,this._getPopperConfig(hr)),i.default(pt).addClass(Pa),i.default(pt).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&i.default(document.body).children().on("mouseover",null,i.default.noop);var Pr=function(){P.config.animation&&P._fixTransition();var zl=P._hoverState;P._hoverState=null,i.default(P.element).trigger(P.constructor.Event.SHOWN),zl===sl&&P._leave(null,P)};if(i.default(this.tip).hasClass(al)){var Xo=le.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(le.TRANSITION_END,Pr).emulateTransitionEnd(Xo)}else Pr()}},ke.hide=function(P){var Q=this,me=this.getTipElement(),tt=i.default.Event(this.constructor.Event.HIDE),pt=function(){Q._hoverState!==Oi&&me.parentNode&&me.parentNode.removeChild(me),Q._cleanTipClass(),Q.element.removeAttribute("aria-describedby"),i.default(Q.element).trigger(Q.constructor.Event.HIDDEN),Q._popper!==null&&Q._popper.destroy(),P&&P()};if(i.default(this.element).trigger(tt),!tt.isDefaultPrevented()){if(i.default(me).removeClass(Pa),"ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),this._activeTrigger[cs]=!1,this._activeTrigger[Do]=!1,this._activeTrigger[xi]=!1,i.default(this.tip).hasClass(al)){var Pt=le.getTransitionDurationFromElement(me);i.default(me).one(le.TRANSITION_END,pt).emulateTransitionEnd(Pt)}else pt();this._hoverState=""}},ke.update=function(){this._popper!==null&&this._popper.scheduleUpdate()},ke.isWithContent=function(){return!!this.getTitle()},ke.addAttachmentClass=function(P){i.default(this.getTipElement()).addClass(ec+"-"+P)},ke.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},ke.setContent=function(){var P=this.getTipElement();this.setElementContent(i.default(P.querySelectorAll(Bs)),this.getTitle()),i.default(P).removeClass(al+" "+Pa)},ke.setElementContent=function(P,Q){if(typeof Q=="object"&&(Q.nodeType||Q.jquery)){this.config.html?i.default(Q).parent().is(P)||P.empty().append(Q):P.text(i.default(Q).text());return}this.config.html?(this.config.sanitize&&(Q=hu(Q,this.config.whiteList,this.config.sanitizeFn)),P.html(Q)):P.text(Q)},ke.getTitle=function(){var P=this.element.getAttribute("data-original-title");return P||(P=typeof this.config.title=="function"?this.config.title.call(this.element):this.config.title),P},ke._getPopperConfig=function(P){var Q=this,me={placement:P,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Xi},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(pt){pt.originalPlacement!==pt.placement&&Q._handlePopperPlacementChange(pt)},onUpdate:function(pt){return Q._handlePopperPlacementChange(pt)}};return m({},me,this.config.popperConfig)},ke._getOffset=function(){var P=this,Q={};return typeof this.config.offset=="function"?Q.fn=function(me){return me.offsets=m({},me.offsets,P.config.offset(me.offsets,P.element)),me}:Q.offset=this.config.offset,Q},ke._getContainer=function(){return this.config.container===!1?document.body:le.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)},ke._getAttachment=function(P){return Vc[P.toUpperCase()]},ke._setListeners=function(){var P=this,Q=this.config.trigger.split(" ");Q.forEach(function(me){if(me==="click")i.default(P.element).on(P.constructor.Event.CLICK,P.config.selector,function(Pt){return P.toggle(Pt)});else if(me!==tc){var tt=me===xi?P.constructor.Event.MOUSEENTER:P.constructor.Event.FOCUSIN,pt=me===xi?P.constructor.Event.MOUSELEAVE:P.constructor.Event.FOCUSOUT;i.default(P.element).on(tt,P.config.selector,function(Pt){return P._enter(Pt)}).on(pt,P.config.selector,function(Pt){return P._leave(Pt)})}}),this._hideModalHandler=function(){P.element&&P.hide()},i.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=m({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},ke._fixTitle=function(){var P=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||P!=="string")&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},ke._enter=function(P,Q){var me=this.constructor.DATA_KEY;if(Q=Q||i.default(P.currentTarget).data(me),Q||(Q=new this.constructor(P.currentTarget,this._getDelegateConfig()),i.default(P.currentTarget).data(me,Q)),P&&(Q._activeTrigger[P.type==="focusin"?Do:xi]=!0),i.default(Q.getTipElement()).hasClass(Pa)||Q._hoverState===Oi){Q._hoverState=Oi;return}if(clearTimeout(Q._timeout),Q._hoverState=Oi,!Q.config.delay||!Q.config.delay.show){Q.show();return}Q._timeout=setTimeout(function(){Q._hoverState===Oi&&Q.show()},Q.config.delay.show)},ke._leave=function(P,Q){var me=this.constructor.DATA_KEY;if(Q=Q||i.default(P.currentTarget).data(me),Q||(Q=new this.constructor(P.currentTarget,this._getDelegateConfig()),i.default(P.currentTarget).data(me,Q)),P&&(Q._activeTrigger[P.type==="focusout"?Do:xi]=!1),!Q._isWithActiveTrigger()){if(clearTimeout(Q._timeout),Q._hoverState=sl,!Q.config.delay||!Q.config.delay.hide){Q.hide();return}Q._timeout=setTimeout(function(){Q._hoverState===sl&&Q.hide()},Q.config.delay.hide)}},ke._isWithActiveTrigger=function(){for(var P in this._activeTrigger)if(this._activeTrigger[P])return!0;return!1},ke._getConfig=function(P){var Q=i.default(this.element).data();return Object.keys(Q).forEach(function(me){ol.indexOf(me)!==-1&&delete Q[me]}),P=m({},this.constructor.Default,Q,typeof P=="object"&&P?P:{}),typeof P.delay=="number"&&(P.delay={show:P.delay,hide:P.delay}),typeof P.title=="number"&&(P.title=P.title.toString()),typeof P.content=="number"&&(P.content=P.content.toString()),le.typeCheckConfig(Gr,P,this.constructor.DefaultType),P.sanitize&&(P.template=hu(P.template,P.whiteList,P.sanitizeFn)),P},ke._getDelegateConfig=function(){var P={};if(this.config)for(var Q in this.config)this.constructor.Default[Q]!==this.config[Q]&&(P[Q]=this.config[Q]);return P},ke._cleanTipClass=function(){var P=i.default(this.getTipElement()),Q=P.attr("class").match(il);Q!==null&&Q.length&&P.removeClass(Q.join(""))},ke._handlePopperPlacementChange=function(P){this.tip=P.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(P.placement))},ke._fixTransition=function(){var P=this.getTipElement(),Q=this.config.animation;P.getAttribute("x-placement")===null&&(i.default(P).removeClass(al),this.config.animation=!1,this.hide(),this.show(),this.config.animation=Q)},Qe._jQueryInterface=function(P){return this.each(function(){var Q=i.default(this),me=Q.data(io),tt=typeof P=="object"&&P;if(!(!me&&/dispose|hide/.test(P))&&(me||(me=new Qe(this,tt),Q.data(io,me)),typeof P=="string")){if(typeof me[P]>"u")throw new TypeError('No method named "'+P+'"');me[P]()}})},d(Qe,null,[{key:"VERSION",get:function(){return pu}},{key:"Default",get:function(){return Ir}},{key:"NAME",get:function(){return Gr}},{key:"DATA_KEY",get:function(){return io}},{key:"Event",get:function(){return ii}},{key:"EVENT_KEY",get:function(){return ki}},{key:"DefaultType",get:function(){return ya}}]),Qe}();i.default.fn[Gr]=oi._jQueryInterface,i.default.fn[Gr].Constructor=oi,i.default.fn[Gr].noConflict=function(){return i.default.fn[Gr]=Zu,oi._jQueryInterface};var La="popover",Fl="4.6.1",ll="bs.popover",gi="."+ll,mu=i.default.fn[La],di="bs-popover",We=new RegExp("(^|\\s)"+di+"\\S+","g"),gt="fade",ot="show",Gt=".popover-header",Pn=".popover-body",fr=m({},oi.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),ai=m({},oi.DefaultType,{content:"(string|element|function)"}),wr={HIDE:"hide"+gi,HIDDEN:"hidden"+gi,SHOW:"show"+gi,SHOWN:"shown"+gi,INSERTED:"inserted"+gi,CLICK:"click"+gi,FOCUSIN:"focusin"+gi,FOCUSOUT:"focusout"+gi,MOUSEENTER:"mouseenter"+gi,MOUSELEAVE:"mouseleave"+gi},Ra=function(Qe){y(ke,Qe);function ke(){return Qe.apply(this,arguments)||this}var be=ke.prototype;return be.isWithContent=function(){return this.getTitle()||this._getContent()},be.addAttachmentClass=function(Q){i.default(this.getTipElement()).addClass(di+"-"+Q)},be.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},be.setContent=function(){var Q=i.default(this.getTipElement());this.setElementContent(Q.find(Gt),this.getTitle());var me=this._getContent();typeof me=="function"&&(me=me.call(this.element)),this.setElementContent(Q.find(Pn),me),Q.removeClass(gt+" "+ot)},be._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},be._cleanTipClass=function(){var Q=i.default(this.getTipElement()),me=Q.attr("class").match(We);me!==null&&me.length>0&&Q.removeClass(me.join(""))},ke._jQueryInterface=function(Q){return this.each(function(){var me=i.default(this).data(ll),tt=typeof Q=="object"?Q:null;if(!(!me&&/dispose|hide/.test(Q))&&(me||(me=new ke(this,tt),i.default(this).data(ll,me)),typeof Q=="string")){if(typeof me[Q]>"u")throw new TypeError('No method named "'+Q+'"');me[Q]()}})},d(ke,null,[{key:"VERSION",get:function(){return Fl}},{key:"Default",get:function(){return fr}},{key:"NAME",get:function(){return La}},{key:"DATA_KEY",get:function(){return ll}},{key:"Event",get:function(){return wr}},{key:"EVENT_KEY",get:function(){return gi}},{key:"DefaultType",get:function(){return ai}}]),ke}(oi);i.default.fn[La]=Ra._jQueryInterface,i.default.fn[La].Constructor=Ra,i.default.fn[La].noConflict=function(){return i.default.fn[La]=mu,Ra._jQueryInterface};var fs="scrollspy",ne="4.6.1",_e="bs.scrollspy",Fe="."+_e,ht=".data-api",Ye=i.default.fn[fs],_t="dropdown-item",ut="active",zt="activate"+Fe,Wt="scroll"+Fe,mn="load"+Fe+ht,gn="offset",En="position",Hn='[data-spy="scroll"]',dr=".nav, .list-group",ln=".nav-link",si=".nav-item",Ei=".list-group-item",Ii=".dropdown",Hr=".dropdown-item",Hs=".dropdown-toggle",ba={offset:10,method:"auto",target:""},Qi={offset:"number",method:"string",target:"(string|element)"},ds=function(){function Qe(be,P){var Q=this;this._element=be,this._scrollElement=be.tagName==="BODY"?window:be,this._config=this._getConfig(P),this._selector=this._config.target+" "+ln+","+(this._config.target+" "+Ei+",")+(this._config.target+" "+Hr),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i.default(this._scrollElement).on(Wt,function(me){return Q._process(me)}),this.refresh(),this._process()}var ke=Qe.prototype;return ke.refresh=function(){var P=this,Q=this._scrollElement===this._scrollElement.window?gn:En,me=this._config.method==="auto"?Q:this._config.method,tt=me===En?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();var pt=[].slice.call(document.querySelectorAll(this._selector));pt.map(function(Pt){var Mn,hr=le.getSelectorFromElement(Pt);if(hr&&(Mn=document.querySelector(hr)),Mn){var sr=Mn.getBoundingClientRect();if(sr.width||sr.height)return[i.default(Mn)[me]().top+tt,hr]}return null}).filter(function(Pt){return Pt}).sort(function(Pt,Mn){return Pt[0]-Mn[0]}).forEach(function(Pt){P._offsets.push(Pt[0]),P._targets.push(Pt[1])})},ke.dispose=function(){i.default.removeData(this._element,_e),i.default(this._scrollElement).off(Fe),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},ke._getConfig=function(P){if(P=m({},ba,typeof P=="object"&&P?P:{}),typeof P.target!="string"&&le.isElement(P.target)){var Q=i.default(P.target).attr("id");Q||(Q=le.getUID(fs),i.default(P.target).attr("id",Q)),P.target="#"+Q}return le.typeCheckConfig(fs,P,Qi),P},ke._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},ke._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},ke._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},ke._process=function(){var P=this._getScrollTop()+this._config.offset,Q=this._getScrollHeight(),me=this._config.offset+Q-this._getOffsetHeight();if(this._scrollHeight!==Q&&this.refresh(),P>=me){var tt=this._targets[this._targets.length-1];this._activeTarget!==tt&&this._activate(tt);return}if(this._activeTarget&&P<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null,this._clear();return}for(var pt=this._offsets.length;pt--;){var Pt=this._activeTarget!==this._targets[pt]&&P>=this._offsets[pt]&&(typeof this._offsets[pt+1]>"u"||P<this._offsets[pt+1]);Pt&&this._activate(this._targets[pt])}},ke._activate=function(P){this._activeTarget=P,this._clear();var Q=this._selector.split(",").map(function(tt){return tt+'[data-target="'+P+'"],'+tt+'[href="'+P+'"]'}),me=i.default([].slice.call(document.querySelectorAll(Q.join(","))));me.hasClass(_t)?(me.closest(Ii).find(Hs).addClass(ut),me.addClass(ut)):(me.addClass(ut),me.parents(dr).prev(ln+", "+Ei).addClass(ut),me.parents(dr).prev(si).children(ln).addClass(ut)),i.default(this._scrollElement).trigger(zt,{relatedTarget:P})},ke._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(P){return P.classList.contains(ut)}).forEach(function(P){return P.classList.remove(ut)})},Qe._jQueryInterface=function(P){return this.each(function(){var Q=i.default(this).data(_e),me=typeof P=="object"&&P;if(Q||(Q=new Qe(this,me),i.default(this).data(_e,Q)),typeof P=="string"){if(typeof Q[P]>"u")throw new TypeError('No method named "'+P+'"');Q[P]()}})},d(Qe,null,[{key:"VERSION",get:function(){return ne}},{key:"Default",get:function(){return ba}}]),Qe}();i.default(window).on(mn,function(){for(var Qe=[].slice.call(document.querySelectorAll(Hn)),ke=Qe.length,be=ke;be--;){var P=i.default(Qe[be]);ds._jQueryInterface.call(P,P.data())}}),i.default.fn[fs]=ds._jQueryInterface,i.default.fn[fs].Constructor=ds,i.default.fn[fs].noConflict=function(){return i.default.fn[fs]=Ye,ds._jQueryInterface};var _a="tab",nc="4.6.1",rc="bs.tab",gu="."+rc,jf=".data-api",qs=i.default.fn[_a],zs="dropdown-menu",oo="active",xh="disabled",Yc="fade",Uf="show",Eh="hide"+gu,Ni="hidden"+gu,ao="show"+gu,Ch="shown"+gu,$c="click"+gu+jf,ic=".dropdown",Sh=".nav, .list-group",oc=".active",Bl="> li > .active",Gc='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',ul=".dropdown-toggle",vu="> .dropdown-menu .active",hs=function(){function Qe(be){this._element=be}var ke=Qe.prototype;return ke.show=function(){var P=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i.default(this._element).hasClass(oo)||i.default(this._element).hasClass(xh))){var Q,me,tt=i.default(this._element).closest(Sh)[0],pt=le.getSelectorFromElement(this._element);if(tt){var Pt=tt.nodeName==="UL"||tt.nodeName==="OL"?Bl:oc;me=i.default.makeArray(i.default(tt).find(Pt)),me=me[me.length-1]}var Mn=i.default.Event(Eh,{relatedTarget:this._element}),hr=i.default.Event(ao,{relatedTarget:me});if(me&&i.default(me).trigger(Mn),i.default(this._element).trigger(hr),!(hr.isDefaultPrevented()||Mn.isDefaultPrevented())){pt&&(Q=document.querySelector(pt)),this._activate(this._element,tt);var sr=function(){var Xo=i.default.Event(Ni,{relatedTarget:P._element}),ko=i.default.Event(Ch,{relatedTarget:me});i.default(me).trigger(Xo),i.default(P._element).trigger(ko)};Q?this._activate(Q,Q.parentNode,sr):sr()}}},ke.dispose=function(){i.default.removeData(this._element,rc),this._element=null},ke._activate=function(P,Q,me){var tt=this,pt=Q&&(Q.nodeName==="UL"||Q.nodeName==="OL")?i.default(Q).find(Bl):i.default(Q).children(oc),Pt=pt[0],Mn=me&&Pt&&i.default(Pt).hasClass(Yc),hr=function(){return tt._transitionComplete(P,Pt,me)};if(Pt&&Mn){var sr=le.getTransitionDurationFromElement(Pt);i.default(Pt).removeClass(Uf).one(le.TRANSITION_END,hr).emulateTransitionEnd(sr)}else hr()},ke._transitionComplete=function(P,Q,me){if(Q){i.default(Q).removeClass(oo);var tt=i.default(Q.parentNode).find(vu)[0];tt&&i.default(tt).removeClass(oo),Q.getAttribute("role")==="tab"&&Q.setAttribute("aria-selected",!1)}i.default(P).addClass(oo),P.getAttribute("role")==="tab"&&P.setAttribute("aria-selected",!0),le.reflow(P),P.classList.contains(Yc)&&P.classList.add(Uf);var pt=P.parentNode;if(pt&&pt.nodeName==="LI"&&(pt=pt.parentNode),pt&&i.default(pt).hasClass(zs)){var Pt=i.default(P).closest(ic)[0];if(Pt){var Mn=[].slice.call(Pt.querySelectorAll(ul));i.default(Mn).addClass(oo)}P.setAttribute("aria-expanded",!0)}me&&me()},Qe._jQueryInterface=function(P){return this.each(function(){var Q=i.default(this),me=Q.data(rc);if(me||(me=new Qe(this),Q.data(rc,me)),typeof P=="string"){if(typeof me[P]>"u")throw new TypeError('No method named "'+P+'"');me[P]()}})},d(Qe,null,[{key:"VERSION",get:function(){return nc}}]),Qe}();i.default(document).on($c,Gc,function(Qe){Qe.preventDefault(),hs._jQueryInterface.call(i.default(this),"show")}),i.default.fn[_a]=hs._jQueryInterface,i.default.fn[_a].Constructor=hs,i.default.fn[_a].noConflict=function(){return i.default.fn[_a]=qs,hs._jQueryInterface};var wa="toast",cl="4.6.1",yu="bs.toast",Hl="."+yu,Th=i.default.fn[wa],Mh="fade",Kc="hide",ps="show",fl="showing",bu="click.dismiss"+Hl,ee="hide"+Hl,ql="hidden"+Hl,ac="show"+Hl,Ko="shown"+Hl,ar='[data-dismiss="toast"]',Vf={animation:!0,autohide:!0,delay:500},Yf={animation:"boolean",autohide:"boolean",delay:"number"},_u=function(){function Qe(be,P){this._element=be,this._config=this._getConfig(P),this._timeout=null,this._setListeners()}var ke=Qe.prototype;return ke.show=function(){var P=this,Q=i.default.Event(ac);if(i.default(this._element).trigger(Q),!Q.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add(Mh);var me=function(){P._element.classList.remove(fl),P._element.classList.add(ps),i.default(P._element).trigger(Ko),P._config.autohide&&(P._timeout=setTimeout(function(){P.hide()},P._config.delay))};if(this._element.classList.remove(Kc),le.reflow(this._element),this._element.classList.add(fl),this._config.animation){var tt=le.getTransitionDurationFromElement(this._element);i.default(this._element).one(le.TRANSITION_END,me).emulateTransitionEnd(tt)}else me()}},ke.hide=function(){if(this._element.classList.contains(ps)){var P=i.default.Event(ee);i.default(this._element).trigger(P),!P.isDefaultPrevented()&&this._close()}},ke.dispose=function(){this._clearTimeout(),this._element.classList.contains(ps)&&this._element.classList.remove(ps),i.default(this._element).off(bu),i.default.removeData(this._element,yu),this._element=null,this._config=null},ke._getConfig=function(P){return P=m({},Vf,i.default(this._element).data(),typeof P=="object"&&P?P:{}),le.typeCheckConfig(wa,P,this.constructor.DefaultType),P},ke._setListeners=function(){var P=this;i.default(this._element).on(bu,ar,function(){return P.hide()})},ke._close=function(){var P=this,Q=function(){P._element.classList.add(Kc),i.default(P._element).trigger(ql)};if(this._element.classList.remove(ps),this._config.animation){var me=le.getTransitionDurationFromElement(this._element);i.default(this._element).one(le.TRANSITION_END,Q).emulateTransitionEnd(me)}else Q()},ke._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},Qe._jQueryInterface=function(P){return this.each(function(){var Q=i.default(this),me=Q.data(yu),tt=typeof P=="object"&&P;if(me||(me=new Qe(this,tt),Q.data(yu,me)),typeof P=="string"){if(typeof me[P]>"u")throw new TypeError('No method named "'+P+'"');me[P](this)}})},d(Qe,null,[{key:"VERSION",get:function(){return cl}},{key:"DefaultType",get:function(){return Yf}},{key:"Default",get:function(){return Vf}}]),Qe}();i.default.fn[wa]=_u._jQueryInterface,i.default.fn[wa].Constructor=_u,i.default.fn[wa].noConflict=function(){return i.default.fn[wa]=Th,_u._jQueryInterface},n.Alert=At,n.Button=Ie,n.Carousel=ti,n.Collapse=cn,n.Dropdown=ha,n.Modal=va,n.Popover=Ra,n.Scrollspy=ds,n.Tab=hs,n.Toast=_u,n.Tooltip=oi,n.Util=le,Object.defineProperty(n,"__esModule",{value:!0})})});var _S=eu((fU,Py)=>{(function(n){typeof Py=="object"&&Py.exports?Py.exports=n():window.intlTelInput=n()})(function(n){"use strict";return function(){for(var e=[["Afghanistan (\u202B\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646\u202C\u200E)","af","93"],["Albania (Shqip\xEBri)","al","355"],["Algeria (\u202B\u0627\u0644\u062C\u0632\u0627\u0626\u0631\u202C\u200E)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (\xD6sterreich)","at","43"],["Azerbaijan (Az\u0259rbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (\u202B\u0627\u0644\u0628\u062D\u0631\u064A\u0646\u202C\u200E)","bh","973"],["Bangladesh (\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C)","by","375"],["Belgium (Belgi\xEB)","be","32"],["Belize","bz","501"],["Benin (B\xE9nin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (\u0F60\u0F56\u0FB2\u0F74\u0F42)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (\u0411\u043E\u0441\u043D\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (R\xE9publique centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (\u4E2D\u56FD)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (\u202B\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202C\u200E)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["C\xF4te d\u2019Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Cura\xE7ao","cw","599",0],["Cyprus (\u039A\u03CD\u03C0\u03C1\u03BF\u03C2)","cy","357"],["Czech Republic (\u010Cesk\xE1 republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (Rep\xFAblica Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (\u202B\u0645\u0635\u0631\u202C\u200E)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (F\xF8royar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane fran\xE7aise)","gf","594"],["French Polynesia (Polyn\xE9sie fran\xE7aise)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (\u0395\u03BB\u03BB\u03AC\u03B4\u03B1)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guin\xE9e)","gn","224"],["Guinea-Bissau (Guin\xE9 Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (\u9999\u6E2F)","hk","852"],["Hungary (Magyarorsz\xE1g)","hu","36"],["Iceland (\xCDsland)","is","354"],["India (\u092D\u093E\u0930\u0924)","in","91"],["Indonesia","id","62"],["Iran (\u202B\u0627\u06CC\u0631\u0627\u0646\u202C\u200E)","ir","98"],["Iraq (\u202B\u0627\u0644\u0639\u0631\u0627\u0642\u202C\u200E)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (\u202B\u05D9\u05E9\u05E8\u05D0\u05DC\u202C\u200E)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (\u65E5\u672C)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (\u202B\u0627\u0644\u0623\u0631\u062F\u0646\u202C\u200E)","jo","962"],["Kazakhstan (\u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (\u202B\u0627\u0644\u0643\u0648\u064A\u062A\u202C\u200E)","kw","965"],["Kyrgyzstan (\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D)","kg","996"],["Laos (\u0EA5\u0EB2\u0EA7)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (\u202B\u0644\u0628\u0646\u0627\u0646\u202C\u200E)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (\u202B\u0644\u064A\u0628\u064A\u0627\u202C\u200E)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (\u6FB3\u9580)","mo","853"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (\u202B\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627\u202C\u200E)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (M\xE9xico)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (\u041C\u043E\u043D\u0433\u043E\u043B)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (\u202B\u0627\u0644\u0645\u063A\u0631\u0628\u202C\u200E)","ma","212",0],["Mozambique (Mo\xE7ambique)","mz","258"],["Myanmar (Burma) (\u1019\u103C\u1014\u103A\u1019\u102C)","mm","95"],["Namibia (Namibi\xEB)","na","264"],["Nauru","nr","674"],["Nepal (\u0928\u0947\u092A\u093E\u0932)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Cal\xE9donie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (\uC870\uC120 \uBBFC\uC8FC\uC8FC\uC758 \uC778\uBBFC \uACF5\uD654\uAD6D)","kp","850"],["North Macedonia (\u0421\u0435\u0432\u0435\u0440\u043D\u0430 \u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430)","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (\u202B\u0639\u064F\u0645\u0627\u0646\u202C\u200E)","om","968"],["Pakistan (\u202B\u067E\u0627\u06A9\u0633\u062A\u0627\u0646\u202C\u200E)","pk","92"],["Palau","pw","680"],["Palestine (\u202B\u0641\u0644\u0633\u0637\u064A\u0646\u202C\u200E)","ps","970"],["Panama (Panam\xE1)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Per\xFA)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (\u202B\u0642\u0637\u0631\u202C\u200E)","qa","974"],["R\xE9union (La R\xE9union)","re","262",0],["Romania (Rom\xE2nia)","ro","40"],["Russia (\u0420\u043E\u0441\u0441\u0438\u044F)","ru","7",0],["Rwanda","rw","250"],["Saint Barth\xE9lemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie fran\xE7aise))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["S\xE3o Tom\xE9 and Pr\xEDncipe (S\xE3o Tom\xE9 e Pr\xEDncipe)","st","239"],["Saudi Arabia (\u202B\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629\u202C\u200E)","sa","966"],["Senegal (S\xE9n\xE9gal)","sn","221"],["Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (\uB300\uD55C\uBBFC\uAD6D)","kr","82"],["South Sudan (\u202B\u062C\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)","ss","211"],["Spain (Espa\xF1a)","es","34"],["Sri Lanka (\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0)","lk","94"],["Sudan (\u202B\u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (\u202B\u0633\u0648\u0631\u064A\u0627\u202C\u200E)","sy","963"],["Taiwan (\u53F0\u7063)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (\u0E44\u0E17\u0E22)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (\u202B\u062A\u0648\u0646\u0633\u202C\u200E)","tn","216"],["Turkey (T\xFCrkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (\u0423\u043A\u0440\u0430\u0457\u043D\u0430)","ua","380"],["United Arab Emirates (\u202B\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629\u202C\u200E)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (O\u02BBzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Citt\xE0 del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Vi\u1EC7t Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (\u202B\u0627\u0644\u0635\u062D\u0631\u0627\u0621 \u0627\u0644\u063A\u0631\u0628\u064A\u0629\u202C\u200E)","eh","212",1,["5288","5289"]],["Yemen (\u202B\u0627\u0644\u064A\u0645\u0646\u202C\u200E)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["\xC5land Islands","ax","358",1,["18"]]],t=0;t<e.length;t++){var r=e[t];e[t]={name:r[0],iso2:r[1],dialCode:r[2],priority:r[3]||0,areaCodes:r[4]||null}}function i(Ae){for(var ve=1;ve<arguments.length;ve++){var b=arguments[ve]!=null?Object(arguments[ve]):{},te=Object.keys(b);typeof Object.getOwnPropertySymbols=="function"&&te.push.apply(te,Object.getOwnPropertySymbols(b).filter(function(ye){return Object.getOwnPropertyDescriptor(b,ye).enumerable})),te.forEach(function(ye){a(Ae,ye,b[ye])})}return Ae}function a(Ae,ve,b){return ve=y(ve),ve in Ae?Object.defineProperty(Ae,ve,{value:b,enumerable:!0,configurable:!0,writable:!0}):Ae[ve]=b,Ae}function u(Ae,ve){if(!(Ae instanceof ve))throw new TypeError("Cannot call a class as a function")}function d(Ae,ve){for(var b=0;b<ve.length;b++){var te=ve[b];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(Ae,y(te.key),te)}}function m(Ae,ve,b){return ve&&d(Ae.prototype,ve),b&&d(Ae,b),Object.defineProperty(Ae,"prototype",{writable:!1}),Ae}function y(Ae){var ve=x(Ae,"string");return typeof ve=="symbol"?ve:String(ve)}function x(Ae,ve){if(typeof Ae!="object"||Ae===null)return Ae;var b=Ae[Symbol.toPrimitive];if(b!==n){var te=b.call(Ae,ve||"default");if(typeof te!="object")return te;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ve==="string"?String:Number)(Ae)}var S={getInstance:function(ve){var b=ve.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[b]},instances:{},documentReady:function(){return document.readyState==="complete"}};typeof window=="object"&&(window.intlTelInputGlobals=S);var L=0,H={allowDropdown:!0,autoInsertDialCode:!1,autoPlaceholder:"polite",customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,showFlags:!0,utilsScript:""},V=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],U=function(ve,b){for(var te=Object.keys(ve),ye=0;ye<te.length;ye++)b(te[ye],ve[te[ye]])},Z=function(ve){U(window.intlTelInputGlobals.instances,function(b){window.intlTelInputGlobals.instances[b][ve]()})},ae=function(){function Ae(ve,b){var te=this;u(this,Ae),this.id=L++,this.telInput=ve,this.activeItem=null,this.highlightedItem=null;var ye=b||{};this.options={},U(H,function(Oe,De){te.options[Oe]=ye.hasOwnProperty(Oe)?ye[Oe]:De}),this.hadInitialPlaceholder=!!ve.getAttribute("placeholder")}return m(Ae,[{key:"_init",value:function(){var b=this;this.options.nationalMode&&(this.options.autoInsertDialCode=!1),this.options.separateDialCode&&(this.options.autoInsertDialCode=!1);var te=this.options.allowDropdown&&!this.options.separateDialCode;if(!this.options.showFlags&&te&&(this.options.showFlags=!0),this.isMobile=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.isMobile&&(document.body.classList.add("iti-mobile"),this.options.dropdownContainer||(this.options.dropdownContainer=document.body)),typeof Promise<"u"){var ye=new Promise(function(De,lt){b.resolveAutoCountryPromise=De,b.rejectAutoCountryPromise=lt}),Oe=new Promise(function(De,lt){b.resolveUtilsScriptPromise=De,b.rejectUtilsScriptPromise=lt});this.promise=Promise.all([ye,Oe])}else this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){},this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){};this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries(),this.options.localizedCountries&&this._translateCountriesByLocale(),(this.options.onlyCountries.length||this.options.localizedCountries)&&this.countries.sort(this._countryNameSort)}},{key:"_addCountryCode",value:function(b,te,ye){te.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=te.length),this.countryCodes.hasOwnProperty(te)||(this.countryCodes[te]=[]);for(var Oe=0;Oe<this.countryCodes[te].length;Oe++)if(this.countryCodes[te][Oe]===b)return;var De=ye!==n?ye:this.countryCodes[te].length;this.countryCodes[te][De]=b}},{key:"_processAllCountries",value:function(){if(this.options.onlyCountries.length){var b=this.options.onlyCountries.map(function(ye){return ye.toLowerCase()});this.countries=e.filter(function(ye){return b.indexOf(ye.iso2)>-1})}else if(this.options.excludeCountries.length){var te=this.options.excludeCountries.map(function(ye){return ye.toLowerCase()});this.countries=e.filter(function(ye){return te.indexOf(ye.iso2)===-1})}else this.countries=e}},{key:"_translateCountriesByLocale",value:function(){for(var b=0;b<this.countries.length;b++){var te=this.countries[b].iso2.toLowerCase();this.options.localizedCountries.hasOwnProperty(te)&&(this.countries[b].name=this.options.localizedCountries[te])}}},{key:"_countryNameSort",value:function(b,te){return b.name<te.name?-1:b.name>te.name?1:0}},{key:"_processCountryCodes",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.countryCodes={};for(var b=0;b<this.countries.length;b++){var te=this.countries[b];this.dialCodes[te.dialCode]||(this.dialCodes[te.dialCode]=!0),this._addCountryCode(te.iso2,te.dialCode,te.priority)}for(var ye=0;ye<this.countries.length;ye++){var Oe=this.countries[ye];if(Oe.areaCodes)for(var De=this.countryCodes[Oe.dialCode][0],lt=0;lt<Oe.areaCodes.length;lt++){for(var ct=Oe.areaCodes[lt],Dt=1;Dt<ct.length;Dt++){var Mt=Oe.dialCode+ct.substr(0,Dt);this._addCountryCode(De,Mt),this._addCountryCode(Oe.iso2,Mt)}this._addCountryCode(Oe.iso2,Oe.dialCode+ct)}}}},{key:"_processPreferredCountries",value:function(){this.preferredCountries=[];for(var b=0;b<this.options.preferredCountries.length;b++){var te=this.options.preferredCountries[b].toLowerCase(),ye=this._getCountryData(te,!1,!0);ye&&this.preferredCountries.push(ye)}}},{key:"_createEl",value:function(b,te,ye){var Oe=document.createElement(b);return te&&U(te,function(De,lt){return Oe.setAttribute(De,lt)}),ye&&ye.appendChild(Oe),Oe}},{key:"_generateMarkup",value:function(){!this.telInput.hasAttribute("autocomplete")&&!(this.telInput.form&&this.telInput.form.hasAttribute("autocomplete"))&&this.telInput.setAttribute("autocomplete","off");var b=this.options,te=b.allowDropdown,ye=b.separateDialCode,Oe=b.showFlags,De=b.customContainer,lt=b.hiddenInput,ct=b.dropdownContainer,Dt="iti";te&&(Dt+=" iti--allow-dropdown"),ye&&(Dt+=" iti--separate-dial-code"),Oe&&(Dt+=" iti--show-flags"),De&&(Dt+=" ".concat(De));var Mt=this._createEl("div",{class:Dt});this.telInput.parentNode.insertBefore(Mt,this.telInput);var en=te||Oe||ye;if(en&&(this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},Mt)),Mt.appendChild(this.telInput),en&&(this.selectedFlag=this._createEl("div",i({class:"iti__selected-flag"},te&&{role:"combobox","aria-haspopup":"listbox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-owns":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false","aria-label":"Telephone country code"}),this.flagsContainer)),Oe&&(this.selectedFlagInner=this._createEl("div",{class:"iti__flag"},this.selectedFlag)),this.selectedFlag&&this.telInput.disabled&&this.selectedFlag.setAttribute("aria-disabled","true"),ye&&(this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)),te&&(this.telInput.disabled||this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{class:"iti__arrow"},this.selectedFlag),this.countryList=this._createEl("ul",{class:"iti__country-list iti__hide",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":"List of countries"}),this.preferredCountries.length&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{class:"iti__divider",role:"separator","aria-disabled":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),ct?(this.dropdown=this._createEl("div",{class:"iti iti--container"}),this.dropdown.appendChild(this.countryList)):this.flagsContainer.appendChild(this.countryList)),lt){var Yt=lt,At=this.telInput.getAttribute("name");if(At){var tn=At.lastIndexOf("[");tn!==-1&&(Yt="".concat(At.substr(0,tn),"[").concat(Yt,"]"))}this.hiddenInput=this._createEl("input",{type:"hidden",name:Yt}),Mt.appendChild(this.hiddenInput)}}},{key:"_appendListItems",value:function(b,te,ye){for(var Oe="",De=0;De<b.length;De++){var lt=b[De],ct=ye?"-preferred":"";Oe+="<li class='iti__country ".concat(te,"' tabIndex='-1' id='iti-").concat(this.id,"__item-").concat(lt.iso2).concat(ct,"' role='option' data-dial-code='").concat(lt.dialCode,"' data-country-code='").concat(lt.iso2,"' aria-selected='false'>"),this.options.showFlags&&(Oe+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(lt.iso2,"'></div></div>")),Oe+="<span class='iti__country-name'>".concat(lt.name,"</span>"),Oe+="<span class='iti__dial-code'>+".concat(lt.dialCode,"</span>"),Oe+="</li>"}this.countryList.insertAdjacentHTML("beforeend",Oe)}},{key:"_setInitialState",value:function(){var b=this.telInput.getAttribute("value"),te=this.telInput.value,ye=b&&b.charAt(0)==="+"&&(!te||te.charAt(0)!=="+"),Oe=ye?b:te,De=this._getDialCode(Oe),lt=this._isRegionlessNanp(Oe),ct=this.options,Dt=ct.initialCountry,Mt=ct.autoInsertDialCode;De&&!lt?this._updateFlagFromNumber(Oe):Dt!=="auto"&&(Dt?this._setFlag(Dt.toLowerCase()):De&&lt?this._setFlag("us"):(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,Oe||this._setFlag(this.defaultCountry)),!Oe&&Mt&&(this.telInput.value="+".concat(this.selectedCountryData.dialCode))),Oe&&this._updateValFromNumber(Oe)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoInsertDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var b=this;this._handleHiddenInputSubmit=function(){b.hiddenInput.value=b.getNumber()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_getClosestLabel",value:function(){for(var b=this.telInput;b&&b.tagName!=="LABEL";)b=b.parentNode;return b}},{key:"_initDropdownListeners",value:function(){var b=this;this._handleLabelClick=function(ye){b.countryList.classList.contains("iti__hide")?b.telInput.focus():ye.preventDefault()};var te=this._getClosestLabel();te&&te.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){b.countryList.classList.contains("iti__hide")&&!b.telInput.disabled&&!b.telInput.readOnly&&b._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(ye){var Oe=b.countryList.classList.contains("iti__hide");Oe&&["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(ye.key)!==-1&&(ye.preventDefault(),ye.stopPropagation(),b._showDropdown()),ye.key==="Tab"&&b._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var b=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(b.options.utilsScript)}):this.resolveUtilsScriptPromise(),this.options.initialCountry==="auto"?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,typeof this.options.geoIpLookup=="function"&&this.options.geoIpLookup(function(b){window.intlTelInputGlobals.autoCountry=b.toLowerCase(),setTimeout(function(){return Z("handleAutoCountry")})},function(){return Z("rejectAutoCountryPromise")}))}},{key:"_initKeyListeners",value:function(){var b=this;this._handleKeyupEvent=function(){b._updateFlagFromNumber(b.telInput.value)&&b._triggerCountryChange()},this.telInput.addEventListener("keyup",this._handleKeyupEvent),this._handleClipboardEvent=function(){setTimeout(b._handleKeyupEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function(b){var te=this.telInput.getAttribute("maxlength");return te&&b.length>te?b.substr(0,te):b}},{key:"_initBlurListeners",value:function(){var b=this;this._handleSubmitOrBlurEvent=function(){b._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if(this.telInput.value.charAt(0)==="+"){var b=this._getNumeric(this.telInput.value);(!b||this.selectedCountryData.dialCode===b)&&(this.telInput.value="")}}},{key:"_getNumeric",value:function(b){return b.replace(/\D/g,"")}},{key:"_trigger",value:function(b){var te=document.createEvent("Event");te.initEvent(b,!0,!0),this.telInput.dispatchEvent(te)}},{key:"_showDropdown",value:function(){this.countryList.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0)),this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(b,te,ye){ye&&!b.classList.contains(te)?b.classList.add(te):!ye&&b.classList.contains(te)&&b.classList.remove(te)}},{key:"_setDropdownPosition",value:function(){var b=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.isMobile){var te=this.telInput.getBoundingClientRect(),ye=window.pageYOffset||document.documentElement.scrollTop,Oe=te.top+ye,De=this.countryList.offsetHeight,lt=Oe+this.telInput.offsetHeight+De<ye+window.innerHeight,ct=Oe-De>ye;if(this._toggleClass(this.countryList,"iti__country-list--dropup",!lt&&ct),this.options.dropdownContainer){var Dt=!lt&&ct?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(Oe+Dt,"px"),this.dropdown.style.left="".concat(te.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return b._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_getClosestListItem",value:function(b){for(var te=b;te&&te!==this.countryList&&!te.classList.contains("iti__country");)te=te.parentNode;return te===this.countryList?null:te}},{key:"_bindDropdownListeners",value:function(){var b=this;this._handleMouseoverCountryList=function(De){var lt=b._getClosestListItem(De.target);lt&&b._highlightListItem(lt,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(De){var lt=b._getClosestListItem(De.target);lt&&b._selectListItem(lt)},this.countryList.addEventListener("click",this._handleClickCountryList);var te=!0;this._handleClickOffToClose=function(){te||b._closeDropdown(),te=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var ye="",Oe=null;this._handleKeydownOnDropdown=function(De){De.preventDefault(),De.key==="ArrowUp"||De.key==="Up"||De.key==="ArrowDown"||De.key==="Down"?b._handleUpDownKey(De.key):De.key==="Enter"?b._handleEnterKey():De.key==="Escape"?b._closeDropdown():/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(De.key)&&(Oe&&clearTimeout(Oe),ye+=De.key.toLowerCase(),b._searchForCountry(ye),Oe=setTimeout(function(){ye=""},1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown)}},{key:"_handleUpDownKey",value:function(b){var te=b==="ArrowUp"||b==="Up"?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;te&&(te.classList.contains("iti__divider")&&(te=b==="ArrowUp"||b==="Up"?te.previousElementSibling:te.nextElementSibling),this._highlightListItem(te,!0))}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(b){for(var te=0;te<this.countries.length;te++)if(this._startsWith(this.countries[te].name,b)){var ye=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(this.countries[te].iso2));this._highlightListItem(ye,!1),this._scrollTo(ye,!0);break}}},{key:"_startsWith",value:function(b,te){return b.substr(0,te.length).toLowerCase()===te}},{key:"_updateValFromNumber",value:function(b){var te=b;if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){var ye=this.options.nationalMode||te.charAt(0)!=="+"&&!this.options.separateDialCode,Oe=intlTelInputUtils.numberFormat,De=Oe.NATIONAL,lt=Oe.INTERNATIONAL,ct=ye?De:lt;te=intlTelInputUtils.formatNumber(te,this.selectedCountryData.iso2,ct)}te=this._beforeSetNumber(te),this.telInput.value=te}},{key:"_updateFlagFromNumber",value:function(b){var te=b,ye=this.selectedCountryData.dialCode,Oe=ye==="1";te&&Oe&&te.charAt(0)!=="+"&&(te.charAt(0)!=="1"&&(te="1".concat(te)),te="+".concat(te)),this.options.separateDialCode&&ye&&te.charAt(0)!=="+"&&(te="+".concat(ye).concat(te));var De=this._getDialCode(te,!0),lt=this._getNumeric(te),ct=null;if(De){var Dt=this.countryCodes[this._getNumeric(De)],Mt=Dt.indexOf(this.selectedCountryData.iso2)!==-1&&lt.length<=De.length-1,en=ye==="1"&&this._isRegionlessNanp(lt);if(!en&&!Mt){for(var Yt=0;Yt<Dt.length;Yt++)if(Dt[Yt]){ct=Dt[Yt];break}}}else te.charAt(0)==="+"&&lt.length?ct="":(!te||te==="+")&&(ct=this.defaultCountry);return ct!==null?this._setFlag(ct):!1}},{key:"_isRegionlessNanp",value:function(b){var te=this._getNumeric(b);if(te.charAt(0)==="1"){var ye=te.substr(1,3);return V.indexOf(ye)!==-1}return!1}},{key:"_highlightListItem",value:function(b,te){var ye=this.highlightedItem;ye&&ye.classList.remove("iti__highlight"),this.highlightedItem=b,this.highlightedItem.classList.add("iti__highlight"),this.selectedFlag.setAttribute("aria-activedescendant",b.getAttribute("id")),te&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(b,te,ye){for(var Oe=te?e:this.countries,De=0;De<Oe.length;De++)if(Oe[De].iso2===b)return Oe[De];if(ye)return null;throw new Error("No country data for '".concat(b,"'"))}},{key:"_setFlag",value:function(b){var te=this.selectedCountryData.iso2?this.selectedCountryData:{};if(this.selectedCountryData=b?this._getCountryData(b,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.options.showFlags&&this.selectedFlagInner.setAttribute("class","iti__flag iti__".concat(b)),this.selectedFlag){var ye=b?"".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):"Unknown";this.selectedFlag.setAttribute("title",ye)}if(this.options.separateDialCode){var Oe=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=Oe;var De=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.telInput.style.paddingLeft="".concat(De+6,"px")}if(this._updatePlaceholder(),this.options.allowDropdown){var lt=this.activeItem;if(lt&&(lt.classList.remove("iti__active"),lt.setAttribute("aria-selected","false")),b){var ct=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(b,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(b));ct.setAttribute("aria-selected","true"),ct.classList.add("iti__active"),this.activeItem=ct}}return te.iso2!==b}},{key:"_getHiddenSelectedFlagWidth",value:function(){var b=this.telInput.parentNode.cloneNode();b.style.visibility="hidden",document.body.appendChild(b);var te=this.flagsContainer.cloneNode();b.appendChild(te);var ye=this.selectedFlag.cloneNode(!0);te.appendChild(ye);var Oe=ye.offsetWidth;return b.parentNode.removeChild(b),Oe}},{key:"_updatePlaceholder",value:function(){var b=this.options.autoPlaceholder==="aggressive"||!this.hadInitialPlaceholder&&this.options.autoPlaceholder==="polite";if(window.intlTelInputUtils&&b){var te=intlTelInputUtils.numberType[this.options.placeholderNumberType],ye=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,te):"";ye=this._beforeSetNumber(ye),typeof this.options.customPlaceholder=="function"&&(ye=this.options.customPlaceholder(ye,this.selectedCountryData)),this.telInput.setAttribute("placeholder",ye)}}},{key:"_selectListItem",value:function(b){var te=this._setFlag(b.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(b.getAttribute("data-dial-code")),this.telInput.focus();var ye=this.telInput.value.length;this.telInput.setSelectionRange(ye,ye),te&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.countryList.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.selectedFlag.removeAttribute("aria-activedescendant"),this.dropdownArrow.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._handleKeydownOnDropdown),document.documentElement.removeEventListener("click",this._handleClickOffToClose),this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList),this.countryList.removeEventListener("click",this._handleClickCountryList),this.options.dropdownContainer&&(this.isMobile||window.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function(b,te){var ye=this.countryList,Oe=window.pageYOffset||document.documentElement.scrollTop,De=ye.offsetHeight,lt=ye.getBoundingClientRect().top+Oe,ct=lt+De,Dt=b.offsetHeight,Mt=b.getBoundingClientRect().top+Oe,en=Mt+Dt,Yt=Mt-lt+ye.scrollTop,At=De/2-Dt/2;if(Mt<lt)te&&(Yt-=At),ye.scrollTop=Yt;else if(en>ct){te&&(Yt+=At);var tn=De-Dt;ye.scrollTop=Yt-tn}}},{key:"_updateDialCode",value:function(b){var te=this.telInput.value,ye="+".concat(b),Oe;if(te.charAt(0)==="+"){var De=this._getDialCode(te);De?Oe=te.replace(De,ye):Oe=ye,this.telInput.value=Oe}else this.options.autoInsertDialCode&&(te?Oe=ye+te:Oe=ye,this.telInput.value=Oe)}},{key:"_getDialCode",value:function(b,te){var ye="";if(b.charAt(0)==="+")for(var Oe="",De=0;De<b.length;De++){var lt=b.charAt(De);if(!isNaN(parseInt(lt,10))){if(Oe+=lt,te)this.countryCodes[Oe]&&(ye=b.substr(0,De+1));else if(this.dialCodes[Oe]){ye=b.substr(0,De+1);break}if(Oe.length===this.countryCodeMaxLen)break}}return ye}},{key:"_getFullNumber",value:function(){var b=this.telInput.value.trim(),te=this.selectedCountryData.dialCode,ye,Oe=this._getNumeric(b);return this.options.separateDialCode&&b.charAt(0)!=="+"&&te&&Oe?ye="+".concat(te):ye="",ye+b}},{key:"_beforeSetNumber",value:function(b){var te=b;if(this.options.separateDialCode){var ye=this._getDialCode(te);if(ye){ye="+".concat(this.selectedCountryData.dialCode);var Oe=te[ye.length]===" "||te[ye.length]==="-"?ye.length+1:ye.length;te=te.substr(Oe)}}return this._cap(te)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"handleAutoCountry",value:function(){this.options.initialCountry==="auto"&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this._updatePlaceholder()),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){var b=this.telInput.form;if(this.options.allowDropdown){this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var te=this._getClosestLabel();te&&te.removeEventListener("click",this._handleLabelClick)}this.hiddenInput&&b&&b.removeEventListener("submit",this._handleHiddenInputSubmit),this.options.autoInsertDialCode&&(b&&b.removeEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)),this.telInput.removeEventListener("keyup",this._handleKeyupEvent),this.telInput.removeEventListener("cut",this._handleClipboardEvent),this.telInput.removeEventListener("paste",this._handleClipboardEvent),this.telInput.removeAttribute("data-intl-tel-input-id");var ye=this.telInput.parentNode;ye.parentNode.insertBefore(this.telInput,ye),ye.parentNode.removeChild(ye),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(b){if(window.intlTelInputUtils){var te=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),te,b)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var b=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),b)}return-99}},{key:"isValidNumber",value:function(){var b=this._getFullNumber().trim();return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(b,this.selectedCountryData.iso2):null}},{key:"setCountry",value:function(b){var te=b.toLowerCase();this.selectedCountryData.iso2!==te&&(this._setFlag(te),this._updateDialCode(this.selectedCountryData.dialCode),this._triggerCountryChange())}},{key:"setNumber",value:function(b){var te=this._updateFlagFromNumber(b);this._updateValFromNumber(b),te&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(b){this.options.placeholderNumberType=b,this._updatePlaceholder()}}]),Ae}();S.getCountryData=function(){return e};var le=function(ve,b,te){var ye=document.createElement("script");ye.onload=function(){Z("handleUtils"),b&&b()},ye.onerror=function(){Z("rejectUtilsScriptPromise"),te&&te()},ye.className="iti-load-utils",ye.async=!0,ye.src=ve,document.body.appendChild(ye)};return S.loadUtils=function(Ae){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,typeof Promise<"u")return new Promise(function(ve,b){return le(Ae,ve,b)});le(Ae)}return null},S.defaults=H,S.version="18.1.5",function(Ae,ve){var b=new ae(Ae,ve);return b._init(),Ae.setAttribute("data-intl-tel-input-id",b.id),window.intlTelInputGlobals.instances[b.id]=b,b}}()})});var xS=eu((dU,wS)=>{wS.exports=_S()});var Kw=eu((eT,Qy)=>{(function(){var n=this;(function(){(function(){this.Rails={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:{selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form:not([data-turbo=true])",formInputClickSelector:"form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",formDisableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",formEnableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]"}}).call(this)}).call(n);var e=n.Rails;(function(){(function(){var t;t=null,e.loadCSPNonce=function(){var r;return t=(r=document.querySelector("meta[name=csp-nonce]"))!=null?r.content:void 0},e.cspNonce=function(){return t??e.loadCSPNonce()}}).call(this),function(){var t,r;r=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,e.matches=function(i,a){return a.exclude!=null?r.call(i,a.selector)&&!r.call(i,a.exclude):r.call(i,a)},t="_ujsData",e.getData=function(i,a){var u;return(u=i[t])!=null?u[a]:void 0},e.setData=function(i,a,u){return i[t]==null&&(i[t]={}),i[t][a]=u},e.isContentEditable=function(i){var a;for(a=!1;;){if(i.isContentEditable){a=!0;break}if(i=i.parentElement,!i)break}return a},e.$=function(i){return Array.prototype.slice.call(document.querySelectorAll(i))}}.call(this),function(){var t,r,i;t=e.$,i=e.csrfToken=function(){var a;return a=document.querySelector("meta[name=csrf-token]"),a&&a.content},r=e.csrfParam=function(){var a;return a=document.querySelector("meta[name=csrf-param]"),a&&a.content},e.CSRFProtection=function(a){var u;if(u=i(),u!=null)return a.setRequestHeader("X-CSRF-Token",u)},e.refreshCSRFTokens=function(){var a,u;if(u=i(),a=r(),u!=null&&a!=null)return t('form input[name="'+a+'"]').forEach(function(d){return d.value=u})}}.call(this),function(){var t,r,i,a;i=e.matches,t=window.CustomEvent,typeof t!="function"&&(t=function(u,d){var m;return m=document.createEvent("CustomEvent"),m.initCustomEvent(u,d.bubbles,d.cancelable,d.detail),m},t.prototype=window.Event.prototype,a=t.prototype.preventDefault,t.prototype.preventDefault=function(){var u;return u=a.call(this),this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),u}),r=e.fire=function(u,d,m){var y;return y=new t(d,{bubbles:!0,cancelable:!0,detail:m}),u.dispatchEvent(y),!y.defaultPrevented},e.stopEverything=function(u){return r(u.target,"ujs:everythingStopped"),u.preventDefault(),u.stopPropagation(),u.stopImmediatePropagation()},e.delegate=function(u,d,m,y){return u.addEventListener(m,function(x){var S;for(S=x.target;!(!(S instanceof Element)||i(S,d));)S=S.parentNode;if(S instanceof Element&&y.call(S,x)===!1)return x.preventDefault(),x.stopPropagation()})}}.call(this),function(){var t,r,i,a,u,d,m;a=e.cspNonce,r=e.CSRFProtection,u=e.fire,t={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},e.ajax=function(y){var x;if(y=d(y),x=i(y,function(){var S,L;return L=m((S=x.response)!=null?S:x.responseText,x.getResponseHeader("Content-Type")),Math.floor(x.status/100)===2?typeof y.success=="function"&&y.success(L,x.statusText,x):typeof y.error=="function"&&y.error(L,x.statusText,x),typeof y.complete=="function"?y.complete(x,x.statusText):void 0}),y.beforeSend!=null&&!y.beforeSend(x,y))return!1;if(x.readyState===XMLHttpRequest.OPENED)return x.send(y.data)},d=function(y){return y.url=y.url||location.href,y.type=y.type.toUpperCase(),y.type==="GET"&&y.data&&(y.url.indexOf("?")<0?y.url+="?"+y.data:y.url+="&"+y.data),t[y.dataType]==null&&(y.dataType="*"),y.accept=t[y.dataType],y.dataType!=="*"&&(y.accept+=", */*; q=0.01"),y},i=function(y,x){var S;return S=new XMLHttpRequest,S.open(y.type,y.url,!0),S.setRequestHeader("Accept",y.accept),typeof y.data=="string"&&S.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),y.crossDomain||(S.setRequestHeader("X-Requested-With","XMLHttpRequest"),r(S)),S.withCredentials=!!y.withCredentials,S.onreadystatechange=function(){if(S.readyState===XMLHttpRequest.DONE)return x(S)},S},m=function(y,x){var S,L;if(typeof y=="string"&&typeof x=="string"){if(x.match(/\bjson\b/))try{y=JSON.parse(y)}catch{}else if(x.match(/\b(?:java|ecma)script\b/))L=document.createElement("script"),L.setAttribute("nonce",a()),L.text=y,document.head.appendChild(L).parentNode.removeChild(L);else if(x.match(/\b(xml|html|svg)\b/)){S=new DOMParser,x=x.replace(/;.+/,"");try{y=S.parseFromString(y,x)}catch{}}}return y},e.href=function(y){return y.href},e.isCrossDomain=function(y){var x,S,L;S=document.createElement("a"),S.href=location.href,L=document.createElement("a");try{return L.href=y,!((!L.protocol||L.protocol===":")&&!L.host||S.protocol+"//"+S.host==L.protocol+"//"+L.host)}catch(H){return x=H,!0}}}.call(this),function(){var t,r;t=e.matches,r=function(i){return Array.prototype.slice.call(i)},e.serializeElement=function(i,a){var u,d;return u=[i],t(i,"form")&&(u=r(i.elements)),d=[],u.forEach(function(m){if(!(!m.name||m.disabled)&&!t(m,"fieldset[disabled] *")){if(t(m,"select"))return r(m.options).forEach(function(y){if(y.selected)return d.push({name:m.name,value:y.value})});if(m.checked||["radio","checkbox","submit"].indexOf(m.type)===-1)return d.push({name:m.name,value:m.value})}}),a&&d.push(a),d.map(function(m){return m.name!=null?encodeURIComponent(m.name)+"="+encodeURIComponent(m.value):m}).join("&")},e.formElements=function(i,a){return t(i,"form")?r(i.elements).filter(function(u){return t(u,a)}):r(i.querySelectorAll(a))}}.call(this),function(){var t,r,i;r=e.fire,i=e.stopEverything,e.handleConfirm=function(a){if(!t(this))return i(a)},e.confirm=function(a,u){return confirm(a)},t=function(a){var u,d,m;if(m=a.getAttribute("data-confirm"),!m)return!0;if(u=!1,r(a,"confirm")){try{u=e.confirm(m,a)}catch{}d=r(a,"confirm:complete",[u])}return u&&d}}.call(this),function(){var t,r,i,a,u,d,m,y,x,S,L,H,V;L=e.matches,y=e.getData,H=e.setData,V=e.stopEverything,m=e.formElements,x=e.isContentEditable,e.handleDisabledElement=function(U){var Z;if(Z=this,Z.disabled)return V(U)},e.enableElement=function(U){var Z;if(U instanceof Event){if(S(U))return;Z=U.target}else Z=U;if(!x(Z)){if(L(Z,e.linkDisableSelector))return d(Z);if(L(Z,e.buttonDisableSelector)||L(Z,e.formEnableSelector))return a(Z);if(L(Z,e.formSubmitSelector))return u(Z)}},e.disableElement=function(U){var Z;if(Z=U instanceof Event?U.target:U,!x(Z)){if(L(Z,e.linkDisableSelector))return i(Z);if(L(Z,e.buttonDisableSelector)||L(Z,e.formDisableSelector))return t(Z);if(L(Z,e.formSubmitSelector))return r(Z)}},i=function(U){var Z;if(!y(U,"ujs:disabled"))return Z=U.getAttribute("data-disable-with"),Z!=null&&(H(U,"ujs:enable-with",U.innerHTML),U.innerHTML=Z),U.addEventListener("click",V),H(U,"ujs:disabled",!0)},d=function(U){var Z;return Z=y(U,"ujs:enable-with"),Z!=null&&(U.innerHTML=Z,H(U,"ujs:enable-with",null)),U.removeEventListener("click",V),H(U,"ujs:disabled",null)},r=function(U){return m(U,e.formDisableSelector).forEach(t)},t=function(U){var Z;if(!y(U,"ujs:disabled"))return Z=U.getAttribute("data-disable-with"),Z!=null&&(L(U,"button")?(H(U,"ujs:enable-with",U.innerHTML),U.innerHTML=Z):(H(U,"ujs:enable-with",U.value),U.value=Z)),U.disabled=!0,H(U,"ujs:disabled",!0)},u=function(U){return m(U,e.formEnableSelector).forEach(a)},a=function(U){var Z;return Z=y(U,"ujs:enable-with"),Z!=null&&(L(U,"button")?U.innerHTML=Z:U.value=Z,H(U,"ujs:enable-with",null)),U.disabled=!1,H(U,"ujs:disabled",null)},S=function(U){var Z,ae;return ae=(Z=U.detail)!=null?Z[0]:void 0,ae?.getResponseHeader("X-Xhr-Redirect")!=null}}.call(this),function(){var t,r;r=e.stopEverything,t=e.isContentEditable,e.handleMethod=function(i){var a,u,d,m,y,x,S;if(x=this,S=x.getAttribute("data-method"),!!S&&!t(this))return y=e.href(x),u=e.csrfToken(),a=e.csrfParam(),d=document.createElement("form"),m="<input name='_method' value='"+S+"' type='hidden' />",a!=null&&u!=null&&!e.isCrossDomain(y)&&(m+="<input name='"+a+"' value='"+u+"' type='hidden' />"),m+='<input type="submit" />',d.method="post",d.action=y,d.target=x.target,d.innerHTML=m,d.style.display="none",document.body.appendChild(d),d.querySelector('[type="submit"]').click(),r(i)}}.call(this),function(){var t,r,i,a,u,d,m,y,x,S,L=[].slice;m=e.matches,i=e.getData,x=e.setData,r=e.fire,S=e.stopEverything,t=e.ajax,u=e.isCrossDomain,y=e.serializeElement,a=e.isContentEditable,d=function(H){var V;return V=H.getAttribute("data-remote"),V!=null&&V!=="false"},e.handleRemote=function(H){var V,U,Z,ae,le,Ae,ve;return ae=this,d(ae)?!r(ae,"ajax:before")||a(ae)?(r(ae,"ajax:stopped"),!1):(ve=ae.getAttribute("data-with-credentials"),Z=ae.getAttribute("data-type")||"script",m(ae,e.formSubmitSelector)?(V=i(ae,"ujs:submit-button"),le=i(ae,"ujs:submit-button-formmethod")||ae.method,Ae=i(ae,"ujs:submit-button-formaction")||ae.getAttribute("action")||location.href,le.toUpperCase()==="GET"&&(Ae=Ae.replace(/\?.*$/,"")),ae.enctype==="multipart/form-data"?(U=new FormData(ae),V!=null&&U.append(V.name,V.value)):U=y(ae,V),x(ae,"ujs:submit-button",null),x(ae,"ujs:submit-button-formmethod",null),x(ae,"ujs:submit-button-formaction",null)):m(ae,e.buttonClickSelector)||m(ae,e.inputChangeSelector)?(le=ae.getAttribute("data-method"),Ae=ae.getAttribute("data-url"),U=y(ae,ae.getAttribute("data-params"))):(le=ae.getAttribute("data-method"),Ae=e.href(ae),U=ae.getAttribute("data-params")),t({type:le||"GET",url:Ae,data:U,dataType:Z,beforeSend:function(b,te){return r(ae,"ajax:beforeSend",[b,te])?r(ae,"ajax:send",[b]):(r(ae,"ajax:stopped"),!1)},success:function(){var b;return b=1<=arguments.length?L.call(arguments,0):[],r(ae,"ajax:success",b)},error:function(){var b;return b=1<=arguments.length?L.call(arguments,0):[],r(ae,"ajax:error",b)},complete:function(){var b;return b=1<=arguments.length?L.call(arguments,0):[],r(ae,"ajax:complete",b)},crossDomain:u(Ae),withCredentials:ve!=null&&ve!=="false"}),S(H)):!0},e.formSubmitButtonClick=function(H){var V,U;if(V=this,U=V.form,!!U)return V.name&&x(U,"ujs:submit-button",{name:V.name,value:V.value}),x(U,"ujs:formnovalidate-button",V.formNoValidate),x(U,"ujs:submit-button-formaction",V.getAttribute("formaction")),x(U,"ujs:submit-button-formmethod",V.getAttribute("formmethod"))},e.preventInsignificantClick=function(H){var V,U,Z,ae,le,Ae;if(Z=this,le=(Z.getAttribute("data-method")||"GET").toUpperCase(),V=Z.getAttribute("data-params"),ae=H.metaKey||H.ctrlKey,U=ae&&le==="GET"&&!V,Ae=H.button!=null&&H.button!==0,Ae||U)return H.stopImmediatePropagation()}}.call(this),function(){var t,r,i,a,u,d,m,y,x,S,L,H,V,U,Z;if(d=e.fire,i=e.delegate,y=e.getData,t=e.$,Z=e.refreshCSRFTokens,r=e.CSRFProtection,V=e.loadCSPNonce,u=e.enableElement,a=e.disableElement,S=e.handleDisabledElement,x=e.handleConfirm,U=e.preventInsignificantClick,H=e.handleRemote,m=e.formSubmitButtonClick,L=e.handleMethod,typeof jQuery<"u"&&jQuery!==null&&jQuery.ajax!=null){if(jQuery.rails)throw new Error("If you load both jquery_ujs and rails-ujs, use rails-ujs only.");jQuery.rails=e,jQuery.ajaxPrefilter(function(ae,le,Ae){if(!ae.crossDomain)return r(Ae)})}e.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",function(){return t(e.formEnableSelector).forEach(function(ae){if(y(ae,"ujs:disabled"))return u(ae)}),t(e.linkDisableSelector).forEach(function(ae){if(y(ae,"ujs:disabled"))return u(ae)})}),i(document,e.linkDisableSelector,"ajax:complete",u),i(document,e.linkDisableSelector,"ajax:stopped",u),i(document,e.buttonDisableSelector,"ajax:complete",u),i(document,e.buttonDisableSelector,"ajax:stopped",u),i(document,e.linkClickSelector,"click",U),i(document,e.linkClickSelector,"click",S),i(document,e.linkClickSelector,"click",x),i(document,e.linkClickSelector,"click",a),i(document,e.linkClickSelector,"click",H),i(document,e.linkClickSelector,"click",L),i(document,e.buttonClickSelector,"click",U),i(document,e.buttonClickSelector,"click",S),i(document,e.buttonClickSelector,"click",x),i(document,e.buttonClickSelector,"click",a),i(document,e.buttonClickSelector,"click",H),i(document,e.inputChangeSelector,"change",S),i(document,e.inputChangeSelector,"change",x),i(document,e.inputChangeSelector,"change",H),i(document,e.formSubmitSelector,"submit",S),i(document,e.formSubmitSelector,"submit",x),i(document,e.formSubmitSelector,"submit",H),i(document,e.formSubmitSelector,"submit",function(ae){return setTimeout(function(){return a(ae)},13)}),i(document,e.formSubmitSelector,"ajax:send",a),i(document,e.formSubmitSelector,"ajax:complete",u),i(document,e.formInputClickSelector,"click",U),i(document,e.formInputClickSelector,"click",S),i(document,e.formInputClickSelector,"click",x),i(document,e.formInputClickSelector,"click",m),document.addEventListener("DOMContentLoaded",Z),document.addEventListener("DOMContentLoaded",V),window._rails_loaded=!0},window.Rails===e&&d(document,"rails:attachBindings")&&e.start()}.call(this)}).call(this),typeof Qy=="object"&&Qy.exports?Qy.exports=e:typeof define=="function"&&define.amd&&define(e)}).call(eT)});(function(){if(window.Reflect===void 0||window.customElements===void 0||window.customElements.polyfillWrapFlushCallback)return;let n=HTMLElement,e={HTMLElement:function(){return Reflect.construct(n,[],this.constructor)}};window.HTMLElement=e.HTMLElement,HTMLElement.prototype=n.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,n)})();(function(n){if(typeof n.requestSubmit=="function")return;n.requestSubmit=function(r){r?(e(r,this),r.click()):(r=document.createElement("input"),r.type="submit",r.hidden=!0,this.appendChild(r),r.click(),this.removeChild(r))};function e(r,i){r instanceof HTMLElement||t(TypeError,"parameter 1 is not of type 'HTMLElement'"),r.type=="submit"||t(TypeError,"The specified element is not a submit button"),r.form==i||t(DOMException,"The specified element is not owned by this form element","NotFoundError")}function t(r,i,a){throw new r("Failed to execute 'requestSubmit' on 'HTMLFormElement': "+i+".",a)}})(HTMLFormElement.prototype);var Yx=new WeakMap;function MD(n){let e=n instanceof Element?n:n instanceof Node?n.parentElement:null,t=e?e.closest("input, button"):null;return t?.type=="submit"?t:null}function AD(n){let e=MD(n.target);e&&e.form&&Yx.set(e.form,e)}(function(){if("submitter"in Event.prototype)return;let n=window.Event.prototype;if("SubmitEvent"in window&&/Apple Computer/.test(navigator.vendor))n=window.SubmitEvent.prototype;else if("SubmitEvent"in window)return;addEventListener("click",AD,!0),Object.defineProperty(n,"submitter",{get(){if(this.type=="submit"&&this.target instanceof HTMLFormElement)return Yx.get(this.target)}})})();var Ec;(function(n){n.eager="eager",n.lazy="lazy"})(Ec||(Ec={}));var Ml=class extends HTMLElement{static get observedAttributes(){return["disabled","complete","loading","src"]}constructor(){super(),this.loaded=Promise.resolve(),this.delegate=new Ml.delegateConstructor(this)}connectedCallback(){this.delegate.connect()}disconnectedCallback(){this.delegate.disconnect()}reload(){return this.delegate.sourceURLReloaded()}attributeChangedCallback(e){e=="loading"?this.delegate.loadingStyleChanged():e=="complete"?this.delegate.completeChanged():e=="src"?this.delegate.sourceURLChanged():this.delegate.disabledChanged()}get src(){return this.getAttribute("src")}set src(e){e?this.setAttribute("src",e):this.removeAttribute("src")}get loading(){return DD(this.getAttribute("loading")||"")}set loading(e){e?this.setAttribute("loading",e):this.removeAttribute("loading")}get disabled(){return this.hasAttribute("disabled")}set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get autoscroll(){return this.hasAttribute("autoscroll")}set autoscroll(e){e?this.setAttribute("autoscroll",""):this.removeAttribute("autoscroll")}get complete(){return!this.delegate.isLoading}get isActive(){return this.ownerDocument===document&&!this.isPreview}get isPreview(){var e,t;return(t=(e=this.ownerDocument)===null||e===void 0?void 0:e.documentElement)===null||t===void 0?void 0:t.hasAttribute("data-turbo-preview")}};function DD(n){switch(n.toLowerCase()){case"lazy":return Ec.lazy;default:return Ec.eager}}function ea(n){return new URL(n.toString(),document.baseURI)}function vf(n){let e;if(n.hash)return n.hash.slice(1);if(e=n.href.match(/#(.*)$/))return e[1]}function l_(n,e){let t=e?.getAttribute("formaction")||n.getAttribute("action")||n.action;return ea(t)}function kD(n){return(LD(n).match(/\.[^.]*$/)||[])[0]||""}function OD(n){return!!kD(n).match(/^(?:|\.(?:htm|html|xhtml|php))$/)}function ID(n,e){let t=RD(e);return n.href===ea(t).href||n.href.startsWith(t)}function Cd(n,e){return ID(n,e)&&OD(n)}function Bb(n){let e=vf(n);return e!=null?n.href.slice(0,-(e.length+1)):n.href}function Cg(n){return Bb(n)}function ND(n,e){return ea(n).href==ea(e).href}function PD(n){return n.pathname.split("/").slice(1)}function LD(n){return PD(n).slice(-1)[0]}function RD(n){return FD(n.origin+n.pathname)}function FD(n){return n.endsWith("/")?n:n+"/"}var cp=class{constructor(e){this.response=e}get succeeded(){return this.response.ok}get failed(){return!this.succeeded}get clientError(){return this.statusCode>=400&&this.statusCode<=499}get serverError(){return this.statusCode>=500&&this.statusCode<=599}get redirected(){return this.response.redirected}get location(){return ea(this.response.url)}get isHTML(){return this.contentType&&this.contentType.match(/^(?:text\/([^\s;,]+\b)?html|application\/xhtml\+xml)\b/)}get statusCode(){return this.response.status}get contentType(){return this.header("Content-Type")}get responseText(){return this.response.clone().text()}get responseHTML(){return this.isHTML?this.response.clone().text():Promise.resolve(void 0)}header(e){return this.response.headers.get(e)}};function fp(n){if(n.getAttribute("data-turbo-eval")=="false")return n;{let e=document.createElement("script"),t=Mg("csp-nonce");return t&&(e.nonce=t),e.textContent=n.textContent,e.async=!1,BD(e,n),e}}function BD(n,e){for(let{name:t,value:r}of e.attributes)n.setAttribute(t,r)}function HD(n){let e=document.createElement("template");return e.innerHTML=n,e.content}function zo(n,{target:e,cancelable:t,detail:r}={}){let i=new CustomEvent(n,{cancelable:t,bubbles:!0,composed:!0,detail:r});return e&&e.isConnected?e.dispatchEvent(i):document.documentElement.dispatchEvent(i),i}function Sg(){return new Promise(n=>requestAnimationFrame(()=>n()))}function qD(){return new Promise(n=>setTimeout(()=>n(),0))}function zD(){return Promise.resolve()}function $x(n=""){return new DOMParser().parseFromString(n,"text/html")}function Gx(n,...e){let t=WD(n,e).replace(/^\n/,"").split(`
`),r=t[0].match(/^\s+/),i=r?r[0].length:0;return t.map(a=>a.slice(i)).join(`
`)}function WD(n,e){return n.reduce((t,r,i)=>{let a=e[i]==null?"":e[i];return t+r+a},"")}function Sd(){return Array.from({length:36}).map((n,e)=>e==8||e==13||e==18||e==23?"-":e==14?"4":e==19?(Math.floor(Math.random()*4)+8).toString(16):Math.floor(Math.random()*15).toString(16)).join("")}function Tg(n,...e){for(let t of e.map(r=>r?.getAttribute(n)))if(typeof t=="string")return t;return null}function jD(n,...e){return e.some(t=>t&&t.hasAttribute(n))}function Hb(...n){for(let e of n)e.localName=="turbo-frame"&&e.setAttribute("busy",""),e.setAttribute("aria-busy","true")}function qb(...n){for(let e of n)e.localName=="turbo-frame"&&e.removeAttribute("busy"),e.removeAttribute("aria-busy")}function UD(n,e=2e3){return new Promise(t=>{let r=()=>{n.removeEventListener("error",r),n.removeEventListener("load",r),t()};n.addEventListener("load",r,{once:!0}),n.addEventListener("error",r,{once:!0}),setTimeout(t,e)})}function Kx(n){switch(n){case"replace":return history.replaceState;case"advance":case"restore":return history.pushState}}function VD(n){return n=="advance"||n=="replace"||n=="restore"}function Lg(...n){let e=Tg("data-turbo-action",...n);return VD(e)?e:null}function Xx(n){return document.querySelector(`meta[name="${n}"]`)}function Mg(n){let e=Xx(n);return e&&e.content}function YD(n,e){let t=Xx(n);return t||(t=document.createElement("meta"),t.setAttribute("name",n),document.head.appendChild(t)),t.setAttribute("content",e),t}function Ag(n,e){var t;if(n instanceof Element)return n.closest(e)||Ag(n.assignedSlot||((t=n.getRootNode())===null||t===void 0?void 0:t.host),e)}var $a;(function(n){n[n.get=0]="get",n[n.post=1]="post",n[n.put=2]="put",n[n.patch=3]="patch",n[n.delete=4]="delete"})($a||($a={}));function $D(n){switch(n.toLowerCase()){case"get":return $a.get;case"post":return $a.post;case"put":return $a.put;case"patch":return $a.patch;case"delete":return $a.delete}}var dp=class{constructor(e,t,r,i=new URLSearchParams,a=null){this.abortController=new AbortController,this.resolveRequestPromise=u=>{},this.delegate=e,this.method=t,this.headers=this.defaultHeaders,this.body=i,this.url=r,this.target=a}get location(){return this.url}get params(){return this.url.searchParams}get entries(){return this.body?Array.from(this.body.entries()):[]}cancel(){this.abortController.abort()}async perform(){let{fetchOptions:e}=this;this.delegate.prepareRequest(this),await this.allowRequestToBeIntercepted(e);try{this.delegate.requestStarted(this);let t=await fetch(this.url.href,e);return await this.receive(t)}catch(t){if(t.name!=="AbortError")throw this.willDelegateErrorHandling(t)&&this.delegate.requestErrored(this,t),t}finally{this.delegate.requestFinished(this)}}async receive(e){let t=new cp(e);return zo("turbo:before-fetch-response",{cancelable:!0,detail:{fetchResponse:t},target:this.target}).defaultPrevented?this.delegate.requestPreventedHandlingResponse(this,t):t.succeeded?this.delegate.requestSucceededWithResponse(this,t):this.delegate.requestFailedWithResponse(this,t),t}get fetchOptions(){var e;return{method:$a[this.method].toUpperCase(),credentials:"same-origin",headers:this.headers,redirect:"follow",body:this.isSafe?null:this.body,signal:this.abortSignal,referrer:(e=this.delegate.referrer)===null||e===void 0?void 0:e.href}}get defaultHeaders(){return{Accept:"text/html, application/xhtml+xml"}}get isSafe(){return this.method===$a.get}get abortSignal(){return this.abortController.signal}acceptResponseType(e){this.headers.Accept=[e,this.headers.Accept].join(", ")}async allowRequestToBeIntercepted(e){let t=new Promise(i=>this.resolveRequestPromise=i);zo("turbo:before-fetch-request",{cancelable:!0,detail:{fetchOptions:e,url:this.url,resume:this.resolveRequestPromise},target:this.target}).defaultPrevented&&await t}willDelegateErrorHandling(e){return!zo("turbo:fetch-request-error",{target:this.target,cancelable:!0,detail:{request:this,error:e}}).defaultPrevented}},zb=class{constructor(e,t){this.started=!1,this.intersect=r=>{let i=r.slice(-1)[0];i?.isIntersecting&&this.delegate.elementAppearedInViewport(this.element)},this.delegate=e,this.element=t,this.intersectionObserver=new IntersectionObserver(this.intersect)}start(){this.started||(this.started=!0,this.intersectionObserver.observe(this.element))}stop(){this.started&&(this.started=!1,this.intersectionObserver.unobserve(this.element))}},Ru=class{static wrap(e){return typeof e=="string"?new this(HD(e)):e}constructor(e){this.fragment=GD(e)}};Ru.contentType="text/vnd.turbo-stream.html";function GD(n){for(let e of n.querySelectorAll("turbo-stream")){let t=document.importNode(e,!0);for(let r of t.templateElement.content.querySelectorAll("script"))r.replaceWith(fp(r));e.replaceWith(t)}return n}var wc;(function(n){n[n.initialized=0]="initialized",n[n.requesting=1]="requesting",n[n.waiting=2]="waiting",n[n.receiving=3]="receiving",n[n.stopping=4]="stopping",n[n.stopped=5]="stopped"})(wc||(wc={}));var xc;(function(n){n.urlEncoded="application/x-www-form-urlencoded",n.multipart="multipart/form-data",n.plain="text/plain"})(xc||(xc={}));function KD(n){switch(n.toLowerCase()){case xc.multipart:return xc.multipart;case xc.plain:return xc.plain;default:return xc.urlEncoded}}var yf=class{static confirmMethod(e,t,r){return Promise.resolve(confirm(e))}constructor(e,t,r,i=!1){this.state=wc.initialized,this.delegate=e,this.formElement=t,this.submitter=r,this.formData=XD(t,r),this.location=ea(this.action),this.method==$a.get&&ZD(this.location,[...this.body.entries()]),this.fetchRequest=new dp(this,this.method,this.location,this.body,this.formElement),this.mustRedirect=i}get method(){var e;let t=((e=this.submitter)===null||e===void 0?void 0:e.getAttribute("formmethod"))||this.formElement.getAttribute("method")||"";return $D(t.toLowerCase())||$a.get}get action(){var e;let t=typeof this.formElement.action=="string"?this.formElement.action:null;return!((e=this.submitter)===null||e===void 0)&&e.hasAttribute("formaction")?this.submitter.getAttribute("formaction")||"":this.formElement.getAttribute("action")||t||""}get body(){return this.enctype==xc.urlEncoded||this.method==$a.get?new URLSearchParams(this.stringFormData):this.formData}get enctype(){var e;return KD(((e=this.submitter)===null||e===void 0?void 0:e.getAttribute("formenctype"))||this.formElement.enctype)}get isSafe(){return this.fetchRequest.isSafe}get stringFormData(){return[...this.formData].reduce((e,[t,r])=>e.concat(typeof r=="string"?[[t,r]]:[]),[])}async start(){let{initialized:e,requesting:t}=wc,r=Tg("data-turbo-confirm",this.submitter,this.formElement);if(!(typeof r=="string"&&!await yf.confirmMethod(r,this.formElement,this.submitter))&&this.state==e)return this.state=t,this.fetchRequest.perform()}stop(){let{stopping:e,stopped:t}=wc;if(this.state!=e&&this.state!=t)return this.state=e,this.fetchRequest.cancel(),!0}prepareRequest(e){if(!e.isSafe){let t=QD(Mg("csrf-param"))||Mg("csrf-token");t&&(e.headers["X-CSRF-Token"]=t)}this.requestAcceptsTurboStreamResponse(e)&&e.acceptResponseType(Ru.contentType)}requestStarted(e){var t;this.state=wc.waiting,(t=this.submitter)===null||t===void 0||t.setAttribute("disabled",""),this.setSubmitsWith(),zo("turbo:submit-start",{target:this.formElement,detail:{formSubmission:this}}),this.delegate.formSubmissionStarted(this)}requestPreventedHandlingResponse(e,t){this.result={success:t.succeeded,fetchResponse:t}}requestSucceededWithResponse(e,t){if(t.clientError||t.serverError)this.delegate.formSubmissionFailedWithResponse(this,t);else if(this.requestMustRedirect(e)&&JD(t)){let r=new Error("Form responses must redirect to another location");this.delegate.formSubmissionErrored(this,r)}else this.state=wc.receiving,this.result={success:!0,fetchResponse:t},this.delegate.formSubmissionSucceededWithResponse(this,t)}requestFailedWithResponse(e,t){this.result={success:!1,fetchResponse:t},this.delegate.formSubmissionFailedWithResponse(this,t)}requestErrored(e,t){this.result={success:!1,error:t},this.delegate.formSubmissionErrored(this,t)}requestFinished(e){var t;this.state=wc.stopped,(t=this.submitter)===null||t===void 0||t.removeAttribute("disabled"),this.resetSubmitterText(),zo("turbo:submit-end",{target:this.formElement,detail:Object.assign({formSubmission:this},this.result)}),this.delegate.formSubmissionFinished(this)}setSubmitsWith(){if(!(!this.submitter||!this.submitsWith)){if(this.submitter.matches("button"))this.originalSubmitText=this.submitter.innerHTML,this.submitter.innerHTML=this.submitsWith;else if(this.submitter.matches("input")){let e=this.submitter;this.originalSubmitText=e.value,e.value=this.submitsWith}}}resetSubmitterText(){if(!(!this.submitter||!this.originalSubmitText)){if(this.submitter.matches("button"))this.submitter.innerHTML=this.originalSubmitText;else if(this.submitter.matches("input")){let e=this.submitter;e.value=this.originalSubmitText}}}requestMustRedirect(e){return!e.isSafe&&this.mustRedirect}requestAcceptsTurboStreamResponse(e){return!e.isSafe||jD("data-turbo-stream",this.submitter,this.formElement)}get submitsWith(){var e;return(e=this.submitter)===null||e===void 0?void 0:e.getAttribute("data-turbo-submits-with")}};function XD(n,e){let t=new FormData(n),r=e?.getAttribute("name"),i=e?.getAttribute("value");return r&&t.append(r,i||""),t}function QD(n){if(n!=null){let t=(document.cookie?document.cookie.split("; "):[]).find(r=>r.startsWith(n));if(t){let r=t.split("=").slice(1).join("=");return r?decodeURIComponent(r):void 0}}}function JD(n){return n.statusCode==200&&!n.redirected}function ZD(n,e){let t=new URLSearchParams;for(let[r,i]of e)i instanceof File||t.append(r,i);return n.search=t.toString(),n}var Td=class{constructor(e){this.element=e}get activeElement(){return this.element.ownerDocument.activeElement}get children(){return[...this.element.children]}hasAnchor(e){return this.getElementForAnchor(e)!=null}getElementForAnchor(e){return e?this.element.querySelector(`[id='${e}'], a[name='${e}']`):null}get isConnected(){return this.element.isConnected}get firstAutofocusableElement(){let e="[inert], :disabled, [hidden], details:not([open]), dialog:not([open])";for(let t of this.element.querySelectorAll("[autofocus]"))if(t.closest(e)==null)return t;return null}get permanentElements(){return Jx(this.element)}getPermanentElementById(e){return Qx(this.element,e)}getPermanentElementMapForSnapshot(e){let t={};for(let r of this.permanentElements){let{id:i}=r,a=e.getPermanentElementById(i);a&&(t[i]=[r,a])}return t}};function Qx(n,e){return n.querySelector(`#${e}[data-turbo-permanent]`)}function Jx(n){return n.querySelectorAll("[id][data-turbo-permanent]")}var hp=class{constructor(e,t){this.started=!1,this.submitCaptured=()=>{this.eventTarget.removeEventListener("submit",this.submitBubbled,!1),this.eventTarget.addEventListener("submit",this.submitBubbled,!1)},this.submitBubbled=r=>{if(!r.defaultPrevented){let i=r.target instanceof HTMLFormElement?r.target:void 0,a=r.submitter||void 0;i&&ek(i,a)&&tk(i,a)&&this.delegate.willSubmitForm(i,a)&&(r.preventDefault(),r.stopImmediatePropagation(),this.delegate.formSubmitted(i,a))}},this.delegate=e,this.eventTarget=t}start(){this.started||(this.eventTarget.addEventListener("submit",this.submitCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("submit",this.submitCaptured,!0),this.started=!1)}};function ek(n,e){return(e?.getAttribute("formmethod")||n.getAttribute("method"))!="dialog"}function tk(n,e){if(e?.hasAttribute("formtarget")||n.hasAttribute("target")){let t=e?.getAttribute("formtarget")||n.target;for(let r of document.getElementsByName(t))if(r instanceof HTMLIFrameElement)return!1;return!0}else return!0}var Dg=class{constructor(e,t){this.resolveRenderPromise=r=>{},this.resolveInterceptionPromise=r=>{},this.delegate=e,this.element=t}scrollToAnchor(e){let t=this.snapshot.getElementForAnchor(e);t?(this.scrollToElement(t),this.focusElement(t)):this.scrollToPosition({x:0,y:0})}scrollToAnchorFromLocation(e){this.scrollToAnchor(vf(e))}scrollToElement(e){e.scrollIntoView()}focusElement(e){e instanceof HTMLElement&&(e.hasAttribute("tabindex")?e.focus():(e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")))}scrollToPosition({x:e,y:t}){this.scrollRoot.scrollTo(e,t)}scrollToTop(){this.scrollToPosition({x:0,y:0})}get scrollRoot(){return window}async render(e){let{isPreview:t,shouldRender:r,newSnapshot:i}=e;if(r)try{this.renderPromise=new Promise(m=>this.resolveRenderPromise=m),this.renderer=e,await this.prepareToRenderSnapshot(e);let a=new Promise(m=>this.resolveInterceptionPromise=m),u={resume:this.resolveInterceptionPromise,render:this.renderer.renderElement};this.delegate.allowsImmediateRender(i,u)||await a,await this.renderSnapshot(e),this.delegate.viewRenderedSnapshot(i,t),this.delegate.preloadOnLoadLinksForView(this.element),this.finishRenderingSnapshot(e)}finally{delete this.renderer,this.resolveRenderPromise(void 0),delete this.renderPromise}else this.invalidate(e.reloadReason)}invalidate(e){this.delegate.viewInvalidated(e)}async prepareToRenderSnapshot(e){this.markAsPreview(e.isPreview),await e.prepareToRender()}markAsPreview(e){e?this.element.setAttribute("data-turbo-preview",""):this.element.removeAttribute("data-turbo-preview")}async renderSnapshot(e){await e.render()}finishRenderingSnapshot(e){e.finishRendering()}},Wb=class extends Dg{missing(){this.element.innerHTML='<strong class="turbo-frame-error">Content missing</strong>'}get snapshot(){return new Td(this.element)}},kg=class{constructor(e,t){this.clickBubbled=r=>{this.respondsToEventTarget(r.target)?this.clickEvent=r:delete this.clickEvent},this.linkClicked=r=>{this.clickEvent&&this.respondsToEventTarget(r.target)&&r.target instanceof Element&&this.delegate.shouldInterceptLinkClick(r.target,r.detail.url,r.detail.originalEvent)&&(this.clickEvent.preventDefault(),r.preventDefault(),this.delegate.linkClickIntercepted(r.target,r.detail.url,r.detail.originalEvent)),delete this.clickEvent},this.willVisit=r=>{delete this.clickEvent},this.delegate=e,this.element=t}start(){this.element.addEventListener("click",this.clickBubbled),document.addEventListener("turbo:click",this.linkClicked),document.addEventListener("turbo:before-visit",this.willVisit)}stop(){this.element.removeEventListener("click",this.clickBubbled),document.removeEventListener("turbo:click",this.linkClicked),document.removeEventListener("turbo:before-visit",this.willVisit)}respondsToEventTarget(e){let t=e instanceof Element?e:e instanceof Node?e.parentElement:null;return t&&t.closest("turbo-frame, html")==this.element}},Og=class{constructor(e,t){this.started=!1,this.clickCaptured=()=>{this.eventTarget.removeEventListener("click",this.clickBubbled,!1),this.eventTarget.addEventListener("click",this.clickBubbled,!1)},this.clickBubbled=r=>{if(r instanceof MouseEvent&&this.clickEventIsSignificant(r)){let i=r.composedPath&&r.composedPath()[0]||r.target,a=this.findLinkFromClickTarget(i);if(a&&nk(a)){let u=this.getLocationForLink(a);this.delegate.willFollowLinkToLocation(a,u,r)&&(r.preventDefault(),this.delegate.followedLinkToLocation(a,u))}}},this.delegate=e,this.eventTarget=t}start(){this.started||(this.eventTarget.addEventListener("click",this.clickCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("click",this.clickCaptured,!0),this.started=!1)}clickEventIsSignificant(e){return!(e.target&&e.target.isContentEditable||e.defaultPrevented||e.which>1||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)}findLinkFromClickTarget(e){return Ag(e,"a[href]:not([target^=_]):not([download])")}getLocationForLink(e){return ea(e.getAttribute("href")||"")}};function nk(n){if(n.hasAttribute("target")){for(let e of document.getElementsByName(n.target))if(e instanceof HTMLIFrameElement)return!1;return!0}else return!0}var Ig=class{constructor(e,t){this.delegate=e,this.linkInterceptor=new Og(this,t)}start(){this.linkInterceptor.start()}stop(){this.linkInterceptor.stop()}willFollowLinkToLocation(e,t,r){return this.delegate.willSubmitFormLinkToLocation(e,t,r)&&e.hasAttribute("data-turbo-method")}followedLinkToLocation(e,t){let r=document.createElement("form"),i="hidden";for(let[S,L]of t.searchParams)r.append(Object.assign(document.createElement("input"),{type:i,name:S,value:L}));let a=Object.assign(t,{search:""});r.setAttribute("data-turbo","true"),r.setAttribute("action",a.href),r.setAttribute("hidden","");let u=e.getAttribute("data-turbo-method");u&&r.setAttribute("method",u);let d=e.getAttribute("data-turbo-frame");d&&r.setAttribute("data-turbo-frame",d);let m=Lg(e);m&&r.setAttribute("data-turbo-action",m);let y=e.getAttribute("data-turbo-confirm");y&&r.setAttribute("data-turbo-confirm",y),e.hasAttribute("data-turbo-stream")&&r.setAttribute("data-turbo-stream",""),this.delegate.submittedFormLinkToLocation(e,t,r),document.body.appendChild(r),r.addEventListener("turbo:submit-end",()=>r.remove(),{once:!0}),requestAnimationFrame(()=>r.requestSubmit())}},Ng=class{static async preservingPermanentElements(e,t,r){let i=new this(e,t);i.enter(),await r(),i.leave()}constructor(e,t){this.delegate=e,this.permanentElementMap=t}enter(){for(let e in this.permanentElementMap){let[t,r]=this.permanentElementMap[e];this.delegate.enteringBardo(t,r),this.replaceNewPermanentElementWithPlaceholder(r)}}leave(){for(let e in this.permanentElementMap){let[t]=this.permanentElementMap[e];this.replaceCurrentPermanentElementWithClone(t),this.replacePlaceholderWithPermanentElement(t),this.delegate.leavingBardo(t)}}replaceNewPermanentElementWithPlaceholder(e){let t=rk(e);e.replaceWith(t)}replaceCurrentPermanentElementWithClone(e){let t=e.cloneNode(!0);e.replaceWith(t)}replacePlaceholderWithPermanentElement(e){let t=this.getPlaceholderById(e.id);t?.replaceWith(e)}getPlaceholderById(e){return this.placeholders.find(t=>t.content==e)}get placeholders(){return[...document.querySelectorAll("meta[name=turbo-permanent-placeholder][content]")]}};function rk(n){let e=document.createElement("meta");return e.setAttribute("name","turbo-permanent-placeholder"),e.setAttribute("content",n.id),e}var pp=class{constructor(e,t,r,i,a=!0){this.activeElement=null,this.currentSnapshot=e,this.newSnapshot=t,this.isPreview=i,this.willRender=a,this.renderElement=r,this.promise=new Promise((u,d)=>this.resolvingFunctions={resolve:u,reject:d})}get shouldRender(){return!0}get reloadReason(){}prepareToRender(){}finishRendering(){this.resolvingFunctions&&(this.resolvingFunctions.resolve(),delete this.resolvingFunctions)}async preservingPermanentElements(e){await Ng.preservingPermanentElements(this,this.permanentElementMap,e)}focusFirstAutofocusableElement(){let e=this.connectedSnapshot.firstAutofocusableElement;ik(e)&&e.focus()}enteringBardo(e){this.activeElement||e.contains(this.currentSnapshot.activeElement)&&(this.activeElement=this.currentSnapshot.activeElement)}leavingBardo(e){e.contains(this.activeElement)&&this.activeElement instanceof HTMLElement&&(this.activeElement.focus(),this.activeElement=null)}get connectedSnapshot(){return this.newSnapshot.isConnected?this.newSnapshot:this.currentSnapshot}get currentElement(){return this.currentSnapshot.element}get newElement(){return this.newSnapshot.element}get permanentElementMap(){return this.currentSnapshot.getPermanentElementMapForSnapshot(this.newSnapshot)}};function ik(n){return n&&typeof n.focus=="function"}var mp=class extends pp{static renderElement(e,t){var r;let i=document.createRange();i.selectNodeContents(e),i.deleteContents();let a=t,u=(r=a.ownerDocument)===null||r===void 0?void 0:r.createRange();u&&(u.selectNodeContents(a),e.appendChild(u.extractContents()))}constructor(e,t,r,i,a,u=!0){super(t,r,i,a,u),this.delegate=e}get shouldRender(){return!0}async render(){await Sg(),this.preservingPermanentElements(()=>{this.loadFrameElement()}),this.scrollFrameIntoView(),await Sg(),this.focusFirstAutofocusableElement(),await Sg(),this.activateScriptElements()}loadFrameElement(){this.delegate.willRenderFrame(this.currentElement,this.newElement),this.renderElement(this.currentElement,this.newElement)}scrollFrameIntoView(){if(this.currentElement.autoscroll||this.newElement.autoscroll){let e=this.currentElement.firstElementChild,t=ok(this.currentElement.getAttribute("data-autoscroll-block"),"end"),r=ak(this.currentElement.getAttribute("data-autoscroll-behavior"),"auto");if(e)return e.scrollIntoView({block:t,behavior:r}),!0}return!1}activateScriptElements(){for(let e of this.newScriptElements){let t=fp(e);e.replaceWith(t)}}get newScriptElements(){return this.currentElement.querySelectorAll("script")}};function ok(n,e){return n=="end"||n=="start"||n=="center"||n=="nearest"?n:e}function ak(n,e){return n=="auto"||n=="smooth"?n:e}var Tl=class{static get defaultCSS(){return Gx`
      .turbo-progress-bar {
        position: fixed;
        display: block;
        top: 0;
        left: 0;
        height: 3px;
        background: #0076ff;
        z-index: 2147483647;
        transition:
          width ${Tl.animationDuration}ms ease-out,
          opacity ${Tl.animationDuration/2}ms ${Tl.animationDuration/2}ms ease-in;
        transform: translate3d(0, 0, 0);
      }
    `}constructor(){this.hiding=!1,this.value=0,this.visible=!1,this.trickle=()=>{this.setValue(this.value+Math.random()/100)},this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement(),this.installStylesheetElement(),this.setValue(0)}show(){this.visible||(this.visible=!0,this.installProgressElement(),this.startTrickling())}hide(){this.visible&&!this.hiding&&(this.hiding=!0,this.fadeProgressElement(()=>{this.uninstallProgressElement(),this.stopTrickling(),this.visible=!1,this.hiding=!1}))}setValue(e){this.value=e,this.refresh()}installStylesheetElement(){document.head.insertBefore(this.stylesheetElement,document.head.firstChild)}installProgressElement(){this.progressElement.style.width="0",this.progressElement.style.opacity="1",document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()}fadeProgressElement(e){this.progressElement.style.opacity="0",setTimeout(e,Tl.animationDuration*1.5)}uninstallProgressElement(){this.progressElement.parentNode&&document.documentElement.removeChild(this.progressElement)}startTrickling(){this.trickleInterval||(this.trickleInterval=window.setInterval(this.trickle,Tl.animationDuration))}stopTrickling(){window.clearInterval(this.trickleInterval),delete this.trickleInterval}refresh(){requestAnimationFrame(()=>{this.progressElement.style.width=`${10+this.value*90}%`})}createStylesheetElement(){let e=document.createElement("style");return e.type="text/css",e.textContent=Tl.defaultCSS,this.cspNonce&&(e.nonce=this.cspNonce),e}createProgressElement(){let e=document.createElement("div");return e.className="turbo-progress-bar",e}get cspNonce(){return Mg("csp-nonce")}};Tl.animationDuration=300;var jb=class extends Td{constructor(){super(...arguments),this.detailsByOuterHTML=this.children.filter(e=>!ck(e)).map(e=>hk(e)).reduce((e,t)=>{let{outerHTML:r}=t,i=r in e?e[r]:{type:sk(t),tracked:lk(t),elements:[]};return Object.assign(Object.assign({},e),{[r]:Object.assign(Object.assign({},i),{elements:[...i.elements,t]})})},{})}get trackedElementSignature(){return Object.keys(this.detailsByOuterHTML).filter(e=>this.detailsByOuterHTML[e].tracked).join("")}getScriptElementsNotInSnapshot(e){return this.getElementsMatchingTypeNotInSnapshot("script",e)}getStylesheetElementsNotInSnapshot(e){return this.getElementsMatchingTypeNotInSnapshot("stylesheet",e)}getElementsMatchingTypeNotInSnapshot(e,t){return Object.keys(this.detailsByOuterHTML).filter(r=>!(r in t.detailsByOuterHTML)).map(r=>this.detailsByOuterHTML[r]).filter(({type:r})=>r==e).map(({elements:[r]})=>r)}get provisionalElements(){return Object.keys(this.detailsByOuterHTML).reduce((e,t)=>{let{type:r,tracked:i,elements:a}=this.detailsByOuterHTML[t];return r==null&&!i?[...e,...a]:a.length>1?[...e,...a.slice(1)]:e},[])}getMetaValue(e){let t=this.findMetaElementByName(e);return t?t.getAttribute("content"):null}findMetaElementByName(e){return Object.keys(this.detailsByOuterHTML).reduce((t,r)=>{let{elements:[i]}=this.detailsByOuterHTML[r];return dk(i,e)?i:t},void 0)}};function sk(n){if(uk(n))return"script";if(fk(n))return"stylesheet"}function lk(n){return n.getAttribute("data-turbo-track")=="reload"}function uk(n){return n.localName=="script"}function ck(n){return n.localName=="noscript"}function fk(n){let e=n.localName;return e=="style"||e=="link"&&n.getAttribute("rel")=="stylesheet"}function dk(n,e){return n.localName=="meta"&&n.getAttribute("name")==e}function hk(n){return n.hasAttribute("nonce")&&n.setAttribute("nonce",""),n}var Ds=class extends Td{static fromHTMLString(e=""){return this.fromDocument($x(e))}static fromElement(e){return this.fromDocument(e.ownerDocument)}static fromDocument({head:e,body:t}){return new this(t,new jb(e))}constructor(e,t){super(e),this.headSnapshot=t}clone(){let e=this.element.cloneNode(!0),t=this.element.querySelectorAll("select"),r=e.querySelectorAll("select");for(let[i,a]of t.entries()){let u=r[i];for(let d of u.selectedOptions)d.selected=!1;for(let d of a.selectedOptions)u.options[d.index].selected=!0}for(let i of e.querySelectorAll('input[type="password"]'))i.value="";return new Ds(e,this.headSnapshot)}get headElement(){return this.headSnapshot.element}get rootLocation(){var e;let t=(e=this.getSetting("root"))!==null&&e!==void 0?e:"/";return ea(t)}get cacheControlValue(){return this.getSetting("cache-control")}get isPreviewable(){return this.cacheControlValue!="no-preview"}get isCacheable(){return this.cacheControlValue!="no-cache"}get isVisitable(){return this.getSetting("visit-control")!="reload"}getSetting(e){return this.headSnapshot.getMetaValue(`turbo-${e}`)}},Ed;(function(n){n.visitStart="visitStart",n.requestStart="requestStart",n.requestEnd="requestEnd",n.visitEnd="visitEnd"})(Ed||(Ed={}));var Sl;(function(n){n.initialized="initialized",n.started="started",n.canceled="canceled",n.failed="failed",n.completed="completed"})(Sl||(Sl={}));var pk={action:"advance",historyChanged:!1,visitCachedSnapshot:()=>{},willRender:!0,updateHistory:!0,shouldCacheSnapshot:!0,acceptsStreamResponse:!1},Cc;(function(n){n[n.networkFailure=0]="networkFailure",n[n.timeoutFailure=-1]="timeoutFailure",n[n.contentTypeMismatch=-2]="contentTypeMismatch"})(Cc||(Cc={}));var Ub=class{constructor(e,t,r,i={}){this.identifier=Sd(),this.timingMetrics={},this.followedRedirect=!1,this.historyChanged=!1,this.scrolled=!1,this.shouldCacheSnapshot=!0,this.acceptsStreamResponse=!1,this.snapshotCached=!1,this.state=Sl.initialized,this.delegate=e,this.location=t,this.restorationIdentifier=r||Sd();let{action:a,historyChanged:u,referrer:d,snapshot:m,snapshotHTML:y,response:x,visitCachedSnapshot:S,willRender:L,updateHistory:H,shouldCacheSnapshot:V,acceptsStreamResponse:U}=Object.assign(Object.assign({},pk),i);this.action=a,this.historyChanged=u,this.referrer=d,this.snapshot=m,this.snapshotHTML=y,this.response=x,this.isSamePage=this.delegate.locationWithActionIsSamePage(this.location,this.action),this.visitCachedSnapshot=S,this.willRender=L,this.updateHistory=H,this.scrolled=!L,this.shouldCacheSnapshot=V,this.acceptsStreamResponse=U}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get history(){return this.delegate.history}get restorationData(){return this.history.getRestorationDataForIdentifier(this.restorationIdentifier)}get silent(){return this.isSamePage}start(){this.state==Sl.initialized&&(this.recordTimingMetric(Ed.visitStart),this.state=Sl.started,this.adapter.visitStarted(this),this.delegate.visitStarted(this))}cancel(){this.state==Sl.started&&(this.request&&this.request.cancel(),this.cancelRender(),this.state=Sl.canceled)}complete(){this.state==Sl.started&&(this.recordTimingMetric(Ed.visitEnd),this.state=Sl.completed,this.followRedirect(),this.followedRedirect||(this.adapter.visitCompleted(this),this.delegate.visitCompleted(this)))}fail(){this.state==Sl.started&&(this.state=Sl.failed,this.adapter.visitFailed(this))}changeHistory(){var e;if(!this.historyChanged&&this.updateHistory){let t=this.location.href===((e=this.referrer)===null||e===void 0?void 0:e.href)?"replace":this.action,r=Kx(t);this.history.update(r,this.location,this.restorationIdentifier),this.historyChanged=!0}}issueRequest(){this.hasPreloadedResponse()?this.simulateRequest():this.shouldIssueRequest()&&!this.request&&(this.request=new dp(this,$a.get,this.location),this.request.perform())}simulateRequest(){this.response&&(this.startRequest(),this.recordResponse(),this.finishRequest())}startRequest(){this.recordTimingMetric(Ed.requestStart),this.adapter.visitRequestStarted(this)}recordResponse(e=this.response){if(this.response=e,e){let{statusCode:t}=e;Wx(t)?this.adapter.visitRequestCompleted(this):this.adapter.visitRequestFailedWithStatusCode(this,t)}}finishRequest(){this.recordTimingMetric(Ed.requestEnd),this.adapter.visitRequestFinished(this)}loadResponse(){if(this.response){let{statusCode:e,responseHTML:t}=this.response;this.render(async()=>{this.shouldCacheSnapshot&&this.cacheSnapshot(),this.view.renderPromise&&await this.view.renderPromise,Wx(e)&&t!=null?(await this.view.renderPage(Ds.fromHTMLString(t),!1,this.willRender,this),this.performScroll(),this.adapter.visitRendered(this),this.complete()):(await this.view.renderError(Ds.fromHTMLString(t),this),this.adapter.visitRendered(this),this.fail())})}}getCachedSnapshot(){let e=this.view.getCachedSnapshotForLocation(this.location)||this.getPreloadedSnapshot();if(e&&(!vf(this.location)||e.hasAnchor(vf(this.location)))&&(this.action=="restore"||e.isPreviewable))return e}getPreloadedSnapshot(){if(this.snapshotHTML)return Ds.fromHTMLString(this.snapshotHTML)}hasCachedSnapshot(){return this.getCachedSnapshot()!=null}loadCachedSnapshot(){let e=this.getCachedSnapshot();if(e){let t=this.shouldIssueRequest();this.render(async()=>{this.cacheSnapshot(),this.isSamePage?this.adapter.visitRendered(this):(this.view.renderPromise&&await this.view.renderPromise,await this.view.renderPage(e,t,this.willRender,this),this.performScroll(),this.adapter.visitRendered(this),t||this.complete())})}}followRedirect(){var e;this.redirectedToLocation&&!this.followedRedirect&&(!((e=this.response)===null||e===void 0)&&e.redirected)&&(this.adapter.visitProposedToLocation(this.redirectedToLocation,{action:"replace",response:this.response,shouldCacheSnapshot:!1,willRender:!1}),this.followedRedirect=!0)}goToSamePageAnchor(){this.isSamePage&&this.render(async()=>{this.cacheSnapshot(),this.performScroll(),this.changeHistory(),this.adapter.visitRendered(this)})}prepareRequest(e){this.acceptsStreamResponse&&e.acceptResponseType(Ru.contentType)}requestStarted(){this.startRequest()}requestPreventedHandlingResponse(e,t){}async requestSucceededWithResponse(e,t){let r=await t.responseHTML,{redirected:i,statusCode:a}=t;r==null?this.recordResponse({statusCode:Cc.contentTypeMismatch,redirected:i}):(this.redirectedToLocation=t.redirected?t.location:void 0,this.recordResponse({statusCode:a,responseHTML:r,redirected:i}))}async requestFailedWithResponse(e,t){let r=await t.responseHTML,{redirected:i,statusCode:a}=t;r==null?this.recordResponse({statusCode:Cc.contentTypeMismatch,redirected:i}):this.recordResponse({statusCode:a,responseHTML:r,redirected:i})}requestErrored(e,t){this.recordResponse({statusCode:Cc.networkFailure,redirected:!1})}requestFinished(){this.finishRequest()}performScroll(){!this.scrolled&&!this.view.forceReloaded&&(this.action=="restore"?this.scrollToRestoredPosition()||this.scrollToAnchor()||this.view.scrollToTop():this.scrollToAnchor()||this.view.scrollToTop(),this.isSamePage&&this.delegate.visitScrolledToSamePageLocation(this.view.lastRenderedLocation,this.location),this.scrolled=!0)}scrollToRestoredPosition(){let{scrollPosition:e}=this.restorationData;if(e)return this.view.scrollToPosition(e),!0}scrollToAnchor(){let e=vf(this.location);if(e!=null)return this.view.scrollToAnchor(e),!0}recordTimingMetric(e){this.timingMetrics[e]=new Date().getTime()}getTimingMetrics(){return Object.assign({},this.timingMetrics)}getHistoryMethodForAction(e){switch(e){case"replace":return history.replaceState;case"advance":case"restore":return history.pushState}}hasPreloadedResponse(){return typeof this.response=="object"}shouldIssueRequest(){return this.isSamePage?!1:this.action=="restore"?!this.hasCachedSnapshot():this.willRender}cacheSnapshot(){this.snapshotCached||(this.view.cacheSnapshot(this.snapshot).then(e=>e&&this.visitCachedSnapshot(e)),this.snapshotCached=!0)}async render(e){this.cancelRender(),await new Promise(t=>{this.frame=requestAnimationFrame(()=>t())}),await e(),delete this.frame}cancelRender(){this.frame&&(cancelAnimationFrame(this.frame),delete this.frame)}};function Wx(n){return n>=200&&n<300}var Vb=class{constructor(e){this.progressBar=new Tl,this.showProgressBar=()=>{this.progressBar.show()},this.session=e}visitProposedToLocation(e,t){this.navigator.startVisit(e,t?.restorationIdentifier||Sd(),t)}visitStarted(e){this.location=e.location,e.loadCachedSnapshot(),e.issueRequest(),e.goToSamePageAnchor()}visitRequestStarted(e){this.progressBar.setValue(0),e.hasCachedSnapshot()||e.action!="restore"?this.showVisitProgressBarAfterDelay():this.showProgressBar()}visitRequestCompleted(e){e.loadResponse()}visitRequestFailedWithStatusCode(e,t){switch(t){case Cc.networkFailure:case Cc.timeoutFailure:case Cc.contentTypeMismatch:return this.reload({reason:"request_failed",context:{statusCode:t}});default:return e.loadResponse()}}visitRequestFinished(e){this.progressBar.setValue(1),this.hideVisitProgressBar()}visitCompleted(e){}pageInvalidated(e){this.reload(e)}visitFailed(e){}visitRendered(e){}formSubmissionStarted(e){this.progressBar.setValue(0),this.showFormProgressBarAfterDelay()}formSubmissionFinished(e){this.progressBar.setValue(1),this.hideFormProgressBar()}showVisitProgressBarAfterDelay(){this.visitProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay)}hideVisitProgressBar(){this.progressBar.hide(),this.visitProgressBarTimeout!=null&&(window.clearTimeout(this.visitProgressBarTimeout),delete this.visitProgressBarTimeout)}showFormProgressBarAfterDelay(){this.formProgressBarTimeout==null&&(this.formProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay))}hideFormProgressBar(){this.progressBar.hide(),this.formProgressBarTimeout!=null&&(window.clearTimeout(this.formProgressBarTimeout),delete this.formProgressBarTimeout)}reload(e){var t;zo("turbo:reload",{detail:e}),window.location.href=((t=this.location)===null||t===void 0?void 0:t.toString())||window.location.href}get navigator(){return this.session.navigator}},Yb=class{constructor(){this.selector="[data-turbo-temporary]",this.deprecatedSelector="[data-turbo-cache=false]",this.started=!1,this.removeTemporaryElements=e=>{for(let t of this.temporaryElements)t.remove()}}start(){this.started||(this.started=!0,addEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}stop(){this.started&&(this.started=!1,removeEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}get temporaryElements(){return[...document.querySelectorAll(this.selector),...this.temporaryElementsWithDeprecation]}get temporaryElementsWithDeprecation(){let e=document.querySelectorAll(this.deprecatedSelector);return e.length&&console.warn(`The ${this.deprecatedSelector} selector is deprecated and will be removed in a future version. Use ${this.selector} instead.`),[...e]}},$b=class{constructor(e,t){this.session=e,this.element=t,this.linkInterceptor=new kg(this,t),this.formSubmitObserver=new hp(this,t)}start(){this.linkInterceptor.start(),this.formSubmitObserver.start()}stop(){this.linkInterceptor.stop(),this.formSubmitObserver.stop()}shouldInterceptLinkClick(e,t,r){return this.shouldRedirect(e)}linkClickIntercepted(e,t,r){let i=this.findFrameElement(e);i&&i.delegate.linkClickIntercepted(e,t,r)}willSubmitForm(e,t){return e.closest("turbo-frame")==null&&this.shouldSubmit(e,t)&&this.shouldRedirect(e,t)}formSubmitted(e,t){let r=this.findFrameElement(e,t);r&&r.delegate.formSubmitted(e,t)}shouldSubmit(e,t){var r;let i=l_(e,t),a=this.element.ownerDocument.querySelector('meta[name="turbo-root"]'),u=ea((r=a?.content)!==null&&r!==void 0?r:"/");return this.shouldRedirect(e,t)&&Cd(i,u)}shouldRedirect(e,t){if(e instanceof HTMLFormElement?this.session.submissionIsNavigatable(e,t):this.session.elementIsNavigatable(e)){let i=this.findFrameElement(e,t);return i?i!=e.closest("turbo-frame"):!1}else return!1}findFrameElement(e,t){let r=t?.getAttribute("data-turbo-frame")||e.getAttribute("data-turbo-frame");if(r&&r!="_top"){let i=this.element.querySelector(`#${r}:not([disabled])`);if(i instanceof Ml)return i}}},Gb=class{constructor(e){this.restorationIdentifier=Sd(),this.restorationData={},this.started=!1,this.pageLoaded=!1,this.onPopState=t=>{if(this.shouldHandlePopState()){let{turbo:r}=t.state||{};if(r){this.location=new URL(window.location.href);let{restorationIdentifier:i}=r;this.restorationIdentifier=i,this.delegate.historyPoppedToLocationWithRestorationIdentifier(this.location,i)}}},this.onPageLoad=async t=>{await zD(),this.pageLoaded=!0},this.delegate=e}start(){this.started||(addEventListener("popstate",this.onPopState,!1),addEventListener("load",this.onPageLoad,!1),this.started=!0,this.replace(new URL(window.location.href)))}stop(){this.started&&(removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1)}push(e,t){this.update(history.pushState,e,t)}replace(e,t){this.update(history.replaceState,e,t)}update(e,t,r=Sd()){let i={turbo:{restorationIdentifier:r}};e.call(history,i,"",t.href),this.location=t,this.restorationIdentifier=r}getRestorationDataForIdentifier(e){return this.restorationData[e]||{}}updateRestorationData(e){let{restorationIdentifier:t}=this,r=this.restorationData[t];this.restorationData[t]=Object.assign(Object.assign({},r),e)}assumeControlOfScrollRestoration(){var e;this.previousScrollRestoration||(this.previousScrollRestoration=(e=history.scrollRestoration)!==null&&e!==void 0?e:"auto",history.scrollRestoration="manual")}relinquishControlOfScrollRestoration(){this.previousScrollRestoration&&(history.scrollRestoration=this.previousScrollRestoration,delete this.previousScrollRestoration)}shouldHandlePopState(){return this.pageIsLoaded()}pageIsLoaded(){return this.pageLoaded||document.readyState=="complete"}},Kb=class{constructor(e){this.delegate=e}proposeVisit(e,t={}){this.delegate.allowsVisitingLocationWithAction(e,t.action)&&(Cd(e,this.view.snapshot.rootLocation)?this.delegate.visitProposedToLocation(e,t):window.location.href=e.toString())}startVisit(e,t,r={}){this.stop(),this.currentVisit=new Ub(this,ea(e),t,Object.assign({referrer:this.location},r)),this.currentVisit.start()}submitForm(e,t){this.stop(),this.formSubmission=new yf(this,e,t,!0),this.formSubmission.start()}stop(){this.formSubmission&&(this.formSubmission.stop(),delete this.formSubmission),this.currentVisit&&(this.currentVisit.cancel(),delete this.currentVisit)}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get history(){return this.delegate.history}formSubmissionStarted(e){typeof this.adapter.formSubmissionStarted=="function"&&this.adapter.formSubmissionStarted(e)}async formSubmissionSucceededWithResponse(e,t){if(e==this.formSubmission){let r=await t.responseHTML;if(r){let i=e.isSafe;i||this.view.clearSnapshotCache();let{statusCode:a,redirected:u}=t,m={action:this.getActionForFormSubmission(e),shouldCacheSnapshot:i,response:{statusCode:a,responseHTML:r,redirected:u}};this.proposeVisit(t.location,m)}}}async formSubmissionFailedWithResponse(e,t){let r=await t.responseHTML;if(r){let i=Ds.fromHTMLString(r);t.serverError?await this.view.renderError(i,this.currentVisit):await this.view.renderPage(i,!1,!0,this.currentVisit),this.view.scrollToTop(),this.view.clearSnapshotCache()}}formSubmissionErrored(e,t){console.error(t)}formSubmissionFinished(e){typeof this.adapter.formSubmissionFinished=="function"&&this.adapter.formSubmissionFinished(e)}visitStarted(e){this.delegate.visitStarted(e)}visitCompleted(e){this.delegate.visitCompleted(e)}locationWithActionIsSamePage(e,t){let r=vf(e),i=vf(this.view.lastRenderedLocation),a=t==="restore"&&typeof r>"u";return t!=="replace"&&Bb(e)===Bb(this.view.lastRenderedLocation)&&(a||r!=null&&r!==i)}visitScrolledToSamePageLocation(e,t){this.delegate.visitScrolledToSamePageLocation(e,t)}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}getActionForFormSubmission({submitter:e,formElement:t}){return Lg(e,t)||"advance"}},Lu;(function(n){n[n.initial=0]="initial",n[n.loading=1]="loading",n[n.interactive=2]="interactive",n[n.complete=3]="complete"})(Lu||(Lu={}));var Xb=class{constructor(e){this.stage=Lu.initial,this.started=!1,this.interpretReadyState=()=>{let{readyState:t}=this;t=="interactive"?this.pageIsInteractive():t=="complete"&&this.pageIsComplete()},this.pageWillUnload=()=>{this.delegate.pageWillUnload()},this.delegate=e}start(){this.started||(this.stage==Lu.initial&&(this.stage=Lu.loading),document.addEventListener("readystatechange",this.interpretReadyState,!1),addEventListener("pagehide",this.pageWillUnload,!1),this.started=!0)}stop(){this.started&&(document.removeEventListener("readystatechange",this.interpretReadyState,!1),removeEventListener("pagehide",this.pageWillUnload,!1),this.started=!1)}pageIsInteractive(){this.stage==Lu.loading&&(this.stage=Lu.interactive,this.delegate.pageBecameInteractive())}pageIsComplete(){this.pageIsInteractive(),this.stage==Lu.interactive&&(this.stage=Lu.complete,this.delegate.pageLoaded())}get readyState(){return document.readyState}},Qb=class{constructor(e){this.started=!1,this.onScroll=()=>{this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})},this.delegate=e}start(){this.started||(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)}stop(){this.started&&(removeEventListener("scroll",this.onScroll,!1),this.started=!1)}updatePosition(e){this.delegate.scrollPositionChanged(e)}},Jb=class{render({fragment:e}){Ng.preservingPermanentElements(this,mk(e),()=>document.documentElement.appendChild(e))}enteringBardo(e,t){t.replaceWith(e.cloneNode(!0))}leavingBardo(){}};function mk(n){let e=Jx(document.documentElement),t={};for(let r of e){let{id:i}=r;for(let a of n.querySelectorAll("turbo-stream")){let u=Qx(a.templateElement.content,i);u&&(t[i]=[r,u])}}return t}var Zb=class{constructor(e){this.sources=new Set,this.started=!1,this.inspectFetchResponse=t=>{let r=gk(t);r&&vk(r)&&(t.preventDefault(),this.receiveMessageResponse(r))},this.receiveMessageEvent=t=>{this.started&&typeof t.data=="string"&&this.receiveMessageHTML(t.data)},this.delegate=e}start(){this.started||(this.started=!0,addEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}stop(){this.started&&(this.started=!1,removeEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}connectStreamSource(e){this.streamSourceIsConnected(e)||(this.sources.add(e),e.addEventListener("message",this.receiveMessageEvent,!1))}disconnectStreamSource(e){this.streamSourceIsConnected(e)&&(this.sources.delete(e),e.removeEventListener("message",this.receiveMessageEvent,!1))}streamSourceIsConnected(e){return this.sources.has(e)}async receiveMessageResponse(e){let t=await e.responseHTML;t&&this.receiveMessageHTML(t)}receiveMessageHTML(e){this.delegate.receivedMessageFromStream(Ru.wrap(e))}};function gk(n){var e;let t=(e=n.detail)===null||e===void 0?void 0:e.fetchResponse;if(t instanceof cp)return t}function vk(n){var e;return((e=n.contentType)!==null&&e!==void 0?e:"").startsWith(Ru.contentType)}var Pg=class extends pp{static renderElement(e,t){let{documentElement:r,body:i}=document;r.replaceChild(t,i)}async render(){this.replaceHeadAndBody(),this.activateScriptElements()}replaceHeadAndBody(){let{documentElement:e,head:t}=document;e.replaceChild(this.newHead,t),this.renderElement(this.currentElement,this.newElement)}activateScriptElements(){for(let e of this.scriptElements){let t=e.parentNode;if(t){let r=fp(e);t.replaceChild(r,e)}}}get newHead(){return this.newSnapshot.headSnapshot.element}get scriptElements(){return document.documentElement.querySelectorAll("script")}},gp=class extends pp{static renderElement(e,t){document.body&&t instanceof HTMLBodyElement?document.body.replaceWith(t):document.documentElement.appendChild(t)}get shouldRender(){return this.newSnapshot.isVisitable&&this.trackedElementsAreIdentical}get reloadReason(){if(!this.newSnapshot.isVisitable)return{reason:"turbo_visit_control_is_reload"};if(!this.trackedElementsAreIdentical)return{reason:"tracked_element_mismatch"}}async prepareToRender(){await this.mergeHead()}async render(){this.willRender&&await this.replaceBody()}finishRendering(){super.finishRendering(),this.isPreview||this.focusFirstAutofocusableElement()}get currentHeadSnapshot(){return this.currentSnapshot.headSnapshot}get newHeadSnapshot(){return this.newSnapshot.headSnapshot}get newElement(){return this.newSnapshot.element}async mergeHead(){let e=this.mergeProvisionalElements(),t=this.copyNewHeadStylesheetElements();this.copyNewHeadScriptElements(),await e,await t}async replaceBody(){await this.preservingPermanentElements(async()=>{this.activateNewBody(),await this.assignNewBody()})}get trackedElementsAreIdentical(){return this.currentHeadSnapshot.trackedElementSignature==this.newHeadSnapshot.trackedElementSignature}async copyNewHeadStylesheetElements(){let e=[];for(let t of this.newHeadStylesheetElements)e.push(UD(t)),document.head.appendChild(t);await Promise.all(e)}copyNewHeadScriptElements(){for(let e of this.newHeadScriptElements)document.head.appendChild(fp(e))}async mergeProvisionalElements(){let e=[...this.newHeadProvisionalElements];for(let t of this.currentHeadProvisionalElements)this.isCurrentElementInElementList(t,e)||document.head.removeChild(t);for(let t of e)document.head.appendChild(t)}isCurrentElementInElementList(e,t){for(let[r,i]of t.entries()){if(e.tagName=="TITLE"){if(i.tagName!="TITLE")continue;if(e.innerHTML==i.innerHTML)return t.splice(r,1),!0}if(i.isEqualNode(e))return t.splice(r,1),!0}return!1}removeCurrentHeadProvisionalElements(){for(let e of this.currentHeadProvisionalElements)document.head.removeChild(e)}copyNewHeadProvisionalElements(){for(let e of this.newHeadProvisionalElements)document.head.appendChild(e)}activateNewBody(){document.adoptNode(this.newElement),this.activateNewBodyScriptElements()}activateNewBodyScriptElements(){for(let e of this.newBodyScriptElements){let t=fp(e);e.replaceWith(t)}}async assignNewBody(){await this.renderElement(this.currentElement,this.newElement)}get newHeadStylesheetElements(){return this.newHeadSnapshot.getStylesheetElementsNotInSnapshot(this.currentHeadSnapshot)}get newHeadScriptElements(){return this.newHeadSnapshot.getScriptElementsNotInSnapshot(this.currentHeadSnapshot)}get currentHeadProvisionalElements(){return this.currentHeadSnapshot.provisionalElements}get newHeadProvisionalElements(){return this.newHeadSnapshot.provisionalElements}get newBodyScriptElements(){return this.newElement.querySelectorAll("script")}},e_=class{constructor(e){this.keys=[],this.snapshots={},this.size=e}has(e){return Cg(e)in this.snapshots}get(e){if(this.has(e)){let t=this.read(e);return this.touch(e),t}}put(e,t){return this.write(e,t),this.touch(e),t}clear(){this.snapshots={}}read(e){return this.snapshots[Cg(e)]}write(e,t){this.snapshots[Cg(e)]=t}touch(e){let t=Cg(e),r=this.keys.indexOf(t);r>-1&&this.keys.splice(r,1),this.keys.unshift(t),this.trim()}trim(){for(let e of this.keys.splice(this.size))delete this.snapshots[e]}},t_=class extends Dg{constructor(){super(...arguments),this.snapshotCache=new e_(10),this.lastRenderedLocation=new URL(location.href),this.forceReloaded=!1}renderPage(e,t=!1,r=!0,i){let a=new gp(this.snapshot,e,gp.renderElement,t,r);return a.shouldRender?i?.changeHistory():this.forceReloaded=!0,this.render(a)}renderError(e,t){t?.changeHistory();let r=new Pg(this.snapshot,e,Pg.renderElement,!1);return this.render(r)}clearSnapshotCache(){this.snapshotCache.clear()}async cacheSnapshot(e=this.snapshot){if(e.isCacheable){this.delegate.viewWillCacheSnapshot();let{lastRenderedLocation:t}=this;await qD();let r=e.clone();return this.snapshotCache.put(t,r),r}}getCachedSnapshotForLocation(e){return this.snapshotCache.get(e)}get snapshot(){return Ds.fromElement(this.element)}},n_=class{constructor(e){this.selector="a[data-turbo-preload]",this.delegate=e}get snapshotCache(){return this.delegate.navigator.view.snapshotCache}start(){if(document.readyState==="loading")return document.addEventListener("DOMContentLoaded",()=>{this.preloadOnLoadLinksForView(document.body)});this.preloadOnLoadLinksForView(document.body)}preloadOnLoadLinksForView(e){for(let t of e.querySelectorAll(this.selector))this.preloadURL(t)}async preloadURL(e){let t=new URL(e.href);if(!this.snapshotCache.has(t))try{let i=await(await fetch(t.toString(),{headers:{"VND.PREFETCH":"true",Accept:"text/html"}})).text(),a=Ds.fromHTMLString(i);this.snapshotCache.put(t,a)}catch{}}},r_=class{constructor(){this.navigator=new Kb(this),this.history=new Gb(this),this.preloader=new n_(this),this.view=new t_(this,document.documentElement),this.adapter=new Vb(this),this.pageObserver=new Xb(this),this.cacheObserver=new Yb,this.linkClickObserver=new Og(this,window),this.formSubmitObserver=new hp(this,document),this.scrollObserver=new Qb(this),this.streamObserver=new Zb(this),this.formLinkClickObserver=new Ig(this,document.documentElement),this.frameRedirector=new $b(this,document.documentElement),this.streamMessageRenderer=new Jb,this.drive=!0,this.enabled=!0,this.progressBarDelay=500,this.started=!1,this.formMode="on"}start(){this.started||(this.pageObserver.start(),this.cacheObserver.start(),this.formLinkClickObserver.start(),this.linkClickObserver.start(),this.formSubmitObserver.start(),this.scrollObserver.start(),this.streamObserver.start(),this.frameRedirector.start(),this.history.start(),this.preloader.start(),this.started=!0,this.enabled=!0)}disable(){this.enabled=!1}stop(){this.started&&(this.pageObserver.stop(),this.cacheObserver.stop(),this.formLinkClickObserver.stop(),this.linkClickObserver.stop(),this.formSubmitObserver.stop(),this.scrollObserver.stop(),this.streamObserver.stop(),this.frameRedirector.stop(),this.history.stop(),this.started=!1)}registerAdapter(e){this.adapter=e}visit(e,t={}){let r=t.frame?document.getElementById(t.frame):null;r instanceof Ml?(r.src=e.toString(),r.loaded):this.navigator.proposeVisit(ea(e),t)}connectStreamSource(e){this.streamObserver.connectStreamSource(e)}disconnectStreamSource(e){this.streamObserver.disconnectStreamSource(e)}renderStreamMessage(e){this.streamMessageRenderer.render(Ru.wrap(e))}clearCache(){this.view.clearSnapshotCache()}setProgressBarDelay(e){this.progressBarDelay=e}setFormMode(e){this.formMode=e}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}historyPoppedToLocationWithRestorationIdentifier(e,t){this.enabled?this.navigator.startVisit(e,t,{action:"restore",historyChanged:!0}):this.adapter.pageInvalidated({reason:"turbo_disabled"})}scrollPositionChanged(e){this.history.updateRestorationData({scrollPosition:e})}willSubmitFormLinkToLocation(e,t){return this.elementIsNavigatable(e)&&Cd(t,this.snapshot.rootLocation)}submittedFormLinkToLocation(){}willFollowLinkToLocation(e,t,r){return this.elementIsNavigatable(e)&&Cd(t,this.snapshot.rootLocation)&&this.applicationAllowsFollowingLinkToLocation(e,t,r)}followedLinkToLocation(e,t){let r=this.getActionForLink(e),i=e.hasAttribute("data-turbo-stream");this.visit(t.href,{action:r,acceptsStreamResponse:i})}allowsVisitingLocationWithAction(e,t){return this.locationWithActionIsSamePage(e,t)||this.applicationAllowsVisitingLocation(e)}visitProposedToLocation(e,t){jx(e),this.adapter.visitProposedToLocation(e,t)}visitStarted(e){e.acceptsStreamResponse||Hb(document.documentElement),jx(e.location),e.silent||this.notifyApplicationAfterVisitingLocation(e.location,e.action)}visitCompleted(e){qb(document.documentElement),this.notifyApplicationAfterPageLoad(e.getTimingMetrics())}locationWithActionIsSamePage(e,t){return this.navigator.locationWithActionIsSamePage(e,t)}visitScrolledToSamePageLocation(e,t){this.notifyApplicationAfterVisitingSamePageLocation(e,t)}willSubmitForm(e,t){let r=l_(e,t);return this.submissionIsNavigatable(e,t)&&Cd(ea(r),this.snapshot.rootLocation)}formSubmitted(e,t){this.navigator.submitForm(e,t)}pageBecameInteractive(){this.view.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()}pageLoaded(){this.history.assumeControlOfScrollRestoration()}pageWillUnload(){this.history.relinquishControlOfScrollRestoration()}receivedMessageFromStream(e){this.renderStreamMessage(e)}viewWillCacheSnapshot(){var e;!((e=this.navigator.currentVisit)===null||e===void 0)&&e.silent||this.notifyApplicationBeforeCachingSnapshot()}allowsImmediateRender({element:e},t){let r=this.notifyApplicationBeforeRender(e,t),{defaultPrevented:i,detail:{render:a}}=r;return this.view.renderer&&a&&(this.view.renderer.renderElement=a),!i}viewRenderedSnapshot(e,t){this.view.lastRenderedLocation=this.history.location,this.notifyApplicationAfterRender()}preloadOnLoadLinksForView(e){this.preloader.preloadOnLoadLinksForView(e)}viewInvalidated(e){this.adapter.pageInvalidated(e)}frameLoaded(e){this.notifyApplicationAfterFrameLoad(e)}frameRendered(e,t){this.notifyApplicationAfterFrameRender(e,t)}applicationAllowsFollowingLinkToLocation(e,t,r){return!this.notifyApplicationAfterClickingLinkToLocation(e,t,r).defaultPrevented}applicationAllowsVisitingLocation(e){return!this.notifyApplicationBeforeVisitingLocation(e).defaultPrevented}notifyApplicationAfterClickingLinkToLocation(e,t,r){return zo("turbo:click",{target:e,detail:{url:t.href,originalEvent:r},cancelable:!0})}notifyApplicationBeforeVisitingLocation(e){return zo("turbo:before-visit",{detail:{url:e.href},cancelable:!0})}notifyApplicationAfterVisitingLocation(e,t){return zo("turbo:visit",{detail:{url:e.href,action:t}})}notifyApplicationBeforeCachingSnapshot(){return zo("turbo:before-cache")}notifyApplicationBeforeRender(e,t){return zo("turbo:before-render",{detail:Object.assign({newBody:e},t),cancelable:!0})}notifyApplicationAfterRender(){return zo("turbo:render")}notifyApplicationAfterPageLoad(e={}){return zo("turbo:load",{detail:{url:this.location.href,timing:e}})}notifyApplicationAfterVisitingSamePageLocation(e,t){dispatchEvent(new HashChangeEvent("hashchange",{oldURL:e.toString(),newURL:t.toString()}))}notifyApplicationAfterFrameLoad(e){return zo("turbo:frame-load",{target:e})}notifyApplicationAfterFrameRender(e,t){return zo("turbo:frame-render",{detail:{fetchResponse:e},target:t,cancelable:!0})}submissionIsNavigatable(e,t){if(this.formMode=="off")return!1;{let r=t?this.elementIsNavigatable(t):!0;return this.formMode=="optin"?r&&e.closest('[data-turbo="true"]')!=null:r&&this.elementIsNavigatable(e)}}elementIsNavigatable(e){let t=Ag(e,"[data-turbo]"),r=Ag(e,"turbo-frame");return this.drive||r?t?t.getAttribute("data-turbo")!="false":!0:t?t.getAttribute("data-turbo")=="true":!1}getActionForLink(e){return Lg(e)||"advance"}get snapshot(){return this.view.snapshot}};function jx(n){Object.defineProperties(n,yk)}var yk={absoluteURL:{get(){return this.toString()}}},i_=class{constructor(e){this.session=e}clear(){this.session.clearCache()}resetCacheControl(){this.setCacheControl("")}exemptPageFromCache(){this.setCacheControl("no-cache")}exemptPageFromPreview(){this.setCacheControl("no-preview")}setCacheControl(e){YD("turbo-cache-control",e)}},Zx={after(){this.targetElements.forEach(n=>{var e;return(e=n.parentElement)===null||e===void 0?void 0:e.insertBefore(this.templateContent,n.nextSibling)})},append(){this.removeDuplicateTargetChildren(),this.targetElements.forEach(n=>n.append(this.templateContent))},before(){this.targetElements.forEach(n=>{var e;return(e=n.parentElement)===null||e===void 0?void 0:e.insertBefore(this.templateContent,n)})},prepend(){this.removeDuplicateTargetChildren(),this.targetElements.forEach(n=>n.prepend(this.templateContent))},remove(){this.targetElements.forEach(n=>n.remove())},replace(){this.targetElements.forEach(n=>n.replaceWith(this.templateContent))},update(){this.targetElements.forEach(n=>{n.innerHTML="",n.append(this.templateContent)})}},Bi=new r_,bk=new i_(Bi),{navigator:_k}=Bi;function e1(){Bi.start()}function wk(n){Bi.registerAdapter(n)}function xk(n,e){Bi.visit(n,e)}function Rg(n){Bi.connectStreamSource(n)}function Fg(n){Bi.disconnectStreamSource(n)}function Ek(n){Bi.renderStreamMessage(n)}function Ck(){console.warn("Please replace `Turbo.clearCache()` with `Turbo.cache.clear()`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),Bi.clearCache()}function Sk(n){Bi.setProgressBarDelay(n)}function Tk(n){yf.confirmMethod=n}function Mk(n){Bi.setFormMode(n)}var Ak=Object.freeze({__proto__:null,navigator:_k,session:Bi,cache:bk,PageRenderer:gp,PageSnapshot:Ds,FrameRenderer:mp,start:e1,registerAdapter:wk,visit:xk,connectStreamSource:Rg,disconnectStreamSource:Fg,renderStreamMessage:Ek,clearCache:Ck,setProgressBarDelay:Sk,setConfirmMethod:Tk,setFormMode:Mk,StreamActions:Zx}),o_=class extends Error{},a_=class{constructor(e){this.fetchResponseLoaded=t=>{},this.currentFetchRequest=null,this.resolveVisitPromise=()=>{},this.connected=!1,this.hasBeenLoaded=!1,this.ignoredAttributes=new Set,this.action=null,this.visitCachedSnapshot=({element:t})=>{let r=t.querySelector("#"+this.element.id);r&&this.previousFrameElement&&r.replaceChildren(...this.previousFrameElement.children),delete this.previousFrameElement},this.element=e,this.view=new Wb(this,this.element),this.appearanceObserver=new zb(this,this.element),this.formLinkClickObserver=new Ig(this,this.element),this.linkInterceptor=new kg(this,this.element),this.restorationIdentifier=Sd(),this.formSubmitObserver=new hp(this,this.element)}connect(){this.connected||(this.connected=!0,this.loadingStyle==Ec.lazy?this.appearanceObserver.start():this.loadSourceURL(),this.formLinkClickObserver.start(),this.linkInterceptor.start(),this.formSubmitObserver.start())}disconnect(){this.connected&&(this.connected=!1,this.appearanceObserver.stop(),this.formLinkClickObserver.stop(),this.linkInterceptor.stop(),this.formSubmitObserver.stop())}disabledChanged(){this.loadingStyle==Ec.eager&&this.loadSourceURL()}sourceURLChanged(){this.isIgnoringChangesTo("src")||(this.element.isConnected&&(this.complete=!1),(this.loadingStyle==Ec.eager||this.hasBeenLoaded)&&this.loadSourceURL())}sourceURLReloaded(){let{src:e}=this.element;return this.ignoringChangesToAttribute("complete",()=>{this.element.removeAttribute("complete")}),this.element.src=null,this.element.src=e,this.element.loaded}completeChanged(){this.isIgnoringChangesTo("complete")||this.loadSourceURL()}loadingStyleChanged(){this.loadingStyle==Ec.lazy?this.appearanceObserver.start():(this.appearanceObserver.stop(),this.loadSourceURL())}async loadSourceURL(){this.enabled&&this.isActive&&!this.complete&&this.sourceURL&&(this.element.loaded=this.visit(ea(this.sourceURL)),this.appearanceObserver.stop(),await this.element.loaded,this.hasBeenLoaded=!0)}async loadResponse(e){(e.redirected||e.succeeded&&e.isHTML)&&(this.sourceURL=e.response.url);try{let t=await e.responseHTML;if(t){let r=$x(t);Ds.fromDocument(r).isVisitable?await this.loadFrameResponse(e,r):await this.handleUnvisitableFrameResponse(e)}}finally{this.fetchResponseLoaded=()=>{}}}elementAppearedInViewport(e){this.proposeVisitIfNavigatedWithAction(e,e),this.loadSourceURL()}willSubmitFormLinkToLocation(e){return this.shouldInterceptNavigation(e)}submittedFormLinkToLocation(e,t,r){let i=this.findFrameElement(e);i&&r.setAttribute("data-turbo-frame",i.id)}shouldInterceptLinkClick(e,t,r){return this.shouldInterceptNavigation(e)}linkClickIntercepted(e,t){this.navigateFrame(e,t)}willSubmitForm(e,t){return e.closest("turbo-frame")==this.element&&this.shouldInterceptNavigation(e,t)}formSubmitted(e,t){this.formSubmission&&this.formSubmission.stop(),this.formSubmission=new yf(this,e,t);let{fetchRequest:r}=this.formSubmission;this.prepareRequest(r),this.formSubmission.start()}prepareRequest(e){var t;e.headers["Turbo-Frame"]=this.id,!((t=this.currentNavigationElement)===null||t===void 0)&&t.hasAttribute("data-turbo-stream")&&e.acceptResponseType(Ru.contentType)}requestStarted(e){Hb(this.element)}requestPreventedHandlingResponse(e,t){this.resolveVisitPromise()}async requestSucceededWithResponse(e,t){await this.loadResponse(t),this.resolveVisitPromise()}async requestFailedWithResponse(e,t){await this.loadResponse(t),this.resolveVisitPromise()}requestErrored(e,t){console.error(t),this.resolveVisitPromise()}requestFinished(e){qb(this.element)}formSubmissionStarted({formElement:e}){Hb(e,this.findFrameElement(e))}formSubmissionSucceededWithResponse(e,t){let r=this.findFrameElement(e.formElement,e.submitter);r.delegate.proposeVisitIfNavigatedWithAction(r,e.formElement,e.submitter),r.delegate.loadResponse(t),e.isSafe||Bi.clearCache()}formSubmissionFailedWithResponse(e,t){this.element.delegate.loadResponse(t),Bi.clearCache()}formSubmissionErrored(e,t){console.error(t)}formSubmissionFinished({formElement:e}){qb(e,this.findFrameElement(e))}allowsImmediateRender({element:e},t){let r=zo("turbo:before-frame-render",{target:this.element,detail:Object.assign({newFrame:e},t),cancelable:!0}),{defaultPrevented:i,detail:{render:a}}=r;return this.view.renderer&&a&&(this.view.renderer.renderElement=a),!i}viewRenderedSnapshot(e,t){}preloadOnLoadLinksForView(e){Bi.preloadOnLoadLinksForView(e)}viewInvalidated(){}willRenderFrame(e,t){this.previousFrameElement=e.cloneNode(!0)}async loadFrameResponse(e,t){let r=await this.extractForeignFrameElement(t.body);if(r){let i=new Td(r),a=new mp(this,this.view.snapshot,i,mp.renderElement,!1,!1);this.view.renderPromise&&await this.view.renderPromise,this.changeHistory(),await this.view.render(a),this.complete=!0,Bi.frameRendered(e,this.element),Bi.frameLoaded(this.element),this.fetchResponseLoaded(e)}else this.willHandleFrameMissingFromResponse(e)&&this.handleFrameMissingFromResponse(e)}async visit(e){var t;let r=new dp(this,$a.get,e,new URLSearchParams,this.element);return(t=this.currentFetchRequest)===null||t===void 0||t.cancel(),this.currentFetchRequest=r,new Promise(i=>{this.resolveVisitPromise=()=>{this.resolveVisitPromise=()=>{},this.currentFetchRequest=null,i()},r.perform()})}navigateFrame(e,t,r){let i=this.findFrameElement(e,r);i.delegate.proposeVisitIfNavigatedWithAction(i,e,r),this.withCurrentNavigationElement(e,()=>{i.src=t})}proposeVisitIfNavigatedWithAction(e,t,r){if(this.action=Lg(r,t,e),this.action){let i=Ds.fromElement(e).clone(),{visitCachedSnapshot:a}=e.delegate;e.delegate.fetchResponseLoaded=u=>{if(e.src){let{statusCode:d,redirected:m}=u,y=e.ownerDocument.documentElement.outerHTML,S={response:{statusCode:d,redirected:m,responseHTML:y},visitCachedSnapshot:a,willRender:!1,updateHistory:!1,restorationIdentifier:this.restorationIdentifier,snapshot:i};this.action&&(S.action=this.action),Bi.visit(e.src,S)}}}}changeHistory(){if(this.action){let e=Kx(this.action);Bi.history.update(e,ea(this.element.src||""),this.restorationIdentifier)}}async handleUnvisitableFrameResponse(e){console.warn(`The response (${e.statusCode}) from <turbo-frame id="${this.element.id}"> is performing a full page visit due to turbo-visit-control.`),await this.visitResponse(e.response)}willHandleFrameMissingFromResponse(e){this.element.setAttribute("complete","");let t=e.response,r=async(a,u={})=>{a instanceof Response?this.visitResponse(a):Bi.visit(a,u)};return!zo("turbo:frame-missing",{target:this.element,detail:{response:t,visit:r},cancelable:!0}).defaultPrevented}handleFrameMissingFromResponse(e){this.view.missing(),this.throwFrameMissingError(e)}throwFrameMissingError(e){let t=`The response (${e.statusCode}) did not contain the expected <turbo-frame id="${this.element.id}"> and will be ignored. To perform a full page visit instead, set turbo-visit-control to reload.`;throw new o_(t)}async visitResponse(e){let t=new cp(e),r=await t.responseHTML,{location:i,redirected:a,statusCode:u}=t;return Bi.visit(i,{response:{redirected:a,statusCode:u,responseHTML:r}})}findFrameElement(e,t){var r;let i=Tg("data-turbo-frame",t,e)||this.element.getAttribute("target");return(r=Ux(i))!==null&&r!==void 0?r:this.element}async extractForeignFrameElement(e){let t,r=CSS.escape(this.id);try{if(t=Vx(e.querySelector(`turbo-frame#${r}`),this.sourceURL),t)return t;if(t=Vx(e.querySelector(`turbo-frame[src][recurse~=${r}]`),this.sourceURL),t)return await t.loaded,await this.extractForeignFrameElement(t)}catch(i){return console.error(i),new Ml}return null}formActionIsVisitable(e,t){let r=l_(e,t);return Cd(ea(r),this.rootLocation)}shouldInterceptNavigation(e,t){let r=Tg("data-turbo-frame",t,e)||this.element.getAttribute("target");if(e instanceof HTMLFormElement&&!this.formActionIsVisitable(e,t)||!this.enabled||r=="_top")return!1;if(r){let i=Ux(r);if(i)return!i.disabled}return!(!Bi.elementIsNavigatable(e)||t&&!Bi.elementIsNavigatable(t))}get id(){return this.element.id}get enabled(){return!this.element.disabled}get sourceURL(){if(this.element.src)return this.element.src}set sourceURL(e){this.ignoringChangesToAttribute("src",()=>{this.element.src=e??null})}get loadingStyle(){return this.element.loading}get isLoading(){return this.formSubmission!==void 0||this.resolveVisitPromise()!==void 0}get complete(){return this.element.hasAttribute("complete")}set complete(e){this.ignoringChangesToAttribute("complete",()=>{e?this.element.setAttribute("complete",""):this.element.removeAttribute("complete")})}get isActive(){return this.element.isActive&&this.connected}get rootLocation(){var e;let t=this.element.ownerDocument.querySelector('meta[name="turbo-root"]'),r=(e=t?.content)!==null&&e!==void 0?e:"/";return ea(r)}isIgnoringChangesTo(e){return this.ignoredAttributes.has(e)}ignoringChangesToAttribute(e,t){this.ignoredAttributes.add(e),t(),this.ignoredAttributes.delete(e)}withCurrentNavigationElement(e,t){this.currentNavigationElement=e,t(),delete this.currentNavigationElement}};function Ux(n){if(n!=null){let e=document.getElementById(n);if(e instanceof Ml)return e}}function Vx(n,e){if(n){let t=n.getAttribute("src");if(t!=null&&e!=null&&ND(t,e))throw new Error(`Matching <turbo-frame id="${n.id}"> element has a source URL which references itself`);if(n.ownerDocument!==document&&(n=document.importNode(n,!0)),n instanceof Ml)return n.connectedCallback(),n.disconnectedCallback(),n}}var vp=class extends HTMLElement{static async renderElement(e){await e.performAction()}async connectedCallback(){try{await this.render()}catch(e){console.error(e)}finally{this.disconnect()}}async render(){var e;return(e=this.renderPromise)!==null&&e!==void 0?e:this.renderPromise=(async()=>{let t=this.beforeRenderEvent;this.dispatchEvent(t)&&(await Sg(),await t.detail.render(this))})()}disconnect(){try{this.remove()}catch{}}removeDuplicateTargetChildren(){this.duplicateChildren.forEach(e=>e.remove())}get duplicateChildren(){var e;let t=this.targetElements.flatMap(i=>[...i.children]).filter(i=>!!i.id),r=[...((e=this.templateContent)===null||e===void 0?void 0:e.children)||[]].filter(i=>!!i.id).map(i=>i.id);return t.filter(i=>r.includes(i.id))}get performAction(){if(this.action){let e=Zx[this.action];if(e)return e;this.raise("unknown action")}this.raise("action attribute is missing")}get targetElements(){if(this.target)return this.targetElementsById;if(this.targets)return this.targetElementsByQuery;this.raise("target or targets attribute is missing")}get templateContent(){return this.templateElement.content.cloneNode(!0)}get templateElement(){if(this.firstElementChild===null){let e=this.ownerDocument.createElement("template");return this.appendChild(e),e}else if(this.firstElementChild instanceof HTMLTemplateElement)return this.firstElementChild;this.raise("first child element must be a <template> element")}get action(){return this.getAttribute("action")}get target(){return this.getAttribute("target")}get targets(){return this.getAttribute("targets")}raise(e){throw new Error(`${this.description}: ${e}`)}get description(){var e,t;return(t=((e=this.outerHTML.match(/<[^>]+>/))!==null&&e!==void 0?e:[])[0])!==null&&t!==void 0?t:"<turbo-stream>"}get beforeRenderEvent(){return new CustomEvent("turbo:before-stream-render",{bubbles:!0,cancelable:!0,detail:{newStream:this,render:vp.renderElement}})}get targetElementsById(){var e;let t=(e=this.ownerDocument)===null||e===void 0?void 0:e.getElementById(this.target);return t!==null?[t]:[]}get targetElementsByQuery(){var e;let t=(e=this.ownerDocument)===null||e===void 0?void 0:e.querySelectorAll(this.targets);return t.length!==0?Array.prototype.slice.call(t):[]}},s_=class extends HTMLElement{constructor(){super(...arguments),this.streamSource=null}connectedCallback(){this.streamSource=this.src.match(/^ws{1,2}:/)?new WebSocket(this.src):new EventSource(this.src),Rg(this.streamSource)}disconnectedCallback(){this.streamSource&&Fg(this.streamSource)}get src(){return this.getAttribute("src")||""}};Ml.delegateConstructor=a_;customElements.get("turbo-frame")===void 0&&customElements.define("turbo-frame",Ml);customElements.get("turbo-stream")===void 0&&customElements.define("turbo-stream",vp);customElements.get("turbo-stream-source")===void 0&&customElements.define("turbo-stream-source",s_);(()=>{let n=document.currentScript;if(n&&!n.hasAttribute("data-turbo-suppress-warning"))for(n=n.parentElement;n;){if(n==document.body)return console.warn(Gx`
        You are loading Turbo from a <script> element inside the <body> element. This is probably not what you meant to do!

        Load your application’s JavaScript bundle inside the <head> element instead. <script> elements in <body> are evaluated with each page change.

        For more information, see: https://turbo.hotwired.dev/handbook/building#working-with-script-elements

        ——
        Suppress this warning by adding a "data-turbo-suppress-warning" attribute to: %s
      `,n.outerHTML);n=n.parentElement}})();window.Turbo=Ak;e1();var s1;async function Nk(){return s1||a1(Pk().then(a1))}function a1(n){return s1=n}async function Pk(){let{createConsumer:n}=await Promise.resolve().then(()=>(o1(),i1));return n()}async function l1(n,e){let{subscriptions:t}=await Nk();return t.create(n,e)}function Ep(n){return!n||typeof n!="object"||n instanceof Date||n instanceof RegExp?n:Array.isArray(n)?n.map(Ep):Object.keys(n).reduce(function(e,t){var r=t[0].toLowerCase()+t.slice(1).replace(/([A-Z]+)/g,function(i,a){return"_"+a.toLowerCase()});return e[r]=Ep(n[t]),e},{})}var y_=class extends HTMLElement{async connectedCallback(){Rg(this),this.subscription=await l1(this.channel,{received:this.dispatchMessageEvent.bind(this),connected:this.subscriptionConnected.bind(this),disconnected:this.subscriptionDisconnected.bind(this)})}disconnectedCallback(){Fg(this),this.subscription&&this.subscription.unsubscribe()}dispatchMessageEvent(e){let t=new MessageEvent("message",{data:e});return this.dispatchEvent(t)}subscriptionConnected(){this.setAttribute("connected","")}subscriptionDisconnected(){this.removeAttribute("connected")}get channel(){let e=this.getAttribute("channel"),t=this.getAttribute("signed-stream-name");return{channel:e,signed_stream_name:t,...Ep({...this.dataset})}}};customElements.get("turbo-cable-stream-source")===void 0&&customElements.define("turbo-cable-stream-source",y_);function u1(n){if(n.target instanceof HTMLFormElement){let{target:e,detail:{fetchOptions:t}}=n;e.addEventListener("turbo:submit-start",({detail:{formSubmission:{submitter:r}}})=>{let i=Bk(t.body)?t.body:new URLSearchParams,a=Rk(r,i,e);/get/i.test(a)||(/post/i.test(a)?i.delete("_method"):i.set("_method",a),t.method="post")},{once:!0})}}function Rk(n,e,t){let r=Fk(n),i=e.get("_method"),a=t.getAttribute("method")||"get";return typeof r=="string"?r:typeof i=="string"?i:a}function Fk(n){return(n instanceof HTMLButtonElement||n instanceof HTMLInputElement)&&n.hasAttribute("formmethod")?n.formMethod:null}function Bk(n){return n instanceof FormData||n instanceof URLSearchParams}addEventListener("turbo:before-fetch-request",u1);var Gi=Fi(Cp());function f1(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function ru(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?f1(Object(t),!0).forEach(function(r){Hk(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f1(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Gg(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gg=function(e){return typeof e}:Gg=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gg(n)}function Hk(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Bu(){return Bu=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Bu.apply(this,arguments)}function qk(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}function zk(n,e){if(n==null)return{};var t=qk(n,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}var Wk="1.15.0";function Fu(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var Hu=Fu(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Np=Fu(/Edge/i),d1=Fu(/firefox/i),Ap=Fu(/safari/i)&&!Fu(/chrome/i)&&!Fu(/android/i),_1=Fu(/iP(ad|od|hone)/i),w1=Fu(/chrome/i)&&Fu(/android/i),x1={capture:!1,passive:!1};function qr(n,e,t){n.addEventListener(e,t,!Hu&&x1)}function Nr(n,e,t){n.removeEventListener(e,t,!Hu&&x1)}function Zg(n,e){if(e){if(e[0]===">"&&(e=e.substring(1)),n)try{if(n.matches)return n.matches(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e)}catch{return!1}return!1}}function jk(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function tu(n,e,t,r){if(n){t=t||document;do{if(e!=null&&(e[0]===">"?n.parentNode===t&&Zg(n,e):Zg(n,e))||r&&n===t)return n;if(n===t)break}while(n=jk(n))}return null}var h1=/\s+/g;function ks(n,e,t){if(n&&e)if(n.classList)n.classList[t?"add":"remove"](e);else{var r=(" "+n.className+" ").replace(h1," ").replace(" "+e+" "," ");n.className=(r+(t?" "+e:"")).replace(h1," ")}}function jn(n,e,t){var r=n&&n.style;if(r){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(t=n.currentStyle),e===void 0?t:t[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=t+(typeof t=="string"?"":"px")}}function Nd(n,e){var t="";if(typeof n=="string")t=n;else do{var r=jn(n,"transform");r&&r!=="none"&&(t=r+" "+t)}while(!e&&(n=n.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(t)}function E1(n,e,t){if(n){var r=n.getElementsByTagName(e),i=0,a=r.length;if(t)for(;i<a;i++)t(r[i],i);return r}return[]}function nu(){var n=document.scrollingElement;return n||document.documentElement}function wo(n,e,t,r,i){if(!(!n.getBoundingClientRect&&n!==window)){var a,u,d,m,y,x,S;if(n!==window&&n.parentNode&&n!==nu()?(a=n.getBoundingClientRect(),u=a.top,d=a.left,m=a.bottom,y=a.right,x=a.height,S=a.width):(u=0,d=0,m=window.innerHeight,y=window.innerWidth,x=window.innerHeight,S=window.innerWidth),(e||t)&&n!==window&&(i=i||n.parentNode,!Hu))do if(i&&i.getBoundingClientRect&&(jn(i,"transform")!=="none"||t&&jn(i,"position")!=="static")){var L=i.getBoundingClientRect();u-=L.top+parseInt(jn(i,"border-top-width")),d-=L.left+parseInt(jn(i,"border-left-width")),m=u+a.height,y=d+a.width;break}while(i=i.parentNode);if(r&&n!==window){var H=Nd(i||n),V=H&&H.a,U=H&&H.d;H&&(u/=U,d/=V,S/=V,x/=U,m=u+x,y=d+S)}return{top:u,left:d,bottom:m,right:y,width:S,height:x}}}function p1(n,e,t){for(var r=Ac(n,!0),i=wo(n)[e];r;){var a=wo(r)[t],u=void 0;if(t==="top"||t==="left"?u=i>=a:u=i<=a,!u)return r;if(r===nu())break;r=Ac(r,!1)}return!1}function Pd(n,e,t,r){for(var i=0,a=0,u=n.children;a<u.length;){if(u[a].style.display!=="none"&&u[a]!==Un.ghost&&(r||u[a]!==Un.dragged)&&tu(u[a],t.draggable,n,!1)){if(i===e)return u[a];i++}a++}return null}function I_(n,e){for(var t=n.lastElementChild;t&&(t===Un.ghost||jn(t,"display")==="none"||e&&!Zg(t,e));)t=t.previousElementSibling;return t||null}function Vs(n,e){var t=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==Un.clone&&(!e||Zg(n,e))&&t++;return t}function m1(n){var e=0,t=0,r=nu();if(n)do{var i=Nd(n),a=i.a,u=i.d;e+=n.scrollLeft*a,t+=n.scrollTop*u}while(n!==r&&(n=n.parentNode));return[e,t]}function Uk(n,e){for(var t in n)if(n.hasOwnProperty(t)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===n[t][r])return Number(t)}return-1}function Ac(n,e){if(!n||!n.getBoundingClientRect)return nu();var t=n,r=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var i=jn(t);if(t.clientWidth<t.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return nu();if(r||e)return t;r=!0}}while(t=t.parentNode);return nu()}function Vk(n,e){if(n&&e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function b_(n,e){return Math.round(n.top)===Math.round(e.top)&&Math.round(n.left)===Math.round(e.left)&&Math.round(n.height)===Math.round(e.height)&&Math.round(n.width)===Math.round(e.width)}var Dp;function C1(n,e){return function(){if(!Dp){var t=arguments,r=this;t.length===1?n.call(r,t[0]):n.apply(r,t),Dp=setTimeout(function(){Dp=void 0},e)}}}function Yk(){clearTimeout(Dp),Dp=void 0}function S1(n,e,t){n.scrollLeft+=e,n.scrollTop+=t}function T1(n){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(n).cloneNode(!0):t?t(n).clone(!0)[0]:n.cloneNode(!0)}var Is="Sortable"+new Date().getTime();function $k(){var n=[],e;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(jn(i,"display")==="none"||i===Un.ghost)){n.push({target:i,rect:wo(i)});var a=ru({},n[n.length-1].rect);if(i.thisAnimationDuration){var u=Nd(i,!0);u&&(a.top-=u.f,a.left-=u.e)}i.fromRect=a}})}},addAnimationState:function(r){n.push(r)},removeAnimationState:function(r){n.splice(Uk(n,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var a=!1,u=0;n.forEach(function(d){var m=0,y=d.target,x=y.fromRect,S=wo(y),L=y.prevFromRect,H=y.prevToRect,V=d.rect,U=Nd(y,!0);U&&(S.top-=U.f,S.left-=U.e),y.toRect=S,y.thisAnimationDuration&&b_(L,S)&&!b_(x,S)&&(V.top-S.top)/(V.left-S.left)===(x.top-S.top)/(x.left-S.left)&&(m=Kk(V,L,H,i.options)),b_(S,x)||(y.prevFromRect=x,y.prevToRect=S,m||(m=i.options.animation),i.animate(y,V,S,m)),m&&(a=!0,u=Math.max(u,m),clearTimeout(y.animationResetTimer),y.animationResetTimer=setTimeout(function(){y.animationTime=0,y.prevFromRect=null,y.fromRect=null,y.prevToRect=null,y.thisAnimationDuration=null},m),y.thisAnimationDuration=m)}),clearTimeout(e),a?e=setTimeout(function(){typeof r=="function"&&r()},u):typeof r=="function"&&r(),n=[]},animate:function(r,i,a,u){if(u){jn(r,"transition",""),jn(r,"transform","");var d=Nd(this.el),m=d&&d.a,y=d&&d.d,x=(i.left-a.left)/(m||1),S=(i.top-a.top)/(y||1);r.animatingX=!!x,r.animatingY=!!S,jn(r,"transform","translate3d("+x+"px,"+S+"px,0)"),this.forRepaintDummy=Gk(r),jn(r,"transition","transform "+u+"ms"+(this.options.easing?" "+this.options.easing:"")),jn(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){jn(r,"transition",""),jn(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},u)}}}}function Gk(n){return n.offsetWidth}function Kk(n,e,t,r){return Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*r.animation}var Dd=[],__={initializeByDefault:!0},Pp={mount:function(e){for(var t in __)__.hasOwnProperty(t)&&!(t in e)&&(e[t]=__[t]);Dd.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Dd.push(e)},pluginEvent:function(e,t,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var a=e+"Global";Dd.forEach(function(u){t[u.pluginName]&&(t[u.pluginName][a]&&t[u.pluginName][a](ru({sortable:t},r)),t.options[u.pluginName]&&t[u.pluginName][e]&&t[u.pluginName][e](ru({sortable:t},r)))})},initializePlugins:function(e,t,r,i){Dd.forEach(function(d){var m=d.pluginName;if(!(!e.options[m]&&!d.initializeByDefault)){var y=new d(e,t,e.options);y.sortable=e,y.options=e.options,e[m]=y,Bu(r,y.defaults)}});for(var a in e.options)if(e.options.hasOwnProperty(a)){var u=this.modifyOption(e,a,e.options[a]);typeof u<"u"&&(e.options[a]=u)}},getEventProperties:function(e,t){var r={};return Dd.forEach(function(i){typeof i.eventProperties=="function"&&Bu(r,i.eventProperties.call(t[i.pluginName],e))}),r},modifyOption:function(e,t,r){var i;return Dd.forEach(function(a){e[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[t]=="function"&&(i=a.optionListeners[t].call(e[a.pluginName],r))}),i}};function Xk(n){var e=n.sortable,t=n.rootEl,r=n.name,i=n.targetEl,a=n.cloneEl,u=n.toEl,d=n.fromEl,m=n.oldIndex,y=n.newIndex,x=n.oldDraggableIndex,S=n.newDraggableIndex,L=n.originalEvent,H=n.putSortable,V=n.extraEventProperties;if(e=e||t&&t[Is],!!e){var U,Z=e.options,ae="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Hu&&!Np?U=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(U=document.createEvent("Event"),U.initEvent(r,!0,!0)),U.to=u||t,U.from=d||t,U.item=i||t,U.clone=a,U.oldIndex=m,U.newIndex=y,U.oldDraggableIndex=x,U.newDraggableIndex=S,U.originalEvent=L,U.pullMode=H?H.lastPutMode:void 0;var le=ru(ru({},V),Pp.getEventProperties(r,e));for(var Ae in le)U[Ae]=le[Ae];t&&t.dispatchEvent(U),Z[ae]&&Z[ae].call(e,U)}}var Qk=["evt"],Ga=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,a=zk(r,Qk);Pp.pluginEvent.bind(Un)(e,t,ru({dragEl:jt,parentEl:Yi,ghostEl:er,rootEl:Si,nextEl:Ef,lastDownEl:Kg,cloneEl:Hi,cloneHidden:Mc,dragStarted:Sp,putSortable:Wo,activeSortable:Un.active,originalEvent:i,oldIndex:Id,oldDraggableIndex:kp,newIndex:Os,newDraggableIndex:Tc,hideGhostForTarget:k1,unhideGhostForTarget:O1,cloneNowHidden:function(){Mc=!0},cloneNowShown:function(){Mc=!1},dispatchSortableEvent:function(d){Ta({sortable:t,name:d,originalEvent:i})}},a))};function Ta(n){Xk(ru({putSortable:Wo,cloneEl:Hi,targetEl:jt,rootEl:Si,oldIndex:Id,oldDraggableIndex:kp,newIndex:Os,newDraggableIndex:Tc},n))}var jt,Yi,er,Si,Ef,Kg,Hi,Mc,Id,Os,kp,Tc,Ug,Wo,Od=!1,ev=!1,tv=[],wf,Al,w_,x_,g1,v1,Sp,kd,Op,Ip=!1,Vg=!1,Xg,ta,E_=[],A_=!1,nv=[],iv=typeof document<"u",Yg=_1,y1=Np||Hu?"cssFloat":"float",Jk=iv&&!w1&&!_1&&"draggable"in document.createElement("div"),M1=function(){if(iv){if(Hu)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),A1=function(e,t){var r=jn(e),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=Pd(e,0,t),u=Pd(e,1,t),d=a&&jn(a),m=u&&jn(u),y=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+wo(a).width,x=m&&parseInt(m.marginLeft)+parseInt(m.marginRight)+wo(u).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&d.float&&d.float!=="none"){var S=d.float==="left"?"left":"right";return u&&(m.clear==="both"||m.clear===S)?"vertical":"horizontal"}return a&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||y>=i&&r[y1]==="none"||u&&r[y1]==="none"&&y+x>i)?"vertical":"horizontal"},Zk=function(e,t,r){var i=r?e.left:e.top,a=r?e.right:e.bottom,u=r?e.width:e.height,d=r?t.left:t.top,m=r?t.right:t.bottom,y=r?t.width:t.height;return i===d||a===m||i+u/2===d+y/2},eO=function(e,t){var r;return tv.some(function(i){var a=i[Is].options.emptyInsertThreshold;if(!(!a||I_(i))){var u=wo(i),d=e>=u.left-a&&e<=u.right+a,m=t>=u.top-a&&t<=u.bottom+a;if(d&&m)return r=i}}),r},D1=function(e){function t(a,u){return function(d,m,y,x){var S=d.options.group.name&&m.options.group.name&&d.options.group.name===m.options.group.name;if(a==null&&(u||S))return!0;if(a==null||a===!1)return!1;if(u&&a==="clone")return a;if(typeof a=="function")return t(a(d,m,y,x),u)(d,m,y,x);var L=(u?d:m).options.group.name;return a===!0||typeof a=="string"&&a===L||a.join&&a.indexOf(L)>-1}}var r={},i=e.group;(!i||Gg(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=t(i.pull,!0),r.checkPut=t(i.put),r.revertClone=i.revertClone,e.group=r},k1=function(){!M1&&er&&jn(er,"display","none")},O1=function(){!M1&&er&&jn(er,"display","")};iv&&!w1&&document.addEventListener("click",function(n){if(ev)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),ev=!1,!1},!0);var xf=function(e){if(jt){e=e.touches?e.touches[0]:e;var t=eO(e.clientX,e.clientY);if(t){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[Is]._onDragOver(r)}}},tO=function(e){jt&&jt.parentNode[Is]._isOutsideThisEl(e.target)};function Un(n,e){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=e=Bu({},e),n[Is]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return A1(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(u,d){u.setData("Text",d.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Un.supportPointer!==!1&&"PointerEvent"in window&&!Ap,emptyInsertThreshold:5};Pp.initializePlugins(this,n,t);for(var r in t)!(r in e)&&(e[r]=t[r]);D1(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:Jk,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?qr(n,"pointerdown",this._onTapStart):(qr(n,"mousedown",this._onTapStart),qr(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(qr(n,"dragover",this),qr(n,"dragenter",this)),tv.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Bu(this,$k())}Un.prototype={constructor:Un,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(kd=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,jt):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,r=this.el,i=this.options,a=i.preventOnFilter,u=e.type,d=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,m=(d||e).target,y=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||m,x=i.filter;if(uO(r),!jt&&!(/mousedown|pointerdown/.test(u)&&e.button!==0||i.disabled)&&!y.isContentEditable&&!(!this.nativeDraggable&&Ap&&m&&m.tagName.toUpperCase()==="SELECT")&&(m=tu(m,i.draggable,r,!1),!(m&&m.animated)&&Kg!==m)){if(Id=Vs(m),kp=Vs(m,i.draggable),typeof x=="function"){if(x.call(this,e,m,this)){Ta({sortable:t,rootEl:y,name:"filter",targetEl:m,toEl:r,fromEl:r}),Ga("filter",t,{evt:e}),a&&e.cancelable&&e.preventDefault();return}}else if(x&&(x=x.split(",").some(function(S){if(S=tu(y,S.trim(),r,!1),S)return Ta({sortable:t,rootEl:S,name:"filter",targetEl:m,fromEl:r,toEl:r}),Ga("filter",t,{evt:e}),!0}),x)){a&&e.cancelable&&e.preventDefault();return}i.handle&&!tu(y,i.handle,r,!1)||this._prepareDragStart(e,d,m)}}},_prepareDragStart:function(e,t,r){var i=this,a=i.el,u=i.options,d=a.ownerDocument,m;if(r&&!jt&&r.parentNode===a){var y=wo(r);if(Si=a,jt=r,Yi=jt.parentNode,Ef=jt.nextSibling,Kg=r,Ug=u.group,Un.dragged=jt,wf={target:jt,clientX:(t||e).clientX,clientY:(t||e).clientY},g1=wf.clientX-y.left,v1=wf.clientY-y.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,jt.style["will-change"]="all",m=function(){if(Ga("delayEnded",i,{evt:e}),Un.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!d1&&i.nativeDraggable&&(jt.draggable=!0),i._triggerDragStart(e,t),Ta({sortable:i,name:"choose",originalEvent:e}),ks(jt,u.chosenClass,!0)},u.ignore.split(",").forEach(function(x){E1(jt,x.trim(),C_)}),qr(d,"dragover",xf),qr(d,"mousemove",xf),qr(d,"touchmove",xf),qr(d,"mouseup",i._onDrop),qr(d,"touchend",i._onDrop),qr(d,"touchcancel",i._onDrop),d1&&this.nativeDraggable&&(this.options.touchStartThreshold=4,jt.draggable=!0),Ga("delayStart",this,{evt:e}),u.delay&&(!u.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Np||Hu))){if(Un.eventCanceled){this._onDrop();return}qr(d,"mouseup",i._disableDelayedDrag),qr(d,"touchend",i._disableDelayedDrag),qr(d,"touchcancel",i._disableDelayedDrag),qr(d,"mousemove",i._delayedDragTouchMoveHandler),qr(d,"touchmove",i._delayedDragTouchMoveHandler),u.supportPointer&&qr(d,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(m,u.delay)}else m()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){jt&&C_(jt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Nr(e,"mouseup",this._disableDelayedDrag),Nr(e,"touchend",this._disableDelayedDrag),Nr(e,"touchcancel",this._disableDelayedDrag),Nr(e,"mousemove",this._delayedDragTouchMoveHandler),Nr(e,"touchmove",this._delayedDragTouchMoveHandler),Nr(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?qr(document,"pointermove",this._onTouchMove):t?qr(document,"touchmove",this._onTouchMove):qr(document,"mousemove",this._onTouchMove):(qr(jt,"dragend",this),qr(Si,"dragstart",this._onDragStart));try{document.selection?Qg(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Od=!1,Si&&jt){Ga("dragStarted",this,{evt:t}),this.nativeDraggable&&qr(document,"dragover",tO);var r=this.options;!e&&ks(jt,r.dragClass,!1),ks(jt,r.ghostClass,!0),Un.active=this,e&&this._appendGhost(),Ta({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Al){this._lastX=Al.clientX,this._lastY=Al.clientY,k1();for(var e=document.elementFromPoint(Al.clientX,Al.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Al.clientX,Al.clientY),e!==t);)t=e;if(jt.parentNode[Is]._isOutsideThisEl(e),t)do{if(t[Is]){var r=void 0;if(r=t[Is]._onDragOver({clientX:Al.clientX,clientY:Al.clientY,target:e,rootEl:t}),r&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);O1()}},_onTouchMove:function(e){if(wf){var t=this.options,r=t.fallbackTolerance,i=t.fallbackOffset,a=e.touches?e.touches[0]:e,u=er&&Nd(er,!0),d=er&&u&&u.a,m=er&&u&&u.d,y=Yg&&ta&&m1(ta),x=(a.clientX-wf.clientX+i.x)/(d||1)+(y?y[0]-E_[0]:0)/(d||1),S=(a.clientY-wf.clientY+i.y)/(m||1)+(y?y[1]-E_[1]:0)/(m||1);if(!Un.active&&!Od){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(er){u?(u.e+=x-(w_||0),u.f+=S-(x_||0)):u={a:1,b:0,c:0,d:1,e:x,f:S};var L="matrix(".concat(u.a,",").concat(u.b,",").concat(u.c,",").concat(u.d,",").concat(u.e,",").concat(u.f,")");jn(er,"webkitTransform",L),jn(er,"mozTransform",L),jn(er,"msTransform",L),jn(er,"transform",L),w_=x,x_=S,Al=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!er){var e=this.options.fallbackOnBody?document.body:Si,t=wo(jt,!0,Yg,!0,e),r=this.options;if(Yg){for(ta=e;jn(ta,"position")==="static"&&jn(ta,"transform")==="none"&&ta!==document;)ta=ta.parentNode;ta!==document.body&&ta!==document.documentElement?(ta===document&&(ta=nu()),t.top+=ta.scrollTop,t.left+=ta.scrollLeft):ta=nu(),E_=m1(ta)}er=jt.cloneNode(!0),ks(er,r.ghostClass,!1),ks(er,r.fallbackClass,!0),ks(er,r.dragClass,!0),jn(er,"transition",""),jn(er,"transform",""),jn(er,"box-sizing","border-box"),jn(er,"margin",0),jn(er,"top",t.top),jn(er,"left",t.left),jn(er,"width",t.width),jn(er,"height",t.height),jn(er,"opacity","0.8"),jn(er,"position",Yg?"absolute":"fixed"),jn(er,"zIndex","100000"),jn(er,"pointerEvents","none"),Un.ghost=er,e.appendChild(er),jn(er,"transform-origin",g1/parseInt(er.style.width)*100+"% "+v1/parseInt(er.style.height)*100+"%")}},_onDragStart:function(e,t){var r=this,i=e.dataTransfer,a=r.options;if(Ga("dragStart",this,{evt:e}),Un.eventCanceled){this._onDrop();return}Ga("setupClone",this),Un.eventCanceled||(Hi=T1(jt),Hi.removeAttribute("id"),Hi.draggable=!1,Hi.style["will-change"]="",this._hideClone(),ks(Hi,this.options.chosenClass,!1),Un.clone=Hi),r.cloneId=Qg(function(){Ga("clone",r),!Un.eventCanceled&&(r.options.removeCloneOnHide||Si.insertBefore(Hi,jt),r._hideClone(),Ta({sortable:r,name:"clone"}))}),!t&&ks(jt,a.dragClass,!0),t?(ev=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Nr(document,"mouseup",r._onDrop),Nr(document,"touchend",r._onDrop),Nr(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",a.setData&&a.setData.call(r,i,jt)),qr(document,"drop",r),jn(jt,"transform","translateZ(0)")),Od=!0,r._dragStartId=Qg(r._dragStarted.bind(r,t,e)),qr(document,"selectstart",r),Sp=!0,Ap&&jn(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,r=e.target,i,a,u,d=this.options,m=d.group,y=Un.active,x=Ug===m,S=d.sort,L=Wo||y,H,V=this,U=!1;if(A_)return;function Z(In,Cn){Ga(In,V,ru({evt:e,isOwner:x,axis:H?"vertical":"horizontal",revert:u,dragRect:i,targetRect:a,canSort:S,fromSortable:L,target:r,completed:le,onMove:function(rr,ur){return $g(Si,t,jt,i,rr,wo(rr),e,ur)},changed:Ae},Cn))}function ae(){Z("dragOverAnimationCapture"),V.captureAnimationState(),V!==L&&L.captureAnimationState()}function le(In){return Z("dragOverCompleted",{insertion:In}),In&&(x?y._hideClone():y._showClone(V),V!==L&&(ks(jt,Wo?Wo.options.ghostClass:y.options.ghostClass,!1),ks(jt,d.ghostClass,!0)),Wo!==V&&V!==Un.active?Wo=V:V===Un.active&&Wo&&(Wo=null),L===V&&(V._ignoreWhileAnimating=r),V.animateAll(function(){Z("dragOverAnimationComplete"),V._ignoreWhileAnimating=null}),V!==L&&(L.animateAll(),L._ignoreWhileAnimating=null)),(r===jt&&!jt.animated||r===t&&!r.animated)&&(kd=null),!d.dragoverBubble&&!e.rootEl&&r!==document&&(jt.parentNode[Is]._isOutsideThisEl(e.target),!In&&xf(e)),!d.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),U=!0}function Ae(){Os=Vs(jt),Tc=Vs(jt,d.draggable),Ta({sortable:V,name:"change",toEl:t,newIndex:Os,newDraggableIndex:Tc,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=tu(r,d.draggable,t,!0),Z("dragOver"),Un.eventCanceled)return U;if(jt.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||V._ignoreWhileAnimating===r)return le(!1);if(ev=!1,y&&!d.disabled&&(x?S||(u=Yi!==Si):Wo===this||(this.lastPutMode=Ug.checkPull(this,y,jt,e))&&m.checkPut(this,y,jt,e))){if(H=this._getDirection(e,r)==="vertical",i=wo(jt),Z("dragOverValid"),Un.eventCanceled)return U;if(u)return Yi=Si,ae(),this._hideClone(),Z("revert"),Un.eventCanceled||(Ef?Si.insertBefore(jt,Ef):Si.appendChild(jt)),le(!0);var ve=I_(t,d.draggable);if(!ve||oO(e,H,this)&&!ve.animated){if(ve===jt)return le(!1);if(ve&&t===e.target&&(r=ve),r&&(a=wo(r)),$g(Si,t,jt,i,r,a,e,!!r)!==!1)return ae(),ve&&ve.nextSibling?t.insertBefore(jt,ve.nextSibling):t.appendChild(jt),Yi=t,Ae(),le(!0)}else if(ve&&iO(e,H,this)){var b=Pd(t,0,d,!0);if(b===jt)return le(!1);if(r=b,a=wo(r),$g(Si,t,jt,i,r,a,e,!1)!==!1)return ae(),t.insertBefore(jt,b),Yi=t,Ae(),le(!0)}else if(r.parentNode===t){a=wo(r);var te=0,ye,Oe=jt.parentNode!==t,De=!Zk(jt.animated&&jt.toRect||i,r.animated&&r.toRect||a,H),lt=H?"top":"left",ct=p1(r,"top","top")||p1(jt,"top","top"),Dt=ct?ct.scrollTop:void 0;kd!==r&&(ye=a[lt],Ip=!1,Vg=!De&&d.invertSwap||Oe),te=aO(e,r,a,H,De?1:d.swapThreshold,d.invertedSwapThreshold==null?d.swapThreshold:d.invertedSwapThreshold,Vg,kd===r);var Mt;if(te!==0){var en=Vs(jt);do en-=te,Mt=Yi.children[en];while(Mt&&(jn(Mt,"display")==="none"||Mt===er))}if(te===0||Mt===r)return le(!1);kd=r,Op=te;var Yt=r.nextElementSibling,At=!1;At=te===1;var tn=$g(Si,t,jt,i,r,a,e,At);if(tn!==!1)return(tn===1||tn===-1)&&(At=tn===1),A_=!0,setTimeout(rO,30),ae(),At&&!Yt?t.appendChild(jt):r.parentNode.insertBefore(jt,At?Yt:r),ct&&S1(ct,0,Dt-ct.scrollTop),Yi=jt.parentNode,ye!==void 0&&!Vg&&(Xg=Math.abs(ye-wo(r)[lt])),Ae(),le(!0)}if(t.contains(jt))return le(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Nr(document,"mousemove",this._onTouchMove),Nr(document,"touchmove",this._onTouchMove),Nr(document,"pointermove",this._onTouchMove),Nr(document,"dragover",xf),Nr(document,"mousemove",xf),Nr(document,"touchmove",xf)},_offUpEvents:function(){var e=this.el.ownerDocument;Nr(e,"mouseup",this._onDrop),Nr(e,"touchend",this._onDrop),Nr(e,"pointerup",this._onDrop),Nr(e,"touchcancel",this._onDrop),Nr(document,"selectstart",this)},_onDrop:function(e){var t=this.el,r=this.options;if(Os=Vs(jt),Tc=Vs(jt,r.draggable),Ga("drop",this,{evt:e}),Yi=jt&&jt.parentNode,Os=Vs(jt),Tc=Vs(jt,r.draggable),Un.eventCanceled){this._nulling();return}Od=!1,Vg=!1,Ip=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),D_(this.cloneId),D_(this._dragStartId),this.nativeDraggable&&(Nr(document,"drop",this),Nr(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ap&&jn(document.body,"user-select",""),jn(jt,"transform",""),e&&(Sp&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),er&&er.parentNode&&er.parentNode.removeChild(er),(Si===Yi||Wo&&Wo.lastPutMode!=="clone")&&Hi&&Hi.parentNode&&Hi.parentNode.removeChild(Hi),jt&&(this.nativeDraggable&&Nr(jt,"dragend",this),C_(jt),jt.style["will-change"]="",Sp&&!Od&&ks(jt,Wo?Wo.options.ghostClass:this.options.ghostClass,!1),ks(jt,this.options.chosenClass,!1),Ta({sortable:this,name:"unchoose",toEl:Yi,newIndex:null,newDraggableIndex:null,originalEvent:e}),Si!==Yi?(Os>=0&&(Ta({rootEl:Yi,name:"add",toEl:Yi,fromEl:Si,originalEvent:e}),Ta({sortable:this,name:"remove",toEl:Yi,originalEvent:e}),Ta({rootEl:Yi,name:"sort",toEl:Yi,fromEl:Si,originalEvent:e}),Ta({sortable:this,name:"sort",toEl:Yi,originalEvent:e})),Wo&&Wo.save()):Os!==Id&&Os>=0&&(Ta({sortable:this,name:"update",toEl:Yi,originalEvent:e}),Ta({sortable:this,name:"sort",toEl:Yi,originalEvent:e})),Un.active&&((Os==null||Os===-1)&&(Os=Id,Tc=kp),Ta({sortable:this,name:"end",toEl:Yi,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ga("nulling",this),Si=jt=Yi=er=Ef=Hi=Kg=Mc=wf=Al=Sp=Os=Tc=Id=kp=kd=Op=Wo=Ug=Un.dragged=Un.ghost=Un.clone=Un.active=null,nv.forEach(function(e){e.checked=!0}),nv.length=w_=x_=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":jt&&(this._onDragOver(e),nO(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,r=this.el.children,i=0,a=r.length,u=this.options;i<a;i++)t=r[i],tu(t,u.draggable,this.el,!1)&&e.push(t.getAttribute(u.dataIdAttr)||lO(t));return e},sort:function(e,t){var r={},i=this.el;this.toArray().forEach(function(a,u){var d=i.children[u];tu(d,this.options.draggable,i,!1)&&(r[a]=d)},this),t&&this.captureAnimationState(),e.forEach(function(a){r[a]&&(i.removeChild(r[a]),i.appendChild(r[a]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return tu(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var r=this.options;if(t===void 0)return r[e];var i=Pp.modifyOption(this,e,t);typeof i<"u"?r[e]=i:r[e]=t,e==="group"&&D1(r)},destroy:function(){Ga("destroy",this);var e=this.el;e[Is]=null,Nr(e,"mousedown",this._onTapStart),Nr(e,"touchstart",this._onTapStart),Nr(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Nr(e,"dragover",this),Nr(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),tv.splice(tv.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Mc){if(Ga("hideClone",this),Un.eventCanceled)return;jn(Hi,"display","none"),this.options.removeCloneOnHide&&Hi.parentNode&&Hi.parentNode.removeChild(Hi),Mc=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Mc){if(Ga("showClone",this),Un.eventCanceled)return;jt.parentNode==Si&&!this.options.group.revertClone?Si.insertBefore(Hi,jt):Ef?Si.insertBefore(Hi,Ef):Si.appendChild(Hi),this.options.group.revertClone&&this.animate(jt,Hi),jn(Hi,"display",""),Mc=!1}}};function nO(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function $g(n,e,t,r,i,a,u,d){var m,y=n[Is],x=y.options.onMove,S;return window.CustomEvent&&!Hu&&!Np?m=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent("move",!0,!0)),m.to=e,m.from=n,m.dragged=t,m.draggedRect=r,m.related=i||e,m.relatedRect=a||wo(e),m.willInsertAfter=d,m.originalEvent=u,n.dispatchEvent(m),x&&(S=x.call(y,m,u)),S}function C_(n){n.draggable=!1}function rO(){A_=!1}function iO(n,e,t){var r=wo(Pd(t.el,0,t.options,!0)),i=10;return e?n.clientX<r.left-i||n.clientY<r.top&&n.clientX<r.right:n.clientY<r.top-i||n.clientY<r.bottom&&n.clientX<r.left}function oO(n,e,t){var r=wo(I_(t.el,t.options.draggable)),i=10;return e?n.clientX>r.right+i||n.clientX<=r.right&&n.clientY>r.bottom&&n.clientX>=r.left:n.clientX>r.right&&n.clientY>r.top||n.clientX<=r.right&&n.clientY>r.bottom+i}function aO(n,e,t,r,i,a,u,d){var m=r?n.clientY:n.clientX,y=r?t.height:t.width,x=r?t.top:t.left,S=r?t.bottom:t.right,L=!1;if(!u){if(d&&Xg<y*i){if(!Ip&&(Op===1?m>x+y*a/2:m<S-y*a/2)&&(Ip=!0),Ip)L=!0;else if(Op===1?m<x+Xg:m>S-Xg)return-Op}else if(m>x+y*(1-i)/2&&m<S-y*(1-i)/2)return sO(e)}return L=L||u,L&&(m<x+y*a/2||m>S-y*a/2)?m>x+y/2?1:-1:0}function sO(n){return Vs(jt)<Vs(n)?1:-1}function lO(n){for(var e=n.tagName+n.className+n.src+n.href+n.textContent,t=e.length,r=0;t--;)r+=e.charCodeAt(t);return r.toString(36)}function uO(n){nv.length=0;for(var e=n.getElementsByTagName("input"),t=e.length;t--;){var r=e[t];r.checked&&nv.push(r)}}function Qg(n){return setTimeout(n,0)}function D_(n){return clearTimeout(n)}iv&&qr(document,"touchmove",function(n){(Un.active||Od)&&n.cancelable&&n.preventDefault()});Un.utils={on:qr,off:Nr,css:jn,find:E1,is:function(e,t){return!!tu(e,t,e,!1)},extend:Vk,throttle:C1,closest:tu,toggleClass:ks,clone:T1,index:Vs,nextTick:Qg,cancelNextTick:D_,detectDirection:A1,getChild:Pd};Un.get=function(n){return n[Is]};Un.mount=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Un.utils=ru(ru({},Un.utils),r.utils)),Pp.mount(r)})};Un.create=function(n,e){return new Un(n,e)};Un.version=Wk;var uo=[],Tp,k_,O_=!1,S_,T_,rv,Mp;function cO(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return n.prototype={dragStarted:function(t){var r=t.originalEvent;this.sortable.nativeDraggable?qr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?qr(document,"pointermove",this._handleFallbackAutoScroll):r.touches?qr(document,"touchmove",this._handleFallbackAutoScroll):qr(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Nr(document,"dragover",this._handleAutoScroll):(Nr(document,"pointermove",this._handleFallbackAutoScroll),Nr(document,"touchmove",this._handleFallbackAutoScroll),Nr(document,"mousemove",this._handleFallbackAutoScroll)),b1(),Jg(),Yk()},nulling:function(){rv=k_=Tp=O_=Mp=S_=T_=null,uo.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,r){var i=this,a=(t.touches?t.touches[0]:t).clientX,u=(t.touches?t.touches[0]:t).clientY,d=document.elementFromPoint(a,u);if(rv=t,r||this.options.forceAutoScrollFallback||Np||Hu||Ap){M_(t,this.options,d,r);var m=Ac(d,!0);O_&&(!Mp||a!==S_||u!==T_)&&(Mp&&b1(),Mp=setInterval(function(){var y=Ac(document.elementFromPoint(a,u),!0);y!==m&&(m=y,Jg()),M_(t,i.options,y,r)},10),S_=a,T_=u)}else{if(!this.options.bubbleScroll||Ac(d,!0)===nu()){Jg();return}M_(t,this.options,Ac(d,!1),!1)}}},Bu(n,{pluginName:"scroll",initializeByDefault:!0})}function Jg(){uo.forEach(function(n){clearInterval(n.pid)}),uo=[]}function b1(){clearInterval(Mp)}var M_=C1(function(n,e,t,r){if(e.scroll){var i=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,u=e.scrollSensitivity,d=e.scrollSpeed,m=nu(),y=!1,x;k_!==t&&(k_=t,Jg(),Tp=e.scroll,x=e.scrollFn,Tp===!0&&(Tp=Ac(t,!0)));var S=0,L=Tp;do{var H=L,V=wo(H),U=V.top,Z=V.bottom,ae=V.left,le=V.right,Ae=V.width,ve=V.height,b=void 0,te=void 0,ye=H.scrollWidth,Oe=H.scrollHeight,De=jn(H),lt=H.scrollLeft,ct=H.scrollTop;H===m?(b=Ae<ye&&(De.overflowX==="auto"||De.overflowX==="scroll"||De.overflowX==="visible"),te=ve<Oe&&(De.overflowY==="auto"||De.overflowY==="scroll"||De.overflowY==="visible")):(b=Ae<ye&&(De.overflowX==="auto"||De.overflowX==="scroll"),te=ve<Oe&&(De.overflowY==="auto"||De.overflowY==="scroll"));var Dt=b&&(Math.abs(le-i)<=u&&lt+Ae<ye)-(Math.abs(ae-i)<=u&&!!lt),Mt=te&&(Math.abs(Z-a)<=u&&ct+ve<Oe)-(Math.abs(U-a)<=u&&!!ct);if(!uo[S])for(var en=0;en<=S;en++)uo[en]||(uo[en]={});(uo[S].vx!=Dt||uo[S].vy!=Mt||uo[S].el!==H)&&(uo[S].el=H,uo[S].vx=Dt,uo[S].vy=Mt,clearInterval(uo[S].pid),(Dt!=0||Mt!=0)&&(y=!0,uo[S].pid=setInterval(function(){r&&this.layer===0&&Un.active._onTouchMove(rv);var Yt=uo[this.layer].vy?uo[this.layer].vy*d:0,At=uo[this.layer].vx?uo[this.layer].vx*d:0;typeof x=="function"&&x.call(Un.dragged.parentNode[Is],At,Yt,n,rv,uo[this.layer].el)!=="continue"||S1(uo[this.layer].el,At,Yt)}.bind({layer:S}),24))),S++}while(e.bubbleScroll&&L!==m&&(L=Ac(L,!1)));O_=y}},30),I1=function(e){var t=e.originalEvent,r=e.putSortable,i=e.dragEl,a=e.activeSortable,u=e.dispatchSortableEvent,d=e.hideGhostForTarget,m=e.unhideGhostForTarget;if(t){var y=r||a;d();var x=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,S=document.elementFromPoint(x.clientX,x.clientY);m(),y&&!y.el.contains(S)&&(u("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function N_(){}N_.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=Pd(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),r&&r.animateAll()},drop:I1};Bu(N_,{pluginName:"revertOnSpill"});function P_(){}P_.prototype={onSpill:function(e){var t=e.dragEl,r=e.putSortable,i=r||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:I1};Bu(P_,{pluginName:"removeOnSpill"});Un.mount(new cO);Un.mount(P_,N_);var N1=Un;var QC=Fi(P1());var dv=function(){return typeof window>"u"?function(n){return n()}:window.requestAnimationFrame}();function hv(n,e,t){let r=t||(u=>Array.prototype.slice.call(u)),i=!1,a=[];return function(...u){a=r(u),i||(i=!0,dv.call(window,()=>{i=!1,n.apply(e,a)}))}}function W_(n,e){let t;return function(){return e?(clearTimeout(t),t=setTimeout(n,e)):n(),e}}var Wp=n=>n==="start"?"left":n==="end"?"right":"center",Po=(n,e,t)=>n==="start"?e:n==="end"?t:(e+t)/2,j_=(n,e,t,r)=>n===(r?"left":"right")?t:n==="center"?(e+t)/2:e;function Dl(){}var U_=function(){let n=0;return function(){return n++}}();function Mr(n){return n===null||typeof n>"u"}function li(n){if(Array.isArray&&Array.isArray(n))return!0;let e=Object.prototype.toString.call(n);return e.substr(0,7)==="[object"&&e.substr(-6)==="Array]"}function Cr(n){return n!==null&&Object.prototype.toString.call(n)==="[object Object]"}var zi=n=>(typeof n=="number"||n instanceof Number)&&isFinite(+n);function Ka(n,e){return zi(n)?n:e}function tr(n,e){return typeof n>"u"?e:n}var V_=(n,e)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100:n/e,Fp=(n,e)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100*e:+n;function ui(n,e,t){if(n&&typeof n.call=="function")return n.apply(t,e)}function zr(n,e,t,r){let i,a,u;if(li(n))if(a=n.length,r)for(i=a-1;i>=0;i--)e.call(t,n[i],i);else for(i=0;i<a;i++)e.call(t,n[i],i);else if(Cr(n))for(u=Object.keys(n),a=u.length,i=0;i<a;i++)e.call(t,n[u[i]],u[i])}function Hd(n,e){let t,r,i,a;if(!n||!e||n.length!==e.length)return!1;for(t=0,r=n.length;t<r;++t)if(i=n[t],a=e[t],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function Bp(n){if(li(n))return n.map(Bp);if(Cr(n)){let e=Object.create(null),t=Object.keys(n),r=t.length,i=0;for(;i<r;++i)e[t[i]]=Bp(n[t[i]]);return e}return n}function G1(n){return["__proto__","prototype","constructor"].indexOf(n)===-1}function K1(n,e,t,r){if(!G1(n))return;let i=e[n],a=t[n];Cr(i)&&Cr(a)?Tf(i,a,r):e[n]=Bp(a)}function Tf(n,e,t){let r=li(e)?e:[e],i=r.length;if(!Cr(n))return n;t=t||{};let a=t.merger||K1;for(let u=0;u<i;++u){if(e=r[u],!Cr(e))continue;let d=Object.keys(e);for(let m=0,y=d.length;m<y;++m)a(d[m],n,e,t)}return n}function Mf(n,e){return Tf(n,e,{merger:X1})}function X1(n,e,t){if(!G1(n))return;let r=e[n],i=t[n];Cr(r)&&Cr(i)?Mf(r,i):Object.prototype.hasOwnProperty.call(e,n)||(e[n]=Bp(i))}var fO="",dO=".";function L1(n,e){let t=n.indexOf(dO,e);return t===-1?n.length:t}function iu(n,e){if(e===fO)return n;let t=0,r=L1(e,t);for(;n&&r>t;)n=n[e.substr(t,r-t)],t=r+1,r=L1(e,t);return n}function jp(n){return n.charAt(0).toUpperCase()+n.slice(1)}var na=n=>typeof n<"u",Dc=n=>typeof n=="function",Y_=(n,e)=>{if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0},Ti=Math.PI,Qr=2*Ti,Q1=Qr+Ti,Hp=Number.POSITIVE_INFINITY,J1=Ti/180,qi=Ti/2,Ld=Ti/4,H_=Ti*2/3,Xa=Math.log10,$s=Math.sign;function pv(n){let e=Math.round(n);n=Af(n,e,n/1e3)?e:n;let t=Math.pow(10,Math.floor(Xa(n))),r=n/t;return(r<=1?1:r<=2?2:r<=5?5:10)*t}function $_(n){let e=[],t=Math.sqrt(n),r;for(r=1;r<t;r++)n%r===0&&(e.push(r),e.push(n/r));return t===(t|0)&&e.push(t),e.sort((i,a)=>i-a).pop(),e}function Oc(n){return!isNaN(parseFloat(n))&&isFinite(n)}function Af(n,e,t){return Math.abs(n-e)<t}function G_(n,e){let t=Math.round(n);return t-e<=n&&t+e>=n}function mv(n,e,t){let r,i,a;for(r=0,i=n.length;r<i;r++)a=n[r][t],isNaN(a)||(e.min=Math.min(e.min,a),e.max=Math.max(e.max,a))}function Ps(n){return n*(Ti/180)}function Up(n){return n*(180/Ti)}function gv(n){if(!zi(n))return;let e=1,t=0;for(;Math.round(n*e)/e!==n;)e*=10,t++;return t}function K_(n,e){let t=e.x-n.x,r=e.y-n.y,i=Math.sqrt(t*t+r*r),a=Math.atan2(r,t);return a<-.5*Ti&&(a+=Qr),{angle:a,distance:i}}function qp(n,e){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Z1(n,e){return(n-e+Q1)%Qr-Ti}function Ns(n){return(n%Qr+Qr)%Qr}function qd(n,e,t,r){let i=Ns(n),a=Ns(e),u=Ns(t),d=Ns(a-i),m=Ns(u-i),y=Ns(i-a),x=Ns(i-u);return i===a||i===u||r&&a===u||d>m&&y<x}function co(n,e,t){return Math.max(e,Math.min(t,n))}function X_(n){return co(n,-32768,32767)}var ov=n=>n===0||n===1,R1=(n,e,t)=>-(Math.pow(2,10*(n-=1))*Math.sin((n-e)*Qr/t)),F1=(n,e,t)=>Math.pow(2,-10*n)*Math.sin((n-e)*Qr/t)+1,Cf={linear:n=>n,easeInQuad:n=>n*n,easeOutQuad:n=>-n*(n-2),easeInOutQuad:n=>(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1),easeInCubic:n=>n*n*n,easeOutCubic:n=>(n-=1)*n*n+1,easeInOutCubic:n=>(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2),easeInQuart:n=>n*n*n*n,easeOutQuart:n=>-((n-=1)*n*n*n-1),easeInOutQuart:n=>(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2),easeInQuint:n=>n*n*n*n*n,easeOutQuint:n=>(n-=1)*n*n*n*n+1,easeInOutQuint:n=>(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2),easeInSine:n=>-Math.cos(n*qi)+1,easeOutSine:n=>Math.sin(n*qi),easeInOutSine:n=>-.5*(Math.cos(Ti*n)-1),easeInExpo:n=>n===0?0:Math.pow(2,10*(n-1)),easeOutExpo:n=>n===1?1:-Math.pow(2,-10*n)+1,easeInOutExpo:n=>ov(n)?n:n<.5?.5*Math.pow(2,10*(n*2-1)):.5*(-Math.pow(2,-10*(n*2-1))+2),easeInCirc:n=>n>=1?n:-(Math.sqrt(1-n*n)-1),easeOutCirc:n=>Math.sqrt(1-(n-=1)*n),easeInOutCirc:n=>(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1),easeInElastic:n=>ov(n)?n:R1(n,.075,.3),easeOutElastic:n=>ov(n)?n:F1(n,.075,.3),easeInOutElastic(n){return ov(n)?n:n<.5?.5*R1(n*2,.1125,.45):.5+.5*F1(n*2-1,.1125,.45)},easeInBack(n){return n*n*((1.70158+1)*n-1.70158)},easeOutBack(n){return(n-=1)*n*((1.70158+1)*n+1.70158)+1},easeInOutBack(n){let e=1.70158;return(n/=.5)<1?.5*(n*n*(((e*=1.525)+1)*n-e)):.5*((n-=2)*n*(((e*=1.525)+1)*n+e)+2)},easeInBounce:n=>1-Cf.easeOutBounce(1-n),easeOutBounce(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},easeInOutBounce:n=>n<.5?Cf.easeInBounce(n*2)*.5:Cf.easeOutBounce(n*2-1)*.5+.5};var Ys={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},q_="0123456789ABCDEF",hO=n=>q_[n&15],pO=n=>q_[(n&240)>>4]+q_[n&15],av=n=>(n&240)>>4===(n&15);function mO(n){return av(n.r)&&av(n.g)&&av(n.b)&&av(n.a)}function gO(n){var e=n.length,t;return n[0]==="#"&&(e===4||e===5?t={r:255&Ys[n[1]]*17,g:255&Ys[n[2]]*17,b:255&Ys[n[3]]*17,a:e===5?Ys[n[4]]*17:255}:(e===7||e===9)&&(t={r:Ys[n[1]]<<4|Ys[n[2]],g:Ys[n[3]]<<4|Ys[n[4]],b:Ys[n[5]]<<4|Ys[n[6]],a:e===9?Ys[n[7]]<<4|Ys[n[8]]:255})),t}function vO(n){var e=mO(n)?hO:pO;return n&&"#"+e(n.r)+e(n.g)+e(n.b)+(n.a<255?e(n.a):"")}function Vp(n){return n+.5|0}var vv=(n,e,t)=>Math.max(Math.min(n,t),e);function Lp(n){return vv(Vp(n*2.55),0,255)}function zp(n){return vv(Vp(n*255),0,255)}function Q_(n){return vv(Vp(n/2.55)/100,0,1)}function B1(n){return vv(Vp(n*100),0,100)}var yO=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function bO(n){let e=yO.exec(n),t=255,r,i,a;if(e){if(e[7]!==r){let u=+e[7];t=255&(e[8]?Lp(u):u*255)}return r=+e[1],i=+e[3],a=+e[5],r=255&(e[2]?Lp(r):r),i=255&(e[4]?Lp(i):i),a=255&(e[6]?Lp(a):a),{r,g:i,b:a,a:t}}}function _O(n){return n&&(n.a<255?`rgba(${n.r}, ${n.g}, ${n.b}, ${Q_(n.a)})`:`rgb(${n.r}, ${n.g}, ${n.b})`)}var wO=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function eE(n,e,t){let r=e*Math.min(t,1-t),i=(a,u=(a+n/30)%12)=>t-r*Math.max(Math.min(u-3,9-u,1),-1);return[i(0),i(8),i(4)]}function xO(n,e,t){let r=(i,a=(i+n/60)%6)=>t-t*e*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function EO(n,e,t){let r=eE(n,1,.5),i;for(e+t>1&&(i=1/(e+t),e*=i,t*=i),i=0;i<3;i++)r[i]*=1-e-t,r[i]+=e;return r}function J_(n){let t=n.r/255,r=n.g/255,i=n.b/255,a=Math.max(t,r,i),u=Math.min(t,r,i),d=(a+u)/2,m,y,x;return a!==u&&(x=a-u,y=d>.5?x/(2-a-u):x/(a+u),m=a===t?(r-i)/x+(r<i?6:0):a===r?(i-t)/x+2:(t-r)/x+4,m=m*60+.5),[m|0,y||0,d]}function Z_(n,e,t,r){return(Array.isArray(e)?n(e[0],e[1],e[2]):n(e,t,r)).map(zp)}function e0(n,e,t){return Z_(eE,n,e,t)}function CO(n,e,t){return Z_(EO,n,e,t)}function SO(n,e,t){return Z_(xO,n,e,t)}function tE(n){return(n%360+360)%360}function TO(n){let e=wO.exec(n),t=255,r;if(!e)return;e[5]!==r&&(t=e[6]?Lp(+e[5]):zp(+e[5]));let i=tE(+e[2]),a=+e[3]/100,u=+e[4]/100;return e[1]==="hwb"?r=CO(i,a,u):e[1]==="hsv"?r=SO(i,a,u):r=e0(i,a,u),{r:r[0],g:r[1],b:r[2],a:t}}function MO(n,e){var t=J_(n);t[0]=tE(t[0]+e),t=e0(t),n.r=t[0],n.g=t[1],n.b=t[2]}function AO(n){if(!n)return;let e=J_(n),t=e[0],r=B1(e[1]),i=B1(e[2]);return n.a<255?`hsla(${t}, ${r}%, ${i}%, ${Q_(n.a)})`:`hsl(${t}, ${r}%, ${i}%)`}var H1={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},q1={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function DO(){let n={},e=Object.keys(q1),t=Object.keys(H1),r,i,a,u,d;for(r=0;r<e.length;r++){for(u=d=e[r],i=0;i<t.length;i++)a=t[i],d=d.replace(a,H1[a]);a=parseInt(q1[u],16),n[d]=[a>>16&255,a>>8&255,a&255]}return n}var sv;function kO(n){sv||(sv=DO(),sv.transparent=[0,0,0,0]);let e=sv[n.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}function lv(n,e,t){if(n){let r=J_(n);r[e]=Math.max(0,Math.min(r[e]+r[e]*t,e===0?360:1)),r=e0(r),n.r=r[0],n.g=r[1],n.b=r[2]}}function nE(n,e){return n&&Object.assign(e||{},n)}function z1(n){var e={r:0,g:0,b:0,a:255};return Array.isArray(n)?n.length>=3&&(e={r:n[0],g:n[1],b:n[2],a:255},n.length>3&&(e.a=zp(n[3]))):(e=nE(n,{r:0,g:0,b:0,a:1}),e.a=zp(e.a)),e}function OO(n){return n.charAt(0)==="r"?bO(n):TO(n)}var Rd=class{constructor(e){if(e instanceof Rd)return e;let t=typeof e,r;t==="object"?r=z1(e):t==="string"&&(r=gO(e)||kO(e)||OO(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=nE(this._rgb);return e&&(e.a=Q_(e.a)),e}set rgb(e){this._rgb=z1(e)}rgbString(){return this._valid?_O(this._rgb):this._rgb}hexString(){return this._valid?vO(this._rgb):this._rgb}hslString(){return this._valid?AO(this._rgb):this._rgb}mix(e,t){let r=this;if(e){let i=r.rgb,a=e.rgb,u,d=t===u?.5:t,m=2*d-1,y=i.a-a.a,x=((m*y===-1?m:(m+y)/(1+m*y))+1)/2;u=1-x,i.r=255&x*i.r+u*a.r+.5,i.g=255&x*i.g+u*a.g+.5,i.b=255&x*i.b+u*a.b+.5,i.a=d*i.a+(1-d)*a.a,r.rgb=i}return r}clone(){return new Rd(this.rgb)}alpha(e){return this._rgb.a=zp(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb,t=Vp(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=t,this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return lv(this._rgb,2,e),this}darken(e){return lv(this._rgb,2,-e),this}saturate(e){return lv(this._rgb,1,e),this}desaturate(e){return lv(this._rgb,1,-e),this}rotate(e){return MO(this._rgb,e),this}};function rE(n){return new Rd(n)}var iE=n=>n instanceof CanvasGradient||n instanceof CanvasPattern;function Yp(n){return iE(n)?n:rE(n)}function cv(n){return iE(n)?n:rE(n).saturate(.5).darken(.1).hexString()}var Ic=Object.create(null),yv=Object.create(null);function Rp(n,e){if(!e)return n;let t=e.split(".");for(let r=0,i=t.length;r<i;++r){let a=t[r];n=n[a]||(n[a]=Object.create(null))}return n}function F_(n,e,t){return typeof e=="string"?Tf(Rp(n,e),t):Tf(Rp(n,""),e)}var z_=class{constructor(e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,r)=>cv(r.backgroundColor),this.hoverBorderColor=(t,r)=>cv(r.borderColor),this.hoverColor=(t,r)=>cv(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.describe(e)}set(e,t){return F_(this,e,t)}get(e){return Rp(this,e)}describe(e,t){return F_(yv,e,t)}override(e,t){return F_(Ic,e,t)}route(e,t,r,i){let a=Rp(this,e),u=Rp(this,r),d="_"+t;Object.defineProperties(a,{[d]:{value:a[t],writable:!0},[t]:{enumerable:!0,get(){let m=this[d],y=u[i];return Cr(m)?Object.assign({},y,m):tr(m,y)},set(m){this[d]=m}}})}},mr=new z_({_scriptable:n=>!n.startsWith("on"),_indexable:n=>n!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function oE(n){return!n||Mr(n.size)||Mr(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}function Fd(n,e,t,r,i){let a=e[i];return a||(a=e[i]=n.measureText(i).width,t.push(i)),a>r&&(r=a),r}function t0(n,e,t,r){r=r||{};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},a=r.garbageCollect=[],r.font=e),n.save(),n.font=e;let u=0,d=t.length,m,y,x,S,L;for(m=0;m<d;m++)if(S=t[m],S!=null&&li(S)!==!0)u=Fd(n,i,a,u,S);else if(li(S))for(y=0,x=S.length;y<x;y++)L=S[y],L!=null&&!li(L)&&(u=Fd(n,i,a,u,L));n.restore();let H=a.length/2;if(H>t.length){for(m=0;m<H;m++)delete i[a[m]];a.splice(0,H)}return u}function Wu(n,e,t){let r=n.currentDevicePixelRatio,i=t!==0?Math.max(t/2,.5):0;return Math.round((e-i)*r)/r+i}function bv(n,e){e=e||n.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,n.width,n.height),e.restore()}function zd(n,e,t,r){let i,a,u,d,m,y=e.pointStyle,x=e.rotation,S=e.radius,L=(x||0)*J1;if(y&&typeof y=="object"&&(i=y.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){n.save(),n.translate(t,r),n.rotate(L),n.drawImage(y,-y.width/2,-y.height/2,y.width,y.height),n.restore();return}if(!(isNaN(S)||S<=0)){switch(n.beginPath(),y){default:n.arc(t,r,S,0,Qr),n.closePath();break;case"triangle":n.moveTo(t+Math.sin(L)*S,r-Math.cos(L)*S),L+=H_,n.lineTo(t+Math.sin(L)*S,r-Math.cos(L)*S),L+=H_,n.lineTo(t+Math.sin(L)*S,r-Math.cos(L)*S),n.closePath();break;case"rectRounded":m=S*.516,d=S-m,a=Math.cos(L+Ld)*d,u=Math.sin(L+Ld)*d,n.arc(t-a,r-u,m,L-Ti,L-qi),n.arc(t+u,r-a,m,L-qi,L),n.arc(t+a,r+u,m,L,L+qi),n.arc(t-u,r+a,m,L+qi,L+Ti),n.closePath();break;case"rect":if(!x){d=Math.SQRT1_2*S,n.rect(t-d,r-d,2*d,2*d);break}L+=Ld;case"rectRot":a=Math.cos(L)*S,u=Math.sin(L)*S,n.moveTo(t-a,r-u),n.lineTo(t+u,r-a),n.lineTo(t+a,r+u),n.lineTo(t-u,r+a),n.closePath();break;case"crossRot":L+=Ld;case"cross":a=Math.cos(L)*S,u=Math.sin(L)*S,n.moveTo(t-a,r-u),n.lineTo(t+a,r+u),n.moveTo(t+u,r-a),n.lineTo(t-u,r+a);break;case"star":a=Math.cos(L)*S,u=Math.sin(L)*S,n.moveTo(t-a,r-u),n.lineTo(t+a,r+u),n.moveTo(t+u,r-a),n.lineTo(t-u,r+a),L+=Ld,a=Math.cos(L)*S,u=Math.sin(L)*S,n.moveTo(t-a,r-u),n.lineTo(t+a,r+u),n.moveTo(t+u,r-a),n.lineTo(t-u,r+a);break;case"line":a=Math.cos(L)*S,u=Math.sin(L)*S,n.moveTo(t-a,r-u),n.lineTo(t+a,r+u);break;case"dash":n.moveTo(t,r),n.lineTo(t+Math.cos(L)*S,r+Math.sin(L)*S);break}n.fill(),e.borderWidth>0&&n.stroke()}}function zu(n,e,t){return t=t||.5,!e||n&&n.x>e.left-t&&n.x<e.right+t&&n.y>e.top-t&&n.y<e.bottom+t}function Wd(n,e){n.save(),n.beginPath(),n.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),n.clip()}function jd(n){n.restore()}function n0(n,e,t,r,i){if(!e)return n.lineTo(t.x,t.y);if(i==="middle"){let a=(e.x+t.x)/2;n.lineTo(a,e.y),n.lineTo(a,t.y)}else i==="after"!=!!r?n.lineTo(e.x,t.y):n.lineTo(t.x,e.y);n.lineTo(t.x,t.y)}function r0(n,e,t,r){if(!e)return n.lineTo(t.x,t.y);n.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?t.cp2x:t.cp1x,r?t.cp2y:t.cp1y,t.x,t.y)}function ju(n,e,t,r,i,a={}){let u=li(e)?e:[e],d=a.strokeWidth>0&&a.strokeColor!=="",m,y;for(n.save(),n.font=i.string,IO(n,a),m=0;m<u.length;++m)y=u[m],d&&(a.strokeColor&&(n.strokeStyle=a.strokeColor),Mr(a.strokeWidth)||(n.lineWidth=a.strokeWidth),n.strokeText(y,t,r,a.maxWidth)),n.fillText(y,t,r,a.maxWidth),NO(n,t,r,y,a),r+=i.lineHeight;n.restore()}function IO(n,e){e.translation&&n.translate(e.translation[0],e.translation[1]),Mr(e.rotation)||n.rotate(e.rotation),e.color&&(n.fillStyle=e.color),e.textAlign&&(n.textAlign=e.textAlign),e.textBaseline&&(n.textBaseline=e.textBaseline)}function NO(n,e,t,r,i){if(i.strikethrough||i.underline){let a=n.measureText(r),u=e-a.actualBoundingBoxLeft,d=e+a.actualBoundingBoxRight,m=t-a.actualBoundingBoxAscent,y=t+a.actualBoundingBoxDescent,x=i.strikethrough?(m+y)/2:y;n.strokeStyle=n.fillStyle,n.beginPath(),n.lineWidth=i.decorationWidth||2,n.moveTo(u,x),n.lineTo(d,x),n.stroke()}}function Ud(n,e){let{x:t,y:r,w:i,h:a,radius:u}=e;n.arc(t+u.topLeft,r+u.topLeft,u.topLeft,-qi,Ti,!0),n.lineTo(t,r+a-u.bottomLeft),n.arc(t+u.bottomLeft,r+a-u.bottomLeft,u.bottomLeft,Ti,qi,!0),n.lineTo(t+i-u.bottomRight,r+a),n.arc(t+i-u.bottomRight,r+a-u.bottomRight,u.bottomRight,qi,0,!0),n.lineTo(t+i,r+u.topRight),n.arc(t+i-u.topRight,r+u.topRight,u.topRight,0,-qi,!0),n.lineTo(t+u.topLeft,r)}var PO=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),LO=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function aE(n,e){let t=(""+n).match(PO);if(!t||t[1]==="normal")return e*1.2;switch(n=+t[2],t[3]){case"px":return n;case"%":n/=100;break}return e*n}var RO=n=>+n||0;function $p(n,e){let t={},r=Cr(e),i=r?Object.keys(e):e,a=Cr(n)?r?u=>tr(n[u],n[e[u]]):u=>n[u]:()=>n;for(let u of i)t[u]=RO(a(u));return t}function _v(n){return $p(n,{top:"y",right:"x",bottom:"y",left:"x"})}function Gp(n){return $p(n,["topLeft","topRight","bottomLeft","bottomRight"])}function jo(n){let e=_v(n);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Mi(n,e){n=n||{},e=e||mr.font;let t=tr(n.size,e.size);typeof t=="string"&&(t=parseInt(t,10));let r=tr(n.style,e.style);r&&!(""+r).match(LO)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");let i={family:tr(n.family,e.family),lineHeight:aE(tr(n.lineHeight,e.lineHeight),t),size:t,style:r,weight:tr(n.weight,e.weight),string:""};return i.string=oE(i),i}function Df(n,e,t,r){let i=!0,a,u,d;for(a=0,u=n.length;a<u;++a)if(d=n[a],d!==void 0&&(e!==void 0&&typeof d=="function"&&(d=d(e),i=!1),t!==void 0&&li(d)&&(d=d[t%d.length],i=!1),d!==void 0))return r&&!i&&(r.cacheable=!1),d}function i0(n,e){let{min:t,max:r}=n;return{min:t-Math.abs(Fp(e,t)),max:r+Fp(e,r)}}function Kp(n,e,t){t=t||(u=>n[u]<e);let r=n.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,t(a)?i=a:r=a;return{lo:i,hi:r}}var kl=(n,e,t)=>Kp(n,t,r=>n[r][e]<t),o0=(n,e,t)=>Kp(n,t,r=>n[r][e]>=t);function a0(n,e,t){let r=0,i=n.length;for(;r<i&&n[r]<e;)r++;for(;i>r&&n[i-1]>t;)i--;return r>0||i<n.length?n.slice(r,i):n}var sE=["push","pop","shift","splice","unshift"];function s0(n,e){if(n._chartjs){n._chartjs.listeners.push(e);return}Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),sE.forEach(t=>{let r="_onData"+jp(t),i=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...a){let u=i.apply(this,a);return n._chartjs.listeners.forEach(d=>{typeof d[r]=="function"&&d[r](...a)}),u}})})}function wv(n,e){let t=n._chartjs;if(!t)return;let r=t.listeners,i=r.indexOf(e);i!==-1&&r.splice(i,1),!(r.length>0)&&(sE.forEach(a=>{delete n[a]}),delete n._chartjs)}function xv(n){let e=new Set,t,r;for(t=0,r=n.length;t<r;++t)e.add(n[t]);return e.size===r?n:Array.from(e)}function Xp(n,e=[""],t=n,r,i=()=>n[0]){na(r)||(r=fE("_fallback",n));let a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:t,_fallback:r,_getTarget:i,override:u=>Xp([u,...n],e,t,r)};return new Proxy(a,{deleteProperty(u,d){return delete u[d],delete u._keys,delete n[0][d],!0},get(u,d){return uE(u,d,()=>UO(d,e,n,u))},getOwnPropertyDescriptor(u,d){return Reflect.getOwnPropertyDescriptor(u._scopes[0],d)},getPrototypeOf(){return Reflect.getPrototypeOf(n[0])},has(u,d){return j1(u).includes(d)},ownKeys(u){return j1(u)},set(u,d,m){let y=u._storage||(u._storage=i());return y[d]=m,delete u[d],delete u._keys,!0}})}function kc(n,e,t,r){let i={_cacheable:!1,_proxy:n,_context:e,_subProxy:t,_stack:new Set,_descriptors:Ev(n,r),setContext:a=>kc(n,a,t,r),override:a=>kc(n.override(a),e,t,r)};return new Proxy(i,{deleteProperty(a,u){return delete a[u],delete n[u],!0},get(a,u,d){return uE(a,u,()=>BO(a,u,d))},getOwnPropertyDescriptor(a,u){return a._descriptors.allKeys?Reflect.has(n,u)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,u)},getPrototypeOf(){return Reflect.getPrototypeOf(n)},has(a,u){return Reflect.has(n,u)},ownKeys(){return Reflect.ownKeys(n)},set(a,u,d){return n[u]=d,delete a[u],!0}})}function Ev(n,e={scriptable:!0,indexable:!0}){let{_scriptable:t=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=n;return{allKeys:i,scriptable:t,indexable:r,isScriptable:Dc(t)?t:()=>t,isIndexable:Dc(r)?r:()=>r}}var FO=(n,e)=>n?n+jp(e):e,lE=(n,e)=>Cr(e)&&n!=="adapters";function uE(n,e,t){let r=n[e];return na(r)||(r=t(),na(r)&&(n[e]=r)),r}function BO(n,e,t){let{_proxy:r,_context:i,_subProxy:a,_descriptors:u}=n,d=r[e];return Dc(d)&&u.isScriptable(e)&&(d=HO(e,d,n,t)),li(d)&&d.length&&(d=qO(e,d,n,u.isIndexable)),lE(e,d)&&(d=kc(d,i,a&&a[e],u)),d}function HO(n,e,t,r){let{_proxy:i,_context:a,_subProxy:u,_stack:d}=t;if(d.has(n))throw new Error("Recursion detected: "+Array.from(d).join("->")+"->"+n);return d.add(n),e=e(a,u||r),d.delete(n),Cr(e)&&(e=l0(i._scopes,i,n,e)),e}function qO(n,e,t,r){let{_proxy:i,_context:a,_subProxy:u,_descriptors:d}=t;if(na(a.index)&&r(n))e=e[a.index%e.length];else if(Cr(e[0])){let m=e,y=i._scopes.filter(x=>x!==m);e=[];for(let x of m){let S=l0(y,i,n,x);e.push(kc(S,a,u&&u[n],d))}}return e}function cE(n,e,t){return Dc(n)?n(e,t):n}var zO=(n,e)=>n===!0?e:typeof n=="string"?iu(e,n):void 0;function WO(n,e,t,r){for(let i of e){let a=zO(t,i);if(a){n.add(a);let u=cE(a._fallback,t,a);if(na(u)&&u!==t&&u!==r)return u}else if(a===!1&&na(r)&&t!==r)return null}return!1}function l0(n,e,t,r){let i=e._rootScopes,a=cE(e._fallback,t,r),u=[...n,...i],d=new Set;d.add(r);let m=W1(d,u,t,a||t);return m===null||na(a)&&a!==t&&(m=W1(d,u,a,m),m===null)?!1:Xp(Array.from(d),[""],i,a,()=>jO(e,t,r))}function W1(n,e,t,r){for(;t;)t=WO(n,e,t,r);return t}function jO(n,e,t){let r=n._getTarget();e in r||(r[e]={});let i=r[e];return li(i)&&Cr(t)?t:i}function UO(n,e,t,r){let i;for(let a of e)if(i=fE(FO(a,n),t),na(i))return lE(n,i)?l0(t,r,n,i):i}function fE(n,e){for(let t of e){if(!t)continue;let r=t[n];if(na(r))return r}}function j1(n){let e=n._keys;return e||(e=n._keys=VO(n._scopes)),e}function VO(n){let e=new Set;for(let t of n)for(let r of Object.keys(t).filter(i=>!i.startsWith("_")))e.add(r);return Array.from(e)}var YO=Number.EPSILON||1e-14,Bd=(n,e)=>e<n.length&&!n[e].skip&&n[e],dE=n=>n==="x"?"y":"x";function hE(n,e,t,r){let i=n.skip?e:n,a=e,u=t.skip?e:t,d=qp(a,i),m=qp(u,a),y=d/(d+m),x=m/(d+m);y=isNaN(y)?0:y,x=isNaN(x)?0:x;let S=r*y,L=r*x;return{previous:{x:a.x-S*(u.x-i.x),y:a.y-S*(u.y-i.y)},next:{x:a.x+L*(u.x-i.x),y:a.y+L*(u.y-i.y)}}}function $O(n,e,t){let r=n.length,i,a,u,d,m,y=Bd(n,0);for(let x=0;x<r-1;++x)if(m=y,y=Bd(n,x+1),!(!m||!y)){if(Af(e[x],0,YO)){t[x]=t[x+1]=0;continue}i=t[x]/e[x],a=t[x+1]/e[x],d=Math.pow(i,2)+Math.pow(a,2),!(d<=9)&&(u=3/Math.sqrt(d),t[x]=i*u*e[x],t[x+1]=a*u*e[x])}}function GO(n,e,t="x"){let r=dE(t),i=n.length,a,u,d,m=Bd(n,0);for(let y=0;y<i;++y){if(u=d,d=m,m=Bd(n,y+1),!d)continue;let x=d[t],S=d[r];u&&(a=(x-u[t])/3,d[`cp1${t}`]=x-a,d[`cp1${r}`]=S-a*e[y]),m&&(a=(m[t]-x)/3,d[`cp2${t}`]=x+a,d[`cp2${r}`]=S+a*e[y])}}function pE(n,e="x"){let t=dE(e),r=n.length,i=Array(r).fill(0),a=Array(r),u,d,m,y=Bd(n,0);for(u=0;u<r;++u)if(d=m,m=y,y=Bd(n,u+1),!!m){if(y){let x=y[e]-m[e];i[u]=x!==0?(y[t]-m[t])/x:0}a[u]=d?y?$s(i[u-1])!==$s(i[u])?0:(i[u-1]+i[u])/2:i[u-1]:i[u]}$O(n,i,a),GO(n,a,e)}function uv(n,e,t){return Math.max(Math.min(n,t),e)}function KO(n,e){let t,r,i,a,u,d=zu(n[0],e);for(t=0,r=n.length;t<r;++t)u=a,a=d,d=t<r-1&&zu(n[t+1],e),a&&(i=n[t],u&&(i.cp1x=uv(i.cp1x,e.left,e.right),i.cp1y=uv(i.cp1y,e.top,e.bottom)),d&&(i.cp2x=uv(i.cp2x,e.left,e.right),i.cp2y=uv(i.cp2y,e.top,e.bottom)))}function u0(n,e,t,r,i){let a,u,d,m;if(e.spanGaps&&(n=n.filter(y=>!y.skip)),e.cubicInterpolationMode==="monotone")pE(n,i);else{let y=r?n[n.length-1]:n[0];for(a=0,u=n.length;a<u;++a)d=n[a],m=hE(y,d,n[Math.min(a+1,u-(r?0:1))%u],e.tension),d.cp1x=m.previous.x,d.cp1y=m.previous.y,d.cp2x=m.next.x,d.cp2y=m.next.y,y=d}e.capBezierPoints&&KO(n,t)}function Cv(){return typeof window<"u"&&typeof document<"u"}function Nc(n){let e=n.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function fv(n,e,t){let r;return typeof n=="string"?(r=parseInt(n,10),n.indexOf("%")!==-1&&(r=r/100*e.parentNode[t])):r=n,r}var Sv=n=>window.getComputedStyle(n,null);function mE(n,e){return Sv(n).getPropertyValue(e)}var XO=["top","right","bottom","left"];function Sf(n,e,t){let r={};t=t?"-"+t:"";for(let i=0;i<4;i++){let a=XO[i];r[a]=parseFloat(n[e+"-"+a+t])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}var QO=(n,e,t)=>(n>0||e>0)&&(!t||!t.shadowRoot);function JO(n,e){let t=n.native||n,r=t.touches,i=r&&r.length?r[0]:t,{offsetX:a,offsetY:u}=i,d=!1,m,y;if(QO(a,u,t.target))m=a,y=u;else{let x=e.getBoundingClientRect();m=i.clientX-x.left,y=i.clientY-x.top,d=!0}return{x:m,y,box:d}}function Tv(n,e){let{canvas:t,currentDevicePixelRatio:r}=e,i=Sv(t),a=i.boxSizing==="border-box",u=Sf(i,"padding"),d=Sf(i,"border","width"),{x:m,y,box:x}=JO(n,t),S=u.left+(x&&d.left),L=u.top+(x&&d.top),{width:H,height:V}=e;return a&&(H-=u.width+d.width,V-=u.height+d.height),{x:Math.round((m-S)/H*t.width/r),y:Math.round((y-L)/V*t.height/r)}}function ZO(n,e,t){let r,i;if(e===void 0||t===void 0){let a=Nc(n);if(!a)e=n.clientWidth,t=n.clientHeight;else{let u=a.getBoundingClientRect(),d=Sv(a),m=Sf(d,"border","width"),y=Sf(d,"padding");e=u.width-y.width-m.width,t=u.height-y.height-m.height,r=fv(d.maxWidth,a,"clientWidth"),i=fv(d.maxHeight,a,"clientHeight")}}return{width:e,height:t,maxWidth:r||Hp,maxHeight:i||Hp}}var B_=n=>Math.round(n*10)/10;function c0(n,e,t,r){let i=Sv(n),a=Sf(i,"margin"),u=fv(i.maxWidth,n,"clientWidth")||Hp,d=fv(i.maxHeight,n,"clientHeight")||Hp,m=ZO(n,e,t),{width:y,height:x}=m;if(i.boxSizing==="content-box"){let S=Sf(i,"border","width"),L=Sf(i,"padding");y-=L.width+S.width,x-=L.height+S.height}return y=Math.max(0,y-a.width),x=Math.max(0,r?Math.floor(y/r):x-a.height),y=B_(Math.min(y,u,m.maxWidth)),x=B_(Math.min(x,d,m.maxHeight)),y&&!x&&(x=B_(y/2)),{width:y,height:x}}function Mv(n,e,t){let r=e||1,i=Math.floor(n.height*r),a=Math.floor(n.width*r);n.height=i/r,n.width=a/r;let u=n.canvas;return u.style&&(t||!u.style.height&&!u.style.width)&&(u.style.height=`${n.height}px`,u.style.width=`${n.width}px`),n.currentDevicePixelRatio!==r||u.height!==i||u.width!==a?(n.currentDevicePixelRatio=r,u.height=i,u.width=a,n.ctx.setTransform(r,0,0,r,0,0),!0):!1}var f0=function(){let n=!1;try{let e={get passive(){return n=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch{}return n}();function Av(n,e){let t=mE(n,e),r=t&&t.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function qu(n,e,t,r){return{x:n.x+t*(e.x-n.x),y:n.y+t*(e.y-n.y)}}function d0(n,e,t,r){return{x:n.x+t*(e.x-n.x),y:r==="middle"?t<.5?n.y:e.y:r==="after"?t<1?n.y:e.y:t>0?e.y:n.y}}function h0(n,e,t,r){let i={x:n.cp2x,y:n.cp2y},a={x:e.cp1x,y:e.cp1y},u=qu(n,i,t),d=qu(i,a,t),m=qu(a,e,t),y=qu(u,d,t),x=qu(d,m,t);return qu(y,x,t)}var U1=new Map;function eI(n,e){e=e||{};let t=n+JSON.stringify(e),r=U1.get(t);return r||(r=new Intl.NumberFormat(n,e),U1.set(t,r)),r}function kf(n,e,t){return eI(e,t).format(n)}var tI=function(n,e){return{x(t){return n+n+e-t},setWidth(t){e=t},textAlign(t){return t==="center"?t:t==="right"?"left":"right"},xPlus(t,r){return t-r},leftForLtr(t,r){return t-r}}},nI=function(){return{x(n){return n},setWidth(n){},textAlign(n){return n},xPlus(n,e){return n+e},leftForLtr(n,e){return n}}};function Pc(n,e,t){return n?tI(e,t):nI()}function Dv(n,e){let t,r;(e==="ltr"||e==="rtl")&&(t=n.canvas.style,r=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",e,"important"),n.prevTextDirection=r)}function kv(n,e){e!==void 0&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",e[0],e[1]))}function gE(n){return n==="angle"?{between:qd,compare:Z1,normalize:Ns}:{between:(e,t,r)=>e>=Math.min(t,r)&&e<=Math.max(r,t),compare:(e,t)=>e-t,normalize:e=>e}}function V1({start:n,end:e,count:t,loop:r,style:i}){return{start:n%t,end:e%t,loop:r&&(e-n+1)%t===0,style:i}}function rI(n,e,t){let{property:r,start:i,end:a}=t,{between:u,normalize:d}=gE(r),m=e.length,{start:y,end:x,loop:S}=n,L,H;if(S){for(y+=m,x+=m,L=0,H=m;L<H&&u(d(e[y%m][r]),i,a);++L)y--,x--;y%=m,x%=m}return x<y&&(x+=m),{start:y,end:x,loop:S,style:n.style}}function Ov(n,e,t){if(!t)return[n];let{property:r,start:i,end:a}=t,u=e.length,{compare:d,between:m,normalize:y}=gE(r),{start:x,end:S,loop:L,style:H}=rI(n,e,t),V=[],U=!1,Z=null,ae,le,Ae,ve=()=>m(i,Ae,ae)&&d(i,Ae)!==0,b=()=>d(a,ae)===0||m(a,Ae,ae),te=()=>U||ve(),ye=()=>!U||b();for(let Oe=x,De=x;Oe<=S;++Oe)le=e[Oe%u],!le.skip&&(ae=y(le[r]),ae!==Ae&&(U=m(ae,i,a),Z===null&&te()&&(Z=d(ae,i)===0?Oe:De),Z!==null&&ye()&&(V.push(V1({start:Z,end:Oe,loop:L,count:u,style:H})),Z=null),De=Oe,Ae=ae));return Z!==null&&V.push(V1({start:Z,end:S,loop:L,count:u,style:H})),V}function Iv(n,e){let t=[],r=n.segments;for(let i=0;i<r.length;i++){let a=Ov(r[i],n.points,e);a.length&&t.push(...a)}return t}function iI(n,e,t,r){let i=0,a=e-1;if(t&&!r)for(;i<e&&!n[i].skip;)i++;for(;i<e&&n[i].skip;)i++;for(i%=e,t&&(a+=i);a>i&&n[a%e].skip;)a--;return a%=e,{start:i,end:a}}function oI(n,e,t,r){let i=n.length,a=[],u=e,d=n[e],m;for(m=e+1;m<=t;++m){let y=n[m%i];y.skip||y.stop?d.skip||(r=!1,a.push({start:e%i,end:(m-1)%i,loop:r}),e=u=y.stop?m:null):(u=m,d.skip&&(e=m)),d=y}return u!==null&&a.push({start:e%i,end:u%i,loop:r}),a}function p0(n,e){let t=n.points,r=n.options.spanGaps,i=t.length;if(!i)return[];let a=!!n._loop,{start:u,end:d}=iI(t,i,a,r);if(r===!0)return Y1(n,[{start:u,end:d,loop:a}],t,e);let m=d<u?d+i:d,y=!!n._fullLoop&&u===0&&d===i-1;return Y1(n,oI(t,u,m,y),t,e)}function Y1(n,e,t,r){return!r||!r.setContext||!t?e:aI(n,e,t,r)}function aI(n,e,t,r){let i=$1(n.options),a=t.length,u=[],d=e[0].start,m=d;for(let y of e){let x=i,S=t[d%a],L;for(m=d+1;m<=y.end;m++){let H=t[m%a];L=$1(r.setContext({type:"segment",p0:S,p1:H,p0DataIndex:(m-1)%a,p1DataIndex:m%a,datasetIndex:n._datasetIndex})),sI(L,x)&&(u.push({start:d,end:m-1,loop:y.loop,style:x}),x=L,d=m-1),S=H,x=L}d<m-1&&(u.push({start:d,end:m-1,loop:y.loop,style:L}),d=m-1)}return u}function $1(n){return{backgroundColor:n.backgroundColor,borderCapStyle:n.borderCapStyle,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderJoinStyle:n.borderJoinStyle,borderWidth:n.borderWidth,borderColor:n.borderColor}}function sI(n,e){return e&&JSON.stringify(n)!==JSON.stringify(e)}var C0=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,r,i){let a=t.listeners[i],u=t.duration;a.forEach(d=>d({chart:e,initial:t.initial,numSteps:u,currentStep:Math.min(r-t.start,u)}))}_refresh(){let e=this;e._request||(e._running=!0,e._request=dv.call(window,()=>{e._update(),e._request=null,e._running&&e._refresh()}))}_update(e=Date.now()){let t=this,r=0;t._charts.forEach((i,a)=>{if(!i.running||!i.items.length)return;let u=i.items,d=u.length-1,m=!1,y;for(;d>=0;--d)y=u[d],y._active?(y._total>i.duration&&(i.duration=y._total),y.tick(e),m=!0):(u[d]=u[u.length-1],u.pop());m&&(a.draw(),t._notify(a,i,e,"progress")),u.length||(i.running=!1,t._notify(a,i,e,"complete"),i.initial=!1),r+=u.length}),t._lastDate=e,r===0&&(t._running=!1)}_getAnims(e){let t=this._charts,r=t.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,r)),r}listen(e,t,r){this._getAnims(e).listeners[t].push(r)}add(e,t){!t||!t.length||this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){let t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;let t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){let t=this._charts.get(e);if(!t||!t.items.length)return;let r=t.items,i=r.length-1;for(;i>=0;--i)r[i].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}},Uu=new C0,vE="transparent",lI={boolean(n,e,t){return t>.5?e:n},color(n,e,t){let r=Yp(n||vE),i=r.valid&&Yp(e||vE);return i&&i.valid?i.mix(r,t).hexString():e},number(n,e,t){return n+(e-n)*t}},S0=class{constructor(e,t,r,i){let a=t[r];i=Df([e.to,i,a,e.from]);let u=Df([e.from,a,i]);this._active=!0,this._fn=e.fn||lI[e.type||typeof u],this._easing=Cf[e.easing]||Cf.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=r,this._from=u,this._to=i,this._promises=void 0}active(){return this._active}update(e,t,r){let i=this;if(i._active){i._notify(!1);let a=i._target[i._prop],u=r-i._start,d=i._duration-u;i._start=r,i._duration=Math.floor(Math.max(d,e.duration)),i._total+=u,i._loop=!!e.loop,i._to=Df([e.to,t,a,e.from]),i._from=Df([e.from,a,t])}}cancel(){let e=this;e._active&&(e.tick(Date.now()),e._active=!1,e._notify(!1))}tick(e){let t=this,r=e-t._start,i=t._duration,a=t._prop,u=t._from,d=t._loop,m=t._to,y;if(t._active=u!==m&&(d||r<i),!t._active){t._target[a]=m,t._notify(!0);return}if(r<0){t._target[a]=u;return}y=r/i%2,y=d&&y>1?2-y:y,y=t._easing(Math.min(1,Math.max(0,y))),t._target[a]=t._fn(u,m,y)}wait(){let e=this._promises||(this._promises=[]);return new Promise((t,r)=>{e.push({res:t,rej:r})})}_notify(e){let t=e?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][t]()}},uI=["x","y","borderWidth","radius","tension"],cI=["color","borderColor","backgroundColor"];mr.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});var fI=Object.keys(mr.animation);mr.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"});mr.set("animations",{colors:{type:"color",properties:cI},numbers:{type:"number",properties:uI}});mr.describe("animations",{_fallback:"animation"});mr.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>n|0}}}});var zv=class{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!Cr(e))return;let t=this._properties;Object.getOwnPropertyNames(e).forEach(r=>{let i=e[r];if(!Cr(i))return;let a={};for(let u of fI)a[u]=i[u];(li(i.properties)&&i.properties||[r]).forEach(u=>{(u===r||!t.has(u))&&t.set(u,a)})})}_animateOptions(e,t){let r=t.options,i=hI(e,r);if(!i)return[];let a=this._createAnimations(i,r);return r.$shared&&dI(e.options.$animations,r).then(()=>{e.options=r},()=>{}),a}_createAnimations(e,t){let r=this._properties,i=[],a=e.$animations||(e.$animations={}),u=Object.keys(t),d=Date.now(),m;for(m=u.length-1;m>=0;--m){let y=u[m];if(y.charAt(0)==="$")continue;if(y==="options"){i.push(...this._animateOptions(e,t));continue}let x=t[y],S=a[y],L=r.get(y);if(S)if(L&&S.active()){S.update(L,x,d);continue}else S.cancel();if(!L||!L.duration){e[y]=x;continue}a[y]=S=new S0(L,e,y,x),i.push(S)}return i}update(e,t){if(this._properties.size===0){Object.assign(e,t);return}let r=this._createAnimations(e,t);if(r.length)return Uu.add(this._chart,r),!0}};function dI(n,e){let t=[],r=Object.keys(e);for(let i=0;i<r.length;i++){let a=n[r[i]];a&&a.active()&&t.push(a.wait())}return Promise.all(t)}function hI(n,e){if(!e)return;let t=n.options;if(!t){n.options=e;return}return t.$shared&&(n.options=t=Object.assign({},t,{$shared:!1,$animations:{}})),t}function yE(n,e){let t=n&&n.options||{},r=t.reverse,i=t.min===void 0?e:0,a=t.max===void 0?e:0;return{start:r?a:i,end:r?i:a}}function pI(n,e,t){if(t===!1)return!1;let r=yE(n,t),i=yE(e,t);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function mI(n){let e,t,r,i;return Cr(n)?(e=n.top,t=n.right,r=n.bottom,i=n.left):e=t=r=i=n,{top:e,right:t,bottom:r,left:i,disabled:n===!1}}function bE(n,e){let t=[],r=n._getSortedDatasetMetas(e),i,a;for(i=0,a=r.length;i<a;++i)t.push(r[i].index);return t}function _E(n,e,t,r){let i=n.keys,a=r.mode==="single",u,d,m,y;if(e!==null){for(u=0,d=i.length;u<d;++u){if(m=+i[u],m===t){if(r.all)continue;break}y=n.values[m],zi(y)&&(a||e===0||$s(e)===$s(y))&&(e+=y)}return e}}function gI(n){let e=Object.keys(n),t=new Array(e.length),r,i,a;for(r=0,i=e.length;r<i;++r)a=e[r],t[r]={x:a,y:n[a]};return t}function wE(n,e){let t=n&&n.options.stacked;return t||t===void 0&&e.stack!==void 0}function vI(n,e,t){return`${n.id}.${e.id}.${t.stack||t.type}`}function yI(n){let{min:e,max:t,minDefined:r,maxDefined:i}=n.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:i?t:Number.POSITIVE_INFINITY}}function bI(n,e,t){let r=n[e]||(n[e]={});return r[t]||(r[t]={})}function xE(n,e,t){for(let r of e.getMatchingVisibleMetas("bar").reverse()){let i=n[r.index];if(t&&i>0||!t&&i<0)return r.index}return null}function EE(n,e){let{chart:t,_cachedMeta:r}=n,i=t._stacks||(t._stacks={}),{iScale:a,vScale:u,index:d}=r,m=a.axis,y=u.axis,x=vI(a,u,r),S=e.length,L;for(let H=0;H<S;++H){let V=e[H],{[m]:U,[y]:Z}=V,ae=V._stacks||(V._stacks={});L=ae[y]=bI(i,x,U),L[d]=Z,L._top=xE(L,u,!0),L._bottom=xE(L,u,!1)}}function m0(n,e){let t=n.scales;return Object.keys(t).filter(r=>t[r].axis===e).shift()}function _I(n,e){return Object.assign(Object.create(n),{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function wI(n,e,t){return Object.assign(Object.create(n),{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:t,index:e,mode:"default",type:"data"})}function Qp(n,e){let t=n.controller.index,r=n.vScale&&n.vScale.axis;if(r){e=e||n._parsed;for(let i of e){let a=i._stacks;if(!a||a[r]===void 0||a[r][t]===void 0)return;delete a[r][t]}}}var g0=n=>n==="reset"||n==="none",CE=(n,e)=>e?n:Object.assign({},n),Ja=class{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){let e=this,t=e._cachedMeta;e.configure(),e.linkScales(),t._stacked=wE(t.vScale,t),e.addElements()}updateIndex(e){this.index!==e&&Qp(this._cachedMeta),this.index=e}linkScales(){let e=this,t=e.chart,r=e._cachedMeta,i=e.getDataset(),a=(L,H,V,U)=>L==="x"?H:L==="r"?U:V,u=r.xAxisID=tr(i.xAxisID,m0(t,"x")),d=r.yAxisID=tr(i.yAxisID,m0(t,"y")),m=r.rAxisID=tr(i.rAxisID,m0(t,"r")),y=r.indexAxis,x=r.iAxisID=a(y,u,d,m),S=r.vAxisID=a(y,d,u,m);r.xScale=e.getScaleForId(u),r.yScale=e.getScaleForId(d),r.rScale=e.getScaleForId(m),r.iScale=e.getScaleForId(x),r.vScale=e.getScaleForId(S)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){let e=this._cachedMeta;this._data&&wv(this._data,this),e._stacked&&Qp(e)}_dataCheck(){let e=this,t=e.getDataset(),r=t.data||(t.data=[]),i=e._data;if(Cr(r))e._data=gI(r);else if(i!==r){if(i){wv(i,e);let a=e._cachedMeta;Qp(a),a._parsed=[]}r&&Object.isExtensible(r)&&s0(r,e),e._syncList=[],e._data=r}}addElements(){let e=this,t=e._cachedMeta;e._dataCheck(),e.datasetElementType&&(t.dataset=new e.datasetElementType)}buildOrUpdateElements(e){let t=this,r=t._cachedMeta,i=t.getDataset(),a=!1;t._dataCheck();let u=r._stacked;r._stacked=wE(r.vScale,r),r.stack!==i.stack&&(a=!0,Qp(r),r.stack=i.stack),t._resyncElements(e),(a||u!==r._stacked)&&EE(t,r._parsed)}configure(){let e=this,t=e.chart.config,r=t.datasetScopeKeys(e._type),i=t.getOptionScopes(e.getDataset(),r,!0);e.options=t.createResolver(i,e.getContext()),e._parsing=e.options.parsing}parse(e,t){let r=this,{_cachedMeta:i,_data:a}=r,{iScale:u,_stacked:d}=i,m=u.axis,y=e===0&&t===a.length?!0:i._sorted,x=e>0&&i._parsed[e-1],S,L,H;if(r._parsing===!1)i._parsed=a,i._sorted=!0,H=a;else{li(a[e])?H=r.parseArrayData(i,a,e,t):Cr(a[e])?H=r.parseObjectData(i,a,e,t):H=r.parsePrimitiveData(i,a,e,t);let V=()=>L[m]===null||x&&L[m]<x[m];for(S=0;S<t;++S)i._parsed[S+e]=L=H[S],y&&(V()&&(y=!1),x=L);i._sorted=y}d&&EE(r,H)}parsePrimitiveData(e,t,r,i){let{iScale:a,vScale:u}=e,d=a.axis,m=u.axis,y=a.getLabels(),x=a===u,S=new Array(i),L,H,V;for(L=0,H=i;L<H;++L)V=L+r,S[L]={[d]:x||a.parse(y[V],V),[m]:u.parse(t[V],V)};return S}parseArrayData(e,t,r,i){let{xScale:a,yScale:u}=e,d=new Array(i),m,y,x,S;for(m=0,y=i;m<y;++m)x=m+r,S=t[x],d[m]={x:a.parse(S[0],x),y:u.parse(S[1],x)};return d}parseObjectData(e,t,r,i){let{xScale:a,yScale:u}=e,{xAxisKey:d="x",yAxisKey:m="y"}=this._parsing,y=new Array(i),x,S,L,H;for(x=0,S=i;x<S;++x)L=x+r,H=t[L],y[x]={x:a.parse(iu(H,d),L),y:u.parse(iu(H,m),L)};return y}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,r){let i=this.chart,a=this._cachedMeta,u=t[e.axis],d={keys:bE(i,!0),values:t._stacks[e.axis]};return _E(d,u,a.index,{mode:r})}updateRangeFromParsed(e,t,r,i){let a=r[t.axis],u=a===null?NaN:a,d=i&&r._stacks[t.axis];i&&d&&(i.values=d,e.min=Math.min(e.min,u),e.max=Math.max(e.max,u),u=_E(i,a,this._cachedMeta.index,{all:!0})),e.min=Math.min(e.min,u),e.max=Math.max(e.max,u)}getMinMax(e,t){let r=this,i=r._cachedMeta,a=i._parsed,u=i._sorted&&e===i.iScale,d=a.length,m=r._getOtherScale(e),y=t&&i._stacked&&{keys:bE(r.chart,!0),values:null},x={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:S,max:L}=yI(m),H,V,U,Z;function ae(){return U=a[H],V=U[e.axis],Z=U[m.axis],!zi(V)||S>Z||L<Z}for(H=0;H<d&&!(!ae()&&(r.updateRangeFromParsed(x,e,U,y),u));++H);if(u){for(H=d-1;H>=0;--H)if(!ae()){r.updateRangeFromParsed(x,e,U,y);break}}return x}getAllParsedValues(e){let t=this._cachedMeta._parsed,r=[],i,a,u;for(i=0,a=t.length;i<a;++i)u=t[i][e.axis],zi(u)&&r.push(u);return r}getMaxOverflow(){return!1}getLabelAndValue(e){let t=this,r=t._cachedMeta,i=r.iScale,a=r.vScale,u=t.getParsed(e);return{label:i?""+i.getLabelForValue(u[i.axis]):"",value:a?""+a.getLabelForValue(u[a.axis]):""}}_update(e){let t=this,r=t._cachedMeta;t.configure(),t._cachedDataOpts={},t.update(e||"default"),r._clip=mI(tr(t.options.clip,pI(r.xScale,r.yScale,t.getMaxOverflow())))}update(e){}draw(){let e=this,t=e._ctx,r=e.chart,i=e._cachedMeta,a=i.data||[],u=r.chartArea,d=[],m=e._drawStart||0,y=e._drawCount||a.length-m,x;for(i.dataset&&i.dataset.draw(t,u,m,y),x=m;x<m+y;++x){let S=a[x];S.hidden||(S.active?d.push(S):S.draw(t,u))}for(x=0;x<d.length;++x)d[x].draw(t,u)}getStyle(e,t){let r=t?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,t,r){let i=this,a=i.getDataset(),u;if(e>=0&&e<i._cachedMeta.data.length){let d=i._cachedMeta.data[e];u=d.$context||(d.$context=wI(i.getContext(),e,d)),u.parsed=i.getParsed(e),u.raw=a.data[e],u.index=u.dataIndex=e}else u=i.$context||(i.$context=_I(i.chart.getContext(),i.index)),u.dataset=a,u.index=u.datasetIndex=i.index;return u.active=!!t,u.mode=r,u}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",r){let i=this,a=t==="active",u=i._cachedDataOpts,d=e+"-"+t,m=u[d],y=i.enableOptionSharing&&na(r);if(m)return CE(m,y);let x=i.chart.config,S=x.datasetElementScopeKeys(i._type,e),L=a?[`${e}Hover`,"hover",e,""]:[e,""],H=x.getOptionScopes(i.getDataset(),S),V=Object.keys(mr.elements[e]),U=()=>i.getContext(r,a),Z=x.resolveNamedOptions(H,V,U,L);return Z.$shared&&(Z.$shared=y,u[d]=Object.freeze(CE(Z,y))),Z}_resolveAnimations(e,t,r){let i=this,a=i.chart,u=i._cachedDataOpts,d=`animation-${t}`,m=u[d];if(m)return m;let y;if(a.options.animation!==!1){let S=i.chart.config,L=S.datasetAnimationScopeKeys(i._type,t),H=S.getOptionScopes(i.getDataset(),L);y=S.createResolver(H,i.getContext(e,r,t))}let x=new zv(a,y&&y.animations);return y&&y._cacheable&&(u[d]=Object.freeze(x)),x}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||g0(e)||this.chart._animationsDisabled}updateElement(e,t,r,i){g0(i)?Object.assign(e,r):this._resolveAnimations(t,i).update(e,r)}updateSharedOptions(e,t,r){e&&!g0(t)&&this._resolveAnimations(void 0,t).update(e,r)}_setStyle(e,t,r,i){e.active=i;let a=this.getStyle(t,i);this._resolveAnimations(t,r,i).update(e,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(e,t,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,t,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){let t=this,r=t._data,i=t._cachedMeta.data;for(let[m,y,x]of t._syncList)t[m](y,x);t._syncList=[];let a=i.length,u=r.length,d=Math.min(u,a);d&&t.parse(0,d),u>a?t._insertElements(a,u-a,e):u<a&&t._removeElements(u,a-u)}_insertElements(e,t,r=!0){let i=this,a=i._cachedMeta,u=a.data,d=e+t,m,y=x=>{for(x.length+=t,m=x.length-1;m>=d;m--)x[m]=x[m-t]};for(y(u),m=e;m<d;++m)u[m]=new i.dataElementType;i._parsing&&y(a._parsed),i.parse(e,t),r&&i.updateElements(u,e,t,"reset")}updateElements(e,t,r,i){}_removeElements(e,t){let r=this,i=r._cachedMeta;if(r._parsing){let a=i._parsed.splice(e,t);i._stacked&&Qp(i,a)}i.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{let[t,r,i]=e;this[t](r,i)}}_onDataPush(){let e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){this._sync(["_removeElements",e,t]),this._sync(["_insertElements",e,arguments.length-2])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}};Ja.defaults={};Ja.prototype.datasetElementType=null;Ja.prototype.dataElementType=null;function xI(n){if(!n._cache.$bar){let e=n.getMatchingVisibleMetas("bar"),t=[];for(let r=0,i=e.length;r<i;r++)t=t.concat(e[r].controller.getAllParsedValues(n));n._cache.$bar=xv(t.sort((r,i)=>r-i))}return n._cache.$bar}function EI(n){let e=xI(n),t=n._length,r,i,a,u,d=()=>{a===32767||a===-32768||(na(u)&&(t=Math.min(t,Math.abs(a-u)||t)),u=a)};for(r=0,i=e.length;r<i;++r)a=n.getPixelForValue(e[r]),d();for(u=void 0,r=0,i=n.ticks.length;r<i;++r)a=n.getPixelForTick(r),d();return t}function CI(n,e,t,r){let i=t.barThickness,a,u;return Mr(i)?(a=e.min*t.categoryPercentage,u=t.barPercentage):(a=i*r,u=1),{chunk:a/r,ratio:u,start:e.pixels[n]-a/2}}function SI(n,e,t,r){let i=e.pixels,a=i[n],u=n>0?i[n-1]:null,d=n<i.length-1?i[n+1]:null,m=t.categoryPercentage;u===null&&(u=a-(d===null?e.end-e.start:d-a)),d===null&&(d=a+a-u);let y=a-(a-Math.min(u,d))/2*m;return{chunk:Math.abs(d-u)/2*m/r,ratio:t.barPercentage,start:y}}function TI(n,e,t,r){let i=t.parse(n[0],r),a=t.parse(n[1],r),u=Math.min(i,a),d=Math.max(i,a),m=u,y=d;Math.abs(u)>Math.abs(d)&&(m=d,y=u),e[t.axis]=y,e._custom={barStart:m,barEnd:y,start:i,end:a,min:u,max:d}}function lC(n,e,t,r){return li(n)?TI(n,e,t,r):e[t.axis]=t.parse(n,r),e}function SE(n,e,t,r){let i=n.iScale,a=n.vScale,u=i.getLabels(),d=i===a,m=[],y,x,S,L;for(y=t,x=t+r;y<x;++y)L=e[y],S={},S[i.axis]=d||i.parse(u[y],y),m.push(lC(L,S,a,y));return m}function v0(n){return n&&n.barStart!==void 0&&n.barEnd!==void 0}function MI(n,e,t){return n!==0?$s(n):(e.isHorizontal()?1:-1)*(e.min>=t?1:-1)}function AI(n){let e,t,r,i,a;return n.horizontal?(e=n.base>n.x,t="left",r="right"):(e=n.base<n.y,t="bottom",r="top"),e?(i="end",a="start"):(i="start",a="end"),{start:t,end:r,reverse:e,top:i,bottom:a}}function DI(n,e,t,r){let i=e.borderSkipped,a={};if(!i){n.borderSkipped=a;return}let{start:u,end:d,reverse:m,top:y,bottom:x}=AI(n);i==="middle"&&t&&(n.enableBorderRadius=!0,(t._top||0)===r?i=y:(t._bottom||0)===r?i=x:(a[TE(x,u,d,m)]=!0,i=y)),a[TE(i,u,d,m)]=!0,n.borderSkipped=a}function TE(n,e,t,r){return r?(n=kI(n,e,t),n=ME(n,t,e)):n=ME(n,e,t),n}function kI(n,e,t){return n===e?t:n===t?e:n}function ME(n,e,t){return n==="start"?e:n==="end"?t:n}var $d=class extends Ja{parsePrimitiveData(e,t,r,i){return SE(e,t,r,i)}parseArrayData(e,t,r,i){return SE(e,t,r,i)}parseObjectData(e,t,r,i){let{iScale:a,vScale:u}=e,{xAxisKey:d="x",yAxisKey:m="y"}=this._parsing,y=a.axis==="x"?d:m,x=u.axis==="x"?d:m,S=[],L,H,V,U;for(L=r,H=r+i;L<H;++L)U=t[L],V={},V[a.axis]=a.parse(iu(U,y),L),S.push(lC(iu(U,x),V,u,L));return S}updateRangeFromParsed(e,t,r,i){super.updateRangeFromParsed(e,t,r,i);let a=r._custom;a&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,a.min),e.max=Math.max(e.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(e){let t=this,r=t._cachedMeta,{iScale:i,vScale:a}=r,u=t.getParsed(e),d=u._custom,m=v0(d)?"["+d.start+", "+d.end+"]":""+a.getLabelForValue(u[a.axis]);return{label:""+i.getLabelForValue(u[i.axis]),value:m}}initialize(){let e=this;e.enableOptionSharing=!0,super.initialize();let t=e._cachedMeta;t.stack=e.getDataset().stack}update(e){let t=this,r=t._cachedMeta;t.updateElements(r.data,0,r.data.length,e)}updateElements(e,t,r,i){let a=this,u=i==="reset",{index:d,_cachedMeta:{vScale:m}}=a,y=m.getBasePixel(),x=m.isHorizontal(),S=a._getRuler(),L=a.resolveDataElementOptions(t,i),H=a.getSharedOptions(L),V=a.includeOptions(i,H);a.updateSharedOptions(H,i,L);for(let U=t;U<t+r;U++){let Z=a.getParsed(U),ae=u||Mr(Z[m.axis])?{base:y,head:y}:a._calculateBarValuePixels(U),le=a._calculateBarIndexPixels(U,S),Ae=(Z._stacks||{})[m.axis],ve={horizontal:x,base:ae.base,enableBorderRadius:!Ae||v0(Z._custom)||d===Ae._top||d===Ae._bottom,x:x?ae.head:le.center,y:x?le.center:ae.head,height:x?le.size:Math.abs(ae.size),width:x?Math.abs(ae.size):le.size};V&&(ve.options=H||a.resolveDataElementOptions(U,e[U].active?"active":i)),DI(ve,ve.options||e[U].options,Ae,d),a.updateElement(e[U],U,ve,i)}}_getStacks(e,t){let r=this,a=r._cachedMeta.iScale,u=a.getMatchingVisibleMetas(r._type),d=a.options.stacked,m=u.length,y=[],x,S;for(x=0;x<m;++x)if(S=u[x],!!S.controller.options.grouped){if(typeof t<"u"){let L=S.controller.getParsed(t)[S.controller._cachedMeta.vScale.axis];if(Mr(L)||isNaN(L))continue}if((d===!1||y.indexOf(S.stack)===-1||d===void 0&&S.stack===void 0)&&y.push(S.stack),S.index===e)break}return y.length||y.push(void 0),y}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,r){let i=this._getStacks(e,r),a=t!==void 0?i.indexOf(t):-1;return a===-1?i.length-1:a}_getRuler(){let e=this,t=e.options,r=e._cachedMeta,i=r.iScale,a=[],u,d;for(u=0,d=r.data.length;u<d;++u)a.push(i.getPixelForValue(e.getParsed(u)[i.axis],u));let m=t.barThickness;return{min:m||EI(i),pixels:a,start:i._startPixel,end:i._endPixel,stackCount:e._getStackCount(),scale:i,grouped:t.grouped,ratio:m?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(e){let t=this,{_cachedMeta:{vScale:r,_stacked:i},options:{base:a,minBarLength:u}}=t,d=a||0,m=t.getParsed(e),y=m._custom,x=v0(y),S=m[r.axis],L=0,H=i?t.applyStack(r,m,i):S,V,U;H!==S&&(L=H-S,H=S),x&&(S=y.barStart,H=y.barEnd-y.barStart,S!==0&&$s(S)!==$s(y.barEnd)&&(L=0),L+=S);let Z=!Mr(a)&&!x?a:L,ae=r.getPixelForValue(Z);if(t.chart.getDataVisibility(e)?V=r.getPixelForValue(L+H):V=ae,U=V-ae,Math.abs(U)<u&&(U=MI(U,r,d)*u,S===d&&(ae-=U/2),V=ae+U),ae===r.getPixelForValue(d)){let le=$s(U)*r.getLineWidthForValue(d)/2;ae+=le,U-=le}return{size:U,base:ae,head:V,center:V+U/2}}_calculateBarIndexPixels(e,t){let r=this,i=t.scale,a=r.options,u=a.skipNull,d=tr(a.maxBarThickness,1/0),m,y;if(t.grouped){let x=u?r._getStackCount(e):t.stackCount,S=a.barThickness==="flex"?SI(e,t,a,x):CI(e,t,a,x),L=r._getStackIndex(r.index,r._cachedMeta.stack,u?e:void 0);m=S.start+S.chunk*L+S.chunk/2,y=Math.min(d,S.chunk*S.ratio)}else m=i.getPixelForValue(r.getParsed(e)[i.axis],e),y=Math.min(d,t.min*t.ratio);return{base:m-y/2,head:m+y/2,center:m,size:y}}draw(){let e=this,t=e._cachedMeta,r=t.vScale,i=t.data,a=i.length,u=0;for(;u<a;++u)e.getParsed(u)[r.axis]!==null&&i[u].draw(e._ctx)}};$d.id="bar";$d.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};$d.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};var Gd=class extends Ja{initialize(){this.enableOptionSharing=!0,super.initialize()}parseObjectData(e,t,r,i){let{xScale:a,yScale:u}=e,{xAxisKey:d="x",yAxisKey:m="y"}=this._parsing,y=[],x,S,L;for(x=r,S=r+i;x<S;++x)L=t[x],y.push({x:a.parse(iu(L,d),x),y:u.parse(iu(L,m),x),_custom:L&&L.r&&+L.r});return y}getMaxOverflow(){let{data:e,_parsed:t}=this._cachedMeta,r=0;for(let i=e.length-1;i>=0;--i)r=Math.max(r,e[i].size()/2,t[i]._custom);return r>0&&r}getLabelAndValue(e){let t=this,r=t._cachedMeta,{xScale:i,yScale:a}=r,u=t.getParsed(e),d=i.getLabelForValue(u.x),m=a.getLabelForValue(u.y),y=u._custom;return{label:r.label,value:"("+d+", "+m+(y?", "+y:"")+")"}}update(e){let t=this,r=t._cachedMeta.data;t.updateElements(r,0,r.length,e)}updateElements(e,t,r,i){let a=this,u=i==="reset",{iScale:d,vScale:m}=a._cachedMeta,y=a.resolveDataElementOptions(t,i),x=a.getSharedOptions(y),S=a.includeOptions(i,x),L=d.axis,H=m.axis;for(let V=t;V<t+r;V++){let U=e[V],Z=!u&&a.getParsed(V),ae={},le=ae[L]=u?d.getPixelForDecimal(.5):d.getPixelForValue(Z[L]),Ae=ae[H]=u?m.getBasePixel():m.getPixelForValue(Z[H]);ae.skip=isNaN(le)||isNaN(Ae),S&&(ae.options=a.resolveDataElementOptions(V,U.active?"active":i),u&&(ae.options.radius=0)),a.updateElement(U,V,ae,i)}a.updateSharedOptions(x,i,y)}resolveDataElementOptions(e,t){let r=this.getParsed(e),i=super.resolveDataElementOptions(e,t);i.$shared&&(i=Object.assign({},i,{$shared:!1}));let a=i.radius;return t!=="active"&&(i.radius=0),i.radius+=tr(r&&r._custom,a),i}};Gd.id="bubble";Gd.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};Gd.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};function OI(n,e,t){let r=1,i=1,a=0,u=0;if(e<Qr){let d=n,m=d+e,y=Math.cos(d),x=Math.sin(d),S=Math.cos(m),L=Math.sin(m),H=(Ae,ve,b)=>qd(Ae,d,m,!0)?1:Math.max(ve,ve*t,b,b*t),V=(Ae,ve,b)=>qd(Ae,d,m,!0)?-1:Math.min(ve,ve*t,b,b*t),U=H(0,y,S),Z=H(qi,x,L),ae=V(Ti,y,S),le=V(Ti+qi,x,L);r=(U-ae)/2,i=(Z-le)/2,a=-(U+ae)/2,u=-(Z+le)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:u}}var Fc=class extends Ja{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){let r=this.getDataset().data,i=this._cachedMeta,a,u;for(a=e,u=e+t;a<u;++a)i._parsed[a]=+r[a]}_getRotation(){return Ps(this.options.rotation-90)}_getCircumference(){return Ps(this.options.circumference)}_getRotationExtents(){let e=Qr,t=-Qr,r=this;for(let i=0;i<r.chart.data.datasets.length;++i)if(r.chart.isDatasetVisible(i)){let a=r.chart.getDatasetMeta(i).controller,u=a._getRotation(),d=a._getCircumference();e=Math.min(e,u),t=Math.max(t,u+d)}return{rotation:e,circumference:t-e}}update(e){let t=this,r=t.chart,{chartArea:i}=r,a=t._cachedMeta,u=a.data,d=t.getMaxBorderWidth()+t.getMaxOffset(u)+t.options.spacing,m=Math.max((Math.min(i.width,i.height)-d)/2,0),y=Math.min(V_(t.options.cutout,m),1),x=t._getRingWeight(t.index),{circumference:S,rotation:L}=t._getRotationExtents(),{ratioX:H,ratioY:V,offsetX:U,offsetY:Z}=OI(L,S,y),ae=(i.width-d)/H,le=(i.height-d)/V,Ae=Math.max(Math.min(ae,le)/2,0),ve=Fp(t.options.radius,Ae),b=Math.max(ve*y,0),te=(ve-b)/t._getVisibleDatasetWeightTotal();t.offsetX=U*ve,t.offsetY=Z*ve,a.total=t.calculateTotal(),t.outerRadius=ve-te*t._getRingWeightOffset(t.index),t.innerRadius=Math.max(t.outerRadius-te*x,0),t.updateElements(u,0,u.length,e)}_circumference(e,t){let r=this,i=r.options,a=r._cachedMeta,u=r._getCircumference();return t&&i.animation.animateRotate||!this.chart.getDataVisibility(e)||a._parsed[e]===null||a.data[e].hidden?0:r.calculateCircumference(a._parsed[e]*u/Qr)}updateElements(e,t,r,i){let a=this,u=i==="reset",d=a.chart,m=d.chartArea,x=d.options.animation,S=(m.left+m.right)/2,L=(m.top+m.bottom)/2,H=u&&x.animateScale,V=H?0:a.innerRadius,U=H?0:a.outerRadius,Z=a.resolveDataElementOptions(t,i),ae=a.getSharedOptions(Z),le=a.includeOptions(i,ae),Ae=a._getRotation(),ve;for(ve=0;ve<t;++ve)Ae+=a._circumference(ve,u);for(ve=t;ve<t+r;++ve){let b=a._circumference(ve,u),te=e[ve],ye={x:S+a.offsetX,y:L+a.offsetY,startAngle:Ae,endAngle:Ae+b,circumference:b,outerRadius:U,innerRadius:V};le&&(ye.options=ae||a.resolveDataElementOptions(ve,te.active?"active":i)),Ae+=b,a.updateElement(te,ve,ye,i)}a.updateSharedOptions(ae,i,Z)}calculateTotal(){let e=this._cachedMeta,t=e.data,r=0,i;for(i=0;i<t.length;i++){let a=e._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!t[i].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(e){let t=this._cachedMeta.total;return t>0&&!isNaN(e)?Qr*(Math.abs(e)/t):0}getLabelAndValue(e){let t=this,r=t._cachedMeta,i=t.chart,a=i.data.labels||[],u=kf(r._parsed[e],i.options.locale);return{label:a[e]||"",value:u}}getMaxBorderWidth(e){let t=this,r=0,i=t.chart,a,u,d,m,y;if(!e){for(a=0,u=i.data.datasets.length;a<u;++a)if(i.isDatasetVisible(a)){d=i.getDatasetMeta(a),e=d.data,m=d.controller,m!==t&&m.configure();break}}if(!e)return 0;for(a=0,u=e.length;a<u;++a)y=m.resolveDataElementOptions(a),y.borderAlign!=="inner"&&(r=Math.max(r,y.borderWidth||0,y.hoverBorderWidth||0));return r}getMaxOffset(e){let t=0;for(let r=0,i=e.length;r<i;++r){let a=this.resolveDataElementOptions(r);t=Math.max(t,a.offset||0,a.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(t+=this._getRingWeight(r));return t}_getRingWeight(e){return Math.max(tr(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}};Fc.id="doughnut";Fc.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};Fc.descriptors={_scriptable:n=>n!=="spacing",_indexable:n=>n!=="spacing"};Fc.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(n){let e=n.data;if(e.labels.length&&e.datasets.length){let{labels:{pointStyle:t}}=n.legend.options;return e.labels.map((r,i)=>{let u=n.getDatasetMeta(0).controller.getStyle(i);return{text:r,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,lineWidth:u.borderWidth,pointStyle:t,hidden:!n.getDataVisibility(i),index:i}})}return[]}},onClick(n,e,t){t.chart.toggleDataVisibility(e.index),t.chart.update()}},tooltip:{callbacks:{title(){return""},label(n){let e=n.label,t=": "+n.formattedValue;return li(e)?(e=e.slice(),e[0]+=t):e+=t,e}}}}};var If=class extends Ja{initialize(){this.enableOptionSharing=!0,super.initialize()}update(e){let t=this,r=t._cachedMeta,{dataset:i,data:a=[],_dataset:u}=r,d=t.chart._animationsDisabled,{start:m,count:y}=II(r,a,d);t._drawStart=m,t._drawCount=y,NI(r)&&(m=0,y=a.length),i._datasetIndex=t.index,i._decimated=!!u._decimated,i.points=a;let x=t.resolveDatasetElementOptions(e);t.options.showLine||(x.borderWidth=0),x.segment=t.options.segment,t.updateElement(i,void 0,{animated:!d,options:x},e),t.updateElements(a,m,y,e)}updateElements(e,t,r,i){let a=this,u=i==="reset",{iScale:d,vScale:m,_stacked:y}=a._cachedMeta,x=a.resolveDataElementOptions(t,i),S=a.getSharedOptions(x),L=a.includeOptions(i,S),H=d.axis,V=m.axis,U=a.options.spanGaps,Z=Oc(U)?U:Number.POSITIVE_INFINITY,ae=a.chart._animationsDisabled||u||i==="none",le=t>0&&a.getParsed(t-1);for(let Ae=t;Ae<t+r;++Ae){let ve=e[Ae],b=a.getParsed(Ae),te=ae?ve:{},ye=Mr(b[V]),Oe=te[H]=d.getPixelForValue(b[H],Ae),De=te[V]=u||ye?m.getBasePixel():m.getPixelForValue(y?a.applyStack(m,b,y):b[V],Ae);te.skip=isNaN(Oe)||isNaN(De)||ye,te.stop=Ae>0&&b[H]-le[H]>Z,te.parsed=b,L&&(te.options=S||a.resolveDataElementOptions(Ae,ve.active?"active":i)),ae||a.updateElement(ve,Ae,te,i),le=b}a.updateSharedOptions(S,i,x)}getMaxOverflow(){let e=this,t=e._cachedMeta,r=t.dataset,i=r.options&&r.options.borderWidth||0,a=t.data||[];if(!a.length)return i;let u=a[0].size(e.resolveDataElementOptions(0)),d=a[a.length-1].size(e.resolveDataElementOptions(a.length-1));return Math.max(i,u,d)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}};If.id="line";If.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};If.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};function II(n,e,t){let r=e.length,i=0,a=r;if(n._sorted){let{iScale:u,_parsed:d}=n,m=u.axis,{min:y,max:x,minDefined:S,maxDefined:L}=u.getUserBounds();S&&(i=co(Math.min(kl(d,u.axis,y).lo,t?r:kl(e,m,u.getPixelForValue(y)).lo),0,r-1)),L?a=co(Math.max(kl(d,u.axis,x).hi+1,t?0:kl(e,m,u.getPixelForValue(x)).hi+1),i,r)-i:a=r-i}return{start:i,count:a}}function NI(n){let{xScale:e,yScale:t,_scaleRanges:r}=n,i={xmin:e.min,xmax:e.max,ymin:t.min,ymax:t.max};if(!r)return n._scaleRanges=i,!0;let a=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==t.min||r.ymax!==t.max;return Object.assign(r,i),a}var Kd=class extends Ja{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let t=this,r=t._cachedMeta,i=t.chart,a=i.data.labels||[],u=kf(r._parsed[e].r,i.options.locale);return{label:a[e]||"",value:u}}update(e){let t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}_updateRadius(){let e=this,t=e.chart,r=t.chartArea,i=t.options,a=Math.min(r.right-r.left,r.bottom-r.top),u=Math.max(a/2,0),d=Math.max(i.cutoutPercentage?u/100*i.cutoutPercentage:1,0),m=(u-d)/t.getVisibleDatasetCount();e.outerRadius=u-m*e.index,e.innerRadius=e.outerRadius-m}updateElements(e,t,r,i){let a=this,u=i==="reset",d=a.chart,m=a.getDataset(),x=d.options.animation,S=a._cachedMeta.rScale,L=S.xCenter,H=S.yCenter,V=S.getIndexAngle(0)-.5*Ti,U=V,Z,ae=360/a.countVisibleElements();for(Z=0;Z<t;++Z)U+=a._computeAngle(Z,i,ae);for(Z=t;Z<t+r;Z++){let le=e[Z],Ae=U,ve=U+a._computeAngle(Z,i,ae),b=d.getDataVisibility(Z)?S.getDistanceFromCenterForValue(m.data[Z]):0;U=ve,u&&(x.animateScale&&(b=0),x.animateRotate&&(Ae=ve=V));let te={x:L,y:H,innerRadius:0,outerRadius:b,startAngle:Ae,endAngle:ve,options:a.resolveDataElementOptions(Z,le.active?"active":i)};a.updateElement(le,Z,te,i)}}countVisibleElements(){let e=this.getDataset(),t=this._cachedMeta,r=0;return t.data.forEach((i,a)=>{!isNaN(e.data[a])&&this.chart.getDataVisibility(a)&&r++}),r}_computeAngle(e,t,r){return this.chart.getDataVisibility(e)?Ps(this.resolveDataElementOptions(e,t).angle||r):0}};Kd.id="polarArea";Kd.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};Kd.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(n){let e=n.data;if(e.labels.length&&e.datasets.length){let{labels:{pointStyle:t}}=n.legend.options;return e.labels.map((r,i)=>{let u=n.getDatasetMeta(0).controller.getStyle(i);return{text:r,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,lineWidth:u.borderWidth,pointStyle:t,hidden:!n.getDataVisibility(i),index:i}})}return[]}},onClick(n,e,t){t.chart.toggleDataVisibility(e.index),t.chart.update()}},tooltip:{callbacks:{title(){return""},label(n){return n.chart.data.labels[n.dataIndex]+": "+n.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};var om=class extends Fc{};om.id="pie";om.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};var Xd=class extends Ja{getLabelAndValue(e){let t=this,r=t._cachedMeta.vScale,i=t.getParsed(e);return{label:r.getLabels()[e],value:""+r.getLabelForValue(i[r.axis])}}update(e){let t=this,r=t._cachedMeta,i=r.dataset,a=r.data||[],u=r.iScale.getLabels();if(i.points=a,e!=="resize"){let d=t.resolveDatasetElementOptions(e);t.options.showLine||(d.borderWidth=0);let m={_loop:!0,_fullLoop:u.length===a.length,options:d};t.updateElement(i,void 0,m,e)}t.updateElements(a,0,a.length,e)}updateElements(e,t,r,i){let a=this,u=a.getDataset(),d=a._cachedMeta.rScale,m=i==="reset";for(let y=t;y<t+r;y++){let x=e[y],S=a.resolveDataElementOptions(y,x.active?"active":i),L=d.getPointPositionForValue(y,u.data[y]),H=m?d.xCenter:L.x,V=m?d.yCenter:L.y,U={x:H,y:V,angle:L.angle,skip:isNaN(H)||isNaN(V),options:S};a.updateElement(x,y,U,i)}}};Xd.id="radar";Xd.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};Xd.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};var Qd=class extends If{};Qd.id="scatter";Qd.defaults={showLine:!1,fill:!1};Qd.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(n){return"("+n.label+", "+n.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var PI=Object.freeze({__proto__:null,BarController:$d,BubbleController:Gd,DoughnutController:Fc,LineController:If,PolarAreaController:Kd,PieController:om,RadarController:Xd,ScatterController:Qd});function Of(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var am=class{constructor(e){this.options=e||{}}formats(){return Of()}parse(e,t){return Of()}format(e,t){return Of()}add(e,t,r){return Of()}diff(e,t,r){return Of()}startOf(e,t,r){return Of()}endOf(e,t){return Of()}};am.override=function(n){Object.assign(am.prototype,n)};var F0={_date:am};function nm(n,e){return"native"in n?{x:n.x,y:n.y}:Tv(n,e)}function LI(n,e){let t=n.getSortedVisibleDatasetMetas(),r,i,a;for(let u=0,d=t.length;u<d;++u){({index:r,data:i}=t[u]);for(let m=0,y=i.length;m<y;++m)a=i[m],a.skip||e(a,r,m)}}function RI(n,e,t,r){let{controller:i,data:a,_sorted:u}=n,d=i._cachedMeta.iScale;if(d&&e===d.axis&&u&&a.length){let m=d._reversePixels?o0:kl;if(r){if(i._sharedOptions){let y=a[0],x=typeof y.getRange=="function"&&y.getRange(e);if(x){let S=m(a,e,t-x),L=m(a,e,t+x);return{lo:S.lo,hi:L.hi}}}}else return m(a,e,t)}return{lo:0,hi:a.length-1}}function uC(n,e,t,r,i){let a=n.getSortedVisibleDatasetMetas(),u=t[e];for(let d=0,m=a.length;d<m;++d){let{index:y,data:x}=a[d],{lo:S,hi:L}=RI(a[d],e,u,i);for(let H=S;H<=L;++H){let V=x[H];V.skip||r(V,y,H)}}}function FI(n){let e=n.indexOf("x")!==-1,t=n.indexOf("y")!==-1;return function(r,i){let a=e?Math.abs(r.x-i.x):0,u=t?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(u,2))}}function y0(n,e,t,r){let i=[];return zu(e,n.chartArea,n._minPadding)&&uC(n,t,e,function(u,d,m){u.inRange(e.x,e.y,r)&&i.push({element:u,datasetIndex:d,index:m})},!0),i}function b0(n,e,t,r,i){let a=FI(t),u=Number.POSITIVE_INFINITY,d=[];return zu(e,n.chartArea,n._minPadding)&&uC(n,t,e,function(y,x,S){if(r&&!y.inRange(e.x,e.y,i))return;let L=y.getCenterPoint(i);if(!zu(L,n.chartArea,n._minPadding)&&!y.inRange(e.x,e.y,i))return;let H=a(e,L);H<u?(d=[{element:y,datasetIndex:x,index:S}],u=H):H===u&&d.push({element:y,datasetIndex:x,index:S})}),d}function AE(n,e,t,r){let i=nm(e,n),a=[],u=t.axis,d=u==="x"?"inXRange":"inYRange",m=!1;return LI(n,(y,x,S)=>{y[d](i[u],r)&&a.push({element:y,datasetIndex:x,index:S}),y.inRange(i.x,i.y,r)&&(m=!0)}),t.intersect&&!m?[]:a}var BI={modes:{index(n,e,t,r){let i=nm(e,n),a=t.axis||"x",u=t.intersect?y0(n,i,a,r):b0(n,i,a,!1,r),d=[];return u.length?(n.getSortedVisibleDatasetMetas().forEach(m=>{let y=u[0].index,x=m.data[y];x&&!x.skip&&d.push({element:x,datasetIndex:m.index,index:y})}),d):[]},dataset(n,e,t,r){let i=nm(e,n),a=t.axis||"xy",u=t.intersect?y0(n,i,a,r):b0(n,i,a,!1,r);if(u.length>0){let d=u[0].datasetIndex,m=n.getDatasetMeta(d).data;u=[];for(let y=0;y<m.length;++y)u.push({element:m[y],datasetIndex:d,index:y})}return u},point(n,e,t,r){let i=nm(e,n),a=t.axis||"xy";return y0(n,i,a,r)},nearest(n,e,t,r){let i=nm(e,n),a=t.axis||"xy";return b0(n,i,a,t.intersect,r)},x(n,e,t,r){return t.axis="x",AE(n,e,t,r)},y(n,e,t,r){return t.axis="y",AE(n,e,t,r)}}},cC=["left","top","right","bottom"];function Jp(n,e){return n.filter(t=>t.pos===e)}function DE(n,e){return n.filter(t=>cC.indexOf(t.pos)===-1&&t.box.axis===e)}function Zp(n,e){return n.sort((t,r)=>{let i=e?r:t,a=e?t:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function HI(n){let e=[],t,r,i,a,u,d;for(t=0,r=(n||[]).length;t<r;++t)i=n[t],{position:a,options:{stack:u,stackWeight:d=1}}=i,e.push({index:t,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:u&&a+u,stackWeight:d});return e}function qI(n){let e={};for(let t of n){let{stack:r,pos:i,stackWeight:a}=t;if(!r||!cC.includes(i))continue;let u=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});u.count++,u.weight+=a}return e}function zI(n,e){let t=qI(n),{vBoxMaxWidth:r,hBoxMaxHeight:i}=e,a,u,d;for(a=0,u=n.length;a<u;++a){d=n[a];let{fullSize:m}=d.box,y=t[d.stack],x=y&&d.stackWeight/y.weight;d.horizontal?(d.width=x?x*r:m&&e.availableWidth,d.height=i):(d.width=r,d.height=x?x*i:m&&e.availableHeight)}return t}function WI(n){let e=HI(n),t=Zp(e.filter(y=>y.box.fullSize),!0),r=Zp(Jp(e,"left"),!0),i=Zp(Jp(e,"right")),a=Zp(Jp(e,"top"),!0),u=Zp(Jp(e,"bottom")),d=DE(e,"x"),m=DE(e,"y");return{fullSize:t,leftAndTop:r.concat(a),rightAndBottom:i.concat(m).concat(u).concat(d),chartArea:Jp(e,"chartArea"),vertical:r.concat(i).concat(m),horizontal:a.concat(u).concat(d)}}function kE(n,e,t,r){return Math.max(n[t],e[t])+Math.max(n[r],e[r])}function fC(n,e){n.top=Math.max(n.top,e.top),n.left=Math.max(n.left,e.left),n.bottom=Math.max(n.bottom,e.bottom),n.right=Math.max(n.right,e.right)}function jI(n,e,t,r){let{pos:i,box:a}=t,u=n.maxPadding;if(!Cr(i)){t.size&&(n[i]-=t.size);let S=r[t.stack]||{size:0,count:1};S.size=Math.max(S.size,t.horizontal?a.height:a.width),t.size=S.size/S.count,n[i]+=t.size}a.getPadding&&fC(u,a.getPadding());let d=Math.max(0,e.outerWidth-kE(u,n,"left","right")),m=Math.max(0,e.outerHeight-kE(u,n,"top","bottom")),y=d!==n.w,x=m!==n.h;return n.w=d,n.h=m,t.horizontal?{same:y,other:x}:{same:x,other:y}}function UI(n){let e=n.maxPadding;function t(r){let i=Math.max(e[r]-n[r],0);return n[r]+=i,i}n.y+=t("top"),n.x+=t("left"),t("right"),t("bottom")}function VI(n,e){let t=e.maxPadding;function r(i){let a={left:0,top:0,right:0,bottom:0};return i.forEach(u=>{a[u]=Math.max(e[u],t[u])}),a}return r(n?["left","right"]:["top","bottom"])}function rm(n,e,t,r){let i=[],a,u,d,m,y,x;for(a=0,u=n.length,y=0;a<u;++a){d=n[a],m=d.box,m.update(d.width||e.w,d.height||e.h,VI(d.horizontal,e));let{same:S,other:L}=jI(e,t,d,r);y|=S&&i.length,x=x||L,m.fullSize||i.push(d)}return y&&rm(i,e,t,r)||x}function Nv(n,e,t,r,i){n.top=t,n.left=e,n.right=e+r,n.bottom=t+i,n.width=r,n.height=i}function OE(n,e,t,r){let i=t.padding,{x:a,y:u}=e;for(let d of n){let m=d.box,y=r[d.stack]||{count:1,placed:0,weight:1},x=d.stackWeight/y.weight||1;if(d.horizontal){let S=e.w*x,L=y.size||m.height;na(y.start)&&(u=y.start),m.fullSize?Nv(m,i.left,u,t.outerWidth-i.right-i.left,L):Nv(m,e.left+y.placed,u,S,L),y.start=u,y.placed+=S,u=m.bottom}else{let S=e.h*x,L=y.size||m.width;na(y.start)&&(a=y.start),m.fullSize?Nv(m,a,i.top,L,t.outerHeight-i.bottom-i.top):Nv(m,a,e.top+y.placed,L,S),y.start=a,y.placed+=S,a=m.right}}e.x=a,e.y=u}mr.set("layout",{padding:{top:0,right:0,bottom:0,left:0}});var ra={addBox(n,e){n.boxes||(n.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},n.boxes.push(e)},removeBox(n,e){let t=n.boxes?n.boxes.indexOf(e):-1;t!==-1&&n.boxes.splice(t,1)},configure(n,e,t){e.fullSize=t.fullSize,e.position=t.position,e.weight=t.weight},update(n,e,t,r){if(!n)return;let i=jo(n.options.layout.padding),a=Math.max(e-i.width,0),u=Math.max(t-i.height,0),d=WI(n.boxes),m=d.vertical,y=d.horizontal;zr(n.boxes,U=>{typeof U.beforeLayout=="function"&&U.beforeLayout()});let x=m.reduce((U,Z)=>Z.box.options&&Z.box.options.display===!1?U:U+1,0)||1,S=Object.freeze({outerWidth:e,outerHeight:t,padding:i,availableWidth:a,availableHeight:u,vBoxMaxWidth:a/2/x,hBoxMaxHeight:u/2}),L=Object.assign({},i);fC(L,jo(r));let H=Object.assign({maxPadding:L,w:a,h:u,x:i.left,y:i.top},i),V=zI(m.concat(y),S);rm(d.fullSize,H,S,V),rm(m,H,S,V),rm(y,H,S,V)&&rm(m,H,S,V),UI(H),OE(d.leftAndTop,H,S,V),H.x+=H.w,H.y+=H.h,OE(d.rightAndBottom,H,S,V),n.chartArea={left:H.left,top:H.top,right:H.left+H.w,bottom:H.top+H.h,height:H.h,width:H.w},zr(d.chartArea,U=>{let Z=U.box;Object.assign(Z,n.chartArea),Z.update(H.w,H.h)})}},Wv=class{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,r){}removeEventListener(e,t,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,r,i){return t=Math.max(0,t||e.width),r=r||e.height,{width:t,height:Math.max(0,i?Math.floor(t/i):r)}}isAttached(e){return!0}},T0=class extends Wv{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}},qv="$chartjs",YI={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},IE=n=>n===null||n==="";function $I(n,e){let t=n.style,r=n.getAttribute("height"),i=n.getAttribute("width");if(n[qv]={initial:{height:r,width:i,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",IE(i)){let a=Av(n,"width");a!==void 0&&(n.width=a)}if(IE(r))if(n.style.height==="")n.height=n.width/(e||2);else{let a=Av(n,"height");a!==void 0&&(n.height=a)}return n}var dC=f0?{passive:!0}:!1;function GI(n,e,t){n.addEventListener(e,t,dC)}function KI(n,e,t){n.canvas.removeEventListener(e,t,dC)}function XI(n,e){let t=YI[n.type]||n.type,{x:r,y:i}=Tv(n,e);return{type:t,chart:e,native:n,x:r!==void 0?r:null,y:i!==void 0?i:null}}function QI(n,e,t){let r=n.canvas,a=r&&Nc(r)||r,u=new MutationObserver(d=>{let m=Nc(a);d.forEach(y=>{for(let x=0;x<y.addedNodes.length;x++){let S=y.addedNodes[x];(S===a||S===m)&&t(y.target)}})});return u.observe(document,{childList:!0,subtree:!0}),u}function JI(n,e,t){let r=n.canvas,i=r&&Nc(r);if(!i)return;let a=new MutationObserver(u=>{u.forEach(d=>{for(let m=0;m<d.removedNodes.length;m++)if(d.removedNodes[m]===r){t();break}})});return a.observe(i,{childList:!0}),a}var sm=new Map,NE=0;function hC(){let n=window.devicePixelRatio;n!==NE&&(NE=n,sm.forEach((e,t)=>{t.currentDevicePixelRatio!==n&&e()}))}function ZI(n,e){sm.size||window.addEventListener("resize",hC),sm.set(n,e)}function eN(n){sm.delete(n),sm.size||window.removeEventListener("resize",hC)}function tN(n,e,t){let r=n.canvas,i=r&&Nc(r);if(!i)return;let a=hv((d,m)=>{let y=i.clientWidth;t(d,m),y<i.clientWidth&&t()},window),u=new ResizeObserver(d=>{let m=d[0],y=m.contentRect.width,x=m.contentRect.height;y===0&&x===0||a(y,x)});return u.observe(i),ZI(n,a),u}function _0(n,e,t){t&&t.disconnect(),e==="resize"&&eN(n)}function nN(n,e,t){let r=n.canvas,i=hv(a=>{n.ctx!==null&&t(XI(a,n))},n,a=>{let u=a[0];return[u,u.offsetX,u.offsetY]});return GI(r,e,i),i}var M0=class extends Wv{acquireContext(e,t){let r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?($I(e,t),r):null}releaseContext(e){let t=e.canvas;if(!t[qv])return!1;let r=t[qv].initial;["height","width"].forEach(a=>{let u=r[a];Mr(u)?t.removeAttribute(a):t.setAttribute(a,u)});let i=r.style||{};return Object.keys(i).forEach(a=>{t.style[a]=i[a]}),t.width=t.width,delete t[qv],!0}addEventListener(e,t,r){this.removeEventListener(e,t);let i=e.$proxies||(e.$proxies={}),u={attach:QI,detach:JI,resize:tN}[t]||nN;i[t]=u(e,t,r)}removeEventListener(e,t){let r=e.$proxies||(e.$proxies={}),i=r[t];if(!i)return;({attach:_0,detach:_0,resize:_0}[t]||KI)(e,t,i),r[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,r,i){return c0(e,t,r,i)}isAttached(e){let t=Nc(e);return!!(t&&t.isConnected)}};function rN(n){return!Cv()||typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas?T0:M0}var Ma=class{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(e){let{x:t,y:r}=this.getProps(["x","y"],e);return{x:t,y:r}}hasValue(){return Oc(this.x)&&Oc(this.y)}getProps(e,t){let r=this,i=this.$animations;if(!t||!i)return r;let a={};return e.forEach(u=>{a[u]=i[u]&&i[u].active()?i[u]._to:r[u]}),a}};Ma.defaults={};Ma.defaultRoutes=void 0;var pC={values(n){return li(n)?n:""+n},numeric(n,e,t){if(n===0)return"0";let r=this.chart.options.locale,i,a=n;if(t.length>1){let y=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(y<1e-4||y>1e15)&&(i="scientific"),a=iN(n,t)}let u=Xa(Math.abs(a)),d=Math.max(Math.min(-1*Math.floor(u),20),0),m={notation:i,minimumFractionDigits:d,maximumFractionDigits:d};return Object.assign(m,this.options.ticks.format),kf(n,r,m)},logarithmic(n,e,t){if(n===0)return"0";let r=n/Math.pow(10,Math.floor(Xa(n)));return r===1||r===2||r===5?pC.numeric.call(this,n,e,t):""}};function iN(n,e){let t=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(t)>=1&&n!==Math.floor(n)&&(t=n-Math.floor(n)),t}var Yv={formatters:pC};mr.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,e)=>e.lineWidth,tickColor:(n,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Yv.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}});mr.route("scale.ticks","color","","color");mr.route("scale.grid","color","","borderColor");mr.route("scale.grid","borderColor","","borderColor");mr.route("scale.title","color","","color");mr.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:n=>n!=="borderDash"&&n!=="tickBorderDash"});mr.describe("scales",{_fallback:"scale"});mr.describe("scale.ticks",{_scriptable:n=>n!=="backdropPadding"&&n!=="callback",_indexable:n=>n!=="backdropPadding"});function oN(n,e){let t=n.options.ticks,r=t.maxTicksLimit||aN(n),i=t.major.enabled?lN(e):[],a=i.length,u=i[0],d=i[a-1],m=[];if(a>r)return uN(e,m,i,a/r),m;let y=sN(i,e,r);if(a>0){let x,S,L=a>1?Math.round((d-u)/(a-1)):null;for(Pv(e,m,y,Mr(L)?0:u-L,u),x=0,S=a-1;x<S;x++)Pv(e,m,y,i[x],i[x+1]);return Pv(e,m,y,d,Mr(L)?e.length:d+L),m}return Pv(e,m,y),m}function aN(n){let e=n.options.offset,t=n._tickSize(),r=n._length/t+(e?0:1),i=n._maxLength/t;return Math.floor(Math.min(r,i))}function sN(n,e,t){let r=cN(n),i=e.length/t;if(!r)return Math.max(i,1);let a=$_(r);for(let u=0,d=a.length-1;u<d;u++){let m=a[u];if(m>i)return m}return Math.max(i,1)}function lN(n){let e=[],t,r;for(t=0,r=n.length;t<r;t++)n[t].major&&e.push(t);return e}function uN(n,e,t,r){let i=0,a=t[0],u;for(r=Math.ceil(r),u=0;u<n.length;u++)u===a&&(e.push(n[u]),i++,a=t[i*r])}function Pv(n,e,t,r,i){let a=tr(r,0),u=Math.min(tr(i,n.length),n.length),d=0,m,y,x;for(t=Math.ceil(t),i&&(m=i-r,t=m/Math.floor(m/t)),x=a;x<0;)d++,x=Math.round(a+d*t);for(y=Math.max(a,0);y<u;y++)y===x&&(e.push(n[y]),d++,x=Math.round(a+d*t))}function cN(n){let e=n.length,t,r;if(e<2)return!1;for(r=n[0],t=1;t<e;++t)if(n[t]-n[t-1]!==r)return!1;return r}var fN=n=>n==="left"?"right":n==="right"?"left":n,PE=(n,e,t)=>e==="top"||e==="left"?n[e]+t:n[e]-t;function LE(n,e){let t=[],r=n.length/e,i=n.length,a=0;for(;a<i;a+=r)t.push(n[Math.floor(a)]);return t}function dN(n,e,t){let r=n.ticks.length,i=Math.min(e,r-1),a=n._startPixel,u=n._endPixel,d=1e-6,m=n.getPixelForTick(i),y;if(!(t&&(r===1?y=Math.max(m-a,u-m):e===0?y=(n.getPixelForTick(1)-m)/2:y=(m-n.getPixelForTick(i-1))/2,m+=i<e?y:-y,m<a-d||m>u+d)))return m}function hN(n,e){zr(n,t=>{let r=t.gc,i=r.length/2,a;if(i>e){for(a=0;a<i;++a)delete t.data[r[a]];r.splice(0,i)}})}function em(n){return n.drawTicks?n.tickLength:0}function RE(n,e){if(!n.display)return 0;let t=Mi(n.font,e),r=jo(n.padding);return(li(n.text)?n.text.length:1)*t.lineHeight+r.height}function pN(n,e){return Object.assign(Object.create(n),{scale:e,type:"scale"})}function mN(n,e,t){return Object.assign(Object.create(n),{tick:t,index:e,type:"tick"})}function gN(n,e,t){let r=Wp(n);return(t&&e!=="right"||!t&&e==="right")&&(r=fN(r)),r}function vN(n,e,t,r){let{top:i,left:a,bottom:u,right:d,chart:m}=n,{chartArea:y,scales:x}=m,S=0,L,H,V,U=u-i,Z=d-a;if(n.isHorizontal()){if(H=Po(r,a,d),Cr(t)){let ae=Object.keys(t)[0],le=t[ae];V=x[ae].getPixelForValue(le)+U-e}else t==="center"?V=(y.bottom+y.top)/2+U-e:V=PE(n,t,e);L=d-a}else{if(Cr(t)){let ae=Object.keys(t)[0],le=t[ae];H=x[ae].getPixelForValue(le)-Z+e}else t==="center"?H=(y.left+y.right)/2-Z+e:H=PE(n,t,e);V=Po(r,u,i),S=t==="left"?-qi:qi}return{titleX:H,titleY:V,maxWidth:L,rotation:S}}var Yu=class extends Ma{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){let t=this;t.options=e.setContext(t.getContext()),t.axis=e.axis,t._userMin=t.parse(e.min),t._userMax=t.parse(e.max),t._suggestedMin=t.parse(e.suggestedMin),t._suggestedMax=t.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:r,_suggestedMax:i}=this;return e=Ka(e,Number.POSITIVE_INFINITY),t=Ka(t,Number.NEGATIVE_INFINITY),r=Ka(r,Number.POSITIVE_INFINITY),i=Ka(i,Number.NEGATIVE_INFINITY),{min:Ka(e,r),max:Ka(t,i),minDefined:zi(e),maxDefined:zi(t)}}getMinMax(e){let t=this,{min:r,max:i,minDefined:a,maxDefined:u}=t.getUserBounds(),d;if(a&&u)return{min:r,max:i};let m=t.getMatchingVisibleMetas();for(let y=0,x=m.length;y<x;++y)d=m[y].controller.getMinMax(t,e),a||(r=Math.min(r,d.min)),u||(i=Math.max(i,d.max));return{min:Ka(r,Ka(i,r)),max:Ka(i,Ka(r,i))}}getPadding(){let e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ui(this.options.beforeUpdate,[this])}update(e,t,r){let i=this,a=i.options.ticks,u=a.sampleSize;i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),i.ticks=null,i._labelSizes=null,i._gridLineItems=null,i._labelItems=null,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i._maxLength=i.isHorizontal()?i.width+r.left+r.right:i.height+r.top+r.bottom,i._dataLimitsCached||(i.beforeDataLimits(),i.determineDataLimits(),i.afterDataLimits(),i._range=i0(i,i.options.grace),i._dataLimitsCached=!0),i.beforeBuildTicks(),i.ticks=i.buildTicks()||[],i.afterBuildTicks();let d=u<i.ticks.length;i._convertTicksToLabels(d?LE(i.ticks,u):i.ticks),i.configure(),i.beforeCalculateLabelRotation(),i.calculateLabelRotation(),i.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(i.ticks=oN(i,i.ticks),i._labelSizes=null),d&&i._convertTicksToLabels(i.ticks),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate()}configure(){let e=this,t=e.options.reverse,r,i;e.isHorizontal()?(r=e.left,i=e.right):(r=e.top,i=e.bottom,t=!t),e._startPixel=r,e._endPixel=i,e._reversePixels=t,e._length=i-r,e._alignToPixels=e.options.alignToPixels}afterUpdate(){ui(this.options.afterUpdate,[this])}beforeSetDimensions(){ui(this.options.beforeSetDimensions,[this])}setDimensions(){let e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0}afterSetDimensions(){ui(this.options.afterSetDimensions,[this])}_callHooks(e){let t=this;t.chart.notifyPlugins(e,t.getContext()),ui(t.options[e],[t])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ui(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){let t=this,r=t.options.ticks,i,a,u;for(i=0,a=e.length;i<a;i++)u=e[i],u.label=ui(r.callback,[u.value,i,e],t)}afterTickToLabelConversion(){ui(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ui(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let e=this,t=e.options,r=t.ticks,i=e.ticks.length,a=r.minRotation||0,u=r.maxRotation,d=a,m,y,x;if(!e._isVisible()||!r.display||a>=u||i<=1||!e.isHorizontal()){e.labelRotation=a;return}let S=e._getLabelSizes(),L=S.widest.width,H=S.highest.height,V=co(e.chart.width-L,0,e.maxWidth);m=t.offset?e.maxWidth/i:V/(i-1),L+6>m&&(m=V/(i-(t.offset?.5:1)),y=e.maxHeight-em(t.grid)-r.padding-RE(t.title,e.chart.options.font),x=Math.sqrt(L*L+H*H),d=Up(Math.min(Math.asin(co((S.highest.height+6)/m,-1,1)),Math.asin(co(y/x,-1,1))-Math.asin(co(H/x,-1,1)))),d=Math.max(a,Math.min(u,d))),e.labelRotation=d}afterCalculateLabelRotation(){ui(this.options.afterCalculateLabelRotation,[this])}beforeFit(){ui(this.options.beforeFit,[this])}fit(){let e=this,t={width:0,height:0},{chart:r,options:{ticks:i,title:a,grid:u}}=e,d=e._isVisible(),m=e.isHorizontal();if(d){let y=RE(a,r.options.font);if(m?(t.width=e.maxWidth,t.height=em(u)+y):(t.height=e.maxHeight,t.width=em(u)+y),i.display&&e.ticks.length){let{first:x,last:S,widest:L,highest:H}=e._getLabelSizes(),V=i.padding*2,U=Ps(e.labelRotation),Z=Math.cos(U),ae=Math.sin(U);if(m){let le=i.mirror?0:ae*L.width+Z*H.height;t.height=Math.min(e.maxHeight,t.height+le+V)}else{let le=i.mirror?0:Z*L.width+ae*H.height;t.width=Math.min(e.maxWidth,t.width+le+V)}e._calculatePadding(x,S,ae,Z)}}e._handleMargins(),m?(e.width=e._length=r.width-e._margins.left-e._margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=r.height-e._margins.top-e._margins.bottom)}_calculatePadding(e,t,r,i){let a=this,{ticks:{align:u,padding:d},position:m}=a.options,y=a.labelRotation!==0,x=m!=="top"&&a.axis==="x";if(a.isHorizontal()){let S=a.getPixelForTick(0)-a.left,L=a.right-a.getPixelForTick(a.ticks.length-1),H=0,V=0;y?x?(H=i*e.width,V=r*t.height):(H=r*e.height,V=i*t.width):u==="start"?V=t.width:u==="end"?H=e.width:(H=e.width/2,V=t.width/2),a.paddingLeft=Math.max((H-S+d)*a.width/(a.width-S),0),a.paddingRight=Math.max((V-L+d)*a.width/(a.width-L),0)}else{let S=t.height/2,L=e.height/2;u==="start"?(S=0,L=e.height):u==="end"&&(S=t.height,L=0),a.paddingTop=S+d,a.paddingBottom=L+d}}_handleMargins(){let e=this;e._margins&&(e._margins.left=Math.max(e.paddingLeft,e._margins.left),e._margins.top=Math.max(e.paddingTop,e._margins.top),e._margins.right=Math.max(e.paddingRight,e._margins.right),e._margins.bottom=Math.max(e.paddingBottom,e._margins.bottom))}afterFit(){ui(this.options.afterFit,[this])}isHorizontal(){let{axis:e,position:t}=this.options;return t==="top"||t==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t=this;t.beforeTickToLabelConversion(),t.generateTickLabels(e);let r,i;for(r=0,i=e.length;r<i;r++)Mr(e[r].label)&&(e.splice(r,1),i--,r--);t.afterTickToLabelConversion()}_getLabelSizes(){let e=this,t=e._labelSizes;if(!t){let r=e.options.ticks.sampleSize,i=e.ticks;r<i.length&&(i=LE(i,r)),e._labelSizes=t=e._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(e,t){let{ctx:r,_longestTextCache:i}=this,a=[],u=[],d=0,m=0,y,x,S,L,H,V,U,Z,ae,le,Ae;for(y=0;y<t;++y){if(L=e[y].label,H=this._resolveTickFontOptions(y),r.font=V=H.string,U=i[V]=i[V]||{data:{},gc:[]},Z=H.lineHeight,ae=le=0,!Mr(L)&&!li(L))ae=Fd(r,U.data,U.gc,ae,L),le=Z;else if(li(L))for(x=0,S=L.length;x<S;++x)Ae=L[x],!Mr(Ae)&&!li(Ae)&&(ae=Fd(r,U.data,U.gc,ae,Ae),le+=Z);a.push(ae),u.push(le),d=Math.max(ae,d),m=Math.max(le,m)}hN(i,t);let ve=a.indexOf(d),b=u.indexOf(m),te=ye=>({width:a[ye]||0,height:u[ye]||0});return{first:te(0),last:te(t-1),widest:te(ve),highest:te(b),widths:a,heights:u}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){let t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){let t=this;t._reversePixels&&(e=1-e);let r=t._startPixel+e*t._length;return X_(t._alignToPixels?Wu(t.chart,r,0):r)}getDecimalForPixel(e){let t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){let t=this,r=t.ticks||[];if(e>=0&&e<r.length){let i=r[e];return i.$context||(i.$context=mN(t.getContext(),e,i))}return t.$context||(t.$context=pN(t.chart.getContext(),t))}_tickSize(){let e=this,t=e.options.ticks,r=Ps(e.labelRotation),i=Math.abs(Math.cos(r)),a=Math.abs(Math.sin(r)),u=e._getLabelSizes(),d=t.autoSkipPadding||0,m=u?u.widest.width+d:0,y=u?u.highest.height+d:0;return e.isHorizontal()?y*i>m*a?m/i:y/a:y*a<m*i?y/i:m/a}_isVisible(){let e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){let t=this,r=t.axis,i=t.chart,a=t.options,{grid:u,position:d}=a,m=u.offset,y=t.isHorizontal(),S=t.ticks.length+(m?1:0),L=em(u),H=[],V=u.setContext(t.getContext()),U=V.drawBorder?V.borderWidth:0,Z=U/2,ae=function(At){return Wu(i,At,U)},le,Ae,ve,b,te,ye,Oe,De,lt,ct,Dt,Mt;if(d==="top")le=ae(t.bottom),ye=t.bottom-L,De=le-Z,ct=ae(e.top)+Z,Mt=e.bottom;else if(d==="bottom")le=ae(t.top),ct=e.top,Mt=ae(e.bottom)-Z,ye=le+Z,De=t.top+L;else if(d==="left")le=ae(t.right),te=t.right-L,Oe=le-Z,lt=ae(e.left)+Z,Dt=e.right;else if(d==="right")le=ae(t.left),lt=e.left,Dt=ae(e.right)-Z,te=le+Z,Oe=t.left+L;else if(r==="x"){if(d==="center")le=ae((e.top+e.bottom)/2+.5);else if(Cr(d)){let At=Object.keys(d)[0],tn=d[At];le=ae(t.chart.scales[At].getPixelForValue(tn))}ct=e.top,Mt=e.bottom,ye=le+Z,De=ye+L}else if(r==="y"){if(d==="center")le=ae((e.left+e.right)/2);else if(Cr(d)){let At=Object.keys(d)[0],tn=d[At];le=ae(t.chart.scales[At].getPixelForValue(tn))}te=le-Z,Oe=te-L,lt=e.left,Dt=e.right}let en=tr(a.ticks.maxTicksLimit,S),Yt=Math.max(1,Math.ceil(S/en));for(Ae=0;Ae<S;Ae+=Yt){let At=u.setContext(t.getContext(Ae)),tn=At.lineWidth,In=At.color,Cn=u.borderDash||[],Vn=At.borderDashOffset,rr=At.tickWidth,ur=At.tickColor,yt=At.tickBorderDash||[],Yn=At.tickBorderDashOffset;ve=dN(t,Ae,m),ve!==void 0&&(b=Wu(i,ve,tn),y?te=Oe=lt=Dt=b:ye=De=ct=Mt=b,H.push({tx1:te,ty1:ye,tx2:Oe,ty2:De,x1:lt,y1:ct,x2:Dt,y2:Mt,width:tn,color:In,borderDash:Cn,borderDashOffset:Vn,tickWidth:rr,tickColor:ur,tickBorderDash:yt,tickBorderDashOffset:Yn}))}return t._ticksLength=S,t._borderValue=le,H}_computeLabelItems(e){let t=this,r=t.axis,i=t.options,{position:a,ticks:u}=i,d=t.isHorizontal(),m=t.ticks,{align:y,crossAlign:x,padding:S,mirror:L}=u,H=em(i.grid),V=H+S,U=L?-S:V,Z=-Ps(t.labelRotation),ae=[],le,Ae,ve,b,te,ye,Oe,De,lt,ct,Dt,Mt,en="middle";if(a==="top")ye=t.bottom-U,Oe=t._getXAxisLabelAlignment();else if(a==="bottom")ye=t.top+U,Oe=t._getXAxisLabelAlignment();else if(a==="left"){let At=t._getYAxisLabelAlignment(H);Oe=At.textAlign,te=At.x}else if(a==="right"){let At=t._getYAxisLabelAlignment(H);Oe=At.textAlign,te=At.x}else if(r==="x"){if(a==="center")ye=(e.top+e.bottom)/2+V;else if(Cr(a)){let At=Object.keys(a)[0],tn=a[At];ye=t.chart.scales[At].getPixelForValue(tn)+V}Oe=t._getXAxisLabelAlignment()}else if(r==="y"){if(a==="center")te=(e.left+e.right)/2-V;else if(Cr(a)){let At=Object.keys(a)[0],tn=a[At];te=t.chart.scales[At].getPixelForValue(tn)}Oe=t._getYAxisLabelAlignment(H).textAlign}r==="y"&&(y==="start"?en="top":y==="end"&&(en="bottom"));let Yt=t._getLabelSizes();for(le=0,Ae=m.length;le<Ae;++le){ve=m[le],b=ve.label;let At=u.setContext(t.getContext(le));De=t.getPixelForTick(le)+u.labelOffset,lt=t._resolveTickFontOptions(le),ct=lt.lineHeight,Dt=li(b)?b.length:1;let tn=Dt/2,In=At.color,Cn=At.textStrokeColor,Vn=At.textStrokeWidth;d?(te=De,a==="top"?x==="near"||Z!==0?Mt=-Dt*ct+ct/2:x==="center"?Mt=-Yt.highest.height/2-tn*ct+ct:Mt=-Yt.highest.height+ct/2:x==="near"||Z!==0?Mt=ct/2:x==="center"?Mt=Yt.highest.height/2-tn*ct:Mt=Yt.highest.height-Dt*ct,L&&(Mt*=-1)):(ye=De,Mt=(1-Dt)*ct/2);let rr;if(At.showLabelBackdrop){let ur=jo(At.backdropPadding),yt=Yt.heights[le],Yn=Yt.widths[le],Vr=ye+Mt-ur.top,yr=te-ur.left;switch(en){case"middle":Vr-=yt/2;break;case"bottom":Vr-=yt;break}switch(Oe){case"center":yr-=Yn/2;break;case"right":yr-=Yn;break}rr={left:yr,top:Vr,width:Yn+ur.width,height:yt+ur.height,color:At.backdropColor}}ae.push({rotation:Z,label:b,font:lt,color:In,strokeColor:Cn,strokeWidth:Vn,textOffset:Mt,textAlign:Oe,textBaseline:en,translation:[te,ye],backdrop:rr})}return ae}_getXAxisLabelAlignment(){let e=this,{position:t,ticks:r}=e.options;if(-Ps(e.labelRotation))return t==="top"?"left":"right";let a="center";return r.align==="start"?a="left":r.align==="end"&&(a="right"),a}_getYAxisLabelAlignment(e){let t=this,{position:r,ticks:{crossAlign:i,mirror:a,padding:u}}=t.options,d=t._getLabelSizes(),m=e+u,y=d.widest.width,x,S;return r==="left"?a?(S=t.right+u,i==="near"?x="left":i==="center"?(x="center",S+=y/2):(x="right",S+=y)):(S=t.right-m,i==="near"?x="right":i==="center"?(x="center",S-=y/2):(x="left",S=t.left)):r==="right"?a?(S=t.left+u,i==="near"?x="right":i==="center"?(x="center",S-=y/2):(x="left",S-=y)):(S=t.left+m,i==="near"?x="left":i==="center"?(x="center",S+=y/2):(x="right",S=t.right)):x="right",{textAlign:x,x:S}}_computeLabelArea(){let e=this;if(e.options.ticks.mirror)return;let t=e.chart,r=e.options.position;if(r==="left"||r==="right")return{top:0,left:e.left,bottom:t.height,right:e.right};if(r==="top"||r==="bottom")return{top:e.top,left:0,bottom:e.bottom,right:t.width}}drawBackground(){let{ctx:e,options:{backgroundColor:t},left:r,top:i,width:a,height:u}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(r,i,a,u),e.restore())}getLineWidthForValue(e){let t=this,r=t.options.grid;if(!t._isVisible()||!r.display)return 0;let a=t.ticks.findIndex(u=>u.value===e);return a>=0?r.setContext(t.getContext(a)).lineWidth:0}drawGrid(e){let t=this,r=t.options.grid,i=t.ctx,a=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e)),u,d,m=(y,x,S)=>{!S.width||!S.color||(i.save(),i.lineWidth=S.width,i.strokeStyle=S.color,i.setLineDash(S.borderDash||[]),i.lineDashOffset=S.borderDashOffset,i.beginPath(),i.moveTo(y.x,y.y),i.lineTo(x.x,x.y),i.stroke(),i.restore())};if(r.display)for(u=0,d=a.length;u<d;++u){let y=a[u];r.drawOnChartArea&&m({x:y.x1,y:y.y1},{x:y.x2,y:y.y2},y),r.drawTicks&&m({x:y.tx1,y:y.ty1},{x:y.tx2,y:y.ty2},{color:y.tickColor,width:y.tickWidth,borderDash:y.tickBorderDash,borderDashOffset:y.tickBorderDashOffset})}}drawBorder(){let e=this,{chart:t,ctx:r,options:{grid:i}}=e,a=i.setContext(e.getContext()),u=i.drawBorder?a.borderWidth:0;if(!u)return;let d=i.setContext(e.getContext(0)).lineWidth,m=e._borderValue,y,x,S,L;e.isHorizontal()?(y=Wu(t,e.left,u)-u/2,x=Wu(t,e.right,d)+d/2,S=L=m):(S=Wu(t,e.top,u)-u/2,L=Wu(t,e.bottom,d)+d/2,y=x=m),r.save(),r.lineWidth=a.borderWidth,r.strokeStyle=a.borderColor,r.beginPath(),r.moveTo(y,S),r.lineTo(x,L),r.stroke(),r.restore()}drawLabels(e){let t=this;if(!t.options.ticks.display)return;let i=t.ctx,a=t._computeLabelArea();a&&Wd(i,a);let u=t._labelItems||(t._labelItems=t._computeLabelItems(e)),d,m;for(d=0,m=u.length;d<m;++d){let y=u[d],x=y.font,S=y.label;y.backdrop&&(i.fillStyle=y.backdrop.color,i.fillRect(y.backdrop.left,y.backdrop.top,y.backdrop.width,y.backdrop.height));let L=y.textOffset;ju(i,S,0,L,x,y)}a&&jd(i)}drawTitle(){let{ctx:e,options:{position:t,title:r,reverse:i}}=this;if(!r.display)return;let a=Mi(r.font),u=jo(r.padding),d=r.align,m=a.lineHeight/2;t==="bottom"||t==="center"||Cr(t)?(m+=u.bottom,li(r.text)&&(m+=a.lineHeight*(r.text.length-1))):m+=u.top;let{titleX:y,titleY:x,maxWidth:S,rotation:L}=vN(this,m,t,d);ju(e,r.text,0,0,a,{color:r.color,maxWidth:S,rotation:L,textAlign:gN(d,t,i),textBaseline:"middle",translation:[y,x]})}draw(e){let t=this;t._isVisible()&&(t.drawBackground(),t.drawGrid(e),t.drawBorder(),t.drawTitle(),t.drawLabels(e))}_layers(){let e=this,t=e.options,r=t.ticks&&t.ticks.z||0,i=tr(t.grid&&t.grid.z,-1);return!e._isVisible()||e.draw!==Yu.prototype.draw?[{z:r,draw(a){e.draw(a)}}]:[{z:i,draw(a){e.drawBackground(),e.drawGrid(a),e.drawTitle()}},{z:i+1,draw(){e.drawBorder()}},{z:r,draw(a){e.drawLabels(a)}}]}getMatchingVisibleMetas(e){let t=this,r=t.chart.getSortedVisibleDatasetMetas(),i=t.axis+"AxisID",a=[],u,d;for(u=0,d=r.length;u<d;++u){let m=r[u];m[i]===t.id&&(!e||m.type===e)&&a.push(m)}return a}_resolveTickFontOptions(e){let t=this.options.ticks.setContext(this.getContext(e));return Mi(t.font)}_maxDigits(){let e=this,t=e._resolveTickFontOptions(0).lineHeight;return(e.isHorizontal()?e.width:e.height)/t}},Yd=class{constructor(e,t,r){this.type=e,this.scope=t,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){let t=this,r=Object.getPrototypeOf(e),i;_N(r)&&(i=t.register(r));let a=t.items,u=e.id,d=t.scope+"."+u;if(!u)throw new Error("class does not have id: "+e);return u in a||(a[u]=e,yN(e,d,i),t.override&&mr.override(e.id,e.overrides)),d}get(e){return this.items[e]}unregister(e){let t=this.items,r=e.id,i=this.scope;r in t&&delete t[r],i&&r in mr[i]&&(delete mr[i][r],this.override&&delete Ic[r])}};function yN(n,e,t){let r=Tf(Object.create(null),[t?mr.get(t):{},mr.get(e),n.defaults]);mr.set(e,r),n.defaultRoutes&&bN(e,n.defaultRoutes),n.descriptors&&mr.describe(e,n.descriptors)}function bN(n,e){Object.keys(e).forEach(t=>{let r=t.split("."),i=r.pop(),a=[n].concat(r).join("."),u=e[t].split("."),d=u.pop(),m=u.join(".");mr.route(a,i,m,d)})}function _N(n){return"id"in n&&"defaults"in n}var A0=class{constructor(){this.controllers=new Yd(Ja,"datasets",!0),this.elements=new Yd(Ma,"elements"),this.plugins=new Yd(Object,"plugins"),this.scales=new Yd(Yu,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,r){let i=this;[...t].forEach(a=>{let u=r||i._getRegistryForType(a);r||u.isForType(a)||u===i.plugins&&a.id?i._exec(e,u,a):zr(a,d=>{let m=r||i._getRegistryForType(d);i._exec(e,m,d)})})}_exec(e,t,r){let i=jp(e);ui(r["before"+i],[],r),t[e](r),ui(r["after"+i],[],r)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){let r=this._typedRegistries[t];if(r.isForType(e))return r}return this.plugins}_get(e,t,r){let i=t.get(e);if(i===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return i}},Gs=new A0,D0=class{constructor(){this._init=[]}notify(e,t,r,i){let a=this;t==="beforeInit"&&(a._init=a._createDescriptors(e,!0),a._notify(a._init,e,"install"));let u=i?a._descriptors(e).filter(i):a._descriptors(e),d=a._notify(u,e,t,r);return t==="destroy"&&(a._notify(u,e,"stop"),a._notify(a._init,e,"uninstall")),d}_notify(e,t,r,i){i=i||{};for(let a of e){let u=a.plugin,d=u[r],m=[t,i,a.options];if(ui(d,m,u)===!1&&i.cancelable)return!1}return!0}invalidate(){Mr(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;let t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){let r=e&&e.config,i=tr(r.options&&r.options.plugins,{}),a=wN(r);return i===!1&&!t?[]:EN(e,a,i,t)}_notifyStateChanges(e){let t=this._oldCache||[],r=this._cache,i=(a,u)=>a.filter(d=>!u.some(m=>d.plugin.id===m.plugin.id));this._notify(i(t,r),e,"stop"),this._notify(i(r,t),e,"start")}};function wN(n){let e=[],t=Object.keys(Gs.plugins.items);for(let i=0;i<t.length;i++)e.push(Gs.getPlugin(t[i]));let r=n.plugins||[];for(let i=0;i<r.length;i++){let a=r[i];e.indexOf(a)===-1&&e.push(a)}return e}function xN(n,e){return!e&&n===!1?null:n===!0?{}:n}function EN(n,e,t,r){let i=[],a=n.getContext();for(let u=0;u<e.length;u++){let d=e[u],m=d.id,y=xN(t[m],r);y!==null&&i.push({plugin:d,options:CN(n.config,d,y,a)})}return i}function CN(n,e,t,r){let i=n.pluginScopeKeys(e),a=n.getOptionScopes(t,i);return n.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function k0(n,e){let t=mr.datasets[n]||{};return((e.datasets||{})[n]||{}).indexAxis||e.indexAxis||t.indexAxis||"x"}function SN(n,e){let t=n;return n==="_index_"?t=e:n==="_value_"&&(t=e==="x"?"y":"x"),t}function TN(n,e){return n===e?"_index_":"_value_"}function MN(n){if(n==="top"||n==="bottom")return"x";if(n==="left"||n==="right")return"y"}function O0(n,e){return n==="x"||n==="y"?n:e.axis||MN(e.position)||n.charAt(0).toLowerCase()}function AN(n,e){let t=Ic[n.type]||{scales:{}},r=e.scales||{},i=k0(n.type,e),a=Object.create(null),u=Object.create(null);return Object.keys(r).forEach(d=>{let m=r[d],y=O0(d,m),x=TN(y,i),S=t.scales||{};a[y]=a[y]||d,u[d]=Mf(Object.create(null),[{axis:y},m,S[y],S[x]])}),n.data.datasets.forEach(d=>{let m=d.type||n.type,y=d.indexAxis||k0(m,e),S=(Ic[m]||{}).scales||{};Object.keys(S).forEach(L=>{let H=SN(L,y),V=d[H+"AxisID"]||a[H]||H;u[V]=u[V]||Object.create(null),Mf(u[V],[{axis:H},r[V],S[L]])})}),Object.keys(u).forEach(d=>{let m=u[d];Mf(m,[mr.scales[m.type],mr.scale])}),u}function mC(n){let e=n.options||(n.options={});e.plugins=tr(e.plugins,{}),e.scales=AN(n,e)}function gC(n){return n=n||{},n.datasets=n.datasets||[],n.labels=n.labels||[],n}function DN(n){return n=n||{},n.data=gC(n.data),mC(n),n}var FE=new Map,vC=new Set;function Lv(n,e){let t=FE.get(n);return t||(t=e(),FE.set(n,t),vC.add(t)),t}var tm=(n,e,t)=>{let r=iu(e,t);r!==void 0&&n.add(r)},I0=class{constructor(e){this._config=DN(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=gC(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){let e=this._config;this.clearCache(),mC(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Lv(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,t){return Lv(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,t){return Lv(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]])}pluginScopeKeys(e){let t=e.id,r=this.type;return Lv(`${r}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){let r=this._scopeCache,i=r.get(e);return(!i||t)&&(i=new Map,r.set(e,i)),i}getOptionScopes(e,t,r){let{options:i,type:a}=this,u=this._cachedScopes(e,r),d=u.get(t);if(d)return d;let m=new Set;t.forEach(x=>{e&&(m.add(e),x.forEach(S=>tm(m,e,S))),x.forEach(S=>tm(m,i,S)),x.forEach(S=>tm(m,Ic[a]||{},S)),x.forEach(S=>tm(m,mr,S)),x.forEach(S=>tm(m,yv,S))});let y=Array.from(m);return y.length===0&&y.push(Object.create(null)),vC.has(t)&&u.set(t,y),y}chartOptionScopes(){let{options:e,type:t}=this;return[e,Ic[t]||{},mr.datasets[t]||{},{type:t},mr,yv]}resolveNamedOptions(e,t,r,i=[""]){let a={$shared:!0},{resolver:u,subPrefixes:d}=BE(this._resolverCache,e,i),m=u;if(kN(u,t)){a.$shared=!1,r=Dc(r)?r():r;let y=this.createResolver(e,r,d);m=kc(u,r,y)}for(let y of t)a[y]=m[y];return a}createResolver(e,t,r=[""],i){let{resolver:a}=BE(this._resolverCache,e,r);return Cr(t)?kc(a,t,void 0,i):a}};function BE(n,e,t){let r=n.get(e);r||(r=new Map,n.set(e,r));let i=t.join(),a=r.get(i);return a||(a={resolver:Xp(e,t),subPrefixes:t.filter(d=>!d.toLowerCase().includes("hover"))},r.set(i,a)),a}function kN(n,e){let{isScriptable:t,isIndexable:r}=Ev(n);for(let i of e)if(t(i)&&Dc(n[i])||r(i)&&li(n[i]))return!0;return!1}var ON="3.5.1",IN=["top","bottom","left","right","chartArea"];function HE(n,e){return n==="top"||n==="bottom"||IN.indexOf(n)===-1&&e==="x"}function qE(n,e){return function(t,r){return t[n]===r[n]?t[e]-r[e]:t[n]-r[n]}}function zE(n){let e=n.chart,t=e.options.animation;e.notifyPlugins("afterRender"),ui(t&&t.onComplete,[n],e)}function NN(n){let e=n.chart,t=e.options.animation;ui(t&&t.onProgress,[n],e)}function yC(n){return Cv()&&typeof n=="string"?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}var jv={},bC=n=>{let e=yC(n);return Object.values(jv).filter(t=>t.canvas===e).pop()},Ol=class{constructor(e,t){let r=this,i=this.config=new I0(t),a=yC(e),u=bC(a);if(u)throw new Error("Canvas is already in use. Chart with ID '"+u.id+"' must be destroyed before the canvas can be reused.");let d=i.createResolver(i.chartOptionScopes(),r.getContext());this.platform=new(i.platform||rN(a));let m=r.platform.acquireContext(a,d.aspectRatio),y=m&&m.canvas,x=y&&y.height,S=y&&y.width;if(this.id=U_(),this.ctx=m,this.canvas=y,this.width=S,this.height=x,this._options=d,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new D0,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=W_(()=>this.update("resize"),d.resizeDelay||0),jv[r.id]=r,!m||!y){console.error("Failed to create chart: can't acquire context from the given item");return}Uu.listen(r,"complete",zE),Uu.listen(r,"progress",NN),r._initialize(),r.attached&&r.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:t},width:r,height:i,_aspectRatio:a}=this;return Mr(e)?t&&a?a:i?r/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){let e=this;return e.notifyPlugins("beforeInit"),e.options.responsive?e.resize():Mv(e,e.options.devicePixelRatio),e.bindEvents(),e.notifyPlugins("afterInit"),e}clear(){return bv(this.canvas,this.ctx),this}stop(){return Uu.stop(this),this}resize(e,t){Uu.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){let r=this,i=r.options,a=r.canvas,u=i.maintainAspectRatio&&r.aspectRatio,d=r.platform.getMaximumSize(a,e,t,u),m=i.devicePixelRatio||r.platform.getDevicePixelRatio();r.width=d.width,r.height=d.height,r._aspectRatio=r.aspectRatio,Mv(r,m,!0)&&(r.notifyPlugins("resize",{size:d}),ui(i.onResize,[r,d],r),r.attached&&r._doResize()&&r.render())}ensureScalesHaveIDs(){let t=this.options.scales||{};zr(t,(r,i)=>{r.id=i})}buildOrUpdateScales(){let e=this,t=e.options,r=t.scales,i=e.scales,a=Object.keys(i).reduce((d,m)=>(d[m]=!1,d),{}),u=[];r&&(u=u.concat(Object.keys(r).map(d=>{let m=r[d],y=O0(d,m),x=y==="r",S=y==="x";return{options:m,dposition:x?"chartArea":S?"bottom":"left",dtype:x?"radialLinear":S?"category":"linear"}}))),zr(u,d=>{let m=d.options,y=m.id,x=O0(y,m),S=tr(m.type,d.dtype);(m.position===void 0||HE(m.position,x)!==HE(d.dposition))&&(m.position=d.dposition),a[y]=!0;let L=null;if(y in i&&i[y].type===S)L=i[y];else{let H=Gs.getScale(S);L=new H({id:y,type:S,ctx:e.ctx,chart:e}),i[L.id]=L}L.init(m,t)}),zr(a,(d,m)=>{d||delete i[m]}),zr(i,d=>{ra.configure(e,d,d.options),ra.addBox(e,d)})}_updateMetasets(){let e=this,t=e._metasets,r=e.data.datasets.length,i=t.length;if(t.sort((a,u)=>a.index-u.index),i>r){for(let a=r;a<i;++a)e._destroyDatasetMeta(a);t.splice(r,i-r)}e._sortedMetasets=t.slice(0).sort(qE("order","index"))}_removeUnreferencedMetasets(){let e=this,{_metasets:t,data:{datasets:r}}=e;t.length>r.length&&delete e._stacks,t.forEach((i,a)=>{r.filter(u=>u===i._dataset).length===0&&e._destroyDatasetMeta(a)})}buildOrUpdateControllers(){let e=this,t=[],r=e.data.datasets,i,a;for(e._removeUnreferencedMetasets(),i=0,a=r.length;i<a;i++){let u=r[i],d=e.getDatasetMeta(i),m=u.type||e.config.type;if(d.type&&d.type!==m&&(e._destroyDatasetMeta(i),d=e.getDatasetMeta(i)),d.type=m,d.indexAxis=u.indexAxis||k0(m,e.options),d.order=u.order||0,d.index=i,d.label=""+u.label,d.visible=e.isDatasetVisible(i),d.controller)d.controller.updateIndex(i),d.controller.linkScales();else{let y=Gs.getController(m),{datasetElementType:x,dataElementType:S}=mr.datasets[m];Object.assign(y.prototype,{dataElementType:Gs.getElement(S),datasetElementType:x&&Gs.getElement(x)}),d.controller=new y(e,i),t.push(d.controller)}}return e._updateMetasets(),t}_resetElements(){let e=this;zr(e.data.datasets,(t,r)=>{e.getDatasetMeta(r).controller.reset()},e)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){let t=this,r=t.config;r.update(),t._options=r.createResolver(r.chartOptionScopes(),t.getContext()),zr(t.scales,y=>{ra.removeBox(t,y)});let i=t._animationsDisabled=!t.options.animation;t.ensureScalesHaveIDs(),t.buildOrUpdateScales();let a=new Set(Object.keys(t._listeners)),u=new Set(t.options.events);if((!Y_(a,u)||!!this._responsiveListeners!==t.options.responsive)&&(t.unbindEvents(),t.bindEvents()),t._plugins.invalidate(),t.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;let d=t.buildOrUpdateControllers();t.notifyPlugins("beforeElementsUpdate");let m=0;for(let y=0,x=t.data.datasets.length;y<x;y++){let{controller:S}=t.getDatasetMeta(y),L=!i&&d.indexOf(S)===-1;S.buildOrUpdateElements(L),m=Math.max(+S.getMaxOverflow(),m)}t._minPadding=m,t._updateLayout(m),i||zr(d,y=>{y.reset()}),t._updateDatasets(e),t.notifyPlugins("afterUpdate",{mode:e}),t._layers.sort(qE("z","_idx")),t._lastEvent&&t._eventHandler(t._lastEvent,!0),t.render()}_updateLayout(e){let t=this;if(t.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;ra.update(t,t.width,t.height,e);let r=t.chartArea,i=r.width<=0||r.height<=0;t._layers=[],zr(t.boxes,a=>{i&&a.position==="chartArea"||(a.configure&&a.configure(),t._layers.push(...a._layers()))},t),t._layers.forEach((a,u)=>{a._idx=u}),t.notifyPlugins("afterLayout")}_updateDatasets(e){let t=this,r=typeof e=="function";if(t.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let i=0,a=t.data.datasets.length;i<a;++i)t._updateDataset(i,r?e({datasetIndex:i}):e);t.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){let r=this,i=r.getDatasetMeta(e),a={meta:i,index:e,mode:t,cancelable:!0};r.notifyPlugins("beforeDatasetUpdate",a)!==!1&&(i.controller._update(t),a.cancelable=!1,r.notifyPlugins("afterDatasetUpdate",a))}render(){let e=this;e.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Uu.has(e)?e.attached&&!Uu.running(e)&&Uu.start(e):(e.draw(),zE({chart:e})))}draw(){let e=this,t;if(e._resizeBeforeDraw){let{width:i,height:a}=e._resizeBeforeDraw;e._resize(i,a),e._resizeBeforeDraw=null}if(e.clear(),e.width<=0||e.height<=0||e.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let r=e._layers;for(t=0;t<r.length&&r[t].z<=0;++t)r[t].draw(e.chartArea);for(e._drawDatasets();t<r.length;++t)r[t].draw(e.chartArea);e.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){let r=this._sortedMetasets,i=[],a,u;for(a=0,u=r.length;a<u;++a){let d=r[a];(!e||d.visible)&&i.push(d)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){let e=this;if(e.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let t=e.getSortedVisibleDatasetMetas();for(let r=t.length-1;r>=0;--r)e._drawDataset(t[r]);e.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){let t=this,r=t.ctx,i=e._clip,a=!i.disabled,u=t.chartArea,d={meta:e,index:e.index,cancelable:!0};t.notifyPlugins("beforeDatasetDraw",d)!==!1&&(a&&Wd(r,{left:i.left===!1?0:u.left-i.left,right:i.right===!1?t.width:u.right+i.right,top:i.top===!1?0:u.top-i.top,bottom:i.bottom===!1?t.height:u.bottom+i.bottom}),e.controller.draw(),a&&jd(r),d.cancelable=!1,t.notifyPlugins("afterDatasetDraw",d))}getElementsAtEventForMode(e,t,r,i){let a=BI.modes[t];return typeof a=="function"?a(this,e,r,i):[]}getDatasetMeta(e){let t=this,r=t.data.datasets[e],i=t._metasets,a=i.filter(u=>u&&u._dataset===r).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r&&r.order||0,index:e,_dataset:r,_parsed:[],_sorted:!1},i.push(a)),a}getContext(){return this.$context||(this.$context={chart:this,type:"chart"})}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let t=this.data.datasets[e];if(!t)return!1;let r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!t.hidden}setDatasetVisibility(e,t){let r=this.getDatasetMeta(e);r.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,r){let i=this,a=r?"show":"hide",u=i.getDatasetMeta(e),d=u.controller._resolveAnimations(void 0,a);na(t)?(u.data[t].hidden=!r,i.update()):(i.setDatasetVisibility(e,r),d.update(u,{visible:r}),i.update(m=>m.datasetIndex===e?a:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){let t=this,r=t._metasets&&t._metasets[e];r&&r.controller&&(r.controller._destroy(),delete t._metasets[e])}destroy(){let e=this,{canvas:t,ctx:r}=e,i,a;for(e.stop(),Uu.remove(e),i=0,a=e.data.datasets.length;i<a;++i)e._destroyDatasetMeta(i);e.config.clearCache(),t&&(e.unbindEvents(),bv(t,r),e.platform.releaseContext(r),e.canvas=null,e.ctx=null),e.notifyPlugins("destroy"),delete jv[e.id]}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let e=this,t=e._listeners,r=e.platform,i=(u,d)=>{r.addEventListener(e,u,d),t[u]=d},a=function(u,d,m){u.offsetX=d,u.offsetY=m,e._eventHandler(u)};zr(e.options.events,u=>i(u,a))}bindResponsiveEvents(){let e=this;e._responsiveListeners||(e._responsiveListeners={});let t=e._responsiveListeners,r=e.platform,i=(y,x)=>{r.addEventListener(e,y,x),t[y]=x},a=(y,x)=>{t[y]&&(r.removeEventListener(e,y,x),delete t[y])},u=(y,x)=>{e.canvas&&e.resize(y,x)},d,m=()=>{a("attach",m),e.attached=!0,e.resize(),i("resize",u),i("detach",d)};d=()=>{e.attached=!1,a("resize",u),i("attach",m)},r.isAttached(e.canvas)?m():d()}unbindEvents(){let e=this;zr(e._listeners,(t,r)=>{e.platform.removeEventListener(e,r,t)}),e._listeners={},zr(e._responsiveListeners,(t,r)=>{e.platform.removeEventListener(e,r,t)}),e._responsiveListeners=void 0}updateHoverStyle(e,t,r){let i=r?"set":"remove",a,u,d,m;for(t==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),d=0,m=e.length;d<m;++d){u=e[d];let y=u&&this.getDatasetMeta(u.datasetIndex).controller;y&&y[i+"HoverStyle"](u.element,u.datasetIndex,u.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){let t=this,r=t._active||[],i=e.map(({datasetIndex:u,index:d})=>{let m=t.getDatasetMeta(u);if(!m)throw new Error("No dataset found at index "+u);return{datasetIndex:u,element:m.data[d],index:d}});!Hd(i,r)&&(t._active=i,t._updateHoverStyles(i,r))}notifyPlugins(e,t,r){return this._plugins.notify(this,e,t,r)}_updateHoverStyles(e,t,r){let i=this,a=i.options.hover,u=(y,x)=>y.filter(S=>!x.some(L=>S.datasetIndex===L.datasetIndex&&S.index===L.index)),d=u(t,e),m=r?e:u(e,t);d.length&&i.updateHoverStyle(d,a.mode,!1),m.length&&a.mode&&i.updateHoverStyle(m,a.mode,!0)}_eventHandler(e,t){let r=this,i={event:e,replay:t,cancelable:!0},a=d=>(d.options.events||this.options.events).includes(e.type);if(r.notifyPlugins("beforeEvent",i,a)===!1)return;let u=r._handleEvent(e,t);return i.cancelable=!1,r.notifyPlugins("afterEvent",i,a),(u||i.changed)&&r.render(),r}_handleEvent(e,t){let r=this,{_active:i=[],options:a}=r,u=a.hover,d=t,m=[],y=!1,x=null;return e.type!=="mouseout"&&(m=r.getElementsAtEventForMode(e,u.mode,u,d),x=e.type==="click"?r._lastEvent:e),r._lastEvent=null,zu(e,r.chartArea,r._minPadding)&&(ui(a.onHover,[e,m,r],r),(e.type==="mouseup"||e.type==="click"||e.type==="contextmenu")&&ui(a.onClick,[e,m,r],r)),y=!Hd(m,i),(y||t)&&(r._active=m,r._updateHoverStyles(m,i,t)),r._lastEvent=x,y}},WE=()=>zr(Ol.instances,n=>n._plugins.invalidate()),Lc=!0;Object.defineProperties(Ol,{defaults:{enumerable:Lc,value:mr},instances:{enumerable:Lc,value:jv},overrides:{enumerable:Lc,value:Ic},registry:{enumerable:Lc,value:Gs},version:{enumerable:Lc,value:ON},getChart:{enumerable:Lc,value:bC},register:{enumerable:Lc,value:(...n)=>{Gs.add(...n),WE()}},unregister:{enumerable:Lc,value:(...n)=>{Gs.remove(...n),WE()}}});function _C(n,e,t){let{startAngle:r,pixelMargin:i,x:a,y:u,outerRadius:d,innerRadius:m}=e,y=i/d;n.beginPath(),n.arc(a,u,d,r-y,t+y),m>i?(y=i/m,n.arc(a,u,m,t+y,r-y,!0)):n.arc(a,u,i,t+qi,r-qi),n.closePath(),n.clip()}function PN(n){return $p(n,["outerStart","outerEnd","innerStart","innerEnd"])}function LN(n,e,t,r){let i=PN(n.options.borderRadius),a=(t-e)/2,u=Math.min(a,r*e/2),d=m=>{let y=(t-Math.min(a,m))*r/2;return co(m,0,Math.min(a,y))};return{outerStart:d(i.outerStart),outerEnd:d(i.outerEnd),innerStart:co(i.innerStart,0,u),innerEnd:co(i.innerEnd,0,u)}}function Vd(n,e,t,r){return{x:t+n*Math.cos(e),y:r+n*Math.sin(e)}}function N0(n,e,t,r,i){let{x:a,y:u,startAngle:d,pixelMargin:m,innerRadius:y}=e,x=Math.max(e.outerRadius+r+t-m,0),S=y>0?y+r+t+m:0,L=0,H=i-d;if(r){let At=y>0?y-r:0,tn=x>0?x-r:0,In=(At+tn)/2,Cn=In!==0?H*In/(In+r):H;L=(H-Cn)/2}let V=Math.max(.001,H*x-t/Ti)/x,U=(H-V)/2,Z=d+U+L,ae=i-U-L,{outerStart:le,outerEnd:Ae,innerStart:ve,innerEnd:b}=LN(e,S,x,ae-Z),te=x-le,ye=x-Ae,Oe=Z+le/te,De=ae-Ae/ye,lt=S+ve,ct=S+b,Dt=Z+ve/lt,Mt=ae-b/ct;if(n.beginPath(),n.arc(a,u,x,Oe,De),Ae>0){let At=Vd(ye,De,a,u);n.arc(At.x,At.y,Ae,De,ae+qi)}let en=Vd(ct,ae,a,u);if(n.lineTo(en.x,en.y),b>0){let At=Vd(ct,Mt,a,u);n.arc(At.x,At.y,b,ae+qi,Mt+Math.PI)}if(n.arc(a,u,S,ae-b/S,Z+ve/S,!0),ve>0){let At=Vd(lt,Dt,a,u);n.arc(At.x,At.y,ve,Dt+Math.PI,Z-qi)}let Yt=Vd(te,Z,a,u);if(n.lineTo(Yt.x,Yt.y),le>0){let At=Vd(te,Oe,a,u);n.arc(At.x,At.y,le,Z-qi,Oe)}n.closePath()}function RN(n,e,t,r){let{fullCircles:i,startAngle:a,circumference:u}=e,d=e.endAngle;if(i){N0(n,e,t,r,a+Qr);for(let m=0;m<i;++m)n.fill();isNaN(u)||(d=a+u%Qr,u%Qr===0&&(d+=Qr))}return N0(n,e,t,r,d),n.fill(),d}function FN(n,e,t){let{x:r,y:i,startAngle:a,pixelMargin:u,fullCircles:d}=e,m=Math.max(e.outerRadius-u,0),y=e.innerRadius+u,x;for(t&&_C(n,e,a+Qr),n.beginPath(),n.arc(r,i,y,a+Qr,a,!0),x=0;x<d;++x)n.stroke();for(n.beginPath(),n.arc(r,i,m,a,a+Qr),x=0;x<d;++x)n.stroke()}function BN(n,e,t,r,i){let{options:a}=e,u=a.borderAlign==="inner";a.borderWidth&&(u?(n.lineWidth=a.borderWidth*2,n.lineJoin="round"):(n.lineWidth=a.borderWidth,n.lineJoin="bevel"),e.fullCircles&&FN(n,e,u),u&&_C(n,e,i),N0(n,e,t,r,i),n.stroke())}var Jd=class extends Ma{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,r){let i=this.getProps(["x","y"],r),{angle:a,distance:u}=K_(i,{x:e,y:t}),{startAngle:d,endAngle:m,innerRadius:y,outerRadius:x,circumference:S}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),L=this.options.spacing/2,H=S>=Qr||qd(a,d,m),V=u>=y+L&&u<=x+L;return H&&V}getCenterPoint(e){let{x:t,y:r,startAngle:i,endAngle:a,innerRadius:u,outerRadius:d}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:m,spacing:y}=this.options,x=(i+a)/2,S=(u+d+y+m)/2;return{x:t+Math.cos(x)*S,y:r+Math.sin(x)*S}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){let t=this,{options:r,circumference:i}=t,a=(r.offset||0)/2,u=(r.spacing||0)/2;if(t.pixelMargin=r.borderAlign==="inner"?.33:0,t.fullCircles=i>Qr?Math.floor(i/Qr):0,i===0||t.innerRadius<0||t.outerRadius<0)return;e.save();let d=0;if(a){d=a/2;let y=(t.startAngle+t.endAngle)/2;e.translate(Math.cos(y)*d,Math.sin(y)*d),t.circumference>=Ti&&(d=a)}e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor;let m=RN(e,t,d,u);BN(e,t,d,u,m),e.restore()}};Jd.id="arc";Jd.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0};Jd.defaultRoutes={backgroundColor:"backgroundColor"};function wC(n,e,t=e){n.lineCap=tr(t.borderCapStyle,e.borderCapStyle),n.setLineDash(tr(t.borderDash,e.borderDash)),n.lineDashOffset=tr(t.borderDashOffset,e.borderDashOffset),n.lineJoin=tr(t.borderJoinStyle,e.borderJoinStyle),n.lineWidth=tr(t.borderWidth,e.borderWidth),n.strokeStyle=tr(t.borderColor,e.borderColor)}function HN(n,e,t){n.lineTo(t.x,t.y)}function qN(n){return n.stepped?n0:n.tension||n.cubicInterpolationMode==="monotone"?r0:HN}function xC(n,e,t={}){let r=n.length,{start:i=0,end:a=r-1}=t,{start:u,end:d}=e,m=Math.max(i,u),y=Math.min(a,d),x=i<u&&a<u||i>d&&a>d;return{count:r,start:m,loop:e.loop,ilen:y<m&&!x?r+y-m:y-m}}function zN(n,e,t,r){let{points:i,options:a}=e,{count:u,start:d,loop:m,ilen:y}=xC(i,t,r),x=qN(a),{move:S=!0,reverse:L}=r||{},H,V,U;for(H=0;H<=y;++H)V=i[(d+(L?y-H:H))%u],!V.skip&&(S?(n.moveTo(V.x,V.y),S=!1):x(n,U,V,L,a.stepped),U=V);return m&&(V=i[(d+(L?y:0))%u],x(n,U,V,L,a.stepped)),!!m}function WN(n,e,t,r){let i=e.points,{count:a,start:u,ilen:d}=xC(i,t,r),{move:m=!0,reverse:y}=r||{},x=0,S=0,L,H,V,U,Z,ae,le=ve=>(u+(y?d-ve:ve))%a,Ae=()=>{U!==Z&&(n.lineTo(x,Z),n.lineTo(x,U),n.lineTo(x,ae))};for(m&&(H=i[le(0)],n.moveTo(H.x,H.y)),L=0;L<=d;++L){if(H=i[le(L)],H.skip)continue;let ve=H.x,b=H.y,te=ve|0;te===V?(b<U?U=b:b>Z&&(Z=b),x=(S*x+ve)/++S):(Ae(),n.lineTo(ve,b),V=te,S=0,U=Z=b),ae=b}Ae()}function P0(n){let e=n.options,t=e.borderDash&&e.borderDash.length;return!n._decimated&&!n._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!t?WN:zN}function jN(n){return n.stepped?d0:n.tension||n.cubicInterpolationMode==="monotone"?h0:qu}function UN(n,e,t,r){let i=e._path;i||(i=e._path=new Path2D,e.path(i,t,r)&&i.closePath()),wC(n,e.options),n.stroke(i)}function VN(n,e,t,r){let{segments:i,options:a}=e,u=P0(e);for(let d of i)wC(n,a,d.style),n.beginPath(),u(n,e,d,{start:t,end:t+r-1})&&n.closePath(),n.stroke()}var YN=typeof Path2D=="function";function $N(n,e,t,r){YN&&e.segments.length===1?UN(n,e,t,r):VN(n,e,t,r)}var au=class extends Ma{constructor(e){super(),this.animated=!0,this.options=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){let r=this,i=r.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!r._pointsUpdated){let a=i.spanGaps?r._loop:r._fullLoop;u0(r._points,i,e,a,t),r._pointsUpdated=!0}}set points(e){let t=this;t._points=e,delete t._segments,delete t._path,t._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=p0(this,this.options.segment))}first(){let e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){let e=this.segments,t=this.points,r=e.length;return r&&t[e[r-1].end]}interpolate(e,t){let r=this,i=r.options,a=e[t],u=r.points,d=Iv(r,{property:t,start:a,end:a});if(!d.length)return;let m=[],y=jN(i),x,S;for(x=0,S=d.length;x<S;++x){let{start:L,end:H}=d[x],V=u[L],U=u[H];if(V===U){m.push(V);continue}let Z=Math.abs((a-V[t])/(U[t]-V[t])),ae=y(V,U,Z,i.stepped);ae[t]=e[t],m.push(ae)}return m.length===1?m[0]:m}pathSegment(e,t,r){return P0(this)(e,this,t,r)}path(e,t,r){let i=this,a=i.segments,u=P0(i),d=i._loop;t=t||0,r=r||i.points.length-t;for(let m of a)d&=u(e,i,m,{start:t,end:t+r-1});return!!d}draw(e,t,r,i){let a=this,u=a.options||{};!(a.points||[]).length||!u.borderWidth||(e.save(),$N(e,a,r,i),e.restore(),a.animated&&(a._pointsUpdated=!1,a._path=void 0))}};au.id="line";au.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};au.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};au.descriptors={_scriptable:!0,_indexable:n=>n!=="borderDash"&&n!=="fill"};function jE(n,e,t,r){let i=n.options,{[t]:a}=n.getProps([t],r);return Math.abs(e-a)<i.radius+i.hitRadius}var Zd=class extends Ma{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,r){let i=this.options,{x:a,y:u}=this.getProps(["x","y"],r);return Math.pow(e-a,2)+Math.pow(t-u,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(e,t){return jE(this,e,"x",t)}inYRange(e,t){return jE(this,e,"y",t)}getCenterPoint(e){let{x:t,y:r}=this.getProps(["x","y"],e);return{x:t,y:r}}size(e){e=e||this.options||{};let t=e.radius||0;t=Math.max(t,t&&e.hoverRadius||0);let r=t&&e.borderWidth||0;return(t+r)*2}draw(e,t){let r=this,i=r.options;r.skip||i.radius<.1||!zu(r,t,r.size(i)/2)||(e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.fillStyle=i.backgroundColor,zd(e,i,r.x,r.y))}getRange(){let e=this.options||{};return e.radius+e.hitRadius}};Zd.id="point";Zd.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};Zd.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function EC(n,e){let{x:t,y:r,base:i,width:a,height:u}=n.getProps(["x","y","base","width","height"],e),d,m,y,x,S;return n.horizontal?(S=u/2,d=Math.min(t,i),m=Math.max(t,i),y=r-S,x=r+S):(S=a/2,d=t-S,m=t+S,y=Math.min(r,i),x=Math.max(r,i)),{left:d,top:y,right:m,bottom:x}}function Rc(n,e,t,r){return n?0:co(e,t,r)}function GN(n,e,t){let r=n.options.borderWidth,i=n.borderSkipped,a=_v(r);return{t:Rc(i.top,a.top,0,t),r:Rc(i.right,a.right,0,e),b:Rc(i.bottom,a.bottom,0,t),l:Rc(i.left,a.left,0,e)}}function KN(n,e,t){let{enableBorderRadius:r}=n.getProps(["enableBorderRadius"]),i=n.options.borderRadius,a=Gp(i),u=Math.min(e,t),d=n.borderSkipped,m=r||Cr(i);return{topLeft:Rc(!m||d.top||d.left,a.topLeft,0,u),topRight:Rc(!m||d.top||d.right,a.topRight,0,u),bottomLeft:Rc(!m||d.bottom||d.left,a.bottomLeft,0,u),bottomRight:Rc(!m||d.bottom||d.right,a.bottomRight,0,u)}}function XN(n){let e=EC(n),t=e.right-e.left,r=e.bottom-e.top,i=GN(n,t/2,r/2),a=KN(n,t/2,r/2);return{outer:{x:e.left,y:e.top,w:t,h:r,radius:a},inner:{x:e.left+i.l,y:e.top+i.t,w:t-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function w0(n,e,t,r){let i=e===null,a=t===null,d=n&&!(i&&a)&&EC(n,r);return d&&(i||e>=d.left&&e<=d.right)&&(a||t>=d.top&&t<=d.bottom)}function QN(n){return n.topLeft||n.topRight||n.bottomLeft||n.bottomRight}function JN(n,e){n.rect(e.x,e.y,e.w,e.h)}function x0(n,e,t={}){let r=n.x!==t.x?-e:0,i=n.y!==t.y?-e:0,a=(n.x+n.w!==t.x+t.w?e:0)-r,u=(n.y+n.h!==t.y+t.h?e:0)-i;return{x:n.x+r,y:n.y+i,w:n.w+a,h:n.h+u,radius:n.radius}}var eh=class extends Ma{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,e&&Object.assign(this,e)}draw(e){let t=this.options,{inner:r,outer:i}=XN(this),a=QN(i.radius)?Ud:JN,u=.33;e.save(),(i.w!==r.w||i.h!==r.h)&&(e.beginPath(),a(e,x0(i,u,r)),e.clip(),a(e,x0(r,-u,i)),e.fillStyle=t.borderColor,e.fill("evenodd")),e.beginPath(),a(e,x0(r,u,i)),e.fillStyle=t.backgroundColor,e.fill(),e.restore()}inRange(e,t,r){return w0(this,e,t,r)}inXRange(e,t){return w0(this,e,null,t)}inYRange(e,t){return w0(this,null,e,t)}getCenterPoint(e){let{x:t,y:r,base:i,horizontal:a}=this.getProps(["x","y","base","horizontal"],e);return{x:a?(t+i)/2:t,y:a?r:(r+i)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}};eh.id="bar";eh.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,enableBorderRadius:!0,pointStyle:void 0};eh.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var ZN=Object.freeze({__proto__:null,ArcElement:Jd,LineElement:au,PointElement:Zd,BarElement:eh});function eP(n,e,t,r,i){let a=i.samples||r;if(a>=t)return n.slice(e,e+t);let u=[],d=(t-2)/(a-2),m=0,y=e+t-1,x=e,S,L,H,V,U;for(u[m++]=n[x],S=0;S<a-2;S++){let Z=0,ae=0,le,Ae=Math.floor((S+1)*d)+1+e,ve=Math.min(Math.floor((S+2)*d)+1,t)+e,b=ve-Ae;for(le=Ae;le<ve;le++)Z+=n[le].x,ae+=n[le].y;Z/=b,ae/=b;let te=Math.floor(S*d)+1+e,ye=Math.min(Math.floor((S+1)*d)+1,t)+e,{x:Oe,y:De}=n[x];for(H=V=-1,le=te;le<ye;le++)V=.5*Math.abs((Oe-Z)*(n[le].y-De)-(Oe-n[le].x)*(ae-De)),V>H&&(H=V,L=n[le],U=le);u[m++]=L,x=U}return u[m++]=n[y],u}function tP(n,e,t,r){let i=0,a=0,u,d,m,y,x,S,L,H,V,U,Z=[],ae=e+t-1,le=n[e].x,ve=n[ae].x-le;for(u=e;u<e+t;++u){d=n[u],m=(d.x-le)/ve*r,y=d.y;let b=m|0;if(b===x)y<V?(V=y,S=u):y>U&&(U=y,L=u),i=(a*i+d.x)/++a;else{let te=u-1;if(!Mr(S)&&!Mr(L)){let ye=Math.min(S,L),Oe=Math.max(S,L);ye!==H&&ye!==te&&Z.push({...n[ye],x:i}),Oe!==H&&Oe!==te&&Z.push({...n[Oe],x:i})}u>0&&te!==H&&Z.push(n[te]),Z.push(d),x=b,a=0,V=U=y,S=L=H=u}}return Z}function CC(n){if(n._decimated){let e=n._data;delete n._decimated,delete n._data,Object.defineProperty(n,"data",{value:e})}}function UE(n){n.data.datasets.forEach(e=>{CC(e)})}function nP(n,e){let t=e.length,r=0,i,{iScale:a}=n,{min:u,max:d,minDefined:m,maxDefined:y}=a.getUserBounds();return m&&(r=co(kl(e,a.axis,u).lo,0,t-1)),y?i=co(kl(e,a.axis,d).hi+1,r,t)-r:i=t-r,{start:r,count:i}}var rP={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(n,e,t)=>{if(!t.enabled){UE(n);return}let r=n.width;n.data.datasets.forEach((i,a)=>{let{_data:u,indexAxis:d}=i,m=n.getDatasetMeta(a),y=u||i.data;if(Df([d,n.options.indexAxis])==="y"||m.type!=="line")return;let x=n.scales[m.xAxisID];if(x.type!=="linear"&&x.type!=="time"||n.options.parsing)return;let{start:S,count:L}=nP(m,y),H=t.threshold||4*r;if(L<=H){CC(i);return}Mr(u)&&(i._data=y,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(U){this._data=U}}));let V;switch(t.algorithm){case"lttb":V=eP(y,S,L,r,t);break;case"min-max":V=tP(y,S,L,r);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}i._decimated=V})},destroy(n){UE(n)}};function iP(n,e){let t=n.getDatasetMeta(e);return t&&n.isDatasetVisible(e)?t.dataset:null}function oP(n){let e=n.options,t=e.fill,r=tr(t&&t.target,t);return r===void 0&&(r=!!e.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function aP(n,e,t){let r=oP(n);if(Cr(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return zi(i)&&Math.floor(i)===i?((r[0]==="-"||r[0]==="+")&&(i=e+i),i===e||i<0||i>=t?!1:i):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function sP(n){let{scale:e={},fill:t}=n,r=null,i;return t==="start"?r=e.bottom:t==="end"?r=e.top:Cr(t)?r=e.getPixelForValue(t.value):e.getBasePixel&&(r=e.getBasePixel()),zi(r)?(i=e.isHorizontal(),{x:i?r:null,y:i?null:r}):null}var Uv=class{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,r){let{x:i,y:a,radius:u}=this;return t=t||{start:0,end:Qr},e.arc(i,a,u,t.end,t.start,!0),!r.bounds}interpolate(e){let{x:t,y:r,radius:i}=this,a=e.angle;return{x:t+Math.cos(a)*i,y:r+Math.sin(a)*i,angle:a}}};function lP(n){let{scale:e,fill:t}=n,r=e.options,i=e.getLabels().length,a=[],u=r.reverse?e.max:e.min,d=r.reverse?e.min:e.max,m,y,x;if(t==="start"?x=u:t==="end"?x=d:Cr(t)?x=t.value:x=e.getBaseValue(),r.grid.circular)return y=e.getPointPositionForValue(0,u),new Uv({x:y.x,y:y.y,radius:e.getDistanceFromCenterForValue(x)});for(m=0;m<i;++m)a.push(e.getPointPositionForValue(m,x));return a}function uP(n){return(n.scale||{}).getPointPositionForValue?lP(n):sP(n)}function SC(n,e,t){for(;e>n;e--){let r=t[e];if(!isNaN(r.x)&&!isNaN(r.y))break}return e}function cP(n,e){let{x:t=null,y:r=null}=n||{},i=e.points,a=[];return e.segments.forEach(({start:u,end:d})=>{d=SC(u,d,i);let m=i[u],y=i[d];r!==null?(a.push({x:m.x,y:r}),a.push({x:y.x,y:r})):t!==null&&(a.push({x:t,y:m.y}),a.push({x:t,y:y.y}))}),a}function fP(n){let{chart:e,scale:t,index:r,line:i}=n,a=[],u=i.segments,d=i.points,m=hP(e,r);m.push(TC({x:null,y:t.bottom},i));for(let y=0;y<u.length;y++){let x=u[y];for(let S=x.start;S<=x.end;S++)pP(a,d[S],m)}return new au({points:a,options:{}})}var dP=n=>n.type==="line"&&!n.hidden;function hP(n,e){let t=[],r=n.getSortedVisibleDatasetMetas();for(let i=0;i<r.length;i++){let a=r[i];if(a.index===e)break;dP(a)&&t.unshift(a.dataset)}return t}function pP(n,e,t){let r=[];for(let i=0;i<t.length;i++){let a=t[i],{first:u,last:d,point:m}=mP(a,e,"x");if(!(!m||u&&d)){if(u)r.unshift(m);else if(n.push(m),!d)break}}n.push(...r)}function mP(n,e,t){let r=n.interpolate(e,t);if(!r)return{};let i=r[t],a=n.segments,u=n.points,d=!1,m=!1;for(let y=0;y<a.length;y++){let x=a[y],S=u[x.start][t],L=u[x.end][t];if(i>=S&&i<=L){d=i===S,m=i===L;break}}return{first:d,last:m,point:r}}function gP(n){let{chart:e,fill:t,line:r}=n;if(zi(t))return iP(e,t);if(t==="stack")return fP(n);if(t==="shape")return!0;let i=uP(n);return i instanceof Uv?i:TC(i,r)}function TC(n,e){let t=[],r=!1;return li(n)?(r=!0,t=n):t=cP(n,e),t.length?new au({points:t,options:{tension:0},_loop:r,_fullLoop:r}):null}function vP(n,e,t){let i=n[e].fill,a=[e],u;if(!t)return i;for(;i!==!1&&a.indexOf(i)===-1;){if(!zi(i))return i;if(u=n[i],!u)return!1;if(u.visible)return i;a.push(i),i=u.fill}return!1}function VE(n,e,t){n.beginPath(),e.path(n),n.lineTo(e.last().x,t),n.lineTo(e.first().x,t),n.closePath(),n.clip()}function L0(n,e,t,r){if(r)return;let i=e[n],a=t[n];return n==="angle"&&(i=Ns(i),a=Ns(a)),{property:n,start:i,end:a}}function YE(n,e,t,r){return n&&e?r(n[t],e[t]):n?n[t]:e?e[t]:0}function yP(n,e,t){let r=n.segments,i=n.points,a=e.points,u=[];for(let d of r){let{start:m,end:y}=d;y=SC(m,y,i);let x=L0(t,i[m],i[y],d.loop);if(!e.segments){u.push({source:d,target:x,start:i[m],end:i[y]});continue}let S=Iv(e,x);for(let L of S){let H=L0(t,a[L.start],a[L.end],L.loop),V=Ov(d,i,H);for(let U of V)u.push({source:U,target:L,start:{[t]:YE(x,H,"start",Math.max)},end:{[t]:YE(x,H,"end",Math.min)}})}}return u}function bP(n,e,t){let{top:r,bottom:i}=e.chart.chartArea,{property:a,start:u,end:d}=t||{};a==="x"&&(n.beginPath(),n.rect(u,r,d-u,i-r),n.clip())}function $E(n,e,t,r){let i=e.interpolate(t,r);i&&n.lineTo(i.x,i.y)}function GE(n,e){let{line:t,target:r,property:i,color:a,scale:u}=e,d=yP(t,r,i);for(let{source:m,target:y,start:x,end:S}of d){let{style:{backgroundColor:L=a}={}}=m,H=r!==!0;n.save(),n.fillStyle=L,bP(n,u,H&&L0(i,x,S)),n.beginPath();let V=!!t.pathSegment(n,m),U;if(H){V?n.closePath():$E(n,r,S,i);let Z=!!r.pathSegment(n,y,{move:V,reverse:!0});U=V&&Z,U||$E(n,r,x,i)}n.closePath(),n.fill(U?"evenodd":"nonzero"),n.restore()}}function _P(n,e){let{line:t,target:r,above:i,below:a,area:u,scale:d}=e,m=t._loop?"angle":e.axis;n.save(),m==="x"&&a!==i&&(VE(n,r,u.top),GE(n,{line:t,target:r,color:i,scale:d,property:m}),n.restore(),n.save(),VE(n,r,u.bottom)),GE(n,{line:t,target:r,color:a,scale:d,property:m}),n.restore()}function E0(n,e,t){let r=gP(e),{line:i,scale:a,axis:u}=e,d=i.options,m=d.fill,y=d.backgroundColor,{above:x=y,below:S=y}=m||{};r&&i.points.length&&(Wd(n,t),_P(n,{line:i,target:r,above:x,below:S,area:t,scale:a,axis:u}),jd(n))}var wP={id:"filler",afterDatasetsUpdate(n,e,t){let r=(n.data.datasets||[]).length,i=[],a,u,d,m;for(u=0;u<r;++u)a=n.getDatasetMeta(u),d=a.dataset,m=null,d&&d.options&&d instanceof au&&(m={visible:n.isDatasetVisible(u),index:u,fill:aP(d,u,r),chart:n,axis:a.controller.options.indexAxis,scale:a.vScale,line:d}),a.$filler=m,i.push(m);for(u=0;u<r;++u)m=i[u],!(!m||m.fill===!1)&&(m.fill=vP(i,u,t.propagate))},beforeDraw(n,e,t){let r=t.drawTime==="beforeDraw",i=n.getSortedVisibleDatasetMetas(),a=n.chartArea;for(let u=i.length-1;u>=0;--u){let d=i[u].$filler;d&&(d.line.updateControlPoints(a,d.axis),r&&E0(n.ctx,d,a))}},beforeDatasetsDraw(n,e,t){if(t.drawTime!=="beforeDatasetsDraw")return;let r=n.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){let a=r[i].$filler;a&&E0(n.ctx,a,n.chartArea)}},beforeDatasetDraw(n,e,t){let r=e.meta.$filler;!r||r.fill===!1||t.drawTime!=="beforeDatasetDraw"||E0(n.ctx,r,n.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},KE=(n,e)=>{let{boxHeight:t=e,boxWidth:r=e}=n;return n.usePointStyle&&(t=Math.min(t,e),r=Math.min(r,e)),{boxWidth:r,boxHeight:t,itemHeight:Math.max(e,t)}},xP=(n,e)=>n!==null&&e!==null&&n.datasetIndex===e.datasetIndex&&n.index===e.index,Vv=class extends Ma{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,r){let i=this;i.maxWidth=e,i.maxHeight=t,i._margins=r,i.setDimensions(),i.buildLabels(),i.fit()}setDimensions(){let e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=e._margins.left,e.right=e.width):(e.height=e.maxHeight,e.top=e._margins.top,e.bottom=e.height)}buildLabels(){let e=this,t=e.options.labels||{},r=ui(t.generateLabels,[e.chart],e)||[];t.filter&&(r=r.filter(i=>t.filter(i,e.chart.data))),t.sort&&(r=r.sort((i,a)=>t.sort(i,a,e.chart.data))),e.options.reverse&&r.reverse(),e.legendItems=r}fit(){let e=this,{options:t,ctx:r}=e;if(!t.display){e.width=e.height=0;return}let i=t.labels,a=Mi(i.font),u=a.size,d=e._computeTitleHeight(),{boxWidth:m,itemHeight:y}=KE(i,u),x,S;r.font=a.string,e.isHorizontal()?(x=e.maxWidth,S=e._fitRows(d,u,m,y)+10):(S=e.maxHeight,x=e._fitCols(d,u,m,y)+10),e.width=Math.min(x,t.maxWidth||e.maxWidth),e.height=Math.min(S,t.maxHeight||e.maxHeight)}_fitRows(e,t,r,i){let a=this,{ctx:u,maxWidth:d,options:{labels:{padding:m}}}=a,y=a.legendHitBoxes=[],x=a.lineWidths=[0],S=i+m,L=e;u.textAlign="left",u.textBaseline="middle";let H=-1,V=-S;return a.legendItems.forEach((U,Z)=>{let ae=r+t/2+u.measureText(U.text).width;(Z===0||x[x.length-1]+ae+2*m>d)&&(L+=S,x[x.length-(Z>0?0:1)]=0,V+=S,H++),y[Z]={left:0,top:V,row:H,width:ae,height:i},x[x.length-1]+=ae+m}),L}_fitCols(e,t,r,i){let a=this,{ctx:u,maxHeight:d,options:{labels:{padding:m}}}=a,y=a.legendHitBoxes=[],x=a.columnSizes=[],S=d-e,L=m,H=0,V=0,U=0,Z=0;return a.legendItems.forEach((ae,le)=>{let Ae=r+t/2+u.measureText(ae.text).width;le>0&&V+i+2*m>S&&(L+=H+m,x.push({width:H,height:V}),U+=H+m,Z++,H=V=0),y[le]={left:U,top:V,col:Z,width:Ae,height:i},H=Math.max(H,Ae),V+=i+m}),L+=H,x.push({width:H,height:V}),L}adjustHitBoxes(){let e=this;if(!e.options.display)return;let t=e._computeTitleHeight(),{legendHitBoxes:r,options:{align:i,labels:{padding:a},rtl:u}}=e,d=Pc(u,e.left,e.width);if(this.isHorizontal()){let m=0,y=Po(i,e.left+a,e.right-e.lineWidths[m]);for(let x of r)m!==x.row&&(m=x.row,y=Po(i,e.left+a,e.right-e.lineWidths[m])),x.top+=e.top+t+a,x.left=d.leftForLtr(d.x(y),x.width),y+=x.width+a}else{let m=0,y=Po(i,e.top+t+a,e.bottom-e.columnSizes[m].height);for(let x of r)x.col!==m&&(m=x.col,y=Po(i,e.top+t+a,e.bottom-e.columnSizes[m].height)),x.top=y,x.left+=e.left+a,x.left=d.leftForLtr(d.x(x.left),x.width),y+=x.height+a}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){let e=this;if(e.options.display){let t=e.ctx;Wd(t,e),e._draw(),jd(t)}}_draw(){let e=this,{options:t,columnSizes:r,lineWidths:i,ctx:a}=e,{align:u,labels:d}=t,m=mr.color,y=Pc(t.rtl,e.left,e.width),x=Mi(d.font),{color:S,padding:L}=d,H=x.size,V=H/2,U;e.drawTitle(),a.textAlign=y.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=x.string;let{boxWidth:Z,boxHeight:ae,itemHeight:le}=KE(d,H),Ae=function(Oe,De,lt){if(isNaN(Z)||Z<=0||isNaN(ae)||ae<0)return;a.save();let ct=tr(lt.lineWidth,1);if(a.fillStyle=tr(lt.fillStyle,m),a.lineCap=tr(lt.lineCap,"butt"),a.lineDashOffset=tr(lt.lineDashOffset,0),a.lineJoin=tr(lt.lineJoin,"miter"),a.lineWidth=ct,a.strokeStyle=tr(lt.strokeStyle,m),a.setLineDash(tr(lt.lineDash,[])),d.usePointStyle){let Dt={radius:Z*Math.SQRT2/2,pointStyle:lt.pointStyle,rotation:lt.rotation,borderWidth:ct},Mt=y.xPlus(Oe,Z/2),en=De+V;zd(a,Dt,Mt,en)}else{let Dt=De+Math.max((H-ae)/2,0),Mt=y.leftForLtr(Oe,Z),en=Gp(lt.borderRadius);a.beginPath(),Object.values(en).some(Yt=>Yt!==0)?Ud(a,{x:Mt,y:Dt,w:Z,h:ae,radius:en}):a.rect(Mt,Dt,Z,ae),a.fill(),ct!==0&&a.stroke()}a.restore()},ve=function(Oe,De,lt){ju(a,lt.text,Oe,De+le/2,x,{strikethrough:lt.hidden,textAlign:y.textAlign(lt.textAlign)})},b=e.isHorizontal(),te=this._computeTitleHeight();b?U={x:Po(u,e.left+L,e.right-i[0]),y:e.top+L+te,line:0}:U={x:e.left+L,y:Po(u,e.top+te+L,e.bottom-r[0].height),line:0},Dv(e.ctx,t.textDirection);let ye=le+L;e.legendItems.forEach((Oe,De)=>{a.strokeStyle=Oe.fontColor||S,a.fillStyle=Oe.fontColor||S;let lt=a.measureText(Oe.text).width,ct=y.textAlign(Oe.textAlign||(Oe.textAlign=d.textAlign)),Dt=Z+V+lt,Mt=U.x,en=U.y;y.setWidth(e.width),b?De>0&&Mt+Dt+L>e.right&&(en=U.y+=ye,U.line++,Mt=U.x=Po(u,e.left+L,e.right-i[U.line])):De>0&&en+ye>e.bottom&&(Mt=U.x=Mt+r[U.line].width+L,U.line++,en=U.y=Po(u,e.top+te+L,e.bottom-r[U.line].height));let Yt=y.x(Mt);Ae(Yt,en,Oe),Mt=j_(ct,Mt+Z+V,b?Mt+Dt:e.right,t.rtl),ve(y.x(Mt),en,Oe),b?U.x+=Dt+L:U.y+=ye}),kv(e.ctx,t.textDirection)}drawTitle(){let e=this,t=e.options,r=t.title,i=Mi(r.font),a=jo(r.padding);if(!r.display)return;let u=Pc(t.rtl,e.left,e.width),d=e.ctx,m=r.position,y=i.size/2,x=a.top+y,S,L=e.left,H=e.width;if(this.isHorizontal())H=Math.max(...e.lineWidths),S=e.top+x,L=Po(t.align,L,e.right-H);else{let U=e.columnSizes.reduce((Z,ae)=>Math.max(Z,ae.height),0);S=x+Po(t.align,e.top,e.bottom-U-t.labels.padding-e._computeTitleHeight())}let V=Po(m,L,L+H);d.textAlign=u.textAlign(Wp(m)),d.textBaseline="middle",d.strokeStyle=r.color,d.fillStyle=r.color,d.font=i.string,ju(d,r.text,V,S,i)}_computeTitleHeight(){let e=this.options.title,t=Mi(e.font),r=jo(e.padding);return e.display?t.lineHeight+r.height:0}_getLegendItemAt(e,t){let r=this,i,a,u;if(e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom){for(u=r.legendHitBoxes,i=0;i<u.length;++i)if(a=u[i],e>=a.left&&e<=a.left+a.width&&t>=a.top&&t<=a.top+a.height)return r.legendItems[i]}return null}handleEvent(e){let t=this,r=t.options;if(!EP(e.type,r))return;let i=t._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"){let a=t._hoveredItem,u=xP(a,i);a&&!u&&ui(r.onLeave,[e,a,t],t),t._hoveredItem=i,i&&!u&&ui(r.onHover,[e,i,t],t)}else i&&ui(r.onClick,[e,i,t],t)}};function EP(n,e){return!!(n==="mousemove"&&(e.onHover||e.onLeave)||e.onClick&&(n==="click"||n==="mouseup"))}var CP={id:"legend",_element:Vv,start(n,e,t){let r=n.legend=new Vv({ctx:n.ctx,options:t,chart:n});ra.configure(n,r,t),ra.addBox(n,r)},stop(n){ra.removeBox(n,n.legend),delete n.legend},beforeUpdate(n,e,t){let r=n.legend;ra.configure(n,r,t),r.options=t},afterUpdate(n){let e=n.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(n,e){e.replay||n.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(n,e,t){let r=e.datasetIndex,i=t.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:n=>n.chart.options.color,boxWidth:40,padding:10,generateLabels(n){let e=n.data.datasets,{labels:{usePointStyle:t,pointStyle:r,textAlign:i,color:a}}=n.legend.options;return n._getSortedDatasetMetas().map(u=>{let d=u.controller.getStyle(t?0:void 0),m=jo(d.borderWidth);return{text:e[u.index].label,fillStyle:d.backgroundColor,fontColor:a,hidden:!u.visible,lineCap:d.borderCapStyle,lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:(m.width+m.height)/4,strokeStyle:d.borderColor,pointStyle:r||d.pointStyle,rotation:d.rotation,textAlign:i||d.textAlign,borderRadius:0,datasetIndex:u.index}},this)}},title:{color:n=>n.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:n=>!n.startsWith("on"),labels:{_scriptable:n=>!["generateLabels","filter","sort"].includes(n)}}},lm=class extends Ma{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){let r=this,i=r.options;if(r.left=0,r.top=0,!i.display){r.width=r.height=r.right=r.bottom=0;return}r.width=r.right=e,r.height=r.bottom=t;let a=li(i.text)?i.text.length:1;r._padding=jo(i.padding);let u=a*Mi(i.font).lineHeight+r._padding.height;r.isHorizontal()?r.height=u:r.width=u}isHorizontal(){let e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){let{top:t,left:r,bottom:i,right:a,options:u}=this,d=u.align,m=0,y,x,S;return this.isHorizontal()?(x=Po(d,r,a),S=t+e,y=a-r):(u.position==="left"?(x=r+e,S=Po(d,i,t),m=Ti*-.5):(x=a-e,S=Po(d,t,i),m=Ti*.5),y=i-t),{titleX:x,titleY:S,maxWidth:y,rotation:m}}draw(){let e=this,t=e.ctx,r=e.options;if(!r.display)return;let i=Mi(r.font),u=i.lineHeight/2+e._padding.top,{titleX:d,titleY:m,maxWidth:y,rotation:x}=e._drawArgs(u);ju(t,r.text,0,0,i,{color:r.color,maxWidth:y,rotation:x,textAlign:Wp(r.align),textBaseline:"middle",translation:[d,m]})}};function SP(n,e){let t=new lm({ctx:n.ctx,options:e,chart:n});ra.configure(n,t,e),ra.addBox(n,t),n.titleBlock=t}var TP={id:"title",_element:lm,start(n,e,t){SP(n,t)},stop(n){let e=n.titleBlock;ra.removeBox(n,e),delete n.titleBlock},beforeUpdate(n,e,t){let r=n.titleBlock;ra.configure(n,r,t),r.options=t},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Rv=new WeakMap,MP={id:"subtitle",start(n,e,t){let r=new lm({ctx:n.ctx,options:t,chart:n});ra.configure(n,r,t),ra.addBox(n,r),Rv.set(n,r)},stop(n){ra.removeBox(n,Rv.get(n)),Rv.delete(n)},beforeUpdate(n,e,t){let r=Rv.get(n);ra.configure(n,r,t),r.options=t},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},im={average(n){if(!n.length)return!1;let e,t,r=0,i=0,a=0;for(e=0,t=n.length;e<t;++e){let u=n[e].element;if(u&&u.hasValue()){let d=u.tooltipPosition();r+=d.x,i+=d.y,++a}}return{x:r/a,y:i/a}},nearest(n,e){if(!n.length)return!1;let t=e.x,r=e.y,i=Number.POSITIVE_INFINITY,a,u,d;for(a=0,u=n.length;a<u;++a){let m=n[a].element;if(m&&m.hasValue()){let y=m.getCenterPoint(),x=qp(e,y);x<i&&(i=x,d=m)}}if(d){let m=d.tooltipPosition();t=m.x,r=m.y}return{x:t,y:r}}};function ou(n,e){return e&&(li(e)?Array.prototype.push.apply(n,e):n.push(e)),n}function Vu(n){return(typeof n=="string"||n instanceof String)&&n.indexOf(`
`)>-1?n.split(`
`):n}function AP(n,e){let{element:t,datasetIndex:r,index:i}=e,a=n.getDatasetMeta(r).controller,{label:u,value:d}=a.getLabelAndValue(i);return{chart:n,label:u,parsed:a.getParsed(i),raw:n.data.datasets[r].data[i],formattedValue:d,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:t}}function XE(n,e){let t=n._chart.ctx,{body:r,footer:i,title:a}=n,{boxWidth:u,boxHeight:d}=e,m=Mi(e.bodyFont),y=Mi(e.titleFont),x=Mi(e.footerFont),S=a.length,L=i.length,H=r.length,V=jo(e.padding),U=V.height,Z=0,ae=r.reduce((ve,b)=>ve+b.before.length+b.lines.length+b.after.length,0);if(ae+=n.beforeBody.length+n.afterBody.length,S&&(U+=S*y.lineHeight+(S-1)*e.titleSpacing+e.titleMarginBottom),ae){let ve=e.displayColors?Math.max(d,m.lineHeight):m.lineHeight;U+=H*ve+(ae-H)*m.lineHeight+(ae-1)*e.bodySpacing}L&&(U+=e.footerMarginTop+L*x.lineHeight+(L-1)*e.footerSpacing);let le=0,Ae=function(ve){Z=Math.max(Z,t.measureText(ve).width+le)};return t.save(),t.font=y.string,zr(n.title,Ae),t.font=m.string,zr(n.beforeBody.concat(n.afterBody),Ae),le=e.displayColors?u+2:0,zr(r,ve=>{zr(ve.before,Ae),zr(ve.lines,Ae),zr(ve.after,Ae)}),le=0,t.font=x.string,zr(n.footer,Ae),t.restore(),Z+=V.width,{width:Z,height:U}}function DP(n,e){let{y:t,height:r}=e;return t<r/2?"top":t>n.height-r/2?"bottom":"center"}function kP(n,e,t,r){let{x:i,width:a}=r,u=t.caretSize+t.caretPadding;if(n==="left"&&i+a+u>e.width||n==="right"&&i-a-u<0)return!0}function OP(n,e,t,r){let{x:i,width:a}=t,{width:u,chartArea:{left:d,right:m}}=n,y="center";return r==="center"?y=i<=(d+m)/2?"left":"right":i<=a/2?y="left":i>=u-a/2&&(y="right"),kP(y,n,e,t)&&(y="center"),y}function QE(n,e,t){let r=e.yAlign||DP(n,t);return{xAlign:e.xAlign||OP(n,e,t,r),yAlign:r}}function IP(n,e){let{x:t,width:r}=n;return e==="right"?t-=r:e==="center"&&(t-=r/2),t}function NP(n,e,t){let{y:r,height:i}=n;return e==="top"?r+=t:e==="bottom"?r-=i+t:r-=i/2,r}function JE(n,e,t,r){let{caretSize:i,caretPadding:a,cornerRadius:u}=n,{xAlign:d,yAlign:m}=t,y=i+a,x=u+a,S=IP(e,d),L=NP(e,m,y);return m==="center"?d==="left"?S+=y:d==="right"&&(S-=y):d==="left"?S-=x:d==="right"&&(S+=x),{x:co(S,0,r.width-e.width),y:co(L,0,r.height-e.height)}}function Fv(n,e,t){let r=jo(t.padding);return e==="center"?n.x+n.width/2:e==="right"?n.x+n.width-r.right:n.x+r.left}function ZE(n){return ou([],Vu(n))}function PP(n,e,t){return Object.assign(Object.create(n),{tooltip:e,tooltipItems:t,type:"tooltip"})}function eC(n,e){let t=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return t?n.override(t):n}var um=class extends Ma{constructor(e){super(),this.opacity=0,this._active=[],this._chart=e._chart,this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this,t=e._cachedAnimations;if(t)return t;let r=e._chart,i=e.options.setContext(e.getContext()),a=i.enabled&&r.options.animation&&i.animations,u=new zv(e._chart,a);return a._cacheable&&(e._cachedAnimations=Object.freeze(u)),u}getContext(){let e=this;return e.$context||(e.$context=PP(e._chart.getContext(),e,e._tooltipItems))}getTitle(e,t){let r=this,{callbacks:i}=t,a=i.beforeTitle.apply(r,[e]),u=i.title.apply(r,[e]),d=i.afterTitle.apply(r,[e]),m=[];return m=ou(m,Vu(a)),m=ou(m,Vu(u)),m=ou(m,Vu(d)),m}getBeforeBody(e,t){return ZE(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){let r=this,{callbacks:i}=t,a=[];return zr(e,u=>{let d={before:[],lines:[],after:[]},m=eC(i,u);ou(d.before,Vu(m.beforeLabel.call(r,u))),ou(d.lines,m.label.call(r,u)),ou(d.after,Vu(m.afterLabel.call(r,u))),a.push(d)}),a}getAfterBody(e,t){return ZE(t.callbacks.afterBody.apply(this,[e]))}getFooter(e,t){let r=this,{callbacks:i}=t,a=i.beforeFooter.apply(r,[e]),u=i.footer.apply(r,[e]),d=i.afterFooter.apply(r,[e]),m=[];return m=ou(m,Vu(a)),m=ou(m,Vu(u)),m=ou(m,Vu(d)),m}_createItems(e){let t=this,r=t._active,i=t._chart.data,a=[],u=[],d=[],m=[],y,x;for(y=0,x=r.length;y<x;++y)m.push(AP(t._chart,r[y]));return e.filter&&(m=m.filter((S,L,H)=>e.filter(S,L,H,i))),e.itemSort&&(m=m.sort((S,L)=>e.itemSort(S,L,i))),zr(m,S=>{let L=eC(e.callbacks,S);a.push(L.labelColor.call(t,S)),u.push(L.labelPointStyle.call(t,S)),d.push(L.labelTextColor.call(t,S))}),t.labelColors=a,t.labelPointStyles=u,t.labelTextColors=d,t.dataPoints=m,m}update(e,t){let r=this,i=r.options.setContext(r.getContext()),a=r._active,u,d=[];if(!a.length)r.opacity!==0&&(u={opacity:0});else{let m=im[i.position].call(r,a,r._eventPosition);d=r._createItems(i),r.title=r.getTitle(d,i),r.beforeBody=r.getBeforeBody(d,i),r.body=r.getBody(d,i),r.afterBody=r.getAfterBody(d,i),r.footer=r.getFooter(d,i);let y=r._size=XE(r,i),x=Object.assign({},m,y),S=QE(r._chart,i,x),L=JE(i,x,S,r._chart);r.xAlign=S.xAlign,r.yAlign=S.yAlign,u={opacity:1,x:L.x,y:L.y,width:y.width,height:y.height,caretX:m.x,caretY:m.y}}r._tooltipItems=d,r.$context=void 0,u&&r._resolveAnimations().update(r,u),e&&i.external&&i.external.call(r,{chart:r._chart,tooltip:r,replay:t})}drawCaret(e,t,r,i){let a=this.getCaretPosition(e,r,i);t.lineTo(a.x1,a.y1),t.lineTo(a.x2,a.y2),t.lineTo(a.x3,a.y3)}getCaretPosition(e,t,r){let{xAlign:i,yAlign:a}=this,{cornerRadius:u,caretSize:d}=r,{x:m,y}=e,{width:x,height:S}=t,L,H,V,U,Z,ae;return a==="center"?(Z=y+S/2,i==="left"?(L=m,H=L-d,U=Z+d,ae=Z-d):(L=m+x,H=L+d,U=Z-d,ae=Z+d),V=L):(i==="left"?H=m+u+d:i==="right"?H=m+x-u-d:H=this.caretX,a==="top"?(U=y,Z=U-d,L=H-d,V=H+d):(U=y+S,Z=U+d,L=H+d,V=H-d),ae=U),{x1:L,x2:H,x3:V,y1:U,y2:Z,y3:ae}}drawTitle(e,t,r){let i=this,a=i.title,u=a.length,d,m,y;if(u){let x=Pc(r.rtl,i.x,i.width);for(e.x=Fv(i,r.titleAlign,r),t.textAlign=x.textAlign(r.titleAlign),t.textBaseline="middle",d=Mi(r.titleFont),m=r.titleSpacing,t.fillStyle=r.titleColor,t.font=d.string,y=0;y<u;++y)t.fillText(a[y],x.x(e.x),e.y+d.lineHeight/2),e.y+=d.lineHeight+m,y+1===u&&(e.y+=r.titleMarginBottom-m)}}_drawColorBox(e,t,r,i,a){let u=this,d=u.labelColors[r],m=u.labelPointStyles[r],{boxHeight:y,boxWidth:x}=a,S=Mi(a.bodyFont),L=Fv(u,"left",a),H=i.x(L),V=y<S.lineHeight?(S.lineHeight-y)/2:0,U=t.y+V;if(a.usePointStyle){let Z={radius:Math.min(x,y)/2,pointStyle:m.pointStyle,rotation:m.rotation,borderWidth:1},ae=i.leftForLtr(H,x)+x/2,le=U+y/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,zd(e,Z,ae,le),e.strokeStyle=d.borderColor,e.fillStyle=d.backgroundColor,zd(e,Z,ae,le)}else{e.lineWidth=d.borderWidth||1,e.strokeStyle=d.borderColor,e.setLineDash(d.borderDash||[]),e.lineDashOffset=d.borderDashOffset||0;let Z=i.leftForLtr(H,x),ae=i.leftForLtr(i.xPlus(H,1),x-2),le=Gp(d.borderRadius);Object.values(le).some(Ae=>Ae!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,Ud(e,{x:Z,y:U,w:x,h:y,radius:le}),e.fill(),e.stroke(),e.fillStyle=d.backgroundColor,e.beginPath(),Ud(e,{x:ae,y:U+1,w:x-2,h:y-2,radius:le}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(Z,U,x,y),e.strokeRect(Z,U,x,y),e.fillStyle=d.backgroundColor,e.fillRect(ae,U+1,x-2,y-2))}e.fillStyle=u.labelTextColors[r]}drawBody(e,t,r){let i=this,{body:a}=i,{bodySpacing:u,bodyAlign:d,displayColors:m,boxHeight:y,boxWidth:x}=r,S=Mi(r.bodyFont),L=S.lineHeight,H=0,V=Pc(r.rtl,i.x,i.width),U=function(Oe){t.fillText(Oe,V.x(e.x+H),e.y+L/2),e.y+=L+u},Z=V.textAlign(d),ae,le,Ae,ve,b,te,ye;for(t.textAlign=d,t.textBaseline="middle",t.font=S.string,e.x=Fv(i,Z,r),t.fillStyle=r.bodyColor,zr(i.beforeBody,U),H=m&&Z!=="right"?d==="center"?x/2+1:x+2:0,ve=0,te=a.length;ve<te;++ve){for(ae=a[ve],le=i.labelTextColors[ve],t.fillStyle=le,zr(ae.before,U),Ae=ae.lines,m&&Ae.length&&(i._drawColorBox(t,e,ve,V,r),L=Math.max(S.lineHeight,y)),b=0,ye=Ae.length;b<ye;++b)U(Ae[b]),L=S.lineHeight;zr(ae.after,U)}H=0,L=S.lineHeight,zr(i.afterBody,U),e.y-=u}drawFooter(e,t,r){let i=this,a=i.footer,u=a.length,d,m;if(u){let y=Pc(r.rtl,i.x,i.width);for(e.x=Fv(i,r.footerAlign,r),e.y+=r.footerMarginTop,t.textAlign=y.textAlign(r.footerAlign),t.textBaseline="middle",d=Mi(r.footerFont),t.fillStyle=r.footerColor,t.font=d.string,m=0;m<u;++m)t.fillText(a[m],y.x(e.x),e.y+d.lineHeight/2),e.y+=d.lineHeight+r.footerSpacing}}drawBackground(e,t,r,i){let{xAlign:a,yAlign:u}=this,{x:d,y:m}=e,{width:y,height:x}=r,S=i.cornerRadius;t.fillStyle=i.backgroundColor,t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.beginPath(),t.moveTo(d+S,m),u==="top"&&this.drawCaret(e,t,r,i),t.lineTo(d+y-S,m),t.quadraticCurveTo(d+y,m,d+y,m+S),u==="center"&&a==="right"&&this.drawCaret(e,t,r,i),t.lineTo(d+y,m+x-S),t.quadraticCurveTo(d+y,m+x,d+y-S,m+x),u==="bottom"&&this.drawCaret(e,t,r,i),t.lineTo(d+S,m+x),t.quadraticCurveTo(d,m+x,d,m+x-S),u==="center"&&a==="left"&&this.drawCaret(e,t,r,i),t.lineTo(d,m+S),t.quadraticCurveTo(d,m,d+S,m),t.closePath(),t.fill(),i.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){let t=this,r=t._chart,i=t.$animations,a=i&&i.x,u=i&&i.y;if(a||u){let d=im[e.position].call(t,t._active,t._eventPosition);if(!d)return;let m=t._size=XE(t,e),y=Object.assign({},d,t._size),x=QE(r,e,y),S=JE(e,y,x,r);(a._to!==S.x||u._to!==S.y)&&(t.xAlign=x.xAlign,t.yAlign=x.yAlign,t.width=m.width,t.height=m.height,t.caretX=d.x,t.caretY=d.y,t._resolveAnimations().update(t,S))}}draw(e){let t=this,r=t.options.setContext(t.getContext()),i=t.opacity;if(!i)return;t._updateAnimationTarget(r);let a={width:t.width,height:t.height},u={x:t.x,y:t.y};i=Math.abs(i)<.001?0:i;let d=jo(r.padding),m=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;r.enabled&&m&&(e.save(),e.globalAlpha=i,t.drawBackground(u,e,a,r),Dv(e,r.textDirection),u.y+=d.top,t.drawTitle(u,e,r),t.drawBody(u,e,r),t.drawFooter(u,e,r),kv(e,r.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){let r=this,i=r._active,a=e.map(({datasetIndex:m,index:y})=>{let x=r._chart.getDatasetMeta(m);if(!x)throw new Error("Cannot find a dataset at index "+m);return{datasetIndex:m,element:x.data[y],index:y}}),u=!Hd(i,a),d=r._positionChanged(a,t);(u||d)&&(r._active=a,r._eventPosition=t,r.update(!0))}handleEvent(e,t){let r=this,i=r.options,a=r._active||[],u=!1,d=[];e.type!=="mouseout"&&(d=r._chart.getElementsAtEventForMode(e,i.mode,i,t),i.reverse&&d.reverse());let m=r._positionChanged(d,e);return u=t||!Hd(d,a)||m,u&&(r._active=d,(i.enabled||i.external)&&(r._eventPosition={x:e.x,y:e.y},r.update(!0,t))),u}_positionChanged(e,t){let{caretX:r,caretY:i,options:a}=this,u=im[a.position].call(this,e,t);return u!==!1&&(r!==u.x||i!==u.y)}};um.positioners=im;var LP={id:"tooltip",_element:um,positioners:im,afterInit(n,e,t){t&&(n.tooltip=new um({_chart:n,options:t}))},beforeUpdate(n,e,t){n.tooltip&&n.tooltip.initialize(t)},reset(n,e,t){n.tooltip&&n.tooltip.initialize(t)},afterDraw(n){let e=n.tooltip,t={tooltip:e};n.notifyPlugins("beforeTooltipDraw",t)!==!1&&(e&&e.draw(n.ctx),n.notifyPlugins("afterTooltipDraw",t))},afterEvent(n,e){if(n.tooltip){let t=e.replay;n.tooltip.handleEvent(e.event,t)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(n,e)=>e.bodyFont.size,boxWidth:(n,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Dl,title(n){if(n.length>0){let e=n[0],t=e.chart.data.labels,r=t?t.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return t[e.dataIndex]}return""},afterTitle:Dl,beforeBody:Dl,beforeLabel:Dl,label(n){if(this&&this.options&&this.options.mode==="dataset")return n.label+": "+n.formattedValue||n.formattedValue;let e=n.dataset.label||"";e&&(e+=": ");let t=n.formattedValue;return Mr(t)||(e+=t),e},labelColor(n){let t=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(n){let t=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:Dl,afterBody:Dl,beforeFooter:Dl,footer:Dl,afterFooter:Dl}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:n=>n!=="filter"&&n!=="itemSort"&&n!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},RP=Object.freeze({__proto__:null,Decimation:rP,Filler:wP,Legend:CP,SubTitle:MP,Title:TP,Tooltip:LP}),FP=(n,e,t)=>typeof e=="string"?n.push(e)-1:isNaN(e)?null:t;function BP(n,e,t){let r=n.indexOf(e);if(r===-1)return FP(n,e,t);let i=n.lastIndexOf(e);return r!==i?t:r}var HP=(n,e)=>n===null?null:co(Math.round(n),0,e),th=class extends Yu{constructor(e){super(e),this._startValue=void 0,this._valueRange=0}parse(e,t){if(Mr(e))return null;let r=this.getLabels();return t=isFinite(t)&&r[t]===e?t:BP(r,e,tr(t,e)),HP(t,r.length-1)}determineDataLimits(){let e=this,{minDefined:t,maxDefined:r}=e.getUserBounds(),{min:i,max:a}=e.getMinMax(!0);e.options.bounds==="ticks"&&(t||(i=0),r||(a=e.getLabels().length-1)),e.min=i,e.max=a}buildTicks(){let e=this,t=e.min,r=e.max,i=e.options.offset,a=[],u=e.getLabels();u=t===0&&r===u.length-1?u:u.slice(t,r+1),e._valueRange=Math.max(u.length-(i?0:1),1),e._startValue=e.min-(i?.5:0);for(let d=t;d<=r;d++)a.push({value:d});return a}getLabelForValue(e){let r=this.getLabels();return e>=0&&e<r.length?r[e]:e}configure(){let e=this;super.configure(),e.isHorizontal()||(e._reversePixels=!e._reversePixels)}getPixelForValue(e){let t=this;return typeof e!="number"&&(e=t.parse(e)),e===null?NaN:t.getPixelForDecimal((e-t._startValue)/t._valueRange)}getPixelForTick(e){let t=this,r=t.ticks;return e<0||e>r.length-1?null:t.getPixelForValue(r[e].value)}getValueForPixel(e){let t=this;return Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange)}getBasePixel(){return this.bottom}};th.id="category";th.defaults={ticks:{callback:th.prototype.getLabelForValue}};function qP(n,e){let t=[],{bounds:i,step:a,min:u,max:d,precision:m,count:y,maxTicks:x,maxDigits:S,includeBounds:L}=n,H=a||1,V=x-1,{min:U,max:Z}=e,ae=!Mr(u),le=!Mr(d),Ae=!Mr(y),ve=(Z-U)/(S+1),b=pv((Z-U)/V/H)*H,te,ye,Oe,De;if(b<1e-14&&!ae&&!le)return[{value:U},{value:Z}];De=Math.ceil(Z/b)-Math.floor(U/b),De>V&&(b=pv(De*b/V/H)*H),Mr(m)||(te=Math.pow(10,m),b=Math.ceil(b*te)/te),i==="ticks"?(ye=Math.floor(U/b)*b,Oe=Math.ceil(Z/b)*b):(ye=U,Oe=Z),ae&&le&&a&&G_((d-u)/a,b/1e3)?(De=Math.round(Math.min((d-u)/b,x)),b=(d-u)/De,ye=u,Oe=d):Ae?(ye=ae?u:ye,Oe=le?d:Oe,De=y-1,b=(Oe-ye)/De):(De=(Oe-ye)/b,Af(De,Math.round(De),b/1e3)?De=Math.round(De):De=Math.ceil(De));let lt=Math.max(gv(b),gv(ye));te=Math.pow(10,Mr(m)?lt:m),ye=Math.round(ye*te)/te,Oe=Math.round(Oe*te)/te;let ct=0;for(ae&&(L&&ye!==u?(t.push({value:u}),ye<u&&ct++,Af(Math.round((ye+ct*b)*te)/te,u,tC(u,ve,n))&&ct++):ye<u&&ct++);ct<De;++ct)t.push({value:Math.round((ye+ct*b)*te)/te});return le&&L&&Oe!==d?Af(t[t.length-1].value,d,tC(d,ve,n))?t[t.length-1].value=d:t.push({value:d}):(!le||Oe===d)&&t.push({value:Oe}),t}function tC(n,e,{horizontal:t,minRotation:r}){let i=Ps(r),a=(t?Math.sin(i):Math.cos(i))||.001,u=.75*e*(""+n).length;return Math.min(e/a,u)}var nh=class extends Yu{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return Mr(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){let e=this,{beginAtZero:t}=e.options,{minDefined:r,maxDefined:i}=e.getUserBounds(),{min:a,max:u}=e,d=y=>a=r?a:y,m=y=>u=i?u:y;if(t){let y=$s(a),x=$s(u);y<0&&x<0?m(0):y>0&&x>0&&d(0)}if(a===u){let y=1;(u>=Number.MAX_SAFE_INTEGER||a<=Number.MIN_SAFE_INTEGER)&&(y=Math.abs(u*.05)),m(u+y),t||d(a-y)}e.min=a,e.max=u}getTickLimit(){let e=this,t=e.options.ticks,{maxTicksLimit:r,stepSize:i}=t,a;return i?a=Math.ceil(e.max/i)-Math.floor(e.min/i)+1:(a=e.computeTickLimit(),r=r||11),r&&(a=Math.min(r,a)),a}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let e=this,t=e.options,r=t.ticks,i=e.getTickLimit();i=Math.max(2,i);let a={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:r.precision,step:r.stepSize,count:r.count,maxDigits:e._maxDigits(),horizontal:e.isHorizontal(),minRotation:r.minRotation||0,includeBounds:r.includeBounds!==!1},u=e._range||e,d=qP(a,u);return t.bounds==="ticks"&&mv(d,e,"value"),t.reverse?(d.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),d}configure(){let e=this,t=e.ticks,r=e.min,i=e.max;if(super.configure(),e.options.offset&&t.length){let a=(i-r)/Math.max(t.length-1,1)/2;r-=a,i+=a}e._startValue=r,e._endValue=i,e._valueRange=i-r}getLabelForValue(e){return kf(e,this.chart.options.locale)}},cm=class extends nh{determineDataLimits(){let e=this,{min:t,max:r}=e.getMinMax(!0);e.min=zi(t)?t:0,e.max=zi(r)?r:1,e.handleTickRangeOptions()}computeTickLimit(){let e=this,t=e.isHorizontal(),r=t?e.width:e.height,i=Ps(e.options.ticks.minRotation),a=(t?Math.sin(i):Math.cos(i))||.001,u=e._resolveTickFontOptions(0);return Math.ceil(r/Math.min(40,u.lineHeight/a))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}};cm.id="linear";cm.defaults={ticks:{callback:Yv.formatters.numeric}};function nC(n){return n/Math.pow(10,Math.floor(Xa(n)))===1}function zP(n,e){let t=Math.floor(Xa(e.max)),r=Math.ceil(e.max/Math.pow(10,t)),i=[],a=Ka(n.min,Math.pow(10,Math.floor(Xa(e.min)))),u=Math.floor(Xa(a)),d=Math.floor(a/Math.pow(10,u)),m=u<0?Math.pow(10,Math.abs(u)):1;do i.push({value:a,major:nC(a)}),++d,d===10&&(d=1,++u,m=u>=0?1:m),a=Math.round(d*Math.pow(10,u)*m)/m;while(u<t||u===t&&d<r);let y=Ka(n.max,a);return i.push({value:y,major:nC(a)}),i}var fm=class extends Yu{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){let r=nh.prototype.parse.apply(this,[e,t]);if(r===0){this._zero=!0;return}return zi(r)&&r>0?r:null}determineDataLimits(){let e=this,{min:t,max:r}=e.getMinMax(!0);e.min=zi(t)?Math.max(0,t):null,e.max=zi(r)?Math.max(0,r):null,e.options.beginAtZero&&(e._zero=!0),e.handleTickRangeOptions()}handleTickRangeOptions(){let e=this,{minDefined:t,maxDefined:r}=e.getUserBounds(),i=e.min,a=e.max,u=y=>i=t?i:y,d=y=>a=r?a:y,m=(y,x)=>Math.pow(10,Math.floor(Xa(y))+x);i===a&&(i<=0?(u(1),d(10)):(u(m(i,-1)),d(m(a,1)))),i<=0&&u(m(a,-1)),a<=0&&d(m(i,1)),e._zero&&e.min!==e._suggestedMin&&i===m(e.min,0)&&u(m(i,-1)),e.min=i,e.max=a}buildTicks(){let e=this,t=e.options,r={min:e._userMin,max:e._userMax},i=zP(r,e);return t.bounds==="ticks"&&mv(i,e,"value"),t.reverse?(i.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),i}getLabelForValue(e){return e===void 0?"0":kf(e,this.chart.options.locale)}configure(){let e=this,t=e.min;super.configure(),e._startValue=Xa(t),e._valueRange=Xa(e.max)-Xa(t)}getPixelForValue(e){let t=this;return(e===void 0||e===0)&&(e=t.min),e===null||isNaN(e)?NaN:t.getPixelForDecimal(e===t.min?0:(Xa(e)-t._startValue)/t._valueRange)}getValueForPixel(e){let t=this,r=t.getDecimalForPixel(e);return Math.pow(10,t._startValue+r*t._valueRange)}};fm.id="logarithmic";fm.defaults={ticks:{callback:Yv.formatters.logarithmic,major:{enabled:!0}}};function R0(n){let e=n.ticks;if(e.display&&n.display){let t=jo(e.backdropPadding);return tr(e.font&&e.font.size,mr.font.size)+t.height}return 0}function WP(n,e,t){return t=li(t)?t:[t],{w:t0(n,e.string,t),h:t.length*e.lineHeight}}function rC(n,e,t,r,i){return n===r||n===i?{start:e-t/2,end:e+t/2}:n<r||n>i?{start:e-t,end:e}:{start:e,end:e+t}}function jP(n){let e={l:0,r:n.width,t:0,b:n.height-n.paddingTop},t={},r=[],i=[],a=n.getLabels().length;for(let u=0;u<a;u++){let d=n.options.pointLabels.setContext(n.getPointLabelContext(u));i[u]=d.padding;let m=n.getPointPosition(u,n.drawingArea+i[u]),y=Mi(d.font),x=WP(n.ctx,y,n._pointLabels[u]);r[u]=x;let S=n.getIndexAngle(u),L=Up(S),H=rC(L,m.x,x.w,0,180),V=rC(L,m.y,x.h,90,270);H.start<e.l&&(e.l=H.start,t.l=S),H.end>e.r&&(e.r=H.end,t.r=S),V.start<e.t&&(e.t=V.start,t.t=S),V.end>e.b&&(e.b=V.end,t.b=S)}n._setReductions(n.drawingArea,e,t),n._pointLabelItems=UP(n,r,i)}function UP(n,e,t){let r=[],i=n.getLabels().length,a=n.options,u=R0(a),d=n.getDistanceFromCenterForValue(a.ticks.reverse?n.min:n.max);for(let m=0;m<i;m++){let y=m===0?u/2:0,x=n.getPointPosition(m,d+y+t[m]),S=Up(n.getIndexAngle(m)),L=e[m],H=$P(x.y,L.h,S),V=VP(S),U=YP(x.x,L.w,V);r.push({x:x.x,y:H,textAlign:V,left:U,top:H,right:U+L.w,bottom:H+L.h})}return r}function VP(n){return n===0||n===180?"center":n<180?"left":"right"}function YP(n,e,t){return t==="right"?n-=e:t==="center"&&(n-=e/2),n}function $P(n,e,t){return t===90||t===270?n-=e/2:(t>270||t<90)&&(n-=e),n}function GP(n,e){let{ctx:t,options:{pointLabels:r}}=n;for(let i=e-1;i>=0;i--){let a=r.setContext(n.getPointLabelContext(i)),u=Mi(a.font),{x:d,y:m,textAlign:y,left:x,top:S,right:L,bottom:H}=n._pointLabelItems[i],{backdropColor:V}=a;if(!Mr(V)){let U=jo(a.backdropPadding);t.fillStyle=V,t.fillRect(x-U.left,S-U.top,L-x+U.width,H-S+U.height)}ju(t,n._pointLabels[i],d,m+u.lineHeight/2,u,{color:a.color,textAlign:y,textBaseline:"middle"})}}function MC(n,e,t,r){let{ctx:i}=n;if(t)i.arc(n.xCenter,n.yCenter,e,0,Qr);else{let a=n.getPointPosition(0,e);i.moveTo(a.x,a.y);for(let u=1;u<r;u++)a=n.getPointPosition(u,e),i.lineTo(a.x,a.y)}}function KP(n,e,t,r){let i=n.ctx,a=e.circular,{color:u,lineWidth:d}=e;!a&&!r||!u||!d||t<0||(i.save(),i.strokeStyle=u,i.lineWidth=d,i.setLineDash(e.borderDash),i.lineDashOffset=e.borderDashOffset,i.beginPath(),MC(n,t,a,r),i.closePath(),i.stroke(),i.restore())}function Bv(n){return Oc(n)?n:0}function XP(n,e,t){return Object.assign(Object.create(n),{label:t,index:e,type:"pointLabel"})}var Nf=class extends nh{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=R0(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2}determineDataLimits(){let e=this,{min:t,max:r}=e.getMinMax(!1);e.min=zi(t)&&!isNaN(t)?t:0,e.max=zi(r)&&!isNaN(r)?r:0,e.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/R0(this.options))}generateTickLabels(e){let t=this;nh.prototype.generateTickLabels.call(t,e),t._pointLabels=t.getLabels().map((r,i)=>{let a=ui(t.options.pointLabels.callback,[r,i],t);return a||a===0?a:""})}fit(){let e=this,t=e.options;t.display&&t.pointLabels.display?jP(e):e.setCenterPoint(0,0,0,0)}_setReductions(e,t,r){let i=this,a=t.l/Math.sin(r.l),u=Math.max(t.r-i.width,0)/Math.sin(r.r),d=-t.t/Math.cos(r.t),m=-Math.max(t.b-(i.height-i.paddingTop),0)/Math.cos(r.b);a=Bv(a),u=Bv(u),d=Bv(d),m=Bv(m),i.drawingArea=Math.max(e/2,Math.min(Math.floor(e-(a+u)/2),Math.floor(e-(d+m)/2))),i.setCenterPoint(a,u,d,m)}setCenterPoint(e,t,r,i){let a=this,u=a.width-t-a.drawingArea,d=e+a.drawingArea,m=r+a.drawingArea,y=a.height-a.paddingTop-i-a.drawingArea;a.xCenter=Math.floor((d+u)/2+a.left),a.yCenter=Math.floor((m+y)/2+a.top+a.paddingTop)}getIndexAngle(e){let t=Qr/this.getLabels().length,r=this.options.startAngle||0;return Ns(e*t+Ps(r))}getDistanceFromCenterForValue(e){let t=this;if(Mr(e))return NaN;let r=t.drawingArea/(t.max-t.min);return t.options.reverse?(t.max-e)*r:(e-t.min)*r}getValueForDistanceFromCenter(e){if(Mr(e))return NaN;let t=this,r=e/(t.drawingArea/(t.max-t.min));return t.options.reverse?t.max-r:t.min+r}getPointLabelContext(e){let t=this,r=t._pointLabels||[];if(e>=0&&e<r.length){let i=r[e];return XP(t.getContext(),e,i)}}getPointPosition(e,t){let r=this,i=r.getIndexAngle(e)-qi;return{x:Math.cos(i)*t+r.xCenter,y:Math.sin(i)*t+r.yCenter,angle:i}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){let{left:t,top:r,right:i,bottom:a}=this._pointLabelItems[e];return{left:t,top:r,right:i,bottom:a}}drawBackground(){let e=this,{backgroundColor:t,grid:{circular:r}}=e.options;if(t){let i=e.ctx;i.save(),i.beginPath(),MC(e,e.getDistanceFromCenterForValue(e._endValue),r,e.getLabels().length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){let e=this,t=e.ctx,r=e.options,{angleLines:i,grid:a}=r,u=e.getLabels().length,d,m,y;if(r.pointLabels.display&&GP(e,u),a.display&&e.ticks.forEach((x,S)=>{if(S!==0){m=e.getDistanceFromCenterForValue(x.value);let L=a.setContext(e.getContext(S-1));KP(e,L,m,u)}}),i.display){for(t.save(),d=e.getLabels().length-1;d>=0;d--){let x=i.setContext(e.getPointLabelContext(d)),{color:S,lineWidth:L}=x;!L||!S||(t.lineWidth=L,t.strokeStyle=S,t.setLineDash(x.borderDash),t.lineDashOffset=x.borderDashOffset,m=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),y=e.getPointPosition(d,m),t.beginPath(),t.moveTo(e.xCenter,e.yCenter),t.lineTo(y.x,y.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){let e=this,t=e.ctx,r=e.options,i=r.ticks;if(!i.display)return;let a=e.getIndexAngle(0),u,d;t.save(),t.translate(e.xCenter,e.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",e.ticks.forEach((m,y)=>{if(y===0&&!r.reverse)return;let x=i.setContext(e.getContext(y)),S=Mi(x.font);if(u=e.getDistanceFromCenterForValue(e.ticks[y].value),x.showLabelBackdrop){t.font=S.string,d=t.measureText(m.label).width,t.fillStyle=x.backdropColor;let L=jo(x.backdropPadding);t.fillRect(-d/2-L.left,-u-S.size/2-L.top,d+L.width,S.size+L.height)}ju(t,m.label,0,-u,S,{color:x.color})}),t.restore()}drawTitle(){}};Nf.id="radialLinear";Nf.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Yv.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(n){return n},padding:5}};Nf.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};Nf.descriptors={angleLines:{_fallback:"grid"}};var $v={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Qa=Object.keys($v);function QP(n,e){return n-e}function iC(n,e){if(Mr(e))return null;let t=n._adapter,{parser:r,round:i,isoWeekday:a}=n._parseOpts,u=e;return typeof r=="function"&&(u=r(u)),zi(u)||(u=typeof r=="string"?t.parse(u,r):t.parse(u)),u===null?null:(i&&(u=i==="week"&&(Oc(a)||a===!0)?t.startOf(u,"isoWeek",a):t.startOf(u,i)),+u)}function oC(n,e,t,r){let i=Qa.length;for(let a=Qa.indexOf(n);a<i-1;++a){let u=$v[Qa[a]],d=u.steps?u.steps:Number.MAX_SAFE_INTEGER;if(u.common&&Math.ceil((t-e)/(d*u.size))<=r)return Qa[a]}return Qa[i-1]}function JP(n,e,t,r,i){for(let a=Qa.length-1;a>=Qa.indexOf(t);a--){let u=Qa[a];if($v[u].common&&n._adapter.diff(i,r,u)>=e-1)return u}return Qa[t?Qa.indexOf(t):0]}function ZP(n){for(let e=Qa.indexOf(n)+1,t=Qa.length;e<t;++e)if($v[Qa[e]].common)return Qa[e]}function aC(n,e,t){if(!t)n[e]=!0;else if(t.length){let{lo:r,hi:i}=Kp(t,e),a=t[r]>=e?t[r]:t[i];n[a]=!0}}function eL(n,e,t,r){let i=n._adapter,a=+i.startOf(e[0].value,r),u=e[e.length-1].value,d,m;for(d=a;d<=u;d=+i.add(d,1,r))m=t[d],m>=0&&(e[m].major=!0);return e}function sC(n,e,t){let r=[],i={},a=e.length,u,d;for(u=0;u<a;++u)d=e[u],i[d]=u,r.push({value:d,major:!1});return a===0||!t?r:eL(n,r,i,t)}var Pf=class extends Yu{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t){let r=e.time||(e.time={}),i=this._adapter=new F0._date(e.adapters.date);Mf(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return e===void 0?null:iC(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this,t=e.options,r=e._adapter,i=t.time.unit||"day",{min:a,max:u,minDefined:d,maxDefined:m}=e.getUserBounds();function y(x){!d&&!isNaN(x.min)&&(a=Math.min(a,x.min)),!m&&!isNaN(x.max)&&(u=Math.max(u,x.max))}(!d||!m)&&(y(e._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&y(e.getMinMax(!1))),a=zi(a)&&!isNaN(a)?a:+r.startOf(Date.now(),i),u=zi(u)&&!isNaN(u)?u:+r.endOf(Date.now(),i)+1,e.min=Math.min(a,u-1),e.max=Math.max(a+1,u)}_getLabelBounds(){let e=this.getLabelTimestamps(),t=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],r=e[e.length-1]),{min:t,max:r}}buildTicks(){let e=this,t=e.options,r=t.time,i=t.ticks,a=i.source==="labels"?e.getLabelTimestamps():e._generate();t.bounds==="ticks"&&a.length&&(e.min=e._userMin||a[0],e.max=e._userMax||a[a.length-1]);let u=e.min,d=e.max,m=a0(a,u,d);return e._unit=r.unit||(i.autoSkip?oC(r.minUnit,e.min,e.max,e._getLabelCapacity(u)):JP(e,m.length,r.minUnit,e.min,e.max)),e._majorUnit=!i.major.enabled||e._unit==="year"?void 0:ZP(e._unit),e.initOffsets(a),t.reverse&&m.reverse(),sC(e,m,e._majorUnit)}initOffsets(e){let t=this,r=0,i=0,a,u;t.options.offset&&e.length&&(a=t.getDecimalForValue(e[0]),e.length===1?r=1-a:r=(t.getDecimalForValue(e[1])-a)/2,u=t.getDecimalForValue(e[e.length-1]),e.length===1?i=u:i=(u-t.getDecimalForValue(e[e.length-2]))/2);let d=e.length<3?.5:.25;r=co(r,0,d),i=co(i,0,d),t._offsets={start:r,end:i,factor:1/(r+1+i)}}_generate(){let e=this,t=e._adapter,r=e.min,i=e.max,a=e.options,u=a.time,d=u.unit||oC(u.minUnit,r,i,e._getLabelCapacity(r)),m=tr(u.stepSize,1),y=d==="week"?u.isoWeekday:!1,x=Oc(y)||y===!0,S={},L=r,H,V;if(x&&(L=+t.startOf(L,"isoWeek",y)),L=+t.startOf(L,x?"day":d),t.diff(i,r,d)>1e5*m)throw new Error(r+" and "+i+" are too far apart with stepSize of "+m+" "+d);let U=a.ticks.source==="data"&&e.getDataTimestamps();for(H=L,V=0;H<i;H=+t.add(H,m,d),V++)aC(S,H,U);return(H===i||a.bounds==="ticks"||V===1)&&aC(S,H,U),Object.keys(S).sort((Z,ae)=>Z-ae).map(Z=>+Z)}getLabelForValue(e){let t=this,r=t._adapter,i=t.options.time;return i.tooltipFormat?r.format(e,i.tooltipFormat):r.format(e,i.displayFormats.datetime)}_tickFormatFunction(e,t,r,i){let a=this,u=a.options,d=u.time.displayFormats,m=a._unit,y=a._majorUnit,x=m&&d[m],S=y&&d[y],L=r[t],H=y&&S&&L&&L.major,V=a._adapter.format(e,i||(H?S:x)),U=u.ticks.callback;return U?ui(U,[V,t,r],a):V}generateTickLabels(e){let t,r,i;for(t=0,r=e.length;t<r;++t)i=e[t],i.label=this._tickFormatFunction(i.value,t,e)}getDecimalForValue(e){let t=this;return e===null?NaN:(e-t.min)/(t.max-t.min)}getPixelForValue(e){let t=this,r=t._offsets,i=t.getDecimalForValue(e);return t.getPixelForDecimal((r.start+i)*r.factor)}getValueForPixel(e){let t=this,r=t._offsets,i=t.getDecimalForPixel(e)/r.factor-r.end;return t.min+i*(t.max-t.min)}_getLabelSize(e){let t=this,r=t.options.ticks,i=t.ctx.measureText(e).width,a=Ps(t.isHorizontal()?r.maxRotation:r.minRotation),u=Math.cos(a),d=Math.sin(a),m=t._resolveTickFontOptions(0).size;return{w:i*u+m*d,h:i*d+m*u}}_getLabelCapacity(e){let t=this,r=t.options.time,i=r.displayFormats,a=i[r.unit]||i.millisecond,u=t._tickFormatFunction(e,0,sC(t,[e],t._majorUnit),a),d=t._getLabelSize(u),m=Math.floor(t.isHorizontal()?t.width/d.w:t.height/d.h)-1;return m>0?m:1}getDataTimestamps(){let e=this,t=e._cache.data||[],r,i;if(t.length)return t;let a=e.getMatchingVisibleMetas();if(e._normalized&&a.length)return e._cache.data=a[0].controller.getAllParsedValues(e);for(r=0,i=a.length;r<i;++r)t=t.concat(a[r].controller.getAllParsedValues(e));return e._cache.data=e.normalize(t)}getLabelTimestamps(){let e=this,t=e._cache.labels||[],r,i;if(t.length)return t;let a=e.getLabels();for(r=0,i=a.length;r<i;++r)t.push(iC(e,a[r]));return e._cache.labels=e._normalized?t:e.normalize(t)}normalize(e){return xv(e.sort(QP))}};Pf.id="time";Pf.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};function Hv(n,e,t){let r=0,i=n.length-1,a,u,d,m;t?(e>=n[r].pos&&e<=n[i].pos&&({lo:r,hi:i}=kl(n,"pos",e)),{pos:a,time:d}=n[r],{pos:u,time:m}=n[i]):(e>=n[r].time&&e<=n[i].time&&({lo:r,hi:i}=kl(n,"time",e)),{time:a,pos:d}=n[r],{time:u,pos:m}=n[i]);let y=u-a;return y?d+(m-d)*(e-a)/y:d}var dm=class extends Pf{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let e=this,t=e._getTimestampsForTable(),r=e._table=e.buildLookupTable(t);e._minPos=Hv(r,e.min),e._tableRange=Hv(r,e.max)-e._minPos,super.initOffsets(t)}buildLookupTable(e){let{min:t,max:r}=this,i=[],a=[],u,d,m,y,x;for(u=0,d=e.length;u<d;++u)y=e[u],y>=t&&y<=r&&i.push(y);if(i.length<2)return[{time:t,pos:0},{time:r,pos:1}];for(u=0,d=i.length;u<d;++u)x=i[u+1],m=i[u-1],y=i[u],Math.round((x+m)/2)!==y&&a.push({time:y,pos:u/(d-1)});return a}_getTimestampsForTable(){let e=this,t=e._cache.all||[];if(t.length)return t;let r=e.getDataTimestamps(),i=e.getLabelTimestamps();return r.length&&i.length?t=e.normalize(r.concat(i)):t=r.length?r:i,t=e._cache.all=t,t}getDecimalForValue(e){return(Hv(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){let t=this,r=t._offsets,i=t.getDecimalForPixel(e)/r.factor-r.end;return Hv(t._table,i*t._tableRange+t._minPos,!0)}};dm.id="timeseries";dm.defaults=Pf.defaults;var tL=Object.freeze({__proto__:null,CategoryScale:th,LinearScale:cm,LogarithmicScale:fm,RadialLinearScale:Nf,TimeScale:Pf,TimeSeriesScale:dm}),AC=[PI,ZN,RP,tL];Ol.register(...AC);var DC=Ol;function wn(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function xt(n,e){if(e.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+e.length+" present")}function Bt(n){xt(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||typeof n=="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function rh(n,e){xt(2,arguments);var t=Bt(n),r=wn(e);return isNaN(r)?new Date(NaN):(r&&t.setDate(t.getDate()+r),t)}function Bc(n,e){xt(2,arguments);var t=Bt(n),r=wn(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var i=t.getDate(),a=new Date(t.getTime());a.setMonth(t.getMonth()+r+1,0);var u=a.getDate();return i>=u?a:(t.setFullYear(a.getFullYear(),a.getMonth(),i),t)}function Ks(n,e){xt(2,arguments);var t=Bt(n).getTime(),r=wn(e);return new Date(t+r)}var nL=36e5;function Gv(n,e){xt(2,arguments);var t=wn(e);return Ks(n,t*nL)}function hm(n,e){xt(1,arguments);var t=e||{},r=t.locale,i=r&&r.options&&r.options.weekStartsOn,a=i==null?0:wn(i),u=t.weekStartsOn==null?a:wn(t.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Bt(n),m=d.getDay(),y=(m<u?7:0)+m-u;return d.setDate(d.getDate()-y),d.setHours(0,0,0,0),d}function Hc(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function Lf(n){xt(1,arguments);var e=Bt(n);return e.setHours(0,0,0,0),e}var rL=864e5;function B0(n,e){xt(2,arguments);var t=Lf(n),r=Lf(e),i=t.getTime()-Hc(t),a=r.getTime()-Hc(r);return Math.round((i-a)/rL)}var iL=6e4;function Kv(n,e){xt(2,arguments);var t=wn(e);return Ks(n,t*iL)}function Xv(n,e){xt(2,arguments);var t=wn(e),r=t*3;return Bc(n,r)}function Qv(n,e){xt(2,arguments);var t=wn(e);return Ks(n,t*1e3)}function Jv(n,e){xt(2,arguments);var t=wn(e),r=t*7;return rh(n,r)}function Zv(n,e){xt(2,arguments);var t=wn(e);return Bc(n,t*12)}function qc(n,e){xt(2,arguments);var t=Bt(n),r=Bt(e),i=t.getTime()-r.getTime();return i<0?-1:i>0?1:i}var oL=Math.pow(10,8)*24*60*60*1e3,kC=6e4,OC=36e5;var HH=-oL;function H0(n){return xt(1,arguments),n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function ih(n){if(xt(1,arguments),!H0(n)&&typeof n!="number")return!1;var e=Bt(n);return!isNaN(Number(e))}function q0(n,e){xt(2,arguments);var t=Bt(n),r=Bt(e),i=t.getFullYear()-r.getFullYear(),a=t.getMonth()-r.getMonth();return i*12+a}function z0(n,e){xt(2,arguments);var t=Bt(n),r=Bt(e);return t.getFullYear()-r.getFullYear()}function IC(n,e){var t=n.getFullYear()-e.getFullYear()||n.getMonth()-e.getMonth()||n.getDate()-e.getDate()||n.getHours()-e.getHours()||n.getMinutes()-e.getMinutes()||n.getSeconds()-e.getSeconds()||n.getMilliseconds()-e.getMilliseconds();return t<0?-1:t>0?1:t}function oh(n,e){xt(2,arguments);var t=Bt(n),r=Bt(e),i=IC(t,r),a=Math.abs(B0(t,r));t.setDate(t.getDate()-i*a);var u=+(IC(t,r)===-i),d=i*(a-u);return d===0?0:d}function su(n,e){return xt(2,arguments),Bt(n).getTime()-Bt(e).getTime()}var NC={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(n){return n<0?Math.ceil(n):Math.floor(n)}},aL="trunc";function lu(n){return n?NC[n]:NC[aL]}function ey(n,e,t){xt(2,arguments);var r=su(n,e)/OC;return lu(t?.roundingMethod)(r)}function ty(n,e,t){xt(2,arguments);var r=su(n,e)/kC;return lu(t?.roundingMethod)(r)}function ah(n){xt(1,arguments);var e=Bt(n);return e.setHours(23,59,59,999),e}function sh(n){xt(1,arguments);var e=Bt(n),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(23,59,59,999),e}function W0(n){xt(1,arguments);var e=Bt(n);return ah(e).getTime()===sh(e).getTime()}function lh(n,e){xt(2,arguments);var t=Bt(n),r=Bt(e),i=qc(t,r),a=Math.abs(q0(t,r)),u;if(a<1)u=0;else{t.getMonth()===1&&t.getDate()>27&&t.setDate(30),t.setMonth(t.getMonth()-i*a);var d=qc(t,r)===-i;W0(Bt(n))&&a===1&&qc(n,r)===1&&(d=!1),u=i*(a-Number(d))}return u===0?0:u}function ny(n,e,t){xt(2,arguments);var r=lh(n,e)/3;return lu(t?.roundingMethod)(r)}function ry(n,e,t){xt(2,arguments);var r=su(n,e)/1e3;return lu(t?.roundingMethod)(r)}function iy(n,e,t){xt(2,arguments);var r=oh(n,e)/7;return lu(t?.roundingMethod)(r)}function oy(n,e){xt(2,arguments);var t=Bt(n),r=Bt(e),i=qc(t,r),a=Math.abs(z0(t,r));t.setFullYear(1584),r.setFullYear(1584);var u=qc(t,r)===-i,d=i*(a-Number(u));return d===0?0:d}function ay(n){xt(1,arguments);var e=Bt(n);return e.setSeconds(0,0),e}function sy(n){xt(1,arguments);var e=Bt(n),t=e.getMonth(),r=t-t%3;return e.setMonth(r,1),e.setHours(0,0,0,0),e}function ly(n){xt(1,arguments);var e=Bt(n);return e.setDate(1),e.setHours(0,0,0,0),e}function uy(n){xt(1,arguments);var e=Bt(n),t=new Date(0);return t.setFullYear(e.getFullYear(),0,1),t.setHours(0,0,0,0),t}function cy(n){xt(1,arguments);var e=Bt(n),t=e.getFullYear();return e.setFullYear(t+1,0,0),e.setHours(23,59,59,999),e}function fy(n){xt(1,arguments);var e=Bt(n);return e.setMinutes(59,59,999),e}function dy(n,e){xt(1,arguments);var t=e||{},r=t.locale,i=r&&r.options&&r.options.weekStartsOn,a=i==null?0:wn(i),u=t.weekStartsOn==null?a:wn(t.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Bt(n),m=d.getDay(),y=(m<u?-7:0)+6-(m-u);return d.setDate(d.getDate()+y),d.setHours(23,59,59,999),d}function hy(n){xt(1,arguments);var e=Bt(n);return e.setSeconds(59,999),e}function py(n){xt(1,arguments);var e=Bt(n),t=e.getMonth(),r=t-t%3+3;return e.setMonth(r,0),e.setHours(23,59,59,999),e}function my(n){xt(1,arguments);var e=Bt(n);return e.setMilliseconds(999),e}var sL={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"}},lL=function(n,e,t){var r,i=sL[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r},PC=lL;function pm(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}var uL={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cL={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},fL={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dL={date:pm({formats:uL,defaultWidth:"full"}),time:pm({formats:cL,defaultWidth:"full"}),dateTime:pm({formats:fL,defaultWidth:"full"})},LC=dL;var hL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pL=function(n,e,t,r){return hL[n]},RC=pL;function Rf(n){return function(e,t){var r=t||{},i=r.context?String(r.context):"standalone",a;if(i==="formatting"&&n.formattingValues){var u=n.defaultFormattingWidth||n.defaultWidth,d=r.width?String(r.width):u;a=n.formattingValues[d]||n.formattingValues[u]}else{var m=n.defaultWidth,y=r.width?String(r.width):n.defaultWidth;a=n.values[y]||n.values[m]}var x=n.argumentCallback?n.argumentCallback(e):e;return a[x]}}var mL={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gL={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vL={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"]},yL={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"]},bL={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"}},_L={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"}},wL=function(n,e){var t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},xL={ordinalNumber:wL,era:Rf({values:mL,defaultWidth:"wide"}),quarter:Rf({values:gL,defaultWidth:"wide",argumentCallback:function(n){return n-1}}),month:Rf({values:vL,defaultWidth:"wide"}),day:Rf({values:yL,defaultWidth:"wide"}),dayPeriod:Rf({values:bL,defaultWidth:"wide",formattingValues:_L,defaultFormattingWidth:"wide"})},FC=xL;function Ff(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,i=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],a=e.match(i);if(!a)return null;var u=a[0],d=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],m=Array.isArray(d)?CL(d,function(S){return S.test(u)}):EL(d,function(S){return S.test(u)}),y;y=n.valueCallback?n.valueCallback(m):m,y=t.valueCallback?t.valueCallback(y):y;var x=e.slice(u.length);return{value:y,rest:x}}}function EL(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function CL(n,e){for(var t=0;t<n.length;t++)if(e(n[t]))return t}function j0(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var i=r[0],a=e.match(n.parsePattern);if(!a)return null;var u=n.valueCallback?n.valueCallback(a[0]):a[0];u=t.valueCallback?t.valueCallback(u):u;var d=e.slice(i.length);return{value:u,rest:d}}}var SL=/^(\d+)(th|st|nd|rd)?/i,TL=/\d+/i,ML={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},AL={any:[/^b/i,/^(a|c)/i]},DL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},kL={any:[/1/i,/2/i,/3/i,/4/i]},OL={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},IL={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]},NL={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},PL={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]},LL={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},RL={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}},FL={ordinalNumber:j0({matchPattern:SL,parsePattern:TL,valueCallback:function(n){return parseInt(n,10)}}),era:Ff({matchPatterns:ML,defaultMatchWidth:"wide",parsePatterns:AL,defaultParseWidth:"any"}),quarter:Ff({matchPatterns:DL,defaultMatchWidth:"wide",parsePatterns:kL,defaultParseWidth:"any",valueCallback:function(n){return n+1}}),month:Ff({matchPatterns:OL,defaultMatchWidth:"wide",parsePatterns:IL,defaultParseWidth:"any"}),day:Ff({matchPatterns:NL,defaultMatchWidth:"wide",parsePatterns:PL,defaultParseWidth:"any"}),dayPeriod:Ff({matchPatterns:LL,defaultMatchWidth:"any",parsePatterns:RL,defaultParseWidth:"any"})},BC=FL;var BL={code:"en-US",formatDistance:PC,formatLong:LC,formatRelative:RC,localize:FC,match:BC,options:{weekStartsOn:0,firstWeekContainsDate:1}},gy=BL;function mm(n,e){xt(2,arguments);var t=wn(e);return Ks(n,-t)}function Rr(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length<e;)r="0"+r;return t+r}var HL={y:function(n,e){var t=n.getUTCFullYear(),r=t>0?t:1-t;return Rr(e==="yy"?r%100:r,e.length)},M:function(n,e){var t=n.getUTCMonth();return e==="M"?String(t+1):Rr(t+1,2)},d:function(n,e){return Rr(n.getUTCDate(),e.length)},a:function(n,e){var t=n.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h:function(n,e){return Rr(n.getUTCHours()%12||12,e.length)},H:function(n,e){return Rr(n.getUTCHours(),e.length)},m:function(n,e){return Rr(n.getUTCMinutes(),e.length)},s:function(n,e){return Rr(n.getUTCSeconds(),e.length)},S:function(n,e){var t=e.length,r=n.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,t-3));return Rr(i,e.length)}},$u=HL;var qL=864e5;function U0(n){xt(1,arguments);var e=Bt(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=t-r;return Math.floor(i/qL)+1}function Il(n){xt(1,arguments);var e=1,t=Bt(n),r=t.getUTCDay(),i=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function gm(n){xt(1,arguments);var e=Bt(n),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var i=Il(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var u=Il(a);return e.getTime()>=i.getTime()?t+1:e.getTime()>=u.getTime()?t:t-1}function V0(n){xt(1,arguments);var e=gm(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Il(t);return r}var zL=6048e5;function vm(n){xt(1,arguments);var e=Bt(n),t=Il(e).getTime()-V0(e).getTime();return Math.round(t/zL)+1}function Xs(n,e){xt(1,arguments);var t=e||{},r=t.locale,i=r&&r.options&&r.options.weekStartsOn,a=i==null?0:wn(i),u=t.weekStartsOn==null?a:wn(t.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Bt(n),m=d.getUTCDay(),y=(m<u?7:0)+m-u;return d.setUTCDate(d.getUTCDate()-y),d.setUTCHours(0,0,0,0),d}function Bf(n,e){xt(1,arguments);var t=Bt(n,e),r=t.getUTCFullYear(),i=e||{},a=i.locale,u=a&&a.options&&a.options.firstWeekContainsDate,d=u==null?1:wn(u),m=i.firstWeekContainsDate==null?d:wn(i.firstWeekContainsDate);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(r+1,0,m),y.setUTCHours(0,0,0,0);var x=Xs(y,e),S=new Date(0);S.setUTCFullYear(r,0,m),S.setUTCHours(0,0,0,0);var L=Xs(S,e);return t.getTime()>=x.getTime()?r+1:t.getTime()>=L.getTime()?r:r-1}function Y0(n,e){xt(1,arguments);var t=e||{},r=t.locale,i=r&&r.options&&r.options.firstWeekContainsDate,a=i==null?1:wn(i),u=t.firstWeekContainsDate==null?a:wn(t.firstWeekContainsDate),d=Bf(n,e),m=new Date(0);m.setUTCFullYear(d,0,u),m.setUTCHours(0,0,0,0);var y=Xs(m,e);return y}var WL=6048e5;function ym(n,e){xt(1,arguments);var t=Bt(n),r=Xs(t,e).getTime()-Y0(t,e).getTime();return Math.round(r/WL)+1}var uh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},jL={G:function(n,e,t){var r=n.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){var r=n.getUTCFullYear(),i=r>0?r:1-r;return t.ordinalNumber(i,{unit:"year"})}return $u.y(n,e)},Y:function(n,e,t,r){var i=Bf(n,r),a=i>0?i:1-i;if(e==="YY"){var u=a%100;return Rr(u,2)}return e==="Yo"?t.ordinalNumber(a,{unit:"year"}):Rr(a,e.length)},R:function(n,e){var t=gm(n);return Rr(t,e.length)},u:function(n,e){var t=n.getUTCFullYear();return Rr(t,e.length)},Q:function(n,e,t){var r=Math.ceil((n.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Rr(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,e,t){var r=Math.ceil((n.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Rr(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,e,t){var r=n.getUTCMonth();switch(e){case"M":case"MM":return $u.M(n,e);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(n,e,t){var r=n.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return Rr(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(n,e,t,r){var i=ym(n,r);return e==="wo"?t.ordinalNumber(i,{unit:"week"}):Rr(i,e.length)},I:function(n,e,t){var r=vm(n);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):Rr(r,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getUTCDate(),{unit:"date"}):$u.d(n,e)},D:function(n,e,t){var r=U0(n);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):Rr(r,e.length)},E:function(n,e,t){var r=n.getUTCDay();switch(e){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(n,e,t,r){var i=n.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return Rr(a,2);case"eo":return t.ordinalNumber(a,{unit:"day"});case"eee":return t.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(i,{width:"short",context:"formatting"});case"eeee":default:return t.day(i,{width:"wide",context:"formatting"})}},c:function(n,e,t,r){var i=n.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return Rr(a,e.length);case"co":return t.ordinalNumber(a,{unit:"day"});case"ccc":return t.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(i,{width:"narrow",context:"standalone"});case"cccccc":return t.day(i,{width:"short",context:"standalone"});case"cccc":default:return t.day(i,{width:"wide",context:"standalone"})}},i:function(n,e,t){var r=n.getUTCDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return Rr(i,e.length);case"io":return t.ordinalNumber(i,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(n,e,t){var r=n.getUTCHours(),i=r/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(n,e,t){var r=n.getUTCHours(),i;switch(r===12?i=uh.noon:r===0?i=uh.midnight:i=r/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(n,e,t){var r=n.getUTCHours(),i;switch(r>=17?i=uh.evening:r>=12?i=uh.afternoon:r>=4?i=uh.morning:i=uh.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){var r=n.getUTCHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return $u.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getUTCHours(),{unit:"hour"}):$u.H(n,e)},K:function(n,e,t){var r=n.getUTCHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):Rr(r,e.length)},k:function(n,e,t){var r=n.getUTCHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):Rr(r,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getUTCMinutes(),{unit:"minute"}):$u.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getUTCSeconds(),{unit:"second"}):$u.s(n,e)},S:function(n,e){return $u.S(n,e)},X:function(n,e,t,r){var i=r._originalDate||n,a=i.getTimezoneOffset();if(a===0)return"Z";switch(e){case"X":return qC(a);case"XXXX":case"XX":return Hf(a);case"XXXXX":case"XXX":default:return Hf(a,":")}},x:function(n,e,t,r){var i=r._originalDate||n,a=i.getTimezoneOffset();switch(e){case"x":return qC(a);case"xxxx":case"xx":return Hf(a);case"xxxxx":case"xxx":default:return Hf(a,":")}},O:function(n,e,t,r){var i=r._originalDate||n,a=i.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+HC(a,":");case"OOOO":default:return"GMT"+Hf(a,":")}},z:function(n,e,t,r){var i=r._originalDate||n,a=i.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+HC(a,":");case"zzzz":default:return"GMT"+Hf(a,":")}},t:function(n,e,t,r){var i=r._originalDate||n,a=Math.floor(i.getTime()/1e3);return Rr(a,e.length)},T:function(n,e,t,r){var i=r._originalDate||n,a=i.getTime();return Rr(a,e.length)}};function HC(n,e){var t=n>0?"-":"+",r=Math.abs(n),i=Math.floor(r/60),a=r%60;if(a===0)return t+String(i);var u=e||"";return t+String(i)+u+Rr(a,2)}function qC(n,e){if(n%60===0){var t=n>0?"-":"+";return t+Rr(Math.abs(n)/60,2)}return Hf(n,e)}function Hf(n,e){var t=e||"",r=n>0?"-":"+",i=Math.abs(n),a=Rr(Math.floor(i/60),2),u=Rr(i%60,2);return r+a+t+u}var zC=jL;function WC(n,e){switch(n){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"})}}function jC(n,e){switch(n){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"})}}function UL(n,e){var t=n.match(/(P+)(p+)?/),r=t[1],i=t[2];if(!i)return WC(n,e);var a;switch(r){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}}",WC(r,e)).replace("{{time}}",jC(i,e))}var VL={p:jC,P:UL},vy=VL;var YL=["D","DD"],$L=["YY","YYYY"];function yy(n){return YL.indexOf(n)!==-1}function by(n){return $L.indexOf(n)!==-1}function ch(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://git.io/fxCyr"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://git.io/fxCyr"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://git.io/fxCyr"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://git.io/fxCyr"))}var GL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,KL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,XL=/^'([^]*?)'?$/,QL=/''/g,JL=/[a-zA-Z]/;function _y(n,e,t){xt(2,arguments);var r=String(e),i=t||{},a=i.locale||gy,u=a.options&&a.options.firstWeekContainsDate,d=u==null?1:wn(u),m=i.firstWeekContainsDate==null?d:wn(i.firstWeekContainsDate);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=a.options&&a.options.weekStartsOn,x=y==null?0:wn(y),S=i.weekStartsOn==null?x:wn(i.weekStartsOn);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!a.localize)throw new RangeError("locale must contain localize property");if(!a.formatLong)throw new RangeError("locale must contain formatLong property");var L=Bt(n);if(!ih(L))throw new RangeError("Invalid time value");var H=Hc(L),V=mm(L,H),U={firstWeekContainsDate:m,weekStartsOn:S,locale:a,_originalDate:L},Z=r.match(KL).map(function(ae){var le=ae[0];if(le==="p"||le==="P"){var Ae=vy[le];return Ae(ae,a.formatLong,U)}return ae}).join("").match(GL).map(function(ae){if(ae==="''")return"'";var le=ae[0];if(le==="'")return ZL(ae);var Ae=zC[le];if(Ae)return!i.useAdditionalWeekYearTokens&&by(ae)&&ch(ae,e,n),!i.useAdditionalDayOfYearTokens&&yy(ae)&&ch(ae,e,n),Ae(V,ae,a.localize,U);if(le.match(JL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+le+"`");return ae}).join("");return Z}function ZL(n){return n.match(XL)[1].replace(QL,"'")}function $0(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");e=e||{};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function bm(n,e,t){xt(2,arguments);var r=t||{},i=r.locale,a=i&&i.options&&i.options.weekStartsOn,u=a==null?0:wn(a),d=r.weekStartsOn==null?u:wn(r.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Bt(n),y=wn(e),x=m.getUTCDay(),S=y%7,L=(S+7)%7,H=(L<d?7:0)+y-x;return m.setUTCDate(m.getUTCDate()+H),m}function G0(n,e){xt(2,arguments);var t=wn(e);t%7===0&&(t=t-7);var r=1,i=Bt(n),a=i.getUTCDay(),u=t%7,d=(u+7)%7,m=(d<r?7:0)+t-a;return i.setUTCDate(i.getUTCDate()+m),i}function K0(n,e){xt(2,arguments);var t=Bt(n),r=wn(e),i=vm(t)-r;return t.setUTCDate(t.getUTCDate()-i*7),t}function X0(n,e,t){xt(2,arguments);var r=Bt(n),i=wn(e),a=ym(r,t)-i;return r.setUTCDate(r.getUTCDate()-a*7),r}var e2=36e5,t2=6e4,n2=1e3,eo={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}/},uu={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 Wi(n,e,t){var r=e.match(n);if(!r)return null;var i=parseInt(r[0],10);return{value:t?t(i):i,rest:e.slice(r[0].length)}}function cu(n,e){var t=e.match(n);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,i=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,u=t[5]?parseInt(t[5],10):0;return{value:r*(i*e2+a*t2+u*n2),rest:e.slice(t[0].length)}}function UC(n,e){return Wi(eo.anyDigitsSigned,n,e)}function $i(n,e,t){switch(n){case 1:return Wi(eo.singleDigit,e,t);case 2:return Wi(eo.twoDigits,e,t);case 3:return Wi(eo.threeDigits,e,t);case 4:return Wi(eo.fourDigits,e,t);default:return Wi(new RegExp("^\\d{1,"+n+"}"),e,t)}}function wy(n,e,t){switch(n){case 1:return Wi(eo.singleDigitSigned,e,t);case 2:return Wi(eo.twoDigitsSigned,e,t);case 3:return Wi(eo.threeDigitsSigned,e,t);case 4:return Wi(eo.fourDigitsSigned,e,t);default:return Wi(new RegExp("^-?\\d{1,"+n+"}"),e,t)}}function Q0(n){switch(n){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 VC(n,e){var t=e>0,r=t?e:1-e,i;if(r<=50)i=n||100;else{var a=r+50,u=Math.floor(a/100)*100,d=n>=a%100;i=n+u-(d?100:0)}return t?i:1-i}var r2=[31,28,31,30,31,30,31,31,30,31,30,31],i2=[31,29,31,30,31,30,31,31,30,31,30,31];function YC(n){return n%400===0||n%4===0&&n%100!==0}var o2={G:{priority:140,parse:function(n,e,t,r){switch(e){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"})||t.era(n,{width:"narrow"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})||t.era(n,{width:"abbreviated"})||t.era(n,{width:"narrow"})}},set:function(n,e,t,r){return e.era=t,n.setUTCFullYear(t,0,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(n,e,t,r){var i=function(a){return{year:a,isTwoDigitYear:e==="yy"}};switch(e){case"y":return $i(4,n,i);case"yo":return t.ordinalNumber(n,{unit:"year",valueCallback:i});default:return $i(e.length,n,i)}},validate:function(n,e,t){return e.isTwoDigitYear||e.year>0},set:function(n,e,t,r){var i=n.getUTCFullYear();if(t.isTwoDigitYear){var a=VC(t.year,i);return n.setUTCFullYear(a,0,1),n.setUTCHours(0,0,0,0),n}var u=!("era"in e)||e.era===1?t.year:1-t.year;return n.setUTCFullYear(u,0,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(n,e,t,r){var i=function(a){return{year:a,isTwoDigitYear:e==="YY"}};switch(e){case"Y":return $i(4,n,i);case"Yo":return t.ordinalNumber(n,{unit:"year",valueCallback:i});default:return $i(e.length,n,i)}},validate:function(n,e,t){return e.isTwoDigitYear||e.year>0},set:function(n,e,t,r){var i=Bf(n,r);if(t.isTwoDigitYear){var a=VC(t.year,i);return n.setUTCFullYear(a,0,r.firstWeekContainsDate),n.setUTCHours(0,0,0,0),Xs(n,r)}var u=!("era"in e)||e.era===1?t.year:1-t.year;return n.setUTCFullYear(u,0,r.firstWeekContainsDate),n.setUTCHours(0,0,0,0),Xs(n,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(n,e,t,r){return wy(e==="R"?4:e.length,n)},set:function(n,e,t,r){var i=new Date(0);return i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0),Il(i)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(n,e,t,r){return wy(e==="u"?4:e.length,n)},set:function(n,e,t,r){return n.setUTCFullYear(t,0,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(n,e,t,r){switch(e){case"Q":case"QQ":return $i(e.length,n);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"})||t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})||t.quarter(n,{width:"abbreviated",context:"formatting"})||t.quarter(n,{width:"narrow",context:"formatting"})}},validate:function(n,e,t){return e>=1&&e<=4},set:function(n,e,t,r){return n.setUTCMonth((t-1)*3,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(n,e,t,r){switch(e){case"q":case"qq":return $i(e.length,n);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"})||t.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})||t.quarter(n,{width:"abbreviated",context:"standalone"})||t.quarter(n,{width:"narrow",context:"standalone"})}},validate:function(n,e,t){return e>=1&&e<=4},set:function(n,e,t,r){return n.setUTCMonth((t-1)*3,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(n,e,t,r){var i=function(a){return a-1};switch(e){case"M":return Wi(eo.month,n,i);case"MM":return $i(2,n,i);case"Mo":return t.ordinalNumber(n,{unit:"month",valueCallback:i});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"})||t.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})||t.month(n,{width:"abbreviated",context:"formatting"})||t.month(n,{width:"narrow",context:"formatting"})}},validate:function(n,e,t){return e>=0&&e<=11},set:function(n,e,t,r){return n.setUTCMonth(t,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(n,e,t,r){var i=function(a){return a-1};switch(e){case"L":return Wi(eo.month,n,i);case"LL":return $i(2,n,i);case"Lo":return t.ordinalNumber(n,{unit:"month",valueCallback:i});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"})||t.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})||t.month(n,{width:"abbreviated",context:"standalone"})||t.month(n,{width:"narrow",context:"standalone"})}},validate:function(n,e,t){return e>=0&&e<=11},set:function(n,e,t,r){return n.setUTCMonth(t,1),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(n,e,t,r){switch(e){case"w":return Wi(eo.week,n);case"wo":return t.ordinalNumber(n,{unit:"week"});default:return $i(e.length,n)}},validate:function(n,e,t){return e>=1&&e<=53},set:function(n,e,t,r){return Xs(X0(n,t,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(n,e,t,r){switch(e){case"I":return Wi(eo.week,n);case"Io":return t.ordinalNumber(n,{unit:"week"});default:return $i(e.length,n)}},validate:function(n,e,t){return e>=1&&e<=53},set:function(n,e,t,r){return Il(K0(n,t,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(n,e,t,r){switch(e){case"d":return Wi(eo.date,n);case"do":return t.ordinalNumber(n,{unit:"date"});default:return $i(e.length,n)}},validate:function(n,e,t){var r=n.getUTCFullYear(),i=YC(r),a=n.getUTCMonth();return i?e>=1&&e<=i2[a]:e>=1&&e<=r2[a]},set:function(n,e,t,r){return n.setUTCDate(t),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(n,e,t,r){switch(e){case"D":case"DD":return Wi(eo.dayOfYear,n);case"Do":return t.ordinalNumber(n,{unit:"date"});default:return $i(e.length,n)}},validate:function(n,e,t){var r=n.getUTCFullYear(),i=YC(r);return i?e>=1&&e<=366:e>=1&&e<=365},set:function(n,e,t,r){return n.setUTCMonth(0,t),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(n,e,t,r){switch(e){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"})||t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})||t.day(n,{width:"abbreviated",context:"formatting"})||t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"})}},validate:function(n,e,t){return e>=0&&e<=6},set:function(n,e,t,r){return n=bm(n,t,r),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(n,e,t,r){var i=function(a){var u=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+u};switch(e){case"e":case"ee":return $i(e.length,n,i);case"eo":return t.ordinalNumber(n,{unit:"day",valueCallback:i});case"eee":return t.day(n,{width:"abbreviated",context:"formatting"})||t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"});case"eeeee":return t.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return t.day(n,{width:"wide",context:"formatting"})||t.day(n,{width:"abbreviated",context:"formatting"})||t.day(n,{width:"short",context:"formatting"})||t.day(n,{width:"narrow",context:"formatting"})}},validate:function(n,e,t){return e>=0&&e<=6},set:function(n,e,t,r){return n=bm(n,t,r),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(n,e,t,r){var i=function(a){var u=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+u};switch(e){case"c":case"cc":return $i(e.length,n,i);case"co":return t.ordinalNumber(n,{unit:"day",valueCallback:i});case"ccc":return t.day(n,{width:"abbreviated",context:"standalone"})||t.day(n,{width:"short",context:"standalone"})||t.day(n,{width:"narrow",context:"standalone"});case"ccccc":return t.day(n,{width:"narrow",context:"standalone"});case"cccccc":return t.day(n,{width:"short",context:"standalone"})||t.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return t.day(n,{width:"wide",context:"standalone"})||t.day(n,{width:"abbreviated",context:"standalone"})||t.day(n,{width:"short",context:"standalone"})||t.day(n,{width:"narrow",context:"standalone"})}},validate:function(n,e,t){return e>=0&&e<=6},set:function(n,e,t,r){return n=bm(n,t,r),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(n,e,t,r){var i=function(a){return a===0?7:a};switch(e){case"i":case"ii":return $i(e.length,n);case"io":return t.ordinalNumber(n,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting",valueCallback:i})||t.day(n,{width:"short",context:"formatting",valueCallback:i})||t.day(n,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return t.day(n,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return t.day(n,{width:"short",context:"formatting",valueCallback:i})||t.day(n,{width:"narrow",context:"formatting",valueCallback:i});case"iiii":default:return t.day(n,{width:"wide",context:"formatting",valueCallback:i})||t.day(n,{width:"abbreviated",context:"formatting",valueCallback:i})||t.day(n,{width:"short",context:"formatting",valueCallback:i})||t.day(n,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(n,e,t){return e>=1&&e<=7},set:function(n,e,t,r){return n=G0(n,t,r),n.setUTCHours(0,0,0,0),n},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(n,e,t,r){switch(e){case"a":case"aa":case"aaa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})||t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"})}},set:function(n,e,t,r){return n.setUTCHours(Q0(t),0,0,0),n},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(n,e,t,r){switch(e){case"b":case"bb":case"bbb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})||t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"})}},set:function(n,e,t,r){return n.setUTCHours(Q0(t),0,0,0),n},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(n,e,t,r){switch(e){case"B":case"BB":case"BBB":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})||t.dayPeriod(n,{width:"abbreviated",context:"formatting"})||t.dayPeriod(n,{width:"narrow",context:"formatting"})}},set:function(n,e,t,r){return n.setUTCHours(Q0(t),0,0,0),n},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(n,e,t,r){switch(e){case"h":return Wi(eo.hour12h,n);case"ho":return t.ordinalNumber(n,{unit:"hour"});default:return $i(e.length,n)}},validate:function(n,e,t){return e>=1&&e<=12},set:function(n,e,t,r){var i=n.getUTCHours()>=12;return i&&t<12?n.setUTCHours(t+12,0,0,0):!i&&t===12?n.setUTCHours(0,0,0,0):n.setUTCHours(t,0,0,0),n},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(n,e,t,r){switch(e){case"H":return Wi(eo.hour23h,n);case"Ho":return t.ordinalNumber(n,{unit:"hour"});default:return $i(e.length,n)}},validate:function(n,e,t){return e>=0&&e<=23},set:function(n,e,t,r){return n.setUTCHours(t,0,0,0),n},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(n,e,t,r){switch(e){case"K":return Wi(eo.hour11h,n);case"Ko":return t.ordinalNumber(n,{unit:"hour"});default:return $i(e.length,n)}},validate:function(n,e,t){return e>=0&&e<=11},set:function(n,e,t,r){var i=n.getUTCHours()>=12;return i&&t<12?n.setUTCHours(t+12,0,0,0):n.setUTCHours(t,0,0,0),n},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(n,e,t,r){switch(e){case"k":return Wi(eo.hour24h,n);case"ko":return t.ordinalNumber(n,{unit:"hour"});default:return $i(e.length,n)}},validate:function(n,e,t){return e>=1&&e<=24},set:function(n,e,t,r){var i=t<=24?t%24:t;return n.setUTCHours(i,0,0,0),n},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(n,e,t,r){switch(e){case"m":return Wi(eo.minute,n);case"mo":return t.ordinalNumber(n,{unit:"minute"});default:return $i(e.length,n)}},validate:function(n,e,t){return e>=0&&e<=59},set:function(n,e,t,r){return n.setUTCMinutes(t,0,0),n},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(n,e,t,r){switch(e){case"s":return Wi(eo.second,n);case"so":return t.ordinalNumber(n,{unit:"second"});default:return $i(e.length,n)}},validate:function(n,e,t){return e>=0&&e<=59},set:function(n,e,t,r){return n.setUTCSeconds(t,0),n},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(n,e,t,r){var i=function(a){return Math.floor(a*Math.pow(10,-e.length+3))};return $i(e.length,n,i)},set:function(n,e,t,r){return n.setUTCMilliseconds(t),n},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(n,e,t,r){switch(e){case"X":return cu(uu.basicOptionalMinutes,n);case"XX":return cu(uu.basic,n);case"XXXX":return cu(uu.basicOptionalSeconds,n);case"XXXXX":return cu(uu.extendedOptionalSeconds,n);case"XXX":default:return cu(uu.extended,n)}},set:function(n,e,t,r){return e.timestampIsSet?n:new Date(n.getTime()-t)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(n,e,t,r){switch(e){case"x":return cu(uu.basicOptionalMinutes,n);case"xx":return cu(uu.basic,n);case"xxxx":return cu(uu.basicOptionalSeconds,n);case"xxxxx":return cu(uu.extendedOptionalSeconds,n);case"xxx":default:return cu(uu.extended,n)}},set:function(n,e,t,r){return e.timestampIsSet?n:new Date(n.getTime()-t)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(n,e,t,r){return UC(n)},set:function(n,e,t,r){return[new Date(t*1e3),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(n,e,t,r){return UC(n)},set:function(n,e,t,r){return[new Date(t),{timestampIsSet:!0}]},incompatibleTokens:"*"}},$C=o2;var a2=10,s2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,l2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,u2=/^'([^]*?)'?$/,c2=/''/g,f2=/\S/,d2=/[a-zA-Z]/;function xy(n,e,t,r){xt(3,arguments);var i=String(n),a=String(e),u=r||{},d=u.locale||gy;if(!d.match)throw new RangeError("locale must contain match property");var m=d.options&&d.options.firstWeekContainsDate,y=m==null?1:wn(m),x=u.firstWeekContainsDate==null?y:wn(u.firstWeekContainsDate);if(!(x>=1&&x<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=d.options&&d.options.weekStartsOn,L=S==null?0:wn(S),H=u.weekStartsOn==null?L:wn(u.weekStartsOn);if(!(H>=0&&H<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(a==="")return i===""?Bt(t):new Date(NaN);var V={firstWeekContainsDate:x,weekStartsOn:H,locale:d},U=[{priority:a2,subPriority:-1,set:h2,index:0}],Z,ae=a.match(l2).map(function(tn){var In=tn[0];if(In==="p"||In==="P"){var Cn=vy[In];return Cn(tn,d.formatLong,V)}return tn}).join("").match(s2),le=[];for(Z=0;Z<ae.length;Z++){var Ae=ae[Z];!u.useAdditionalWeekYearTokens&&by(Ae)&&ch(Ae,a,n),!u.useAdditionalDayOfYearTokens&&yy(Ae)&&ch(Ae,a,n);var ve=Ae[0],b=$C[ve];if(b){var te=b.incompatibleTokens;if(Array.isArray(te)){for(var ye=void 0,Oe=0;Oe<le.length;Oe++){var De=le[Oe].token;if(te.indexOf(De)!==-1||De===ve){ye=le[Oe];break}}if(ye)throw new RangeError("The format string mustn't contain `".concat(ye.fullToken,"` and `").concat(Ae,"` at the same time"))}else if(b.incompatibleTokens==="*"&&le.length)throw new RangeError("The format string mustn't contain `".concat(Ae,"` and any other token at the same time"));le.push({token:ve,fullToken:Ae});var lt=b.parse(i,Ae,d.match,V);if(!lt)return new Date(NaN);U.push({priority:b.priority,subPriority:b.subPriority||0,set:b.set,validate:b.validate,value:lt.value,index:U.length}),i=lt.rest}else{if(ve.match(d2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ve+"`");if(Ae==="''"?Ae="'":ve==="'"&&(Ae=p2(Ae)),i.indexOf(Ae)===0)i=i.slice(Ae.length);else return new Date(NaN)}}if(i.length>0&&f2.test(i))return new Date(NaN);var ct=U.map(function(tn){return tn.priority}).sort(function(tn,In){return In-tn}).filter(function(tn,In,Cn){return Cn.indexOf(tn)===In}).map(function(tn){return U.filter(function(In){return In.priority===tn}).sort(function(In,Cn){return Cn.subPriority-In.subPriority})}).map(function(tn){return tn[0]}),Dt=Bt(t);if(isNaN(Dt))return new Date(NaN);var Mt=mm(Dt,Hc(Dt)),en={};for(Z=0;Z<ct.length;Z++){var Yt=ct[Z];if(Yt.validate&&!Yt.validate(Mt,Yt.value,V))return new Date(NaN);var At=Yt.set(Mt,en,Yt.value,V);At[0]?(Mt=At[0],$0(en,At[1])):Mt=At}return Mt}function h2(n,e){if(e.timestampIsSet)return n;var t=new Date(0);return t.setFullYear(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()),t.setHours(n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()),t}function p2(n){return n.match(u2)[1].replace(c2,"'")}function Ey(n){xt(1,arguments);var e=Bt(n);return e.setMinutes(0,0,0),e}function Cy(n){xt(1,arguments);var e=Bt(n);return e.setMilliseconds(0),e}var GC=36e5,KC=6e4,m2=2,Sy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},g2=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,v2=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,y2=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Ty(n,e){xt(1,arguments);var t=e||{},r=t.additionalDigits==null?m2:wn(t.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var i=b2(n),a;if(i.date){var u=_2(i.date,r);a=w2(u.restDateString,u.year)}if(isNaN(a)||!a)return new Date(NaN);var d=a.getTime(),m=0,y;if(i.time&&(m=x2(i.time),isNaN(m)||m===null))return new Date(NaN);if(i.timezone){if(y=E2(i.timezone),isNaN(y))return new Date(NaN)}else{var x=new Date(d+m),S=new Date(0);return S.setFullYear(x.getUTCFullYear(),x.getUTCMonth(),x.getUTCDate()),S.setHours(x.getUTCHours(),x.getUTCMinutes(),x.getUTCSeconds(),x.getUTCMilliseconds()),S}return new Date(d+m+y)}function b2(n){var e={},t=n.split(Sy.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?(e.date=null,r=t[0]):(e.date=t[0],r=t[1],Sy.timeZoneDelimiter.test(e.date)&&(e.date=n.split(Sy.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var i=Sy.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function _2(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:null};var i=r[1]&&parseInt(r[1]),a=r[2]&&parseInt(r[2]);return{year:a==null?i:a*100,restDateString:n.slice((r[1]||r[2]).length)}}function w2(n,e){if(e===null)return null;var t=n.match(g2);if(!t)return null;var r=!!t[4],i=_m(t[1]),a=_m(t[2])-1,u=_m(t[3]),d=_m(t[4]),m=_m(t[5])-1;if(r)return A2(e,d,m)?C2(e,d,m):new Date(NaN);var y=new Date(0);return!T2(e,a,u)||!M2(e,i)?new Date(NaN):(y.setUTCFullYear(e,a,Math.max(i,u)),y)}function _m(n){return n?parseInt(n):1}function x2(n){var e=n.match(v2);if(!e)return null;var t=J0(e[1]),r=J0(e[2]),i=J0(e[3]);return D2(t,r,i)?t*GC+r*KC+i*1e3:NaN}function J0(n){return n&&parseFloat(n.replace(",","."))||0}function E2(n){if(n==="Z")return 0;var e=n.match(y2);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return k2(r,i)?t*(r*GC+i*KC):NaN}function C2(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var i=r.getUTCDay()||7,a=(e-1)*7+t+1-i;return r.setUTCDate(r.getUTCDate()+a),r}var S2=[31,null,31,30,31,30,31,31,30,31,30,31];function XC(n){return n%400===0||n%4===0&&n%100}function T2(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(S2[e]||(XC(n)?29:28))}function M2(n,e){return e>=1&&e<=(XC(n)?366:365)}function A2(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function D2(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function k2(n,e){return e>=0&&e<=59}var O2={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};F0._date.override({_id:"date-fns",formats:function(){return O2},parse:function(n,e){if(n===null||typeof n>"u")return null;let t=typeof n;return t==="number"||n instanceof Date?n=Bt(n):t==="string"&&(typeof e=="string"?n=xy(n,e,new Date,this.options):n=Ty(n,this.options)),ih(n)?n.getTime():null},format:function(n,e){return _y(n,e,this.options)},add:function(n,e,t){switch(t){case"millisecond":return Ks(n,e);case"second":return Qv(n,e);case"minute":return Kv(n,e);case"hour":return Gv(n,e);case"day":return rh(n,e);case"week":return Jv(n,e);case"month":return Bc(n,e);case"quarter":return Xv(n,e);case"year":return Zv(n,e);default:return n}},diff:function(n,e,t){switch(t){case"millisecond":return su(n,e);case"second":return ry(n,e);case"minute":return ty(n,e);case"hour":return ey(n,e);case"day":return oh(n,e);case"week":return iy(n,e);case"month":return lh(n,e);case"quarter":return ny(n,e);case"year":return oy(n,e);default:return 0}},startOf:function(n,e,t){switch(e){case"second":return Cy(n);case"minute":return ay(n);case"hour":return Ey(n);case"day":return Lf(n);case"week":return hm(n);case"isoWeek":return hm(n,{weekStartsOn:+t});case"month":return ly(n);case"quarter":return sy(n);case"year":return uy(n);default:return n}},endOf:function(n,e){switch(e){case"second":return my(n);case"minute":return hy(n);case"hour":return fy(n);case"day":return ah(n);case"week":return dy(n);case"month":return sh(n);case"quarter":return py(n);case"year":return cy(n);default:return n}}});QC.default.use(DC);function I2(n){let e=[...n],t=[];for(;e.length;){let r=e.pop();Array.isArray(r)?e.push(...r):t.push(r)}return t.reverse()}function N2(n,e,t,r,i){let a=Object.create(null),u=Object.create(null),d=[],m,y,x,S;for(y=0,x=n.length;y<x;++y)S=n[y],!(r&&S[r]!==i)&&(m=S[e]||"",m in a||(a[m]=0,u[m]=[]),a[m]+=+S[t],u[m].push(S));return Object.keys(a).forEach(L=>{S={children:u[L]},S[t]=+a[L],S[e]=L,r&&(S[r]=i),d.push(S)}),d}function iS(n){let e=typeof n;return e==="function"||e==="object"&&!!n}function P2(n,e){let t=n.length,r;if(!t)return e;let i=iS(n[0]);for(e=i?e:"v",r=0,t=n.length;r<t;++r)i?n[r]._idx=r:n[r]={v:n[r],_idx:r};return e}function L2(n,e){e?n.sort((t,r)=>+r[e]-+t[e]):n.sort((t,r)=>+r-+t)}function R2(n,e){let t,r,i;for(t=0,r=0,i=n.length;r<i;++r)t+=e?+n[r][e]:+n[r];return t}function wm(n,e){return+(Math.round(n+"e+"+e)+"e-"+e)||0}function F2(n,e,t,r){let i=n._normalized,a=e*i/t,u=Math.sqrt(i*a),d=i/u;return{d1:u,d2:d,w:r==="_ix"?u:d,h:r==="_ix"?d:u}}var B2=(n,e)=>wm(n.rtl?n.x+n.w-n._ix-e:n.x+n._ix,4);function H2(n,e,t,r){let i={x:B2(n,t.w),y:wm(n.y+n._iy,4),w:wm(t.w,4),h:wm(t.h,4),a:wm(e._normalized,4),v:e.value,s:r,_data:e._data};return e.group&&(i.g=e.group,i.l=e.level,i.gs=e.groupSum),i}var ew=class{constructor(e){let t=this;e=e||{w:1,h:1},t.rtl=!!e.rtl,t.x=e.x||e.left||0,t.y=e.y||e.top||0,t._ix=0,t._iy=0,t.w=e.w||e.width||e.right-e.left,t.h=e.h||e.height||e.bottom-e.top}get area(){return this.w*this.h}get iw(){return this.w-this._ix}get ih(){return this.h-this._iy}get dir(){let e=this.ih;return e<=this.iw&&e>0?"y":"x"}get side(){return this.dir==="x"?this.iw:this.ih}map(e){let t=this,r=[],i=e.nsum,a=e.get(),u=t.dir,d=t.side,m=d*d,y=u==="x"?"_ix":"_iy",x=i*i,S=0,L=0;for(let H of a){let V=F2(H,m,x,y);L+=V.d1,S=Math.max(S,V.d2),r.push(H2(t,H,V,e.sum)),t[y]+=V.d1}return t[u==="y"?"_ix":"_iy"]+=S,t[y]-=L,r}},JC=Math.min,ZC=Math.max;function q2(n){return{min:n.min,max:n.max,sum:n.sum,nmin:n.nmin,nmax:n.nmax,nsum:n.nsum}}function eS(n,e){let t=+e[n.key],r=t*n.ratio;return e._normalized=r,{min:JC(n.min,t),max:ZC(n.max,t),sum:n.sum+t,nmin:JC(n.nmin,r),nmax:ZC(n.nmax,r),nsum:n.nsum+r}}function z2(n,e){Object.assign(n,e)}function tS(n,e,t){n._arr.push(e),z2(n,t)}var tw=class{constructor(e,t){let r=this;r.key=e,r.ratio=t,r.reset()}get length(){return this._arr.length}reset(){let e=this;e._arr=[],e._hist=[],e.sum=0,e.nsum=0,e.min=1/0,e.max=-1/0,e.nmin=1/0,e.nmax=-1/0}push(e){tS(this,e,eS(this,e))}pushIf(e,t,...r){let i=eS(this,e);if(!t(q2(this),i,r))return e;tS(this,e,i)}get(){return this._arr}};function W2(n,e,t){if(n.sum===0)return!0;let[r]=t,i=n.nsum*n.nsum,a=e.nsum*e.nsum,u=r*r,d=Math.max(u*n.nmax/i,i/(u*n.nmin));return Math.max(u*e.nmax/a,a/(u*e.nmin))<=d}function nS(n,e,t,r,i,a){n=n||[];let u=[],d=new ew(e),m=new tw("value",d.area/R2(n,t)),y=d.side,x=n.length,S,L;if(!x)return u;let H=n.slice();t=P2(H,t),L2(H,t);let V=Z=>t?+H[Z][t]:+H[Z],U=Z=>r&&H[Z][r];for(S=0;S<x;++S)L={value:V(S),groupSum:a,_data:n[H[S]._idx],level:void 0,group:void 0},r&&(L.level=i,L.group=U(S)),L=m.pushIf(L,W2,y),L&&(u.push(d.map(m)),y=d.side,m.reset(),m.push(L));return m.length&&u.push(d.map(m)),I2(u)}var j2="1.0.2";function U2(n,e){return!n||!e||n.x!==e.x||n.y!==e.y||n.w!==e.w||n.h!==e.h}function V2(n,e){let t,r;if(n.lenght!==e.length)return!0;for(t=0,r=n.length;t<r;++t)if(n[t]!==e[t])return!0;return!1}function oS(n,e){if(!e)return!1;let t=n.width||n.w,r=n.height||n.h,i=e.lineHeight*2;return t>i&&r>i}function Y2(n,e,t,r,i){if(n.save(),n.fillStyle=r.color,n.font=r.font.string,n.beginPath(),n.rect(e.x,e.y,e.width,e.height),n.clip(),!("l"in t)||t.l===i)n.textAlign="center",n.textBaseline="middle",G2(n,t,e);else if(r.groupLabels){n.textAlign=r.rtl?"end":"start",n.textBaseline="top";let a=r.rtl?e.x+e.width-r.borderWidth-3:e.x+r.borderWidth+3;n.fillText(t.g,a,e.y+r.borderWidth+3)}n.restore()}function rS(n,e){let t=e.options,r=e.width||e.w,i=e.height||e.h;if(n.save(),n.strokeStyle=t.dividerColor||"black",n.lineCap=t.dividerCapStyle,n.setLineDash(t.dividerDash||[]),n.lineDashOffset=t.dividerDashOffset,n.lineWidth=t.dividerWidth,n.beginPath(),r>i){let a=r/2;n.moveTo(e.x+a,e.y),n.lineTo(e.x+a,e.y+i)}else{let a=i/2;n.moveTo(e.x,e.y+a),n.lineTo(e.x+r,e.y+a)}n.stroke(),n.restore()}function $2(n,e,t){let r=n.key||"",i=n.tree||[],a=n.groups||[],u=a.length,d=(n.spacing||0)+(n.borderWidth||0);function m(y,x,S,L){let H=a[y],V=y>0&&a[y-1],U=N2(i,H,r,V,S),Z=nS(U,x,r,H,y,L),ae=Z.slice(),le;return y<u-1&&Z.forEach(Ae=>{le={x:Ae.x+d,y:Ae.y+d,w:Ae.w-2*d,h:Ae.h-2*d},tr(n.groupLabels,!0)&&oS(Ae,t)&&(le.y+=t.lineHeight,le.h-=t.lineHeight),ae.push(...m(y+1,le,Ae.g,Ae.s))}),ae}return!i.length&&n.data.length&&(i=n.tree=n.data),u?m(0,e):nS(i,e,r)}function G2(n,e,t){let r=t.options,i=r.font.lineHeight,a=(r.label||e.g+`
`+e.v).split(`
`),u=t.y+t.height/2-a.length*i/4;a.forEach((d,m)=>n.fillText(d,t.x+t.width/2,u+m*i))}var fu=class extends Ja{constructor(e,t){super(e,t),this._rect=void 0,this._key=void 0,this._groups=void 0}initialize(){this.enableOptionSharing=!0,super.initialize()}update(e){let t=this,r=t.getMeta(),i=t.getDataset(),a=i.groups||(i.groups=[]),u=Mi(i.font),d=t.chart.chartArea,m=i.key||"",y=!!i.rtl,x={x:d.left,y:d.top,w:d.right-d.left,h:d.bottom-d.top,rtl:y};(e==="reset"||U2(t._rect,x)||t._key!==m||V2(t._groups,a))&&(t._rect=x,t._groups=a.slice(),t._key=m,i.data=$2(i,x,u),t._dataCheck(),t._resyncElements()),t.updateElements(r.data,0,r.data.length,e)}resolveDataElementOptions(e,t){let r=super.resolveDataElementOptions(e,t),i=Object.isFrozen(r)?Object.assign({},r):r;return i.font=Mi(r.font),i}updateElements(e,t,r,i){let a=this,u=i==="reset",d=a.getDataset(),m=a._rect.options=a.resolveDataElementOptions(t,i),y=a.getSharedOptions(m),x=a.includeOptions(i,y);for(let S=t;S<t+r;S++){let L=d.data[S],H=y||a.resolveDataElementOptions(S,i),V=u?0:L.h-H.spacing*2,U=u?0:L.w-H.spacing*2,Z=L.x+H.spacing,ae=L.y+H.spacing,le={x:Z,y:ae,width:U,height:V};x&&(le.options=H),a.updateElement(e[S],S,le,i)}a.updateSharedOptions(y,i,m)}_drawDividers(e,t,r){for(let i=0,a=r.length;i<a;++i){let u=r[i],d=t[i];u.options.groupDividers&&d._data.children.length>1&&rS(e,u)}this.getDataset().groupDividers&&rS(e,this._rect)}_drawRects(e,t,r,i){for(let a=0,u=r.length;a<u;++a){let d=r[a],m=t[a];if(!d.hidden){d.draw(e);let y=d.options;oS(d,y.font)&&m.g&&Y2(e,d,m,y,i)}}}draw(){let e=this,t=e.chart.ctx,r=e.getMeta().data||[],i=e.getDataset(),a=(i.groups||[]).length-1,u=i.data||[];e._drawRects(t,u,r,a),e._drawDividers(t,u,r)}};fu.id="treemap";fu.version=j2;fu.defaults={dataElementType:"treemap",groupLabels:!0,borderWidth:0,spacing:.5,groupDividers:!1,dividerWidth:1};fu.overrides={interaction:{mode:"point",intersect:!0},hover:{},plugins:{tooltip:{position:"treemap",intersect:!0,callbacks:{title(n){return n.length&&n[0].dataset.key||""},label(n){let e=n.dataset,t=e.data[n.dataIndex],r=t.g||e.label;return(r?r+": ":"")+t.v}}}},scales:{x:{type:"linear",display:!1},y:{type:"linear",display:!1}}};fu.afterRegister=function(){let n=Gs.plugins.get("tooltip");n&&(n.positioners.treemap=function(e){return e.length?e[e.length-1].element.tooltipPosition():!1})};fu.afterUnregister=function(){let n=Gs.plugins.get("tooltip");n&&delete n.positioners.treemap};function aS(n,e){let{x:t,y:r,width:i,height:a}=n.getProps(["x","y","width","height"],e);return{left:t,top:r,right:t+i,bottom:r+a}}function My(n,e,t){return Math.max(Math.min(n,t),e)}function K2(n,e,t){let r,i,a,u;return iS(n)?(r=+n.top||0,i=+n.right||0,a=+n.bottom||0,u=+n.left||0):r=i=a=u=+n||0,{t:My(r,0,t),r:My(i,0,e),b:My(a,0,t),l:My(u,0,e)}}function X2(n){let e=aS(n),t=e.right-e.left,r=e.bottom-e.top,i=K2(n.options.borderWidth,t/2,r/2);return{outer:{x:e.left,y:e.top,w:t,h:r},inner:{x:e.left+i.l,y:e.top+i.t,w:t-i.l-i.r,h:r-i.t-i.b}}}function Z0(n,e,t,r){let i=e===null,a=t===null,u=!n||i&&a?!1:aS(n,r);return u&&(i||e>=u.left&&e<=u.right)&&(a||t>=u.top&&t<=u.bottom)}var qf=class extends Ma{constructor(e){super(),this.options=void 0,this.width=void 0,this.height=void 0,e&&Object.assign(this,e)}draw(e){let t=this.options,{inner:r,outer:i}=X2(this);e.save(),i.w!==r.w||i.h!==r.h?(e.beginPath(),e.rect(i.x,i.y,i.w,i.h),e.clip(),e.rect(r.x,r.y,r.w,r.h),e.fillStyle=t.backgroundColor,e.fill(),e.fillStyle=t.borderColor,e.fill("evenodd")):(e.fillStyle=t.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h)),e.restore()}inRange(e,t,r){return Z0(this,e,t,r)}inXRange(e,t){return Z0(this,e,null,t)}inYRange(e,t){return Z0(this,null,e,t)}getCenterPoint(e){let{x:t,y:r,width:i,height:a}=this.getProps(["x","y","width","height"],e);return{x:t+i/2,y:r+a/2}}tooltipPosition(){return this.getCenterPoint()}getRange(e){return e==="x"?this.width/2:this.height/2}};qf.id="treemap";qf.defaults={borderSkipped:void 0,borderWidth:void 0,color:void 0,dividerCapStyle:"butt",dividerColor:"black",dividerDash:void 0,dividerDashOffset:0,dividerWidth:0,font:{},groupDividers:!1,groupLabels:void 0,spacing:void 0,label:void 0,rtl:void 0};qf.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var jc=Fi(Gu());var sS=Fi(Gu()),Q2=(n,e)=>{let t=[],r=[];return t.push(e),e||t.push(n.locale),n.enableFallback&&t.push(n.defaultLocale),t.filter(Boolean).map(i=>i.toString()).forEach(function(i){if(r.includes(i)||r.push(i),!n.enableFallback)return;let a=i.split("-");a.length===3&&r.push(`${a[0]}-${a[1]}`),r.push(a[0])}),(0,sS.uniq)(r)},Em=class{constructor(e){this.i18n=e,this.registry={},this.register("default",Q2)}register(e,t){if(typeof t!="function"){let r=t;t=()=>r}this.registry[e]=t}get(e){let t=this.registry[e]||this.registry[this.i18n.locale]||this.registry.default;return typeof t=="function"&&(t=t(this.i18n,e)),t instanceof Array||(t=[t]),t}};var J2=(n,e)=>{switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},Cm=class{constructor(e){this.i18n=e,this.registry={},this.register("default",J2)}register(e,t){this.registry[e]=t}get(e){return this.registry[e]||this.registry[this.i18n.locale]||this.registry.default}};var lS=Fi(Gu());function Qs(n){return n?Object.keys(n).reduce((e,t)=>(e[(0,lS.camelCase)(t)]=n[t],e),{}):{}}function nw(n,e,t){let r=[{scope:e}];if(Za(t.defaults)&&(r=r.concat(t.defaults)),Za(t.defaultValue)){let i=typeof t.defaultValue=="function"?t.defaultValue(n,e,t):t.defaultValue;r.push({message:i}),delete t.defaultValue}return r}var Js=Fi(zf()),Dy;(function(n){n[n.up=Js.default.ROUND_UP]="up",n[n.down=Js.default.ROUND_DOWN]="down",n[n.truncate=Js.default.ROUND_DOWN]="truncate",n[n.halfUp=Js.default.ROUND_HALF_UP]="halfUp",n[n.default=Js.default.ROUND_HALF_UP]="default",n[n.halfDown=Js.default.ROUND_HALF_DOWN]="halfDown",n[n.halfEven=Js.default.ROUND_HALF_EVEN]="halfEven",n[n.banker=Js.default.ROUND_HALF_EVEN]="banker",n[n.ceiling=Js.default.ROUND_CEIL]="ceiling",n[n.ceil=Js.default.ROUND_CEIL]="ceil",n[n.floor=Js.default.ROUND_FLOOR]="floor"})(Dy||(Dy={}));function Sm(n){var e;return(e=Dy[n])!==null&&e!==void 0?e:Dy.default}var rw=Fi(zf()),cS=Fi(Gu());function Z2(n,{formattedNumber:e,unit:t}){return n.replace("%n",e).replace("%u",t)}function eR({significand:n,whole:e,precision:t}){if(e==="0"||t===null)return n;let r=Math.max(0,t-e.length);return(n??"").substr(0,r)}function dh(n,e){var t,r,i;let a=new rw.default(n);if(e.raise&&!a.isFinite())throw new Error(`"${n}" is not a valid numeric value`);let u=zc(a,e),d=new rw.default(u),m=d.lt(0),y=d.isZero(),[x,S]=u.split("."),L=[],H,V=(t=e.format)!==null&&t!==void 0?t:"%n",U=(r=e.negativeFormat)!==null&&r!==void 0?r:`-${V}`,Z=m&&!y?U:V;for(x=x.replace("-","");x.length>0;)L.unshift(x.substr(Math.max(0,x.length-3),3)),x=x.substr(0,x.length-3);return x=L.join(""),H=L.join(e.delimiter),e.significant?S=eR({whole:x,significand:S,precision:e.precision}):S=S??(0,cS.repeat)("0",(i=e.precision)!==null&&i!==void 0?i:0),e.stripInsignificantZeros&&S&&(S=S.replace(/0+$/,"")),a.isNaN()&&(H=n.toString()),S&&a.isFinite()&&(H+=(e.separator||".")+S),Z2(Z,{formattedNumber:H,unit:e.unit})}function Wc(n,e,t){let r="";return(e instanceof String||typeof e=="string")&&(r=e),e instanceof Array&&(r=e.join(n.defaultSeparator)),t.scope&&(r=[t.scope,r].join(n.defaultSeparator)),r}function Zs(n){var e,t,r;if(n===null)return"null";let i=typeof n;return i!=="object"?i:((r=(t=(e=n)===null||e===void 0?void 0:e.constructor)===null||t===void 0?void 0:t.name)===null||r===void 0?void 0:r.toLowerCase())||"object"}function hh(n,e,t){t=Object.keys(t).reduce((i,a)=>(i[n.transformKey(a)]=t[a],i),{});let r=e.match(n.placeholder);if(!r)return e;for(;r.length;){let i,a=r.shift(),u=a.replace(n.placeholder,"$1");Za(t[u])?i=t[u].toString().replace(/\$/gm,"_#$#_"):u in t?i=n.nullPlaceholder(n,a,e,t):i=n.missingPlaceholder(n,a,e,t);let d=new RegExp(a.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));e=e.replace(d,i)}return e.replace(/_#\$#_/g,"$")}function Za(n){return n!=null}var fS=Fi(Gu());function es(n,e,t={}){t=Object.assign({},t);let r="locale"in t?t.locale:n.locale,i=Zs(r),a=n.locales.get(i==="string"?r:typeof r).slice();e=Wc(n,e,t).split(n.defaultSeparator).map(d=>n.transformKey(d)).join(".");let u=a.map(d=>(0,fS.get)(n.translations,[d,e].join(".")));return u.push(t.defaultValue),u.find(d=>Za(d))}var dS=Fi(zf());function iw(n,e){let t=new dS.default(n);if(!t.isFinite())return n.toString();if(!e.delimiterPattern.global)throw new Error(`options.delimiterPattern must be a global regular expression; received ${e.delimiterPattern}`);let[r,i]=t.toString().split(".");return r=r.replace(e.delimiterPattern,a=>`${a}${e.delimiter}`),[r,i].filter(Boolean).join(e.separator)}var ky=Fi(zf()),Oy=Fi(Gu());var ow={0:"unit",1:"ten",2:"hundred",3:"thousand",6:"million",9:"billion",12:"trillion",15:"quadrillion","-1":"deci","-2":"centi","-3":"mili","-6":"micro","-9":"nano","-12":"pico","-15":"femto"},tR=(0,Oy.zipObject)(Object.values(ow),Object.keys(ow).map(n=>parseInt(n,10)));function aw(n,e,t){let r={roundMode:t.roundMode,precision:t.precision,significant:t.significant},i;if(Zs(t.units)==="string"){let S=t.units;if(i=es(n,S),!i)throw new Error(`The scope "${n.locale}${n.defaultSeparator}${Wc(n,S,{})}" couldn't be found`)}else i=t.units;let a=zc(new ky.default(e),r),u=S=>(0,Oy.sortBy)(Object.keys(S).map(L=>tR[L]),L=>L*-1),d=(S,L)=>{let H=S.isZero()?0:Math.floor(Math.log10(S.abs().toNumber()));return u(L).find(V=>H>=V)||0},m=(S,L)=>{let H=ow[L.toString()];return S[H]||""},y=d(new ky.default(a),i),x=m(i,y);if(a=zc(new ky.default(a).div(Math.pow(10,y)),r),t.stripInsignificantZeros){let[S,L]=a.split(".");L=(L||"").replace(/0+$/,""),a=S,L&&(a+=`${t.separator}${L}`)}return t.format.replace("%n",a||"0").replace("%u",x).trim()}var Tm=Fi(zf());var hS=["byte","kb","mb","gb","tb","pb","eb"];function sw(n,e,t){let r=Sm(t.roundMode),i=1024,a=new Tm.default(e).abs(),u=a.lt(i),d,m=(V,U)=>{let Z=U.length-1,ae=new Tm.default(Math.log(V.toNumber())).div(Math.log(i)).integerValue(Tm.default.ROUND_DOWN).toNumber();return Math.min(Z,ae)},y=V=>`number.human.storage_units.units.${u?"byte":V[x]}`,x=m(a,hS);u?d=a.integerValue():d=new Tm.default(zc(a.div(Math.pow(i,x)),{significant:t.significant,precision:t.precision,roundMode:t.roundMode}));let S=n.translate("number.human.storage_units.format",{defaultValue:"%n %u"}),L=n.translate(y(hS),{count:a.integerValue().toNumber()}),H=d.toFixed(t.precision,r);return t.stripInsignificantZeros&&(H=H.replace(/(\..*?)0+$/,"$1").replace(/\.$/,"")),S.replace("%n",H).replace("%u",L)}function ph(n){if(n instanceof Date)return n;if(typeof n=="number"){let r=new Date;return r.setTime(n),r}let e=new String(n).match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})(?:[.,](\d{1,3}))?)?(Z|\+00:?00)?/);if(e){let r=e.slice(1,8).map(L=>parseInt(L,10)||0);r[1]-=1;let[i,a,u,d,m,y,x]=r;return e[8]?new Date(Date.UTC(i,a,u,d,m,y,x)):new Date(i,a,u,d,m,y,x)}n.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)&&new Date().setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" ")));let t=new Date;return t.setTime(Date.parse(n)),t}function lw(n,e,t,r){r=Object.assign({},r);let i,a;if(typeof t=="object"&&t?i=t:i=es(n,t,r),!i)return n.missingTranslation.get(t,r);let d=n.pluralization.get(r.locale)(n,e);for(;d.length;){let m=d.shift();if(Za(i[m])){a=i[m];break}}return r.count=e,hh(n,a,r)}var mh=Fi(Gu()),uw=class{constructor(e){this.target=e}call(){let e=(0,mh.flattenDeep)(Object.keys(this.target).map(t=>this.compute(this.target[t],t)));return e.sort(),e}compute(e,t){return!(0,mh.isArray)(e)&&(0,mh.isObject)(e)?Object.keys(e).map(r=>this.compute(e[r],`${t}.${r}`)):t}};function cw(n){return new uw(n).call()}var pS=Fi(zf());function nR(n){return n.isZero()?1:Math.floor(Math.log10(n.abs().toNumber())+1)}function rR(n,{precision:e,significant:t}){return t&&e!==null&&e>0?e-nR(n):e}function zc(n,e){let t=rR(n,e);if(t===null)return n.toString();let r=Sm(e.roundMode);if(t>=0)return n.toFixed(t,r);let i=Math.pow(10,Math.abs(t));return n=new pS.default(n.div(i).toFixed(0,r)).times(i),n.toString()}var iR={meridian:{am:"AM",pm:"PM"},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};function fw(n,e,t={}){let{abbrDayNames:r,dayNames:i,abbrMonthNames:a,monthNames:u,meridian:d}=Object.assign(Object.assign({},iR),t);if(isNaN(n.getTime()))throw new Error("strftime() requires a valid date object, but received an invalid date.");let m=n.getDay(),y=n.getDate(),x=n.getFullYear(),S=n.getMonth()+1,L=n.getHours(),H=L,V=L>11?"pm":"am",U=n.getSeconds(),Z=n.getMinutes(),ae=n.getTimezoneOffset(),le=Math.floor(Math.abs(ae/60)),Ae=Math.abs(ae)-le*60,ve=(ae>0?"-":"+")+(le.toString().length<2?"0"+le:le)+(Ae.toString().length<2?"0"+Ae:Ae);return H>12?H=H-12:H===0&&(H=12),e=e.replace("%a",r[m]),e=e.replace("%A",i[m]),e=e.replace("%b",a[S]),e=e.replace("%B",u[S]),e=e.replace("%d",y.toString().padStart(2,"0")),e=e.replace("%e",y.toString()),e=e.replace("%-d",y.toString()),e=e.replace("%H",L.toString().padStart(2,"0")),e=e.replace("%-H",L.toString()),e=e.replace("%k",L.toString()),e=e.replace("%I",H.toString().padStart(2,"0")),e=e.replace("%-I",H.toString()),e=e.replace("%l",H.toString()),e=e.replace("%m",S.toString().padStart(2,"0")),e=e.replace("%-m",S.toString()),e=e.replace("%M",Z.toString().padStart(2,"0")),e=e.replace("%-M",Z.toString()),e=e.replace("%p",d[V]),e=e.replace("%P",d[V].toLowerCase()),e=e.replace("%S",U.toString().padStart(2,"0")),e=e.replace("%-S",U.toString()),e=e.replace("%w",m.toString()),e=e.replace("%y",x.toString().padStart(2,"0").substr(-2)),e=e.replace("%-y",x.toString().padStart(2,"0").substr(-2).replace(/^0+/,"")),e=e.replace("%Y",x.toString()),e=e.replace(/%z/i,ve),e}var mS=Fi(Gu());var Ls=(n,e,t)=>t>=n&&t<=e;function dw(n,e,t,r={}){let i=r.scope||"datetime.distance_in_words",a=(ye,Oe=0)=>n.t(ye,{count:Oe,scope:i});e=ph(e),t=ph(t);let u=e.getTime()/1e3,d=t.getTime()/1e3;u>d&&([e,t,u,d]=[t,e,d,u]);let m=Math.round(d-u),y=Math.round((d-u)/60),S=y/60/24,L=Math.round(y/60),H=Math.round(S),V=Math.round(H/30);if(Ls(0,1,y))return r.includeSeconds?Ls(0,4,m)?a("less_than_x_seconds",5):Ls(5,9,m)?a("less_than_x_seconds",10):Ls(10,19,m)?a("less_than_x_seconds",20):Ls(20,39,m)?a("half_a_minute"):Ls(40,59,m)?a("less_than_x_minutes",1):a("x_minutes",1):y===0?a("less_than_x_minutes",1):a("x_minutes",y);if(Ls(2,44,y))return a("x_minutes",y);if(Ls(45,89,y))return a("about_x_hours",1);if(Ls(90,1439,y))return a("about_x_hours",L);if(Ls(1440,2519,y))return a("x_days",1);if(Ls(2520,43199,y))return a("x_days",H);if(Ls(43200,86399,y))return a("about_x_months",Math.round(y/43200));if(Ls(86400,525599,y))return a("x_months",V);let U=e.getFullYear();e.getMonth()+1>=3&&(U+=1);let Z=t.getFullYear();t.getMonth()+1<3&&(Z-=1);let ae=U>Z?0:(0,mS.range)(U,Z).filter(ye=>new Date(ye,1,29).getMonth()==1).length,le=525600,Ae=ae*1440,ve=y-Ae,b=Math.trunc(ve/le),te=parseFloat((ve/le-b).toPrecision(3));return te<.25?a("about_x_years",b):te<.75?a("over_x_years",b):a("almost_x_years",b+1)}var oR=function(n,e){e instanceof Array&&(e=e.join(n.defaultSeparator));let t=e.split(n.defaultSeparator).slice(-1)[0];return n.missingTranslationPrefix+t.replace("_"," ").replace(/([a-z])([A-Z])/g,(r,i,a)=>`${i} ${a.toLowerCase()}`)},aR=(n,e,t)=>{let r=Wc(n,e,t),i="locale"in t?t.locale:n.locale,a=Zs(i);return`[missing "${[a=="string"?i:a,r].join(n.defaultSeparator)}" translation]`},sR=(n,e,t)=>{let r=Wc(n,e,t),i=[n.locale,r].join(n.defaultSeparator);throw new Error(`Missing translation: ${i}`)},Mm=class{constructor(e){this.i18n=e,this.registry={},this.register("guess",oR),this.register("message",aR),this.register("error",sR)}register(e,t){this.registry[e]=t}get(e,t){return this.registry[this.i18n.missingBehavior](this.i18n,e,t)}};var lR=function(n,e,t,r){function i(a){return a instanceof t?a:new t(function(u){u(a)})}return new(t||(t=Promise))(function(a,u){function d(x){try{y(r.next(x))}catch(S){u(S)}}function m(x){try{y(r.throw(x))}catch(S){u(S)}}function y(x){x.done?a(x.value):i(x.value).then(d,m)}y((r=r.apply(n,e||[])).next())})},hw={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,enableFallback:!1,missingBehavior:"message",missingTranslationPrefix:"",missingPlaceholder:(n,e)=>`[missing "${e}" value]`,nullPlaceholder:(n,e,t,r)=>n.missingPlaceholder(n,e,t,r),transformKey:n=>n},Ku=class{constructor(e={},t={}){this._locale=hw.locale,this._defaultLocale=hw.defaultLocale,this._version=0,this.onChangeHandlers=[],this.translations={},this.t=this.translate,this.p=this.pluralize,this.l=this.localize,this.distanceOfTimeInWords=this.timeAgoInWords;let{locale:r,enableFallback:i,missingBehavior:a,missingTranslationPrefix:u,missingPlaceholder:d,nullPlaceholder:m,defaultLocale:y,defaultSeparator:x,placeholder:S,transformKey:L}=Object.assign(Object.assign({},hw),t);this.locale=r,this.defaultLocale=y,this.defaultSeparator=x,this.enableFallback=i,this.locale=r,this.missingBehavior=a,this.missingTranslationPrefix=u,this.missingPlaceholder=d,this.nullPlaceholder=m,this.placeholder=S,this.pluralization=new Cm(this),this.locales=new Em(this),this.missingTranslation=new Mm(this),this.transformKey=L,this.store(e)}store(e){cw(e).forEach(r=>(0,jc.set)(this.translations,r,(0,jc.get)(e,r))),this.hasChanged()}get locale(){return this._locale||this.defaultLocale||"en"}set locale(e){if(typeof e!="string")throw new Error(`Expected newLocale to be a string; got ${Zs(e)}`);let t=this._locale!==e;this._locale=e,t&&this.hasChanged()}get defaultLocale(){return this._defaultLocale||"en"}set defaultLocale(e){if(typeof e!="string")throw new Error(`Expected newLocale to be a string; got ${Zs(e)}`);let t=this._defaultLocale!==e;this._defaultLocale=e,t&&this.hasChanged()}translate(e,t){t=Object.assign({},t);let r=nw(this,e,t),i;return r.some(u=>(Za(u.scope)?i=es(this,u.scope,t):Za(u.message)&&(i=u.message),i!=null))?(typeof i=="string"?i=hh(this,i,t):typeof i=="object"&&i&&Za(t.count)&&(i=this.pluralize(t.count||0,i,t)),i):this.missingTranslation.get(e,t)}pluralize(e,t,r){return lw(this,e,t,Object.assign({},r))}localize(e,t,r){if(r=Object.assign({},r),t==null)return"";switch(e){case"currency":return this.numberToCurrency(t);case"number":return dh(t,Object.assign({delimiter:",",precision:3,separator:".",significant:!1,stripInsignificantZeros:!1},es(this,"number.format")));case"percentage":return this.numberToPercentage(t);default:{let i;return e.match(/^(date|time)/)?i=this.toTime(e,t):i=t.toString(),hh(this,i,r)}}}toTime(e,t){let r=ph(t),i=es(this,e);return r.toString().match(/invalid/i)||!i?r.toString():this.strftime(r,i)}numberToCurrency(e,t={}){return dh(e,Object.assign(Object.assign(Object.assign({delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,stripInsignificantZeros:!1,unit:"$"},Qs(this.get("number.format"))),Qs(this.get("number.currency.format"))),t))}numberToPercentage(e,t={}){return dh(e,Object.assign(Object.assign(Object.assign({delimiter:"",format:"%n%"},Qs(this.get("number.format"))),Qs(this.get("number.percentage.format"))),t))}numberToHumanSize(e,t={}){return sw(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",precision:3,significant:!0,stripInsignificantZeros:!0,units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},Qs(this.get("number.human.format"))),Qs(this.get("number.human.storage_units"))),t))}numberToHuman(e,t={}){return aw(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",separator:".",precision:3,significant:!0,stripInsignificantZeros:!0,format:"%n %u",roundMode:"default",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},Qs(this.get("number.human.format"))),Qs(this.get("number.human.decimal_units"))),t))}numberToRounded(e,t){return dh(e,Object.assign({unit:"",precision:3,significant:!1,separator:".",delimiter:"",stripInsignificantZeros:!1},t))}numberToDelimited(e,t={}){return iw(e,Object.assign({delimiterPattern:/(\d)(?=(\d\d\d)+(?!\d))/g,delimiter:",",separator:"."},t))}withLocale(e,t){return lR(this,void 0,void 0,function*(){let r=this.locale;try{this.locale=e,yield t()}finally{this.locale=r}})}strftime(e,t,r={}){return fw(e,t,Object.assign(Object.assign(Object.assign({},Qs(es(this,"date"))),{meridian:{am:es(this,"time.am")||"AM",pm:es(this,"time.pm")||"PM"}}),r))}update(e,t,r={strict:!1}){if(r.strict&&!(0,jc.has)(this.translations,e))throw new Error(`The path "${e}" is not currently defined`);let i=(0,jc.get)(this.translations,e),a=Zs(i),u=Zs(t);if(r.strict&&a!==u)throw new Error(`The current type for "${e}" is "${a}", but you're trying to override it with "${u}"`);let d;u==="object"?d=Object.assign(Object.assign({},i),t):d=t,(0,jc.set)(this.translations,e,d),this.hasChanged()}toSentence(e,t={}){let{wordsConnector:r,twoWordsConnector:i,lastWordConnector:a}=Object.assign(Object.assign({wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},Qs(es(this,"support.array"))),t),u=e.length;switch(u){case 0:return"";case 1:return`${e[0]}`;case 2:return e.join(i);default:return[e.slice(0,u-1).join(r),a,e[u-1]].join("")}}timeAgoInWords(e,t,r={}){return dw(this,e,t,r)}onChange(e){this.onChangeHandlers.push(e)}get version(){return this._version}get(e){return es(this,e)}runCallbacks(){this.onChangeHandlers.forEach(e=>e(this))}hasChanged(){this._version+=1,this.runCallbacks()}};var gh={en:{account_permissions:{editor:"Editor",viewer:"Viewer"},active_admin:{access_denied:{message:"You are not authorized to perform this action."},any:"Any",batch_actions:{action_label:"%{title} Selected",button_label:"Batch Actions",default_confirmation:"Are you sure you want to do this?",delete_confirmation:"Are you sure you want to delete these %{plural_model}?",labels:{destroy:"Delete"},selection_toggle_explanation:"(Toggle Selection)",succesfully_destroyed:{one:"Successfully deleted 1 %{model}",other:"Successfully deleted %{count} %{plural_model}"}},blank_slate:{content:"There are no %{resource_name} yet.",link:"Create one"},cancel:"Cancel",comments:{add:"Add Comment",author:"Author",author_missing:"Anonymous",author_type:"Author Type",body:"Body",created_at:"Created",delete:"Delete Comment",delete_confirmation:"Are you sure you want to delete these comments?",errors:{empty_text:"Comment wasn't saved, text was empty."},no_comments_yet:"No comments yet.",resource:"Resource",resource_type:"Resource Type",title_content:"Comments (%{count})"},create_another:"Create another %{model}",dashboard:"Dashboard",dashboard_welcome:{call_to_action:"To add dashboard sections, checkout 'app/admin/dashboard.rb'",welcome:"Welcome to Active Admin. This is the default dashboard page."},delete:"Delete",delete_confirmation:"Are you sure you want to delete this?",delete_model:"Delete %{model}",details:"%{model} Details",devise:{change_password:{submit:"Change my password",title:"Change your password"},email:{title:"Email"},links:{forgot_your_password:"Forgot your password?",resend_confirmation_instructions:"Resend confirmation instructions",resend_unlock_instructions:"Resend unlock instructions",sign_in:"Sign in",sign_in_with_omniauth_provider:"Sign in with %{provider}",sign_up:"Sign up"},login:{remember_me:"Remember me",submit:"Login",title:"Login"},password:{title:"Password"},password_confirmation:{title:"Confirm Password"},resend_confirmation_instructions:{submit:"Resend confirmation instructions",title:"Resend confirmation instructions"},reset_password:{submit:"Reset My Password",title:"Forgot your password?"},sign_up:{submit:"Sign up",title:"Sign up"},subdomain:{title:"Subdomain"},unlock:{submit:"Resend unlock instructions",title:"Resend unlock instructions"},username:{title:"Username"}},download:"Download:",dropdown_actions:{button_label:"Actions"},edit:"Edit",edit_model:"Edit %{model}",empty:"Empty",filters:{buttons:{clear:"Clear Filters",filter:"Filter"},predicates:{contains:"Contains",ends_with:"Ends with",equals:"Equals",from:"From",greater_than:"Greater than",gteq_datetime:"Greater or equal to",less_than:"Less than",lteq_datetime:"Lesser or equal to",starts_with:"Starts with",to:"To"}},has_many_delete:"Delete",has_many_new:"Add New %{model}",has_many_remove:"Remove",index_list:{block:"List",blog:"Blog",grid:"Grid",table:"Table"},logout:"Logout",main_content:"Please implement %{model}#main_content to display content.",move:"Move",new_model:"New %{model}",next:"Next",pagination:{empty:"No %{model} found",entry:{one:"entry",other:"entries"},multiple:"Displaying %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b> of <b>%{total}</b> in total",multiple_without_total:"Displaying %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b>",one:"Displaying <b>1</b> %{model}",one_page:"Displaying <b>all %{n}</b> %{model}",per_page:"Per page: "},powered_by:"Powered by %{active_admin} %{version}",previous:"Previous",scopes:{all:"All"},search_status:{current_filters:"Current filters:",current_scope:"Scope:",headline:"Search status:",no_current_filters:"None"},sidebars:{filters:"Filters",search_status:"Search Status"},status_tag:{no:"No",unset:"No",yes:"Yes"},unsupported_browser:{headline:"Please note that ActiveAdmin no longer supports Internet Explorer versions 8 or less.",recommendation:'We recommend that you <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.',turn_off_compatibility_view:'If you are using IE 9 or later, make sure you <a href="https://support.microsoft.com/en-us/help/17471">turn off "Compatibility View"</a>.'},view:"View"},application:{option_not_answered:"No answer"},assessment_status_label:{completed:"Completed",expired:"Expired",incomplete:"Incomplete",invalidate:"Invalid",started:"Started"},assessment_status_title:{completed:"Completed the assessment.",expired:"The assessment has expired.",incomplete:"Started to respond but did not finish.",invalidate:"The assessment was answered very fast, might not have read everything. Must be invited to reply.",started:"Started the assessment but have not answered the questions."},assessments:{actions:{delete:"Delete tarrix",delete_confirm:"Are you sure that want to delete this tarrix?",download_pdf:"Download PDF",genereate_pdf:"Regenerate PDF",options:"Options",send_via_email:"Send results by Email",show_answers:"Show Answers",show_profile:"Show Profile",show_report:"Show Report"},form:{save:"Save",saving:"Saving"},group_name:{edit:"Edit"}},blocks:{block_1:"Tools and equipment",block_10:"Priorities",block_2:"Employee experience",block_3:"Economic Wage",block_4:"Expectations for the future",block_5:"Work/Life Balance",block_6:"Challenge and Learning",block_7:"Culture",block_8:"Personal Growth",block_9:"Relationship with my immediate boss"},bulk:{honeycomb:{non_selection_alert:"Please select at least one of the assessments on the list"}},cancel:"Cancel",charts:{importance:"Importance",press_to_see_details:"Press to see details.",results:"Results",results_title:"Motivation details"},chat_gpt:{create_wellnes_step_programs:{wellbeing_career:"Career",wellbeing_community:"Community",wellbeing_financial:"Financial",wellbeing_physical:"Emotional & Physical",wellbeing_social:"Social"}},checkout:{wire_transfer_flash:"Registration has been created for your payment, please follow the instructions below."},dashboard:{index:{assesments_completed:"Tarrix Completed",assessment_results:"Tarrix Completed",assessment_sent:"Tarrix Sent",assessments_avg_response_time:"Tarrix Avg. Response Time (minutes)",assessments_by_month:"Tarrix by Month",assessments_by_status:"Tarrix by Status",general_indicators:"Generales indicators",honeycombs_created:"Honeycombs Created",users_created:"Users created",weekly_indicators:"Weekly indicators",welcome:"Welcome"}},date:{abbr_day_names:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],abbr_month_names:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],day_names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],formats:{default:"%Y-%m-%d",long:"%B %d, %Y",short:"%b %d"},month_names:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],order:["year","month","day"]},datetime:{distance_in_words:{about_x_hours:{one:"about 1 hour",other:"about %{count} hours"},about_x_months:{one:"about 1 month",other:"about %{count} months"},about_x_years:{one:"about 1 year",other:"about %{count} years"},almost_x_years:{one:"almost 1 year",other:"almost %{count} years"},half_a_minute:"half a minute",less_than_x_minutes:{one:"less than a minute",other:"less than %{count} minutes"},less_than_x_seconds:{one:"less than 1 second",other:"less than %{count} seconds"},over_x_years:{one:"over 1 year",other:"over %{count} years"},x_days:{one:"1 day",other:"%{count} days"},x_minutes:{one:"1 minute",other:"%{count} minutes"},x_months:{one:"1 month",other:"%{count} months"},x_seconds:{one:"1 second",other:"%{count} seconds"},x_years:{one:"1 year",other:"%{count} years"}},prompts:{day:"Day",hour:"Hour",minute:"Minute",month:"Month",second:"Second",year:"Year"}},flash:{actions:{create:{notice:"%{resource_name} was successfully created."},destroy:{alert:"%{resource_name} could not be destroyed.",notice:"%{resource_name} was successfully destroyed."},update:{notice:"%{resource_name} was successfully updated."}}},formats:{custom:"%A, %d from %B",dateonly:"%d/%m/%Y",default:"%d/%m/%Y",long:"%A, %d from %B de %Y",short:"%d from %b",short_date:"%d/%m/%Y "},formtastic:{cancel:"Cancel %{model}",create:"Create %{model}",no:"No",required:"required",reset:"Reset %{model}",submit:"Submit %{model}",update:"Update %{model}",yes:"Yes"},generation:{"1":"Before 1945","2":"1946-1964","3":"1965-1980","4":"1981-1996","5":"1997-2012"},grave:{acknowledgment:"Acknowledgment",competition:"Competition",confidence:"Confidence",holistic_vision:"Holistic Vision",ideals:"Ideals",learning:"Learning",order:"Order"},helpers:{page_entries_info:{entry:{one:"entry",other:"entries",zero:"entries"},more_pages:{display_entries:"Displaying %{entry_name} <b>%{first}&nbsp;-&nbsp;%{last}</b> of <b>%{total}</b> in total"},one_page:{display_entries:{one:"Displaying <b>1</b> %{entry_name}",other:"Displaying <b>all %{count}</b> %{entry_name}",zero:"No %{entry_name} found"}}},select:{prompt:"Please select"},submit:{create:"Create %{model}",submit:"Save %{model}",update:"Update %{model}"}},honeycomb_bulks:{change_honeycomb:{new_honeycomb_description:"Chose the honeycomb where you want to move the selected assessments",save:"Change honeycomb",select_new_honeycomb:"Change honeycomb"},delete_assessments_bulk:{tarrix_deleted_success:"The tests have been successfully deleted. Note: Only incomplete tests will be deleted."},send_reports_bulk:{emails_sent:"The reports have been sent successfully."}},honeycomb_groups:{messages:null,report_print:{group_name:"Group Name",group_results:"Group Results"},show:{about_results_description:"Below, please select one of the options to continue with the support process or write your personalized message",delete_honeycomb_group:"Delete group",delete_honeycomb_group_alert:`Do you want to delete this group? 
This action can not be undone.`,"disclaimer-1":"Note: All the results and suggestions of our artificial intelligence are based on the book The Emotional Paycheck Method, the Bonfire of Well-being and some other positive psychology texts.","disclaimer-2":"All suggestions are just that and you should apply them at your own risk.",download_pdf:"Download pdf",honeycomb:"Honeycomb",honeycomb_results_header:"Group Results - Selected Evaluations",lets_talks_about_the_results:"Let's talk about the results",name:"Name:",processing:"Processing...",report_honeycomb_group:"View Online Report"}},honeycombs:{applications:{loading:"Loading Assessments",title:"Assessments"},assessments:{title:"Assessments"},bulk_actions:{bulk_options:"Bulk actions",change_honeycomb:"Change honeycomb",delete_bulk:"Delete",delete_bulk_confirmation:"Please confirm you wish to delete the selected tests.",download_zip_pdfs:"PDFs in zip file",report_bulk:"Report with selected",send_report_bulk:"Send report"},controller:{check_for_credits:{purchase_credits:"Currently you do not have enough credits to create a new honeycomb. You could purchase more credits here."}},create:{record_save:"New honeycomb was save successfully ."},destroy:{record_destroy:"Honeycomb was deleted."},download_reports_zip:{download_report_msg:"The PDFs export is being processed. You will receive an email when the download is ready. Please check your inbox or spam folder.   Not receiving our emails? Make sure you have added Emotional Paycheck's email addresses to your allowed list."},form:{account_input:"Honeycomb Account",company:"Company",company_placeholder:"Company name",department:"Department",department_placeholder:"Department name",end_date_placeholder:"End date",endt_date:"End date",extra_options:"Extra Options",honeycomb_data:"Honeycomb Data",honeycomb_name:"Honeycomb Name",honeycomb_name_placeholder:"Name your honeycomb",max_seats:"Max Tests",owner_input:"Honeycomb Owner",privacy:"This honeycomb is private, only I can see it.",save:"Save",saving:"Saving",send_automatic_tarrix_msg:"Send automatically assessment results after finish",show_result_at_the_end:"Allow users to visualize their results at the end of the assessment",start_date:"Start date",start_date_placeholder:"Start date",tags:"Select tags",valid_between:"Available between dates",wants_email:"Do you want to be notified by email when somebody answers the Assessment?"},honeycomb_groups:{date:"Date",honeycomb_group_blank:`You do not have group reports created. 
To create a group report, select the assessments you want to group, generate the report from the mass actions, and save the group with a name.`,last_update:"Last update",name:"Name",quantity:"No. Assessments",show:"Show Report",title:"Group reports"},list_assessments:{client:"Client",date:"Date",email:"Email",employee:"Employee",employee_number:"Employee No.",honeycomb_no_assements:"This honeycomb doesn't have Assessments",show_profile:"Show Profile",statue:"Status"},list_honeycombs:{no_honeycombs_found:"No honeycombs found"},new:{new_honeycomb:"New honeycomb"},results:{honeycomb:"Honeycomb",honeycomb_results_header:"Honeycomb results - Assessments Selected"},send_reports_bulk:{emails_sent:"The emails have been scheduled for delivery.",select_assessment:"Select at least one completed assessment."},share_modal:{close:"Close",copied:"Copied!",copy_instructions:"Copy",share_instructions:"Share instructions",share_instructions_description:"Copy and share the following instructions with your collaborators so they can perform your tarrix test",share_instructions_html:`Please follow the instructions to take your emotional paycheck test. &#10;&#10;You must enter the following address in your browser: %{url} &#10;&#10;Once you fill out your profile information, enter the following access code: %{code} &#10;&#10;Note: Please use Google Chrome, Edge, Firefox, or Safari web browser to take the test. Internet Explorer is not supported.
`},show:{delete_honeycomb:"Delete Honeycomb",delete_honeycomb_alert:"Are you sure you want to delete this honeycomb?",download_excel:"Download Excel",download_pdfs:"Download PDFS",export_data:"Export Data",honeycomb:"Honeycomb",honeycomb_belongs_to:"Current account:",private_honeycomb:"Private",processing:"Processing",public_honeycomb:"Public",report:"General Report",save:"Save",send_reports:"Send Reports",send_to_all:"Please confirm you want to send the reports to all users of this honeycomb"},sidebar:{search_honeycomb_placeholder:"Search honeycomb by name or code"},sticky_data:{copied:"Copied!",copy:"Copy",created_at:"Created At",created_by:"Created By",honeycomb_code:"Honeycomb Code",honeycomb_id:"Honeycomb Id",seats:"Tests"},update:{record_save:"Honeycomb save successfully."}},i18n:{plural:{keys:["one","other"],rule:"#<Proc:0x000000010c4b51d8 /Users/efra/.rvm/gems/ruby-3.2.2/gems/rails-i18n-7.0.6/lib/rails_i18n/common_pluralizations/one_other.rb:7 (lambda)>"}},layouts:{app:{honeycombs:"Honeycombs",new_honeycomb:"New honeycomb"}},mailers:{user_notifier_mailer:{beegenius_says:"BeeGenius answers - Tarrix"}},messages:{about_results_description:"Next, please select one of the options to continue with the accompaniment process.",controller:{email_sent:"E-mail sent successfully!"},"disclaimer-1":"Note: All the results and suggestions of our artificial intelligence are based on the book The Emotional Paycheck Method, the Bonfire of Well-being and some other positive psychology texts.","disclaimer-2":"All suggestions are just that and you should apply them at your own risk.",lets_talks_about_the_results:"Let's talk about the results",message:{check_email:"Please check your inbox so you can find the message from BeeGenius",email_sent:"E-mail sent",send:"Send",send_to_email:"Send to my e-mail",this_message_email_information:"This message will be sent to:"}},misc:{recommendations_for_improve:"Recommendations to improve",the_group:"THE GROUP"},number:{currency:{format:{delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,strip_insignificant_zeros:!1,unit:"$"}},format:{delimiter:",",precision:3,round_mode:"default",separator:".",significant:!1,strip_insignificant_zeros:!1},human:{decimal_units:{format:"%n %u",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},format:{delimiter:"",precision:3,significant:!0,strip_insignificant_zeros:!0},storage_units:{format:"%n %u",units:{byte:{one:"Byte",other:"Bytes"},eb:"EB",gb:"GB",kb:"KB",mb:"MB",pb:"PB",tb:"TB"}}},percentage:{format:{delimiter:"",format:"%n%"}},precision:{format:{delimiter:""}}},orders:{card:{created_at:"Created Date",created_by:"Created by",email:"E-mail",last_digits:"Last Digits",status:"Status"},form:{available_plans:"Available Plans",card:"Credit/Debit Card",go_to_pay:"Go to Pay",payment_method:"Payment Method",paypal:"PayPal",wire_transfer:"Wire-transfer"},index:{amount:"Tarrix Amount",created_at:"Created At",created_by:"Created By",details:"View Options",orders_title:"Buy Tarrix Credits",paid:"Paid Amount",payment_method:"Payment Method",plan_name:"Plan name",price:"Price",status:"Status"},new:{new_purchase:"New seats purchase"},paypal:{created_at:"Creation Date",created_by:"Created by",email:"E-mail",status:"Status"},show:{created_at:"Date",created_by:"Pay By",email:"Email",last_digits:"Card",order:"Number",orders_title:"Order",processor:"Processor",total:"Total"},wire:{account_number:"Account number",adress:"Legal adress",bank_adress:"Bank adress",banking_information:"Banking information",banking_institution:"Banking institution",branch_number:"Branch number",company_information:"Company information",company_name:"Name of the company",created_at:"Creation Date",created_by:"Created by",currency:"Currency",email:"E-mail",institution_number:"Institution number",order_accept:"Accept order",order_confirm_alert:"Are you sure you want to accept this order?",order_reject:"Reject order",order_reject_alert:"Are you sure you want to reject this order?",phone_number:"Phone number",send_email_instructions:"Send your voucher to the email address",status:"Status",swift_code:"Swift code",wating_message:"This order is waiting to be accepted or rejected",wire_payment_instructions:"You have selected the %{order_name} plan for a total of %{order_total} <br/><br/> Make a wire-transfer with the following details:",wire_transfer:"Wire-transfer"}},orders_status:{failed:"Failed",paid:"Paid",processing:"Processing",waiting_payment:"Waiting Payment"},pagy:{combo_nav_js:"<label>Page %{page_input} of %{pages}</label>",info:{multiple_pages:"Displaying %{item_name} <b>%{from}-%{to}</b> of <b>%{count}</b> in total",no_items:"No %{item_name} found",single_page:"Displaying <b>%{count}</b> %{item_name}"},item_name:{one:"item",other:"items"},items_selector_js:"<label>Show %{items_input} %{item_name} per page</label>",nav:{gap:"&hellip;",next:"Next&nbsp;&rsaquo;",prev:"&lsaquo;&nbsp;Prev"}},passwords:{create:{email_address_not_associated:"That address is either invalid or is not associated with a user account",reset_password_instructions_sent:"Check your email for a link to reset your password. If it doesn't appear within a few minutes, check your spam folder."},edit:{invalid_reset_token:"Reset password token is invalid. Please try again.",save:"Save",store_password:"New Password",store_password_placeholder:"Write your new password",tarrix_set_password:"Update password",to_start:"Write a new password for your account"},new:{recover_msg:"If it doesn't appear within a few minutes, check your spam folder.",return_to_login:"Back to login",send_instructions:"Send password reset email",tarrix_recover_header:"Forgot password?",to_start:"Write your email address to reset your password.",username:"Email address",username_placehoder:"Write your email address"},update:{password_not_valid:"Your password must be at lest 6 characters long.",password_reset:"Your password has been updated. Please login."}},pay:{all_rights_reserved:"All rights reserved.",back:"Go back",cancelled:{description:"This payment was cancelled.",header:"Payment Cancelled"},errors:{action_required:"This payment attempt failed because additional action is required before it can be completed.",braintree:{authorization:"Either the data you submitted is malformed and does not match the API or the API key you used may not be authorized to perform this action."},email_required:"Email is required to create a customer",invalid_payment:"This payment attempt failed because of an invalid payment method.",no_processor:"No payment processor selected. Make sure to set the %{class_name}'s `processor` attribute to either 'stripe' or 'braintree'."},invoice:{date:"Date",number:"Invoice Number",payment_method:"Payment method"},line_items:{amount:"Amount",amount_discount:"%{name} (%{amount} off)",description:"Description",discount:"Discount",percent_discount:"%{name} (%{percent}% off)",quantity:"Quantity",subtotal:"Subtotal",tax:"Tax",total:"Total",unit_price:"Unit Price"},receipt:{amount_paid:"Amount paid",date:"Date",number:"Receipt Number",paid:"Paid",payment_method:"Payment Method",refunded:"Refunded",refunded_on:"Refunded on %{date}"},refund:"Refund",requires_action:{button:"Pay %{amount}",card:"Credit or debit card",description:"Extra confirmation is needed to process your payment. Please confirm your payment by filling out your payment details below.",full_name:"Full name",header:"Confirm your %{amount} payment",name_missing:"Please provide your name.",success:"The payment was successful."},successful:{description:"This payment was already successfully confirmed.",header:"Payment Successful"},user_mailer:{payment_action_required:{subject:"Confirm your payment"},receipt:{subject:"Payment receipt"},refund:{subject:"Payment refunded"},subscription_renewing:{subject:"Your upcoming subscription renewal"}}},payment_types:{card:"Credit or Debit Card",wire:"Wire Transfer"},plans:{edit:{edit_plan:"Edit plan"},form:{name:"Plan name",plan_instructions:"Please add information about the tarrix plan",price:"Price in DLLS",tarrix_amount:"Tarrix amount"},index:{amount:"Tarrix Amount",created_at:"Created At",created_by:"Created By",individual_cost:"Unit Price",name:"Name",new_plan:"New plan",plans_title:"Plans",price:"Price"},new:{new_plan:"New plan",new_purchase:"New Purchase"}},profile:{index:{created_at:"Created At",created_by:"Created By",credit_tarrix:"Tarrix Credits",edit:"Edit",email:"Email",fullname:"Full Name",honeycombs_created:"Honeycombs Created",lastlogin:"Last Access",loading_honeycombs:"Loading honeycombs",my_profile:"My profile",unlimited:"Unlimited",user_id:"User Id",username:"Username"}},profiles:{answers:{email:"Email",full_name:"Full name",no_answers_selected:"No answers selected",no_email:"Empty",show_profile:"Show Profile",user_profile:"User profile"},employee_number:{edit:"Edit"},messages:{"disclaimer-1":"Note: All the results and suggestions of our artificial intelligence are based on the book The Emotional Paycheck Method, the Bonfire of Well-being and some other positive psychology texts.","disclaimer-2":"All suggestions are just that and you should apply them at your own risk."},show:{age_range:"Age Range",birth_year_range:"Birth Year Range",company:"Company",company_data:"Company Data",country:"Country",date_created:"Created at",download_pdf:"Download PDF",edit:"edit",education:"Education",email:"Email",employee_number:"Employee number",from:"from",fullname:"Full name",genereate_pdf:"Regenerate PDF",genre:"Gender",honeycomb:"Assigned honeycomb",last_download_date:"Last downloaded date",last_sent_date:"Last sent by email date",marital_status:"Marital Status",minutes:"minutes",not_downloaded:"Has not been downloaded",not_sent:"It has not been sent",options:"Options",prompt:"Create prompt for AI",questions_answerd:"Questions Answered",result_time:"Response time",send_via_email:"Send results by Email",show_answers:"Show Answers",show_report:"Show report",status:"Status",tarrix_data:"Tarrix Data",title:"User Profile",user_information:"User Information"}},questionnaire:{finish_assessment:{and:"and",close_app:"Close",finish_message:"The assessment has been completed successfully. Thanks for using Tarrix!","rigths-reserved":"Rights reserved","show results":"Show preliminary results",slect_one_option:"Select one of the following options:"},index:{about_tarrix:"<b>Tarrix<sup>\xAE</sup> is the first assessment to measure the Emotional Paycheck.</b> Discover the quality of your Emotional Paycheck and receive recommendations on how to improve it.",desc_1:"Assess the emotional Paycheck of your work teams.",desc_2:"Receive recommendations on how to improve the quality of your emotional Paycheck.",header:"How high is your Emotional Paycheck<sup>\xAE</sup>?",info_emotional_institute:"For more information or to purchase a Tarrix, visit us at",start_now:"Start now"},join_group:{ask_to_code_notice:"We have sent to your email the instructions to get your access code.",code:"Code",code_hint:"Enter your group code",continue:"Enter group",header:"Join the Group",no_access_code:"No access? Ask for access",request_access:"No access? Ask for access",subtitle:"Enter your group code. If you do not have one, you can ask for it"},join_group_save:{group_not_open:"Group is closed. Contact your representative for more information.",invalid_code:"Invalid code.",no_credits:"No credits available.",no_seats_available:"No tests available."},priorities_help:{continue_button:"Understood, proceed with the test",instructions_step_1:'Among the given options, select the one that you consider <span style="color: #008000;">the most important.</span>',instructions_step_2:"From the remaining options, select the one that holds greater importance for you.",instructions_step_3:"Repeat this process until you've gone through all the options on the list.",modal_instructions:"Follow the instructions for questions 46, 47, and 48.",modal_title:"Attention!",step_1:"Step 1",step_2:"Step 2",step_3:"Step 3"},question:{higher_priority:"Higher priority",lower_priority:"Lower priority",press_action:"Click on",press_to_sort:"and drag to sort",processing:"Processing",question:"Question",restart_order:"reset order"},results:{close_app:"Close",distribution_motivation:"Distribution of motivation",get_more_details_of_tarrix:"To get the Tarrix<sup>\xAE</sup> <b>detailed report</b> and learn how to improve your emotional paycheck, we recommend that you contact your representative at Emotional Paycheck Institute<sup>\xAE</sup>.",high:"High",high_priority:"HIGH PRIORITY",invalid_assesment_msg:"The time you have used to answer this assessment is too short, the test has been invalidated, we invite you to answer it again by carefully reading each of the questions.",invalid_group_access:"We could not find your tarrix evaluation to display your results, please ask for help.",low:"Low",low_priority:"LOW PRIORITY",main_motivations:"Main motivations",medium:"Medium",medium_priority:"MEDIUM PRIORITY",priority_scale_1:"The priority in the green graphics is measured as follows:",priority_scale_2:"The priority in the grey graphics is measured as follows:",priority_scale_3_end:"is shown, the priority automatically becomes very high.",priority_scale_3_start:"If a red",result_intepretation:"Result interpretation",results_header:"Here are your tarrix evaluation results",results_subheader:"Find how high your emotional paycheck is",retry:"Retake the exam",summary_results:"Summary of results"},results_print:{and:"and",company:"Company",contextuality:"Contextuality",contextuality_description:"<p>The results of the assessment are contextual. This means they are valid only in  the context and time in which the evaluation has been answered. Therefore, we recommend  a term of validity that does not exceed two months after the Tarrix\xAE assessment has  been completed to implement measures to improve any of its components.</p>",cover_title:"First assessment to measure<br>Emotional Paycheck<sup>\xAE</sup>",date:"Date",distribution_motivation:"Distribution of motivation",group:"Group",header:"These are the results of the Tarrix assessment.",high:"High",honeycomb:"Honeycomb",interpretative_report:"Report interpretation",interpretative_report_description:"<p>The following report contains the first line of recommendations to improve the  quality of  Emotional Paycheck\xAE that employees receive.   If you need further information  on how to improve any of the elements that make up the Emotional Paycheck\xAE, we suggest  contacting a certified trainer.</p><p>Following are the results of each element  measured in this evaluation with a starting recommendation, according to the  answers given by %{user_name}.</p>",intro_description:`<p>You receive two types of payment when you perform a job. The first payment  is the financial salary or paycheck, which is widely known, paid by the company  shareholders and received by the employees in the common currency of the country  where the job is performed (dollars, pesos, euros, etc).  It is easy to know if  has been paid on time and if it is enough and competitive. Therefore, we can say  that the financial paycheck is paid by the shareholders or, ultimately, the customers,  resulting from the organization's financial success.</p><p>The second kind of Paycheck  is received as a "currency" of a very different nature. This could be received through  emotions, expectations, experiences, or well-being. It grows on the quality of the  relationships with customers, colleagues, and your immediate boss. This type of  paycheck is much more dynamic and requires a specific set of skills to be effective.  This is the Emotional Paycheck.</p><p>The Tarrix\xAE assessment is the first evaluation  designed to measure the employee\u2019s perceived well-being and happiness at work.</p>`,introduction:"Introduction",join_text:" and ",low:"Low",main_motivations:"Main motivations",medium:"Medium",minutes:"Minutes",motivation_talk_to_expert:"There are some special techniques to establish a better connection with those individuals who show these motivations. Would you like to establish an emotional compensation programme designed to obtain these results? Then, contact an Emotional Paycheck certified professional.","motivations list":"These are the complementary motivations for %{user_name}.",motivations_description:"<p>The motivations established by Dr. Clare Graves allow us to understand  what our employee\u2019s main motivations are. %{user_name} has shown a preference for motivations %{main_motivations}.</p>",motivations_title:"Graves Motivations",name:"Name",name_origin:"Origins of the Name",origin_description:"<p>There are some species without which the ecosystem we inhabit could  not be self-sustainable. Among them, it is possible to name the bees,  insects that are naturally associated with industriousness and teamwork.  They work collectively and produce honey, which, by the way, has no  expiration date.<p/><p>In the same way bees contribute to the pollination  and preservation of forests, the Tarrix\xAE assessment and Emotional Paycheck\xAE  Ambassadors are bent on generating happiness and well-being within the work  environment.<p/>",priority_scale_1:"The priority in the green graphics is measured as follows:",priority_scale_2:"The priority in the grey graphics is measured as follows:",priority_scale_3_end:"is shown, the priority automatically becomes very high.",priority_scale_3_start:"If a red",privacy_police_title:"Legal and Privacy Notice",privary_policy_text:'<p>Tarrix\xAE is an assessment designed and administered by A. R. O. Coaching and Teambuilding services Inc. which also holds the rights to Emotional Paycheck\xAE, Emotional Paycheck\xAE and Salario Emocional\xAE in Spain. </p> <p>At Emotional Paycheck\xAE we care about your privacy and believe in transparency. We only collect the personal information necessary to provide our services and we handle it carefully and sensibly. </p> <p>To learn more about our privacy policy and the management of your data, you can visit our site at <a href="https://www.emotionalpaycheck.com/privacy-policy/" target="_blank">here</a>.</p> <p>A. R. O. Coaching and Teambuilding Services Inc, and all its registered trademarks, including but not limited to Tarrix\xAE, Emotional Paycheck\xAE, have made their best effort to generate a highly reliable assessment that seeks to improve the quality of emotional pay of employees in companies, however we strongly suggest the participation of a certified professional for the implementation of the measures that arise as a result of this assessment. </p><p>Tarrix\xAE is an assessment and aims to communicate in a structured way the feeling of an employee in the company, the end user is fully responsible for the actions and consequences that are carried out as a result of this assessment, so the company A. R. O. Coaching and Teambuilding Services Inc and all its affiliates disclaim any responsibility in this regard. </p> <p> We suggest always to have the advice of a certified professional with extensive experience in these matters.</p> <p>In case of any doubt, please contact: </p> <p class="contact"> A.R.O. Coaching and Teambuilding Services Inc.<br /> Emotional Paycheck<br /> 7111 Syntex Dr, 3rd Floor, Mississauga<br /> ON L5N8C3 , Canada<br /> Correo: <a href="mailto:info@emotionalpaycheck.com">info@emotionalpaycheck.com</a><br /> Tel: <a href="callto:(+1) 954.376.5702">(+1) 954.376.5702</a><br /></p>',result_intepretation:"Result interpretation",result_text_desc:"The complete result of %{user_name}'s motivations are:",results_subheader:"Find how high your emotional paycheck is","rigths-reserved":"Rights reserved",theoretical_support:"Theoretical Support",theoretical_support_description:"<p>The Tarrix report shows an assessment based on two tools and one psychological  theory. On the one hand, it analyses the employee\u2019s perception concerning the nine  elements of the Emotional Paycheck\xAE according to the Emotional Paycheck Institute  of Canada. On the other hand, it also analyses the motivational drives in the human  adult development according to Dr. Clare W. Graves.</p>",time_to_complete:"Time",to_complete_text:" to answer the Assessment",wellbeing_career:"Careeer",wellbeing_community:"Community",wellbeing_description:"<p>The definition of happiness is highly dynamic and personal; it is incredibly complex to measure it. However, some ingredients facilitate the appearance of that emotion that we call happiness, these components we call categories of subjective perception of wellbeing. They are perceived differently in each of us, hence the term subjective.<br><br>Tarrix measures Dr. Leal&apos;s five categories of subjective perception of wellbeing that we consider essential for the appearance of happiness in the Emotional Paycheck Institute of Canada.<br><br>The five categories are:<br><br><strong>Social category:</strong> refers to the quality and quantity of love, appreciation, respect and recognition received from the environment at work, understanding all those positive emotions acquired from the workplace. <em>(i.e. If we don&apos;t feel appreciated at work, if we don&apos;t feel recognition from our peers and supervisors)</em><br><br><strong>Community category:</strong> refers to our perception of connection and belonging with the environment that surrounds us, other groups of people, work areas, company departments and communities in general. <em>(i.e. If we don&apos;t feel connected to other groups of people at work, the evaluation of this category should be low)</em><br><strong><br>Career category:</strong> refers to the use we perceive of our talents at work. The amount and complexity of challenges we face compared to the level of competencies and skills to solve them successfully. <em>(i.e. If we find ourselves often working overtime or if we find ourselves bored by the lack of challenge, that means a low evaluation of this category)</em><br><br><strong>Emotional &amp; physical category</strong>: refers to the individual&apos;s perception regarding their state of physical &amp; emotional health. <em>(i.e. if we find ourselves suffering from stress-related issues, this category should have a low evaluation)</em></p><p><strong>Financial category:</strong> refers to the individual&apos;s perception regarding their financial health, buying power and ability to pay their debt. <em>(i.e. If we are surrounded by debt, the evaluation of this category should be low)</em><br><br><br></p>",wellbeing_financial:"Financial",wellbeing_physical:"Emotional & Physical",wellbeing_social:"Social",wellbeing_title:"Categories of wellbeing"},results_print_text:{and:"and",company:"Company",cover_title:"First assessment to measure<br>Emotional Paycheck<sup>\xAE</sup>",date:"Date",group:"Group",header:"These are the results of the Tarrix assessment.",name:"Name"},results_text:{results_header:"Here are your tarrix evaluation results"},signup:{birth_range:"Age range",birth_year_range:"Birth year range",close:"Aceptar",company:"Company",company_select_prompt:"\u2014 Select an option if applicable \u2014",compliant:'<p style="font-size:12px;"> *We are GDPR compliant; your results will only be used according to our privacy policy.</p> <p style="font-size:12px;"> *Marital status, gender and WhatsApp number are optional.</p>',continue:"Continue",country:"Country",email:"E-mail address",email_message:"If you provide your email, you will receive the results in the next few days",employee_identification:"Employee number",gender:"Gender",header:"Sign Up",ie_not_supported:`Please upgrade your browser to Chrome, Firefox, or Edge in order to continue. 
Internet Explorer is not currently supported by the application.`,last_name:"Last Name",legal_notice:"Aviso Legal y de Privacidad",legal_notice_desc:`<p>Tarrix\xAE is an assessment designed and administered by A. R. O. Coaching and Teambuilding services Inc. , a company that also owns the rights to Emotional Paycheck\xAE, Emotional Payment\xAE and Salario Emocional\xAE in Spain.</p>
<p>At Emotional Paycheck\xAE we care about your privacy and believe in transparency. We only collect personal information necessary to provide our services and handle it with care.</p>
<p>To learn more about the privacy policy and the management of your data, you can visit our site here.</p>
<p>A. R. O. Coaching and Teambuilding Services Inc, and all of its trademarks, including but not limited to Tarrix\xAE, Emotional Paycheck\xAE, have done their best to generate a highly reliable evaluation that seeks to improve the quality of employees' emotional payment, however we strongly suggest the involvement of a certified professional for the implementation of the measures that arise as a result of this evaluation. evaluation.</p>
<p>Tarrix\xAE is an evaluation and its purpose is to communicate in a structured way the feelings of a co-worker in the company, the end user is completely responsible for the actions and consequences that are carried out as a result of this evaluation, so the company A. R. O. Coaching and Teambuilding Services Inc and all its affiliates are not responsible in this regard.</p>
<p>We always suggest having the advice of a certified professional with extensive experience in these matters.</p>
<p>In case of any questions please contact:</p>
`,legal_notice_link:"By pressing the Continue button, you accept",legal_notice_link_to:"our legal notice and privacy policy.",marital_status:"Marital Status",name:"Name",optional:"Optional",scolarship:"Schooling",select_option:"Select an option...",subtitle:"To start the assessment, you are required to enter your contact details. Then, the results will be made available through an Emotional Paycheck professional."}},questions:{index:{about_tarrix:"Tarrix\xAE the first emotional paycheck assessment. Discover the quality of your emotional paycheck and receive experts advices on how to improve it.",header:"Tarrix - Questions"}},ransack:{all:"all",and:"and",any:"any",asc:"ascending",attribute:"attribute",combinator:"combinator",condition:"condition",desc:"descending",or:"or",predicate:"predicate",predicates:{blank:"is blank",cont:"contains",cont_all:"contains all",cont_any:"contains any",does_not_match:"doesn't match",does_not_match_all:"doesn't match all",does_not_match_any:"doesn't match any",end:"ends with",end_all:"ends with all",end_any:"ends with any",eq:"equals",eq_all:"equals all",eq_any:"equals any",false:"is false",gt:"greater than",gt_all:"greater than all",gt_any:"greater than any",gteq:"greater than or equal to",gteq_all:"greater than or equal to all",gteq_any:"greater than or equal to any",in:"in",in_all:"in all",in_any:"in any",lt:"less than",lt_all:"less than all",lt_any:"less than any",lteq:"less than or equal to",lteq_all:"less than or equal to all",lteq_any:"less than or equal to any",matches:"matches",matches_all:"matches all",matches_any:"matches any",not_cont:"doesn't contain",not_cont_all:"doesn't contain all",not_cont_any:"doesn't contain any",not_end:"doesn't end with",not_end_all:"doesn't end with all",not_end_any:"doesn't end with any",not_eq:"not equal to",not_eq_all:"not equal to all",not_eq_any:"not equal to any",not_in:"not in",not_in_all:"not in all",not_in_any:"not in any",not_null:"is not null",not_start:"doesn't start with",not_start_all:"doesn't start with all",not_start_any:"doesn't start with any",null:"is null",present:"is present",start:"starts with",start_all:"starts with all",start_any:"starts with any",true:"is true"},search:"search",sort:"sort",value:"value"},reports:{group_report:{age_ranges:"Birth Year Ranges",assessments_selected:"Assessments Completed Selected",avg_emotional_paycheck:"Average Emotional Paycheck",demographic_results_disclaimer:"Note: The demographic results are directly influenced by the responses provided by users in this section. Participation in the demographic section is optional and is subject to our personal data protection policy.",download_table:"Download table",emotional_paycheck:"Emotional Paycheck",employee_number:"Employee Number",gender:"Gender",group_motivation_distribution:" Distribution Of Group Motivations ",help:"Help",help_text:"Place the mouse over the indicators on the screen to get a detailed description and psychological interpretation that make it up.",importance:"Importance",interpretation_help_title:"Results Interpretation Assistance",interpretation_question_1:"Which collaborators require an urgent one-on-one talk with their immediate supervisor?",interpretation_question_2:"What are the collaborators who perceive themselves as having work overload and little balance?",interpretation_question_3:"Which collaborators require a review of their economic compensation or financial health?",interpretation_question_4:"Which collaborators require us to improve their future perspective within the company?",main_motivations:"Main motivations",marital_status:"Marital Status",notice_warning:"The priority is higher than the result so it becomes high priority.",qualifications:"Qualifications",scolarship:"Scholarship",standard_deviation:"Standard deviation",statistical_indicators:"Statistical indicators",summary_per_person:"Summary of Qualifications by Person",table_exceedence_warning:"The table contains more than 100 records, so not all of them are being displayed. For more information, please contact the administrator.",wellbeing_title:"Categories of wellbeing"}},results:{global_report:{global_report_for:"Report"},index:{after:"After:",age:"Age",before:"Before:",birth_year:"Birth year",cancel:"Cancel",clear_filters:"Clear filters",email:"Email",employee_identification:"Employee ID",gender:"Gender",genereate_report:"Generate report",honeycomb_code:"Honeycomb Code",honeycomb_name:"Honeycomb Name",last_name:"Last Name",marital_status:"Marital Status",more_filters:"More filters",name:"Name",no_results_message:"No records found, please change your search values.",registers:"assessments",search:"Search",search_by:"Search by...",search_by_age_range:"Search by birth year",search_by_email:"E-mail",search_by_employee_identification:"Search by employee ID",search_by_gender:"Search by gender",search_by_honeycomb:"Search by honeycomb(s)",search_by_person:"User name",search_by_status:"Search by status",search_marital_status:"Search by martial status",status:"Status",title:"Tarrix Assessments"},report:{no_assesment_selected:"Please select a complete application to generate the report",report_title:"Results of Selected Applications"}},sessions:{create:{invalid_email_or_password:"Invalid email or password.",need_login_to_continue:"Must login or register to continue.",user_is_blocked:"User was blocked. Please contact with the admins for more information.",welcome_to_tarrix:"Welcome to Tarrix."},destroy:{logout_msg:"You logout successfully."},new:{develop_by:"Develop by",forget_password:"Forgot your password?",login:"Login",password:"Password",placeholder_email:"Your login email",placeholder_password:"Your password",recover_password:"Recover",to_start:"To start please login with your user and password",user:"Email",welcome_to_tarrix:"Welcome to Tarrix Admin Panel"}},shared:{bulk_actions:{bulk_options:"Bulk Actions",change_honeycomb:"Change Honeycomb",delete_bulk:"Delete selected",delete_bulk_confirmation:"Please confirm you want to delete these assessments. This action can't be undone!",report_bulk:"Report with selected",send_report_bulk:"Send Report"},navigation:{accounts:"Accounts",assessments:"Assessments",click_to_log_in:"Click on the name to log in",credit_tarrix:"Credits",hives:"Hives",honeycombs:"Honeycombs",logged:"(Logged in)",logout:"Logout",orders:"Orders",plans:"Plans",purchase_seats:"Purchase Tests",questions:"Questions",seats_available:"Tests Available",tags:"Tags",unlimited:"Unlimited Tests",users:"Users",view_profile:"View Profile"}},simple_form:{error_notification:{default_message:"Please review the problems below:"},no:"No",required:{mark:"*",text:"required"},yes:"Yes"},support:{array:{last_word_connector:", and ",two_words_connector:" and ",words_connector:", "}},tags:{controller:{create:{tag_saved:"Tag saved successfully"},destroy:{tag_destroyed:"Tag deleted successfully"},update:{tag_updated:"Tag updated successfully"}},edit:{edit_tag:"Edit tag"},form:{cancel:"Cancel",edit_tag_name:"Write the new name of the tag",save:"Save",tag_name:"Write the name of the new tag"},index:{are_you_sure:"Confirm you wish to delete this tag",created_at:"Created at",delete:"Delete",edit:"Edit",export_data:"Export Data",global_report:"Global Report",name:"Name",new_tag:"New tag",no_recent_tags:"No tags created yet",taggings_count:"Usage count"},show:{assessments_quantity:"Assessments quantity",honeycomb:"Honeycomb",not_in_use:"This tag is not being used",tag:"Tag",tag_show_information:"This tag is being used in the following honeycombs"}},time:{am:"am",formats:{date_time:"%Y/%m/%d at %I:%M %p",date_time_alt:"%Y-%m-%d %H:%M",dateonly:"%d/%m/%Y",dateonly_alt:"%d of %B of %Y",default:"%a, %d of %b de %Y at %H:%M:%S %Z",excel_date:"%Y-%m-%dT%H:%M:%S.%L",long:"%A, %d of %B of %Y at %I:%M %p",medium:"%d/%m/%Y at %I:%M %p",month:"%b",short:"%d of %b at %H:%M hrs",short_date:"%d/%m/%Y ",time_12_hours:"%I:%M %p",time_only:"%H:%M hrs",weekday:"%A"},pm:"pm"},user_birth_range:{"1":"21-25","2":"26-30","3":"31-35","4":"36-40","5":"41-45","6":"Older than 45"},user_gender:{f:"Feminine",m:"Masculine",o:"Other",other:"Other"},user_marital_status:{"1":"Single","2":"In a relationship","3":"Consensual union","4":"Married","5":"Prefer not answer","6":"Divorced","7":"Widower / Widow"},user_notifier_mailer:{answered:"El Tarrix fue contestado",purchase_fail_subject:"Order cancelled",purchase_success_subject:"Purchase completed successfully",send_message_email:{description:"Here are the suggested activities to enhance your emotional salary. Remember, these are just suggestions and should be filtered through your experience and the feedback from your team. Communication is key",difficulties:'For more information or assistance in implementing these ideas, you can contact us via WhatsApp on         the phone <strong>+52 1 55 4766 8048</strong> or by clicking here on the         following link: <a         href="https://wa.me/message/AHFRYNGF6ZUTF1">https://wa.me/message/AHFRYNGF6ZUTF1</a>         <br> <br> We can also assist you by email for any questions or         clarification <strong>tarrix@emotionalpaycheck.com</strong> <br> <br>         <br> Kind regards.<br> <br> Note: This message is generated         automatically.',greeting:"Hello,",message:"Message:",pre_message:"You have shared this message answered by BeeGenius in the group <strong>%{group}</strong>, located in the honeycomb <strong>%{honeycomb}</strong>."},send_questionnaire_answered_email:{click_to_see:"Click here to see the result",difficulties:`If you have problems in this process you can contact us via WhatsApp on the phone <strong>+52 1 55 4766 8048</strong> or by clicking here on the following link: <a href="https://wa.me/message/AHFRYNGF6ZUTF1">https://wa.me/message/AHFRYNGF6ZUTF1</a> <br> <br> We can also assist you by email for any questions or clarification <strong>tarrix@emotionalpaycheck.com</strong> <br> <br> <br> Kind regards.<br> <br> Note: This message is generated automatically.
`,greeting:"Dear",somebody_answered:"has answered the following test",the_user:"The user"},send_register_email:{admin:"Administrator account",created:"has been created",dificulties:`If you have difficulty in this process you can contact us via WhatsApp on the phone <strong>+52 1 55 4766 8048</strong> or by clicking here on the following link: <a href="https://wa.me/message/AHFRYNGF6ZUTF1">https://wa.me/message/AHFRYNGF6ZUTF1</a> <br> <br> We can also assist you by email for any questions or clarification <strong>tarrix@emotionalpaycheck.com</strong> <br> <br> <br> Kind regards.<br> <br> Note: This message is generated automatically.
`,for_it:"For this you need to click the following link",from_emotional:"The Emotional Paycheck Institute of Canada has given you access to the administration panel of",greeting:"Dear",new_account:"Your new",password:"Password",professional:"Professional user account",to_enter:"To enter, use the following access data",user:"User"},send_report_email:{hello:"Hello",help:"If you need help email us to",thanks:`<div>Thank you for using <strong>Tarrix</strong>.&nbsp;</div> <div>&nbsp;</div> <div>We attach the result of your evaluation to this email.&nbsp;</div>
`,your_results:"The results of your Tarrix assessment"},send_reset_password_instructions:{click_here:"You have requested a link to change your password, we ask you to click on the following link so you can recover your account.",difficulties:`If you have problems in this process you can contact us via WhatsApp on the phone <strong>+52 1 55 4766 8048</strong> or by clicking here on the following link: <a href="https://wa.me/message/AHFRYNGF6ZUTF1">https://wa.me/message/AHFRYNGF6ZUTF1</a> <br> <br> We can also assist you by email for any questions or clarification <strong>tarrix@emotionalpaycheck.com</strong> <br> <br> <br> Kind regards.<br> <br> Note: This message is generated automatically.
`,dont_change:"If you do not wish to change your password, please ignore this email. Your password will not be changed until you login to the league and change your password.",greeting:"Dear"},wire_transfer_notification:{account_number:"Account number",adress:"Legal address",bank_address:"Bank adress",banking_information:"Banking information",banking_institution:"Banking institution",branch_number:"Branch number",company_information:"Company information",company_name:"Name of the company",currency:"Currency",dificulties:`If you have problems in this process you can contact us via WhatsApp on the phone <strong>+52 1 55 4766 8048</strong> or by clicking here on the following link: <a href="https://wa.me/message/AHFRYNGF6ZUTF1">https://wa.me/message/AHFRYNGF6ZUTF1</a> <br> <br> We can also assist you by email for any questions or clarification <strong>tarrix@emotionalpaycheck.com</strong> <br> <br> <br> Kind regards.<br> <br> Note: This message is generated automatically.
`,greeting:"Dear",institution_number:"Institution number",order_accept:"Accept order",order_confirm_alert:"Are you sure you want to accept this order?",order_reject:"Reject order",order_reject_alert:"Are you sure you want to reject this order?",phone_number:"Phone number",send_email_instructions:"Once the payment is done, please send your voucher to the email address",swift_code:"Swift code",wating_message:"This order is waiting to be accepted or rejected",wire_payment_instructions:"You have selected the <strong>%{order_name}</strong> plan for a total of <strong>%{order_total}</strong>. <br/><br/> Make a wire-transfer with the details below.",wire_transfer:"Wire-transfer"},wire_transfer_subject:"Payment instructions for your purchase",wtransfer_fail_notification:{greeting:"Dear",mail_body_fail:'We regret to inform you that your order of %{order_name} has been cancelled. <br/><br> For more information, you can contact us at WhatsApp on the phone <strong>+52 1 55 4766 8048</strong> or by sending an email to <a href="mailto: tarrix@emotionalpaycheck.com">tarrix@emotionalpaycheck.com</a> <br><br> Kind regards,'},wtransfer_success_notification:{greeting:"Dear",mail_body_success:"Your purchase has been successfully completed. <br/><br> %{order_name} have been added to your account. <br><br> Thank you so much!"},your_instructions:"Instrucciones para restablecer tu contrase\xF1a",your_result:"Tu resultado Tarrix",your_user:"Account creation on Tarrix"},user_role:{admin:"User admin",professional:"User professional"},user_scholar_degree:{"1":"Elementary school","2":"Highschool","3":"Vocational courses","4":"Bachelor","5":"Master","6":"Doctor",nil:"Undefined"},users:{account_user_fields:{account_permissions:"Account permissions",delete_account:"Delete account"},edit:{back:"Back",header:"Update user",save:"Save"},form:{accounts:"Accounts",add_account:"Add account",application_limit_helptext:'If "0" is set the Assessments are unlimited',application_limit_label:"Tarrix Assessments available for use",application_limit_placeholder:"Write a number",created_at:"Created at",created_by:"Created by",first_name:"First name",general_data:"General data",last_name:"Last name",lastlogin:"Last Access",new_password:"New password",password:"Password",password_hint:"Write a secure password",user_limits:"User limits",user_role:"User role"},index:{admins:"Administrators",all_users:"All Users",blocked_at:"Blocked At",created_at:"Created At",created_by:"Created By",delete:"Delete",delete_warning:"Are your sure you want to delete this user?",edit:"Edit",email:"Email",last_name:"Last Name",last_session:"Last Session",name:"Name",new_user:"New user",please_change_your_filters:"No results. Please change your selected filters.",professionals:"Professionals",search_placeholder:"Search user",show:"Show",type:"Type",users_title:"Users"},list_honeycombs:{assesment_number:"No. Assessments",company:"Company",department:"Department",honeycomb:"Honeycomb",honeycomb_code:"Honeycomb Code",show_honeycomb:"Show Honeycomb",user_no_groups:"The user doesn't have any honeycomb created."},new:{new_user:"New user",save:"Save"},show:{assessments_by_date_last_n_days:"Assessments by Date (120 days)",assessments_by_status:"Assessments by Status",assessments_usage:"Assessment Usage",created_at:"Created At",created_by:"Created By",credit_tarrix:"Tarrix Credits",edit:"Edit",fullname:"Full Name",honeycombs_created:"Honeycombs Created",lastlogin:"Last Access",loading_honeycombs:"Loading honeycombs",title:"User information",unlimited:"Unlimited",user_id:"User Id",username:"Username"}},users_profiles:{form:{save:"Save",saving:"Saving"}},views:{pagination:{first:"&laquo; First",last:"Last &raquo;",next:"Next &rsaquo;",previous:"&lsaquo; Prev",truncate:"&hellip;"}}},es:{account_permissions:{editor:"Editor",viewer:"Solo lectura"},active_admin:{access_denied:{message:"No est\xE1 autorizado/a a realizar esta acci\xF3n."},any:"Cualquiera",batch_actions:{action_label:"%{title} seleccionados",button_label:"Acciones en masa",default_confirmation:"\xBFSeguro que quieres hacer esto?",delete_confirmation:"Se eliminar\xE1n %{plural_model}. \xBFDesea continuar?",labels:{destroy:"Borrar"},selection_toggle_explanation:"(Cambiar selecci\xF3n)",succesfully_destroyed:{one:"Se ha destruido 1 %{model} con \xE9xito",other:"Se han destruido %{count} %{plural_model} con \xE9xito"}},blank_slate:{content:"No hay %{resource_name} a\xFAn.",link:"A\xF1adir"},cancel:"Cancelar",comments:{add:"Comentar",author:"Autor",author_missing:"An\xF3nimo",author_type:"Tipo de autor",body:"Cuerpo",created_at:"Fecha de creaci\xF3n",delete:"Borrar Comentario",delete_confirmation:"\xBFConfirma que desea borrar este comentario?",errors:{empty_text:"El comentario no fue guardado, el texto estaba vac\xEDo."},no_comments_yet:"No hay comentarios a\xFAn.",resource:"Recurso",resource_type:"Tipo de recurso",title_content:"Comentarios (%{count})"},create_another:"Crear otro %{model}",dashboard:"Inicio",dashboard_welcome:{call_to_action:"Para agregar secciones edite 'app/admin/dashboard.rb'",welcome:"Bienvenido a Active Admin. Esta es la p\xE1gina de inicio predeterminada."},delete:"Eliminar",delete_confirmation:"\xBFConfirma que desea borrar este elemento?",delete_model:"Eliminar %{model}",details:"Detalles de %{model}",devise:{change_password:{submit:"Cambiar mi contrase\xF1a",title:"Cambie su contrase\xF1a"},email:{title:"Email"},links:{forgot_your_password:"\xBFOlvid\xF3 su contrase\xF1a?",resend_confirmation_instructions:"Reenviar instrucciones de confirmaci\xF3n",resend_unlock_instructions:"Reenviar instrucciones de desbloqueo",sign_in:"Iniciar Sesi\xF3n",sign_in_with_omniauth_provider:"Con\xE9ctate con %{provider}",sign_up:"Registrarse"},login:{remember_me:"Recordarme",submit:"Iniciar Sesi\xF3n",title:"Iniciar Sesi\xF3n"},password:{title:"Contrase\xF1a"},password_confirmation:{title:"Confirmar Contrase\xF1a"},resend_confirmation_instructions:{submit:"Reenviar instrucciones de confirmaci\xF3n",title:"Reenviar instrucciones de confirmaci\xF3n"},reset_password:{submit:"Restablecer mi contrase\xF1a",title:"\xBFOlvid\xF3 su contrase\xF1a?"},sign_up:{submit:"Registrarse",title:"Registrarse"},subdomain:{title:"Subdominio"},unlock:{submit:"Reenviar instrucciones de desbloqueo",title:"Reenviar instrucciones de desbloqueo"},username:{title:"Nombre de usuario"}},download:"Descargar:",dropdown_actions:{button_label:"Acciones"},edit:"Editar",edit_model:"Editar %{model}",empty:"Vac\xEDo",filters:{buttons:{clear:"Quitar Filtros",filter:"Filtrar"},predicates:{contains:"Contiene",ends_with:"Termina con",equals:"Igual a",from:"Desde",greater_than:"Mayor que",gteq_datetime:"Mayor o igual que",less_than:"Menor que",lteq_datetime:"Menor o igual que",starts_with:"Empieza con",to:"Hasta"}},has_many_delete:"Eliminar",has_many_new:"A\xF1adir %{model}",has_many_remove:"Quitar",index_list:{block:"Lista",blog:"Blog",grid:"Grilla",table:"Tabla"},logout:"Salir",main_content:"Por favor implemente %{model}#main_content para mostrar contenido.",move:"Mover",new_model:"A\xF1adir %{model}",next:"Siguiente",pagination:{empty:"No se han encontrado %{model}",entry:{one:"registro",other:"registros"},multiple:"Mostrando %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b> de un total de <b>%{total}</b>",multiple_without_total:"Mostrando %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b>",one:"Mostrando <b>1</b> %{model}",one_page:"Mostrando <b>un total de %{n}</b> %{model}",per_page:"Por p\xE1gina: "},powered_by:"Funciona con %{active_admin} %{version}",previous:"Anterior",scopes:{all:"Todos"},search_status:{current_filters:"Filtros actuales:",current_scope:"Alcance:",headline:"Estado de la b\xFAsqueda:",no_current_filters:"Ninguno"},sidebars:{filters:"Filtros",search_status:"Estado de la b\xFAsqueda"},status_tag:{no:"No",unset:"No",yes:"S\xED"},unsupported_browser:{headline:"Por favor tenga en cuenta que Active Admin no soporta versiones de Internet Explorer menores a 8.",recommendation:'Recomendamos que actualice a la \xFAltima versi\xF3n de <a href="http://windows.microsoft.com/ie">Internet Explorer</a>, <a href="https://chrome.google.com/">Google Chrome</a>, o <a href="https://mozilla.org/firefox/">Firefox</a>.',turn_off_compatibility_view:'Si est\xE1 usando IE 9 o superior, aseg\xFArese de <a href="https://support.microsoft.com/es-es/help/17471">apagar la "Vista de compatibilidad"</a>.'},view:"Ver"},activemodel:{errors:{format:"%{attribute} %{message}",messages:{accepted:"debe ser aceptado",blank:"no puede estar en blanco",confirmation:"no coincide con la confirmaci\xF3n",empty:"no puede estar vac\xEDo",equal_to:"debe ser igual a %{count}",even:"debe ser un n\xFAmero par",exclusion:"est\xE1 reservado",greater_than:"debe ser mayor que %{count}",greater_than_or_equal_to:"debe ser mayor o igual que %{count}",inclusion:"no est\xE1 incluido en la lista",invalid:"es inv\xE1lido",less_than:"debe ser menor que %{count}",less_than_or_equal_to:"debe ser menor o igual que %{count}",not_a_number:"no es un n\xFAmero",not_an_integer:"debe ser un entero",odd:"debe ser un n\xFAmero non",record_invalid:"La validaci\xF3n fall\xF3: %{errors}",taken:"Ya ha sido usado",too_long:{one:"es demasiado largo (m\xE1ximo 1 car\xE1cter)",other:"es demasiado largo (m\xE1ximo %{count} caracteres)"},too_short:{one:"es demasiado corto (m\xEDnimo 1 car\xE1cter)",other:"es demasiado corto (m\xEDnimo %{count} caracteres)"},wrong_length:{one:"longitud err\xF3nea (debe ser de 1 car\xE1cter)",other:"longitud err\xF3nea (debe ser de %{count} caracteres)"}},template:{body:"Revise que los siguientes campos sean v\xE1lidos:",header:{one:"%{model} no pudo guardarse debido a 1 error",other:"%{model} no pudo guardarse debido a %{count} errores"}}}},application:{option_not_answered:"No respondi\xF3"},assessment_status_label:{completed:"Completo",expired:"Expirado",incomplete:"Incompleto",invalidate:"Invalidado",started:"Iniciado"},assessment_status_title:{completed:"Realiz\xF3 el test completamente.",expired:"El tiempo disponible para contestar la evaluaci\xF3n ha expirado. Se le invita a volver a contestar.",incomplete:"Comenz\xF3 a responder pero no lo termin\xF3.",invalidate:"Lo hizo muy r\xE1pido, puede ser que no haya le\xEDdo todo. Se le invita a volver a contestar.",started:"Complet\xF3 sus datos pero no ha respondido las preguntas."},assessments:{actions:{delete:"Eliminar tarrix",delete_confirm:"\xBFEst\xE1s seguro que deseas eliminar este tarrix?",download_pdf:"Descargar PDF",genereate_pdf:"Regenerar PDF",options:"Opciones",send_via_email:"Enviar reporte a cliente",show_answers:"Ver Respuestas",show_profile:"Ver Perfil",show_report:"Ver Reporte en L\xEDnea"},form:{save:"Guardar",saving:"Guardando"},group_name:{edit:"Editar"}},blocks:{block_1:"Equipo y Herramientas",block_10:"Prioridades",block_2:"Ciclo de vida en la empresa",block_3:"Salario econ\xF3mico",block_4:"Expectativas",block_5:"Balance Vida/Trabajo",block_6:"Reto/Aprendizaje",block_7:"Cultura",block_8:"Crecimiento personal",block_9:"Relaci\xF3n con jefe inmediato"},bulk:{honeycomb:{non_selection_alert:"Por favor seleccione al menos uno de los registros en la lista"}},cancel:"Cancelar",charts:{importance:"Importancia",press_to_see_details:"Presiona un elemento para ver el resultado.",results:"Resultados",results_title:"Motivaci\xF3n"},checkout:{wire_transfer_flash:"Se ha creado el registro para tu pago, por favor sigue las instrucciones a continuaci\xF3n."},dashboard:{index:{assessment_results:"Aplicaciones realizadas",assessment_sent:"Reportes enviados",assessments_avg_response_time:"Tiempo promedio (minutos)",assessments_by_month:"Tarrix por Mes",assessments_by_status:"Tarrix por Estatus",assessments_completed:"Tarrix completos",general_indicators:"Indicadores generales",honeycombs_created:"Panales creados",users_created:"Usuarios creados",weekly_indicators:"Indicadores de esta semana",welcome:"Bienvenido"}},date:{abbr_day_names:["dom","lun","mar","mi\xE9","jue","vie","s\xE1b"],abbr_month_names:[null,"ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],day_names:["Domingo","Lunes","Martes","Mi\xE9rcoles","Jueves","Viernes","S\xE1bado"],formats:{custom:"%A, %d de %B",dateonly:"%d/%m/%Y",default:"%d/%m/%Y",long:"%A, %d de %B de %Y",short:"%d de %b",short_date:"%d/%m/%Y "},month_names:[null,"Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],order:[":day",":month",":year"]},datetime:{distance_in_words:{about_x_hours:{one:"cerca de 1 hora",other:"cerca de %{count} horas"},about_x_months:{one:"cerca de 1 mes",other:"cerca de %{count} meses"},about_x_years:{one:"cerca de 1 a\xF1o",other:"cerca de %{count} a\xF1os"},almost_x_years:{one:"casi 1 a\xF1o",other:"casi %{count} a\xF1os"},half_a_minute:"medio minuto",less_than_x_minutes:{one:"menos de 1 minuto",other:"menos de %{count} minutos"},less_than_x_seconds:{one:"menos de 1 segundo",other:"menos de %{count} segundos"},over_x_years:{one:"m\xE1s de 1 a\xF1o",other:"m\xE1s de %{count} a\xF1os"},x_days:{one:"1 d\xEDa",other:"%{count} d\xEDas"},x_minutes:{one:"1 minuto",other:"%{count} minutos"},x_months:{one:"1 mes",other:"%{count} meses"},x_seconds:{one:"1 segundo",other:"%{count} segundos"},x_years:{one:"1 a\xF1o",other:"%{count} a\xF1os"}},prompts:{day:"D\xEDa",hour:"Hora",minute:"Minuto",month:"Mes",second:"Segundos",year:"A\xF1o"}},formtastic:{cancel:"Cancelar",create:"Guardar %{model}",no:"No",required:"requerido",reset:"Restablecer %{model}",submit:"Aceptar",update:"Guardar %{model}",yes:"S\xED"},generation:{"1":"Antes de 1945","2":"1946-1964","3":"1965-1980","4":"1981-1996","5":"1997-2012"},grave:{acknowledgment:"Reconocimiento",competition:"Competencia",confidence:"Seguridad",holistic_vision:"Visi\xF3n Hol\xEDstica",ideals:"Ideales",learning:"Aprendizaje",order:"Orden"},header:"Tarrix - Reactivos",helpers:{page_entries_info:{more_pages:{display_entries:"Mostrando %{entry_name} <b>%{first}&nbsp;-&nbsp;%{last}</b> de <b>%{total}</b> en total"},one_page:{display_entries:{one:"Mostrando <b>1</b> %{entry_name}",other:"Mostrando <b>todos los registros %{count}</b> %{entry_name}",zero:"Mostrando %{entry_name} registros"}}},select:{prompt:"Por favor selecciona"},submit:{create:"Crear %{model}",submit:"Guardar %{model}",update:"Actualizar %{model}"}},honeycomb_bulks:{change_honeycomb:{new_honeycomb_description:"Escoge el panal a donde quisieras mover los registros seleccionados",save:"Cambiar panal",select_new_honeycomb:"Cambiar panal"},delete_assessments_bulk:{tarrix_deleted_success:"Se ha eliminado el tarrix correctamente. Nota: Solo los tests incompletos pueden ser eliminados."},send_reports_bulk:{emails_sent:"Reportes enviados correctamente."}},honeycomb_groups:{messages:null,report_print:{assessments_selected:"Evaluaciones Seleccionadas",client:"Cliente",date:"Fecha",email:"Email",employee_number:"N\xFAmero de empleado",group_name:"Nombre del Grupo",group_results:"Resultados Grupales",status:"Estatus"},show:{about_results_description:"A continuaci\xF3n por favor selecciona una de las opciones para continuar con el proceso de acompa\xF1amiento o bien redacta tu mensaje personalizado.",delete_honeycomb_group:"Borrar grupo",delete_honeycomb_group_alert:"\xBFDeseas borrar este grupo? Esta acci\xF3n no se puede deshacer.","disclaimer-1":"Nota","disclaimer-2":"Todas las sugerencias son solo eso y deber\xE1s aplicarlas bajo tu propia responsabilidad.",download_pdf:"Descargar PDF",honeycomb:"Panal",honeycomb_results_header:"Resultado del Grupo - Evaluaciones seleccionadas",lets_talks_about_the_results:"Conversemos sobre los Resultados",name:"Nombre:",processing:"Procesando...",report_honeycomb_group:"Ver Reporte en L\xEDnea"}},honeycombs:{applications:{loading:"Cargando evaluaciones",title:"Evaluaciones"},assessments:{title:"Evaluaciones"},bulk_actions:{bulk_options:"Acciones en masa",change_honeycomb:"Cambiar panal",delete_bulk:"Borrar",delete_bulk_confirmation:"Por favor confirme que desea eliminar las pruebas seleccionadas.",download_zip_pdfs:"PDFs en archivo zip",report_bulk:"Reporte con seleccionados",send_report_bulk:"Enviar reporte"},controller:{check_for_credits:{purchase_credits:"Actualmente, la cuenta no tiene tests disponibles para crear un nuevo panal. Puedes adquirir m\xE1s tests realizando una compra aqu\xED."}},create:{record_save:"El nuevo panal fue guardado exitosamente."},destroy:{record_destroy:"Panal fue eliminado."},download_reports_zip:{download_report_msg:"Se est\xE1 procesando la exportaci\xF3n de los PDFs. Recibir\xE1s un correo electr\xF3nico cuando est\xE9 lista la descarga. Por favor, revisa tu bandeja de entrada o bandeja spam. \xBFNo est\xE1s recibiendo nuestros correos? Aseg\xFArate de haber agregado las direcciones de correo electr\xF3nico de Emotional Paycheck a tu lista de permitidos."},form:{account_input:"Cuenta de Panal",company:"Empresa",company_placeholder:"Nombre de tu Empresa",department:"Departamento",department_placeholder:"Nombre de tu Departamento",end_date_placeholder:"Fecha Fin",endt_date:"Fecha Fin",extra_options:"Opciones extra",honeycomb_data:"Panal Data",honeycomb_name:"Nombre de Panal",honeycomb_name_placeholder:"Nombre de tu Panal",max_seats:"Max Tests",owner_input:"Due\xF1o del panal",privacy:"Este panal es privado, solo yo puedo verlo.",save:"Guardar",saving:"Guardando",send_automatic_tarrix_msg:"Enviar de manera autom\xE1tica los resultados por correo al terminar",show_result_at_the_end:"Permitir a los usuarios visualizar sus resultados al finalizar la prueba",start_date:"Fecha Inicio",start_date_placeholder:"Fecha Inicio",tags:"Selecciona las etiquetas",valid_between:"Disponible entre las fechas",wants_email:"Recibir notificaci\xF3n por correo cuando se complete un Tarrix"},honeycomb_groups:{date:"Fecha",honeycomb_group_blank:"No cuentas con reportes grupales creados. Para crear un reporte grupal, selecciona las evaluaciones que deseas agrupar, genera el reporte desde las acciones en masa y guarda el grupo con un nombre.",last_update:"\xDAltima actualizaci\xF3n",name:"Nombre",quantity:"No. Evaluaciones",show:"Ver Reporte",title:"Reportes grupales"},list_assessments:{client:"Cliente",date:"Fecha",email:"Correo electr\xF3nico",employee:"Empleado",employee_number:"No. Empleado",honeycomb_no_assements:"Este panal no tiene evaluaciones contestadas.",show_profile:"Ver Perfil",statue:"Estatus"},list_honeycombs:{no_honeycombs_found:"No honeycombrs found"},new:{new_honeycomb:"Panal Nuevo"},results:{honeycomb:"Panal",honeycomb_results_header:"Resultados del Panal - Evaluaciones Seleccionadas"},send_reports_bulk:{emails_sent:"Los emails se programaron para su entrega.",select_assessment:"Selecciona al menos una evaluaci\xF3n que haya sido completada."},share_modal:{close:"Cerrar",copied:"Copiado!",copy_instructions:"Copiar",share_instructions:"Compartir instrucciones",share_instructions_description:"Copia y comparte las siguientes instrucciones con tus colaboradores para que puedan realizar tu test de tarrix",share_instructions_html:`Por favor sigue las instrucciones para realizar tu test de salario emocional. &#10;&#10;Debes ingresar en la siguiente direcci\xF3n en tu navegador: %{url} &#10;&#10;Una vez que llenes la informaci\xF3n de tu perfil, ingresa el siguiente c\xF3digo de acceso: %{code} &#10;&#10;Nota: Por favor utiliza el navegador de Google Chrome, Edge, Firefox, o Safari para tomar el test. Internet Explorer no esta soportado.
`},show:{delete_honeycomb:"Borrar panal",delete_honeycomb_alert:"\xBFEst\xE1s seguro que deseas borrar este panal?",download_excel:"Descargar Excel",download_pdfs:"Descargar PDFS",export_data:"Exportar Datos",honeycomb:"Panal",honeycomb_belongs_to:"Cuenta actual:",private_honeycomb:"Privado",processing:"Procesando",public_honeycomb:"P\xFAblico",report:"Reporte General",save:"Guardar",send_reports:"Enviar Reportes",send_to_all:"Por favor confirma que deseas enviar el reporte a todos los usuarios de este panal."},sidebar:{search_honeycomb_placeholder:"Buscar panal nombre o c\xF3digo"},sticky_data:{copied:"Copiado!",copy:"Copiar",created_at:"Fecha Creaci\xF3n",created_by:"Creado Por",honeycomb_code:"Panal C\xF3digo",honeycomb_id:"Panal Id",seats:"Tests"},update:{record_save:"Panal fue guardado exitosamente."}},i18n:{plural:{keys:["one","other"],rule:"#<Proc:0x000000010d232e28 /Users/efra/.rvm/gems/ruby-3.2.2/gems/rails-i18n-7.0.6/lib/rails_i18n/common_pluralizations/one_other.rb:7 (lambda)>"},transliterate:{rule:{\u00C1:"A",\u00C9:"E",\u00CD:"I",\u00D1:"N",\u00D3:"O",\u00DA:"U",\u00DC:"U",\u00E1:"a",\u00E9:"e",\u00ED:"i",\u00F1:"n",\u00F3:"o",\u00FA:"u",\u00FC:"u"}}},layouts:{app:{honeycombs:"Panales",new_honeycomb:"Crear panal"}},mailers:{user_notifier_mailer:{beegenius_says:"Respuesta de BeeGenius - Tarrix"}},messages:{about_results_description:"A continuaci\xF3n por favor selecciona una de las opciones para continuar con el proceso de acompa\xF1amiento.",controller:{email_sent:"\xA1Correo enviado exitosamente!"},"disclaimer-1":"Nota: Todos los resultados y sugerencias de nuestra inteligencia artificial est\xE1n basados en el libro El m\xE9todo del salario emocional, la fogata del bienestar y algunos otros textos de psicolog\xEDa positiva.","disclaimer-2":"Todas las sugerencias son solo eso y deber\xE1s aplicarlas bajo tu propia responsabilidad.",lets_talks_about_the_results:"Conversemos sobre los Resultados",message:{check_email:"Por favor revisa tu bandeja de entrada para ver el mensaje de BeeGenius",email_sent:"Correo enviado",send:"Enviar",send_to_email:"Enviar a mi correo",this_message_email_information:"Este mensaje ser\xE1 enviado a:"}},misc:{recommendations_for_improve:"Recomendaciones para mejorar",the_group:"EL GRUPO"},number:{currency:{format:{delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,strip_insignificant_zeros:!1,unit:"$"}},format:{delimiter:",",precision:2,round_mode:"default",separator:".",significant:!1,strip_insignificant_zeros:!1},human:{decimal_units:{format:"%n %u",units:{billion:"mil millones",million:"mill\xF3n",quadrillion:"mil billones",thousand:"mil",trillion:"bill\xF3n",unit:""}},format:{delimiter:",",precision:3,significant:!0,strip_insignificant_zeros:!0},storage_units:{format:"%n %u",units:{byte:{one:"Byte",other:"Bytes"},eb:"EB",gb:"GB",kb:"KB",mb:"MB",pb:"PB",tb:"TB"}}},percentage:{format:{delimiter:",",format:"%n %"}},precision:{format:{delimiter:","}}},orders:{card:{created_at:"Fecha de creaci\xF3n",created_by:"Creada por",email:"Correo electr\xF3nico",last_digits:"\xDAltimos D\xEDgitos",status:"Estatus"},form:{available_plans:"Planes disponibles",card:"Tarjeta de cr\xE9dito o d\xE9bito",go_to_pay:"Ir a Pagar",payment_method:"M\xE9todo de pago",paypal:"PayPal",wire_transfer:"Transferencia bancaria"},index:{amount:"Cantidad de Tarrix",created_at:"Fecha Creaci\xF3n",created_by:"Creado Por",details:"Ver Opciones",new_purchase:"Nueva Compra",no_recent_purchases:"No tienes compras recientes",orders_title:"Comprar Tests para Tarrix",paid:"Total del Pago",payment_method:"M\xE9todo de Pago",plan_name:"Nombre del Plan",price:"Precio",status:"Estatus"},new:{new_purchase:"Nueva compra de tests"},paypal:{created_at:"Fecha de creaci\xF3n",created_by:"Creada por",email:"Correo electr\xF3nico",status:"Estatus"},show:{created_at:"Fecha",created_by:"Pagado Por",email:"Correo",last_digits:"Tarjeta",order:"N\xFAmero",orders_title:"Orden",processor:"Procesador",total:"Total"},wire:{account_number:"N\xFAmero de cuenta",adress:"Direcci\xF3n del beneficiario",bank_address:"Direcci\xF3n del banco",banking_information:"Informaci\xF3n bancaria",banking_institution:"Nombre del banco",branch_number:"N\xFAmero de sucursal",company_information:"Informaci\xF3n del beneficiario",company_name:"Nombre del beneficiario",created_at:"Fecha de creaci\xF3n",created_by:"Creada por",currency:"Moneda",email:"Correo electr\xF3nico",institution_number:"N\xFAmero de la instituci\xF3n",instructions_1:"Has seleccionado el plan '#{@order.plan.name}' por un monto total de '#{number_to_currency @order.total}'",order_accept:"Aceptar orden",order_confirm_alert:"\xBFDeseas confirmar el pago de esta orden?",order_reject:"Rechazar orden",order_reject_alert:"\xBFDeseas rechazar esta orden?",phone_number:"N\xFAmero de contacto",send_email_instructions:"Env\xEDa tu comprobante al correo electr\xF3nico",status:"Estatus",swift_code:"C\xF3digo Swift",wating_message:"Esta orden est\xE1 en espera de ser aceptada o rechazada",wire_payment_instructions:"Has seleccionado el plan %{order_name} por un monto total de %{order_total} <br/><br/> Realiza una transferencia bancaria con los siguientes datos:",wire_transfer:"Transferencia bancaria"}},orders_status:{failed:"Fallido",paid:"Pagado",processing:"Procesando",waiting_payment:"Esperando Pago"},pagy:{combo_nav_js:"<label>P\xE1gina %{page_input} de %{pages}</label>",info:{multiple_pages:"Mostrando %{item_name} %{from}-%{to} de %{count} en total",no_items:"Sin resultados",single_page:"Mostrando %{count} %{item_name}"},item_name:{one:"\xEDtem",other:"\xEDtems"},items_selector_js:"<label>Mostrar %{items_input} %{item_name} por p\xE1gina</label>",nav:{gap:"&hellip;",next:"Siguiente&nbsp;&rsaquo;",prev:"&lsaquo;&nbsp;Anterior"}},passwords:{create:{email_address_not_associated:"La cuenta de correo es inv\xE1lida o no est\xE1 asociada a ninguna cuenta.",reset_password_instructions_sent:"Recibir\xE1s un email con instrucciones para reiniciar tu contrase\xF1a en unos minutos."},edit:{invalid_reset_token:"El token ingresado es inv\xE1lido por favor int\xE9ntalo nuevamente.",save:"Guardar",store_password:"Nueva Contrase\xF1a",store_password_placeholder:"Escribe tu nueva contrase\xF1a",tarrix_set_password:"Cambia tu contrase\xF1a",to_start:"Ingresa una nueva contrase\xF1a para tu usuario"},new:{recover_msg:"Si no encuentras el correo, asegura de revisar en tu bandeja de Spam.",return_to_login:"Regresar a ingresar sesi\xF3n",send_instructions:"Enviar instrucciones",tarrix_recover_header:"\xBFOlvidaste tu contrase\xF1a?",to_start:"Ingresa tu correo y te enviaremos las instrucciones para restablecerla",username:"Correo electr\xF3nico",username_placehoder:"Ingresa tu correo electr\xF3nico"},update:{password_not_valid:"La contrase\xF1a debe ser mayor a 6 d\xEDgitos",password_reset:"Tu contrase\xF1a fue actualizada exitosamente. Ingresa a tu cuenta."}},payment_types:{card:"Tarjeta cr\xE9dito/d\xE9bito",wire:"Transferencia bancaria"},plans:{edit:{edit_plan:"Editar plan"},form:{name:"Nombre del Plan",plan_instructions:"Por favor ingresa la informaci\xF3n para el plan de tarrix",price:"Precio en DLLS",tarrix_amount:"Cantidad de Tarrix"},index:{amount:"Cantidad de Tarrix",created_at:"Fecha Creaci\xF3n",created_by:"Creado Por",individual_cost:"Precio Unitario",name:"Nombre",new_plan:"Nuevo plan",plans_title:"Planes",price:"Precio"},new:{new_plan:"Nuevo plan",new_purchase:"Nueva Compra"}},profile:{index:{created_at:"Creado el",created_by:"Creador por",credit_tarrix:"Cr\xE9ditos Tarrix",edit:"Editar",email:"Correo electr\xF3nico",fullname:"Nombre Completo",honeycombs_created:"Panales Creados",lastlogin:"\xDAltimo acceso",loading_honeycombs:"Cargando panales",my_profile:"Mi Perfil",unlimited:"Ilimitado",user_id:"C\xF3digo de usuario",username:"Correo electr\xF3nico"}},profiles:{answers:{email:"Correo electr\xF3nico",full_name:"Nombre Completo",no_answers_selected:"No hay respuesta seleccionada",no_email:"Vac\xEDo",show_profile:"Ver Perfil",user_profile:"Informaci\xF3n del usuario"},employee_number:{edit:"Editar"},messages:{"disclaimer-1":"Nota: Todos los resultados y sugerencias de nuestra inteligencia artificial est\xE1n basados en el libro El m\xE9todo del salario emocional, la fogata del bienestar y algunos otros textos de psicolog\xEDa positiva.","disclaimer-2":"Todas las sugerencias son solo eso y deber\xE1s aplicarlas bajo tu propia responsabilidad."},show:{age_range:"Rango de Edad",birth_year_range:"Rango de A\xF1o de Nacimiento",company:"Empresa",company_data:"Datos de la Empresa",country:"Pa\xEDs",date_created:"Fecha de creaci\xF3n",download_pdf:"Descargar PDF",edit:"editar",education:"Escolaridad",email:"Correo electr\xF3nico",employee_number:"N\xFAmero de empleado",from:"de",fullname:"Nombre completo",genereate_pdf:"Regenerar PDF",genre:"G\xE9nero",honeycomb:"Panal asignado",last_download_date:"\xDAltima fecha de descarga",last_sent_date:"\xDAltima fecha de envi\xF3",marital_status:"Estado Civil",minutes:"minutos",not_downloaded:"No ha sido descargado",not_sent:"No ha sido enviado",options:"Opciones",prompt:"Crear prompt para IA",questions_answerd:"Reactivos contestados",result_time:"Tiempo de respuesta",send_via_email:"Enviar reporte a cliente",show_answers:"Ver Respuestas",show_report:"Ver Reporte en L\xEDnea",status:"Estatus",tarrix_data:"Datos del Tarrix",title:"Perfil del Usuario",user_information:"Generales del Usuario"}},pundit:{default:"No tiene autorizaci\xF3n de hacer esta acci\xF3n",user_policy:{"new?":"No puedes crear mas usuarios. Puedes cambiar tu plan para obtener m\xE1s usuarios."}},questionnaire:{finish_assessment:{and:"y",close_app:"Cerrar",finish_message:"La evaluaci\xF3n ha concluido exitosamente. \xA1Gracias por usar Tarrix!","rigths-reserved":"Derechos reservados","show results":"Ver resultados preliminares",slect_one_option:"Selecciona una de las siguientes opciones:"},index:{about_tarrix:"<b>Tarrix<sup>\xAE</sup> el primer assessment de salario emocional.</b> Descubre la calidad de tu pago emocional y recibe recomendaciones sobre como mejorarlo.",desc_1:"Eval\xFAa el pago emocional de tus equipos de trabajo.",desc_2:"Recibe recomendaciones sobre como mejorar la calidad de tu pago emocional.",header:"\xBFC\xF3mo est\xE1 tu Emotional Paycheck<sup>\xAE</sup>?",info_emotional_institute:"Para m\xE1s informaci\xF3n o para comprar un Tarrix, vis\xEDtanos en",start_now:"Comenzar ahora"},join_group:{ask_to_code_notice:"Hemos enviado a tu correo los m\xE9todos para solicitar tu acceso.",code:"C\xF3digo",code_hint:"Ingresa el c\xF3digo de tu grupo",continue:"Entrar al grupo",header:"\xDAnete al grupo",no_access_code:"\xBFNo tienes acceso? Solicitar acceso.",request_access:"\xBFNo tienes acceso? <b>Solicitar acceso.</b>",subtitle:"Ingresa el c\xF3digo de tu grupo, si no tienes uno puedes solicitar tu c\xF3digo."},join_group_save:{group_not_open:"El grupo ya no acepta solicitudes. Contacta a tu representante.",invalid_code:"C\xF3digo invalido.",no_credits:"No hay cr\xE9ditos disponibles.",no_seats_available:"No hay cupos disponibles."},priorities_help:{continue_button:"Entendido, continuar con la prueba",instructions_step_1:'De las opciones dadas, selecciona la que consideres que es <span style="text: #008000;">m\xE1s importante para ti.</span>',instructions_step_2:"De las opciones restantes, selecciona la que tiene mayor importancia para ti.",instructions_step_3:"Repite esta operaci\xF3n hasta terminar con las opciones de la lista.",modal_instructions:"Sigue las instrucciones para las preguntas 46, 47 y 48.",modal_title:"\xA1Atenci\xF3n!",step_1:"Paso 1",step_2:"Paso 2",step_3:"Paso 3"},question:{higher_priority:"Mayor prioridad",lower_priority:"Menor prioridad",press_action:"Presiona",press_to_sort:"para ordenar",processing:"Procesando",question:"Pregunta",restart_order:"Reiniciar orden"},results:{close_app:"Cerrar",distribution_motivation:"Distribuci\xF3n de la motivaci\xF3n",get_more_details_of_tarrix:"Para obtener el <b>reporte detallado</b> Tarrix<sup>\xAE</sup> y aprender c\xF3mo mejorar tu salario emocional te recomendamos contactar a tu representante en Emotional Paycheck Institute<sup>\xAE</sup>.",high:"Alta",high_priority:"ALTA PRIORIDAD",invalid_assesment_msg:"El tiempo que has utilizado para responder el tarrix es demasiado corto, el test ha sido invalidado, te invitamos a responderlo nuevamente leyendo cuidadosamente cada una de las preguntas.",invalid_group_access:"No fue posible localizar tu tarrix para mostrar tu resultado, por favor solciita ayuda.",low:"Baja",low_priority:"BAJA PRIORIDAD",main_motivations:"Principales motivaciones",medium:"Media",medium_priority:"MEDIA PRIORIDAD",priority_scale_1:"La prioridad de la gr\xE1fica verde se mide:",priority_scale_2:"La prioridad de la gr\xE1fica naranja se mide:",priority_scale_3_end:"roja, autom\xE1ticamente se vuelve alta prioridad.",priority_scale_3_start:"Al aparecer una",result_intepretation:"Interpretaci\xF3n de resultados",results_header:"Estos son los resultados de la evaluaci\xF3n Tarrix. ",results_subheader:"A continuaci\xF3n podr\xE1s conocer los resultados de tu salario emocional.",retry:"Volver a contestar el examen",summary_results:"Resumen de resultados"},results_print:{and:"y",company:"Empresa",contextuality:"Contextualidad",contextuality_description:"<p>Los resultados de esta evaluaci\xF3n son contextuales, es decir, que solamente aplican al contexto y tiempo en el que ha sido respondida la evaluaci\xF3n, por ello sugerimos un plazo de vigencia no mayor a los dos meses posterior a la aplicaci\xF3n de la evaluaci\xF3n Tarrix\xAE para la implementaci\xF3n de medidas para mejorar cualquiera de sus componentes.</p>",cover_title:"El primer assessment del<br/>Pago Emocional<sup>\xAE</sup>",date:"Fecha",distribution_motivation:"Distribuci\xF3n de la motivaci\xF3n",group:"Grupo",header:"Estos son los resultados de la evaluaci\xF3n Tarrix.",high:"Alta",honeycomb:"Panal",interpretative_report:"Reporte interpretativo",interpretative_report_description:"<p>El siguiente reporte interpretativo se presenta como una primera l\xEDnea de sugerencias para conocer y mejorarla calidad del Emotional Paycheck\xAE, en caso de requerir mayor informaci\xF3n sobre como mejorar cada una de las \xE1reas del Emotional Paycheck, sugerimos que contacte a un entrenador certificado.</p><p>A continuaci\xF3n se presentan todos y cada uno de los elementos del Emotional Paycheck as\xED como sus resultados de acuerdo a las respuestas de %{user_name}.</p>",intro_description:"<p>Existen dos tipos de pago que se reciben al realizar un empleo, el primero es el pago econ\xF3mico, el cual es ampliamente conocido y es pagado por los accionistas de la empresa y recibido por los colaboradores en la moneda corriente del pa\xEDs en el que se realice el trabajo (d\xF3lares, pesos, euros, etc.) siempre y cuando coincida con las obligaciones y responsabilidades del puesto; es muy sencillo saber si se ha entregado a tiempo, si este ha sido suficiente o si es competitivo, podr\xEDamos decir que el pago econ\xF3mico lo otorgan los accionistas o \xFAltimamente los clientes, pues son producto del \xE9xito econ\xF3mico de la organizaci\xF3n.</p><p>El segundo tipo de pago es recibido en una \u201Cmoneda\u201D muy diferente, puede ser por medio de emociones,expectativas, experiencias o bienestar, se alimenta de la calidad de las relaciones con clientes, colegas y por supuesto con el jefe inmediato, este segundo tipo de pago es mucho m\xE1s din\xE1mico y requiere de habilidades espec\xEDficas para que sea efectivo, este es el Emotional Paycheck (pago emocional).</p><p>El assessment Tarrix\xAE es la primer evaluaci\xF3n dise\xF1ada para medir la calidad del bienestar que una persona percibe de su entorno de trabajo, as\xED como las posibilidades que existen de que esta persona pueda experimentar felicidad como parte de la realizaci\xF3n de su empleo.</p>",introduction:"Introducci\xF3n",join_text:" y ",low:"Baja",main_motivations:"Principales motivaciones",medium:"Media",minutes:"Minutos",motivation_talk_to_expert:"Existen t\xE9cnicas especiales para conectar de mejor manera con las personas que cuentan con estas motivaciones, \xBFTe gustar\xEDa generar un programa de compensaci\xF3n emocional especialmente dise\xF1ado para estos resultados?, contacta a un profesional certificado Emotional Paycheck.","motivations list":"A continuaci\xF3n listamos el resto de las motivaciones para %{user_name}.",motivations_description:"<p>Las motivaciones del Dr. Clare Graves nos permiten entender cuales son las principales motivaciones del colaborador, %{user_name} muestra una preferencia por las motivaciones de %{main_motivations}.</p>",motivations_title:'Motivaciones "Graves"',name:"Nombre",name_origin:"Origen del nombre",origin_description:"<p>Existen algunas especies de animales sin las cuales el ecosistema en el que habitamos simplemente no puede sostenerse de forma natural, entre ellas se encuentran las abejas, estos insectos que adem\xE1s son asociados con la laboriosidad y el trabajo en equipo, mismos que funcionan de forma colectiva y que producen miel, la cu\xE1l por cierto jam\xE1s expira.</p><p>As\xED como las abejas aportan a la polinizaci\xF3n y mantenimiento de los bosques facilitando la proliferaci\xF3n de sus frutos, la evaluaci\xF3n Tarrix\xAE y los embajadores del Emotional Paycheck\xAE, buscan facilitar la producci\xF3n de espacios de felicidad y bienestar dentro del entorno laboral \u201Cpolinizando\u201D un estilo de liderazgo mucho m\xE1s consciente del impacto que el trabajo tiene en la calidad de vida de los colaboradores.</p>",priority_scale_1:"La prioridad de la gr\xE1fica verde se mide:",priority_scale_2:"La prioridad de la gr\xE1fica naranja se mide:",priority_scale_3_end:"roja, autom\xE1ticamente se vuelve alta prioridad.",priority_scale_3_start:"Al aparecer una",privacy_police_title:"Aviso Legal y de Privacidad",privary_policy_text:' <p>Tarrix\xAE es una evaluaci\xF3n dise\xF1ado y administrado por A.R.O. Coaching and Teambuilding services Inc., empresa que tambi\xE9n tiene los derechos de Emotional Paycheck\xAE, Pago Emocional\xAE y Salario Emocional\xAE en Espa\xF1a.</p> <p>En Emotional Paycheck\xAE nos preocupamos por su privacidad y creemos en la transparencia. Solo recopilamos la informaci\xF3n personal necesaria para brindar nuestros servicios y la manejamos con cuidado y sensatez.</p> <p>Para conocer m\xE1s acerca de la pol\xEDtica de privacidad y la administraci\xF3n de sus datos, puede visitar nuestro sitio <a href="https://www.emotionalpaycheck.com/privacy-policy/" target="_blank">aqu\xED</a>.</p> <p>A.R.O. Coaching and Teambuilding Services Inc, y todas sus marcas registradas, incluyendo pero no limitado a Tarrix\xAE, Emotional Paycheck\xAE, han realizado su mejor esfuerzo para generar una evaluaci\xF3n altamente confiable que busca mejorar la calidad del pago emocional de los colaboradores en las empresas, sin embargo sugerimos encarecidamente la participaci\xF3n de un profesional certificado para la implementaci\xF3n de las medidas que surgen como resultado de esta evaluaci\xF3n.</p> <p>Tarrix\xAE es una evaluaci\xF3n y tiene como fin comunicar de una forma estructurada el sentir de un colaborador en la empresa, el usuario final es completamente responsable de la acciones y consecuencias que se lleven a cabo a ra\xEDz de esta evaluaci\xF3n, por lo que la empresa A.R.O.Coaching and Teambuilding Services Inc y todas sus agremiadas se deslindan de toda responsabilidad al respecto.</p> <p>Sugerimos siempre contar con la asesor\xEDa de un profesional certificado y con amplia experiencia en estos temas.</p> <p> En caso de cualquier duda favor de contactar a: </p> <p class="contact"> A.R.O. Coaching and Teambuilding Services Inc.<br /> Emotional Paycheck<br /> 7111 Syntex Dr, 3rd Floor, Mississauga<br /> ON L5N8C3 , Canada<br /> Correo: <a href="mailto:info@emotionalpaycheck.com">info@emotionalpaycheck.com</a><br /> Tel: <a href="callto:(+1) 954.376.5702">(+1) 954.376.5702</a><br /></p>',result_intepretation:"Interpretaci\xF3n de resultados",result_text_desc:"El resultado completo de las motivaciones de %{user_name} son:",results_subheader:"A continuaci\xF3n podr\xE1s conocer los resultados de tu salario emocional.","rigths-reserved":"Derechos reservados",theoretical_support:"Respaldo te\xF3rico",theoretical_support_description:"<p>El reporte Tarrix arroja una evaluaci\xF3n basada en dos herramientas y una teor\xEDa psicol\xF3gica. Por un lado,analiza la percepci\xF3n que el colaborador tiene de los 9 elementos del Emotional Paycheck\xAE de acuerdo a la certificaci\xF3n Embajador del Emotional Paycheck Nivel I otorgada por el Emotional Paycheck Institute ofCanada, adem\xE1s analiza las motivaciones del desarrollo humano adulto de acuerdo al Dr. Clare W. Graves.</p>",time_to_complete:"Tiempo",to_complete_text:"en completar el Assessment",wellbeing_career:"Categor\xEDa de Carrera",wellbeing_community:"Categor\xEDa Comunitaria",wellbeing_description:"<p>La definici\xF3n de felicidad es altamente din\xE1mica y personal; es incre\xEDblemente complejo medirla. Sin embargo, algunos ingredientes facilitan la aparici\xF3n de esa emoci\xF3n que llamamos felicidad, En su estudio de la felicidad y el bienestar, el Dr. Jaime Leal llama a estos componentes, categor\xEDas de percepci\xF3n subjetiva del bienestar. Se perciben de manera diferente en cada uno de nosotros, de ah\xED el t\xE9rmino</p> <p>Las categor\xEDas del bienestar son aquellos elementos que facilitan la aparici\xF3n de esos momentos a los que llamamos felicidad. Es decir, que no hay felicidad sin bienestar. De ah\xED la importancia de entenderlos plenamente.</p> <p>Tarrix mide las cinco categor\xEDas de percepci\xF3n subjetiva del bienestar.</p> <p>Las cinco categor\xEDas son:</p> <p><strong>Categor\xEDa social:</strong> se refiere a la calidad y cantidad de amor, aprecio, respeto y reconocimiento recibido del ambiente de trabajo, entendiendo todas aquellas emociones positivas adquiridas en el lugar de trabajo. <em(es decir, si no nos sentimos apreciados en el trabajo, si no sentimos el reconocimiento de nuestros compa\xF1eros y supervisores, la evaluaci\xF3n de esta categor\xEDa ser\xEDa baja)</em.</p> <p><strong>Categor\xEDa comunitaria:</strong> se refiere a nuestra percepci\xF3n de conexi\xF3n y pertenencia con el entorno que nos rodea, otros grupos de personas, \xE1reas de trabajo, departamentos de la empresa y comunidades en general. <em>(es decir, si no nos sentimos conectados con otros grupos de personas en el trabajo, la evaluaci\xF3n de esta categor\xEDa deber\xEDa ser baja)</em>.</p> <p><strong>Categor\xEDa de carrera:</strong> se refiere al uso que percibimos de nuestros talentos en el trabajo. La cantidad y complejidad de los desaf\xEDos que enfrentamos en comparaci\xF3n con el nivel de competencias y habilidades para resolverlos con \xE9xito. <em>(es decir, si a menudo nos encontramos trabajando horas extras o si nos aburrimos por la falta de desaf\xEDos, eso significa una evaluaci\xF3n baja de esta categor\xEDa).</em></p>  <p><strong>Categor\xEDa Emocional y F\xEDsica:</strong> se refiere a la percepci\xF3n del individuo sobre su estado de salud f\xEDsica y emocional. <em>(es decir, si sufrimos problemas relacionados con el estr\xE9s, esta categor\xEDa deber\xEDa tener una evaluaci\xF3n baja)</em>.</p>  <p><strong>Categor\xEDa financiera:</strong> se refiere a la percepci\xF3n del individuo con respecto a su salud financiera, poder adquisitivo y capacidad para pagar su deuda. <em>(es decir, si estamos rodeados de deuda, la evaluaci\xF3n de esta categor\xEDa deber\xEDa ser baja)</em>.</p>",wellbeing_financial:"Categor\xEDa Financiera",wellbeing_physical:"Categor\xEDa Emocional y F\xEDsica",wellbeing_social:"Categor\xEDa Social",wellbeing_title:"Categor\xEDas de bienestar"},results_print_text:{and:"y",company:"Company",cover_title:"El primer assessment del<br/>Pago Emocional<sup>\xAE</sup>",date:"Fecha",group:"Grupo",header:"Estos son los resultados de la evaluaci\xF3n Tarrix.",name:"Nombre","rigths-reserved":"Derechos reservados"},results_text:{results_header:"Estos son los resultados de la evaluaci\xF3n Tarrix. "},signup:{birth_range:"Rango de edad",birth_year_range:"Rango de a\xF1o de nacimiento",close:"Aceptar",company:"Empresa",company_select_prompt:"-- Selecciona una opci\xF3n si aplica --",compliant:'<p style="font-size:12px;"> *Cumplimos con el RGPD; sus resultados solo se utilizar\xE1n de acuerdo con nuestra pol\xEDtica de privacidad.<p> <p style="font-size:12px;"> *Estado civil, rango de a\xF1o de nacimiento, g\xE9nero y n\xFAmero de Whatsapp son opcionales.<p>',continue:"Continuar",country:"Pa\xEDs",email:"Correo electr\xF3nico",email_message:"Si provees tu correo, recibir\xE1s los resultados en los pr\xF3ximos d\xEDas",employee_identification:"N\xFAmero o Identificador de Empleado",gender:"Genero",header:"Registro de usuario",ie_not_supported:"Por favor actualiza tu navegador a Chrome, Firefox, o Edge para poder continuar. Internet Explorer no esta soportado actualmente por la aplicaci\xF3n.",last_name:"Apellido",legal_notice:"Aviso Legal y de Privacidad",legal_notice_desc:`<p>Tarrix\xAE es una evaluaci\xF3n dise\xF1ado y administrado por A.R.O. Coaching and Teambuilding services Inc., empresa que tambi\xE9n tiene los derechos de Emotional Paycheck\xAE, Pago Emocional\xAE y Salario Emocional\xAE en Espa\xF1a.</p>
<p>En Emotional Paycheck\xAE nos preocupamos por su privacidad y creemos en la transparencia. Solo recopilamos la informaci\xF3n personal necesaria para brindar nuestros servicios y la manejamos con cuidado y sensatez.</p>
<p>Para conocer m\xE1s acerca de la pol\xEDtica de privacidad y la administraci\xF3n de sus datos, puede visitar nuestro sitio aqu\xED.</p>
<p>A.R.O. Coaching and Teambuilding Services Inc, y todas sus marcas registradas, incluyendo pero no limitado a Tarrix\xAE, Emotional Paycheck\xAE, han realizado su mejor esfuerzo para generar una evaluaci\xF3n altamente confiable que busca mejorar la calidad del pago emocional de los colaboradores en las empresas, sin embargo sugerimos encarecidamente la participaci\xF3n de un profesional certificado para la implementaci\xF3n de las medidas que surgen como resultado de esta evaluaci\xF3n.</p>
<p>Tarrix\xAE es una evaluaci\xF3n y tiene como fin comunicar de una forma estructurada el sentir de un colaborador en la empresa, el usuario final es completamente responsable de la acciones y consecuencias que se lleven a cabo a ra\xEDz de esta evaluaci\xF3n, por lo que la empresa A.R.O.Coaching and Teambuilding Services Inc y todas sus agremiadas se deslindan de toda responsabilidad al respecto.</p>
<p>Sugerimos siempre contar con la asesor\xEDa de un profesional certificado y con amplia experiencia en estos temas.</p>
<p>En caso de cualquier duda favor de contactar a: </p>
`,legal_notice_link:"Al presionar el bot\xF3n Continuar aceptas nuestro",legal_notice_link_to:"aviso legal y de privacidad.",marital_status:"Estado civil",name:"Nombre",optional:"Opcional",scolarship:"Escolaridad",select_option:"Selecciona una opci\xF3n...",subtitle:"Para comenzar con la evaluaci\xF3n es necesario que ingreses tus datos de contacto. Los resultados ser\xE1n enviados a tu correo electr\xF3nico."}},questions:{index:{about_tarrix:"Tarrix\xAE el primer assesment de salario emocional. Descubre la calidad de tu pago emocional y recibe recomendaciones sobre como mejorarlo.",header:"Tarrix - Reactivos"}},ransack:{all:"todos",and:"y",any:"cualquier",asc:"ascendente",attribute:"atributo",combinator:"combinador",condition:"condici\xF3n",desc:"descendente",or:"o",predicate:"predicado",predicates:{blank:"est\xE1 en blanco",cont:"contiene",cont_all:"contiene todos",cont_any:"contiene cualquier",does_not_match:"no coincide con",does_not_match_all:"no coincide con todos",does_not_match_any:"no coincide con ninguno",end:"termina en",end_all:"termina en todos",end_any:"termina en cualquier",eq:"es igual a",eq_all:"es igual a todos",eq_any:"es igual a cualquier",false:"es falso",gt:"mayor que",gt_all:"mayor que todos",gt_any:"mayor que cualquier",gteq:"mayor que o igual a",gteq_all:"mayor que o igual a todos",gteq_any:"mayor que o igual a cualquier",in:"en",in_all:"en todos",in_any:"en cualquier",lt:"menor que",lt_all:"menor o igual a",lt_any:"menor que cualquier",lteq:"menor que o igual a",lteq_all:"menor o igual a todos",lteq_any:"menor o igual a cualquier",matches:"coincide con",matches_all:"coincide con todos",matches_any:"coincide con cualquier",not_cont:"no contiene",not_cont_all:"no contiene todos",not_cont_any:"no contiene ninguno",not_end:"no termina en",not_end_all:"no termina en todos",not_end_any:"no termina en cualquier",not_eq:"no es igual a",not_eq_all:"no es igual a todos",not_eq_any:"no es igual a cualquier",not_in:"no en",not_in_all:"no en todos",not_in_any:"no en cualquier",not_null:"no es nulo",not_start:"no comienza con",not_start_all:"no comienza con todos",not_start_any:"no comienza con cualquier",null:"es nulo",present:"est\xE1 presente",start:"comienza con",start_all:"comienza con todos",start_any:"comienza con cualquier",true:"es verdadero"},search:"buscar",sort:"ordenar",value:"valor"},reports:{group_report:{age_ranges:"Rangos de A\xF1o de Nacimiento",assessments_selected:"Evaluaciones Completadas Seleccionadas",avg_emotional_paycheck:"Promedio del Salario Emocional",client:"Cliente",date:"Fecha",demographic_results_disclaimer:"Nota: Los resultados demogr\xE1ficos est\xE1n directamente influenciados por las respuestas proporcionadas por los usuarios en esta secci\xF3n. La participaci\xF3n en la secci\xF3n demogr\xE1fica es opcional y est\xE1 sujeta a nuestra pol\xEDtica de protecci\xF3n de datos personales.",download_table:"Descargar tabla",email:"Correo electr\xF3nico",emotional_paycheck:"Salario Emocional",employee_number:"No. Empleado",gender:"G\xE9nero",group_motivation_distribution:"Distribuci\xF3n de las motivaciones del grupo",help:"Ayuda",help_text:"Coloca el mouse sobre los indicadores en pantalla para obtener una descripci\xF3n detallada y la interpretaci\xF3n psicol\xF3gica que lo componen.",honeycomb_no_assements:"Este panal no tiene evaluaciones contestadas.",importance:"Importancia",interpretation_help_title:"Ayuda de interpretaci\xF3n de resultados",interpretation_question_1:"\xBFCu\xE1les colaboradores requieren una charla urgente uno a uno con su jefe inmediato?",interpretation_question_2:"\xBFCu\xE1les son los colaboradores que se autoperciben con sobrecarga laboral y poco balance?",interpretation_question_3:"\xBFCu\xE1les colaboradores requieren una revisi\xF3n del pago econ\xF3mico o de su salud financiera?",interpretation_question_4:"\xBFCuales colaboradores requieren que mejoremos su perspectiva de futuro en la empresa?",main_motivations:"Principales motivaciones",marital_status:"Estado Civil",notice_warning:"La prioridad es mas alta que el resultado por lo que se vuelve de alta prioridad.",qualifications:"Calificaciones",scolarship:"Escolaridad",show_profile:"Ver Perfil",standard_deviation:"Desviaci\xF3n est\xE1ndar",statistical_indicators:"Indicadores estad\xEDsticos",status:"Estatus",summary_per_person:"Resumen de Calificaciones por Persona",table_exceedence_warning:"La tabla contiene m\xE1s de 100 registros, por lo que no se est\xE1n mostrando todos. Para saber m\xE1s, contacte al administrador.",wellbeing_title:"Categor\xEDas de bienestar"}},results:{global_report:{global_report_for:"Reporte"},index:{after:"Despu\xE9s de:",age:"Edad",before:"Antes de:",birth_year:"A\xF1o nacimiento",cancel:"Cancelar",clear_filters:"Limpiar filtros",email:"Correo",employee_identification:"No. empleado",gender:"G\xE9nero",genereate_report:"Crear reporte",honeycomb_code:"Panal C\xF3digo",honeycomb_name:"Panal Nombre",last_name:"Apellido",marital_status:"Estado civil",more_filters:"M\xE1s filtros",name:"Nombre",no_results_message:"No hay usuarios para los filtros seleccionados.",registers:"registros",search:"Buscar",search_by:"Buscar por...",search_by_age_range:"A\xF1o de nacimiento",search_by_email:"Correo electr\xF3nico",search_by_employee_identification:"Buscar por No. empleado",search_by_gender:"Buscar por g\xE9nero",search_by_honeycomb:"Buscar por panal(es)",search_by_person:"Nombre de usuario",search_by_status:"Buscar por estatus",search_marital_status:"Buscar por estado civil",status:"Estatus",title:"Aplicaciones de Tarrix"},report:{no_assesment_selected:"Por favor selecciona alguna aplicaci\xF3n completa para generar el reporte.",report_title:"Resultados del Aplicaciones Seleccionadas"}},sessions:{create:{invalid_email_or_password:"Correo electr\xF3nico o contrase\xF1a inv\xE1lidos.",need_login_to_continue:"Tienes que registrarte o iniciar sesi\xF3n antes de continuar.",user_is_blocked:"El usuario ha sido bloqueado. Contacta a los administradores.",welcome_to_tarrix:"Bienvenido a Tarrix."},destroy:{logout_msg:"Has cerrado tu sesi\xF3n."},new:{develop_by:"Desarrollado por",forget_password:"\xBFHaz olvidado tu contrase\xF1a?",login:"Entrar",password:"Contrase\xF1a",placeholder_email:"Ingrese su correo electr\xF3nico",placeholder_password:"Ingrese su contrase\xF1a de usuario",recover_password:"Recuperar",to_start:"Para iniciar sesi\xF3n ingresa tu nombre de usuario y contrase\xF1a.",user:"Correo electr\xF3nico",welcome_to_tarrix:"Bienvenido al panel de control Tarrix"}},shared:{bulk_actions:{bulk_options:"Acciones en masa",change_honeycomb:"Cambiar Panal",delete_bulk:"Eliminar seleccionados",delete_bulk_confirmation:"Por favor confirma que deseas eliminar estas evaluaciones. Esta acci\xF3n no se puede deshacer.",report_bulk:"Reporte con seleccionados",send_report_bulk:"Enviar Reporte"},navigation:{accounts:"Cuentas",assessments:"Aplicaciones",click_to_log_in:"Da clic para ingresar a la cuenta",credit_tarrix:"Cr\xE9ditos",hives:"Colmenas",honeycombs:"Panales",logged:"(Ingresado)",logout:"Cerrar sesi\xF3n",orders:"\xD3rdenes",plans:"Planes",purchase_seats:"Comprar Tests",questions:"Preguntas",seats_available:"Tests Disponibles",tags:"Etiquetas",unlimited:"Tests Ilimitados",users:"Usuarios",view_profile:"Ver Perfil"}},simple_form:{error_notification:{default_message:"Por favor corrige los siguientes errores:"},no:"No",required:{mark:"*",text:"requerido"},yes:"Si"},standard_deviation:"Desviaci\xF3n est\xE1ndar",support:{array:{last_word_connector:" y ",two_words_connector:" y ",words_connector:", "}},tags:{controller:{create:{tag_saved:"Etiqueta guardada exitosamente"},destroy:{tag_destroyed:"Se elimin\xF3 la etiqueta correctamente"},update:{tag_updated:"Actualizaci\xF3n de etiqueta exitosa"}},edit:{edit_tag:"Editar etiqueta"},form:{cancel:"Cancelar",edit_tag_name:"Escribe el nuevo nombre de la etiqueta",save:"Guardar",tag_name:"Escribe el nombre de la nueva etiqueta"},index:{are_you_sure:"Confirmea que deseas eliminar esta etiqueta",created_at:"Fecha de creaci\xF3n",delete:"Eliminar",edit:"Editar",export_data:"Exportar Datos",global_report:"Reporte Global",name:"Nombre",new_tag:"Nueva etiqueta",no_recent_tags:"No hay etiquetas creadas todav\xEDa",taggings_count:"Cantidad en uso"},show:{assessments_quantity:"Cantidad de aplicaciones",honeycomb:"Panal",not_in_use:"Este etiqueta no est\xE1 en uso",tag:"Etiqueta",tag_show_information:"Esta etiqueta est\xE1 siendo utilizada en los siguientes panales"}},time:{am:"am",formats:{date_time:"%Y/%m/%d a las %I:%M %p",date_time_alt:"%Y-%m-%d %H:%M",dateonly:"%d/%m/%Y",dateonly_alt:"%d de %B de %Y",default:"%a, %d de %b de %Y a las %H:%M:%S %Z",excel_date:"%Y-%m-%dT%H:%M:%S.%L",long:"%A, %d de %B de %Y a las %I:%M %p",medium:"%d/%m/%Y a las %I:%M %p",month:"%b",short:"%d de %b a las %H:%M hrs",short_date:"%d/%m/%Y ",time_12_hours:"%I:%M %p",time_only:"%H:%M hrs",weekday:"%A"},pm:"pm"},user_birth_range:{"1":"21-25","2":"26-30","3":"31-35","4":"36-40","5":"41-45","6":"Mayor a 45"},user_gender:{f:"Femenino",m:"Masculino",o:"Otro",other:"Otro"},user_marital_status:{"1":"Soltero(a)","2":"En una relaci\xF3n","3":"Union libre","4":"Casado(a)","5":"No deseo responder","6":"Divorciado(a)","7":"Viudo(a)"},user_notifier_mailer:{answered:"El Tarrix fue contestado",purchase_fail_subject:"Orden cancelada",purchase_success_subject:"Compra completada exitosamente",send_message_email:{description:"A continuaci\xF3n te enviamos las actividades sugeridas para mejorar tu salario emocional, recuerda que son solo sugerencias y que deben ser filtradas con tu experiencia y los comentarios de tu equipo de trabajo, la comunicaci\xF3n es clave.",difficulties:'Para mayor informaci\xF3n o ayuda para implementar estas ideas, puedes contactarnos a trav\xE9s de WhatsApp en el tel\xE9fono <strong>+52 1 55 4766 8048</strong> o dando         click aqu\xED al siguiente enlace: <a         href="https://wa.me/message/AHFRYNGF6ZUTF1">https://wa.me/message/AHFRYNGF6ZUTF1</a>         <br> <br> Tambi\xE9n podemos atenderte por medio del correo electr\xF3nico         para cualquier duda o aclaraci\xF3n         <strong>tarrix@emotionalpaycheck.com</strong> <br> <br> <br> Saludos         cordiales.<br> <br> Nota: Este mensaje se genera autom\xE1ticamente.',greeting:"Hola,",message:"Mensaje:",pre_message:"Has compartido este mensaje que respondi\xF3 BeeGenius en el grupo <strong>%{group}</strong>, que se encuentra en el panal <strong>%{honeycomb}</strong>."},send_questionnaire_answered_email:{click_to_see:"Da click para ver el resultado",difficulties:`Si tienes dificultad en este proceso puedes contactarnos a trav\xE9s de WhatsApp en el tel\xE9fono <strong>+52 1 55 4766 8048</strong> o dando click aqu\xED al siguiente enlace: <a href="https://wa.me/message/AHFRYNGF6ZUTF1">https://wa.me/message/AHFRYNGF6ZUTF1</a> <br> <br> Tambi\xE9n podemos atenderte por medio del correo electr\xF3nico para cualquier duda o aclaraci\xF3n <strong>tarrix@emotionalpaycheck.com</strong> <br> <br> <br> Saludos cordiales.<br> <br> Nota: Este mensaje se genera autom\xE1ticamente.
`,greeting:"Estimado",somebody_answered:"ha contestado el examen",the_user:"El usuario"},send_register_email:{admin:"Administrador",created:"ha sido creada",dificulties:`Si tienes dificultad en este proceso puedes contactarnos a trav\xE9s de WhatsApp en el tel\xE9fono <strong>+52 1 55 4766 8048</strong> o dando click aqu\xED al siguiente enlace: <a href="https://wa.me/message/AHFRYNGF6ZUTF1">https://wa.me/message/AHFRYNGF6ZUTF1</a> <br> <br> Tambi\xE9n podemos atenderte por medio del correo electr\xF3nico para cualquier duda o aclaraci\xF3n <strong>tarrix@emotionalpaycheck.com</strong> <br> <br> <br> Saludos cordiales.<br> <br> Nota: Este mensaje se genera autom\xE1ticamente.
`,for_it:"Para ello necesitas ingresar al siguiente link",from_emotional:"Desde el Emotional Paycheck Institute of Canada ha sido asignado el acceso al panel de administraci\xF3n de",greeting:"Estimado",new_account:"Tu nueva cuenta de usuario",password:"Contrase\xF1a",professional:"Profesional",to_enter:"Para entrar utiliza los siguientes datos de acceso",user:"Usuario"},send_report_email:{hello:"Hola",help:"Si necesitas ayuda escribanos al correo",thanks:`<div>Gracias por utilizar <strong>Tarrix</strong>.&nbsp;</div> <div>&nbsp;</div> <div>Anexamos en este correo el resultado de tu evaluaci\xF3n.&nbsp;</div>
`,your_results:"Los resultados de tu evaluaci\xF3n Tarrix"},send_reset_password_instructions:{click_here:"Has solicitado un link para cambiar tu contrase\xF1a, te solicitamos dar click en el siguiente bot\xF3n para que puedas recuperar tu cuenta.",difficulties:`Si tienes dificultad en este proceso puedes contactarnos a trav\xE9s de WhatsApp en el tel\xE9fono <strong>+52 1 55 4766 8048</strong> o dando click aqu\xED al siguiente enlace: <a href="https://wa.me/message/AHFRYNGF6ZUTF1">https://wa.me/message/AHFRYNGF6ZUTF1</a> <br> <br> Tambi\xE9n podemos atenderte por medio del correo electr\xF3nico para cualquier duda o aclaraci\xF3n <strong>tarrix@emotionalpaycheck.com</strong> <br> <br> <br> Saludos cordiales.<br> <br> Nota: Este mensaje se genera autom\xE1ticamente.
`,dont_change:"Si no deseas cambiar tu contrase\xF1a, haz caso omiso a este correo electr\xF3nico. Tu contrase\xF1a no se cambiar\xE1 hasta que ingreses a la liga y cambies tu contrase\xF1a.",greeting:"Estimado"},wire_transfer_notification:{account_number:"N\xFAmero de cuenta",adress:"Direcci\xF3n del beneficiario",bank_address:"Direcci\xF3n del banco",banking_information:"Informaci\xF3n bancaria",banking_institution:"Nombre del banco",branch_number:"N\xFAmero de sucursal",company_information:"Informaci\xF3n del beneficiario",company_name:"Nombre del beneficiario",currency:"Moneda",dificulties:`Si tienes dificultad en este proceso puedes contactarnos a trav\xE9s de WhatsApp en el tel\xE9fono <strong>+52 1 55 4766 8048</strong> o dando click aqu\xED al siguiente enlace: <a href="https://wa.me/message/AHFRYNGF6ZUTF1">https://wa.me/message/AHFRYNGF6ZUTF1</a> <br> <br> Tambi\xE9n podemos atenderte por medio del correo electr\xF3nico para cualquier duda o aclaraci\xF3n <strong>tarrix@emotionalpaycheck.com</strong> <br> <br> <br> Saludos cordiales.<br> <br> Nota: Este mensaje se genera autom\xE1ticamente.
`,greeting:"Estimado(a)",institution_number:"N\xFAmero de la instituci\xF3n",phone_number:"N\xFAmero de contacto",send_email_instructions:"Una vez relizado el pago, por favor env\xEDa tu comprobante al correo electr\xF3nico",swift_code:"C\xF3digo Swift",wire_payment_instructions:"Has seleccionado el plan <strong>%{order_name}</strong> por un monto total de <strong>%{order_total}</strong>. <br/><br/> Realiza una transferencia bancaria con los datos que se encuentran a continuaci\xF3n.",wire_transfer:"Transferencia bancaria"},wire_transfer_subject:"Instrucciones de pago para tu compra",wtransfer_fail_notification:{greeting:"Estimado(a)",mail_body_fail:'Lamentamos informarte que tu orden de %{order_name} ha sido cancelada. <br/><br> Para m\xE1s informaci\xF3n, puedes contactarnos a trav\xE9s de WhatsApp en el tel\xE9fono <strong>+52 1 55 4766 8048</strong> o enviando un correo a <a href="mailto:tarrix@emotionalpaycheck.com">tarrix@emotionalpaycheck.com</a> <br><br> \xA1Saludos!'},wtransfer_success_notification:{greeting:"Estimado(a)",mail_body_success:"Su compra se ha completado exitosamente. <br/><br> Se han agregado %{order_name} a su cuenta. <br><br> \xA1Muchas gracias!"},your_instructions:"Instrucciones para restablecer tu contrase\xF1a",your_result:"Tu resultado Tarrix",your_user:"Creaci\xF3n de cuenta en Tarrix"},user_role:{admin:"Usuario administrador",professional:"Usuario profesional"},user_scholar_degree:{"1":"Primaria","2":"Secundaria","3":"Bachillerato o T\xE9cnica","4":"Profesional","5":"Posgrado","6":"Doctorado",nil:"No definido"},users:{account_user_fields:{account_permissions:"Permisos de la cuenta",delete_account:"Borrar cuenta"},edit:{back:"Regresar",header:"Actualizar usuario",save:"Guardar"},form:{accounts:"Cuentas",add_account:"Agregar cuenta",application_limit_helptext:'Si se define "0" ser\xE1 ilimitado',application_limit_label:"Limite de cr\xE9ditos Tarrix",application_limit_placeholder:"Escribe un n\xFAmero",created_at:"Creador el",created_by:"Creado por",first_name:"Nombre",general_data:"Datos generales del grupo",last_name:"Apellido",lastlogin:"\xDAltimo acceso",new_password:"Nuevo password",password:"Password inicial",password_hint:"Escribe una contrase\xF1a",suggest_password:"Sugerir contrase\xF1a",user_id:"C\xF3digo de usuario",user_limits:"Limites de usuario",user_role:"Tipo de usuario"},index:{admins:"Administradores",all_users:"Todos los usuarios",blocked_at:"Fecha bloqueo",created_at:"Creado el",created_by:"Creado por",delete:"Eliminar",delete_warning:"\xBFEst\xE1s seguro que deseas eliminarlo?",edit:"Editar",email:"E-Mail",last_name:"Apellido",last_session:"\xDAltimo acceso",name:"Nombre",new_user:"Crear usuario",please_change_your_filters:"No hay usuarios para los filtros seleccionados.",professionals:"Profesionales",search_placeholder:"Buscar usuario",show:"Ver",type:"Tipo",users_title:"Usuarios"},list_honeycombs:{assesment_number:"No. Aplicaciones",company:"Empresa",department:"Departamento",honeycomb:"Panal",honeycomb_code:"C\xF3digo Panal",show_honeycomb:"Ver Panal",user_no_groups:"Este usuario no ha creado ning\xFAn grupo."},new:{new_user:"Nuevo usuario",save:"Guardar"},show:{assessments_by_date_last_n_days:"Aplicaciones por Fecha (120 d\xEDas)",assessments_by_status:"Aplicaciones por Estatus",assessments_usage:"Datos de Aplicaciones",created_at:"Creado el",created_by:"Creador por",credit_tarrix:"Cr\xE9ditos Tarrix",edit:"Editar",fullname:"Nombre Completo",honeycombs_created:"Panales Creados",lastlogin:"\xDAltimo acceso",loading_honeycombs:"Cargando panales",title:"Informaci\xF3n del usuario",unlimited:"Ilimitado",user_id:"C\xF3digo de usuario",username:"Correo electr\xF3nico"}},users_profiles:{form:{save:"Guardar",saving:"Guardando"}},views:{pagination:{first:"&laquo; primera",last:"\xFAltima &raquo;",next:"siguiente &rsaquo;",per_page:"Cantidad por p\xE1gina",previous:"&lsaquo; atr\xE1s",truncate:"&hellip;"}}}};var ts=new Ku(gh);Ol.register(fu,qf);var cR=()=>{if(document.getElementById("radarChartResults")!=null){var a,d=document.getElementById("radarChartResults").getContext("2d"),n=JSON.parse(d.canvas.dataset.data),e=JSON.parse(d.canvas.dataset.values),t=JSON.parse(d.canvas.dataset.datascale),r=JSON.parse(d.canvas.dataset.importancechartstyle);ts.locale=$("body").attr("lang");var i=[ts.t("blocks.block_1"),ts.t("blocks.block_2"),ts.t("blocks.block_3"),ts.t("blocks.block_4"),ts.t("blocks.block_5"),ts.t("blocks.block_6"),ts.t("blocks.block_7"),ts.t("blocks.block_8"),ts.t("blocks.block_9")],a=[];i.forEach(m=>{if(m.length>15){var y=m.split(/\s+/).filter(Boolean),x=y.slice(0,y.length/2),S=y.slice(y.length/2,y.length);a.push([x.join(" "),S.join(" ")])}else a.push(m)});var u={type:"radar",data:{labels:a,datasets:[{label:ts.t("charts.results"),data:e[0],fill:!0,backgroundColor:"rgba(0,255,0, 0.1)",borderColor:"#39ab4b",borderWidth:3,pointBorderColor:"#39ab4b",pointBorderWidth:2,pointRadius:4,pointBackgroundColor:"rgba(255,211,0, 1.0)",pointHitRadius:30,pointHoverRadius:6,pointHoverBackgroundColor:"#39ab4b",pointHoverBorderColor:"#39ab4b"},{label:ts.t("charts.importance"),data:e[1],fill:!0,backgroundColor:"rgba(239, 187, 101, 0.6)",borderWidth:3,borderColor:"transparent",pointBorderWidth:2,pointBorderColor:r[0],pointBackgroundColor:r[0],pointRadius:parseInt(r[1]),pointStyle:r[2],pointHoverRadius:6}]},options:{responsive:!0,devicePixelRatio:2,onClick:function(m,y){if(y.length>0){var x=y[0]._index;self.label=self.dataReport[x].label,self.value=y[0]._chart.data.datasets[0].data[x]}else self.label=ts.t("charts.press_to_see_details"),self.value=null},onHover:function(m,y){if(y.length>0){var x=y[0].index,S=n[x].suggestion_text,L=document.getElementById("help-tooltip-container");L&&(L.innerHTML="",L.innerHTML=S)}},tooltips:{enabled:!1,custom:function(m){m.opacity=0}},layout:{padding:{left:0,top:0,right:0,bottom:0}},title:{display:!1},scales:{r:{pointLabels:{font:{size:14}}}},scale:{min:0,max:10,ticks:{stepSize:2,fontColor:"#888"},pointLabels:{fontColor:"#000",fontStyle:"bold"}},legend:{display:!0,position:"top",labels:{usePointStyle:!1}}}},d=document.getElementById("radarChartResults").getContext("2d");new Ol(d,u)}};var fR=()=>{if(document.getElementById("treemapGravesResults")!=null){var t=document.getElementById("treemapGravesResults").getContext("2d"),n=JSON.parse(t.canvas.dataset.data),e={type:"treemap",data:{datasets:[{tree:n,key:"value",groups:["name"],color:"#333333",formatter:r=>r.raw.g?[r.raw.g,r.raw.v]:r,backgroundColor(r){return r.dataset.data[r.dataIndex]?n[r.dataIndex].color_hexa:"transparent"},spacing:.1,borderWidth:2,borderColor:"rgba(180,180,180, 0.15)",labels:{formatter:r=>r.raw.g?[r.raw.g,r.raw.v]:r.raw.v}}]},options:{responsive:!0,devicePixelRatio:2,onHover:function(r,i){if(i.length>0){var a=i[0].index,u=n[a].suggestion_text,d=document.getElementById("help-tooltip-container");d.innerHTML="",d.innerHTML=u}},plugins:{title:{display:!1},legend:{display:!1},tooltip:{callbacks:{title(r){return ts.t("charts.results_title")},label(r){let i=r.raw;return i._data.name+": "+i.v+"%"}}}}}},t=document.getElementById("treemapGravesResults").getContext("2d");new Ol(t,e)}};document.addEventListener("turbo:load",cR);document.addEventListener("turbo:load",fR);var vS=Fi(Cp()),fo=Fi(gS());window.d3=fo.default;function pw(){return{minValue:0,maxValue:100,circleThickness:.05,circleFillGap:.05,circleColor:"#178BCA",waveHeight:.05,waveCount:1,waveRiseTime:1e3,waveAnimateTime:18e3,waveRise:!0,waveHeightScaling:!0,waveAnimate:!0,waveColor:"#178BCA",waveOffset:0,textVertPosition:.5,textSize:1,valueCountUp:!0,displayPercent:!0,textColor:"#045681",waveTextColor:"#A4DBf8"}}function du(n,e,t){t==null&&(t=pw());var r=fo.default.select("#"+n),i=Math.min(parseInt(r.style("width")),parseInt(r.style("height")))/2,a=parseInt(r.style("width"))/2-i,u=parseInt(r.style("height"))/2-i,d=Math.max(t.minValue,Math.min(t.maxValue,e))/t.maxValue,m;t.waveHeightScaling?m=fo.default.scale.linear().range([0,t.waveHeight,0]).domain([0,50,100]):m=fo.default.scale.linear().range([t.waveHeight,t.waveHeight]).domain([0,100]);var y=t.textSize*i/2,x=parseFloat(e).toFixed(2),S=t.valueCountUp?t.minValue:x,L=t.displayPercent?"%":"",H=t.circleThickness*i,V=t.circleFillGap*i,U=H+V,Z=i-U,ae=Z*m(d*100),le=Z*2/t.waveCount,Ae=1+t.waveCount,ve=le*Ae,b=function(fn){return Math.round(fn)};parseFloat(x)!=parseFloat(b(x))&&(b=function(fn){return parseFloat(fn).toFixed(1)}),parseFloat(x)!=parseFloat(b(x))&&(b=function(fn){return parseFloat(fn).toFixed(2)});for(var te=[],ye=0;ye<=40*Ae;ye++)te.push({x:ye/(40*Ae),y:ye/40});var Oe=fo.default.scale.linear().range([0,2*Math.PI]).domain([0,1]),De=fo.default.scale.linear().range([0,i]).domain([0,i]),lt=fo.default.scale.linear().range([0,ve]).domain([0,1]),ct=fo.default.scale.linear().range([0,ae]).domain([0,1]),Dt=fo.default.scale.linear().range([U+Z*2+ae,U-ae]).domain([0,1]),Mt=fo.default.scale.linear().range([0,ve-Z*2]).domain([0,1]),en=fo.default.scale.linear().range([U+Z*2,U+y*.7]).domain([0,1]),Yt=r.append("g").attr("transform","translate("+a+","+u+")"),At=fo.default.svg.arc().startAngle(Oe(0)).endAngle(Oe(1)).outerRadius(De(i)).innerRadius(De(i-H));Yt.append("path").attr("d",At).style("fill",t.circleColor).attr("transform","translate("+i+","+i+")");var tn=Yt.append("text").text(b(S)+L).attr("class","liquidFillGaugeText").attr("text-anchor","middle").attr("font-size",y+"px").style("fill",t.textColor).attr("transform","translate("+i+","+en(t.textVertPosition)+")"),In=fo.default.svg.area().x(function(fn){return lt(fn.x)}).y0(function(fn){return ct(Math.sin(Math.PI*2*t.waveOffset*-1+Math.PI*2*(1-t.waveCount)+fn.y*2*Math.PI))}).y1(function(fn){return Z*2+ae}),Cn=Yt.append("defs").append("clipPath").attr("id","clipWave"+n),Vn=Cn.append("path").datum(te).attr("d",In).attr("T",0),rr=Yt.append("g").attr("clip-path","url(#clipWave"+n+")");rr.append("circle").attr("cx",i).attr("cy",i).attr("r",Z).style("fill",t.waveColor);var ur=rr.append("text").text(b(S)+L).attr("class","liquidFillGaugeText").attr("text-anchor","middle").attr("font-size",y+"px").style("fill",t.waveTextColor).attr("transform","translate("+i+","+en(t.textVertPosition)+")");if(t.valueCountUp){var yt=function(){var fn=fo.default.interpolate(this.textContent,x);return function(qn){this.textContent=b(fn(qn))+L}};tn.transition().duration(t.waveRiseTime).tween("text",yt),ur.transition().duration(t.waveRiseTime).tween("text",yt)}var Yn=U+Z*2-ve;t.waveRise?Cn.attr("transform","translate("+Yn+","+Dt(0)+")").transition().duration(t.waveRiseTime).attr("transform","translate("+Yn+","+Dt(d)+")").each("start",function(){Vn.attr("transform","translate(1,0)")}):Cn.attr("transform","translate("+Yn+","+Dt(d)+")"),t.waveAnimate&&Vr();function Vr(){Vn.attr("transform","translate("+Mt(Vn.attr("T"))+",0)"),Vn.transition().duration(t.waveAnimateTime*(1-Vn.attr("T"))).ease("linear").attr("transform","translate("+Mt(1)+",0)").attr("T",1).each("end",function(){Vn.attr("T",0),Vr(t.waveAnimateTime)})}function yr(){this.update=function(fn){var qn=parseFloat(fn).toFixed(2),re=function(He){return Math.round(He)};parseFloat(qn)!=parseFloat(re(qn))&&(re=function(He){return parseFloat(He).toFixed(1)}),parseFloat(qn)!=parseFloat(re(qn))&&(re=function(He){return parseFloat(He).toFixed(2)});var ge=function(){var He=fo.default.interpolate(this.textContent,parseFloat(fn).toFixed(2));return function(st){this.textContent=re(He(st))+L}};tn.transition().duration(t.waveRiseTime).tween("text",ge),ur.transition().duration(t.waveRiseTime).tween("text",ge);var Te=Math.max(t.minValue,Math.min(t.maxValue,fn))/t.maxValue,Ue=Z*m(Te*100),Be=fo.default.scale.linear().range([U+Z*2+Ue,U-Ue]).domain([0,1]),$e=Be(Te),Ne=fo.default.scale.linear().range([0,ve]).domain([0,1]),Ie=fo.default.scale.linear().range([0,Ue]).domain([0,1]),je;t.waveHeightScaling?je=fo.default.svg.area().x(function(He){return Ne(He.x)}).y0(function(He){return Ie(Math.sin(Math.PI*2*t.waveOffset*-1+Math.PI*2*(1-t.waveCount)+He.y*2*Math.PI))}).y1(function(He){return Z*2+Ue}):je=In;var Xe=t.waveAnimate?Mt(1):0;Vn.transition().duration(0).transition().duration(t.waveAnimate?t.waveAnimateTime*(1-Vn.attr("T")):t.waveRiseTime).ease("linear").attr("d",je).attr("transform","translate("+Xe+",0)").attr("T","1").each("end",function(){t.waveAnimate&&(Vn.attr("transform","translate("+Mt(0)+",0)"),Vr(t.waveAnimateTime))}),Cn.transition().duration(t.waveRiseTime).attr("transform","translate("+Yn+","+$e+")")}}return new yr}(0,vS.default)(document).on("turbo:load",function(){if(document.getElementById("chart_wellbeing_social")!=null){var n=pw();n.circleColor="#39ab4b",n.textColor="39ab4b",n.waveTextColor="39ab4b",n.waveColor="#39ab4b",du("chart_wellbeing_social",document.getElementById("chart_wellbeing_social").getAttribute("data-chart-value"),n),du("chart_wellbeing_community",document.getElementById("chart_wellbeing_community").getAttribute("data-chart-value"),n),du("chart_wellbeing_career",document.getElementById("chart_wellbeing_career").getAttribute("data-chart-value"),n),du("chart_wellbeing_physical",document.getElementById("chart_wellbeing_physical").getAttribute("data-chart-value"),n),du("chart_wellbeing_financial",document.getElementById("chart_wellbeing_financial").getAttribute("data-chart-value"),n)}if(document.getElementById("chart_wellbeing_social2")!=null){var n=pw();n.circleColor="#39ab4b",n.textColor="39ab4b",n.waveTextColor="39ab4b",n.waveColor="#39ab4b",du("chart_wellbeing_social2",document.getElementById("chart_wellbeing_social2").getAttribute("data-chart-value"),n),du("chart_wellbeing_community2",document.getElementById("chart_wellbeing_community2").getAttribute("data-chart-value"),n),du("chart_wellbeing_career2",document.getElementById("chart_wellbeing_career2").getAttribute("data-chart-value"),n),du("chart_wellbeing_physical2",document.getElementById("chart_wellbeing_physical2").getAttribute("data-chart-value"),n),du("chart_wellbeing_financial2",document.getElementById("chart_wellbeing_financial2").getAttribute("data-chart-value"),n)}});var o4=Fi(vw()),fT=Fi(xS());var yw=class{constructor(e,t,r){this.eventTarget=e,this.eventName=t,this.eventOptions=r,this.unorderedBindings=new Set}connect(){this.eventTarget.addEventListener(this.eventName,this,this.eventOptions)}disconnect(){this.eventTarget.removeEventListener(this.eventName,this,this.eventOptions)}bindingConnected(e){this.unorderedBindings.add(e)}bindingDisconnected(e){this.unorderedBindings.delete(e)}handleEvent(e){let t=dR(e);for(let r of this.bindings){if(t.immediatePropagationStopped)break;r.handleEvent(t)}}hasBindings(){return this.unorderedBindings.size>0}get bindings(){return Array.from(this.unorderedBindings).sort((e,t)=>{let r=e.index,i=t.index;return r<i?-1:r>i?1:0})}};function dR(n){if("immediatePropagationStopped"in n)return n;{let{stopImmediatePropagation:e}=n;return Object.assign(n,{immediatePropagationStopped:!1,stopImmediatePropagation(){this.immediatePropagationStopped=!0,e.call(this)}})}}var bw=class{constructor(e){this.application=e,this.eventListenerMaps=new Map,this.started=!1}start(){this.started||(this.started=!0,this.eventListeners.forEach(e=>e.connect()))}stop(){this.started&&(this.started=!1,this.eventListeners.forEach(e=>e.disconnect()))}get eventListeners(){return Array.from(this.eventListenerMaps.values()).reduce((e,t)=>e.concat(Array.from(t.values())),[])}bindingConnected(e){this.fetchEventListenerForBinding(e).bindingConnected(e)}bindingDisconnected(e,t=!1){this.fetchEventListenerForBinding(e).bindingDisconnected(e),t&&this.clearEventListenersForBinding(e)}handleError(e,t,r={}){this.application.handleError(e,`Error ${t}`,r)}clearEventListenersForBinding(e){let t=this.fetchEventListenerForBinding(e);t.hasBindings()||(t.disconnect(),this.removeMappedEventListenerFor(e))}removeMappedEventListenerFor(e){let{eventTarget:t,eventName:r,eventOptions:i}=e,a=this.fetchEventListenerMapForEventTarget(t),u=this.cacheKey(r,i);a.delete(u),a.size==0&&this.eventListenerMaps.delete(t)}fetchEventListenerForBinding(e){let{eventTarget:t,eventName:r,eventOptions:i}=e;return this.fetchEventListener(t,r,i)}fetchEventListener(e,t,r){let i=this.fetchEventListenerMapForEventTarget(e),a=this.cacheKey(t,r),u=i.get(a);return u||(u=this.createEventListener(e,t,r),i.set(a,u)),u}createEventListener(e,t,r){let i=new yw(e,t,r);return this.started&&i.connect(),i}fetchEventListenerMapForEventTarget(e){let t=this.eventListenerMaps.get(e);return t||(t=new Map,this.eventListenerMaps.set(e,t)),t}cacheKey(e,t){let r=[e];return Object.keys(t).sort().forEach(i=>{r.push(`${t[i]?"":"!"}${i}`)}),r.join(":")}},hR={stop({event:n,value:e}){return e&&n.stopPropagation(),!0},prevent({event:n,value:e}){return e&&n.preventDefault(),!0},self({event:n,value:e,element:t}){return e?t===n.target:!0}},pR=/^(?:(?:([^.]+?)\+)?(.+?)(?:\.(.+?))?(?:@(window|document))?->)?(.+?)(?:#([^:]+?))(?::(.+))?$/;function mR(n){let t=n.trim().match(pR)||[],r=t[2],i=t[3];return i&&!["keydown","keyup","keypress"].includes(r)&&(r+=`.${i}`,i=""),{eventTarget:gR(t[4]),eventName:r,eventOptions:t[7]?vR(t[7]):{},identifier:t[5],methodName:t[6],keyFilter:t[1]||i}}function gR(n){if(n=="window")return window;if(n=="document")return document}function vR(n){return n.split(":").reduce((e,t)=>Object.assign(e,{[t.replace(/^!/,"")]:!/^!/.test(t)}),{})}function yR(n){if(n==window)return"window";if(n==document)return"document"}function qw(n){return n.replace(/(?:[_-])([a-z0-9])/g,(e,t)=>t.toUpperCase())}function _w(n){return qw(n.replace(/--/g,"-").replace(/__/g,"_"))}function km(n){return n.charAt(0).toUpperCase()+n.slice(1)}function IS(n){return n.replace(/([A-Z])/g,(e,t)=>`-${t.toLowerCase()}`)}function bR(n){return n.match(/[^\s]+/g)||[]}function ES(n){return n!=null}function ww(n,e){return Object.prototype.hasOwnProperty.call(n,e)}var CS=["meta","ctrl","alt","shift"],xw=class{constructor(e,t,r,i){this.element=e,this.index=t,this.eventTarget=r.eventTarget||e,this.eventName=r.eventName||_R(e)||Ly("missing event name"),this.eventOptions=r.eventOptions||{},this.identifier=r.identifier||Ly("missing identifier"),this.methodName=r.methodName||Ly("missing method name"),this.keyFilter=r.keyFilter||"",this.schema=i}static forToken(e,t){return new this(e.element,e.index,mR(e.content),t)}toString(){let e=this.keyFilter?`.${this.keyFilter}`:"",t=this.eventTargetName?`@${this.eventTargetName}`:"";return`${this.eventName}${e}${t}->${this.identifier}#${this.methodName}`}shouldIgnoreKeyboardEvent(e){if(!this.keyFilter)return!1;let t=this.keyFilter.split("+");if(this.keyFilterDissatisfied(e,t))return!0;let r=t.filter(i=>!CS.includes(i))[0];return r?(ww(this.keyMappings,r)||Ly(`contains unknown key filter: ${this.keyFilter}`),this.keyMappings[r].toLowerCase()!==e.key.toLowerCase()):!1}shouldIgnoreMouseEvent(e){if(!this.keyFilter)return!1;let t=[this.keyFilter];return!!this.keyFilterDissatisfied(e,t)}get params(){let e={},t=new RegExp(`^data-${this.identifier}-(.+)-param$`,"i");for(let{name:r,value:i}of Array.from(this.element.attributes)){let a=r.match(t),u=a&&a[1];u&&(e[qw(u)]=wR(i))}return e}get eventTargetName(){return yR(this.eventTarget)}get keyMappings(){return this.schema.keyMappings}keyFilterDissatisfied(e,t){let[r,i,a,u]=CS.map(d=>t.includes(d));return e.metaKey!==r||e.ctrlKey!==i||e.altKey!==a||e.shiftKey!==u}},SS={a:()=>"click",button:()=>"click",form:()=>"submit",details:()=>"toggle",input:n=>n.getAttribute("type")=="submit"?"click":"input",select:()=>"change",textarea:()=>"input"};function _R(n){let e=n.tagName.toLowerCase();if(e in SS)return SS[e](n)}function Ly(n){throw new Error(n)}function wR(n){try{return JSON.parse(n)}catch{return n}}var Ew=class{constructor(e,t){this.context=e,this.action=t}get index(){return this.action.index}get eventTarget(){return this.action.eventTarget}get eventOptions(){return this.action.eventOptions}get identifier(){return this.context.identifier}handleEvent(e){let t=this.prepareActionEvent(e);this.willBeInvokedByEvent(e)&&this.applyEventModifiers(t)&&this.invokeWithEvent(t)}get eventName(){return this.action.eventName}get method(){let e=this.controller[this.methodName];if(typeof e=="function")return e;throw new Error(`Action "${this.action}" references undefined method "${this.methodName}"`)}applyEventModifiers(e){let{element:t}=this.action,{actionDescriptorFilters:r}=this.context.application,{controller:i}=this.context,a=!0;for(let[u,d]of Object.entries(this.eventOptions))if(u in r){let m=r[u];a=a&&m({name:u,value:d,event:e,element:t,controller:i})}else continue;return a}prepareActionEvent(e){return Object.assign(e,{params:this.action.params})}invokeWithEvent(e){let{target:t,currentTarget:r}=e;try{this.method.call(this.controller,e),this.context.logDebugActivity(this.methodName,{event:e,target:t,currentTarget:r,action:this.methodName})}catch(i){let{identifier:a,controller:u,element:d,index:m}=this,y={identifier:a,controller:u,element:d,index:m,event:e};this.context.handleError(i,`invoking action "${this.action}"`,y)}}willBeInvokedByEvent(e){let t=e.target;return e instanceof KeyboardEvent&&this.action.shouldIgnoreKeyboardEvent(e)||e instanceof MouseEvent&&this.action.shouldIgnoreMouseEvent(e)?!1:this.element===t?!0:t instanceof Element&&this.element.contains(t)?this.scope.containsElement(t):this.scope.containsElement(this.action.element)}get controller(){return this.context.controller}get methodName(){return this.action.methodName}get element(){return this.scope.element}get scope(){return this.context.scope}},Ry=class{constructor(e,t){this.mutationObserverInit={attributes:!0,childList:!0,subtree:!0},this.element=e,this.started=!1,this.delegate=t,this.elements=new Set,this.mutationObserver=new MutationObserver(r=>this.processMutations(r))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,this.mutationObserverInit),this.refresh())}pause(e){this.started&&(this.mutationObserver.disconnect(),this.started=!1),e(),this.started||(this.mutationObserver.observe(this.element,this.mutationObserverInit),this.started=!0)}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started){let e=new Set(this.matchElementsInTree());for(let t of Array.from(this.elements))e.has(t)||this.removeElement(t);for(let t of Array.from(e))this.addElement(t)}}processMutations(e){if(this.started)for(let t of e)this.processMutation(t)}processMutation(e){e.type=="attributes"?this.processAttributeChange(e.target,e.attributeName):e.type=="childList"&&(this.processRemovedNodes(e.removedNodes),this.processAddedNodes(e.addedNodes))}processAttributeChange(e,t){this.elements.has(e)?this.delegate.elementAttributeChanged&&this.matchElement(e)?this.delegate.elementAttributeChanged(e,t):this.removeElement(e):this.matchElement(e)&&this.addElement(e)}processRemovedNodes(e){for(let t of Array.from(e)){let r=this.elementFromNode(t);r&&this.processTree(r,this.removeElement)}}processAddedNodes(e){for(let t of Array.from(e)){let r=this.elementFromNode(t);r&&this.elementIsActive(r)&&this.processTree(r,this.addElement)}}matchElement(e){return this.delegate.matchElement(e)}matchElementsInTree(e=this.element){return this.delegate.matchElementsInTree(e)}processTree(e,t){for(let r of this.matchElementsInTree(e))t.call(this,r)}elementFromNode(e){if(e.nodeType==Node.ELEMENT_NODE)return e}elementIsActive(e){return e.isConnected!=this.element.isConnected?!1:this.element.contains(e)}addElement(e){this.elements.has(e)||this.elementIsActive(e)&&(this.elements.add(e),this.delegate.elementMatched&&this.delegate.elementMatched(e))}removeElement(e){this.elements.has(e)&&(this.elements.delete(e),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(e))}},Fy=class{constructor(e,t,r){this.attributeName=t,this.delegate=r,this.elementObserver=new Ry(e,this)}get element(){return this.elementObserver.element}get selector(){return`[${this.attributeName}]`}start(){this.elementObserver.start()}pause(e){this.elementObserver.pause(e)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}get started(){return this.elementObserver.started}matchElement(e){return e.hasAttribute(this.attributeName)}matchElementsInTree(e){let t=this.matchElement(e)?[e]:[],r=Array.from(e.querySelectorAll(this.selector));return t.concat(r)}elementMatched(e){this.delegate.elementMatchedAttribute&&this.delegate.elementMatchedAttribute(e,this.attributeName)}elementUnmatched(e){this.delegate.elementUnmatchedAttribute&&this.delegate.elementUnmatchedAttribute(e,this.attributeName)}elementAttributeChanged(e,t){this.delegate.elementAttributeValueChanged&&this.attributeName==t&&this.delegate.elementAttributeValueChanged(e,t)}};function xR(n,e,t){NS(n,e).add(t)}function ER(n,e,t){NS(n,e).delete(t),CR(n,e)}function NS(n,e){let t=n.get(e);return t||(t=new Set,n.set(e,t)),t}function CR(n,e){let t=n.get(e);t!=null&&t.size==0&&n.delete(e)}var Xu=class{constructor(){this.valuesByKey=new Map}get keys(){return Array.from(this.valuesByKey.keys())}get values(){return Array.from(this.valuesByKey.values()).reduce((t,r)=>t.concat(Array.from(r)),[])}get size(){return Array.from(this.valuesByKey.values()).reduce((t,r)=>t+r.size,0)}add(e,t){xR(this.valuesByKey,e,t)}delete(e,t){ER(this.valuesByKey,e,t)}has(e,t){let r=this.valuesByKey.get(e);return r!=null&&r.has(t)}hasKey(e){return this.valuesByKey.has(e)}hasValue(e){return Array.from(this.valuesByKey.values()).some(r=>r.has(e))}getValuesForKey(e){let t=this.valuesByKey.get(e);return t?Array.from(t):[]}getKeysForValue(e){return Array.from(this.valuesByKey).filter(([t,r])=>r.has(e)).map(([t,r])=>t)}};var Cw=class{constructor(e,t,r,i){this._selector=t,this.details=i,this.elementObserver=new Ry(e,this),this.delegate=r,this.matchesByElement=new Xu}get started(){return this.elementObserver.started}get selector(){return this._selector}set selector(e){this._selector=e,this.refresh()}start(){this.elementObserver.start()}pause(e){this.elementObserver.pause(e)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}get element(){return this.elementObserver.element}matchElement(e){let{selector:t}=this;if(t){let r=e.matches(t);return this.delegate.selectorMatchElement?r&&this.delegate.selectorMatchElement(e,this.details):r}else return!1}matchElementsInTree(e){let{selector:t}=this;if(t){let r=this.matchElement(e)?[e]:[],i=Array.from(e.querySelectorAll(t)).filter(a=>this.matchElement(a));return r.concat(i)}else return[]}elementMatched(e){let{selector:t}=this;t&&this.selectorMatched(e,t)}elementUnmatched(e){let t=this.matchesByElement.getKeysForValue(e);for(let r of t)this.selectorUnmatched(e,r)}elementAttributeChanged(e,t){let{selector:r}=this;if(r){let i=this.matchElement(e),a=this.matchesByElement.has(r,e);i&&!a?this.selectorMatched(e,r):!i&&a&&this.selectorUnmatched(e,r)}}selectorMatched(e,t){this.delegate.selectorMatched(e,t,this.details),this.matchesByElement.add(t,e)}selectorUnmatched(e,t){this.delegate.selectorUnmatched(e,t,this.details),this.matchesByElement.delete(t,e)}},Sw=class{constructor(e,t){this.element=e,this.delegate=t,this.started=!1,this.stringMap=new Map,this.mutationObserver=new MutationObserver(r=>this.processMutations(r))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,attributeOldValue:!0}),this.refresh())}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started)for(let e of this.knownAttributeNames)this.refreshAttribute(e,null)}processMutations(e){if(this.started)for(let t of e)this.processMutation(t)}processMutation(e){let t=e.attributeName;t&&this.refreshAttribute(t,e.oldValue)}refreshAttribute(e,t){let r=this.delegate.getStringMapKeyForAttribute(e);if(r!=null){this.stringMap.has(e)||this.stringMapKeyAdded(r,e);let i=this.element.getAttribute(e);if(this.stringMap.get(e)!=i&&this.stringMapValueChanged(i,r,t),i==null){let a=this.stringMap.get(e);this.stringMap.delete(e),a&&this.stringMapKeyRemoved(r,e,a)}else this.stringMap.set(e,i)}}stringMapKeyAdded(e,t){this.delegate.stringMapKeyAdded&&this.delegate.stringMapKeyAdded(e,t)}stringMapValueChanged(e,t,r){this.delegate.stringMapValueChanged&&this.delegate.stringMapValueChanged(e,t,r)}stringMapKeyRemoved(e,t,r){this.delegate.stringMapKeyRemoved&&this.delegate.stringMapKeyRemoved(e,t,r)}get knownAttributeNames(){return Array.from(new Set(this.currentAttributeNames.concat(this.recordedAttributeNames)))}get currentAttributeNames(){return Array.from(this.element.attributes).map(e=>e.name)}get recordedAttributeNames(){return Array.from(this.stringMap.keys())}},By=class{constructor(e,t,r){this.attributeObserver=new Fy(e,t,this),this.delegate=r,this.tokensByElement=new Xu}get started(){return this.attributeObserver.started}start(){this.attributeObserver.start()}pause(e){this.attributeObserver.pause(e)}stop(){this.attributeObserver.stop()}refresh(){this.attributeObserver.refresh()}get element(){return this.attributeObserver.element}get attributeName(){return this.attributeObserver.attributeName}elementMatchedAttribute(e){this.tokensMatched(this.readTokensForElement(e))}elementAttributeValueChanged(e){let[t,r]=this.refreshTokensForElement(e);this.tokensUnmatched(t),this.tokensMatched(r)}elementUnmatchedAttribute(e){this.tokensUnmatched(this.tokensByElement.getValuesForKey(e))}tokensMatched(e){e.forEach(t=>this.tokenMatched(t))}tokensUnmatched(e){e.forEach(t=>this.tokenUnmatched(t))}tokenMatched(e){this.delegate.tokenMatched(e),this.tokensByElement.add(e.element,e)}tokenUnmatched(e){this.delegate.tokenUnmatched(e),this.tokensByElement.delete(e.element,e)}refreshTokensForElement(e){let t=this.tokensByElement.getValuesForKey(e),r=this.readTokensForElement(e),i=TR(t,r).findIndex(([a,u])=>!MR(a,u));return i==-1?[[],[]]:[t.slice(i),r.slice(i)]}readTokensForElement(e){let t=this.attributeName,r=e.getAttribute(t)||"";return SR(r,e,t)}};function SR(n,e,t){return n.trim().split(/\s+/).filter(r=>r.length).map((r,i)=>({element:e,attributeName:t,content:r,index:i}))}function TR(n,e){let t=Math.max(n.length,e.length);return Array.from({length:t},(r,i)=>[n[i],e[i]])}function MR(n,e){return n&&e&&n.index==e.index&&n.content==e.content}var Hy=class{constructor(e,t,r){this.tokenListObserver=new By(e,t,this),this.delegate=r,this.parseResultsByToken=new WeakMap,this.valuesByTokenByElement=new WeakMap}get started(){return this.tokenListObserver.started}start(){this.tokenListObserver.start()}stop(){this.tokenListObserver.stop()}refresh(){this.tokenListObserver.refresh()}get element(){return this.tokenListObserver.element}get attributeName(){return this.tokenListObserver.attributeName}tokenMatched(e){let{element:t}=e,{value:r}=this.fetchParseResultForToken(e);r&&(this.fetchValuesByTokenForElement(t).set(e,r),this.delegate.elementMatchedValue(t,r))}tokenUnmatched(e){let{element:t}=e,{value:r}=this.fetchParseResultForToken(e);r&&(this.fetchValuesByTokenForElement(t).delete(e),this.delegate.elementUnmatchedValue(t,r))}fetchParseResultForToken(e){let t=this.parseResultsByToken.get(e);return t||(t=this.parseToken(e),this.parseResultsByToken.set(e,t)),t}fetchValuesByTokenForElement(e){let t=this.valuesByTokenByElement.get(e);return t||(t=new Map,this.valuesByTokenByElement.set(e,t)),t}parseToken(e){try{return{value:this.delegate.parseValueForToken(e)}}catch(t){return{error:t}}}},Tw=class{constructor(e,t){this.context=e,this.delegate=t,this.bindingsByAction=new Map}start(){this.valueListObserver||(this.valueListObserver=new Hy(this.element,this.actionAttribute,this),this.valueListObserver.start())}stop(){this.valueListObserver&&(this.valueListObserver.stop(),delete this.valueListObserver,this.disconnectAllActions())}get element(){return this.context.element}get identifier(){return this.context.identifier}get actionAttribute(){return this.schema.actionAttribute}get schema(){return this.context.schema}get bindings(){return Array.from(this.bindingsByAction.values())}connectAction(e){let t=new Ew(this.context,e);this.bindingsByAction.set(e,t),this.delegate.bindingConnected(t)}disconnectAction(e){let t=this.bindingsByAction.get(e);t&&(this.bindingsByAction.delete(e),this.delegate.bindingDisconnected(t))}disconnectAllActions(){this.bindings.forEach(e=>this.delegate.bindingDisconnected(e,!0)),this.bindingsByAction.clear()}parseValueForToken(e){let t=xw.forToken(e,this.schema);if(t.identifier==this.identifier)return t}elementMatchedValue(e,t){this.connectAction(t)}elementUnmatchedValue(e,t){this.disconnectAction(t)}},Mw=class{constructor(e,t){this.context=e,this.receiver=t,this.stringMapObserver=new Sw(this.element,this),this.valueDescriptorMap=this.controller.valueDescriptorMap}start(){this.stringMapObserver.start(),this.invokeChangedCallbacksForDefaultValues()}stop(){this.stringMapObserver.stop()}get element(){return this.context.element}get controller(){return this.context.controller}getStringMapKeyForAttribute(e){if(e in this.valueDescriptorMap)return this.valueDescriptorMap[e].name}stringMapKeyAdded(e,t){let r=this.valueDescriptorMap[t];this.hasValue(e)||this.invokeChangedCallback(e,r.writer(this.receiver[e]),r.writer(r.defaultValue))}stringMapValueChanged(e,t,r){let i=this.valueDescriptorNameMap[t];e!==null&&(r===null&&(r=i.writer(i.defaultValue)),this.invokeChangedCallback(t,e,r))}stringMapKeyRemoved(e,t,r){let i=this.valueDescriptorNameMap[e];this.hasValue(e)?this.invokeChangedCallback(e,i.writer(this.receiver[e]),r):this.invokeChangedCallback(e,i.writer(i.defaultValue),r)}invokeChangedCallbacksForDefaultValues(){for(let{key:e,name:t,defaultValue:r,writer:i}of this.valueDescriptors)r!=null&&!this.controller.data.has(e)&&this.invokeChangedCallback(t,i(r),void 0)}invokeChangedCallback(e,t,r){let i=`${e}Changed`,a=this.receiver[i];if(typeof a=="function"){let u=this.valueDescriptorNameMap[e];try{let d=u.reader(t),m=r;r&&(m=u.reader(r)),a.call(this.receiver,d,m)}catch(d){throw d instanceof TypeError&&(d.message=`Stimulus Value "${this.context.identifier}.${u.name}" - ${d.message}`),d}}}get valueDescriptors(){let{valueDescriptorMap:e}=this;return Object.keys(e).map(t=>e[t])}get valueDescriptorNameMap(){let e={};return Object.keys(this.valueDescriptorMap).forEach(t=>{let r=this.valueDescriptorMap[t];e[r.name]=r}),e}hasValue(e){let t=this.valueDescriptorNameMap[e],r=`has${km(t.name)}`;return this.receiver[r]}},Aw=class{constructor(e,t){this.context=e,this.delegate=t,this.targetsByName=new Xu}start(){this.tokenListObserver||(this.tokenListObserver=new By(this.element,this.attributeName,this),this.tokenListObserver.start())}stop(){this.tokenListObserver&&(this.disconnectAllTargets(),this.tokenListObserver.stop(),delete this.tokenListObserver)}tokenMatched({element:e,content:t}){this.scope.containsElement(e)&&this.connectTarget(e,t)}tokenUnmatched({element:e,content:t}){this.disconnectTarget(e,t)}connectTarget(e,t){var r;this.targetsByName.has(t,e)||(this.targetsByName.add(t,e),(r=this.tokenListObserver)===null||r===void 0||r.pause(()=>this.delegate.targetConnected(e,t)))}disconnectTarget(e,t){var r;this.targetsByName.has(t,e)&&(this.targetsByName.delete(t,e),(r=this.tokenListObserver)===null||r===void 0||r.pause(()=>this.delegate.targetDisconnected(e,t)))}disconnectAllTargets(){for(let e of this.targetsByName.keys)for(let t of this.targetsByName.getValuesForKey(e))this.disconnectTarget(t,e)}get attributeName(){return`data-${this.context.identifier}-target`}get element(){return this.context.element}get scope(){return this.context.scope}};function Om(n,e){let t=PS(n);return Array.from(t.reduce((r,i)=>(DR(i,e).forEach(a=>r.add(a)),r),new Set))}function AR(n,e){return PS(n).reduce((r,i)=>(r.push(...kR(i,e)),r),[])}function PS(n){let e=[];for(;n;)e.push(n),n=Object.getPrototypeOf(n);return e.reverse()}function DR(n,e){let t=n[e];return Array.isArray(t)?t:[]}function kR(n,e){let t=n[e];return t?Object.keys(t).map(r=>[r,t[r]]):[]}var Dw=class{constructor(e,t){this.started=!1,this.context=e,this.delegate=t,this.outletsByName=new Xu,this.outletElementsByName=new Xu,this.selectorObserverMap=new Map,this.attributeObserverMap=new Map}start(){this.started||(this.outletDefinitions.forEach(e=>{this.setupSelectorObserverForOutlet(e),this.setupAttributeObserverForOutlet(e)}),this.started=!0,this.dependentContexts.forEach(e=>e.refresh()))}refresh(){this.selectorObserverMap.forEach(e=>e.refresh()),this.attributeObserverMap.forEach(e=>e.refresh())}stop(){this.started&&(this.started=!1,this.disconnectAllOutlets(),this.stopSelectorObservers(),this.stopAttributeObservers())}stopSelectorObservers(){this.selectorObserverMap.size>0&&(this.selectorObserverMap.forEach(e=>e.stop()),this.selectorObserverMap.clear())}stopAttributeObservers(){this.attributeObserverMap.size>0&&(this.attributeObserverMap.forEach(e=>e.stop()),this.attributeObserverMap.clear())}selectorMatched(e,t,{outletName:r}){let i=this.getOutlet(e,r);i&&this.connectOutlet(i,e,r)}selectorUnmatched(e,t,{outletName:r}){let i=this.getOutletFromMap(e,r);i&&this.disconnectOutlet(i,e,r)}selectorMatchElement(e,{outletName:t}){let r=this.selector(t),i=this.hasOutlet(e,t),a=e.matches(`[${this.schema.controllerAttribute}~=${t}]`);return r?i&&a&&e.matches(r):!1}elementMatchedAttribute(e,t){let r=this.getOutletNameFromOutletAttributeName(t);r&&this.updateSelectorObserverForOutlet(r)}elementAttributeValueChanged(e,t){let r=this.getOutletNameFromOutletAttributeName(t);r&&this.updateSelectorObserverForOutlet(r)}elementUnmatchedAttribute(e,t){let r=this.getOutletNameFromOutletAttributeName(t);r&&this.updateSelectorObserverForOutlet(r)}connectOutlet(e,t,r){var i;this.outletElementsByName.has(r,t)||(this.outletsByName.add(r,e),this.outletElementsByName.add(r,t),(i=this.selectorObserverMap.get(r))===null||i===void 0||i.pause(()=>this.delegate.outletConnected(e,t,r)))}disconnectOutlet(e,t,r){var i;this.outletElementsByName.has(r,t)&&(this.outletsByName.delete(r,e),this.outletElementsByName.delete(r,t),(i=this.selectorObserverMap.get(r))===null||i===void 0||i.pause(()=>this.delegate.outletDisconnected(e,t,r)))}disconnectAllOutlets(){for(let e of this.outletElementsByName.keys)for(let t of this.outletElementsByName.getValuesForKey(e))for(let r of this.outletsByName.getValuesForKey(e))this.disconnectOutlet(r,t,e)}updateSelectorObserverForOutlet(e){let t=this.selectorObserverMap.get(e);t&&(t.selector=this.selector(e))}setupSelectorObserverForOutlet(e){let t=this.selector(e),r=new Cw(document.body,t,this,{outletName:e});this.selectorObserverMap.set(e,r),r.start()}setupAttributeObserverForOutlet(e){let t=this.attributeNameForOutletName(e),r=new Fy(this.scope.element,t,this);this.attributeObserverMap.set(e,r),r.start()}selector(e){return this.scope.outlets.getSelectorForOutletName(e)}attributeNameForOutletName(e){return this.scope.schema.outletAttributeForScope(this.identifier,e)}getOutletNameFromOutletAttributeName(e){return this.outletDefinitions.find(t=>this.attributeNameForOutletName(t)===e)}get outletDependencies(){let e=new Xu;return this.router.modules.forEach(t=>{let r=t.definition.controllerConstructor;Om(r,"outlets").forEach(a=>e.add(a,t.identifier))}),e}get outletDefinitions(){return this.outletDependencies.getKeysForValue(this.identifier)}get dependentControllerIdentifiers(){return this.outletDependencies.getValuesForKey(this.identifier)}get dependentContexts(){let e=this.dependentControllerIdentifiers;return this.router.contexts.filter(t=>e.includes(t.identifier))}hasOutlet(e,t){return!!this.getOutlet(e,t)||!!this.getOutletFromMap(e,t)}getOutlet(e,t){return this.application.getControllerForElementAndIdentifier(e,t)}getOutletFromMap(e,t){return this.outletsByName.getValuesForKey(t).find(r=>r.element===e)}get scope(){return this.context.scope}get schema(){return this.context.schema}get identifier(){return this.context.identifier}get application(){return this.context.application}get router(){return this.application.router}},kw=class{constructor(e,t){this.logDebugActivity=(r,i={})=>{let{identifier:a,controller:u,element:d}=this;i=Object.assign({identifier:a,controller:u,element:d},i),this.application.logDebugActivity(this.identifier,r,i)},this.module=e,this.scope=t,this.controller=new e.controllerConstructor(this),this.bindingObserver=new Tw(this,this.dispatcher),this.valueObserver=new Mw(this,this.controller),this.targetObserver=new Aw(this,this),this.outletObserver=new Dw(this,this);try{this.controller.initialize(),this.logDebugActivity("initialize")}catch(r){this.handleError(r,"initializing controller")}}connect(){this.bindingObserver.start(),this.valueObserver.start(),this.targetObserver.start(),this.outletObserver.start();try{this.controller.connect(),this.logDebugActivity("connect")}catch(e){this.handleError(e,"connecting controller")}}refresh(){this.outletObserver.refresh()}disconnect(){try{this.controller.disconnect(),this.logDebugActivity("disconnect")}catch(e){this.handleError(e,"disconnecting controller")}this.outletObserver.stop(),this.targetObserver.stop(),this.valueObserver.stop(),this.bindingObserver.stop()}get application(){return this.module.application}get identifier(){return this.module.identifier}get schema(){return this.application.schema}get dispatcher(){return this.application.dispatcher}get element(){return this.scope.element}get parentElement(){return this.element.parentElement}handleError(e,t,r={}){let{identifier:i,controller:a,element:u}=this;r=Object.assign({identifier:i,controller:a,element:u},r),this.application.handleError(e,`Error ${t}`,r)}targetConnected(e,t){this.invokeControllerMethod(`${t}TargetConnected`,e)}targetDisconnected(e,t){this.invokeControllerMethod(`${t}TargetDisconnected`,e)}outletConnected(e,t,r){this.invokeControllerMethod(`${_w(r)}OutletConnected`,e,t)}outletDisconnected(e,t,r){this.invokeControllerMethod(`${_w(r)}OutletDisconnected`,e,t)}invokeControllerMethod(e,...t){let r=this.controller;typeof r[e]=="function"&&r[e](...t)}};function OR(n){return IR(n,NR(n))}function IR(n,e){let t=FR(n),r=PR(n.prototype,e);return Object.defineProperties(t.prototype,r),t}function NR(n){return Om(n,"blessings").reduce((t,r)=>{let i=r(n);for(let a in i){let u=t[a]||{};t[a]=Object.assign(u,i[a])}return t},{})}function PR(n,e){return RR(e).reduce((t,r)=>{let i=LR(n,e,r);return i&&Object.assign(t,{[r]:i}),t},{})}function LR(n,e,t){let r=Object.getOwnPropertyDescriptor(n,t);if(!(r&&"value"in r)){let a=Object.getOwnPropertyDescriptor(e,t).value;return r&&(a.get=r.get||a.get,a.set=r.set||a.set),a}}var RR=(()=>typeof Object.getOwnPropertySymbols=="function"?n=>[...Object.getOwnPropertyNames(n),...Object.getOwnPropertySymbols(n)]:Object.getOwnPropertyNames)(),FR=(()=>{function n(t){function r(){return Reflect.construct(t,arguments,new.target)}return r.prototype=Object.create(t.prototype,{constructor:{value:r}}),Reflect.setPrototypeOf(r,t),r}function e(){let r=n(function(){this.a.call(this)});return r.prototype.a=function(){},new r}try{return e(),n}catch{return r=>class extends r{}}})();function BR(n){return{identifier:n.identifier,controllerConstructor:OR(n.controllerConstructor)}}var Ow=class{constructor(e,t){this.application=e,this.definition=BR(t),this.contextsByScope=new WeakMap,this.connectedContexts=new Set}get identifier(){return this.definition.identifier}get controllerConstructor(){return this.definition.controllerConstructor}get contexts(){return Array.from(this.connectedContexts)}connectContextForScope(e){let t=this.fetchContextForScope(e);this.connectedContexts.add(t),t.connect()}disconnectContextForScope(e){let t=this.contextsByScope.get(e);t&&(this.connectedContexts.delete(t),t.disconnect())}fetchContextForScope(e){let t=this.contextsByScope.get(e);return t||(t=new kw(this,e),this.contextsByScope.set(e,t)),t}},Iw=class{constructor(e){this.scope=e}has(e){return this.data.has(this.getDataKey(e))}get(e){return this.getAll(e)[0]}getAll(e){let t=this.data.get(this.getDataKey(e))||"";return bR(t)}getAttributeName(e){return this.data.getAttributeNameForKey(this.getDataKey(e))}getDataKey(e){return`${e}-class`}get data(){return this.scope.data}},Nw=class{constructor(e){this.scope=e}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get(e){let t=this.getAttributeNameForKey(e);return this.element.getAttribute(t)}set(e,t){let r=this.getAttributeNameForKey(e);return this.element.setAttribute(r,t),this.get(e)}has(e){let t=this.getAttributeNameForKey(e);return this.element.hasAttribute(t)}delete(e){if(this.has(e)){let t=this.getAttributeNameForKey(e);return this.element.removeAttribute(t),!0}else return!1}getAttributeNameForKey(e){return`data-${this.identifier}-${IS(e)}`}},Pw=class{constructor(e){this.warnedKeysByObject=new WeakMap,this.logger=e}warn(e,t,r){let i=this.warnedKeysByObject.get(e);i||(i=new Set,this.warnedKeysByObject.set(e,i)),i.has(t)||(i.add(t),this.logger.warn(r,e))}};function Lw(n,e){return`[${n}~="${e}"]`}var Rw=class{constructor(e){this.scope=e}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(e){return this.find(e)!=null}find(...e){return e.reduce((t,r)=>t||this.findTarget(r)||this.findLegacyTarget(r),void 0)}findAll(...e){return e.reduce((t,r)=>[...t,...this.findAllTargets(r),...this.findAllLegacyTargets(r)],[])}findTarget(e){let t=this.getSelectorForTargetName(e);return this.scope.findElement(t)}findAllTargets(e){let t=this.getSelectorForTargetName(e);return this.scope.findAllElements(t)}getSelectorForTargetName(e){let t=this.schema.targetAttributeForScope(this.identifier);return Lw(t,e)}findLegacyTarget(e){let t=this.getLegacySelectorForTargetName(e);return this.deprecate(this.scope.findElement(t),e)}findAllLegacyTargets(e){let t=this.getLegacySelectorForTargetName(e);return this.scope.findAllElements(t).map(r=>this.deprecate(r,e))}getLegacySelectorForTargetName(e){let t=`${this.identifier}.${e}`;return Lw(this.schema.targetAttribute,t)}deprecate(e,t){if(e){let{identifier:r}=this,i=this.schema.targetAttribute,a=this.schema.targetAttributeForScope(r);this.guide.warn(e,`target:${t}`,`Please replace ${i}="${r}.${t}" with ${a}="${t}". The ${i} attribute is deprecated and will be removed in a future version of Stimulus.`)}return e}get guide(){return this.scope.guide}},Fw=class{constructor(e,t){this.scope=e,this.controllerElement=t}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(e){return this.find(e)!=null}find(...e){return e.reduce((t,r)=>t||this.findOutlet(r),void 0)}findAll(...e){return e.reduce((t,r)=>[...t,...this.findAllOutlets(r)],[])}getSelectorForOutletName(e){let t=this.schema.outletAttributeForScope(this.identifier,e);return this.controllerElement.getAttribute(t)}findOutlet(e){let t=this.getSelectorForOutletName(e);if(t)return this.findElement(t,e)}findAllOutlets(e){let t=this.getSelectorForOutletName(e);return t?this.findAllElements(t,e):[]}findElement(e,t){return this.scope.queryElements(e).filter(i=>this.matchesElement(i,e,t))[0]}findAllElements(e,t){return this.scope.queryElements(e).filter(i=>this.matchesElement(i,e,t))}matchesElement(e,t,r){let i=e.getAttribute(this.scope.schema.controllerAttribute)||"";return e.matches(t)&&i.split(" ").includes(r)}},Am=class{constructor(e,t,r,i){this.targets=new Rw(this),this.classes=new Iw(this),this.data=new Nw(this),this.containsElement=a=>a.closest(this.controllerSelector)===this.element,this.schema=e,this.element=t,this.identifier=r,this.guide=new Pw(i),this.outlets=new Fw(this.documentScope,t)}findElement(e){return this.element.matches(e)?this.element:this.queryElements(e).find(this.containsElement)}findAllElements(e){return[...this.element.matches(e)?[this.element]:[],...this.queryElements(e).filter(this.containsElement)]}queryElements(e){return Array.from(this.element.querySelectorAll(e))}get controllerSelector(){return Lw(this.schema.controllerAttribute,this.identifier)}get isDocumentScope(){return this.element===document.documentElement}get documentScope(){return this.isDocumentScope?this:new Am(this.schema,document.documentElement,this.identifier,this.guide.logger)}},Bw=class{constructor(e,t,r){this.element=e,this.schema=t,this.delegate=r,this.valueListObserver=new Hy(this.element,this.controllerAttribute,this),this.scopesByIdentifierByElement=new WeakMap,this.scopeReferenceCounts=new WeakMap}start(){this.valueListObserver.start()}stop(){this.valueListObserver.stop()}get controllerAttribute(){return this.schema.controllerAttribute}parseValueForToken(e){let{element:t,content:r}=e;return this.parseValueForElementAndIdentifier(t,r)}parseValueForElementAndIdentifier(e,t){let r=this.fetchScopesByIdentifierForElement(e),i=r.get(t);return i||(i=this.delegate.createScopeForElementAndIdentifier(e,t),r.set(t,i)),i}elementMatchedValue(e,t){let r=(this.scopeReferenceCounts.get(t)||0)+1;this.scopeReferenceCounts.set(t,r),r==1&&this.delegate.scopeConnected(t)}elementUnmatchedValue(e,t){let r=this.scopeReferenceCounts.get(t);r&&(this.scopeReferenceCounts.set(t,r-1),r==1&&this.delegate.scopeDisconnected(t))}fetchScopesByIdentifierForElement(e){let t=this.scopesByIdentifierByElement.get(e);return t||(t=new Map,this.scopesByIdentifierByElement.set(e,t)),t}},Hw=class{constructor(e){this.application=e,this.scopeObserver=new Bw(this.element,this.schema,this),this.scopesByIdentifier=new Xu,this.modulesByIdentifier=new Map}get element(){return this.application.element}get schema(){return this.application.schema}get logger(){return this.application.logger}get controllerAttribute(){return this.schema.controllerAttribute}get modules(){return Array.from(this.modulesByIdentifier.values())}get contexts(){return this.modules.reduce((e,t)=>e.concat(t.contexts),[])}start(){this.scopeObserver.start()}stop(){this.scopeObserver.stop()}loadDefinition(e){this.unloadIdentifier(e.identifier);let t=new Ow(this.application,e);this.connectModule(t);let r=e.controllerConstructor.afterLoad;r&&r.call(e.controllerConstructor,e.identifier,this.application)}unloadIdentifier(e){let t=this.modulesByIdentifier.get(e);t&&this.disconnectModule(t)}getContextForElementAndIdentifier(e,t){let r=this.modulesByIdentifier.get(t);if(r)return r.contexts.find(i=>i.element==e)}proposeToConnectScopeForElementAndIdentifier(e,t){let r=this.scopeObserver.parseValueForElementAndIdentifier(e,t);r?this.scopeObserver.elementMatchedValue(r.element,r):console.error(`Couldn't find or create scope for identifier: "${t}" and element:`,e)}handleError(e,t,r){this.application.handleError(e,t,r)}createScopeForElementAndIdentifier(e,t){return new Am(this.schema,e,t,this.logger)}scopeConnected(e){this.scopesByIdentifier.add(e.identifier,e);let t=this.modulesByIdentifier.get(e.identifier);t&&t.connectContextForScope(e)}scopeDisconnected(e){this.scopesByIdentifier.delete(e.identifier,e);let t=this.modulesByIdentifier.get(e.identifier);t&&t.disconnectContextForScope(e)}connectModule(e){this.modulesByIdentifier.set(e.identifier,e),this.scopesByIdentifier.getValuesForKey(e.identifier).forEach(r=>e.connectContextForScope(r))}disconnectModule(e){this.modulesByIdentifier.delete(e.identifier),this.scopesByIdentifier.getValuesForKey(e.identifier).forEach(r=>e.disconnectContextForScope(r))}},HR={controllerAttribute:"data-controller",actionAttribute:"data-action",targetAttribute:"data-target",targetAttributeForScope:n=>`data-${n}-target`,outletAttributeForScope:(n,e)=>`data-${n}-${e}-outlet`,keyMappings:Object.assign(Object.assign({enter:"Enter",tab:"Tab",esc:"Escape",space:" ",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",home:"Home",end:"End",page_up:"PageUp",page_down:"PageDown"},TS("abcdefghijklmnopqrstuvwxyz".split("").map(n=>[n,n]))),TS("0123456789".split("").map(n=>[n,n])))};function TS(n){return n.reduce((e,[t,r])=>Object.assign(Object.assign({},e),{[t]:r}),{})}var qy=class{constructor(e=document.documentElement,t=HR){this.logger=console,this.debug=!1,this.logDebugActivity=(r,i,a={})=>{this.debug&&this.logFormattedMessage(r,i,a)},this.element=e,this.schema=t,this.dispatcher=new bw(this),this.router=new Hw(this),this.actionDescriptorFilters=Object.assign({},hR)}static start(e,t){let r=new this(e,t);return r.start(),r}async start(){await qR(),this.logDebugActivity("application","starting"),this.dispatcher.start(),this.router.start(),this.logDebugActivity("application","start")}stop(){this.logDebugActivity("application","stopping"),this.dispatcher.stop(),this.router.stop(),this.logDebugActivity("application","stop")}register(e,t){this.load({identifier:e,controllerConstructor:t})}registerActionOption(e,t){this.actionDescriptorFilters[e]=t}load(e,...t){(Array.isArray(e)?e:[e,...t]).forEach(i=>{i.controllerConstructor.shouldLoad&&this.router.loadDefinition(i)})}unload(e,...t){(Array.isArray(e)?e:[e,...t]).forEach(i=>this.router.unloadIdentifier(i))}get controllers(){return this.router.contexts.map(e=>e.controller)}getControllerForElementAndIdentifier(e,t){let r=this.router.getContextForElementAndIdentifier(e,t);return r?r.controller:null}handleError(e,t,r){var i;this.logger.error(`%s

%o

%o`,t,e,r),(i=window.onerror)===null||i===void 0||i.call(window,t,"",0,0,e)}logFormattedMessage(e,t,r={}){r=Object.assign({application:this},r),this.logger.groupCollapsed(`${e} #${t}`),this.logger.log("details:",Object.assign({},r)),this.logger.groupEnd()}};function qR(){return new Promise(n=>{document.readyState=="loading"?document.addEventListener("DOMContentLoaded",()=>n()):n()})}function zR(n){return Om(n,"classes").reduce((t,r)=>Object.assign(t,WR(r)),{})}function WR(n){return{[`${n}Class`]:{get(){let{classes:e}=this;if(e.has(n))return e.get(n);{let t=e.getAttributeName(n);throw new Error(`Missing attribute "${t}"`)}}},[`${n}Classes`]:{get(){return this.classes.getAll(n)}},[`has${km(n)}Class`]:{get(){return this.classes.has(n)}}}}function jR(n){return Om(n,"outlets").reduce((t,r)=>Object.assign(t,UR(r)),{})}function MS(n,e,t){return n.application.getControllerForElementAndIdentifier(e,t)}function AS(n,e,t){let r=MS(n,e,t);if(r||(n.application.router.proposeToConnectScopeForElementAndIdentifier(e,t),r=MS(n,e,t),r))return r}function UR(n){let e=_w(n);return{[`${e}Outlet`]:{get(){let t=this.outlets.find(n),r=this.outlets.getSelectorForOutletName(n);if(t){let i=AS(this,t,n);if(i)return i;throw new Error(`The provided outlet element is missing an outlet controller "${n}" instance for host controller "${this.identifier}"`)}throw new Error(`Missing outlet element "${n}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${r}".`)}},[`${e}Outlets`]:{get(){let t=this.outlets.findAll(n);return t.length>0?t.map(r=>{let i=AS(this,r,n);if(i)return i;console.warn(`The provided outlet element is missing an outlet controller "${n}" instance for host controller "${this.identifier}"`,r)}).filter(r=>r):[]}},[`${e}OutletElement`]:{get(){let t=this.outlets.find(n),r=this.outlets.getSelectorForOutletName(n);if(t)return t;throw new Error(`Missing outlet element "${n}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${r}".`)}},[`${e}OutletElements`]:{get(){return this.outlets.findAll(n)}},[`has${km(e)}Outlet`]:{get(){return this.outlets.has(n)}}}}function VR(n){return Om(n,"targets").reduce((t,r)=>Object.assign(t,YR(r)),{})}function YR(n){return{[`${n}Target`]:{get(){let e=this.targets.find(n);if(e)return e;throw new Error(`Missing target element "${n}" for "${this.identifier}" controller`)}},[`${n}Targets`]:{get(){return this.targets.findAll(n)}},[`has${km(n)}Target`]:{get(){return this.targets.has(n)}}}}function $R(n){let e=AR(n,"values"),t={valueDescriptorMap:{get(){return e.reduce((r,i)=>{let a=LS(i,this.identifier),u=this.data.getAttributeNameForKey(a.key);return Object.assign(r,{[u]:a})},{})}}};return e.reduce((r,i)=>Object.assign(r,GR(i)),t)}function GR(n,e){let t=LS(n,e),{key:r,name:i,reader:a,writer:u}=t;return{[i]:{get(){let d=this.data.get(r);return d!==null?a(d):t.defaultValue},set(d){d===void 0?this.data.delete(r):this.data.set(r,u(d))}},[`has${km(i)}`]:{get(){return this.data.has(r)||t.hasCustomDefaultValue}}}}function LS([n,e],t){return JR({controller:t,token:n,typeDefinition:e})}function zy(n){switch(n){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function Dm(n){switch(typeof n){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}if(Array.isArray(n))return"array";if(Object.prototype.toString.call(n)==="[object Object]")return"object"}function KR(n){let{controller:e,token:t,typeObject:r}=n,i=ES(r.type),a=ES(r.default),u=i&&a,d=i&&!a,m=!i&&a,y=zy(r.type),x=Dm(n.typeObject.default);if(d)return y;if(m)return x;if(y!==x){let S=e?`${e}.${t}`:t;throw new Error(`The specified default value for the Stimulus Value "${S}" must match the defined type "${y}". The provided default value of "${r.default}" is of type "${x}".`)}if(u)return y}function XR(n){let{controller:e,token:t,typeDefinition:r}=n,a=KR({controller:e,token:t,typeObject:r}),u=Dm(r),d=zy(r),m=a||u||d;if(m)return m;let y=e?`${e}.${r}`:t;throw new Error(`Unknown value type "${y}" for "${t}" value`)}function QR(n){let e=zy(n);if(e)return DS[e];let t=ww(n,"default"),r=ww(n,"type"),i=n;if(t)return i.default;if(r){let{type:a}=i,u=zy(a);if(u)return DS[u]}return n}function JR(n){let{token:e,typeDefinition:t}=n,r=`${IS(e)}-value`,i=XR(n);return{type:i,key:r,name:qw(r),get defaultValue(){return QR(t)},get hasCustomDefaultValue(){return Dm(t)!==void 0},reader:ZR[i],writer:kS[i]||kS.default}}var DS={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},ZR={array(n){let e=JSON.parse(n);if(!Array.isArray(e))throw new TypeError(`expected value of type "array" but instead got value "${n}" of type "${Dm(e)}"`);return e},boolean(n){return!(n=="0"||String(n).toLowerCase()=="false")},number(n){return Number(n.replace(/_/g,""))},object(n){let e=JSON.parse(n);if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected value of type "object" but instead got value "${n}" of type "${Dm(e)}"`);return e},string(n){return n}},kS={default:eF,array:OS,object:OS};function OS(n){return JSON.stringify(n)}function eF(n){return`${n}`}var Ar=class{constructor(e){this.context=e}static get shouldLoad(){return!0}static afterLoad(e,t){}get application(){return this.context.application}get scope(){return this.context.scope}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get outlets(){return this.scope.outlets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}dispatch(e,{target:t=this.element,detail:r={},prefix:i=this.identifier,bubbles:a=!0,cancelable:u=!0}={}){let d=i?`${i}:${e}`:e,m=new CustomEvent(d,{detail:r,bubbles:a,cancelable:u});return t.dispatchEvent(m),m}};Ar.blessings=[zR,VR,$R,jR];Ar.targets=[];Ar.outlets=[];Ar.values={};var Im=class extends Ar{connect(){if(!this.hasUrlValue){console.error("[stimulus-content-loader] You need to pass an url to fetch the remote content.");return}this.hasLazyLoadingValue?this.lazyLoad():this.load()}disconnect(){this.stopRefreshing()}load(){this.fetch(),this.hasRefreshIntervalValue&&this.startRefreshing()}lazyLoad(){let e={threshold:this.lazyLoadingThresholdValue,rootMargin:this.lazyLoadingRootMarginValue};new IntersectionObserver((t,r)=>{t.forEach(i=>{i.isIntersecting&&(this.load(),r.unobserve(i.target))})},e).observe(this.element)}fetch(){fetch(this.urlValue).then(e=>e.text()).then(e=>{this.element.innerHTML=e,this.loadScriptsValue&&this.loadScripts()})}startRefreshing(){this.refreshTimer=setInterval(()=>{this.fetch()},this.refreshIntervalValue)}stopRefreshing(){this.refreshTimer&&clearInterval(this.refreshTimer)}loadScripts(){this.element.querySelectorAll("script").forEach(e=>{let t=document.createElement("script");t.innerHTML=e.innerHTML,document.head.appendChild(t).parentNode.removeChild(t)})}};Im.values={url:String,lazyLoading:Boolean,lazyLoadingThreshold:Number,lazyLoadingRootMargin:{type:String,default:"0px"},refreshInterval:Number,loadScripts:Boolean};var vh=class extends Ar{connect(){this.class=this.hasHiddenClass?this.hiddenClass:"hidden"}toggle(){this.itemTargets.forEach(e=>{e.classList.toggle(this.class)})}show(){this.itemTargets.forEach(e=>{e.classList.remove(this.class)})}hide(){this.itemTargets.forEach(e=>{e.classList.add(this.class)})}};vh.targets=["item"];vh.classes=["hidden"];var Wf=class extends Ar{initialize(){this.toggle=this.toggle.bind(this),this.refresh=this.refresh.bind(this)}checkboxAllTargetConnected(e){e.addEventListener("change",this.toggle),this.refresh()}checkboxTargetConnected(e){e.addEventListener("change",this.refresh),this.refresh()}checkboxAllTargetDisconnected(e){e.removeEventListener("change",this.toggle),this.refresh()}checkboxTargetDisconnected(e){e.removeEventListener("change",this.refresh),this.refresh()}toggle(e){e.preventDefault(),this.checkboxTargets.forEach(t=>{t.checked=e.target.checked,this.triggerInputEvent(t)})}refresh(){let e=this.checkboxTargets.length,t=this.checked.length;this.checkboxAllTarget.checked=t>0,this.checkboxAllTarget.indeterminate=t>0&&t<e}triggerInputEvent(e){let t=new Event("input",{bubbles:!1,cancelable:!0});e.dispatchEvent(t)}get checked(){return this.checkboxTargets.filter(e=>e.checked)}get unchecked(){return this.checkboxTargets.filter(e=>!e.checked)}};Wf.targets=["checkboxAll","checkbox"];var Wy=class extends Ar{replace(e){e.preventDefault(),e.stopPropagation();let[,,t]=e.detail;this.element.outerHTML=t.response}append(e){e.preventDefault(),e.stopPropagation();let[,,t]=e.detail;this.element.insertAdjacentHTML("afterend",t.response)}prepend(e){e.preventDefault(),e.stopPropagation();let[,,t]=e.detail;this.element.insertAdjacentHTML("beforebegin",t.response)}};var jy=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Uc={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(n){return typeof console<"u"&&console.warn(n)},getWeek:function(n){var e=new Date(n.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var t=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1};var Uy={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(n){var e=n%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},Vy=Uy;var ia=function(n,e){return e===void 0&&(e=2),("000"+n).slice(e*-1)},ns=function(n){return n===!0?1:0};function zw(n,e){var t;return function(){var r=this,i=arguments;clearTimeout(t),t=setTimeout(function(){return n.apply(r,i)},e)}}var Yy=function(n){return n instanceof Array?n:[n]};function oa(n,e,t){if(t===!0)return n.classList.add(e);n.classList.remove(e)}function Fr(n,e,t){var r=window.document.createElement(n);return e=e||"",t=t||"",r.className=e,t!==void 0&&(r.textContent=t),r}function Nm(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function Ww(n,e){if(e(n))return n;if(n.parentNode)return Ww(n.parentNode,e)}function Pm(n,e){var t=Fr("div","numInputWrapper"),r=Fr("input","numInput "+n),i=Fr("span","arrowUp"),a=Fr("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?r.type="number":(r.type="text",r.pattern="\\d*"),e!==void 0)for(var u in e)r.setAttribute(u,e[u]);return t.appendChild(r),t.appendChild(i),t.appendChild(a),t}function rs(n){try{if(typeof n.composedPath=="function"){var e=n.composedPath();return e[0]}return n.target}catch{return n.target}}var jw=function(){},Lm=function(n,e,t){return t.months[e?"shorthand":"longhand"][n]},RS={D:jw,F:function(n,e,t){n.setMonth(t.months.longhand.indexOf(e))},G:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},H:function(n,e){n.setHours(parseFloat(e))},J:function(n,e){n.setDate(parseFloat(e))},K:function(n,e,t){n.setHours(n.getHours()%12+12*ns(new RegExp(t.amPM[1],"i").test(e)))},M:function(n,e,t){n.setMonth(t.months.shorthand.indexOf(e))},S:function(n,e){n.setSeconds(parseFloat(e))},U:function(n,e){return new Date(parseFloat(e)*1e3)},W:function(n,e,t){var r=parseInt(e),i=new Date(n.getFullYear(),0,2+(r-1)*7,0,0,0,0);return i.setDate(i.getDate()-i.getDay()+t.firstDayOfWeek),i},Y:function(n,e){n.setFullYear(parseFloat(e))},Z:function(n,e){return new Date(e)},d:function(n,e){n.setDate(parseFloat(e))},h:function(n,e){n.setHours((n.getHours()>=12?12:0)+parseFloat(e))},i:function(n,e){n.setMinutes(parseFloat(e))},j:function(n,e){n.setDate(parseFloat(e))},l:jw,m:function(n,e){n.setMonth(parseFloat(e)-1)},n:function(n,e){n.setMonth(parseFloat(e)-1)},s:function(n,e){n.setSeconds(parseFloat(e))},u:function(n,e){return new Date(parseFloat(e))},w:jw,y:function(n,e){n.setFullYear(2e3+parseFloat(e))}},Qu={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},yh={Z:function(n){return n.toISOString()},D:function(n,e,t){return e.weekdays.shorthand[yh.w(n,e,t)]},F:function(n,e,t){return Lm(yh.n(n,e,t)-1,!1,e)},G:function(n,e,t){return ia(yh.h(n,e,t))},H:function(n){return ia(n.getHours())},J:function(n,e){return e.ordinal!==void 0?n.getDate()+e.ordinal(n.getDate()):n.getDate()},K:function(n,e){return e.amPM[ns(n.getHours()>11)]},M:function(n,e){return Lm(n.getMonth(),!0,e)},S:function(n){return ia(n.getSeconds())},U:function(n){return n.getTime()/1e3},W:function(n,e,t){return t.getWeek(n)},Y:function(n){return ia(n.getFullYear(),4)},d:function(n){return ia(n.getDate())},h:function(n){return n.getHours()%12?n.getHours()%12:12},i:function(n){return ia(n.getMinutes())},j:function(n){return n.getDate()},l:function(n,e){return e.weekdays.longhand[n.getDay()]},m:function(n){return ia(n.getMonth()+1)},n:function(n){return n.getMonth()+1},s:function(n){return n.getSeconds()},u:function(n){return n.getTime()},w:function(n){return n.getDay()},y:function(n){return String(n.getFullYear()).substring(2)}};var Uw=function(n){var e=n.config,t=e===void 0?Uc:e,r=n.l10n,i=r===void 0?Uy:r,a=n.isMobile,u=a===void 0?!1:a;return function(d,m,y){var x=y||i;return t.formatDate!==void 0&&!u?t.formatDate(d,m,x):m.split("").map(function(S,L,H){return yh[S]&&H[L-1]!=="\\"?yh[S](d,x,t):S!=="\\"?S:""}).join("")}},$y=function(n){var e=n.config,t=e===void 0?Uc:e,r=n.l10n,i=r===void 0?Uy:r;return function(a,u,d,m){if(!(a!==0&&!a)){var y=m||i,x,S=a;if(a instanceof Date)x=new Date(a.getTime());else if(typeof a!="string"&&a.toFixed!==void 0)x=new Date(a);else if(typeof a=="string"){var L=u||(t||Uc).dateFormat,H=String(a).trim();if(H==="today")x=new Date,d=!0;else if(t&&t.parseDate)x=t.parseDate(a,L);else if(/Z$/.test(H)||/GMT$/.test(H))x=new Date(a);else{for(var V=void 0,U=[],Z=0,ae=0,le="";Z<L.length;Z++){var Ae=L[Z],ve=Ae==="\\",b=L[Z-1]==="\\"||ve;if(Qu[Ae]&&!b){le+=Qu[Ae];var te=new RegExp(le).exec(a);te&&(V=!0)&&U[Ae!=="Y"?"push":"unshift"]({fn:RS[Ae],val:te[++ae]})}else ve||(le+=".")}x=!t||!t.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),U.forEach(function(ye){var Oe=ye.fn,De=ye.val;return x=Oe(x,De,y)||x}),x=V?x:void 0}}if(!(x instanceof Date&&!isNaN(x.getTime()))){t.errorHandler(new Error("Invalid date provided: "+S));return}return d===!0&&x.setHours(0,0,0,0),x}}};function is(n,e,t){return t===void 0&&(t=!0),t!==!1?new Date(n.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):n.getTime()-e.getTime()}var FS=function(n,e,t){return n>Math.min(e,t)&&n<Math.max(e,t)},Gy=function(n,e,t){return n*3600+e*60+t},BS=function(n){var e=Math.floor(n/3600),t=(n-e*3600)/60;return[e,t,n-e*3600-t*60]},HS={DAY:864e5};function Ky(n){var e=n.defaultHour,t=n.defaultMinute,r=n.defaultSeconds;if(n.minDate!==void 0){var i=n.minDate.getHours(),a=n.minDate.getMinutes(),u=n.minDate.getSeconds();e<i&&(e=i),e===i&&t<a&&(t=a),e===i&&t===a&&r<u&&(r=n.minDate.getSeconds())}if(n.maxDate!==void 0){var d=n.maxDate.getHours(),m=n.maxDate.getMinutes();e=Math.min(e,d),e===d&&(t=Math.min(m,t)),e===d&&t===m&&(r=n.maxDate.getSeconds())}return{hours:e,minutes:t,seconds:r}}typeof Object.assign!="function"&&(Object.assign=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(!n)throw TypeError("Cannot convert undefined or null to object");for(var r=function(d){d&&Object.keys(d).forEach(function(m){return n[m]=d[m]})},i=0,a=e;i<a.length;i++){var u=a[i];r(u)}return n});var aa=function(){return aa=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},aa.apply(this,arguments)},qS=function(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var r=Array(n),i=0,e=0;e<t;e++)for(var a=arguments[e],u=0,d=a.length;u<d;u++,i++)r[i]=a[u];return r},tF=300;function nF(n,e){var t={config:aa(aa({},Uc),ho.defaultConfig),l10n:Vy};t.parseDate=$y({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=U,t._setHoursFromDate=L,t._positionCalendar=He,t.changeMonth=rr,t.changeYear=fn,t.clear=ur,t.close=yt,t.onMouseOver=Ue,t._createElement=Fr,t.createDay=te,t.destroy=Yn,t.isEnabled=qn,t.jumpToDate=le,t.updateValue=Zr,t.open=$e,t.redraw=Qt,t.set=An,t.setDate=Xn,t.toggle=Br;function r(){t.utils={getDaysInMonth:function(A,R){return A===void 0&&(A=t.currentMonth),R===void 0&&(R=t.currentYear),A===1&&(R%4===0&&R%100!==0||R%400===0)?29:t.l10n.daysInMonth[A]}}}function i(){t.element=t.input=n,t.isOpen=!1,Ie(),Xe(),Jr(),ji(),r(),t.isMobile||b(),ae(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&L(t.config.noCalendar?t.latestSelectedDateObj:void 0),Zr(!1)),d();var A=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&A&&He(),Ht("onReady")}function a(){var A;return((A=t.calendarContainer)===null||A===void 0?void 0:A.getRootNode()).activeElement||document.activeElement}function u(A){return A.bind(t)}function d(){var A=t.config;A.weekNumbers===!1&&A.showMonths===1||A.noCalendar!==!0&&window.requestAnimationFrame(function(){if(t.calendarContainer!==void 0&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),t.daysContainer!==void 0){var R=(t.days.offsetWidth+1)*A.showMonths;t.daysContainer.style.width=R+"px",t.calendarContainer.style.width=R+(t.weekWrapper!==void 0?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}})}function m(A){if(t.selectedDates.length===0){var R=t.config.minDate===void 0||is(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),G=Ky(t.config);R.setHours(G.hours,G.minutes,G.seconds,R.getMilliseconds()),t.selectedDates=[R],t.latestSelectedDateObj=R}A!==void 0&&A.type!=="blur"&&xo(A);var ue=t._input.value;S(),Zr(),t._input.value!==ue&&t._debouncedChange()}function y(A,R){return A%12+12*ns(R===t.l10n.amPM[1])}function x(A){switch(A%24){case 0:case 12:return 12;default:return A%12}}function S(){if(!(t.hourElement===void 0||t.minuteElement===void 0)){var A=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,R=(parseInt(t.minuteElement.value,10)||0)%60,G=t.secondElement!==void 0?(parseInt(t.secondElement.value,10)||0)%60:0;t.amPM!==void 0&&(A=y(A,t.amPM.textContent));var ue=t.config.minTime!==void 0||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&is(t.latestSelectedDateObj,t.config.minDate,!0)===0,Re=t.config.maxTime!==void 0||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&is(t.latestSelectedDateObj,t.config.maxDate,!0)===0;if(t.config.maxTime!==void 0&&t.config.minTime!==void 0&&t.config.minTime>t.config.maxTime){var qe=Gy(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),rt=Gy(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),et=Gy(A,R,G);if(et>rt&&et<qe){var bt=BS(qe);A=bt[0],R=bt[1],G=bt[2]}}else{if(Re){var ft=t.config.maxTime!==void 0?t.config.maxTime:t.config.maxDate;A=Math.min(A,ft.getHours()),A===ft.getHours()&&(R=Math.min(R,ft.getMinutes())),R===ft.getMinutes()&&(G=Math.min(G,ft.getSeconds()))}if(ue){var kt=t.config.minTime!==void 0?t.config.minTime:t.config.minDate;A=Math.max(A,kt.getHours()),A===kt.getHours()&&R<kt.getMinutes()&&(R=kt.getMinutes()),R===kt.getMinutes()&&(G=Math.max(G,kt.getSeconds()))}}H(A,R,G)}}function L(A){var R=A||t.latestSelectedDateObj;R&&R instanceof Date&&H(R.getHours(),R.getMinutes(),R.getSeconds())}function H(A,R,G){t.latestSelectedDateObj!==void 0&&t.latestSelectedDateObj.setHours(A%24,R,G||0,0),!(!t.hourElement||!t.minuteElement||t.isMobile)&&(t.hourElement.value=ia(t.config.time_24hr?A:(12+A)%12+12*ns(A%12===0)),t.minuteElement.value=ia(R),t.amPM!==void 0&&(t.amPM.textContent=t.l10n.amPM[ns(A>=12)]),t.secondElement!==void 0&&(t.secondElement.value=ia(G)))}function V(A){var R=rs(A),G=parseInt(R.value)+(A.delta||0);(G/1e3>1||A.key==="Enter"&&!/[^\d]/.test(G.toString()))&&fn(G)}function U(A,R,G,ue){if(R instanceof Array)return R.forEach(function(Re){return U(A,Re,G,ue)});if(A instanceof Array)return A.forEach(function(Re){return U(Re,R,G,ue)});A.addEventListener(R,G,ue),t._handlers.push({remove:function(){return A.removeEventListener(R,G,ue)}})}function Z(){Ht("onChange")}function ae(){if(t.config.wrap&&["open","close","toggle","clear"].forEach(function(G){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+G+"]"),function(ue){return U(ue,"click",t[G])})}),t.isMobile){ci();return}var A=zw(Be,50);if(t._debouncedChange=zw(Z,tF),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&U(t.daysContainer,"mouseover",function(G){t.config.mode==="range"&&Ue(rs(G))}),U(t._input,"keydown",Te),t.calendarContainer!==void 0&&U(t.calendarContainer,"keydown",Te),!t.config.inline&&!t.config.static&&U(window,"resize",A),window.ontouchstart!==void 0?U(window.document,"touchstart",yr):U(window.document,"mousedown",yr),U(window.document,"focus",yr,{capture:!0}),t.config.clickOpens===!0&&(U(t._input,"focus",t.open),U(t._input,"click",t.open)),t.daysContainer!==void 0&&(U(t.monthNav,"click",Ki),U(t.monthNav,["keyup","increment"],V),U(t.daysContainer,"click",Ln)),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0){var R=function(G){return rs(G).select()};U(t.timeContainer,["increment"],m),U(t.timeContainer,"blur",m,{capture:!0}),U(t.timeContainer,"click",Ae),U([t.hourElement,t.minuteElement],["focus","click"],R),t.secondElement!==void 0&&U(t.secondElement,"focus",function(){return t.secondElement&&t.secondElement.select()}),t.amPM!==void 0&&U(t.amPM,"click",function(G){m(G)})}t.config.allowInput&&U(t._input,"blur",ge)}function le(A,R){var G=A!==void 0?t.parseDate(A):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),ue=t.currentYear,Re=t.currentMonth;try{G!==void 0&&(t.currentYear=G.getFullYear(),t.currentMonth=G.getMonth())}catch(qe){qe.message="Invalid date supplied: "+G,t.config.errorHandler(qe)}R&&t.currentYear!==ue&&(Ht("onYearChange"),Mt()),R&&(t.currentYear!==ue||t.currentMonth!==Re)&&Ht("onMonthChange"),t.redraw()}function Ae(A){var R=rs(A);~R.className.indexOf("arrow")&&ve(A,R.classList.contains("arrowUp")?1:-1)}function ve(A,R,G){var ue=A&&rs(A),Re=G||ue&&ue.parentNode&&ue.parentNode.firstChild,qe=Tn("increment");qe.delta=R,Re&&Re.dispatchEvent(qe)}function b(){var A=window.document.createDocumentFragment();if(t.calendarContainer=Fr("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(A.appendChild(At()),t.innerContainer=Fr("div","flatpickr-innerContainer"),t.config.weekNumbers){var R=Vn(),G=R.weekWrapper,ue=R.weekNumbers;t.innerContainer.appendChild(G),t.weekNumbers=ue,t.weekWrapper=G}t.rContainer=Fr("div","flatpickr-rContainer"),t.rContainer.appendChild(In()),t.daysContainer||(t.daysContainer=Fr("div","flatpickr-days"),t.daysContainer.tabIndex=-1),Dt(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),A.appendChild(t.innerContainer)}t.config.enableTime&&A.appendChild(tn()),oa(t.calendarContainer,"rangeMode",t.config.mode==="range"),oa(t.calendarContainer,"animate",t.config.animate===!0),oa(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(A);var Re=t.config.appendTo!==void 0&&t.config.appendTo.nodeType!==void 0;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!Re&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):t.config.appendTo!==void 0&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var qe=Fr("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(qe,t.element),qe.appendChild(t.element),t.altInput&&qe.appendChild(t.altInput),qe.appendChild(t.calendarContainer)}!t.config.static&&!t.config.inline&&(t.config.appendTo!==void 0?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}function te(A,R,G,ue){var Re=qn(R,!0),qe=Fr("span",A,R.getDate().toString());return qe.dateObj=R,qe.$i=ue,qe.setAttribute("aria-label",t.formatDate(R,t.config.ariaDateFormat)),A.indexOf("hidden")===-1&&is(R,t.now)===0&&(t.todayDateElem=qe,qe.classList.add("today"),qe.setAttribute("aria-current","date")),Re?(qe.tabIndex=-1,to(R)&&(qe.classList.add("selected"),t.selectedDateElem=qe,t.config.mode==="range"&&(oa(qe,"startRange",t.selectedDates[0]&&is(R,t.selectedDates[0],!0)===0),oa(qe,"endRange",t.selectedDates[1]&&is(R,t.selectedDates[1],!0)===0),A==="nextMonthDay"&&qe.classList.add("inRange")))):qe.classList.add("flatpickr-disabled"),t.config.mode==="range"&&po(R)&&!to(R)&&qe.classList.add("inRange"),t.weekNumbers&&t.config.showMonths===1&&A!=="prevMonthDay"&&ue%7===6&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(R)+"</span>"),Ht("onDayCreate",qe),qe}function ye(A){A.focus(),t.config.mode==="range"&&Ue(A)}function Oe(A){for(var R=A>0?0:t.config.showMonths-1,G=A>0?t.config.showMonths:-1,ue=R;ue!=G;ue+=A)for(var Re=t.daysContainer.children[ue],qe=A>0?0:Re.children.length-1,rt=A>0?Re.children.length:-1,et=qe;et!=rt;et+=A){var bt=Re.children[et];if(bt.className.indexOf("hidden")===-1&&qn(bt.dateObj))return bt}}function De(A,R){for(var G=A.className.indexOf("Month")===-1?A.dateObj.getMonth():t.currentMonth,ue=R>0?t.config.showMonths:-1,Re=R>0?1:-1,qe=G-t.currentMonth;qe!=ue;qe+=Re)for(var rt=t.daysContainer.children[qe],et=G-t.currentMonth===qe?A.$i+R:R<0?rt.children.length-1:0,bt=rt.children.length,ft=et;ft>=0&&ft<bt&&ft!=(R>0?bt:-1);ft+=Re){var kt=rt.children[ft];if(kt.className.indexOf("hidden")===-1&&qn(kt.dateObj)&&Math.abs(A.$i-ft)>=Math.abs(R))return ye(kt)}t.changeMonth(Re),lt(Oe(Re),0)}function lt(A,R){var G=a(),ue=re(G||document.body),Re=A!==void 0?A:ue?G:t.selectedDateElem!==void 0&&re(t.selectedDateElem)?t.selectedDateElem:t.todayDateElem!==void 0&&re(t.todayDateElem)?t.todayDateElem:Oe(R>0?1:-1);Re===void 0?t._input.focus():ue?De(Re,R):ye(Re)}function ct(A,R){for(var G=(new Date(A,R,1).getDay()-t.l10n.firstDayOfWeek+7)%7,ue=t.utils.getDaysInMonth((R-1+12)%12,A),Re=t.utils.getDaysInMonth(R,A),qe=window.document.createDocumentFragment(),rt=t.config.showMonths>1,et=rt?"prevMonthDay hidden":"prevMonthDay",bt=rt?"nextMonthDay hidden":"nextMonthDay",ft=ue+1-G,kt=0;ft<=ue;ft++,kt++)qe.appendChild(te("flatpickr-day "+et,new Date(A,R-1,ft),ft,kt));for(ft=1;ft<=Re;ft++,kt++)qe.appendChild(te("flatpickr-day",new Date(A,R,ft),ft,kt));for(var Nt=Re+1;Nt<=42-G&&(t.config.showMonths===1||kt%7!==0);Nt++,kt++)qe.appendChild(te("flatpickr-day "+bt,new Date(A,R+1,Nt%Re),Nt,kt));var an=Fr("div","dayContainer");return an.appendChild(qe),an}function Dt(){if(t.daysContainer!==void 0){Nm(t.daysContainer),t.weekNumbers&&Nm(t.weekNumbers);for(var A=document.createDocumentFragment(),R=0;R<t.config.showMonths;R++){var G=new Date(t.currentYear,t.currentMonth,1);G.setMonth(t.currentMonth+R),A.appendChild(ct(G.getFullYear(),G.getMonth()))}t.daysContainer.appendChild(A),t.days=t.daysContainer.firstChild,t.config.mode==="range"&&t.selectedDates.length===1&&Ue()}}function Mt(){if(!(t.config.showMonths>1||t.config.monthSelectorType!=="dropdown")){var A=function(ue){return t.config.minDate!==void 0&&t.currentYear===t.config.minDate.getFullYear()&&ue<t.config.minDate.getMonth()?!1:!(t.config.maxDate!==void 0&&t.currentYear===t.config.maxDate.getFullYear()&&ue>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var R=0;R<12;R++)if(A(R)){var G=Fr("option","flatpickr-monthDropdown-month");G.value=new Date(t.currentYear,R).getMonth().toString(),G.textContent=Lm(R,t.config.shorthandCurrentMonth,t.l10n),G.tabIndex=-1,t.currentMonth===R&&(G.selected=!0),t.monthsDropdownContainer.appendChild(G)}}}function en(){var A=Fr("div","flatpickr-month"),R=window.document.createDocumentFragment(),G;t.config.showMonths>1||t.config.monthSelectorType==="static"?G=Fr("span","cur-month"):(t.monthsDropdownContainer=Fr("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),U(t.monthsDropdownContainer,"change",function(rt){var et=rs(rt),bt=parseInt(et.value,10);t.changeMonth(bt-t.currentMonth),Ht("onMonthChange")}),Mt(),G=t.monthsDropdownContainer);var ue=Pm("cur-year",{tabindex:"-1"}),Re=ue.getElementsByTagName("input")[0];Re.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&Re.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(Re.setAttribute("max",t.config.maxDate.getFullYear().toString()),Re.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var qe=Fr("div","flatpickr-current-month");return qe.appendChild(G),qe.appendChild(ue),R.appendChild(qe),A.appendChild(R),{container:A,yearElement:Re,monthElement:G}}function Yt(){Nm(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var A=t.config.showMonths;A--;){var R=en();t.yearElements.push(R.yearElement),t.monthElements.push(R.monthElement),t.monthNav.appendChild(R.container)}t.monthNav.appendChild(t.nextMonthNav)}function At(){return t.monthNav=Fr("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=Fr("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=Fr("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,Yt(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(A){t.__hidePrevMonthArrow!==A&&(oa(t.prevMonthNav,"flatpickr-disabled",A),t.__hidePrevMonthArrow=A)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(A){t.__hideNextMonthArrow!==A&&(oa(t.nextMonthNav,"flatpickr-disabled",A),t.__hideNextMonthArrow=A)}}),t.currentYearElement=t.yearElements[0],mo(),t.monthNav}function tn(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var A=Ky(t.config);t.timeContainer=Fr("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var R=Fr("span","flatpickr-time-separator",":"),G=Pm("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=G.getElementsByTagName("input")[0];var ue=Pm("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=ue.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=ia(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?A.hours:x(A.hours)),t.minuteElement.value=ia(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():A.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(G),t.timeContainer.appendChild(R),t.timeContainer.appendChild(ue),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var Re=Pm("flatpickr-second");t.secondElement=Re.getElementsByTagName("input")[0],t.secondElement.value=ia(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():A.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(Fr("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(Re)}return t.config.time_24hr||(t.amPM=Fr("span","flatpickr-am-pm",t.l10n.amPM[ns((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}function In(){t.weekdayContainer?Nm(t.weekdayContainer):t.weekdayContainer=Fr("div","flatpickr-weekdays");for(var A=t.config.showMonths;A--;){var R=Fr("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(R)}return Cn(),t.weekdayContainer}function Cn(){if(t.weekdayContainer){var A=t.l10n.firstDayOfWeek,R=qS(t.l10n.weekdays.shorthand);A>0&&A<R.length&&(R=qS(R.splice(A,R.length),R.splice(0,A)));for(var G=t.config.showMonths;G--;)t.weekdayContainer.children[G].innerHTML=`
      <span class='flatpickr-weekday'>
        `+R.join("</span><span class='flatpickr-weekday'>")+`
      </span>
      `}}function Vn(){t.calendarContainer.classList.add("hasWeeks");var A=Fr("div","flatpickr-weekwrapper");A.appendChild(Fr("span","flatpickr-weekday",t.l10n.weekAbbreviation));var R=Fr("div","flatpickr-weeks");return A.appendChild(R),{weekWrapper:A,weekNumbers:R}}function rr(A,R){R===void 0&&(R=!0);var G=R?A:A-t.currentMonth;G<0&&t._hidePrevMonthArrow===!0||G>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=G,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,Ht("onYearChange"),Mt()),Dt(),Ht("onMonthChange"),mo())}function ur(A,R){if(A===void 0&&(A=!0),R===void 0&&(R=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,R===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var G=Ky(t.config),ue=G.hours,Re=G.minutes,qe=G.seconds;H(ue,Re,qe)}t.redraw(),A&&Ht("onChange")}function yt(){t.isOpen=!1,t.isMobile||(t.calendarContainer!==void 0&&t.calendarContainer.classList.remove("open"),t._input!==void 0&&t._input.classList.remove("active")),Ht("onClose")}function Yn(){t.config!==void 0&&Ht("onDestroy");for(var A=t._handlers.length;A--;)t._handlers[A].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var R=t.calendarContainer.parentNode;if(R.lastChild&&R.removeChild(R.lastChild),R.parentNode){for(;R.firstChild;)R.parentNode.insertBefore(R.firstChild,R);R.parentNode.removeChild(R)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(G){try{delete t[G]}catch{}})}function Vr(A){return t.calendarContainer.contains(A)}function yr(A){if(t.isOpen&&!t.config.inline){var R=rs(A),G=Vr(R),ue=R===t.input||R===t.altInput||t.element.contains(R)||A.path&&A.path.indexOf&&(~A.path.indexOf(t.input)||~A.path.indexOf(t.altInput)),Re=!ue&&!G&&!Vr(A.relatedTarget),qe=!t.config.ignoredFocusElements.some(function(rt){return rt.contains(R)});Re&&qe&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0&&t.input.value!==""&&t.input.value!==void 0&&m(),t.close(),t.config&&t.config.mode==="range"&&t.selectedDates.length===1&&t.clear(!1))}}function fn(A){if(!(!A||t.config.minDate&&A<t.config.minDate.getFullYear()||t.config.maxDate&&A>t.config.maxDate.getFullYear())){var R=A,G=t.currentYear!==R;t.currentYear=R||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),G&&(t.redraw(),Ht("onYearChange"),Mt())}}function qn(A,R){var G;R===void 0&&(R=!0);var ue=t.parseDate(A,void 0,R);if(t.config.minDate&&ue&&is(ue,t.config.minDate,R!==void 0?R:!t.minDateHasTime)<0||t.config.maxDate&&ue&&is(ue,t.config.maxDate,R!==void 0?R:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)return!0;if(ue===void 0)return!1;for(var Re=!!t.config.enable,qe=(G=t.config.enable)!==null&&G!==void 0?G:t.config.disable,rt=0,et=void 0;rt<qe.length;rt++){if(et=qe[rt],typeof et=="function"&&et(ue))return Re;if(et instanceof Date&&ue!==void 0&&et.getTime()===ue.getTime())return Re;if(typeof et=="string"){var bt=t.parseDate(et,void 0,!0);return bt&&bt.getTime()===ue.getTime()?Re:!Re}else if(typeof et=="object"&&ue!==void 0&&et.from&&et.to&&ue.getTime()>=et.from.getTime()&&ue.getTime()<=et.to.getTime())return Re}return!Re}function re(A){return t.daysContainer!==void 0?A.className.indexOf("hidden")===-1&&A.className.indexOf("flatpickr-disabled")===-1&&t.daysContainer.contains(A):!1}function ge(A){var R=A.target===t._input,G=t._input.value.trimEnd()!==vi();R&&G&&!(A.relatedTarget&&Vr(A.relatedTarget))&&t.setDate(t._input.value,!0,A.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function Te(A){var R=rs(A),G=t.config.wrap?n.contains(R):R===t._input,ue=t.config.allowInput,Re=t.isOpen&&(!ue||!G),qe=t.config.inline&&G&&!ue;if(A.keyCode===13&&G){if(ue)return t.setDate(t._input.value,!0,R===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),R.blur();t.open()}else if(Vr(R)||Re||qe){var rt=!!t.timeContainer&&t.timeContainer.contains(R);switch(A.keyCode){case 13:rt?(A.preventDefault(),m(),un()):Ln(A);break;case 27:A.preventDefault(),un();break;case 8:case 46:G&&!t.config.allowInput&&(A.preventDefault(),t.clear());break;case 37:case 39:if(!rt&&!G){A.preventDefault();var et=a();if(t.daysContainer!==void 0&&(ue===!1||et&&re(et))){var bt=A.keyCode===39?1:-1;A.ctrlKey?(A.stopPropagation(),rr(bt),lt(Oe(1),0)):lt(void 0,bt)}}else t.hourElement&&t.hourElement.focus();break;case 38:case 40:A.preventDefault();var ft=A.keyCode===40?1:-1;t.daysContainer&&R.$i!==void 0||R===t.input||R===t.altInput?A.ctrlKey?(A.stopPropagation(),fn(t.currentYear-ft),lt(Oe(1),0)):rt||lt(void 0,ft*7):R===t.currentYearElement?fn(t.currentYear-ft):t.config.enableTime&&(!rt&&t.hourElement&&t.hourElement.focus(),m(A),t._debouncedChange());break;case 9:if(rt){var kt=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter(function($t){return $t}),Nt=kt.indexOf(R);if(Nt!==-1){var an=kt[Nt+(A.shiftKey?-1:1)];A.preventDefault(),(an||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(R)&&A.shiftKey&&(A.preventDefault(),t._input.focus());break;default:break}}if(t.amPM!==void 0&&R===t.amPM)switch(A.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],S(),Zr();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],S(),Zr();break}(G||Vr(R))&&Ht("onKeyDown",A)}function Ue(A,R){if(R===void 0&&(R="flatpickr-day"),!(t.selectedDates.length!==1||A&&(!A.classList.contains(R)||A.classList.contains("flatpickr-disabled")))){for(var G=A?A.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),ue=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),Re=Math.min(G,t.selectedDates[0].getTime()),qe=Math.max(G,t.selectedDates[0].getTime()),rt=!1,et=0,bt=0,ft=Re;ft<qe;ft+=HS.DAY)qn(new Date(ft),!0)||(rt=rt||ft>Re&&ft<qe,ft<ue&&(!et||ft>et)?et=ft:ft>ue&&(!bt||ft<bt)&&(bt=ft));var kt=Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+R));kt.forEach(function(Nt){var an=Nt.dateObj,$t=an.getTime(),rn=et>0&&$t<et||bt>0&&$t>bt;if(rn){Nt.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function($n){Nt.classList.remove($n)});return}else if(rt&&!rn)return;["startRange","inRange","endRange","notAllowed"].forEach(function($n){Nt.classList.remove($n)}),A!==void 0&&(A.classList.add(G<=t.selectedDates[0].getTime()?"startRange":"endRange"),ue<G&&$t===ue?Nt.classList.add("startRange"):ue>G&&$t===ue&&Nt.classList.add("endRange"),$t>=et&&(bt===0||$t<=bt)&&FS($t,ue,G)&&Nt.classList.add("inRange"))})}}function Be(){t.isOpen&&!t.config.static&&!t.config.inline&&He()}function $e(A,R){if(R===void 0&&(R=t._positionElement),t.isMobile===!0){if(A){A.preventDefault();var G=rs(A);G&&G.blur()}t.mobileInput!==void 0&&(t.mobileInput.focus(),t.mobileInput.click()),Ht("onOpen");return}else if(t._input.disabled||t.config.inline)return;var ue=t.isOpen;t.isOpen=!0,ue||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),Ht("onOpen"),He(R)),t.config.enableTime===!0&&t.config.noCalendar===!0&&t.config.allowInput===!1&&(A===void 0||!t.timeContainer.contains(A.relatedTarget))&&setTimeout(function(){return t.hourElement.select()},50)}function Ne(A){return function(R){var G=t.config["_"+A+"Date"]=t.parseDate(R,t.config.dateFormat),ue=t.config["_"+(A==="min"?"max":"min")+"Date"];G!==void 0&&(t[A==="min"?"minDateHasTime":"maxDateHasTime"]=G.getHours()>0||G.getMinutes()>0||G.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter(function(Re){return qn(Re)}),!t.selectedDates.length&&A==="min"&&L(G),Zr()),t.daysContainer&&(Qt(),G!==void 0?t.currentYearElement[A]=G.getFullYear().toString():t.currentYearElement.removeAttribute(A),t.currentYearElement.disabled=!!ue&&G!==void 0&&ue.getFullYear()===G.getFullYear())}}function Ie(){var A=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],R=aa(aa({},JSON.parse(JSON.stringify(n.dataset||{}))),e),G={};t.config.parseDate=R.parseDate,t.config.formatDate=R.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(kt){t.config._enable=Sr(kt)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(kt){t.config._disable=Sr(kt)}});var ue=R.mode==="time";if(!R.dateFormat&&(R.enableTime||ue)){var Re=ho.defaultConfig.dateFormat||Uc.dateFormat;G.dateFormat=R.noCalendar||ue?"H:i"+(R.enableSeconds?":S":""):Re+" H:i"+(R.enableSeconds?":S":"")}if(R.altInput&&(R.enableTime||ue)&&!R.altFormat){var qe=ho.defaultConfig.altFormat||Uc.altFormat;G.altFormat=R.noCalendar||ue?"h:i"+(R.enableSeconds?":S K":" K"):qe+(" h:i"+(R.enableSeconds?":S":"")+" K")}Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:Ne("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:Ne("max")});var rt=function(kt){return function(Nt){t.config[kt==="min"?"_minTime":"_maxTime"]=t.parseDate(Nt,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:rt("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:rt("max")}),R.mode==="time"&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,G,R);for(var et=0;et<A.length;et++)t.config[A[et]]=t.config[A[et]]===!0||t.config[A[et]]==="true";jy.filter(function(kt){return t.config[kt]!==void 0}).forEach(function(kt){t.config[kt]=Yy(t.config[kt]||[]).map(u)}),t.isMobile=!t.config.disableMobile&&!t.config.inline&&t.config.mode==="single"&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var et=0;et<t.config.plugins.length;et++){var bt=t.config.plugins[et](t)||{};for(var ft in bt)jy.indexOf(ft)>-1?t.config[ft]=Yy(bt[ft]).map(u).concat(t.config[ft]):typeof R[ft]>"u"&&(t.config[ft]=bt[ft])}R.altInputClass||(t.config.altInputClass=je().className+" "+t.config.altInputClass),Ht("onParseConfig")}function je(){return t.config.wrap?n.querySelector("[data-input]"):n}function Xe(){typeof t.config.locale!="object"&&typeof ho.l10ns[t.config.locale]>"u"&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=aa(aa({},ho.l10ns.default),typeof t.config.locale=="object"?t.config.locale:t.config.locale!=="default"?ho.l10ns[t.config.locale]:void 0),Qu.D="("+t.l10n.weekdays.shorthand.join("|")+")",Qu.l="("+t.l10n.weekdays.longhand.join("|")+")",Qu.M="("+t.l10n.months.shorthand.join("|")+")",Qu.F="("+t.l10n.months.longhand.join("|")+")",Qu.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")";var A=aa(aa({},e),JSON.parse(JSON.stringify(n.dataset||{})));A.time_24hr===void 0&&ho.defaultConfig.time_24hr===void 0&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=Uw(t),t.parseDate=$y({config:t.config,l10n:t.l10n})}function He(A){if(typeof t.config.position=="function")return void t.config.position(t,A);if(t.calendarContainer!==void 0){Ht("onPreCalendarPosition");var R=A||t._positionElement,G=Array.prototype.reduce.call(t.calendarContainer.children,function(el,la){return el+la.offsetHeight},0),ue=t.calendarContainer.offsetWidth,Re=t.config.position.split(" "),qe=Re[0],rt=Re.length>1?Re[1]:null,et=R.getBoundingClientRect(),bt=window.innerHeight-et.bottom,ft=qe==="above"||qe!=="below"&&bt<G&&et.top>G,kt=window.pageYOffset+et.top+(ft?-G-2:R.offsetHeight+2);if(oa(t.calendarContainer,"arrowTop",!ft),oa(t.calendarContainer,"arrowBottom",ft),!t.config.inline){var Nt=window.pageXOffset+et.left,an=!1,$t=!1;rt==="center"?(Nt-=(ue-et.width)/2,an=!0):rt==="right"&&(Nt-=ue-et.width,$t=!0),oa(t.calendarContainer,"arrowLeft",!an&&!$t),oa(t.calendarContainer,"arrowCenter",an),oa(t.calendarContainer,"arrowRight",$t);var rn=window.document.body.offsetWidth-(window.pageXOffset+et.right),$n=Nt+ue>window.document.body.offsetWidth,ei=rn+ue>window.document.body.offsetWidth;if(oa(t.calendarContainer,"rightMost",$n),!t.config.static)if(t.calendarContainer.style.top=kt+"px",!$n)t.calendarContainer.style.left=Nt+"px",t.calendarContainer.style.right="auto";else if(!ei)t.calendarContainer.style.left="auto",t.calendarContainer.style.right=rn+"px";else{var ir=st();if(ir===void 0)return;var Dr=window.document.body.offsetWidth,ti=Math.max(0,Dr/2-ue/2),go=".flatpickr-calendar.centerMost:before",sa=".flatpickr-calendar.centerMost:after",Qn=ir.cssRules.length,no="{left:"+et.left+"px;right:auto;}";oa(t.calendarContainer,"rightMost",!1),oa(t.calendarContainer,"centerMost",!0),ir.insertRule(go+","+sa+no,Qn),t.calendarContainer.style.left=ti+"px",t.calendarContainer.style.right="auto"}}}}function st(){for(var A=null,R=0;R<document.styleSheets.length;R++){var G=document.styleSheets[R];if(G.cssRules){try{G.cssRules}catch{continue}A=G;break}}return A??Xt()}function Xt(){var A=document.createElement("style");return document.head.appendChild(A),A.sheet}function Qt(){t.config.noCalendar||t.isMobile||(Mt(),mo(),Dt())}function un(){t._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(t.close,0):t.close()}function Ln(A){A.preventDefault(),A.stopPropagation();var R=function(kt){return kt.classList&&kt.classList.contains("flatpickr-day")&&!kt.classList.contains("flatpickr-disabled")&&!kt.classList.contains("notAllowed")},G=Ww(rs(A),R);if(G!==void 0){var ue=G,Re=t.latestSelectedDateObj=new Date(ue.dateObj.getTime()),qe=(Re.getMonth()<t.currentMonth||Re.getMonth()>t.currentMonth+t.config.showMonths-1)&&t.config.mode!=="range";if(t.selectedDateElem=ue,t.config.mode==="single")t.selectedDates=[Re];else if(t.config.mode==="multiple"){var rt=to(Re);rt?t.selectedDates.splice(parseInt(rt),1):t.selectedDates.push(Re)}else t.config.mode==="range"&&(t.selectedDates.length===2&&t.clear(!1,!1),t.latestSelectedDateObj=Re,t.selectedDates.push(Re),is(Re,t.selectedDates[0],!0)!==0&&t.selectedDates.sort(function(kt,Nt){return kt.getTime()-Nt.getTime()}));if(S(),qe){var et=t.currentYear!==Re.getFullYear();t.currentYear=Re.getFullYear(),t.currentMonth=Re.getMonth(),et&&(Ht("onYearChange"),Mt()),Ht("onMonthChange")}if(mo(),Dt(),Zr(),!qe&&t.config.mode!=="range"&&t.config.showMonths===1?ye(ue):t.selectedDateElem!==void 0&&t.hourElement===void 0&&t.selectedDateElem&&t.selectedDateElem.focus(),t.hourElement!==void 0&&t.hourElement!==void 0&&t.hourElement.focus(),t.config.closeOnSelect){var bt=t.config.mode==="single"&&!t.config.enableTime,ft=t.config.mode==="range"&&t.selectedDates.length===2&&!t.config.enableTime;(bt||ft)&&un()}Z()}}var xn={locale:[Xe,Cn],showMonths:[Yt,d,In],minDate:[le],maxDate:[le],positionElement:[Tr],clickOpens:[function(){t.config.clickOpens===!0?(U(t._input,"focus",t.open),U(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function An(A,R){if(A!==null&&typeof A=="object"){Object.assign(t.config,A);for(var G in A)xn[G]!==void 0&&xn[G].forEach(function(ue){return ue()})}else t.config[A]=R,xn[A]!==void 0?xn[A].forEach(function(ue){return ue()}):jy.indexOf(A)>-1&&(t.config[A]=Yy(R));t.redraw(),Zr(!0)}function bn(A,R){var G=[];if(A instanceof Array)G=A.map(function(ue){return t.parseDate(ue,R)});else if(A instanceof Date||typeof A=="number")G=[t.parseDate(A,R)];else if(typeof A=="string")switch(t.config.mode){case"single":case"time":G=[t.parseDate(A,R)];break;case"multiple":G=A.split(t.config.conjunction).map(function(ue){return t.parseDate(ue,R)});break;case"range":G=A.split(t.l10n.rangeSeparator).map(function(ue){return t.parseDate(ue,R)});break;default:break}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(A)));t.selectedDates=t.config.allowInvalidPreload?G:G.filter(function(ue){return ue instanceof Date&&qn(ue,!1)}),t.config.mode==="range"&&t.selectedDates.sort(function(ue,Re){return ue.getTime()-Re.getTime()})}function Xn(A,R,G){if(R===void 0&&(R=!1),G===void 0&&(G=t.config.dateFormat),A!==0&&!A||A instanceof Array&&A.length===0)return t.clear(R);bn(A,G),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),le(void 0,R),L(),t.selectedDates.length===0&&t.clear(!1),Zr(R),R&&Ht("onChange")}function Sr(A){return A.slice().map(function(R){return typeof R=="string"||typeof R=="number"||R instanceof Date?t.parseDate(R,void 0,!0):R&&typeof R=="object"&&R.from&&R.to?{from:t.parseDate(R.from,void 0),to:t.parseDate(R.to,void 0)}:R}).filter(function(R){return R})}function ji(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var A=t.config.defaultDate||((t.input.nodeName==="INPUT"||t.input.nodeName==="TEXTAREA")&&t.input.placeholder&&t.input.value===t.input.placeholder?null:t.input.value);A&&bn(A,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),t.config.minTime!==void 0&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),t.config.maxTime!==void 0&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}function Jr(){if(t.input=je(),!t.input){t.config.errorHandler(new Error("Invalid input element specified"));return}t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=Fr(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),Tr()}function Tr(){t._positionElement=t.config.positionElement||t._input}function ci(){var A=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=Fr("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=A,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr=A==="datetime-local"?"Y-m-d\\TH:i:S":A==="date"?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",t.altInput!==void 0&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch{}U(t.mobileInput,"change",function(R){t.setDate(rs(R).value,!1,t.mobileFormatStr),Ht("onChange"),Ht("onClose")})}function Br(A){if(t.isOpen===!0)return t.close();t.open(A)}function Ht(A,R){if(t.config!==void 0){var G=t.config[A];if(G!==void 0&&G.length>0)for(var ue=0;G[ue]&&ue<G.length;ue++)G[ue](t.selectedDates,t.input.value,t,R);A==="onChange"&&(t.input.dispatchEvent(Tn("change")),t.input.dispatchEvent(Tn("input")))}}function Tn(A){var R=document.createEvent("Event");return R.initEvent(A,!0,!0),R}function to(A){for(var R=0;R<t.selectedDates.length;R++){var G=t.selectedDates[R];if(G instanceof Date&&is(G,A)===0)return""+R}return!1}function po(A){return t.config.mode!=="range"||t.selectedDates.length<2?!1:is(A,t.selectedDates[0])>=0&&is(A,t.selectedDates[1])<=0}function mo(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach(function(A,R){var G=new Date(t.currentYear,t.currentMonth,1);G.setMonth(t.currentMonth+R),t.config.showMonths>1||t.config.monthSelectorType==="static"?t.monthElements[R].textContent=Lm(G.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=G.getMonth().toString(),A.value=G.getFullYear().toString()}),t._hidePrevMonthArrow=t.config.minDate!==void 0&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=t.config.maxDate!==void 0&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function vi(A){var R=A||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map(function(G){return t.formatDate(G,R)}).filter(function(G,ue,Re){return t.config.mode!=="range"||t.config.enableTime||Re.indexOf(G)===ue}).join(t.config.mode!=="range"?t.config.conjunction:t.l10n.rangeSeparator)}function Zr(A){A===void 0&&(A=!0),t.mobileInput!==void 0&&t.mobileFormatStr&&(t.mobileInput.value=t.latestSelectedDateObj!==void 0?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=vi(t.config.dateFormat),t.altInput!==void 0&&(t.altInput.value=vi(t.config.altFormat)),A!==!1&&Ht("onValueUpdate")}function Ki(A){var R=rs(A),G=t.prevMonthNav.contains(R),ue=t.nextMonthNav.contains(R);G||ue?rr(G?-1:1):t.yearElements.indexOf(R)>=0?R.select():R.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):R.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}function xo(A){A.preventDefault();var R=A.type==="keydown",G=rs(A),ue=G;t.amPM!==void 0&&G===t.amPM&&(t.amPM.textContent=t.l10n.amPM[ns(t.amPM.textContent===t.l10n.amPM[0])]);var Re=parseFloat(ue.getAttribute("min")),qe=parseFloat(ue.getAttribute("max")),rt=parseFloat(ue.getAttribute("step")),et=parseInt(ue.value,10),bt=A.delta||(R?A.which===38?1:-1:0),ft=et+rt*bt;if(typeof ue.value<"u"&&ue.value.length===2){var kt=ue===t.hourElement,Nt=ue===t.minuteElement;ft<Re?(ft=qe+ft+ns(!kt)+(ns(kt)&&ns(!t.amPM)),Nt&&ve(void 0,-1,t.hourElement)):ft>qe&&(ft=ue===t.hourElement?ft-qe-ns(!t.amPM):Re,Nt&&ve(void 0,1,t.hourElement)),t.amPM&&kt&&(rt===1?ft+et===23:Math.abs(ft-et)>rt)&&(t.amPM.textContent=t.l10n.amPM[ns(t.amPM.textContent===t.l10n.amPM[0])]),ue.value=ia(ft)}}return i(),t}function bh(n,e){for(var t=Array.prototype.slice.call(n).filter(function(u){return u instanceof HTMLElement}),r=[],i=0;i<t.length;i++){var a=t[i];try{if(a.getAttribute("data-fp-omit")!==null)continue;a._flatpickr!==void 0&&(a._flatpickr.destroy(),a._flatpickr=void 0),a._flatpickr=nF(a,e||{}),r.push(a._flatpickr)}catch(u){console.error(u)}}return r.length===1?r[0]:r}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return bh(this,n)},HTMLElement.prototype.flatpickr=function(n){return bh([this],n)});var ho=function(n,e){return typeof n=="string"?bh(window.document.querySelectorAll(n),e):n instanceof Node?bh([n],e):bh(n,e)};ho.defaultConfig={};ho.l10ns={en:aa({},Vy),default:aa({},Vy)};ho.localize=function(n){ho.l10ns.default=aa(aa({},ho.l10ns.default),n)};ho.setDefaults=function(n){ho.defaultConfig=aa(aa({},ho.defaultConfig),n)};ho.parseDate=$y({});ho.formatDate=Uw({});ho.compareDates=is;typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return bh(this,n)});Date.prototype.fp_incr=function(n){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof n=="string"?parseInt(n,10):n))};typeof window<"u"&&(window.flatpickr=ho);var zS=ho;function rF(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function WS(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function iF(n,e,t){return e&&WS(n.prototype,e),t&&WS(n,t),n}function $S(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function jS(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function oF(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?jS(Object(t),!0).forEach(function(r){$S(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):jS(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function aF(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&Vw(n,e)}function Xy(n){return Xy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Xy(n)}function Vw(n,e){return Vw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Vw(n,e)}function sF(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function lF(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function uF(n,e){return e&&(typeof e=="object"||typeof e=="function")?e:lF(n)}function cF(n){return function(){var e=Xy(n),t;if(sF()){var r=Xy(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return uF(this,t)}}function fF(n){return n.replace(/(?:[_-])([a-z0-9])/g,(e,t)=>t.toUpperCase())}function Yw(n){return n.charAt(0).toUpperCase()+n.slice(1)}function dF(n){return n.replace(/([A-Z])/g,(e,t)=>`-${t.toLowerCase()}`)}function GS(n,e){let t=KS(n);return Array.from(t.reduce((r,i)=>(pF(i,e).forEach(a=>r.add(a)),r),new Set))}function hF(n,e){return KS(n).reduce((r,i)=>(r.push(...mF(i,e)),r),[])}function KS(n){let e=[];for(;n;)e.push(n),n=Object.getPrototypeOf(n);return e.reverse()}function pF(n,e){let t=n[e];return Array.isArray(t)?t:[]}function mF(n,e){let t=n[e];return t?Object.keys(t).map(r=>[r,t[r]]):[]}var WU=(()=>{function n(t){function r(){return Reflect.construct(t,arguments,new.target)}return r.prototype=Object.create(t.prototype,{constructor:{value:r}}),Reflect.setPrototypeOf(r,t),r}function e(){let r=n(function(){this.a.call(this)});return r.prototype.a=function(){},new r}try{return e(),n}catch{return r=>class extends r{}}})();function gF(n){return GS(n,"classes").reduce((t,r)=>Object.assign(t,vF(r)),{})}function vF(n){return{[`${n}Class`]:{get(){let{classes:e}=this;if(e.has(n))return e.get(n);{let t=e.getAttributeName(n);throw new Error(`Missing attribute "${t}"`)}}},[`${n}Classes`]:{get(){return this.classes.getAll(n)}},[`has${Yw(n)}Class`]:{get(){return this.classes.has(n)}}}}function yF(n){return GS(n,"targets").reduce((t,r)=>Object.assign(t,bF(r)),{})}function bF(n){return{[`${n}Target`]:{get(){let e=this.targets.find(n);if(e)return e;throw new Error(`Missing target element "${n}" for "${this.identifier}" controller`)}},[`${n}Targets`]:{get(){return this.targets.findAll(n)}},[`has${Yw(n)}Target`]:{get(){return this.targets.has(n)}}}}function _F(n){let e=hF(n,"values"),t={valueDescriptorMap:{get(){return e.reduce((r,i)=>{let a=XS(i),u=this.data.getAttributeNameForKey(a.key);return Object.assign(r,{[u]:a})},{})}}};return e.reduce((r,i)=>Object.assign(r,wF(i)),t)}function wF(n){let e=XS(n),{key:t,name:r,reader:i,writer:a}=e;return{[r]:{get(){let u=this.data.get(t);return u!==null?i(u):e.defaultValue},set(u){u===void 0?this.data.delete(t):this.data.set(t,a(u))}},[`has${Yw(r)}`]:{get(){return this.data.has(t)||e.hasCustomDefaultValue}}}}function XS([n,e]){return SF(n,e)}function $w(n){switch(n){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function Gw(n){switch(typeof n){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}if(Array.isArray(n))return"array";if(Object.prototype.toString.call(n)==="[object Object]")return"object"}function xF(n){let e=$w(n.type);if(e){let t=Gw(n.default);if(e!==t)throw new Error(`Type "${e}" must match the type of the default value. Given default value: "${n.default}" as "${t}"`);return e}}function EF(n){let e=xF(n),t=Gw(n),r=$w(n),i=e||t||r;if(i)return i;throw new Error(`Unknown value type "${n}"`)}function CF(n){let e=$w(n);if(e)return TF[e];let t=n.default;return t!==void 0?t:n}function SF(n,e){let t=`${dF(n)}-value`,r=EF(e);return{type:r,key:t,name:fF(t),get defaultValue(){return CF(e)},get hasCustomDefaultValue(){return Gw(e)!==void 0},reader:MF[r],writer:US[r]||US.default}}var TF={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},MF={array(n){let e=JSON.parse(n);if(!Array.isArray(e))throw new TypeError("Expected array");return e},boolean(n){return!(n=="0"||n=="false")},number(n){return Number(n)},object(n){let e=JSON.parse(n);if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError("Expected object");return e},string(n){return n}},US={default:AF,array:VS,object:VS};function VS(n){return JSON.stringify(n)}function AF(n){return`${n}`}var _h=class{constructor(e){this.context=e}static get shouldLoad(){return!0}get application(){return this.context.application}get scope(){return this.context.scope}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}dispatch(e,{target:t=this.element,detail:r={},prefix:i=this.identifier,bubbles:a=!0,cancelable:u=!0}={}){let d=i?`${i}:${e}`:e,m=new CustomEvent(d,{detail:r,bubbles:a,cancelable:u});return t.dispatchEvent(m),m}};_h.blessings=[gF,yF,_F];_h.targets=[];_h.values={};var DF=n=>n.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),kF=n=>n.charAt(0).toUpperCase()+n.slice(1),OF=["allowInput","altInput","animate","clickOpens","closeOnSelect","disableMobile","enableSeconds","enableTime","inline","noCalendar","shorthandCurrentMonth","static","time_24hr","weekNumbers","wrap"],IF=["altInputClass","conjunction","mode","nextArrow","position","prevArrow","monthSelectorType"],NF=["defaultHour","defaultMinute","defaultSeconds","hourIncrement","minuteIncrement","showMonths"],PF=["disable","enable","disableDaysOfWeek","enableDaysOfWeek"],LF=["defaultDate"],RF=["maxDate","minDate","maxTime","minTime","now"],FF=["altFormat","ariaDateFormat","dateFormat"],YS={string:IF,boolean:OF,date:RF,array:PF,number:NF,arrayOrString:LF},BF=["change","open","close","monthChange","yearChange","ready","valueUpdate","dayCreate"],HF=["calendarContainer","currentYearElement","days","daysContainer","input","nextMonthNav","monthNav","prevMonthNav","rContainer","selectedDateElem","todayDateElem","weekdayContainer"],QS={"%Y":"Y","%y":"y","%C":"Y","%m":"m","%-m":"n","%_m":"n","%B":"F","%^B":"F","%b":"M","%^b":"M","%h":"M","%^h":"M","%d":"d","%-d":"j","%e":"j","%H":"H","%k":"H","%I":"h","%l":"h","%-l":"h","%P":"K","%p":"K","%M":"i","%S":"S","%A":"l","%a":"D","%w":"w"},qF=new RegExp(Object.keys(QS).join("|").replace(new RegExp("\\^","g"),"\\^"),"g"),zF=n=>n.replace(qF,e=>QS[e]),JS=function(n){aF(t,n);var e=cF(t);function t(){return rF(this,t),e.apply(this,arguments)}return iF(t,[{key:"initialize",value:function(){this.config={}}},{key:"connect",value:function(){this._initializeEvents(),this._initializeOptions(),this._initializeDateFormats(),this.fp=zS(this.flatpickrElement,oF({},this.config)),this._initializeElements()}},{key:"disconnect",value:function(){let i=this.inputTarget.value;this.fp.destroy(),this.inputTarget.value=i}},{key:"_initializeEvents",value:function(){BF.forEach(i=>{if(this[i]){let a=`on${kF(i)}`;this.config[a]=this[i].bind(this)}})}},{key:"_initializeOptions",value:function(){Object.keys(YS).forEach(i=>{YS[i].forEach(u=>{let d=DF(u);this.data.has(d)&&(this.config[u]=this[`_${i}`](d))})}),this._handleDaysOfWeek()}},{key:"_handleDaysOfWeek",value:function(){this.config.disableDaysOfWeek&&(this.config.disableDaysOfWeek=this._validateDaysOfWeek(this.config.disableDaysOfWeek),this.config.disable=[...this.config.disable||[],this._disable.bind(this)]),this.config.enableDaysOfWeek&&(this.config.enableDaysOfWeek=this._validateDaysOfWeek(this.config.enableDaysOfWeek),this.config.enable=[...this.config.enable||[],this._enable.bind(this)])}},{key:"_validateDaysOfWeek",value:function(i){return Array.isArray(i)?i.map(a=>parseInt(a)):(console.error("days of week must be a valid array"),[])}},{key:"_disable",value:function(i){return this.config.disableDaysOfWeek.includes(i.getDay())}},{key:"_enable",value:function(i){return this.config.enableDaysOfWeek.includes(i.getDay())}},{key:"_initializeDateFormats",value:function(){FF.forEach(i=>{this.data.has(i)&&(this.config[i]=zF(this.data.get(i)))})}},{key:"_initializeElements",value:function(){HF.forEach(i=>{this[`${i}Target`]=this.fp[i]})}},{key:"_string",value:function(i){return this.data.get(i)}},{key:"_date",value:function(i){return this.data.get(i)}},{key:"_boolean",value:function(i){return!(this.data.get(i)=="0"||this.data.get(i)=="false")}},{key:"_array",value:function(i){return JSON.parse(this.data.get(i))}},{key:"_number",value:function(i){return parseInt(this.data.get(i))}},{key:"_arrayOrString",value:function(i){let a=this.data.get(i);try{return JSON.parse(a)}catch{return a}}},{key:"flatpickrElement",get:function(){return this.hasInstanceTarget&&this.instanceTarget||this.element}}]),t}(_h);$S(JS,"targets",["instance"]);var ZS=JS;var tT=Fi(Kw()),Ju=qy.start();Ju.register("content-loader",Im);Ju.register("reveal",vh);Ju.register("remote",Wy);Ju.register("checkbox-select-all",Wf);Ju.register("flatpickr",ZS);Ju.debug=!1;window.Stimulus=Ju;window.Rails=tT.default;var Xw={};Us(Xw,{default:()=>Rm});var Rm=class extends Ar{connect(){if(document.querySelectorAll(`#${this.element.id}`).length>1){this.element.remove();return}}toggleActions(){console.log(this.hasActionsTarget),this.hasActionsTarget&&this.actionsTarget.classList.toggle("invisible")}};As(Rm,"targets",["actions"]),As(Rm,"values",{});var Jw={};Us(Jw,{default:()=>Qw});var wh=class extends Ar{connect(){this.hasButtonTarget&&(this.originalContent=this.buttonTarget.innerHTML)}copy(e){e.preventDefault();let t=this.sourceTarget.innerHTML||this.sourceTarget.value;navigator.clipboard.writeText(t).then(()=>this.copied())}copied(){this.hasButtonTarget&&(this.timeout&&clearTimeout(this.timeout),this.buttonTarget.innerText=this.data.get("successContent"),this.timeout=setTimeout(()=>{this.buttonTarget.innerHTML=this.originalContent},this.successDurationValue))}};wh.targets=["button","source"];wh.values={successDuration:{type:Number,default:2e3}};var Qw=class extends wh{connect(){super.connect(),this.originalText=this.buttonTarget.innerHTML}copied(){this.hasButtonTarget&&(this.timeout&&clearTimeout(this.timeout),this.buttonTarget.innerText=this.data.get("successContent"),this.timeout=setTimeout(()=>{this.buttonTarget.innerHTML=this.originalText},this.successDurationValue))}};var ex={};Us(ex,{default:()=>Zw});var WF="No puede estar en blanco",jF=n=>n.hasAttribute("required")?n.value.trim()===""?(n.setCustomValidity(WF),!1):(n.validity.customError&&n.setCustomValidity(""),!0):!0,Zw=class extends Ar{connect(){this.element.querySelectorAll("input[required]").forEach(n=>{n.addEventListener("input",this.validateInput)})}disconnect(){this.element.querySelectorAll("input[required]").forEach(n=>{n.removeEventListener("input",this.validateInput)})}validateInput(){jF(this)}resetForm(){this.element.reset()}submitForm(n){this.element.closest("form").requestSubmit()}};var nx={};Us(nx,{default:()=>tx});var tx=class extends Ar{connect(){console.log("Hello from hello_controller.js!!!!!!!!!!!!!!!!!!!!!")}};var ax={};Us(ax,{default:()=>ox});var Fm=class{constructor(e){this.response=e}get statusCode(){return this.response.status}get redirected(){return this.response.redirected}get ok(){return this.response.ok}get unauthenticated(){return this.statusCode===401}get unprocessableEntity(){return this.statusCode===422}get authenticationURL(){return this.response.headers.get("WWW-Authenticate")}get contentType(){return(this.response.headers.get("Content-Type")||"").replace(/;.*$/,"")}get headers(){return this.response.headers}get html(){return this.contentType.match(/^(application|text)\/(html|xhtml\+xml)$/)?this.text:Promise.reject(new Error(`Expected an HTML response but got "${this.contentType}" instead`))}get json(){return this.contentType.match(/^application\/.*json$/)?this.responseJson||(this.responseJson=this.response.json()):Promise.reject(new Error(`Expected a JSON response but got "${this.contentType}" instead`))}get text(){return this.responseText||(this.responseText=this.response.text())}get isTurboStream(){return this.contentType.match(/^text\/vnd\.turbo-stream\.html/)}async renderTurboStream(){if(this.isTurboStream)window.Turbo?await window.Turbo.renderStreamMessage(await this.text):console.warn("You must set `window.Turbo = Turbo` to automatically process Turbo Stream events with request.js");else return Promise.reject(new Error(`Expected a Turbo Stream response but got "${this.contentType}" instead`))}};var Bm=class{static register(e){this.interceptor=e}static get(){return this.interceptor}static reset(){this.interceptor=void 0}};function nT(n){let e=document.cookie?document.cookie.split("; "):[],t=`${encodeURIComponent(n)}=`,r=e.find(i=>i.startsWith(t));if(r){let i=r.split("=").slice(1).join("=");if(i)return decodeURIComponent(i)}}function rT(n){let e={};for(let t in n){let r=n[t];r!==void 0&&(e[t]=r)}return e}function rx(n){let e=document.head.querySelector(`meta[name="${n}"]`);return e&&e.content}function iT(n){return[...n].reduce((e,[t,r])=>e.concat(typeof r=="string"?[[t,r]]:[]),[])}function oT(n,e){for(let[t,r]of e)r instanceof window.File||(n.has(t)&&!t.includes("[]")?(n.delete(t),n.set(t,r)):n.append(t,r))}var Hm=class{constructor(e,t,r={}){this.method=e,this.options=r,this.originalUrl=t.toString()}async perform(){try{let t=Bm.get();t&&await t(this)}catch(t){console.error(t)}let e=new Fm(await window.fetch(this.url,this.fetchOptions));return e.unauthenticated&&e.authenticationURL?Promise.reject(window.location.href=e.authenticationURL):(e.ok&&e.isTurboStream&&await e.renderTurboStream(),e)}addHeader(e,t){let r=this.additionalHeaders;r[e]=t,this.options.headers=r}sameHostname(){if(!this.originalUrl.startsWith("http:"))return!0;try{return new URL(this.originalUrl).hostname===window.location.hostname}catch{return!0}}get fetchOptions(){return{method:this.method.toUpperCase(),headers:this.headers,body:this.formattedBody,signal:this.signal,credentials:"same-origin",redirect:this.redirect}}get headers(){let e={"X-Requested-With":"XMLHttpRequest","Content-Type":this.contentType,Accept:this.accept};return this.sameHostname()&&(e["X-CSRF-Token"]=this.csrfToken),rT(Object.assign(e,this.additionalHeaders))}get csrfToken(){return nT(rx("csrf-param"))||rx("csrf-token")}get contentType(){return this.options.contentType?this.options.contentType:this.body==null||this.body instanceof window.FormData?void 0:this.body instanceof window.File?this.body.type:"application/json"}get accept(){switch(this.responseKind){case"html":return"text/html, application/xhtml+xml";case"turbo-stream":return"text/vnd.turbo-stream.html, text/html, application/xhtml+xml";case"json":return"application/json, application/vnd.api+json";default:return"*/*"}}get body(){return this.options.body}get query(){let e=(this.originalUrl.split("?")[1]||"").split("#")[0],t=new URLSearchParams(e),r=this.options.query;r instanceof window.FormData?r=iT(r):r instanceof window.URLSearchParams?r=r.entries():r=Object.entries(r||{}),oT(t,r);let i=t.toString();return i.length>0?`?${i}`:""}get url(){return this.originalUrl.split("?")[0].split("#")[0]+this.query}get responseKind(){return this.options.responseKind||"html"}get signal(){return this.options.signal}get redirect(){return this.options.redirect||"follow"}get additionalHeaders(){return this.options.headers||{}}get formattedBody(){let e=Object.prototype.toString.call(this.body)==="[object String]";return this.headers["Content-Type"]==="application/json"&&!e?JSON.stringify(this.body):this.body}};async function ix(n,e){return new Hm("post",n,e).perform()}var aT=Fi(Cp());var qm=new Ku(gh);(0,aT.default)(document).on("turbo:frame-load",function(){qm.locale=document.querySelector("body").getAttribute("lang")});var ox=class extends Wf{changeHoneycomb(n){n.preventDefault();let e=new FormData;if(this.checked.length===0)alert(qm.t("bulk.honeycomb.non_selection_alert"));else{this.checked.length==this.checkboxTargets.length?e.append("all",!0):this.checked.forEach(r=>e.append("ids[]",r.value));let t=n.currentTarget.getAttribute("data-honeycomb-id");t===null&&(t=""),e.append("old_honeycomb_id",t),ix("/panel/panales/change_honeycomb",{responseKind:"turbo-stream",body:e})}}reportBulk(n){n.preventDefault();let e=new FormData;if(this.checked.length===0)alert(qm.t("bulk.honeycomb.non_selection_alert"));else{let t=n.srcElement.closest("form"),r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name","ids");let i=document.createElement("input");i.setAttribute("type","hidden"),i.setAttribute("name","all_checked"),this.checked.length==this.checkboxTargets.length&&(e.append("all",!0),i.setAttribute("value",e.getAll("all"))),this.checked.slice(0,100).forEach(a=>e.append("ids[]",a.value)),r.setAttribute("value",e.getAll("ids[]")),console.log(e.getAll("ids[]")),console.log(e.getAll("all")),t.appendChild(r),t.appendChild(i),t.submit()}}sendReportBulk(n){n.preventDefault();let e=new FormData;if(this.checked.length===0)alert(qm.t("bulk.honeycomb.non_selection_alert"));else{let t=n.srcElement.closest("form"),r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name","ids"),this.checked.length==this.checkboxTargets.length?(e.append("all","all_true"),r.setAttribute("value",e.getAll("all"))):(this.checked.forEach(i=>e.append("ids[]",i.value)),r.setAttribute("value",e.getAll("ids[]"))),t.appendChild(r),t.submit()}}deleteBulk(n){n.preventDefault();let e=new FormData;if(this.checked.length===0)alert(qm.t("bulk.honeycomb.non_selection_alert"));else{let t=n.srcElement.closest("form"),r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name","ids"),this.checked.length==this.checkboxTargets.length?(e.append("all","all_true"),r.setAttribute("value",e.getAll("all"))):(this.checked.forEach(i=>e.append("ids[]",i.value)),r.setAttribute("value",e.getAll("ids[]"))),t.appendChild(r),t.submit()}}};var sx={};Us(sx,{default:()=>zm});var sT="data-current-user-id",lT=()=>document.querySelector(`[${sT}]`)?.getAttribute(sT)||null;var zm=class extends Ar{connect(){if(document.querySelectorAll(`#${this.element.id}`).length>1){this.element.remove();return}}toggleActions(){this.hasActionsTarget&&this.ownerIdValue===lT()&&this.actionsTarget.classList.toggle("invisible")}};As(zm,"targets",["actions"]),As(zm,"values",{ownerId:String});var ux={};Us(ux,{default:()=>lx});var uT=Fi(vw()),lx=class extends Ar{connect(){this.modal=new uT.Modal(this.element),this.modal.show()}open(){this.modal.isOpened||this.modal.show()}close(n){n.detail.success&&this.modal.hide()}forceClose(){console.log("Funcion de cerrar"),this.modal.hide(),console.log(this.modal)}hideModal(){this.modal.hide()}};var fx={};Us(fx,{default:()=>cx});var cx=class extends Ar{connect(){$(this.element).modal("show")}};var dx={};Us(dx,{default:()=>Wm});var Wm=class extends Ar{connect(){}select(n){n.preventDefault();let e=[n.currentTarget.dataset.id];this.prioritiesValue=this.prioritiesValue.concat(e),n.currentTarget.classList.add("hidden"),this.checkOptionsLeft(),this.setOptionsOnInput()}reset(n){n.preventDefault(),this.inputOptionTargets.forEach(t=>{t.classList.remove("hidden")}),document.getElementsByClassName("ui-bar-action--next")[0].classList.remove("enabled");let e=document.getElementById("select-priority-placeholder-done");e.classList.add("d-none"),e.classList.remove("d-block"),document.getElementsByClassName("select-priority-list-container")[0].classList.add("d-block")}checkOptionsLeft(){let n=0;if(this.inputOptionTargets.forEach(e=>{e.classList.contains("hidden")||(n+=1)}),n==1){let e=[];this.inputOptionTargets.forEach(r=>{r.classList.contains("hidden")||(e=[r.dataset.id])}),this.prioritiesValue=this.prioritiesValue.concat(e),document.getElementsByClassName("ui-bar-action--next")[0].classList.add("enabled");let t=document.getElementById("select-priority-placeholder-done");t.classList.add("d-block"),t.classList.remove("d-none"),document.getElementsByClassName("select-priority-list-container")[0].classList.add("d-none")}}setOptionsOnInput(){let n=document.getElementById("sortable-input-data");n.value=this.prioritiesValue.join(",")}};As(Wm,"targets",["inputOption"]),As(Wm,"values",{priorities:Array});var hx={};Us(hx,{default:()=>Jy});var Jy=class extends Ar{connect(){let n={theme:"classic"};this.hasPlaceholderValue&&(n.placeholder=this.placeholderValue),this.element.classList.contains("select2-modal")&&(n.dropdownParent=$(".modal")),$(this.element).select2(n)}};As(Jy,"values",{placeholder:String});var px={};Us(px,{default:()=>Zy});var Zy=class extends Ar{suggest(){for(var n=8,e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@!$%&",t="",r=0,i=e.length;r<n;++r)t+=e.charAt(Math.floor(Math.random()*i));this.passwordTarget.value=t}};As(Zy,"targets",["password"]);var UF=[{name:"assessments",module:Xw,filename:"assessments_controller.js"},{name:"clipboard",module:Jw,filename:"clipboard_controller.js"},{name:"form",module:ex,filename:"form_controller.js"},{name:"hello",module:nx,filename:"hello_controller.js"},{name:"honeycomb-bulk",module:ax,filename:"honeycomb_bulk_controller.js"},{name:"message",module:sx,filename:"message_controller.js"},{name:"modal",module:ux,filename:"modal_controller.js"},{name:"modalshow",module:fx,filename:"modalshow_controller.js"},{name:"questions--select-priority",module:dx,filename:"questions/select_priority_controller.js"},{name:"selecttwo",module:hx,filename:"selecttwo_controller.js"},{name:"suggest-password",module:px,filename:"suggest_password_controller.js"}],cT=UF;cT.forEach(n=>{Ju.register(n.name,n.module.default)});Kw().start();window.$=Gi.default;window.jQuery=Gi.default;var VF=new Ku(gh);(0,Gi.default)(document).on("turbo:load",function(){VF.locale=(0,Gi.default)("body").attr("lang")});(0,Gi.default)(document).on("turbo:load",function(){if((0,Gi.default)("#user_profile_company").val()===""?(0,Gi.default)(".employee-identification-wrapper").addClass("d-none"):(0,Gi.default)(".employee-identification-wrapper").removeClass("d-none"),(0,Gi.default)("#user_profile_company").on("change",function(){(0,Gi.default)(this).val()===""?(0,Gi.default)(".employee-identification-wrapper").addClass("d-none"):(0,Gi.default)(".employee-identification-wrapper").removeClass("d-none")}),(0,Gi.default)('.radio-option input[type="radio"]').on("change",function(){(0,Gi.default)(this).closest(".radio-option").siblings().removeClass("active"),(0,Gi.default)(this).closest(".radio-option").addClass("active"),(0,Gi.default)(".ui-bar-action--next").addClass("enabled")}),(0,Gi.default)(".sortable-list-container").each(function(){N1.create(this,{animation:150,onEnd:function(r){(0,Gi.default)(".ui-bar-action--next").addClass("enabled");for(var i=document.querySelectorAll(".sortable-list-container .card-question-option"),a=[],u=0;u<i.length;u++)a.push(i[u].dataset.id);(0,Gi.default)("#sortable-input-data").val(a.join(",")),document.getElementById("sortable-input-data").value=a.join(","),console.log((0,Gi.default)("#sortable-input-data").val())}})}),document.getElementById("phone-selector")!==null){var e=document.querySelector("#phone-selector"),t=(0,fT.default)(e,{utilsScript:"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.21/js/utils.min.js",initialCountry:"us",separateDialCode:!0,preferredCountries:["ar","ca","cl","co","ec","es","us","mx","pe"]});e.addEventListener("countrychange",function(r){var i=t.getSelectedCountryData().iso2.toUpperCase();(0,Gi.default)("#phone-selector-dial-code").val(i)})}});})();
/*!
 * @license Open source under BSD 2-clause (http://choosealicense.com/licenses/bsd-2-clause/)
 * Copyright (c) 2015, Curtis Bratton
 * All rights reserved.
 *
 * Liquid Fill Gauge v1.1
 */
/*! Bundled license information:

jquery/dist/jquery.js:
  (*!
   * jQuery JavaScript Library v3.6.0
   * https://jquery.com/
   *
   * Includes Sizzle.js
   * https://sizzlejs.com/
   *
   * Copyright OpenJS Foundation and other contributors
   * Released under the MIT license
   * https://jquery.org/license
   *
   * Date: 2021-03-02T17:08Z
   *)

chartkick/dist/chartkick.js:
  (*!
   * Chartkick.js
   * Create beautiful charts with one line of JavaScript
   * https://github.com/ankane/chartkick.js
   * v4.0.5
   * MIT License
   *)

lodash/lodash.js:
  (**
   * @license
   * Lodash <https://lodash.com/>
   * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
   * Released under MIT license <https://lodash.com/license>
   * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
   * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
   *)

popper.js/dist/umd/popper.js:
  (**!
   * @fileOverview Kickass library to create and place poppers near their reference elements.
   * @version 1.16.1
   * @license
   * Copyright (c) 2016 Federico Zivolo and contributors
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in all
   * copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
   * SOFTWARE.
   *)

bootstrap/dist/js/bootstrap.js:
  (*!
    * Bootstrap v4.6.1 (https://getbootstrap.com/)
    * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
    * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
    *)

sortablejs/modular/sortable.esm.js:
  (**!
   * Sortable 1.15.0
   * @author	RubaXa   <trash@rubaxa.org>
   * @author	owenm    <owen23355@gmail.com>
   * @license MIT
   *)

chart.js/dist/chunks/helpers.segment.js:
  (*!
   * Chart.js v3.5.1
   * https://www.chartjs.org
   * (c) 2021 Chart.js Contributors
   * Released under the MIT License
   *)

chart.js/dist/chunks/helpers.segment.js:
  (*!
   * @kurkle/color v0.1.9
   * https://github.com/kurkle/color#readme
   * (c) 2020 Jukka Kurkela
   * Released under the MIT License
   *)

chart.js/dist/chart.esm.js:
  (*!
   * Chart.js v3.5.1
   * https://www.chartjs.org
   * (c) 2021 Chart.js Contributors
   * Released under the MIT License
   *)

chartjs-adapter-date-fns/dist/chartjs-adapter-date-fns.esm.js:
  (*!
   * chartjs-adapter-date-fns v2.0.0
   * https://www.chartjs.org
   * (c) 2021 chartjs-adapter-date-fns Contributors
   * Released under the MIT license
   *)

chart.js/dist/helpers.esm.js:
  (*!
   * Chart.js v3.5.1
   * https://www.chartjs.org
   * (c) 2021 Chart.js Contributors
   * Released under the MIT License
   *)

chartjs-chart-treemap/dist/chartjs-chart-treemap.esm.js:
  (*!
   * chartjs-chart-treemap v1.0.2
   * https://chartjs-chart-treemap.pages.dev/
   * (c) 2021 Jukka Kurkela
   * Released under the MIT license
   *)
*/;
