{"version":3,"file":"scripts.4054cc20b5f4ee94.js","mappings":"2eACAA,KAAe,aAAa,uGAAuG,2EAA2E,aAAYC,MAAM,uDAAsD,aAAa,gEAAgE,uBAAsB,YAAa,6BAA4BC,0BAA0BC,mEAAmEC,cAAe,oFAAmFC,cAAe,8BAA6BC,gBAAiBC,qCAAqC,kBAAkB,2CAA2C,0FAA0FC,gDAAgD,cAAc,6FAA6F,8BAA8B,2BAA2B,cAAc,yCAAyC,4EAA4EC,kBAAkBC,mDAAmD,qBAAoBC,gBAAiB,6DAA4DC,sBAAuB,oCAAoC,4BAA2BC,iBAAkB,uBAAsBC,gBAAiB,+CAA+C,uBAAqB,EAAGC,iBAAkB,gDAA+CC,iBAAkB,mBAAkBC,gBAAiB,oBAAmBC,gBAAiB,gDAAgD,gBAAc,EAAGC,eAAgB,gDAAgD,aAAW,EAAGC,eAAgB,iCAAiC,+CAA8CC,eAAgB,4CAA2CC,oCAAoCb,gCAAiC,mCAAkCc,4BAA6B,iDAAgDA,sCAAqCA,oBAAsBA,IAAIA,uLAAsLC,iDAAkD,UAASf,UAAWgB,kFAAkF,oBAAmBC,kBAAkBC,0BAA2B,QAAQ,qIAAqIC,0BAA2B,MAAM,oBAAoB,UAASC,2BAA4BC,KAAKC,kBAAiBvB,IAAIK,mBAAoB,UAAU,QAAS,eAAemB,MAAI,kCAAsC,6CAAkD,UAASC,wBAAyB,YAAY,kFAAiFC,wBAAyB,iCAAgCC,oBAAqB,mCAAmCH,IAAIA,gBAAgB,qBAAoBI,qBAAsB,iCAAiCZ,IAAIA,iCAAiC,UAASV,oBAAqB,iBAAiB,uBAAuBX,IAAIA,0CAAqC,4CAAiD,aAAYkC,mBAAkB,6KAA+K7B,sCAAsC,kBAAkB,gJAAiI,wBAAuB8B,MAAKC,kFAAyE,uBAAuB/B,IAAIA,yBAAyB,UAASgC,sLAAkLC,ohBAAwfC,qdAAucC,6FAA0EC,qFAAkGH,gDAAiD,4BAA4B,4FAA2FI,0EAA2E,gGAA+FC,cAAeC,KAAIC,kBAAmB,8DAA6D,CAAEC,iCAAiC,IAAIC,iDAAkM,CAAlM,MAA6ElD,GAASkD,IAAGC,8BAA6BC,wBAAqB,cAAkC,QAAnB5C,eAAmBR,gBAAqBA,eAAe,qBAAqB,6DAAwD,oEAAiE,yBAAwB,wCAAoC,WAAU,qCAAqC,uCAA+BqD,uEAAwE,CAAK,wDAAsD,kHAAgH,yFAAqF,+CAAqL,KAA3IA,6IAA2IlD,4CAA+CmD,gBAAc,IAAI,iFAAgF,4CAAmE,CAAnE,MAA0CtD,IAASuD,iBAAgBhC,kCAAiC,mCAAkC,cAAc,SAAS,uBAAuB,oEAAoE,eAAe,kBAAiB,eAAe,kCAAkC,IAAI,YAAuC,CAAvC,MAAavB,GAAS,iBAAiBC,kDAAkD,iBAA+C,QAA9BO,0BAA8BwB,0BAA+B,iBAAiB,4EAA4E,cAAc,6CAA6C,cAAc,eAAe,mBAAmB,sDAAsD,eAAe,mBAAmB,+BAA+B,+CAA+C,eAAe,mBAAmB,sNAAsN,eAAe,sBAAsB,6BAAiE,QAApCxB,gCAAoCgB,qCAAyC,EAAE,CAAE,eAAe,6CAAwD,yBAAwBA,uBAAwB,8CAAkE,eAAlExB,mBAAkEQ,wBAAwCuC,6BAA8B,kCAAiC,mPAAgP,8IAAsJS,oCAAsC,oHAAkHA,4BAA8B,sDAAoDA,sCAAwC,gFAA8EA,oFAAqF,uFAAkFA,mCAAqC,uBAAuB,mBAAmB,kCAAiC1B,wBAAyB,kCAA4C,0BAA0B,oBAAiBA,wBAA2B,uBAAuB,mBAAmB,4DAAuE,wBAAuBA,wBAAyB,kCAA4C,kCAAgC,OAAM,yDAAoF,IAA7BN,8BAA6BrB,qEAAsE,YAAU2B,gDAAkD,qGAA8G,cAAe,6CAA2C,YAAY,2CAAyC,SAAS,WAASA,qDAAsD,6EAAsFP,iEAA+D,MAAMkC,irBAA6pBC,eAAiB1D,gGAAgG,+BAA+BC,sXAA4WuD,sJAAmJA,6EAAuEA,oMAA0L,6DAA6D,6HAA4H,cAAe,4CAA4C,UAASG,mBAAmB,uBAAuB,4DAA4D,0PAAiP,cAAe,uBAAuB,wDAAoD,iEAA2D,0BAA4B,IAAJnD,IAAIA,8BAAsC,IAAJA,IAAIA,8BAAkC,wBAAsB,sDAA8CoD,GAAIC,yBAA0B,0BAAyBA,iCAAkC,sFAAgF,mBAAkB,wEAAkF,CAAlF,MAAyE7D,GAASuD,SAAQ,kCAAiCM,0BAA2B,6CAA2CA,uBAAuB7D,6BAA8B,iGAA+F,6GAA2G6D,sBAAuB,6BAA4BA,qBAAsB,8DAA6DA,0BAA2B,mBAAmB,mEAAkE,uCAAuC,2BAA2B,iBAAgB1D,yBAA0B,4BAA4B,MAAM,yBAAyB,uDAAuD,mBAAmBH,EAAEA,gCAAwB,qCAAwC,uBAA4B,WAAS8B,gBAAkBgC,sDAAoDC,QAAQC,UAAW,KAAKf,2BAA0B,KAAMA,kBAAiB,KAAMA,gCAA+B,KAAMA,wBAAuBgB,WAAYC,iBAAiB,0HAAyHC,kBAAmB,kMAAiMC,mBAAoB,oBAAoB,uLAAoLC,QAASC,gBAAgB,qCAAqC,yBAAyB,UAAS,YAAa,kDAAiDC,kBAAmB,gBAAe,wEAAqE,gHAA0H,EAAEL,qBAAsB,mBAAmB,mBAAmB,mQAAiQC,0BAA2B,kEAAkE,iCAAgC,uBAAqB,mBAAiB,iIAAmH,OAAM,MAAM,UAAa,IAAJV,MAAIA,wEAAuEvD,qCAAkC,SAAS,4CAA6J,IAArHsD,6CAAgCC,oCAAiCe,wDAAoDf,6EAAsEjC,iBAAa,eAAOiD,iDAA2ChB,oCAAiCe,gLAAyJf,oCAAiCe,wBAA0B,uCAAmCJ,qBAAsB,wFAAwF,yGAAkI,QAA1B5D,uBAA0BgB,uCAAsC,YAAc,kBAAgBiC,IAAKiB,SAAUC,mBAAmB,sCAAqC,kCAAmE,QAAlCnD,iCAAkCiC,yCAAqC,gBAAkB,kDAAgDmB,mBAAqB,mBAAmB,2BAAyBC,wBAA0B,sCAAsC,6CAA2CC,oBAAsB,qGAAoG,MAAM,MAAG7E,0HAAqHD,iCAAwC,YAAU+E,mBAAqB,kCAAkC,6BAA4BC,iBAAkB,eAAaC,kBAAmB,0FAAyFC,mDAAoD,+BAA+B,4DAA2DC,qBAAsB,uBAAgEC,kBAAmB,mBAAmBpF,EAAEA,yCAAyC,UAASqF,mBAAoB,2BAA0BC,mBAAoB,4BAA0BC,kBAAmB,4BAA0BC,mBAAoB,+BAA+B,oDAAmDC,iBAAkB,MAAM,yHAAwHzE,oBAAqB,YAAUC,sBAAwB,cAAYG,sBAAwB,oBAAkBF,sBAAwB,YAAYV,IAAIA,eAAe,WAASW,qBAAuB,YAAYX,IAAIA,eAAe,WAASkF,sBAAwB,0BAA0B,QAAO1F,UAAW,WAAS2F,sBAAwB,sBAAoB3D,KAAMhC,UAAW,cAAY0E,0BAA4BkB,mDAAkD9D,mBAAoB,SAAS+D,oBAAmB/D,mBAAoB,eAAe,eAAe,4BAA4B7B,IAAIA,kBAAkB,SAAS,mBAAmB,yDAAwD,kCAA+B,wDAAkD,UAAS,mBAAiB,uBAAkB,OAAM,kEAAuD,oEAA6DD,mCAAiC8F,kDAA4C,CAAK,wDAAiD,sCAAiC,UAAU,eAAe,kCAAiD,QAAf9D,WAAeA,8BAAmC,UAASR,KAAM,uBAAuB,0CAAwCD,KAAIA,wDAAuD,SAAS,yBAAyB,0EAAsE,8DAAoD,0BAAuBS,MAAIA,sBAAiB,UAAhG,CAAyGwC,6FAAkF,uBAAqD,IAAjChD,yCAAiCrB,iDAA2C,MAAM,SAAS,MAAsB,IAAhBqB,mBAAgBrB,sCAAmC4F,oBAA4B,IAAX5F,aAAWA,wEAA4DsE,2EAAqE,CAAE,eAAe,iGAA+F,eAAahB,yBAAwB,mBAAgBA,6BAA0B,qEAAyD,mBAAkBlC,IAAIA,qDAA+C,CAAK,yDAAwD,UAAUf,MAAIsB,2BAAmC,qDAAoDkE,kCAA+BC,2EAA6E3C,WAAU,cAAa,wFAAwF,gCAA6B,6BAAkD,IAAvBG,wBAAuBA,IAAS,qHAAmHuC,oCAAiCvC,6FAA4FuC,2BAAyBvC,qBAAuB,YAAY,kDAAgDJ,2BAA4B,yCAAqC,QAA8B,IAAvBpD,uBAAuBO,gDAA8CiD,wEAAgE,4HAA2G,0BAAsBqC,2BAAsBA,MAAK,UAAgD,IAAvCrC,6CAAuClC,gCAA+BS,YAAU,MAAMR,YAASpB,wCAAiC,sBAAsB,IAAJqD,KAAIlC,4BAA0B,OAAM,wDAA8C8B,UAAQH,uEAA+D,4BAAsB9C,wBAAyB,WAAS8F,8BAA+B,qEAAiE,0BAAyB,uGAAoG,mEAAmEJ,uDAA0F,IAApCtE,qCAAoCA,MAAWM,6BAAqC,gGAA8F,6DAA4D,OAAQ,sEAAkE0B,0GAAwG,kEAAgEE,eAAiB,iFAA8EyC,4CAA+C,8DAA4D3C,6BAA+B,+GAA4G2C,2BAA8B,kEAAgEzC,eAAiB,2CAAwCyC,sBAAwB,MAAM,4FAA0FtC,GAA9xnB,CAAmynBD,GAAInD,8KAA8K,sBAA4C,QAAtBuB,mBAAsBhC,4CAAkD,uBAAuBgC,UAAU,UAASe,iBAAiB,aAAa/C,EAAEA,iDAAiD,UAASoG,6BAA6B,iBAAgB,8DAA8D,yEAAwE,mBAAkB,mCAAmC,4BAA0B5F,gCAAkC,mBAAiB,wCAA0C,2BAAyBC,gBAAkBA,yBAAyB,WAAW,kIAAkI,wBAAsB,EAAGA,aAAcsD,iBAAiB,6BAA6B,mEAAmE,QAAQ9D,IAAIA,yCAAyC,6BAA6BA,IAAIA,qBAAqB,8BAA6BoE,mBAAoB,0CAAwCM,gBAAiB,0CAAwC0B,eAAgB,wEAAsE,iDAA8C5F,0BAA2B,QAAQ,kBAAkB,+BAA8B,sJAAqJ,SAAS,yLAAwL,YAAY,iEAAiE,6GAA2G6F,uBAAwB,4CAA0CC,yCAAyC,iBAAgB,gCAAgC,SAAS9F,aAAamE,gBAAgB,2BAA2B,8BAA8B,YAAY5E,IAAIA,uCAAsC,EAAEwG,sBAAuB,wDAAwD,oBAAmBxE,IAAIA,kBAAkBxB,SAASA,gGAAgGL,UAAU,MAAM,qDAAoDsG,kBAAmB,4IAA2IC,kBAAmB,iEAAgEC,oBAAqB,sEAAoElG,QAAU4E,mBAAmB,mBAAmB,kCAAiCuB,oBAAqB,0BAAyBC,6BAA8B,4BAA2BC,iBAAkB,4BAA0BC,iBAAkB,gCAA8BC,oBAAqB,2BAA0BC,oBAAqB,+BAA8BC,0BAA2B,6BAA4BC,0BAA2B,iCAAgCC,qBAAsB,6BAA0BC,eAAgBd,qBAAsB,yBAAuBe,qBAAsB,uIAAqI,cAAe7G,sBAAsB,sBAAsB,iKAA+J,2BAA0B,eAAc,SAAS,eAAc,QAAQ,qBAAoB,MAAM,IAAIT,qGAA+G,CAA/G,MAAsGA,GAASQ,qBAAqBC,wBAAwB,MAAQuB,2BAA8BvB,OAA9BuB,EAA8BuF,4BAAqC/G,UAAQA,eAAgBwB,GAAI,wCAAwC,uBAAuB9B,SAAS4F,KAAkB,IAAZ7F,cAAY6F,yEAAgF9D,sCAAqCqB,GAAIqD,eAAe,yDAAyDjG,yBAAuBL,8EAAsE,CAAtJ,CAAwJoH,6BAA6BC,kBAAmB,sCAA4C,QAANjH,IAAM,sDAAsDkH,MAAO9C,gBAAiB,uCAAsCQ,iBAAkB,uBAAsBuC,mBAAoB,2BAA0BC,oBAAqB,UAASC,gBAAiB,mCAAkCC,kBAAmB,WAAUC,uBAAwB,qEAAoEC,gBAAiB,wCAAuCC,iBAAkB,YAAY,UAASxH,UAAWyH,qBAAqB,sQAAsQC,iBAAiB,UAASC,kBAAmB,+CAA8CC,kBAAqB,uBAAsBC,gBAAiB,gBAAgB,8BAA8B7H,uBAAuB,0BAA0Bc,mBAAmB,iCAAiCvB,oHAAmH,GAAEwB,SAAS+G,WAAYC,qBAAsB,QAAQ,oBAAoB,kBAAkB,uCAAoC,UAAQ,WAAW,qFAAkFpI,iOAA8MH,mBAAkB,IAAID,IAAa,CAAb,MAAIA,IAASS,iIAAyHe,8FAA2F,8BAA8BrB,yGAAoGoI,WAAYA,oBAAqB,iCAAgChH,KAAM,8BAA8B,kBAAkBkC,kCAAkCjC,KAAIrB,mGAAoG,4DAA2DoB,4BAA2BkC,+BAAgCgF,iBAAkB,uFAAuF,mBAAmBzG,gFAAgF,4GAA2G,iCAAgC,sBAAsB,gEAA+DvB,uCAAuCmD,kHAAgHnD,6BAA8BmD,wBAAwB,SAAQ,EAAG,oBAAmB,cAAatD,wFAAsFG,uBAAuB,oCAAsCA,sBAAoBiH,MAAOjH,UAAWiI,2CAAyC,8FAA6FjI,sMAAqM,+BAA8B,6BAA6B,sEAAwD,4EAAyF,yBAAsBR,QAAWsB,IAAIA,2CAA2C,sCAAqCoH,0BAAyB,iBAAgB,uBAAuB,eAAc,0CAAuC,mBAAkB,qDAAqD,cAAajB,gCAA+BkB,uBAAqBC,kBAAkB,sBAAsB,gBAAeC,2EAA2E9C,4BAAwB/F,GAAM8I,oBAAqB,sBAAsB,sCAAgC,yBAA6B,UAASpI,kBAAmB,yEAAuEqI,uBAAwB,qGAAoGvB,qBAAsB,wBAAwB,eAAe,cAAsF,KAAvEjH,2EAAuEA,0BAAyB,yFAA8FyI,oBAAqB,sBAAsB,yCAAyC,2DAAsCC,YAA2B,mBAAkB,QAAQ,oHAAmH,IAAI1I,wFAAwF,CAAxF,MAAwFR,IAAUmJ,mBAAa3I,SAAc,SAASC,UAAUwI,oBAAoB,qCAAkCG,qBAAsB,yBAAuBC,yBAA0BF,gBAAcG,sBAAuB,yBAAuBC,0BAA2B5G,kBAAelC,aAAe2I,mBAAmB,sCAAsC,eAAe,yEAAkF,IAAXnJ,WAAWA,+EAAkF0C,4BAA2B,SAAS,8CAA8CwG,iBAAcK,oBAAqB,MAAM,gFAA+E9B,qBAAqByB,kBAAgB,EAAE,oCAAoCE,uBAAwB,4BAA4BF,mBAAiB,IAAG1I,UAAYgJ,sBAAsB,MAAM,uHAAsHC,sBAAiC,gBAAVzJ,WAAU+B,4CAA+D,4GAA4GvB,gBAAeN,2BAA2BwJ,0BAA2B,qBAAqB,mCAAiCvE,gDAAgDzC,8BAA4B,IAAGlC,aAAegJ,oBAAoB,QAAQ,sHAAsH,wBAAwBhJ,wEAAuE,EAAEiJ,oBAAqB,4BAA4BjJ,mBAAkB,EAAEmJ,uBAAwB,+BAA8BrB,sBAAuB,6DAA2DvG,yBAAwE,IAA7C,6CAA6CyB,oEAAwE,2BAA2B,gLAAgL,sCAAqCX,IAAK+G,aAAahH,gCAAgC,4EAA4E,qBAAqB,iGAAiG,qBAAqB,4BAA4B,gBAAe,WAAY,sBAAqB3C,4GAA6G,gBAAuC,IAAvB4F,uBAAuBrC,6DAAkEhD,8BAA8B,uFAAuF,UAAU,iBAAiB,0CAA0C6C,IAAIA,+XAA+X,QAAQA,IAAIA,0CAA0C,SAAS7C,aAAaqJ,gBAAgB,oBAAmBC,gBAAiB,iBAAgBC,mBAAoB,yEAAyEhH,wCAAuC,IAAK,iHAAiHU,yaAAya,QAAQuG,oMAAoM,iBAAiB,MAAM,0KAA+L,iBAAiB,uBAAuBzJ,IAAIA,4DAA0D0J,+IAA+I,mBAAmB,uBAAuB,sEAAqE1G,KAAIA,8EAAsE2G,YAA6K,IAAzJ1G,yJAAyJH,mBAAwB7C,6DAAwDgE,4BAAsD,IAArBpB,qBAAqBlD,uDAAoD2F,mDAAgE,IAAJxC,IAAInD,yCAA8C,SAAS,6BAA6B,cAAc,SAAS,cAAc,SAAS,iBAAiB,sBAAsB,IAAI,sBAAuB,CAAvB,MAAuBH,KAAjD,KAA4D,aAAkB,yBAAyB,QAAQ,uBAAuB,mEAAmE,SAAS,0HAAiHwB,WAAoB,kCAAkC,4CAA0Ca,kDAAoD5B,2BAA0B,CAAE,mBAAmBN,mCAAkCiK,iCAAiC,yBAAwB,2BAA2B,qCAAmCC,0CAAoCrI,4GAAgHA,6EAAyEA,0BAA8BgE,0EAAwEhG,uCAAiC,qCAA4CS,SAAS6J,UAAS5D,wBAAyB,yCAAqC,SAA2U,IAAlUlG,8LAAyL,4FAAmGsF,qCAAsCA,gGAAkGzC,0DAA4DC,YAAa/C,qIAAkIJ,iQAAiQsH,2BAA4B,wDAAmD,sBAAwD,IAApC3B,qCAAoCA,yEAA8N,IAAlJzC,yBAAwBoB,0HAA0HtE,qMAAyMsD,gHAAwG,2CAAgDhD,mDAAiD8J,qBAAsB,wJAAuJ,eAAetK,mBAAmBA,sBAAsB,0EAAgH,IAAtCwD,uCAAsCjC,sCAAwE,IAA3BtB,4BAA2BC,qMAAyMqK,kGAAoG,8DAA6DC,uBAAwB,gDAAgD,wDAAwD3E,SAASA,6EAA6E,cAAatF,IAAKA,IAAIA,oIAAoIL,kBAAkBuK,mBAAkB,CAAE,kCAAkCA,6BAA2BnJ,GAAIoJ,sBAAuBC,2CAA2CC,kDAAkD,oDAAmD,WAAY,oDAAmD9B,gBAAiB6B,8BAA8BC,mDAAkD,GAAG,EAAEC,gBAAiB,sCAAqCC,SAAUC,MAAMC,aAAYC,OAAQC,kBAAkB,cAAc,qEAAmEC,oBAAqB,cAAc,kEAAgEC,qBAAsB,eAAe,+EAA2EC,cAAeC,8BAAyB,0EAA8E9K,8BAA+BT,mDAAkDS,sBAAuB,sDAAsDT,iYAAgYS,mBAAoB+K,4IAA4I,yBAAyB9D,qEAAoE+D,2BAA4B,yBAAyB/D,wEAAuEgE,oCAAqC,yBAAyBhE,kHAAiHjH,QAASkL,6VAA8VlL,yBAA0BwE,iCAAgC,cAAexE,oBAAoB0K,iBAAiB,yBAAwBC,mBAAoB,sBAAqBC,qBAAsB,2BAAyBhB,kBAAiB5J,QAAUmL,mGAAkG,cAAenL,oBAAoB4J,6CAA6C,sCAAsC,+GAA6G5J,aAAeoL,qBAAqB,yBAAwBC,sBAAuB,2BAA0BC,oBAAqB,QAAQ,8JAA8J,uBAAuB,8BAA8B,YAAY,uFAAuFtL,4BAA2B,IAAK,sGAAsG,iBAAiB,4FAA0F,eAAe,2DAA2D,eAAe,2FAA2F,iBAAiB,gBAAgB,mBAAmB,qGAAkGD,IAAIA,6BAA6B2I,6CAA0ChJ,iBAAiB,qBAAqB6B,OAAO,oDAAmD,qFAAmF,gBAAcwC,oDAAgD,8FAA8F,0CAA0ClB,IAAIA,kFAAkF,uDAAuDA,IAAIA,sKAAqKvB,wCAAuC+D,wCAAyC,SAAS,mBAAmB,kCAAkC,eAAe3F,mHAAmH,SAASM,UAAUuL,0BAA0B,UAASC,sBAAuB,4CAA4C,0GAA0GjK,IAAIA,2JAAkK,mDAAmDA,IAAIA,uBAAkBkK,QAAa,gEAA+DC,sBAAuB,yCAAoC,aAAkBhM,cAAa,oBAAmB,mFAAmFK,qBAAoBA,0CAAsCC,aAAe2L,mBAAmB,sBAAqB3E,mBAAoB,mBAAkBhC,iBAAkB,2BAA0B,4DAA4D,gFAA+E,EAAE,0BAA0B4G,kBAAmB,qCAAqC,qFAAoF,EAAEC,mBAAoB,qCAAqC,6DAA6D,iBAAiBrM,iCAAgC,EAAEsM,kBAAmB,qCAAqC7E,uDAAsD,EAAE8E,iBAAkB,qCAAqC9E,mEAAkE,EAAEtC,iBAAkB,cAAc,kBAAkBnF,6DAA6D,aAAYgM,oBAAqB,sDAAsD,0BAAyB,EAAEQ,iBAAkB,2BAA0B,kBAAiBjM,kBAAmB,iDAAiD,iFAAiFR,qBAAqB,IAAI,KAAKQ,IAAIA,wBAAsBkM,gDAAkDzM,GAAI,CAAJ,MAAID,KAAWC,2BAA0B,0BAA0B0M,uBAAwB,SAAS,qCAAqC,sBAAsBlM,wEAAuED,MAAKC,QAAUmM,0GAAyG,cAAenM,oBAAoB,uCAAuCN,KAAKA,iEAAiE,4BAA4B,yEAAyE,kCAAkC,iDAAgD0M,mBAAoB,aAAa,2CAA2C,uCAAuC,UAASC,yHAA0H,mBAAmB,mCAAmC,4SAA4S,iBAAiB,OAAOnM,eAAe,wDAAiD+G,YAAkB,WAAY,aAAa,MAAMxH,+FAAqF4F,4IAA8IjD,iCAAyC,4BAA4BrC,8KAA8K,cAAc,iCAAiC,kEAAkEsF,4JAA4JiH,6BAA6B,cAAaC,0BAA2B,cAAaC,yBAA0B,cAAaC,8BAA+B,cAAaC,yBAA0B,cAAaC,gCAAiC,YAAY,wKAA8InN,6SAAqU,CAA98C,GAAo9C,mEAAmE,eAA0C,OAA3BQ,uBAA2BT,4BAAuF,QAAhDC,4CAAgDO,kCAAvF,CAA8HR,OAAQ,uCAAuCqN,yDAAwDC,IAAKC,oCAAoC,mBAAmB,iBAAiB,gDAAgD,yBAAyB,8BAA8B,uCAAuC,KAAK9J,IAAIA,6RAA6R,oGAAoG,mBAAmB,6IAA6I,eAAe,eAAeA,SAAS,ySAAwS,uBAAuB,wCAAwChD,UAAU+M,UAAUC,SAAS9M,kBAAkB,MAAM,sBAAsB,uBAAsB+M,WAAYC,kRAAiRC,YAAYC,wBAAyB,+CAA+C,yCAAwC,iHAAiH,kSAAkSC,sBAAuB,kBAAiB,mNAAiNrN,wCAA0CA,eAAeE,oBAAoB,iIAAiI,kBAAiB,EAAEoI,oBAAqB,mIAAmI,mMAAiMtI,4DAA8D,iFAAiFsN,cAAa,WAAY,yCAAsC,OAAQtN,QAAUuN,qCAAoC,cAAevN,iBAAiBwN,mBAAmB,iBAAgBjM,sCAAuC/B,IAAIA,oCAAoC,WAAU,yCAAwCQ,aAAeqN,kBAAkB,+BAA8B,aAAYrK,IAAK,qBAAqB,uBAAuBA,IAAIA,+BAA+B,SAAS,6CAA4CzD,6BAA0BS,uBAA2B+K,0CAA0C9D,yJAAwJwG,eAAgB,8BAA8B,6DAA4DC,gBAAiB,gCAAgC,iSAA0SC,2CAA6C/C,UAAU1K,gBAAgB,MAAM,yIAAwIoI,gBAAiBtI,6KAA2K4N,mCAAqCtF,gBAAgB/I,6DAA4DS,UAAW6N,mBAAmB,UAASC,kBAAmB,gCAA+BlD,kBAAkB5K,oCAAqC,6DAA6D,cAAc+N,oHAAoH,cAAc,+BAA+BC,YAAUA,cAAgB,iBAAiB,aAAaC,UAAU,YAAY1M,IAAIA,8CAA8C,kCAAkC,mBAAmB,yEAAyE7B,IAAIA,mCAAmC,mBAAmB,2EAAoED,SAAcA,aAAe,cAAc,wGAAsG8B,MAAIA,yBAAuB,gGAA6F8D,aAAc4E,yBAAwB1K,qBAAsB2O,iBAAgBC,0BAA0B3O,qHAAsH,mEAAmE,2BAA0B4O,iBAAkB,8BAA8B,iBAAiB,SAAS5O,IAAIA,uBAAuB,wFAAsFqD,UAAY,kBAAmB,kBAAc,+NAAoMrD,SAArO,CAAiPqD,wBAAyBtB,IAAIA,0HAA0H,0LAA0L0I,oCAAiC5E,EAAKrF,yBAAyBqO,UAAU,mBAAmB,4BAA4B,sCAAqCC,sBAAuB3O,iCAAgC,yBAAyB4B,IAAIA,yDAAuEgN,4BAA6B,4DAA2DxK,sDAAmD,kHAAkHf,kBAAgBA,iCAAmCgB,oBAAoBhB,qDAAoD,IAAExD,sBAA2B,yDAAwD,4CAA0CiG,MAAK1C,6BAA2B,yXAAmXgB,eAAY,6HAA4HA,mFAA6EtE,qEAAkE+O,YAAU9O,oDAAmD,kEAA6DD,8EAA0EgP,wBAA0BjP,oDAAkDQ,wBAA0B,wCAAuCT,IAAKmP,gEAAgE,iOAA4O/O,6DAA4D4B,GAAGvB,aAAc2O,yBAAyB,8DAA8D3B,WAAUzN,QAAQqP,0BAA2B,uDAAuD,0BAAyBpP,OAAOuB,uCAAuC,sEAAqEqN,qBAAsB,kBAAkB,oBAAa7O,aAAoB,4FAA4F,6DAA4D,mCAA8B,gDAAqD,eAAeC,KAAIO,mFAAmFR,yBAAyB,EAAEsP,mBAAoB,+CAA+C,kFAAiF,8EAA8EtP,KAAIwB,qEAAsE,QAAQxB,IAAIA,qDAA8CC,UAAgB,IAAGQ,8CAAgD,cAAcA,wBAAwB,4FAA0FA,QAAU8O,yEAAyE9B,gBAAe+B,SAAU/B,gBAAegC,YAAahC,mBAAkB,cAAehN,wBAAwB,gCAA8BA,iCAAmC,qBAAqB,kBAAkBR,WAAWA,0CAA0CO,iCAAgCC,uBAAwBA,+BAA8BA,uCAAwC+N,kBAAiB/N,qBAAsB+N,SAAQ/N,aAAciP,gCAA+BjP,yBAA0B,oEAAsE,wBAAwBR,kBAAkB2D,oBAAmB,EAAE+L,yPAA0P,4BAA4BlP,aAAamP,mBAAmB,+CAA6CC,uBAAwB,4BAA4BpP,sBAAqB,IAAGA,UAAYmP,qBAAqB,qBAAqB,+VAAwWE,WAAYvP,MAAMwI,kBAAkB,8CAA6C,cAAc,qDAAoD8G,yBAA0B,2BAA0B,4DAA0DE,IAAMhH,oBAAoB,uDAAsDtI,4DAA6D,yBAAyBuP,sBAAsB,0BAA0B,iEAAiE,gEAAgE,eAAe,kCAAiC,eAAe,mDAAmD,eAAe,8DAA6DvP,aAAawP,mBAAmB,+CAA6CC,uBAAwB,mCAA4BxI,uBAA6B,IAAGjH,UAAYwP,qBAAqB,qBAAqB,+LAAgME,WAAYC,UAAUzP,gBAAgB,gCAAgC,iFAAgF0P,SAAUC,mCAAqCvK,sCAAwCpF,gBAAmC,aAAwDoI,gBAAoC,IAA+DtI,+IAAiJA,qCAAmCA,aAAe8P,qBAAqB,gBAAgB,kCAAkC9P,6CAA0CT,qCAAwC,kDAAkD,QAAQG,WAAWA,8CAA8CsD,+CAA6CiE,MAAO8I,wBAAyB,gBAAgB,kCAAkC/P,+CAA6C+G,uDAAyD,kDAAkD,QAAQrH,WAAWA,IAAY,IAAPqB,QAAO,mDAAyDiC,+CAA6CiE,4BAA6B+I,0BAA2B,wDAAwD,kCAAkChQ,mDAAiD,4FAA8F,uBAAuBe,WAAWA,gEAAwD,mKAAyK,EAAGkP,qBAAsB,YAAwB,IAAZzQ,YAAYO,2EAAgF,YAAY,aAAaC,aAAakQ,gBAAgB,oBAAoB,sDAAsD,MAAM,sIAAsI,2BAAuB3O,iIAAkI/B,+KAAgLQ,UAAYmQ,UAAUC,QAAQlQ,gBAAgB,6BAA6B,iCAAgCmQ,QAASnQ,gBAAgB,6FAA6F,kBAAkBqB,IAAIA,wGAAuG,2BAA2BT,UAAU,UAASwH,kBAAmE,QAAhDvI,4CAAgDiD,0EAA+E,sCAAoChD,uCAAyCA,kBAAkBsI,kBAAkB,kEAAiEhD,6CAA8C,oDAAmD,GAAEA,0BAA4B,wDAAwD/F,qBAAqBS,kBAAkB2K,0BAA0B,4GAA2G,+bAA0bpJ,2CAA4C,2BAA2B,uDAAuD7B,EAAEA,6BAA6BsD,mEAAuE,IAAJjC,KAAIrB,oPAAuP,gUAA8T4Q,yBAA0B,8BAA8BxQ,wBAAwBE,6BAA2BA,aAAe2K,sBAAsB,4BAA4B3K,2BAA0B,EAAEuQ,6BAA8B,cAAc,yCAAuCjL,mBAAqBd,iCAAgC,cAAe,kBAAkBxE,6CAA6CA,oBAAoB0K,iBAAiB,+DAA8DlL,uDAAqDgR,oBAAqB,iEAAgEhR,sEAAoE,sBAAsBoC,iBAAgB6O,OAASzQ,uBAAuB,QAAQ,sCAAsC,IAAIR,iDAAkD,CAAlD,MAAkDD,IAAU,sHAAsH,uBAAqBmR,kBAAoB,0GAA8G,oBAAqB,MAAM,2CAA2CnP,iFAA4E,GAAEA,+BAAkC,mCAAyCvB,sBAAsB,2BAA2B,iBAAiBuB,wEAAwE,oBAAoB,uEAAuER,+BAA0B,yBAA+B,oBAAmBf,aAAc2Q,qBAAqB,uCAAsCC,0BAA2B,2BAA2B,8BAA8B,+BAA6BhN,kBAAoB,gBAAgB,6GAA6GvD,kBAAoB,oBAAoB,yDAAyD,OAAOwQ,yCAAwC,CAAGA,yCAAwC3Q,SAAW,+GAA+G4Q,MAAMC,4CAA6C,eAAe,qBAAqB,gCAAgC,0CAAyC,0GAA0G,qBAAqB,SAAQtR,SAAU,cAAc,MAAM,6CAA6C,eAAe,qFAAmF8B,EAAI,0CAA0C,iBAAiB,yCAAyC,8CAA2CxB,SAAY,6BAA6BiR,0BAA0BC,yBAAwBC,QAAQC,cAAeC,8MAA+LC,SAAwB,oHAAmHxK,UAAWyK,6CAA4CC,gBAAiBD,2DAA0DE,YAAa,6EAA4EC,aAAcL,oBAAmBM,wBAAyB,0DAAyDC,6DAA8D,mCAA2C,yCAA3CnS,SAAmF8F,mIAAkItC,MAAKlC,MAAKrB,kBAAiBmS,4CAA2C,OAAM,MAAM,MAAY,IAAL7R,KAAKP,yFAA0FA,2BAAyB,oCAAiCqS,iCAAkC,iBAAgBC,iCAAgC,mFAAyEC,8BAA8B,sCAAoCC,wBAAwB,OAAM,yCAAgC,oCAAiC,aAAYC,mBAAmB,cAAW,sCAAmC,yMAAsM1Q,uBAAuB,IAAIA,yFAAmG,CAAnG,MAA0FhC,IAAS2S,kBAAkB,oHAAkH,o4BAA23B,kEAAyE,uEAAqE,sFAAiF,gEAA4DA,iDAAiD5P,qBAAmB4P,YAAa,IAAInO,kBAAuC,CAAvC,MAAiBxE,IAAS,cAAa8F,gBAASA,sBAA0B,yBAAoB,yBAAkBtB,+HAA0J,QAAvCxC,2CAAuC,4FAA2F,+CAAuC9B,eAAa,MAAM,2BAAmB,CAAK,cAAY,wCAAoCC,MAAI,MAAMsD,YAAStD,UAAO,+CAAjZ,CAAybwS,+HAA2HpR,yBAAsB,yBAAkB+B,wBAAuB,wEAA6E,IAAZnD,cAAYA,sKAA8I,mBAAwB,wHAAsG,2DAAkD,MAAM,2CAAmC,IAASF,SAAuB,CAAvB,MAAOD,IAAS,OAAOmI,qEAAiE,OAAOA,yBAA3lB,CAAmnBwK,ilBAA0hB,WAASC,wBAAyB,4BAA2BC,wBAAyB,qCAAmCpS,oCAAsCA,uBAAuB,oDAAoDoR,0CAAyCpR,2BAA0BA,4BAA8B,MAAM,wFAAsFA,2BAA6B,eAAeoR,2EAA2E,4BAA2BiB,uBAAwBrS,sBAAqB,EAAEA,aAAcsS,oBAAoB,MAAM,qJAAgK,QAAX/S,OAAWA,2CAAgD,WAASqM,oBAAqB2G,sBAAuB,kCAAkCvS,oCAAkCiH,qBAAuB,6BAA6BzH,mCAAkC,EAAEgT,iBAAkB,WAAW,6BAA6BxS,qCAAoC,EAAEyS,mBAAoB,kDAAkDzS,uCAAqCiH,QAAQjH,kCAAoC,kCAAiCA,mCAAoC,oEAAmEA,8BAA+B,IAAI,2BAA4B,CAA5B,MAA4BT,MAAY,QAAQ,gBAAemT,wBAAyBpN,+EAA+E,QAAQ,qCAAqCqN,mBAAmB,gBAAgB,2GAA2G,oLAAoLjT,cAAc,kBAAkBA,uRAAuRkT,mBAAkB,CAAE5N,qBAAoBzD,8BAA8BA,+GAAgH,0CAA0C7B,QAAO,EAAEA,aAAc,IAAI6B,kCAA4C,CAA5C,MAAmChC,GAAS,eAAc0S,iBAAkBvS,WAASM,4BAA8BT,wCAAsCS,aAAeqR,SAASwB,oGAAmGhM,UAAWgM,kCAAiCrB,YAAa,0BAA0B,6BAA2BxR,0CAAuC,0DAA6DA,qCAAuC,QAAQ,uCAAuC2S,mBAAmBpR,wCAAsCiO,MAAQsD,oCAAkC1H,8BAAgC7J,0DAAwD1B,0BAA2BoS,iBAAkBlR,WAAW,oCAAoCf,aAAa+S,0CAA0C,wCAAwC,uBAAqB/S,6CAA+C,wKAAwK,gPAAiP,6CAA4CT,6CAA8CG,aAAYK,yBAAqB,iHAAoH,WAAWuF,qKAAuK,mUAAkU,WAAUtF,0BAA2B,kCAAkC,wHAAwHoR,6CAA2C4B,iBAAmBtT,oEAAkEiI,wBAA0B3E,kBAAkBjD,uCAAsC,GAAEkH,MAAOjH,oCAAqC,mCAAmC,oBAAkBiT,QAASjT,UAAWkT,0BAA0B,kDAAkD,8PAA6PpS,wHAAwHd,aAAcmT,mBAAmB,iEAAiEnT,+BAA+B,kBAAkB,oCAA+FoT,KAA/F7T,6BAA+F6T,KAA/FrT,+BAA+FsT,uCAAkD,CAAGD,mBAAa,GAAQxG,oBAAqB,YAAY,uBAAuBwG,cAAc,iEAA6D,CAA2E,IAAtE5T,sEAAsED,uFAA4FA,sHAAsH,OAAO6T,uFAAsFE,wBAAyB,2BAAmD,QAAxB/T,oBAAwBA,oDAAyD,cAAa,IAAGS,QAAUuT,kDAAiD,cAAe,wBAAwBvT,oBAAoB,+BAA8B,MAAM,4EAA4EuB,0DAAyD/B,yBAAwBQ,oCAAsCA,+CAA+C,4DAA2D,GAAEA,QAAUwT,+BAA8B,cAAexT,QAAQyT,0CAAyC,cAAezT,sBAAsB,yFAAyF,+BAA8B,MAAM,gQAA+Pc,kBAAkB,GAAEd,kGAAoGA,oBAAoB,uBAAqBA,aAAe0T,qBAAqB,4BAA2BC,qBAAsB,2BAA0BC,2BAA4B,yBAAwBC,2BAA4B,oEAAmEC,oBAAqB,8CAA4C9T,wNAA0NA,sBAAsB,iEAAiE,6DAA6DA,sBAAsB,UAAU,wFAAwF,sDAAoD4B,gCAAiC5B,wBAAyBT,6BAA4BS,wJAAuJ,gBAAgB,6DAA4DA,mBAAoB,2CAA0C,qEAAsE,WAAW,uBAAuB,gCAAgC,gEAA0D,4BAA2C,SCI/vvFR,KAAe,6PAA4PA,mBDJo/uF,MCIh+uF,kBAAuB,aAAa,cAAc,+CAA+CuU,WAAW,kBAAkB,gBAAgB,YAAYhU,WAAWA,KAAK,WAAWgB,+GAA+G,kBAAkB,0EAA0EiT,cAAYxU,EAAI,aAAa,wDAAwD,YAAYD,mBAAmBA,KAAK,mBAAmB,sEAAsE,UAASgC,wBAAyB,gBAAgB,0EAA0E,yBAAuB/B,KAAQ,sBAAsBuD,GAAOkR,oDAAoD,GAAGzU,+BAAyB0U,4BAAkC,UAASC,mCAAoC,oCAAoC,gBAAgB,6BAA6B5U,yBAAyB,IAAI,uCAAiD,CAAjD,MAAwCC,GAAS,cAAa4U,6CAA8C,eAAe,qHAAqH,uFAAsFC,mBAAoB,uBAAsBC,iCAAkC5U,yBAAwB6U,iCAAkC,mBAAkBC,sBAAuB,0BAAyBC,gCAAiC,6DAA6D,oFAA2FC,wDAAwD,+HAA+H,QAAMC,2BAA4B,sDAAsD,qCAAqC,sBAAsB,sCAAsC,mFAAkFC,2BAA4B,4IAAuJ,mDAAmD,wJAAwJ7R,kEAAkE,gBAAgB,uDAAwDhD,OAAK8U,sBAA0B9U,8BAA6BP,SAAUE,2CAA4CoV,6CAA6C,mFAAmF,mDAAmD,cAAc7N,gBAAgB,kBAAkB,2BAA2B,oBAAoBzH,wGAAuGD,qBAAsBG,0DAAyDH,8BAA+B,uCAAuC,oFAAmFA,iCAAkC,wCAAwC,kCAAiCA,6BAA8B,WAAW,mEAAmE,4CAA4CG,8CAA+C,gCAA8BqV,6BAA2B9N,yBAA6B1H,8BAA+BG,2DAA0DF,+BAAgC,4BAA6B,kCAAkCuB,wDAAuD,EAAGvB,6BAA8B,mBAAmBD,sCAAqC8F,WAAY2P,6BAA6B,kBAAexV,EAAzuC,GAAivCE,mNAAmN,gDAAgD,oIAAoI,cAAcuH,iDAAiD,kBAAkB,2BAA2B,+EAA+E,MAAM,qCAAqC,MAAM,+EAA2E,CAAK,iCAAiCjE,+BAA+BxD,2KAA2KyH,uNAAsN1H,qBAAsBG,0DAAyDF,iCAAkC,4BAA6B,kCAAkCwD,kFAAiF,EAAGqC,WAAY2P,6BAA6B,kBAAexV,EAA7rC,GAAqsCE,gEAAiE,mBAAmB,wJAAoJ,CAAK,yBAAyB,oGAAoG,gHAA8G0L,oEAAwE,wCAAwC1L,gEAA8DA,0DAA8D,kGAAkGH,IAAIA,KAAK,gCAAgCG,8EAA8E,4FAA4FsD,IAAIA,KAAK,YAAW,uFAAkFtD,mHAAsH,iDAAiD,wIAAkIuV,kEAAiEC,IAAID,iIAAgI/R,IAAIiS,yBAAwBC,cAAc,gBAAgBnO,wdAAwd,kBAAkB,yBAAyBA,kCAAgC1H,6BAA8B,gCAA+B2U,gFAAgF3U,kBAAmB0H,kCAAgC1H,oBAAqBC,0MAAyMD,oBAAqBC,oRAAmRD,iBAAkB,WAAW0H,oDAAmD,8CAA8C,gGAAgG,qBAAkB,CAAK,+CAA6DA,YAAdzH,UAAcyH,kBAA+B1H,qBAAsBG,6PAA4PH,yBAA0B,cAAaoG,mCAAiCpG,0BAA2B,iCAAiC,aAAa,yBAAyB0H,uDAAsD1H,gCAAiC,WAAW0H,qFAAsF,uBAAqB,+FAAmG,oBAAkBmE,wCAA4C,oBAAkBnE,oDAAsD1H,qCAAsC,WAAW,yBAAyB,kBAAkBC,0KAAwKO,cAAeP,gQAAgQ,mBAAkB,0BAA4BE,uGAAwG,4BAA0BuH,sFAA0F,cAAYvH,gEAAoE,cAAYuH,gHAAoH,cAAYvH,gEAAoE,MAAmBF,eAAnBD,EAA8IA,GAA3H8V,0GAA2H,GAAI3V,+DAAmE,cAAY,GAAKH,uBAAwB,kEAA6D,kCAAuC,WAAM,oCAAwCA,4BAA6B,6HAA4HA,oCAAqC,8CAAmE,qBAAnE0H,wBAAmEA,2BAAqD,4CAA0C,iEAA8D1H,mCAAoC,yHAAwH+V,0CAA0C,8CAA6C/V,yCAA0C,4BAA4B,yEAAyEG,6BAA4B,8DAA8DK,+BAA6BR,6BAA8B,2DAA0D,MAAM,mDAAmDA,yLAAwLA,uBAAwB,6KAAkK,yLAA4K0H,4DAAkEA,+FAA4F,2BAAyBqO,6CAA0C,+CAA+C5V,2FAAuF,8CAA4CA,8CAA8CA,oIAAiI,2CAAwC,KAAKqV,8BAA2BrV,iHAAiHmD,mBAAiBrD,+BAAgC,4BAA6B,qCAAoCmG,2BAA2B,4BAA2B5E,MAAO,mCAAmC,qFAA6E,oBAA4B,gEAA2EhB,YAAOgB,2CAA+C,EAAGvB,mCAAoC,qCAAqC,MAAM,sBAAsB,yCAAyC,WAAUE,iFAAkFoB,+GAA8GuE,WAAY2P,6BAA6B,gBAAe,CAAEA,6BAA6B,cAAUxV,EAAhlO,GAAwlOE,yKAAyK,4FAA4FH,IAAIA,KAAK,sBAAsB6V,wCAAqC1V,yGAA0G,8CAA6C,gJAAgJ6J,qBAAoBgM,IAAIhM,4CAA2ClB,cAAc,gBAAgBpB,qOAAqO,sEAAqElG,IAAIA,KAAK,gHAA2G,gBAAgB,wEAAoEkG,iLAAiL,kBAAkB,2BAA2BvH,+DAA6DH,kBAAmB,eAAe,gLAA+K,uHAAiH0T,yFAA4F,0CAA0C,gEAAgE1T,oGAAmG,2BAA2BG,2MAAwM,qGAAmGA,yDAA0DA,mKAAgKqV,0EAA0ExV,kBAAmB,WAAW,kEAAiE,0CAA0C,gEAAgE,2BAA2B0H,gKAA+J,gCAAgC,mBAAmBjE,IAAIA,KAAK,6DAA0D,uIAAkIiE,oDAAoD,yDAAwDvH,yDAA0DF,0GAAsGuV,4BAA6BxV,+BAAgC0H,yBAAwB1H,qBAAsBG,kJAAgJH,yBAA0B,cAAayC,8DAA2DzC,2BAA4B,yCAAn9G,iBAAm9G,UAAuDA,wBAAyB,aAAawD,uKAAkL,2GAA+G,wCAAwChD,gEAA4DR,GAAKA,0CAA2C,gCAA+BA,mEAAiEC,oCAAqC,kCAAkC,yCAAwCA,+BAAgC,4BAA6B,0CAAwCwC,wCAAwC,8HAA6H,gEAA2EjB,SAAQ,EAAGsE,WAAY2P,6BAA6B,gBAAe,CAAEA,6BAA6B,cAAUxV,EAAl6I,GAA06IE,mEAAmE,kDAAkD,qGAAqGA,6BAA8B,qDAAoD2I,+BAA6B,GAAG3I,4GAA0G,gDAA6C,wSAA+RyT,iGAAgGqC,IAAKrC,yJAAwJlO,cAAe,gBAAgBgC,kKAAkK,kBAAkB,2BAA2B,oEAAmE,yCAAwCzH,mCAAkCD,mBAAoB,4HAA0H,OAAO+V,6BAA4BvU,iFAAkF,oDAAoD,uBAAuB,0GAAqH,oBAAoB,8TAAyU,8VAA2VxB,kBAAmB,wGAAsG,OAAO+V,6BAA4BvV,iEAAiEL,2LAAwLH,qBAAsBG,wLAAsLH,oBAAqB0H,wFAAuF1H,gCAAiC,WAAWG,4DAA6DH,mDAAkD,EAAGA,yBAA0B,cAAa0H,oHAAmH1H,6BAA8B,gBAAgB,6CAA6CA,oCAAoC,mBAAkBA,2BAA4B,2DAA2D,6NAA0NA,2BAA4B,6DAA4DA,wBAAyB,gBAAgB,8DAA8D,sBAAqBA,qDAAqDA,gCAAgCA,8BAA+B,OAAOkW,0CAA0CtC,+BAA+B1O,2BAA0BiR,iBAAkBC,2CAA2C,gEAAgElR,aAAWlD,KAAM/B,8BAA8BA,+BAAgC,4BAA6B,+BAA8B,+FAA8F,gEAA2EO,SAAQ,EAAGP,0BAA2B,0HAA0HuB,IAAIA,KAAK,oEAAiEuU,oBAAoB,8CAA4C,gBAAc,iKAAgK,8BAA2B5V,mVAA0UF,oCAAqC,oCAAoC,yDAAwDA,qCAAsC,kNAAgN,gEAA+D,oBAAoB,oLAAoL,2HAA2H,sCAAsC,iBAAiB,0BAA0B,mFAAkF6F,WAAY2P,6BAA6B,gBAAe,CAAEA,6BAA6B,YAAW,CAAEA,iCAAiC,cAAWxV,EAAxoL,GAAgpLE,qKAAsKF,4FAA0F4L,mCAAuC5L,sBAAoBE,4GAA4G,gDAA8C,sUAAsUkW,0CAAyCC,IAAKD,+EAA8EE,cAAe,gBAAgB7O,2OAA2O,kBAAkB,4BAA4B,+CAA8C1H,mBAAoB,WAAW,2CAA2C,0BAA0B+V,kBAAkB5V,mUAAoU,mBAAiBA,yCAA6CA,iEAAkEA,iEAAgE,GAAGuH,8BAAkC,2BAAyB,GAAK1H,mBAAoB,WAAW,gEAAgE,uCAAuC,+EAA+E0H,iBAAiB,4CAA4C,wNAAwN,wDAAwDvH,2DAA2D,0BAAuBqV,6BAA2B9N,qBAAyB1H,qBAAsB,wDAAyD,uCAAqCG,mRAAqRH,0BAA2B0H,sBAAqB1H,yBAA0B,cAAawW,yCAAyCxW,wCAAyC,uDAAuD,gEAAgE,uEAAuEQ,4EAA4E,uDAAuDL,wGAAyGF,yFAA0FA,gCAA8BuV,qCAAsCA,gDAAkDxV,2BAA4B,iHAAiH0H,ofAAof,wCAAwCqO,kBAAgBxU,cAAevB,4FAA4F,MAAM,wDAAuDG,+EAAwEoB,MAASvB,2BAA4B,WAAWG,8CAA+CwU,gHAA+G,EAAG3U,6BAA8B,WAAW0H,yDAA0DzH,kIAAgIyH,iDAAmD1H,6BAA8B,WAAW0H,kDAAmD,2BAAyBvH,2BAA6BH,wBAAyB,WAAW0H,yNAA0NvH,sHAAqH,EAAGH,6BAA8B0H,0EAAyE1H,4BAA6B,yDAAyD,yCAAyC,2NAA2NA,yJAAqJQ,6EAAgF,sBAAsB,yDAAyDL,mFAA0EuH,+BAAwCvH,0CAA0C,iBAAiBH,4BAA4B,0CAA0C,0DAAyDG,gFAA0EsD,SAASxD,QAAYD,2BAA4B,wEAAuE0H,mLAAmL1H,+BAAgC0H,wEAAuE1H,6BAA8B,4CAA4C0H,qHAAoH1H,2BAA4B,WAAW,4BAA4B,6GAA6GG,kCAAiC,mEAA+DA,oGAA+FA,kCAAoC,iEAA6DA,kGAAgG,uFAAuFA,8GAA8GA,uCAAsCH,6BAA8B,mDAAmDG,gCAAiC,0CAAyCA,uEAAuE,8DAA8DA,gCAAiC,8CAAwC,yEAAwF,qDAAqDA,6FAA4FH,gCAAiC,oCAAoCC,mEAAmE,oDAAoD,uCAAsCA,iCAAkC,4BAA6B,sCAAqCuW,sDAAuD,uEAAuE,gEAA2EhV,aAAQiC,mBAAuB,EAAGqC,WAAY2P,6BAA6B,gBAAe,CAAEA,6BAA6B,cAAWxV,EAA18Q,GAAk9QE,qFAAsF,8CAA8CqB,iCAAiC,0CAAyCrB,4CAA6C,8DAA8D,sCAAuCF,4CAA6CE,wCAAuC,GAAMoW,gDAA8CpW,kHAAqH,kDAAkD,kSAAkS,mBAAmB,yBAAyB,uCAAuC,iJAA+I,0CAAsC,6FAA0F,uEAAmE2F,yBAAuB,gBAAe,iCAA+B,wGAAmG,kCAAgC,8BAA2B3F,kBAAkBA,MAAIA,iCAA6B,UAA/P,CAAwQF,yCAAsC,EAAG6F,iBAAgBA,MAAIA,WAAS,wBAAwB,0LAA8M2Q,iEAAgEC,IAAKC,qUAAqU,8TAA6TC,mBAAmBC,IAAKF,icAAgcpF,IAAKuF,6RAA4RrF,cAAe,gBAAgB,yGAAoH/J,8EAA6EA,mGAAoG,kBAAkB,2BAA2BA,oBAAmB1H,qBAAsB0H,oBAAmB1H,2BAA4B0H,kCAAiC1H,qBAAsB,yBAAyB,qEAAqEQ,0NAAsN,CAAK,mFAAmFkH,yBAAwB1H,qBAAsB+W,8cAA6c/W,kBAAmB,WAAW,0GAA0G,mDAAmD,0CAA0CG,mCAAmC,8HAA8H,qCAAqC,8DAA6DoB,4IAA0I,iJAA8ImG,4BAA2B,4BAA2BvH,udAAqd,kBAAiBF,uCAAuC,qBAAoBA,2EAA52I,QAA42ID,sBAAqG,qCAAqC,oDAAmDG,2EAAoEmD,OAAUtD,mBAAoB,8FAA8FA,sOAAsO,+DAA+D,6QAA6Q,6CAA4CG,mEAA6DsD,IAASiE,sBAAqB1H,oBAAqB,oDAAmDA,2BAA4B,iCAAgCA,iCAAkCG,2DAA0DH,2BAA4B,uEAAsEA,wBAAyB,2BAA2B0H,+HAA8H1H,kCAAmC,8PAA6PA,sBAAuB,uDAAuD,6GAA4GA,+BAAgC,WAAW,YAAW,CAAEkW,uBAAuBtC,+BAA+BoD,wCAAuCC,OAAQC,kBAAiBf,iBAAkBC,yCAAwCe,qBAAsBlX,sEAAqEmX,qBAAsB,2CAA0C1P,2BAA2B1H,wBAAyB,gBAAgB,6DAA6D,sBAAqBA,mDAAmDA,+BAA+BA,2BAA4B,oKAAmKA,6BAA8B,4BAA2BA,2BAA4B,WAAW0H,mDAAoD,+FAAgG,0BAAmB,GAAG,cAAsB,6IAA6IvH,wDAAyD,qBAAmB0L,mCAAuC,oBAAmB,IAAInE,kCAAqCzH,qBAAoBE,2HAA2HuH,aAAc0D,+BAA6B1D,kBAAmB1H,uBAAwB,+DAA8D0H,oLAAoL1H,uBAAwB,iCAAgCA,2LAArwQ,QAAqwQqX,uMAAuYrX,8BAA6BA,gCAAiCA,uBAAwB,iCAAgCA,4LAAlwR,QAAkwRqX,0EAAlwR,MAAkwRrX,qEAAlwR,QAAqlSA,yBAA6BA,gCAAiCA,kCAAmC,oEAAoE,UAASA,yBAA0B,qCAAqC,2CAA2C,iCAAgC,wBAA0B0H,wDAAsD4P,iBAAoBxN,4BAA0B,6OAA8O9J,gCAAiC,SAAS,4GAA4G,UAASA,4BAA6B,kEAAkE,+CAA8CA,2CAA4C0H,4GAA2G1H,4BAA6B,mDAAmD,+IAA8IC,+BAAgC,4BAA6B,2DAA2D,yFAAyF,gEAA2EuB,SAAQ,EAAGsE,WAAY2P,6BAA6B,gBAAe,CAAEA,6BAA6B,YAAW,CAAEA,0BAA0B,YAAW,CAAEA,8BAA8B,YAAW,CAAEA,2BAA2B,YAAW,CAAEA,+BAA+B,sBAAqB,CAAEA,iCAAiC,cAAWxV,EAAn3S,GAA23SE,wHAAwH,oDAAoD,+FAA8FsR,YAAayE,8LAA4LqB,QAAS9F,gBAAiB+F,sCAAoCC,IAAMX,6RAA4RY,eAAgB,QAAQ,aAAa,qCAAqClX,gFAAgF,kBAAkB,kCAAkC,4CAA2CiD,iCAAkCtD,2DAA0DsD,2BAA4B,uEAAsEA,wBAAyB,sCAAsCiE,kEAAkE,yBAAyB,6HAA4HjE,yBAA0B,uEAAsEA,4BAA6B,kEAAkE,iDAAgDjC,+BAAgC,4BAA6B,4DAA2D,wGAAuG,gEAA2ExB,SAAQ,EAAG8F,WAAY2P,6BAA6B,gBAAe,CAAEA,6BAA6B,YAAW,CAAEA,0BAA0B,kBAAiB,CAAEA,8BAA8B,YAAW,CAAEA,2BAA2B,YAAW,CAAEA,+BAA+B,sBAAqB,CAAEA,iCAAiC,cAAWjU,EAAvjD,CAA4jDiQ,IAAKtR,wHAAwH,oDAAoD,8GAA8GyT,mCAAkC5Q,IAAK4Q,2DAA0D/P,cAAe,gBAAgB,WAAW6D,mXAAoX,uBAAqBA,+BAAkC,kBAAkB,4BAA4B,2JAA+JA,sJAAuJ,sCAAoC,2CAAuC,kCAAgC,2DAAuD,cAAYrD,oCAAuC,oBAAiBsT,oBAAwB1X,6CAA4C,EAAGD,qBAAsBG,oQAAmQH,yBAA0B,2BAA0B8C,gCAA8BiC,+BAAkC,qCAAqC/E,oEAAoE,qCAAoCA,2BAA4B,mGAAkGA,8BAA+B,qHAAoHA,8BAA+B,2GAA0GA,sBAAuB,yHAAyH,gDAAgD,4CAA4C0H,8CAA0C,CAAK,gHAAgH,+BAA+BvH,KAAIuH,oJAA+J1H,wBAAyB0H,mCAAmC,gDAAiD,uDAAqDlH,mEAAsEA,6TAA6TuV,iBAAgB,EAAE/V,oBAAqB,4EAA6E,kCAAgC2X,oBAAwB,+BAA8B,EAAG1X,+BAAgC,4BAA6B,+BAA+B,2FAA2F,gEAA2EO,SAAQ,EAAGsF,WAAY2P,6BAA6B,gBAAe,CAAEA,6BAA6B,cAAWxV,EAAxsH,GAAgtHE,6DAA8D,qFAAqFH,KAAI,CAAE,sBAAsB6D,wCAAsC1D,4GAA+G,gDAAgD,+FAAmH,cAAcuH,gBAAgB,kBAAkB,yBAAyB,WAAW,qNAAqN,6GAA6G,MAAM,kDAAiDlH,6DAA4D,sCAAqCuV,8BAA4B/T,kCAAmC+T,kBAAkB,wHAAoHtS,iEAAiE,kBAAiB,wCAAuCsS,2BAAyBvU,mCAAoCuU,kBAAkB5V,4DAA0DH,4CAAyCA,qBAAsBG,2DAA0DH,4BAA6B,0IAA9vC,QAA8vC8F,cAA0J,qCAAqC,UAAS,6CAA4C3F,yBAAl/C,QAAk/C2L,uDAA6EhG,MAAS9F,sCAAuC,MAAMG,6BAA6B,kEAAkEqB,mGAAmGrB,8HAAvzD,SAAuzDF,gBAAvzD,QAA88D,mBAAmB,qFAAqF,4CAA2C,OAAM,8DAA4DE,2BAA0BF,mCAAmCO,QAAOP,+BAAgC,4BAA6B,mCAAmC,uDAAuD,gEAA2EuB,SAAQ,EAAGsE,WAAY2P,6BAA6B,kBAAexV,EAA5gF,GAAohFE,6HAA8HF,sEAAoEE,4GAA+G,gDAAgD,+FAAyGwW,oCAAmCiB,IAAKjB,uDAAsDkB,cAAe,gBAAgBnQ,wFAAwF,kBAAkB,yBAAyB,8CAA8C,gEAAgEA,iFAAiF,iBAAiBzH,mKAAoKA,UAASA,mBAAqB,kCAA3vB,QAA2vBuD,gFAAsH,wDAAwDrD,8EAAyEK,MAAUR,kBAAmB,yCAAyC,uCAAuCG,4EAA2EH,qBAAsB0H,4MAA2M1H,yBAA0B,cAAa8X,+DAA8DtU,6DAA8DxD,2BAA4B,WAAWG,mEAAoE,iBAAgB,EAAGH,oBAAqB,wBAAwBC,yBAAztD,QAAytDE,kDAA+E,8DAA8D,wDAAwDA,8EAAyEH,KAASA,2BAA4B+W,gDAA+C9W,+BAAgC,4BAA6B,mCAAmC,6EAA6E,gEAA2EuB,aAAY,EAAGsE,WAAY2P,6BAA6B,gBAAe,CAAEA,iCAAiC,YAAW,CAAEA,6BAA6B,cAAWxV,EAA3wE,GAAmxEE,kHAAkH,kDAAiDF,sLAAqL+F,UAAS,eCC9z5D+R,m4BAAqiE,qCAC9iEC,8BAAsC,oCACtC,gBAEA,SACAxM,cACA9D,mBACAA,qBACAA,iBACAA,qBACA,CACAuQ,iBACA,MACAC,aADAC,eAEAR,cACAS,QACAC,kBACAH,WACAI,oCAEA,CACAC,WACA7Q,gBAGAA,iBACAA,kCACAA,eACAA,mBACAA,eACAA,kBAGA,CACA8Q,sBACA,QACA9Q,6BACA,+BACA,OAEA,gBACA,IAEA+Q,EAFAjX,aACAkX,KAEA,KAAkBlX,OAAQA,EAC1BiX,OACAA,WACAA,sBACAN,qBAEAM,UACAC,OAEAC,mBACAA,SAGAD,IACAN,SACA1Q,gCAEAiR,WACAR,aACAzQ,+BACAyQ,cAEAS,cAEAlR,iBACA,QACAA,iBAEA,CACAmR,aACA,qBACA,eACA,WACAV,GACAW,WACAT,WACAM,SACAI,WACA5J,YACA6J,cAGAC,YAEAd,CACA,CACAe,cACAxR,sCACA,CACAhB,UACAiS,cAGAjR,kCACA,CACA9C,OACA,uCACA,CACAuU,SACA,6BACAhB,IAGAA,aACAA,mBACAA,4DACAzQ,gBACA,CACAoR,WACA,kBACA,SAEA,4BACA,wCAIA,CACAjK,QACA,4BACA,uBACA,OAEA,gBACA,iBACA,KAAcrN,OAAQA,EACtBmX,cAEAR,WACAzQ,uCACA,CACAD,UACA,6BACA,EAEA,cAEA,uBACA2R,IACAC,iBACAC,SAEAC,aACA,kBACAC,qBACA,0CACA,EACAC,gBACAC,WAGA,SACAlO,qBACA,aACAmO,MACAC,KACAD,EACAE,EACAD,SAEA,YACAA,OACAC,EACAF,IAEAjS,gBACAA,oCACAA,qCACAA,gDACAA,kDACAA,oBACAA,eACAA,aACAA,aACAA,WACAA,qBACA,CACAgK,SACA,mBACA,CACAoI,cACA,iBACApS,iBACA,iCACAqS,gBACAC,mBACAtS,cACAA,kDACAA,eACAA,oBACAA,aACAkS,KACAD,EACAE,EACAD,SAEAlS,eACAkS,OACAC,EACAF,GAEA,CACA,CACAM,SACAvS,eACAA,sBACAA,gBACAA,iBAEA,CACAwS,QACA,sBACAC,iBACAlK,aACAyJ,aACAU,aACAT,WACA,MAEA,GADAjS,8BACAA,aAGA,OAFAA,uBACAA,iBAGAqS,IACArS,mBAGA4R,QACAA,eACAA,0CACA5R,gCACA,CACA2S,OACA,4CACA,2BACAC,QACAC,MACAC,OACa,EAEb,CACAvC,WACA,sBACAqC,qBACA,YAAuB9Y,WAAqBA,IAC5C8Y,SAEA,EAGA,SACA9O,iBACA9D,cACAA,yBACAA,iBACA,CACA+S,aACA,UACA,OAEA,kCACAC,mBACA9P,0CACA,aACA,UACA,OAEA,WACA,iBACA+P,WAEAC,iCACAnF,IACAkC,aACA1H,mBACAyK,YAEa,EAEb,CACAG,qBACA,kBACAC,UACA,MACA,SAEA,oCACA,kBACAC,sCACAhW,aACa,QAGbiW,CACA,CACAC,uBACA,yBACAD,KACAlC,oCACAoC,iBACAC,aACA,MACA,iBAAkC3Z,OAAQA,GAC1C,aACA,qBACA,SAEA,kBACAwZ,qCACA,QACA,CACA,aACA,WACA,iBACA,KACA,mBACArE,gBACA,QACA,CACAA,WAGAiD,eAIAd,uBACAkC,WAJAjW,MAKA,CACA,QACA,CACA+U,YACA,6BAEA,YADAlP,mBAGA,oCACA,iBACAwQ,uBACA,QAFA,CAIA,EAEA,iBACA,WACAC,iBACA,YAAmB7Z,WAAiBA,KACpC,gBACA8Z,eACAxC,gBAEA,CACA,qBACA,CACA,iBACA,MACA,OAEA,gBACA,KAIA,mBACA/T,6BAAmD+V,GACnDS,WACAC,kBAGAV,EATA/V,WAUA,CAEA,iBACA,yBACA0W,YACAC,qBACAC,qBACA,OACAxC,YACA9X,UAEA,CACA,mBACA,UACA,SAEA,gBACAsR,UACA,OACAkB,UACA+H,YACAC,eACAC,aAEA,CACA,eACA,YACA,cACA7b,QACA+B,UACAF,WACAgE,UAEA7F,UAEA,CACA4T,MACA+H,QACAC,SACAC,OACAlU,gBAEA,CACA,iBACA,WACAmU,8BACA,QACA,mBAAuCva,MAAUA,EACjD6Z,mBAEA,QACA,CACA,wBACA,eACAW,oBACA,YACA,YAGA,oBAAmCxa,MAAUA,GAE7C,GADAya,QACAA,OACA,SACA,SAEA,KACA,CACAC,cACAC,mCACAnW,KAEA,CACA,SACA,CACA,eACA,uBACAoW,sBACA,UACA,mBAAmC5a,MAAUA,EAC7CiU,OACA2G,MACA/b,IACAsS,QAGA,QACA,CACA,iBACA,6BACA,sCACA,CACA,mBACA,SAAc0J,QAAiBC,QAAiBC,iBAChD,CACA,eACA,MAAYb,uCAAuCc,kBACnD,OACAd,iCACAC,iCAEA,CACA,mBACA,wBACA,sBACA,CACA,qBACA,uDACA,mBACA,mBACA,cAEA,CACA,WACA,CACA,iBACA,MAAYvD,uBAA6BqE,EACzCC,6BACYC,2BAAyCJ,EACrDK,SACAC,SACApH,YACAqH,WACA,MACA,YAAmBtb,MAAUA,GAC7B,cACAgD,CAAgBoY,YAAmCnE,EAEnDsE,GADAtE,2BACAoE,aACAE,OACAA,yBACAA,6BACAA,uCACAd,IACA,CACA,CACA,iBACA,iBACA,sDACA,CACA,iBACA,aACAvK,UACAsL,eACAf,eACAxV,QACAwW,eACA1c,gBAEA,CACA,mBACA,aACAmR,UACAwL,YACAC,cACAC,WACAlG,UACAzQ,QACAwW,eACA1c,aAEA,CACA,iBACA,2BACA8c,0BACA,KAGA,gBACA,kBACA,kBACA,uCACA,cAEAX,aACA,+DACAA,qBAEA,EACA,CACA,oCACAY,+BAA6EC,GAC7EC,uCACAnC,cACAoC,aAEA,SAIAjS,iBACA9D,aACAA,gBACAA,aACAA,wBACAA,gCACAA,iCACAA,oBACAA,iBACAA,kBACAA,wBACAA,2BACAA,uBACAA,uBACAA,4BACAA,2BACAA,qBACAA,kBACAA,sDACAA,gDACAA,iBACA,CACAgW,aACA,yBACAhW,iBACAA,kBACA6U,0BACA7U,mBACAA,0DACAiW,kLAEA,CACAC,eACAlW,gBACAmW,qBAEAnW,YACA,CACAoW,aACA,mBACAvB,mBACAS,oBACAe,mCACAC,oCACAC,oCACAC,oCACAC,cACAC,uBACAC,uBACA9B,+BACAA,+BACAA,+BACAA,+BACAA,8BACA,CACA+B,aACA,2CACA,CACAC,UACA,4CACA,CACAC,iBACA,2BACA,CACAC,kBACA,yBACA,qCACA,CACAC,QACAhX,qBACA,CACAiX,WACA,yBACAjX,YACAkX,oBAEArC,YACAsB,KAEA,CACAgB,aACA,0BACAzV,sBACAE,aACA,SACA5B,yBACU4B,OACV,MACAsV,WACA,yBACAf,MACAtB,YACA,CACAnT,2BACA0V,WAEApX,kBACAA,YACA,CACA,CACAqX,cACA,yBACArX,kBACAA,0BACA6U,sCAEA,CACAyC,yBACA,yBACAhC,oBACA,SACAtV,kBACA,mBACA6U,0BACAA,oBACA0C,KACApB,MACAtB,iBAEA7U,yBACAuX,oBACAC,kBAEA,CACAzE,YACA,0BACA0E,iCACAC,4CACA1X,mDACAA,mCACAA,uBACA,CACA2X,WACA,MAAgBC,uBAAmC5X,MACnCiV,qBAAqBJ,EACrCK,SACA,IAEApb,MAFA+d,iCACAxY,sBAEA,sBACAwV,YACAA,aACAY,QACU,CAEVA,EADAvC,SACAlT,6BACc8X,SACd9X,8BAEAA,iCAEA,sCACA,QAAuBlG,MAAWA,EAClC+a,sBACAgD,IACAE,MACAF,MAEAxY,KAGAwV,WACA,CACAmD,GACAR,UAEA,CACAS,4BACA,MAAgBhD,mBAAmBJ,EACnCK,SACAC,SACA+C,gBACAC,QACA1C,eACA,UACA,YAAiC3b,MAAUA,EAC3CiF,MACA0W,MACA7Z,uBACAkB,qBAGA,QACA,CACAsb,wBACA,MAAgBC,mBAAmBxD,EACnCY,eACA,YACA,YAAiC3b,MAAUA,EAC3CiF,MACAgS,OACA0E,MACA9c,kBACAsS,mBAGA,QACA,CACAqN,yBACA,MAAgBD,mBAAmBxD,GACnB0D,+BAAiCvY,cACjDyV,eACA,YACA,YAAiC3b,MAAUA,EAC3CiF,MACAgS,OACA0E,MACA9c,qBACAsS,sBAGA,QACA,CACAuN,aACA,kCACA,CACAC,kBACA,+BACA,CACAC,kBACA,MACA7D,mBACAvW,YAKA,UAJA,CACAqV,QAJA3T,YAIA,GACA+V,wCAEAzX,WACAiX,QAEA,CACAoD,+BACA,kBACA,qBACA,6BACAtD,OACAA,WACA/W,kCAEAsa,wBACAA,uBACA,CACAC,eACA,yBACAC,YACAjB,0BACAzC,WACA2D,yBACA1D,qBACAuD,GACA5E,6BACAC,+BAEgBD,aAAiCgF,MACjD,QACA,aACAvD,OACA,kBACA,8BACA,CACA,QAAmB3b,MACnBmf,MAGAjZ,qCACA6X,MAL6B/d,GAS7B,KACA,UAA8BA,OAAQA,EACtC,QAGA,qCACA,MAGA,QACA,CACAof,sBACA,iCACAnD,KACA,UACA,mBAAyCjc,MAAUA,EACnDwE,eACAmW,OACAsB,UAGA,QACA,CACAoD,iBACA,QACA,CACAC,oBACA,yBACAnE,WACAoE,WACA5D,oBACA,OACA6D,4CACAhb,4CAEA,CACAwS,WACA,yBACA9Q,0BACA6U,6EACA,CACAzC,WACApB,OACA,kBAEA6D,mBACA0E,aACAC,EAHAxZ,WAGAyZ,UACAzP,KACAyH,qBACAiI,8BACAC,uCACA,MAIA,IAHA9E,WACAA,wBAEA/a,IAAuBA,QAAmBA,GAC1C,aACA0V,WAGAA,YACAxF,UAEAwF,YAEA,CACA,QAAmB1V,aAAmBA,EACtCkQ,cAEA,CACA4P,cACA,6BACA,uHACA,CACAC,kBACA,0BACA,MACA,yCACA,iCACAC,qDACAA,2BACAA,gBACAA,qBACA,MACAA,wEACAA,YACAA,kCAEA,oBACAA,SACAA,CACA,CACAC,gCACA,gEACA,CACAC,+BACA,+DACA,CACAC,wCACA,qBACA9Y,uBACA+Y,UACArE,OACAsE,kCACA,KACA,eAEA,0BACA1C,0CACA2C,KACA,GAAeC,SACf,QACAA,EACA,IACA,CACAA,EACA,IAEA3C,yCACA4C,8BAEAvE,4BADA,2BACAqE,GACA,mBACArE,YACA5U,6BAEA4U,CACA,CACAwE,0BACA,mBACApZ,uBACA+Y,eAAsCM,IACtC3E,OACA,KACA,SAEA,MACA,6BACA,0BACA4B,4CACAC,yCACAtE,4CACA,CACA,kCACA,yBACAjS,uBAEAmS,CACA,CACAmH,oBACA,aAGA,kEAA6ErH,GAC7E,CACAsH,oBACA,+CACA,CACAC,uBACA,4CACAC,sBACAC,2BACAH,kCACA,uCACA,CACAG,gBACAH,iBAEA,CACAI,uBACAC,MACA7X,mBAEAlD,wCAEA,CACAgb,2BACAH,WACA7a,6CAEA,CACAib,mBACAzL,WACA,2BACAxP,yCACAoT,yCAEA,CACA8H,wBACAlb,+BACA,CACAmb,qBACAnb,+BACA,CACAob,2BACA,iCACA5L,GACAxP,oCAEA,CACAqb,wBACA,iCACA7L,GACAxP,oCAEA,CACAsb,mBACA,mBACA/B,wBACA,kCACAvZ,aAEAA,kBACA,iBACAub,WACA7B,gBACAA,GACA1Z,gBAEAub,IACAvb,8BACUub,KACVvb,2BAEA,CACAwb,0BACA,yBACA9Z,SACA/H,MACA,MACA,YAEA,IADA8hB,YACA3hB,aAAoCA,KAAUA,IAC9C2hB,aAIA,IADAC,KACA5hB,IAAuBA,MAASA,EAChC4H,8BAEA1B,eACA0b,aAEA1b,gBACA2b,GACA3b,kCAEA,CACA4b,yBACAC,qBACA,yBACA,kBACA,8BACAhH,YACAsB,OAEA,CACAtB,kBACA,CACAiH,SACA,iBACA9b,2BACU,CACV,eACAA,YACA,CACAA,8BACAA,cACA+b,GAEA,CACAC,cACA,yBACAhc,YACA,kBACAA,gCACA0Z,GAEA,CACAuC,aACAjc,YACA,kBACAA,+BACA,GAEA,CACAkc,eACAlc,YACA,kBACA,EACA,GAEA,CACAmc,mBACAzC,GACA1Z,YACA,kBACAyR,EACAiI,IAGA,2BACA0C,GACApc,YACA,kBACAyR,EACA2K,GAGA,CACAC,iBACArc,YACA,kBACA,EACAF,kBAEA,EAGA,iBACA,mBACA,qCACA,SACA,uBAAmDhG,IAAUA,IAC7Dic,kDAEAjB,oCACA,CACA,oBACA,CACA,eACA,iBACAiB,eACA,IACAjc,QADAka,YAEA,aACA,wBAGAsI,QACAtI,gCAEA3U,MAEA,mBAAqCvF,MAAUA,EAC/CyiB,2BACAC,IAGA,IADAnd,SACAvF,qBAA0CA,MAAUA,EACpDyiB,uBACAC,IAEA,QACA,CACA,qBACA,uBACA,QACA,cACAC,6BACAC,oBAEAD,MACAC,KAEA,CACAC,UACAD,QACAjL,sBAEA,CACA,qBACA,iBACA8K,OACA,sBACAnd,2BACA,6BACA,WACAC,kCAEA,WACAD,SAEA,gCAEA,OACAud,MAFAC,kBAEAC,EACAH,sBACAjL,QAEA,CACA,qBACA,wBACAqL,kBACA9I,gBACAC,gBACA,QACA8I,IACAH,0BACAI,IACAD,KAEAhM,YACAA,WACAiM,WACAD,SACAtL,QACA9X,MACAqa,MACAC,MAEA,CACA,qBACA,aACAgJ,YAEAlM,uBAEAA,CACA,CACA,qBACA,iBACAsI,WACAnB,gBACAC,QACA1C,KACA,YACA,cAAyC3b,MAAUA,EACnDojB,OACAnM,KACAA,6BACA0E,oBAEA,QACA,CACA,eACA,gDACA,CACA,mBACA,aACA0H,OAEA9D,sCACA,CACA,eACA,cACA,qBACAtF,aACAtC,SACA9X,YAEAoa,aACAtC,WACA9X,SAEAoa,GACA5H,QACAgI,YAEAhI,UACAgI,SAEA,CACA1C,QACA9X,MACAoa,UACA5H,MACAgI,SAEA,CACA,qBACA,sBACA,WACA,MAEA,YADAiJ,mBAGA,UAOA,YANAA,iBACAjR,OACA+H,SACAC,UACAC,UAIA,MAAY3C,wCAAwC4L,MACpD,kBACAD,yBACA/H,eACAiI,KACUjI,kBACViI,KAEAzK,kBACAyK,MAGAzK,kBACAuK,iBACA,CACA,qBACA,OAEAE,EAFAvJ,EAEAwJ,GADAD,YACAljB,KAEAmjB,SAGA,CACA,mBACA,wBACA,CACA,mBACA,iCACA,CACA,eAAwCC,iBAAgBd,GACxDU,wCACA,CAvxBAK,GADAC,GACA,eACAD,GAFAC,GAEA,2BACAD,GAHAC,GAGA,wBAsxBA,oBAoCAzF,4BACA,kBACA,CACAG,wBACA,kBACA,CACAE,yBACA,MAAgBrD,mBAAmBJ,GACnB0D,+BAAiCvY,cACjD2d,mBACAC,mBACAnI,KACA,YACA,cAA6C3b,MAAUA,EACvD+jB,OACA9M,KACAA,6BACA0E,0BAEA,QACA,CACAkD,+BACAmF,qCACA,kBACAC,iCACAnF,4BACAA,4BAEA,CACAO,iBACA,QACA,CACAC,oBACA,0BACgBnE,mBAAmBJ,EACnCY,oBACAsI,YACAzf,oEACA,OACAgb,uCACAhb,QAEA,CACA0X,aACAhW,4BACA8d,mBACA9d,iBACAqV,6BACA,CACAjD,UACA,yBACApS,6CACA,CACA4b,wBACA,qBACgB7c,qBAAuBsa,WAAarZ,KACpDge,mBACAC,mBACAC,oBACgBrD,kCAAkC7a,4BAClD,YAA2BlG,MAAmBA,KAC9C,0BACAqkB,oBACAH,OACAI,QACcpe,iCACdqe,qCACAhJ,kBAA+CgE,QAC/C+D,GACAa,aACAD,YACAM,gEACA3lB,oBACAsS,oBACAjE,iCACAuX,iCAEA7D,IACA0C,uEAEA,gCACAoB,YACAC,gBACAze,8BACA,CACA,CACA0e,gBACA,MAAgBzJ,UAAUjV,iBAC1BqU,gFACAsK,oBACA3J,KACA4J,MACA,kCACA3V,sBACA,mBACA,UAGA,iBACA,2BAGA,+DACA+L,gBAEAH,aACA,MAGA,iBACAG,eAEAA,CACA,CACA6J,kBACA,uCACA,CACAC,sBACA,6BACA/f,6BACA,yBACA,CACAggB,YACA,qBACAlK,mBACAI,WACA+J,KACA,QACA,wBAA4CllB,MAAUA,EACtDklB,wDAEA,uBAEA,OACAhL,IAFAiL,SAGAD,SACAvN,oBACA9X,gBACAkjB,iCACA/H,QACAoK,kBACAxC,+CAEA,CACAyC,4BACA,MAAgBvH,aAAeyB,6BAA2CjG,SAAa4K,wBAAqChe,KAC5Hof,OACA3J,oBACAsI,YACAsB,QACA,IAGAjB,IAHA9f,YACAmT,IACAzF,6BAEAA,QACAyF,MACAzF,KAEAqT,IACA/gB,aACA0N,sBACA,8BACAyF,KAEAA,MAEA,qBACA,4BAOA,GALA2M,EADApe,gCACAqZ,wBAEA2E,EAEAvB,MACAG,eACAH,cACAne,QACA0f,QAEA,gCACAsB,0BACAtL,gBACAC,gBACA+J,4BACAI,MACApG,QACAvC,+EAEA,CACA,8BACA,0CACAuI,KACAvB,IACA,CACA,OACAA,OACAuB,OACAI,OACAmB,aAEA,CACAC,8BACA,gBACApM,eACAwL,aACAa,4BACA,QACA,cACA,8CACA7G,kDACA8G,oEACAH,8BACA9C,6BACA,MACA8C,kDACA9C,4BAEA,OACAuB,WACAI,WACAmB,SACA9C,OAEA,CACAzL,OACA,yBACAqI,WACAsG,SACAvK,WACA,QACA,KAActb,MAAUA,EACxB,kCACA6lB,oBAGA,EA9QAlC,GADAmC,GACA,YACAnC,GAFAmC,GAEA,YACAC,sBACAC,sBACAC,sBACAC,iBACAd,WACA5L,YACA2M,SACApnB,cACAukB,YACA,IACA,IACA,OACA,QACA,cAKAK,GArBAmC,GAqBA,aACAM,QACAC,SACAtnB,gBACAqT,UACAkU,MACAlU,YAGAmU,SACAxnB,cACAynB,mBAkPA,oBA2BAtK,aACAhW,4BACA8d,kBACA,CACA7F,4BACA,0CACA,YAAuBne,WAAmBA,IAC1C2b,wDAEA,QACA,CACA2C,wBACA,sCACA,YAAuBte,WAAmBA,IAE1C2b,gBADA/T,OACA,+CAEA,QACA,CACA4W,yBACA,uCACA,YAAuBxe,WAAmBA,KAC1C,eACA2b,wEACA,CACA,QACA,CACA0D,iBACA,8BACA,QACA,qBAAqCrf,OAAQA,EAC7Cma,6DAEA,aACA,CACAmF,oBACA,yBACAlB,8BACgBG,mBAAmBxD,EACnCY,oBACA9c,0BACAsS,0BACA3Q,YACA,OACAgf,eACAhb,qCAEA,CACA8T,UACA,8BACApS,mCACA,CACA4b,wBACA,qBACgB3G,mBAAmBjV,kBACnB6a,kCAAkC7a,4BAClDkV,SACAC,SACA,YAA2Brb,MAAmBA,KAC9C,aACA2b,wBACA2H,KACAmD,2DACAC,mDACApD,0BACA1C,IACA0C,mEACApG,IACAoG,qBAGApd,2BACA,CACA,CACAga,+BACA,0BACA,2CACAjE,YACAA,mBAAqCA,GACrClC,cAGA,iBACA,qBACAkC,YAEAA,6BACAA,CACA,EAGA,mBACA,QACA0K,IACAC,IACAC,IACA,SACA,UACAC,MACAC,cACAC,cACAC,cACAC,cACAC,gDACAC,iDACAC,WACAC,YACAC,YACAC,eACAC,UACAd,UACAC,WACAC,UACA,CACA,OACAY,SACAd,SACAC,UACAC,UAEA,CAlJAlD,GADA+D,GACA,eACA/D,GAFA+D,GAEA,YACA3B,sBACAC,wBACAxM,YACA2M,SACApnB,cACAukB,YACA,IACA,IACA,cACA,cAKAK,GAjBA+D,GAiBA,aACAtB,QACAvnB,GACAE,eAEAoS,GACApS,kBA6HA,oBAuEAiL,iBACAga,WACA9d,4BACAA,wBACAA,wBACAA,oBACAA,mBACA,CACAoW,cACAuB,WACA,+BACA9C,mBACA,sBACAA,gBACU,CACV,IAKA/a,IALA2nB,WACA,aACA,MAAwB1T,eAAgB/N,cACxCyhB,gBACA,CAEA,cAAiD3nB,MAAUA,EAC3D+a,iBAEA,CACA,CACA6M,eACA,mCACA,CACAC,oBACA,qCACA,CACAC,sBACA,SACA3N,MACA,YAAuBna,oCAAqCA,EAC5D,mFACA,gDACA+nB,mBACAC,wBACA9N,gBACAC,iBACA,CAEA,OACA4N,WACAC,kBAEA,CACA1P,UACA,oBACgBqH,aAAa/I,EAC7BmE,mBACAkN,SACAC,qEACAC,+CACAC,wCACAC,mCACgBL,4BAA4B9hB,4BAC5BuhB,uCAAuCa,UAGvDC,qBAFA5I,cACAA,eACA,KACA6I,4BAEAC,KADA3F,iBACA5c,qCACAA,iBACAA,iBACA6U,8BACA7U,2DACAA,kDACAA,mCACA,CACAwiB,oBACA,qBACA3N,mBACAiN,2BACA,6GACA,EAEA9hB,8CACA,CACA4b,wBACA,oBACAlL,aACA+I,cAGAgJ,qBACAC,qBACAC,KAJAjS,UACAzB,UAGA0T,aACAC,uBACAN,wBACgBzH,kCAAkC7a,4BAClD,IACAlG,EADA+oB,sBAEA,QAAmB/oB,MAAWA,EAC9B+oB,4BAEA,QAAuB/oB,QAAmBA,GAC1C,iCACAgpB,OACA1F,GACAzkB,iBACAsS,iBACA4X,aACAjC,aACAkB,gBACAQ,cACAM,eAEAlI,IACA0C,oEAEAyF,KACA7iB,2BACA,CACA,CACA+iB,iBACA,yBACAC,SACA,IACAlpB,EADAmpB,IAEA,QAAmBnpB,WAAqBA,KACxC,qBACA,qEACAmpB,eAEA,CACA,QACA,CACAC,0BACA,+BACA,sBACAC,mBAEA,CACA,CACA/J,oBACA,MACA1I,aACAwH,oBACA5Z,KAHA0B,iBAGA8Y,6BACA,OACAQ,eACAhb,QAEA,CACA8kB,qBACA,QACA,mBACA,cACA,MACA,iCAA0DtpB,MAAUA,EACpE,0BACA+a,sBACAkN,SACAhN,eACA,KACA,CAGA,MACA,SAEA,mBAAuCjb,MAAUA,EACjDsZ,iCACA,0BACAa,sDAGA,QACA,CACAoP,gBACA,QACA,uBAA2CvpB,MAAUA,GACrD,0CACAma,0CACA,CACA,QACA,CACAqP,wBACA,QACA,YAAuBxpB,MAAkBA,EACzCkG,iCACAujB,2BAGA,QACA,CACAC,kBACA,2DACA,CACAC,gCACA,oEACA,EAzQAhG,GADAiG,GACA,iBACAjG,GAFAiG,GAEA,YACA7D,sBACAC,sBACA7Q,WACA0U,iBACAhB,iBAEArP,YACA2M,SACApnB,cACAukB,YACA,gBACA,WACA,cACA,cACA,aACA,IACA,IACA,SACA,cACA,aAIA8E,aACAL,WACAC,kBACA8B,cACA5B,UACAvL,gBAEAgH,GAjCAiG,GAiCA,eACAG,6BACAC,8BAEArG,GArCAiG,GAqCA,aACAK,cACAC,SACAC,QACA/L,QACAgM,kBACA,eACA,uCACA,MAAoChM,QAAUiM,uBAAyBzT,iBACvE,4BAEA,QADAA,oBACAqE,uBACA,OACAhX,OACAqmB,4BACAC,0BACAC,YACAC,wBACAJ,aACAK,+BACAzlB,QACA,EAEA,CACA,QACA,GAEA0lB,eACAR,sCACAA,gBACA,MA0MA,oBAkBAjO,aACAhW,4BACAA,2BACA8d,kBACA,CACA1L,UACA,0BACgBkD,gCAAgDT,EAChE6P,iCACA,IAAcjT,iBAAiBkT,UAC/B3kB,kBACAA,kBACA4kB,QACAnT,IACAiI,YAEAmL,oBACAA,2BACAA,4BACAA,WACA,6CACA7kB,wBACAoT,iBAEAA,+BACApT,6BACA8kB,YACA1R,WACSmC,GACTvV,4BACA,CACA4b,wBACA,qBACgB3G,yCAAyCjV,kBACzC6a,kCAAkC7a,4BAClDkV,SACAC,UACgB4P,sBAAsB/kB,aACtCglB,mCACAC,gDACAtrB,MACAurB,WACA,+BACA,YAAuBprB,MAAiBA,GACxC,aACAsjB,SACA,cACAA,UACA,QACA,CACA,0BACA+H,YACA5E,mCACAC,mFACApD,gCACAA,kCACAgI,IACAhI,WACAA,iBAEA1C,IACA0C,oEAEA6H,GACAjlB,4BAEAqlB,GACA,CACA,CACAlM,iBACA,yBACA7D,YACAgQ,sCACA5jB,aACA,aACA,SAEA,qDACA6jB,iEACA,wBACA,CACAvU,OACA,yBACA6D,kEACAiJ,YACA,EAtGAL,GADA+H,GACA,aACA/H,GAFA+H,GAEA,YACA3F,0BACAC,wBACA2F,YACAV,cAEAtH,GARA+H,GAQA,aACAtF,QACAC,SACAtnB,iBAEAwnB,SACAxnB,kBA4FA,oBA0EAiL,iBACAga,WACA9d,wBACAA,uBACA,CACAoZ,oBACA,MACA1I,aACAwH,oBACA5Z,KAHA0B,iBAGA8Y,+BACA,OACAQ,eACAhb,QAEA,CACAga,yBACA,6BACA,CACAlG,UACA,8BACApS,qBACAA,mCACA,CACA6Y,YACA,MACAD,GACA5E,6BACAC,8BAEA,OALAjU,iBAKA0B,qBACA,6BACAgkB,4CACAjQ,UACAmD,SAEAnD,UACAmD,YAIAA,CACA,CACA+M,gBACA,mBACAlM,cACAmM,YACAC,0CACAvD,kBAEAC,KADA3F,2DACAlM,2BACA1Q,gCACAA,mCACA,CACA4b,wBACA,oBACAlL,aAEAoV,EADApV,UACAzB,UACA6F,0BACA2N,YACAC,YACAqD,2BACA,IACAjsB,EADAksB,IAEA,wCACA,QAAmBlsB,MAAWA,EAC9BksB,6BAEA,QAAuBlsB,MAAmBA,KAC1C,aACA,QACA8mB,8BACA0B,gFACA0D,IACAhP,IACA8O,iBACAxD,KAEAwD,kBACAjD,QAGA,SACAlqB,IACAsS,IACA2X,cACAN,cACAO,aACAjC,WACAxN,+DAEApT,2BACA,CACA,CACAimB,uBAEA,QACA,OAFAjmB,iBAEA0B,sBACAgkB,6DACAhM,MAGAA,CACA,CACAwM,qBACA,yFACA,EAnLAzI,GADA0I,GACA,kBACA1I,GAFA0I,GAEA,YACArG,sBACA7Q,WACA0U,iBACAhB,iBAEArP,YACA2M,SACApnB,cACAukB,YACA,IACA,IACA,aACA,WACA,cACA,iBAIA3G,cACAoM,eAEApF,GAxBA0I,GAwBA,aACApC,cACAC,SACAC,QACA/L,QACAgM,kBACA,eACA,uCACA,MAAoChM,QAAUiM,uBAAyBzT,iBACvE,4BAEA,QADAA,oBACAqE,uBACA,OACAhX,OACAqmB,4BACAC,0BACAC,YACAC,wBACAJ,aACAK,+BACAzlB,QACA,EAEA,CACA,QACA,GAEA0lB,eACAR,sCACAA,gBACA,IAGA/D,QACA5lB,GACAzB,oBACAutB,YACA7e,YAEA+Y,eACAF,MACAiG,aAEAC,aACA/e,YAEAsb,iBAiHA,qBACApF,GADA8I,GACA,YACA9I,GAFA8I,GAEA,YACArE,SACAL,WACAC,kBACA8B,gBAIA,oBAqBAxK,oBACA,gCACA3D,oBACA,OACA6D,uBACAhb,uCAEA,CACAga,yBACA,6BACA,CACAlG,UACA,yBACAyS,YACA2B,aACAtO,uBAEA,GADA2M,WACA,cACA,6CACA7kB,wBACAoT,iBAOApT,4BALA,CACAymB,SACAC,8BACAtT,WAEAmC,EACA,CACAvV,mCACA,CACA4b,wBACA,gCACA5E,cACA,YAA2Bld,MAAmBA,KAC9C,aACAsZ,wDACAuT,oDACAhuB,kBACAsS,kBACAmS,GACAzkB,IACAsS,IACA+a,cACAY,wBACAxT,WAEApT,2BACA,CACA,EArEAyd,GADAoJ,GACA,cACApJ,GAFAoJ,GAEA,YACAhH,0BACAC,wBACArJ,cACAgP,YACAlM,UACAsL,MACAiC,iBAIArJ,GAbAoJ,GAaA,aACA9C,cACA7D,QACA5lB,GACAzB,wBAwDA,oBAqBAugB,oBACA,yBACAlB,8BACgBG,mBAAmBxD,EACnCY,oBACA9c,0BACAsS,0BACA,OACAqO,eACAhb,uBAEA,CACA8T,UACA,0BACgB1Q,WAAqBmT,EACrC6P,iCACA,IAAcjT,iBAAiBkT,UAO/B,GANA3kB,kBACAA,kBACA4kB,QACAnT,IACAiI,YAEA1Z,uBACA,MAAoBsV,sBAA4BT,EAChDgQ,oBACAA,2BACAA,4BACAA,WACA,6CACAzR,+BACApT,6BACA8kB,YACA1R,WACamC,EACb,CACAvV,4BACA,CACAqX,cACA,MAAgBoO,YAAYzlB,cAC5BA,6BACAA,gEAEA8d,mBACA,CACAlC,wBACA,qBACgB3G,yCAAyCjV,iBACzD+mB,sCACAlM,2BACAH,2BACAxF,SACAC,UACgB4P,sBAAsB/kB,aACtCglB,mCACAC,gDACA,+BACA,YAA2BnrB,QAAmBA,GAC9C,aACA2b,oBACA2H,SACA+H,WACA5E,mCACAC,kFACApD,+BACAA,kCACAgI,IACAhI,WACAA,iBAEA1C,IACA0C,oEAEA6H,GACAjlB,4BAEAqlB,GACA,CACArlB,+BACA,CACAmZ,iBACA,yBACAzX,aACA,2BACA,QACA,qBAAyC5H,OAAQA,EACjDma,6DAEA,aACA,CACA,kBACAqR,sCACA,aACA,SAEA,qDACAC,iEACA,wBACA,EAtHA9H,GADAuJ,GACA,gBACAvJ,GAFAuJ,GAEA,YACAnH,sBACAC,wBACA2F,YACAqB,UAEArJ,GARAuJ,GAQA,aACAC,aACA1R,cAEA2K,QACAvnB,GACAE,eAEAoS,GACApS,kBAyGA,sBACAquB,eACAtH,iBACA4B,oBACAkC,sBACA8B,kBACAW,uBACAI,iBACAM,mBACAG,uBAOA,cACA,kGACA,CAMA,SAUAG,mBACAjkB,6BACA,CACAY,eACA9D,kBACA,CAEA0G,QACA0gB,UACA,WACA,CACAzP,QACA,WACA,CACA0P,SACA,WACA,CACAroB,MACA,WACA,CACAsoB,OACA,WACA,CACAC,UACA,WACA,CACAC,QACA,WACA,EAEA,QACAC,UAGA,qBACA,MAAY1S,+BAA+B2S,EAC3CzS,uBACA,wCACA,+BACA,MACA,gBACU,qBACV,aACA2D,+CACA,MACA,mBACAjf,aACA,OACAguB,QACAC,QAEA,CACA,CACA,CACA,OACAD,KACAC,cAEA,CACA,uBACA,yCACAtpB,OACA,uBAA2CxE,MAAUA,GACrD,MAAgBiF,gBAAgBsV,MAChBsT,WAAWE,eAC3B,YAAwB5rB,OAASA,GACjC,aACAuT,QACAsY,QAEA,CACA,CACA,CACA,eACA,4BACAC,sBACA,qBACA,8BACAC,wBACA,6CACA,CACA,CACA,uBACA,WACA,+BAeAC,SAZA,iBACAC,yBAGA1Y,sBACAyB,QACAzB,UACA+E,eACAxV,SAGA,GACA,GACAkS,CACA,CACA,qBACA,SAkBA,gBAjBA,kBACA,MAAgB4R,yBAAyBrT,YACzC,aACA,YACA2Y,IACgBnC,SAASoC,MACzBzvB,MACAsS,QAEAod,WACApX,QACAzB,UACA+E,eACAxV,SAGA,GAEAkS,CACA,CACA,yBACA,SACA,cACA,+BA6BA,gBA5BA,kBACA,6BACA,SACA,OAEA,4BAEA,IADAiX,yBACAI,EACA,OAEA,eACAC,KACAtX,GACA,CACAzB,UACA+E,eACAxV,UAGAypB,KACUD,OACVtX,QACAzB,UACA+E,eACAxV,SAGA,GAEAkS,CACA,CACA,yBACA,6BAGA,uCAFA,EAGA,CACA,uBACA,WACAwX,gCACA,SAWA,OAVAR,mBACAzY,eACAyB,QACAzB,UACA+E,eACAxV,UAEA2pB,6BAGAC,MACA,GAEA1X,CACA,CACA,QACAgX,4BACAW,OACA7pB,eACA,gBACA4W,cACAuS,yBACAjX,6CACAsI,KACA,iBAGA7I,6CACA,mBACAlB,YACAA,YACA+J,QACA/J,UACA+E,qBACAxV,SACqB,GAGrBwa,GAbA,EAcA,EACAjE,iBACA,gBACAK,eACAuS,yBACA,iDACA,eACA,0BACAxmB,2BACAuP,KACA,YAA+BnX,aAAiBA,EAChDmX,QACAzB,aACA+E,eACAxV,SAGA,CACA,QACA,EACA8pB,iBAIAC,KAHAC,QACA3V,aAEA+U,EADA/U,wBAGA4V,mBAIAC,KAHAF,QACA3V,aAEAA,cADAA,wBAGAza,aAEAuwB,KADAH,QACA,mBAEA9d,aAEAie,KADAH,QACA,qBAKA,UACA,OACA,MACA,QACA,UAEA,iBACA,6BACA,CACA,iBACA,0DACA,CACA,iBACA,sBACA,cACAI,QACA,8DAEA,CACA,eACA,WACA,gBACA,yBAA4CrvB,MAAUA,EACtDsvB,SACWzjB,oBAA2B0P,0BAA6B+T,GACnEC,QACAtqB,QACAqqB,MACAE,MACArL,4BACAsL,gBACAlU,aACAmU,gBAGA,QACA,CACA,eACA,WACA,kBACA,MAAgBnU,6BAA6B9J,EAC7C,uBACA,SAEA,qBACAmO,QACA+P,SACAF,SACA9M,SAEAiN,UACAA,WACA,CACA,QACA,CACA,iBACA,eACYC,gCAAgCC,EAC5C,UACA,mBAAsC9vB,MAAUA,GAChD+vB,OACA,MAAgBC,YAAYD,MAC5BxU,aACAzD,4BACAiY,cACAA,kCACAA,aAEAA,UACAA,oCAEA,CACA,QACA,CACA,eACA,cACAC,qCACA1V,sBACAF,oBACA/H,qBACAgI,qBACA4V,YACAC,YACA,OACAF,WACAG,uBACAC,+CACAzQ,4BACA0Q,+BACAlM,iCAEA,CACA,qBACA,8CACA,CACA,iBACAmM,4BACAA,+BACAA,qCACAA,iCACA,CACA,qBACA,MAAYd,aAAaO,EACzBO,eACA,WACAP,SACApQ,cAEA,qBACAgD,OACA/C,SAEArE,sDACAwU,sBACApQ,YACA,CACA2P,cACAiB,qBAEA,wDACAC,mDACAC,UACAC,UACA,aACA/Q,MACAoQ,cACAY,OACAC,SACM,CACND,OACAC,QAEA,CACA,eACA,qBACA,cACA,8BACA,eACAC,CACA,CACAlR,cACAA,eACAmR,WACAA,WACA,CACA,iBACA,qBAaA,OAZA,cACA,SACAxW,OACAjI,MACA+H,QACAC,UAEA,qBACA7N,2BAEAA,CACA,CACAukB,IACA,OACA,SACA,CACA,MACA,UAEA,CACA,qBACA,WACA,gBACA,uBAA+C/wB,MAAUA,GACzD+vB,OACAT,QACAA,wDACA,MAAgBqB,gBAAgBK,YAChCC,eACAC,OACA5B,YACA6B,SAEA,CACA,wBACA,CACA,uBACA7B,QACAA,SACAA,YACAA,aACAA,UACAA,UACA,CACA,qBACA,kBACA,IAAUzwB,SAAS8gB,EACnB,kBACA,cACApE,eACAqE,QACA+P,SACAF,UAEAA,4BACA,iBACA,cACAviB,mBACAsV,cACArR,WAEAme,WACA8B,6CAEAA,4BAEA7V,UACAA,YACApK,UACA,KAAU,CACV,cACAkgB,kBACA7O,cACA3jB,WAEAywB,WACA8B,6CAEAA,2BAEA7V,UACAA,YACA1c,SACA,CACA,CACA8gB,MACAA,KACA,CACA,QACA2R,YACA1a,UACAA,YAEAK,0BACAA,6BACAA,qBACAA,gCACA,OACA,CACAsa,IACAra,QACAD,SACA,GAGA,EACAL,eACA,EACA4a,eACA,uCACA,OACA5a,mBAEA,EACAqC,iBACAhC,sBACAA,sBACAA,iBACA,EACAqB,gBACA,MACA,OAEA,qCACAmZ,wBACAC,yBACAC,cACAC,aACAC,eACAxyB,eACA,mCACAiwB,mBAGA,8EACAQ,iBACAgC,aACAC,cACArf,UACA+e,iBACAC,kBACA7B,mBACAmC,oBAEA1B,mBAA2C5d,GAC3C6d,YACA,uBACAD,aACA2B,IACAjvB,IACAnE,SACAsS,SACSuB,GACTwI,oBACAgX,qBACAA,YACAA,aACAA,YAEAC,MACAC,uBACAzS,SACAA,SACAyS,2BACAxb,aACA0D,YACAjI,UACA+H,iBACAC,iBACAnN,WACAuX,WAEAplB,mBACA,cACA+J,6BACAkmB,kBACAhV,OACAjI,MACA+H,QACAC,UACa,EAEb,GAGA,SACAgY,qBACAC,kBACA,QACA,CACAC,yBACAC,4BACAC,sBACA,QACA,CACAC,wBACA,gCACAxlB,cACA,CACAuX,QACAvX,uCAEA,CACAylB,cACA,QACA,CACAC,gBACA,EAGA,oBACAP,kBACA,gDACA,CACAO,gBACAC,sBACA,EAGA,oBACAC,IACAC,uBACAC,sBACAC,mBACAC,0BACAC,wBACAC,wBACAC,oBACAC,wBACAC,uBAEAC,uBACA,iBACA,gBACAC,2BACAC,0BAcA,GAbAC,OACA9c,SACA3J,SACAuX,QACApY,OACAoB,kBACAP,gBACAuX,iBAIApY,6BACAA,sCACAmnB,OACA,2BACA,QACAG,UAEA,CACA,SACA,uBACAA,4BACU,CACV,4BACA,QACAA,WAEA,CAEA,QACA,CACA,gBACAC,YAEA,mBACAC,0BACA,CACA,mBACAjd,oCACA,CACA,iBACA,4BACY/X,SAASowB,QACrB,OACAlwB,OACA6X,QACAkd,SACAj1B,oBACAsS,oBAEA,CACA,iBACA,iBACA,wBACA,QAGA,CACA,mBACA,iBACA4iB,2BACA,SACA,iBACAnqB,wBACAA,2BAEAA,GACAoqB,MAGA,2BACAC,aACAC,aAEAH,CACA,CACA,mBACA,iBACAA,2BACA,SACA,iBACAnqB,0BACAA,yBAEAA,GACAoqB,MAGA,2BACAC,aACAC,aAEAH,CACA,CACA,iBACA,SACA,cACA,gCACAI,SAGAC,KACAC,mBACAzd,+BACA0d,MAGA,CACA,iBACAD,SACAE,qCAEAF,WACA,CACA,eACAA,aACAA,SACAE,uCAEA,CACA,mBACA,iBACAC,WACA,MACA,OAEA,mBACA,sBACAR,OACA/B,iBACA+B,KAEKO,QACLR,yBACA,aACAtP,sBACAvX,uBACA,cAGAonB,SAEA,oBACAG,QACAV,CACA,CACA,mBACAA,GACAA,eAEA,cACAW,KAEA,CACA,mBACA,iBACAC,SACA,cACAX,YAEKpd,GACL,iBACA+d,CACA,CACA,oBACAtC,oBACA,4CACA,wBACAuC,QACA5U,GAEA,IACA,CACAsS,kBACA,iBACA,UACA,SAEA,sBACA,CACA,SACA,SACAnc,YACA,aACA0e,MACAlB,qBAEAA,sBAGA,oBACA,kCACAA,kBAEAA,uBACAA,OACA,CACA,CACApB,wBACArsB,+BACA0Q,6BAOA7X,IANA,CACA+1B,UACAlqB,UACA0pB,WAEAv1B,QACA6X,MACA,CACA4b,yBACA,oCACAmC,OACAA,KAGA,CACAG,UACAlqB,UACA0pB,WAEAv1B,QACA6X,OACAme,YACA,CACAtC,sBACA,8BACA,CACAC,wBACA,kBACA,CACAC,cACA,cACA,2BACA,EAGA,eACA,+EACAqC,GAEAC,EACA,CAEA,uBAGAtR,qBACAuR,mBACA,MAAgBr2B,SAASqH,eACzB,IACA,KACAmoB,GACA,OACAxvB,IACAsS,IAEA,CACAgkB,WACA,6BACA,CACAC,cACA,yBACA,UAEA,YAEA,WACA,qBACAC,4CAEAA,CACA,EAGA,iBACA,wBACAC,QACAC,iCACAC,2BACAC,WACAj2B,OACAC,SACAi2B,KACA,OACA,qBACAA,EAEA,kBACA,QACA,QACA,yCAEA,IADA5I,wBACA9sB,UAA+CA,IAAUA,IACzD8sB,sBAEA,sCACA4I,CACA,CACA,iBACAA,CACA,CACA,eACA,yBACAC,gBAGA,2BAFA3a,oBACAA,gBAEA,CACA,mBACA,cACAkN,aACA,MACA,qBAEA,cACA,yBAA8CloB,IAAUA,KACxD,aACA,OACA,QAEA,CACA,oBACA,CACA,eACA,WACA,QACA,mBAAoCA,IAAUA,IAC9C41B,YACAC,UAGA,QACA,CACA,qBACA,IAEA71B,EAFA4f,IACAta,OAGA,IADA4iB,eACAloB,IAAeA,WAAkBA,IACjCA,QACA01B,aACA9V,IACAta,SAGA,CACA,uBACA,gBACAzF,oCACA,IACAqS,MADA0N,IAQA,IANAsI,eACA4N,IACA5jB,MACAgW,qBAEA5iB,IACAA,KACAsa,IACAta,oBAEA,oBAAgCtF,IAASA,IACzCA,QACA01B,aACA9V,IACAta,oBAGA,CACA,eACA,iBACA,QACA,OACA,SAEA,eAA8BtF,MAASA,EACvC,mBACA,SAGA,QACA,CAzIA2jB,GADAoS,GACA,eACApS,GAFAoS,GAEA,iBA0IA,oDACAC,gDACAC,2BACA,iBACA,WACAC,aACAC,WACA,QACA,KAAUn2B,IAASA,KACnB61B,yBAEA,QACA,CACA,mBACA,uBACAO,kBACAze,gBACA9X,cACAw2B,OACA,IACAjkB,EADAkkB,uBAEA,SAEAlkB,EADA,MACA0Q,kBACU,OACV9H,2BAEAsb,4BAEAA,YACAA,eAIA,QACA,CACA,iBACAj3B,SACA,aACAk3B,aACA,MACA,QACA,QAAuBv2B,MAAWA,SAClCqH,aAEAmvB,aACA,GAEA,CACA,eACA,iCACA,CACA,iBACA,cACA,SAEA,qBACA9jB,gBAEA,OADA0G,4BACAqd,qBACA,CACA,iBACA,aACAzb,QACAjc,cAEA,CACA,mBACA,aACA2Z,OACAzT,QACAlG,aAEA,CACA,mBACA,YACA,0CACAs2B,SAEAA,CACA,CACA,qBACA,MAAYhjB,uCAAuC2I,GACvC2E,sBAAsB/I,EAClC,IACA8f,MADA3O,IAEA,YACAtD,MACA,qBAEA,GADAkS,YACA3Y,OACA,0BAEA4Y,wBADA/qB,MACAqB,GACA,MACA0pB,EADU,cACVjX,sBAEAqW,UAEAU,KACA,KAAM,CACN,UACA,0BAEAC,wBADA9qB,MACA4Y,GACA,MACAkS,EADU,cACVhX,sBAEAqW,UAEAY,YACA7O,mBACA,CACA,OACA4O,SACAC,SACAF,WACA3O,WAEA,CACA,oBACA/d,eACAga,QACA9d,aACAA,iBACAA,oBACAA,eACAA,mBACAA,gBACAA,mBACAA,iBACAA,kBACAA,kBACAA,mBACAA,eACAoU,OACAF,QACA/H,MACAgI,UAEAnU,qBACAA,sBACAA,uBACAA,0BACAA,wBACAA,yBACAA,iBACAA,0BACAA,gBACAA,gBACAA,mBACAA,cACAA,yBACAA,sBACAA,sBACAA,eACAA,kBACAA,0BACAA,wBACAA,sBACAA,uBACAA,qBACAA,qBACAA,0BACAA,0BACAA,oBACAA,oBACAA,eACAA,0BACAA,oBACA,CACA0G,QACA1G,6CACAA,iBACAA,gCACAA,gCACAA,8CACAA,6CACA,CACA2X,WACA,QACA,CACAqB,gBACA,IAAc2X,uDAAuD3wB,KACrE,wCACA4wB,iCACAC,iCACAC,iCACA,CACA9c,YACAC,YACA8c,iBACAC,iBAEA,CACAnY,aACA,IACAD,GADc5E,uCAAuChU,qBAErD,QACA,OACAgU,MACAC,OAGA,uCACA,uBAA4Cna,MAAUA,EACtD8e,oCACAmY,IACA/c,qBAEAgd,IACA/c,qBAGA,oBACAA,aACA,CACAD,kBACAC,kBAEA,CACAgd,aACA,OACA7c,yBACAjI,uBACA+H,2BACAC,6BAEA,CACA+c,WACA,iBACA,CACAC,YACA,wBACA,mFACA,CACAC,sCAEA,OADApxB,+DAEA,CACAqxB,eACArxB,eACAA,yBACA,CACAsxB,eACAC,8BACAvxB,MAEA,CACAoS,cACA,MAAgBkO,+BAAyCtgB,aACzDwxB,eACAxxB,oBACAA,gBACAA,iBACAA,+BACAoU,OACAF,QACA/H,MACAgI,UACSsd,GACTzxB,gBACAA,sBACAA,yBACAA,sBACAA,2BACAA,qBACAA,0BACAA,yFACAA,yBACAA,wBACAA,2BACAA,uBACAA,yBACAA,2BAEAA,wBACAA,iCACAA,uBACA,4BACAA,0DACAA,iBACAA,oCACAA,8BACAA,mCACA0xB,6CACA1xB,+BACAA,sBACAA,sBAEA2xB,GACA3xB,uCAEAA,iBACAA,WACAA,gBACAA,kBACA,CACA+S,YACA,IACA6e,IADAC,uBAEA7xB,qBACA4xB,YACAtS,eAEAsS,WACAtS,cACAuS,MAEA7xB,mBACAA,iBACAA,sBACAA,iBACAA,8CACA,CACA8xB,cACAP,6BACAvxB,MAEA,CACA+xB,sBACAR,qCACAvxB,MAEA,CACAgyB,gBACAhyB,qBACAA,yBACAA,YACAA,wBAEAA,2BACAA,WACAA,yBAEAA,mBACAA,kBACAA,oBACAA,oBACA,CACAiyB,qBACAV,oCACAvxB,MAEA,CACAkyB,cACAlyB,8CACAuxB,oBACAvxB,MAEA,CACAmyB,mBACAnyB,mCACA,CACAoyB,uBACAC,kBACAryB,kCACA,CACAsyB,mBACAtyB,mCACA,CACAuyB,aACA,QACA,CACAC,kBACAxyB,kCACA,CACAyyB,8BACAlB,6CACAvxB,MAEA,CACA0yB,sBACA,2BACA,UACA,mBAAwC54B,IAAUA,IAClD0Y,OACAA,uBACAA,QACA1Y,EACA41B,GACA1vB,KAEA,CACA2yB,6BACApB,4CACAvxB,MAEA,CACA4yB,+BACArB,8CACAvxB,MAEA,CACA6yB,yBACA,qBACAnB,UACAoB,8CACAC,mBACAC,gBACA,IACAC,MADAC,IAEA,oEAEA,YADAlzB,sBAGA,8BACAmzB,iBACAC,mBACA5C,yCACAyC,mCACAE,QACAF,wBACAI,0EACAC,qBACAJ,2GACAA,6BAEAlzB,oBACA,CACAuzB,8BACAhC,6CACAvxB,MAEA,CACAwzB,iBACAC,YACAlC,2BACAvxB,MAEA,CACA0zB,MACA,SACAnV,QACAvX,WAEgB0J,iBAAmBgf,yBAA0D1vB,KAC7FuH,oBACAosB,sBACA,MACA,6BAQA,GAPAA,GACA9N,sBACAA,mBAEAA,wBACAA,iBAEA6L,8BACA,MAAwBp4B,mCAAmC0G,sBAC3D4zB,cACAC,yBACAC,cACAC,cACAJ,EAEA9N,2CADA6L,iCACAkC,GAGA/N,wCADA6L,iCACAkC,GAEA5zB,+BACA,CACA,CACAA,sBACA2zB,GACA3zB,uEACAA,uBAEAA,mBACAA,yEAEA,CACAg0B,2BACA,MAAgBtE,OAASuE,mBAAmBtuB,YAAc3F,aAC1Dk0B,yBACAC,6BACA,wBACA,0CACAC,uDACA,QACAC,IACAH,EACAC,GACAG,YACAD,eAEAC,aACAD,aAEc,YACdA,UACc,UACdC,UACc,cACdA,YACAD,aAEAr0B,+DACAA,+DACA,KAAU,CACV,iBACAu0B,aACA,aACAC,IACAD,YACc,YACdC,WACAD,KAEAv0B,oBACAA,sBACA,CACA,CACAy0B,iBACAz0B,gBACAA,iEACAA,8DACAA,oEACAA,uEAEA,CACA00B,WACAnD,0BACAvxB,MAEA,CACA2zB,eACA,MAAgBhe,mBAAmB3V,aACnC,sCACA,CACA20B,aACA,4BACA,CACAC,yBAGA,QACA,IAHA50B,mCACAA,2BAEAlG,eAAwCA,IAAUA,IAClD60B,iBACAe,cACAta,IACAtb,KAGAkG,iCACA,CACA60B,iBACA,uBACA,OACA,sCACA,iBACArD,aACA9B,WAEA1vB,uFACA,CACA,QACA,CACA80B,0BACA,MAAgBC,2BAAmC/0B,KACnDg1B,KACAC,KACAjF,wBACA,IAEAl2B,sBAFAo7B,IACAC,IAEA,QAAmBr7B,IAAYA,MAU/B,GATAwf,aACA8b,kCACAL,kBACA5zB,cACAO,QACA4uB,OAEA+E,eACA9W,MACAoQ,cAEA,GACczb,MACd,mBAAgDjX,MAAUA,EAC1Dq5B,QACA3G,gBACApQ,wBACAvX,WAPAuX,wBACAvX,IAUAguB,UACAC,UACAC,gBACAC,eACA,CACAI,QACA,qBACAC,eACAC,QACAlX,eACAvX,kBAEA,OACA1N,WACAC,YACAm8B,YACAF,aACAR,SACAC,UAEA,CACAU,oBACA,QACA,CACAC,sBACA,UACA,CACAC,qBACAC,mBACA,mBACA,yBACA,KAEA91B,iCACA,CACA+1B,sBACA/1B,sBACAg2B,OAEA,wCACA,mDACA,CACAC,sBACA,0CACA,gCACA,CACAC,eACA,iDACA,CACAC,eACA,MAAgBniB,aAAahU,KAC7B,8BACA,CACA6Z,cACA,uBACA,qBACA,aACA,yDACA,CACA,sEACA,CACAuc,YACA,2BACAC,yBACAvC,wBACAC,wBACAuC,wBACA9pB,uBACAuf,uBACAjvB,yBACA,0DACA,CACAy5B,aACA,6BACA,mBACAhvB,EAEAvH,uCACA,CACAw2B,yBACA,kBACA9lB,aACA0C,gBACgBgN,4BAA4BhN,EAC5ClH,WACAynB,sBAEA8C,EADAz2B,WACAgM,eACA0qB,QACAzlB,KACA0lB,kCACAC,sBACAC,MACAC,eACA,iBACA,EACA,YACAC,qBACA,aACAC,iBACAC,gBACAC,OACAC,cACAC,oBACU,aACVJ,cACAG,SACAC,iBACAH,MACAC,sBACU,WACVF,gBACAD,eACAM,MACAC,eACAC,mBACU,YACVP,eACAM,UACAC,gBACAR,MACAM,sBACU,SACV,gBACAL,mCACclf,OACd,2BAEAkf,2CADArxB,OAEA,CACAwxB,SACAC,YACAH,MACAC,MACA,SAAU,SACV,gBACAF,gCACclf,OACd,2BAEAkf,2CADArxB,OAEA,CACAoxB,MACAM,MACAC,UACAC,UACA,CACA,qCACAC,+BACA,QAAmB19B,IAAiBA,OACpC,4BACA29B,oBACAC,oBACAnT,gBACAoT,YACAC,eACAC,iBACA5E,gBACA6E,gBACAC,yBACAC,2BACA5H,oBACA,QAGA6H,aACAtE,EACAoD,YAEAE,aAEAhmB,QACA8lB,MACAE,MACAI,MACAH,OACAI,MACAH,MACAI,MACAH,MACA7Y,SACA1M,SACA+lB,cACAC,oBACA5E,aACA6E,aACAC,kBACAC,0BAEA,CACA,2BACAh4B,oBACAiR,CACA,CACAinB,sBACA,kBACA9kB,gBACgBzN,oBAAiCyN,EACjDugB,sBACAjE,cACgBuE,yCAAyCkE,EACzDzB,aACA0B,MACAC,SACAxW,0BACA5Q,KACA,gCACAqnB,YACA,aACArtB,gBACAstB,yCACU,aACVttB,aACAstB,yCACU,YACV,yCACAA,eACA5/B,MACA,SAAU,aACV,yCACA4/B,eACA5/B,MACA,SAAU,SACV,gBACAsS,+BACc6M,OACd,2BAEA7M,yCADAtF,OACAyyB,CACA,CACAG,gCACA,SAAU,SACV,gBACA5/B,+BACcmf,OACd,2BAEAnf,yCADAgN,MAEA,CACA4yB,2CACA,CACA,UACA,YACAD,SACc,YACdA,cAGA,+BACA,mBAAwCx+B,MAAUA,GAClD0Y,OACA8G,UACA,0CACAkf,wCACAjI,mCACA8E,iBACAoD,oBACA,cACA5mB,YACA6mB,sBACAC,sBACA,IAuCAhqB,GAvCAiqB,KAwCA,GAvCAjF,GACAh7B,IACA,cAEAigC,GADA9+B,QACAkG,oCACsB,MACtBA,oCAEA,UAKA64B,GAFA,UACA,mBACAJ,WACsB,cACtBnC,6BAEAjB,uBAGA,kBACAA,KACsB,aACtBiB,0BAEAA,wBAGAwC,IACAD,QAEA,+BACAlgC,uBAGAsS,IACA4tB,gBAGApB,sBACA,gCACAzwB,iBACAuX,gBACA,iBACAnK,aACA,eACA,SACAjI,SACA,UACA,SACAA,OAGA,cACA,SACAiI,SACA,UACA,QACAA,OAGAzF,IACAyF,QACAjI,OACAoS,kBACAvX,oBACA6K,uBAEA,CACAZ,QACAqI,QACAiX,QACAsI,cACAzlB,SACAyO,WACAhQ,SACA6mB,eACAC,eACAJ,aACAD,gBACAS,aACApgC,EACAsS,GAEA0D,cAGA,CACA,QACA,CACAqqB,0BACA,MAAgBrzB,oBAAoB3F,aAEpC,IADAi5B,uBAEA,+BAEA,eACA,wBACAhF,SACU,gBACVA,UACU,oBACVA,WAEAA,CACA,CACAiF,2BACA,MAAgBvzB,kBAAoBwzB,kCAAoCn5B,aAExEo4B,MACA1C,EAFA11B,sBAEA01B,aACA,MACA/8B,EACA,iBACAmgC,GACAngC,eACA,WACA4/B,SACkB,cAClBA,WACA5/B,SAEA4/B,UACA5/B,QAGAA,eACA,WACA4/B,UACkB,cAClBA,WACA5/B,SAEA4/B,SACA5/B,cAGU,YACVmgC,GACAngC,cACA,WACA4/B,UACkB,cAClBA,WACA5/B,SAEA4/B,SACA5/B,QAGAA,cACA,WACA4/B,SACkB,cAClBA,WACA5/B,SAEA4/B,UACA5/B,eAIA4/B,UAEA,CACAA,YACA5/B,IAEA,CACAygC,oBACA,6BACA,OAEA,mBACAzzB,wBACA,8BACA,CACAwG,MACAiI,eACAD,gBACAD,kBAGA,wBACA,CACA/H,aACAiI,OACAD,mBACAD,oBALA,CAQA,CACAmlB,iBACA,MAAgBtE,eAAiBuE,mBAAmBllB,+BAAiCpU,KACrFs5B,IACAvE,SACAA,cACAA,oBACAA,YAEA,CACAwE,wBACA,0BACA,kCACA,SAGA,QADAv5B,WACAw5B,0BACA,YACApZ,iCACAmE,UAEA,CACA,CACAkV,YACA,0BACA1E,WACA9jB,2EACA,QACA,mBACA9K,oBAGA4uB,SACAA,oBACAA,sBACAA,gCACAA,oCACAA,cACAA,kBACAA,kBACAA,WACAA,cAEA,aACA,mBAA4Cj7B,MAAUA,GACtD,aACAsmB,mBACAsZ,GACA/gC,OACAsS,QACqB,CACrBtS,OACAsS,QACqB8F,GAErBqP,aACAsZ,GACA/gC,QACAsS,SACqB,CACrBtS,QACAsS,SACqB,CACrB4G,kBACA0M,kBACAqZ,4BACAC,yCAGA,CAEA,CACA8B,aACA,MAAgBjpB,uBAAyB4U,kBAAoBtlB,KAC7D22B,kCACAC,sBACA,MACA,OAEA,mDACAI,oBACA,YACAh3B,qBACAs3B,wBACAC,yBACAJ,QAEAA,uBACAC,0BACAE,OAEAvC,SACAA,oBACAA,sBACAA,cACAA,cACAA,cACAA,WACAA,WACA,CACA6E,cAEA,IADA55B,mBACAuH,QACA,OAEA,iBACAiS,2BACAA,GACAqgB,QAEA,8BACA,iBAKAC,KAFA/oB,QAEA,EADAA,aAFAA,OADAA,WAMAyI,GACAugB,KAEA,CACAC,YACA,MAAgBjF,eAAiBpvB,+BAAiC3F,KAClE,cACA,OAEA,mBACAwM,gBACAynB,UACA,qBACA,mCACA/nB,YACAgH,aACAhH,oCAGAA,SAEA,MAAgBukB,yCAAyCwJ,eACzDH,mBACAjoB,cACA2e,WACA3O,WACA0W,oBACAD,sBACAS,aACAtI,EACAC,IAGA,CACA1f,SACAhR,oBAGAA,sBACAA,iBACAA,kBACAA,iBACAA,mBACA,CACAk6B,UACA,qBACAC,wBACAC,0BACAC,6BACA,wDAUA,CACA,CACAhP,IACAra,SACAhR,sBACAA,iBACAA,mBAGA,CACAqrB,IACAra,UACAhR,oBAGA,CACAqrB,IACAra,SACAhR,sBA3BA,CACA,CACAqrB,IACAra,SACAhR,eA2BA,CACAs6B,2BACA,kDACAC,qBACA5K,KACA,QACA,mBAAwC71B,MAAUA,GAClD,aACA+a,kCACA8a,SAEA,CACA,QACA,CACA6K,2BACA,0DACA,iBACA,CACAC,aACA,mDACA,oDACA,EAGA,SACA32B,mBACA9D,YACAA,aACAA,gBACAA,8BACA,CACA06B,aACA,2EACA,CACAC,YACA,iCACA,MACAC,QACAC,oBAEA,mBACAC,OACAC,mBACA,MACA,8CAEA,gBAGA9pB,OACA+pB,UACAh7B,eACAi7B,+BAEAF,CACA,CACA9hC,OACA,oBACA,CACAiiC,cACA,mBACAJ,OACAC,aACAD,eACA7pB,KAEA8pB,uBACAE,SACAj7B,sBACAm7B,MAGA,EAEA,mBACA,gCACAN,eACAI,UACAlqB,aAEAkqB,YACAlqB,iBACAqqB,sBAEArqB,eACAkqB,4BAEA,CACA,iBACA/3B,2BACA,qBACAm4B,UACAC,GACAP,GACAQ,oBACAC,kBACAC,UACAC,cACAT,mBAEA,CACA,eACA,8BACA,CAEA,SACAn3B,cACA9D,0CACAA,oCACAA,sCACAA,gCACAA,uBACAA,iBACAA,YACAA,cAEA,CACAhB,UACAgB,wBACA,CACAD,aACAC,0BACA,CACA27B,qBACA37B,yCACA,CACAqX,kBACArX,sCACA,CACA47B,iBACA57B,qCACA,CACA67B,gBACA77B,oCACA,CACA87B,iBACA,iDACA,CACAC,cACA,2CACA,CACAC,aACA,yCACA,CACAC,YACA,uCACA,CACAC,wBACAl8B,2CACA,CACAm8B,qBACAn8B,wCACA,CACAo8B,oBACAp8B,uCACA,CACAq8B,mBACAr8B,sCACA,CACAs8B,aACA,IACAvgB,GACA9L,YACA,uCACAssB,0CACAv8B,kBAEA7G,SACA,uCACA6G,mBACiB,EAGjB,CACAw8B,aACA,cACAjL,uBACAkL,QACAlL,qBACA,CACAmL,uBACA,YAAuB5iC,+BAAkCA,KACzD,iCACA,kBACA,QAEA,CACA,mBACA,CACA6iC,YACA,iBACA,cACA,sDAEA,QACA,EAEA,cAEA,SACA74B,cACA9D,aACA,CACA48B,gBACA,mBACA58B,yCACAA,sCAEA,8DACA2vB,wBACA,2BACA3vB,yBACAA,wCAEA2vB,CACA,CACApf,iBACAwL,QACA,kBACA,iBAOA,WANA8gB,KACA,CACAnsB,EACAqL,EACA+gB,WAEAD,iBACA,QAEA,CACA,QACA,CACAE,aACApO,kBACA3uB,2BACAA,mBAEA,CACAg9B,gBACA,eACA,mBAEA,+CACA,mCACAC,CACA,CACAC,wBACA,oBACA9pB,sCACA4Q,QACA,8BACA,CACAmZ,uBACA,2BACAF,cACA3V,4DACAtnB,8BACAA,8BACA,EAEA,eACA,WACAgkB,KACArQ,gCACA,YAAmB7Z,WAAiBA,IACpCkqB,2BAEA,sBACA,YAAoBoZ,WAAmBA,KACvC,cACA,mBACApZ,UACAqZ,WAEA,CACA,OACArZ,UACAqZ,WAEA,CACA,iBACA,kBAGA,MACA,GAEAjqB,EALA,IAMA,CACA,eAAoC4Q,sBAAqB5Q,KACzD,WACA0G,iBACA,kBACA,aACA8L,aACA,UAGA+J,QACAkN,SACAzpB,qBACAypB,SACAS,YACa1X,MAEb,CACA,QACA,CACA,eAA8BiX,kBAAiBjX,KAC/C,6BACAlO,yBACA,sBACAA,mBAEAiV,sBACA,IACA,CACA4Q,cACAC,aACAC,YAEA,CAEA,iBAGA,QADArqB,gBAAkDva,QAClD4d,yBAFAwkB,oBAEAxkB,cACA,CACA,iBACA,QACA,oBACAd,IACM,gBACNA,mBAEAA,CACA,CACA,iBACA,gCACA,CACA,eACA,8BACA,IAEA,wBACA,SADA,CAGA,CACA,iBAKA,GAJA,4BAGAmlB,gEAEA,SAEA,6CAAiDlxB,0DACjD,CACA,iBACA,qBACAsW,WAEAwd,eACAC,eACAzd,sBACA,kCACA,aACA,UACA,+DAA2E4a,KAE3E,YACA,sEAAkFA,KAElF,gBACA8C,UACAC,eACA3d,6BACA,CACAvK,QAEAmoB,EACAD,KACAA,MACA,GAEAlR,4BACA,uBACAlW,uBAEAonB,GADA1C,WACAjb,WACAhd,2BACA,gBACA43B,mBACA5a,+BACA6d,SACA,CACApoB,QAEA+nB,KACAG,MACA,EACS,GAET36B,2BACA,aACA66B,MACA9C,kBACAA,UACA,GAEA/a,CACA,CACA,eACA,kCACA9M,2BACAA,gBACA,CACA,eACA,gBACA4qB,wBACAt8B,sBACAA,CACA,CACA,eACA,gBACAA,gBACAu8B,MACAtR,CACA,CACA,iBACAuR,WACA,iBACA,gBACA,WACAvqB,MACAwqB,YACAD,WAEAvqB,CACA,CACA,mBACA,qBACA,OACAtS,UAGA,SACAyC,eACA9D,mBACAA,yBACAA,2BACA,CACAo+B,eACA,4BACA,CACAvlC,WACA,wBACA,CACAA,YACAmH,mBACA,CACA0B,WACA,wBACA,CACAA,YACA1B,uBACA,CACAoT,cACA,2BACA,CACAA,eACApT,sBACA,CACAgkB,cACA,2BACA,CACA5R,SACA,qBACApS,kBACAi+B,KACA,CACAI,aACAr+B,yBACAA,2BACA,CACAs+B,oBACA,iBACA,CACA,YAAgCC,IAChC,KAGA,CACAC,+BACA,aAA6BD,gBAA0B/jB,IAAW,KAClE,CACA,YAAgC+jB,iBAA2B/jB,IAC3D,eAAmCA,KAEnC,CACA,YAAgC+jB,IAChC,KAGA,CACAE,6BACA,aAA6BF,KAAelkB,IAAY,KACxD,CACA,YAAgCkkB,cAAwBlkB,IACxD,YAAgCkkB,IAChC,YAAgClkB,IAChC,KAGA,CACAqkB,mBACA,aAEA,aADA1+B,oBAC4C86B,IAAG,KAC/C,CACA,WAA+BA,OAC/B+B,+BAGA,CACA8B,mBACA,yBACA,eACA,gBACAx9B,UACAy9B,YAEAz9B,CACA,CACA09B,uBACA,MAAgBzrB,kBAAkBpT,KAClCmB,0BACA0U,WACA,KACA,SAEA,gBACAipB,cACAC,IACArnB,SACA/D,yBAEAA,wBACAA,4BAAwE5F,IACxE4F,yBACAA,2BAEA,sBACA,qBACAqrB,4BAEAd,WACA/8B,WAEA69B,CACA,CACAC,oBACA,MAAgB7rB,kBAAkBpT,KAClC,OACAoT,EACA+nB,UACAF,mBACA,CACApiC,QAEAoiC,GACAgC,GAEA,CACAiC,6BACA,KAEA,SACArrB,aAEgBsrB,0BAA0BC,4BAC1C,QACA,YACAzP,aACA7V,cACA,mCACA1G,WACA,CACA,iBACAuc,UAEA,QACA,CACA0P,sBACA,IACAC,GACA,MAAgBH,YAAYC,4BAC5B,+BACA,EAEA,mBACA,eACAj+B,IACAA,UACAo+B,YAEA,iBACA,eACA,WAEA1pB,GACAspB,SAFAK,QAGAC,6DAEAt+B,YAEA0U,CACA,CACA,+EACA,iBACA,MAAY6pB,8BAA8B1C,MAC1C,kBACA,aACAQ,OACAl/B,eACA,+BACA,QAEA,CACA,QACA,CAEA,eAEA,UACA,MACA,SACA,OACA,QACA,aAEA,iBACA,0DACA,CACA,iBACA,qBACA,sCACA,CACA,CACA,eACA,gBACAqhC,sBACAjvB,+BACA6gB,oBACAzX,GACApJ,EACA,CACA,eACA,gBACAivB,sBACApO,oBACAzX,GACApJ,EACA,CACA,eACA,gCACAK,6BACMA,cACNA,QAEAA,cACAA,YAEAA,CACA,CACA,YACA6uB,OACA,cACA,wDAEA,mBACA,uBACA,kBACA,WACA,SACA,oBACA/hB,MACAnC,YACAmC,SAEA,CACA,CACA,CACA,qBACA,8BAGAgiB,EACAC,EAEAxnC,EALA,IAMA,CACA,eACA,MAAY+f,mBAAmBxD,EAC/B,QACA,OACAT,YACAF,cACA/H,UACAgI,gBAGA,CACA,SAOAgT,sBACAsV,aACAsD,IACA,CACA5Y,wBACAsV,gBACAsD,IACA,CACAj8B,iBACA,8BACAk8B,QACAC,QACA,KACA,mJAEA,kEACAjgC,qCACAA,8BACA,sDACAytB,cACAzmB,cACAuX,aACAve,aACAA,WACAA,cACAA,aACAA,cACAA,gBACAA,mCACAA,gBACAA,kBACAA,oBACAA,cACAA,oCACAA,sBACAA,gBACAA,uBACAA,mBACAA,iCACAA,wBACAA,eACAA,qBACAA,iBACAA,uBACAA,iBACAA,gCACAA,qBACAA,sDACAA,qBACAkgC,iBACApmB,MAIApG,8BACAA,8BACA1T,mBACAA,eACAA,eAPAiW,kFASA,CACA8N,kBACA,MAAgB3Q,SAAW2Q,qCAAqCxF,iCAAmCve,KACnG,aAGAmgC,KACAC,EAEAp5B,WALA+c,CAMA,CACAriB,WACA,uBACA,CACAA,YACA1B,kBACA,CACAoT,cACA,oBACA,CACAA,eACApT,qBACA,CACAy8B,eACA,SACA,CACA4D,cACA,wCACArgC,wBACAA,cAEAsgC,uCAEAtgC,kBACAA,gCACAA,IACA,CACAugC,QACA,gCACAvgC,IACA,CACAmH,OACA,qBACAnH,IACA,CACAouB,YACA1a,iBAGA1T,wBACAue,QACAvX,UAJAhH,iBAOA,CACAwgC,aACA,qBAGAC,+BAFAzgC,YAEAue,IADAnL,yCAEAstB,0DACAnrB,+BACAvV,mBACAA,qBACAA,mCACAsgC,gBAGAtgC,6BACAyc,SAEA8U,eACAvxB,KACAygC,GACAzgC,MACAA,eACAA,mBACAA,cAGA,CACA2gC,sBAGAxnC,GAFA6G,aACAkgB,WACA,QACA0gB,QAEA,CACAC,sBACA,qBACAC,WACA5gB,cACA6gB,gCACAljB,QACAA,GACS,IACT,SACAijB,IACA7vB,kCACA,aACA0E,UACAqrB,UACArN,UACA,OACAvgB,UACA6tB,0CACAC,6CACA,KAGA/nC,SACA,kBACA2hC,OACAnlB,UACAwrB,2BACA,sDACAC,wBAEAL,QACA,WACAjG,sBACAhmB,QAGAA,MADA2nB,eACA,EACA3B,KACAjiC,OACAk8B,aACArkB,aAEAwP,WAEApL,cAEA3b,aACAkoC,UACAnhB,OAGA/mB,SACAmoC,+BACAA,mBAEA,CACAC,kBACA,uBACAhmB,4BACAimB,WAEA,GADAntB,+BACAmtB,KACA,YAAiC1nC,MAAaA,EAC9CkG,4BAEAqU,eACA,CACArU,yDACA,CACAyhC,8BACA,MAAgBC,kBAA8B1D,aAAeh+B,KAC7DqU,0BACArU,aAEAqU,kBACA,wCACArU,6BAGA,CACA2hC,2BACA,WACA3D,qBACA,QAEA,IADAh+B,mCACAlG,eAA2CA,IAAUA,KACrD,aACA,6BACA,iCAWA,GAVA+a,qBACA7U,4BACA6U,0BAEAA,SACAA,4CACAA,mBACAA,UACAA,mBACAA,mCACAA,aACAA,4BACAA,8BACc,CACd,6BACwBgL,wCAAwCob,eAChE/3B,iBACA4c,iCACAD,yCAEAhL,2BACA+sB,oBACA,CACA,CACA,8BACAA,CACA,CACAC,iBACA1oC,8BACA6G,2CACSA,KACT,CACAgX,QACAhX,sBACAA,2BACA,CACAoS,UACA,oBACAua,WACA,gFACAmV,wCAKA,GAJA9hC,qBACAA,2BACAA,4BACAA,4BAIS,IAHTA,mCACAuV,OACAwsB,gBAEA,OAEA,wCACA/hC,2CACA,QACA,wCAAyDlG,IAAUA,KACnE,MAAoBib,cAAc/U,uBAClCgX,wBACAjC,2BACAitB,iCACA,CACAA,4CACAhiC,sBACA8hC,GACA3oC,SACA4b,YAGA/U,wBACAA,kCACAuV,SAEAvV,kCACA,MAAgBiiC,wBAAwBjiC,KACxCkiC,EACAliC,yBACUiiC,UACVjiC,gCAEAA,aACA,CACAmiC,gBACAhpC,mBACAmoC,uBAEAthC,2BACAA,0BACA,CACAoiC,sBACA,qBACAC,wCACAC,sBACAC,uDACAviC,oBACAA,kBAEA,CACAwiC,uBACA,MAAgBC,kBAAkBziC,KAClC0iC,oCACA,UAAqBC,4BAA0BD,EAE/CE,OADA,2BAGA,CACAC,yBACA,0BACA,iBACA,OAEA7iC,qBACA,kCACA8iC,4EACAC,OACA,YAAuBjpC,IAAkBA,IACzC,eACA,OAGA,mDACA6oC,YACAlxB,YACAiI,cAEA,CACAspB,iBACA,IAES,IAFThjC,mCACA+hC,gBAEA,OAEAT,yCACA,uBACA2B,0BACAjjC,gBACA7G,kBACA8pC,8BAGA7Z,aACAA,cAEAppB,oCACSA,MACTA,6BACA+Q,WAEA/Q,iCACA,CACAkjC,mBACA,IAGS,IAHTljC,2CACAuV,OACAwsB,gBAIA,yCAAyDjoC,MAAUA,EACnEkG,8CAEA,wCAA2Do9B,MAAYA,EACvEp9B,+BACAuU,iBACagB,GAEbvV,0CACAuV,QACS,CACT,CACA4tB,oBACA,+BACApnB,GACAlH,OACA9V,QACAwW,OACAwsB,gBAEA,kDAGAltB,wBACAkH,gBACA/b,2CACA,CACAojC,UAGS,IAFTpjC,mCACA+hC,kBAIAruB,aACA1T,kCACA0T,gBAGA1T,YACAqjC,IACA3yB,cAGA,CACAM,OACA,MACA,2BACA,MAAoBuN,kBAAkBve,uBACtCA,kBACAA,2BACA,CAKA,GAJAA,aACAA,gCAKS,IAFTA,iCACA+hC,gBAEA,OAEA,qBACA,QAAmBjoC,wBAAuCA,EAC1DwpC,0BAGA,IADAtjC,qBACclG,aAAmBA,EACjCwpC,0BAEAtjC,+BACA,CACAujC,0BACA,6BACA5T,KACA,QACA,mBAA2C71B,MAAUA,GACrD,eACA0pC,eACA7T,SAEA,CACA,QACA,CACA8T,+BACA,sCACA,CACAC,gBACA,IAES,IAFT1jC,yCACA+hC,gBAEA,OAEA,4CACA,qBAAyCjoC,OAAQA,EACjDkG,wBAEAA,uCACA,CACA2jC,gBACA,iBACAC,UACAC,cACArqB,wBACAuC,GACAlH,OACA9V,cACAgjC,gBAEA,gDAGA8B,GACAhK,MACAzlB,iCACAF,8CACA/H,6BACAgI,qDAGAU,oBACAgvB,GACA9J,MAEAhe,gBACA/b,yCACA,CACA8jC,iBACA,4CACA,CACAC,mCACA,oBACA,2BACApB,cAEA,EACA,CACAqB,kBACA,8BACA3vB,iBACA,2CACA,WACAQ,GACAhc,UACA6I,QACA4T,aACAP,gBACAyP,YACAyf,aACAC,aACAC,oBACAplC,QACAqlC,WACAtrB,WACAurB,YAEAhwB,WAEAQ,CACA,CACAgF,aACA,8CACAnJ,WACA7X,eAEA,CACAyrC,yBACA,iDACA,CACAC,oBACA,8BACA,MACA,SAEA,+BACA,oDACA,CACAC,0BACAxkC,uBACAwkB,SACA,CACAigB,wBACAzkC,8CACA,CACA0kC,qBACA,6BACA,CACAC,yBACA,wBACA9vB,yBACApE,4CACA6L,OACAzH,oBACA7U,gBAEAA,+BACAyQ,YACAm0B,YAEA5kC,4CAEA,CACAqC,UACArC,8BACA,CACAoC,UACApC,8BACA,CACA6kC,uBACA,0BACAhwB,iBACAA,+BAEA7U,iBACA,CACA8kC,QACA,QAGA,IAFA9kC,YACA0T,gBACA5Z,gCAAqDA,MAAUA,EAC/DkG,2BAEA,CACA+kC,UACA/kC,oCACA,MAAgBytB,gBAAgBztB,KAChCA,aACAA,yBACAytB,IACAztB,oBACAglC,QACAhlC,gCACAA,iBACAA,sBAEAkgC,YACAlgC,kCACA,CACAilC,oBACA,kCACA,CACAC,aACAllC,sBACAA,wBACAA,4BAEAA,gBAEA,CACAmlC,iBACA,wBACA/G,gBACAgH,UACAhH,6BACA/sB,QAEAyc,YACAx1B,YACAA,YACA0H,uBAEA7G,iCACA,CACAksC,uBACArlC,4BACAA,8BAEA,kCACAo+B,gBACAgH,UACAhH,6BACA/sB,QAEAi0B,UACAj0B,OACA+sB,uCACA/sB,OAGAyc,UACA9tB,aACAA,kBAGA,MACA,aACAslC,cACAtlC,iBACAA,cACAolC,cACAA,eAEAG,OACAvlC,iBACAslC,cACAtlC,aACAA,kBACAolC,eAEAhH,0BACAoH,IAEAD,GAEA,CACAE,eACAtsC,2BACA6G,8CAEAA,mBACA7G,qCACA6G,8CAEAA,gCACA,CACA0lC,wBACA,yBACA,YAKA,IAJA,gBACA7wB,yCACAA,2CAEA/a,eAAwCA,MAAUA,GAClDiX,OACA,0DACAgE,GACAA,mDAEA,CACA,CACA4wB,oBACA,uBACA,CACAC,qBACA,yBACA57B,UAA6CuK,2BAC7C,+BACA,MACA,gDAEA,OACAA,eACA/E,kBACAzQ,QACA,IAEA8mC,UAEA7lC,eACAA,qBACAA,6BAEA,CACA8lC,qBACA,uCACA,CACAC,mBACA,iEACA,CACAC,0BACA,2BACA1e,qFACA2e,SACAC,aACAD,UACAjmC,mCAEAkmC,kBACAlmC,kCAEA,CACAmmC,mBACA,SACAC,QACAC,SACAtE,cACAuE,mCAEAC,qEACA,8CACA,OAEA,6CACA,uBACAvmC,sCACAgrB,eACAhrB,cAEAA,IACA,CACAwmC,oBACA,MAAgBvE,wBAAsCjiC,KAEtDgK,gCADAq8B,GAEAxG,QACAC,4BACAwG,IACAtmC,qBACAuxB,cACAj5B,EACA0R,EACAhK,MACAA,MACA6/B,GACAtO,cACAj5B,EACA0R,EACAhK,MACAA,OAGA,iBACA,eACAA,eACAA,gCAEAA,kBACAgrB,CACA,CACAyb,4BACA,uBACA,SAEA,MACA,SAEA,2BACA,mDACA,EAEA,cACA,kDACA,CAEA,mBACA,MAAY5jB,gEAAgErT,EAC5E,UAGAulB,cACAA,qBACAnS,KACA8jB,MACA3R,yBAEAA,uBAEAA,cACAA,QACA,CACA,eACA,aACA,aACA,WACA,aACA,YAEA,CAGA,qBACA,mCACA4R,UACAC,oBAQAC,MACA,8BACA,8BAEA,OACAC,2BACAC,uBACAC,gCACAC,4BAEA,CAGA,qBACA,OACAtuC,kBACAsS,kBAEA,CAcA,yBACA,MAAYtS,kDAAiE6W,EAC7E8S,kCACAM,gBACA,QACA,YACA,MAIA,MAEAskB,KAFAC,YACA7kB,YACA,EAEA8kB,MADA,uBACA,CACA,CACA,MACAC,KADAzqB,2BACA,EACAiG,QACAjC,SACYkmB,iDAAiDQ,cAC7DC,MACAC,MACAC,SACAC,SACAC,OACAC,OACAC,UACAC,UAEA,GADA/S,cACA1O,GAEA,mBAIA,GAHA0O,mBACAA,mBAEAgS,KACA,sBACAhS,0BACA,CAEA,sBAGA,GAFAA,oBAEAkS,KACA,uBACAlS,kCACA,CAEA,2BAIA,GAHAA,yBACAA,yBAEAiS,KACA,uBACAjS,kCACA,CAEA,qBAGA,GAFAA,oBAEA+R,KACA,sBACA/R,0BACA,CACA,KAAM,CACNA,cACA,0BACAgT,oBACAhT,gBACA,0BACAiT,oBACAjT,eACA,CACAA,aACA,CACA,uBACA,MAAYkT,4CAA4Cz4B,EACxD,iBACA,MACA04B,gBACA,YAAuBpuC,MAAiBA,EACxCi7B,SAEArP,WACA9E,eAEA,CACA,uBACAmU,SACAnU,CACA,CACA,uBACA,MAAYqnB,sDAAsDz4B,GACtD24B,iCAAiC/0B,EAC7Cg1B,0BACA,MACA,OAEAA,GACArT,gBACAA,wBAEAA,cACAA,uBAEA,iBACA,MACAmT,gBACA,YAAuBpuC,MAAiBA,EACxCi7B,WAEArP,WACA9E,eAEA,CACAwnB,GACAC,UAEAJ,IACAC,gBACAnT,WAEA,CA9/BAtX,GADA6qB,GACA,eACA7qB,GAFA6qB,GAEA,gBACA7qB,GAHA6qB,GAGA,gBACA7qB,GAJA6qB,GAIA,eACA7qB,GALA6qB,GAKA,cACA7qB,GANA6qB,GAMA,eA0/BA,oBAgBAxkC,eACAga,QACA9d,oBACAA,0BACAA,uBACAA,qBACAA,wBACAA,wBACAA,mBACAA,mBACAkS,GACAhP,qBAEA,CACAolB,eACA,uBACA,IACA,KACAH,IACgBnC,oBAAoBoC,MACpCzvB,IACAsS,OAEgB4X,qEAAqE7iB,eACrF,aACA,WACA,cACA,cACA,iBACAmoB,GACAogB,yBAEAC,EADAC,WACAtlB,cACAulB,gBACA,WACA,CACAC,kBACA,MAAgBhwC,6DAA6DqH,eAC7E,IACA,IACA,aACA,WACA,cACA,eACAmoB,IACgBjc,oBAAoBlM,aACpC4oC,UACAC,cACA,OACAlwC,kBACAsS,kBAEA,CACA+jB,mBACA,6BACA,CACAhe,QACA,MAAgBoC,2BAA2BpT,KAC3CkM,kBACA8V,mBACAqE,aAGA,GAFArmB,+CACAA,yCACA,8CACA,OAEA+0B,SACA,0CACAA,yCACA,MACA+T,KADA,+BAEA/T,8BACAA,4BACAgU,iBACApP,iBACA5E,WACA,EAGA,qBACAA,gDACAA,6CACAA,2DACAA,mDACAA,4CACAA,6CACA,CACA,mBACAA,iBACA,CACA,eACA,iBACAiU,GAEA51B,iDACA61B,GAEAC,EACA,CACA,sBACA,kBACYz3B,qBAAuDmY,GACvDnY,eAAyC2T,EACrD3T,gBACA9X,gBAEA,OACA+f,QACAjI,QACAiB,YACA0C,YALA+zB,oBAKAzvB,UAEA,CACA,qBACA,MAAY8M,oBAAoB3B,GACpBnL,+BAA+B0vB,UAC3CC,QACA,IACAvvC,OADU4hB,qBAAwBkO,MAElC,QAAe9vB,OAAWA,EAC1B+uB,sBACAA,SAEUnN,GACVqZ,kBACArZ,MAEA2tB,qBAEAhqC,KAEA,WACAwpB,mBACAwgB,wBAEA32B,CACA,CACA,qBACA,kBACYgH,wBAAwB0vB,WACxB1tB,qBAAwBkO,MACpC,IAEA9vB,YAFAwvC,IACAC,IAEA,2BACAC,OACAloB,QACAyT,cACAA,cACAA,gBAOA,IAJArZ,IACAmN,UACAkM,mBAEAj7B,IAAeA,OAAWA,GAE1B,GADA+uB,UACAA,OACA,SAEA,YACA5d,MACAw+B,MACAA,OACAx+B,IACAqW,IACcrW,MACdmW,KAEAkoB,gBAEAE,IACAzU,cACA2U,IACAH,IACAjoB,OAEAqoB,GACA,CACAH,GACA,CACA,eACA,kBAGA,OADA3kB,oFADAe,kCAEAgkB,KACA,CACA,eACA,iBACAC,GAEAz2B,iDACA02B,GAEAC,EACA,CACA,qBACA,cACAC,IACAA,qBACAnlB,eACAmlB,eAGAC,gBACAlV,WACA,CACA,qBACA,MAAYmV,sBAAsBrlB,EAClCslB,QACA,iBACAF,gBACAlV,cACAoV,SACA14B,QACA9X,aAEAo7B,cAEAA,UAEA,CA7OAtX,GADA2sB,GACA,YACA3sB,GAFA2sB,GAEA,YACAC,qBACAC,mBACAC,uBACAC,eACArC,cACAj8B,SACA8V,UACAgE,aACAK,cAEA5I,GAbA2sB,GAaA,iBACA9Q,oCAiOA,mCACA,qBACAmR,uBACAC,YAEAC,WAEA,CACA,oBAuBA7mC,eACAga,QACA9d,iBACAA,oBACAA,mBACAA,kBACAA,sBACAA,kBACAA,oBACAA,sBACAA,mBACAA,uBACAA,0BACAkS,GACAhP,qBAEA,CACA0nC,yBACA,sBACAx3B,mFAEAy3B,oBADAz3B,qCACAqD,GACAzW,uBAEA,CACAwmB,cACAxmB,sBACAA,sBACAA,WACAA,sBACA,CACAwmB,aACA,mBACA,CACA0jB,eACA,qEACA,CACA5wC,QACA,sBAEA,iBADA0G,YACAkqC,WACA,CACA3wC,OACA,sBAEAmgB,WACA,UAFA1Z,YAEAkqC,WACA,CACAY,iBACA,qBACAxsC,OACAkoB,cACA0jB,WACAa,WACAt5B,QACA9X,QAEA,aACA,OAEA,WACAqxC,QACA,QACA,mBAA2ClxC,MAAUA,GACrD,MAAoB2X,eAAey4B,KACnCe,OACAC,OACA,UACAvb,UACA,QACA,CACA,MACAwb,QADAvuB,+BACAxJ,WACA+3B,UACAxb,SACA,CACA,0BACA,CACAia,mBAEA,OADAwB,SACArW,WACA,CACAiV,YACA,sBACAG,WACA,iBACA14B,OACAiI,0BACA,iBACAhH,eACAjB,QACA9X,YAGA,SACA,CACAqX,eAEAhR,iBACAgM,SAFAhM,kBAEAmoC,cACApT,SACA/jB,eACA+jB,aAEA/0B,gBACAA,uBACAA,kBAEA,EAGA,qBACA,mBACA1H,CAAYqd,MAAiB01B,YAC7B11B,GACAwS,GACA,yCACA,CA3IA1K,GADA6tB,GACA,aACA7tB,GAFA6tB,GAEA,YACAC,sBACA3T,cACAC,mBACA0S,wBACApC,cACAqD,mBACAC,iCACA3kB,QACA/B,YACA2mB,WACAC,YAEAluB,GAfA6tB,GAeA,iBACAhS,kCACAgR,4BAEA7sB,GAnBA6tB,GAmBA,eACAznB,eACAC,6CAwHA,oBAmBAhgB,eACAga,QACA9d,oBACAA,mBACAA,iBACAA,iBACAkS,GACAhP,qBAEA,CACAolB,eACA,sBACgB3vB,SAASqH,eACzB,IACA,KACAmoB,GACA,uEACA,CACAyjB,cACA,uBACA,CACAC,cACA,uBACA,CACAlD,kBACA,MAAgBhwC,SAASqH,eACzB,IACA,KACAmoB,GACA,OACAxvB,IACAsS,IAEA,CACAwR,QAEA,OADArJ,uBACAwQ,UAGA,OAFAA,kCAEA,MADAA,qBAEA,CACA5S,UACA,qBACAhR,qDAGA+0B,4BACAA,0BACAA,8BACA+W,sBACA,CACAC,WACA,yBAEA,2BACA,EAGA,iBACA,MAAYpzC,iCAAiCqzC,YAC7C,IACA,IACA,OACA,QACA,UACA7jB,GACA,cACA,qBACA8jB,MACA73B,gBACAF,gBACA/H,MACAgI,QAEA83B,MACA73B,MACAF,MACA/H,gBACAgI,iBAEA,CACAC,OACAjI,MACA+H,QACAC,SAEA,CACA,qBACA,oBACA,CACA,mBACA,MACAyS,kBACAnuB,KAFAuzC,uBAGA,OACAzzC,sBACA+B,0BACAF,4BACAgE,wBAEA,CACA,mBACA,MAAYkgB,sBAAsB0tB,YAClC,uBAEA1tC,yBACA7F,QACAyzC,gBACAtlB,kBACAulB,WACA,OACAC,4CACAC,+CACAC,qDACAC,wDAEA,CACA,eACA,cACAhuB,iBACAvX,iBACAse,gBACA1B,gBACA,OACA4oB,OACA7zC,SACAsS,QACA8gB,IACAjvB,IACA8mB,UAEAwkB,OACAzvC,aACAsS,YACA8gB,YACAjvB,YACA8mB,QACAwoB,gDACAC,kDACAC,sDACAC,0DAIA,CACA,qBACA,iBACAE,WAEAC,OADAC,OACAC,QACA,8DACA,CACA,eACA,yDACA,CACA,iBACA7X,uBACA,CACA,sBACA,uBACA9pB,iBAGA,OACAtS,QACAsS,QACA8gB,QALA8gB,0BAMA/vC,QALA+vC,0BAMAjpB,gBAEA,CA5LAnG,GADAqvB,GACA,cAGArvB,GAJAqvB,GAIA,YACA3E,cACA4E,YACAC,mBACAC,cACA9oB,oBACAP,SACA/B,aAIApE,GAfAqvB,GAeA,iBACAxT,kCACAgR,4BA6KA,oBAaAxmC,eACAga,QACA9d,oBACAA,uBACAA,iBACAA,kBACAA,mBACAA,0BACAkS,GACAhP,qBAEA,CACA8N,QACA,MAAgBwM,yBAA2B8sB,kCAAoCtqC,MAC/DooC,iBAAiB8E,SACjCC,qBACApY,UACAyX,wBACAzX,cACAoY,eACApY,SACAoY,gBACApY,cACAA,mBAEAA,cACAoY,aACApY,cACAA,SACAA,WACA,CACAzM,eACA,qBACA,CACAsjB,cACA,wBACA,CACAC,cACA,wBACA,CACAlD,kBACA,MAAgBhwC,6BAA6BqH,eAC7C,IACA,IACA,OACA,cACAmoB,GACA,OACAxvB,cACAsS,cAEA,CACA8gC,YACA,wCACA,EAlEAtuB,GADA2vB,GACA,YACA3vB,GAFA2vB,GAEA,YACAC,sBACAlF,cACAqC,eACAhtB,qBACA2G,oBAEA1G,GATA2vB,GASA,iBACA9T,kCACAgR,4BA2DA,sBACApjB,eACAkjB,cACAkB,eACAwB,gBACAM,gBAGA,UACA,oBACA,oBACA,oBACA,oBACA,oBACA,qBACA,sBAGAE,8DACA,eACA,sBACA,CACA,eACA,sBACA,CACA,iBACA,2BACAh4B,0BACAxb,CACA,CACA,iBACA,iDACAA,CACA,CACA,iBACA,iDACAA,CACA,CACA,eACA,QACA,cACA,uCACAib,gBACAjb,UACUib,gBACVjb,UACUib,IACVjb,WAGA,CACA,eACA,MACA,WACA,0CACA,SAGA,QACA,CACA,eACA,4CACA,CACA,QACAghC,YACAG,UACAz9B,WACA+vC,kBAEAlc,oBACA,cACA,OAEA,MAAgB3vB,MAAQs8B,YAAY5qB,WAA2B1C,UAC/C6I,YAAYi0B,EAC5B,8CACA,OAEA,cACAxP,YACA,GAGA,uBACA,qBACA,QACA,sBAEA,WACAyP,cACA,QACA,cACA,IACA3zC,UADAiC,IAGA,IADA2xC,YACA5zC,IAAeA,MAAiBA,KAChC,IAEAmC,EAFAqtC,IACAqE,IAEA,gCACAC,sCACAC,MACA,QAA+B5xC,IAAiBA,IAChDqtC,UACAqE,UAEArE,KACAqE,KACA,4BACAG,uCACgBn1C,UAA2B+I,KAE3C,IADAqsC,OACA9xC,IAA2BA,IAAaA,IACxCud,mDACAA,MACAu0B,IACAC,OACAC,KAGAP,SACA3xC,GACA,CACA,mBACA2xC,CACA,CACA,qBACA,IAEA5zC,oBAFAwvC,IACAC,IAEA,WAEA2E,SAEAC,EADAzsC,EAFA+P,OAEA9Y,EACAu1C,EACA,QAAmBp0C,QAAmBA,GACtC+uB,OACAlwB,cACAsS,MACA,YACA,SACAA,KACAqW,IACA8sB,KACcnjC,MACdmW,IACAitB,KAEA/E,oBACU,CACV,YACA,mBACA,sBACAgF,gBACAC,cACAb,gBACAhsC,MADA,CAEA/I,OAGA21C,cACAZ,gBACAhsC,MADA,CAEA/I,MAGA,CACAmB,YACA4zC,aAEAA,UACAhE,IACAH,IACAjoB,MACA8sB,OACA,CACA,CACA,QACA,CACA,eACA,iBACA,uBACA94B,oBACAA,QACApS,gCACAsrC,gBACArrC,cACA4J,YACAzO,SAEA,CACA,CACA,eACAoS,4BACA+9B,OAEA,CACA,iBACA,iBACA,IACA/0B,EADAjI,IAEA,MAAYwD,UAAUJ,GACVb,uCAAuCiB,kBACnD,WACAxD,+BAGAiI,EADAsX,EACA0d,8BAEAC,IAEA,CACAl9B,QACAiI,QAEA,CACA,QACAohB,gBACAG,UACA2T,oBACApxC,YAEAqxC,+BACA,cAEA,YADAC,MAGA,gBACAp+B,gCACA,MAAoB9O,qBAAqB0T,EACzCT,sBACAnT,YAOA,GAHA,MAHAqtC,IACAt4B,EACA/F,wBAIAmE,gCACA,OAEA,4BAIA,GAHA,oCAGAnE,kBACA,OAEA,IAoBAg9B,GApBkBj8B,iBAAiBu9B,QAEnC,OADA57B,kBAEAq7B,UADA,CAmBA,OAfA9f,QACArZ,iBACAA,OACApS,gCACAsrC,gBACArrC,cACAlK,eACA,sBACA,EACAoI,gBACArB,YACA,KAIAoT,iBACA,OACAs6B,gBACA,UACA,UACAA,cACA,cAEA,qDAAyEt6B,gBAEzEkC,cA1BA,CA0BAo4B,EACS,EAET3I,WACA+J,KACA,GAGA,mBACA,mBACAtoB,WACAyoB,WACAzT,KACA,kBACA,IAAc/pB,eAAe2T,EAC7BzrB,YACA,+BACA,gBACA6hC,QACA0T,SACA7xC,SACAoU,WACA9X,WAEA,QACA,CACA,gBACA,kBACA,yCACAw1C,YACA,iBACA3T,QACA0T,SACA7xC,SACAoU,OACAnZ,8BAEAqB,KACArB,6BAIA,CACA,CACA,QACA,CACA,qBACA,KACA,OAEA,WACAqB,OACA,oBACA8X,QACA9X,SAEA,CACAoxC,WACAt5B,QACA9X,MAEA,CACA,iBACA,MAAYhB,mBAAqBy2C,MACjCC,WACA7oB,KACA,4BAA6B/U,kBAC7B9X,YACA,aACAJ,OACA,UACAitB,QACA7tB,MACAsS,MAEAub,QACA7tB,MACAsS,OAEU,WACVub,QACA7tB,IACAsS,QAEAub,QACA7tB,IACAsS,QACa,GAGbub,CACA,CACA,mBACA,KAAU7sB,IAAaA,KACvB,aACA,4BACA,KAEA,CACA,QACA,CACA,qBACA,YACA21C,aAEAvzC,eACA,CAEA,iBACA,SACA0qB,KACA,cACAA,KACAD,KAEAA,UAEAA,iBACAA,SACApT,SACAu4B,WAEAllB,QACAC,cACK,IACL,CACA,eACA,qBACA,CAEA,mBAEA,MADA6oB,KACAzoB,KACA,SACA/nB,GAEA,MACA,MACA,SAEA,iCACA,UACA,SAGA,GADA1B,QACAA,EACA,SAEA,aACA,SAEAmyC,UACA1oB,QACA,CACA,QACA,CACA,mBACA,cACA,SACA,yBAEA,oBACA,gCACA2oB,eAEA,CACA,SACA,QACA,MACA,QACA,SACAC,gBACA,CACA,qBAIA,OAHA,oBACAryC,SAEAA,mBAGAA,CACA,CACA,iBACA,WACA,kBACAm7B,WACM,UACNA,QACM1gB,MACN0gB,8BACM1jB,iBACN0jB,oBAEAA,CACA,CACA,mBACA,MACA,OACAl6B,EADA,YACAqxC,EACM,UACN76B,8BACMgD,MACNgP,QAEAhS,iBAEAxW,CACA,CACA,eACA,kBACAsxC,SACA,wBAIA,YAHA,QACA9oB,wBAEA,mBAGA,MACA,SAEAA,EACA,CAEA,eACA,MAAYhS,wBAAwBo6B,EACpC1oB,KACA0jB,aACA2F,WACAC,UACAA,WACAn3C,OACAsS,YACK4Z,IACL,YAAmB/qB,WAAqBA,KACxC,aACA,kBAAmCmC,SAAkBA,IACrD8zC,YAEA,CACA,eACAvpB,SACApT,YAEA,CACA,iBACA,WACA48B,oCACA,YAAmBl2C,WAAkBA,KACrC,aACA,eACA,MAEA+a,UACAo7B,oBAEA,CACA,QACA,CACA,mBACA,WACA,YAAmBh0C,WAAuBA,KAC1C,cACgB3C,wBAAwB42C,YACxC,eAGA,KACAC,qBAEA3pB,WACAjtB,EACA,KAGA,CACAitB,YACA,CACA,mBACA,2BACA,MACA,SAEA,aACA0jB,aACAmF,WACA,SACA91C,KACA,YAAmBO,WAAqBA,KACxC,aACAs2C,gBACAC,cACA,cACA/2C,QACAC,QACA,KACA,CACA,CACA,OACAD,QACAC,OACAsvB,QAEA,CAEA,SACA/kB,eACA9D,WACAA,WACAA,oBACA,CACA4pC,mBACA,MAAgBjxC,kBAAkBqH,KAClC,OAIA+0B,aAJA2X,MACAj7B,QACA9X,SAEAA,iBACAisB,QACA,CACAklB,eACA,MAAgBnyC,kBAAkBqH,KAClCgmB,UACA,OACArtB,kBACAsS,kBACA+a,QAEA,EAGA,eACA,MAAYtV,uBAAuBw+B,EACnC,SACA,eAEA,eACA,aAEA,eACA,SAEA,cACA,uBACAE,EAEAkB,OACA,CACA,iBACA,4BAEA,OADAz7B,yBACAA,cACA,CACA,eAEA,OADAq6B,aACAqB,yBACAC,MAEAC,KACA,CACA,eACA,MAAY37B,WAAUgS,QAAUooB,EAChC1W,UACA,UACA,yBACA,OACA7/B,WACAsS,WAEA,CACA,WACA,CACA,eACA,MAAY6J,gBAAgBo6B,EAC5B97B,YACApH,uBACAyF,wBACAnT,YACAjB,KACA,oBACA,wCACA,eACA1E,MACAsS,MACA2Y,2CAEA,CACA,YAAmB9pB,MAAYA,EAC/BuD,wCAEA,QACA,CAEA,mBACA,eACYwnB,uBAAuBqqB,EACnCwB,YACAd,SACA/9B,qBACY8+B,qBAA+Bf,MAC3CvyC,qBACAw8B,QACA+W,MACA/rB,OACAxnB,SACAszC,QACAV,QACAz2B,OACA1E,QACAa,SAEAokB,MAEA,CACA,iBACA,MAAYlV,gDAAgD3S,EAC5D64B,yBACAhW,SACA,iBACA8b,cACA/pB,MACAjC,OACAxnB,SACAwU,QACAiD,QACAi2B,aAEAhW,YACAA,SACA8b,kBAEA/pB,MACAjC,OACAxnB,SACAwU,QACAiD,QACAi2B,aAEAhW,WACA,CACA,mBACA,MAAYmV,qBAAqB7sC,EACjC,SACAyzC,KACA/b,cACA,kBACA,MAAgBtjB,eAAe2T,EAC/B2rB,OACAxrB,eACAjsB,GACAy7B,kBACAz7B,OAEAy7B,gBACAA,mBAEA+b,uBACAp1B,SAEAo1B,EACA/b,cAEAA,eAEA,CACAA,wBACAA,cACAA,QACA,CACA,iBACA,MAAYlQ,4CAA4C3S,EACxDg4B,YACA,UAAiBgF,mCAA2ChF,GAC5D,MAAgB/jC,OAASmzB,qBAA0B,IAAQ0X,EAC3DC,SACAlc,SACAA,cACAmc,qBACAnc,cACA,6BACA,MACA,MACA+b,EACA/b,cAEAoc,YAEA,6BACAz1B,OACA3H,aAEArB,OACAA,GACAy+B,WAEA,CACApc,cACAA,8BACAA,WACA,CACA,CACA,mBACA,MAAY5oB,gBAAgB2I,mBAChBi2B,0BAA0B2B,MACtC,UACA3X,cACAA,oBACAA,SAEA,CACA,qBACA,2BACAqc,GACArc,iBAEA,CAEA,QACA+F,YACAuW,2BACA,qCACA9B,KACA,YACA,QAAmBz1C,MAAWA,EAC9B+a,sBACAgQ,YACAqqB,OACArqB,gCACAqqB,GACAtK,8BACA7lC,QACA+nB,eACApW,QACAiF,oCACAb,eACA+P,SAGAhQ,YACA06B,UAEA,QAAmBz1C,MAAWA,EAC9Bo1C,OACAA,iBAGAA,2BAEA,EACAoC,kBACA,kCACAj9B,mCACAmF,cACA,qBAAyC1f,OAAQA,GACjD,sBACAo1C,IAGAA,qCACAl+B,WACAugC,cAEA,CACA,EACAC,0BACA,qCACA,OAEA,yCACA,qBAAyC13C,OAAQA,GACjD,qBACA23C,OACAF,uBAEA,CACA,EACAG,yBACA,wBACAD,yCAGAF,uBACA,EACAtW,UACA0W,aACAC,+BAIA,iBACA,IAAUC,4BAA4CC,EACtD,yBACAD,gBACAE,oCAEA,CACAA,WACAF,YACAG,yBACA,EAEAC,iFACA,oBACAnuC,eACAga,QACA9d,eACAA,uBACAA,uBACAA,qBACAA,mBACAA,uBACAA,eACAA,wBACAA,wBACAA,uBACAA,sBACAA,qBACAA,gBACAA,mBACAA,iBACAA,kBACAA,mBACAA,kBACAA,qBACAA,qBACAA,mBACAA,oBACA,CACAoS,cACApS,gBACAA,iBACAA,gBACAA,qBACAA,mBACAA,UACA,CACAgyB,gBACAhyB,qBACAA,yBACAA,6BACAA,wBAEAA,2BACAA,2BACAA,wBAEA,CACAkyC,cACA,gCACA,2BACAlyC,YACAA,UACA8xC,WACAK,4CAEAL,SACAK,8CAEAnyC,sBACAmyC,YAEAnyC,kBACA,CACA0zB,MACA,MAAgBtgB,iBAAiBpT,KACjC,cAEA,YADAA,0BAGA,iBACAoyC,aACAC,SACAC,8BACgBP,yBAAyBQ,QACzC,QACAxd,gBACA/0B,qBACAue,gBACAvX,8BAEAA,iBACAuX,6BAEAve,iDACAA,mDACA,CACAwyC,kBACA,MAAgBzd,0BAA4B7c,QAAU1L,aAAiBxM,KACvEyyC,yBACAC,mBACA,GAEArd,MACA,QACAN,mBACAA,wBACA,SACA5oB,KACA,wCACA,2CACA,gCACAwmC,KACAD,wBACAvmC,KACAymC,KAEAH,MACAr+B,OACAjI,MACAymC,MACAr0B,QACAvX,UAEA0rC,qBAEAC,CACA,CACAE,kBACA,MAAgB9d,2BAA6B7c,QAAU1L,aAAiBxM,KACxEyyC,yBACAK,sBACAC,MACA,QACAC,IACAC,IACA7+B,IACA8+B,IACA,wCACA,MAAoBC,0BAA0BC,cAC9Ct5C,iBACAu5C,OACAP,QACAv0B,QACAvX,WAEAoN,OACA8+B,IACAF,OAEAP,MACAr+B,OACAjI,MACA+mC,MACA30B,QACAvX,UAEAgsC,gBACAC,SAEAI,KACAP,QACAv0B,QACAvX,WAEAqsC,CACA,CACAC,iBACA,yBACA,OAEA,oCACgBC,0BAAsCtf,gBAAkBznB,WAAWgnC,QAAYxzC,KAC/FyzC,6BACA,wBACA,QACAr/B,kDACA,iBACAw+B,YACAA,QACAx+B,mDAEAs/B,oBACAA,oCACAt/B,YAEA,KAAU,CACV,QACAjI,4DACA,iBACAwnC,YACAT,QACA/mC,6DAEAwnC,QACAA,oBACAA,yCACAxnC,aAEA,CACA,CACAwnB,eACA,qEACA,CACA3iB,OACA,yBACA,iBACA6oB,WACA75B,aACA+5B,KACA,CACA,CACA6Z,QACA,MAAgBxgC,4CAAkDpT,MAClDi0B,kBAA6BrO,EAC7CiuB,WACAJ,iCACArB,cACgB5lC,WAAWslC,EAC3BO,SACAyB,MACA,MACA9zC,iBACA+0B,gCACAA,wBACAA,eACAA,gBACA,MAAgBgd,qCAAqCQ,QAqDrD5e,sBACA2e,6BAEAyB,EADApgB,EACA,CACAh7B,oCACAsS,eACA4Z,QAGA,CACAlsB,cACAsS,6CACA4Z,QAGAmvB,6BACA,YACAh0C,iCACA+0B,0BACAA,wBACA,oCACAwD,uDACAha,SACA,WACAtT,OACAwoC,uBACA9f,EACA75B,0BACAmR,UACA8oC,SACAp7C,+CAEcmB,wBACdnB,4BACAo7C,SACA9oC,wDAvFA,gBACA,iCACA,OAEA8pB,SACA,2BAQA,GAPAA,8BACAA,+BACAA,wCACAA,kCACAA,eACAA,kCACAA,iCACA+c,iBACA,UACAluB,sBACAO,wBACAtC,oBACAsmB,gBAEA1lB,kBAEAwxB,WADAhpC,IACA6mC,qBACA,KAAc,CACd,+BACAoC,qBACA1J,sBACAzV,cACA7xB,mCACAixC,MACAx7C,KACAsS,KACA8gB,IACAjvB,IACA8mB,YAGAmR,kBAEAA,SACA,QACAA,UAEA,CACAA,WACA,CA6CAqf,CADAX,QACAxoC,MACAtS,0CA7CA,gBACAmhC,uBACAua,uBACA9b,oCAEA,CAyCA+b,eACA3gB,EACAogB,UAGAA,KAFc,wBAEdQ,KADAnC,cAGA/c,IAGAmf,4BACA,CACAxa,YACA,qBACAya,UACAC,aACAC,gBACA,cACA,OAEA,uCACA5f,WACApvB,aAEAivC,QADAF,SAEA,MACAtgC,YACAoc,aACA,uBACAA,+BACAvlB,aACAmJ,iCACU,CACV,+DACAnJ,kFACA,CACA,oBACA8pB,+BACAA,wBACAA,sBACAA,oBACAA,gBACA+E,kBACA,CACA+a,sBACA,2BACAH,aACAC,gBACA,wCACA,CACAG,sBACA,UACA,0DAEA,IADAC,sBACAj7C,IAAuBA,aAAeA,EAEtC,GADAk7C,OACAC,wDACA,2BAIA,WACA,CACAC,eACA,qBACA,iBACA,OAEA,uCACA,8CACA,0BACAC,UACAC,OACA7jB,cACAj5B,EACA88C,EACAp1C,MACAA,MAEAA,oBACAq1C,OACA9jB,cACAj5B,EACA+8C,EACAr1C,MACAA,KAEA,MAAUq1C,GACV9jB,cACAj5B,EACA+8C,EACAr1C,MACAA,KAEA,EAEA,uBAGA,OACAmzC,UAHAmC,YAIAtD,WAHAuD,qBAKA,CACA,qBACA,aACA,+BACAC,0CAEAzD,iCACA,CACA,mBACA,QACA,gCACAC,WAEAA,CACA,CACA,iBAEA,UADAyD,0BAEA,CACA,iBAIA,SAHA,4DAGA7vB,uCAIA,CACA,QACAkV,YACA4a,YACAjkC,aACA,yBACAsjB,UACA3hB,UACA1C,UAEA4wB,oBACAA,cACA,EACAn6B,QACAm6B,gCACA5wB,QACA,EACA4gB,oBACA,iBACAgQ,oBACArd,WACA,EACA6N,eACA,iBACA7N,gBACAA,kBACA,EACA0xB,gBACA55B,UACArL,6BAEA,EACAuqB,UACA1zB,WACA5B,eACAsuB,eACAnK,YACA/V,WACAwV,WACA9E,eACA,uBACAmxB,UACAA,uBACAA,UACAH,cAEAG,UACAH,YAEA,EACAI,aACAC,aACA59B,QACArG,+BACAkgC,YACAvlC,WACA0X,kBACA,yBACwBhM,QAAU69B,oFAAsFrlC,iBACxH,0CACA,0CACAy3B,oBACA,OACApqC,sBACAqmB,4BACAE,YACAE,kBACAwxB,yBACAC,sBACAC,kCACAC,2BACA5xB,+BACAF,0BACAF,2BACAtC,oBACA0W,yBACAiS,oCACAj2B,qBACA,EACiBvU,KACjB,GAEAo2C,OACAvkC,+BACAtK,WACA5B,kBACA5H,UAGAk/B,aACApZ,mCACA3L,QACA2L,iBACA,iBACA,SACA,QACAwyB,eAKA,oBACAvyC,eACAga,QACA9d,mBACAA,uBACAA,eACAA,qBACAA,gBACAA,mBACAA,iBACAA,kBACAA,kBACAA,mBACAA,qBACAA,mBACAA,oBACA,CACAoS,YACA,qBAGA,GAFApS,YACAA,YACA4lB,UAEA,YADA5lB,iDAGAA,wBACAA,0BACA,mCACAA,4BACA,qDACAA,oBACAA,cAEAA,YAEA,CACA2zB,eACA,8BACA,6BACA,CACA2iB,aACA,MAAgBnqC,yCAAyCnM,KACzDi0B,UACA,IACAzD,MADA3O,IAEA,4BACA4O,YACAC,MACAF,QAEA,qBACAC,MACAC,YACA7O,WAEA4O,MACAC,YACA7O,SAEA2O,OAEA,CACAC,SACAC,SACAF,WACA3O,WAEA,CACA7Q,OACA,iBACA4U,eACA,cACA,OAEA,mBAEA1Z,EADAqqC,aACA,qBACgB9lB,yCAAyCzwB,kBACzD85B,mBACAjoB,cACA2e,WACA3O,WACA0W,sBACAD,sBACAS,aACAtI,EACAC,IAGA,EAEA,iBACA,gBACAqE,UACA3hB,UACA1C,UAEA4wB,oBACAA,eACA5wB,cACA,CACA,QACAoqB,WACA4a,YACAjkC,aACA+kC,OACA,EACArvC,QAEAm6B,eADA5wB,qBAEAA,YACA,EACA4gB,oBACA,qBACAgQ,oBACA8U,WACA,EACAnb,UACAhH,eACA1sB,WACAgpB,MACAhH,eAEAO,YACAtd,WACA7G,eACA5H,QACAwrB,YAEAktB,eACA5kC,eAEAorB,aACApZ,eACAC,gBAIA,qBACA,QACAgX,cACArpB,aACA,gBACAsjB,UACA3hB,UACA1C,UAEA4wB,oBACAA,eACAloC,WACA,EACA+N,QACAm6B,0BACAloC,YACA,EACAk4B,oBACA,kBACAgQ,oBACA8U,WACA,EACAnb,UACAhH,eACA1sB,WACAgpB,MACAhH,iBAEAO,YACAtd,UACA7G,eACA5H,QACAwrB,aAEAktB,eACA5kC,eAEAorB,aACApZ,eACAC,gBAIA,UACA4yB,WACA,aACA,SAEA,QACA/9C,IACAsS,IACAyO,IACA,mBAAuC5f,MAASA,GAChD,qBACA,oBACA,4BACAnB,OACAsS,SACAyO,CACA,CACA,CACA,OACA/gB,MACAsS,MAEA,EACA+d,aACA,aACA,SAEA,IAGAlvB,MAHAnB,MACAsS,MACAud,2BAEA,mBAAuC1uB,MAASA,GAChD,qBACA,oBACA,2BACAgC,UACAA,MACA0sB,IACAmuB,IAEA,CACA,CACA,MACA,4BACAh+C,MACAsS,KACA,CACA,OACAtS,IACAsS,IAEA,GAEA,iBACA,WACAiI,MACA0jC,gCAEA54B,WAGAA,CACA,CACA,eACA,oEACA64B,cAEAA,CACA,CACA,iBACA,MAAYrnC,kCAAkCuB,EAC9CgE,kCACYuE,iBAAiBvE,sBAC7B,OACArE,QACA4I,QACA7D,sBACAC,+BACAohC,iBACAxhC,uBACAE,YACAjB,eACA/E,UAEA,CACA,iBACA,qBACYunC,yBAAyBC,GACzBjF,wBAAwB3+B,EACpC6jC,iBACAvC,kBACAwC,mBACAC,WACAC,WACAC,WACA7qC,gBACA,eACA+R,IACA+4B,qEACAA,0CACAH,IACAnwC,4DAEAswC,IAEAtwC,MADAoM,wDACAkkC,uCAEAF,IACApwC,2DAEA,QACA,oBACAuX,sCACA,EACA,gBACAwW,gBACA57B,cACA47B,gBACA57B,uCACAo+C,qCACAp+C,SACAA,eACAA,cACAA,gBAEAo+C,IACAxiB,gBACA57B,eACA47B,YACAxW,WACA,CACAA,QACAvX,SAEA,CACA,iBACA,MAAYiE,cAAcwR,EAC1B,aACA,MACMxR,eACN,SAEA,QACA,CACA,qBACA,MAAYtS,aAAa8jB,EACzB+6B,6BAIA,GAHA,2BAGA,qBACA,QAEA,CACA,qBACA,MAAY7+C,aAAa8jB,GACb8B,mBAAiCnK,iBAAmB1D,EAChE,eACA,mBACA+mC,4BACM9+C,OACN8+C,SACM9+C,WACN8+C,WAEAC,cACAD,YAEAA,CACA,CACA,mBACA,oCACA,OACAA,uCACAE,SAEA,CACA,iBACA,IAAUh/C,aAAa8jB,EACvB,kBACA9jB,KACM,eACNA,QAEAA,CACA,CACA,mBACA,IAAUsS,cAAcwR,EACxB,gBACAxR,KAEAA,GADM,aACNjE,IAEAA,IAEAiE,CACA,CACA,qBACA,MAAY2sC,2CAA2CxkC,GAC3CqkC,mBAAmBI,EAC/BC,OACY1L,iDAAiD2L,MAC7D,cACA,kBACA,mBACA,WACAp/C,KACU,cACVA,MAEM,WACNA,mBACM,cACNA,oBAEA,CACAA,0BACAsS,4BAEA,CACA,mBACA,sBACA,2EACA,CACA,eACA,mBACA,CACA,mBACA,aACA+rC,UACAgB,eACAn/C,gBAEA,CACA,iBACA,qEACA,wBACA,CACA,UACAo/C,eACA7B,SACA,eACA,aACAl+B,sBACAggC,eACA,qDACA,2BACc,WACd,eACc,sBACd,qBAEA,CACA,QACA,EACAC,cACAC,cACAC,eACA/+B,SACA,qDACA,uDAEA,0BACAA,IACAA,SAEA,yBACA,eACAA,MAEAA,CACA,EACAg/B,cAEA,QADAC,uCACAxjC,iCACA,OACAu1B,0BACAhR,kCACA6O,0BACAvQ,wBACAC,oCACA2S,eAEA,EACAgO,iBACA,6BACA,EACAC,mBAEA,QADAF,uCACAxjC,iCACA,OACAoP,wBACAtC,oBAEA,EACA62B,cACAC,aACAC,gBACAC,UACAC,gBAEA,qBACA,uBACA,kBACAC,gBAEAppB,CACA,CACA,oBAEA7rB,eACAga,QACA9d,eACAA,gBACAA,2BACAA,kBACAA,8BACAA,sBACAA,wBACAA,qBACAA,mBACAA,uBACAA,uBACAA,kBACAA,uBACAA,iBACAA,sBACAA,mBACAA,mBACAA,mBACAA,cACAA,cACAA,mBACAA,kBACAA,mBACAA,mBACAA,wBACAA,6BACAA,2BACA,CACAgW,cACAhW,eACAA,8BACAA,oBACA,CACAua,qBACA,+BACA,KACA,SAEA,mBACAnH,6CACAwS,+CACAtS,uBACA,sBACAtT,yCAEAsT,CACA,CACAuG,aACA,yFACA,CACAm/B,cACA,MAAgBC,aAAa7lC,EAC7B6kC,6BACA7B,uBACA+B,4BACA,SACA,qBACAe,cACAA,cACAA,CACA,CACAC,mBACA,8CACA,CACAC,aACA,MAAgBH,aAAa7lC,EAC7BimC,KACA,gBACA,SACAx0C,UACAq0C,SACAp0C,UAEAw0C,UACAC,4CACAA,iCACAA,0CACAF,YAEAA,CACA,CACAG,kBACA,6CACA,CACAC,eACA,MAAgBR,aAAa7lC,EAC7BwlC,8BACAC,wBACAC,6BACA,SACA,qBACAI,cACAA,cACAA,CACA,CACAQ,gBACA,qBACAh4C,kBACAi4C,KACAC,KACAC,KACA,IACA//C,IADAk+C,KAEA,mBAAwCl+C,MAASA,EACjDk+C,4BAEA,kBACAA,wCAEA5kC,aACA4kC,oCAEA7+C,SACA,0BACAwgD,kCACAC,uCACAC,wCAEA75C,mBACAA,wBACAA,uBACAA,kBACAg4C,CACA,CACA5lC,YACA,mDACApI,eACA,MACAguC,KACA,YAMU,CACV,wDACAA,uBACAh4C,8BACAA,wCACAA,4BACAA,sCACAA,gCACA,8BACA85C,mBAAoDn0C,KACpDkyC,qBACAkC,uBACA/5C,qBACAA,qBACAod,GACArX,UACApN,MACAsS,MACAsT,cACAvX,gBACAgzC,WACAC,WAEA,MA5BA,mBACA78B,GACArX,YA2BA/F,qBACAA,qBACAod,GACApd,yCAEAgrB,eACA5X,sBACA1C,iBACAsmC,aACA3Q,UAGA,CACA6T,mBACA,qCACAnlB,oBACAA,oBACAA,mBACA,CACAolB,wBACA,MAAgB1C,mBAAmBz3C,MACnB43C,4BAA4BxkC,GAC5Bg5B,iDAAiD2L,OACjDp/C,SAAmByhD,GACnB77B,kBAAkB9B,EAClC,gBACA,oBACA2a,QACA,YACAE,IACAC,MACAJ,MACAkjB,QAEA/iB,MACAC,MACAJ,MACAkjB,OAEAC,MAGA/iB,EADA,WACAgjB,kBACc,YACdA,oBAEAv6C,YAEA,WACAm3B,IACAC,MACAE,MACAgjB,QAEAnjB,MACAC,MACAE,MACAgjB,OAEAD,KAEA,CACA/iB,KACAC,KACA+iB,KACAnjB,KACAC,KACAijB,KAEA,CACArgB,iBACA,mBACAhuB,WACA,UACA,MACA,oCAQA,IAPA3D,4BACA0sB,sCACAA,wBACA2f,kBACA8F,iBACAzlB,yBACAA,gBACAj7B,IAAuBA,MAAYA,EACnCi7B,6CACA1sB,oBACAvO,UACAuO,2BAGA,CACA,CACAoyC,yBACA,4BACAhC,4BACgB5G,qCAAqCz+B,EACrD6jC,iBACAyD,oBACAC,SAEAC,OADA/I,qCAEA,oBACA,SACAjuB,uBACAO,wBACAtC,oBACAsmB,eAEA1lB,wBACAC,QACAqS,mCACAA,iCACA+W,YACA/W,4BACAA,8BACA+W,WACA,KAAU,CACV/W,yFACAA,4BACAA,gCACAA,uCACA,4BACA8lB,mCACArQ,qBACAtnC,iCACA6xB,cACAA,iCACAof,MACAx7C,IACAsS,IACA8gB,IACA8lB,EACAjuB,WAEAmR,SACAA,WACAA,8BACAA,cACAof,MACAx7C,IACAsS,MACA8gB,MACAjvB,MACA8mB,WAEAmR,WAEAA,iCACAA,oBACAA,sBACAA,8BACAA,0BAEA,CACAA,mCACA,CACA+lB,gBACA,MAAgB/D,QAAQ/2C,MACR+6C,+EAA+E3nC,EAC/F6jC,iBACA,mBACA+D,IACA,oCACAC,cACAlmB,iCACA1sB,QACA,EACA6yC,iBACA,kBAQA,IAPAnmB,cACAA,wBACAA,gBACA1sB,iBACA0sB,wBACA57B,sBACA6hD,4CACAlhD,eAAuCA,MAAUA,GAUjD,IATAqhD,OACAC,0BACArmB,cACA57B,eACA+/C,UACAmC,cACAr7C,8BACAs7C,4BAEAr/C,eAA4CA,MAAUA,EACtDg/C,QACAK,eAEAniD,aACA,CACA6hD,IACAM,eACAniD,qBACAkP,MACA,CACAkzC,kBACA,oBACAvvC,WACA,QACA,MACA,oCAQA,IAPA3D,6BACAA,uBACA0sB,uCACAA,wBACAmiB,mBACAniB,0BACAA,gBACAj7B,IAAuBA,MAAYA,EACnCi7B,6CACA1sB,iCAEA,CACA,CACAgxB,wBACA,MAAgBoe,mBAAmBz3C,MACnBrH,SAAS0P,GACTkW,kBAAkBi9B,GAClBpP,iDAAiD2L,mBACjEhjB,8BACAA,4BACAA,0BACAA,cACAA,gBACA,WACA/0B,wBAEA+0B,kBACAA,kCACA,2BACA/0B,wBAEA+0B,oBACAA,sCACA,cACA/0B,wBAEA+0B,kBACAA,kCACA,0BACA/0B,wBAEA+0B,gBACAA,8BACAA,cACAA,SACA3hB,iBACA2hB,UAEA,CACA0mB,0BACA,mBACAhrC,mBACAirC,SACAC,SACA,SACA,mEACA,MACA,OAEA,8BACA7B,mBAAoDn0C,cACpDkyC,YACAhvB,eACA6yB,4BACA17C,qBACAA,qBACAA,mBACAA,qBACAA,gBACAA,gBACAA,yCAEA,CACA,CACA47C,cACA,oBACA,CACA5qC,QACA,mDACA,mBACA,MACA,OAEAhR,+BACA,SACAue,iBACAvX,oBAEAqB,GACA1P,SACAsS,UAEAlF,uBACA,sBAEAqN,YADApT,0GAEA+0B,SACAA,gBACA/0B,6BACAg0C,sBACA3rC,WACArI,sBACAA,qBACAA,uBACAw0C,sBACAzf,YAEA,CACA4Q,oBACA,uBACA,CACAC,uBACA,qBACA57B,UAA6CuK,2BAC7C,qCACA,MACA,qDAEA,OACAA,eACA/E,kBACAzQ,QACA,GAEAisB,WACA6wB,8BACA7wB,QACAhrB,eACAA,sBACAA,4BACAA,gBAEA,CACAk1C,sBACA,+BACA,SAEAl1C,4BACA,qBACA87C,mBACA9xC,mCACA6xC,6BACA7wB,iBACA,WACAhrB,gBACAoT,yBACApT,qBACArH,MACAsS,OAEAjL,oBAGAgrB,CACA,CACAyb,4BACA,qBACA,uBACA,SAEA,MACA,SAEA,2DACA,kBACAz8B,YAEAA,CACA,CACA+xC,sBACA,MAAgB/B,6BAA6Bh6C,KAC7C2F,gCACA,gCACA,EA1hBA8X,GADAu+B,GACA,kBA4hBA,QACAlhB,aACA4a,YACAuG,eACAC,iBACA9oC,IACA1C,kBACAA,QACA0C,YAGA,EACAke,oBACA5gB,WACAA,uBAEA,EACAsG,aACAtG,WACAA,uBAEA,EACAyrC,aACA,kBACA,uBACA,SACAnF,WAEA,IAGa,IAHbtmC,6CACAqL,GADA,CAEAgmB,iBAEA,OAEAiV,cACAtmC,qCACA,CACA,EACAilC,gBACAjlC,WAEAA,8BADAqL,SACAA,iBACAA,aAGA,EACAkf,UACAz9B,WACA4+C,cACAz2C,mBACA2zB,kCACA+iB,kBACA3H,WACAnrB,eAEAixB,eACA8B,oBACAC,kBACAC,iBACAzB,cACA9D,YACAwF,iBACAC,mBACAC,gBACAC,kBACA1F,YACA3tB,eAEAszB,mBACArwC,UACAswC,eACAlF,YACAmF,eACAlL,iCACAE,gCACAiL,0BACA3B,iBACA4B,aACA3S,4BACAnC,cACAl5B,WACAwD,aACAvL,uBAEAoM,YACA2M,SACApnB,cACAukB,YACA,IACA,IACA,QACA,SACA,SACA,WAGArX,SACAmB,gBACAuL,eAGAwmC,cAEAxC,eACAQ,gBACAC,kBACAxC,kBAEAzX,aACApZ,4DACAC,cACAm1B,WACAp1B,eACAC,eAEA7U,WACAiuC,cAEA5pC,YACA4pC,wBAGAC,wBACA,gBAIAn5B,kBACAkD,eACAk2B,UACAC,cACAC,UACAC,UACAC,YACAC,SACAzB,aAGA,qBACA,oBACAj9C,cACA2+C,WACA3+C,QACAua,WAEMoM,WACN3mB,QAEAA,GAEA,qBACA,qBACA,aACA4+C,YAGArkD,IADA4e,iBACAnZ,GACA,CACA,oDACA,eACA,yBACA,wBACAmZ,KAEA5Z,CACA,CACA,oBAOAwF,eACAga,SACA9d,wBACAA,mBACAA,oBACA,CACA0G,QACA,0BACA,aACA,yBACA,UAAyB3H,mBAAiB6+C,EAC1C1lC,UACAA,cAGAlY,oBACA,CACA8d,aACA,CACAnG,WACA,SACA,YAEA,yBACA,mEACAuY,gBACA,CACAkC,sBACA,MAAgBrB,2BAA2B/wB,qBAC3C,IAAcgU,aAAahU,mBAC3B,gCACA+wB,IACA/c,KAEAgd,IACA/c,8BAGAjU,WACAA,UACA,CACAuyB,aACA,iBACAte,WACA/H,sBACAwjB,KACA,uBACAxX,yCACAlY,8CACAA,mCACA,YAA6B1B,KAAcA,IAC3CoxB,QACApxB,UAGA,QACA,CACAq3B,oBACA,sBACA,CACA5iB,YACA+K,kBACA9d,sBACAA,yCAEA,CACA41B,oBACA,2BACAt3B,iBAEA,2EACA,CACAw3B,mBACA,mBACA,yBACA,KAEA91B,iCACA,CACA61B,oBACA,+EACA,CACAK,eACA,kBACA,EAGA,iBACA,YAEYwW,wFAAwFmR,EACpGC,OACAC,OACY/pC,aAAyBgqC,EACrCjtB,SACAC,SACAitB,SACAC,cACA,IACAtsC,SADAoQ,kBAEA,mBACA,OACA,CACA1jB,SAEA,CACAA,UAIA6/C,kCACAA,OACAn8B,kBAEA2M,QACA/c,iBACAoQ,oBAEA,aACAo8B,oBACAC,qBAEAD,IACAC,KAEAttB,4BACAotB,mCACAn8B,WACAo8B,IACAC,KACMJ,GACNG,QACAC,QACAF,OACAn8B,aAEAm8B,WAEAA,GADAG,4BACA1hC,eAEAA,eAGA,+BACAhL,0BACAwsC,oBACAC,oBACA,SAgBA,IAfAttB,IACAwtB,UACA7uB,QACApxB,UAEA8/C,KACAniD,KAEAqiD,0CACAriD,MAEUmiD,KACVniD,MAGUA,QAAeA,GACzByzB,QACApxB,iCAGA,mBACAoxB,8CACAA,sBAEAA,QACApxB,YAGM0yB,WACNtB,QACApxB,UAGAoxB,CACA,CACA,iBAAgDzR,6BAChD,cACAvB,oCAEA,oBADA,oBAEA,CAlMAe,GADA+gC,GACA,iBACA/gC,GAFA+gC,GAEA,YACA9uB,OACA6B,eAgMA,oBACAztB,eACAga,SACA9d,kBACAA,gBACAA,wBACAA,sBACAA,kBACA,CACA2X,WAIA,OAHAgX,QAGA,wDACA,MAEAjZ,CACA,CACA+oC,yBACA,MAAgBn+B,eAAetgB,cACf+wB,2BAA2B/wB,qBAC3C,IAAcgU,aAAahU,KAC3B,mBACA0+C,aACA,MACA,cACAC,QACAC,SACAF,KACcE,UACdC,IAEA,CACA,UACA,8BACAH,OACAp+B,GACAu+B,MAEA,CACA7+C,WACAA,UACA,CACA8+C,eACA,2BACA,IACAC,GADcC,4BAA4BttB,EAE1C,UACAqtB,iDACAA,QACA9oC,uBAAuCjW,2BAA2Bi/C,mCAA0CF,8BAC5GA,SAGAA,0BACAC,SAEAA,IACAD,iBAEAA,CACA,CACAG,mBACA,+BACA,CACA3sB,aACA,qBACAb,UACA,0BACAqtB,gBACA,MAcArvB,KAdA,CACAqvB,WACArS,gBACA14B,UACAC,UACAkrC,sBACA3nB,gBACA9d,cACA0lC,4BACAnhC,+BACA8U,6BACAwrB,oCAEAv+C,mBAEA,0BACAq/C,mBAEAz5B,WACA8J,YACA1vB,oBACAA,oBAEAA,oBACAA,mBAEA0vB,CACA,CACA3c,YACA,mBACA,eACApZ,WAEA,GADAmkB,kBACA9d,+BACA,uCACAyR,KACA9X,IACA,CACAqG,mBACAA,iBACAA,oBACA,CACA21B,oBACA,gEACA,EAGA,oBAOAvD,sBACA,MAAgBpe,aAAahU,mBAC7BA,mBACAA,mBACAA,6BACA,CACAk/C,mBACA,4BACAlzC,2BACA+mB,qCACArW,oCACA0Y,kCACA,+CACA,CACAQ,oBACA,kFACA,CACAC,oBACA,mEACA,EAzBApY,GADA6hC,GACA,eACA7hC,GAFA6hC,GAEA,YACA5vB,OACA6B,kCAyBA,8BACAguB,+BACA,eAEA,OADAC,sBACA,CACA,CACA,mBACA,uBACA/tC,kBAEA,OADAmL,eACAnL,CACA,CACA,iBAEA,SADAwC,KAEA,mBACAwrC,IAEA,mBACAA,IAEA,wBACA,CACA,eAA6CzrC,cAC7CA,cACA,WACA0rC,QACA,cACAP,iCACA,uBACAnhC,uBACAvM,wBACAvF,8BACA,uCACA5N,mDACA,UACAoxB,QACApxB,QACAqhD,YACAC,gBAEAA,MACAA,aAEAA,IAEAA,QACAC,IACAD,IACAT,YAEA7gD,yCAEA,oBACA,eACAA,QACAqhD,YACAC,gBAEAlwB,CACA,CACA,oBAUA5rB,eACAga,SACA9d,kBACAA,gBACAA,wBACAA,kBACA,CACA2X,WACA,uCACAjC,EACA3W,IAEA,SAIA,yBAHAiB,aAIA,CACAoyB,sBACA,MAAgBpe,aAAahU,mBAC7BA,kCACAA,kCACAA,2BACAA,eAEAA,gEACAA,4DAEAA,6BACA,CACAy+C,yBACA,MAAgB1tB,2BAA2B/wB,qBAC3C,eACAiU,WACA,mBACAyqC,aACA1qC,QACAA,MACA6qC,KACAH,QAEAG,YACAH,aAGA1qC,MACA6qC,YAEA5qC,MACAyqC,WAEA1+C,WACAA,UACA,CACAuyB,aACA,qBAKA7C,KAJA,CACA1b,kBACAC,mBAEAjU,MACA,0BACAq/C,mBAEAz5B,WACA8J,YACA1vB,oBACAA,oBAEAA,oBACAA,mBAEA0vB,CACA,CACAiG,oBACA,+EACA,CACA5iB,YACA,iBACA+K,kBACA9d,uBACAA,mCACA,CACA41B,oBAIA,YAHA,gBACAt3B,YAEA,mBACAwhD,IAEA9/C,iFACA,CACA61B,oBACA,mCACA,uDACA,EAGA,eACA,gBACA,yBACA,8BACA,oDACA,CACA,QACA,CACA,mBACA,kBACAvc,GAEA,CACAyS,mBACAjvB,wBAEA,CACA,uBACA,oBACA,CACA2U,YACA9X,WAEMqsB,SACN,CACAvU,UACA9X,OAGA,CACA8X,QACA9X,QAEA,CACA,eACA,SACAyE,yBACA9D,2BACA/B,uBACA6B,8BAEA2lD,mBAAmCC,GACnC1pB,KACA9pB,KACAyzC,wBACAC,wBACAC,6BACA,YAAmBrmD,IAAgBA,KACnC,gDACA0S,eACA,mDACA4zC,aACAC,gCACA/pB,OACA,iCACAtQ,oBAGAs6B,SAFAC,oBACAA,qBAEA,CACAzrC,kDACAA,4BACA,CACA,uBACA,8BACAgf,wBACA,QACA7oB,IACAu1C,aACA7nD,kBACAonD,yBACMS,YACN7nD,gBACAonD,yBAEAU,aACAx1C,kBACA80C,yBACMU,YACNx1C,gBACA80C,wBAEA,CACA,mBACA,WACAE,wBACAr6B,YACA86B,UACAC,gBACAR,yCACA,YAAmBrmD,IAAgBA,KACnC,yCACAksB,iCACAvJ,OACAxR,gBACAstB,QACAnkB,gBACAnD,QACAtY,MACAsS,IACAstB,YACAnkB,OACAjI,MACA+H,YACAC,cAEA,CACA,QACA,CACA,eACA,sBACA,SACM6R,MACN,OAEA,OACA,CACA,mBACA,kBACArtB,KACM,eACNA,QAEAA,CACA,CACA,mBACA,uBACAsS,QACM+a,eACN/a,MAEAA,CACA,CACA,iBACA,MAAY8pB,eAAiBzO,gBAAkBxR,EAC/C,cAAgChb,KAAQA,KACxC,gDACAsmD,cACgBznD,mDAAmDmc,uBACnD8rC,iBAAiBnpB,EACjC,WACA,2BACAjrB,wBACAuoB,cACA,iBACA8rB,UACAC,cACAC,eACA79C,iCACA6xB,cACAof,MACAx7C,IACAsS,IACA8gB,IACAjvB,IACA8mB,WAEAmR,UAEAA,mBAEA,CACA+E,6CACAjoB,cACA0mB,YACAD,uBAEA,CACA,CACA,qBACA,MAAYvD,OAAOjgB,EACnB,KACAigB,sCACM,CACN,8BACAA,kBACA,YAAuBj7B,IAAgBA,IACvC6sB,0BACAoO,iBAEA,CACA,CACA,uBACA,cACA1O,cACYxU,qBAAqBmvC,GACjC36B,qBAGA0O,SACAA,gBACAA,cACAA,sBACAA,8BACAA,cACAksB,YACAlsB,cACAA,WACAA,YACA,CACA,mBACA,aACAzb,QACAva,QACAlG,mBAEA,CAzTA4kB,GADAyjC,GACA,oBACAzjC,GAFAyjC,GAEA,YACAxxB,OACA6B,mCACAouB,OACAniD,eAqTA,oBA4CAsG,eACAga,SACA9d,oBACAA,oBACAA,wBACAA,qBACAA,wBACA,CACAgyB,gBACA,6CACAjG,mCACAjvB,sCACAkD,8CACAA,4CACAA,4CACA,CACAoyB,sBACA,MAAgBpe,aAAahU,mBAC7BA,8BACAA,8BACAA,6BACA,CACAk/C,mBACA,mDACA,CACAxsB,sBACAyuB,6CACAnhD,+CACA,8CACA1B,EACAS,GACAiB,MACA,uBACSrD,8CACT,CACA+2B,MACA,qBACA9N,iCACAw7B,SAEAphD,4BAEA,CACAqhD,wBACArhD,kCACAA,kCACAA,gEACA,CACAshD,iBAGA,aAFAn+B,kCAEA8V,GADAj5B,4BAEA,CACAuhD,iCACA,SACA,WAEA,6CACA,6BACAvhD,eAEA1B,aACA,CACAkjD,iCACA,SACA,WAEA,iDACA,iDACA,CACAC,wBACA,8BACA,qBACA,aACA,gCACA,CACA,CACAC,0BACA,mCACA,OACA/oD,6BACAsS,6BACA+a,QAEA,CACAuqB,8BACA,qEACA,CACAoR,mBACA,8DACA,CACAC,yBACA,MAAgBxtC,+BAA+BpU,yBAC/C,OACAoU,OACAjI,MACA+H,QACAC,SAEA,CACAklB,iBACA,MAAgBC,wBAA0BjT,aAAermB,aACzD,MACA,iBACA+0B,SACAA,cACAksB,uFACAlsB,cACAA,cACAA,SACAA,WACA,CACA,CACA0E,WACA,iBACA7T,gBACgBQ,8BAA8BR,EAC9CsyB,2BACA,UAeA,GAdAtyB,uBACAi8B,WAEAzhC,WACApgB,2BACA,UACAkM,8CACA,2BACAurB,kBACAC,kBACAoqB,gBACA,IAGA17B,WAEA,IADA2O,SACAj7B,MAAoCA,KAAQA,KAC5C,oDACwB+X,qBAAqB4lB,GAC7ClT,QAGAwQ,cACAA,gBACAA,4BACAA,oCACA7oB,wEACAvG,6BACAovB,cACAA,oCACAA,kBACAA,WACA,CACAA,WACA,CACA,CACA4E,cACAC,aACA,iBACAhU,eACA8L,UACA,cACA,OAEA,8BACA,QACAqD,SACAA,uCACAA,YACAA,qBACAA,wBACA/0B,2BACA,qBACA,OAEA,yCACAo1B,aAEA,GADAlpB,0DACAurB,qBACA1C,gBACAxW,+BACAwW,4BACA,8BACAA,mEACA,CACA+E,qBACAjoB,eACa,GAEbkjB,WACA,CACAiF,cAzOAvc,GADAskC,GACA,qBACAtkC,GAFAskC,GAEA,YACAx6C,WACAI,WACAhC,qBACAygB,YACA7e,WACAgd,YACAqT,cACAC,oBAEAzX,MACAiG,aAEAxD,aACA6M,OACAsyB,qBACAzwB,gCAEAjL,aACAs6B,qBACAqB,kBACA16C,WACAgpB,MACA9T,SAEA8U,YACAjY,EAEA9M,UACA01C,wBAGAzkC,GAlCAskC,GAkCA,iBACA,iCACA,4BACA,wBAEAtkC,GAvCAskC,GAuCA,eACA37B,YACA82B,oBAoMA,UACAiF,aACAC,UACA3lC,OACA4lC,WAEAC,QACAF,UACA3lC,SACA4lC,UAEAE,QACAH,UACA3lC,SACA4lC,UAEAG,MACAJ,UACA3lC,UACA4lC,UAEAI,KACAL,UACA3lC,WACA4lC,UAEAK,MACAN,UACA3lC,YACA4lC,SAEAM,OACAP,UACA3lC,YACA4lC,UAEAO,SACAR,UACA3lC,YACA4lC,SAEAQ,MACAT,UACA3lC,cAGAqmC,mBACA,iBACA,UACA,CACA,iBACA,SACA,YAEA,oBACYC,+BAA+BjuC,aAC3C,QAOA,MANA,uBACAxW,QAEAmW,QACAnW,8CAEA,SACA,MAEA0kD,IACA1kD,uEAEAA,EACA,CACA,qBACA,kBACA,wBAAwCxE,QAAcA,GACtD,kBACA8X,0CACA,4CACA,YAEA,CACA,cACA,CACA,uBACA,sBAAkC9X,iBAA6BA,KAC/D,cACA,6CACA,QAEA,CACA,4BACA,CACA,eACA,sCAA8DA,MAAUA,EACxE,oBACA,YAGA,CACA,mBACA,MACA,GACMmpD,UACN,MAAgBt7B,WAAWu7B,QAE3BxzB,EADAuzB,oBACA,CACA,OALAvzB,OAMA,CACA,qBACA,mBACAp2B,2BACAC,sBACA,QACA,QAAuBomD,KAAeA,gBACtC5gD,OACAA,OACA2wB,eAGA,QACA,CACA,mBACA,WACAt2B,KACAgc,WACA,QACA,QAAetb,MAAUA,EACzBwE,OACAlF,OACAs2B,QACApxB,QACAqhD,WAGA,6BACA,CACA,oBAqBA77C,eACAga,SACA9d,aACA0B,QACAwW,UACAirC,QAEAnjD,iBACAA,uBACAA,iBACAA,oBACAA,sBACA,CACA0G,aACA,4BACA08C,8CACAA,UACArlB,iCACA/9B,iBACA+iD,gBACAC,cACAK,yBAEAvlC,cACA9d,6BACA,CACA2X,WACA,kBACA,KAEAA,UACA,CACA0Z,eACAvT,qBACA9d,aACA0B,QACAwW,UACAirC,OAEA,CACA/wB,sBACA,qBACAgxB,gBACAtF,qBACA,IAAc9pC,uCAAuChU,qBACrD,eACA+wB,mBACA/c,sBAEAgd,mBACA/c,oBAEA,GACA8c,SACAuyB,2BACA,gDACAA,uBAGAtvC,8CACAC,8CACAjU,yBACAA,wBACA,CACAujD,kBACA,kCACA,+BACAtvC,2BACA,kBACAD,OACAC,iBAEA,CACAD,MACAC,MAEA,CACAse,aACA,qBACAixB,SACA9xB,UACAuxB,iEACA,+BACAjjD,6BACAA,uCAEA,iBAEA0vB,SADA1vB,UAEA,+IACAA,2EACAA,oBACAoT,WACAsc,YAEA+zB,0BACA,CACAjwB,gBACAxzB,kCACAA,6CAEA,CACA0jD,kBACA,IAEApqD,IAFAmY,IACA9X,IAEAqG,gCACA1G,gCAEAmY,EADA,aACA,KAEAzR,mCAEAzG,yCAEAI,EADA,aACAJ,GAEAA,6CAGA,0BACAkY,YACA9X,YACAqG,eACAyR,QACA9X,MACAiY,iBAEA,CACA+xC,YACA,sBACA3vC,WACAC,WACAb,eACAowC,SACAI,sDACA3E,yBACA4E,2BACAC,gBACAp0B,KACA,IACAq0B,IADAzqD,IAMA,GAJAwqD,IACAxqD,6BAEAA,0BACA8pD,oBACA,4EAEA,0DACA,YAAqCW,IAAYA,oBACjDC,UAEA,0CACAA,UAEA9gD,0CACA,CACAyyB,oBACA,MACA6tB,oBACA,OAFAxjD,cAGAqnB,SADAm8B,gBACAA,gBAEAA,0BACA,CACAn8B,YAKA,8BADAA,GAHArnB,aACA+jD,oBACA/jD,YAGA,CACAikD,6BACA,qBACAC,mBACA,KACA,aACAH,EACAhlD,EACA2wB,GACA1vB,MAEA,8BACA89C,aACAqG,kBAEAC,UACA5xC,OAEA,kCADA2xC,iBACAC,EAJAtG,SAKA,CACAprB,sBACA,UACA,mBAAwC54B,MAAUA,EAClD0Y,OACAA,6CAEA,CACA6xC,sBACA,oDACA,CACAzuB,oBACA,sBACAtM,6BACA,oDACA,CACAuM,oBACA,sBACAvM,4CACA,qCACA,CACAg7B,iBACA,2BACAC,gCACAv+B,sDACAw+B,cACAC,cACAC,uCACA,OACA34B,UACAjvB,UAEA,CACA6nD,qBACA,0BACAC,mBACAv9B,2BACAw9B,wCACAC,GACA9kD,oBACAyc,wBACAsoC,mEACA,cACA,CACAC,oBACA,IACAlrD,IADAmpD,uBAEA,YACA,SAEA,uCACA,8BACA,iEAEA,mBAAwCnpD,MAAUA,EAClDmpD,qDAEA,yCACA,CACAgC,qBACA,+BACA,QACA,YACA,SAEA,yBACA,mBAAyCnrD,MAAUA,EACnDmpD,sBAEA,8DACA,CACAiC,aACA,qBACA,EAGA,mBACA,IAEAC,QAFAx9B,IACAC,aAEA7T,GACA9K,4BACe0e,WAAWy9B,iBAEf97B,cAAsC+7B,QACtC/7B,cAAsC+7B,QAEjDp8C,8BACe0e,WAAWy9B,kBAEfrB,cAAsCsB,QACtCtB,cAAsCsB,OAEjD,YACA,0BACA,CAlTA5nC,GADA6nC,GACA,aACA7nC,GAFA6nC,GAEA,YACA5Y,cACA6Y,YACAxB,MACAhB,UACAjF,QACAkF,SACAK,cACAmC,sBACAZ,mBAEAl1B,OACAwf,cACA3d,YACAouB,OACAniD,eAmSA,oBAGAsG,eACAga,SACA9d,eACAA,oBACAA,uBACA,CACA0jD,cACA,sCACA2B,uCACArlD,4BACAA,6CACA8d,oBACA,CACA2nC,oBACA,MAAgBzxC,aAAahU,KAC7BiR,KACAo0C,KACA,cACA,mBAA6CvrD,MAAUA,EACvDyiB,OACAA,YACAtL,UAGA,cACA,OACA,CACA8yC,OACAz6B,OAEA,CACAy6B,OACAz6B,QAIA,mBAAwCxvB,MAAUA,EAClDsF,SACAC,SACAkd,OACAK,yBACAyoC,QACAtB,OACAz6B,cAIA,QACA,CACAo8B,yBACA,0BACA,YACA,SAEA,iCACApsC,4BACA,OACA2pC,EADAvhD,mBACA1B,4BAEA0B,aAEAuhD,oBACAA,CACA,CACAoB,sBACA,uDACA,CACAxuB,oBACA,sBACAG,4CACA,yDACA,EAzEAvY,GADAkoC,GACA,mBACAloC,GAFAkoC,GAEA,wBA2EA,sBACAz+B,eACAs3B,iBACAc,eACA4B,oBACAa,qBACAuD,aACAK,qBAGA,UACAC,GACArsC,GACAyK,GACA9D,WAGS2lC","names":["e","t","u","o","m","x","S","type","n","E","jquery","get","pushStack","each","map","slice","first","last","even","odd","eq","end","push","s","i","expando","noop","isPlainObject","isEmptyObject","globalEval","b","nonce","r","makeArray","inArray","merge","grep","guid","D","hasOwnProperty","R","M","ID","Y","Z","re","oe","T","ae","dir","H","apply","L","f","c","N","d","a","ce","j","C","se","cacheLength","find","relative","preFilter","ATTR","CHILD","PSEUDO","filter","TAG","CLASS","h","p","pseudos","not","has","contains","lang","target","root","focus","enabled","selected","empty","parent","header","input","button","text","lt","gt","radio","submit","l","v","value","replace","g","fe","k","is","prototype","children","closest","index","add","addBack","parents","parentsUntil","next","prev","nextAll","prevAll","nextUntil","prevUntil","siblings","firstChild","contents","match","arguments","remove","this","disable","disabled","lock","locked","fireWith","fire","fired","Deferred","state","always","catch","pipe","promise","then","when","isReady","_","G","cache","V","set","access","hasData","K","Q","data","removeData","_data","_removeData","B","queue","dequeue","_queueHooks","clearQueue","composed","show","hide","toggle","thead","ge","me","namespace","delegateType","global","dispatch","handle","handlers","elem","addProp","Object","enumerable","fix","special","load","noBubble","click","setup","trigger","_default","beforeunload","postDispatch","constructor","stopPropagation","stopImmediatePropagation","altKey","mouseenter","on","one","off","htmlPrefilter","clone","Le","cleanData","detach","append","prepend","before","after","html","nodeType","replaceWith","appendTo","Ie","We","boxSizingReliable","pixelBoxStyles","pixelPosition","reliableMarginLeft","scrollboxSize","reliableTrDimensions","position","Qe","letterSpacing","cssHooks","opacity","cssNumber","animationIterationCount","cssProps","style","css","marginLeft","margin","expand","cur","run","init","scrollTop","linear","swing","nt","tt","height","specialEasing","easing","stop","tweeners","tweener","prefilters","display","prefilter","complete","fadeTo","animate","finish","slideDown","fadeOut","fadeToggle","slow","rt","attr","removeAttr","attrHooks","pt","dt","prop","removeProp","propHooks","tabIndex","propFix","for","addClass","removeClass","toggleClass","hasClass","val","valHooks","option","select","simulate","triggerHandler","teardown","St","join","serialize","serializeArray","name","Mt","It","Wt","active","etag","ajaxSettings","url","accepts","xml","responseFields","converters","flatOptions","ajaxSetup","ajaxPrefilter","readyState","getAllResponseHeaders","setRequestHeader","overrideMimeType","statusCode","abort","y","getJSON","getScript","dataFilter","wrapAll","wrapInner","wrap","unwrap","zt","send","binary","script","charset","jsonp","done","length","setOffset","offset","top","pageYOffset","offsetParent","scrollLeft","Height","padding","bind","unbind","delegate","undelegate","hover","default","writable","TRANSITION_END","document","getSelectorFromElement","getTransitionDurationFromElement","reflow","triggerTransitionEnd","supportsTransitionEnd","isElement","typeCheckConfig","toString","findShadowRoot","jQueryDetection","setTimeout","bindType","emulateTransitionEnd","key","interval","O","TOUCH","P","originalEvent","relatedTarget","W","st","placement","preventOverflow","boundariesElement","backdrop","wt","Ct","Tt","AUTO","Ht","animation","popperConfig","Ut","HIDE","clearTimeout","behavior","arrow","element","onCreate","onUpdate","Ft","delay","Yt","content","$t","Jt","forEach","Te","we","Ee","requestAnimFrame","aL","_notify","numSteps","anims","chart","initial","currentStep","_refresh","_update","item","draw","items","remaining","_getAnims","running","listeners","progress","charts","listen","start","interpolators","boolean","factor","color","c1","number","from","to","cfg","currentValue","update","elapsed","remain","cancel","tick","duration","loop","wait","promises","res","rej","configure","animatedProps","resolved","isArray","_animateOptions","options","awaitAll","animations","_createAnimations","props","date","animator","keys","anim","$shared","$animations","reverse","min","max","right","bottom","left","metasets","singleMode","datasetIndex","otherValue","isNumberFinite","adata","indexScale","valueScale","meta","scale","controller","stacks","iScale","iAxis","vAxis","ilen","stack","dataset","mode","dataIndex","parsed","raw","axis","cloneIfNotShared","cached","createStack","values","initialize","console","updateIndex","clearStacks","linkScales","chooseId","xid","yid","rid","indexAxis","iid","vid","getDataset","getMeta","getScaleForId","_getOtherScale","reset","_destroy","unlistenArrayEvents","_dataCheck","listenArrayEvents","addElements","buildOrUpdateElements","stackChanged","updateStacks","scopeKeys","scopes","parse","_cachedMeta","sorted","isObject","isNotInOrderComparedToPrev","_stacked","parsePrimitiveData","labels","singleScale","parseArrayData","xScale","parseObjectData","xAxisKey","getParsed","getDataElement","applyStack","updateRangeFromParsed","range","getMinMax","_parsed","otherScale","getUserBounds","_skip","getAllParsedValues","getMaxOverflow","getLabelAndValue","vScale","label","elements","area","chartArea","count","drawActiveElementsOnTop","getStyle","getContext","context","resolveDatasetElementOptions","resolveDataElementOptions","_resolveElementOptions","cacheKey","sharing","prefixes","elementType","names","_resolveAnimations","transition","getSharedOptions","includeOptions","_getSharedOptions","previouslySharedOptions","sharedOptions","updateElement","isDirectUpdateMode","updateSharedOptions","_setStyle","removeHoverStyle","setHoverStyle","_removeDatasetHoverStyle","_setDatasetHoverStyle","_resyncElements","numData","_insertElements","arr","move","resetNewElements","updateElements","_removeElements","_sync","args","_onDataPush","_onDataPop","_onDataShift","_onDataSplice","newCount","_onDataUnshift","defined","curr","updateMinAndPrev","size","ratio","chunk","Math","stackCount","endValue","barEnd","barStart","parseFloatBar","entry","sign","properties","borderProps","edge","startEnd","inflateAmount","__publicField","DatasetController","iAxisKey","vAxisKey","obj","super","custom","base","horizontal","ruler","vpixels","head","ipixels","enableBorderRadius","width","setBorderSkipped","setInflateAmount","_getStacks","stacked","skipNull","_getStackCount","_getStackIndex","_getRuler","pixels","barThickness","grouped","_calculateBarValuePixels","actualBase","floating","endPixel","center","_calculateBarIndexPixels","maxBarThickness","stackIndex","rects","BarController","datasetElementType","dataElementType","categoryPercentage","barPercentage","numbers","scales","_index_","grid","_value_","beginAtZero","iPixel","vPixel","ratioY","offsetX","offsetY","endAngle","startX","startY","endX","endY","calcMax","calcMin","maxX","maxY","minX","minY","ratioX","BubbleController","getter","_getRotation","_getCircumference","_getRotationExtents","rotation","circumference","arcs","spacing","maxSize","cutout","chartWeight","getRatioAndOffset","maxRadius","outerRadius","radiusLength","_circumference","centerX","centerY","animateScale","innerRadius","startAngle","arc","calculateTotal","metaData","total","calculateCircumference","TAU","getMaxBorderWidth","getMaxOffset","_getRingWeightOffset","ringWeightOffset","_getRingWeight","_getVisibleDatasetWeightTotal","DoughnutController","animateRotate","radius","_scriptable","_indexable","aspectRatio","plugins","legend","generateLabels","pointStyle","fillStyle","strokeStyle","fontColor","lineWidth","hidden","onClick","animationsDisabled","_getStartAndCountOfVisiblePoints","_scaleRangesChanged","line","animated","spanGaps","maxGapLength","directUpdate","pointsCount","nullData","segment","prevParsed","border","lastPoint","LineController","showLine","isNaN","_updateRadius","opts","minSize","animationOpts","datasetStartAngle","angle","countVisibleElements","_computeAngle","PolarAreaController","angleLines","circular","pointLabels","PieController","points","_loop","_fullLoop","pointPosition","skip","RadarController","fill","firstOpts","ScatterController","interaction","__proto__","static","formats","format","diff","startOf","endOf","_date","metaset","lo","hi","binarySearch","handler","useY","deltaY","evaluateInteractionItems","includeInvisible","useFinalPosition","getAngleFromPoint","_angleBetween","inRange","distance","minDistance","rangeMethod","intersectsItem","intersect","modes","point","getIntersectItems","getRelativePosition","nearest","getNearestItems","getAxisItems","v1","box","layoutBoxes","pos","weight","stackWeight","placed","_stack","vBoxMaxWidth","params","layout","fullSize","centerHorizontal","centerVertical","leftAndTop","rightAndBottom","vertical","maxPadding","updateMaxPadding","newHeight","widthChanged","heightChanged","same","other","change","updatePos","marginForPositions","updateDims","refit","changed","refitBoxes","setBoxDims","width1","addBox","z","removeBox","availableWidth","availableHeight","boxes","verticalBoxes","horizontalBoxes","outerWidth","outerHeight","hBoxMaxHeight","w","fitBoxes","handleMaxPadding","placeBoxes","acquireContext","releaseContext","addEventListener","removeEventListener","getDevicePixelRatio","getMaximumSize","isAttached","updateConfig","config","EVENT_TYPES","touchstart","touchmove","touchend","pointerenter","pointerdown","pointermove","pointerup","pointerleave","pointerout","isNullOrEmpty","renderHeight","renderWidth","canvas","passive","node","native","observer","listener","childList","subtree","dpr","oldDevicePixelRatio","drpListeningCharts","resize","window","container","listenDevicePixelRatioChanges","unlistenDevicePixelRatioChanges","proxy","initCanvas","isNullOrUndef","attach","proxies","BasicPlatform","DomPlatform","tooltipPosition","hasValue","getProps","ret","determinedMaxTicks","ticksLimit","majorIndices","numMajorIndices","newTicks","tickLength","ticks","result","majorEnd","Element","offsetFromEdge","getTicksLimit","increment","len","validIndex","epsilon","lineValue","gcLen","gc","font","maxWidth","titleX","titleY","_userMin","_userMax","_suggestedMin","_suggestedMax","minDefined","maxDefined","getPadding","getTicks","getLabels","getLabelItems","beforeLayout","beforeUpdate","callback","sampleSize","margins","tickOpts","samplingEnabled","startPixel","reversePixels","afterUpdate","beforeSetDimensions","setDimensions","afterSetDimensions","_callHooks","beforeDataLimits","determineDataLimits","afterDataLimits","beforeBuildTicks","buildTicks","afterBuildTicks","beforeTickToLabelConversion","generateTickLabels","afterTickToLabelConversion","beforeCalculateLabelRotation","calculateLabelRotation","numTicks","minRotation","maxRotation","tickWidth","labelRotation","maxLabelWidth","maxLabelHeight","maxHeight","maxLabelDiagonal","afterCalculateLabelRotation","afterAutoSkip","beforeFit","fit","isHorizontal","tickPadding","angleRadians","cos","sin","_calculatePadding","align","isRotated","labelsBelowTicks","offsetRight","paddingRight","paddingLeft","paddingBottom","paddingTop","_handleMargins","afterFit","isFullSize","_convertTicksToLabels","_getLabelSizes","_computeLabelSizes","ctx","widths","heights","widestLabelSize","highestLabelSize","tickFont","lineHeight","nestedLabel","garbageCollect","highest","valueAt","widest","getLabelForValue","getPixelForValue","getValueForPixel","getPixelForTick","getPixelForDecimal","decimal","getDecimalForPixel","getBasePixel","getBaseValue","_tickSize","rot","labelSizes","_isVisible","_computeGridLineItems","ticksLength","tl","borderOpts","axisWidth","axisHalfWidth","alignBorderValue","tx1","borderValue","ty1","ty2","y1","y2","tx2","x1","x2","step","optsAtIndex","optsAtIndexBorder","lineColor","borderDash","borderDashOffset","tickColor","tickBorderDash","tickBorderDashOffset","alignedLineValue","_computeLabelItems","optionTicks","tickAndPadding","hTickAndPadding","textBaseline","textAlign","pixel","lineCount","strokeColor","strokeWidth","tickTextAlign","textOffset","mirror","translation","_getXAxisLabelAlignment","toRadians","_getYAxisLabelAlignment","crossAlign","_computeLabelArea","drawBackground","backgroundColor","getLineWidthForValue","findIndex","drawGrid","drawLine","drawBorder","drawLabels","clipArea","renderText","unclipArea","drawTitle","titleArgs","_layers","tz","gz","bz","getMatchingVisibleMetas","axisID","_resolveTickFontOptions","_maxDigits","isForType","register","isIChartComponent","parentScope","id","scope","registerDefaults","defaults","unregister","overrides","routeDefaults","sourceName","sourceScope","concat","parts","targetName","targetScope","addControllers","addPlugins","addScales","getController","getElement","getPlugin","getScale","removeControllers","removeElements","removePlugins","removeScales","_each","typedRegistry","_exec","registry","_getRegistryForType","_get","notify","plugin","descriptor","invalidate","_descriptors","descriptors","_createDescriptors","_notifyStateChanges","i1","localIds","local","scriptable","indexable","allKeys","configScales","chartIndexAxis","defaultId","defaultScaleOptions","scaleConf","mergeIf","datasets","initOptions","keysCached","keyCache","platform","clearCache","datasetScopeKeys","datasetType","datasetAnimationScopeKeys","datasetElementScopeKeys","pluginScopeKeys","_cachedScopes","_scopeCache","getOptionScopes","keyLists","mainScope","array","chartOptionScopes","resolveNamedOptions","resolver","getResolver","createResolver","descriptorDefaults","resolverCache","_createResolver","subPrefixes","isScriptable","animationOptions","getChart","isClick","lastEvent","invalidatePlugins","initialCanvas","existingChart","instances","maintainAspectRatio","_aspectRatio","_initialize","retinaScale","clear","_resize","newSize","newRatio","ensureScalesHaveIDs","axisOptions","buildOrUpdateScales","scaleOpts","updated","isRadial","dposition","dtype","scaleType","scaleOptions","hasUpdated","layouts","_updateMetasets","numMeta","_removeUnreferencedMetasets","_metasets","buildOrUpdateControllers","newControllers","_resetElements","animsDisabled","cancelable","minPadding","_active","_lastEvent","_updateScales","_checkEventBindings","existingEvents","newEvents","setsEqual","_updateHiddenIndices","_hiddenIndices","changes","method","moveNumericKeys","_getUniformDataChanges","makeSet","changeSet","_updateLayout","noArea","_updateDatasets","_updateDataset","render","onAnimationsComplete","layers","_getSortedDatasetMetas","filterVisible","getSortedVisibleDatasetMetas","_drawDatasets","_drawDataset","clip","useClip","isPointInArea","getElementsAtEventForMode","getDatasetMeta","xAxisID","yAxisID","order","_dataset","_sorted","getVisibleDatasetCount","isDatasetVisible","setDatasetVisibility","toggleDataVisibility","getDataVisibility","_updateVisibility","visible","_destroyDatasetMeta","_stop","destroy","clearCanvas","toBase64Image","bindEvents","bindUserEvents","_add","bindResponsiveEvents","_remove","detached","attached","unbindEvents","updateHoverStyle","getActiveElements","setActiveElements","_elementsEqual","notifyPlugins","isPluginEnabled","_updateHoverStyles","deactivated","activated","_eventHandler","event","replay","inChartArea","eventFilter","_handleEvent","_getActiveElements","angleMargin","halfThickness","innerLimit","computeOuterLimit","outerStart","outerEnd","innerStart","innerEnd","avNogSpacingRadius","innerR","spacingOffset","angleOffset","parseBorderRadius$1","outerStartAdjustedRadius","outerEndAdjustedRadius","outerStartAdjustedAngle","outerEndAdjustedAngle","innerStartAdjustedRadius","innerEndAdjustedRadius","innerStartAdjustedAngle","innerEndAdjustedAngle","outerStartY","outerEndY","fullCircles","pathArc","borderWidth","inner","clipArc","Chart","rAdjust","betweenAngles","valueOrDefault","withinRadius","getCenterPoint","halfAngle","halfRadius","radiusOffset","drawArc","_steppedLineTo","_bezierCurveTo","lineTo","paramsStart","pathVars","lineMethod","avgX","countX","drawX","truncX","prevX","lastY","pathSegment","_steppedInterpolation","_bezierInterpolation","_pointInLine","path","setStyle","segments","segmentMethod","ArcElement","borderAlign","borderColor","borderJoinStyle","borderRadius","usePath2D","strokePathWithCache","strokePathDirect","updateControlPoints","_updateBezierControlPoints","interpolate","property","_interpolate","p1","p2","interpolated","_getSegmentMethod","el","LineElement","borderCapStyle","capBezierPoints","cubicInterpolationMode","stepped","tension","inXRange","inYRange","drawPoint","getRange","bar","half","maxR","enableBorder","topLeft","topRight","bottomLeft","bottomRight","outer","skipY","bounds","skipX","getBarBounds","rect","PointElement","hitRadius","hoverBorderWidth","hoverRadius","boundingRects","addRectPath","BarElement","borderSkipped","BACKGROUND_COLORS","forceOverride","chartOptions","bucketWidth","decimated","avgY","avgRangeEnd","avgRangeLength","rangeTo","maxArea","maxAreaPoint","nextA","xMin","dx","minIndex","maxIndex","intermediateIndex2","intermediateIndex1","configurable","cleanDecimatedDataset","_limitValue","pointCount","algorithm","beforeElementsUpdate","cleanDecimatedData","resolve","getStartAndCountOfVisiblePointsSimplified","tpoints","source","fillSources","boundary","linePoints","fn","sources","visited","decodeTargetIndex","indexOf","startValue","fillOption","sourcePoints","linesBelow","addPointsBelow","metas","below","findPoint","postponed","firstValue","lastValue","_createBoundaryLine","getPointPositionForValue","computeCircularBoundary","computeLinearBoundary","lineOpts","above","doFill","clipVertical","lineLoop","firstPoint","src","notShape","clipBounds","interpolatedLineTo","interpolatedPoint","afterDatasetsUpdate","beforeDraw","_drawfill","beforeDatasetsDraw","_shouldApplyFill","beforeDatasetDraw","propagate","drawTime","boxHeight","labelOpts","boxWidth","itemHeight","itemsEqual","buildLabels","legendItems","labelFont","fontSize","titleHeight","getBoxSize","_fitRows","hitboxes","lineWidths","totalHeight","row","_fitCols","columnSizes","heightLimit","currentColWidth","currentColHeight","col","itemWidth","calculateItemSize","totalWidth","adjustHitBoxes","legendHitBoxes","rtl","rtlHelper","hitbox","hitbox1","_draw","defaultColor","halfFontSize","cursor","overrideTextDirection","drawPointLegend","xBoxLeft","addRoundedRectPath","drawLegendBox","strikethrough","fillText","calculateLegendItemHeight","restoreTextDirection","titleOpts","titleFont","titlePadding","topPaddingPlusHalfFontSize","_computeTitleHeight","_getLegendItemAt","lh","hitBox","_isBetween","handleEvent","sameItem","previous","hoveredItem","calculateItemWidth","calculateItemHeight","legendItemText","legendItem","_element","afterEvent","ci","onHover","onLeave","usePointStyle","lineCap","lineDash","lineDashOffset","lineJoin","title","includes","_drawArgs","fontOpts","createTitle","defaultRoutes","average","nearestElement","Array","str","formattedValue","body","tooltip","bodyFont","footerFont","titleLineCount","footerLineCount","bodyLineItemCount","combinedBodyLength","widthPadding","caret","xAlign","doesNotFitWithAlign","yAlign","caretSize","alignment","paddingAndSize","toTRBLCorners","tooltipItems","beforeTitle","labelCount","afterTitle","beforeBody","beforeLabel","labelColor","tooltipItem","labelTextColor","labelPointStyle","afterLabel","afterBody","beforeFooter","footer","afterFooter","defaultCallbacks","getTitle","callbacks","lines","getBeforeBody","getBody","bodyItems","scoped","pushOrConcat","getAfterBody","getFooter","_createItems","labelColors","labelPointStyles","labelTextColors","positionAndSize","backgroundPoint","caretX","caretY","drawCaret","getCaretPosition","tooltipPoint","y3","x3","ptX","titleSpacing","_drawColorBox","colorX","rtlColorX","colorY","innerX","drawBody","bodySpacing","xLinePadding","fillLineOfText","bodyAlignForCalculation","bodyItem","textColor","displayColors","bodyLineHeight","drawFooter","tooltipSize","_updateAnimationTarget","animX","animY","_willRender","positionChanged","lastActive","_positionChanged","Tooltip","positioners","afterInit","afterDraw","external","titleColor","titleMarginBottom","titleAlign","bodyColor","bodyAlign","footerColor","footerSpacing","footerMarginTop","footerAlign","caretPadding","cornerRadius","multiKeyBackground","boxPadding","_fallback","additionalOptionScopes","Colors","Decimation","Filler","Legend","SubTitle","Title","addedLabels","addIfString","added","generationOptions","unit","maxSpaces","dataRange","countDefined","minSpacing","numSpaces","niceMin","niceMax","almostEquals","includeBounds","CategoryScale","handleTickRangeOptions","setMax","maxSign","minSign","setMin","getTickLimit","maxTicks","maxTicksLimit","stepSize","computeTickLimit","precision","maxDigits","_setMinAndMaxByKey","LinearScale","changeExponent","tickVal","rangeExp","minExp","major","significand","exp","NaN","limits","orig","valueCount","pointLabelOpts","additionalAngle","plFont","textSize","updateLimits","determineLimits","hLimits","vLimits","extra","outerDistance","backdropColor","backdropTop","backdropWidth","backdropHeight","gridLineOpts","pathRadiusLine","LogarithmicScale","LinearScaleBase","fitWithPointLabels","setCenterPoint","getIndexAngle","getDistanceFromCenterForValue","getValueForDistanceFromCenter","getPointLabelContext","getPointPosition","getBasePosition","getPointLabelPosition","drawPointLabels","drawRadiusLine","RadialLinearScale","showLabelBackdrop","backdropPadding","centerPointLabels","millisecond","common","steps","second","minute","hour","day","week","month","quarter","year","UNITS","parser","round","timestamps","_lookup","all","adapter","isoWeekday","_applyBounds","_getLabelBounds","timeOpts","ticksFromTimestamps","initOffsets","_generate","minor","weekday","hasWeekday","time","addTick","_tickFormatFunction","formatter","majorUnit","majorFormat","getDecimalForValue","_getLabelSize","tickLabelWidth","cosRotation","sinRotation","tickFontSize","_getLabelCapacity","displayFormats","exampleLabel","exampleTime","capacity","getDataTimestamps","getLabelTimestamps","normalize","prevSource","_lookupByKey","table","TimeScale","adapters","minUnit","buildLookupTable","_getTimestampsForTable","TimeSeriesScale","controllers","Animation"],"sourceRoot":"webpack:///","sources":["node_modules\\jquery\\dist\\jquery.min.js","node_modules\\bootstrap\\dist\\js\\bootstrap.min.js","node_modules\\chart.js\\dist\\Chart.js"],"sourcesContent":["/*! jQuery v3.6.3 | (c) OpenJS Foundation and other contributors | jquery.org/license */\n!function(e,t){\"use strict\";\"object\"==typeof module&&\"object\"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error(\"jQuery requires a window with a document\");return t(e)}:t(e)}(\"undefined\"!=typeof window?window:this,function(C,e){\"use strict\";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,y=n.hasOwnProperty,a=y.toString,l=a.call(Object),v={},m=function(e){return\"function\"==typeof e&&\"number\"!=typeof e.nodeType&&\"function\"!=typeof e.item},x=function(e){return null!=e&&e===e.window},S=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||S).createElement(\"script\");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+\"\":\"object\"==typeof e||\"function\"==typeof e?n[o.call(e)]||\"object\":typeof e}var f=\"3.6.3\",E=function(e,t){return new E.fn.init(e,t)};function p(e){var t=!!e&&\"length\"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&(\"array\"===n||0===t||\"number\"==typeof t&&0+~]|\"+M+\")\"+M+\"*\"),U=new RegExp(M+\"|>\"),X=new RegExp(F),V=new RegExp(\"^\"+I+\"$\"),G={ID:new RegExp(\"^#(\"+I+\")\"),CLASS:new RegExp(\"^\\\\.(\"+I+\")\"),TAG:new RegExp(\"^(\"+I+\"|[*])\"),ATTR:new RegExp(\"^\"+W),PSEUDO:new RegExp(\"^\"+F),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+M+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+M+\"*(?:([+-]|)\"+M+\"*(\\\\d+)|))\"+M+\"*\\\\)|)\",\"i\"),bool:new RegExp(\"^(?:\"+R+\")$\",\"i\"),needsContext:new RegExp(\"^\"+M+\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\"+M+\"*((?:-\\\\d)?\\\\d*)\"+M+\"*\\\\)|)(?=[^-]|$)\",\"i\")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\\d$/i,K=/^[^{]+\\{\\s*\\[native \\w/,Z=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,ee=/[+~]/,te=new RegExp(\"\\\\\\\\[\\\\da-fA-F]{1,6}\"+M+\"?|\\\\\\\\([^\\\\r\\\\n\\\\f])\",\"g\"),ne=function(e,t){var n=\"0x\"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,ie=function(e,t){return t?\"\\0\"===e?\"\\ufffd\":e.slice(0,-1)+\"\\\\\"+e.charCodeAt(e.length-1).toString(16)+\" \":\"\\\\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&\"fieldset\"===e.nodeName.toLowerCase()},{dir:\"parentNode\",next:\"legend\"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],\"string\"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,S)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&v(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+\" \"]&&(!y||!y.test(t))&&(1!==p||\"object\"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ve(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute(\"id\"))?s=s.replace(re,ie):e.setAttribute(\"id\",s=E)),o=(l=h(t)).length;while(o--)l[o]=(s?\"#\"+s:\":scope\")+\" \"+xe(l[o]);c=l.join(\",\")}try{if(d.cssSupportsSelector&&!CSS.supports(\"selector(:is(\"+c+\"))\"))throw new Error;return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===E&&e.removeAttribute(\"id\")}}}return g(t.replace(B,\"$1\"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+\" \")>b.cacheLength&&delete e[r.shift()],e[t+\" \"]=n}}function le(e){return e[E]=!0,e}function ce(e){var t=C.createElement(\"fieldset\");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split(\"|\"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return\"input\"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return(\"input\"===t||\"button\"===t)&&e.type===n}}function ge(t){return function(e){return\"form\"in e?e.parentNode&&!1===e.disabled?\"label\"in e?\"label\"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:\"label\"in e&&e.disabled===t}}function ye(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&\"undefined\"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||\"HTML\")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,S=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener(\"unload\",oe,!1):n.attachEvent&&n.attachEvent(\"onunload\",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement(\"div\")),\"undefined\"!=typeof e.querySelectorAll&&!e.querySelectorAll(\":scope fieldset div\").length}),d.cssSupportsSelector=ce(function(){return CSS.supports(\"selector(*)\")&&C.querySelectorAll(\":is(:jqfake)\")&&!CSS.supports(\"selector(:is(*,:jqfake))\")}),d.attributes=ce(function(e){return e.className=\"i\",!e.getAttribute(\"className\")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment(\"\")),!e.getElementsByTagName(\"*\").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=E,!C.getElementsByName||!C.getElementsByName(E).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute(\"id\")===t}},b.find.ID=function(e,t){if(\"undefined\"!=typeof t.getElementById&&S){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t=\"undefined\"!=typeof e.getAttributeNode&&e.getAttributeNode(\"id\");return t&&t.value===n}},b.find.ID=function(e,t){if(\"undefined\"!=typeof t.getElementById&&S){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode(\"id\"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode(\"id\"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return\"undefined\"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if(\"*\"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if(\"undefined\"!=typeof t.getElementsByClassName&&S)return t.getElementsByClassName(e)},s=[],y=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML=\"\",e.querySelectorAll(\"[msallowcapture^='']\").length&&y.push(\"[*^$]=\"+M+\"*(?:''|\\\"\\\")\"),e.querySelectorAll(\"[selected]\").length||y.push(\"\\\\[\"+M+\"*(?:value|\"+R+\")\"),e.querySelectorAll(\"[id~=\"+E+\"-]\").length||y.push(\"~=\"),(t=C.createElement(\"input\")).setAttribute(\"name\",\"\"),e.appendChild(t),e.querySelectorAll(\"[name='']\").length||y.push(\"\\\\[\"+M+\"*name\"+M+\"*=\"+M+\"*(?:''|\\\"\\\")\"),e.querySelectorAll(\":checked\").length||y.push(\":checked\"),e.querySelectorAll(\"a#\"+E+\"+*\").length||y.push(\".#.+[+~]\"),e.querySelectorAll(\"\\\\\\f\"),y.push(\"[\\\\r\\\\n\\\\f]\")}),ce(function(e){e.innerHTML=\"\";var t=C.createElement(\"input\");t.setAttribute(\"type\",\"hidden\"),e.appendChild(t).setAttribute(\"name\",\"D\"),e.querySelectorAll(\"[name=d]\").length&&y.push(\"name\"+M+\"*[*^$|!~]?=\"),2!==e.querySelectorAll(\":enabled\").length&&y.push(\":enabled\",\":disabled\"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(\":disabled\").length&&y.push(\":enabled\",\":disabled\"),e.querySelectorAll(\"*,:x\"),y.push(\",.*:\")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,\"*\"),c.call(e,\"[s!='']:x\"),s.push(\"!=\",F)}),d.cssSupportsSelector||y.push(\":has\"),y=y.length&&new RegExp(y.join(\"|\")),s=s.length&&new RegExp(s.join(\"|\")),t=K.test(a.compareDocumentPosition),v=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType&&e.documentElement||e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&v(p,e)?-1:t==C||t.ownerDocument==p&&v(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&S&&!N[t+\" \"]&&(!s||!s.test(t))&&(!y||!y.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0\":{dir:\"parentNode\",first:!0},\" \":{dir:\"parentNode\"},\"+\":{dir:\"previousSibling\",first:!0},\"~\":{dir:\"previousSibling\"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||\"\").replace(te,ne),\"~=\"===e[2]&&(e[3]=\" \"+e[3]+\" \"),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),\"nth\"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(\"even\"===e[3]||\"odd\"===e[3])),e[5]=+(e[7]+e[8]||\"odd\"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||\"\":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(\")\",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return\"*\"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+\" \"];return t||(t=new RegExp(\"(^|\"+M+\")\"+e+\"(\"+M+\"|$)\"))&&m(e,function(e){return t.test(\"string\"==typeof e.className&&e.className||\"undefined\"!=typeof e.getAttribute&&e.getAttribute(\"class\")||\"\")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?\"!=\"===r:!r||(t+=\"\",\"=\"===r?t===i:\"!=\"===r?t!==i:\"^=\"===r?i&&0===t.indexOf(i):\"*=\"===r?i&&-1\",\"#\"===e.firstChild.getAttribute(\"href\")})||fe(\"type|href|height|width\",function(e,t,n){if(!n)return e.getAttribute(t,\"type\"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML=\"\",e.firstChild.setAttribute(\"value\",\"\"),\"\"===e.firstChild.getAttribute(\"value\")})||fe(\"value\",function(e,t,n){if(!n&&\"input\"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute(\"disabled\")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);E.find=d,E.expr=d.selectors,E.expr[\":\"]=E.expr.pseudos,E.uniqueSort=E.unique=d.uniqueSort,E.text=d.getText,E.isXMLDoc=d.isXML,E.contains=d.contains,E.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&E(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=E.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i;function j(e,n,r){return m(n)?E.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?E.grep(e,function(e){return e===n!==r}):\"string\"!=typeof n?E.grep(e,function(e){return-1)[^>]*|#([\\w-]+))$/;(E.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,\"string\"==typeof e){if(!(r=\"<\"===e[0]&&\">\"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:S,!0)),N.test(r[1])&&E.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=S.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,D=E(S);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e\\x20\\t\\r\\n\\f]*)/i,he=/^$|^module$|\\/(?:java|ecma)script/i;ce=S.createDocumentFragment().appendChild(S.createElement(\"div\")),(fe=S.createElement(\"input\")).setAttribute(\"type\",\"radio\"),fe.setAttribute(\"checked\",\"checked\"),fe.setAttribute(\"name\",\"t\"),ce.appendChild(fe),v.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML=\"\",v.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML=\"\",v.option=!!ce.lastChild;var ge={thead:[1,\"\",\"
\"],col:[2,\"\",\"
\"],tr:[2,\"\",\"
\"],td:[3,\"\",\"
\"],_default:[0,\"\",\"\"]};function ye(e,t){var n;return n=\"undefined\"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||\"*\"):\"undefined\"!=typeof e.querySelectorAll?e.querySelectorAll(t||\"*\"):[],void 0===t||t&&A(e,t)?E.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n\",\"\"]);var me=/<|&#?\\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\\s*$/g;function je(e,t){return A(e,\"table\")&&A(11!==t.nodeType?t:t.firstChild,\"tr\")&&E(e).children(\"tbody\")[0]||e}function De(e){return e.type=(null!==e.getAttribute(\"type\"))+\"/\"+e.type,e}function qe(e){return\"true/\"===(e.type||\"\").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute(\"type\"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,\"handle events\"),s)for(n=0,r=s[i].length;n\").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on(\"load error\",i=function(e){r.remove(),i=null,e&&t(\"error\"===e.type?404:200,e.type)}),S.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\\?(?=&|$)|\\?\\?/;E.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var e=Xt.pop()||E.expando+\"_\"+Ct.guid++;return this[e]=!0,e}}),E.ajaxPrefilter(\"json jsonp\",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?\"url\":\"string\"==typeof e.data&&0===(e.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&Vt.test(e.data)&&\"data\");if(a||\"jsonp\"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,\"$1\"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?\"&\":\"?\")+e.jsonp+\"=\"+r),e.converters[\"script json\"]=function(){return o||E.error(r+\" was not called\"),o[0]},e.dataTypes[0]=\"json\",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?E(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),\"script\"}),v.createHTMLDocument=((Ut=S.implementation.createHTMLDocument(\"\").body).innerHTML=\"
\",2===Ut.childNodes.length),E.parseHTML=function(e,t,n){return\"string\"!=typeof e?[]:(\"boolean\"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=S.implementation.createHTMLDocument(\"\")).createElement(\"base\")).href=S.location.href,t.head.appendChild(r)):t=S),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&E(o).remove(),E.merge([],i.childNodes)));var r,i,o},E.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(\" \");return-1\").append(E.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},E.expr.pseudos.animated=function(t){return E.grep(E.timers,function(e){return t===e.elem}).length},E.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=E.css(e,\"position\"),c=E(e),f={};\"static\"===l&&(e.style.position=\"relative\"),s=c.offset(),o=E.css(e,\"top\"),u=E.css(e,\"left\"),(\"absolute\"===l||\"fixed\"===l)&&-1<(o+u).indexOf(\"auto\")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,E.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),\"using\"in t?t.using.call(e,f):c.css(f)}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){E.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if(\"fixed\"===E.css(r,\"position\"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&\"static\"===E.css(e,\"position\"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=E(e).offset()).top+=E.css(e,\"borderTopWidth\",!0),i.left+=E.css(e,\"borderLeftWidth\",!0))}return{top:t.top-i.top-E.css(r,\"marginTop\",!0),left:t.left-i.left-E.css(r,\"marginLeft\",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&\"static\"===E.css(e,\"position\"))e=e.offsetParent;return e||re})}}),E.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},function(t,i){var o=\"pageYOffset\"===i;E.fn[t]=function(e){return B(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),E.each([\"top\",\"left\"],function(e,n){E.cssHooks[n]=_e(v.pixelPosition,function(e,t){if(t)return t=Be(e,n),Pe.test(t)?E(e).position()[n]+\"px\":t})}),E.each({Height:\"height\",Width:\"width\"},function(a,s){E.each({padding:\"inner\"+a,content:s,\"\":\"outer\"+a},function(r,o){E.fn[o]=function(e,t){var n=arguments.length&&(r||\"boolean\"!=typeof e),i=r||(!0===e||!0===t?\"margin\":\"border\");return B(this,function(e,t,n){var r;return x(e)?0===o.indexOf(\"outer\")?e[\"inner\"+a]:e.document.documentElement[\"client\"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body[\"scroll\"+a],r[\"scroll\"+a],e.body[\"offset\"+a],r[\"offset\"+a],r[\"client\"+a])):void 0===n?E.css(e,t,i):E.style(e,t,n,i)},s,n?e:void 0,n)}})}),E.each([\"ajaxStart\",\"ajaxStop\",\"ajaxComplete\",\"ajaxError\",\"ajaxSuccess\",\"ajaxSend\"],function(e,t){E.fn[t]=function(e){return this.on(t,e)}}),E.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,\"**\"):this.off(t,e||\"**\",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),E.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(e,n){E.fn[n]=function(e,t){return 0=4)throw new Error(\"Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0\")}};d.jQueryDetection(),o.default.fn.emulateTransitionEnd=function(t){var e=this,n=!1;return o.default(this).one(d.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||d.triggerTransitionEnd(e)}),t),this},o.default.event.special[d.TRANSITION_END]={bindType:f,delegateType:f,handle:function(t){if(o.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var c=\"bs.alert\",h=o.default.fn.alert,g=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){o.default.removeData(this._element,c),this._element=null},e._getRootElement=function(t){var e=d.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=o.default(t).closest(\".alert\")[0]),n},e._triggerCloseEvent=function(t){var e=o.default.Event(\"close.bs.alert\");return o.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(o.default(t).removeClass(\"show\"),o.default(t).hasClass(\"fade\")){var n=d.getTransitionDurationFromElement(t);o.default(t).one(d.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){o.default(t).detach().trigger(\"closed.bs.alert\").remove()},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data(c);i||(i=new t(this),n.data(c,i)),\"close\"===e&&i[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},l(t,null,[{key:\"VERSION\",get:function(){return\"4.6.2\"}}]),t}();o.default(document).on(\"click.bs.alert.data-api\",'[data-dismiss=\"alert\"]',g._handleDismiss(new g)),o.default.fn.alert=g._jQueryInterface,o.default.fn.alert.Constructor=g,o.default.fn.alert.noConflict=function(){return o.default.fn.alert=h,g._jQueryInterface};var m=\"bs.button\",p=o.default.fn.button,_=\"active\",v='[data-toggle^=\"button\"]',y='input:not([type=\"hidden\"])',b=\".btn\",E=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=o.default(this._element).closest('[data-toggle=\"buttons\"]')[0];if(n){var i=this._element.querySelector(y);if(i){if(\"radio\"===i.type)if(i.checked&&this._element.classList.contains(_))t=!1;else{var a=n.querySelector(\".active\");a&&o.default(a).removeClass(_)}t&&(\"checkbox\"!==i.type&&\"radio\"!==i.type||(i.checked=!this._element.classList.contains(_)),this.shouldAvoidTriggerChange||o.default(i).trigger(\"change\")),i.focus(),e=!1}}this._element.hasAttribute(\"disabled\")||this._element.classList.contains(\"disabled\")||(e&&this._element.setAttribute(\"aria-pressed\",!this._element.classList.contains(_)),t&&o.default(this._element).toggleClass(_))},e.dispose=function(){o.default.removeData(this._element,m),this._element=null},t._jQueryInterface=function(e,n){return this.each((function(){var i=o.default(this),a=i.data(m);a||(a=new t(this),i.data(m,a)),a.shouldAvoidTriggerChange=n,\"toggle\"===e&&a[e]()}))},l(t,null,[{key:\"VERSION\",get:function(){return\"4.6.2\"}}]),t}();o.default(document).on(\"click.bs.button.data-api\",v,(function(t){var e=t.target,n=e;if(o.default(e).hasClass(\"btn\")||(e=o.default(e).closest(b)[0]),!e||e.hasAttribute(\"disabled\")||e.classList.contains(\"disabled\"))t.preventDefault();else{var i=e.querySelector(y);if(i&&(i.hasAttribute(\"disabled\")||i.classList.contains(\"disabled\")))return void t.preventDefault();\"INPUT\"!==n.tagName&&\"LABEL\"===e.tagName||E._jQueryInterface.call(o.default(e),\"toggle\",\"INPUT\"===n.tagName)}})).on(\"focus.bs.button.data-api blur.bs.button.data-api\",v,(function(t){var e=o.default(t.target).closest(b)[0];o.default(e).toggleClass(\"focus\",/^focus(in)?$/.test(t.type))})),o.default(window).on(\"load.bs.button.data-api\",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle=\"buttons\"] .btn')),e=0,n=t.length;e0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(N)},e.nextWhenVisible=function(){var t=o.default(this._element);!document.hidden&&t.is(\":visible\")&&\"hidden\"!==t.css(\"visibility\")&&this.next()},e.prev=function(){this._isSliding||this._slide(D)},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(\".carousel-item-next, .carousel-item-prev\")&&(d.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(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))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(I);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)o.default(this._element).one(A,(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var i=t>n?N:D;this._slide(i,this._items[t])}},e.dispose=function(){o.default(this._element).off(\".bs.carousel\"),o.default.removeData(this._element,w),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=r({},k,t),d.typeCheckConfig(T,t,O),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&o.default(this._element).on(\"keydown.bs.carousel\",(function(e){return t._keydown(e)})),\"hover\"===this._config.pause&&o.default(this._element).on(\"mouseenter.bs.carousel\",(function(e){return t.pause(e)})).on(\"mouseleave.bs.carousel\",(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&j[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t._pointerEvent&&j[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),\"hover\"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};o.default(this._element.querySelectorAll(\".carousel-item img\")).on(\"dragstart.bs.carousel\",(function(t){return t.preventDefault()})),this._pointerEvent?(o.default(this._element).on(\"pointerdown.bs.carousel\",(function(t){return e(t)})),o.default(this._element).on(\"pointerup.bs.carousel\",(function(t){return n(t)})),this._element.classList.add(\"pointer-event\")):(o.default(this._element).on(\"touchstart.bs.carousel\",(function(t){return e(t)})),o.default(this._element).on(\"touchmove.bs.carousel\",(function(e){return function(e){t.touchDeltaX=e.originalEvent.touches&&e.originalEvent.touches.length>1?0:e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),o.default(this._element).on(\"touchend.bs.carousel\",(function(t){return n(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(\".carousel-item\")):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n=t===N,i=t===D,o=this._getItemIndex(e),a=this._items.length-1;if((i&&0===o||n&&o===a)&&!this._config.wrap)return e;var s=(o+(t===D?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(I)),a=o.default.Event(\"slide.bs.carousel\",{relatedTarget:t,direction:e,from:i,to:n});return o.default(this._element).trigger(a),a},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(\".active\"));o.default(e).removeClass(S);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&o.default(n).addClass(S)}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(I);if(t){var e=parseInt(t.getAttribute(\"data-interval\"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var n,i,a,s=this,l=this._element.querySelector(I),r=this._getItemIndex(l),u=e||l&&this._getItemByDirection(t,l),f=this._getItemIndex(u),c=Boolean(this._interval);if(t===N?(n=\"carousel-item-left\",i=\"carousel-item-next\",a=\"left\"):(n=\"carousel-item-right\",i=\"carousel-item-prev\",a=\"right\"),u&&o.default(u).hasClass(S))this._isSliding=!1;else if(!this._triggerSlideEvent(u,a).isDefaultPrevented()&&l&&u){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(u),this._activeElement=u;var h=o.default.Event(A,{relatedTarget:u,direction:a,from:r,to:f});if(o.default(this._element).hasClass(\"slide\")){o.default(u).addClass(i),d.reflow(u),o.default(l).addClass(n),o.default(u).addClass(n);var g=d.getTransitionDurationFromElement(l);o.default(l).one(d.TRANSITION_END,(function(){o.default(u).removeClass(n+\" \"+i).addClass(S),o.default(l).removeClass(\"active \"+i+\" \"+n),s._isSliding=!1,setTimeout((function(){return o.default(s._element).trigger(h)}),0)})).emulateTransitionEnd(g)}else o.default(l).removeClass(S),o.default(u).addClass(S),this._isSliding=!1,o.default(this._element).trigger(h);c&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data(w),i=r({},k,o.default(this).data());\"object\"==typeof e&&(i=r({},i,e));var a=\"string\"==typeof e?e:i.slide;if(n||(n=new t(this,i),o.default(this).data(w,n)),\"number\"==typeof e)n.to(e);else if(\"string\"==typeof a){if(\"undefined\"==typeof n[a])throw new TypeError('No method named \"'+a+'\"');n[a]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}))},t._dataApiClickHandler=function(e){var n=d.getSelectorFromElement(this);if(n){var i=o.default(n)[0];if(i&&o.default(i).hasClass(\"carousel\")){var a=r({},o.default(i).data(),o.default(this).data()),s=this.getAttribute(\"data-slide-to\");s&&(a.interval=!1),t._jQueryInterface.call(o.default(i),a),s&&o.default(i).data(w).to(s),e.preventDefault()}}},l(t,null,[{key:\"VERSION\",get:function(){return\"4.6.2\"}},{key:\"Default\",get:function(){return k}}]),t}();o.default(document).on(\"click.bs.carousel.data-api\",\"[data-slide], [data-slide-to]\",P._dataApiClickHandler),o.default(window).on(\"load.bs.carousel.data-api\",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride=\"carousel\"]')),e=0,n=t.length;e0&&(this._selector=s,this._triggerArray.push(a))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){o.default(this._element).hasClass(q)?this.hide():this.show()},e.show=function(){var e,n,i=this;if(!(this._isTransitioning||o.default(this._element).hasClass(q)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(\".show, .collapsing\")).filter((function(t){return\"string\"==typeof i._config.parent?t.getAttribute(\"data-parent\")===i._config.parent:t.classList.contains(F)}))).length&&(e=null),e&&(n=o.default(e).not(this._selector).data(R))&&n._isTransitioning))){var a=o.default.Event(\"show.bs.collapse\");if(o.default(this._element).trigger(a),!a.isDefaultPrevented()){e&&(t._jQueryInterface.call(o.default(e).not(this._selector),\"hide\"),n||o.default(e).data(R,null));var s=this._getDimension();o.default(this._element).removeClass(F).addClass(Q),this._element.style[s]=0,this._triggerArray.length&&o.default(this._triggerArray).removeClass(B).attr(\"aria-expanded\",!0),this.setTransitioning(!0);var l=\"scroll\"+(s[0].toUpperCase()+s.slice(1)),r=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,(function(){o.default(i._element).removeClass(Q).addClass(\"collapse show\"),i._element.style[s]=\"\",i.setTransitioning(!1),o.default(i._element).trigger(\"shown.bs.collapse\")})).emulateTransitionEnd(r),this._element.style[s]=this._element[l]+\"px\"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&o.default(this._element).hasClass(q)){var e=o.default.Event(\"hide.bs.collapse\");if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+\"px\",d.reflow(this._element),o.default(this._element).addClass(Q).removeClass(\"collapse show\");var i=this._triggerArray.length;if(i>0)for(var a=0;a0},e._getOffset=function(){var t=this,e={};return\"function\"==typeof this._config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t._config.offset(e.offsets,t._element)),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return\"static\"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),r({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data(K);if(n||(n=new t(this,\"object\"==typeof e?e:null),o.default(this).data(K,n)),\"string\"==typeof e){if(\"undefined\"==typeof n[e])throw new TypeError('No method named \"'+e+'\"');n[e]()}}))},t._clearMenus=function(e){if(!e||3!==e.which&&(\"keyup\"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll(it)),i=0,a=n.length;i0&&s--,40===e.which&&sdocument.documentElement.clientHeight;n||(this._element.style.overflowY=\"hidden\"),this._element.classList.add(ht);var i=d.getTransitionDurationFromElement(this._dialog);o.default(this._element).off(d.TRANSITION_END),o.default(this._element).one(d.TRANSITION_END,(function(){t._element.classList.remove(ht),n||o.default(t._element).one(d.TRANSITION_END,(function(){t._element.style.overflowY=\"\"})).emulateTransitionEnd(t._element,i)})).emulateTransitionEnd(i),this._element.focus()}},e._showElement=function(t){var e=this,n=o.default(this._element).hasClass(dt),i=this._dialog?this._dialog.querySelector(\".modal-body\"):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\"),o.default(this._dialog).hasClass(\"modal-dialog-scrollable\")&&i?i.scrollTop=0:this._element.scrollTop=0,n&&d.reflow(this._element),o.default(this._element).addClass(ct),this._config.focus&&this._enforceFocus();var a=o.default.Event(\"shown.bs.modal\",{relatedTarget:t}),s=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,o.default(e._element).trigger(a)};if(n){var l=d.getTransitionDurationFromElement(this._dialog);o.default(this._dialog).one(d.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},e._enforceFocus=function(){var t=this;o.default(document).off(pt).on(pt,(function(e){document!==e.target&&t._element!==e.target&&0===o.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?o.default(this._element).on(yt,(function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()})):this._isShown||o.default(this._element).off(yt)},e._setResizeEvent=function(){var t=this;this._isShown?o.default(window).on(_t,(function(e){return t.handleUpdate(e)})):o.default(window).off(_t)},e._hideModal=function(){var t=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(){o.default(document.body).removeClass(ft),t._resetAdjustments(),t._resetScrollbar(),o.default(t._element).trigger(gt)}))},e._removeBackdrop=function(){this._backdrop&&(o.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=o.default(this._element).hasClass(dt)?dt:\"\";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement(\"div\"),this._backdrop.className=\"modal-backdrop\",n&&this._backdrop.classList.add(n),o.default(this._backdrop).appendTo(document.body),o.default(this._element).on(vt,(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&(\"static\"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),n&&d.reflow(this._backdrop),o.default(this._backdrop).addClass(ct),!t)return;if(!n)return void t();var i=d.getTransitionDurationFromElement(this._backdrop);o.default(this._backdrop).one(d.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){o.default(this._backdrop).removeClass(ct);var a=function(){e._removeBackdrop(),t&&t()};if(o.default(this._element).hasClass(dt)){var s=d.getTransitionDurationFromElement(this._backdrop);o.default(this._backdrop).one(d.TRANSITION_END,a).emulateTransitionEnd(s)}else a()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+\"px\"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+\"px\")},e._resetAdjustments=function(){this._element.style.paddingLeft=\"\",this._element.style.paddingRight=\"\"},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)
',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:{\"*\":[\"class\",\"dir\",\"id\",\"lang\",\"role\",/^aria-[\\w-]*$/i],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:[]},popperConfig:null},Ut={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)\"},Mt={HIDE:\"hide.bs.tooltip\",HIDDEN:\"hidden.bs.tooltip\",SHOW:\"show.bs.tooltip\",SHOWN:\"shown.bs.tooltip\",INSERTED:\"inserted.bs.tooltip\",CLICK:\"click.bs.tooltip\",FOCUSIN:\"focusin.bs.tooltip\",FOCUSOUT:\"focusout.bs.tooltip\",MOUSEENTER:\"mouseenter.bs.tooltip\",MOUSELEAVE:\"mouseleave.bs.tooltip\"},Wt=function(){function t(t,e){if(\"undefined\"==typeof a.default)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=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=o.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(o.default(this.getTipElement()).hasClass(Rt))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),o.default.removeData(this.element,this.constructor.DATA_KEY),o.default(this.element).off(this.constructor.EVENT_KEY),o.default(this.element).closest(\".modal\").off(\"hide.bs.modal\",this._hideModalHandler),this.tip&&o.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},e.show=function(){var t=this;if(\"none\"===o.default(this.element).css(\"display\"))throw new Error(\"Please use show on visible elements\");var e=o.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){o.default(this.element).trigger(e);var n=d.findShadowRoot(this.element),i=o.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var s=this.getTipElement(),l=d.getUID(this.constructor.NAME);s.setAttribute(\"id\",l),this.element.setAttribute(\"aria-describedby\",l),this.setContent(),this.config.animation&&o.default(s).addClass(Lt);var r=\"function\"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,u=this._getAttachment(r);this.addAttachmentClass(u);var f=this._getContainer();o.default(s).data(this.constructor.DATA_KEY,this),o.default.contains(this.element.ownerDocument.documentElement,this.tip)||o.default(s).appendTo(f),o.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new a.default(this.element,s,this._getPopperConfig(u)),o.default(s).addClass(Rt),o.default(s).addClass(this.config.customClass),\"ontouchstart\"in document.documentElement&&o.default(document.body).children().on(\"mouseover\",null,o.default.noop);var c=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,o.default(t.element).trigger(t.constructor.Event.SHOWN),e===qt&&t._leave(null,t)};if(o.default(this.tip).hasClass(Lt)){var h=d.getTransitionDurationFromElement(this.tip);o.default(this.tip).one(d.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},e.hide=function(t){var e=this,n=this.getTipElement(),i=o.default.Event(this.constructor.Event.HIDE),a=function(){e._hoverState!==xt&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute(\"aria-describedby\"),o.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(o.default(this.element).trigger(i),!i.isDefaultPrevented()){if(o.default(n).removeClass(Rt),\"ontouchstart\"in document.documentElement&&o.default(document.body).children().off(\"mouseover\",null,o.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,o.default(this.tip).hasClass(Lt)){var s=d.getTransitionDurationFromElement(n);o.default(n).one(d.TRANSITION_END,a).emulateTransitionEnd(s)}else a();this._hoverState=\"\"}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){o.default(this.getTipElement()).addClass(\"bs-tooltip-\"+t)},e.getTipElement=function(){return this.tip=this.tip||o.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(o.default(t.querySelectorAll(\".tooltip-inner\")),this.getTitle()),o.default(t).removeClass(\"fade show\")},e.setElementContent=function(t,e){\"object\"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=At(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?o.default(e).parent().is(t)||t.empty().append(e):t.text(o.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute(\"data-original-title\");return t||(t=\"function\"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return r({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:\".arrow\"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return\"function\"==typeof this.config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t.config.offset(e.offsets,t.element)),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:d.isElement(this.config.container)?o.default(this.config.container):o.default(document).find(this.config.container)},e._getAttachment=function(t){return Bt[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(\" \").forEach((function(e){if(\"click\"===e)o.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if(\"manual\"!==e){var n=e===Ft?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i=e===Ft?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;o.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(i,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},o.default(this.element).closest(\".modal\").on(\"hide.bs.modal\",this._hideModalHandler),this.config.selector?this.config=r({},this.config,{trigger:\"manual\",selector:\"\"}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute(\"data-original-title\");(this.element.getAttribute(\"title\")||\"string\"!==t)&&(this.element.setAttribute(\"data-original-title\",this.element.getAttribute(\"title\")||\"\"),this.element.setAttribute(\"title\",\"\"))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||o.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger[\"focusin\"===t.type?Qt:Ft]=!0),o.default(e.getTipElement()).hasClass(Rt)||e._hoverState===xt?e._hoverState=xt:(clearTimeout(e._timeout),e._hoverState=xt,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){e._hoverState===xt&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||o.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger[\"focusout\"===t.type?Qt:Ft]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=qt,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){e._hoverState===qt&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=o.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==Pt.indexOf(t)&&delete e[t]})),\"number\"==typeof(t=r({},this.constructor.Default,e,\"object\"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),\"number\"==typeof t.title&&(t.title=t.title.toString()),\"number\"==typeof t.content&&(t.content=t.content.toString()),d.typeCheckConfig(It,t,this.constructor.DefaultType),t.sanitize&&(t.template=At(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=o.default(this.getTipElement()),e=t.attr(\"class\").match(jt);null!==e&&e.length&&t.removeClass(e.join(\"\"))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute(\"x-placement\")&&(o.default(t).removeClass(Lt),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data(kt),a=\"object\"==typeof e&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new t(this,a),n.data(kt,i)),\"string\"==typeof e)){if(\"undefined\"==typeof i[e])throw new TypeError('No method named \"'+e+'\"');i[e]()}}))},l(t,null,[{key:\"VERSION\",get:function(){return\"4.6.2\"}},{key:\"Default\",get:function(){return Ht}},{key:\"NAME\",get:function(){return It}},{key:\"DATA_KEY\",get:function(){return kt}},{key:\"Event\",get:function(){return Mt}},{key:\"EVENT_KEY\",get:function(){return\".bs.tooltip\"}},{key:\"DefaultType\",get:function(){return Ut}}]),t}();o.default.fn.tooltip=Wt._jQueryInterface,o.default.fn.tooltip.Constructor=Wt,o.default.fn.tooltip.noConflict=function(){return o.default.fn.tooltip=Ot,Wt._jQueryInterface};var Vt=\"bs.popover\",zt=o.default.fn.popover,Kt=new RegExp(\"(^|\\\\s)bs-popover\\\\S+\",\"g\"),Xt=r({},Wt.Default,{placement:\"right\",trigger:\"click\",content:\"\",template:'

'}),Yt=r({},Wt.DefaultType,{content:\"(string|element|function)\"}),$t={HIDE:\"hide.bs.popover\",HIDDEN:\"hidden.bs.popover\",SHOW:\"show.bs.popover\",SHOWN:\"shown.bs.popover\",INSERTED:\"inserted.bs.popover\",CLICK:\"click.bs.popover\",FOCUSIN:\"focusin.bs.popover\",FOCUSOUT:\"focusout.bs.popover\",MOUSEENTER:\"mouseenter.bs.popover\",MOUSELEAVE:\"mouseleave.bs.popover\"},Jt=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,u(e,n);var a=i.prototype;return a.isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(t){o.default(this.getTipElement()).addClass(\"bs-popover-\"+t)},a.getTipElement=function(){return this.tip=this.tip||o.default(this.config.template)[0],this.tip},a.setContent=function(){var t=o.default(this.getTipElement());this.setElementContent(t.find(\".popover-header\"),this.getTitle());var e=this._getContent();\"function\"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(\".popover-body\"),e),t.removeClass(\"fade show\")},a._getContent=function(){return this.element.getAttribute(\"data-content\")||this.config.content},a._cleanTipClass=function(){var t=o.default(this.getTipElement()),e=t.attr(\"class\").match(Kt);null!==e&&e.length>0&&t.removeClass(e.join(\"\"))},i._jQueryInterface=function(t){return this.each((function(){var e=o.default(this).data(Vt),n=\"object\"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new i(this,n),o.default(this).data(Vt,e)),\"string\"==typeof t)){if(\"undefined\"==typeof e[t])throw new TypeError('No method named \"'+t+'\"');e[t]()}}))},l(i,null,[{key:\"VERSION\",get:function(){return\"4.6.2\"}},{key:\"Default\",get:function(){return Xt}},{key:\"NAME\",get:function(){return\"popover\"}},{key:\"DATA_KEY\",get:function(){return Vt}},{key:\"Event\",get:function(){return $t}},{key:\"EVENT_KEY\",get:function(){return\".bs.popover\"}},{key:\"DefaultType\",get:function(){return Yt}}]),i}(Wt);o.default.fn.popover=Jt._jQueryInterface,o.default.fn.popover.Constructor=Jt,o.default.fn.popover.noConflict=function(){return o.default.fn.popover=zt,Jt._jQueryInterface};var Gt=\"scrollspy\",Zt=\"bs.scrollspy\",te=o.default.fn[Gt],ee=\"active\",ne=\"position\",ie=\".nav, .list-group\",oe={offset:10,method:\"auto\",target:\"\"},ae={offset:\"number\",method:\"string\",target:\"(string|element)\"},se=function(){function t(t,e){var n=this;this._element=t,this._scrollElement=\"BODY\"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+\" .nav-link,\"+this._config.target+\" .list-group-item,\"+this._config.target+\" .dropdown-item\",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,o.default(this._scrollElement).on(\"scroll.bs.scrollspy\",(function(t){return n._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?\"offset\":ne,n=\"auto\"===this._config.method?e:this._config.method,i=n===ne?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,a=d.getSelectorFromElement(t);if(a&&(e=document.querySelector(a)),e){var s=e.getBoundingClientRect();if(s.width||s.height)return[o.default(e)[n]().top+i,a]}return null})).filter(Boolean).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){o.default.removeData(this._element,Zt),o.default(this._scrollElement).off(\".bs.scrollspy\"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if(\"string\"!=typeof(t=r({},oe,\"object\"==typeof t&&t?t:{})).target&&d.isElement(t.target)){var e=o.default(t.target).attr(\"id\");e||(e=d.getUID(Gt),o.default(t.target).attr(\"id\",e)),t.target=\"#\"+e}return d.typeCheckConfig(Gt,t,ae),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(\"undefined\"==typeof this._offsets[o+1]||t li > .active\",ge=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&o.default(this._element).hasClass(ue)||o.default(this._element).hasClass(\"disabled\")||this._element.hasAttribute(\"disabled\"))){var e,n,i=o.default(this._element).closest(\".nav, .list-group\")[0],a=d.getSelectorFromElement(this._element);if(i){var s=\"UL\"===i.nodeName||\"OL\"===i.nodeName?he:ce;n=(n=o.default.makeArray(o.default(i).find(s)))[n.length-1]}var l=o.default.Event(\"hide.bs.tab\",{relatedTarget:this._element}),r=o.default.Event(\"show.bs.tab\",{relatedTarget:n});if(n&&o.default(n).trigger(l),o.default(this._element).trigger(r),!r.isDefaultPrevented()&&!l.isDefaultPrevented()){a&&(e=document.querySelector(a)),this._activate(this._element,i);var u=function(){var e=o.default.Event(\"hidden.bs.tab\",{relatedTarget:t._element}),i=o.default.Event(\"shown.bs.tab\",{relatedTarget:n});o.default(n).trigger(e),o.default(t._element).trigger(i)};e?this._activate(e,e.parentNode,u):u()}}},e.dispose=function(){o.default.removeData(this._element,le),this._element=null},e._activate=function(t,e,n){var i=this,a=(!e||\"UL\"!==e.nodeName&&\"OL\"!==e.nodeName?o.default(e).children(ce):o.default(e).find(he))[0],s=n&&a&&o.default(a).hasClass(fe),l=function(){return i._transitionComplete(t,a,n)};if(a&&s){var r=d.getTransitionDurationFromElement(a);o.default(a).removeClass(de).one(d.TRANSITION_END,l).emulateTransitionEnd(r)}else l()},e._transitionComplete=function(t,e,n){if(e){o.default(e).removeClass(ue);var i=o.default(e.parentNode).find(\"> .dropdown-menu .active\")[0];i&&o.default(i).removeClass(ue),\"tab\"===e.getAttribute(\"role\")&&e.setAttribute(\"aria-selected\",!1)}o.default(t).addClass(ue),\"tab\"===t.getAttribute(\"role\")&&t.setAttribute(\"aria-selected\",!0),d.reflow(t),t.classList.contains(fe)&&t.classList.add(de);var a=t.parentNode;if(a&&\"LI\"===a.nodeName&&(a=a.parentNode),a&&o.default(a).hasClass(\"dropdown-menu\")){var s=o.default(t).closest(\".dropdown\")[0];if(s){var l=[].slice.call(s.querySelectorAll(\".dropdown-toggle\"));o.default(l).addClass(ue)}t.setAttribute(\"aria-expanded\",!0)}n&&n()},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data(le);if(i||(i=new t(this),n.data(le,i)),\"string\"==typeof e){if(\"undefined\"==typeof i[e])throw new TypeError('No method named \"'+e+'\"');i[e]()}}))},l(t,null,[{key:\"VERSION\",get:function(){return\"4.6.2\"}}]),t}();o.default(document).on(\"click.bs.tab.data-api\",'[data-toggle=\"tab\"], [data-toggle=\"pill\"], [data-toggle=\"list\"]',(function(t){t.preventDefault(),ge._jQueryInterface.call(o.default(this),\"show\")})),o.default.fn.tab=ge._jQueryInterface,o.default.fn.tab.Constructor=ge,o.default.fn.tab.noConflict=function(){return o.default.fn.tab=re,ge._jQueryInterface};var me=\"bs.toast\",pe=o.default.fn.toast,_e=\"hide\",ve=\"show\",ye=\"showing\",be=\"click.dismiss.bs.toast\",Ee={animation:!0,autohide:!0,delay:500},Te={animation:\"boolean\",autohide:\"boolean\",delay:\"number\"},we=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=o.default.Event(\"show.bs.toast\");if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add(\"fade\");var n=function(){t._element.classList.remove(ye),t._element.classList.add(ve),o.default(t._element).trigger(\"shown.bs.toast\"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove(_e),d.reflow(this._element),this._element.classList.add(ye),this._config.animation){var i=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},e.hide=function(){if(this._element.classList.contains(ve)){var t=o.default.Event(\"hide.bs.toast\");o.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains(ve)&&this._element.classList.remove(ve),o.default(this._element).off(be),o.default.removeData(this._element,me),this._element=null,this._config=null},e._getConfig=function(t){return t=r({},Ee,o.default(this._element).data(),\"object\"==typeof t&&t?t:{}),d.typeCheckConfig(\"toast\",t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;o.default(this._element).on(be,'[data-dismiss=\"toast\"]',(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add(_e),o.default(t._element).trigger(\"hidden.bs.toast\")};if(this._element.classList.remove(ve),this._config.animation){var n=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data(me);if(i||(i=new t(this,\"object\"==typeof e&&e),n.data(me,i)),\"string\"==typeof e){if(\"undefined\"==typeof i[e])throw new TypeError('No method named \"'+e+'\"');i[e](this)}}))},l(t,null,[{key:\"VERSION\",get:function(){return\"4.6.2\"}},{key:\"DefaultType\",get:function(){return Te}},{key:\"Default\",get:function(){return Ee}}]),t}();o.default.fn.toast=we._jQueryInterface,o.default.fn.toast.Constructor=we,o.default.fn.toast.noConflict=function(){return o.default.fn.toast=pe,we._jQueryInterface},t.Alert=g,t.Button=E,t.Carousel=P,t.Collapse=V,t.Dropdown=lt,t.Modal=Ct,t.Popover=Jt,t.Scrollspy=se,t.Tab=ge,t.Toast=we,t.Tooltip=Wt,t.Util=d,Object.defineProperty(t,\"__esModule\",{value:!0})}));\n//# sourceMappingURL=bootstrap.min.js.map","/*!\n * Chart.js v4.2.1\n * https://www.chartjs.org\n * (c) 2023 Chart.js Contributors\n * Released under the MIT License\n */\nimport { r as requestAnimFrame, a as resolve, e as effects, c as color, i as isObject, d as defaults, b as isArray, v as valueOrDefault, u as unlistenArrayEvents, l as listenArrayEvents, f as resolveObjectKey, g as isNumberFinite, h as defined, s as sign, j as createContext, k as isNullOrUndef, _ as _arrayUnique, t as toRadians, m as toPercentage, n as toDimension, T as TAU, o as formatNumber, p as _angleBetween, H as HALF_PI, P as PI, q as _getStartAndCountOfVisiblePoints, w as _scaleRangesChanged, x as isNumber, y as _parseObjectDataRadialScale, z as getRelativePosition, A as _rlookupByKey, B as _lookupByKey, C as _isPointInArea, D as getAngleFromPoint, E as toPadding, F as each, G as getMaximumSize, I as _getParentNode, J as readUsedSize, K as supportsEventListenerOptions, L as throttled, M as _isDomSupported, N as _factorize, O as finiteOrDefault, Q as callback, R as _addGrace, S as _limitValue, U as toDegrees, V as _measureText, W as _int16Range, X as _alignPixel, Y as clipArea, Z as renderText, $ as unclipArea, a0 as toFont, a1 as _toLeftRightCenter, a2 as _alignStartEnd, a3 as overrides, a4 as merge, a5 as _capitalize, a6 as descriptors, a7 as isFunction, a8 as _attachContext, a9 as _createResolver, aa as _descriptors, ab as mergeIf, ac as uid, ad as debounce, ae as retinaScale, af as clearCanvas, ag as setsEqual, ah as _elementsEqual, ai as _isClickEvent, aj as _isBetween, ak as _readValueToProps, al as _updateBezierControlPoints, am as _computeSegments, an as _boundSegments, ao as _steppedInterpolation, ap as _bezierInterpolation, aq as _pointInLine, ar as _steppedLineTo, as as _bezierCurveTo, at as drawPoint, au as addRoundedRectPath, av as toTRBL, aw as toTRBLCorners, ax as _boundSegment, ay as _normalizeAngle, az as getRtlAdapter, aA as overrideTextDirection, aB as _textX, aC as restoreTextDirection, aD as drawPointLegend, aE as distanceBetweenPoints, aF as noop, aG as _setMinAndMaxByKey, aH as niceNum, aI as almostWhole, aJ as almostEquals, aK as _decimalPlaces, aL as Ticks, aM as log10, aN as _longestText, aO as _filterBetween, aP as _lookup } from './chunks/helpers.segment.js';\nexport { aL as Ticks, d as defaults } from './chunks/helpers.segment.js';\nimport '@kurkle/color';\n\nclass Animator {\n constructor(){\n this._request = null;\n this._charts = new Map();\n this._running = false;\n this._lastDate = undefined;\n }\n _notify(chart, anims, date, type) {\n const callbacks = anims.listeners[type];\n const numSteps = anims.duration;\n callbacks.forEach((fn)=>fn({\n chart,\n initial: anims.initial,\n numSteps,\n currentStep: Math.min(date - anims.start, numSteps)\n }));\n }\n _refresh() {\n if (this._request) {\n return;\n }\n this._running = true;\n this._request = requestAnimFrame.call(window, ()=>{\n this._update();\n this._request = null;\n if (this._running) {\n this._refresh();\n }\n });\n }\n _update(date = Date.now()) {\n let remaining = 0;\n this._charts.forEach((anims, chart)=>{\n if (!anims.running || !anims.items.length) {\n return;\n }\n const items = anims.items;\n let i = items.length - 1;\n let draw = false;\n let item;\n for(; i >= 0; --i){\n item = items[i];\n if (item._active) {\n if (item._total > anims.duration) {\n anims.duration = item._total;\n }\n item.tick(date);\n draw = true;\n } else {\n items[i] = items[items.length - 1];\n items.pop();\n }\n }\n if (draw) {\n chart.draw();\n this._notify(chart, anims, date, 'progress');\n }\n if (!items.length) {\n anims.running = false;\n this._notify(chart, anims, date, 'complete');\n anims.initial = false;\n }\n remaining += items.length;\n });\n this._lastDate = date;\n if (remaining === 0) {\n this._running = false;\n }\n }\n _getAnims(chart) {\n const charts = this._charts;\n let anims = charts.get(chart);\n if (!anims) {\n anims = {\n running: false,\n initial: true,\n items: [],\n listeners: {\n complete: [],\n progress: []\n }\n };\n charts.set(chart, anims);\n }\n return anims;\n }\n listen(chart, event, cb) {\n this._getAnims(chart).listeners[event].push(cb);\n }\n add(chart, items) {\n if (!items || !items.length) {\n return;\n }\n this._getAnims(chart).items.push(...items);\n }\n has(chart) {\n return this._getAnims(chart).items.length > 0;\n }\n start(chart) {\n const anims = this._charts.get(chart);\n if (!anims) {\n return;\n }\n anims.running = true;\n anims.start = Date.now();\n anims.duration = anims.items.reduce((acc, cur)=>Math.max(acc, cur._duration), 0);\n this._refresh();\n }\n running(chart) {\n if (!this._running) {\n return false;\n }\n const anims = this._charts.get(chart);\n if (!anims || !anims.running || !anims.items.length) {\n return false;\n }\n return true;\n }\n stop(chart) {\n const anims = this._charts.get(chart);\n if (!anims || !anims.items.length) {\n return;\n }\n const items = anims.items;\n let i = items.length - 1;\n for(; i >= 0; --i){\n items[i].cancel();\n }\n anims.items = [];\n this._notify(chart, anims, Date.now(), 'complete');\n }\n remove(chart) {\n return this._charts.delete(chart);\n }\n}\nvar animator = /* #__PURE__ */ new Animator();\n\nconst transparent = 'transparent';\nconst interpolators = {\n boolean (from, to, factor) {\n return factor > 0.5 ? to : from;\n },\n color (from, to, factor) {\n const c0 = color(from || transparent);\n const c1 = c0.valid && color(to || transparent);\n return c1 && c1.valid ? c1.mix(c0, factor).hexString() : to;\n },\n number (from, to, factor) {\n return from + (to - from) * factor;\n }\n};\nclass Animation {\n constructor(cfg, target, prop, to){\n const currentValue = target[prop];\n to = resolve([\n cfg.to,\n to,\n currentValue,\n cfg.from\n ]);\n const from = resolve([\n cfg.from,\n currentValue,\n to\n ]);\n this._active = true;\n this._fn = cfg.fn || interpolators[cfg.type || typeof from];\n this._easing = effects[cfg.easing] || effects.linear;\n this._start = Math.floor(Date.now() + (cfg.delay || 0));\n this._duration = this._total = Math.floor(cfg.duration);\n this._loop = !!cfg.loop;\n this._target = target;\n this._prop = prop;\n this._from = from;\n this._to = to;\n this._promises = undefined;\n }\n active() {\n return this._active;\n }\n update(cfg, to, date) {\n if (this._active) {\n this._notify(false);\n const currentValue = this._target[this._prop];\n const elapsed = date - this._start;\n const remain = this._duration - elapsed;\n this._start = date;\n this._duration = Math.floor(Math.max(remain, cfg.duration));\n this._total += elapsed;\n this._loop = !!cfg.loop;\n this._to = resolve([\n cfg.to,\n to,\n currentValue,\n cfg.from\n ]);\n this._from = resolve([\n cfg.from,\n currentValue,\n to\n ]);\n }\n }\n cancel() {\n if (this._active) {\n this.tick(Date.now());\n this._active = false;\n this._notify(false);\n }\n }\n tick(date) {\n const elapsed = date - this._start;\n const duration = this._duration;\n const prop = this._prop;\n const from = this._from;\n const loop = this._loop;\n const to = this._to;\n let factor;\n this._active = from !== to && (loop || elapsed < duration);\n if (!this._active) {\n this._target[prop] = to;\n this._notify(true);\n return;\n }\n if (elapsed < 0) {\n this._target[prop] = from;\n return;\n }\n factor = elapsed / duration % 2;\n factor = loop && factor > 1 ? 2 - factor : factor;\n factor = this._easing(Math.min(1, Math.max(0, factor)));\n this._target[prop] = this._fn(from, to, factor);\n }\n wait() {\n const promises = this._promises || (this._promises = []);\n return new Promise((res, rej)=>{\n promises.push({\n res,\n rej\n });\n });\n }\n _notify(resolved) {\n const method = resolved ? 'res' : 'rej';\n const promises = this._promises || [];\n for(let i = 0; i < promises.length; i++){\n promises[i][method]();\n }\n }\n}\n\nclass Animations {\n constructor(chart, config){\n this._chart = chart;\n this._properties = new Map();\n this.configure(config);\n }\n configure(config) {\n if (!isObject(config)) {\n return;\n }\n const animationOptions = Object.keys(defaults.animation);\n const animatedProps = this._properties;\n Object.getOwnPropertyNames(config).forEach((key)=>{\n const cfg = config[key];\n if (!isObject(cfg)) {\n return;\n }\n const resolved = {};\n for (const option of animationOptions){\n resolved[option] = cfg[option];\n }\n (isArray(cfg.properties) && cfg.properties || [\n key\n ]).forEach((prop)=>{\n if (prop === key || !animatedProps.has(prop)) {\n animatedProps.set(prop, resolved);\n }\n });\n });\n }\n _animateOptions(target, values) {\n const newOptions = values.options;\n const options = resolveTargetOptions(target, newOptions);\n if (!options) {\n return [];\n }\n const animations = this._createAnimations(options, newOptions);\n if (newOptions.$shared) {\n awaitAll(target.options.$animations, newOptions).then(()=>{\n target.options = newOptions;\n }, ()=>{\n });\n }\n return animations;\n }\n _createAnimations(target, values) {\n const animatedProps = this._properties;\n const animations = [];\n const running = target.$animations || (target.$animations = {});\n const props = Object.keys(values);\n const date = Date.now();\n let i;\n for(i = props.length - 1; i >= 0; --i){\n const prop = props[i];\n if (prop.charAt(0) === '$') {\n continue;\n }\n if (prop === 'options') {\n animations.push(...this._animateOptions(target, values));\n continue;\n }\n const value = values[prop];\n let animation = running[prop];\n const cfg = animatedProps.get(prop);\n if (animation) {\n if (cfg && animation.active()) {\n animation.update(cfg, value, date);\n continue;\n } else {\n animation.cancel();\n }\n }\n if (!cfg || !cfg.duration) {\n target[prop] = value;\n continue;\n }\n running[prop] = animation = new Animation(cfg, target, prop, value);\n animations.push(animation);\n }\n return animations;\n }\n update(target, values) {\n if (this._properties.size === 0) {\n Object.assign(target, values);\n return;\n }\n const animations = this._createAnimations(target, values);\n if (animations.length) {\n animator.add(this._chart, animations);\n return true;\n }\n }\n}\nfunction awaitAll(animations, properties) {\n const running = [];\n const keys = Object.keys(properties);\n for(let i = 0; i < keys.length; i++){\n const anim = animations[keys[i]];\n if (anim && anim.active()) {\n running.push(anim.wait());\n }\n }\n return Promise.all(running);\n}\nfunction resolveTargetOptions(target, newOptions) {\n if (!newOptions) {\n return;\n }\n let options = target.options;\n if (!options) {\n target.options = newOptions;\n return;\n }\n if (options.$shared) {\n target.options = options = Object.assign({}, options, {\n $shared: false,\n $animations: {}\n });\n }\n return options;\n}\n\nfunction scaleClip(scale, allowedOverflow) {\n const opts = scale && scale.options || {};\n const reverse = opts.reverse;\n const min = opts.min === undefined ? allowedOverflow : 0;\n const max = opts.max === undefined ? allowedOverflow : 0;\n return {\n start: reverse ? max : min,\n end: reverse ? min : max\n };\n}\nfunction defaultClip(xScale, yScale, allowedOverflow) {\n if (allowedOverflow === false) {\n return false;\n }\n const x = scaleClip(xScale, allowedOverflow);\n const y = scaleClip(yScale, allowedOverflow);\n return {\n top: y.end,\n right: x.end,\n bottom: y.start,\n left: x.start\n };\n}\nfunction toClip(value) {\n let t, r, b, l;\n if (isObject(value)) {\n t = value.top;\n r = value.right;\n b = value.bottom;\n l = value.left;\n } else {\n t = r = b = l = value;\n }\n return {\n top: t,\n right: r,\n bottom: b,\n left: l,\n disabled: value === false\n };\n}\nfunction getSortedDatasetIndices(chart, filterVisible) {\n const keys = [];\n const metasets = chart._getSortedDatasetMetas(filterVisible);\n let i, ilen;\n for(i = 0, ilen = metasets.length; i < ilen; ++i){\n keys.push(metasets[i].index);\n }\n return keys;\n}\nfunction applyStack(stack, value, dsIndex, options = {}) {\n const keys = stack.keys;\n const singleMode = options.mode === 'single';\n let i, ilen, datasetIndex, otherValue;\n if (value === null) {\n return;\n }\n for(i = 0, ilen = keys.length; i < ilen; ++i){\n datasetIndex = +keys[i];\n if (datasetIndex === dsIndex) {\n if (options.all) {\n continue;\n }\n break;\n }\n otherValue = stack.values[datasetIndex];\n if (isNumberFinite(otherValue) && (singleMode || value === 0 || sign(value) === sign(otherValue))) {\n value += otherValue;\n }\n }\n return value;\n}\nfunction convertObjectDataToArray(data) {\n const keys = Object.keys(data);\n const adata = new Array(keys.length);\n let i, ilen, key;\n for(i = 0, ilen = keys.length; i < ilen; ++i){\n key = keys[i];\n adata[i] = {\n x: key,\n y: data[key]\n };\n }\n return adata;\n}\nfunction isStacked(scale, meta) {\n const stacked = scale && scale.options.stacked;\n return stacked || stacked === undefined && meta.stack !== undefined;\n}\nfunction getStackKey(indexScale, valueScale, meta) {\n return `${indexScale.id}.${valueScale.id}.${meta.stack || meta.type}`;\n}\nfunction getUserBounds(scale) {\n const { min , max , minDefined , maxDefined } = scale.getUserBounds();\n return {\n min: minDefined ? min : Number.NEGATIVE_INFINITY,\n max: maxDefined ? max : Number.POSITIVE_INFINITY\n };\n}\nfunction getOrCreateStack(stacks, stackKey, indexValue) {\n const subStack = stacks[stackKey] || (stacks[stackKey] = {});\n return subStack[indexValue] || (subStack[indexValue] = {});\n}\nfunction getLastIndexInStack(stack, vScale, positive, type) {\n for (const meta of vScale.getMatchingVisibleMetas(type).reverse()){\n const value = stack[meta.index];\n if (positive && value > 0 || !positive && value < 0) {\n return meta.index;\n }\n }\n return null;\n}\nfunction updateStacks(controller, parsed) {\n const { chart , _cachedMeta: meta } = controller;\n const stacks = chart._stacks || (chart._stacks = {});\n const { iScale , vScale , index: datasetIndex } = meta;\n const iAxis = iScale.axis;\n const vAxis = vScale.axis;\n const key = getStackKey(iScale, vScale, meta);\n const ilen = parsed.length;\n let stack;\n for(let i = 0; i < ilen; ++i){\n const item = parsed[i];\n const { [iAxis]: index , [vAxis]: value } = item;\n const itemStacks = item._stacks || (item._stacks = {});\n stack = itemStacks[vAxis] = getOrCreateStack(stacks, key, index);\n stack[datasetIndex] = value;\n stack._top = getLastIndexInStack(stack, vScale, true, meta.type);\n stack._bottom = getLastIndexInStack(stack, vScale, false, meta.type);\n const visualValues = stack._visualValues || (stack._visualValues = {});\n visualValues[datasetIndex] = value;\n }\n}\nfunction getFirstScaleId(chart, axis) {\n const scales = chart.scales;\n return Object.keys(scales).filter((key)=>scales[key].axis === axis).shift();\n}\nfunction createDatasetContext(parent, index) {\n return createContext(parent, {\n active: false,\n dataset: undefined,\n datasetIndex: index,\n index,\n mode: 'default',\n type: 'dataset'\n });\n}\nfunction createDataContext(parent, index, element) {\n return createContext(parent, {\n active: false,\n dataIndex: index,\n parsed: undefined,\n raw: undefined,\n element,\n index,\n mode: 'default',\n type: 'data'\n });\n}\nfunction clearStacks(meta, items) {\n const datasetIndex = meta.controller.index;\n const axis = meta.vScale && meta.vScale.axis;\n if (!axis) {\n return;\n }\n items = items || meta._parsed;\n for (const parsed of items){\n const stacks = parsed._stacks;\n if (!stacks || stacks[axis] === undefined || stacks[axis][datasetIndex] === undefined) {\n return;\n }\n delete stacks[axis][datasetIndex];\n if (stacks[axis]._visualValues !== undefined && stacks[axis]._visualValues[datasetIndex] !== undefined) {\n delete stacks[axis]._visualValues[datasetIndex];\n }\n }\n}\nconst isDirectUpdateMode = (mode)=>mode === 'reset' || mode === 'none';\nconst cloneIfNotShared = (cached, shared)=>shared ? cached : Object.assign({}, cached);\nconst createStack = (canStack, meta, chart)=>canStack && !meta.hidden && meta._stacked && {\n keys: getSortedDatasetIndices(chart, true),\n values: null\n };\nclass DatasetController {\n static defaults = {};\n static datasetElementType = null;\n static dataElementType = null;\n constructor(chart, datasetIndex){\n this.chart = chart;\n this._ctx = chart.ctx;\n this.index = datasetIndex;\n this._cachedDataOpts = {};\n this._cachedMeta = this.getMeta();\n this._type = this._cachedMeta.type;\n this.options = undefined;\n this._parsing = false;\n this._data = undefined;\n this._objectData = undefined;\n this._sharedOptions = undefined;\n this._drawStart = undefined;\n this._drawCount = undefined;\n this.enableOptionSharing = false;\n this.supportsDecimation = false;\n this.$context = undefined;\n this._syncList = [];\n this.datasetElementType = new.target.datasetElementType;\n this.dataElementType = new.target.dataElementType;\n this.initialize();\n }\n initialize() {\n const meta = this._cachedMeta;\n this.configure();\n this.linkScales();\n meta._stacked = isStacked(meta.vScale, meta);\n this.addElements();\n if (this.options.fill && !this.chart.isPluginEnabled('filler')) {\n console.warn(\"Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options\");\n }\n }\n updateIndex(datasetIndex) {\n if (this.index !== datasetIndex) {\n clearStacks(this._cachedMeta);\n }\n this.index = datasetIndex;\n }\n linkScales() {\n const chart = this.chart;\n const meta = this._cachedMeta;\n const dataset = this.getDataset();\n const chooseId = (axis, x, y, r)=>axis === 'x' ? x : axis === 'r' ? r : y;\n const xid = meta.xAxisID = valueOrDefault(dataset.xAxisID, getFirstScaleId(chart, 'x'));\n const yid = meta.yAxisID = valueOrDefault(dataset.yAxisID, getFirstScaleId(chart, 'y'));\n const rid = meta.rAxisID = valueOrDefault(dataset.rAxisID, getFirstScaleId(chart, 'r'));\n const indexAxis = meta.indexAxis;\n const iid = meta.iAxisID = chooseId(indexAxis, xid, yid, rid);\n const vid = meta.vAxisID = chooseId(indexAxis, yid, xid, rid);\n meta.xScale = this.getScaleForId(xid);\n meta.yScale = this.getScaleForId(yid);\n meta.rScale = this.getScaleForId(rid);\n meta.iScale = this.getScaleForId(iid);\n meta.vScale = this.getScaleForId(vid);\n }\n getDataset() {\n return this.chart.data.datasets[this.index];\n }\n getMeta() {\n return this.chart.getDatasetMeta(this.index);\n }\n getScaleForId(scaleID) {\n return this.chart.scales[scaleID];\n }\n _getOtherScale(scale) {\n const meta = this._cachedMeta;\n return scale === meta.iScale ? meta.vScale : meta.iScale;\n }\n reset() {\n this._update('reset');\n }\n _destroy() {\n const meta = this._cachedMeta;\n if (this._data) {\n unlistenArrayEvents(this._data, this);\n }\n if (meta._stacked) {\n clearStacks(meta);\n }\n }\n _dataCheck() {\n const dataset = this.getDataset();\n const data = dataset.data || (dataset.data = []);\n const _data = this._data;\n if (isObject(data)) {\n this._data = convertObjectDataToArray(data);\n } else if (_data !== data) {\n if (_data) {\n unlistenArrayEvents(_data, this);\n const meta = this._cachedMeta;\n clearStacks(meta);\n meta._parsed = [];\n }\n if (data && Object.isExtensible(data)) {\n listenArrayEvents(data, this);\n }\n this._syncList = [];\n this._data = data;\n }\n }\n addElements() {\n const meta = this._cachedMeta;\n this._dataCheck();\n if (this.datasetElementType) {\n meta.dataset = new this.datasetElementType();\n }\n }\n buildOrUpdateElements(resetNewElements) {\n const meta = this._cachedMeta;\n const dataset = this.getDataset();\n let stackChanged = false;\n this._dataCheck();\n const oldStacked = meta._stacked;\n meta._stacked = isStacked(meta.vScale, meta);\n if (meta.stack !== dataset.stack) {\n stackChanged = true;\n clearStacks(meta);\n meta.stack = dataset.stack;\n }\n this._resyncElements(resetNewElements);\n if (stackChanged || oldStacked !== meta._stacked) {\n updateStacks(this, meta._parsed);\n }\n }\n configure() {\n const config = this.chart.config;\n const scopeKeys = config.datasetScopeKeys(this._type);\n const scopes = config.getOptionScopes(this.getDataset(), scopeKeys, true);\n this.options = config.createResolver(scopes, this.getContext());\n this._parsing = this.options.parsing;\n this._cachedDataOpts = {};\n }\n parse(start, count) {\n const { _cachedMeta: meta , _data: data } = this;\n const { iScale , _stacked } = meta;\n const iAxis = iScale.axis;\n let sorted = start === 0 && count === data.length ? true : meta._sorted;\n let prev = start > 0 && meta._parsed[start - 1];\n let i, cur, parsed;\n if (this._parsing === false) {\n meta._parsed = data;\n meta._sorted = true;\n parsed = data;\n } else {\n if (isArray(data[start])) {\n parsed = this.parseArrayData(meta, data, start, count);\n } else if (isObject(data[start])) {\n parsed = this.parseObjectData(meta, data, start, count);\n } else {\n parsed = this.parsePrimitiveData(meta, data, start, count);\n }\n const isNotInOrderComparedToPrev = ()=>cur[iAxis] === null || prev && cur[iAxis] < prev[iAxis];\n for(i = 0; i < count; ++i){\n meta._parsed[i + start] = cur = parsed[i];\n if (sorted) {\n if (isNotInOrderComparedToPrev()) {\n sorted = false;\n }\n prev = cur;\n }\n }\n meta._sorted = sorted;\n }\n if (_stacked) {\n updateStacks(this, parsed);\n }\n }\n parsePrimitiveData(meta, data, start, count) {\n const { iScale , vScale } = meta;\n const iAxis = iScale.axis;\n const vAxis = vScale.axis;\n const labels = iScale.getLabels();\n const singleScale = iScale === vScale;\n const parsed = new Array(count);\n let i, ilen, index;\n for(i = 0, ilen = count; i < ilen; ++i){\n index = i + start;\n parsed[i] = {\n [iAxis]: singleScale || iScale.parse(labels[index], index),\n [vAxis]: vScale.parse(data[index], index)\n };\n }\n return parsed;\n }\n parseArrayData(meta, data, start, count) {\n const { xScale , yScale } = meta;\n const parsed = new Array(count);\n let i, ilen, index, item;\n for(i = 0, ilen = count; i < ilen; ++i){\n index = i + start;\n item = data[index];\n parsed[i] = {\n x: xScale.parse(item[0], index),\n y: yScale.parse(item[1], index)\n };\n }\n return parsed;\n }\n parseObjectData(meta, data, start, count) {\n const { xScale , yScale } = meta;\n const { xAxisKey ='x' , yAxisKey ='y' } = this._parsing;\n const parsed = new Array(count);\n let i, ilen, index, item;\n for(i = 0, ilen = count; i < ilen; ++i){\n index = i + start;\n item = data[index];\n parsed[i] = {\n x: xScale.parse(resolveObjectKey(item, xAxisKey), index),\n y: yScale.parse(resolveObjectKey(item, yAxisKey), index)\n };\n }\n return parsed;\n }\n getParsed(index) {\n return this._cachedMeta._parsed[index];\n }\n getDataElement(index) {\n return this._cachedMeta.data[index];\n }\n applyStack(scale, parsed, mode) {\n const chart = this.chart;\n const meta = this._cachedMeta;\n const value = parsed[scale.axis];\n const stack = {\n keys: getSortedDatasetIndices(chart, true),\n values: parsed._stacks[scale.axis]._visualValues\n };\n return applyStack(stack, value, meta.index, {\n mode\n });\n }\n updateRangeFromParsed(range, scale, parsed, stack) {\n const parsedValue = parsed[scale.axis];\n let value = parsedValue === null ? NaN : parsedValue;\n const values = stack && parsed._stacks[scale.axis];\n if (stack && values) {\n stack.values = values;\n value = applyStack(stack, parsedValue, this._cachedMeta.index);\n }\n range.min = Math.min(range.min, value);\n range.max = Math.max(range.max, value);\n }\n getMinMax(scale, canStack) {\n const meta = this._cachedMeta;\n const _parsed = meta._parsed;\n const sorted = meta._sorted && scale === meta.iScale;\n const ilen = _parsed.length;\n const otherScale = this._getOtherScale(scale);\n const stack = createStack(canStack, meta, this.chart);\n const range = {\n min: Number.POSITIVE_INFINITY,\n max: Number.NEGATIVE_INFINITY\n };\n const { min: otherMin , max: otherMax } = getUserBounds(otherScale);\n let i, parsed;\n function _skip() {\n parsed = _parsed[i];\n const otherValue = parsed[otherScale.axis];\n return !isNumberFinite(parsed[scale.axis]) || otherMin > otherValue || otherMax < otherValue;\n }\n for(i = 0; i < ilen; ++i){\n if (_skip()) {\n continue;\n }\n this.updateRangeFromParsed(range, scale, parsed, stack);\n if (sorted) {\n break;\n }\n }\n if (sorted) {\n for(i = ilen - 1; i >= 0; --i){\n if (_skip()) {\n continue;\n }\n this.updateRangeFromParsed(range, scale, parsed, stack);\n break;\n }\n }\n return range;\n }\n getAllParsedValues(scale) {\n const parsed = this._cachedMeta._parsed;\n const values = [];\n let i, ilen, value;\n for(i = 0, ilen = parsed.length; i < ilen; ++i){\n value = parsed[i][scale.axis];\n if (isNumberFinite(value)) {\n values.push(value);\n }\n }\n return values;\n }\n getMaxOverflow() {\n return false;\n }\n getLabelAndValue(index) {\n const meta = this._cachedMeta;\n const iScale = meta.iScale;\n const vScale = meta.vScale;\n const parsed = this.getParsed(index);\n return {\n label: iScale ? '' + iScale.getLabelForValue(parsed[iScale.axis]) : '',\n value: vScale ? '' + vScale.getLabelForValue(parsed[vScale.axis]) : ''\n };\n }\n _update(mode) {\n const meta = this._cachedMeta;\n this.update(mode || 'default');\n meta._clip = toClip(valueOrDefault(this.options.clip, defaultClip(meta.xScale, meta.yScale, this.getMaxOverflow())));\n }\n update(mode) {}\n draw() {\n const ctx = this._ctx;\n const chart = this.chart;\n const meta = this._cachedMeta;\n const elements = meta.data || [];\n const area = chart.chartArea;\n const active = [];\n const start = this._drawStart || 0;\n const count = this._drawCount || elements.length - start;\n const drawActiveElementsOnTop = this.options.drawActiveElementsOnTop;\n let i;\n if (meta.dataset) {\n meta.dataset.draw(ctx, area, start, count);\n }\n for(i = start; i < start + count; ++i){\n const element = elements[i];\n if (element.hidden) {\n continue;\n }\n if (element.active && drawActiveElementsOnTop) {\n active.push(element);\n } else {\n element.draw(ctx, area);\n }\n }\n for(i = 0; i < active.length; ++i){\n active[i].draw(ctx, area);\n }\n }\n getStyle(index, active) {\n const mode = active ? 'active' : 'default';\n return index === undefined && this._cachedMeta.dataset ? this.resolveDatasetElementOptions(mode) : this.resolveDataElementOptions(index || 0, mode);\n }\n getContext(index, active, mode) {\n const dataset = this.getDataset();\n let context;\n if (index >= 0 && index < this._cachedMeta.data.length) {\n const element = this._cachedMeta.data[index];\n context = element.$context || (element.$context = createDataContext(this.getContext(), index, element));\n context.parsed = this.getParsed(index);\n context.raw = dataset.data[index];\n context.index = context.dataIndex = index;\n } else {\n context = this.$context || (this.$context = createDatasetContext(this.chart.getContext(), this.index));\n context.dataset = dataset;\n context.index = context.datasetIndex = this.index;\n }\n context.active = !!active;\n context.mode = mode;\n return context;\n }\n resolveDatasetElementOptions(mode) {\n return this._resolveElementOptions(this.datasetElementType.id, mode);\n }\n resolveDataElementOptions(index, mode) {\n return this._resolveElementOptions(this.dataElementType.id, mode, index);\n }\n _resolveElementOptions(elementType, mode = 'default', index) {\n const active = mode === 'active';\n const cache = this._cachedDataOpts;\n const cacheKey = elementType + '-' + mode;\n const cached = cache[cacheKey];\n const sharing = this.enableOptionSharing && defined(index);\n if (cached) {\n return cloneIfNotShared(cached, sharing);\n }\n const config = this.chart.config;\n const scopeKeys = config.datasetElementScopeKeys(this._type, elementType);\n const prefixes = active ? [\n `${elementType}Hover`,\n 'hover',\n elementType,\n ''\n ] : [\n elementType,\n ''\n ];\n const scopes = config.getOptionScopes(this.getDataset(), scopeKeys);\n const names = Object.keys(defaults.elements[elementType]);\n const context = ()=>this.getContext(index, active, mode);\n const values = config.resolveNamedOptions(scopes, names, context, prefixes);\n if (values.$shared) {\n values.$shared = sharing;\n cache[cacheKey] = Object.freeze(cloneIfNotShared(values, sharing));\n }\n return values;\n }\n _resolveAnimations(index, transition, active) {\n const chart = this.chart;\n const cache = this._cachedDataOpts;\n const cacheKey = `animation-${transition}`;\n const cached = cache[cacheKey];\n if (cached) {\n return cached;\n }\n let options;\n if (chart.options.animation !== false) {\n const config = this.chart.config;\n const scopeKeys = config.datasetAnimationScopeKeys(this._type, transition);\n const scopes = config.getOptionScopes(this.getDataset(), scopeKeys);\n options = config.createResolver(scopes, this.getContext(index, active, transition));\n }\n const animations = new Animations(chart, options && options.animations);\n if (options && options._cacheable) {\n cache[cacheKey] = Object.freeze(animations);\n }\n return animations;\n }\n getSharedOptions(options) {\n if (!options.$shared) {\n return;\n }\n return this._sharedOptions || (this._sharedOptions = Object.assign({}, options));\n }\n includeOptions(mode, sharedOptions) {\n return !sharedOptions || isDirectUpdateMode(mode) || this.chart._animationsDisabled;\n }\n _getSharedOptions(start, mode) {\n const firstOpts = this.resolveDataElementOptions(start, mode);\n const previouslySharedOptions = this._sharedOptions;\n const sharedOptions = this.getSharedOptions(firstOpts);\n const includeOptions = this.includeOptions(mode, sharedOptions) || sharedOptions !== previouslySharedOptions;\n this.updateSharedOptions(sharedOptions, mode, firstOpts);\n return {\n sharedOptions,\n includeOptions\n };\n }\n updateElement(element, index, properties, mode) {\n if (isDirectUpdateMode(mode)) {\n Object.assign(element, properties);\n } else {\n this._resolveAnimations(index, mode).update(element, properties);\n }\n }\n updateSharedOptions(sharedOptions, mode, newOptions) {\n if (sharedOptions && !isDirectUpdateMode(mode)) {\n this._resolveAnimations(undefined, mode).update(sharedOptions, newOptions);\n }\n }\n _setStyle(element, index, mode, active) {\n element.active = active;\n const options = this.getStyle(index, active);\n this._resolveAnimations(index, mode, active).update(element, {\n options: !active && this.getSharedOptions(options) || options\n });\n }\n removeHoverStyle(element, datasetIndex, index) {\n this._setStyle(element, index, 'active', false);\n }\n setHoverStyle(element, datasetIndex, index) {\n this._setStyle(element, index, 'active', true);\n }\n _removeDatasetHoverStyle() {\n const element = this._cachedMeta.dataset;\n if (element) {\n this._setStyle(element, undefined, 'active', false);\n }\n }\n _setDatasetHoverStyle() {\n const element = this._cachedMeta.dataset;\n if (element) {\n this._setStyle(element, undefined, 'active', true);\n }\n }\n _resyncElements(resetNewElements) {\n const data = this._data;\n const elements = this._cachedMeta.data;\n for (const [method, arg1, arg2] of this._syncList){\n this[method](arg1, arg2);\n }\n this._syncList = [];\n const numMeta = elements.length;\n const numData = data.length;\n const count = Math.min(numData, numMeta);\n if (count) {\n this.parse(0, count);\n }\n if (numData > numMeta) {\n this._insertElements(numMeta, numData - numMeta, resetNewElements);\n } else if (numData < numMeta) {\n this._removeElements(numData, numMeta - numData);\n }\n }\n _insertElements(start, count, resetNewElements = true) {\n const meta = this._cachedMeta;\n const data = meta.data;\n const end = start + count;\n let i;\n const move = (arr)=>{\n arr.length += count;\n for(i = arr.length - 1; i >= end; i--){\n arr[i] = arr[i - count];\n }\n };\n move(data);\n for(i = start; i < end; ++i){\n data[i] = new this.dataElementType();\n }\n if (this._parsing) {\n move(meta._parsed);\n }\n this.parse(start, count);\n if (resetNewElements) {\n this.updateElements(data, start, count, 'reset');\n }\n }\n updateElements(element, start, count, mode) {}\n _removeElements(start, count) {\n const meta = this._cachedMeta;\n if (this._parsing) {\n const removed = meta._parsed.splice(start, count);\n if (meta._stacked) {\n clearStacks(meta, removed);\n }\n }\n meta.data.splice(start, count);\n }\n _sync(args) {\n if (this._parsing) {\n this._syncList.push(args);\n } else {\n const [method, arg1, arg2] = args;\n this[method](arg1, arg2);\n }\n this.chart._dataChanges.push([\n this.index,\n ...args\n ]);\n }\n _onDataPush() {\n const count = arguments.length;\n this._sync([\n '_insertElements',\n this.getDataset().data.length - count,\n count\n ]);\n }\n _onDataPop() {\n this._sync([\n '_removeElements',\n this._cachedMeta.data.length - 1,\n 1\n ]);\n }\n _onDataShift() {\n this._sync([\n '_removeElements',\n 0,\n 1\n ]);\n }\n _onDataSplice(start, count) {\n if (count) {\n this._sync([\n '_removeElements',\n start,\n count\n ]);\n }\n const newCount = arguments.length - 2;\n if (newCount) {\n this._sync([\n '_insertElements',\n start,\n newCount\n ]);\n }\n }\n _onDataUnshift() {\n this._sync([\n '_insertElements',\n 0,\n arguments.length\n ]);\n }\n}\n\nfunction getAllScaleValues(scale, type) {\n if (!scale._cache.$bar) {\n const visibleMetas = scale.getMatchingVisibleMetas(type);\n let values = [];\n for(let i = 0, ilen = visibleMetas.length; i < ilen; i++){\n values = values.concat(visibleMetas[i].controller.getAllParsedValues(scale));\n }\n scale._cache.$bar = _arrayUnique(values.sort((a, b)=>a - b));\n }\n return scale._cache.$bar;\n}\n function computeMinSampleSize(meta) {\n const scale = meta.iScale;\n const values = getAllScaleValues(scale, meta.type);\n let min = scale._length;\n let i, ilen, curr, prev;\n const updateMinAndPrev = ()=>{\n if (curr === 32767 || curr === -32768) {\n return;\n }\n if (defined(prev)) {\n min = Math.min(min, Math.abs(curr - prev) || min);\n }\n prev = curr;\n };\n for(i = 0, ilen = values.length; i < ilen; ++i){\n curr = scale.getPixelForValue(values[i]);\n updateMinAndPrev();\n }\n prev = undefined;\n for(i = 0, ilen = scale.ticks.length; i < ilen; ++i){\n curr = scale.getPixelForTick(i);\n updateMinAndPrev();\n }\n return min;\n}\n function computeFitCategoryTraits(index, ruler, options, stackCount) {\n const thickness = options.barThickness;\n let size, ratio;\n if (isNullOrUndef(thickness)) {\n size = ruler.min * options.categoryPercentage;\n ratio = options.barPercentage;\n } else {\n size = thickness * stackCount;\n ratio = 1;\n }\n return {\n chunk: size / stackCount,\n ratio,\n start: ruler.pixels[index] - size / 2\n };\n}\n function computeFlexCategoryTraits(index, ruler, options, stackCount) {\n const pixels = ruler.pixels;\n const curr = pixels[index];\n let prev = index > 0 ? pixels[index - 1] : null;\n let next = index < pixels.length - 1 ? pixels[index + 1] : null;\n const percent = options.categoryPercentage;\n if (prev === null) {\n prev = curr - (next === null ? ruler.end - ruler.start : next - curr);\n }\n if (next === null) {\n next = curr + curr - prev;\n }\n const start = curr - (curr - Math.min(prev, next)) / 2 * percent;\n const size = Math.abs(next - prev) / 2 * percent;\n return {\n chunk: size / stackCount,\n ratio: options.barPercentage,\n start\n };\n}\nfunction parseFloatBar(entry, item, vScale, i) {\n const startValue = vScale.parse(entry[0], i);\n const endValue = vScale.parse(entry[1], i);\n const min = Math.min(startValue, endValue);\n const max = Math.max(startValue, endValue);\n let barStart = min;\n let barEnd = max;\n if (Math.abs(min) > Math.abs(max)) {\n barStart = max;\n barEnd = min;\n }\n item[vScale.axis] = barEnd;\n item._custom = {\n barStart,\n barEnd,\n start: startValue,\n end: endValue,\n min,\n max\n };\n}\nfunction parseValue(entry, item, vScale, i) {\n if (isArray(entry)) {\n parseFloatBar(entry, item, vScale, i);\n } else {\n item[vScale.axis] = vScale.parse(entry, i);\n }\n return item;\n}\nfunction parseArrayOrPrimitive(meta, data, start, count) {\n const iScale = meta.iScale;\n const vScale = meta.vScale;\n const labels = iScale.getLabels();\n const singleScale = iScale === vScale;\n const parsed = [];\n let i, ilen, item, entry;\n for(i = start, ilen = start + count; i < ilen; ++i){\n entry = data[i];\n item = {};\n item[iScale.axis] = singleScale || iScale.parse(labels[i], i);\n parsed.push(parseValue(entry, item, vScale, i));\n }\n return parsed;\n}\nfunction isFloatBar(custom) {\n return custom && custom.barStart !== undefined && custom.barEnd !== undefined;\n}\nfunction barSign(size, vScale, actualBase) {\n if (size !== 0) {\n return sign(size);\n }\n return (vScale.isHorizontal() ? 1 : -1) * (vScale.min >= actualBase ? 1 : -1);\n}\nfunction borderProps(properties) {\n let reverse, start, end, top, bottom;\n if (properties.horizontal) {\n reverse = properties.base > properties.x;\n start = 'left';\n end = 'right';\n } else {\n reverse = properties.base < properties.y;\n start = 'bottom';\n end = 'top';\n }\n if (reverse) {\n top = 'end';\n bottom = 'start';\n } else {\n top = 'start';\n bottom = 'end';\n }\n return {\n start,\n end,\n reverse,\n top,\n bottom\n };\n}\nfunction setBorderSkipped(properties, options, stack, index) {\n let edge = options.borderSkipped;\n const res = {};\n if (!edge) {\n properties.borderSkipped = res;\n return;\n }\n if (edge === true) {\n properties.borderSkipped = {\n top: true,\n right: true,\n bottom: true,\n left: true\n };\n return;\n }\n const { start , end , reverse , top , bottom } = borderProps(properties);\n if (edge === 'middle' && stack) {\n properties.enableBorderRadius = true;\n if ((stack._top || 0) === index) {\n edge = top;\n } else if ((stack._bottom || 0) === index) {\n edge = bottom;\n } else {\n res[parseEdge(bottom, start, end, reverse)] = true;\n edge = top;\n }\n }\n res[parseEdge(edge, start, end, reverse)] = true;\n properties.borderSkipped = res;\n}\nfunction parseEdge(edge, a, b, reverse) {\n if (reverse) {\n edge = swap(edge, a, b);\n edge = startEnd(edge, b, a);\n } else {\n edge = startEnd(edge, a, b);\n }\n return edge;\n}\nfunction swap(orig, v1, v2) {\n return orig === v1 ? v2 : orig === v2 ? v1 : orig;\n}\nfunction startEnd(v, start, end) {\n return v === 'start' ? start : v === 'end' ? end : v;\n}\nfunction setInflateAmount(properties, { inflateAmount }, ratio) {\n properties.inflateAmount = inflateAmount === 'auto' ? ratio === 1 ? 0.33 : 0 : inflateAmount;\n}\nclass BarController extends DatasetController {\n static id = 'bar';\n static defaults = {\n datasetElementType: false,\n dataElementType: 'bar',\n categoryPercentage: 0.8,\n barPercentage: 0.9,\n grouped: true,\n animations: {\n numbers: {\n type: 'number',\n properties: [\n 'x',\n 'y',\n 'base',\n 'width',\n 'height'\n ]\n }\n }\n };\n static overrides = {\n scales: {\n _index_: {\n type: 'category',\n offset: true,\n grid: {\n offset: true\n }\n },\n _value_: {\n type: 'linear',\n beginAtZero: true\n }\n }\n };\n parsePrimitiveData(meta, data, start, count) {\n return parseArrayOrPrimitive(meta, data, start, count);\n }\n parseArrayData(meta, data, start, count) {\n return parseArrayOrPrimitive(meta, data, start, count);\n }\n parseObjectData(meta, data, start, count) {\n const { iScale , vScale } = meta;\n const { xAxisKey ='x' , yAxisKey ='y' } = this._parsing;\n const iAxisKey = iScale.axis === 'x' ? xAxisKey : yAxisKey;\n const vAxisKey = vScale.axis === 'x' ? xAxisKey : yAxisKey;\n const parsed = [];\n let i, ilen, item, obj;\n for(i = start, ilen = start + count; i < ilen; ++i){\n obj = data[i];\n item = {};\n item[iScale.axis] = iScale.parse(resolveObjectKey(obj, iAxisKey), i);\n parsed.push(parseValue(resolveObjectKey(obj, vAxisKey), item, vScale, i));\n }\n return parsed;\n }\n updateRangeFromParsed(range, scale, parsed, stack) {\n super.updateRangeFromParsed(range, scale, parsed, stack);\n const custom = parsed._custom;\n if (custom && scale === this._cachedMeta.vScale) {\n range.min = Math.min(range.min, custom.min);\n range.max = Math.max(range.max, custom.max);\n }\n }\n getMaxOverflow() {\n return 0;\n }\n getLabelAndValue(index) {\n const meta = this._cachedMeta;\n const { iScale , vScale } = meta;\n const parsed = this.getParsed(index);\n const custom = parsed._custom;\n const value = isFloatBar(custom) ? '[' + custom.start + ', ' + custom.end + ']' : '' + vScale.getLabelForValue(parsed[vScale.axis]);\n return {\n label: '' + iScale.getLabelForValue(parsed[iScale.axis]),\n value\n };\n }\n initialize() {\n this.enableOptionSharing = true;\n super.initialize();\n const meta = this._cachedMeta;\n meta.stack = this.getDataset().stack;\n }\n update(mode) {\n const meta = this._cachedMeta;\n this.updateElements(meta.data, 0, meta.data.length, mode);\n }\n updateElements(bars, start, count, mode) {\n const reset = mode === 'reset';\n const { index , _cachedMeta: { vScale } } = this;\n const base = vScale.getBasePixel();\n const horizontal = vScale.isHorizontal();\n const ruler = this._getRuler();\n const { sharedOptions , includeOptions } = this._getSharedOptions(start, mode);\n for(let i = start; i < start + count; i++){\n const parsed = this.getParsed(i);\n const vpixels = reset || isNullOrUndef(parsed[vScale.axis]) ? {\n base,\n head: base\n } : this._calculateBarValuePixels(i);\n const ipixels = this._calculateBarIndexPixels(i, ruler);\n const stack = (parsed._stacks || {})[vScale.axis];\n const properties = {\n horizontal,\n base: vpixels.base,\n enableBorderRadius: !stack || isFloatBar(parsed._custom) || index === stack._top || index === stack._bottom,\n x: horizontal ? vpixels.head : ipixels.center,\n y: horizontal ? ipixels.center : vpixels.head,\n height: horizontal ? ipixels.size : Math.abs(vpixels.size),\n width: horizontal ? Math.abs(vpixels.size) : ipixels.size\n };\n if (includeOptions) {\n properties.options = sharedOptions || this.resolveDataElementOptions(i, bars[i].active ? 'active' : mode);\n }\n const options = properties.options || bars[i].options;\n setBorderSkipped(properties, options, stack, index);\n setInflateAmount(properties, options, ruler.ratio);\n this.updateElement(bars[i], i, properties, mode);\n }\n }\n _getStacks(last, dataIndex) {\n const { iScale } = this._cachedMeta;\n const metasets = iScale.getMatchingVisibleMetas(this._type).filter((meta)=>meta.controller.options.grouped);\n const stacked = iScale.options.stacked;\n const stacks = [];\n const skipNull = (meta)=>{\n const parsed = meta.controller.getParsed(dataIndex);\n const val = parsed && parsed[meta.vScale.axis];\n if (isNullOrUndef(val) || isNaN(val)) {\n return true;\n }\n };\n for (const meta of metasets){\n if (dataIndex !== undefined && skipNull(meta)) {\n continue;\n }\n if (stacked === false || stacks.indexOf(meta.stack) === -1 || stacked === undefined && meta.stack === undefined) {\n stacks.push(meta.stack);\n }\n if (meta.index === last) {\n break;\n }\n }\n if (!stacks.length) {\n stacks.push(undefined);\n }\n return stacks;\n }\n _getStackCount(index) {\n return this._getStacks(undefined, index).length;\n }\n _getStackIndex(datasetIndex, name, dataIndex) {\n const stacks = this._getStacks(datasetIndex, dataIndex);\n const index = name !== undefined ? stacks.indexOf(name) : -1;\n return index === -1 ? stacks.length - 1 : index;\n }\n _getRuler() {\n const opts = this.options;\n const meta = this._cachedMeta;\n const iScale = meta.iScale;\n const pixels = [];\n let i, ilen;\n for(i = 0, ilen = meta.data.length; i < ilen; ++i){\n pixels.push(iScale.getPixelForValue(this.getParsed(i)[iScale.axis], i));\n }\n const barThickness = opts.barThickness;\n const min = barThickness || computeMinSampleSize(meta);\n return {\n min,\n pixels,\n start: iScale._startPixel,\n end: iScale._endPixel,\n stackCount: this._getStackCount(),\n scale: iScale,\n grouped: opts.grouped,\n ratio: barThickness ? 1 : opts.categoryPercentage * opts.barPercentage\n };\n }\n _calculateBarValuePixels(index) {\n const { _cachedMeta: { vScale , _stacked , index: datasetIndex } , options: { base: baseValue , minBarLength } } = this;\n const actualBase = baseValue || 0;\n const parsed = this.getParsed(index);\n const custom = parsed._custom;\n const floating = isFloatBar(custom);\n let value = parsed[vScale.axis];\n let start = 0;\n let length = _stacked ? this.applyStack(vScale, parsed, _stacked) : value;\n let head, size;\n if (length !== value) {\n start = length - value;\n length = value;\n }\n if (floating) {\n value = custom.barStart;\n length = custom.barEnd - custom.barStart;\n if (value !== 0 && sign(value) !== sign(custom.barEnd)) {\n start = 0;\n }\n start += value;\n }\n const startValue = !isNullOrUndef(baseValue) && !floating ? baseValue : start;\n let base = vScale.getPixelForValue(startValue);\n if (this.chart.getDataVisibility(index)) {\n head = vScale.getPixelForValue(start + length);\n } else {\n head = base;\n }\n size = head - base;\n if (Math.abs(size) < minBarLength) {\n size = barSign(size, vScale, actualBase) * minBarLength;\n if (value === actualBase) {\n base -= size / 2;\n }\n const startPixel = vScale.getPixelForDecimal(0);\n const endPixel = vScale.getPixelForDecimal(1);\n const min = Math.min(startPixel, endPixel);\n const max = Math.max(startPixel, endPixel);\n base = Math.max(Math.min(base, max), min);\n head = base + size;\n if (_stacked && !floating) {\n parsed._stacks[vScale.axis]._visualValues[datasetIndex] = vScale.getValueForPixel(head) - vScale.getValueForPixel(base);\n }\n }\n if (base === vScale.getPixelForValue(actualBase)) {\n const halfGrid = sign(size) * vScale.getLineWidthForValue(actualBase) / 2;\n base += halfGrid;\n size -= halfGrid;\n }\n return {\n size,\n base,\n head,\n center: head + size / 2\n };\n }\n _calculateBarIndexPixels(index, ruler) {\n const scale = ruler.scale;\n const options = this.options;\n const skipNull = options.skipNull;\n const maxBarThickness = valueOrDefault(options.maxBarThickness, Infinity);\n let center, size;\n if (ruler.grouped) {\n const stackCount = skipNull ? this._getStackCount(index) : ruler.stackCount;\n const range = options.barThickness === 'flex' ? computeFlexCategoryTraits(index, ruler, options, stackCount) : computeFitCategoryTraits(index, ruler, options, stackCount);\n const stackIndex = this._getStackIndex(this.index, this._cachedMeta.stack, skipNull ? index : undefined);\n center = range.start + range.chunk * stackIndex + range.chunk / 2;\n size = Math.min(maxBarThickness, range.chunk * range.ratio);\n } else {\n center = scale.getPixelForValue(this.getParsed(index)[scale.axis], index);\n size = Math.min(maxBarThickness, ruler.min * ruler.ratio);\n }\n return {\n base: center - size / 2,\n head: center + size / 2,\n center,\n size\n };\n }\n draw() {\n const meta = this._cachedMeta;\n const vScale = meta.vScale;\n const rects = meta.data;\n const ilen = rects.length;\n let i = 0;\n for(; i < ilen; ++i){\n if (this.getParsed(i)[vScale.axis] !== null) {\n rects[i].draw(this._ctx);\n }\n }\n }\n}\n\nclass BubbleController extends DatasetController {\n static id = 'bubble';\n static defaults = {\n datasetElementType: false,\n dataElementType: 'point',\n animations: {\n numbers: {\n type: 'number',\n properties: [\n 'x',\n 'y',\n 'borderWidth',\n 'radius'\n ]\n }\n }\n };\n static overrides = {\n scales: {\n x: {\n type: 'linear'\n },\n y: {\n type: 'linear'\n }\n }\n };\n initialize() {\n this.enableOptionSharing = true;\n super.initialize();\n }\n parsePrimitiveData(meta, data, start, count) {\n const parsed = super.parsePrimitiveData(meta, data, start, count);\n for(let i = 0; i < parsed.length; i++){\n parsed[i]._custom = this.resolveDataElementOptions(i + start).radius;\n }\n return parsed;\n }\n parseArrayData(meta, data, start, count) {\n const parsed = super.parseArrayData(meta, data, start, count);\n for(let i = 0; i < parsed.length; i++){\n const item = data[start + i];\n parsed[i]._custom = valueOrDefault(item[2], this.resolveDataElementOptions(i + start).radius);\n }\n return parsed;\n }\n parseObjectData(meta, data, start, count) {\n const parsed = super.parseObjectData(meta, data, start, count);\n for(let i = 0; i < parsed.length; i++){\n const item = data[start + i];\n parsed[i]._custom = valueOrDefault(item && item.r && +item.r, this.resolveDataElementOptions(i + start).radius);\n }\n return parsed;\n }\n getMaxOverflow() {\n const data = this._cachedMeta.data;\n let max = 0;\n for(let i = data.length - 1; i >= 0; --i){\n max = Math.max(max, data[i].size(this.resolveDataElementOptions(i)) / 2);\n }\n return max > 0 && max;\n }\n getLabelAndValue(index) {\n const meta = this._cachedMeta;\n const labels = this.chart.data.labels || [];\n const { xScale , yScale } = meta;\n const parsed = this.getParsed(index);\n const x = xScale.getLabelForValue(parsed.x);\n const y = yScale.getLabelForValue(parsed.y);\n const r = parsed._custom;\n return {\n label: labels[index] || '',\n value: '(' + x + ', ' + y + (r ? ', ' + r : '') + ')'\n };\n }\n update(mode) {\n const points = this._cachedMeta.data;\n this.updateElements(points, 0, points.length, mode);\n }\n updateElements(points, start, count, mode) {\n const reset = mode === 'reset';\n const { iScale , vScale } = this._cachedMeta;\n const { sharedOptions , includeOptions } = this._getSharedOptions(start, mode);\n const iAxis = iScale.axis;\n const vAxis = vScale.axis;\n for(let i = start; i < start + count; i++){\n const point = points[i];\n const parsed = !reset && this.getParsed(i);\n const properties = {};\n const iPixel = properties[iAxis] = reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(parsed[iAxis]);\n const vPixel = properties[vAxis] = reset ? vScale.getBasePixel() : vScale.getPixelForValue(parsed[vAxis]);\n properties.skip = isNaN(iPixel) || isNaN(vPixel);\n if (includeOptions) {\n properties.options = sharedOptions || this.resolveDataElementOptions(i, point.active ? 'active' : mode);\n if (reset) {\n properties.options.radius = 0;\n }\n }\n this.updateElement(point, i, properties, mode);\n }\n }\n resolveDataElementOptions(index, mode) {\n const parsed = this.getParsed(index);\n let values = super.resolveDataElementOptions(index, mode);\n if (values.$shared) {\n values = Object.assign({}, values, {\n $shared: false\n });\n }\n const radius = values.radius;\n if (mode !== 'active') {\n values.radius = 0;\n }\n values.radius += valueOrDefault(parsed && parsed._custom, radius);\n return values;\n }\n}\n\nfunction getRatioAndOffset(rotation, circumference, cutout) {\n let ratioX = 1;\n let ratioY = 1;\n let offsetX = 0;\n let offsetY = 0;\n if (circumference < TAU) {\n const startAngle = rotation;\n const endAngle = startAngle + circumference;\n const startX = Math.cos(startAngle);\n const startY = Math.sin(startAngle);\n const endX = Math.cos(endAngle);\n const endY = Math.sin(endAngle);\n const calcMax = (angle, a, b)=>_angleBetween(angle, startAngle, endAngle, true) ? 1 : Math.max(a, a * cutout, b, b * cutout);\n const calcMin = (angle, a, b)=>_angleBetween(angle, startAngle, endAngle, true) ? -1 : Math.min(a, a * cutout, b, b * cutout);\n const maxX = calcMax(0, startX, endX);\n const maxY = calcMax(HALF_PI, startY, endY);\n const minX = calcMin(PI, startX, endX);\n const minY = calcMin(PI + HALF_PI, startY, endY);\n ratioX = (maxX - minX) / 2;\n ratioY = (maxY - minY) / 2;\n offsetX = -(maxX + minX) / 2;\n offsetY = -(maxY + minY) / 2;\n }\n return {\n ratioX,\n ratioY,\n offsetX,\n offsetY\n };\n}\nclass DoughnutController extends DatasetController {\n static id = 'doughnut';\n static defaults = {\n datasetElementType: false,\n dataElementType: 'arc',\n animation: {\n animateRotate: true,\n animateScale: false\n },\n animations: {\n numbers: {\n type: 'number',\n properties: [\n 'circumference',\n 'endAngle',\n 'innerRadius',\n 'outerRadius',\n 'startAngle',\n 'x',\n 'y',\n 'offset',\n 'borderWidth',\n 'spacing'\n ]\n }\n },\n cutout: '50%',\n rotation: 0,\n circumference: 360,\n radius: '100%',\n spacing: 0,\n indexAxis: 'r'\n };\n static descriptors = {\n _scriptable: (name)=>name !== 'spacing',\n _indexable: (name)=>name !== 'spacing'\n };\n static overrides = {\n aspectRatio: 1,\n plugins: {\n legend: {\n labels: {\n generateLabels (chart) {\n const data = chart.data;\n if (data.labels.length && data.datasets.length) {\n const { labels: { pointStyle , color } } = chart.legend.options;\n return data.labels.map((label, i)=>{\n const meta = chart.getDatasetMeta(0);\n const style = meta.controller.getStyle(i);\n return {\n text: label,\n fillStyle: style.backgroundColor,\n strokeStyle: style.borderColor,\n fontColor: color,\n lineWidth: style.borderWidth,\n pointStyle: pointStyle,\n hidden: !chart.getDataVisibility(i),\n index: i\n };\n });\n }\n return [];\n }\n },\n onClick (e, legendItem, legend) {\n legend.chart.toggleDataVisibility(legendItem.index);\n legend.chart.update();\n }\n }\n }\n };\n constructor(chart, datasetIndex){\n super(chart, datasetIndex);\n this.enableOptionSharing = true;\n this.innerRadius = undefined;\n this.outerRadius = undefined;\n this.offsetX = undefined;\n this.offsetY = undefined;\n }\n linkScales() {}\n parse(start, count) {\n const data = this.getDataset().data;\n const meta = this._cachedMeta;\n if (this._parsing === false) {\n meta._parsed = data;\n } else {\n let getter = (i)=>+data[i];\n if (isObject(data[start])) {\n const { key ='value' } = this._parsing;\n getter = (i)=>+resolveObjectKey(data[i], key);\n }\n let i, ilen;\n for(i = start, ilen = start + count; i < ilen; ++i){\n meta._parsed[i] = getter(i);\n }\n }\n }\n _getRotation() {\n return toRadians(this.options.rotation - 90);\n }\n _getCircumference() {\n return toRadians(this.options.circumference);\n }\n _getRotationExtents() {\n let min = TAU;\n let max = -TAU;\n for(let i = 0; i < this.chart.data.datasets.length; ++i){\n if (this.chart.isDatasetVisible(i) && this.chart.getDatasetMeta(i).type === this._type) {\n const controller = this.chart.getDatasetMeta(i).controller;\n const rotation = controller._getRotation();\n const circumference = controller._getCircumference();\n min = Math.min(min, rotation);\n max = Math.max(max, rotation + circumference);\n }\n }\n return {\n rotation: min,\n circumference: max - min\n };\n }\n update(mode) {\n const chart = this.chart;\n const { chartArea } = chart;\n const meta = this._cachedMeta;\n const arcs = meta.data;\n const spacing = this.getMaxBorderWidth() + this.getMaxOffset(arcs) + this.options.spacing;\n const maxSize = Math.max((Math.min(chartArea.width, chartArea.height) - spacing) / 2, 0);\n const cutout = Math.min(toPercentage(this.options.cutout, maxSize), 1);\n const chartWeight = this._getRingWeight(this.index);\n const { circumference , rotation } = this._getRotationExtents();\n const { ratioX , ratioY , offsetX , offsetY } = getRatioAndOffset(rotation, circumference, cutout);\n const maxWidth = (chartArea.width - spacing) / ratioX;\n const maxHeight = (chartArea.height - spacing) / ratioY;\n const maxRadius = Math.max(Math.min(maxWidth, maxHeight) / 2, 0);\n const outerRadius = toDimension(this.options.radius, maxRadius);\n const innerRadius = Math.max(outerRadius * cutout, 0);\n const radiusLength = (outerRadius - innerRadius) / this._getVisibleDatasetWeightTotal();\n this.offsetX = offsetX * outerRadius;\n this.offsetY = offsetY * outerRadius;\n meta.total = this.calculateTotal();\n this.outerRadius = outerRadius - radiusLength * this._getRingWeightOffset(this.index);\n this.innerRadius = Math.max(this.outerRadius - radiusLength * chartWeight, 0);\n this.updateElements(arcs, 0, arcs.length, mode);\n }\n _circumference(i, reset) {\n const opts = this.options;\n const meta = this._cachedMeta;\n const circumference = this._getCircumference();\n if (reset && opts.animation.animateRotate || !this.chart.getDataVisibility(i) || meta._parsed[i] === null || meta.data[i].hidden) {\n return 0;\n }\n return this.calculateCircumference(meta._parsed[i] * circumference / TAU);\n }\n updateElements(arcs, start, count, mode) {\n const reset = mode === 'reset';\n const chart = this.chart;\n const chartArea = chart.chartArea;\n const opts = chart.options;\n const animationOpts = opts.animation;\n const centerX = (chartArea.left + chartArea.right) / 2;\n const centerY = (chartArea.top + chartArea.bottom) / 2;\n const animateScale = reset && animationOpts.animateScale;\n const innerRadius = animateScale ? 0 : this.innerRadius;\n const outerRadius = animateScale ? 0 : this.outerRadius;\n const { sharedOptions , includeOptions } = this._getSharedOptions(start, mode);\n let startAngle = this._getRotation();\n let i;\n for(i = 0; i < start; ++i){\n startAngle += this._circumference(i, reset);\n }\n for(i = start; i < start + count; ++i){\n const circumference = this._circumference(i, reset);\n const arc = arcs[i];\n const properties = {\n x: centerX + this.offsetX,\n y: centerY + this.offsetY,\n startAngle,\n endAngle: startAngle + circumference,\n circumference,\n outerRadius,\n innerRadius\n };\n if (includeOptions) {\n properties.options = sharedOptions || this.resolveDataElementOptions(i, arc.active ? 'active' : mode);\n }\n startAngle += circumference;\n this.updateElement(arc, i, properties, mode);\n }\n }\n calculateTotal() {\n const meta = this._cachedMeta;\n const metaData = meta.data;\n let total = 0;\n let i;\n for(i = 0; i < metaData.length; i++){\n const value = meta._parsed[i];\n if (value !== null && !isNaN(value) && this.chart.getDataVisibility(i) && !metaData[i].hidden) {\n total += Math.abs(value);\n }\n }\n return total;\n }\n calculateCircumference(value) {\n const total = this._cachedMeta.total;\n if (total > 0 && !isNaN(value)) {\n return TAU * (Math.abs(value) / total);\n }\n return 0;\n }\n getLabelAndValue(index) {\n const meta = this._cachedMeta;\n const chart = this.chart;\n const labels = chart.data.labels || [];\n const value = formatNumber(meta._parsed[index], chart.options.locale);\n return {\n label: labels[index] || '',\n value\n };\n }\n getMaxBorderWidth(arcs) {\n let max = 0;\n const chart = this.chart;\n let i, ilen, meta, controller, options;\n if (!arcs) {\n for(i = 0, ilen = chart.data.datasets.length; i < ilen; ++i){\n if (chart.isDatasetVisible(i)) {\n meta = chart.getDatasetMeta(i);\n arcs = meta.data;\n controller = meta.controller;\n break;\n }\n }\n }\n if (!arcs) {\n return 0;\n }\n for(i = 0, ilen = arcs.length; i < ilen; ++i){\n options = controller.resolveDataElementOptions(i);\n if (options.borderAlign !== 'inner') {\n max = Math.max(max, options.borderWidth || 0, options.hoverBorderWidth || 0);\n }\n }\n return max;\n }\n getMaxOffset(arcs) {\n let max = 0;\n for(let i = 0, ilen = arcs.length; i < ilen; ++i){\n const options = this.resolveDataElementOptions(i);\n max = Math.max(max, options.offset || 0, options.hoverOffset || 0);\n }\n return max;\n }\n _getRingWeightOffset(datasetIndex) {\n let ringWeightOffset = 0;\n for(let i = 0; i < datasetIndex; ++i){\n if (this.chart.isDatasetVisible(i)) {\n ringWeightOffset += this._getRingWeight(i);\n }\n }\n return ringWeightOffset;\n }\n _getRingWeight(datasetIndex) {\n return Math.max(valueOrDefault(this.chart.data.datasets[datasetIndex].weight, 1), 0);\n }\n _getVisibleDatasetWeightTotal() {\n return this._getRingWeightOffset(this.chart.data.datasets.length) || 1;\n }\n}\n\nclass LineController extends DatasetController {\n static id = 'line';\n static defaults = {\n datasetElementType: 'line',\n dataElementType: 'point',\n showLine: true,\n spanGaps: false\n };\n static overrides = {\n scales: {\n _index_: {\n type: 'category'\n },\n _value_: {\n type: 'linear'\n }\n }\n };\n initialize() {\n this.enableOptionSharing = true;\n this.supportsDecimation = true;\n super.initialize();\n }\n update(mode) {\n const meta = this._cachedMeta;\n const { dataset: line , data: points = [] , _dataset } = meta;\n const animationsDisabled = this.chart._animationsDisabled;\n let { start , count } = _getStartAndCountOfVisiblePoints(meta, points, animationsDisabled);\n this._drawStart = start;\n this._drawCount = count;\n if (_scaleRangesChanged(meta)) {\n start = 0;\n count = points.length;\n }\n line._chart = this.chart;\n line._datasetIndex = this.index;\n line._decimated = !!_dataset._decimated;\n line.points = points;\n const options = this.resolveDatasetElementOptions(mode);\n if (!this.options.showLine) {\n options.borderWidth = 0;\n }\n options.segment = this.options.segment;\n this.updateElement(line, undefined, {\n animated: !animationsDisabled,\n options\n }, mode);\n this.updateElements(points, start, count, mode);\n }\n updateElements(points, start, count, mode) {\n const reset = mode === 'reset';\n const { iScale , vScale , _stacked , _dataset } = this._cachedMeta;\n const { sharedOptions , includeOptions } = this._getSharedOptions(start, mode);\n const iAxis = iScale.axis;\n const vAxis = vScale.axis;\n const { spanGaps , segment } = this.options;\n const maxGapLength = isNumber(spanGaps) ? spanGaps : Number.POSITIVE_INFINITY;\n const directUpdate = this.chart._animationsDisabled || reset || mode === 'none';\n const end = start + count;\n const pointsCount = points.length;\n let prevParsed = start > 0 && this.getParsed(start - 1);\n for(let i = 0; i < pointsCount; ++i){\n const point = points[i];\n const properties = directUpdate ? point : {};\n if (i < start || i >= end) {\n properties.skip = true;\n continue;\n }\n const parsed = this.getParsed(i);\n const nullData = isNullOrUndef(parsed[vAxis]);\n const iPixel = properties[iAxis] = iScale.getPixelForValue(parsed[iAxis], i);\n const vPixel = properties[vAxis] = reset || nullData ? vScale.getBasePixel() : vScale.getPixelForValue(_stacked ? this.applyStack(vScale, parsed, _stacked) : parsed[vAxis], i);\n properties.skip = isNaN(iPixel) || isNaN(vPixel) || nullData;\n properties.stop = i > 0 && Math.abs(parsed[iAxis] - prevParsed[iAxis]) > maxGapLength;\n if (segment) {\n properties.parsed = parsed;\n properties.raw = _dataset.data[i];\n }\n if (includeOptions) {\n properties.options = sharedOptions || this.resolveDataElementOptions(i, point.active ? 'active' : mode);\n }\n if (!directUpdate) {\n this.updateElement(point, i, properties, mode);\n }\n prevParsed = parsed;\n }\n }\n getMaxOverflow() {\n const meta = this._cachedMeta;\n const dataset = meta.dataset;\n const border = dataset.options && dataset.options.borderWidth || 0;\n const data = meta.data || [];\n if (!data.length) {\n return border;\n }\n const firstPoint = data[0].size(this.resolveDataElementOptions(0));\n const lastPoint = data[data.length - 1].size(this.resolveDataElementOptions(data.length - 1));\n return Math.max(border, firstPoint, lastPoint) / 2;\n }\n draw() {\n const meta = this._cachedMeta;\n meta.dataset.updateControlPoints(this.chart.chartArea, meta.iScale.axis);\n super.draw();\n }\n}\n\nclass PolarAreaController extends DatasetController {\n static id = 'polarArea';\n static defaults = {\n dataElementType: 'arc',\n animation: {\n animateRotate: true,\n animateScale: true\n },\n animations: {\n numbers: {\n type: 'number',\n properties: [\n 'x',\n 'y',\n 'startAngle',\n 'endAngle',\n 'innerRadius',\n 'outerRadius'\n ]\n }\n },\n indexAxis: 'r',\n startAngle: 0\n };\n static overrides = {\n aspectRatio: 1,\n plugins: {\n legend: {\n labels: {\n generateLabels (chart) {\n const data = chart.data;\n if (data.labels.length && data.datasets.length) {\n const { labels: { pointStyle , color } } = chart.legend.options;\n return data.labels.map((label, i)=>{\n const meta = chart.getDatasetMeta(0);\n const style = meta.controller.getStyle(i);\n return {\n text: label,\n fillStyle: style.backgroundColor,\n strokeStyle: style.borderColor,\n fontColor: color,\n lineWidth: style.borderWidth,\n pointStyle: pointStyle,\n hidden: !chart.getDataVisibility(i),\n index: i\n };\n });\n }\n return [];\n }\n },\n onClick (e, legendItem, legend) {\n legend.chart.toggleDataVisibility(legendItem.index);\n legend.chart.update();\n }\n }\n },\n scales: {\n r: {\n type: 'radialLinear',\n angleLines: {\n display: false\n },\n beginAtZero: true,\n grid: {\n circular: true\n },\n pointLabels: {\n display: false\n },\n startAngle: 0\n }\n }\n };\n constructor(chart, datasetIndex){\n super(chart, datasetIndex);\n this.innerRadius = undefined;\n this.outerRadius = undefined;\n }\n getLabelAndValue(index) {\n const meta = this._cachedMeta;\n const chart = this.chart;\n const labels = chart.data.labels || [];\n const value = formatNumber(meta._parsed[index].r, chart.options.locale);\n return {\n label: labels[index] || '',\n value\n };\n }\n parseObjectData(meta, data, start, count) {\n return _parseObjectDataRadialScale.bind(this)(meta, data, start, count);\n }\n update(mode) {\n const arcs = this._cachedMeta.data;\n this._updateRadius();\n this.updateElements(arcs, 0, arcs.length, mode);\n }\n getMinMax() {\n const meta = this._cachedMeta;\n const range = {\n min: Number.POSITIVE_INFINITY,\n max: Number.NEGATIVE_INFINITY\n };\n meta.data.forEach((element, index)=>{\n const parsed = this.getParsed(index).r;\n if (!isNaN(parsed) && this.chart.getDataVisibility(index)) {\n if (parsed < range.min) {\n range.min = parsed;\n }\n if (parsed > range.max) {\n range.max = parsed;\n }\n }\n });\n return range;\n }\n _updateRadius() {\n const chart = this.chart;\n const chartArea = chart.chartArea;\n const opts = chart.options;\n const minSize = Math.min(chartArea.right - chartArea.left, chartArea.bottom - chartArea.top);\n const outerRadius = Math.max(minSize / 2, 0);\n const innerRadius = Math.max(opts.cutoutPercentage ? outerRadius / 100 * opts.cutoutPercentage : 1, 0);\n const radiusLength = (outerRadius - innerRadius) / chart.getVisibleDatasetCount();\n this.outerRadius = outerRadius - radiusLength * this.index;\n this.innerRadius = this.outerRadius - radiusLength;\n }\n updateElements(arcs, start, count, mode) {\n const reset = mode === 'reset';\n const chart = this.chart;\n const opts = chart.options;\n const animationOpts = opts.animation;\n const scale = this._cachedMeta.rScale;\n const centerX = scale.xCenter;\n const centerY = scale.yCenter;\n const datasetStartAngle = scale.getIndexAngle(0) - 0.5 * PI;\n let angle = datasetStartAngle;\n let i;\n const defaultAngle = 360 / this.countVisibleElements();\n for(i = 0; i < start; ++i){\n angle += this._computeAngle(i, mode, defaultAngle);\n }\n for(i = start; i < start + count; i++){\n const arc = arcs[i];\n let startAngle = angle;\n let endAngle = angle + this._computeAngle(i, mode, defaultAngle);\n let outerRadius = chart.getDataVisibility(i) ? scale.getDistanceFromCenterForValue(this.getParsed(i).r) : 0;\n angle = endAngle;\n if (reset) {\n if (animationOpts.animateScale) {\n outerRadius = 0;\n }\n if (animationOpts.animateRotate) {\n startAngle = endAngle = datasetStartAngle;\n }\n }\n const properties = {\n x: centerX,\n y: centerY,\n innerRadius: 0,\n outerRadius,\n startAngle,\n endAngle,\n options: this.resolveDataElementOptions(i, arc.active ? 'active' : mode)\n };\n this.updateElement(arc, i, properties, mode);\n }\n }\n countVisibleElements() {\n const meta = this._cachedMeta;\n let count = 0;\n meta.data.forEach((element, index)=>{\n if (!isNaN(this.getParsed(index).r) && this.chart.getDataVisibility(index)) {\n count++;\n }\n });\n return count;\n }\n _computeAngle(index, mode, defaultAngle) {\n return this.chart.getDataVisibility(index) ? toRadians(this.resolveDataElementOptions(index, mode).angle || defaultAngle) : 0;\n }\n}\n\nclass PieController extends DoughnutController {\n static id = 'pie';\n static defaults = {\n cutout: 0,\n rotation: 0,\n circumference: 360,\n radius: '100%'\n };\n}\n\nclass RadarController extends DatasetController {\n static id = 'radar';\n static defaults = {\n datasetElementType: 'line',\n dataElementType: 'point',\n indexAxis: 'r',\n showLine: true,\n elements: {\n line: {\n fill: 'start'\n }\n }\n };\n static overrides = {\n aspectRatio: 1,\n scales: {\n r: {\n type: 'radialLinear'\n }\n }\n };\n getLabelAndValue(index) {\n const vScale = this._cachedMeta.vScale;\n const parsed = this.getParsed(index);\n return {\n label: vScale.getLabels()[index],\n value: '' + vScale.getLabelForValue(parsed[vScale.axis])\n };\n }\n parseObjectData(meta, data, start, count) {\n return _parseObjectDataRadialScale.bind(this)(meta, data, start, count);\n }\n update(mode) {\n const meta = this._cachedMeta;\n const line = meta.dataset;\n const points = meta.data || [];\n const labels = meta.iScale.getLabels();\n line.points = points;\n if (mode !== 'resize') {\n const options = this.resolveDatasetElementOptions(mode);\n if (!this.options.showLine) {\n options.borderWidth = 0;\n }\n const properties = {\n _loop: true,\n _fullLoop: labels.length === points.length,\n options\n };\n this.updateElement(line, undefined, properties, mode);\n }\n this.updateElements(points, 0, points.length, mode);\n }\n updateElements(points, start, count, mode) {\n const scale = this._cachedMeta.rScale;\n const reset = mode === 'reset';\n for(let i = start; i < start + count; i++){\n const point = points[i];\n const options = this.resolveDataElementOptions(i, point.active ? 'active' : mode);\n const pointPosition = scale.getPointPositionForValue(i, this.getParsed(i).r);\n const x = reset ? scale.xCenter : pointPosition.x;\n const y = reset ? scale.yCenter : pointPosition.y;\n const properties = {\n x,\n y,\n angle: pointPosition.angle,\n skip: isNaN(x) || isNaN(y),\n options\n };\n this.updateElement(point, i, properties, mode);\n }\n }\n}\n\nclass ScatterController extends DatasetController {\n static id = 'scatter';\n static defaults = {\n datasetElementType: false,\n dataElementType: 'point',\n showLine: false,\n fill: false\n };\n static overrides = {\n interaction: {\n mode: 'point'\n },\n scales: {\n x: {\n type: 'linear'\n },\n y: {\n type: 'linear'\n }\n }\n };\n getLabelAndValue(index) {\n const meta = this._cachedMeta;\n const labels = this.chart.data.labels || [];\n const { xScale , yScale } = meta;\n const parsed = this.getParsed(index);\n const x = xScale.getLabelForValue(parsed.x);\n const y = yScale.getLabelForValue(parsed.y);\n return {\n label: labels[index] || '',\n value: '(' + x + ', ' + y + ')'\n };\n }\n update(mode) {\n const meta = this._cachedMeta;\n const { data: points = [] } = meta;\n const animationsDisabled = this.chart._animationsDisabled;\n let { start , count } = _getStartAndCountOfVisiblePoints(meta, points, animationsDisabled);\n this._drawStart = start;\n this._drawCount = count;\n if (_scaleRangesChanged(meta)) {\n start = 0;\n count = points.length;\n }\n if (this.options.showLine) {\n const { dataset: line , _dataset } = meta;\n line._chart = this.chart;\n line._datasetIndex = this.index;\n line._decimated = !!_dataset._decimated;\n line.points = points;\n const options = this.resolveDatasetElementOptions(mode);\n options.segment = this.options.segment;\n this.updateElement(line, undefined, {\n animated: !animationsDisabled,\n options\n }, mode);\n }\n this.updateElements(points, start, count, mode);\n }\n addElements() {\n const { showLine } = this.options;\n if (!this.datasetElementType && showLine) {\n this.datasetElementType = this.chart.registry.getElement('line');\n }\n super.addElements();\n }\n updateElements(points, start, count, mode) {\n const reset = mode === 'reset';\n const { iScale , vScale , _stacked , _dataset } = this._cachedMeta;\n const firstOpts = this.resolveDataElementOptions(start, mode);\n const sharedOptions = this.getSharedOptions(firstOpts);\n const includeOptions = this.includeOptions(mode, sharedOptions);\n const iAxis = iScale.axis;\n const vAxis = vScale.axis;\n const { spanGaps , segment } = this.options;\n const maxGapLength = isNumber(spanGaps) ? spanGaps : Number.POSITIVE_INFINITY;\n const directUpdate = this.chart._animationsDisabled || reset || mode === 'none';\n let prevParsed = start > 0 && this.getParsed(start - 1);\n for(let i = start; i < start + count; ++i){\n const point = points[i];\n const parsed = this.getParsed(i);\n const properties = directUpdate ? point : {};\n const nullData = isNullOrUndef(parsed[vAxis]);\n const iPixel = properties[iAxis] = iScale.getPixelForValue(parsed[iAxis], i);\n const vPixel = properties[vAxis] = reset || nullData ? vScale.getBasePixel() : vScale.getPixelForValue(_stacked ? this.applyStack(vScale, parsed, _stacked) : parsed[vAxis], i);\n properties.skip = isNaN(iPixel) || isNaN(vPixel) || nullData;\n properties.stop = i > 0 && Math.abs(parsed[iAxis] - prevParsed[iAxis]) > maxGapLength;\n if (segment) {\n properties.parsed = parsed;\n properties.raw = _dataset.data[i];\n }\n if (includeOptions) {\n properties.options = sharedOptions || this.resolveDataElementOptions(i, point.active ? 'active' : mode);\n }\n if (!directUpdate) {\n this.updateElement(point, i, properties, mode);\n }\n prevParsed = parsed;\n }\n this.updateSharedOptions(sharedOptions, mode, firstOpts);\n }\n getMaxOverflow() {\n const meta = this._cachedMeta;\n const data = meta.data || [];\n if (!this.options.showLine) {\n let max = 0;\n for(let i = data.length - 1; i >= 0; --i){\n max = Math.max(max, data[i].size(this.resolveDataElementOptions(i)) / 2);\n }\n return max > 0 && max;\n }\n const dataset = meta.dataset;\n const border = dataset.options && dataset.options.borderWidth || 0;\n if (!data.length) {\n return border;\n }\n const firstPoint = data[0].size(this.resolveDataElementOptions(0));\n const lastPoint = data[data.length - 1].size(this.resolveDataElementOptions(data.length - 1));\n return Math.max(border, firstPoint, lastPoint) / 2;\n }\n}\n\nvar controllers = /*#__PURE__*/Object.freeze({\n__proto__: null,\nBarController: BarController,\nBubbleController: BubbleController,\nDoughnutController: DoughnutController,\nLineController: LineController,\nPolarAreaController: PolarAreaController,\nPieController: PieController,\nRadarController: RadarController,\nScatterController: ScatterController\n});\n\n/**\n * @namespace Chart._adapters\n * @since 2.8.0\n * @private\n */ function abstract() {\n throw new Error('This method is not implemented: Check that a complete date adapter is provided.');\n}\n/**\n * Date adapter (current used by the time scale)\n * @namespace Chart._adapters._date\n * @memberof Chart._adapters\n * @private\n */ class DateAdapterBase {\n /**\n * Override default date adapter methods.\n * Accepts type parameter to define options type.\n * @example\n * Chart._adapters._date.override<{myAdapterOption: string}>({\n * init() {\n * console.log(this.options.myAdapterOption);\n * }\n * })\n */ static override(members) {\n Object.assign(DateAdapterBase.prototype, members);\n }\n constructor(options){\n this.options = options || {};\n }\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n init() {}\n formats() {\n return abstract();\n }\n parse() {\n return abstract();\n }\n format() {\n return abstract();\n }\n add() {\n return abstract();\n }\n diff() {\n return abstract();\n }\n startOf() {\n return abstract();\n }\n endOf() {\n return abstract();\n }\n}\nvar adapters = {\n _date: DateAdapterBase\n};\n\nfunction binarySearch(metaset, axis, value, intersect) {\n const { controller , data , _sorted } = metaset;\n const iScale = controller._cachedMeta.iScale;\n if (iScale && axis === iScale.axis && axis !== 'r' && _sorted && data.length) {\n const lookupMethod = iScale._reversePixels ? _rlookupByKey : _lookupByKey;\n if (!intersect) {\n return lookupMethod(data, axis, value);\n } else if (controller._sharedOptions) {\n const el = data[0];\n const range = typeof el.getRange === 'function' && el.getRange(axis);\n if (range) {\n const start = lookupMethod(data, axis, value - range);\n const end = lookupMethod(data, axis, value + range);\n return {\n lo: start.lo,\n hi: end.hi\n };\n }\n }\n }\n return {\n lo: 0,\n hi: data.length - 1\n };\n}\n function evaluateInteractionItems(chart, axis, position, handler, intersect) {\n const metasets = chart.getSortedVisibleDatasetMetas();\n const value = position[axis];\n for(let i = 0, ilen = metasets.length; i < ilen; ++i){\n const { index , data } = metasets[i];\n const { lo , hi } = binarySearch(metasets[i], axis, value, intersect);\n for(let j = lo; j <= hi; ++j){\n const element = data[j];\n if (!element.skip) {\n handler(element, index, j);\n }\n }\n }\n}\n function getDistanceMetricForAxis(axis) {\n const useX = axis.indexOf('x') !== -1;\n const useY = axis.indexOf('y') !== -1;\n return function(pt1, pt2) {\n const deltaX = useX ? Math.abs(pt1.x - pt2.x) : 0;\n const deltaY = useY ? Math.abs(pt1.y - pt2.y) : 0;\n return Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));\n };\n}\n function getIntersectItems(chart, position, axis, useFinalPosition, includeInvisible) {\n const items = [];\n if (!includeInvisible && !chart.isPointInArea(position)) {\n return items;\n }\n const evaluationFunc = function(element, datasetIndex, index) {\n if (!includeInvisible && !_isPointInArea(element, chart.chartArea, 0)) {\n return;\n }\n if (element.inRange(position.x, position.y, useFinalPosition)) {\n items.push({\n element,\n datasetIndex,\n index\n });\n }\n };\n evaluateInteractionItems(chart, axis, position, evaluationFunc, true);\n return items;\n}\n function getNearestRadialItems(chart, position, axis, useFinalPosition) {\n let items = [];\n function evaluationFunc(element, datasetIndex, index) {\n const { startAngle , endAngle } = element.getProps([\n 'startAngle',\n 'endAngle'\n ], useFinalPosition);\n const { angle } = getAngleFromPoint(element, {\n x: position.x,\n y: position.y\n });\n if (_angleBetween(angle, startAngle, endAngle)) {\n items.push({\n element,\n datasetIndex,\n index\n });\n }\n }\n evaluateInteractionItems(chart, axis, position, evaluationFunc);\n return items;\n}\n function getNearestCartesianItems(chart, position, axis, intersect, useFinalPosition, includeInvisible) {\n let items = [];\n const distanceMetric = getDistanceMetricForAxis(axis);\n let minDistance = Number.POSITIVE_INFINITY;\n function evaluationFunc(element, datasetIndex, index) {\n const inRange = element.inRange(position.x, position.y, useFinalPosition);\n if (intersect && !inRange) {\n return;\n }\n const center = element.getCenterPoint(useFinalPosition);\n const pointInArea = !!includeInvisible || chart.isPointInArea(center);\n if (!pointInArea && !inRange) {\n return;\n }\n const distance = distanceMetric(position, center);\n if (distance < minDistance) {\n items = [\n {\n element,\n datasetIndex,\n index\n }\n ];\n minDistance = distance;\n } else if (distance === minDistance) {\n items.push({\n element,\n datasetIndex,\n index\n });\n }\n }\n evaluateInteractionItems(chart, axis, position, evaluationFunc);\n return items;\n}\n function getNearestItems(chart, position, axis, intersect, useFinalPosition, includeInvisible) {\n if (!includeInvisible && !chart.isPointInArea(position)) {\n return [];\n }\n return axis === 'r' && !intersect ? getNearestRadialItems(chart, position, axis, useFinalPosition) : getNearestCartesianItems(chart, position, axis, intersect, useFinalPosition, includeInvisible);\n}\n function getAxisItems(chart, position, axis, intersect, useFinalPosition) {\n const items = [];\n const rangeMethod = axis === 'x' ? 'inXRange' : 'inYRange';\n let intersectsItem = false;\n evaluateInteractionItems(chart, axis, position, (element, datasetIndex, index)=>{\n if (element[rangeMethod](position[axis], useFinalPosition)) {\n items.push({\n element,\n datasetIndex,\n index\n });\n intersectsItem = intersectsItem || element.inRange(position.x, position.y, useFinalPosition);\n }\n });\n if (intersect && !intersectsItem) {\n return [];\n }\n return items;\n}\n var Interaction = {\n evaluateInteractionItems,\n modes: {\n index (chart, e, options, useFinalPosition) {\n const position = getRelativePosition(e, chart);\n const axis = options.axis || 'x';\n const includeInvisible = options.includeInvisible || false;\n const items = options.intersect ? getIntersectItems(chart, position, axis, useFinalPosition, includeInvisible) : getNearestItems(chart, position, axis, false, useFinalPosition, includeInvisible);\n const elements = [];\n if (!items.length) {\n return [];\n }\n chart.getSortedVisibleDatasetMetas().forEach((meta)=>{\n const index = items[0].index;\n const element = meta.data[index];\n if (element && !element.skip) {\n elements.push({\n element,\n datasetIndex: meta.index,\n index\n });\n }\n });\n return elements;\n },\n dataset (chart, e, options, useFinalPosition) {\n const position = getRelativePosition(e, chart);\n const axis = options.axis || 'xy';\n const includeInvisible = options.includeInvisible || false;\n let items = options.intersect ? getIntersectItems(chart, position, axis, useFinalPosition, includeInvisible) : getNearestItems(chart, position, axis, false, useFinalPosition, includeInvisible);\n if (items.length > 0) {\n const datasetIndex = items[0].datasetIndex;\n const data = chart.getDatasetMeta(datasetIndex).data;\n items = [];\n for(let i = 0; i < data.length; ++i){\n items.push({\n element: data[i],\n datasetIndex,\n index: i\n });\n }\n }\n return items;\n },\n point (chart, e, options, useFinalPosition) {\n const position = getRelativePosition(e, chart);\n const axis = options.axis || 'xy';\n const includeInvisible = options.includeInvisible || false;\n return getIntersectItems(chart, position, axis, useFinalPosition, includeInvisible);\n },\n nearest (chart, e, options, useFinalPosition) {\n const position = getRelativePosition(e, chart);\n const axis = options.axis || 'xy';\n const includeInvisible = options.includeInvisible || false;\n return getNearestItems(chart, position, axis, options.intersect, useFinalPosition, includeInvisible);\n },\n x (chart, e, options, useFinalPosition) {\n const position = getRelativePosition(e, chart);\n return getAxisItems(chart, position, 'x', options.intersect, useFinalPosition);\n },\n y (chart, e, options, useFinalPosition) {\n const position = getRelativePosition(e, chart);\n return getAxisItems(chart, position, 'y', options.intersect, useFinalPosition);\n }\n }\n};\n\nconst STATIC_POSITIONS = [\n 'left',\n 'top',\n 'right',\n 'bottom'\n];\nfunction filterByPosition(array, position) {\n return array.filter((v)=>v.pos === position);\n}\nfunction filterDynamicPositionByAxis(array, axis) {\n return array.filter((v)=>STATIC_POSITIONS.indexOf(v.pos) === -1 && v.box.axis === axis);\n}\nfunction sortByWeight(array, reverse) {\n return array.sort((a, b)=>{\n const v0 = reverse ? b : a;\n const v1 = reverse ? a : b;\n return v0.weight === v1.weight ? v0.index - v1.index : v0.weight - v1.weight;\n });\n}\nfunction wrapBoxes(boxes) {\n const layoutBoxes = [];\n let i, ilen, box, pos, stack, stackWeight;\n for(i = 0, ilen = (boxes || []).length; i < ilen; ++i){\n box = boxes[i];\n ({ position: pos , options: { stack , stackWeight =1 } } = box);\n layoutBoxes.push({\n index: i,\n box,\n pos,\n horizontal: box.isHorizontal(),\n weight: box.weight,\n stack: stack && pos + stack,\n stackWeight\n });\n }\n return layoutBoxes;\n}\nfunction buildStacks(layouts) {\n const stacks = {};\n for (const wrap of layouts){\n const { stack , pos , stackWeight } = wrap;\n if (!stack || !STATIC_POSITIONS.includes(pos)) {\n continue;\n }\n const _stack = stacks[stack] || (stacks[stack] = {\n count: 0,\n placed: 0,\n weight: 0,\n size: 0\n });\n _stack.count++;\n _stack.weight += stackWeight;\n }\n return stacks;\n}\n function setLayoutDims(layouts, params) {\n const stacks = buildStacks(layouts);\n const { vBoxMaxWidth , hBoxMaxHeight } = params;\n let i, ilen, layout;\n for(i = 0, ilen = layouts.length; i < ilen; ++i){\n layout = layouts[i];\n const { fullSize } = layout.box;\n const stack = stacks[layout.stack];\n const factor = stack && layout.stackWeight / stack.weight;\n if (layout.horizontal) {\n layout.width = factor ? factor * vBoxMaxWidth : fullSize && params.availableWidth;\n layout.height = hBoxMaxHeight;\n } else {\n layout.width = vBoxMaxWidth;\n layout.height = factor ? factor * hBoxMaxHeight : fullSize && params.availableHeight;\n }\n }\n return stacks;\n}\nfunction buildLayoutBoxes(boxes) {\n const layoutBoxes = wrapBoxes(boxes);\n const fullSize = sortByWeight(layoutBoxes.filter((wrap)=>wrap.box.fullSize), true);\n const left = sortByWeight(filterByPosition(layoutBoxes, 'left'), true);\n const right = sortByWeight(filterByPosition(layoutBoxes, 'right'));\n const top = sortByWeight(filterByPosition(layoutBoxes, 'top'), true);\n const bottom = sortByWeight(filterByPosition(layoutBoxes, 'bottom'));\n const centerHorizontal = filterDynamicPositionByAxis(layoutBoxes, 'x');\n const centerVertical = filterDynamicPositionByAxis(layoutBoxes, 'y');\n return {\n fullSize,\n leftAndTop: left.concat(top),\n rightAndBottom: right.concat(centerVertical).concat(bottom).concat(centerHorizontal),\n chartArea: filterByPosition(layoutBoxes, 'chartArea'),\n vertical: left.concat(right).concat(centerVertical),\n horizontal: top.concat(bottom).concat(centerHorizontal)\n };\n}\nfunction getCombinedMax(maxPadding, chartArea, a, b) {\n return Math.max(maxPadding[a], chartArea[a]) + Math.max(maxPadding[b], chartArea[b]);\n}\nfunction updateMaxPadding(maxPadding, boxPadding) {\n maxPadding.top = Math.max(maxPadding.top, boxPadding.top);\n maxPadding.left = Math.max(maxPadding.left, boxPadding.left);\n maxPadding.bottom = Math.max(maxPadding.bottom, boxPadding.bottom);\n maxPadding.right = Math.max(maxPadding.right, boxPadding.right);\n}\nfunction updateDims(chartArea, params, layout, stacks) {\n const { pos , box } = layout;\n const maxPadding = chartArea.maxPadding;\n if (!isObject(pos)) {\n if (layout.size) {\n chartArea[pos] -= layout.size;\n }\n const stack = stacks[layout.stack] || {\n size: 0,\n count: 1\n };\n stack.size = Math.max(stack.size, layout.horizontal ? box.height : box.width);\n layout.size = stack.size / stack.count;\n chartArea[pos] += layout.size;\n }\n if (box.getPadding) {\n updateMaxPadding(maxPadding, box.getPadding());\n }\n const newWidth = Math.max(0, params.outerWidth - getCombinedMax(maxPadding, chartArea, 'left', 'right'));\n const newHeight = Math.max(0, params.outerHeight - getCombinedMax(maxPadding, chartArea, 'top', 'bottom'));\n const widthChanged = newWidth !== chartArea.w;\n const heightChanged = newHeight !== chartArea.h;\n chartArea.w = newWidth;\n chartArea.h = newHeight;\n return layout.horizontal ? {\n same: widthChanged,\n other: heightChanged\n } : {\n same: heightChanged,\n other: widthChanged\n };\n}\nfunction handleMaxPadding(chartArea) {\n const maxPadding = chartArea.maxPadding;\n function updatePos(pos) {\n const change = Math.max(maxPadding[pos] - chartArea[pos], 0);\n chartArea[pos] += change;\n return change;\n }\n chartArea.y += updatePos('top');\n chartArea.x += updatePos('left');\n updatePos('right');\n updatePos('bottom');\n}\nfunction getMargins(horizontal, chartArea) {\n const maxPadding = chartArea.maxPadding;\n function marginForPositions(positions) {\n const margin = {\n left: 0,\n top: 0,\n right: 0,\n bottom: 0\n };\n positions.forEach((pos)=>{\n margin[pos] = Math.max(chartArea[pos], maxPadding[pos]);\n });\n return margin;\n }\n return horizontal ? marginForPositions([\n 'left',\n 'right'\n ]) : marginForPositions([\n 'top',\n 'bottom'\n ]);\n}\nfunction fitBoxes(boxes, chartArea, params, stacks) {\n const refitBoxes = [];\n let i, ilen, layout, box, refit, changed;\n for(i = 0, ilen = boxes.length, refit = 0; i < ilen; ++i){\n layout = boxes[i];\n box = layout.box;\n box.update(layout.width || chartArea.w, layout.height || chartArea.h, getMargins(layout.horizontal, chartArea));\n const { same , other } = updateDims(chartArea, params, layout, stacks);\n refit |= same && refitBoxes.length;\n changed = changed || other;\n if (!box.fullSize) {\n refitBoxes.push(layout);\n }\n }\n return refit && fitBoxes(refitBoxes, chartArea, params, stacks) || changed;\n}\nfunction setBoxDims(box, left, top, width, height) {\n box.top = top;\n box.left = left;\n box.right = left + width;\n box.bottom = top + height;\n box.width = width;\n box.height = height;\n}\nfunction placeBoxes(boxes, chartArea, params, stacks) {\n const userPadding = params.padding;\n let { x , y } = chartArea;\n for (const layout of boxes){\n const box = layout.box;\n const stack = stacks[layout.stack] || {\n count: 1,\n placed: 0,\n weight: 1\n };\n const weight = layout.stackWeight / stack.weight || 1;\n if (layout.horizontal) {\n const width = chartArea.w * weight;\n const height = stack.size || box.height;\n if (defined(stack.start)) {\n y = stack.start;\n }\n if (box.fullSize) {\n setBoxDims(box, userPadding.left, y, params.outerWidth - userPadding.right - userPadding.left, height);\n } else {\n setBoxDims(box, chartArea.left + stack.placed, y, width, height);\n }\n stack.start = y;\n stack.placed += width;\n y = box.bottom;\n } else {\n const height1 = chartArea.h * weight;\n const width1 = stack.size || box.width;\n if (defined(stack.start)) {\n x = stack.start;\n }\n if (box.fullSize) {\n setBoxDims(box, x, userPadding.top, width1, params.outerHeight - userPadding.bottom - userPadding.top);\n } else {\n setBoxDims(box, x, chartArea.top + stack.placed, width1, height1);\n }\n stack.start = x;\n stack.placed += height1;\n x = box.right;\n }\n }\n chartArea.x = x;\n chartArea.y = y;\n}\nvar layouts = {\n addBox (chart, item) {\n if (!chart.boxes) {\n chart.boxes = [];\n }\n item.fullSize = item.fullSize || false;\n item.position = item.position || 'top';\n item.weight = item.weight || 0;\n item._layers = item._layers || function() {\n return [\n {\n z: 0,\n draw (chartArea) {\n item.draw(chartArea);\n }\n }\n ];\n };\n chart.boxes.push(item);\n },\n removeBox (chart, layoutItem) {\n const index = chart.boxes ? chart.boxes.indexOf(layoutItem) : -1;\n if (index !== -1) {\n chart.boxes.splice(index, 1);\n }\n },\n configure (chart, item, options) {\n item.fullSize = options.fullSize;\n item.position = options.position;\n item.weight = options.weight;\n },\n update (chart, width, height, minPadding) {\n if (!chart) {\n return;\n }\n const padding = toPadding(chart.options.layout.padding);\n const availableWidth = Math.max(width - padding.width, 0);\n const availableHeight = Math.max(height - padding.height, 0);\n const boxes = buildLayoutBoxes(chart.boxes);\n const verticalBoxes = boxes.vertical;\n const horizontalBoxes = boxes.horizontal;\n each(chart.boxes, (box)=>{\n if (typeof box.beforeLayout === 'function') {\n box.beforeLayout();\n }\n });\n const visibleVerticalBoxCount = verticalBoxes.reduce((total, wrap)=>wrap.box.options && wrap.box.options.display === false ? total : total + 1, 0) || 1;\n const params = Object.freeze({\n outerWidth: width,\n outerHeight: height,\n padding,\n availableWidth,\n availableHeight,\n vBoxMaxWidth: availableWidth / 2 / visibleVerticalBoxCount,\n hBoxMaxHeight: availableHeight / 2\n });\n const maxPadding = Object.assign({}, padding);\n updateMaxPadding(maxPadding, toPadding(minPadding));\n const chartArea = Object.assign({\n maxPadding,\n w: availableWidth,\n h: availableHeight,\n x: padding.left,\n y: padding.top\n }, padding);\n const stacks = setLayoutDims(verticalBoxes.concat(horizontalBoxes), params);\n fitBoxes(boxes.fullSize, chartArea, params, stacks);\n fitBoxes(verticalBoxes, chartArea, params, stacks);\n if (fitBoxes(horizontalBoxes, chartArea, params, stacks)) {\n fitBoxes(verticalBoxes, chartArea, params, stacks);\n }\n handleMaxPadding(chartArea);\n placeBoxes(boxes.leftAndTop, chartArea, params, stacks);\n chartArea.x += chartArea.w;\n chartArea.y += chartArea.h;\n placeBoxes(boxes.rightAndBottom, chartArea, params, stacks);\n chart.chartArea = {\n left: chartArea.left,\n top: chartArea.top,\n right: chartArea.left + chartArea.w,\n bottom: chartArea.top + chartArea.h,\n height: chartArea.h,\n width: chartArea.w\n };\n each(boxes.chartArea, (layout)=>{\n const box = layout.box;\n Object.assign(box, chart.chartArea);\n box.update(chartArea.w, chartArea.h, {\n left: 0,\n top: 0,\n right: 0,\n bottom: 0\n });\n });\n }\n};\n\nclass BasePlatform {\n acquireContext(canvas, aspectRatio) {}\n releaseContext(context) {\n return false;\n }\n addEventListener(chart, type, listener) {}\n removeEventListener(chart, type, listener) {}\n getDevicePixelRatio() {\n return 1;\n }\n getMaximumSize(element, width, height, aspectRatio) {\n width = Math.max(0, width || element.width);\n height = height || element.height;\n return {\n width,\n height: Math.max(0, aspectRatio ? Math.floor(width / aspectRatio) : height)\n };\n }\n isAttached(canvas) {\n return true;\n }\n updateConfig(config) {\n }\n}\n\nclass BasicPlatform extends BasePlatform {\n acquireContext(item) {\n return item && item.getContext && item.getContext('2d') || null;\n }\n updateConfig(config) {\n config.options.animation = false;\n }\n}\n\nconst EXPANDO_KEY = '$chartjs';\n const EVENT_TYPES = {\n touchstart: 'mousedown',\n touchmove: 'mousemove',\n touchend: 'mouseup',\n pointerenter: 'mouseenter',\n pointerdown: 'mousedown',\n pointermove: 'mousemove',\n pointerup: 'mouseup',\n pointerleave: 'mouseout',\n pointerout: 'mouseout'\n};\nconst isNullOrEmpty = (value)=>value === null || value === '';\n function initCanvas(canvas, aspectRatio) {\n const style = canvas.style;\n const renderHeight = canvas.getAttribute('height');\n const renderWidth = canvas.getAttribute('width');\n canvas[EXPANDO_KEY] = {\n initial: {\n height: renderHeight,\n width: renderWidth,\n style: {\n display: style.display,\n height: style.height,\n width: style.width\n }\n }\n };\n style.display = style.display || 'block';\n style.boxSizing = style.boxSizing || 'border-box';\n if (isNullOrEmpty(renderWidth)) {\n const displayWidth = readUsedSize(canvas, 'width');\n if (displayWidth !== undefined) {\n canvas.width = displayWidth;\n }\n }\n if (isNullOrEmpty(renderHeight)) {\n if (canvas.style.height === '') {\n canvas.height = canvas.width / (aspectRatio || 2);\n } else {\n const displayHeight = readUsedSize(canvas, 'height');\n if (displayHeight !== undefined) {\n canvas.height = displayHeight;\n }\n }\n }\n return canvas;\n}\nconst eventListenerOptions = supportsEventListenerOptions ? {\n passive: true\n} : false;\nfunction addListener(node, type, listener) {\n node.addEventListener(type, listener, eventListenerOptions);\n}\nfunction removeListener(chart, type, listener) {\n chart.canvas.removeEventListener(type, listener, eventListenerOptions);\n}\nfunction fromNativeEvent(event, chart) {\n const type = EVENT_TYPES[event.type] || event.type;\n const { x , y } = getRelativePosition(event, chart);\n return {\n type,\n chart,\n native: event,\n x: x !== undefined ? x : null,\n y: y !== undefined ? y : null\n };\n}\nfunction nodeListContains(nodeList, canvas) {\n for (const node of nodeList){\n if (node === canvas || node.contains(canvas)) {\n return true;\n }\n }\n}\nfunction createAttachObserver(chart, type, listener) {\n const canvas = chart.canvas;\n const observer = new MutationObserver((entries)=>{\n let trigger = false;\n for (const entry of entries){\n trigger = trigger || nodeListContains(entry.addedNodes, canvas);\n trigger = trigger && !nodeListContains(entry.removedNodes, canvas);\n }\n if (trigger) {\n listener();\n }\n });\n observer.observe(document, {\n childList: true,\n subtree: true\n });\n return observer;\n}\nfunction createDetachObserver(chart, type, listener) {\n const canvas = chart.canvas;\n const observer = new MutationObserver((entries)=>{\n let trigger = false;\n for (const entry of entries){\n trigger = trigger || nodeListContains(entry.removedNodes, canvas);\n trigger = trigger && !nodeListContains(entry.addedNodes, canvas);\n }\n if (trigger) {\n listener();\n }\n });\n observer.observe(document, {\n childList: true,\n subtree: true\n });\n return observer;\n}\nconst drpListeningCharts = new Map();\nlet oldDevicePixelRatio = 0;\nfunction onWindowResize() {\n const dpr = window.devicePixelRatio;\n if (dpr === oldDevicePixelRatio) {\n return;\n }\n oldDevicePixelRatio = dpr;\n drpListeningCharts.forEach((resize, chart)=>{\n if (chart.currentDevicePixelRatio !== dpr) {\n resize();\n }\n });\n}\nfunction listenDevicePixelRatioChanges(chart, resize) {\n if (!drpListeningCharts.size) {\n window.addEventListener('resize', onWindowResize);\n }\n drpListeningCharts.set(chart, resize);\n}\nfunction unlistenDevicePixelRatioChanges(chart) {\n drpListeningCharts.delete(chart);\n if (!drpListeningCharts.size) {\n window.removeEventListener('resize', onWindowResize);\n }\n}\nfunction createResizeObserver(chart, type, listener) {\n const canvas = chart.canvas;\n const container = canvas && _getParentNode(canvas);\n if (!container) {\n return;\n }\n const resize = throttled((width, height)=>{\n const w = container.clientWidth;\n listener(width, height);\n if (w < container.clientWidth) {\n listener();\n }\n }, window);\n const observer = new ResizeObserver((entries)=>{\n const entry = entries[0];\n const width = entry.contentRect.width;\n const height = entry.contentRect.height;\n if (width === 0 && height === 0) {\n return;\n }\n resize(width, height);\n });\n observer.observe(container);\n listenDevicePixelRatioChanges(chart, resize);\n return observer;\n}\nfunction releaseObserver(chart, type, observer) {\n if (observer) {\n observer.disconnect();\n }\n if (type === 'resize') {\n unlistenDevicePixelRatioChanges(chart);\n }\n}\nfunction createProxyAndListen(chart, type, listener) {\n const canvas = chart.canvas;\n const proxy = throttled((event)=>{\n if (chart.ctx !== null) {\n listener(fromNativeEvent(event, chart));\n }\n }, chart);\n addListener(canvas, type, proxy);\n return proxy;\n}\n class DomPlatform extends BasePlatform {\n acquireContext(canvas, aspectRatio) {\n const context = canvas && canvas.getContext && canvas.getContext('2d');\n if (context && context.canvas === canvas) {\n initCanvas(canvas, aspectRatio);\n return context;\n }\n return null;\n }\n releaseContext(context) {\n const canvas = context.canvas;\n if (!canvas[EXPANDO_KEY]) {\n return false;\n }\n const initial = canvas[EXPANDO_KEY].initial;\n [\n 'height',\n 'width'\n ].forEach((prop)=>{\n const value = initial[prop];\n if (isNullOrUndef(value)) {\n canvas.removeAttribute(prop);\n } else {\n canvas.setAttribute(prop, value);\n }\n });\n const style = initial.style || {};\n Object.keys(style).forEach((key)=>{\n canvas.style[key] = style[key];\n });\n canvas.width = canvas.width;\n delete canvas[EXPANDO_KEY];\n return true;\n }\n addEventListener(chart, type, listener) {\n this.removeEventListener(chart, type);\n const proxies = chart.$proxies || (chart.$proxies = {});\n const handlers = {\n attach: createAttachObserver,\n detach: createDetachObserver,\n resize: createResizeObserver\n };\n const handler = handlers[type] || createProxyAndListen;\n proxies[type] = handler(chart, type, listener);\n }\n removeEventListener(chart, type) {\n const proxies = chart.$proxies || (chart.$proxies = {});\n const proxy = proxies[type];\n if (!proxy) {\n return;\n }\n const handlers = {\n attach: releaseObserver,\n detach: releaseObserver,\n resize: releaseObserver\n };\n const handler = handlers[type] || removeListener;\n handler(chart, type, proxy);\n proxies[type] = undefined;\n }\n getDevicePixelRatio() {\n return window.devicePixelRatio;\n }\n getMaximumSize(canvas, width, height, aspectRatio) {\n return getMaximumSize(canvas, width, height, aspectRatio);\n }\n isAttached(canvas) {\n const container = _getParentNode(canvas);\n return !!(container && container.isConnected);\n }\n}\n\nfunction _detectPlatform(canvas) {\n if (!_isDomSupported() || typeof OffscreenCanvas !== 'undefined' && canvas instanceof OffscreenCanvas) {\n return BasicPlatform;\n }\n return DomPlatform;\n}\n\nclass Element {\n static defaults = {};\n static defaultRoutes = undefined;\n active = false;\n tooltipPosition(useFinalPosition) {\n const { x , y } = this.getProps([\n 'x',\n 'y'\n ], useFinalPosition);\n return {\n x,\n y\n };\n }\n hasValue() {\n return isNumber(this.x) && isNumber(this.y);\n }\n getProps(props, final) {\n const anims = this.$animations;\n if (!final || !anims) {\n // let's not create an object, if not needed\n return this;\n }\n const ret = {};\n props.forEach((prop)=>{\n ret[prop] = anims[prop] && anims[prop].active() ? anims[prop]._to : this[prop];\n });\n return ret;\n }\n}\n\nfunction autoSkip(scale, ticks) {\n const tickOpts = scale.options.ticks;\n const determinedMaxTicks = determineMaxTicks(scale);\n const ticksLimit = Math.min(tickOpts.maxTicksLimit || determinedMaxTicks, determinedMaxTicks);\n const majorIndices = tickOpts.major.enabled ? getMajorIndices(ticks) : [];\n const numMajorIndices = majorIndices.length;\n const first = majorIndices[0];\n const last = majorIndices[numMajorIndices - 1];\n const newTicks = [];\n if (numMajorIndices > ticksLimit) {\n skipMajors(ticks, newTicks, majorIndices, numMajorIndices / ticksLimit);\n return newTicks;\n }\n const spacing = calculateSpacing(majorIndices, ticks, ticksLimit);\n if (numMajorIndices > 0) {\n let i, ilen;\n const avgMajorSpacing = numMajorIndices > 1 ? Math.round((last - first) / (numMajorIndices - 1)) : null;\n skip(ticks, newTicks, spacing, isNullOrUndef(avgMajorSpacing) ? 0 : first - avgMajorSpacing, first);\n for(i = 0, ilen = numMajorIndices - 1; i < ilen; i++){\n skip(ticks, newTicks, spacing, majorIndices[i], majorIndices[i + 1]);\n }\n skip(ticks, newTicks, spacing, last, isNullOrUndef(avgMajorSpacing) ? ticks.length : last + avgMajorSpacing);\n return newTicks;\n }\n skip(ticks, newTicks, spacing);\n return newTicks;\n}\nfunction determineMaxTicks(scale) {\n const offset = scale.options.offset;\n const tickLength = scale._tickSize();\n const maxScale = scale._length / tickLength + (offset ? 0 : 1);\n const maxChart = scale._maxLength / tickLength;\n return Math.floor(Math.min(maxScale, maxChart));\n}\n function calculateSpacing(majorIndices, ticks, ticksLimit) {\n const evenMajorSpacing = getEvenSpacing(majorIndices);\n const spacing = ticks.length / ticksLimit;\n if (!evenMajorSpacing) {\n return Math.max(spacing, 1);\n }\n const factors = _factorize(evenMajorSpacing);\n for(let i = 0, ilen = factors.length - 1; i < ilen; i++){\n const factor = factors[i];\n if (factor > spacing) {\n return factor;\n }\n }\n return Math.max(spacing, 1);\n}\n function getMajorIndices(ticks) {\n const result = [];\n let i, ilen;\n for(i = 0, ilen = ticks.length; i < ilen; i++){\n if (ticks[i].major) {\n result.push(i);\n }\n }\n return result;\n}\n function skipMajors(ticks, newTicks, majorIndices, spacing) {\n let count = 0;\n let next = majorIndices[0];\n let i;\n spacing = Math.ceil(spacing);\n for(i = 0; i < ticks.length; i++){\n if (i === next) {\n newTicks.push(ticks[i]);\n count++;\n next = majorIndices[count * spacing];\n }\n }\n}\n function skip(ticks, newTicks, spacing, majorStart, majorEnd) {\n const start = valueOrDefault(majorStart, 0);\n const end = Math.min(valueOrDefault(majorEnd, ticks.length), ticks.length);\n let count = 0;\n let length, i, next;\n spacing = Math.ceil(spacing);\n if (majorEnd) {\n length = majorEnd - majorStart;\n spacing = length / Math.floor(length / spacing);\n }\n next = start;\n while(next < 0){\n count++;\n next = Math.round(start + count * spacing);\n }\n for(i = Math.max(start, 0); i < end; i++){\n if (i === next) {\n newTicks.push(ticks[i]);\n count++;\n next = Math.round(start + count * spacing);\n }\n }\n}\n function getEvenSpacing(arr) {\n const len = arr.length;\n let i, diff;\n if (len < 2) {\n return false;\n }\n for(diff = arr[0], i = 1; i < len; ++i){\n if (arr[i] - arr[i - 1] !== diff) {\n return false;\n }\n }\n return diff;\n}\n\nconst reverseAlign = (align)=>align === 'left' ? 'right' : align === 'right' ? 'left' : align;\nconst offsetFromEdge = (scale, edge, offset)=>edge === 'top' || edge === 'left' ? scale[edge] + offset : scale[edge] - offset;\nconst getTicksLimit = (ticksLength, maxTicksLimit)=>Math.min(maxTicksLimit || ticksLength, ticksLength);\n function sample(arr, numItems) {\n const result = [];\n const increment = arr.length / numItems;\n const len = arr.length;\n let i = 0;\n for(; i < len; i += increment){\n result.push(arr[Math.floor(i)]);\n }\n return result;\n}\n function getPixelForGridLine(scale, index, offsetGridLines) {\n const length = scale.ticks.length;\n const validIndex = Math.min(index, length - 1);\n const start = scale._startPixel;\n const end = scale._endPixel;\n const epsilon = 1e-6;\n let lineValue = scale.getPixelForTick(validIndex);\n let offset;\n if (offsetGridLines) {\n if (length === 1) {\n offset = Math.max(lineValue - start, end - lineValue);\n } else if (index === 0) {\n offset = (scale.getPixelForTick(1) - lineValue) / 2;\n } else {\n offset = (lineValue - scale.getPixelForTick(validIndex - 1)) / 2;\n }\n lineValue += validIndex < index ? offset : -offset;\n if (lineValue < start - epsilon || lineValue > end + epsilon) {\n return;\n }\n }\n return lineValue;\n}\n function garbageCollect(caches, length) {\n each(caches, (cache)=>{\n const gc = cache.gc;\n const gcLen = gc.length / 2;\n let i;\n if (gcLen > length) {\n for(i = 0; i < gcLen; ++i){\n delete cache.data[gc[i]];\n }\n gc.splice(0, gcLen);\n }\n });\n}\n function getTickMarkLength(options) {\n return options.drawTicks ? options.tickLength : 0;\n}\n function getTitleHeight(options, fallback) {\n if (!options.display) {\n return 0;\n }\n const font = toFont(options.font, fallback);\n const padding = toPadding(options.padding);\n const lines = isArray(options.text) ? options.text.length : 1;\n return lines * font.lineHeight + padding.height;\n}\nfunction createScaleContext(parent, scale) {\n return createContext(parent, {\n scale,\n type: 'scale'\n });\n}\nfunction createTickContext(parent, index, tick) {\n return createContext(parent, {\n tick,\n index,\n type: 'tick'\n });\n}\nfunction titleAlign(align, position, reverse) {\n let ret = _toLeftRightCenter(align);\n if (reverse && position !== 'right' || !reverse && position === 'right') {\n ret = reverseAlign(ret);\n }\n return ret;\n}\nfunction titleArgs(scale, offset, position, align) {\n const { top , left , bottom , right , chart } = scale;\n const { chartArea , scales } = chart;\n let rotation = 0;\n let maxWidth, titleX, titleY;\n const height = bottom - top;\n const width = right - left;\n if (scale.isHorizontal()) {\n titleX = _alignStartEnd(align, left, right);\n if (isObject(position)) {\n const positionAxisID = Object.keys(position)[0];\n const value = position[positionAxisID];\n titleY = scales[positionAxisID].getPixelForValue(value) + height - offset;\n } else if (position === 'center') {\n titleY = (chartArea.bottom + chartArea.top) / 2 + height - offset;\n } else {\n titleY = offsetFromEdge(scale, position, offset);\n }\n maxWidth = right - left;\n } else {\n if (isObject(position)) {\n const positionAxisID1 = Object.keys(position)[0];\n const value1 = position[positionAxisID1];\n titleX = scales[positionAxisID1].getPixelForValue(value1) - width + offset;\n } else if (position === 'center') {\n titleX = (chartArea.left + chartArea.right) / 2 - width + offset;\n } else {\n titleX = offsetFromEdge(scale, position, offset);\n }\n titleY = _alignStartEnd(align, bottom, top);\n rotation = position === 'left' ? -HALF_PI : HALF_PI;\n }\n return {\n titleX,\n titleY,\n maxWidth,\n rotation\n };\n}\nclass Scale extends Element {\n constructor(cfg){\n super();\n this.id = cfg.id;\n this.type = cfg.type;\n this.options = undefined;\n this.ctx = cfg.ctx;\n this.chart = cfg.chart;\n this.top = undefined;\n this.bottom = undefined;\n this.left = undefined;\n this.right = undefined;\n this.width = undefined;\n this.height = undefined;\n this._margins = {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n };\n this.maxWidth = undefined;\n this.maxHeight = undefined;\n this.paddingTop = undefined;\n this.paddingBottom = undefined;\n this.paddingLeft = undefined;\n this.paddingRight = undefined;\n this.axis = undefined;\n this.labelRotation = undefined;\n this.min = undefined;\n this.max = undefined;\n this._range = undefined;\n this.ticks = [];\n this._gridLineItems = null;\n this._labelItems = null;\n this._labelSizes = null;\n this._length = 0;\n this._maxLength = 0;\n this._longestTextCache = {};\n this._startPixel = undefined;\n this._endPixel = undefined;\n this._reversePixels = false;\n this._userMax = undefined;\n this._userMin = undefined;\n this._suggestedMax = undefined;\n this._suggestedMin = undefined;\n this._ticksLength = 0;\n this._borderValue = 0;\n this._cache = {};\n this._dataLimitsCached = false;\n this.$context = undefined;\n }\n init(options) {\n this.options = options.setContext(this.getContext());\n this.axis = options.axis;\n this._userMin = this.parse(options.min);\n this._userMax = this.parse(options.max);\n this._suggestedMin = this.parse(options.suggestedMin);\n this._suggestedMax = this.parse(options.suggestedMax);\n }\n parse(raw, index) {\n return raw;\n }\n getUserBounds() {\n let { _userMin , _userMax , _suggestedMin , _suggestedMax } = this;\n _userMin = finiteOrDefault(_userMin, Number.POSITIVE_INFINITY);\n _userMax = finiteOrDefault(_userMax, Number.NEGATIVE_INFINITY);\n _suggestedMin = finiteOrDefault(_suggestedMin, Number.POSITIVE_INFINITY);\n _suggestedMax = finiteOrDefault(_suggestedMax, Number.NEGATIVE_INFINITY);\n return {\n min: finiteOrDefault(_userMin, _suggestedMin),\n max: finiteOrDefault(_userMax, _suggestedMax),\n minDefined: isNumberFinite(_userMin),\n maxDefined: isNumberFinite(_userMax)\n };\n }\n getMinMax(canStack) {\n let { min , max , minDefined , maxDefined } = this.getUserBounds();\n let range;\n if (minDefined && maxDefined) {\n return {\n min,\n max\n };\n }\n const metas = this.getMatchingVisibleMetas();\n for(let i = 0, ilen = metas.length; i < ilen; ++i){\n range = metas[i].controller.getMinMax(this, canStack);\n if (!minDefined) {\n min = Math.min(min, range.min);\n }\n if (!maxDefined) {\n max = Math.max(max, range.max);\n }\n }\n min = maxDefined && min > max ? max : min;\n max = minDefined && min > max ? min : max;\n return {\n min: finiteOrDefault(min, finiteOrDefault(max, min)),\n max: finiteOrDefault(max, finiteOrDefault(min, max))\n };\n }\n getPadding() {\n return {\n left: this.paddingLeft || 0,\n top: this.paddingTop || 0,\n right: this.paddingRight || 0,\n bottom: this.paddingBottom || 0\n };\n }\n getTicks() {\n return this.ticks;\n }\n getLabels() {\n const data = this.chart.data;\n return this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels || [];\n }\n getLabelItems(chartArea = this.chart.chartArea) {\n const items = this._labelItems || (this._labelItems = this._computeLabelItems(chartArea));\n return items;\n }\n beforeLayout() {\n this._cache = {};\n this._dataLimitsCached = false;\n }\n beforeUpdate() {\n callback(this.options.beforeUpdate, [\n this\n ]);\n }\n update(maxWidth, maxHeight, margins) {\n const { beginAtZero , grace , ticks: tickOpts } = this.options;\n const sampleSize = tickOpts.sampleSize;\n this.beforeUpdate();\n this.maxWidth = maxWidth;\n this.maxHeight = maxHeight;\n this._margins = margins = Object.assign({\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }, margins);\n this.ticks = null;\n this._labelSizes = null;\n this._gridLineItems = null;\n this._labelItems = null;\n this.beforeSetDimensions();\n this.setDimensions();\n this.afterSetDimensions();\n this._maxLength = this.isHorizontal() ? this.width + margins.left + margins.right : this.height + margins.top + margins.bottom;\n if (!this._dataLimitsCached) {\n this.beforeDataLimits();\n this.determineDataLimits();\n this.afterDataLimits();\n this._range = _addGrace(this, grace, beginAtZero);\n this._dataLimitsCached = true;\n }\n this.beforeBuildTicks();\n this.ticks = this.buildTicks() || [];\n this.afterBuildTicks();\n const samplingEnabled = sampleSize < this.ticks.length;\n this._convertTicksToLabels(samplingEnabled ? sample(this.ticks, sampleSize) : this.ticks);\n this.configure();\n this.beforeCalculateLabelRotation();\n this.calculateLabelRotation();\n this.afterCalculateLabelRotation();\n if (tickOpts.display && (tickOpts.autoSkip || tickOpts.source === 'auto')) {\n this.ticks = autoSkip(this, this.ticks);\n this._labelSizes = null;\n this.afterAutoSkip();\n }\n if (samplingEnabled) {\n this._convertTicksToLabels(this.ticks);\n }\n this.beforeFit();\n this.fit();\n this.afterFit();\n this.afterUpdate();\n }\n configure() {\n let reversePixels = this.options.reverse;\n let startPixel, endPixel;\n if (this.isHorizontal()) {\n startPixel = this.left;\n endPixel = this.right;\n } else {\n startPixel = this.top;\n endPixel = this.bottom;\n reversePixels = !reversePixels;\n }\n this._startPixel = startPixel;\n this._endPixel = endPixel;\n this._reversePixels = reversePixels;\n this._length = endPixel - startPixel;\n this._alignToPixels = this.options.alignToPixels;\n }\n afterUpdate() {\n callback(this.options.afterUpdate, [\n this\n ]);\n }\n beforeSetDimensions() {\n callback(this.options.beforeSetDimensions, [\n this\n ]);\n }\n setDimensions() {\n if (this.isHorizontal()) {\n this.width = this.maxWidth;\n this.left = 0;\n this.right = this.width;\n } else {\n this.height = this.maxHeight;\n this.top = 0;\n this.bottom = this.height;\n }\n this.paddingLeft = 0;\n this.paddingTop = 0;\n this.paddingRight = 0;\n this.paddingBottom = 0;\n }\n afterSetDimensions() {\n callback(this.options.afterSetDimensions, [\n this\n ]);\n }\n _callHooks(name) {\n this.chart.notifyPlugins(name, this.getContext());\n callback(this.options[name], [\n this\n ]);\n }\n beforeDataLimits() {\n this._callHooks('beforeDataLimits');\n }\n determineDataLimits() {}\n afterDataLimits() {\n this._callHooks('afterDataLimits');\n }\n beforeBuildTicks() {\n this._callHooks('beforeBuildTicks');\n }\n buildTicks() {\n return [];\n }\n afterBuildTicks() {\n this._callHooks('afterBuildTicks');\n }\n beforeTickToLabelConversion() {\n callback(this.options.beforeTickToLabelConversion, [\n this\n ]);\n }\n generateTickLabels(ticks) {\n const tickOpts = this.options.ticks;\n let i, ilen, tick;\n for(i = 0, ilen = ticks.length; i < ilen; i++){\n tick = ticks[i];\n tick.label = callback(tickOpts.callback, [\n tick.value,\n i,\n ticks\n ], this);\n }\n }\n afterTickToLabelConversion() {\n callback(this.options.afterTickToLabelConversion, [\n this\n ]);\n }\n beforeCalculateLabelRotation() {\n callback(this.options.beforeCalculateLabelRotation, [\n this\n ]);\n }\n calculateLabelRotation() {\n const options = this.options;\n const tickOpts = options.ticks;\n const numTicks = getTicksLimit(this.ticks.length, options.ticks.maxTicksLimit);\n const minRotation = tickOpts.minRotation || 0;\n const maxRotation = tickOpts.maxRotation;\n let labelRotation = minRotation;\n let tickWidth, maxHeight, maxLabelDiagonal;\n if (!this._isVisible() || !tickOpts.display || minRotation >= maxRotation || numTicks <= 1 || !this.isHorizontal()) {\n this.labelRotation = minRotation;\n return;\n }\n const labelSizes = this._getLabelSizes();\n const maxLabelWidth = labelSizes.widest.width;\n const maxLabelHeight = labelSizes.highest.height;\n const maxWidth = _limitValue(this.chart.width - maxLabelWidth, 0, this.maxWidth);\n tickWidth = options.offset ? this.maxWidth / numTicks : maxWidth / (numTicks - 1);\n if (maxLabelWidth + 6 > tickWidth) {\n tickWidth = maxWidth / (numTicks - (options.offset ? 0.5 : 1));\n maxHeight = this.maxHeight - getTickMarkLength(options.grid) - tickOpts.padding - getTitleHeight(options.title, this.chart.options.font);\n maxLabelDiagonal = Math.sqrt(maxLabelWidth * maxLabelWidth + maxLabelHeight * maxLabelHeight);\n labelRotation = toDegrees(Math.min(Math.asin(_limitValue((labelSizes.highest.height + 6) / tickWidth, -1, 1)), Math.asin(_limitValue(maxHeight / maxLabelDiagonal, -1, 1)) - Math.asin(_limitValue(maxLabelHeight / maxLabelDiagonal, -1, 1))));\n labelRotation = Math.max(minRotation, Math.min(maxRotation, labelRotation));\n }\n this.labelRotation = labelRotation;\n }\n afterCalculateLabelRotation() {\n callback(this.options.afterCalculateLabelRotation, [\n this\n ]);\n }\n afterAutoSkip() {}\n beforeFit() {\n callback(this.options.beforeFit, [\n this\n ]);\n }\n fit() {\n const minSize = {\n width: 0,\n height: 0\n };\n const { chart , options: { ticks: tickOpts , title: titleOpts , grid: gridOpts } } = this;\n const display = this._isVisible();\n const isHorizontal = this.isHorizontal();\n if (display) {\n const titleHeight = getTitleHeight(titleOpts, chart.options.font);\n if (isHorizontal) {\n minSize.width = this.maxWidth;\n minSize.height = getTickMarkLength(gridOpts) + titleHeight;\n } else {\n minSize.height = this.maxHeight;\n minSize.width = getTickMarkLength(gridOpts) + titleHeight;\n }\n if (tickOpts.display && this.ticks.length) {\n const { first , last , widest , highest } = this._getLabelSizes();\n const tickPadding = tickOpts.padding * 2;\n const angleRadians = toRadians(this.labelRotation);\n const cos = Math.cos(angleRadians);\n const sin = Math.sin(angleRadians);\n if (isHorizontal) {\n const labelHeight = tickOpts.mirror ? 0 : sin * widest.width + cos * highest.height;\n minSize.height = Math.min(this.maxHeight, minSize.height + labelHeight + tickPadding);\n } else {\n const labelWidth = tickOpts.mirror ? 0 : cos * widest.width + sin * highest.height;\n minSize.width = Math.min(this.maxWidth, minSize.width + labelWidth + tickPadding);\n }\n this._calculatePadding(first, last, sin, cos);\n }\n }\n this._handleMargins();\n if (isHorizontal) {\n this.width = this._length = chart.width - this._margins.left - this._margins.right;\n this.height = minSize.height;\n } else {\n this.width = minSize.width;\n this.height = this._length = chart.height - this._margins.top - this._margins.bottom;\n }\n }\n _calculatePadding(first, last, sin, cos) {\n const { ticks: { align , padding } , position } = this.options;\n const isRotated = this.labelRotation !== 0;\n const labelsBelowTicks = position !== 'top' && this.axis === 'x';\n if (this.isHorizontal()) {\n const offsetLeft = this.getPixelForTick(0) - this.left;\n const offsetRight = this.right - this.getPixelForTick(this.ticks.length - 1);\n let paddingLeft = 0;\n let paddingRight = 0;\n if (isRotated) {\n if (labelsBelowTicks) {\n paddingLeft = cos * first.width;\n paddingRight = sin * last.height;\n } else {\n paddingLeft = sin * first.height;\n paddingRight = cos * last.width;\n }\n } else if (align === 'start') {\n paddingRight = last.width;\n } else if (align === 'end') {\n paddingLeft = first.width;\n } else if (align !== 'inner') {\n paddingLeft = first.width / 2;\n paddingRight = last.width / 2;\n }\n this.paddingLeft = Math.max((paddingLeft - offsetLeft + padding) * this.width / (this.width - offsetLeft), 0);\n this.paddingRight = Math.max((paddingRight - offsetRight + padding) * this.width / (this.width - offsetRight), 0);\n } else {\n let paddingTop = last.height / 2;\n let paddingBottom = first.height / 2;\n if (align === 'start') {\n paddingTop = 0;\n paddingBottom = first.height;\n } else if (align === 'end') {\n paddingTop = last.height;\n paddingBottom = 0;\n }\n this.paddingTop = paddingTop + padding;\n this.paddingBottom = paddingBottom + padding;\n }\n }\n _handleMargins() {\n if (this._margins) {\n this._margins.left = Math.max(this.paddingLeft, this._margins.left);\n this._margins.top = Math.max(this.paddingTop, this._margins.top);\n this._margins.right = Math.max(this.paddingRight, this._margins.right);\n this._margins.bottom = Math.max(this.paddingBottom, this._margins.bottom);\n }\n }\n afterFit() {\n callback(this.options.afterFit, [\n this\n ]);\n }\n isHorizontal() {\n const { axis , position } = this.options;\n return position === 'top' || position === 'bottom' || axis === 'x';\n }\n isFullSize() {\n return this.options.fullSize;\n }\n _convertTicksToLabels(ticks) {\n this.beforeTickToLabelConversion();\n this.generateTickLabels(ticks);\n let i, ilen;\n for(i = 0, ilen = ticks.length; i < ilen; i++){\n if (isNullOrUndef(ticks[i].label)) {\n ticks.splice(i, 1);\n ilen--;\n i--;\n }\n }\n this.afterTickToLabelConversion();\n }\n _getLabelSizes() {\n let labelSizes = this._labelSizes;\n if (!labelSizes) {\n const sampleSize = this.options.ticks.sampleSize;\n let ticks = this.ticks;\n if (sampleSize < ticks.length) {\n ticks = sample(ticks, sampleSize);\n }\n this._labelSizes = labelSizes = this._computeLabelSizes(ticks, ticks.length, this.options.ticks.maxTicksLimit);\n }\n return labelSizes;\n }\n _computeLabelSizes(ticks, length, maxTicksLimit) {\n const { ctx , _longestTextCache: caches } = this;\n const widths = [];\n const heights = [];\n const increment = Math.floor(length / getTicksLimit(length, maxTicksLimit));\n let widestLabelSize = 0;\n let highestLabelSize = 0;\n let i, j, jlen, label, tickFont, fontString, cache, lineHeight, width, height, nestedLabel;\n for(i = 0; i < length; i += increment){\n label = ticks[i].label;\n tickFont = this._resolveTickFontOptions(i);\n ctx.font = fontString = tickFont.string;\n cache = caches[fontString] = caches[fontString] || {\n data: {},\n gc: []\n };\n lineHeight = tickFont.lineHeight;\n width = height = 0;\n if (!isNullOrUndef(label) && !isArray(label)) {\n width = _measureText(ctx, cache.data, cache.gc, width, label);\n height = lineHeight;\n } else if (isArray(label)) {\n for(j = 0, jlen = label.length; j < jlen; ++j){\n nestedLabel = label[j];\n if (!isNullOrUndef(nestedLabel) && !isArray(nestedLabel)) {\n width = _measureText(ctx, cache.data, cache.gc, width, nestedLabel);\n height += lineHeight;\n }\n }\n }\n widths.push(width);\n heights.push(height);\n widestLabelSize = Math.max(width, widestLabelSize);\n highestLabelSize = Math.max(height, highestLabelSize);\n }\n garbageCollect(caches, length);\n const widest = widths.indexOf(widestLabelSize);\n const highest = heights.indexOf(highestLabelSize);\n const valueAt = (idx)=>({\n width: widths[idx] || 0,\n height: heights[idx] || 0\n });\n return {\n first: valueAt(0),\n last: valueAt(length - 1),\n widest: valueAt(widest),\n highest: valueAt(highest),\n widths,\n heights\n };\n }\n getLabelForValue(value) {\n return value;\n }\n getPixelForValue(value, index) {\n return NaN;\n }\n getValueForPixel(pixel) {}\n getPixelForTick(index) {\n const ticks = this.ticks;\n if (index < 0 || index > ticks.length - 1) {\n return null;\n }\n return this.getPixelForValue(ticks[index].value);\n }\n getPixelForDecimal(decimal) {\n if (this._reversePixels) {\n decimal = 1 - decimal;\n }\n const pixel = this._startPixel + decimal * this._length;\n return _int16Range(this._alignToPixels ? _alignPixel(this.chart, pixel, 0) : pixel);\n }\n getDecimalForPixel(pixel) {\n const decimal = (pixel - this._startPixel) / this._length;\n return this._reversePixels ? 1 - decimal : decimal;\n }\n getBasePixel() {\n return this.getPixelForValue(this.getBaseValue());\n }\n getBaseValue() {\n const { min , max } = this;\n return min < 0 && max < 0 ? max : min > 0 && max > 0 ? min : 0;\n }\n getContext(index) {\n const ticks = this.ticks || [];\n if (index >= 0 && index < ticks.length) {\n const tick = ticks[index];\n return tick.$context || (tick.$context = createTickContext(this.getContext(), index, tick));\n }\n return this.$context || (this.$context = createScaleContext(this.chart.getContext(), this));\n }\n _tickSize() {\n const optionTicks = this.options.ticks;\n const rot = toRadians(this.labelRotation);\n const cos = Math.abs(Math.cos(rot));\n const sin = Math.abs(Math.sin(rot));\n const labelSizes = this._getLabelSizes();\n const padding = optionTicks.autoSkipPadding || 0;\n const w = labelSizes ? labelSizes.widest.width + padding : 0;\n const h = labelSizes ? labelSizes.highest.height + padding : 0;\n return this.isHorizontal() ? h * cos > w * sin ? w / cos : h / sin : h * sin < w * cos ? h / cos : w / sin;\n }\n _isVisible() {\n const display = this.options.display;\n if (display !== 'auto') {\n return !!display;\n }\n return this.getMatchingVisibleMetas().length > 0;\n }\n _computeGridLineItems(chartArea) {\n const axis = this.axis;\n const chart = this.chart;\n const options = this.options;\n const { grid , position , border } = options;\n const offset = grid.offset;\n const isHorizontal = this.isHorizontal();\n const ticks = this.ticks;\n const ticksLength = ticks.length + (offset ? 1 : 0);\n const tl = getTickMarkLength(grid);\n const items = [];\n const borderOpts = border.setContext(this.getContext());\n const axisWidth = borderOpts.display ? borderOpts.width : 0;\n const axisHalfWidth = axisWidth / 2;\n const alignBorderValue = function(pixel) {\n return _alignPixel(chart, pixel, axisWidth);\n };\n let borderValue, i, lineValue, alignedLineValue;\n let tx1, ty1, tx2, ty2, x1, y1, x2, y2;\n if (position === 'top') {\n borderValue = alignBorderValue(this.bottom);\n ty1 = this.bottom - tl;\n ty2 = borderValue - axisHalfWidth;\n y1 = alignBorderValue(chartArea.top) + axisHalfWidth;\n y2 = chartArea.bottom;\n } else if (position === 'bottom') {\n borderValue = alignBorderValue(this.top);\n y1 = chartArea.top;\n y2 = alignBorderValue(chartArea.bottom) - axisHalfWidth;\n ty1 = borderValue + axisHalfWidth;\n ty2 = this.top + tl;\n } else if (position === 'left') {\n borderValue = alignBorderValue(this.right);\n tx1 = this.right - tl;\n tx2 = borderValue - axisHalfWidth;\n x1 = alignBorderValue(chartArea.left) + axisHalfWidth;\n x2 = chartArea.right;\n } else if (position === 'right') {\n borderValue = alignBorderValue(this.left);\n x1 = chartArea.left;\n x2 = alignBorderValue(chartArea.right) - axisHalfWidth;\n tx1 = borderValue + axisHalfWidth;\n tx2 = this.left + tl;\n } else if (axis === 'x') {\n if (position === 'center') {\n borderValue = alignBorderValue((chartArea.top + chartArea.bottom) / 2 + 0.5);\n } else if (isObject(position)) {\n const positionAxisID = Object.keys(position)[0];\n const value = position[positionAxisID];\n borderValue = alignBorderValue(this.chart.scales[positionAxisID].getPixelForValue(value));\n }\n y1 = chartArea.top;\n y2 = chartArea.bottom;\n ty1 = borderValue + axisHalfWidth;\n ty2 = ty1 + tl;\n } else if (axis === 'y') {\n if (position === 'center') {\n borderValue = alignBorderValue((chartArea.left + chartArea.right) / 2);\n } else if (isObject(position)) {\n const positionAxisID1 = Object.keys(position)[0];\n const value1 = position[positionAxisID1];\n borderValue = alignBorderValue(this.chart.scales[positionAxisID1].getPixelForValue(value1));\n }\n tx1 = borderValue - axisHalfWidth;\n tx2 = tx1 - tl;\n x1 = chartArea.left;\n x2 = chartArea.right;\n }\n const limit = valueOrDefault(options.ticks.maxTicksLimit, ticksLength);\n const step = Math.max(1, Math.ceil(ticksLength / limit));\n for(i = 0; i < ticksLength; i += step){\n const context = this.getContext(i);\n const optsAtIndex = grid.setContext(context);\n const optsAtIndexBorder = border.setContext(context);\n const lineWidth = optsAtIndex.lineWidth;\n const lineColor = optsAtIndex.color;\n const borderDash = optsAtIndexBorder.dash || [];\n const borderDashOffset = optsAtIndexBorder.dashOffset;\n const tickWidth = optsAtIndex.tickWidth;\n const tickColor = optsAtIndex.tickColor;\n const tickBorderDash = optsAtIndex.tickBorderDash || [];\n const tickBorderDashOffset = optsAtIndex.tickBorderDashOffset;\n lineValue = getPixelForGridLine(this, i, offset);\n if (lineValue === undefined) {\n continue;\n }\n alignedLineValue = _alignPixel(chart, lineValue, lineWidth);\n if (isHorizontal) {\n tx1 = tx2 = x1 = x2 = alignedLineValue;\n } else {\n ty1 = ty2 = y1 = y2 = alignedLineValue;\n }\n items.push({\n tx1,\n ty1,\n tx2,\n ty2,\n x1,\n y1,\n x2,\n y2,\n width: lineWidth,\n color: lineColor,\n borderDash,\n borderDashOffset,\n tickWidth,\n tickColor,\n tickBorderDash,\n tickBorderDashOffset\n });\n }\n this._ticksLength = ticksLength;\n this._borderValue = borderValue;\n return items;\n }\n _computeLabelItems(chartArea) {\n const axis = this.axis;\n const options = this.options;\n const { position , ticks: optionTicks } = options;\n const isHorizontal = this.isHorizontal();\n const ticks = this.ticks;\n const { align , crossAlign , padding , mirror } = optionTicks;\n const tl = getTickMarkLength(options.grid);\n const tickAndPadding = tl + padding;\n const hTickAndPadding = mirror ? -padding : tickAndPadding;\n const rotation = -toRadians(this.labelRotation);\n const items = [];\n let i, ilen, tick, label, x, y, textAlign, pixel, font, lineHeight, lineCount, textOffset;\n let textBaseline = 'middle';\n if (position === 'top') {\n y = this.bottom - hTickAndPadding;\n textAlign = this._getXAxisLabelAlignment();\n } else if (position === 'bottom') {\n y = this.top + hTickAndPadding;\n textAlign = this._getXAxisLabelAlignment();\n } else if (position === 'left') {\n const ret = this._getYAxisLabelAlignment(tl);\n textAlign = ret.textAlign;\n x = ret.x;\n } else if (position === 'right') {\n const ret1 = this._getYAxisLabelAlignment(tl);\n textAlign = ret1.textAlign;\n x = ret1.x;\n } else if (axis === 'x') {\n if (position === 'center') {\n y = (chartArea.top + chartArea.bottom) / 2 + tickAndPadding;\n } else if (isObject(position)) {\n const positionAxisID = Object.keys(position)[0];\n const value = position[positionAxisID];\n y = this.chart.scales[positionAxisID].getPixelForValue(value) + tickAndPadding;\n }\n textAlign = this._getXAxisLabelAlignment();\n } else if (axis === 'y') {\n if (position === 'center') {\n x = (chartArea.left + chartArea.right) / 2 - tickAndPadding;\n } else if (isObject(position)) {\n const positionAxisID1 = Object.keys(position)[0];\n const value1 = position[positionAxisID1];\n x = this.chart.scales[positionAxisID1].getPixelForValue(value1);\n }\n textAlign = this._getYAxisLabelAlignment(tl).textAlign;\n }\n if (axis === 'y') {\n if (align === 'start') {\n textBaseline = 'top';\n } else if (align === 'end') {\n textBaseline = 'bottom';\n }\n }\n const labelSizes = this._getLabelSizes();\n for(i = 0, ilen = ticks.length; i < ilen; ++i){\n tick = ticks[i];\n label = tick.label;\n const optsAtIndex = optionTicks.setContext(this.getContext(i));\n pixel = this.getPixelForTick(i) + optionTicks.labelOffset;\n font = this._resolveTickFontOptions(i);\n lineHeight = font.lineHeight;\n lineCount = isArray(label) ? label.length : 1;\n const halfCount = lineCount / 2;\n const color = optsAtIndex.color;\n const strokeColor = optsAtIndex.textStrokeColor;\n const strokeWidth = optsAtIndex.textStrokeWidth;\n let tickTextAlign = textAlign;\n if (isHorizontal) {\n x = pixel;\n if (textAlign === 'inner') {\n if (i === ilen - 1) {\n tickTextAlign = !this.options.reverse ? 'right' : 'left';\n } else if (i === 0) {\n tickTextAlign = !this.options.reverse ? 'left' : 'right';\n } else {\n tickTextAlign = 'center';\n }\n }\n if (position === 'top') {\n if (crossAlign === 'near' || rotation !== 0) {\n textOffset = -lineCount * lineHeight + lineHeight / 2;\n } else if (crossAlign === 'center') {\n textOffset = -labelSizes.highest.height / 2 - halfCount * lineHeight + lineHeight;\n } else {\n textOffset = -labelSizes.highest.height + lineHeight / 2;\n }\n } else {\n if (crossAlign === 'near' || rotation !== 0) {\n textOffset = lineHeight / 2;\n } else if (crossAlign === 'center') {\n textOffset = labelSizes.highest.height / 2 - halfCount * lineHeight;\n } else {\n textOffset = labelSizes.highest.height - lineCount * lineHeight;\n }\n }\n if (mirror) {\n textOffset *= -1;\n }\n if (rotation !== 0 && !optsAtIndex.showLabelBackdrop) {\n x += lineHeight / 2 * Math.sin(rotation);\n }\n } else {\n y = pixel;\n textOffset = (1 - lineCount) * lineHeight / 2;\n }\n let backdrop;\n if (optsAtIndex.showLabelBackdrop) {\n const labelPadding = toPadding(optsAtIndex.backdropPadding);\n const height = labelSizes.heights[i];\n const width = labelSizes.widths[i];\n let top = textOffset - labelPadding.top;\n let left = 0 - labelPadding.left;\n switch(textBaseline){\n case 'middle':\n top -= height / 2;\n break;\n case 'bottom':\n top -= height;\n break;\n }\n switch(textAlign){\n case 'center':\n left -= width / 2;\n break;\n case 'right':\n left -= width;\n break;\n }\n backdrop = {\n left,\n top,\n width: width + labelPadding.width,\n height: height + labelPadding.height,\n color: optsAtIndex.backdropColor\n };\n }\n items.push({\n label,\n font,\n textOffset,\n options: {\n rotation,\n color,\n strokeColor,\n strokeWidth,\n textAlign: tickTextAlign,\n textBaseline,\n translation: [\n x,\n y\n ],\n backdrop\n }\n });\n }\n return items;\n }\n _getXAxisLabelAlignment() {\n const { position , ticks } = this.options;\n const rotation = -toRadians(this.labelRotation);\n if (rotation) {\n return position === 'top' ? 'left' : 'right';\n }\n let align = 'center';\n if (ticks.align === 'start') {\n align = 'left';\n } else if (ticks.align === 'end') {\n align = 'right';\n } else if (ticks.align === 'inner') {\n align = 'inner';\n }\n return align;\n }\n _getYAxisLabelAlignment(tl) {\n const { position , ticks: { crossAlign , mirror , padding } } = this.options;\n const labelSizes = this._getLabelSizes();\n const tickAndPadding = tl + padding;\n const widest = labelSizes.widest.width;\n let textAlign;\n let x;\n if (position === 'left') {\n if (mirror) {\n x = this.right + padding;\n if (crossAlign === 'near') {\n textAlign = 'left';\n } else if (crossAlign === 'center') {\n textAlign = 'center';\n x += widest / 2;\n } else {\n textAlign = 'right';\n x += widest;\n }\n } else {\n x = this.right - tickAndPadding;\n if (crossAlign === 'near') {\n textAlign = 'right';\n } else if (crossAlign === 'center') {\n textAlign = 'center';\n x -= widest / 2;\n } else {\n textAlign = 'left';\n x = this.left;\n }\n }\n } else if (position === 'right') {\n if (mirror) {\n x = this.left + padding;\n if (crossAlign === 'near') {\n textAlign = 'right';\n } else if (crossAlign === 'center') {\n textAlign = 'center';\n x -= widest / 2;\n } else {\n textAlign = 'left';\n x -= widest;\n }\n } else {\n x = this.left + tickAndPadding;\n if (crossAlign === 'near') {\n textAlign = 'left';\n } else if (crossAlign === 'center') {\n textAlign = 'center';\n x += widest / 2;\n } else {\n textAlign = 'right';\n x = this.right;\n }\n }\n } else {\n textAlign = 'right';\n }\n return {\n textAlign,\n x\n };\n }\n _computeLabelArea() {\n if (this.options.ticks.mirror) {\n return;\n }\n const chart = this.chart;\n const position = this.options.position;\n if (position === 'left' || position === 'right') {\n return {\n top: 0,\n left: this.left,\n bottom: chart.height,\n right: this.right\n };\n }\n if (position === 'top' || position === 'bottom') {\n return {\n top: this.top,\n left: 0,\n bottom: this.bottom,\n right: chart.width\n };\n }\n }\n drawBackground() {\n const { ctx , options: { backgroundColor } , left , top , width , height } = this;\n if (backgroundColor) {\n ctx.save();\n ctx.fillStyle = backgroundColor;\n ctx.fillRect(left, top, width, height);\n ctx.restore();\n }\n }\n getLineWidthForValue(value) {\n const grid = this.options.grid;\n if (!this._isVisible() || !grid.display) {\n return 0;\n }\n const ticks = this.ticks;\n const index = ticks.findIndex((t)=>t.value === value);\n if (index >= 0) {\n const opts = grid.setContext(this.getContext(index));\n return opts.lineWidth;\n }\n return 0;\n }\n drawGrid(chartArea) {\n const grid = this.options.grid;\n const ctx = this.ctx;\n const items = this._gridLineItems || (this._gridLineItems = this._computeGridLineItems(chartArea));\n let i, ilen;\n const drawLine = (p1, p2, style)=>{\n if (!style.width || !style.color) {\n return;\n }\n ctx.save();\n ctx.lineWidth = style.width;\n ctx.strokeStyle = style.color;\n ctx.setLineDash(style.borderDash || []);\n ctx.lineDashOffset = style.borderDashOffset;\n ctx.beginPath();\n ctx.moveTo(p1.x, p1.y);\n ctx.lineTo(p2.x, p2.y);\n ctx.stroke();\n ctx.restore();\n };\n if (grid.display) {\n for(i = 0, ilen = items.length; i < ilen; ++i){\n const item = items[i];\n if (grid.drawOnChartArea) {\n drawLine({\n x: item.x1,\n y: item.y1\n }, {\n x: item.x2,\n y: item.y2\n }, item);\n }\n if (grid.drawTicks) {\n drawLine({\n x: item.tx1,\n y: item.ty1\n }, {\n x: item.tx2,\n y: item.ty2\n }, {\n color: item.tickColor,\n width: item.tickWidth,\n borderDash: item.tickBorderDash,\n borderDashOffset: item.tickBorderDashOffset\n });\n }\n }\n }\n }\n drawBorder() {\n const { chart , ctx , options: { border , grid } } = this;\n const borderOpts = border.setContext(this.getContext());\n const axisWidth = border.display ? borderOpts.width : 0;\n if (!axisWidth) {\n return;\n }\n const lastLineWidth = grid.setContext(this.getContext(0)).lineWidth;\n const borderValue = this._borderValue;\n let x1, x2, y1, y2;\n if (this.isHorizontal()) {\n x1 = _alignPixel(chart, this.left, axisWidth) - axisWidth / 2;\n x2 = _alignPixel(chart, this.right, lastLineWidth) + lastLineWidth / 2;\n y1 = y2 = borderValue;\n } else {\n y1 = _alignPixel(chart, this.top, axisWidth) - axisWidth / 2;\n y2 = _alignPixel(chart, this.bottom, lastLineWidth) + lastLineWidth / 2;\n x1 = x2 = borderValue;\n }\n ctx.save();\n ctx.lineWidth = borderOpts.width;\n ctx.strokeStyle = borderOpts.color;\n ctx.beginPath();\n ctx.moveTo(x1, y1);\n ctx.lineTo(x2, y2);\n ctx.stroke();\n ctx.restore();\n }\n drawLabels(chartArea) {\n const optionTicks = this.options.ticks;\n if (!optionTicks.display) {\n return;\n }\n const ctx = this.ctx;\n const area = this._computeLabelArea();\n if (area) {\n clipArea(ctx, area);\n }\n const items = this.getLabelItems(chartArea);\n for (const item of items){\n const renderTextOptions = item.options;\n const tickFont = item.font;\n const label = item.label;\n const y = item.textOffset;\n renderText(ctx, label, 0, y, tickFont, renderTextOptions);\n }\n if (area) {\n unclipArea(ctx);\n }\n }\n drawTitle() {\n const { ctx , options: { position , title , reverse } } = this;\n if (!title.display) {\n return;\n }\n const font = toFont(title.font);\n const padding = toPadding(title.padding);\n const align = title.align;\n let offset = font.lineHeight / 2;\n if (position === 'bottom' || position === 'center' || isObject(position)) {\n offset += padding.bottom;\n if (isArray(title.text)) {\n offset += font.lineHeight * (title.text.length - 1);\n }\n } else {\n offset += padding.top;\n }\n const { titleX , titleY , maxWidth , rotation } = titleArgs(this, offset, position, align);\n renderText(ctx, title.text, 0, 0, font, {\n color: title.color,\n maxWidth,\n rotation,\n textAlign: titleAlign(align, position, reverse),\n textBaseline: 'middle',\n translation: [\n titleX,\n titleY\n ]\n });\n }\n draw(chartArea) {\n if (!this._isVisible()) {\n return;\n }\n this.drawBackground();\n this.drawGrid(chartArea);\n this.drawBorder();\n this.drawTitle();\n this.drawLabels(chartArea);\n }\n _layers() {\n const opts = this.options;\n const tz = opts.ticks && opts.ticks.z || 0;\n const gz = valueOrDefault(opts.grid && opts.grid.z, -1);\n const bz = valueOrDefault(opts.border && opts.border.z, 0);\n if (!this._isVisible() || this.draw !== Scale.prototype.draw) {\n return [\n {\n z: tz,\n draw: (chartArea)=>{\n this.draw(chartArea);\n }\n }\n ];\n }\n return [\n {\n z: gz,\n draw: (chartArea)=>{\n this.drawBackground();\n this.drawGrid(chartArea);\n this.drawTitle();\n }\n },\n {\n z: bz,\n draw: ()=>{\n this.drawBorder();\n }\n },\n {\n z: tz,\n draw: (chartArea)=>{\n this.drawLabels(chartArea);\n }\n }\n ];\n }\n getMatchingVisibleMetas(type) {\n const metas = this.chart.getSortedVisibleDatasetMetas();\n const axisID = this.axis + 'AxisID';\n const result = [];\n let i, ilen;\n for(i = 0, ilen = metas.length; i < ilen; ++i){\n const meta = metas[i];\n if (meta[axisID] === this.id && (!type || meta.type === type)) {\n result.push(meta);\n }\n }\n return result;\n }\n _resolveTickFontOptions(index) {\n const opts = this.options.ticks.setContext(this.getContext(index));\n return toFont(opts.font);\n }\n _maxDigits() {\n const fontSize = this._resolveTickFontOptions(0).lineHeight;\n return (this.isHorizontal() ? this.width : this.height) / fontSize;\n }\n}\n\nclass TypedRegistry {\n constructor(type, scope, override){\n this.type = type;\n this.scope = scope;\n this.override = override;\n this.items = Object.create(null);\n }\n isForType(type) {\n return Object.prototype.isPrototypeOf.call(this.type.prototype, type.prototype);\n }\n register(item) {\n const proto = Object.getPrototypeOf(item);\n let parentScope;\n if (isIChartComponent(proto)) {\n parentScope = this.register(proto);\n }\n const items = this.items;\n const id = item.id;\n const scope = this.scope + '.' + id;\n if (!id) {\n throw new Error('class does not have id: ' + item);\n }\n if (id in items) {\n return scope;\n }\n items[id] = item;\n registerDefaults(item, scope, parentScope);\n if (this.override) {\n defaults.override(item.id, item.overrides);\n }\n return scope;\n }\n get(id) {\n return this.items[id];\n }\n unregister(item) {\n const items = this.items;\n const id = item.id;\n const scope = this.scope;\n if (id in items) {\n delete items[id];\n }\n if (scope && id in defaults[scope]) {\n delete defaults[scope][id];\n if (this.override) {\n delete overrides[id];\n }\n }\n }\n}\nfunction registerDefaults(item, scope, parentScope) {\n const itemDefaults = merge(Object.create(null), [\n parentScope ? defaults.get(parentScope) : {},\n defaults.get(scope),\n item.defaults\n ]);\n defaults.set(scope, itemDefaults);\n if (item.defaultRoutes) {\n routeDefaults(scope, item.defaultRoutes);\n }\n if (item.descriptors) {\n defaults.describe(scope, item.descriptors);\n }\n}\nfunction routeDefaults(scope, routes) {\n Object.keys(routes).forEach((property)=>{\n const propertyParts = property.split('.');\n const sourceName = propertyParts.pop();\n const sourceScope = [\n scope\n ].concat(propertyParts).join('.');\n const parts = routes[property].split('.');\n const targetName = parts.pop();\n const targetScope = parts.join('.');\n defaults.route(sourceScope, sourceName, targetScope, targetName);\n });\n}\nfunction isIChartComponent(proto) {\n return 'id' in proto && 'defaults' in proto;\n}\n\nclass Registry {\n constructor(){\n this.controllers = new TypedRegistry(DatasetController, 'datasets', true);\n this.elements = new TypedRegistry(Element, 'elements');\n this.plugins = new TypedRegistry(Object, 'plugins');\n this.scales = new TypedRegistry(Scale, 'scales');\n this._typedRegistries = [\n this.controllers,\n this.scales,\n this.elements\n ];\n }\n add(...args) {\n this._each('register', args);\n }\n remove(...args) {\n this._each('unregister', args);\n }\n addControllers(...args) {\n this._each('register', args, this.controllers);\n }\n addElements(...args) {\n this._each('register', args, this.elements);\n }\n addPlugins(...args) {\n this._each('register', args, this.plugins);\n }\n addScales(...args) {\n this._each('register', args, this.scales);\n }\n getController(id) {\n return this._get(id, this.controllers, 'controller');\n }\n getElement(id) {\n return this._get(id, this.elements, 'element');\n }\n getPlugin(id) {\n return this._get(id, this.plugins, 'plugin');\n }\n getScale(id) {\n return this._get(id, this.scales, 'scale');\n }\n removeControllers(...args) {\n this._each('unregister', args, this.controllers);\n }\n removeElements(...args) {\n this._each('unregister', args, this.elements);\n }\n removePlugins(...args) {\n this._each('unregister', args, this.plugins);\n }\n removeScales(...args) {\n this._each('unregister', args, this.scales);\n }\n _each(method, args, typedRegistry) {\n [\n ...args\n ].forEach((arg)=>{\n const reg = typedRegistry || this._getRegistryForType(arg);\n if (typedRegistry || reg.isForType(arg) || reg === this.plugins && arg.id) {\n this._exec(method, reg, arg);\n } else {\n each(arg, (item)=>{\n const itemReg = typedRegistry || this._getRegistryForType(item);\n this._exec(method, itemReg, item);\n });\n }\n });\n }\n _exec(method, registry, component) {\n const camelMethod = _capitalize(method);\n callback(component['before' + camelMethod], [], component);\n registry[method](component);\n callback(component['after' + camelMethod], [], component);\n }\n _getRegistryForType(type) {\n for(let i = 0; i < this._typedRegistries.length; i++){\n const reg = this._typedRegistries[i];\n if (reg.isForType(type)) {\n return reg;\n }\n }\n return this.plugins;\n }\n _get(id, typedRegistry, type) {\n const item = typedRegistry.get(id);\n if (item === undefined) {\n throw new Error('\"' + id + '\" is not a registered ' + type + '.');\n }\n return item;\n }\n}\nvar registry = /* #__PURE__ */ new Registry();\n\nclass PluginService {\n constructor(){\n this._init = [];\n }\n notify(chart, hook, args, filter) {\n if (hook === 'beforeInit') {\n this._init = this._createDescriptors(chart, true);\n this._notify(this._init, chart, 'install');\n }\n const descriptors = filter ? this._descriptors(chart).filter(filter) : this._descriptors(chart);\n const result = this._notify(descriptors, chart, hook, args);\n if (hook === 'afterDestroy') {\n this._notify(descriptors, chart, 'stop');\n this._notify(this._init, chart, 'uninstall');\n }\n return result;\n }\n _notify(descriptors, chart, hook, args) {\n args = args || {};\n for (const descriptor of descriptors){\n const plugin = descriptor.plugin;\n const method = plugin[hook];\n const params = [\n chart,\n args,\n descriptor.options\n ];\n if (callback(method, params, plugin) === false && args.cancelable) {\n return false;\n }\n }\n return true;\n }\n invalidate() {\n if (!isNullOrUndef(this._cache)) {\n this._oldCache = this._cache;\n this._cache = undefined;\n }\n }\n _descriptors(chart) {\n if (this._cache) {\n return this._cache;\n }\n const descriptors = this._cache = this._createDescriptors(chart);\n this._notifyStateChanges(chart);\n return descriptors;\n }\n _createDescriptors(chart, all) {\n const config = chart && chart.config;\n const options = valueOrDefault(config.options && config.options.plugins, {});\n const plugins = allPlugins(config);\n return options === false && !all ? [] : createDescriptors(chart, plugins, options, all);\n }\n _notifyStateChanges(chart) {\n const previousDescriptors = this._oldCache || [];\n const descriptors = this._cache;\n const diff = (a, b)=>a.filter((x)=>!b.some((y)=>x.plugin.id === y.plugin.id));\n this._notify(diff(previousDescriptors, descriptors), chart, 'stop');\n this._notify(diff(descriptors, previousDescriptors), chart, 'start');\n }\n}\n function allPlugins(config) {\n const localIds = {};\n const plugins = [];\n const keys = Object.keys(registry.plugins.items);\n for(let i = 0; i < keys.length; i++){\n plugins.push(registry.getPlugin(keys[i]));\n }\n const local = config.plugins || [];\n for(let i1 = 0; i1 < local.length; i1++){\n const plugin = local[i1];\n if (plugins.indexOf(plugin) === -1) {\n plugins.push(plugin);\n localIds[plugin.id] = true;\n }\n }\n return {\n plugins,\n localIds\n };\n}\nfunction getOpts(options, all) {\n if (!all && options === false) {\n return null;\n }\n if (options === true) {\n return {};\n }\n return options;\n}\nfunction createDescriptors(chart, { plugins , localIds }, options, all) {\n const result = [];\n const context = chart.getContext();\n for (const plugin of plugins){\n const id = plugin.id;\n const opts = getOpts(options[id], all);\n if (opts === null) {\n continue;\n }\n result.push({\n plugin,\n options: pluginOpts(chart.config, {\n plugin,\n local: localIds[id]\n }, opts, context)\n });\n }\n return result;\n}\nfunction pluginOpts(config, { plugin , local }, opts, context) {\n const keys = config.pluginScopeKeys(plugin);\n const scopes = config.getOptionScopes(opts, keys);\n if (local && plugin.defaults) {\n scopes.push(plugin.defaults);\n }\n return config.createResolver(scopes, context, [\n ''\n ], {\n scriptable: false,\n indexable: false,\n allKeys: true\n });\n}\n\nfunction getIndexAxis(type, options) {\n const datasetDefaults = defaults.datasets[type] || {};\n const datasetOptions = (options.datasets || {})[type] || {};\n return datasetOptions.indexAxis || options.indexAxis || datasetDefaults.indexAxis || 'x';\n}\nfunction getAxisFromDefaultScaleID(id, indexAxis) {\n let axis = id;\n if (id === '_index_') {\n axis = indexAxis;\n } else if (id === '_value_') {\n axis = indexAxis === 'x' ? 'y' : 'x';\n }\n return axis;\n}\nfunction getDefaultScaleIDFromAxis(axis, indexAxis) {\n return axis === indexAxis ? '_index_' : '_value_';\n}\nfunction axisFromPosition(position) {\n if (position === 'top' || position === 'bottom') {\n return 'x';\n }\n if (position === 'left' || position === 'right') {\n return 'y';\n }\n}\nfunction determineAxis(id, scaleOptions) {\n if (id === 'x' || id === 'y' || id === 'r') {\n return id;\n }\n id = scaleOptions.axis || axisFromPosition(scaleOptions.position) || id.length > 1 && determineAxis(id[0].toLowerCase(), scaleOptions);\n if (id) {\n return id;\n }\n throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`);\n}\nfunction mergeScaleConfig(config, options) {\n const chartDefaults = overrides[config.type] || {\n scales: {}\n };\n const configScales = options.scales || {};\n const chartIndexAxis = getIndexAxis(config.type, options);\n const scales = Object.create(null);\n Object.keys(configScales).forEach((id)=>{\n const scaleConf = configScales[id];\n if (!isObject(scaleConf)) {\n return console.error(`Invalid scale configuration for scale: ${id}`);\n }\n if (scaleConf._proxy) {\n return console.warn(`Ignoring resolver passed as options for scale: ${id}`);\n }\n const axis = determineAxis(id, scaleConf);\n const defaultId = getDefaultScaleIDFromAxis(axis, chartIndexAxis);\n const defaultScaleOptions = chartDefaults.scales || {};\n scales[id] = mergeIf(Object.create(null), [\n {\n axis\n },\n scaleConf,\n defaultScaleOptions[axis],\n defaultScaleOptions[defaultId]\n ]);\n });\n config.data.datasets.forEach((dataset)=>{\n const type = dataset.type || config.type;\n const indexAxis = dataset.indexAxis || getIndexAxis(type, options);\n const datasetDefaults = overrides[type] || {};\n const defaultScaleOptions = datasetDefaults.scales || {};\n Object.keys(defaultScaleOptions).forEach((defaultID)=>{\n const axis = getAxisFromDefaultScaleID(defaultID, indexAxis);\n const id = dataset[axis + 'AxisID'] || axis;\n scales[id] = scales[id] || Object.create(null);\n mergeIf(scales[id], [\n {\n axis\n },\n configScales[id],\n defaultScaleOptions[defaultID]\n ]);\n });\n });\n Object.keys(scales).forEach((key)=>{\n const scale = scales[key];\n mergeIf(scale, [\n defaults.scales[scale.type],\n defaults.scale\n ]);\n });\n return scales;\n}\nfunction initOptions(config) {\n const options = config.options || (config.options = {});\n options.plugins = valueOrDefault(options.plugins, {});\n options.scales = mergeScaleConfig(config, options);\n}\nfunction initData(data) {\n data = data || {};\n data.datasets = data.datasets || [];\n data.labels = data.labels || [];\n return data;\n}\nfunction initConfig(config) {\n config = config || {};\n config.data = initData(config.data);\n initOptions(config);\n return config;\n}\nconst keyCache = new Map();\nconst keysCached = new Set();\nfunction cachedKeys(cacheKey, generate) {\n let keys = keyCache.get(cacheKey);\n if (!keys) {\n keys = generate();\n keyCache.set(cacheKey, keys);\n keysCached.add(keys);\n }\n return keys;\n}\nconst addIfFound = (set, obj, key)=>{\n const opts = resolveObjectKey(obj, key);\n if (opts !== undefined) {\n set.add(opts);\n }\n};\nclass Config {\n constructor(config){\n this._config = initConfig(config);\n this._scopeCache = new Map();\n this._resolverCache = new Map();\n }\n get platform() {\n return this._config.platform;\n }\n get type() {\n return this._config.type;\n }\n set type(type) {\n this._config.type = type;\n }\n get data() {\n return this._config.data;\n }\n set data(data) {\n this._config.data = initData(data);\n }\n get options() {\n return this._config.options;\n }\n set options(options) {\n this._config.options = options;\n }\n get plugins() {\n return this._config.plugins;\n }\n update() {\n const config = this._config;\n this.clearCache();\n initOptions(config);\n }\n clearCache() {\n this._scopeCache.clear();\n this._resolverCache.clear();\n }\n datasetScopeKeys(datasetType) {\n return cachedKeys(datasetType, ()=>[\n [\n `datasets.${datasetType}`,\n ''\n ]\n ]);\n }\n datasetAnimationScopeKeys(datasetType, transition) {\n return cachedKeys(`${datasetType}.transition.${transition}`, ()=>[\n [\n `datasets.${datasetType}.transitions.${transition}`,\n `transitions.${transition}`\n ],\n [\n `datasets.${datasetType}`,\n ''\n ]\n ]);\n }\n datasetElementScopeKeys(datasetType, elementType) {\n return cachedKeys(`${datasetType}-${elementType}`, ()=>[\n [\n `datasets.${datasetType}.elements.${elementType}`,\n `datasets.${datasetType}`,\n `elements.${elementType}`,\n ''\n ]\n ]);\n }\n pluginScopeKeys(plugin) {\n const id = plugin.id;\n const type = this.type;\n return cachedKeys(`${type}-plugin-${id}`, ()=>[\n [\n `plugins.${id}`,\n ...plugin.additionalOptionScopes || []\n ]\n ]);\n }\n _cachedScopes(mainScope, resetCache) {\n const _scopeCache = this._scopeCache;\n let cache = _scopeCache.get(mainScope);\n if (!cache || resetCache) {\n cache = new Map();\n _scopeCache.set(mainScope, cache);\n }\n return cache;\n }\n getOptionScopes(mainScope, keyLists, resetCache) {\n const { options , type } = this;\n const cache = this._cachedScopes(mainScope, resetCache);\n const cached = cache.get(keyLists);\n if (cached) {\n return cached;\n }\n const scopes = new Set();\n keyLists.forEach((keys)=>{\n if (mainScope) {\n scopes.add(mainScope);\n keys.forEach((key)=>addIfFound(scopes, mainScope, key));\n }\n keys.forEach((key)=>addIfFound(scopes, options, key));\n keys.forEach((key)=>addIfFound(scopes, overrides[type] || {}, key));\n keys.forEach((key)=>addIfFound(scopes, defaults, key));\n keys.forEach((key)=>addIfFound(scopes, descriptors, key));\n });\n const array = Array.from(scopes);\n if (array.length === 0) {\n array.push(Object.create(null));\n }\n if (keysCached.has(keyLists)) {\n cache.set(keyLists, array);\n }\n return array;\n }\n chartOptionScopes() {\n const { options , type } = this;\n return [\n options,\n overrides[type] || {},\n defaults.datasets[type] || {},\n {\n type\n },\n defaults,\n descriptors\n ];\n }\n resolveNamedOptions(scopes, names, context, prefixes = [\n ''\n ]) {\n const result = {\n $shared: true\n };\n const { resolver , subPrefixes } = getResolver(this._resolverCache, scopes, prefixes);\n let options = resolver;\n if (needContext(resolver, names)) {\n result.$shared = false;\n context = isFunction(context) ? context() : context;\n const subResolver = this.createResolver(scopes, context, subPrefixes);\n options = _attachContext(resolver, context, subResolver);\n }\n for (const prop of names){\n result[prop] = options[prop];\n }\n return result;\n }\n createResolver(scopes, context, prefixes = [\n ''\n ], descriptorDefaults) {\n const { resolver } = getResolver(this._resolverCache, scopes, prefixes);\n return isObject(context) ? _attachContext(resolver, context, undefined, descriptorDefaults) : resolver;\n }\n}\nfunction getResolver(resolverCache, scopes, prefixes) {\n let cache = resolverCache.get(scopes);\n if (!cache) {\n cache = new Map();\n resolverCache.set(scopes, cache);\n }\n const cacheKey = prefixes.join();\n let cached = cache.get(cacheKey);\n if (!cached) {\n const resolver = _createResolver(scopes, prefixes);\n cached = {\n resolver,\n subPrefixes: prefixes.filter((p)=>!p.toLowerCase().includes('hover'))\n };\n cache.set(cacheKey, cached);\n }\n return cached;\n}\nconst hasFunction = (value)=>isObject(value) && Object.getOwnPropertyNames(value).reduce((acc, key)=>acc || isFunction(value[key]), false);\nfunction needContext(proxy, names) {\n const { isScriptable , isIndexable } = _descriptors(proxy);\n for (const prop of names){\n const scriptable = isScriptable(prop);\n const indexable = isIndexable(prop);\n const value = (indexable || scriptable) && proxy[prop];\n if (scriptable && (isFunction(value) || hasFunction(value)) || indexable && isArray(value)) {\n return true;\n }\n }\n return false;\n}\n\nvar version = \"4.2.1\";\n\nconst KNOWN_POSITIONS = [\n 'top',\n 'bottom',\n 'left',\n 'right',\n 'chartArea'\n];\nfunction positionIsHorizontal(position, axis) {\n return position === 'top' || position === 'bottom' || KNOWN_POSITIONS.indexOf(position) === -1 && axis === 'x';\n}\nfunction compare2Level(l1, l2) {\n return function(a, b) {\n return a[l1] === b[l1] ? a[l2] - b[l2] : a[l1] - b[l1];\n };\n}\nfunction onAnimationsComplete(context) {\n const chart = context.chart;\n const animationOptions = chart.options.animation;\n chart.notifyPlugins('afterRender');\n callback(animationOptions && animationOptions.onComplete, [\n context\n ], chart);\n}\nfunction onAnimationProgress(context) {\n const chart = context.chart;\n const animationOptions = chart.options.animation;\n callback(animationOptions && animationOptions.onProgress, [\n context\n ], chart);\n}\n function getCanvas(item) {\n if (_isDomSupported() && typeof item === 'string') {\n item = document.getElementById(item);\n } else if (item && item.length) {\n item = item[0];\n }\n if (item && item.canvas) {\n item = item.canvas;\n }\n return item;\n}\nconst instances = {};\nconst getChart = (key)=>{\n const canvas = getCanvas(key);\n return Object.values(instances).filter((c)=>c.canvas === canvas).pop();\n};\nfunction moveNumericKeys(obj, start, move) {\n const keys = Object.keys(obj);\n for (const key of keys){\n const intKey = +key;\n if (intKey >= start) {\n const value = obj[key];\n delete obj[key];\n if (move > 0 || intKey > start) {\n obj[intKey + move] = value;\n }\n }\n }\n}\n function determineLastEvent(e, lastEvent, inChartArea, isClick) {\n if (!inChartArea || e.type === 'mouseout') {\n return null;\n }\n if (isClick) {\n return lastEvent;\n }\n return e;\n}\nfunction getDatasetArea(meta) {\n const { xScale , yScale } = meta;\n if (xScale && yScale) {\n return {\n left: xScale.left,\n right: xScale.right,\n top: yScale.top,\n bottom: yScale.bottom\n };\n }\n}\nclass Chart {\n static defaults = defaults;\n static instances = instances;\n static overrides = overrides;\n static registry = registry;\n static version = version;\n static getChart = getChart;\n static register(...items) {\n registry.add(...items);\n invalidatePlugins();\n }\n static unregister(...items) {\n registry.remove(...items);\n invalidatePlugins();\n }\n constructor(item, userConfig){\n const config = this.config = new Config(userConfig);\n const initialCanvas = getCanvas(item);\n const existingChart = getChart(initialCanvas);\n if (existingChart) {\n throw new Error('Canvas is already in use. Chart with ID \\'' + existingChart.id + '\\'' + ' must be destroyed before the canvas with ID \\'' + existingChart.canvas.id + '\\' can be reused.');\n }\n const options = config.createResolver(config.chartOptionScopes(), this.getContext());\n this.platform = new (config.platform || _detectPlatform(initialCanvas))();\n this.platform.updateConfig(config);\n const context = this.platform.acquireContext(initialCanvas, options.aspectRatio);\n const canvas = context && context.canvas;\n const height = canvas && canvas.height;\n const width = canvas && canvas.width;\n this.id = uid();\n this.ctx = context;\n this.canvas = canvas;\n this.width = width;\n this.height = height;\n this._options = options;\n this._aspectRatio = this.aspectRatio;\n this._layers = [];\n this._metasets = [];\n this._stacks = undefined;\n this.boxes = [];\n this.currentDevicePixelRatio = undefined;\n this.chartArea = undefined;\n this._active = [];\n this._lastEvent = undefined;\n this._listeners = {};\n this._responsiveListeners = undefined;\n this._sortedMetasets = [];\n this.scales = {};\n this._plugins = new PluginService();\n this.$proxies = {};\n this._hiddenIndices = {};\n this.attached = false;\n this._animationsDisabled = undefined;\n this.$context = undefined;\n this._doResize = debounce((mode)=>this.update(mode), options.resizeDelay || 0);\n this._dataChanges = [];\n instances[this.id] = this;\n if (!context || !canvas) {\n console.error(\"Failed to create chart: can't acquire context from the given item\");\n return;\n }\n animator.listen(this, 'complete', onAnimationsComplete);\n animator.listen(this, 'progress', onAnimationProgress);\n this._initialize();\n if (this.attached) {\n this.update();\n }\n }\n get aspectRatio() {\n const { options: { aspectRatio , maintainAspectRatio } , width , height , _aspectRatio } = this;\n if (!isNullOrUndef(aspectRatio)) {\n return aspectRatio;\n }\n if (maintainAspectRatio && _aspectRatio) {\n return _aspectRatio;\n }\n return height ? width / height : null;\n }\n get data() {\n return this.config.data;\n }\n set data(data) {\n this.config.data = data;\n }\n get options() {\n return this._options;\n }\n set options(options) {\n this.config.options = options;\n }\n get registry() {\n return registry;\n }\n _initialize() {\n this.notifyPlugins('beforeInit');\n if (this.options.responsive) {\n this.resize();\n } else {\n retinaScale(this, this.options.devicePixelRatio);\n }\n this.bindEvents();\n this.notifyPlugins('afterInit');\n return this;\n }\n clear() {\n clearCanvas(this.canvas, this.ctx);\n return this;\n }\n stop() {\n animator.stop(this);\n return this;\n }\n resize(width, height) {\n if (!animator.running(this)) {\n this._resize(width, height);\n } else {\n this._resizeBeforeDraw = {\n width,\n height\n };\n }\n }\n _resize(width, height) {\n const options = this.options;\n const canvas = this.canvas;\n const aspectRatio = options.maintainAspectRatio && this.aspectRatio;\n const newSize = this.platform.getMaximumSize(canvas, width, height, aspectRatio);\n const newRatio = options.devicePixelRatio || this.platform.getDevicePixelRatio();\n const mode = this.width ? 'resize' : 'attach';\n this.width = newSize.width;\n this.height = newSize.height;\n this._aspectRatio = this.aspectRatio;\n if (!retinaScale(this, newRatio, true)) {\n return;\n }\n this.notifyPlugins('resize', {\n size: newSize\n });\n callback(options.onResize, [\n this,\n newSize\n ], this);\n if (this.attached) {\n if (this._doResize(mode)) {\n this.render();\n }\n }\n }\n ensureScalesHaveIDs() {\n const options = this.options;\n const scalesOptions = options.scales || {};\n each(scalesOptions, (axisOptions, axisID)=>{\n axisOptions.id = axisID;\n });\n }\n buildOrUpdateScales() {\n const options = this.options;\n const scaleOpts = options.scales;\n const scales = this.scales;\n const updated = Object.keys(scales).reduce((obj, id)=>{\n obj[id] = false;\n return obj;\n }, {});\n let items = [];\n if (scaleOpts) {\n items = items.concat(Object.keys(scaleOpts).map((id)=>{\n const scaleOptions = scaleOpts[id];\n const axis = determineAxis(id, scaleOptions);\n const isRadial = axis === 'r';\n const isHorizontal = axis === 'x';\n return {\n options: scaleOptions,\n dposition: isRadial ? 'chartArea' : isHorizontal ? 'bottom' : 'left',\n dtype: isRadial ? 'radialLinear' : isHorizontal ? 'category' : 'linear'\n };\n }));\n }\n each(items, (item)=>{\n const scaleOptions = item.options;\n const id = scaleOptions.id;\n const axis = determineAxis(id, scaleOptions);\n const scaleType = valueOrDefault(scaleOptions.type, item.dtype);\n if (scaleOptions.position === undefined || positionIsHorizontal(scaleOptions.position, axis) !== positionIsHorizontal(item.dposition)) {\n scaleOptions.position = item.dposition;\n }\n updated[id] = true;\n let scale = null;\n if (id in scales && scales[id].type === scaleType) {\n scale = scales[id];\n } else {\n const scaleClass = registry.getScale(scaleType);\n scale = new scaleClass({\n id,\n type: scaleType,\n ctx: this.ctx,\n chart: this\n });\n scales[scale.id] = scale;\n }\n scale.init(scaleOptions, options);\n });\n each(updated, (hasUpdated, id)=>{\n if (!hasUpdated) {\n delete scales[id];\n }\n });\n each(scales, (scale)=>{\n layouts.configure(this, scale, scale.options);\n layouts.addBox(this, scale);\n });\n }\n _updateMetasets() {\n const metasets = this._metasets;\n const numData = this.data.datasets.length;\n const numMeta = metasets.length;\n metasets.sort((a, b)=>a.index - b.index);\n if (numMeta > numData) {\n for(let i = numData; i < numMeta; ++i){\n this._destroyDatasetMeta(i);\n }\n metasets.splice(numData, numMeta - numData);\n }\n this._sortedMetasets = metasets.slice(0).sort(compare2Level('order', 'index'));\n }\n _removeUnreferencedMetasets() {\n const { _metasets: metasets , data: { datasets } } = this;\n if (metasets.length > datasets.length) {\n delete this._stacks;\n }\n metasets.forEach((meta, index)=>{\n if (datasets.filter((x)=>x === meta._dataset).length === 0) {\n this._destroyDatasetMeta(index);\n }\n });\n }\n buildOrUpdateControllers() {\n const newControllers = [];\n const datasets = this.data.datasets;\n let i, ilen;\n this._removeUnreferencedMetasets();\n for(i = 0, ilen = datasets.length; i < ilen; i++){\n const dataset = datasets[i];\n let meta = this.getDatasetMeta(i);\n const type = dataset.type || this.config.type;\n if (meta.type && meta.type !== type) {\n this._destroyDatasetMeta(i);\n meta = this.getDatasetMeta(i);\n }\n meta.type = type;\n meta.indexAxis = dataset.indexAxis || getIndexAxis(type, this.options);\n meta.order = dataset.order || 0;\n meta.index = i;\n meta.label = '' + dataset.label;\n meta.visible = this.isDatasetVisible(i);\n if (meta.controller) {\n meta.controller.updateIndex(i);\n meta.controller.linkScales();\n } else {\n const ControllerClass = registry.getController(type);\n const { datasetElementType , dataElementType } = defaults.datasets[type];\n Object.assign(ControllerClass, {\n dataElementType: registry.getElement(dataElementType),\n datasetElementType: datasetElementType && registry.getElement(datasetElementType)\n });\n meta.controller = new ControllerClass(this, i);\n newControllers.push(meta.controller);\n }\n }\n this._updateMetasets();\n return newControllers;\n }\n _resetElements() {\n each(this.data.datasets, (dataset, datasetIndex)=>{\n this.getDatasetMeta(datasetIndex).controller.reset();\n }, this);\n }\n reset() {\n this._resetElements();\n this.notifyPlugins('reset');\n }\n update(mode) {\n const config = this.config;\n config.update();\n const options = this._options = config.createResolver(config.chartOptionScopes(), this.getContext());\n const animsDisabled = this._animationsDisabled = !options.animation;\n this._updateScales();\n this._checkEventBindings();\n this._updateHiddenIndices();\n this._plugins.invalidate();\n if (this.notifyPlugins('beforeUpdate', {\n mode,\n cancelable: true\n }) === false) {\n return;\n }\n const newControllers = this.buildOrUpdateControllers();\n this.notifyPlugins('beforeElementsUpdate');\n let minPadding = 0;\n for(let i = 0, ilen = this.data.datasets.length; i < ilen; i++){\n const { controller } = this.getDatasetMeta(i);\n const reset = !animsDisabled && newControllers.indexOf(controller) === -1;\n controller.buildOrUpdateElements(reset);\n minPadding = Math.max(+controller.getMaxOverflow(), minPadding);\n }\n minPadding = this._minPadding = options.layout.autoPadding ? minPadding : 0;\n this._updateLayout(minPadding);\n if (!animsDisabled) {\n each(newControllers, (controller)=>{\n controller.reset();\n });\n }\n this._updateDatasets(mode);\n this.notifyPlugins('afterUpdate', {\n mode\n });\n this._layers.sort(compare2Level('z', '_idx'));\n const { _active , _lastEvent } = this;\n if (_lastEvent) {\n this._eventHandler(_lastEvent, true);\n } else if (_active.length) {\n this._updateHoverStyles(_active, _active, true);\n }\n this.render();\n }\n _updateScales() {\n each(this.scales, (scale)=>{\n layouts.removeBox(this, scale);\n });\n this.ensureScalesHaveIDs();\n this.buildOrUpdateScales();\n }\n _checkEventBindings() {\n const options = this.options;\n const existingEvents = new Set(Object.keys(this._listeners));\n const newEvents = new Set(options.events);\n if (!setsEqual(existingEvents, newEvents) || !!this._responsiveListeners !== options.responsive) {\n this.unbindEvents();\n this.bindEvents();\n }\n }\n _updateHiddenIndices() {\n const { _hiddenIndices } = this;\n const changes = this._getUniformDataChanges() || [];\n for (const { method , start , count } of changes){\n const move = method === '_removeElements' ? -count : count;\n moveNumericKeys(_hiddenIndices, start, move);\n }\n }\n _getUniformDataChanges() {\n const _dataChanges = this._dataChanges;\n if (!_dataChanges || !_dataChanges.length) {\n return;\n }\n this._dataChanges = [];\n const datasetCount = this.data.datasets.length;\n const makeSet = (idx)=>new Set(_dataChanges.filter((c)=>c[0] === idx).map((c, i)=>i + ',' + c.splice(1).join(',')));\n const changeSet = makeSet(0);\n for(let i = 1; i < datasetCount; i++){\n if (!setsEqual(changeSet, makeSet(i))) {\n return;\n }\n }\n return Array.from(changeSet).map((c)=>c.split(',')).map((a)=>({\n method: a[1],\n start: +a[2],\n count: +a[3]\n }));\n }\n _updateLayout(minPadding) {\n if (this.notifyPlugins('beforeLayout', {\n cancelable: true\n }) === false) {\n return;\n }\n layouts.update(this, this.width, this.height, minPadding);\n const area = this.chartArea;\n const noArea = area.width <= 0 || area.height <= 0;\n this._layers = [];\n each(this.boxes, (box)=>{\n if (noArea && box.position === 'chartArea') {\n return;\n }\n if (box.configure) {\n box.configure();\n }\n this._layers.push(...box._layers());\n }, this);\n this._layers.forEach((item, index)=>{\n item._idx = index;\n });\n this.notifyPlugins('afterLayout');\n }\n _updateDatasets(mode) {\n if (this.notifyPlugins('beforeDatasetsUpdate', {\n mode,\n cancelable: true\n }) === false) {\n return;\n }\n for(let i = 0, ilen = this.data.datasets.length; i < ilen; ++i){\n this.getDatasetMeta(i).controller.configure();\n }\n for(let i1 = 0, ilen1 = this.data.datasets.length; i1 < ilen1; ++i1){\n this._updateDataset(i1, isFunction(mode) ? mode({\n datasetIndex: i1\n }) : mode);\n }\n this.notifyPlugins('afterDatasetsUpdate', {\n mode\n });\n }\n _updateDataset(index, mode) {\n const meta = this.getDatasetMeta(index);\n const args = {\n meta,\n index,\n mode,\n cancelable: true\n };\n if (this.notifyPlugins('beforeDatasetUpdate', args) === false) {\n return;\n }\n meta.controller._update(mode);\n args.cancelable = false;\n this.notifyPlugins('afterDatasetUpdate', args);\n }\n render() {\n if (this.notifyPlugins('beforeRender', {\n cancelable: true\n }) === false) {\n return;\n }\n if (animator.has(this)) {\n if (this.attached && !animator.running(this)) {\n animator.start(this);\n }\n } else {\n this.draw();\n onAnimationsComplete({\n chart: this\n });\n }\n }\n draw() {\n let i;\n if (this._resizeBeforeDraw) {\n const { width , height } = this._resizeBeforeDraw;\n this._resize(width, height);\n this._resizeBeforeDraw = null;\n }\n this.clear();\n if (this.width <= 0 || this.height <= 0) {\n return;\n }\n if (this.notifyPlugins('beforeDraw', {\n cancelable: true\n }) === false) {\n return;\n }\n const layers = this._layers;\n for(i = 0; i < layers.length && layers[i].z <= 0; ++i){\n layers[i].draw(this.chartArea);\n }\n this._drawDatasets();\n for(; i < layers.length; ++i){\n layers[i].draw(this.chartArea);\n }\n this.notifyPlugins('afterDraw');\n }\n _getSortedDatasetMetas(filterVisible) {\n const metasets = this._sortedMetasets;\n const result = [];\n let i, ilen;\n for(i = 0, ilen = metasets.length; i < ilen; ++i){\n const meta = metasets[i];\n if (!filterVisible || meta.visible) {\n result.push(meta);\n }\n }\n return result;\n }\n getSortedVisibleDatasetMetas() {\n return this._getSortedDatasetMetas(true);\n }\n _drawDatasets() {\n if (this.notifyPlugins('beforeDatasetsDraw', {\n cancelable: true\n }) === false) {\n return;\n }\n const metasets = this.getSortedVisibleDatasetMetas();\n for(let i = metasets.length - 1; i >= 0; --i){\n this._drawDataset(metasets[i]);\n }\n this.notifyPlugins('afterDatasetsDraw');\n }\n _drawDataset(meta) {\n const ctx = this.ctx;\n const clip = meta._clip;\n const useClip = !clip.disabled;\n const area = getDatasetArea(meta) || this.chartArea;\n const args = {\n meta,\n index: meta.index,\n cancelable: true\n };\n if (this.notifyPlugins('beforeDatasetDraw', args) === false) {\n return;\n }\n if (useClip) {\n clipArea(ctx, {\n left: clip.left === false ? 0 : area.left - clip.left,\n right: clip.right === false ? this.width : area.right + clip.right,\n top: clip.top === false ? 0 : area.top - clip.top,\n bottom: clip.bottom === false ? this.height : area.bottom + clip.bottom\n });\n }\n meta.controller.draw();\n if (useClip) {\n unclipArea(ctx);\n }\n args.cancelable = false;\n this.notifyPlugins('afterDatasetDraw', args);\n }\n isPointInArea(point) {\n return _isPointInArea(point, this.chartArea, this._minPadding);\n }\n getElementsAtEventForMode(e, mode, options, useFinalPosition) {\n const method = Interaction.modes[mode];\n if (typeof method === 'function') {\n return method(this, e, options, useFinalPosition);\n }\n return [];\n }\n getDatasetMeta(datasetIndex) {\n const dataset = this.data.datasets[datasetIndex];\n const metasets = this._metasets;\n let meta = metasets.filter((x)=>x && x._dataset === dataset).pop();\n if (!meta) {\n meta = {\n type: null,\n data: [],\n dataset: null,\n controller: null,\n hidden: null,\n xAxisID: null,\n yAxisID: null,\n order: dataset && dataset.order || 0,\n index: datasetIndex,\n _dataset: dataset,\n _parsed: [],\n _sorted: false\n };\n metasets.push(meta);\n }\n return meta;\n }\n getContext() {\n return this.$context || (this.$context = createContext(null, {\n chart: this,\n type: 'chart'\n }));\n }\n getVisibleDatasetCount() {\n return this.getSortedVisibleDatasetMetas().length;\n }\n isDatasetVisible(datasetIndex) {\n const dataset = this.data.datasets[datasetIndex];\n if (!dataset) {\n return false;\n }\n const meta = this.getDatasetMeta(datasetIndex);\n return typeof meta.hidden === 'boolean' ? !meta.hidden : !dataset.hidden;\n }\n setDatasetVisibility(datasetIndex, visible) {\n const meta = this.getDatasetMeta(datasetIndex);\n meta.hidden = !visible;\n }\n toggleDataVisibility(index) {\n this._hiddenIndices[index] = !this._hiddenIndices[index];\n }\n getDataVisibility(index) {\n return !this._hiddenIndices[index];\n }\n _updateVisibility(datasetIndex, dataIndex, visible) {\n const mode = visible ? 'show' : 'hide';\n const meta = this.getDatasetMeta(datasetIndex);\n const anims = meta.controller._resolveAnimations(undefined, mode);\n if (defined(dataIndex)) {\n meta.data[dataIndex].hidden = !visible;\n this.update();\n } else {\n this.setDatasetVisibility(datasetIndex, visible);\n anims.update(meta, {\n visible\n });\n this.update((ctx)=>ctx.datasetIndex === datasetIndex ? mode : undefined);\n }\n }\n hide(datasetIndex, dataIndex) {\n this._updateVisibility(datasetIndex, dataIndex, false);\n }\n show(datasetIndex, dataIndex) {\n this._updateVisibility(datasetIndex, dataIndex, true);\n }\n _destroyDatasetMeta(datasetIndex) {\n const meta = this._metasets[datasetIndex];\n if (meta && meta.controller) {\n meta.controller._destroy();\n }\n delete this._metasets[datasetIndex];\n }\n _stop() {\n let i, ilen;\n this.stop();\n animator.remove(this);\n for(i = 0, ilen = this.data.datasets.length; i < ilen; ++i){\n this._destroyDatasetMeta(i);\n }\n }\n destroy() {\n this.notifyPlugins('beforeDestroy');\n const { canvas , ctx } = this;\n this._stop();\n this.config.clearCache();\n if (canvas) {\n this.unbindEvents();\n clearCanvas(canvas, ctx);\n this.platform.releaseContext(ctx);\n this.canvas = null;\n this.ctx = null;\n }\n delete instances[this.id];\n this.notifyPlugins('afterDestroy');\n }\n toBase64Image(...args) {\n return this.canvas.toDataURL(...args);\n }\n bindEvents() {\n this.bindUserEvents();\n if (this.options.responsive) {\n this.bindResponsiveEvents();\n } else {\n this.attached = true;\n }\n }\n bindUserEvents() {\n const listeners = this._listeners;\n const platform = this.platform;\n const _add = (type, listener)=>{\n platform.addEventListener(this, type, listener);\n listeners[type] = listener;\n };\n const listener = (e, x, y)=>{\n e.offsetX = x;\n e.offsetY = y;\n this._eventHandler(e);\n };\n each(this.options.events, (type)=>_add(type, listener));\n }\n bindResponsiveEvents() {\n if (!this._responsiveListeners) {\n this._responsiveListeners = {};\n }\n const listeners = this._responsiveListeners;\n const platform = this.platform;\n const _add = (type, listener)=>{\n platform.addEventListener(this, type, listener);\n listeners[type] = listener;\n };\n const _remove = (type, listener)=>{\n if (listeners[type]) {\n platform.removeEventListener(this, type, listener);\n delete listeners[type];\n }\n };\n const listener = (width, height)=>{\n if (this.canvas) {\n this.resize(width, height);\n }\n };\n let detached;\n const attached = ()=>{\n _remove('attach', attached);\n this.attached = true;\n this.resize();\n _add('resize', listener);\n _add('detach', detached);\n };\n detached = ()=>{\n this.attached = false;\n _remove('resize', listener);\n this._stop();\n this._resize(0, 0);\n _add('attach', attached);\n };\n if (platform.isAttached(this.canvas)) {\n attached();\n } else {\n detached();\n }\n }\n unbindEvents() {\n each(this._listeners, (listener, type)=>{\n this.platform.removeEventListener(this, type, listener);\n });\n this._listeners = {};\n each(this._responsiveListeners, (listener, type)=>{\n this.platform.removeEventListener(this, type, listener);\n });\n this._responsiveListeners = undefined;\n }\n updateHoverStyle(items, mode, enabled) {\n const prefix = enabled ? 'set' : 'remove';\n let meta, item, i, ilen;\n if (mode === 'dataset') {\n meta = this.getDatasetMeta(items[0].datasetIndex);\n meta.controller['_' + prefix + 'DatasetHoverStyle']();\n }\n for(i = 0, ilen = items.length; i < ilen; ++i){\n item = items[i];\n const controller = item && this.getDatasetMeta(item.datasetIndex).controller;\n if (controller) {\n controller[prefix + 'HoverStyle'](item.element, item.datasetIndex, item.index);\n }\n }\n }\n getActiveElements() {\n return this._active || [];\n }\n setActiveElements(activeElements) {\n const lastActive = this._active || [];\n const active = activeElements.map(({ datasetIndex , index })=>{\n const meta = this.getDatasetMeta(datasetIndex);\n if (!meta) {\n throw new Error('No dataset found at index ' + datasetIndex);\n }\n return {\n datasetIndex,\n element: meta.data[index],\n index\n };\n });\n const changed = !_elementsEqual(active, lastActive);\n if (changed) {\n this._active = active;\n this._lastEvent = null;\n this._updateHoverStyles(active, lastActive);\n }\n }\n notifyPlugins(hook, args, filter) {\n return this._plugins.notify(this, hook, args, filter);\n }\n isPluginEnabled(pluginId) {\n return this._plugins._cache.filter((p)=>p.plugin.id === pluginId).length === 1;\n }\n _updateHoverStyles(active, lastActive, replay) {\n const hoverOptions = this.options.hover;\n const diff = (a, b)=>a.filter((x)=>!b.some((y)=>x.datasetIndex === y.datasetIndex && x.index === y.index));\n const deactivated = diff(lastActive, active);\n const activated = replay ? active : diff(active, lastActive);\n if (deactivated.length) {\n this.updateHoverStyle(deactivated, hoverOptions.mode, false);\n }\n if (activated.length && hoverOptions.mode) {\n this.updateHoverStyle(activated, hoverOptions.mode, true);\n }\n }\n _eventHandler(e, replay) {\n const args = {\n event: e,\n replay,\n cancelable: true,\n inChartArea: this.isPointInArea(e)\n };\n const eventFilter = (plugin)=>(plugin.options.events || this.options.events).includes(e.native.type);\n if (this.notifyPlugins('beforeEvent', args, eventFilter) === false) {\n return;\n }\n const changed = this._handleEvent(e, replay, args.inChartArea);\n args.cancelable = false;\n this.notifyPlugins('afterEvent', args, eventFilter);\n if (changed || args.changed) {\n this.render();\n }\n return this;\n }\n _handleEvent(e, replay, inChartArea) {\n const { _active: lastActive = [] , options } = this;\n const useFinalPosition = replay;\n const active = this._getActiveElements(e, lastActive, inChartArea, useFinalPosition);\n const isClick = _isClickEvent(e);\n const lastEvent = determineLastEvent(e, this._lastEvent, inChartArea, isClick);\n if (inChartArea) {\n this._lastEvent = null;\n callback(options.onHover, [\n e,\n active,\n this\n ], this);\n if (isClick) {\n callback(options.onClick, [\n e,\n active,\n this\n ], this);\n }\n }\n const changed = !_elementsEqual(active, lastActive);\n if (changed || replay) {\n this._active = active;\n this._updateHoverStyles(active, lastActive, replay);\n }\n this._lastEvent = lastEvent;\n return changed;\n }\n _getActiveElements(e, lastActive, inChartArea, useFinalPosition) {\n if (e.type === 'mouseout') {\n return [];\n }\n if (!inChartArea) {\n return lastActive;\n }\n const hoverOptions = this.options.hover;\n return this.getElementsAtEventForMode(e, hoverOptions.mode, hoverOptions, useFinalPosition);\n }\n}\nfunction invalidatePlugins() {\n return each(Chart.instances, (chart)=>chart._plugins.invalidate());\n}\n\nfunction clipArc(ctx, element, endAngle) {\n const { startAngle , pixelMargin , x , y , outerRadius , innerRadius } = element;\n let angleMargin = pixelMargin / outerRadius;\n // Draw an inner border by clipping the arc and drawing a double-width border\n // Enlarge the clipping arc by 0.33 pixels to eliminate glitches between borders\n ctx.beginPath();\n ctx.arc(x, y, outerRadius, startAngle - angleMargin, endAngle + angleMargin);\n if (innerRadius > pixelMargin) {\n angleMargin = pixelMargin / innerRadius;\n ctx.arc(x, y, innerRadius, endAngle + angleMargin, startAngle - angleMargin, true);\n } else {\n ctx.arc(x, y, pixelMargin, endAngle + HALF_PI, startAngle - HALF_PI);\n }\n ctx.closePath();\n ctx.clip();\n}\nfunction toRadiusCorners(value) {\n return _readValueToProps(value, [\n 'outerStart',\n 'outerEnd',\n 'innerStart',\n 'innerEnd'\n ]);\n}\n/**\n * Parse border radius from the provided options\n */ function parseBorderRadius$1(arc, innerRadius, outerRadius, angleDelta) {\n const o = toRadiusCorners(arc.options.borderRadius);\n const halfThickness = (outerRadius - innerRadius) / 2;\n const innerLimit = Math.min(halfThickness, angleDelta * innerRadius / 2);\n // Outer limits are complicated. We want to compute the available angular distance at\n // a radius of outerRadius - borderRadius because for small angular distances, this term limits.\n // We compute at r = outerRadius - borderRadius because this circle defines the center of the border corners.\n //\n // If the borderRadius is large, that value can become negative.\n // This causes the outer borders to lose their radius entirely, which is rather unexpected. To solve that, if borderRadius > outerRadius\n // we know that the thickness term will dominate and compute the limits at that point\n const computeOuterLimit = (val)=>{\n const outerArcLimit = (outerRadius - Math.min(halfThickness, val)) * angleDelta / 2;\n return _limitValue(val, 0, Math.min(halfThickness, outerArcLimit));\n };\n return {\n outerStart: computeOuterLimit(o.outerStart),\n outerEnd: computeOuterLimit(o.outerEnd),\n innerStart: _limitValue(o.innerStart, 0, innerLimit),\n innerEnd: _limitValue(o.innerEnd, 0, innerLimit)\n };\n}\n/**\n * Convert (r, 𝜃) to (x, y)\n */ function rThetaToXY(r, theta, x, y) {\n return {\n x: x + r * Math.cos(theta),\n y: y + r * Math.sin(theta)\n };\n}\n/**\n * Path the arc, respecting border radius by separating into left and right halves.\n *\n * Start End\n *\n * 1--->a--->2 Outer\n * / \\\n * 8 3\n * | |\n * | |\n * 7 4\n * \\ /\n * 6<---b<---5 Inner\n */ function pathArc(ctx, element, offset, spacing, end, circular) {\n const { x , y , startAngle: start , pixelMargin , innerRadius: innerR } = element;\n const outerRadius = Math.max(element.outerRadius + spacing + offset - pixelMargin, 0);\n const innerRadius = innerR > 0 ? innerR + spacing + offset + pixelMargin : 0;\n let spacingOffset = 0;\n const alpha = end - start;\n if (spacing) {\n // When spacing is present, it is the same for all items\n // So we adjust the start and end angle of the arc such that\n // the distance is the same as it would be without the spacing\n const noSpacingInnerRadius = innerR > 0 ? innerR - spacing : 0;\n const noSpacingOuterRadius = outerRadius > 0 ? outerRadius - spacing : 0;\n const avNogSpacingRadius = (noSpacingInnerRadius + noSpacingOuterRadius) / 2;\n const adjustedAngle = avNogSpacingRadius !== 0 ? alpha * avNogSpacingRadius / (avNogSpacingRadius + spacing) : alpha;\n spacingOffset = (alpha - adjustedAngle) / 2;\n }\n const beta = Math.max(0.001, alpha * outerRadius - offset / PI) / outerRadius;\n const angleOffset = (alpha - beta) / 2;\n const startAngle = start + angleOffset + spacingOffset;\n const endAngle = end - angleOffset - spacingOffset;\n const { outerStart , outerEnd , innerStart , innerEnd } = parseBorderRadius$1(element, innerRadius, outerRadius, endAngle - startAngle);\n const outerStartAdjustedRadius = outerRadius - outerStart;\n const outerEndAdjustedRadius = outerRadius - outerEnd;\n const outerStartAdjustedAngle = startAngle + outerStart / outerStartAdjustedRadius;\n const outerEndAdjustedAngle = endAngle - outerEnd / outerEndAdjustedRadius;\n const innerStartAdjustedRadius = innerRadius + innerStart;\n const innerEndAdjustedRadius = innerRadius + innerEnd;\n const innerStartAdjustedAngle = startAngle + innerStart / innerStartAdjustedRadius;\n const innerEndAdjustedAngle = endAngle - innerEnd / innerEndAdjustedRadius;\n ctx.beginPath();\n if (circular) {\n // The first arc segments from point 1 to point a to point 2\n const outerMidAdjustedAngle = (outerStartAdjustedAngle + outerEndAdjustedAngle) / 2;\n ctx.arc(x, y, outerRadius, outerStartAdjustedAngle, outerMidAdjustedAngle);\n ctx.arc(x, y, outerRadius, outerMidAdjustedAngle, outerEndAdjustedAngle);\n // The corner segment from point 2 to point 3\n if (outerEnd > 0) {\n const pCenter = rThetaToXY(outerEndAdjustedRadius, outerEndAdjustedAngle, x, y);\n ctx.arc(pCenter.x, pCenter.y, outerEnd, outerEndAdjustedAngle, endAngle + HALF_PI);\n }\n // The line from point 3 to point 4\n const p4 = rThetaToXY(innerEndAdjustedRadius, endAngle, x, y);\n ctx.lineTo(p4.x, p4.y);\n // The corner segment from point 4 to point 5\n if (innerEnd > 0) {\n const pCenter1 = rThetaToXY(innerEndAdjustedRadius, innerEndAdjustedAngle, x, y);\n ctx.arc(pCenter1.x, pCenter1.y, innerEnd, endAngle + HALF_PI, innerEndAdjustedAngle + Math.PI);\n }\n // The inner arc from point 5 to point b to point 6\n const innerMidAdjustedAngle = (endAngle - innerEnd / innerRadius + (startAngle + innerStart / innerRadius)) / 2;\n ctx.arc(x, y, innerRadius, endAngle - innerEnd / innerRadius, innerMidAdjustedAngle, true);\n ctx.arc(x, y, innerRadius, innerMidAdjustedAngle, startAngle + innerStart / innerRadius, true);\n // The corner segment from point 6 to point 7\n if (innerStart > 0) {\n const pCenter2 = rThetaToXY(innerStartAdjustedRadius, innerStartAdjustedAngle, x, y);\n ctx.arc(pCenter2.x, pCenter2.y, innerStart, innerStartAdjustedAngle + Math.PI, startAngle - HALF_PI);\n }\n // The line from point 7 to point 8\n const p8 = rThetaToXY(outerStartAdjustedRadius, startAngle, x, y);\n ctx.lineTo(p8.x, p8.y);\n // The corner segment from point 8 to point 1\n if (outerStart > 0) {\n const pCenter3 = rThetaToXY(outerStartAdjustedRadius, outerStartAdjustedAngle, x, y);\n ctx.arc(pCenter3.x, pCenter3.y, outerStart, startAngle - HALF_PI, outerStartAdjustedAngle);\n }\n } else {\n ctx.moveTo(x, y);\n const outerStartX = Math.cos(outerStartAdjustedAngle) * outerRadius + x;\n const outerStartY = Math.sin(outerStartAdjustedAngle) * outerRadius + y;\n ctx.lineTo(outerStartX, outerStartY);\n const outerEndX = Math.cos(outerEndAdjustedAngle) * outerRadius + x;\n const outerEndY = Math.sin(outerEndAdjustedAngle) * outerRadius + y;\n ctx.lineTo(outerEndX, outerEndY);\n }\n ctx.closePath();\n}\nfunction drawArc(ctx, element, offset, spacing, circular) {\n const { fullCircles , startAngle , circumference } = element;\n let endAngle = element.endAngle;\n if (fullCircles) {\n pathArc(ctx, element, offset, spacing, endAngle, circular);\n for(let i = 0; i < fullCircles; ++i){\n ctx.fill();\n }\n if (!isNaN(circumference)) {\n endAngle = startAngle + (circumference % TAU || TAU);\n }\n }\n pathArc(ctx, element, offset, spacing, endAngle, circular);\n ctx.fill();\n return endAngle;\n}\nfunction drawBorder(ctx, element, offset, spacing, circular) {\n const { fullCircles , startAngle , circumference , options } = element;\n const { borderWidth , borderJoinStyle } = options;\n const inner = options.borderAlign === 'inner';\n if (!borderWidth) {\n return;\n }\n if (inner) {\n ctx.lineWidth = borderWidth * 2;\n ctx.lineJoin = borderJoinStyle || 'round';\n } else {\n ctx.lineWidth = borderWidth;\n ctx.lineJoin = borderJoinStyle || 'bevel';\n }\n let endAngle = element.endAngle;\n if (fullCircles) {\n pathArc(ctx, element, offset, spacing, endAngle, circular);\n for(let i = 0; i < fullCircles; ++i){\n ctx.stroke();\n }\n if (!isNaN(circumference)) {\n endAngle = startAngle + (circumference % TAU || TAU);\n }\n }\n if (inner) {\n clipArc(ctx, element, endAngle);\n }\n if (!fullCircles) {\n pathArc(ctx, element, offset, spacing, endAngle, circular);\n ctx.stroke();\n }\n}\nclass ArcElement extends Element {\n static id = 'arc';\n static defaults = {\n borderAlign: 'center',\n borderColor: '#fff',\n borderJoinStyle: undefined,\n borderRadius: 0,\n borderWidth: 2,\n offset: 0,\n spacing: 0,\n angle: undefined,\n circular: true\n };\n static defaultRoutes = {\n backgroundColor: 'backgroundColor'\n };\n constructor(cfg){\n super();\n this.options = undefined;\n this.circumference = undefined;\n this.startAngle = undefined;\n this.endAngle = undefined;\n this.innerRadius = undefined;\n this.outerRadius = undefined;\n this.pixelMargin = 0;\n this.fullCircles = 0;\n if (cfg) {\n Object.assign(this, cfg);\n }\n }\n inRange(chartX, chartY, useFinalPosition) {\n const point = this.getProps([\n 'x',\n 'y'\n ], useFinalPosition);\n const { angle , distance } = getAngleFromPoint(point, {\n x: chartX,\n y: chartY\n });\n const { startAngle , endAngle , innerRadius , outerRadius , circumference } = this.getProps([\n 'startAngle',\n 'endAngle',\n 'innerRadius',\n 'outerRadius',\n 'circumference'\n ], useFinalPosition);\n const rAdjust = this.options.spacing / 2;\n const _circumference = valueOrDefault(circumference, endAngle - startAngle);\n const betweenAngles = _circumference >= TAU || _angleBetween(angle, startAngle, endAngle);\n const withinRadius = _isBetween(distance, innerRadius + rAdjust, outerRadius + rAdjust);\n return betweenAngles && withinRadius;\n }\n getCenterPoint(useFinalPosition) {\n const { x , y , startAngle , endAngle , innerRadius , outerRadius } = this.getProps([\n 'x',\n 'y',\n 'startAngle',\n 'endAngle',\n 'innerRadius',\n 'outerRadius'\n ], useFinalPosition);\n const { offset , spacing } = this.options;\n const halfAngle = (startAngle + endAngle) / 2;\n const halfRadius = (innerRadius + outerRadius + spacing + offset) / 2;\n return {\n x: x + Math.cos(halfAngle) * halfRadius,\n y: y + Math.sin(halfAngle) * halfRadius\n };\n }\n tooltipPosition(useFinalPosition) {\n return this.getCenterPoint(useFinalPosition);\n }\n draw(ctx) {\n const { options , circumference } = this;\n const offset = (options.offset || 0) / 4;\n const spacing = (options.spacing || 0) / 2;\n const circular = options.circular;\n this.pixelMargin = options.borderAlign === 'inner' ? 0.33 : 0;\n this.fullCircles = circumference > TAU ? Math.floor(circumference / TAU) : 0;\n if (circumference === 0 || this.innerRadius < 0 || this.outerRadius < 0) {\n return;\n }\n ctx.save();\n const halfAngle = (this.startAngle + this.endAngle) / 2;\n ctx.translate(Math.cos(halfAngle) * offset, Math.sin(halfAngle) * offset);\n const fix = 1 - Math.sin(Math.min(PI, circumference || 0));\n const radiusOffset = offset * fix;\n ctx.fillStyle = options.backgroundColor;\n ctx.strokeStyle = options.borderColor;\n drawArc(ctx, this, radiusOffset, spacing, circular);\n drawBorder(ctx, this, radiusOffset, spacing, circular);\n ctx.restore();\n }\n}\n\nfunction setStyle(ctx, options, style = options) {\n ctx.lineCap = valueOrDefault(style.borderCapStyle, options.borderCapStyle);\n ctx.setLineDash(valueOrDefault(style.borderDash, options.borderDash));\n ctx.lineDashOffset = valueOrDefault(style.borderDashOffset, options.borderDashOffset);\n ctx.lineJoin = valueOrDefault(style.borderJoinStyle, options.borderJoinStyle);\n ctx.lineWidth = valueOrDefault(style.borderWidth, options.borderWidth);\n ctx.strokeStyle = valueOrDefault(style.borderColor, options.borderColor);\n}\nfunction lineTo(ctx, previous, target) {\n ctx.lineTo(target.x, target.y);\n}\nfunction getLineMethod(options) {\n if (options.stepped) {\n return _steppedLineTo;\n }\n if (options.tension || options.cubicInterpolationMode === 'monotone') {\n return _bezierCurveTo;\n }\n return lineTo;\n}\nfunction pathVars(points, segment, params = {}) {\n const count = points.length;\n const { start: paramsStart = 0 , end: paramsEnd = count - 1 } = params;\n const { start: segmentStart , end: segmentEnd } = segment;\n const start = Math.max(paramsStart, segmentStart);\n const end = Math.min(paramsEnd, segmentEnd);\n const outside = paramsStart < segmentStart && paramsEnd < segmentStart || paramsStart > segmentEnd && paramsEnd > segmentEnd;\n return {\n count,\n start,\n loop: segment.loop,\n ilen: end < start && !outside ? count + end - start : end - start\n };\n}\n function pathSegment(ctx, line, segment, params) {\n const { points , options } = line;\n const { count , start , loop , ilen } = pathVars(points, segment, params);\n const lineMethod = getLineMethod(options);\n let { move =true , reverse } = params || {};\n let i, point, prev;\n for(i = 0; i <= ilen; ++i){\n point = points[(start + (reverse ? ilen - i : i)) % count];\n if (point.skip) {\n continue;\n } else if (move) {\n ctx.moveTo(point.x, point.y);\n move = false;\n } else {\n lineMethod(ctx, prev, point, reverse, options.stepped);\n }\n prev = point;\n }\n if (loop) {\n point = points[(start + (reverse ? ilen : 0)) % count];\n lineMethod(ctx, prev, point, reverse, options.stepped);\n }\n return !!loop;\n}\n function fastPathSegment(ctx, line, segment, params) {\n const points = line.points;\n const { count , start , ilen } = pathVars(points, segment, params);\n const { move =true , reverse } = params || {};\n let avgX = 0;\n let countX = 0;\n let i, point, prevX, minY, maxY, lastY;\n const pointIndex = (index)=>(start + (reverse ? ilen - index : index)) % count;\n const drawX = ()=>{\n if (minY !== maxY) {\n ctx.lineTo(avgX, maxY);\n ctx.lineTo(avgX, minY);\n ctx.lineTo(avgX, lastY);\n }\n };\n if (move) {\n point = points[pointIndex(0)];\n ctx.moveTo(point.x, point.y);\n }\n for(i = 0; i <= ilen; ++i){\n point = points[pointIndex(i)];\n if (point.skip) {\n continue;\n }\n const x = point.x;\n const y = point.y;\n const truncX = x | 0;\n if (truncX === prevX) {\n if (y < minY) {\n minY = y;\n } else if (y > maxY) {\n maxY = y;\n }\n avgX = (countX * avgX + x) / ++countX;\n } else {\n drawX();\n ctx.lineTo(x, y);\n prevX = truncX;\n countX = 0;\n minY = maxY = y;\n }\n lastY = y;\n }\n drawX();\n}\n function _getSegmentMethod(line) {\n const opts = line.options;\n const borderDash = opts.borderDash && opts.borderDash.length;\n const useFastPath = !line._decimated && !line._loop && !opts.tension && opts.cubicInterpolationMode !== 'monotone' && !opts.stepped && !borderDash;\n return useFastPath ? fastPathSegment : pathSegment;\n}\n function _getInterpolationMethod(options) {\n if (options.stepped) {\n return _steppedInterpolation;\n }\n if (options.tension || options.cubicInterpolationMode === 'monotone') {\n return _bezierInterpolation;\n }\n return _pointInLine;\n}\nfunction strokePathWithCache(ctx, line, start, count) {\n let path = line._path;\n if (!path) {\n path = line._path = new Path2D();\n if (line.path(path, start, count)) {\n path.closePath();\n }\n }\n setStyle(ctx, line.options);\n ctx.stroke(path);\n}\nfunction strokePathDirect(ctx, line, start, count) {\n const { segments , options } = line;\n const segmentMethod = _getSegmentMethod(line);\n for (const segment of segments){\n setStyle(ctx, options, segment.style);\n ctx.beginPath();\n if (segmentMethod(ctx, line, segment, {\n start,\n end: start + count - 1\n })) {\n ctx.closePath();\n }\n ctx.stroke();\n }\n}\nconst usePath2D = typeof Path2D === 'function';\nfunction draw(ctx, line, start, count) {\n if (usePath2D && !line.options.segment) {\n strokePathWithCache(ctx, line, start, count);\n } else {\n strokePathDirect(ctx, line, start, count);\n }\n}\nclass LineElement extends Element {\n static id = 'line';\n static defaults = {\n borderCapStyle: 'butt',\n borderDash: [],\n borderDashOffset: 0,\n borderJoinStyle: 'miter',\n borderWidth: 3,\n capBezierPoints: true,\n cubicInterpolationMode: 'default',\n fill: false,\n spanGaps: false,\n stepped: false,\n tension: 0\n };\n static defaultRoutes = {\n backgroundColor: 'backgroundColor',\n borderColor: 'borderColor'\n };\n static descriptors = {\n _scriptable: true,\n _indexable: (name)=>name !== 'borderDash' && name !== 'fill'\n };\n constructor(cfg){\n super();\n this.animated = true;\n this.options = undefined;\n this._chart = undefined;\n this._loop = undefined;\n this._fullLoop = undefined;\n this._path = undefined;\n this._points = undefined;\n this._segments = undefined;\n this._decimated = false;\n this._pointsUpdated = false;\n this._datasetIndex = undefined;\n if (cfg) {\n Object.assign(this, cfg);\n }\n }\n updateControlPoints(chartArea, indexAxis) {\n const options = this.options;\n if ((options.tension || options.cubicInterpolationMode === 'monotone') && !options.stepped && !this._pointsUpdated) {\n const loop = options.spanGaps ? this._loop : this._fullLoop;\n _updateBezierControlPoints(this._points, options, chartArea, loop, indexAxis);\n this._pointsUpdated = true;\n }\n }\n set points(points) {\n this._points = points;\n delete this._segments;\n delete this._path;\n this._pointsUpdated = false;\n }\n get points() {\n return this._points;\n }\n get segments() {\n return this._segments || (this._segments = _computeSegments(this, this.options.segment));\n }\n first() {\n const segments = this.segments;\n const points = this.points;\n return segments.length && points[segments[0].start];\n }\n last() {\n const segments = this.segments;\n const points = this.points;\n const count = segments.length;\n return count && points[segments[count - 1].end];\n }\n interpolate(point, property) {\n const options = this.options;\n const value = point[property];\n const points = this.points;\n const segments = _boundSegments(this, {\n property,\n start: value,\n end: value\n });\n if (!segments.length) {\n return;\n }\n const result = [];\n const _interpolate = _getInterpolationMethod(options);\n let i, ilen;\n for(i = 0, ilen = segments.length; i < ilen; ++i){\n const { start , end } = segments[i];\n const p1 = points[start];\n const p2 = points[end];\n if (p1 === p2) {\n result.push(p1);\n continue;\n }\n const t = Math.abs((value - p1[property]) / (p2[property] - p1[property]));\n const interpolated = _interpolate(p1, p2, t, options.stepped);\n interpolated[property] = point[property];\n result.push(interpolated);\n }\n return result.length === 1 ? result[0] : result;\n }\n pathSegment(ctx, segment, params) {\n const segmentMethod = _getSegmentMethod(this);\n return segmentMethod(ctx, this, segment, params);\n }\n path(ctx, start, count) {\n const segments = this.segments;\n const segmentMethod = _getSegmentMethod(this);\n let loop = this._loop;\n start = start || 0;\n count = count || this.points.length - start;\n for (const segment of segments){\n loop &= segmentMethod(ctx, this, segment, {\n start,\n end: start + count - 1\n });\n }\n return !!loop;\n }\n draw(ctx, chartArea, start, count) {\n const options = this.options || {};\n const points = this.points || [];\n if (points.length && options.borderWidth) {\n ctx.save();\n draw(ctx, this, start, count);\n ctx.restore();\n }\n if (this.animated) {\n this._pointsUpdated = false;\n this._path = undefined;\n }\n }\n}\n\nfunction inRange$1(el, pos, axis, useFinalPosition) {\n const options = el.options;\n const { [axis]: value } = el.getProps([\n axis\n ], useFinalPosition);\n return Math.abs(pos - value) < options.radius + options.hitRadius;\n}\nclass PointElement extends Element {\n static id = 'point';\n /**\n * @type {any}\n */ static defaults = {\n borderWidth: 1,\n hitRadius: 1,\n hoverBorderWidth: 1,\n hoverRadius: 4,\n pointStyle: 'circle',\n radius: 3,\n rotation: 0\n };\n /**\n * @type {any}\n */ static defaultRoutes = {\n backgroundColor: 'backgroundColor',\n borderColor: 'borderColor'\n };\n constructor(cfg){\n super();\n this.options = undefined;\n this.parsed = undefined;\n this.skip = undefined;\n this.stop = undefined;\n if (cfg) {\n Object.assign(this, cfg);\n }\n }\n inRange(mouseX, mouseY, useFinalPosition) {\n const options = this.options;\n const { x , y } = this.getProps([\n 'x',\n 'y'\n ], useFinalPosition);\n return Math.pow(mouseX - x, 2) + Math.pow(mouseY - y, 2) < Math.pow(options.hitRadius + options.radius, 2);\n }\n inXRange(mouseX, useFinalPosition) {\n return inRange$1(this, mouseX, 'x', useFinalPosition);\n }\n inYRange(mouseY, useFinalPosition) {\n return inRange$1(this, mouseY, 'y', useFinalPosition);\n }\n getCenterPoint(useFinalPosition) {\n const { x , y } = this.getProps([\n 'x',\n 'y'\n ], useFinalPosition);\n return {\n x,\n y\n };\n }\n size(options) {\n options = options || this.options || {};\n let radius = options.radius || 0;\n radius = Math.max(radius, radius && options.hoverRadius || 0);\n const borderWidth = radius && options.borderWidth || 0;\n return (radius + borderWidth) * 2;\n }\n draw(ctx, area) {\n const options = this.options;\n if (this.skip || options.radius < 0.1 || !_isPointInArea(this, area, this.size(options) / 2)) {\n return;\n }\n ctx.strokeStyle = options.borderColor;\n ctx.lineWidth = options.borderWidth;\n ctx.fillStyle = options.backgroundColor;\n drawPoint(ctx, options, this.x, this.y);\n }\n getRange() {\n const options = this.options || {};\n // @ts-expect-error Fallbacks should never be hit in practice\n return options.radius + options.hitRadius;\n }\n}\n\nfunction getBarBounds(bar, useFinalPosition) {\n const { x , y , base , width , height } = bar.getProps([\n 'x',\n 'y',\n 'base',\n 'width',\n 'height'\n ], useFinalPosition);\n let left, right, top, bottom, half;\n if (bar.horizontal) {\n half = height / 2;\n left = Math.min(x, base);\n right = Math.max(x, base);\n top = y - half;\n bottom = y + half;\n } else {\n half = width / 2;\n left = x - half;\n right = x + half;\n top = Math.min(y, base);\n bottom = Math.max(y, base);\n }\n return {\n left,\n top,\n right,\n bottom\n };\n}\nfunction skipOrLimit(skip, value, min, max) {\n return skip ? 0 : _limitValue(value, min, max);\n}\nfunction parseBorderWidth(bar, maxW, maxH) {\n const value = bar.options.borderWidth;\n const skip = bar.borderSkipped;\n const o = toTRBL(value);\n return {\n t: skipOrLimit(skip.top, o.top, 0, maxH),\n r: skipOrLimit(skip.right, o.right, 0, maxW),\n b: skipOrLimit(skip.bottom, o.bottom, 0, maxH),\n l: skipOrLimit(skip.left, o.left, 0, maxW)\n };\n}\nfunction parseBorderRadius(bar, maxW, maxH) {\n const { enableBorderRadius } = bar.getProps([\n 'enableBorderRadius'\n ]);\n const value = bar.options.borderRadius;\n const o = toTRBLCorners(value);\n const maxR = Math.min(maxW, maxH);\n const skip = bar.borderSkipped;\n const enableBorder = enableBorderRadius || isObject(value);\n return {\n topLeft: skipOrLimit(!enableBorder || skip.top || skip.left, o.topLeft, 0, maxR),\n topRight: skipOrLimit(!enableBorder || skip.top || skip.right, o.topRight, 0, maxR),\n bottomLeft: skipOrLimit(!enableBorder || skip.bottom || skip.left, o.bottomLeft, 0, maxR),\n bottomRight: skipOrLimit(!enableBorder || skip.bottom || skip.right, o.bottomRight, 0, maxR)\n };\n}\nfunction boundingRects(bar) {\n const bounds = getBarBounds(bar);\n const width = bounds.right - bounds.left;\n const height = bounds.bottom - bounds.top;\n const border = parseBorderWidth(bar, width / 2, height / 2);\n const radius = parseBorderRadius(bar, width / 2, height / 2);\n return {\n outer: {\n x: bounds.left,\n y: bounds.top,\n w: width,\n h: height,\n radius\n },\n inner: {\n x: bounds.left + border.l,\n y: bounds.top + border.t,\n w: width - border.l - border.r,\n h: height - border.t - border.b,\n radius: {\n topLeft: Math.max(0, radius.topLeft - Math.max(border.t, border.l)),\n topRight: Math.max(0, radius.topRight - Math.max(border.t, border.r)),\n bottomLeft: Math.max(0, radius.bottomLeft - Math.max(border.b, border.l)),\n bottomRight: Math.max(0, radius.bottomRight - Math.max(border.b, border.r))\n }\n }\n };\n}\nfunction inRange(bar, x, y, useFinalPosition) {\n const skipX = x === null;\n const skipY = y === null;\n const skipBoth = skipX && skipY;\n const bounds = bar && !skipBoth && getBarBounds(bar, useFinalPosition);\n return bounds && (skipX || _isBetween(x, bounds.left, bounds.right)) && (skipY || _isBetween(y, bounds.top, bounds.bottom));\n}\nfunction hasRadius(radius) {\n return radius.topLeft || radius.topRight || radius.bottomLeft || radius.bottomRight;\n}\n function addNormalRectPath(ctx, rect) {\n ctx.rect(rect.x, rect.y, rect.w, rect.h);\n}\nfunction inflateRect(rect, amount, refRect = {}) {\n const x = rect.x !== refRect.x ? -amount : 0;\n const y = rect.y !== refRect.y ? -amount : 0;\n const w = (rect.x + rect.w !== refRect.x + refRect.w ? amount : 0) - x;\n const h = (rect.y + rect.h !== refRect.y + refRect.h ? amount : 0) - y;\n return {\n x: rect.x + x,\n y: rect.y + y,\n w: rect.w + w,\n h: rect.h + h,\n radius: rect.radius\n };\n}\nclass BarElement extends Element {\n static id = 'bar';\n static defaults = {\n borderSkipped: 'start',\n borderWidth: 0,\n borderRadius: 0,\n inflateAmount: 'auto',\n pointStyle: undefined\n };\n static defaultRoutes = {\n backgroundColor: 'backgroundColor',\n borderColor: 'borderColor'\n };\n constructor(cfg){\n super();\n this.options = undefined;\n this.horizontal = undefined;\n this.base = undefined;\n this.width = undefined;\n this.height = undefined;\n this.inflateAmount = undefined;\n if (cfg) {\n Object.assign(this, cfg);\n }\n }\n draw(ctx) {\n const { inflateAmount , options: { borderColor , backgroundColor } } = this;\n const { inner , outer } = boundingRects(this);\n const addRectPath = hasRadius(outer.radius) ? addRoundedRectPath : addNormalRectPath;\n ctx.save();\n if (outer.w !== inner.w || outer.h !== inner.h) {\n ctx.beginPath();\n addRectPath(ctx, inflateRect(outer, inflateAmount, inner));\n ctx.clip();\n addRectPath(ctx, inflateRect(inner, -inflateAmount, outer));\n ctx.fillStyle = borderColor;\n ctx.fill('evenodd');\n }\n ctx.beginPath();\n addRectPath(ctx, inflateRect(inner, inflateAmount));\n ctx.fillStyle = backgroundColor;\n ctx.fill();\n ctx.restore();\n }\n inRange(mouseX, mouseY, useFinalPosition) {\n return inRange(this, mouseX, mouseY, useFinalPosition);\n }\n inXRange(mouseX, useFinalPosition) {\n return inRange(this, mouseX, null, useFinalPosition);\n }\n inYRange(mouseY, useFinalPosition) {\n return inRange(this, null, mouseY, useFinalPosition);\n }\n getCenterPoint(useFinalPosition) {\n const { x , y , base , horizontal } = this.getProps([\n 'x',\n 'y',\n 'base',\n 'horizontal'\n ], useFinalPosition);\n return {\n x: horizontal ? (x + base) / 2 : x,\n y: horizontal ? y : (y + base) / 2\n };\n }\n getRange(axis) {\n return axis === 'x' ? this.width / 2 : this.height / 2;\n }\n}\n\nvar elements = /*#__PURE__*/Object.freeze({\n__proto__: null,\nArcElement: ArcElement,\nLineElement: LineElement,\nPointElement: PointElement,\nBarElement: BarElement\n});\n\nconst BORDER_COLORS = [\n 'rgb(54, 162, 235)',\n 'rgb(255, 99, 132)',\n 'rgb(255, 159, 64)',\n 'rgb(255, 205, 86)',\n 'rgb(75, 192, 192)',\n 'rgb(153, 102, 255)',\n 'rgb(201, 203, 207)' // grey\n];\n// Border colors with 50% transparency\nconst BACKGROUND_COLORS = /* #__PURE__ */ BORDER_COLORS.map((color)=>color.replace('rgb(', 'rgba(').replace(')', ', 0.5)'));\nfunction getBorderColor(i) {\n return BORDER_COLORS[i % BORDER_COLORS.length];\n}\nfunction getBackgroundColor(i) {\n return BACKGROUND_COLORS[i % BACKGROUND_COLORS.length];\n}\nfunction colorizeDefaultDataset(dataset, i) {\n dataset.borderColor = getBorderColor(i);\n dataset.backgroundColor = getBackgroundColor(i);\n return ++i;\n}\nfunction colorizeDoughnutDataset(dataset, i) {\n dataset.backgroundColor = dataset.data.map(()=>getBorderColor(i++));\n return i;\n}\nfunction colorizePolarAreaDataset(dataset, i) {\n dataset.backgroundColor = dataset.data.map(()=>getBackgroundColor(i++));\n return i;\n}\nfunction getColorizer(chart) {\n let i = 0;\n return (dataset, datasetIndex)=>{\n const controller = chart.getDatasetMeta(datasetIndex).controller;\n if (controller instanceof DoughnutController) {\n i = colorizeDoughnutDataset(dataset, i);\n } else if (controller instanceof PolarAreaController) {\n i = colorizePolarAreaDataset(dataset, i);\n } else if (controller) {\n i = colorizeDefaultDataset(dataset, i);\n }\n };\n}\nfunction containsColorsDefinitions(descriptors) {\n let k;\n for(k in descriptors){\n if (descriptors[k].borderColor || descriptors[k].backgroundColor) {\n return true;\n }\n }\n return false;\n}\nfunction containsColorsDefinition(descriptor) {\n return descriptor && (descriptor.borderColor || descriptor.backgroundColor);\n}\nvar plugin_colors = {\n id: 'colors',\n defaults: {\n enabled: true,\n forceOverride: false\n },\n beforeLayout (chart, _args, options) {\n if (!options.enabled) {\n return;\n }\n const { data: { datasets } , options: chartOptions } = chart.config;\n const { elements } = chartOptions;\n if (!options.forceOverride && (containsColorsDefinitions(datasets) || containsColorsDefinition(chartOptions) || elements && containsColorsDefinitions(elements))) {\n return;\n }\n const colorizer = getColorizer(chart);\n datasets.forEach(colorizer);\n }\n};\n\nfunction lttbDecimation(data, start, count, availableWidth, options) {\n const samples = options.samples || availableWidth;\n if (samples >= count) {\n return data.slice(start, start + count);\n }\n const decimated = [];\n const bucketWidth = (count - 2) / (samples - 2);\n let sampledIndex = 0;\n const endIndex = start + count - 1;\n let a = start;\n let i, maxAreaPoint, maxArea, area, nextA;\n decimated[sampledIndex++] = data[a];\n for(i = 0; i < samples - 2; i++){\n let avgX = 0;\n let avgY = 0;\n let j;\n const avgRangeStart = Math.floor((i + 1) * bucketWidth) + 1 + start;\n const avgRangeEnd = Math.min(Math.floor((i + 2) * bucketWidth) + 1, count) + start;\n const avgRangeLength = avgRangeEnd - avgRangeStart;\n for(j = avgRangeStart; j < avgRangeEnd; j++){\n avgX += data[j].x;\n avgY += data[j].y;\n }\n avgX /= avgRangeLength;\n avgY /= avgRangeLength;\n const rangeOffs = Math.floor(i * bucketWidth) + 1 + start;\n const rangeTo = Math.min(Math.floor((i + 1) * bucketWidth) + 1, count) + start;\n const { x: pointAx , y: pointAy } = data[a];\n maxArea = area = -1;\n for(j = rangeOffs; j < rangeTo; j++){\n area = 0.5 * Math.abs((pointAx - avgX) * (data[j].y - pointAy) - (pointAx - data[j].x) * (avgY - pointAy));\n if (area > maxArea) {\n maxArea = area;\n maxAreaPoint = data[j];\n nextA = j;\n }\n }\n decimated[sampledIndex++] = maxAreaPoint;\n a = nextA;\n }\n decimated[sampledIndex++] = data[endIndex];\n return decimated;\n}\nfunction minMaxDecimation(data, start, count, availableWidth) {\n let avgX = 0;\n let countX = 0;\n let i, point, x, y, prevX, minIndex, maxIndex, startIndex, minY, maxY;\n const decimated = [];\n const endIndex = start + count - 1;\n const xMin = data[start].x;\n const xMax = data[endIndex].x;\n const dx = xMax - xMin;\n for(i = start; i < start + count; ++i){\n point = data[i];\n x = (point.x - xMin) / dx * availableWidth;\n y = point.y;\n const truncX = x | 0;\n if (truncX === prevX) {\n if (y < minY) {\n minY = y;\n minIndex = i;\n } else if (y > maxY) {\n maxY = y;\n maxIndex = i;\n }\n avgX = (countX * avgX + point.x) / ++countX;\n } else {\n const lastIndex = i - 1;\n if (!isNullOrUndef(minIndex) && !isNullOrUndef(maxIndex)) {\n const intermediateIndex1 = Math.min(minIndex, maxIndex);\n const intermediateIndex2 = Math.max(minIndex, maxIndex);\n if (intermediateIndex1 !== startIndex && intermediateIndex1 !== lastIndex) {\n decimated.push({\n ...data[intermediateIndex1],\n x: avgX\n });\n }\n if (intermediateIndex2 !== startIndex && intermediateIndex2 !== lastIndex) {\n decimated.push({\n ...data[intermediateIndex2],\n x: avgX\n });\n }\n }\n if (i > 0 && lastIndex !== startIndex) {\n decimated.push(data[lastIndex]);\n }\n decimated.push(point);\n prevX = truncX;\n countX = 0;\n minY = maxY = y;\n minIndex = maxIndex = startIndex = i;\n }\n }\n return decimated;\n}\nfunction cleanDecimatedDataset(dataset) {\n if (dataset._decimated) {\n const data = dataset._data;\n delete dataset._decimated;\n delete dataset._data;\n Object.defineProperty(dataset, 'data', {\n configurable: true,\n enumerable: true,\n writable: true,\n value: data\n });\n }\n}\nfunction cleanDecimatedData(chart) {\n chart.data.datasets.forEach((dataset)=>{\n cleanDecimatedDataset(dataset);\n });\n}\nfunction getStartAndCountOfVisiblePointsSimplified(meta, points) {\n const pointCount = points.length;\n let start = 0;\n let count;\n const { iScale } = meta;\n const { min , max , minDefined , maxDefined } = iScale.getUserBounds();\n if (minDefined) {\n start = _limitValue(_lookupByKey(points, iScale.axis, min).lo, 0, pointCount - 1);\n }\n if (maxDefined) {\n count = _limitValue(_lookupByKey(points, iScale.axis, max).hi + 1, start, pointCount) - start;\n } else {\n count = pointCount - start;\n }\n return {\n start,\n count\n };\n}\nvar plugin_decimation = {\n id: 'decimation',\n defaults: {\n algorithm: 'min-max',\n enabled: false\n },\n beforeElementsUpdate: (chart, args, options)=>{\n if (!options.enabled) {\n cleanDecimatedData(chart);\n return;\n }\n const availableWidth = chart.width;\n chart.data.datasets.forEach((dataset, datasetIndex)=>{\n const { _data , indexAxis } = dataset;\n const meta = chart.getDatasetMeta(datasetIndex);\n const data = _data || dataset.data;\n if (resolve([\n indexAxis,\n chart.options.indexAxis\n ]) === 'y') {\n return;\n }\n if (!meta.controller.supportsDecimation) {\n return;\n }\n const xAxis = chart.scales[meta.xAxisID];\n if (xAxis.type !== 'linear' && xAxis.type !== 'time') {\n return;\n }\n if (chart.options.parsing) {\n return;\n }\n let { start , count } = getStartAndCountOfVisiblePointsSimplified(meta, data);\n const threshold = options.threshold || 4 * availableWidth;\n if (count <= threshold) {\n cleanDecimatedDataset(dataset);\n return;\n }\n if (isNullOrUndef(_data)) {\n dataset._data = data;\n delete dataset.data;\n Object.defineProperty(dataset, 'data', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this._decimated;\n },\n set: function(d) {\n this._data = d;\n }\n });\n }\n let decimated;\n switch(options.algorithm){\n case 'lttb':\n decimated = lttbDecimation(data, start, count, availableWidth, options);\n break;\n case 'min-max':\n decimated = minMaxDecimation(data, start, count, availableWidth);\n break;\n default:\n throw new Error(`Unsupported decimation algorithm '${options.algorithm}'`);\n }\n dataset._decimated = decimated;\n });\n },\n destroy (chart) {\n cleanDecimatedData(chart);\n }\n};\n\nfunction _segments(line, target, property) {\n const segments = line.segments;\n const points = line.points;\n const tpoints = target.points;\n const parts = [];\n for (const segment of segments){\n let { start , end } = segment;\n end = _findSegmentEnd(start, end, points);\n const bounds = _getBounds(property, points[start], points[end], segment.loop);\n if (!target.segments) {\n parts.push({\n source: segment,\n target: bounds,\n start: points[start],\n end: points[end]\n });\n continue;\n }\n const targetSegments = _boundSegments(target, bounds);\n for (const tgt of targetSegments){\n const subBounds = _getBounds(property, tpoints[tgt.start], tpoints[tgt.end], tgt.loop);\n const fillSources = _boundSegment(segment, points, subBounds);\n for (const fillSource of fillSources){\n parts.push({\n source: fillSource,\n target: tgt,\n start: {\n [property]: _getEdge(bounds, subBounds, 'start', Math.max)\n },\n end: {\n [property]: _getEdge(bounds, subBounds, 'end', Math.min)\n }\n });\n }\n }\n }\n return parts;\n}\nfunction _getBounds(property, first, last, loop) {\n if (loop) {\n return;\n }\n let start = first[property];\n let end = last[property];\n if (property === 'angle') {\n start = _normalizeAngle(start);\n end = _normalizeAngle(end);\n }\n return {\n property,\n start,\n end\n };\n}\nfunction _pointsFromSegments(boundary, line) {\n const { x =null , y =null } = boundary || {};\n const linePoints = line.points;\n const points = [];\n line.segments.forEach(({ start , end })=>{\n end = _findSegmentEnd(start, end, linePoints);\n const first = linePoints[start];\n const last = linePoints[end];\n if (y !== null) {\n points.push({\n x: first.x,\n y\n });\n points.push({\n x: last.x,\n y\n });\n } else if (x !== null) {\n points.push({\n x,\n y: first.y\n });\n points.push({\n x,\n y: last.y\n });\n }\n });\n return points;\n}\nfunction _findSegmentEnd(start, end, points) {\n for(; end > start; end--){\n const point = points[end];\n if (!isNaN(point.x) && !isNaN(point.y)) {\n break;\n }\n }\n return end;\n}\nfunction _getEdge(a, b, prop, fn) {\n if (a && b) {\n return fn(a[prop], b[prop]);\n }\n return a ? a[prop] : b ? b[prop] : 0;\n}\n\nfunction _createBoundaryLine(boundary, line) {\n let points = [];\n let _loop = false;\n if (isArray(boundary)) {\n _loop = true;\n points = boundary;\n } else {\n points = _pointsFromSegments(boundary, line);\n }\n return points.length ? new LineElement({\n points,\n options: {\n tension: 0\n },\n _loop,\n _fullLoop: _loop\n }) : null;\n}\nfunction _shouldApplyFill(source) {\n return source && source.fill !== false;\n}\n\nfunction _resolveTarget(sources, index, propagate) {\n const source = sources[index];\n let fill = source.fill;\n const visited = [\n index\n ];\n let target;\n if (!propagate) {\n return fill;\n }\n while(fill !== false && visited.indexOf(fill) === -1){\n if (!isNumberFinite(fill)) {\n return fill;\n }\n target = sources[fill];\n if (!target) {\n return false;\n }\n if (target.visible) {\n return fill;\n }\n visited.push(fill);\n fill = target.fill;\n }\n return false;\n}\n function _decodeFill(line, index, count) {\n const fill = parseFillOption(line);\n if (isObject(fill)) {\n return isNaN(fill.value) ? false : fill;\n }\n let target = parseFloat(fill);\n if (isNumberFinite(target) && Math.floor(target) === target) {\n return decodeTargetIndex(fill[0], index, target, count);\n }\n return [\n 'origin',\n 'start',\n 'end',\n 'stack',\n 'shape'\n ].indexOf(fill) >= 0 && fill;\n}\nfunction decodeTargetIndex(firstCh, index, target, count) {\n if (firstCh === '-' || firstCh === '+') {\n target = index + target;\n }\n if (target === index || target < 0 || target >= count) {\n return false;\n }\n return target;\n}\n function _getTargetPixel(fill, scale) {\n let pixel = null;\n if (fill === 'start') {\n pixel = scale.bottom;\n } else if (fill === 'end') {\n pixel = scale.top;\n } else if (isObject(fill)) {\n pixel = scale.getPixelForValue(fill.value);\n } else if (scale.getBasePixel) {\n pixel = scale.getBasePixel();\n }\n return pixel;\n}\n function _getTargetValue(fill, scale, startValue) {\n let value;\n if (fill === 'start') {\n value = startValue;\n } else if (fill === 'end') {\n value = scale.options.reverse ? scale.min : scale.max;\n } else if (isObject(fill)) {\n value = fill.value;\n } else {\n value = scale.getBaseValue();\n }\n return value;\n}\n function parseFillOption(line) {\n const options = line.options;\n const fillOption = options.fill;\n let fill = valueOrDefault(fillOption && fillOption.target, fillOption);\n if (fill === undefined) {\n fill = !!options.backgroundColor;\n }\n if (fill === false || fill === null) {\n return false;\n }\n if (fill === true) {\n return 'origin';\n }\n return fill;\n}\n\nfunction _buildStackLine(source) {\n const { scale , index , line } = source;\n const points = [];\n const segments = line.segments;\n const sourcePoints = line.points;\n const linesBelow = getLinesBelow(scale, index);\n linesBelow.push(_createBoundaryLine({\n x: null,\n y: scale.bottom\n }, line));\n for(let i = 0; i < segments.length; i++){\n const segment = segments[i];\n for(let j = segment.start; j <= segment.end; j++){\n addPointsBelow(points, sourcePoints[j], linesBelow);\n }\n }\n return new LineElement({\n points,\n options: {}\n });\n}\n function getLinesBelow(scale, index) {\n const below = [];\n const metas = scale.getMatchingVisibleMetas('line');\n for(let i = 0; i < metas.length; i++){\n const meta = metas[i];\n if (meta.index === index) {\n break;\n }\n if (!meta.hidden) {\n below.unshift(meta.dataset);\n }\n }\n return below;\n}\n function addPointsBelow(points, sourcePoint, linesBelow) {\n const postponed = [];\n for(let j = 0; j < linesBelow.length; j++){\n const line = linesBelow[j];\n const { first , last , point } = findPoint(line, sourcePoint, 'x');\n if (!point || first && last) {\n continue;\n }\n if (first) {\n postponed.unshift(point);\n } else {\n points.push(point);\n if (!last) {\n break;\n }\n }\n }\n points.push(...postponed);\n}\n function findPoint(line, sourcePoint, property) {\n const point = line.interpolate(sourcePoint, property);\n if (!point) {\n return {};\n }\n const pointValue = point[property];\n const segments = line.segments;\n const linePoints = line.points;\n let first = false;\n let last = false;\n for(let i = 0; i < segments.length; i++){\n const segment = segments[i];\n const firstValue = linePoints[segment.start][property];\n const lastValue = linePoints[segment.end][property];\n if (_isBetween(pointValue, firstValue, lastValue)) {\n first = pointValue === firstValue;\n last = pointValue === lastValue;\n break;\n }\n }\n return {\n first,\n last,\n point\n };\n}\n\nclass simpleArc {\n constructor(opts){\n this.x = opts.x;\n this.y = opts.y;\n this.radius = opts.radius;\n }\n pathSegment(ctx, bounds, opts) {\n const { x , y , radius } = this;\n bounds = bounds || {\n start: 0,\n end: TAU\n };\n ctx.arc(x, y, radius, bounds.end, bounds.start, true);\n return !opts.bounds;\n }\n interpolate(point) {\n const { x , y , radius } = this;\n const angle = point.angle;\n return {\n x: x + Math.cos(angle) * radius,\n y: y + Math.sin(angle) * radius,\n angle\n };\n }\n}\n\nfunction _getTarget(source) {\n const { chart , fill , line } = source;\n if (isNumberFinite(fill)) {\n return getLineByIndex(chart, fill);\n }\n if (fill === 'stack') {\n return _buildStackLine(source);\n }\n if (fill === 'shape') {\n return true;\n }\n const boundary = computeBoundary(source);\n if (boundary instanceof simpleArc) {\n return boundary;\n }\n return _createBoundaryLine(boundary, line);\n}\n function getLineByIndex(chart, index) {\n const meta = chart.getDatasetMeta(index);\n const visible = meta && chart.isDatasetVisible(index);\n return visible ? meta.dataset : null;\n}\nfunction computeBoundary(source) {\n const scale = source.scale || {};\n if (scale.getPointPositionForValue) {\n return computeCircularBoundary(source);\n }\n return computeLinearBoundary(source);\n}\nfunction computeLinearBoundary(source) {\n const { scale ={} , fill } = source;\n const pixel = _getTargetPixel(fill, scale);\n if (isNumberFinite(pixel)) {\n const horizontal = scale.isHorizontal();\n return {\n x: horizontal ? pixel : null,\n y: horizontal ? null : pixel\n };\n }\n return null;\n}\nfunction computeCircularBoundary(source) {\n const { scale , fill } = source;\n const options = scale.options;\n const length = scale.getLabels().length;\n const start = options.reverse ? scale.max : scale.min;\n const value = _getTargetValue(fill, scale, start);\n const target = [];\n if (options.grid.circular) {\n const center = scale.getPointPositionForValue(0, start);\n return new simpleArc({\n x: center.x,\n y: center.y,\n radius: scale.getDistanceFromCenterForValue(value)\n });\n }\n for(let i = 0; i < length; ++i){\n target.push(scale.getPointPositionForValue(i, value));\n }\n return target;\n}\n\nfunction _drawfill(ctx, source, area) {\n const target = _getTarget(source);\n const { line , scale , axis } = source;\n const lineOpts = line.options;\n const fillOption = lineOpts.fill;\n const color = lineOpts.backgroundColor;\n const { above =color , below =color } = fillOption || {};\n if (target && line.points.length) {\n clipArea(ctx, area);\n doFill(ctx, {\n line,\n target,\n above,\n below,\n area,\n scale,\n axis\n });\n unclipArea(ctx);\n }\n}\nfunction doFill(ctx, cfg) {\n const { line , target , above , below , area , scale } = cfg;\n const property = line._loop ? 'angle' : cfg.axis;\n ctx.save();\n if (property === 'x' && below !== above) {\n clipVertical(ctx, target, area.top);\n fill(ctx, {\n line,\n target,\n color: above,\n scale,\n property\n });\n ctx.restore();\n ctx.save();\n clipVertical(ctx, target, area.bottom);\n }\n fill(ctx, {\n line,\n target,\n color: below,\n scale,\n property\n });\n ctx.restore();\n}\nfunction clipVertical(ctx, target, clipY) {\n const { segments , points } = target;\n let first = true;\n let lineLoop = false;\n ctx.beginPath();\n for (const segment of segments){\n const { start , end } = segment;\n const firstPoint = points[start];\n const lastPoint = points[_findSegmentEnd(start, end, points)];\n if (first) {\n ctx.moveTo(firstPoint.x, firstPoint.y);\n first = false;\n } else {\n ctx.lineTo(firstPoint.x, clipY);\n ctx.lineTo(firstPoint.x, firstPoint.y);\n }\n lineLoop = !!target.pathSegment(ctx, segment, {\n move: lineLoop\n });\n if (lineLoop) {\n ctx.closePath();\n } else {\n ctx.lineTo(lastPoint.x, clipY);\n }\n }\n ctx.lineTo(target.first().x, clipY);\n ctx.closePath();\n ctx.clip();\n}\nfunction fill(ctx, cfg) {\n const { line , target , property , color , scale } = cfg;\n const segments = _segments(line, target, property);\n for (const { source: src , target: tgt , start , end } of segments){\n const { style: { backgroundColor =color } = {} } = src;\n const notShape = target !== true;\n ctx.save();\n ctx.fillStyle = backgroundColor;\n clipBounds(ctx, scale, notShape && _getBounds(property, start, end));\n ctx.beginPath();\n const lineLoop = !!line.pathSegment(ctx, src);\n let loop;\n if (notShape) {\n if (lineLoop) {\n ctx.closePath();\n } else {\n interpolatedLineTo(ctx, target, end, property);\n }\n const targetLoop = !!target.pathSegment(ctx, tgt, {\n move: lineLoop,\n reverse: true\n });\n loop = lineLoop && targetLoop;\n if (!loop) {\n interpolatedLineTo(ctx, target, start, property);\n }\n }\n ctx.closePath();\n ctx.fill(loop ? 'evenodd' : 'nonzero');\n ctx.restore();\n }\n}\nfunction clipBounds(ctx, scale, bounds) {\n const { top , bottom } = scale.chart.chartArea;\n const { property , start , end } = bounds || {};\n if (property === 'x') {\n ctx.beginPath();\n ctx.rect(start, top, end - start, bottom - top);\n ctx.clip();\n }\n}\nfunction interpolatedLineTo(ctx, target, point, property) {\n const interpolatedPoint = target.interpolate(point, property);\n if (interpolatedPoint) {\n ctx.lineTo(interpolatedPoint.x, interpolatedPoint.y);\n }\n}\n\nvar index = {\n id: 'filler',\n afterDatasetsUpdate (chart, _args, options) {\n const count = (chart.data.datasets || []).length;\n const sources = [];\n let meta, i, line, source;\n for(i = 0; i < count; ++i){\n meta = chart.getDatasetMeta(i);\n line = meta.dataset;\n source = null;\n if (line && line.options && line instanceof LineElement) {\n source = {\n visible: chart.isDatasetVisible(i),\n index: i,\n fill: _decodeFill(line, i, count),\n chart,\n axis: meta.controller.options.indexAxis,\n scale: meta.vScale,\n line\n };\n }\n meta.$filler = source;\n sources.push(source);\n }\n for(i = 0; i < count; ++i){\n source = sources[i];\n if (!source || source.fill === false) {\n continue;\n }\n source.fill = _resolveTarget(sources, i, options.propagate);\n }\n },\n beforeDraw (chart, _args, options) {\n const draw = options.drawTime === 'beforeDraw';\n const metasets = chart.getSortedVisibleDatasetMetas();\n const area = chart.chartArea;\n for(let i = metasets.length - 1; i >= 0; --i){\n const source = metasets[i].$filler;\n if (!source) {\n continue;\n }\n source.line.updateControlPoints(area, source.axis);\n if (draw && source.fill) {\n _drawfill(chart.ctx, source, area);\n }\n }\n },\n beforeDatasetsDraw (chart, _args, options) {\n if (options.drawTime !== 'beforeDatasetsDraw') {\n return;\n }\n const metasets = chart.getSortedVisibleDatasetMetas();\n for(let i = metasets.length - 1; i >= 0; --i){\n const source = metasets[i].$filler;\n if (_shouldApplyFill(source)) {\n _drawfill(chart.ctx, source, chart.chartArea);\n }\n }\n },\n beforeDatasetDraw (chart, args, options) {\n const source = args.meta.$filler;\n if (!_shouldApplyFill(source) || options.drawTime !== 'beforeDatasetDraw') {\n return;\n }\n _drawfill(chart.ctx, source, chart.chartArea);\n },\n defaults: {\n propagate: true,\n drawTime: 'beforeDatasetDraw'\n }\n};\n\nconst getBoxSize = (labelOpts, fontSize)=>{\n let { boxHeight =fontSize , boxWidth =fontSize } = labelOpts;\n if (labelOpts.usePointStyle) {\n boxHeight = Math.min(boxHeight, fontSize);\n boxWidth = labelOpts.pointStyleWidth || Math.min(boxWidth, fontSize);\n }\n return {\n boxWidth,\n boxHeight,\n itemHeight: Math.max(fontSize, boxHeight)\n };\n};\nconst itemsEqual = (a, b)=>a !== null && b !== null && a.datasetIndex === b.datasetIndex && a.index === b.index;\nclass Legend extends Element {\n constructor(config){\n super();\n this._added = false;\n this.legendHitBoxes = [];\n this._hoveredItem = null;\n this.doughnutMode = false;\n this.chart = config.chart;\n this.options = config.options;\n this.ctx = config.ctx;\n this.legendItems = undefined;\n this.columnSizes = undefined;\n this.lineWidths = undefined;\n this.maxHeight = undefined;\n this.maxWidth = undefined;\n this.top = undefined;\n this.bottom = undefined;\n this.left = undefined;\n this.right = undefined;\n this.height = undefined;\n this.width = undefined;\n this._margins = undefined;\n this.position = undefined;\n this.weight = undefined;\n this.fullSize = undefined;\n }\n update(maxWidth, maxHeight, margins) {\n this.maxWidth = maxWidth;\n this.maxHeight = maxHeight;\n this._margins = margins;\n this.setDimensions();\n this.buildLabels();\n this.fit();\n }\n setDimensions() {\n if (this.isHorizontal()) {\n this.width = this.maxWidth;\n this.left = this._margins.left;\n this.right = this.width;\n } else {\n this.height = this.maxHeight;\n this.top = this._margins.top;\n this.bottom = this.height;\n }\n }\n buildLabels() {\n const labelOpts = this.options.labels || {};\n let legendItems = callback(labelOpts.generateLabels, [\n this.chart\n ], this) || [];\n if (labelOpts.filter) {\n legendItems = legendItems.filter((item)=>labelOpts.filter(item, this.chart.data));\n }\n if (labelOpts.sort) {\n legendItems = legendItems.sort((a, b)=>labelOpts.sort(a, b, this.chart.data));\n }\n if (this.options.reverse) {\n legendItems.reverse();\n }\n this.legendItems = legendItems;\n }\n fit() {\n const { options , ctx } = this;\n if (!options.display) {\n this.width = this.height = 0;\n return;\n }\n const labelOpts = options.labels;\n const labelFont = toFont(labelOpts.font);\n const fontSize = labelFont.size;\n const titleHeight = this._computeTitleHeight();\n const { boxWidth , itemHeight } = getBoxSize(labelOpts, fontSize);\n let width, height;\n ctx.font = labelFont.string;\n if (this.isHorizontal()) {\n width = this.maxWidth;\n height = this._fitRows(titleHeight, fontSize, boxWidth, itemHeight) + 10;\n } else {\n height = this.maxHeight;\n width = this._fitCols(titleHeight, labelFont, boxWidth, itemHeight) + 10;\n }\n this.width = Math.min(width, options.maxWidth || this.maxWidth);\n this.height = Math.min(height, options.maxHeight || this.maxHeight);\n }\n _fitRows(titleHeight, fontSize, boxWidth, itemHeight) {\n const { ctx , maxWidth , options: { labels: { padding } } } = this;\n const hitboxes = this.legendHitBoxes = [];\n const lineWidths = this.lineWidths = [\n 0\n ];\n const lineHeight = itemHeight + padding;\n let totalHeight = titleHeight;\n ctx.textAlign = 'left';\n ctx.textBaseline = 'middle';\n let row = -1;\n let top = -lineHeight;\n this.legendItems.forEach((legendItem, i)=>{\n const itemWidth = boxWidth + fontSize / 2 + ctx.measureText(legendItem.text).width;\n if (i === 0 || lineWidths[lineWidths.length - 1] + itemWidth + 2 * padding > maxWidth) {\n totalHeight += lineHeight;\n lineWidths[lineWidths.length - (i > 0 ? 0 : 1)] = 0;\n top += lineHeight;\n row++;\n }\n hitboxes[i] = {\n left: 0,\n top,\n row,\n width: itemWidth,\n height: itemHeight\n };\n lineWidths[lineWidths.length - 1] += itemWidth + padding;\n });\n return totalHeight;\n }\n _fitCols(titleHeight, labelFont, boxWidth, _itemHeight) {\n const { ctx , maxHeight , options: { labels: { padding } } } = this;\n const hitboxes = this.legendHitBoxes = [];\n const columnSizes = this.columnSizes = [];\n const heightLimit = maxHeight - titleHeight;\n let totalWidth = padding;\n let currentColWidth = 0;\n let currentColHeight = 0;\n let left = 0;\n let col = 0;\n this.legendItems.forEach((legendItem, i)=>{\n const { itemWidth , itemHeight } = calculateItemSize(boxWidth, labelFont, ctx, legendItem, _itemHeight);\n if (i > 0 && currentColHeight + itemHeight + 2 * padding > heightLimit) {\n totalWidth += currentColWidth + padding;\n columnSizes.push({\n width: currentColWidth,\n height: currentColHeight\n });\n left += currentColWidth + padding;\n col++;\n currentColWidth = currentColHeight = 0;\n }\n hitboxes[i] = {\n left,\n top: currentColHeight,\n col,\n width: itemWidth,\n height: itemHeight\n };\n currentColWidth = Math.max(currentColWidth, itemWidth);\n currentColHeight += itemHeight + padding;\n });\n totalWidth += currentColWidth;\n columnSizes.push({\n width: currentColWidth,\n height: currentColHeight\n });\n return totalWidth;\n }\n adjustHitBoxes() {\n if (!this.options.display) {\n return;\n }\n const titleHeight = this._computeTitleHeight();\n const { legendHitBoxes: hitboxes , options: { align , labels: { padding } , rtl } } = this;\n const rtlHelper = getRtlAdapter(rtl, this.left, this.width);\n if (this.isHorizontal()) {\n let row = 0;\n let left = _alignStartEnd(align, this.left + padding, this.right - this.lineWidths[row]);\n for (const hitbox of hitboxes){\n if (row !== hitbox.row) {\n row = hitbox.row;\n left = _alignStartEnd(align, this.left + padding, this.right - this.lineWidths[row]);\n }\n hitbox.top += this.top + titleHeight + padding;\n hitbox.left = rtlHelper.leftForLtr(rtlHelper.x(left), hitbox.width);\n left += hitbox.width + padding;\n }\n } else {\n let col = 0;\n let top = _alignStartEnd(align, this.top + titleHeight + padding, this.bottom - this.columnSizes[col].height);\n for (const hitbox1 of hitboxes){\n if (hitbox1.col !== col) {\n col = hitbox1.col;\n top = _alignStartEnd(align, this.top + titleHeight + padding, this.bottom - this.columnSizes[col].height);\n }\n hitbox1.top = top;\n hitbox1.left += this.left + padding;\n hitbox1.left = rtlHelper.leftForLtr(rtlHelper.x(hitbox1.left), hitbox1.width);\n top += hitbox1.height + padding;\n }\n }\n }\n isHorizontal() {\n return this.options.position === 'top' || this.options.position === 'bottom';\n }\n draw() {\n if (this.options.display) {\n const ctx = this.ctx;\n clipArea(ctx, this);\n this._draw();\n unclipArea(ctx);\n }\n }\n _draw() {\n const { options: opts , columnSizes , lineWidths , ctx } = this;\n const { align , labels: labelOpts } = opts;\n const defaultColor = defaults.color;\n const rtlHelper = getRtlAdapter(opts.rtl, this.left, this.width);\n const labelFont = toFont(labelOpts.font);\n const { padding } = labelOpts;\n const fontSize = labelFont.size;\n const halfFontSize = fontSize / 2;\n let cursor;\n this.drawTitle();\n ctx.textAlign = rtlHelper.textAlign('left');\n ctx.textBaseline = 'middle';\n ctx.lineWidth = 0.5;\n ctx.font = labelFont.string;\n const { boxWidth , boxHeight , itemHeight } = getBoxSize(labelOpts, fontSize);\n const drawLegendBox = function(x, y, legendItem) {\n if (isNaN(boxWidth) || boxWidth <= 0 || isNaN(boxHeight) || boxHeight < 0) {\n return;\n }\n ctx.save();\n const lineWidth = valueOrDefault(legendItem.lineWidth, 1);\n ctx.fillStyle = valueOrDefault(legendItem.fillStyle, defaultColor);\n ctx.lineCap = valueOrDefault(legendItem.lineCap, 'butt');\n ctx.lineDashOffset = valueOrDefault(legendItem.lineDashOffset, 0);\n ctx.lineJoin = valueOrDefault(legendItem.lineJoin, 'miter');\n ctx.lineWidth = lineWidth;\n ctx.strokeStyle = valueOrDefault(legendItem.strokeStyle, defaultColor);\n ctx.setLineDash(valueOrDefault(legendItem.lineDash, []));\n if (labelOpts.usePointStyle) {\n const drawOptions = {\n radius: boxHeight * Math.SQRT2 / 2,\n pointStyle: legendItem.pointStyle,\n rotation: legendItem.rotation,\n borderWidth: lineWidth\n };\n const centerX = rtlHelper.xPlus(x, boxWidth / 2);\n const centerY = y + halfFontSize;\n drawPointLegend(ctx, drawOptions, centerX, centerY, labelOpts.pointStyleWidth && boxWidth);\n } else {\n const yBoxTop = y + Math.max((fontSize - boxHeight) / 2, 0);\n const xBoxLeft = rtlHelper.leftForLtr(x, boxWidth);\n const borderRadius = toTRBLCorners(legendItem.borderRadius);\n ctx.beginPath();\n if (Object.values(borderRadius).some((v)=>v !== 0)) {\n addRoundedRectPath(ctx, {\n x: xBoxLeft,\n y: yBoxTop,\n w: boxWidth,\n h: boxHeight,\n radius: borderRadius\n });\n } else {\n ctx.rect(xBoxLeft, yBoxTop, boxWidth, boxHeight);\n }\n ctx.fill();\n if (lineWidth !== 0) {\n ctx.stroke();\n }\n }\n ctx.restore();\n };\n const fillText = function(x, y, legendItem) {\n renderText(ctx, legendItem.text, x, y + itemHeight / 2, labelFont, {\n strikethrough: legendItem.hidden,\n textAlign: rtlHelper.textAlign(legendItem.textAlign)\n });\n };\n const isHorizontal = this.isHorizontal();\n const titleHeight = this._computeTitleHeight();\n if (isHorizontal) {\n cursor = {\n x: _alignStartEnd(align, this.left + padding, this.right - lineWidths[0]),\n y: this.top + padding + titleHeight,\n line: 0\n };\n } else {\n cursor = {\n x: this.left + padding,\n y: _alignStartEnd(align, this.top + titleHeight + padding, this.bottom - columnSizes[0].height),\n line: 0\n };\n }\n overrideTextDirection(this.ctx, opts.textDirection);\n const lineHeight = itemHeight + padding;\n this.legendItems.forEach((legendItem, i)=>{\n ctx.strokeStyle = legendItem.fontColor;\n ctx.fillStyle = legendItem.fontColor;\n const textWidth = ctx.measureText(legendItem.text).width;\n const textAlign = rtlHelper.textAlign(legendItem.textAlign || (legendItem.textAlign = labelOpts.textAlign));\n const width = boxWidth + halfFontSize + textWidth;\n let x = cursor.x;\n let y = cursor.y;\n rtlHelper.setWidth(this.width);\n if (isHorizontal) {\n if (i > 0 && x + width + padding > this.right) {\n y = cursor.y += lineHeight;\n cursor.line++;\n x = cursor.x = _alignStartEnd(align, this.left + padding, this.right - lineWidths[cursor.line]);\n }\n } else if (i > 0 && y + lineHeight > this.bottom) {\n x = cursor.x = x + columnSizes[cursor.line].width + padding;\n cursor.line++;\n y = cursor.y = _alignStartEnd(align, this.top + titleHeight + padding, this.bottom - columnSizes[cursor.line].height);\n }\n const realX = rtlHelper.x(x);\n drawLegendBox(realX, y, legendItem);\n x = _textX(textAlign, x + boxWidth + halfFontSize, isHorizontal ? x + width : this.right, opts.rtl);\n fillText(rtlHelper.x(x), y, legendItem);\n if (isHorizontal) {\n cursor.x += width + padding;\n } else if (typeof legendItem.text !== 'string') {\n const fontLineHeight = labelFont.lineHeight;\n cursor.y += calculateLegendItemHeight(legendItem, fontLineHeight);\n } else {\n cursor.y += lineHeight;\n }\n });\n restoreTextDirection(this.ctx, opts.textDirection);\n }\n drawTitle() {\n const opts = this.options;\n const titleOpts = opts.title;\n const titleFont = toFont(titleOpts.font);\n const titlePadding = toPadding(titleOpts.padding);\n if (!titleOpts.display) {\n return;\n }\n const rtlHelper = getRtlAdapter(opts.rtl, this.left, this.width);\n const ctx = this.ctx;\n const position = titleOpts.position;\n const halfFontSize = titleFont.size / 2;\n const topPaddingPlusHalfFontSize = titlePadding.top + halfFontSize;\n let y;\n let left = this.left;\n let maxWidth = this.width;\n if (this.isHorizontal()) {\n maxWidth = Math.max(...this.lineWidths);\n y = this.top + topPaddingPlusHalfFontSize;\n left = _alignStartEnd(opts.align, left, this.right - maxWidth);\n } else {\n const maxHeight = this.columnSizes.reduce((acc, size)=>Math.max(acc, size.height), 0);\n y = topPaddingPlusHalfFontSize + _alignStartEnd(opts.align, this.top, this.bottom - maxHeight - opts.labels.padding - this._computeTitleHeight());\n }\n const x = _alignStartEnd(position, left, left + maxWidth);\n ctx.textAlign = rtlHelper.textAlign(_toLeftRightCenter(position));\n ctx.textBaseline = 'middle';\n ctx.strokeStyle = titleOpts.color;\n ctx.fillStyle = titleOpts.color;\n ctx.font = titleFont.string;\n renderText(ctx, titleOpts.text, x, y, titleFont);\n }\n _computeTitleHeight() {\n const titleOpts = this.options.title;\n const titleFont = toFont(titleOpts.font);\n const titlePadding = toPadding(titleOpts.padding);\n return titleOpts.display ? titleFont.lineHeight + titlePadding.height : 0;\n }\n _getLegendItemAt(x, y) {\n let i, hitBox, lh;\n if (_isBetween(x, this.left, this.right) && _isBetween(y, this.top, this.bottom)) {\n lh = this.legendHitBoxes;\n for(i = 0; i < lh.length; ++i){\n hitBox = lh[i];\n if (_isBetween(x, hitBox.left, hitBox.left + hitBox.width) && _isBetween(y, hitBox.top, hitBox.top + hitBox.height)) {\n return this.legendItems[i];\n }\n }\n }\n return null;\n }\n handleEvent(e) {\n const opts = this.options;\n if (!isListened(e.type, opts)) {\n return;\n }\n const hoveredItem = this._getLegendItemAt(e.x, e.y);\n if (e.type === 'mousemove' || e.type === 'mouseout') {\n const previous = this._hoveredItem;\n const sameItem = itemsEqual(previous, hoveredItem);\n if (previous && !sameItem) {\n callback(opts.onLeave, [\n e,\n previous,\n this\n ], this);\n }\n this._hoveredItem = hoveredItem;\n if (hoveredItem && !sameItem) {\n callback(opts.onHover, [\n e,\n hoveredItem,\n this\n ], this);\n }\n } else if (hoveredItem) {\n callback(opts.onClick, [\n e,\n hoveredItem,\n this\n ], this);\n }\n }\n}\nfunction calculateItemSize(boxWidth, labelFont, ctx, legendItem, _itemHeight) {\n const itemWidth = calculateItemWidth(legendItem, boxWidth, labelFont, ctx);\n const itemHeight = calculateItemHeight(_itemHeight, legendItem, labelFont.lineHeight);\n return {\n itemWidth,\n itemHeight\n };\n}\nfunction calculateItemWidth(legendItem, boxWidth, labelFont, ctx) {\n let legendItemText = legendItem.text;\n if (legendItemText && typeof legendItemText !== 'string') {\n legendItemText = legendItemText.reduce((a, b)=>a.length > b.length ? a : b);\n }\n return boxWidth + labelFont.size / 2 + ctx.measureText(legendItemText).width;\n}\nfunction calculateItemHeight(_itemHeight, legendItem, fontLineHeight) {\n let itemHeight = _itemHeight;\n if (typeof legendItem.text !== 'string') {\n itemHeight = calculateLegendItemHeight(legendItem, fontLineHeight);\n }\n return itemHeight;\n}\nfunction calculateLegendItemHeight(legendItem, fontLineHeight) {\n const labelHeight = legendItem.text ? legendItem.text.length + 0.5 : 0;\n return fontLineHeight * labelHeight;\n}\nfunction isListened(type, opts) {\n if ((type === 'mousemove' || type === 'mouseout') && (opts.onHover || opts.onLeave)) {\n return true;\n }\n if (opts.onClick && (type === 'click' || type === 'mouseup')) {\n return true;\n }\n return false;\n}\nvar plugin_legend = {\n id: 'legend',\n _element: Legend,\n start (chart, _args, options) {\n const legend = chart.legend = new Legend({\n ctx: chart.ctx,\n options,\n chart\n });\n layouts.configure(chart, legend, options);\n layouts.addBox(chart, legend);\n },\n stop (chart) {\n layouts.removeBox(chart, chart.legend);\n delete chart.legend;\n },\n beforeUpdate (chart, _args, options) {\n const legend = chart.legend;\n layouts.configure(chart, legend, options);\n legend.options = options;\n },\n afterUpdate (chart) {\n const legend = chart.legend;\n legend.buildLabels();\n legend.adjustHitBoxes();\n },\n afterEvent (chart, args) {\n if (!args.replay) {\n chart.legend.handleEvent(args.event);\n }\n },\n defaults: {\n display: true,\n position: 'top',\n align: 'center',\n fullSize: true,\n reverse: false,\n weight: 1000,\n onClick (e, legendItem, legend) {\n const index = legendItem.datasetIndex;\n const ci = legend.chart;\n if (ci.isDatasetVisible(index)) {\n ci.hide(index);\n legendItem.hidden = true;\n } else {\n ci.show(index);\n legendItem.hidden = false;\n }\n },\n onHover: null,\n onLeave: null,\n labels: {\n color: (ctx)=>ctx.chart.options.color,\n boxWidth: 40,\n padding: 10,\n generateLabels (chart) {\n const datasets = chart.data.datasets;\n const { labels: { usePointStyle , pointStyle , textAlign , color , useBorderRadius , borderRadius } } = chart.legend.options;\n return chart._getSortedDatasetMetas().map((meta)=>{\n const style = meta.controller.getStyle(usePointStyle ? 0 : undefined);\n const borderWidth = toPadding(style.borderWidth);\n return {\n text: datasets[meta.index].label,\n fillStyle: style.backgroundColor,\n fontColor: color,\n hidden: !meta.visible,\n lineCap: style.borderCapStyle,\n lineDash: style.borderDash,\n lineDashOffset: style.borderDashOffset,\n lineJoin: style.borderJoinStyle,\n lineWidth: (borderWidth.width + borderWidth.height) / 4,\n strokeStyle: style.borderColor,\n pointStyle: pointStyle || style.pointStyle,\n rotation: style.rotation,\n textAlign: textAlign || style.textAlign,\n borderRadius: useBorderRadius && (borderRadius || style.borderRadius),\n datasetIndex: meta.index\n };\n }, this);\n }\n },\n title: {\n color: (ctx)=>ctx.chart.options.color,\n display: false,\n position: 'center',\n text: ''\n }\n },\n descriptors: {\n _scriptable: (name)=>!name.startsWith('on'),\n labels: {\n _scriptable: (name)=>![\n 'generateLabels',\n 'filter',\n 'sort'\n ].includes(name)\n }\n }\n};\n\nclass Title extends Element {\n constructor(config){\n super();\n this.chart = config.chart;\n this.options = config.options;\n this.ctx = config.ctx;\n this._padding = undefined;\n this.top = undefined;\n this.bottom = undefined;\n this.left = undefined;\n this.right = undefined;\n this.width = undefined;\n this.height = undefined;\n this.position = undefined;\n this.weight = undefined;\n this.fullSize = undefined;\n }\n update(maxWidth, maxHeight) {\n const opts = this.options;\n this.left = 0;\n this.top = 0;\n if (!opts.display) {\n this.width = this.height = this.right = this.bottom = 0;\n return;\n }\n this.width = this.right = maxWidth;\n this.height = this.bottom = maxHeight;\n const lineCount = isArray(opts.text) ? opts.text.length : 1;\n this._padding = toPadding(opts.padding);\n const textSize = lineCount * toFont(opts.font).lineHeight + this._padding.height;\n if (this.isHorizontal()) {\n this.height = textSize;\n } else {\n this.width = textSize;\n }\n }\n isHorizontal() {\n const pos = this.options.position;\n return pos === 'top' || pos === 'bottom';\n }\n _drawArgs(offset) {\n const { top , left , bottom , right , options } = this;\n const align = options.align;\n let rotation = 0;\n let maxWidth, titleX, titleY;\n if (this.isHorizontal()) {\n titleX = _alignStartEnd(align, left, right);\n titleY = top + offset;\n maxWidth = right - left;\n } else {\n if (options.position === 'left') {\n titleX = left + offset;\n titleY = _alignStartEnd(align, bottom, top);\n rotation = PI * -0.5;\n } else {\n titleX = right - offset;\n titleY = _alignStartEnd(align, top, bottom);\n rotation = PI * 0.5;\n }\n maxWidth = bottom - top;\n }\n return {\n titleX,\n titleY,\n maxWidth,\n rotation\n };\n }\n draw() {\n const ctx = this.ctx;\n const opts = this.options;\n if (!opts.display) {\n return;\n }\n const fontOpts = toFont(opts.font);\n const lineHeight = fontOpts.lineHeight;\n const offset = lineHeight / 2 + this._padding.top;\n const { titleX , titleY , maxWidth , rotation } = this._drawArgs(offset);\n renderText(ctx, opts.text, 0, 0, fontOpts, {\n color: opts.color,\n maxWidth,\n rotation,\n textAlign: _toLeftRightCenter(opts.align),\n textBaseline: 'middle',\n translation: [\n titleX,\n titleY\n ]\n });\n }\n}\nfunction createTitle(chart, titleOpts) {\n const title = new Title({\n ctx: chart.ctx,\n options: titleOpts,\n chart\n });\n layouts.configure(chart, title, titleOpts);\n layouts.addBox(chart, title);\n chart.titleBlock = title;\n}\nvar plugin_title = {\n id: 'title',\n _element: Title,\n start (chart, _args, options) {\n createTitle(chart, options);\n },\n stop (chart) {\n const titleBlock = chart.titleBlock;\n layouts.removeBox(chart, titleBlock);\n delete chart.titleBlock;\n },\n beforeUpdate (chart, _args, options) {\n const title = chart.titleBlock;\n layouts.configure(chart, title, options);\n title.options = options;\n },\n defaults: {\n align: 'center',\n display: false,\n font: {\n weight: 'bold'\n },\n fullSize: true,\n padding: 10,\n position: 'top',\n text: '',\n weight: 2000\n },\n defaultRoutes: {\n color: 'color'\n },\n descriptors: {\n _scriptable: true,\n _indexable: false\n }\n};\n\nconst map = new WeakMap();\nvar plugin_subtitle = {\n id: 'subtitle',\n start (chart, _args, options) {\n const title = new Title({\n ctx: chart.ctx,\n options,\n chart\n });\n layouts.configure(chart, title, options);\n layouts.addBox(chart, title);\n map.set(chart, title);\n },\n stop (chart) {\n layouts.removeBox(chart, map.get(chart));\n map.delete(chart);\n },\n beforeUpdate (chart, _args, options) {\n const title = map.get(chart);\n layouts.configure(chart, title, options);\n title.options = options;\n },\n defaults: {\n align: 'center',\n display: false,\n font: {\n weight: 'normal'\n },\n fullSize: true,\n padding: 0,\n position: 'top',\n text: '',\n weight: 1500\n },\n defaultRoutes: {\n color: 'color'\n },\n descriptors: {\n _scriptable: true,\n _indexable: false\n }\n};\n\nconst positioners = {\n average (items) {\n if (!items.length) {\n return false;\n }\n let i, len;\n let x = 0;\n let y = 0;\n let count = 0;\n for(i = 0, len = items.length; i < len; ++i){\n const el = items[i].element;\n if (el && el.hasValue()) {\n const pos = el.tooltipPosition();\n x += pos.x;\n y += pos.y;\n ++count;\n }\n }\n return {\n x: x / count,\n y: y / count\n };\n },\n nearest (items, eventPosition) {\n if (!items.length) {\n return false;\n }\n let x = eventPosition.x;\n let y = eventPosition.y;\n let minDistance = Number.POSITIVE_INFINITY;\n let i, len, nearestElement;\n for(i = 0, len = items.length; i < len; ++i){\n const el = items[i].element;\n if (el && el.hasValue()) {\n const center = el.getCenterPoint();\n const d = distanceBetweenPoints(eventPosition, center);\n if (d < minDistance) {\n minDistance = d;\n nearestElement = el;\n }\n }\n }\n if (nearestElement) {\n const tp = nearestElement.tooltipPosition();\n x = tp.x;\n y = tp.y;\n }\n return {\n x,\n y\n };\n }\n};\nfunction pushOrConcat(base, toPush) {\n if (toPush) {\n if (isArray(toPush)) {\n Array.prototype.push.apply(base, toPush);\n } else {\n base.push(toPush);\n }\n }\n return base;\n}\n function splitNewlines(str) {\n if ((typeof str === 'string' || str instanceof String) && str.indexOf('\\n') > -1) {\n return str.split('\\n');\n }\n return str;\n}\n function createTooltipItem(chart, item) {\n const { element , datasetIndex , index } = item;\n const controller = chart.getDatasetMeta(datasetIndex).controller;\n const { label , value } = controller.getLabelAndValue(index);\n return {\n chart,\n label,\n parsed: controller.getParsed(index),\n raw: chart.data.datasets[datasetIndex].data[index],\n formattedValue: value,\n dataset: controller.getDataset(),\n dataIndex: index,\n datasetIndex,\n element\n };\n}\n function getTooltipSize(tooltip, options) {\n const ctx = tooltip.chart.ctx;\n const { body , footer , title } = tooltip;\n const { boxWidth , boxHeight } = options;\n const bodyFont = toFont(options.bodyFont);\n const titleFont = toFont(options.titleFont);\n const footerFont = toFont(options.footerFont);\n const titleLineCount = title.length;\n const footerLineCount = footer.length;\n const bodyLineItemCount = body.length;\n const padding = toPadding(options.padding);\n let height = padding.height;\n let width = 0;\n let combinedBodyLength = body.reduce((count, bodyItem)=>count + bodyItem.before.length + bodyItem.lines.length + bodyItem.after.length, 0);\n combinedBodyLength += tooltip.beforeBody.length + tooltip.afterBody.length;\n if (titleLineCount) {\n height += titleLineCount * titleFont.lineHeight + (titleLineCount - 1) * options.titleSpacing + options.titleMarginBottom;\n }\n if (combinedBodyLength) {\n const bodyLineHeight = options.displayColors ? Math.max(boxHeight, bodyFont.lineHeight) : bodyFont.lineHeight;\n height += bodyLineItemCount * bodyLineHeight + (combinedBodyLength - bodyLineItemCount) * bodyFont.lineHeight + (combinedBodyLength - 1) * options.bodySpacing;\n }\n if (footerLineCount) {\n height += options.footerMarginTop + footerLineCount * footerFont.lineHeight + (footerLineCount - 1) * options.footerSpacing;\n }\n let widthPadding = 0;\n const maxLineWidth = function(line) {\n width = Math.max(width, ctx.measureText(line).width + widthPadding);\n };\n ctx.save();\n ctx.font = titleFont.string;\n each(tooltip.title, maxLineWidth);\n ctx.font = bodyFont.string;\n each(tooltip.beforeBody.concat(tooltip.afterBody), maxLineWidth);\n widthPadding = options.displayColors ? boxWidth + 2 + options.boxPadding : 0;\n each(body, (bodyItem)=>{\n each(bodyItem.before, maxLineWidth);\n each(bodyItem.lines, maxLineWidth);\n each(bodyItem.after, maxLineWidth);\n });\n widthPadding = 0;\n ctx.font = footerFont.string;\n each(tooltip.footer, maxLineWidth);\n ctx.restore();\n width += padding.width;\n return {\n width,\n height\n };\n}\nfunction determineYAlign(chart, size) {\n const { y , height } = size;\n if (y < height / 2) {\n return 'top';\n } else if (y > chart.height - height / 2) {\n return 'bottom';\n }\n return 'center';\n}\nfunction doesNotFitWithAlign(xAlign, chart, options, size) {\n const { x , width } = size;\n const caret = options.caretSize + options.caretPadding;\n if (xAlign === 'left' && x + width + caret > chart.width) {\n return true;\n }\n if (xAlign === 'right' && x - width - caret < 0) {\n return true;\n }\n}\nfunction determineXAlign(chart, options, size, yAlign) {\n const { x , width } = size;\n const { width: chartWidth , chartArea: { left , right } } = chart;\n let xAlign = 'center';\n if (yAlign === 'center') {\n xAlign = x <= (left + right) / 2 ? 'left' : 'right';\n } else if (x <= width / 2) {\n xAlign = 'left';\n } else if (x >= chartWidth - width / 2) {\n xAlign = 'right';\n }\n if (doesNotFitWithAlign(xAlign, chart, options, size)) {\n xAlign = 'center';\n }\n return xAlign;\n}\n function determineAlignment(chart, options, size) {\n const yAlign = size.yAlign || options.yAlign || determineYAlign(chart, size);\n return {\n xAlign: size.xAlign || options.xAlign || determineXAlign(chart, options, size, yAlign),\n yAlign\n };\n}\nfunction alignX(size, xAlign) {\n let { x , width } = size;\n if (xAlign === 'right') {\n x -= width;\n } else if (xAlign === 'center') {\n x -= width / 2;\n }\n return x;\n}\nfunction alignY(size, yAlign, paddingAndSize) {\n let { y , height } = size;\n if (yAlign === 'top') {\n y += paddingAndSize;\n } else if (yAlign === 'bottom') {\n y -= height + paddingAndSize;\n } else {\n y -= height / 2;\n }\n return y;\n}\n function getBackgroundPoint(options, size, alignment, chart) {\n const { caretSize , caretPadding , cornerRadius } = options;\n const { xAlign , yAlign } = alignment;\n const paddingAndSize = caretSize + caretPadding;\n const { topLeft , topRight , bottomLeft , bottomRight } = toTRBLCorners(cornerRadius);\n let x = alignX(size, xAlign);\n const y = alignY(size, yAlign, paddingAndSize);\n if (yAlign === 'center') {\n if (xAlign === 'left') {\n x += paddingAndSize;\n } else if (xAlign === 'right') {\n x -= paddingAndSize;\n }\n } else if (xAlign === 'left') {\n x -= Math.max(topLeft, bottomLeft) + caretSize;\n } else if (xAlign === 'right') {\n x += Math.max(topRight, bottomRight) + caretSize;\n }\n return {\n x: _limitValue(x, 0, chart.width - size.width),\n y: _limitValue(y, 0, chart.height - size.height)\n };\n}\nfunction getAlignedX(tooltip, align, options) {\n const padding = toPadding(options.padding);\n return align === 'center' ? tooltip.x + tooltip.width / 2 : align === 'right' ? tooltip.x + tooltip.width - padding.right : tooltip.x + padding.left;\n}\n function getBeforeAfterBodyLines(callback) {\n return pushOrConcat([], splitNewlines(callback));\n}\nfunction createTooltipContext(parent, tooltip, tooltipItems) {\n return createContext(parent, {\n tooltip,\n tooltipItems,\n type: 'tooltip'\n });\n}\nfunction overrideCallbacks(callbacks, context) {\n const override = context && context.dataset && context.dataset.tooltip && context.dataset.tooltip.callbacks;\n return override ? callbacks.override(override) : callbacks;\n}\nconst defaultCallbacks = {\n beforeTitle: noop,\n title (tooltipItems) {\n if (tooltipItems.length > 0) {\n const item = tooltipItems[0];\n const labels = item.chart.data.labels;\n const labelCount = labels ? labels.length : 0;\n if (this && this.options && this.options.mode === 'dataset') {\n return item.dataset.label || '';\n } else if (item.label) {\n return item.label;\n } else if (labelCount > 0 && item.dataIndex < labelCount) {\n return labels[item.dataIndex];\n }\n }\n return '';\n },\n afterTitle: noop,\n beforeBody: noop,\n beforeLabel: noop,\n label (tooltipItem) {\n if (this && this.options && this.options.mode === 'dataset') {\n return tooltipItem.label + ': ' + tooltipItem.formattedValue || tooltipItem.formattedValue;\n }\n let label = tooltipItem.dataset.label || '';\n if (label) {\n label += ': ';\n }\n const value = tooltipItem.formattedValue;\n if (!isNullOrUndef(value)) {\n label += value;\n }\n return label;\n },\n labelColor (tooltipItem) {\n const meta = tooltipItem.chart.getDatasetMeta(tooltipItem.datasetIndex);\n const options = meta.controller.getStyle(tooltipItem.dataIndex);\n return {\n borderColor: options.borderColor,\n backgroundColor: options.backgroundColor,\n borderWidth: options.borderWidth,\n borderDash: options.borderDash,\n borderDashOffset: options.borderDashOffset,\n borderRadius: 0\n };\n },\n labelTextColor () {\n return this.options.bodyColor;\n },\n labelPointStyle (tooltipItem) {\n const meta = tooltipItem.chart.getDatasetMeta(tooltipItem.datasetIndex);\n const options = meta.controller.getStyle(tooltipItem.dataIndex);\n return {\n pointStyle: options.pointStyle,\n rotation: options.rotation\n };\n },\n afterLabel: noop,\n afterBody: noop,\n beforeFooter: noop,\n footer: noop,\n afterFooter: noop\n};\n function invokeCallbackWithFallback(callbacks, name, ctx, arg) {\n const result = callbacks[name].call(ctx, arg);\n if (typeof result === 'undefined') {\n return defaultCallbacks[name].call(ctx, arg);\n }\n return result;\n}\nclass Tooltip extends Element {\n static positioners = positioners;\n constructor(config){\n super();\n this.opacity = 0;\n this._active = [];\n this._eventPosition = undefined;\n this._size = undefined;\n this._cachedAnimations = undefined;\n this._tooltipItems = [];\n this.$animations = undefined;\n this.$context = undefined;\n this.chart = config.chart;\n this.options = config.options;\n this.dataPoints = undefined;\n this.title = undefined;\n this.beforeBody = undefined;\n this.body = undefined;\n this.afterBody = undefined;\n this.footer = undefined;\n this.xAlign = undefined;\n this.yAlign = undefined;\n this.x = undefined;\n this.y = undefined;\n this.height = undefined;\n this.width = undefined;\n this.caretX = undefined;\n this.caretY = undefined;\n this.labelColors = undefined;\n this.labelPointStyles = undefined;\n this.labelTextColors = undefined;\n }\n initialize(options) {\n this.options = options;\n this._cachedAnimations = undefined;\n this.$context = undefined;\n }\n _resolveAnimations() {\n const cached = this._cachedAnimations;\n if (cached) {\n return cached;\n }\n const chart = this.chart;\n const options = this.options.setContext(this.getContext());\n const opts = options.enabled && chart.options.animation && options.animations;\n const animations = new Animations(this.chart, opts);\n if (opts._cacheable) {\n this._cachedAnimations = Object.freeze(animations);\n }\n return animations;\n }\n getContext() {\n return this.$context || (this.$context = createTooltipContext(this.chart.getContext(), this, this._tooltipItems));\n }\n getTitle(context, options) {\n const { callbacks } = options;\n const beforeTitle = invokeCallbackWithFallback(callbacks, 'beforeTitle', this, context);\n const title = invokeCallbackWithFallback(callbacks, 'title', this, context);\n const afterTitle = invokeCallbackWithFallback(callbacks, 'afterTitle', this, context);\n let lines = [];\n lines = pushOrConcat(lines, splitNewlines(beforeTitle));\n lines = pushOrConcat(lines, splitNewlines(title));\n lines = pushOrConcat(lines, splitNewlines(afterTitle));\n return lines;\n }\n getBeforeBody(tooltipItems, options) {\n return getBeforeAfterBodyLines(invokeCallbackWithFallback(options.callbacks, 'beforeBody', this, tooltipItems));\n }\n getBody(tooltipItems, options) {\n const { callbacks } = options;\n const bodyItems = [];\n each(tooltipItems, (context)=>{\n const bodyItem = {\n before: [],\n lines: [],\n after: []\n };\n const scoped = overrideCallbacks(callbacks, context);\n pushOrConcat(bodyItem.before, splitNewlines(invokeCallbackWithFallback(scoped, 'beforeLabel', this, context)));\n pushOrConcat(bodyItem.lines, invokeCallbackWithFallback(scoped, 'label', this, context));\n pushOrConcat(bodyItem.after, splitNewlines(invokeCallbackWithFallback(scoped, 'afterLabel', this, context)));\n bodyItems.push(bodyItem);\n });\n return bodyItems;\n }\n getAfterBody(tooltipItems, options) {\n return getBeforeAfterBodyLines(invokeCallbackWithFallback(options.callbacks, 'afterBody', this, tooltipItems));\n }\n getFooter(tooltipItems, options) {\n const { callbacks } = options;\n const beforeFooter = invokeCallbackWithFallback(callbacks, 'beforeFooter', this, tooltipItems);\n const footer = invokeCallbackWithFallback(callbacks, 'footer', this, tooltipItems);\n const afterFooter = invokeCallbackWithFallback(callbacks, 'afterFooter', this, tooltipItems);\n let lines = [];\n lines = pushOrConcat(lines, splitNewlines(beforeFooter));\n lines = pushOrConcat(lines, splitNewlines(footer));\n lines = pushOrConcat(lines, splitNewlines(afterFooter));\n return lines;\n }\n _createItems(options) {\n const active = this._active;\n const data = this.chart.data;\n const labelColors = [];\n const labelPointStyles = [];\n const labelTextColors = [];\n let tooltipItems = [];\n let i, len;\n for(i = 0, len = active.length; i < len; ++i){\n tooltipItems.push(createTooltipItem(this.chart, active[i]));\n }\n if (options.filter) {\n tooltipItems = tooltipItems.filter((element, index, array)=>options.filter(element, index, array, data));\n }\n if (options.itemSort) {\n tooltipItems = tooltipItems.sort((a, b)=>options.itemSort(a, b, data));\n }\n each(tooltipItems, (context)=>{\n const scoped = overrideCallbacks(options.callbacks, context);\n labelColors.push(invokeCallbackWithFallback(scoped, 'labelColor', this, context));\n labelPointStyles.push(invokeCallbackWithFallback(scoped, 'labelPointStyle', this, context));\n labelTextColors.push(invokeCallbackWithFallback(scoped, 'labelTextColor', this, context));\n });\n this.labelColors = labelColors;\n this.labelPointStyles = labelPointStyles;\n this.labelTextColors = labelTextColors;\n this.dataPoints = tooltipItems;\n return tooltipItems;\n }\n update(changed, replay) {\n const options = this.options.setContext(this.getContext());\n const active = this._active;\n let properties;\n let tooltipItems = [];\n if (!active.length) {\n if (this.opacity !== 0) {\n properties = {\n opacity: 0\n };\n }\n } else {\n const position = positioners[options.position].call(this, active, this._eventPosition);\n tooltipItems = this._createItems(options);\n this.title = this.getTitle(tooltipItems, options);\n this.beforeBody = this.getBeforeBody(tooltipItems, options);\n this.body = this.getBody(tooltipItems, options);\n this.afterBody = this.getAfterBody(tooltipItems, options);\n this.footer = this.getFooter(tooltipItems, options);\n const size = this._size = getTooltipSize(this, options);\n const positionAndSize = Object.assign({}, position, size);\n const alignment = determineAlignment(this.chart, options, positionAndSize);\n const backgroundPoint = getBackgroundPoint(options, positionAndSize, alignment, this.chart);\n this.xAlign = alignment.xAlign;\n this.yAlign = alignment.yAlign;\n properties = {\n opacity: 1,\n x: backgroundPoint.x,\n y: backgroundPoint.y,\n width: size.width,\n height: size.height,\n caretX: position.x,\n caretY: position.y\n };\n }\n this._tooltipItems = tooltipItems;\n this.$context = undefined;\n if (properties) {\n this._resolveAnimations().update(this, properties);\n }\n if (changed && options.external) {\n options.external.call(this, {\n chart: this.chart,\n tooltip: this,\n replay\n });\n }\n }\n drawCaret(tooltipPoint, ctx, size, options) {\n const caretPosition = this.getCaretPosition(tooltipPoint, size, options);\n ctx.lineTo(caretPosition.x1, caretPosition.y1);\n ctx.lineTo(caretPosition.x2, caretPosition.y2);\n ctx.lineTo(caretPosition.x3, caretPosition.y3);\n }\n getCaretPosition(tooltipPoint, size, options) {\n const { xAlign , yAlign } = this;\n const { caretSize , cornerRadius } = options;\n const { topLeft , topRight , bottomLeft , bottomRight } = toTRBLCorners(cornerRadius);\n const { x: ptX , y: ptY } = tooltipPoint;\n const { width , height } = size;\n let x1, x2, x3, y1, y2, y3;\n if (yAlign === 'center') {\n y2 = ptY + height / 2;\n if (xAlign === 'left') {\n x1 = ptX;\n x2 = x1 - caretSize;\n y1 = y2 + caretSize;\n y3 = y2 - caretSize;\n } else {\n x1 = ptX + width;\n x2 = x1 + caretSize;\n y1 = y2 - caretSize;\n y3 = y2 + caretSize;\n }\n x3 = x1;\n } else {\n if (xAlign === 'left') {\n x2 = ptX + Math.max(topLeft, bottomLeft) + caretSize;\n } else if (xAlign === 'right') {\n x2 = ptX + width - Math.max(topRight, bottomRight) - caretSize;\n } else {\n x2 = this.caretX;\n }\n if (yAlign === 'top') {\n y1 = ptY;\n y2 = y1 - caretSize;\n x1 = x2 - caretSize;\n x3 = x2 + caretSize;\n } else {\n y1 = ptY + height;\n y2 = y1 + caretSize;\n x1 = x2 + caretSize;\n x3 = x2 - caretSize;\n }\n y3 = y1;\n }\n return {\n x1,\n x2,\n x3,\n y1,\n y2,\n y3\n };\n }\n drawTitle(pt, ctx, options) {\n const title = this.title;\n const length = title.length;\n let titleFont, titleSpacing, i;\n if (length) {\n const rtlHelper = getRtlAdapter(options.rtl, this.x, this.width);\n pt.x = getAlignedX(this, options.titleAlign, options);\n ctx.textAlign = rtlHelper.textAlign(options.titleAlign);\n ctx.textBaseline = 'middle';\n titleFont = toFont(options.titleFont);\n titleSpacing = options.titleSpacing;\n ctx.fillStyle = options.titleColor;\n ctx.font = titleFont.string;\n for(i = 0; i < length; ++i){\n ctx.fillText(title[i], rtlHelper.x(pt.x), pt.y + titleFont.lineHeight / 2);\n pt.y += titleFont.lineHeight + titleSpacing;\n if (i + 1 === length) {\n pt.y += options.titleMarginBottom - titleSpacing;\n }\n }\n }\n }\n _drawColorBox(ctx, pt, i, rtlHelper, options) {\n const labelColors = this.labelColors[i];\n const labelPointStyle = this.labelPointStyles[i];\n const { boxHeight , boxWidth , boxPadding } = options;\n const bodyFont = toFont(options.bodyFont);\n const colorX = getAlignedX(this, 'left', options);\n const rtlColorX = rtlHelper.x(colorX);\n const yOffSet = boxHeight < bodyFont.lineHeight ? (bodyFont.lineHeight - boxHeight) / 2 : 0;\n const colorY = pt.y + yOffSet;\n if (options.usePointStyle) {\n const drawOptions = {\n radius: Math.min(boxWidth, boxHeight) / 2,\n pointStyle: labelPointStyle.pointStyle,\n rotation: labelPointStyle.rotation,\n borderWidth: 1\n };\n const centerX = rtlHelper.leftForLtr(rtlColorX, boxWidth) + boxWidth / 2;\n const centerY = colorY + boxHeight / 2;\n ctx.strokeStyle = options.multiKeyBackground;\n ctx.fillStyle = options.multiKeyBackground;\n drawPoint(ctx, drawOptions, centerX, centerY);\n ctx.strokeStyle = labelColors.borderColor;\n ctx.fillStyle = labelColors.backgroundColor;\n drawPoint(ctx, drawOptions, centerX, centerY);\n } else {\n ctx.lineWidth = isObject(labelColors.borderWidth) ? Math.max(...Object.values(labelColors.borderWidth)) : labelColors.borderWidth || 1;\n ctx.strokeStyle = labelColors.borderColor;\n ctx.setLineDash(labelColors.borderDash || []);\n ctx.lineDashOffset = labelColors.borderDashOffset || 0;\n const outerX = rtlHelper.leftForLtr(rtlColorX, boxWidth - boxPadding);\n const innerX = rtlHelper.leftForLtr(rtlHelper.xPlus(rtlColorX, 1), boxWidth - boxPadding - 2);\n const borderRadius = toTRBLCorners(labelColors.borderRadius);\n if (Object.values(borderRadius).some((v)=>v !== 0)) {\n ctx.beginPath();\n ctx.fillStyle = options.multiKeyBackground;\n addRoundedRectPath(ctx, {\n x: outerX,\n y: colorY,\n w: boxWidth,\n h: boxHeight,\n radius: borderRadius\n });\n ctx.fill();\n ctx.stroke();\n ctx.fillStyle = labelColors.backgroundColor;\n ctx.beginPath();\n addRoundedRectPath(ctx, {\n x: innerX,\n y: colorY + 1,\n w: boxWidth - 2,\n h: boxHeight - 2,\n radius: borderRadius\n });\n ctx.fill();\n } else {\n ctx.fillStyle = options.multiKeyBackground;\n ctx.fillRect(outerX, colorY, boxWidth, boxHeight);\n ctx.strokeRect(outerX, colorY, boxWidth, boxHeight);\n ctx.fillStyle = labelColors.backgroundColor;\n ctx.fillRect(innerX, colorY + 1, boxWidth - 2, boxHeight - 2);\n }\n }\n ctx.fillStyle = this.labelTextColors[i];\n }\n drawBody(pt, ctx, options) {\n const { body } = this;\n const { bodySpacing , bodyAlign , displayColors , boxHeight , boxWidth , boxPadding } = options;\n const bodyFont = toFont(options.bodyFont);\n let bodyLineHeight = bodyFont.lineHeight;\n let xLinePadding = 0;\n const rtlHelper = getRtlAdapter(options.rtl, this.x, this.width);\n const fillLineOfText = function(line) {\n ctx.fillText(line, rtlHelper.x(pt.x + xLinePadding), pt.y + bodyLineHeight / 2);\n pt.y += bodyLineHeight + bodySpacing;\n };\n const bodyAlignForCalculation = rtlHelper.textAlign(bodyAlign);\n let bodyItem, textColor, lines, i, j, ilen, jlen;\n ctx.textAlign = bodyAlign;\n ctx.textBaseline = 'middle';\n ctx.font = bodyFont.string;\n pt.x = getAlignedX(this, bodyAlignForCalculation, options);\n ctx.fillStyle = options.bodyColor;\n each(this.beforeBody, fillLineOfText);\n xLinePadding = displayColors && bodyAlignForCalculation !== 'right' ? bodyAlign === 'center' ? boxWidth / 2 + boxPadding : boxWidth + 2 + boxPadding : 0;\n for(i = 0, ilen = body.length; i < ilen; ++i){\n bodyItem = body[i];\n textColor = this.labelTextColors[i];\n ctx.fillStyle = textColor;\n each(bodyItem.before, fillLineOfText);\n lines = bodyItem.lines;\n if (displayColors && lines.length) {\n this._drawColorBox(ctx, pt, i, rtlHelper, options);\n bodyLineHeight = Math.max(bodyFont.lineHeight, boxHeight);\n }\n for(j = 0, jlen = lines.length; j < jlen; ++j){\n fillLineOfText(lines[j]);\n bodyLineHeight = bodyFont.lineHeight;\n }\n each(bodyItem.after, fillLineOfText);\n }\n xLinePadding = 0;\n bodyLineHeight = bodyFont.lineHeight;\n each(this.afterBody, fillLineOfText);\n pt.y -= bodySpacing;\n }\n drawFooter(pt, ctx, options) {\n const footer = this.footer;\n const length = footer.length;\n let footerFont, i;\n if (length) {\n const rtlHelper = getRtlAdapter(options.rtl, this.x, this.width);\n pt.x = getAlignedX(this, options.footerAlign, options);\n pt.y += options.footerMarginTop;\n ctx.textAlign = rtlHelper.textAlign(options.footerAlign);\n ctx.textBaseline = 'middle';\n footerFont = toFont(options.footerFont);\n ctx.fillStyle = options.footerColor;\n ctx.font = footerFont.string;\n for(i = 0; i < length; ++i){\n ctx.fillText(footer[i], rtlHelper.x(pt.x), pt.y + footerFont.lineHeight / 2);\n pt.y += footerFont.lineHeight + options.footerSpacing;\n }\n }\n }\n drawBackground(pt, ctx, tooltipSize, options) {\n const { xAlign , yAlign } = this;\n const { x , y } = pt;\n const { width , height } = tooltipSize;\n const { topLeft , topRight , bottomLeft , bottomRight } = toTRBLCorners(options.cornerRadius);\n ctx.fillStyle = options.backgroundColor;\n ctx.strokeStyle = options.borderColor;\n ctx.lineWidth = options.borderWidth;\n ctx.beginPath();\n ctx.moveTo(x + topLeft, y);\n if (yAlign === 'top') {\n this.drawCaret(pt, ctx, tooltipSize, options);\n }\n ctx.lineTo(x + width - topRight, y);\n ctx.quadraticCurveTo(x + width, y, x + width, y + topRight);\n if (yAlign === 'center' && xAlign === 'right') {\n this.drawCaret(pt, ctx, tooltipSize, options);\n }\n ctx.lineTo(x + width, y + height - bottomRight);\n ctx.quadraticCurveTo(x + width, y + height, x + width - bottomRight, y + height);\n if (yAlign === 'bottom') {\n this.drawCaret(pt, ctx, tooltipSize, options);\n }\n ctx.lineTo(x + bottomLeft, y + height);\n ctx.quadraticCurveTo(x, y + height, x, y + height - bottomLeft);\n if (yAlign === 'center' && xAlign === 'left') {\n this.drawCaret(pt, ctx, tooltipSize, options);\n }\n ctx.lineTo(x, y + topLeft);\n ctx.quadraticCurveTo(x, y, x + topLeft, y);\n ctx.closePath();\n ctx.fill();\n if (options.borderWidth > 0) {\n ctx.stroke();\n }\n }\n _updateAnimationTarget(options) {\n const chart = this.chart;\n const anims = this.$animations;\n const animX = anims && anims.x;\n const animY = anims && anims.y;\n if (animX || animY) {\n const position = positioners[options.position].call(this, this._active, this._eventPosition);\n if (!position) {\n return;\n }\n const size = this._size = getTooltipSize(this, options);\n const positionAndSize = Object.assign({}, position, this._size);\n const alignment = determineAlignment(chart, options, positionAndSize);\n const point = getBackgroundPoint(options, positionAndSize, alignment, chart);\n if (animX._to !== point.x || animY._to !== point.y) {\n this.xAlign = alignment.xAlign;\n this.yAlign = alignment.yAlign;\n this.width = size.width;\n this.height = size.height;\n this.caretX = position.x;\n this.caretY = position.y;\n this._resolveAnimations().update(this, point);\n }\n }\n }\n _willRender() {\n return !!this.opacity;\n }\n draw(ctx) {\n const options = this.options.setContext(this.getContext());\n let opacity = this.opacity;\n if (!opacity) {\n return;\n }\n this._updateAnimationTarget(options);\n const tooltipSize = {\n width: this.width,\n height: this.height\n };\n const pt = {\n x: this.x,\n y: this.y\n };\n opacity = Math.abs(opacity) < 1e-3 ? 0 : opacity;\n const padding = toPadding(options.padding);\n const hasTooltipContent = this.title.length || this.beforeBody.length || this.body.length || this.afterBody.length || this.footer.length;\n if (options.enabled && hasTooltipContent) {\n ctx.save();\n ctx.globalAlpha = opacity;\n this.drawBackground(pt, ctx, tooltipSize, options);\n overrideTextDirection(ctx, options.textDirection);\n pt.y += padding.top;\n this.drawTitle(pt, ctx, options);\n this.drawBody(pt, ctx, options);\n this.drawFooter(pt, ctx, options);\n restoreTextDirection(ctx, options.textDirection);\n ctx.restore();\n }\n }\n getActiveElements() {\n return this._active || [];\n }\n setActiveElements(activeElements, eventPosition) {\n const lastActive = this._active;\n const active = activeElements.map(({ datasetIndex , index })=>{\n const meta = this.chart.getDatasetMeta(datasetIndex);\n if (!meta) {\n throw new Error('Cannot find a dataset at index ' + datasetIndex);\n }\n return {\n datasetIndex,\n element: meta.data[index],\n index\n };\n });\n const changed = !_elementsEqual(lastActive, active);\n const positionChanged = this._positionChanged(active, eventPosition);\n if (changed || positionChanged) {\n this._active = active;\n this._eventPosition = eventPosition;\n this._ignoreReplayEvents = true;\n this.update(true);\n }\n }\n handleEvent(e, replay, inChartArea = true) {\n if (replay && this._ignoreReplayEvents) {\n return false;\n }\n this._ignoreReplayEvents = false;\n const options = this.options;\n const lastActive = this._active || [];\n const active = this._getActiveElements(e, lastActive, replay, inChartArea);\n const positionChanged = this._positionChanged(active, e);\n const changed = replay || !_elementsEqual(active, lastActive) || positionChanged;\n if (changed) {\n this._active = active;\n if (options.enabled || options.external) {\n this._eventPosition = {\n x: e.x,\n y: e.y\n };\n this.update(true, replay);\n }\n }\n return changed;\n }\n _getActiveElements(e, lastActive, replay, inChartArea) {\n const options = this.options;\n if (e.type === 'mouseout') {\n return [];\n }\n if (!inChartArea) {\n return lastActive;\n }\n const active = this.chart.getElementsAtEventForMode(e, options.mode, options, replay);\n if (options.reverse) {\n active.reverse();\n }\n return active;\n }\n _positionChanged(active, e) {\n const { caretX , caretY , options } = this;\n const position = positioners[options.position].call(this, active, e);\n return position !== false && (caretX !== position.x || caretY !== position.y);\n }\n}\nvar plugin_tooltip = {\n id: 'tooltip',\n _element: Tooltip,\n positioners,\n afterInit (chart, _args, options) {\n if (options) {\n chart.tooltip = new Tooltip({\n chart,\n options\n });\n }\n },\n beforeUpdate (chart, _args, options) {\n if (chart.tooltip) {\n chart.tooltip.initialize(options);\n }\n },\n reset (chart, _args, options) {\n if (chart.tooltip) {\n chart.tooltip.initialize(options);\n }\n },\n afterDraw (chart) {\n const tooltip = chart.tooltip;\n if (tooltip && tooltip._willRender()) {\n const args = {\n tooltip\n };\n if (chart.notifyPlugins('beforeTooltipDraw', {\n ...args,\n cancelable: true\n }) === false) {\n return;\n }\n tooltip.draw(chart.ctx);\n chart.notifyPlugins('afterTooltipDraw', args);\n }\n },\n afterEvent (chart, args) {\n if (chart.tooltip) {\n const useFinalPosition = args.replay;\n if (chart.tooltip.handleEvent(args.event, useFinalPosition, args.inChartArea)) {\n args.changed = true;\n }\n }\n },\n defaults: {\n enabled: true,\n external: null,\n position: 'average',\n backgroundColor: 'rgba(0,0,0,0.8)',\n titleColor: '#fff',\n titleFont: {\n weight: 'bold'\n },\n titleSpacing: 2,\n titleMarginBottom: 6,\n titleAlign: 'left',\n bodyColor: '#fff',\n bodySpacing: 2,\n bodyFont: {},\n bodyAlign: 'left',\n footerColor: '#fff',\n footerSpacing: 2,\n footerMarginTop: 6,\n footerFont: {\n weight: 'bold'\n },\n footerAlign: 'left',\n padding: 6,\n caretPadding: 2,\n caretSize: 5,\n cornerRadius: 6,\n boxHeight: (ctx, opts)=>opts.bodyFont.size,\n boxWidth: (ctx, opts)=>opts.bodyFont.size,\n multiKeyBackground: '#fff',\n displayColors: true,\n boxPadding: 0,\n borderColor: 'rgba(0,0,0,0)',\n borderWidth: 0,\n animation: {\n duration: 400,\n easing: 'easeOutQuart'\n },\n animations: {\n numbers: {\n type: 'number',\n properties: [\n 'x',\n 'y',\n 'width',\n 'height',\n 'caretX',\n 'caretY'\n ]\n },\n opacity: {\n easing: 'linear',\n duration: 200\n }\n },\n callbacks: defaultCallbacks\n },\n defaultRoutes: {\n bodyFont: 'font',\n footerFont: 'font',\n titleFont: 'font'\n },\n descriptors: {\n _scriptable: (name)=>name !== 'filter' && name !== 'itemSort' && name !== 'external',\n _indexable: false,\n callbacks: {\n _scriptable: false,\n _indexable: false\n },\n animation: {\n _fallback: false\n },\n animations: {\n _fallback: 'animation'\n }\n },\n additionalOptionScopes: [\n 'interaction'\n ]\n};\n\nvar plugins = /*#__PURE__*/Object.freeze({\n__proto__: null,\nColors: plugin_colors,\nDecimation: plugin_decimation,\nFiller: index,\nLegend: plugin_legend,\nSubTitle: plugin_subtitle,\nTitle: plugin_title,\nTooltip: plugin_tooltip\n});\n\nconst addIfString = (labels, raw, index, addedLabels)=>{\n if (typeof raw === 'string') {\n index = labels.push(raw) - 1;\n addedLabels.unshift({\n index,\n label: raw\n });\n } else if (isNaN(raw)) {\n index = null;\n }\n return index;\n};\nfunction findOrAddLabel(labels, raw, index, addedLabels) {\n const first = labels.indexOf(raw);\n if (first === -1) {\n return addIfString(labels, raw, index, addedLabels);\n }\n const last = labels.lastIndexOf(raw);\n return first !== last ? index : first;\n}\nconst validIndex = (index, max)=>index === null ? null : _limitValue(Math.round(index), 0, max);\nfunction _getLabelForValue(value) {\n const labels = this.getLabels();\n if (value >= 0 && value < labels.length) {\n return labels[value];\n }\n return value;\n}\nclass CategoryScale extends Scale {\n static id = 'category';\n static defaults = {\n ticks: {\n callback: _getLabelForValue\n }\n };\n constructor(cfg){\n super(cfg);\n this._startValue = undefined;\n this._valueRange = 0;\n this._addedLabels = [];\n }\n init(scaleOptions) {\n const added = this._addedLabels;\n if (added.length) {\n const labels = this.getLabels();\n for (const { index , label } of added){\n if (labels[index] === label) {\n labels.splice(index, 1);\n }\n }\n this._addedLabels = [];\n }\n super.init(scaleOptions);\n }\n parse(raw, index) {\n if (isNullOrUndef(raw)) {\n return null;\n }\n const labels = this.getLabels();\n index = isFinite(index) && labels[index] === raw ? index : findOrAddLabel(labels, raw, valueOrDefault(index, raw), this._addedLabels);\n return validIndex(index, labels.length - 1);\n }\n determineDataLimits() {\n const { minDefined , maxDefined } = this.getUserBounds();\n let { min , max } = this.getMinMax(true);\n if (this.options.bounds === 'ticks') {\n if (!minDefined) {\n min = 0;\n }\n if (!maxDefined) {\n max = this.getLabels().length - 1;\n }\n }\n this.min = min;\n this.max = max;\n }\n buildTicks() {\n const min = this.min;\n const max = this.max;\n const offset = this.options.offset;\n const ticks = [];\n let labels = this.getLabels();\n labels = min === 0 && max === labels.length - 1 ? labels : labels.slice(min, max + 1);\n this._valueRange = Math.max(labels.length - (offset ? 0 : 1), 1);\n this._startValue = this.min - (offset ? 0.5 : 0);\n for(let value = min; value <= max; value++){\n ticks.push({\n value\n });\n }\n return ticks;\n }\n getLabelForValue(value) {\n return _getLabelForValue.call(this, value);\n }\n configure() {\n super.configure();\n if (!this.isHorizontal()) {\n this._reversePixels = !this._reversePixels;\n }\n }\n getPixelForValue(value) {\n if (typeof value !== 'number') {\n value = this.parse(value);\n }\n return value === null ? NaN : this.getPixelForDecimal((value - this._startValue) / this._valueRange);\n }\n getPixelForTick(index) {\n const ticks = this.ticks;\n if (index < 0 || index > ticks.length - 1) {\n return null;\n }\n return this.getPixelForValue(ticks[index].value);\n }\n getValueForPixel(pixel) {\n return Math.round(this._startValue + this.getDecimalForPixel(pixel) * this._valueRange);\n }\n getBasePixel() {\n return this.bottom;\n }\n}\n\nfunction generateTicks$1(generationOptions, dataRange) {\n const ticks = [];\n const MIN_SPACING = 1e-14;\n const { bounds , step , min , max , precision , count , maxTicks , maxDigits , includeBounds } = generationOptions;\n const unit = step || 1;\n const maxSpaces = maxTicks - 1;\n const { min: rmin , max: rmax } = dataRange;\n const minDefined = !isNullOrUndef(min);\n const maxDefined = !isNullOrUndef(max);\n const countDefined = !isNullOrUndef(count);\n const minSpacing = (rmax - rmin) / (maxDigits + 1);\n let spacing = niceNum((rmax - rmin) / maxSpaces / unit) * unit;\n let factor, niceMin, niceMax, numSpaces;\n if (spacing < MIN_SPACING && !minDefined && !maxDefined) {\n return [\n {\n value: rmin\n },\n {\n value: rmax\n }\n ];\n }\n numSpaces = Math.ceil(rmax / spacing) - Math.floor(rmin / spacing);\n if (numSpaces > maxSpaces) {\n spacing = niceNum(numSpaces * spacing / maxSpaces / unit) * unit;\n }\n if (!isNullOrUndef(precision)) {\n factor = Math.pow(10, precision);\n spacing = Math.ceil(spacing * factor) / factor;\n }\n if (bounds === 'ticks') {\n niceMin = Math.floor(rmin / spacing) * spacing;\n niceMax = Math.ceil(rmax / spacing) * spacing;\n } else {\n niceMin = rmin;\n niceMax = rmax;\n }\n if (minDefined && maxDefined && step && almostWhole((max - min) / step, spacing / 1000)) {\n numSpaces = Math.round(Math.min((max - min) / spacing, maxTicks));\n spacing = (max - min) / numSpaces;\n niceMin = min;\n niceMax = max;\n } else if (countDefined) {\n niceMin = minDefined ? min : niceMin;\n niceMax = maxDefined ? max : niceMax;\n numSpaces = count - 1;\n spacing = (niceMax - niceMin) / numSpaces;\n } else {\n numSpaces = (niceMax - niceMin) / spacing;\n if (almostEquals(numSpaces, Math.round(numSpaces), spacing / 1000)) {\n numSpaces = Math.round(numSpaces);\n } else {\n numSpaces = Math.ceil(numSpaces);\n }\n }\n const decimalPlaces = Math.max(_decimalPlaces(spacing), _decimalPlaces(niceMin));\n factor = Math.pow(10, isNullOrUndef(precision) ? decimalPlaces : precision);\n niceMin = Math.round(niceMin * factor) / factor;\n niceMax = Math.round(niceMax * factor) / factor;\n let j = 0;\n if (minDefined) {\n if (includeBounds && niceMin !== min) {\n ticks.push({\n value: min\n });\n if (niceMin < min) {\n j++;\n }\n if (almostEquals(Math.round((niceMin + j * spacing) * factor) / factor, min, relativeLabelSize(min, minSpacing, generationOptions))) {\n j++;\n }\n } else if (niceMin < min) {\n j++;\n }\n }\n for(; j < numSpaces; ++j){\n ticks.push({\n value: Math.round((niceMin + j * spacing) * factor) / factor\n });\n }\n if (maxDefined && includeBounds && niceMax !== max) {\n if (ticks.length && almostEquals(ticks[ticks.length - 1].value, max, relativeLabelSize(max, minSpacing, generationOptions))) {\n ticks[ticks.length - 1].value = max;\n } else {\n ticks.push({\n value: max\n });\n }\n } else if (!maxDefined || niceMax === max) {\n ticks.push({\n value: niceMax\n });\n }\n return ticks;\n}\nfunction relativeLabelSize(value, minSpacing, { horizontal , minRotation }) {\n const rad = toRadians(minRotation);\n const ratio = (horizontal ? Math.sin(rad) : Math.cos(rad)) || 0.001;\n const length = 0.75 * minSpacing * ('' + value).length;\n return Math.min(minSpacing / ratio, length);\n}\nclass LinearScaleBase extends Scale {\n constructor(cfg){\n super(cfg);\n this.start = undefined;\n this.end = undefined;\n this._startValue = undefined;\n this._endValue = undefined;\n this._valueRange = 0;\n }\n parse(raw, index) {\n if (isNullOrUndef(raw)) {\n return null;\n }\n if ((typeof raw === 'number' || raw instanceof Number) && !isFinite(+raw)) {\n return null;\n }\n return +raw;\n }\n handleTickRangeOptions() {\n const { beginAtZero } = this.options;\n const { minDefined , maxDefined } = this.getUserBounds();\n let { min , max } = this;\n const setMin = (v)=>min = minDefined ? min : v;\n const setMax = (v)=>max = maxDefined ? max : v;\n if (beginAtZero) {\n const minSign = sign(min);\n const maxSign = sign(max);\n if (minSign < 0 && maxSign < 0) {\n setMax(0);\n } else if (minSign > 0 && maxSign > 0) {\n setMin(0);\n }\n }\n if (min === max) {\n let offset = max === 0 ? 1 : Math.abs(max * 0.05);\n setMax(max + offset);\n if (!beginAtZero) {\n setMin(min - offset);\n }\n }\n this.min = min;\n this.max = max;\n }\n getTickLimit() {\n const tickOpts = this.options.ticks;\n let { maxTicksLimit , stepSize } = tickOpts;\n let maxTicks;\n if (stepSize) {\n maxTicks = Math.ceil(this.max / stepSize) - Math.floor(this.min / stepSize) + 1;\n if (maxTicks > 1000) {\n console.warn(`scales.${this.id}.ticks.stepSize: ${stepSize} would result generating up to ${maxTicks} ticks. Limiting to 1000.`);\n maxTicks = 1000;\n }\n } else {\n maxTicks = this.computeTickLimit();\n maxTicksLimit = maxTicksLimit || 11;\n }\n if (maxTicksLimit) {\n maxTicks = Math.min(maxTicksLimit, maxTicks);\n }\n return maxTicks;\n }\n computeTickLimit() {\n return Number.POSITIVE_INFINITY;\n }\n buildTicks() {\n const opts = this.options;\n const tickOpts = opts.ticks;\n let maxTicks = this.getTickLimit();\n maxTicks = Math.max(2, maxTicks);\n const numericGeneratorOptions = {\n maxTicks,\n bounds: opts.bounds,\n min: opts.min,\n max: opts.max,\n precision: tickOpts.precision,\n step: tickOpts.stepSize,\n count: tickOpts.count,\n maxDigits: this._maxDigits(),\n horizontal: this.isHorizontal(),\n minRotation: tickOpts.minRotation || 0,\n includeBounds: tickOpts.includeBounds !== false\n };\n const dataRange = this._range || this;\n const ticks = generateTicks$1(numericGeneratorOptions, dataRange);\n if (opts.bounds === 'ticks') {\n _setMinAndMaxByKey(ticks, this, 'value');\n }\n if (opts.reverse) {\n ticks.reverse();\n this.start = this.max;\n this.end = this.min;\n } else {\n this.start = this.min;\n this.end = this.max;\n }\n return ticks;\n }\n configure() {\n const ticks = this.ticks;\n let start = this.min;\n let end = this.max;\n super.configure();\n if (this.options.offset && ticks.length) {\n const offset = (end - start) / Math.max(ticks.length - 1, 1) / 2;\n start -= offset;\n end += offset;\n }\n this._startValue = start;\n this._endValue = end;\n this._valueRange = end - start;\n }\n getLabelForValue(value) {\n return formatNumber(value, this.chart.options.locale, this.options.ticks.format);\n }\n}\n\nclass LinearScale extends LinearScaleBase {\n static id = 'linear';\n static defaults = {\n ticks: {\n callback: Ticks.formatters.numeric\n }\n };\n determineDataLimits() {\n const { min , max } = this.getMinMax(true);\n this.min = isNumberFinite(min) ? min : 0;\n this.max = isNumberFinite(max) ? max : 1;\n this.handleTickRangeOptions();\n }\n computeTickLimit() {\n const horizontal = this.isHorizontal();\n const length = horizontal ? this.width : this.height;\n const minRotation = toRadians(this.options.ticks.minRotation);\n const ratio = (horizontal ? Math.sin(minRotation) : Math.cos(minRotation)) || 0.001;\n const tickFont = this._resolveTickFontOptions(0);\n return Math.ceil(length / Math.min(40, tickFont.lineHeight / ratio));\n }\n getPixelForValue(value) {\n return value === null ? NaN : this.getPixelForDecimal((value - this._startValue) / this._valueRange);\n }\n getValueForPixel(pixel) {\n return this._startValue + this.getDecimalForPixel(pixel) * this._valueRange;\n }\n}\n\nconst log10Floor = (v)=>Math.floor(log10(v));\nconst changeExponent = (v, m)=>Math.pow(10, log10Floor(v) + m);\nfunction isMajor(tickVal) {\n const remain = tickVal / Math.pow(10, log10Floor(tickVal));\n return remain === 1;\n}\nfunction steps(min, max, rangeExp) {\n const rangeStep = Math.pow(10, rangeExp);\n const start = Math.floor(min / rangeStep);\n const end = Math.ceil(max / rangeStep);\n return end - start;\n}\nfunction startExp(min, max) {\n const range = max - min;\n let rangeExp = log10Floor(range);\n while(steps(min, max, rangeExp) > 10){\n rangeExp++;\n }\n while(steps(min, max, rangeExp) < 10){\n rangeExp--;\n }\n return Math.min(rangeExp, log10Floor(min));\n}\n function generateTicks(generationOptions, { min , max }) {\n min = finiteOrDefault(generationOptions.min, min);\n const ticks = [];\n const minExp = log10Floor(min);\n let exp = startExp(min, max);\n let precision = exp < 0 ? Math.pow(10, Math.abs(exp)) : 1;\n const stepSize = Math.pow(10, exp);\n const base = minExp > exp ? Math.pow(10, minExp) : 0;\n const start = Math.round((min - base) * precision) / precision;\n const offset = Math.floor((min - base) / stepSize / 10) * stepSize * 10;\n let significand = Math.floor((start - offset) / Math.pow(10, exp));\n let value = finiteOrDefault(generationOptions.min, Math.round((base + offset + significand * Math.pow(10, exp)) * precision) / precision);\n while(value < max){\n ticks.push({\n value,\n major: isMajor(value),\n significand\n });\n if (significand >= 10) {\n significand = significand < 15 ? 15 : 20;\n } else {\n significand++;\n }\n if (significand >= 20) {\n exp++;\n significand = 2;\n precision = exp >= 0 ? 1 : precision;\n }\n value = Math.round((base + offset + significand * Math.pow(10, exp)) * precision) / precision;\n }\n const lastTick = finiteOrDefault(generationOptions.max, value);\n ticks.push({\n value: lastTick,\n major: isMajor(lastTick),\n significand\n });\n return ticks;\n}\nclass LogarithmicScale extends Scale {\n static id = 'logarithmic';\n static defaults = {\n ticks: {\n callback: Ticks.formatters.logarithmic,\n major: {\n enabled: true\n }\n }\n };\n constructor(cfg){\n super(cfg);\n this.start = undefined;\n this.end = undefined;\n this._startValue = undefined;\n this._valueRange = 0;\n }\n parse(raw, index) {\n const value = LinearScaleBase.prototype.parse.apply(this, [\n raw,\n index\n ]);\n if (value === 0) {\n this._zero = true;\n return undefined;\n }\n return isNumberFinite(value) && value > 0 ? value : null;\n }\n determineDataLimits() {\n const { min , max } = this.getMinMax(true);\n this.min = isNumberFinite(min) ? Math.max(0, min) : null;\n this.max = isNumberFinite(max) ? Math.max(0, max) : null;\n if (this.options.beginAtZero) {\n this._zero = true;\n }\n if (this._zero && this.min !== this._suggestedMin && !isNumberFinite(this._userMin)) {\n this.min = min === changeExponent(this.min, 0) ? changeExponent(this.min, -1) : changeExponent(this.min, 0);\n }\n this.handleTickRangeOptions();\n }\n handleTickRangeOptions() {\n const { minDefined , maxDefined } = this.getUserBounds();\n let min = this.min;\n let max = this.max;\n const setMin = (v)=>min = minDefined ? min : v;\n const setMax = (v)=>max = maxDefined ? max : v;\n if (min === max) {\n if (min <= 0) {\n setMin(1);\n setMax(10);\n } else {\n setMin(changeExponent(min, -1));\n setMax(changeExponent(max, +1));\n }\n }\n if (min <= 0) {\n setMin(changeExponent(max, -1));\n }\n if (max <= 0) {\n setMax(changeExponent(min, +1));\n }\n this.min = min;\n this.max = max;\n }\n buildTicks() {\n const opts = this.options;\n const generationOptions = {\n min: this._userMin,\n max: this._userMax\n };\n const ticks = generateTicks(generationOptions, this);\n if (opts.bounds === 'ticks') {\n _setMinAndMaxByKey(ticks, this, 'value');\n }\n if (opts.reverse) {\n ticks.reverse();\n this.start = this.max;\n this.end = this.min;\n } else {\n this.start = this.min;\n this.end = this.max;\n }\n return ticks;\n }\n getLabelForValue(value) {\n return value === undefined ? '0' : formatNumber(value, this.chart.options.locale, this.options.ticks.format);\n }\n configure() {\n const start = this.min;\n super.configure();\n this._startValue = log10(start);\n this._valueRange = log10(this.max) - log10(start);\n }\n getPixelForValue(value) {\n if (value === undefined || value === 0) {\n value = this.min;\n }\n if (value === null || isNaN(value)) {\n return NaN;\n }\n return this.getPixelForDecimal(value === this.min ? 0 : (log10(value) - this._startValue) / this._valueRange);\n }\n getValueForPixel(pixel) {\n const decimal = this.getDecimalForPixel(pixel);\n return Math.pow(10, this._startValue + decimal * this._valueRange);\n }\n}\n\nfunction getTickBackdropHeight(opts) {\n const tickOpts = opts.ticks;\n if (tickOpts.display && opts.display) {\n const padding = toPadding(tickOpts.backdropPadding);\n return valueOrDefault(tickOpts.font && tickOpts.font.size, defaults.font.size) + padding.height;\n }\n return 0;\n}\nfunction measureLabelSize(ctx, font, label) {\n label = isArray(label) ? label : [\n label\n ];\n return {\n w: _longestText(ctx, font.string, label),\n h: label.length * font.lineHeight\n };\n}\nfunction determineLimits(angle, pos, size, min, max) {\n if (angle === min || angle === max) {\n return {\n start: pos - size / 2,\n end: pos + size / 2\n };\n } else if (angle < min || angle > max) {\n return {\n start: pos - size,\n end: pos\n };\n }\n return {\n start: pos,\n end: pos + size\n };\n}\n function fitWithPointLabels(scale) {\n const orig = {\n l: scale.left + scale._padding.left,\n r: scale.right - scale._padding.right,\n t: scale.top + scale._padding.top,\n b: scale.bottom - scale._padding.bottom\n };\n const limits = Object.assign({}, orig);\n const labelSizes = [];\n const padding = [];\n const valueCount = scale._pointLabels.length;\n const pointLabelOpts = scale.options.pointLabels;\n const additionalAngle = pointLabelOpts.centerPointLabels ? PI / valueCount : 0;\n for(let i = 0; i < valueCount; i++){\n const opts = pointLabelOpts.setContext(scale.getPointLabelContext(i));\n padding[i] = opts.padding;\n const pointPosition = scale.getPointPosition(i, scale.drawingArea + padding[i], additionalAngle);\n const plFont = toFont(opts.font);\n const textSize = measureLabelSize(scale.ctx, plFont, scale._pointLabels[i]);\n labelSizes[i] = textSize;\n const angleRadians = _normalizeAngle(scale.getIndexAngle(i) + additionalAngle);\n const angle = Math.round(toDegrees(angleRadians));\n const hLimits = determineLimits(angle, pointPosition.x, textSize.w, 0, 180);\n const vLimits = determineLimits(angle, pointPosition.y, textSize.h, 90, 270);\n updateLimits(limits, orig, angleRadians, hLimits, vLimits);\n }\n scale.setCenterPoint(orig.l - limits.l, limits.r - orig.r, orig.t - limits.t, limits.b - orig.b);\n scale._pointLabelItems = buildPointLabelItems(scale, labelSizes, padding);\n}\nfunction updateLimits(limits, orig, angle, hLimits, vLimits) {\n const sin = Math.abs(Math.sin(angle));\n const cos = Math.abs(Math.cos(angle));\n let x = 0;\n let y = 0;\n if (hLimits.start < orig.l) {\n x = (orig.l - hLimits.start) / sin;\n limits.l = Math.min(limits.l, orig.l - x);\n } else if (hLimits.end > orig.r) {\n x = (hLimits.end - orig.r) / sin;\n limits.r = Math.max(limits.r, orig.r + x);\n }\n if (vLimits.start < orig.t) {\n y = (orig.t - vLimits.start) / cos;\n limits.t = Math.min(limits.t, orig.t - y);\n } else if (vLimits.end > orig.b) {\n y = (vLimits.end - orig.b) / cos;\n limits.b = Math.max(limits.b, orig.b + y);\n }\n}\nfunction buildPointLabelItems(scale, labelSizes, padding) {\n const items = [];\n const valueCount = scale._pointLabels.length;\n const opts = scale.options;\n const extra = getTickBackdropHeight(opts) / 2;\n const outerDistance = scale.drawingArea;\n const additionalAngle = opts.pointLabels.centerPointLabels ? PI / valueCount : 0;\n for(let i = 0; i < valueCount; i++){\n const pointLabelPosition = scale.getPointPosition(i, outerDistance + extra + padding[i], additionalAngle);\n const angle = Math.round(toDegrees(_normalizeAngle(pointLabelPosition.angle + HALF_PI)));\n const size = labelSizes[i];\n const y = yForAngle(pointLabelPosition.y, size.h, angle);\n const textAlign = getTextAlignForAngle(angle);\n const left = leftForTextAlign(pointLabelPosition.x, size.w, textAlign);\n items.push({\n x: pointLabelPosition.x,\n y,\n textAlign,\n left,\n top: y,\n right: left + size.w,\n bottom: y + size.h\n });\n }\n return items;\n}\nfunction getTextAlignForAngle(angle) {\n if (angle === 0 || angle === 180) {\n return 'center';\n } else if (angle < 180) {\n return 'left';\n }\n return 'right';\n}\nfunction leftForTextAlign(x, w, align) {\n if (align === 'right') {\n x -= w;\n } else if (align === 'center') {\n x -= w / 2;\n }\n return x;\n}\nfunction yForAngle(y, h, angle) {\n if (angle === 90 || angle === 270) {\n y -= h / 2;\n } else if (angle > 270 || angle < 90) {\n y -= h;\n }\n return y;\n}\nfunction drawPointLabels(scale, labelCount) {\n const { ctx , options: { pointLabels } } = scale;\n for(let i = labelCount - 1; i >= 0; i--){\n const optsAtIndex = pointLabels.setContext(scale.getPointLabelContext(i));\n const plFont = toFont(optsAtIndex.font);\n const { x , y , textAlign , left , top , right , bottom } = scale._pointLabelItems[i];\n const { backdropColor } = optsAtIndex;\n if (!isNullOrUndef(backdropColor)) {\n const borderRadius = toTRBLCorners(optsAtIndex.borderRadius);\n const padding = toPadding(optsAtIndex.backdropPadding);\n ctx.fillStyle = backdropColor;\n const backdropLeft = left - padding.left;\n const backdropTop = top - padding.top;\n const backdropWidth = right - left + padding.width;\n const backdropHeight = bottom - top + padding.height;\n if (Object.values(borderRadius).some((v)=>v !== 0)) {\n ctx.beginPath();\n addRoundedRectPath(ctx, {\n x: backdropLeft,\n y: backdropTop,\n w: backdropWidth,\n h: backdropHeight,\n radius: borderRadius\n });\n ctx.fill();\n } else {\n ctx.fillRect(backdropLeft, backdropTop, backdropWidth, backdropHeight);\n }\n }\n renderText(ctx, scale._pointLabels[i], x, y + plFont.lineHeight / 2, plFont, {\n color: optsAtIndex.color,\n textAlign: textAlign,\n textBaseline: 'middle'\n });\n }\n}\nfunction pathRadiusLine(scale, radius, circular, labelCount) {\n const { ctx } = scale;\n if (circular) {\n ctx.arc(scale.xCenter, scale.yCenter, radius, 0, TAU);\n } else {\n let pointPosition = scale.getPointPosition(0, radius);\n ctx.moveTo(pointPosition.x, pointPosition.y);\n for(let i = 1; i < labelCount; i++){\n pointPosition = scale.getPointPosition(i, radius);\n ctx.lineTo(pointPosition.x, pointPosition.y);\n }\n }\n}\nfunction drawRadiusLine(scale, gridLineOpts, radius, labelCount, borderOpts) {\n const ctx = scale.ctx;\n const circular = gridLineOpts.circular;\n const { color , lineWidth } = gridLineOpts;\n if (!circular && !labelCount || !color || !lineWidth || radius < 0) {\n return;\n }\n ctx.save();\n ctx.strokeStyle = color;\n ctx.lineWidth = lineWidth;\n ctx.setLineDash(borderOpts.dash);\n ctx.lineDashOffset = borderOpts.dashOffset;\n ctx.beginPath();\n pathRadiusLine(scale, radius, circular, labelCount);\n ctx.closePath();\n ctx.stroke();\n ctx.restore();\n}\nfunction createPointLabelContext(parent, index, label) {\n return createContext(parent, {\n label,\n index,\n type: 'pointLabel'\n });\n}\nclass RadialLinearScale extends LinearScaleBase {\n static id = 'radialLinear';\n static defaults = {\n display: true,\n animate: true,\n position: 'chartArea',\n angleLines: {\n display: true,\n lineWidth: 1,\n borderDash: [],\n borderDashOffset: 0.0\n },\n grid: {\n circular: false\n },\n startAngle: 0,\n ticks: {\n showLabelBackdrop: true,\n callback: Ticks.formatters.numeric\n },\n pointLabels: {\n backdropColor: undefined,\n backdropPadding: 2,\n display: true,\n font: {\n size: 10\n },\n callback (label) {\n return label;\n },\n padding: 5,\n centerPointLabels: false\n }\n };\n static defaultRoutes = {\n 'angleLines.color': 'borderColor',\n 'pointLabels.color': 'color',\n 'ticks.color': 'color'\n };\n static descriptors = {\n angleLines: {\n _fallback: 'grid'\n }\n };\n constructor(cfg){\n super(cfg);\n this.xCenter = undefined;\n this.yCenter = undefined;\n this.drawingArea = undefined;\n this._pointLabels = [];\n this._pointLabelItems = [];\n }\n setDimensions() {\n const padding = this._padding = toPadding(getTickBackdropHeight(this.options) / 2);\n const w = this.width = this.maxWidth - padding.width;\n const h = this.height = this.maxHeight - padding.height;\n this.xCenter = Math.floor(this.left + w / 2 + padding.left);\n this.yCenter = Math.floor(this.top + h / 2 + padding.top);\n this.drawingArea = Math.floor(Math.min(w, h) / 2);\n }\n determineDataLimits() {\n const { min , max } = this.getMinMax(false);\n this.min = isNumberFinite(min) && !isNaN(min) ? min : 0;\n this.max = isNumberFinite(max) && !isNaN(max) ? max : 0;\n this.handleTickRangeOptions();\n }\n computeTickLimit() {\n return Math.ceil(this.drawingArea / getTickBackdropHeight(this.options));\n }\n generateTickLabels(ticks) {\n LinearScaleBase.prototype.generateTickLabels.call(this, ticks);\n this._pointLabels = this.getLabels().map((value, index)=>{\n const label = callback(this.options.pointLabels.callback, [\n value,\n index\n ], this);\n return label || label === 0 ? label : '';\n }).filter((v, i)=>this.chart.getDataVisibility(i));\n }\n fit() {\n const opts = this.options;\n if (opts.display && opts.pointLabels.display) {\n fitWithPointLabels(this);\n } else {\n this.setCenterPoint(0, 0, 0, 0);\n }\n }\n setCenterPoint(leftMovement, rightMovement, topMovement, bottomMovement) {\n this.xCenter += Math.floor((leftMovement - rightMovement) / 2);\n this.yCenter += Math.floor((topMovement - bottomMovement) / 2);\n this.drawingArea -= Math.min(this.drawingArea / 2, Math.max(leftMovement, rightMovement, topMovement, bottomMovement));\n }\n getIndexAngle(index) {\n const angleMultiplier = TAU / (this._pointLabels.length || 1);\n const startAngle = this.options.startAngle || 0;\n return _normalizeAngle(index * angleMultiplier + toRadians(startAngle));\n }\n getDistanceFromCenterForValue(value) {\n if (isNullOrUndef(value)) {\n return NaN;\n }\n const scalingFactor = this.drawingArea / (this.max - this.min);\n if (this.options.reverse) {\n return (this.max - value) * scalingFactor;\n }\n return (value - this.min) * scalingFactor;\n }\n getValueForDistanceFromCenter(distance) {\n if (isNullOrUndef(distance)) {\n return NaN;\n }\n const scaledDistance = distance / (this.drawingArea / (this.max - this.min));\n return this.options.reverse ? this.max - scaledDistance : this.min + scaledDistance;\n }\n getPointLabelContext(index) {\n const pointLabels = this._pointLabels || [];\n if (index >= 0 && index < pointLabels.length) {\n const pointLabel = pointLabels[index];\n return createPointLabelContext(this.getContext(), index, pointLabel);\n }\n }\n getPointPosition(index, distanceFromCenter, additionalAngle = 0) {\n const angle = this.getIndexAngle(index) - HALF_PI + additionalAngle;\n return {\n x: Math.cos(angle) * distanceFromCenter + this.xCenter,\n y: Math.sin(angle) * distanceFromCenter + this.yCenter,\n angle\n };\n }\n getPointPositionForValue(index, value) {\n return this.getPointPosition(index, this.getDistanceFromCenterForValue(value));\n }\n getBasePosition(index) {\n return this.getPointPositionForValue(index || 0, this.getBaseValue());\n }\n getPointLabelPosition(index) {\n const { left , top , right , bottom } = this._pointLabelItems[index];\n return {\n left,\n top,\n right,\n bottom\n };\n }\n drawBackground() {\n const { backgroundColor , grid: { circular } } = this.options;\n if (backgroundColor) {\n const ctx = this.ctx;\n ctx.save();\n ctx.beginPath();\n pathRadiusLine(this, this.getDistanceFromCenterForValue(this._endValue), circular, this._pointLabels.length);\n ctx.closePath();\n ctx.fillStyle = backgroundColor;\n ctx.fill();\n ctx.restore();\n }\n }\n drawGrid() {\n const ctx = this.ctx;\n const opts = this.options;\n const { angleLines , grid , border } = opts;\n const labelCount = this._pointLabels.length;\n let i, offset, position;\n if (opts.pointLabels.display) {\n drawPointLabels(this, labelCount);\n }\n if (grid.display) {\n this.ticks.forEach((tick, index)=>{\n if (index !== 0) {\n offset = this.getDistanceFromCenterForValue(tick.value);\n const context = this.getContext(index);\n const optsAtIndex = grid.setContext(context);\n const optsAtIndexBorder = border.setContext(context);\n drawRadiusLine(this, optsAtIndex, offset, labelCount, optsAtIndexBorder);\n }\n });\n }\n if (angleLines.display) {\n ctx.save();\n for(i = labelCount - 1; i >= 0; i--){\n const optsAtIndex = angleLines.setContext(this.getPointLabelContext(i));\n const { color , lineWidth } = optsAtIndex;\n if (!lineWidth || !color) {\n continue;\n }\n ctx.lineWidth = lineWidth;\n ctx.strokeStyle = color;\n ctx.setLineDash(optsAtIndex.borderDash);\n ctx.lineDashOffset = optsAtIndex.borderDashOffset;\n offset = this.getDistanceFromCenterForValue(opts.ticks.reverse ? this.min : this.max);\n position = this.getPointPosition(i, offset);\n ctx.beginPath();\n ctx.moveTo(this.xCenter, this.yCenter);\n ctx.lineTo(position.x, position.y);\n ctx.stroke();\n }\n ctx.restore();\n }\n }\n drawBorder() {}\n drawLabels() {\n const ctx = this.ctx;\n const opts = this.options;\n const tickOpts = opts.ticks;\n if (!tickOpts.display) {\n return;\n }\n const startAngle = this.getIndexAngle(0);\n let offset, width;\n ctx.save();\n ctx.translate(this.xCenter, this.yCenter);\n ctx.rotate(startAngle);\n ctx.textAlign = 'center';\n ctx.textBaseline = 'middle';\n this.ticks.forEach((tick, index)=>{\n if (index === 0 && !opts.reverse) {\n return;\n }\n const optsAtIndex = tickOpts.setContext(this.getContext(index));\n const tickFont = toFont(optsAtIndex.font);\n offset = this.getDistanceFromCenterForValue(this.ticks[index].value);\n if (optsAtIndex.showLabelBackdrop) {\n ctx.font = tickFont.string;\n width = ctx.measureText(tick.label).width;\n ctx.fillStyle = optsAtIndex.backdropColor;\n const padding = toPadding(optsAtIndex.backdropPadding);\n ctx.fillRect(-width / 2 - padding.left, -offset - tickFont.size / 2 - padding.top, width + padding.width, tickFont.size + padding.height);\n }\n renderText(ctx, tick.label, 0, -offset, tickFont, {\n color: optsAtIndex.color\n });\n });\n ctx.restore();\n }\n drawTitle() {}\n}\n\nconst INTERVALS = {\n millisecond: {\n common: true,\n size: 1,\n steps: 1000\n },\n second: {\n common: true,\n size: 1000,\n steps: 60\n },\n minute: {\n common: true,\n size: 60000,\n steps: 60\n },\n hour: {\n common: true,\n size: 3600000,\n steps: 24\n },\n day: {\n common: true,\n size: 86400000,\n steps: 30\n },\n week: {\n common: false,\n size: 604800000,\n steps: 4\n },\n month: {\n common: true,\n size: 2.628e9,\n steps: 12\n },\n quarter: {\n common: false,\n size: 7.884e9,\n steps: 4\n },\n year: {\n common: true,\n size: 3.154e10\n }\n};\n const UNITS = /* #__PURE__ */ Object.keys(INTERVALS);\n function sorter(a, b) {\n return a - b;\n}\n function parse(scale, input) {\n if (isNullOrUndef(input)) {\n return null;\n }\n const adapter = scale._adapter;\n const { parser , round , isoWeekday } = scale._parseOpts;\n let value = input;\n if (typeof parser === 'function') {\n value = parser(value);\n }\n if (!isNumberFinite(value)) {\n value = typeof parser === 'string' ? adapter.parse(value, parser) : adapter.parse(value);\n }\n if (value === null) {\n return null;\n }\n if (round) {\n value = round === 'week' && (isNumber(isoWeekday) || isoWeekday === true) ? adapter.startOf(value, 'isoWeek', isoWeekday) : adapter.startOf(value, round);\n }\n return +value;\n}\n function determineUnitForAutoTicks(minUnit, min, max, capacity) {\n const ilen = UNITS.length;\n for(let i = UNITS.indexOf(minUnit); i < ilen - 1; ++i){\n const interval = INTERVALS[UNITS[i]];\n const factor = interval.steps ? interval.steps : Number.MAX_SAFE_INTEGER;\n if (interval.common && Math.ceil((max - min) / (factor * interval.size)) <= capacity) {\n return UNITS[i];\n }\n }\n return UNITS[ilen - 1];\n}\n function determineUnitForFormatting(scale, numTicks, minUnit, min, max) {\n for(let i = UNITS.length - 1; i >= UNITS.indexOf(minUnit); i--){\n const unit = UNITS[i];\n if (INTERVALS[unit].common && scale._adapter.diff(max, min, unit) >= numTicks - 1) {\n return unit;\n }\n }\n return UNITS[minUnit ? UNITS.indexOf(minUnit) : 0];\n}\n function determineMajorUnit(unit) {\n for(let i = UNITS.indexOf(unit) + 1, ilen = UNITS.length; i < ilen; ++i){\n if (INTERVALS[UNITS[i]].common) {\n return UNITS[i];\n }\n }\n}\n function addTick(ticks, time, timestamps) {\n if (!timestamps) {\n ticks[time] = true;\n } else if (timestamps.length) {\n const { lo , hi } = _lookup(timestamps, time);\n const timestamp = timestamps[lo] >= time ? timestamps[lo] : timestamps[hi];\n ticks[timestamp] = true;\n }\n}\n function setMajorTicks(scale, ticks, map, majorUnit) {\n const adapter = scale._adapter;\n const first = +adapter.startOf(ticks[0].value, majorUnit);\n const last = ticks[ticks.length - 1].value;\n let major, index;\n for(major = first; major <= last; major = +adapter.add(major, 1, majorUnit)){\n index = map[major];\n if (index >= 0) {\n ticks[index].major = true;\n }\n }\n return ticks;\n}\n function ticksFromTimestamps(scale, values, majorUnit) {\n const ticks = [];\n const map = {};\n const ilen = values.length;\n let i, value;\n for(i = 0; i < ilen; ++i){\n value = values[i];\n map[value] = i;\n ticks.push({\n value,\n major: false\n });\n }\n return ilen === 0 || !majorUnit ? ticks : setMajorTicks(scale, ticks, map, majorUnit);\n}\nclass TimeScale extends Scale {\n static id = 'time';\n static defaults = {\n bounds: 'data',\n adapters: {},\n time: {\n parser: false,\n unit: false,\n round: false,\n isoWeekday: false,\n minUnit: 'millisecond',\n displayFormats: {}\n },\n ticks: {\n source: 'auto',\n callback: false,\n major: {\n enabled: false\n }\n }\n };\n constructor(props){\n super(props);\n this._cache = {\n data: [],\n labels: [],\n all: []\n };\n this._unit = 'day';\n this._majorUnit = undefined;\n this._offsets = {};\n this._normalized = false;\n this._parseOpts = undefined;\n }\n init(scaleOpts, opts = {}) {\n const time = scaleOpts.time || (scaleOpts.time = {});\n const adapter = this._adapter = new adapters._date(scaleOpts.adapters.date);\n adapter.init(opts);\n mergeIf(time.displayFormats, adapter.formats());\n this._parseOpts = {\n parser: time.parser,\n round: time.round,\n isoWeekday: time.isoWeekday\n };\n super.init(scaleOpts);\n this._normalized = opts.normalized;\n }\n parse(raw, index) {\n if (raw === undefined) {\n return null;\n }\n return parse(this, raw);\n }\n beforeLayout() {\n super.beforeLayout();\n this._cache = {\n data: [],\n labels: [],\n all: []\n };\n }\n determineDataLimits() {\n const options = this.options;\n const adapter = this._adapter;\n const unit = options.time.unit || 'day';\n let { min , max , minDefined , maxDefined } = this.getUserBounds();\n function _applyBounds(bounds) {\n if (!minDefined && !isNaN(bounds.min)) {\n min = Math.min(min, bounds.min);\n }\n if (!maxDefined && !isNaN(bounds.max)) {\n max = Math.max(max, bounds.max);\n }\n }\n if (!minDefined || !maxDefined) {\n _applyBounds(this._getLabelBounds());\n if (options.bounds !== 'ticks' || options.ticks.source !== 'labels') {\n _applyBounds(this.getMinMax(false));\n }\n }\n min = isNumberFinite(min) && !isNaN(min) ? min : +adapter.startOf(Date.now(), unit);\n max = isNumberFinite(max) && !isNaN(max) ? max : +adapter.endOf(Date.now(), unit) + 1;\n this.min = Math.min(min, max - 1);\n this.max = Math.max(min + 1, max);\n }\n _getLabelBounds() {\n const arr = this.getLabelTimestamps();\n let min = Number.POSITIVE_INFINITY;\n let max = Number.NEGATIVE_INFINITY;\n if (arr.length) {\n min = arr[0];\n max = arr[arr.length - 1];\n }\n return {\n min,\n max\n };\n }\n buildTicks() {\n const options = this.options;\n const timeOpts = options.time;\n const tickOpts = options.ticks;\n const timestamps = tickOpts.source === 'labels' ? this.getLabelTimestamps() : this._generate();\n if (options.bounds === 'ticks' && timestamps.length) {\n this.min = this._userMin || timestamps[0];\n this.max = this._userMax || timestamps[timestamps.length - 1];\n }\n const min = this.min;\n const max = this.max;\n const ticks = _filterBetween(timestamps, min, max);\n this._unit = timeOpts.unit || (tickOpts.autoSkip ? determineUnitForAutoTicks(timeOpts.minUnit, this.min, this.max, this._getLabelCapacity(min)) : determineUnitForFormatting(this, ticks.length, timeOpts.minUnit, this.min, this.max));\n this._majorUnit = !tickOpts.major.enabled || this._unit === 'year' ? undefined : determineMajorUnit(this._unit);\n this.initOffsets(timestamps);\n if (options.reverse) {\n ticks.reverse();\n }\n return ticksFromTimestamps(this, ticks, this._majorUnit);\n }\n afterAutoSkip() {\n if (this.options.offsetAfterAutoskip) {\n this.initOffsets(this.ticks.map((tick)=>+tick.value));\n }\n }\n initOffsets(timestamps = []) {\n let start = 0;\n let end = 0;\n let first, last;\n if (this.options.offset && timestamps.length) {\n first = this.getDecimalForValue(timestamps[0]);\n if (timestamps.length === 1) {\n start = 1 - first;\n } else {\n start = (this.getDecimalForValue(timestamps[1]) - first) / 2;\n }\n last = this.getDecimalForValue(timestamps[timestamps.length - 1]);\n if (timestamps.length === 1) {\n end = last;\n } else {\n end = (last - this.getDecimalForValue(timestamps[timestamps.length - 2])) / 2;\n }\n }\n const limit = timestamps.length < 3 ? 0.5 : 0.25;\n start = _limitValue(start, 0, limit);\n end = _limitValue(end, 0, limit);\n this._offsets = {\n start,\n end,\n factor: 1 / (start + 1 + end)\n };\n }\n _generate() {\n const adapter = this._adapter;\n const min = this.min;\n const max = this.max;\n const options = this.options;\n const timeOpts = options.time;\n const minor = timeOpts.unit || determineUnitForAutoTicks(timeOpts.minUnit, min, max, this._getLabelCapacity(min));\n const stepSize = valueOrDefault(options.ticks.stepSize, 1);\n const weekday = minor === 'week' ? timeOpts.isoWeekday : false;\n const hasWeekday = isNumber(weekday) || weekday === true;\n const ticks = {};\n let first = min;\n let time, count;\n if (hasWeekday) {\n first = +adapter.startOf(first, 'isoWeek', weekday);\n }\n first = +adapter.startOf(first, hasWeekday ? 'day' : minor);\n if (adapter.diff(max, min, minor) > 100000 * stepSize) {\n throw new Error(min + ' and ' + max + ' are too far apart with stepSize of ' + stepSize + ' ' + minor);\n }\n const timestamps = options.ticks.source === 'data' && this.getDataTimestamps();\n for(time = first, count = 0; time < max; time = +adapter.add(time, stepSize, minor), count++){\n addTick(ticks, time, timestamps);\n }\n if (time === max || options.bounds === 'ticks' || count === 1) {\n addTick(ticks, time, timestamps);\n }\n return Object.keys(ticks).sort((a, b)=>a - b).map((x)=>+x);\n }\n getLabelForValue(value) {\n const adapter = this._adapter;\n const timeOpts = this.options.time;\n if (timeOpts.tooltipFormat) {\n return adapter.format(value, timeOpts.tooltipFormat);\n }\n return adapter.format(value, timeOpts.displayFormats.datetime);\n }\n format(value, format) {\n const options = this.options;\n const formats = options.time.displayFormats;\n const unit = this._unit;\n const fmt = format || formats[unit];\n return this._adapter.format(value, fmt);\n }\n _tickFormatFunction(time, index, ticks, format) {\n const options = this.options;\n const formatter = options.ticks.callback;\n if (formatter) {\n return callback(formatter, [\n time,\n index,\n ticks\n ], this);\n }\n const formats = options.time.displayFormats;\n const unit = this._unit;\n const majorUnit = this._majorUnit;\n const minorFormat = unit && formats[unit];\n const majorFormat = majorUnit && formats[majorUnit];\n const tick = ticks[index];\n const major = majorUnit && majorFormat && tick && tick.major;\n return this._adapter.format(time, format || (major ? majorFormat : minorFormat));\n }\n generateTickLabels(ticks) {\n let i, ilen, tick;\n for(i = 0, ilen = ticks.length; i < ilen; ++i){\n tick = ticks[i];\n tick.label = this._tickFormatFunction(tick.value, i, ticks);\n }\n }\n getDecimalForValue(value) {\n return value === null ? NaN : (value - this.min) / (this.max - this.min);\n }\n getPixelForValue(value) {\n const offsets = this._offsets;\n const pos = this.getDecimalForValue(value);\n return this.getPixelForDecimal((offsets.start + pos) * offsets.factor);\n }\n getValueForPixel(pixel) {\n const offsets = this._offsets;\n const pos = this.getDecimalForPixel(pixel) / offsets.factor - offsets.end;\n return this.min + pos * (this.max - this.min);\n }\n _getLabelSize(label) {\n const ticksOpts = this.options.ticks;\n const tickLabelWidth = this.ctx.measureText(label).width;\n const angle = toRadians(this.isHorizontal() ? ticksOpts.maxRotation : ticksOpts.minRotation);\n const cosRotation = Math.cos(angle);\n const sinRotation = Math.sin(angle);\n const tickFontSize = this._resolveTickFontOptions(0).size;\n return {\n w: tickLabelWidth * cosRotation + tickFontSize * sinRotation,\n h: tickLabelWidth * sinRotation + tickFontSize * cosRotation\n };\n }\n _getLabelCapacity(exampleTime) {\n const timeOpts = this.options.time;\n const displayFormats = timeOpts.displayFormats;\n const format = displayFormats[timeOpts.unit] || displayFormats.millisecond;\n const exampleLabel = this._tickFormatFunction(exampleTime, 0, ticksFromTimestamps(this, [\n exampleTime\n ], this._majorUnit), format);\n const size = this._getLabelSize(exampleLabel);\n const capacity = Math.floor(this.isHorizontal() ? this.width / size.w : this.height / size.h) - 1;\n return capacity > 0 ? capacity : 1;\n }\n getDataTimestamps() {\n let timestamps = this._cache.data || [];\n let i, ilen;\n if (timestamps.length) {\n return timestamps;\n }\n const metas = this.getMatchingVisibleMetas();\n if (this._normalized && metas.length) {\n return this._cache.data = metas[0].controller.getAllParsedValues(this);\n }\n for(i = 0, ilen = metas.length; i < ilen; ++i){\n timestamps = timestamps.concat(metas[i].controller.getAllParsedValues(this));\n }\n return this._cache.data = this.normalize(timestamps);\n }\n getLabelTimestamps() {\n const timestamps = this._cache.labels || [];\n let i, ilen;\n if (timestamps.length) {\n return timestamps;\n }\n const labels = this.getLabels();\n for(i = 0, ilen = labels.length; i < ilen; ++i){\n timestamps.push(parse(this, labels[i]));\n }\n return this._cache.labels = this._normalized ? timestamps : this.normalize(timestamps);\n }\n normalize(values) {\n return _arrayUnique(values.sort(sorter));\n }\n}\n\nfunction interpolate(table, val, reverse) {\n let lo = 0;\n let hi = table.length - 1;\n let prevSource, nextSource, prevTarget, nextTarget;\n if (reverse) {\n if (val >= table[lo].pos && val <= table[hi].pos) {\n ({ lo , hi } = _lookupByKey(table, 'pos', val));\n }\n ({ pos: prevSource , time: prevTarget } = table[lo]);\n ({ pos: nextSource , time: nextTarget } = table[hi]);\n } else {\n if (val >= table[lo].time && val <= table[hi].time) {\n ({ lo , hi } = _lookupByKey(table, 'time', val));\n }\n ({ time: prevSource , pos: prevTarget } = table[lo]);\n ({ time: nextSource , pos: nextTarget } = table[hi]);\n }\n const span = nextSource - prevSource;\n return span ? prevTarget + (nextTarget - prevTarget) * (val - prevSource) / span : prevTarget;\n}\nclass TimeSeriesScale extends TimeScale {\n static id = 'timeseries';\n static defaults = TimeScale.defaults;\n constructor(props){\n super(props);\n this._table = [];\n this._minPos = undefined;\n this._tableRange = undefined;\n }\n initOffsets() {\n const timestamps = this._getTimestampsForTable();\n const table = this._table = this.buildLookupTable(timestamps);\n this._minPos = interpolate(table, this.min);\n this._tableRange = interpolate(table, this.max) - this._minPos;\n super.initOffsets(timestamps);\n }\n buildLookupTable(timestamps) {\n const { min , max } = this;\n const items = [];\n const table = [];\n let i, ilen, prev, curr, next;\n for(i = 0, ilen = timestamps.length; i < ilen; ++i){\n curr = timestamps[i];\n if (curr >= min && curr <= max) {\n items.push(curr);\n }\n }\n if (items.length < 2) {\n return [\n {\n time: min,\n pos: 0\n },\n {\n time: max,\n pos: 1\n }\n ];\n }\n for(i = 0, ilen = items.length; i < ilen; ++i){\n next = items[i + 1];\n prev = items[i - 1];\n curr = items[i];\n if (Math.round((next + prev) / 2) !== curr) {\n table.push({\n time: curr,\n pos: i / (ilen - 1)\n });\n }\n }\n return table;\n }\n _getTimestampsForTable() {\n let timestamps = this._cache.all || [];\n if (timestamps.length) {\n return timestamps;\n }\n const data = this.getDataTimestamps();\n const label = this.getLabelTimestamps();\n if (data.length && label.length) {\n timestamps = this.normalize(data.concat(label));\n } else {\n timestamps = data.length ? data : label;\n }\n timestamps = this._cache.all = timestamps;\n return timestamps;\n }\n getDecimalForValue(value) {\n return (interpolate(this._table, value) - this._minPos) / this._tableRange;\n }\n getValueForPixel(pixel) {\n const offsets = this._offsets;\n const decimal = this.getDecimalForPixel(pixel) / offsets.factor - offsets.end;\n return interpolate(this._table, decimal * this._tableRange + this._minPos, true);\n }\n}\n\nvar scales = /*#__PURE__*/Object.freeze({\n__proto__: null,\nCategoryScale: CategoryScale,\nLinearScale: LinearScale,\nLogarithmicScale: LogarithmicScale,\nRadialLinearScale: RadialLinearScale,\nTimeScale: TimeScale,\nTimeSeriesScale: TimeSeriesScale\n});\n\nconst registerables = [\n controllers,\n elements,\n plugins,\n scales\n];\n\nexport { Animation, Animations, ArcElement, BarController, BarElement, BasePlatform, BasicPlatform, BubbleController, CategoryScale, Chart, plugin_colors as Colors, DatasetController, plugin_decimation as Decimation, DomPlatform, DoughnutController, Element, index as Filler, Interaction, plugin_legend as Legend, LineController, LineElement, LinearScale, LogarithmicScale, PieController, PointElement, PolarAreaController, RadarController, RadialLinearScale, Scale, ScatterController, plugin_subtitle as SubTitle, TimeScale, TimeSeriesScale, plugin_title as Title, plugin_tooltip as Tooltip, adapters as _adapters, _detectPlatform, animator, controllers, elements, layouts, plugins, registerables, registry, scales };\n//# sourceMappingURL=chart.js.map\n"],"x_google_ignoreList":[]}