{"version":3,"file":"scripts.21ce00cd9fb245bb.js","mappings":"UACAA,OAAe,aAAa,2GAAuG,4EAA2E,eAAYC,eAAMC,uCAAsD,aAAa,qEAAgE,wBAAsB,YAAa,8BAA4BC,+BAA0BC,4EAAmEC,eAAe,oFAAmFC,eAAe,8BAA6BC,mBAAiBC,qCAAqC,mBAAkB,4CAA2C,2FAA0FC,gDAAgD,eAAc,+FAA6F,oBAA8B,2BAA2B,eAAc,0CAAyC,8EAA4EC,kBAAkBC,OAA9M,QAA8MC,0CAAmD,sBAAoBC,gBAAiB,8DAA4DC,sBAAuB,oCAAoC,4BAA2BC,iBAAkB,uBAAsBC,gBAAiB,+CAA+C,uBAAqB,EAAGC,iBAAkB,iDAA+CC,iBAAkB,mBAAkBC,gBAAiB,oBAAmBC,gBAAiB,gDAAgD,gBAAc,EAAGC,eAAgB,gDAAgD,aAAW,EAAGC,eAAgB,iCAAiC,+CAA8CC,eAAgB,4CAA2CC,uCAAoCd,gCAAiC,mCAAkCe,4BAA6B,iDAAgDA,uCAAqCA,oBAAsBA,IAAIA,uLAAsLC,iDAAkD,UAAShB,UAAWiB,kBAA1+C,QAA0+CC,8DAAkF,oBAAmBC,kBAAkBC,0BAA2B,QAAQ,yIAAqIC,0BAA2B,MAAM,oBAAoB,UAASC,2BAA4BC,MAAKC,kBAAiBzB,IAAIM,mBAAoB,UAAU,SAAS,eAAeoB,MAAI,kCAAsC,6CAAkD,UAASC,wBAAyB,YAAY,oFAAiFC,wBAAyB,kCAAgCC,oBAAqB,mCAAmCH,IAAIA,gBAAgB,qBAAoBI,qBAAsB,iCAAiCb,IAAIA,iCAAiC,UAASV,oBAAqB,iBAAiB,wBAAuBZ,IAAIA,0CAAqC,4CAAiD,cAAYoC,oBAAkB,8KAA+K/B,uCAAsC,mBAAkB,+IAAiI,wBAAuBgC,KAAKC,wEAAyE,uBAAuBjC,IAAIA,yBAAyB,UAASkC,mLAAkLC,kgBAAwfC,0cAAucC,6FAA0EC,qFAAkGH,+CAAiD,4BAA4B,4FAA2FI,0EAA2E,gGAA+FC,cAAeC,KAAIC,kBAAmB,8DAA6D,CAAEC,iCAAiC,IAAIC,8CAAkM,CAAlM,MAAsFA,GAAGC,6BAA6BC,sBAAqB,cAAkC,QAAnB9C,eAAmBT,gBAAqBA,eAAe,qBAAqB,8DAAwD,oEAAiE,yBAAwB,wCAAoC,WAAU,qCAAqC,uCAA+BwD,uEAAwE,CAAK,uDAAsD,iHAAgH,yFAAqF,+CAAqL,KAA3IA,iJAA2IpD,8CAA+CqD,gBAAc,IAAI,iFAAgF,2CAAmE,CAAnE,MAAmDC,iBAAgBjC,mCAAiC,mCAAkC,cAAc,SAAS,uBAAuB,oEAAoE,eAAe,kBAAiB,eAAe,kCAAkC,IAAI,YAAuC,CAAvC,MAAsB,iBAAiBxB,kDAAkD,iBAA+C,QAA9BQ,0BAA8B0B,0BAA+B,iBAAiB,4EAA4E,cAAc,6CAA6C,cAAc,eAAe,mBAAmB,sDAAsD,eAAe,mBAAmB,+BAA+B,+CAA+C,eAAe,mBAAmB,sNAAsN,eAAe,sBAAsB,6BAAiE,QAApC1B,gCAAoCiB,qCAAyC,EAAE,CAAE,eAAe,+CAAwD,yBAAwBA,uBAAwB,8CAAkE,eAAlE1B,mBAAkES,wBAAwCyC,6BAA8B,kCAAiC,mPAAgP,gJAAsJS,oCAAsC,oHAAkHA,4BAA8B,sDAAoDA,sCAAwC,gFAA8EA,oFAAqF,uFAAkFA,mCAAqC,uBAAuB,mBAAmB,kCAAiC1B,wBAAyB,oCAA4C,0BAA0B,oBAAiBA,wBAA2B,uBAAuB,mBAAmB,+DAAuE,0BAAuBA,wBAAyB,oCAA4C,mCAAgC,OAAM,yDAAoF,IAA7BP,+BAA6BtB,sEAAsE,YAAU6B,gDAAkD,uGAA8G,cAAe,8CAA2C,YAAY,4CAAyC,UAAS,WAASA,qDAAsD,+EAAsFR,iEAA+D,MAAMmC,2qBAA6pBC,eAAiB7D,gGAAgG,+BAA+BC,qXAA4W0D,sJAAmJA,6EAAuEA,oMAA0L,8DAA6D,kIAA4H,cAAe,4CAA4C,UAASG,kBAAmB,uBAAuB,4DAA4D,wPAAiP,cAAe,uBAAuB,yDAAoD,+DAA2D,0BAA4B,IAAJrD,IAAIA,8BAAsC,IAAJA,IAAIA,8BAAkC,2BAAsB,2DAA8CsD,GAAIC,yBAA0B,0BAAyBA,iCAAkC,sFAAgF,mBAAkB,wEAAkF,CAAlF,MAAkFN,SAAQ,kCAAiCM,0BAA2B,6CAA2CA,uBAAuBhE,6BAA8B,gGAA+F,6GAA2GgE,sBAAuB,6BAA4BA,qBAAsB,8DAA6DA,0BAA2B,mBAAmB,kEAAkE,uCAAuC,2BAA2B,iBAAgB5D,yBAA0B,4BAA4B,MAAM,yBAAyB,uDAAuD,mBAAmBJ,EAAEA,gCAAwB,qCAAwC,uBAA4B,WAASiC,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,sEAAqE,kHAA0H,EAAEL,qBAAsB,mBAAmB,mBAAmB,mQAAiQC,0BAA2B,mEAAkE,iCAAgC,uBAAqB,mBAAiB,mIAAmH,OAAM,MAAM,UAAa,IAAJV,MAAIA,yEAAuEzD,qCAAkC,SAAS,4CAA6J,IAArHwD,6CAAgCC,oCAAiCe,wDAAoDf,6EAAsElC,iBAAa,eAAOkD,iDAA2ChB,oCAAiCe,iLAAyJf,oCAAiCe,wBAA0B,uCAAmCJ,qBAAsB,wFAAwF,yGAAkI,QAA1B9D,yBAA0BiB,wCAAsC,YAAc,kBAAgBkC,IAAKiB,SAAUC,mBAAmB,sCAAqC,mCAAmE,QAAlCpD,kCAAkCkC,yCAAqC,gBAAkB,kDAAgDmB,mBAAqB,mBAAmB,2BAAyBC,wBAA0B,sCAAsC,6CAA2CC,oBAAsB,qGAAoG,MAAM,MAAGhF,0HAAqHD,iCAAwC,YAAUkF,mBAAqB,kCAAkC,6BAA4BC,iBAAkB,eAAaC,kBAAmB,0FAAyFC,mDAAoD,+BAA+B,4DAA2DC,qBAAsB,uBAAgEC,kBAAmB,mBAAmBvF,EAAEA,yCAAyC,UAASwF,mBAAoB,2BAA0BC,mBAAoB,4BAA0BC,kBAAmB,4BAA0BC,mBAAoB,+BAA+B,oDAAmDC,iBAAkB,MAAM,yHAAwH1E,oBAAqB,YAAUC,sBAAwB,cAAYG,sBAAwB,oBAAkBF,sBAAwB,YAAYX,IAAIA,eAAe,WAASY,qBAAuB,YAAYZ,IAAIA,eAAe,WAASoF,sBAAwB,0BAA0B,QAAO7F,UAAW,WAAS8F,sBAAwB,sBAAoB3D,KAAMnC,UAAW,cAAY6E,0BAA4BkB,mDAAkD9D,mBAAoB,SAAS+D,oBAAmB/D,mBAAoB,eAAe,eAAe,4BAA4BhC,IAAIA,kBAAkB,SAAS,mBAAmB,0DAAwD,kCAA+B,wDAAkD,UAAS,mBAAiB,wBAAkB,OAAM,kEAAuD,oEAA6DD,mCAAiCiG,kDAA4C,CAAK,yDAAiD,sCAAiC,UAAU,eAAe,kCAAiD,QAAf9D,WAAeA,8BAAmC,UAAST,KAAM,uBAAuB,2CAAwCD,MAAIA,2DAAuD,SAAS,yBAAyB,2EAAsE,+DAAoD,0BAAuBU,MAAIA,sBAAiB,UAAhG,CAAyGwC,8FAAkF,uBAAqD,IAAjCjD,yCAAiCtB,iDAA2C,MAAM,SAAS,MAAsB,IAAhBsB,mBAAgBtB,sCAAmC8F,oBAA4B,IAAX9F,aAAWA,wEAA4DwE,6EAAqE,CAAE,eAAe,kGAA+F,eAAahB,yBAAwB,kBAAgBA,6BAA0B,qEAAyD,mBAAkBnC,KAAIA,uDAA+C,CAAK,2DAAwD,WAAUhB,MAAIwB,2BAAmC,wDAAoDkE,mCAA+BC,6EAA6E3C,WAAU,cAAa,wFAAwF,iCAA6B,6BAAkD,IAAvBG,yBAAuBA,IAAS,sHAAmHuC,oCAAiCvC,6FAA4FuC,2BAAyBvC,qBAAuB,YAAY,mDAAgDJ,2BAA4B,0CAAqC,QAA8B,IAAvBvD,uBAAuBQ,gDAA8CmD,yEAAgE,4HAA2G,0BAAsBqC,2BAAsBA,MAAK,UAAgD,IAAvCrC,6CAAuCnC,gCAA+BU,YAAU,MAAMT,YAASrB,wCAAiC,sBAAsB,IAAJuD,KAAInC,4BAA0B,OAAM,uDAA8C+B,UAAQH,sEAA+D,4BAAsBhD,0BAAyB,WAASgG,8BAA+B,sEAAiE,0BAAyB,uGAAoG,mEAAmEJ,uDAA0F,IAApCvE,qCAAoCA,MAAWO,8BAAqC,iGAA8F,4DAA4D,OAAQ,sEAAkE0B,yGAAwG,kEAAgEE,eAAiB,iFAA8EyC,4CAA+C,8DAA4D3C,6BAA+B,+GAA4G2C,2BAA8B,kEAAgEzC,eAAiB,2CAAwCyC,qBAAwB,MAAM,4FAA0FtC,GAA9xnB,CAAmynBD,IAAIrD,qLAA8K,uBAA4C,QAAtByB,mBAAsBnC,4CAAkD,uBAAuBmC,UAAU,UAASe,iBAAiB,aAAalD,EAAEA,iDAAiD,UAASuG,6BAA6B,iBAAgB,8DAA8D,yEAAwE,mBAAkB,oCAAmC,4BAA0B9F,gCAAkC,mBAAiB,wCAA0C,4BAAyBC,gBAAkBA,yBAAyB,WAAW,kIAAkI,wBAAsB,EAAGA,aAAcwD,iBAAiB,6BAA6B,mEAAmE,QAAQjE,IAAIA,yCAAyC,6BAA6BA,IAAIA,qBAAqB,8BAA6BuE,mBAAoB,0CAAwCM,gBAAiB,0CAAwC0B,eAAgB,wEAAsE,iDAA8C9F,0BAA2B,QAAQ,kBAAkB,+BAA8B,sJAAqJ,SAAS,2LAAwL,YAAY,kEAAiE,8GAA2G+F,wBAAwB,4CAA0CC,yCAAyC,iBAAgB,gCAAgC,SAAShG,aAAaqE,gBAAgB,2BAA2B,8BAA8B,YAAY/E,IAAIA,uCAAsC,EAAE2G,sBAAuB,wDAAwD,oBAAmBxE,IAAIA,kBAAkB1B,SAASA,gGAAgGL,UAAU,MAAM,qDAAoDwG,kBAAmB,8IAA2IC,kBAAmB,iEAAgEC,oBAAqB,sEAAoEpG,QAAU8E,mBAAmB,mBAAmB,kCAAiCuB,oBAAqB,2BAAyBC,6BAA8B,6BAA2BC,iBAAkB,4BAA0BC,iBAAkB,gCAA8BC,oBAAqB,4BAA0BC,oBAAqB,gCAA8BC,0BAA2B,8BAA4BC,0BAA2B,kCAAgCC,qBAAsB,6BAA0BC,eAAgBd,qBAAsB,yBAAuBe,qBAAsB,uIAAqI,cAAe/G,sBAAsB,sBAAsB,iKAA+J,2BAA0B,eAAc,SAAS,eAAc,QAAQ,qBAAoB,MAAM,IAAIV,uGAA+G,CAA/G,MAAsGA,GAASS,qBAAqBC,wBAAwB,MAAQyB,2BAA8BzB,OAA9ByB,EAA8BuF,4BAAqCjH,UAAQA,eAAgB0B,GAAI,wCAAwC,uBAAuBhC,SAAS8F,KAAkB,IAAZhG,cAAYgG,yEAAgF9D,sCAAqCqB,GAAIqD,eAAe,yDAAyDnG,yBAAuBL,gFAAsE,CAAtJ,CAAwJsH,6BAA6BC,kBAAmB,sCAA4C,QAANnH,IAAM,sDAAsDoH,MAAO9C,gBAAiB,uCAAsCQ,iBAAkB,uBAAsBuC,mBAAoB,2BAA0BC,oBAAqB,UAASC,gBAAiB,mCAAkCC,kBAAmB,WAAUC,uBAAwB,qEAAoEC,gBAAiB,wCAAuCC,iBAAkB,YAAY,UAAS1H,UAAW2H,qBAAqB,sQAAsQC,iBAAiB,UAASC,kBAAmB,+CAA8CC,kBAAqB,uBAAsBC,gBAAiB,gBAAgB,8BAA8B/H,uBAAuB,2BAA0Be,mBAAmB,iCAAiCzB,qHAAmH,GAAE0B,SAASgH,WAAYC,qBAAsB,QAAQ,oBAAoB,kBAAkB,uCAAoC,UAAQ,WAAW,qFAAkFtI,kOAA8MJ,mBAAkB,IAAID,IAAa,CAAb,MAAIA,IAASU,iIAAyHgB,+FAA2F,8BAA8BtB,4GAAoGsI,WAAYA,oBAAqB,iCAAgCjH,KAAM,8BAA8B,kBAAkBmC,kCAAkClC,KAAItB,mGAAoG,4DAA2DqB,4BAA2BmC,+BAAgCgF,iBAAkB,wFAAuF,mBAAmBzG,iFAAgF,6GAA2G,iCAAgC,sBAAsB,gEAA+DzB,uCAAuCqD,qHAAgHrD,6BAA8BqD,yBAAwB,SAAQ,EAAG,oBAAmB,cAAaxD,0FAAsFG,uBAAuB,oCAAsCA,sBAAoBmH,MAAOnH,UAAWmI,2CAAyC,+FAA6FnI,4MAAqM,+BAA8B,6BAA6B,uEAAwD,6EAAyF,yBAAsBT,QAAWwB,IAAIA,2CAA2C,sCAAqCqH,0BAAyB,iBAAgB,uBAAuB,eAAc,0CAAuC,mBAAkB,qDAAqD,cAAajB,gCAA+BkB,uBAAqBC,kBAAkB,sBAAsB,gBAAeC,2EAA2E9C,4BAAwBlG,GAAMiJ,oBAAqB,sBAAsB,sCAAgC,yBAA6B,UAASrI,kBAAmB,yEAAuEsI,uBAAwB,qGAAoGvB,qBAAsB,wBAAwB,eAAe,cAAsF,KAAvEnH,2EAAuEA,0BAAyB,yFAA8F2I,oBAAqB,sBAAsB,yCAAyC,2DAAsCC,YAA2B,mBAAkB,QAAQ,oHAAmH,IAAI5I,wFAAwF,CAAxF,MAAwF,CAAU6I,mBAAa7I,SAAc,SAASC,UAAU0I,oBAAoB,qCAAkCG,qBAAsB,yBAAuBC,yBAA0BF,gBAAcG,sBAAuB,yBAAuBC,0BAA2B5G,kBAAepC,aAAe6I,mBAAmB,sCAAsC,eAAe,yEAAkF,IAAXtJ,WAAWA,+EAAkF6C,4BAA2B,SAAS,8CAA8CwG,iBAAcK,oBAAqB,MAAM,gFAA+E9B,qBAAqByB,kBAAgB,EAAE,oCAAoCE,uBAAwB,4BAA4BF,mBAAiB,IAAG5I,UAAYkJ,sBAAsB,MAAM,uHAAsHC,sBAAiC,gBAAV5J,WAAUkC,4CAA+D,4GAA4GzB,gBAAeN,2BAA2B0J,0BAA2B,qBAAqB,mCAAiCvE,gDAAgDzC,8BAA4B,IAAGpC,aAAekJ,oBAAoB,QAAQ,sHAAsH,wBAAwBlJ,wEAAuE,EAAEmJ,oBAAqB,4BAA4BnJ,mBAAkB,EAAEqJ,uBAAwB,+BAA8BrB,sBAAuB,6DAA2DvG,yBAAwE,IAA7C,6CAA6CyB,oEAAwE,2BAA2B,iLAAgL,sCAAqCX,IAAK+G,aAAahH,gCAAgC,4EAA4E,qBAAqB,iGAAiG,qBAAqB,4BAA4B,gBAAe,WAAY,sBAAqB7C,4GAA6G,gBAAuC,IAAvB8F,uBAAuBrC,6DAAkElD,8BAA8B,uFAAuF,UAAU,iBAAiB,0CAA0C+C,IAAIA,+XAA+X,QAAQA,IAAIA,0CAA0C,SAAS/C,aAAauJ,gBAAgB,oBAAmBC,gBAAiB,iBAAgBC,mBAAoB,yEAAyEhH,wCAAuC,IAAK,iHAAiHU,+aAAya,QAAQuG,oMAAoM,iBAAiB,MAAM,8KAA+L,iBAAiB,uBAAuB3J,IAAIA,4DAA0D4J,gJAA+I,mBAAmB,uBAAuB,sEAAqE1G,KAAIA,+EAAsE2G,YAA6K,IAAzJ1G,yJAAyJH,mBAAwB/C,6DAAwDkE,4BAAsD,IAArBpB,qBAAqBpD,uDAAoD6F,mDAAgE,IAAJxC,IAAIrD,yCAA8C,SAAS,6BAA6B,cAAc,SAAS,cAAc,SAAS,iBAAiB,sBAAsB,IAAI,uBAAuB,CAAvB,MAAuB,EAAjD,KAA4D,aAAkB,yBAAyB,QAAQ,uBAAuB,mEAAmE,SAAS,0HAAiHsB,WAAoB,kCAAkC,4CAA0Cc,kDAAoD9B,2BAA0B,CAAE,mBAAmBN,mCAAkCmK,iCAAiC,yBAAwB,2BAA2B,qCAAmCC,0CAAoCrI,6GAAgHA,6EAAyEA,0BAA8BgE,0EAAwEnG,uCAAiC,qCAA4CU,SAAS+J,UAAS5D,wBAAyB,yCAAqC,SAA2U,IAAlUpG,8LAAyL,8FAAmGwF,qCAAsCA,gGAAkGzC,0DAA4DC,YAAajD,qIAAkIJ,iQAAiQwH,2BAA4B,wDAAmD,sBAAwD,IAApC3B,qCAAoCA,yEAA8N,IAAlJzC,yBAAwBoB,0HAA0HxE,qMAAyMwD,gHAAwG,2CAAgDlD,mDAAiDgK,qBAAsB,wJAAuJ,eAAezK,mBAAmBA,sBAAsB,0EAAgH,IAAtC2D,uCAAsClC,sCAAwE,IAA3BvB,4BAA2BC,qMAAyMuK,kGAAoG,8DAA6DC,uBAAwB,gDAAgD,wDAAwD3E,SAASA,6EAA6E,cAAaxF,IAAKA,IAAIA,oIAAoIL,kBAAkByK,mBAAkB,CAAE,kCAAkCA,6BAA2BpJ,GAAIqJ,sBAAuBC,2CAA2CC,mDAAkD,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,0EAA8EhL,8BAA+BV,mDAAkDU,sBAAuB,sDAAsDV,iYAAgYU,mBAAoBE,4IAA4I,yBAAyBiH,qEAAoE8D,2BAA4B,yBAAyB9D,wEAAuE+D,oCAAqC,yBAAyB/D,kHAAiHnH,QAASmL,6VAA8VnL,yBAA0B0E,iCAAgC,cAAe1E,oBAAoB4K,iBAAiB,yBAAwBC,mBAAoB,sBAAqBC,qBAAsB,2BAAyBhB,kBAAiB9J,QAAUoL,mGAAkG,cAAepL,oBAAoB8J,6CAA6C,sCAAsC,+GAA6G9J,aAAeqL,qBAAqB,yBAAwBC,sBAAuB,2BAA0BC,oBAAqB,QAAQ,8JAA8J,uBAAuB,8BAA8B,YAAY,uFAAuFvL,4BAA2B,IAAK,sGAAsG,iBAAiB,4FAA0F,eAAe,2DAA2D,eAAe,2FAA2F,iBAAiB,gBAAgB,mBAAmB,qGAAkGD,IAAIA,6BAA6B6I,6CAA0ClJ,iBAAiB,qBAAqB+B,QAAO,qDAAmD,sFAAmF,gBAAcwC,oDAAgD,8FAA8F,0CAA0ClB,IAAIA,kFAAkF,uDAAuDA,IAAIA,sKAAqKvB,wCAAuC+D,yCAAyC,SAAS,mBAAmB,kCAAkC,eAAe7F,mHAAmH,SAASM,UAAUwL,0BAA0B,UAASC,sBAAuB,4CAA4C,2GAA0GhK,IAAIA,2JAAkK,mDAAmDA,IAAIA,uBAAkBiK,QAAa,gEAA+DC,sBAAuB,yCAAoC,aAAkBjM,cAAa,oBAAmB,mFAAmFK,qBAAoBA,0CAAsCC,aAAe4L,mBAAmB,sBAAqB1E,mBAAoB,mBAAkBhC,iBAAkB,2BAA0B,4DAA4D,gFAA+E,EAAE,0BAA0B2G,kBAAmB,qCAAqC,qFAAoF,EAAEC,mBAAoB,qCAAqC,6DAA6D,iBAAiBvM,iCAAgC,EAAEwM,kBAAmB,qCAAqC5E,uDAAsD,EAAE6E,iBAAkB,qCAAqC7E,mEAAkE,EAAEtC,iBAAkB,cAAc,kBAAkBtF,6DAA6D,aAAYkM,oBAAqB,+CAAsD,0BAAyB,EAAEQ,iBAAkB,2BAA0B,kBAAiBlM,kBAAmB,iDAAiD,iFAAiFT,qBAAqB,IAAI,KAAKS,IAAIA,wBAAsBmM,gDAAkD3M,GAAI,CAAJ,MAAI,EAAWA,2BAA0B,0BAA0B4M,uBAAwB,SAAS,qCAAqC,sBAAsBnM,wEAAuED,MAAKC,QAAUoM,0GAAyG,cAAepM,oBAAoB,uCAAuCN,KAAKA,kEAAiE,4BAA4B,yEAAyE,kCAAkC,kDAAgD2M,mBAAoB,aAAa,2CAA2C,uCAAuC,UAASC,yHAA0H,mBAAmB,mCAAmC,6SAA4S,iBAAiB,OAAOnM,eAAe,wDAAiDgH,YAAkB,WAAY,aAAa,MAAM1H,+FAAqF8F,4IAA8IjD,iCAAyC,6BAA4BvC,8KAA8K,cAAc,iCAAiC,oEAAkEwF,8JAA4JgH,6BAA6B,cAAaC,0BAA2B,cAAaC,yBAA0B,cAAaC,8BAA+B,cAAaC,yBAA0B,cAAaC,gCAAiC,YAAY,2KAA8IrN,8SAAqU,CAA98C,GAAo9C,oEAAmE,eAA0C,OAA3BS,uBAA2BV,4BAAuF,QAAhDC,4CAAgDQ,kCAAvF,CAA8HT,OAAQ,uCAAuCuN,yDAAwDC,IAAKC,oCAAoC,mBAAmB,iBAAiB,gDAAgD,yBAAyB,8BAA8B,uCAAuC,KAAK7J,IAAIA,6RAA6R,oGAAoG,mBAAmB,8IAA6I,eAAe,eAAeA,SAAS,2SAAwS,uBAAuB,wCAAwClD,UAAUgN,UAAUC,SAAS9M,kBAAkB,MAAM,sBAAsB,uBAAsB+M,WAAYC,kRAAiRC,YAAYC,wBAAyB,+CAA+C,yCAAwC,iHAAiH,mSAAkSC,sBAAuB,kBAAiB,mNAAiNtN,wCAA0CA,eAAeG,oBAAoB,iIAAiI,kBAAiB,EAAEqI,oBAAqB,oIAAmI,mMAAiMxI,6DAA8D,iFAAiFuN,cAAa,WAAY,yCAAsC,OAAQvN,QAAUwN,qCAAoC,cAAexN,iBAAiByN,mBAAmB,iBAAgBhM,sCAAuClC,IAAIA,oCAAoC,WAAU,yCAAwCS,aAAesN,kBAAkB,+BAA8B,aAAYpK,IAAK,qBAAqB,uBAAuBA,IAAIA,+BAA+B,SAAS,6CAA4C5D,6BAA0BU,uBAA2BE,0CAA0CiH,yJAAwJuG,eAAgB,8BAA8B,6DAA4DC,gBAAiB,gCAAgC,iSAA0SC,2CAA6C9C,UAAU3K,gBAAgB,MAAM,yIAAwIqI,gBAAiBxI,6KAA2K6N,mCAAqCrF,gBAAgBlJ,6DAA4DU,UAAW8N,mBAAmB,UAASC,kBAAmB,gCAA+BjD,kBAAkB9K,oCAAqC,6DAA6D,cAAcgO,wHAAoH,cAAc,gCAA+BC,YAAUA,cAAgB,iBAAiB,aAAaC,UAAU,YAAYzM,IAAIA,8CAA8C,kCAAkC,mBAAmB,yEAAyE/B,IAAIA,mCAAmC,mBAAmB,2EAAoED,SAAcA,aAAe,cAAc,wGAAsGgC,MAAIA,yBAAuB,gGAA6F8D,aAAc4E,yBAAwB7K,qBAAsB6O,iBAAgBC,0BAA0B7O,qHAAsH,mEAAmE,2BAA0B8O,iBAAkB,8BAA8B,iBAAiB,SAAS9O,IAAIA,uBAAuB,wFAAsFwD,UAAY,kBAAmB,kBAAc,+NAAoMxD,SAArO,CAAiPwD,wBAAyBtB,IAAIA,2HAA0H,2LAA0L0I,oCAAiC5E,EAAKvF,yBAAyBsO,UAAU,mBAAmB,4BAA4B,sCAAqCC,sBAAuB5O,kCAAgC,yBAAyB8B,IAAIA,yDAAuE+M,4BAA6B,4DAA2DvK,sDAAmD,kHAAkHf,kBAAgBA,iCAAmCgB,oBAAoBhB,qDAAoD,IAAE3D,sBAA2B,yDAAwD,4CAA0CoG,MAAK1C,6BAA2B,yXAAmXgB,eAAY,6HAA4HA,mFAA6ExE,qEAAkEgP,YAAU/O,oDAAmD,kEAA6DD,8EAA0EiP,wBAA0BnP,oDAAkDS,wBAA0B,wCAAuCV,IAAKqP,kEAAgE,iOAA4OhP,8DAA4D8B,GAAGzB,aAAc4O,yBAAyB,8DAA8D3B,WAAU3N,QAAQuP,0BAA2B,uDAAuD,0BAAyBtP,OAAOyB,uCAAuC,sEAAqEqN,qBAAsB,kBAAkB,oBAAa/O,aAAoB,4FAA4F,6DAA4D,mCAA8B,gDAAqD,eAAeC,KAAIQ,mFAAmFT,yBAAyB,EAAEwP,mBAAoB,+CAA+C,kFAAiF,8EAA8ExP,KAAI0B,qEAAsE,QAAQ1B,IAAIA,qDAA8CC,UAAgB,IAAGS,8CAAgD,cAAcA,wBAAwB,4FAA0FA,QAAU+O,yEAAyE9B,gBAAe+B,SAAU/B,gBAAegC,YAAahC,mBAAkB,cAAejN,wBAAwB,gCAA8BA,iCAAmC,qBAAqB,kBAAkBT,WAAWA,0CAA0CQ,iCAAgCC,uBAAwBA,+BAA8BA,uCAAwCgO,kBAAiBhO,qBAAsBgO,SAAQhO,aAAckP,gCAA+BlP,yBAA0B,oEAAsE,yBAAwBT,kBAAkB8D,qBAAmB,EAAE8L,gQAA0P,4BAA4BnP,aAAaoP,mBAAmB,+CAA6CC,uBAAwB,4BAA4BrP,sBAAqB,IAAGA,UAAYoP,qBAAqB,qBAAqB,iWAAwWE,WAAYxP,MAAM0I,kBAAkB,+CAA6C,cAAc,qDAAoD6G,yBAA0B,2BAA0B,4DAA0DE,IAAM/G,oBAAoB,uDAAsDxI,4DAA6D,yBAAyBwP,sBAAsB,0BAA0B,iEAAiE,gEAAgE,eAAe,kCAAiC,eAAe,mDAAmD,eAAe,8DAA6DxP,aAAayP,mBAAmB,+CAA6CC,uBAAwB,mCAA4BvI,uBAA6B,IAAGnH,UAAYyP,qBAAqB,qBAAqB,+LAAgME,WAAYC,UAAUzP,gBAAgB,gCAAgC,iFAAgF0P,SAAUC,mCAAqCtK,uCAAwCrF,gBAAmC,aAAwDqI,gBAAoC,IAA+DxI,+IAAiJA,qCAAmCA,aAAe+P,qBAAqB,gBAAgB,mCAAkC/P,6CAA0CV,qCAAwC,kDAAkD,QAAQI,WAAWA,8CAA8CwD,+CAA6CiE,MAAO6I,wBAAyB,gBAAgB,mCAAkChQ,+CAA6CiH,uDAAyD,kDAAkD,QAAQvH,WAAWA,IAAY,IAAPsB,QAAO,mDAAyDkC,+CAA6CiE,4BAA6B8I,0BAA2B,wDAAwD,mCAAkCjQ,mDAAiD,4FAA8F,uBAAuBgB,WAAWA,gEAAwD,mKAAyK,EAAGkP,qBAAsB,YAAwB,IAAZ3Q,YAAYQ,2EAAgF,YAAY,aAAaC,aAAamQ,gBAAgB,oBAAoB,uDAAsD,MAAM,sIAAsI,2BAAuB1O,iIAAkIlC,wKAAgLS,UAAYoQ,UAAUC,QAAQlQ,gBAA6C,OAA7BH,wBAA6BsQ,gBAAgCC,QAASpQ,gBAAgB,6FAA6F,kBAAkBsB,IAAIA,wGAAuG,2BAA2BV,UAAU,UAASyH,kBAAmE,QAAhDzI,4CAAgDmD,0EAA+E,sCAAoClD,uCAAyCA,kBAAkBwI,kBAAkB,kEAAiEhD,8CAA8C,oDAAmD,GAAEA,4BAA4B,wDAAwDlG,qBAAqBU,kBAAkB6K,0BAA0B,+GAA2G,gcAA0bpJ,2CAA4C,4BAA2B,uDAAuD/B,EAAEA,6BAA6BwD,qEAAuE,IAAJlC,KAAItB,oPAAuP,kUAA8T8Q,yBAA0B,8BAA8B1Q,wBAAwBE,6BAA2BA,aAAe6K,sBAAsB,4BAA4B7K,2BAA0B,EAAEyQ,6BAA8B,cAAc,yCAAuCjL,oBAAqBd,iCAAgC,cAAe,kBAAkB1E,6CAA6CA,oBAAoB4K,iBAAiB,+DAA8DrL,uDAAqDmR,oBAAqB,iEAAgEnR,sEAAoE,uBAAsBuC,iBAAgB6O,QAAS3Q,uBAAuB,QAAQ,sCAAsC,IAAIT,kDAAkD,CAAlD,MAAkD,CAAU,sHAAsH,uBAAqBqR,kBAAoB,8GAA8G,qBAAqB,MAAM,2CAA2CnP,mFAA4E,GAAEA,gCAAkC,oCAAyCzB,sBAAsB,2BAA2B,kBAAiByB,iEAAwE,oBAAoB,uEAAuET,+BAA0B,0BAA+B,oBAAmBhB,aAAc6Q,qBAAqB,uCAAsCC,0BAA2B,2BAA2B,8BAA8B,+BAA6BhN,kBAAoB,gBAAgB,+GAA6GxD,kBAAoB,oBAAoB,yDAAyD,OAAOyQ,0CAAwC,CAAGA,0CAAwC5Q,SAAW,gHAA+G6Q,MAAMC,6CAA6C,eAAe,qBAAqB,gCAAgC,0CAAyC,2GAA0G,qBAAqB,SAAQxR,SAAU,cAAc,MAAM,6CAA6C,eAAe,qFAAmFgC,EAAI,0CAA0C,iBAAiB,yCAAyC,8CAA2C1B,SAAY,6BAA6BmR,0BAA0BC,yBAAwBC,QAAQC,cAAeC,8MAA+LC,SAAwB,oHAAmHxK,UAAWyK,6CAA4CC,gBAAiBD,2DAA0DE,YAAa,6EAA4EC,aAAcL,oBAAmBM,wBAAyB,0DAAyDC,6DAA8D,mCAA2C,yCAA3CtS,SAAmFiG,mIAAkItC,MAAKnC,MAAKtB,kBAAiBqS,4CAA2C,OAAM,MAAM,MAAY,IAAL/R,KAAKR,yFAA0FA,2BAAyB,oCAAiCwS,iCAAkC,iBAAgBC,iCAAgC,mFAAyEC,8BAA8B,sCAAoCC,wBAAwB,OAAM,yCAAgC,oCAAiC,aAAYC,mBAAmB,cAAW,sCAAmC,yMAAsM1Q,wBAAuB,IAAIA,yFAAmG,CAAnG,MAAmG2Q,kBAAkB,oHAAkH,u4BAA23B,kEAAyE,uEAAqE,sFAAiF,gEAA4DA,kDAAiD5P,qBAAmB4P,YAAa,IAAInO,kBAAuC,CAAvC,MAAiB3E,IAAS,cAAaiG,gBAASA,sBAA0B,yBAAoB,oBAAkBtB,4HAA0J,QAAvCxC,sCAAuC,wFAA2F,0CAAuChC,cAAa,MAAM,yBAAmB,CAAK,YAAY,sCAAoCC,IAAI,MAAMwD,WAASxD,QAAO,0CAAjZ,CAAyb0S,+HAA2HrR,oBAAsB,uBAAkBgC,uBAAuB,sEAA6E,IAAZrD,aAAYA,qJAA8I,kBAAwB,mHAAsG,wDAAkD,MAAM,wCAAmC,IAASH,OAAuB,CAAvB,MAAOD,IAAS,OAAOsI,oEAAiE,OAAOA,wBAA3lB,CAAmnBwK,wjBAA0hB,WAASC,wBAAyB,4BAA2BC,wBAAyB,qCAAmCtS,oCAAsCA,uBAAuB,qDAAoDsR,0CAAyCtR,2BAA0BA,4BAA8B,MAAM,wFAAsFA,2BAA6B,eAAesR,2EAA2E,4BAA2BiB,uBAAwBvS,sBAAqB,EAAEA,aAAcwS,oBAAoB,MAAM,sJAAgK,QAAXlT,OAAWA,2CAAgD,WAASuM,oBAAqB4G,sBAAuB,mCAAkCzS,oCAAkCmH,qBAAuB,6BAA6B5H,mCAAkC,EAAEmT,iBAAkB,YAAW,6BAA6B1S,qCAAoC,EAAE2S,mBAAoB,kDAAkD3S,uCAAqCmH,QAAQnH,kCAAoC,kCAAiCA,mCAAoC,oEAAmEA,8BAA+B,IAAI,4BAA4B,CAA5B,MAA4B,GAAY,QAAQ,gBAAe4S,wBAAyBpN,iFAA+E,QAAQ,sCAAqCqN,mBAAmB,gBAAgB,2GAA2G,oLAAoLnT,cAAc,kBAAkBA,uRAAuRoT,mBAAkB,CAAE5N,qBAAoBzD,8BAA8BA,+GAAgH,2CAA0C/B,QAAO,EAAEA,aAAc,IAAI+B,kCAA4C,CAA5C,MAAmCnC,GAAS,eAAc6S,iBAAkBzS,WAASM,4BAA8BV,wCAAsCU,aAAeuR,SAASwB,oGAAmGhM,UAAWgM,kCAAiCrB,YAAa,0BAA0B,6BAA2B1R,0CAAuC,0DAA6DA,qCAAuC,QAAQ,uCAAuC6S,mBAAmBpR,wCAAsCgO,MAAQuD,oCAAkC3H,8BAAgC5J,0DAAwD5B,2BAA2BsS,iBAAkBnR,WAAW,oCAAoChB,aAAaiT,0CAA0C,wCAAwC,uBAAqBjT,6CAA+C,wKAAwK,kPAAiP,6CAA4CV,+CAA8CI,aAAYK,yBAAqB,oHAAoH,WAAWyF,uKAAuK,uUAAkU,WAAUxF,0BAA2B,kCAAkC,yHAAwHsR,6CAA2C4B,iBAAmBxT,oEAAkEmI,wBAA0B3E,kBAAkBnD,uCAAsC,GAAEoH,MAAOnH,oCAAqC,mCAAmC,oBAAkBmT,QAASnT,UAAWoT,0BAA0B,kDAAkD,+PAA6PrS,wHAAwHf,aAAcqT,mBAAmB,iEAAiErT,+BAA+B,kBAAkB,oCAA+FsT,KAA/FhU,6BAA+FgU,KAA/FvT,+BAA+FwT,uCAAkD,CAAGD,mBAAa,GAAQzG,oBAAqB,YAAY,uBAAuByG,cAAc,iEAA6D,CAA2E,IAAtE/T,sEAAsED,uFAA4FA,sHAAsH,OAAOgU,uFAAsFE,wBAAyB,2BAAmD,QAAxBlU,oBAAwBA,oDAAyD,cAAa,IAAGU,QAAUyT,kDAAiD,cAAe,wBAAwBzT,oBAAoB,+BAA8B,MAAM,6EAA4EyB,0DAAyDlC,yBAAwBS,oCAAsCA,gDAA+C,4DAA2D,GAAEA,QAAU0T,+BAA8B,cAAe1T,QAAQ2T,0CAAyC,cAAe3T,sBAAsB,yFAAyF,+BAA8B,MAAM,iQAA+Pe,kBAAkB,GAAEf,kGAAoGA,oBAAoB,uBAAqBA,aAAe4T,qBAAqB,4BAA2BC,qBAAsB,2BAA0BC,2BAA4B,yBAAwBC,2BAA4B,oEAAmEC,oBAAqB,8CAA4ChU,wNAA0NA,sBAAsB,iEAAiE,6DAA6DA,sBAAsB,UAAU,0FAAwF,uDAAoD8B,gCAAiC9B,wBAAyBV,6BAA4BU,2JAAuJ,gBAAgB,6DAA4DA,mBAAoB,2CAA0C,qEAAsE,WAAW,yBAAuB,gCAAgC,sEAA0DV,+BAA2C,SCI/vvFC,OAAe,+MAA2NA,WDJqhvF,CCI1gvF4H,qBAAqB,aAAqF,MAAxE,eAAc,+CAA+C8M,WAAWlU,KAAW,iBAAgB,YAAYA,WAAWA,KAAK,WAAWiB,+GAA+G,mBAAkB,4EAA0EkT,cAAY3U,EAAI,cAAa,yDAAwD,YAAYD,mBAAmBA,KAAK,mBAAmB,sEAAsE,UAAS4D,yBAAyB,iBAAgB,2EAA0E,yBAAuB3D,KAAQ,uBAAsBE,IAAO0U,oDAAoD,GAAG5U,+BAAyB6U,4BAAkC,UAASC,mCAAoC,oCAAoC,gBAAgB,6BAA6B/U,yBAAyB,IAAI,uCAAiD,CAAjD,MAAiD,cAAagV,6CAA8C,eAAe,qHAAqH,uFAAsFC,mBAAoB,uBAAsBC,iCAAkCxT,0BAAwByT,iCAAkC,oBAAkBC,sBAAuB,0BAAyBC,gCAAiC,6DAA6D,oFAA2FC,uDAAwD,+HAA+H,OAAMC,2BAA4B,sDAAsD,qCAAqC,sBAAsB,sCAAsC,oFAAkFC,2BAA4B,8IAAuJ,mDAAmD,wJAAwJrV,mEAAkE,gBAAgB,wDAAwDM,OAAKgV,sBAA0BhV,+BAA6BR,SAAUyB,4CAA4CgU,+CAA6C,mFAAmF,sDAAmD,cAAc7N,gBAAgB,kBAAkB,2BAA2B,oBAAoB5H,wGAAuGD,qBAAsB0B,2DAAyD1B,8BAA+B,wCAAuC,oFAAmFA,iCAAkC,wCAAwC,kCAAiCA,6BAA8B,WAAW,mEAAmE,6CAA4C0B,+CAA+C,gCAA8BiU,6BAA2B9N,yBAA6B7H,8BAA+B0B,2DAA0DzB,+BAAgC,4BAA6B,mCAAkCG,yDAAuD,EAAGH,6BAA8B,mBAAmBD,sCAAqCmC,YAAYyT,6BAA6B,kBAAe3V,EAAzuC,GAAivCyB,uNAAmN,kDAAgD,iIAAoI,cAAcmG,iDAAiD,kBAAkB,2BAA2B,+EAA+E,MAAM,sCAAqC,MAAM,gFAA2E,CAAK,iCAAiC1F,gCAA+BlC,4KAA2K4H,yNAAsN7H,qBAAsB0B,2DAAyDzB,iCAAkC,4BAA6B,mCAAkCkC,mFAAiF,EAAGA,YAAYyT,6BAA6B,kBAAe3V,EAA7rC,GAAqsCyB,iEAAiE,mBAAmB,yDAAzxC,QAAyxC,4FAAoJ,CAAK,0BAAyB,oGAAoG,iHAA8GqK,qEAAwE,kCAAruD,QAAquD,GAAwCrK,gEAA8DA,0DAA8D,kGAAkG1B,IAAIA,KAAK,iCAAgCI,gFAA8E,4FAA4F+B,IAAIA,KAAK,WAAW,sFAAkFT,qHAAsH,mDAAiD,2IAAkImU,kEAAiEtP,IAAIsP,iIAAgIC,IAAIC,yBAAwBC,cAAc,gBAAgBnO,wdAAwd,kBAAkB,yBAAyBA,kCAAgC7H,6BAA8B,gCAA+B8U,gFAAgF9U,kBAAmB6H,kCAAgC7H,oBAAqBC,2MAAyMD,oBAAqBC,oRAAmRD,iBAAkB,WAAW6H,oDAAmD,8CAA8C,gGAAgG,qBAAkB,CAAK,+CAA6DA,YAAd5H,UAAc4H,kBAA+B7H,qBAAsB0B,6PAA4P1B,yBAA0B,eAAaiW,qCAAiCjW,0BAA2B,iCAAiC,aAAa,yBAAyB6H,uDAAsD7H,gCAAiC,WAAW6H,qFAAsF,uBAAqB,+FAAmG,oBAAkBkE,wCAA4C,oBAAkBlE,oDAAsD7H,qCAAsC,WAAW,yBAAyB,kBAAkBC,0KAAwKQ,cAAeR,gQAAgQ,mBAAkB,0BAA4ByB,uGAAwG,4BAA0BmG,sFAA0F,cAAYnG,gEAAoE,cAAYmG,gHAAoH,cAAYnG,gEAAoE,MAAmBzB,eAAnBD,EAA8IA,GAA3HkW,0GAA2H,GAAIxU,+DAAmE,cAAY,GAAK1B,uBAAwB,kEAA6D,kCAAuC,WAAM,oCAAwCA,4BAA6B,6HAA4HA,oCAAqC,8CAAmE,qBAAnE6H,wBAAmEA,2BAAqD,2CAA0C,+DAA8D7H,mCAAoC,yHAAwHmW,0CAA0C,8CAA6CnW,yCAA0C,4BAA4B,yEAAyE0B,6BAA4B,8DAA8DjB,+BAA6BT,6BAA8B,2DAA0D,MAAM,mDAAmDA,yLAAwLA,uBAAwB,qKAAkK,uLAA4K6H,yDAAkEA,6FAA4F,2BAAyBsO,2CAA0C,+CAA+CzU,wFAAuF,8CAA4CA,8CAA8CA,iIAAiI,0CAAwC,KAAKiU,8BAA2BjU,+GAAiH+B,mBAAiBxD,+BAAgC,4BAA6B,sCAAoCgW,2BAA2B,6BAA2B7V,MAAO,mCAAmC,qFAA6E,oBAA4B,kEAA2EK,YAAOL,2CAA+C,EAAGH,mCAAoC,sCAAqC,MAAM,sBAAsB,yCAAyC,YAAUyB,iFAAkFD,+GAA8GU,YAAYyT,6BAA6B,gBAAe,CAAEA,6BAA6B,cAAU3V,EAAhlO,GAAwlOyB,yKAAyK,4FAA4F1B,IAAIA,KAAK,sBAAsBgW,wCAAqCtU,4GAA0G,gDAA6C,gJAAgJyI,qBAAoBb,IAAIa,4CAA2CiM,cAAc,gBAAgBvO,qOAAqO,sEAAqEnG,IAAIA,KAAK,2GAA2G,eAAgB,oEAAoEmG,iLAAiL,kBAAkB,2BAA2BnG,+DAA6D1B,kBAAmB,eAAe,+KAA+K,qHAAiH6T,yFAA4F,0CAA0C,gEAAgE7T,oGAAmG,2BAA2B0B,2MAAwM,oGAAmGA,0DAA0DA,mKAAgKiU,wEAA0E3V,kBAAmB,WAAW,kEAAiE,0CAA0C,gEAAgE,2BAA2B6H,iKAA+J,gCAAgC,mBAAmB1F,IAAIA,KAAK,2DAA0D,oIAAkI0F,oDAAoD,yDAAwDnG,0DAA0DzB,0GAAsG0V,2BAA6B3V,+BAAgC6H,yBAAwB7H,qBAAsB0B,kJAAgJ1B,yBAA0B,eAAaqW,+DAA2DrW,2BAA4B,yCAAn9G,iBAAm9G,UAAuDA,wBAAyB,aAAaG,0KAAkL,2GAA+G,uCAAwCM,8DAA4DT,GAAKA,0CAA2C,gCAA+BA,mEAAiEC,oCAAqC,mCAAkC,yCAAwCA,+BAAgC,4BAA6B,2CAAwCoW,wCAAwC,8HAA6H,kEAA2EjW,SAAQ,EAAG+B,YAAYyT,6BAA6B,gBAAe,CAAEA,6BAA6B,cAAU3V,EAAl6I,GAA06IyB,mEAAmE,kDAAkD,sGAAqGA,6BAA8B,qDAAoD0U,+BAA6B,GAAG1U,4GAA0G,gDAA6C,kFAA2G,2CAA2C1B,WAAWA,0DAAyD,SAA1N,GAAmO8C,kCAAmC,SAAS,kBAAkB9C,kDAAmDA,WAAS,GAAK,YAAa,SAAS,kBAAkBA,+BAAgCA,UAASiJ,OAAQ,eAAc,mCAAkCqM,iBAAkB,iBAAgB,2BAA2B,2DAA2D,gBAAgB,eAAc,iDAAiD,eAAc,2BAA2B,uBAAmB,kDAAkD,0BAA8B,YAAoD,mCAApDtV,oCAAoDC,YAAoD,eAAc,4CAA4C,8GAA0G,eAAe,kCAA8B,eAAe,sCAAsC,2DAA2DQ,6BAA4BA,wCAAyC,oBAAoB,8KAA6K,eAAe,8CAA8C,iBAAiB,mEAAmE,6GAA6G0B,8BAA8B,oCAAoC,kHAAkH,YAAY,4CAA4C,eAAe,qHAAqH,2BAA2B,4EAA4E,YAAY,YAAY,iBAAiB,oGAAoG,2DAA2D,iBAAiB,yDAAyD,2EAA2E,qBAAqB,gOAAgO,eAAe,+DAA+D,OAAOyM,mDAAmD,qBAAqB,+EAA8E0H,cAAe,gBAAgB,YAAY7V,WAAWA,KAAK,WAAWiB,+GAA+G,uBAAuB,wCAA5M,GAAoPwO,mBAAsB,yCAAyC/J,oDAAkDlG,UAAWsW,8BAA+B,YAAYvW,mBAAmBA,KAAK,mBAAmB,sEAAsE,UAAU,eAAe,aAAYC,GAAIuW,4CAA2C,CAAE,eAAe,SAAS,IAAI,WAAWxW,4BAA4B,iCAAiCA,+CAA0CA,2BAAiC,CAAjC,MAAiC,CAAU,OAAOyW,kEAAiEtU,6CAA6C8D,wGAA6G,SAAS,YAAWA,iDAAiD,aAAa,iBAAiB,4LAA0LxF,0DAA0D,WAAUuT,uEAAuE,yCAAuC,2DAAyDrQ,2FAA+E,yEAAsE,eAAe,4OAA4OqQ,qEAAqE,aAAa,eAAe,iBAAiB,mCAAmC,uCAAsC,YAAW,iBAAiB,eAAe,8DAA8D,0BAA0BhU,+BAA6BA,kBAAmB,mCAAmC,qBAAqB,iEAAiEgU,cAAapQ,sBAAsB,gCAA4B,CAAK,aAAa,yIAAuI,gBAAgB,sCAAkC,CAAK,gDAA+CzB,yFAAwF,gCAA+B,yGAAqG,eAAe,wBAAwB,uBAAuB,+DAA+D,mCAAmC,qBAAqB6R,KAAK0C,kCAAiCF,OAAQE,uCAAsCC,QAASD,wCAAuCD,MAAOC,sCAAqCzQ,kCAAmC,WAAW2P,QAAMnU,OAAOmV,gBAAc,GAAEC,qBAAuB,yBAAqB1W,wBAAoD,OAAzBF,UAAyBQ,eAAzBR,WAAyBQ,iBAA2C+C,kDAAoD,wBAAsB,mBAAmB,wFAAuF,iBAAiB,eAAe,4KAA4K,OAAOkT,+CAA+C,eAAe,OAAOD,qDAAqD,sDAAuD,aAAY,CAAG,mBAAmBhW,kBAAkB,eAAeiW,+BAA8BvU,+GAAgH,+DAA+D,iBAAiB,qDAAqD,mBAAmB,8CAA8C,4DAA6D,oBAAqB,uBAAwB,oBAAqB,oBAA7K,CAAiMlC,6BAA+BA,kFAAkF,uBAAuBA,iHAA8GD,EAAK,cAAc,4BAA4B,OAAO8W,wBAAuBC,eAAeC,cAAcC,uBAAwBhX,8kBAA8kB,iBAAiB,0BAAwC,kBAAbA,SAAaD,GAAwB,CAAG,eAAe,kFAAkF0B,WAAWA,KAAK,wBAAwB,8CAAuD,YAAY,cAAc,6aAA6a,eAAe,sBAAsB,8BAA8B,qBAAqB,4DAA4DS,wBAAwB+U,aAAW9W,wCAAyC,qBAAqBK,+DAA+DyW,aAAa,YAAW,2FAA2F,cAAcrP,2FAAsG,cAAc,MAAQA,iMAAsM5H,gDAA8CD,kFAAqF,eAAe,iDAAiD,iBAAiB+K,mCAAoC,UAAS,uGAAuG,CAAG,gDAA+C,mBAAmB,uBAAwB,oBAAkB3K,0BAA8B,gDAAiD,OAAO,gBAA4B+W,aAA5B,MAA4BvT,kGAAgH,SAAS,yLAAyL,eAAe,oHAAoH,uBAAuB,QAAQwT,8FAA6FC,sBAAsBC,WAAYC,OAAOC,oCAAoC,sDAAsD,MAAM,qHAAqHC,YAAWxR,kBAAkBA,mBAAoBhG,uBAAsB2D,QAAS,WAAUmQ,QAASyD,sCAAsC,kFAAsF,2CAAyC,yFAAqF,mBAAgB/V,iCAAiC,gCAAgCmC,+HAA2H,iIAAmH,iCAA8B,8CAAyC,iCAA+B,sIAAqH,qBAAuB,UAA2TxD,GAA3TK,GAA2TT,EAA3T0B,GAA2TjB,GAAlSmD,QAAzB3D,GAA2TA,IAAlSyH,mDAA0D,2OAAnF,gBAAyBtH,QAAkS,EAAU,IAAGsX,wBAA4BzX,2BAAyB0X,4CAAqC,GAAGvX,GAAplC,CAAylCsB,kLAAkLqS,UAAU6D,iBAAkBJ,sCAAsC,iDAAiDvX,oCAAoC,wEAAwEG,2BAA2B,6EAA6EA,uCAAuC,2BAAuCyX,qBAAoB,aAAW,6EAAuE5X,QAAM6X,uBAAuB,0CAAsC,6GAAsGrX,SAAQ,OAA9TT,WAA8T0X,qBAA8B,6DAA2DlU,QAAOA,gBAAYvD,sBAAwB8X,qFAAqFC,cAAeR,oCAAoC,gLAAgL,wGAAuGS,OAAQT,sCAAsC,MAAM,6DAA6D,gBAAgB,uBAAuB,6DAAoDvX,qHAA8H,qNAAiNwB,sJAAwI,uJAAyI,qFAAiFkC,qCAAkCuU,qBAAqBC,MAAOX,sCAAmF,GAA7CY,kCAA6CnY,sDAAyD,wKAAwK,uBAAmB,eAAmB,UAAM,oBAAwB,UAAM,8BAAkC,cAAM2D,aAAqB,+BAAgC,kCAAkClC,oCAAoC,IAAqlBzB,GAArlBE,unBAAqlBsD,uDAA8D,SAA9DxD,GAA0GkC,GAA5C,+BAA4ClC,kDAAsDA,+GAA8GA,GAAKoY,qGAAqGC,OAAQd,oCAAoC,6IAA6I,uGAAsGtN,MAAOsN,oCAAoC,+DAA+D,gEAAiE,mCAAiCe,WAAc,mEAAmE,wBAAwBtY,qDAAiD,CAAK,wBAAwBA,iDAAiD,WAAUuY,cAAehB,sCAAsC,0EAA0E,+BAA4BiB,qBAAmB,qJAA0J,QAAgGxY,MAAiBQ,eAA0FwF,kBAA3MA,qEAA4EsH,qBAAoB9J,OAA2VxD,EAA3VD,GAA2VE,+BAA1UwB,sEAAiF,WAASuE,MAA1FxF,aAA0FiW,oHAAyI,CAAOD,MAAhJhT,mCAAgJwC,sGAAgGtB,gFAAgH,iRAA6P,CAAK,yBAA2ChB,UAA3C,oBAA2CA,qCAA0E,0BAAlC,CAAO,2BAAoD1D,6BAA+B0D,iCAAgC1D,kCAAkCwY,yCAAyCC,YAAalB,oCAAoC,QAAQ,6GAA6G,uDAAsDvX,uFAAyF0Y,2BAA4B,oHAAoH,6CAA6CpL,8CAA4C9M,GAAIgY,0BAA0BG,cAAe,gBAAgB,uEAAuEC,0CAA0C,wCAAuChR,0DAAyD5H,0BAA2B6Y,8CAA6CjR,2FAA2FkD,kBAAkB9K,uDAAyDyB,6BAA4BzB,4BAA4BG,8BAA8B,GAAEyH,mEAAuE,WAAW4J,QAAO/P,0BAAyBmV,mBAAuB,yBAAuBhP,mCAAuC5H,8EAA2E4H,cAAiB,iCAAiC1F,0DAA0D,cAAcyT,8BAA8B,uBAAsB,CAAEA,+BAA+B,uBAAsB,CAAEA,4CAA4C,uBAAsB,CAAEA,6CAA6C,yBAAsB3V,EAAtrC,GAA8rC2Y,uFAAgG,8SAA8S7E,iGAAgG/P,IAAK+P,yJAAwJgF,cAAe,gBAAgBlR,kKAAkK,kBAAkB,2BAA2B,oEAAoE,yCAAyC5H,mCAAkCD,mBAAoB,4HAA4H,OAAOmW,6BAA4B/V,iFAAkF,oDAAoD,uBAAuB,qGAA8G,oBAAoB,0TAAkU,8VAA6VJ,kBAAmB,wGAAwG,OAAOmW,6BAA4B1V,iEAAkEiB,2LAA0L1B,qBAAsB0B,wLAAuL1B,oBAAqB6H,wFAAuF7H,gCAAiC,WAAW0B,4DAA6D1B,mDAAkD,EAAGA,yBAA0B,eAAa6H,qHAAoH7H,6BAA8B,gBAAgB,6CAA6CA,oCAAoC,mBAAkBA,2BAA4B,2DAA2D,6NAA4NA,2BAA4B,6DAA4DA,wBAAyB,gBAAgB,8DAA8D,uBAAqBA,qDAAqDA,gCAAgCA,8BAA+B,OAAOoX,0CAA0CrD,+BAA+B1O,2BAA0BuS,iBAAkBoB,2CAA2C,gEAAgE3T,aAAWzB,MAAM3D,8BAA8BA,+BAAgC,4BAA6B,+BAA+B,+FAA+F,kEAA2EQ,SAAQ,EAAGR,0BAA2B,0HAA0HG,IAAIA,KAAK,kEAAkE+V,oBAAoB,4CAA4C,cAAc,iKAAiK,4BAA4BzU,6UAA4UzB,oCAAqC,qCAAoC,yDAAwDA,qCAAsC,kNAAkN,gEAAgE,oBAAoB,oLAAoL,0HAA2H,qCAAsC,iBAAiB,0BAA0B,mFAAkFkC,YAAYyT,6BAA6B,gBAAe,CAAEA,6BAA6B,YAAW,CAAEA,iCAAiC,cAAW3V,EAAnpL,GAA2pLyB,qKAAsKzB,4FAA0F8L,mCAAuC9L,sBAAoByB,4GAA+G,gDAAgD,sUAAsUuX,0CAAyCC,IAAKD,+EAA8EE,cAAe,gBAAgBtR,2OAA2O,kBAAkB,4BAA4B,+CAA8C7H,mBAAoB,WAAW,2CAA2C,0BAA0BmW,kBAAkBzU,mUAAoU,mBAAiBA,yCAA6CA,iEAAkEA,iEAAgE,GAAGmG,8BAAkC,2BAAyB,GAAK7H,mBAAoB,WAAW,gEAAgE,uCAAuC,+EAA+E6H,iBAAiB,4CAA4C,wNAAwN,yDAAwDnG,2DAA2D,yBAAuBiU,6BAA2B9N,qBAAyB7H,qBAAsB,wDAAyD,uCAAqC0B,mRAAqR1B,0BAA2B6H,sBAAqB7H,yBAA0B,eAAaoZ,0CAAyCpZ,wCAAyC,uDAAuD,gEAAgE,uEAAuES,4EAA4E,wDAAuDiB,0GAAyGzB,0FAA0FA,gCAA8B0V,qCAAsCA,gDAAkD3V,2BAA4B,iHAAiH6H,qfAAof,wCAAwCsO,kBAAgBvS,aAAe5D,4FAA4F,MAAM,wDAAuD0B,8EAAwEkC,KAAS5D,2BAA4B,WAAW0B,8CAA+CoT,gHAA+G,EAAG9U,6BAA8B,WAAW6H,yDAA0D5H,kIAAgI4H,iDAAmD7H,6BAA8B,WAAW6H,kDAAmD,2BAAyBnG,2BAA6B1B,wBAAyB,WAAW6H,yNAA0NnG,sHAAqH,EAAG1B,6BAA8B6H,0EAAyE7H,4BAA6B,yDAAyD,yCAAyC,0NAA2NA,uJAAqJS,8EAAgF,sBAAsB,0DAAyDiB,oFAA0EmG,+BAAwCnG,0CAA0C,iBAAiB1B,4BAA4B,0CAA0C,0DAAyD0B,gFAA0ES,SAASlC,QAAYD,2BAA4B,wEAAuE6H,mLAAmL7H,+BAAgC6H,wEAAuE7H,6BAA8B,4CAA4C6H,qHAAoH7H,2BAA4B,WAAW,4BAA4B,6GAA6G0B,gCAAiC,+DAA+DA,iGAA+FA,gCAAoC,6DAA6DA,+FAAgG,uFAAuFA,8GAA8GA,uCAAsC1B,6BAA8B,mDAAmD0B,gCAAiC,yCAAyCA,sEAAuE,8DAA8DA,gCAAiC,+CAAwCjB,uEAAwF,qDAAqDiB,6FAA4F1B,gCAAiC,oCAAoCC,mEAAmE,oDAAoD,uCAAsCA,iCAAkC,4BAA6B,uCAAqCmZ,sDAAuD,uEAAuE,kEAA2EhZ,aAAQ+B,mBAAuB,EAAGA,YAAYyT,6BAA6B,gBAAe,CAAEA,6BAA6B,cAAW3V,EAA18Q,GAAk9QyB,qFAAsF,+CAA8CtB,iCAAiC,2CAAyCsB,4CAA6C,8DAA8D,sCAAuCzB,4CAA6CyB,wCAAuC,GAAMyX,gDAA8CzX,kHAAqH,kDAAkD,kSAAkS,mBAAmB,yBAAyB,uCAAuC,+IAA+I,yCAAsC,6FAA0F,uEAAmED,yBAAuB,gBAAe,iCAA+B,wGAAmG,kCAAgC,8BAA2BrB,kBAAkBA,MAAIA,iCAA6B,UAA/P,CAAwQH,yCAAsC,EAAGwB,eAAgBA,IAAIA,SAAS,wBAAwB,0LAA8M4X,iEAAgE7L,IAAK8L,qUAAqU,8TAA6TC,mBAAmBvM,IAAKsM,icAAgcE,IAAKC,6RAA4RC,cAAe,gBAAgB,oGAA6G7R,8EAA6EA,mGAAoG,kBAAkB,2BAA2BA,oBAAmB7H,qBAAsB6H,oBAAmB7H,2BAA4B6H,kCAAiC7H,qBAAsB,yBAAyB,qEAAqES,0NAAsN,CAAK,mFAAmFoH,yBAAwB7H,qBAAsB2Z,8cAA6c3Z,kBAAmB,WAAW,0GAA0G,mDAAmD,0CAA0C0B,mCAAmC,+HAA8H,qCAAqC,8DAA6DS,0IAA0I,8IAA8I0F,2BAA2B,2BAA2BnG,8cAA8c,kBAAiBzB,uCAAuC,qBAAoBA,2EAA91I,QAA81ID,sBAAqG,qCAAqC,qDAAmD0B,4EAAoEiC,OAAU3D,mBAAoB,8FAA8FA,sOAAsO,+DAA+D,6QAA6Q,6CAA4C0B,mEAA6DS,IAAS0F,sBAAqB7H,oBAAqB,oDAAmDA,2BAA4B,iCAAgCA,iCAAkC0B,2DAA0D1B,2BAA4B,uEAAsEA,wBAAyB,2BAA2B6H,+HAA8H7H,kCAAmC,8PAA6PA,sBAAuB,uDAAuD,6GAA4GA,+BAAgC,WAAW,aAAW,CAAEoX,uBAAuBrD,+BAA+BsE,wCAAuCJ,OAAQC,kBAAiBN,iBAAkBoB,yCAAwCY,qBAAsB3Z,sEAAqEoX,qBAAsB,2CAA0CxP,2BAA2B7H,wBAAyB,gBAAgB,6DAA6D,uBAAqBA,mDAAmDA,+BAA+BA,2BAA4B,qKAAmKA,6BAA8B,4BAA2BA,2BAA4B,WAAW6H,mDAAoD,+FAAgG,0BAAmB,GAAG,cAAsB,6IAA6InG,wDAAyD,qBAAmBqK,mCAAuC,oBAAmB,IAAIlE,kCAAqC5H,qBAAoByB,4HAA2HmG,aAAc0D,+BAA6B1D,kBAAmB7H,uBAAwB,+DAA8D6H,oLAAoL7H,uBAAwB,iCAAgCA,2LAAvvQ,QAAuvQ6Z,uMAAuY7Z,8BAA6BA,gCAAiCA,uBAAwB,iCAAgCA,4LAApvR,QAAovR6Z,0EAApvR,MAAovR7Z,qEAApvR,QAAukSA,yBAA6BA,gCAAiCA,kCAAmC,oEAAoE,UAASA,yBAA0B,qCAAqC,2CAA2C,iCAAgC,yBAA0B6H,wDAAsDiS,iBAAoB7P,4BAA0B,8OAA8OjK,gCAAiC,SAAS,4GAA4G,UAASA,4BAA6B,kEAAkE,+CAA8CA,2CAA4C6H,4GAA2G7H,4BAA6B,mDAAmD,+IAA8IC,+BAAgC,4BAA6B,2DAA2D,yFAAyF,kEAA2EG,SAAQ,EAAG+B,YAAYyT,6BAA6B,gBAAe,CAAEA,6BAA6B,YAAW,CAAEA,0BAA0B,YAAW,CAAEA,8BAA8B,YAAW,CAAEA,2BAA2B,YAAW,CAAEA,+BAA+B,sBAAqB,CAAEA,iCAAiC,cAAW3V,EAAr2S,GAA62SyB,wHAAwH,oDAAoD,gGAA8FgY,YAAatC,8LAA4L2C,SAASL,gBAAiBM,sCAAoCC,GAAMR,6RAA4RS,cAAgB,QAAQ,aAAa,qCAAqCzZ,iFAAgF,kBAAkB,kCAAkC,4CAA2CmD,iCAAkClC,2DAA0DkC,2BAA4B,uEAAsEA,wBAAyB,sCAAsCiE,kEAAkE,yBAAyB,6HAA4HjE,yBAA0B,uEAAsEA,4BAA6B,kEAAkE,iDAAgDxD,+BAAgC,4BAA6B,2DAA2D,uGAAuG,kEAA2EJ,SAAQ,EAAGmC,YAAYyT,6BAA6B,gBAAe,CAAEA,6BAA6B,YAAW,CAAEA,0BAA0B,kBAAiB,CAAEA,8BAA8B,YAAW,CAAEA,2BAA2B,WAAW,CAAEA,+BAA+B,sBAAqB,CAAEA,iCAAiC,cAAWxV,EAAvjD,CAA4jDsZ,IAAKhY,sHAAwH,mDAAoD,sGAA8GqS,mCAAkCoG,GAAKpG,2DAA0DqG,aAAe,gBAAgB,WAAWvS,mXAAoX,uBAAqBA,+BAAkC,kBAAkB,4BAA4B,yJAA+JA,sJAAuJ,qCAAoC,uCAAuC,gCAAgC,uDAAuD,cAAYrD,mCAAuC,mBAAiBkT,oBAAwBzX,6CAA4C,EAAGD,qBAAsB0B,mQAAmQ1B,yBAA0B,4BAA0Bqa,+BAA8BnV,gCAAkC,qCAAqClF,oEAAoE,oCAAoCA,2BAA4B,mGAAkGA,8BAA+B,qHAAoHA,8BAA+B,2GAA0GA,sBAAuB,yHAAyH,gDAAgD,4CAA4C6H,8CAA0C,CAAK,gHAAgH,+BAA+BzH,KAAIyH,sJAA+J7H,wBAAyB6H,mCAAmC,gDAAiD,uDAAqDpH,mEAAsEA,sTAA6T0V,iBAAgB,EAAEnW,oBAAqB,4EAA6E,iCAAgC0X,oBAAwB,8BAA8B,EAAGzX,+BAAgC,4BAA6B,8BAA+B,0FAA2F,kEAA2EQ,SAAQ,EAAG0B,YAAYyT,6BAA6B,gBAAe,CAAEA,6BAA6B,aAAW3V,EAAxsH,GAAgtHyB,6DAA8D,qFAAqF1B,KAAI,CAAE,sBAAsBoa,uCAAsC1Y,uGAA+G,6CAAgD,4FAAmH,cAAcmG,gBAAgB,kBAAkB,yBAAyB,WAAW,oNAAqN,8GAA6G,MAAM,iDAAiDpH,4DAA4D,qCAAqC0V,8BAA4BlQ,iCAAmCkQ,kBAAkB,oHAAoHhU,iEAAiE,iBAAiB,wCAAuCgU,2BAAyB/V,mCAAoC+V,kBAAkBzU,4DAA0D1B,0CAAyCA,qBAAsB0B,0DAA0D1B,4BAA6B,yIAA9vC,QAA8vCyB,aAA0J,qCAAqC,SAAS,6CAA4CC,yBAAl/C,QAAk/CsK,sDAA6EvK,KAASzB,sCAAuC,MAAM0B,4BAA6B,kEAAkEtB,kGAAmGsB,8HAAvzD,SAAuzDzB,gBAAvzD,QAA88D,mBAAmB,qFAAqF,2CAA2C,MAAM,4DAA4DyB,yBAA0BzB,mCAAmCQ,QAAOR,+BAAgC,4BAA6B,kCAAmC,sDAAuD,kEAA2EG,SAAQ,EAAG+B,YAAYyT,6BAA6B,kBAAe3V,EAA5gF,GAAohFyB,6HAA8HzB,sEAAoEyB,4GAA+G,+CAAgD,+FAAyG4X,oCAAmCgB,IAAKhB,uDAAsDiB,cAAe,gBAAgB1S,wFAAwF,kBAAkB,yBAAyB,8CAA8C,gEAAgEA,iFAAiF,iBAAiB5H,mKAAoKA,UAASA,mBAAqB,kCAA3vB,QAA2vBE,iFAAsH,yDAAwDuB,+EAAyEjB,MAAUT,kBAAmB,yCAAyC,uCAAuC0B,4EAA2E1B,qBAAsB6H,4MAA2M7H,yBAA0B,eAAawa,+DAA8Dra,8DAA8DH,2BAA4B,WAAW0B,mEAAoE,iBAAgB,EAAG1B,oBAAqB,wBAAwBC,yBAAztD,QAAytDyB,kDAA+E,8DAA8D,yDAAwDA,+EAAyE1B,KAASA,2BAA4B2Z,gDAA+C1Z,+BAAgC,4BAA6B,mCAAmC,6EAA6E,kEAA2EG,aAAY,EAAG+B,YAAYyT,6BAA6B,gBAAe,CAAEA,iCAAiC,YAAW,CAAEA,6BAA6B,cAAW3V,EAA3wE,GAAmxEyB,kHAAkH,kDAAiDzB,oMAAqLkG,UAAS,GAAE,SCC/oiFsE,OACA,gEACA,kDACAA,wDACA,CDL+oiF,CCK9oiF5C,gBAAuB,aAExB,eACA,oBACA,QACA,kBACA,UACA,CACA,CALA,GAMA,eACA,6BACA,CACA,cACA,mCACA,SAEA,0CACA,sDAIA,CACA,eACA,sEACA,CACA,oEACA,iBACA,gBACA,CACA,iBACA,uBACA,CACA,gBACA,oCACA4S,kBACAtU,IACAuU,UACA,oCACAD,qBACAtU,EACA,mBACA,gCACA,mBAEA,CACA,qBACA,UACA,QAEA,GADAwU,WACAC,EACA,UAAwBlZ,KAAQA,IAChCmZ,sBAGA,QAAkBnZ,IAASA,IAC3BmZ,yBAGIC,MAGJ,IAFAC,iBACAJ,WACAjZ,IAAgBA,IAASA,IACzBmZ,sBAGA,CACA,iBACA,YACA,+BACA,SAEA,mBAAgCnZ,MAAUA,EAG1C,GAFAsZ,OACAC,OACAD,mDACA,SAGA,QACA,CACA,eACA,QACA,iBAEA,UACA,4BACAD,iBACAG,WACA,QACA,KAAW3U,MAAUA,EACrBrB,oBAEA,QACA,CACA,QACA,CACA,eACA,6DACA,CACA,qBACA,UACA,OAEA,aACAiW,OACAL,aACAxY,UAEA4C,UAEA,CACA,mBACA,mBACAkW,WACA,UACA,SAGA,SADAC,SACAC,WACA,YAAkB5Z,MAAUA,GAE5B,OADA6Z,QAEA,SAEA,uBACA,uBAAwChV,MAAUA,EAClD+U,aAEA,CACA,QACA,CACA,iBACA,eAAgCA,WAChC,CACA,mBACA,UACA,OAEA,aACAH,OACAL,aACAU,QACIzQ,4CACJ7F,WAEA,CAOA,UACA,QACA5E,SACAwS,UAEA,gBAEA,OADA2I,cAGA,eACA,cACA,WACA,kBACA,UACA,MAEAC,SACA,CACA,SAEA,CAdAC,MACAD,EACA,CAaA,eACA,qBACAX,KACA,SACA,iBACAa,KACAA,iBACAA,qBAEAb,UACAa,MAGA,QACA,CACA,eACA,2CACA,CACA,yBACAC,2BACAC,WACA,mBACA,SAEA,iBACA,aACA,SAGA,UAEA,eACA,kEACA,CAEA,iBACAC,QACAC,SACAC,4BACAC,UACAC,QACAC,QACAC,UACAC,cACAC,aACA,eACA,sBACAC,oBACA,uCACAC,MAEA,OADAA,yBACAC,CACA,CACA,eACA,WACAC,eACA,MACA,QAAcjb,IAAUA,IACxByE,SACAyW,UACAA,aAGA,kBACAA,UAEAA,yBACAA,CACA,CACA,eACA,wCACA,CACA,mBACA,sBACA,CACA,iBACA,sBACA,qBACA,CACA,mBACA,UACA,mBAAmClb,IAAUA,IAC7CyE,UACA0W,WACA3X,wBACAA,wBAGA,CACA,eACA,iBACA,CACA,eACA,iBACA,CACA,eACA,UACA,OAEA,QACAN,IACA,4BACA5E,MACA4E,IAEA,QACA,CACA,iBACA,gBACAkY,UACAC,qBACA,sBACA,kBACAC,OAEA,CACAA,QACAC,WAEA,CACA,iBACA,yDACA,CACA,iBACA,oBACA,CACA,eACA,kBACA,CACA,qBACA,cACAxb,QACAzB,QACAkd,UACAC,UACAC,UACAC,UACA,+BACAH,QACA,CACA,mBACA,gCACA,CACA,eACA,yBACA,CACA,0BACA,6CACA,CAEA,mBACAI,iBACA,IAEAC,EAFAC,aACAC,IAEA,YACAF,SACAD,KACAG,IAEAD,IAGA,OAAUC,UACV,CACA,oBACAC,SACA9W,cACAA,cACA+W,YACAD,sBACA,mBACA,QACAnc,WACA,kBACAkW,IAEA,oBACAlW,IAEA,uBACAqc,aACAA,CACA,CACA,mDACA,iBACAC,WACAA,8BAGA9S,oCACA+S,gBACA9S,cACA7E,OACA4X,iBAGAC,eACA,wBACAC,OACAlT,2BACA+S,gBACA9S,cACA7E,YACA,wBACA,wCACA,yBACA+X,aAGAC,CACA,GACK,GAEL,CACA,iBACA,mBACA,MACA,OAEA,oBACAvX,gBACA,OACAmX,gBAEAA,cAGAC,sBACAH,cAEAA,WACA,CACA,eACA,gBACA,QACA,mBAAmCnc,MAAUA,EAC7CwH,YAEA,kBACAkV,EAEAC,aACA,CAKA,gBACAne,WACA,YACA,UACA,EAEAA,6BAEA,mBACA,8CACA,SACAoe,KACA,sBACAA,OACAC,IACAA,KACAC,oBACAD,KACA1D,eAGA,CACA,CACA,iBACA,MACA,sBACA,UACAlB,gBACA8E,qBAEA5D,gBAEAf,CACA,CACA,CACA,0DACA4E,8CACAC,cAEAC,KADAC,kBACArI,yBAEA,mBACA,iBACA,QACAsI,IACA,cACA,MAAWC,oBAAiBC,EAC5BC,UACWC,uCAAkCH,kBAC7CI,IACA1H,cACA2H,kBACAC,sCACA,QAGAP,EADAQ,EACAC,YACAH,uBACAC,2CACA5H,OAEA+H,GAEA,CACA,OAAU/H,gBACV,CACA,eACA,MAASgI,kCAA8BT,EACvCU,GACAC,WACAC,WACAC,WACAC,YAEA,MACA,yBACA,EAEA,wBACAC,gBACAA,gBACAA,eACA,0BACAC,CACA,CAyIA,WAvIA,SACApf,cACAiH,mBACAA,qBACAA,iBACAA,qBACA,CACAoY,iBACA,MACAC,aADAC,eAEAzI,cACA0I,QACAC,kBACAH,WACAI,oCAEA,CACAC,WACA1Y,gBAGAA,iBACAA,kCACAA,eACAA,mBACAA,eACAA,kBAGA,CACA2Y,sBACA,QACA3Y,6BACA,+BACA,OAEA,gBACA,IAEA4Y,EAFA/e,aACAgf,KAEA,KAAahf,OAAQA,EACrB+e,OACAA,WACAA,sBACAN,qBAEAM,UACAC,OAEAtC,mBACAA,SAGAsC,IACAN,SACAvY,gCAEAuW,WACA+B,aACAtY,+BACAsY,cAEAQ,cAEA9Y,iBACA,QACAA,iBAEA,CACA+Y,aACA,qBACA,eACA,WACAT,GACAU,WACAR,WACAjC,SACAL,WACA1O,YACAyR,cAGAC,YAEAZ,CACA,CACAa,cACAnZ,sCACA,CACAhB,UACAuX,cAGAvW,kCACA,CACA9C,OACA,uCACA,CACA0S,SACA,6BACA0I,IAGAA,aACAA,mBACAA,4DACAtY,gBACA,CACAgZ,WACA,kBACA,SAEA,4BACA,wCAIA,CACA9R,QACA,4BACA,uBACA,OAEA,gBACA,iBACA,KAAWrN,OAAQA,EACnB0c,cAEA+B,WACAtY,uCACA,CACAD,UACA,6BACA,GAUA,eACA,aACA,CACA,4CACA,eACA,2BACA,CACA,eACA,0BACA,CACA,eACA,6BACA,CACA,eACA,0BACA,CACA,UAAe,qGACfqZ,2BACAC,eACAC,8BACA7f,yBA+BA,wHACA,mBACA,0BACAkC,0DACA,sBACA,CACA,mBACA,8DACA,sBACA,CACA,mBACA,mBACA,MAMA,IALA4d,QACA1f,UACA0f,KACAnf,MAEAP,IAAcA,IAAOA,IACrB2f,YACAA,QAEA,QACA,CAUA,eAEA,gBACAhb,UACApE,UACAqf,kBACApC,kBACAjZ,UACA,UACA,eACAtC,MACAlC,yBACAkD,EArBA,uBACA,cACA0B,iBAEAA,OACApE,UAEAE,QACA,CAaAof,YACA5c,WAEA,YACA,CACA,qBACA,OACA0Z,iBACA7a,kBACAA,UACAxC,OACA,CACA,mBACA,mBACA,CAOA,eACA,qBACA,CAgDA,UACAV,SACAyC,UACAD,OACA0e,QACApL,OACAnN,WACAwY,UACAxL,OACA/S,OACA3C,OACAoJ,OACA5F,UACAtB,UACAE,OACA2G,aACA5I,OACAghB,OACA1L,OACAtS,OACAd,OACAW,UACAoe,OACAtY,OACAN,SACA1F,OACAyS,UACA8L,QAEAC,IACAC,gBACAC,qBACAC,YACAC,mBACAC,cACAC,eACAC,gBACAC,UACAC,sBACAC,QACAC,iBACAC,cACAC,mBACAC,gBACAC,kBACAC,iBACAC,aACAC,qBACAC,iBACAC,iBACAC,YACAC,SACAC,aACAC,iBACAC,cACAC,YACAC,cACAC,gBACAC,iBACAC,kBACAC,gBACAC,eACAC,aACAC,gBACAC,gBACAC,cACAC,eACAC,eACAC,WACAC,gBACAC,gBACAC,gBACAC,gBACAC,gBACAC,kBACAC,kBACAC,kBACAC,kBACAC,gBACAC,iBACAC,mBACAC,aACAC,gBACAC,aACAC,WACAC,eACAC,aACAC,iBACAC,gBACAC,iBACAC,eACAC,cACAC,eACAC,gBACAC,mBACAC,iBACAC,oBACAC,aACAC,cACAC,eACAC,mBACAC,cACAC,cACAC,cACAC,cACAC,gBACAC,gBACAC,gBACAC,eACAC,eACAC,iBACAC,aACAC,YACAC,iBACAC,aACAC,gBACAC,eACAC,oBACAC,SACAC,eACAC,gBACAC,gBACAC,cACAC,iBACAC,aACAC,kBACAC,oBACAC,iBACAC,kBACAC,iBACAC,oBACAC,UACAC,gBACAC,cACAC,iBACAC,eACAC,iBACAC,cACAC,mBACAC,gBACAC,eACAC,oBACAC,mBACAC,iBACAC,cACAC,aACAC,cACAC,iBACAC,eACAC,qBACAC,YACAC,kBACAC,eACAC,mBACAC,eACAC,mBACAC,eACAC,iBACAC,eACAC,gBACAC,eACAC,aACAC,cACAC,cACAC,cACAC,gBACAC,gBACAC,aACAC,WACAC,eACAC,gBACAld,YACAmd,eACAC,aACAC,cACAC,mBACAC,YACAC,gBAkBA,OAcA,gHAgCAC,uDACAC,qDAYA,mBACA,MACA,YACAtP,mDACAA,QACA1V,SACAA,SACAA,QACA,CACA,CACA,iBACA,8BAAsCA,EACtC,CACA,eACA,OAAW/D,mBACX,wBACAuD,cACAQ,GAAW/D,4BACXuD,aACAQ,gBAIAA,QAAsB/D,mBACtByB,UAEAsC,CACA,CACA,eACA,wBAzEA,eACA,mBACA,IACA/D,MADAyB,MAEA,KAGA,cACA,cACAA,4BACA,CACA,eACAyC,QACApE,QACAE,+BACAkE,+BACApE,+BACA,CACAE,IACAkE,IACApE,IACA2B,IACA,CACA,CAmDAunB,IA3UA,eACA,mBACA,IACAjlB,EADAtC,MAEA,MACA,OAEAvD,WACAuD,4BAEA,kBACAwnB,YACAC,YACA,OACAnlB,EADA,aAtBA,mBACA,mBACA,CAqBAolB,QACI,aArBJ,mBACA,mBACA,CAoBAC,QAEAC,UAEA,CACArpB,OACAkE,OACApE,OACA2B,IAEA,CAmTA6nB,GACA,CACA,SACA7qB,eACA,mBACA,SAEA,iBACA,MACA,aACAsF,QACM,eACNA,EA3bA,eACA,IACAwlB,EADA/Q,WAEA,mBACA,aACA+Q,GACAvpB,kBACAkE,kBACApE,kBACA2B,0BAEM,gBACN8nB,GACAvpB,uBACAkE,uBACApE,uBACA2B,oCAIA8nB,CACA,CAsaAC,KAtGA,eACAC,KACAA,GAnBA,cACA,WACA7Q,kBACA8Q,kBACA,cACA,QAAcnqB,WAAiBA,KAE/B,IADAoqB,SACAhoB,IAAgBA,WAAkBA,IAClCyC,OACAwlB,qBAEAxlB,qBACAylB,+BACA,CACA,QACA,CAIAC,GACAL,0BAEA,4BACA,WACAzpB,OACAkE,OACApE,OACA2B,wBAEA,CA0FAsoB,YAEArkB,YACAA,eACA,CACAskB,YACA,kBACA,CACA9K,UACA,oBACA,WACAnb,aAEAA,CACA,CACAmb,WACAxZ,eACA,CACAukB,YACA,mBAnFA,eACA,WACAlmB,QACA,QAAgBA,QAAQA,QAAQA,QAAQmmB,WACxC,OAAenmB,QAAQA,QAAQA,OAE/B,CA6EAkmB,kBACA,CACAE,YACA,mBA1bA,eACA,MAzBA,uCAyBAC,UACA,SACA,yBAJA,sBAIAC,aACA,CACA,CAqbAF,kBACA,CACAG,YACA,mBA/UA,eACA,MACA,OAEA,cACA9nB,OACAlD,WACAwE,WACA,eACA,QAActB,MAAMlD,OAAOwE,OAAOomB,WAClC,OAAa1nB,MAAMlD,OAAOwE,KAC1B,CAoUAwmB,kBACA,CACAC,SACA,MACA,iBACAC,QACA,MACA,mBACAvL,QACAxd,UACAgpB,kCACAC,MACAC,uBACAA,uBACAA,uBACAA,oBACAjlB,UACA,CACA,WACA,CACAklB,iBACA,WACAllB,UAtGA,mBACA,oBACAxB,cACApE,cACA,OACAE,8BACAkE,8BACApE,8BACA2B,kBAEA,CA4FAopB,sBAEAnlB,IACA,CACAsE,QACA,uBACA,CACAqgB,SACA,yBACA3kB,IACA,CACAolB,WAEA,OADAplB,UACAjE,OACAiE,IACA,CACAqlB,YACA,kBACArc,6BACA,qBACAhJ,IACA,CACAslB,WAEA,OADAtlB,UACAjE,OACAiE,IACA,CACAulB,SACA,kBACA,mBACAlnB,YACAA,YACA2B,IACA,CACAwlB,WACA,yBACAxlB,IACA,CACAylB,UACA,0BACAzlB,IACA,CACA0lB,YACA,yBACA1lB,IACA,CACA2lB,cACA,0BACA3lB,IACA,CACA4lB,UACA,OAhaA,iBACA,YACA9oB,gBACAA,QACAuB,SACAA,SACAA,QACA,CAyZAunB,cACA5lB,IACA,EAEA,eACA,gBACA,CAEA,eACA,0BACA,qBACA,iEACA,CACA,QACA,CACA,eACA,oBACA,CACA,eACA,aACA1B,EACAunB,yCACA,CAEA,6BACAC,uBACA,iBACA,MACA,SAEA,qBACA,uBAAmCjsB,MAAOA,GAC1C,aACAksB,kCACA,CACA,QACA,CACA,mBACA,yBACAtrB,cAEAA,cACA,CAoFA,WAnFA,SACA1B,eACAiH,sBACAA,uCACAA,mCACAA,kBACAA,iBACAA,gEACAA,iBACAA,aACA,YACA,WACA,QACA,aACA,aAEAA,WACAgmB,4DACAC,QACA/f,eACAggB,eACAC,aAEAnmB,cACAA,uDACAA,+CACAA,mCACAA,mBACAA,kBACAomB,eACAC,aACAC,qBAEAtmB,4BACAA,kBACAA,kBACAA,gBACAA,gBACAA,mBACAA,kBACAA,eACAA,iBACAA,gCACAA,gBACA,CACAqB,SACA,mBACA,CACArI,OACA,iBACA,CACAutB,cACA,iBACA,CACAC,cACA,iBACA,CACAC,eACA,mBACAC,aACAC,QACAzjB,2BACA9E,KACAE,WACAyO,aAEA5U,KACAgL,cACAnK,MACA,gBACAqE,OACA,aACA6F,iBAAmC7F,KAEnCupB,OACA,EACAvlB,OACArB,SACA,IAGA,GAEA,CACA6mB,mCACAC,2BACAja,OACAka,yBAEAC,aACAH,eACAC,iBAIA,cACA,6CACA,CACA,eACA,mBACA,iDACAnpB,UAEAA,CACA,CACA,mBACA,MACA,0BACAspB,kBACA,qBACAA,0BAGAA,IAEAA,CACA,CACA,4CACA,iBACA,gCACA,CACA,yCACA,mBACA,WACAC,aACA,YAAkBrtB,IAAOA,KACzB,cACAkb,gCACA,CACA,8BACAA,wBACAA,CACA,CAmBA,iBACA,gBACA,SAEA,MAASoS,oCAAiC5O,EAC1CrS,QACAkhB,6BACAC,kBACAC,0BACS7uB,eA1BT,iBACA,kBACAib,sBACS6T,qBAAkB7T,EAC3B,IACAjb,IADA+uB,KAEA,GAPA,0CAOAC,eACAhvB,IACAwS,QACI,CACJ,kCACAxS,mBACAwS,kBACAuc,IACA,CACA,OAAU/uB,cACV,CAUoBivB,MACpBC,qBACAC,mBACA,IAAO/Y,kBAAe0J,EACtB,WACA1J,mBACA9H,sBAEA,CACAtO,gCACAwS,iCAEA,CA0BA,gCACA,qBACA,cACA4c,iBACAC,qCACAC,uCACAC,EA/BA,mBACA,QACA,2BACA,cACA,KAGM,CACN,kCACAC,QACAC,yBACAC,kBACAtZ,0BACA9H,6BACA+gB,iCACAC,kCACA,MAXAlZ,gBACA9H,gBAWA,CACA,OACA8H,QACA9H,SACA+gB,eACAC,gBAEA,CAOAK,QACA,IAAOvZ,kBAAemZ,EACtB,gCACA,+BACAX,kBACAxY,mBACA9H,oBACA,CACA,+BACAA,2CACA8H,+BACA9H,gCACA8H,QACA9H,WAEA,CACA8H,QACA9H,SAEA,CACA,mBACA,aACAshB,yBACAC,wBACA/P,aACAA,YACA,iBAKA,OAJA4O,gDACAA,kBAA6B5O,aAC7B4O,iBAA4B5O,cAE5BA,+BACA4O,cACAA,eACA5O,4BACA4O,WACAA,UACA5O,iCACA,EAGA,CACA,oBACA,SACA,IACA,SACAlJ,cACA,aACA,CACA,GAEAhX,uCACAA,yCAEA,CADA,MACA,CACA,QACA,CAdA,GAeA,iBACA,gBACAkwB,kCACA,qBACA,CAEA,eACA,mCACA,MAEAC,yBACAA,0BACAA,aACAA,QACA,CACA,uBACA,WACA,WACAC,8BACAC,WAEAD,MACAE,KAEAA,CACA,CACA,qBAEA,OADAxnB,SACAO,gBACAgnB,wCACAvnB,aACAO,YACAgnB,sBACAvnB,UAEAynB,SACAA,SACA,QACA,iBACA,cACA,QAAc/uB,IAAUA,IAExB,GADAgvB,OACA,mBACAF,wBACMG,KACN,mBAAuC7sB,IAAUA,IACjD8sB,OACA,iBACAJ,iBAKAC,YACA,mBACA,eACA,QAAgB/uB,IAAWA,WAC3B6H,QAEAgnB,aACA,CACA,QACA,CACA,mBACA,kCACAM,2BACA,8BACA,CACA,kBACAJ,yBACAK,OACAL,mBACAA,kCACAA,WACA,CACA,qBACAM,gBACA,CACA,uBACA,gBACA,qBACAC,aACAC,WACA,gBACA,2BACAzwB,eACA,mEAMA,OALAiwB,SACAA,iBACAA,YACAA,4DACAA,YAIA,qBAIA,QADAA,cACA1iB,WAEAqT,EACAqP,4BAEAA,kBAEAA,cACA,UACA,WACAA,0CACAS,MACAT,0CACAS,MACAT,0CACAA,cACA,UACA,cACAU,SACArD,MACA0B,mBACAC,mBACAgB,2BACAA,wBACAA,wBACAA,2BACAA,cACA,UACA,OACA,OACA3C,iBACApX,UACA+Z,wBACA,KACA,CACAS,UACA,UACA1B,gBACAC,gBACAgB,kBACAA,kBACAA,kBACAA,kBACAA,cACA,UACA,WACAS,UACA,QACA1B,gBACAC,gBACAgB,kBACAA,kBACAA,kBACAA,kBACA,UACA,OACAjB,gBACAC,gBACAgB,kBACAA,kBACAA,kBACAA,kBACAS,MACA1B,gBACAC,gBACAgB,kBACAA,kBACAA,kBACAA,kBACA,UACA,OACAjB,sBACAC,gBACAgB,kBACAA,kBACA,UACA,OACAA,cACAA,0CAGAA,SACApV,iBACAoV,WAEA,CACA,mBACA,gBACA7Z,mCACAwa,2BACA,CACA,iBACAX,SACAA,cACAA,mDACAA,QACA,CACA,eACAA,WACA,CACA,uBACA,MACA,yBAEA,iBACA,oBACAA,gBACAA,eACA,KAAI,iBACJA,kBAEAA,kBAEAA,iBACA,CACA,qBACA,MACA,yBAEAA,gBACAtY,gBACAA,gBACAA,gBACAA,gBACAjT,IACAA,IACA,CACA,4BACA,mBACAmsB,sCACA,QAIA,IAHAZ,SACAA,gBAmBA,gBACAa,eACAb,+CAEAc,gBACAd,qBAEAa,UACAb,qBAEAa,cACAb,yBAEAa,iBACAb,8BAEA,CAlCAe,MACA9vB,IAAcA,aAAkBA,EAChC+vB,OACAJ,IACAC,gBACAb,6BAEAc,oBACAd,2BAEAA,gCAEAA,6BACAiB,aACA5e,gBAEA2d,WACA,CAkBA,sBACA,iCACA,yBACAha,4BACAD,6BACAxC,8BACA2C,+BACAgb,4BACAlB,0BACAA,cACAA,iCACAA,cACAA,cACAA,UACA,CACA,CACA,gBACA,MAASnwB,0BAAoBsxB,EAC7BnB,mDACAA,6BACAA,6DACAA,gCACAA,iEACAA,2BACAA,uDACAA,uBACA,CAEA,wCACAoB,QACAC,qBAEA,SACA,8BACAC,cACAC,UACAC,cACArD,YACAsD,aACA7D,+BAEA,oBACA8D,8BACAjtB,YACAA,eACAktB,SACA,GAEAvxB,WACAwxB,MACA,IAuLA,qBACA,MACA,iBAEA,GADAlsB,eACA0rB,MACA,cACAS,YACAnsB,CAGA,CAjMAosB,WAEAC,gCACAC,iDAEAC,mBACAD,6BAEA1tB,WACA4tB,kBAEAC,WACAD,MAEAzpB,WACA,qCACA,0BACAhE,SACA,CACA,GAEA,CACA,oBACA,SACA6sB,cACAc,SACAC,WACAC,YACAC,eACAC,oBACAC,yBACA7E,oCAEA,oBACA8D,8BACAjtB,YACAiuB,MACA,GAEAtyB,aACAwxB,MACA,IA4CA,kBACA,MAASQ,gDAAwD3tB,EACjE,WACA,kCACAiB,EAUA,oBACA,MAAS0sB,0CAAqC3tB,EAC9C,YACA,wEAEA,gBACAiB,YACA6sB,YACAI,SACAjtB,uBAEAA,CACA,CAtBAktB,WAEA1C,iBACAxqB,EAoBA,oBACA,MAAS0sB,gDAAwD3tB,EACjE,qBACAiB,8BACI2U,UACJ,UACAsX,6BACAjsB,KACA,kBACA,oBACAA,wBACA,CACA,CACA,QACA,CAlCAmtB,uBAEAF,SACAjtB,oBAEAA,CACA,CAzDAotB,SAEAf,gCACAttB,uBACAutB,kBAAsCznB,oCAAsC,EAC5EynB,sCAEAC,mBACAD,0BAEA1tB,WACA0tB,iBAEAG,YACAH,mBAEAvpB,cACAiqB,cACAjuB,MACA,IAGA,CACA,gBAAyCsuB,6BACzC,MAAS9E,0EAAiGyE,EAC1G,OACAM,UACAD,aACAE,YACAC,2BACAC,0BAEA,CACA,2BACAR,iCACA,yDACA,kBACA,6CACA,YAEA,YACA,cACAjtB,CACA,CA2CA,kBACA,qBACA,CACA,wBACA,iCACA,uBACA,kBACA,eACA,MACA+C,SACA,2BACA,uBACA,QAEA,UAAM,oBACN,WAEA,CACA,QACA,CACA,qBACA,sBACA4oB,qBACA+B,cACA3qB,UACAA,SACA,uBAIA,QAHA,UAGA2oB,eACAjc,gBACA,YAIAke,yBACA,IAQA,mBACA,uBACA3jB,SACA3K,SAEA,aACA,mBACAW,EAEAjB,CACA,CAlBA6uB,QACA,CACA,uBACA,QACAne,gBAEA,QACA,CAuBA,iBACA,kBACA,MACA,SAEA,aACA,SACA,QAEA,CACA,CACA,eACA,cACA,WACAmF,UAIA,eACA,gBACA,iBACA,4DACA7R,SAGA,oBACA,CAZA8qB,aAEAjZ,CACA,CAUA,qBACA,MAASgE,UAAQC,GACRpJ,WAAW/N,cACpBosB,eACA,YACA,YAA4BvyB,MAAUA,EACtCkF,MACA6Z,OACAwT,MACA9xB,qBAGA,QACA,CAEA,+BACA+xB,uCACAC,sBACA,qBACA,mBACAC,IACAntB,aACAotB,UACAC,UACA,cACAC,UACAC,eACAD,eACA,YACAE,MACA,OACAC,UACAp0B,kBACAwS,mBAEA7L,MACA3G,kBACAwS,mBAGA,CAoDA,oBACA,cACA6hB,WACAC,mBACAC,WACA,UACAC,UACA,QAAcpzB,MAAeA,EAI7B,GAHAqzB,IACAC,IACAF,YACAE,EAGA,OACA,kBACAJ,0BACA,CACAC,OACAC,EACAvY,yBACAqY,eAFAA,OADAA,MArEA,mBACA,iBACA,cACAE,UACA,YAAkBpzB,QAAmBA,EAGrC,GAFAszB,IACAF,YACAE,KAGA,mBACAH,cACA,QACA,CACAI,YACAC,cACAC,gCACAA,QAGAC,iBACAP,cACAA,iBAEA,EAkDAQ,QAjDA,sBACA,cACAV,WACA,UACAG,UACA,YAAkBpzB,MAAeA,GAIjC,GAHAqzB,IACAC,IACAF,aACAE,EACA,SAEA,aACAM,OACAP,IACAQ,aACAP,QAAyBQ,KAAUC,IACnCT,QAAyBU,KAAUJ,UAEnCR,IACAS,aACAP,QAAyBQ,KAAUC,IACnCT,QAAyBU,KAAUJ,SAEnC,CACA,CAyBAK,OACA,CACA,kBACA,gCACA,CAsBA,sBACA,YAIA,GAHAta,aACAua,wBAEA,sCACAC,WACI,CACJ,2BACA,mBAAsCn0B,MAAUA,EAChD0vB,OACA0E,KACA5uB,EACAkqB,EACAwE,6BACAva,WAEA+V,oBACAA,oBACAA,gBACAA,gBACAlqB,GAEA,CACAmU,mBA7CA,gBACA,cACA0a,aACA,mBAAoCr0B,MAAUA,EAC9Cs0B,IACAC,IACAF,sBACAE,IAGA7E,OACA4E,IACA5E,gCACAA,iCAEA2E,IACA3E,gCACAA,iCAGA,CA0BA8E,KAEA,CAEA,wBACAC,uDACAC,oDACAC,GACA7nB,YACA8nB,kBACAC,wBACAC,2BACA,QACA,iBACAC,qBACAC,6BACAC,4BACA,SACA,kBACAC,uBACAC,kCACAC,4BACA,YACA,oBACAC,yBACAC,iCACAC,4BACA,aACA,sBACAC,+BACAC,8BACAC,wCACAC,2CACAC,2CACAC,6BACA,0BACA,+BACAC,2CACAC,qCACAC,4BACA,wBACA,6BACAC,qCACAC,sCACAC,oBAGAC,OACA73B,KACA,oBACA,yBAEA83B,cAEA93B,wBAEA+3B,gBAEA/3B,8BAEAg4B,iBACA,cACA,gBACAh4B,4BAEA,oCACA,EACAi4B,uCACAC,iBAGAl4B,SACA,WAEAA,SACA,2BAEAA,WACA,8BAEA,iCAEAm4B,wBACA,uBACA,8BAGA,oBACA,OACA93B,kBACAwS,kBAEA,CACA,oBACA,OACAxS,kBACAwS,4BACA,wBACA7S,YAEA,CACA,qBACA,SAAeK,mBACf+3B,GAAe/3B,mBACfsD,WACA3B,WACAwB,WACAE,WACA3D,WACA,eACA,CAEA,iBAWA,mBACA,OAXA,iBACAqb,QACA,4BACA,gBACA,WACAid,6BACAC,aAEAD,CACA,CAEAE,eACA,CAEA,4DACAC,uFACA,iBACA,yBACA,uBACA,aAGA,OADAtyB,QACAiqB,UACA,KACA,aACA,IACAjqB,OAGA,UACA,CACA,kBACA,iBACA,WACAuyB,QACA3d,qBACA4d,QACAD,EACAvoB,oBACAA,QACA,MACA,iBACAub,cAEA,QACA,CACA,eACA,aAAmC1X,uCACnC,CACA,eACA,8DACA,CACA,eACA,cACA,8BACA0H,wBACAA,CACA,CACA,iBAGA,UAFAL,SAEAyS,MADAgE,cACAhE,MACA,qBACAA,kBAEA,0BACA/f,uBACAoJ,sDACApJ,MAEA,SACA8f,6BACAE,+CACAD,OACA/f,QACAigB,6BACA4K,WAEA,sBACAvI,CACA,CACA,qBACA,IACA3uB,MADAm3B,KAEA,mBAAoCn3B,MAAUA,EAE9C,GADAyE,YACA,aAGA,8BACAA,OACA0yB,WAEA,cACA1yB,gBACA0yB,WAEA,OACA,eACAC,gBAEA3yB,CAGA,CACA,mBACA,MAAS+Y,aAAU6Z,EACnBC,gBACAC,wBACA,OACA/Z,sBACAoC,WAEA,CACA,iBACA,wCACA,CA0CA,mBACA,SAzCA,cACA,OACAhhB,KACA44B,QAEAC,YACAziB,GACA,EACA0iB,aACA,aACAxa,EAEA,2BAEAya,aACA/4B,IAEAg5B,kBACAh5B,IAGA,CAoBAi5B,MAlBA,CACAj5B,KACAA,EAEA64B,YACA,EACAC,aACAxa,EAEAya,aACA/4B,IAEAg5B,kBACAh5B,EAMA,CACA,iBACA,SACA,wBACAyN,iBACAyrB,GACAzrB,gCACAA,oCAEAA,yCACA0iB,sBAEA,CACA,sBACA,eACAA,oBACAA,kDAEA,CAEA,eACA,kBACA,CACAgJ,WACAC,WACAC,cAGA,CACAF,WACAC,mBACAC,eAEA,CACA,aAA2BliB,uCAC3B,OACAA,UACAlW,QACAq4B,qBACA7rB,QAEA,CAyBA,mBACA,MACA,UAEA,MAAS8rB,0BAA4CC,EACrDhb,YACS4a,iCAA6BK,OAC7BtiB,8BA/BT,mBACA,MAASoiB,0BAA4CC,GAC5CL,uBAAoBM,MAC7Bjb,WACA,IACApd,KADO+V,sBAAkBuiB,EAEzB,MAGA,IAFAviB,KACAlW,KACAG,QAA8BA,KAC9B+3B,sBADwC/3B,EAIxC+V,IACAlW,IAEAkW,KACAlW,IACA,CACA,aACAA,MAEA,CAAUkW,mCACV,CAQkCwiB,QAClCrd,KACA,IAEAzW,OAFA+zB,KACAC,OAMA,kBAAoCz4B,QAAUA,GAC9C0vB,WACAA,SAGAjrB,UACAA,SAGA+zB,WACA,WAZAA,GAFAT,0BAeAU,oBAEA,YAdAD,GAFA,yBAiBAtd,WAAoCnF,yCACpC0iB,QAEAjzB,MACAkzB,OAEA,iBACAxd,WAAkCnF,wCAElCmF,CACA,CACA,iBACA,WACAyd,aACA,YAAkB34B,WAAqBA,KACvC,4BACA44B,UACA1d,YAEA,CACA,QACA,CAiDA,iBACA,iBACA2d,qBACAzb,WACA,MACA,SAEA,mBACSrH,eAxDT,qBACA,QACAlW,MACA,SACA,sBACAkW,IAGA,qBACAA,IAMA,IAJAA,KACAmiB,IACAr4B,MAEAA,kBACAA,IAEA,YACA,CAAUkW,cACV,CAoCqB+iB,UACrB,OACAC,MADA,MACA,EAAiChjB,uBArCjC,qBACA,iBACAmF,KACA,IAEArb,EAFAJ,IACA+F,OAEA,UAAwB3F,OAAYA,GACpC,eACA6M,eACAlH,SAEA0V,QAAqBnF,2BADrBmiB,OAEAniB,oBAGAtW,IACA+F,SACAuQ,MAGAvQ,GACA,CACA,iBACA0V,QAAiBnF,2BAEjBmF,CACA,CAeA8d,KAFAn5B,YACAkwB,6BAHkDmE,IAKlD,CACA,qBACA,0BAKA,qBACA,8BACA+E,iBACSC,yBAAuCL,aAAW9I,EAC3D3S,WACAlC,KACA,QACAnF,aACA/V,IACA,oBACA,eACA,SAIA,KADAD,KACAm0B,aACAn0B,KAEA,kBACAzB,KAEAyB,WACAmb,QAAmBnF,mCACnBojB,IACApjB,OAEA,CACA,kBACAA,cACA,IACA1J,EADA7G,SAEA,UAAwBxF,SAAkBA,KAC1C,eACAqM,wBACAvN,eACAs6B,KACA1P,KACA2P,oBACAC,gBACAC,mBAEAC,SACAC,kBAEAj0B,IACA2zB,GACA,CACApjB,OACA0jB,iBAEA,CACA,QACA,CAtDAC,UAFAf,CAGA,CAsDA,eACA,OACAgB,kCACAC,gCACAC,wBACAC,oCACAC,kCACAC,0BACAC,0BAEA,CACA,iBACA,+CACA,CAEA,sBACAC,eACAC,gBACAC,uBACAC,SACAC,iBACAn6B,QACAo6B,OACA1K,iBACAZ,UACA7V,YACAohB,YACAC,mBACA1N,kBACA2N,gBACA1hB,eACA2hB,YACAt7B,QACAu7B,kBACAnwB,SACAowB,WACAj6B,SACAkZ,WACAghB,aACAC,YArkFA,0BACA,OACAtlB,uBACA,8CAEA,EAikFAulB,mBACAC,aACAC,eACA/K,WACAhW,cACAC,aACA+gB,iBACAC,gBACAC,gBACAC,gBACAC,eACAC,eACAC,aACApM,mBACAqM,kBACAC,YACAC,cACAC,kBACAC,kBACAC,cACAC,qBACAhgB,WACA0B,gBACAzB,iBACAggB,kBACAC,qBACAC,uBACAC,gBACAhK,kBACAiK,iBACA9K,eACA+K,+BACAC,eACApI,sBACAqI,6BACAC,mBACAC,kBACAC,YACAC,uBACAC,kBACAC,eACAC,gCACAC,gBACAC,WAj2EA,mBACA,sBACA,EAg2EAngB,oBACAogB,aACAC,YACAC,sBACApgB,kBACAC,UACAogB,oCACAC,uBACAC,eACAC,wBACAC,wBACAC,gBACAC,gBACAC,qBACAC,UACAC,iBACAC,aACAC,UACAC,WACAC,aACAC,iBACAC,MACA/jB,OACAC,SACAC,YACAC,eACAC,WACAC,cACAC,iBACAC,SACAC,QACAwjB,WACAC,cACAC,YACAC,gBACAC,eACAC,sBACAC,aACAC,aACAC,kBACAC,qBACAC,yBACAC,cACAC,mBACAC,iBACArhB,eACAshB,eACAC,cACAC,iBACAC,yBACAC,wBACAC,iBACAC,kBACAC,sBAGA,qBACA,MAASC,+BAA2BC,EACpCviB,uBACA,wCACA,+BACA,MACA,gBACM,qBACN,aACAvC,+CACA,MACA,mBACAjb,aACA,OAAgBkc,gBAChB,CACA,CACA,CACA,OAAUA,mBACV,CACA,uBACA,yCACAtX,OACA,uBAA0CzE,MAAUA,GACpD,MAAWkF,gBAAa26B,MACb9jB,WAAQ+jB,eACnB,YAAqB19B,OAASA,GAC9B,aACAoU,QACAupB,QAEA,CACA,CACA,CAUA,uBACA,WACA,+BAWAC,SARA,iBACAvT,yBAGAjW,sBACAkG,QAAkBlG,kCAElB,GACA,GACAkG,CACA,CAsCA,wBACA,6BAGA,WA7BA,yBACA,SACA,QAvCA,eACA,4BACAujB,sBACA,qBACA,8BACAC,wBACA,6CACA,CACA,CA+BAC,IACA,+BAmBA,gBAlBA,kBACA,6BACA,SACA,OAEA,4BAEA,IADA1T,yBACA2T,EACA,OAEA,eACA7kB,KACAmB,IAAgBlG,mCAChB6pB,KACM9kB,OACNmB,QAAkBlG,kCAElB,GAEAkG,CACA,CAOA4jB,cA3CA,qBACA,SAQA,gBAPA,kBACA,MAAWC,yBAAsB/pB,yCACtB8E,SAAOwjB,MAA8BlgC,cAChDsgC,WACAxiB,QAAkBlG,kCAElB,GAEAkG,CACA,CA+BA8jB,UAHA,EAKA,CACA,sBACA,WACAC,gCACA,SAOA,OANAT,mBACAxpB,eACAkG,QAAkBlG,mCAClBkqB,6BAGAlU,MACA,GAEA9P,CACA,CACA,OACAsjB,4BACAW,OACAz7B,eACA,gBACAqY,cACAkP,yBACA/P,cACAkkB,cACAC,gBACAC,KACA,iBAGApiB,6CACA,mBACAlI,YACAA,YACAsqB,QAAyBtqB,wCAAyC,GAGlEsqB,GATA,EAUA,EACAC,iBACA,gBACAxjB,eACAkP,yBACA,kBACAmU,cACAC,gBACA,eACA,0BACAh5B,2BACA6U,KACA,YAAwB1c,aAAiBA,EACzC0c,QAAsBlG,qCAEtB,CACA,QACA,EACAkZ,iBAIAkR,KAHAhE,QACAjjB,aAEAqnB,EADArnB,wBAGAsnB,mBAIAJ,IAHAjE,QACAjjB,aAEAA,cADAA,wBAGA/a,aAEAsiC,IADAtE,QACA,mBAEAxrB,aAEA8vB,IADAtE,QACA,qBAKA,wCACA,gBACA,6BACA,CACA,gBACA,yDACA,CACA,gBACA,sBACA,cACArjB,QACA,2BACAD,gBACAA,mBAEA,CAqEA,qBACA,8CACA,CACA,iBACA6nB,4BACAA,+BACAA,qCACAA,iCACA,CACA,qBACA,MAASC,aAAUC,EACnBF,eACA,WACAE,SACAC,cAEA,qBAA2ClV,gBAC3CmV,sDACAF,sBACAC,YACA,CACA3T,cACA6T,qBAEA,wDACAC,mDACAC,UACAC,UACA,aACAL,MACAD,aACA,CAAOO,gBACP,CAAOA,eACP,CAaA,iBACA,qBAQA,OAPA,cACA,SAAoB7sB,+BACpB,qBACAvI,2BAEAA,CACA,CAEAq1B,CADAC,EACA,iBACA,iBACA,CACA,qBACA,WACA,gBACA,uBAA8C9hC,MAAUA,GACxDqhC,OACA1T,QACAA,SACA0T,aACAA,cACAU,oBAEA,MAAWH,gBAAaI,YACxBC,eACA3jB,OACAqP,YACAuU,SAEA,CACA,wBACA,CACA,uBACAvU,QACAA,SACAA,YACAA,aACAA,UACAA,UACA,CACA,qBACA,kBACA,IAAO/uB,SAAM0iC,EACb,kBACA,cACAC,eAA2CnkB,2BAC3CkP,4BACA,iBACA,cACApf,mBACAijB,cACA/e,WAEAuc,WACAwU,6CAEAA,4BAEAZ,UACAA,YACAnwB,UACA,KAAM,CACN,cACA4D,kBACAmb,cACAvxB,WAEA+uB,WACAwU,6CAEAA,2BAEAZ,UACAA,YACA3iC,SACA,CACA,CACA0iC,MACAA,KACA,CACAc,iBACAC,eACA1vB,SACAL,MACAwC,QACAG,SACAF,UAGA,QACAutB,YACA5jB,UACAA,YAEAK,0BACAA,6BACAA,qBACAA,gCACA,QACAwjB,IACAvjB,QACAD,SACA,GAEA,EACAL,eACA,EACA8jB,eACA,uCACA,OACA9jB,mBAEA,EACA+jB,iBACA1jB,sBACAA,sBACAA,iBACA,EACA2jB,gBACA,MACA,OAEA,qCACAC,wBACAC,yBACAC,EA9LA,eACA,QAnDA,eACA,WACA,gBACA,yBAA2C7iC,MAAUA,EACrD2tB,SACM9hB,oBAAyB01B,0BAAyB5T,GACxDmV,QACA59B,QACAyoB,MACAyT,MACAU,4BACAxV,gBACAiV,aACAwB,gBAGA,QACA,CAkCAC,IACAC,oCACAluB,oBACAD,kBACAxC,mBACA2C,mBACAiuB,WACAC,WACA,OACAF,WACAG,uBACAC,+CACA/B,2BACAgC,+BACAxB,iCAEA,CA6KAyB,UACAC,aACAC,eACApkC,eACA,mCACAsuB,mBAGA,wBACAjc,sDACAgyB,iBACAC,aACAC,cACAjxB,UACAgwB,iBACAC,kBACAiB,mBACAC,oBAEA3C,mBAAuCxuB,GACvC6uB,YACA,uBACAL,aACAzhB,IACAzc,IACArE,SACAwS,SACKuB,GACLoxB,EA7OA,iBACA,QAdA,eACA,WACA,kBACA,MAAWxC,6BAAyB7vB,EACpC,sBACA,SAEA,qBAAsD0L,mCACtDkU,UACAA,WACA,CACA,QACA,CAEA0S,KACSH,gCAA6BH,EACtC,UACA,mBAAqC1jC,MAAUA,GAC/CqhC,OACA,MAAW4B,YAAU5B,MACrBE,aACA0C,4BACA5C,cACAA,kCACAA,aAEAA,UACAA,oCAEA,CACA,QACA,CA2NA6C,gBACAC,qBACAA,YACAA,aACAA,YA1KA,eACA,qBACA,cACA,8BACA,eACA7M,CACA,CACAgK,cACAA,eACA8C,WACAA,WACA,CAiKAC,IACAC,uBACAhD,SACAA,SACAgD,2BACA5lB,aACA3J,YACAzC,UACAwC,iBACAG,iBACA/H,WACA8H,WAEA3V,mBACA,cACAgK,6BACAskB,kBAA4C5Y,+BAAqC,EAEjF,GAGA,SACAwvB,qBACAC,kBACA,QACA,CACAC,yBACAC,4BACAC,sBACA,QACA,CACA9H,wBACA,gCACA3vB,cACA,CACA8H,QACA9H,uCAEA,CACA03B,cACA,QACA,CACAC,gBACA,EAGA,oBACAN,kBACA,gDACA,CACAM,gBACAC,sBACA,EAGA,oBACAC,IACAC,uBACAC,sBACAC,mBACAC,0BACAC,wBACAC,wBACAC,oBACAC,wBACAC,uBAEAC,uBAoCAC,UAA6DlwB,YAI7D,mBACAkJ,oCACA,CAYA,iBACA,iBACA,wBACA,QAGA,CACA,mBACA,iBACAinB,2BACA,SACA,iBACA97B,wBACAA,2BAEAA,GACA+7B,MAGA,2BAA8BC,0BAC9BF,CACA,CACA,mBACA,iBACAA,2BACA,SACA,iBACA97B,0BACAA,yBAEAA,GACA+7B,MAGA,2BAA8BC,0BAC9BF,CACA,CACA,iBACA,SACA,cACA,gCACAG,SAGAC,KACAC,mBACAtnB,+BACAunB,MAGA,CAaA,mBACA,iBACAC,WACA,MACA,OAEA,mBACA,sBACAN,OACAlmB,iBACAkmB,KAEGpnC,QACHmnC,yBACA,aACA3wB,sBACA9H,uBACA,cAGA+4B,SAEA,oBAlCA,iBACAD,SACAxnC,qCAEAwnC,WACA,CA8BAG,MACAR,CACA,CACA,mBACAA,GACAA,eAEA,cApCA,eACAK,aACAA,SACAxnC,uCAEA,CAgCA4nC,GAEA,CACA,mBACA,iBACA3U,SACA,cACAmU,EAhHA,iBACA,4BACShnC,SAAMg+B,QACf,OACA99B,OACA4f,QACA2nB,SACAznC,oBACAwS,oBAEA,CAsGAk1B,QAEG5nB,MACH,aACA,gCAEA,OA5HA,mBACAwN,0BACA,CA0HAqa,QACA9U,CACA,CACA,oBACA8S,oBACA,4CACA,wBAtKA,iBACA,gBACAiC,2BACAC,0BAcA,GAbAnZ,OACA3O,SACAzR,SACA8H,QACA3I,OACAoB,kBACAP,gBACA8H,iBAIA3I,6BACAA,sCACAo5B,OACA,2BACA,QACAnY,UAEA,CACA,SACA,uBACAA,4BACM,CACN,4BACA,QACAA,WAEA,CAGA,CAqIAoZ,MACAC,GAEA,IACA,CACAnC,kBACA,iBACA,UACA,SAEA,sBACA,+BACA,aACA3U,MACAvC,qBAEAA,sBAGA,oBACA,kCACAA,kBAEAA,uBACAA,OACA,CACA,CACAmX,wBACAt+B,+BACAuY,6BAOA5f,IANA,CACA8nC,UACAh8B,UACAq7B,WAEAnnC,QACA4f,MACA,CACAgmB,yBACA,oCACAjT,OACAA,KAGA,CACAmV,UACAh8B,UACAq7B,WAEAnnC,QACA4f,OACAmoB,YACA,CACAlC,sBACA,8BACA,CACA9H,wBACA,kBACA,CACA+H,cACA,cACA,2BACA,EAGA,eACA,sEACAkC,GAEAC,EACA,CAEA,sBACA7M,eACA8M,mBACAC,gBACAH,iBACAC,iBAGA,uBACAG,IACAC,iBACAlD,SAEA5J,aACA,kBACAjP,qBACA,kBACAA,uBACA7B,CACA,EACA6d,gBACA5d,WAGA,SACAtqB,qBACA,aACAqqB,wBACA,yBACApjB,gBACAA,oCACAA,mCACAA,gDACAA,kDACAA,oBACAA,eACAA,aACAA,aACAA,WACAA,qBACA,CACAgK,SACA,mBACA,CACAuyB,cACA,iBACAv8B,iBACA,iCACAkhC,gBACAC,mBACAnhC,cACAA,kDACAA,eACAA,oBACAA,+BACAA,2BACA,CACA,CACAohC,SACAphC,eACAA,sBACAA,gBACAA,iBAEA,CACAqhC,QACA,sBACAC,iBACAh5B,aACA+a,aACA0O,aACA3O,WACA,MAEA,GADApjB,8BACAA,aAGA,OAFAA,uBACAA,iBAGAkhC,IACAlhC,mBAGA89B,QACAA,eACAA,0CACA99B,gCACA,CACAuhC,OACA,4CACA,2BACAC,QAAqBlrB,aAAS,EAE9B,CACA8B,WACA,sBACAopB,qBACA,YAAoB3nC,WAAqBA,IACzC2nC,SAEA,EAKAvF,oBACAhqB,aACAqvB,aACAr6B,sBACA+L,UACAqQ,YACA0O,YACA3O,UACAzqB,cAEA,mCACAsjC,yBACAlV,aACAD,cACAD,8DAEAoV,qBACAwF,QACA9oC,aACA+oC,WApBA,2CAsBAC,SACAhpC,cACA+oC,WAzBA,8CA4BAzF,0BACAlV,wBAEAkV,sBACAjyB,QACAyH,WACA6vB,eAGAxB,QACAruB,WACA6vB,aAGAl/B,MACAw/B,YACAH,QACApe,oBAEAwe,SACAlpC,eACA2oC,cAIAj/B,MACAu/B,YACAH,QACAre,kBAEAye,SACAlpC,eACAsO,gBACA+L,eAKA,SACAja,iBACAiH,cACAA,yBACAA,iBACA,CACAs8B,aACA,UACA,OAEA,yBACAp5B,0CACA,aACA,UACA,OAEA,WACA,kBACA4+B,WAEAhZ,iDACAxgB,mBACAy5B,YAEO,EAEP,CACAC,qBACA,kBACAxuB,EAwEA,iBACA,MACA,OAEA,gBACA,KAIA,mBACAnW,6BAA+CmW,GAAYyuB,6BAE3DzuB,EANAnW,WAOA,CArFA6kC,MACA,MACA,SAEA,oCACA,kBAwDA,iBACA,WACAhvB,iBACA,YAAkBrZ,WAAiBA,KACnC,gBACAsoC,eACAnpB,gBAEA,CACA,qBACA,CAjEAopB,oCACA/kC,aACO,QAGPukC,CACA,CACAS,uBACA,yBACAT,KACA5oB,oCACAspB,iBACAC,aACA,MACA,iBAA+B1oC,OAAQA,GACvC,aACA,qBACA,SAEA,kBACA+nC,qCACA,QACA,CACA,aACA,WACA,iBACA,KACA,mBACAnwB,gBACA,QACA,CACAA,WAGA+wB,eAIAxpB,uBACA4oB,WAJAvkC,MAKA,CACA,QACA,CACAk/B,YACA,6BAEA,YADAr5B,mBAGA,oCACA,iBACAu/B,uBACA,QAFA,CAIA,EA4BA,iBACA,yBACA1vB,YACAsE,qBACAoC,qBACA,OACA7J,YACAlW,UAEA,CAgCA,iBACA,WACAggC,8BACA,QACA,mBAAsC7/B,MAAUA,EAChDqZ,mBAEA,QACA,CACA,wBACA,eACAwvB,oBACA,YACA,YAGA,oBAAkC7oC,MAAUA,GAE5C,GADAu5B,QACAA,OACA,SACA,SAEA,KACA,CACAuP,cACAC,mCACAtkC,KAEA,CACA,SACA,CAcA,iBACA,6BACA,sCACA,CAWA,mBACA,wBACA,sBACA,CACA,qBACA,uDACA,mBACA,mBACA,cAEA,CACA,WACA,CACA,iBACA,MAASia,uBAA0BihB,EACnCoE,6BACS1mB,2BAAqCC,EAC9C0rB,SACAC,SACA/0B,EA7BA,mBACA,SAAYg1B,QAAiBC,QAAiB7rB,iBAC9C,CA2BA8rB,QACA1vB,WACA,MACA,YAAkB1Z,MAAUA,GAC5B,cACAvB,CAAWuqC,YAAgCjqB,EAE3CwiB,GADAxiB,2BACAkqB,aACA1H,OACAA,yBACAA,2BACA,CACA,CACA,iBACA,iBACA,sDACA,CAyBA,iBACA,2BACAhkB,0BACA,KAGA,gBACA,kBACA,kBACA,uCACA,cAEAwmB,OACA,EACA,CACA,oCACAsF,+BAA+EC,GAG/E,SACApqC,iBACAiH,aACAA,gBACAA,aACAA,wBACAA,gCACAA,iCACAA,oBACAA,iBACAA,kBACAA,wBACAA,2BACAA,uBACAA,uBACAA,4BACAA,2BACAA,qBACAA,kBACAA,iBACA,CACAojC,aACA,yBACApjC,iBACAA,kBACAmX,0BACAnX,kBACA,CACAqjC,eACArjC,gBACAsjC,qBAEAtjC,YACA,CACAujC,aACA,mBACApsB,mBACAyjB,oBACA4I,mCACAC,oCACAC,oCACAC,oCACAhW,cACAiW,uBACAC,uBACA1sB,+BACAA,+BACAA,+BACAA,+BACAA,8BACA,CACA2sB,aACA,2CACA,CACAC,UACA,4CACA,CACAC,iBACA,2BACA,CACAC,kBACA,yBACA,oBACA9sB,SACAA,QACA,CACA+sB,QACAlkC,qBACA,CACAmkC,WACA,yBACAnkC,YACAg2B,oBAEA7e,YACAmsB,KAEA,CACAc,aACA,0BACA1iC,sBACAE,aACA,SACA5B,WA7LA,eACA,uBACAqkC,sBACA,UACA,mBAAkCxqC,MAAUA,EAC5CkU,OACAs2B,MACA5rC,IACAwS,QAGA,QACA,CAiLAq5B,YACM1iC,OACN,MACAo0B,WACA,yBACAsN,MACAnsB,YACA,CACAzV,2BACAq0B,WAEA/1B,kBACAA,YACA,CACA,CACAukC,cACA,yBACAvkC,kBACAA,0BACAmX,sCAEA,CACAqtB,yBACA,yBACA5J,oBACA,SACA56B,kBACA,mBACAmX,0BACAA,oBACAstB,KACAnB,MACAnsB,iBAEAnX,yBACAykC,oBACAC,kBAEA,CACApI,YACA,0BACAqI,iCACApa,4CACAvqB,mDACAA,mCACAA,uBACA,CACA4kC,WACA,MAAWC,uBAAgC7kC,MAChCkX,qBAAkBC,EAC7B0rB,SACA,IAEAhpC,MAFAirC,iCACAzlC,sBAEA,sBACA8X,YACAA,aACAiV,QACM,CAENA,EADAtD,QACA9oB,6BACQiT,SACRjT,8BAEAA,iCAEA,sCACA,QAAkBnG,MAAWA,EAC7Bsd,sBACA2tB,IACAC,MACAD,MAEAzlC,KAGA8X,WACA,CACA6tB,GACAN,UAEA,CACAO,4BACA,MAAW/tB,mBAAgBC,EAC3B0rB,SACAC,SACAoC,gBACAC,QACA/Y,eACA,UACA,YAA8BvyB,MAAUA,EACxCkF,MACAqtB,MACAhuB,uBACA9F,qBAGA,QACA,CACA8sC,wBACA,MAAWxtB,mBAAgBT,EAC3BiV,eACA,YACA,YAA8BvyB,MAAUA,EACxCkF,MACA6Z,OACAwT,MACA3zB,kBACAwS,mBAGA,QACA,CACAo6B,yBACA,MAAWztB,mBAAgBT,GAChBmuB,+BAAgCtlC,cAC3CosB,eACA,YACA,YAA8BvyB,MAAUA,EACxCkF,MACA6Z,OACAwT,MACA3zB,oBACAwS,qBAGA,QACA,CACAs6B,aACA,kCACA,CACAC,kBACA,+BACA,CACAC,kBACA,MACAtuB,mBACA7Y,YAKA,UAJA,CACA4U,QAJAlT,YAIA,GACA+V,0BAEAzX,WAAiD8nB,QACjD,CACAsf,+BACA,kBACA,qBACA,6BACAtK,OACAA,WACA98B,kCAEAqW,wBACAA,uBACA,CACAgxB,eACA,yBACAC,YACAd,0BACAvxB,WACAsyB,yBACAzK,EAtPA,oCACA,CAAMloB,QAqPNlT,YArPM,gBAqPN8lC,MACAnxB,GAAmB0C,4DACRA,aA5UX,eACA,MAASA,uCAAkC0uB,kBAC3C,OACA1uB,iCACAoC,iCAEA,CAsUyCusB,IACzC,QACA,aACA5Z,OACA,kBACA,8BACA,CACA,QAAgBvyB,MAChBosC,MAGAjmC,qCACA8kC,MAL0BjrC,GAS1B,KACA,UAAyBA,OAAQA,EACjC,QAGA,qCACA,MAGA,QACA,CACAqsC,sBACA,iCACAnwB,KACA,UACA,mBAAsClc,MAAUA,EAChDyE,eACAskC,OACA7sB,UAGA,QACA,CACAowB,iBACA,QACA,CACAC,oBACA,yBACAlvB,WACAmvB,WACAja,oBACA,OACAka,4CACAhoC,4CAEA,CACAqa,WACA,yBACA3Y,0BACAmX,QAxcA,eACA,YACA,cACA/e,QACAkC,UACAF,WACAgE,UAEAhG,UAEA,CACA+T,MACAwC,QACAG,SACAF,OACA1O,gBAEA,CAubAqmC,sBArdA,mBACA,UACA,SAEA,gBACAt7B,UACA,OACAkB,UACAwC,YACAG,eACAF,aAEA,CAycA43B,2CACA,CACAjK,WACA1jB,OACA,kBAEA1B,mBACAwjB,aACA5rB,EAHA/O,WAGAm7B,UACAnxB,KACA4F,qBACAqH,8BACAwvB,uCACA,MAIA,IAHAtvB,WACAA,wBAEAtd,IAAoBA,QAAmBA,GACvC,aACAwW,WAGAA,YACArG,UAEAqG,YAEA,CACA,QAAgBxW,aAAmBA,EACnCmQ,cAEA,CACAwsB,cACA,6BACA,4CACAx2B,qCACAA,sCACA,CACA0mC,kBACA,0BACA,MACA,yCACA,iCACAlG,eACAnwB,WAxXA,mBACA,aACArG,UACA28B,YACAva,cACAwa,WACAv2B,UACAtR,QACAqnB,eACAztB,aAEA,CA6WAkuC,yBACArG,2BACAA,gBACAA,qBACA,MACAA,kBACAxgC,cA1YA,iBACA,YACA,CACAgK,UACA4wB,eACAxH,eACAr0B,QACAqnB,eACAztB,gBAGA,CA+XAmuC,sCACAtG,YACAA,kCAEA,oBACAA,SACAA,CACA,CACAuG,gCACA,gEACA,CACAC,+BACA,+DACA,CACAC,wCACA,qBACA9lC,uBACA+lC,UACA/D,OACAgE,kCACA,KACA,eAEA,0BACAxC,0CACAyC,QAAkCC,SAAY,qBAC9C9c,yCACAxG,8BAEAhO,4BADA,yBACAqxB,GACA,mBACArxB,YACA5U,6BAEA4U,CACA,CACAuxB,0BACA,mBACAnmC,uBACA+lC,eAAkCK,IAClCpE,OACA,KACA,SAEA,MACA,6BACA,0BACAwB,4CACApa,yCACA/W,4CACA,CACA,kCACA,yBACArS,uBAEAygC,CACA,CACA4F,oBACA,aAGA,kEAAyEh0B,GACzE,CACAi0B,oBACA,+CACA,CACAC,uBACA,4CACAC,sBACAC,2BACAH,kCACA,uCACA,CAAYG,iCACZ,CACAC,uBACAC,MACA5kC,mBAEAlD,wCAEA,CACA+nC,2BACAH,WACA5nC,6CAEA,CACAgoC,mBACA33B,WACA,2BACArQ,yCACAwT,yCAEA,CACAy0B,wBACAjoC,+BACA,CACAkoC,qBACAloC,+BACA,CACAmoC,2BACA,iCACA93B,GACArQ,oCAEA,CACAooC,wBACA,iCACA/3B,GACArQ,oCAEA,CACAqoC,mBACA,mBACA1N,wBACA,kCACA36B,aAEAA,kBACA,iBACAsoC,WACArxB,gBACAA,GACAjX,gBAEAsoC,IACAtoC,8BACMsoC,KACNtoC,2BAEA,CACAuoC,0BACA,yBACA7mC,SACAhI,MACA,MACA,YAEA,IADA8uC,YACA3uC,aAA+BA,KAAUA,IACzC2uC,aAIA,IADAC,KACA5uC,IAAoBA,MAASA,EAC7B6H,8BAEA1B,eACAyoC,aAEAzoC,gBACA0oC,GACA1oC,kCAEA,CACA2oC,yBACAC,qBACA,yBACA,kBACA,8BACAzxB,YACAmsB,OAEA,CACAnsB,kBACA,CACA0xB,SACA,iBACA7oC,2BACM,CACN,eACAA,YACA,CACAA,+CACA,CACA8oC,cACA,yBACA9oC,iEACA,CACA+oC,aACA/oC,gEACA,CACAgpC,eACAhpC,mCACA,CACAipC,mBACAhyB,GACAjX,oCAEA,2BACAkpC,GACAlpC,mCAEA,CACAmpC,iBACAnpC,kDACA,EAEAopC,eACAA,qCACAA,kCAEA,SACArwC,cACAiH,cACAA,cACAA,eACAA,oBACAA,uBACA,CACAqpC,mBACA,MAAW5wC,SAAMuH,2BACjB,OAAYvH,QACZ,CACA6wC,WACA,6BACA,CACAC,cACA,yBACA,UACA,YAEA,WACA,qBACA1lB,4CAEAA,CACA,EAEA2lB,eACAA,wBAEA,UACAzzB,UACA+S,YAEA2gB,eACA,SACA,UAEA,kCACA,MACA/b,IACA,eACA,sEACAgc,kBACAC,gBAEAjc,EAmBA,iBACA,6DACA,2CACAA,mBAEAA,CACA,CAzBAkc,KACA,CACA,wBACAC,4CACAr2B,GAAqBm2B,4DACrB,kDACApS,SACA,EACAuS,mBACA,SACA,UAEA,yCACA,2BACAC,4BAEA,EACA,GASA,QAAaA,eA4Ib,uBACA,gBACArwC,oCACA,IACAsS,MADAiL,IAQA,IANA+yB,eACAC,IACAj+B,MACAg+B,qBAEA5qC,IACAA,KACA6X,IACA7X,oBAEA,oBAA+BvF,IAASA,IACxCA,QACAqwC,aACAjzB,IACA7X,oBAGA,CAhKA68B,gBACA30B,WACA4E,UACA6G,WACAo3B,eACAlY,eACAmY,QACAC,MACA/iC,WACAgjC,YACAC,cACAC,mBACAC,aACAC,aACAC,6BACAC,yBACA1+B,UACAwnB,cACAC,mBACAE,eAEAgX,OACAvjC,WACAvJ,QACAyO,SACAL,MACA2C,WAGAg8B,OACAC,cACAC,eACAC,UACAC,kBACAC,mBACA3+B,UACAlF,WACA8jC,YACAC,kBACAC,cACA9W,8BACA+W,SACAC,SACAz0B,eACA00B,kBACAC,qBACAC,0CACAC,qBAGA3P,2CACAA,gDACAA,sDACAA,2CACAA,qBACAlV,aACAF,6FACAC,uDAEAmV,sBACAlV,oBAEAkV,2BACApV,qDACAC,sCA+GA,MACA+kB,gDACA,iBACA,WACAC,aACAh5B,WACA,QACA,KAASjZ,IAASA,KAClBkb,yBAEA,QACA,CACA,mBACA,uBACAg3B,kBACAn8B,gBACAlW,cACAsyC,OACA,IACA9/B,EADA+/B,uBAEA,SAEA//B,EADA,MACAnS,kBACM,OACNgsC,2BAEAkG,4BAEAA,YACAA,eAIA,QACA,CAcA,eACA,iCACA,CACA,iBACA,cACA,SAEA,qBACAz/B,gBAEA,OADAsc,2BACAN,qBACA,CAcA,mBACA,YACA,0CACA3E,EA5EA,4CA4EAqoB,KAEAroB,CACA,CAmCA,oBACA9qB,eACAozC,QACAnsC,aACAA,iBACAA,oBACAA,eACAA,mBACAA,gBACAA,mBACAA,iBACAA,kBACAA,kBACAA,mBACAA,eACA4O,OACAD,QACAxC,MACA2C,UAEA9O,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,CACAyG,QACAzG,6CACAA,iBACAA,gCACAA,gCACAA,8CACAA,6CACA,CACA4kC,WACA,QACA,CACAoB,gBACA,IAASoG,uDAAkDpsC,KAC3D,wCACAqsC,iCACAC,iCACAC,iCACA,CACAl1B,YACAoC,YACAnC,iBACAG,iBAEA,CACAkuB,aACA,IACAhxB,GADS0C,uCAAkCrX,qBAE3C,QACA,OAAcqX,aAEd,uCACA,uBAAyCxd,MAAUA,EACnD8a,oCACA2C,IACAD,qBAEAI,IACAgC,qBAGA,oBACAA,aACA,CACApC,kBACAoC,kBAEA,CACA+yB,aACA,OACA59B,yBACAzC,uBACAwC,2BACAG,6BAEA,CACA29B,WACA,iBACA,CACAC,YACA,wBACA,mFACA,CACAC,eACA3sC,eACAA,yBACA,CACA4sC,eACApY,oCACA,CACA+H,cACA,MAAW4N,+BAAqCnqC,aAChD6sC,eACA7sC,oBACAA,gBACAA,iBACAA,+BACA4O,OACAD,QACAxC,MACA2C,UACK+Y,GACL7nB,gBACAA,sBACAA,yBACAA,sBACAA,2BACAA,qBACAA,0BACAA,oCACAA,0BACAA,2BACAA,yBACAA,wBACAA,2BACAA,uBACAA,yBACAA,2BAEAA,wBACAA,iCACAA,uBACA,4BACAA,0DACAA,iBACAA,oCACAA,8BACAA,mCACA8sC,6CACA9sC,WA7XA,iBACA,wBACA+sC,mBAwBA,eACA,yBACArC,gBAGA,2BAFA3E,oBACAA,gBAEA,CA9BAiH,IACAC,kBA6CA,eACA,WACA,QACA,mBAAmCpzC,IAAUA,IAC7CixC,YACA/1B,UAGA,QACA,CAtDAm4B,OACAC,WACA9zC,OACAC,SACA4wC,KACA,OACA,OAiDA,qBACA,IAEArwC,EAFAod,IACA7X,OAGA,IADA4qC,eACAnwC,IAAcA,WAAkBA,IAChCA,QACAqwC,aACAjzB,IACA7X,SAGA,CA7DAguC,YACAlD,EAEA,QAqBA,mBACA,QA4DA,eACA,iBACA,QACA,OACA,SAEA,eAA6BrwC,MAASA,EACtC,mBACA,SAGA,QACA,CAxEAwzC,IACArD,aACA,MACA,qBAEA,cACA,yBAA6CnwC,IAAUA,KACvD,aACA,OACA,QAEA,CACA,oBACA,CAnCAyzC,QACA,QACA,QACA,yCAEA,IADAC,wBACA1zC,UAA4CA,IAAUA,IACtD0zC,sBAEA,sCACArD,CACA,CACA,iBACAA,CACA,CAoWAkB,kBACAprC,sBACAA,sBAEAwtC,GACAxtC,uCAEAA,iBACAA,WACAA,gBACAA,kBACA,CACAs8B,YACA,IACAmR,IADAC,uBAEA1tC,qBACAytC,YACAE,eAEAF,WACAE,cACAD,MAEA1tC,mBACAA,iBACAA,sBACAA,iBACAA,8CACA,CACA4tC,cACApZ,mCACA,CACAqZ,sBACArZ,2CACA,CACAsZ,gBACA9tC,qBACAA,yBACAA,YACAA,wBAEAA,2BACAA,WACAA,yBAEAA,mBACAA,kBACAA,oBACAA,oBACA,CACA+tC,qBACAvZ,0CACA,CACAwZ,cACAhuC,8CACAw0B,0BACA,CACAyZ,mBACAjuC,mCACA,CACAkuC,uBACAC,kBACAnuC,kCACA,CACAouC,mBACApuC,mCACA,CACAquC,aACA,QACA,CACAC,kBACAtuC,kCACA,CACAuuC,8BACA/Z,mDACA,CACAga,sBACA,2BACA,UACA,mBAAqC30C,IAAUA,IAC/CwnC,OACAA,yCAEA,CACAoN,6BACAja,kDACA,CACAka,+BACAla,oDACA,CACAma,yBACA,qBACA7B,UACA8B,oBACA7D,mBACAC,gBACA,IACAL,MADAkE,IAEA,oEAEA,YADA7uC,sBAGA,8BACA8uC,iBACAC,mBACAjnB,yCACA6iB,mCACAmE,QACAnE,wBACA5iB,4BACA+kB,8CACAkC,qBACAH,cACA90C,2CACAA,kDAEA80C,6BAEA7uC,oBACA,CACAivC,8BACAza,mDACA,CACA0a,iBACAC,YACA3a,iCACA,CACA4a,MACA,SACAvgC,QACA9H,WAEWwR,iBAAiBuyB,yBAAoD9qC,KAChFsH,oBACA+nC,sBACA,MACA,6BAQA,GAPAA,GACAC,sBACAA,mBAEAA,wBACAA,iBAEAxC,8BACA,MAAezzC,mCAA8B2G,sBAC7CuvC,cACAC,yBACAC,cACAC,cACAL,EAEAC,2CADAxC,iCACAyC,GAGAD,wCADAxC,iCACAyC,GAEAvvC,+BACA,CACA,CACAA,sBACAqvC,GACArvC,uEACAA,uBAEAA,mBACAA,yEAEA,CACA2vC,2BACA,MAAW7E,OAAQ/zB,mBAAerR,YAAY1F,aAC9C4vC,yBACAC,6BACA,wBACA,0CACAC,uDACA,QACAC,IACAH,EACAC,GACAG,YACAD,eAEAC,aACAD,aAEQ,YACRA,UACQ,UACRC,UACQ,cACRA,YACAD,aAEA/vC,+DACAA,+DACA,KAAM,CACN,iBACAiwC,aACA,aACAC,IACAD,YACQ,YACRC,WACAD,KAEAjwC,oBACAA,sBACA,CACA,CACAmwC,iBACAnwC,gBACAA,iEACAA,8DACAA,oEACAA,uEAEA,CACAowC,WACA5b,gCACA,CACA6a,eACA,MAAWj4B,mBAAgBpX,aAC3B,sCACA,CACAqwC,aACA,4BACA,CACAC,yBAGA,QACA,IAHAtwC,mCACAA,2BAEAnG,eAAqCA,IAAUA,IAC/C6vB,iBACAohB,cACAv3B,IACA1Z,KAGAmG,iCACA,CACAuwC,iBACA,uBACA,OACA,sCACA,iBACA1D,aACA/B,WAEA9qC,sDACA,CACA,QACA,CACAwwC,wBACA,MAAW5nB,2BAAgC5oB,KAC3CywC,KACAC,KACA,IAEA72C,uBAFA82C,IACAC,IAEA,QAAgB/2C,MAAYA,GAO5B,GANAysC,aACAuK,kCACAjoB,kBACAznB,cAA0DO,QAAQgnB,OAClExC,eACArX,MACA6a,aAEA,GACQZ,KACR,mBAAyC7sB,MAAUA,EACnD60C,SACApnB,iBACA7a,yBACA9H,WAPA8H,wBACA9H,IAUA0pC,UACAC,UACAC,gBACAC,eACA,EAzgBA,iBACA13C,SACA,aACA63C,aACA,MACA,QACA,QAAkBl3C,MAAWA,SAC7BsH,aAEAunB,aACA,GAEA,CA8fAsoB,MACA,sBACAC,eACAC,SAA+BriC,iCAC/B,OACAxV,YACAC,aACA63C,cACAF,cACAR,SACAC,UAEA,CACAU,oBACA,QACA,CACAC,sBACA,UACA,CACAC,qBACAC,mBACA,mBACA,yBACA,KAEAvxC,iCACA,CACAwxC,sBACAxxC,sBACAyxC,OAEA,wCACA,mDACA,CACAC,sBACA,0CACA,gCACA,CACAC,eACA,iDACA,CACAC,eACA,MAAWv6B,aAAUrX,KACrB,kBACAqX,WACA,CACA,CACAqvB,cACA,uBACA,qBACA,aACA,oBACArF,WA/hBA,mBACA,aACAA,OACAtiC,QACApG,aAEA,CAyhBAk5C,wBACA,CACA,uBACA7xC,cAxiBA,iBACA,aACA+lC,QACAptC,cAEA,CAmiBAm5C,+BACA,CACAC,YACA,2BACAC,yBACAvC,wBACAC,wBACAuC,wBACAzlC,uBACA+M,uBACAzc,yBACA,2BACAA,gBACAA,eACA,CACAo1C,aACA,6BACA,mBACA5qC,EAEAtH,uCACA,CACAmyC,yBACA,kBACA55B,aACA/E,gBACW62B,mBAAgB72B,EAC3BtH,WACAmjC,sBAEA+C,EADApyC,WACAgM,eACAqmC,QACA97B,KACA+7B,kCACAC,+BACAC,MACAC,eACA,iBACA,EACA,cACAC,uBACA,aACAC,iBACAC,iBACAC,OACAC,cACAC,oBACM,aACNJ,cACAG,SACAC,iBACAH,OACAC,sBACM,WACNF,gBACAD,eACAM,OACAC,eACAC,mBACM,YACNP,eACAM,UACAC,gBACAR,MACAM,uBACM,SACN,gBACAL,mCACQ1/B,OACR,2BAEA0/B,2CADAjtC,OAEA,CACAotC,SACAC,YACAH,OACAC,OACA,SAAM,SACN,gBACAF,gCACQ1/B,OACR,2BAEA0/B,2CADAjtC,OAEA,CACAgtC,MACAM,OACAC,UACAC,UACA,CACA,qCACAC,+BACA,QAAgBt5C,IAAiBA,OACjC,0CACAywC,gBACA8I,YACA1f,qBACAC,uBACAgX,gBACAC,gBACAyI,yBACAC,2BACArH,qBACA,SAGAsH,eACAlE,EACAqD,cAEAE,eAEAr8B,QACAm8B,MACAE,OACAI,OACAH,OACAI,MACAH,MACAI,MACAH,MACAlkC,SACAqlB,SACAR,cACAC,oBACAgX,aACAC,aACAyI,kBACAC,0BAEA,CACA,2BACAtzC,oBACAuW,CACA,CACAi9B,sBACA,kBACAhgC,gBACW9N,oBAA8B8N,EACzC67B,sBACAvE,cACW/zB,yCAAoC08B,EAC/CpB,aACAqB,MACAC,SACAxqB,0BACA5S,KACA,qCACAq9B,YACA,aACA3oC,iBACAsmB,0CACM,aACNtmB,cACAsmB,0CACM,YACN,yCACAA,gBACA94B,MACA,SAAM,aACN,yCACA84B,gBACA94B,MACA,SAAM,SACN,gBACAwS,gCACQgI,OACR,2BAEAhI,0CADAvF,OACAguC,CACA,CACAniB,iCACA,SAAM,SACN,gBACA94B,+BACQwa,OACR,2BAEAxa,yCADAiN,MAEA,CACA6rB,4CACA,CACA,UACA,YACAqiB,SACQ,YACRA,cAGA,+BACA,mBAAqC/5C,MAAUA,GAC/CwnC,QACAiF,YACA,0CACAuN,yCACArrB,mCACAtC,iBACA4tB,qBACA,cACA5f,YACA6f,sBACAC,sBACA,IAoCA5iC,GApCA6iC,MAqCA,GApCA5E,GACA52C,KACA,eAEAw7C,GADAp6C,QACAmG,oCACY,MACZA,oCAEA,UAKAk0C,GAFA,UACA,mBACAJ,WACY,cACZ7B,6BAEA/rB,uBAGA,kBACAA,KACY,aACZ+rB,0BAEAA,wBAGAhH,IACAiJ,UAGAjpC,MACAipC,gBAGAC,sBACA,gCACAptC,iBACA8H,gBACA,oBACAD,aACA,eACA,SACAzC,SACA,UACA,SACAA,OAGA,eACA,SACAyC,SACA,UACA,QACAA,OAGAwC,IACAxC,QACAzC,OACA0C,kBACA9H,oBACAmtB,uBAEA,CACA3d,QACA4S,WACAmd,SACA9d,QACA0L,SACA6f,eACAC,eACAE,cACA3iB,aACAqiB,gBACAQ,mBACAhjC,aAEA,CACA,QACA,CACAijC,0BACA,MAAW3uC,oBAAiB1F,aAE5B,IADAw4B,uBAEA,+BAEA,eACA,wBACAzhB,SACM,gBACNA,UACM,oBACNA,WAEAA,CACA,CACAu9B,2BACA,MAAW5uC,kBAAkB+lC,kCAA8BzrC,aAE3D0zC,MACAvC,EAFAnxC,sBAEAmxC,aACA,MACA14C,EACA,iBACAwyC,GACAxyC,eACA,WACA84B,SACU,cACVA,WACA94B,SAEA84B,UACA94B,QAGAA,eACA,WACA84B,UACU,cACVA,WACA94B,SAEA84B,SACA94B,cAGM,YACNwyC,GACAxyC,cACA,WACA84B,UACU,cACVA,WACA94B,SAEA84B,SACA94B,QAGAA,cACA,WACA84B,SACU,cACVA,WACA94B,SAEA84B,UACA94B,eAIA84B,UAEA,CAAYA,gBACZ,CACAgjB,oBACA,6BACA,OAEA,mBACA7uC,wBACA,8BACA,CAAcyG,uDACR,wBACN,CAAcA,2DADR,CAGN,CACAqoC,iBACA,MAAW5rB,eAAe4K,mBAAgB5kB,+BAA4B5O,KACtEwzB,IACA5K,SACAA,cACAA,oBACAA,YAEA,CACA6rB,wBACA,0BACA,kCACA,SAGA,QADAz0C,WACA00C,0BACA,YACArK,iCACAC,UAEA,CACA,CACAqK,YACA,0BACA/rB,WACArS,2EACA,QACA,mBACArQ,oBAGA0iB,SACAA,oBACAA,sBACAA,gCACAA,oCACAA,cACAA,kBACAA,kBACAA,WACAA,cAEA,aACA,mBAAuC/uB,MAAUA,GACjD,aACAwwC,mBACAuK,EACA,CAAan8C,eACb,CAAaA,eACbmgB,GAGAyxB,aACAuK,EACA,CAAan8C,iBACb,CAAaA,iBACb,CACAy7B,kBACArlB,kBACA6kB,4BACAC,yCAIA,CAEA,CACA4W,aACA,MAAWhyB,uBAAsB8xB,SAAOrqC,KACxCsyC,kCACAC,+BACA,MACA,OAEA,mDACAI,oBACA,YACA3yC,qBACAizC,wBACAC,yBACAJ,QAEAA,uBACAC,0BACAE,OAEArqB,SACAA,0BACAA,4BACAA,cACAA,cACAA,cACAA,WACAA,WACA,CACAisB,cAEA,IADA70C,mBACAsH,QACA,OAEA,iBACAyH,2BACAA,GACAymB,QAEA,wEACA,QACA,mBAAqC37B,MAAUA,GAC/C,aACAg3C,SACAvK,UACA1tB,aACAgQ,6BACAA,+EAGAgN,SADAhd,aACAi4B,IACA,CACA9hC,GACA0mB,KAEA,CACAqf,YACA,MAAWlsB,eAAeljB,+BAA2B1F,KACrD,cACA,OAEA,mBACAwM,gBACAuK,UACA,qBACA,mCACA7K,YACA4c,YACA5c,oCAGAA,SAEA,MAAW6oC,yCAphCX,qBACA,MAAS5oC,uCAAiC45B,GACjC5K,sBAAmB5iB,EAC5B,IACAuP,MADAqB,IAEA,YACAta,MACA,qBAEA,GADAkmC,YACA9hC,OACA,0BAEA+hC,wBADAtvC,MACAqB,GACA,MACAiuC,EADM,cACN7Z,sBAEA0Q,UAEA/jB,KACA,KAAI,CACJ,UACA,0BAEAitB,wBADArvC,MACAmJ,GACA,MACAkmC,EADM,cACN5Z,sBAEA0Q,UAEAmJ,YACA7rB,mBACA,CACA,OAAU4rB,wCACV,CAm/B+CE,aAC/Crf,mBACA1B,cACApM,WACAqB,WACAoI,oBACAqiB,sBACAQ,mBAEA,CACAv7B,SACA7Y,oBAGAA,sBACAA,iBACAA,kBACAA,iBACAA,mBACA,CACAk1C,UACA,qBACAC,wBACAC,0BACA,wDAQA,EACAhZ,IACAvjB,SACA7Y,sBACAA,iBACAA,mBAEK,CACLo8B,MACAvjB,UACA7Y,oBAEK,CACLo8B,IACAvjB,SACA7Y,sBAtBA,EACAo8B,IACAvjB,SACA7Y,eAsBA,CACAq1C,2BACA,kDACAC,qBACAvgC,KACA,QACA,mBAAqClb,MAAUA,GAC/C,aACAsd,kCACApC,SAEA,CACA,QACA,CACAwgC,2BAEA,UADAv1C,kDACAwoB,KACA,CACAgtB,aACA,mDACA,oDACA,EAGA,SACAz8C,mBACAiH,YACAA,aACAA,gBACAA,8BACA,CACAy1C,aACA,2EACA,CACAC,YACA,iCACA,OA+DA,eACA,8BACA,EAhEAC,MACAC,oBAEA,mBACAC,OACAC,mBACA,MACA,8CAEA,gBAGAv/B,OAyBA,mBACA,gCACAq/B,eACA3Z,UACArjB,aAEAqjB,YACArjB,iBAOA,iBACA1V,2BACA,qBACA6yC,UACAC,0BACAC,kBACAC,UACAC,cACAla,mBAEA,CAhBAma,oBAEAx9B,eACAqjB,4BAEA,CArCAoa,QACAr2C,eACAi8B,+BAEA6Z,CACA,CACA98C,OACA,oBACA,CACAs9C,cACA,mBACAT,OACAC,aACAD,eACAt/B,KAEAu/B,uBACA7Z,SACAj8B,sBACAu2C,MAGA,EAqHA,WAtFA,SACAx9C,cACAiH,0CACAA,oCACAA,sCACAA,gCACAA,kEACA,CACAhB,UACAgB,wBACA,CACAD,aACAC,0BACA,CACAw2C,qBACAx2C,yCACA,CACAukC,kBACAvkC,sCACA,CACAy2C,iBACAz2C,qCACA,CACA02C,gBACA12C,oCACA,CACA22C,iBACA,iDACA,CACAC,cACA,2CACA,CACAC,aACA,yCACA,CACAC,YACA,uCACA,CACAC,wBACA/2C,2CACA,CACAg3C,qBACAh3C,wCACA,CACAi3C,oBACAj3C,uCACA,CACAk3C,mBACAl3C,sCACA,CACAm3C,aACA,mBACA,uCACAC,0CACAp3C,kBAEA9G,SACA,uCACA8G,mBACS,EAGT,CACAq3C,aACA,cACA7iB,uBACA8iB,QACA9iB,qBACA,CACA+iB,uBACA,YAAoB19C,+BAAkCA,KACtD,iCACA,kBACA,QAEA,CACA,mBACA,CACA29C,YACA,iBACA,cACA,sDAEA,QACA,GAIA,SACAz+C,cACAiH,aACA,CACAy3C,gBACA,mBACAz3C,yCACAA,sCAEA,8DACA+U,wBACA,2BACA/U,yBACAA,wCAEA+U,CACA,CACAqD,iBACA3B,QACA,kBACA,iBAGA,WAFAihC,KACA,gBACAA,iBACA,QAEA,CACA,QACA,CACAC,aACAjuB,kBACA1pB,2BACAA,mBAEA,CACAorB,gBACA,eACA,mBAEA,+CACA,mCACAtF,CACA,CACA8xB,wBACA,oBACApkC,sCACAqkC,EAWA,eACA,WACAA,KACA3kC,gCACA,YAAkBrZ,WAAiBA,IACnCg+C,2BAEA,sBACA,YAAkBh+C,WAAkBA,KACpC,cACA,mBACAg+C,UACAC,WAEA,CACA,OAAUD,qBACV,CA3BAE,IACA,gBAoCA,eAAmCF,sBAAkBrkC,KACrD,WACAgtB,iBACA,kBACA,aACA/W,aACA,UAGA1U,QACA2iC,SACAlkC,qBAAyCkkC,qBAA4BjuB,MAErE,CACA,QACA,CAnDAuuB,YACA,CACAC,uBACA,2BACAnyB,cACAoyB,4DACAl4C,8BACAA,8BACA,EAmBA,iBACA,kBAGA,MACA,GAEAwT,EALA,IAMA,CAiBA,eAA6BkkC,kBAAcjuB,KAC3C,6BACAc,yBACA,sBACAA,mBAEAoU,2BACAhT,cACAE,aACAD,YAEA,CAEA,iBAGA,QADApY,gBAAgD7a,QAChDg1B,yBAFAsO,oBAEAtO,cACA,CAqBA,iBACA,uBACAkoB,EAEAsC,QAZA,eACA,8BACA,IAEA,wBACA,SADA,CAGA,CAKAC,uCACA,CAuCA,eACA,kCACA5kC,2BACAA,SAzCA,iBACA,qBAAmD6kC,WACnDC,eACAC,eACAC,sBACAH,sBACA,kCACA,aACA,UACA,+DAAqExC,KAErE,YACA,sEAA4EA,KAE5E,gBACA4C,EAhCA,iBACA,gCACA,CA8BAC,MACAC,eACAH,aACAH,8BAAgDjhC,QAAKwhC,gBAErDja,4BACA,uBACAhR,uBAEAgrB,GADApC,WACA8B,WACAn1C,2BACA,QApDA,iBACA,QACA,oBACAkU,IACI,gBACJA,mBAEAA,CACA,CA4CAyhC,MACAhD,yBACAwC,+BACA1kC,UAA4ByD,QAAKkhC,aAC5B,GAELp1C,2BACA,aACAyQ,qCAEA0kC,CACA,CAIAS,KACA,CACA,eACA,gBACAC,wBACAr3C,sBACAA,CACA,CAOA,iBACAs3C,WACA,iBACA,gBACA,WACA9lC,MACA+lC,YACAD,WAEA9lC,CACA,CACA,mBACA,oBACA,OACA7R,UAGA,SACAtI,eACAiH,aAzBA,eACA,gBACA0B,gBACAw3C,MACAva,CACA,CAoBAwa,IACAn5C,yBACAA,2BACA,CACAo5C,eACA,4BACA,CACAzgD,WACA,wBACA,CACAA,YACAqH,mBACA,CACA0B,WACA,wBACA,CACAA,YACA1B,uBACA,CACAwT,cACA,2BACA,CACAA,eACAxT,sBACA,CACA63C,cACA,2BACA,CACAtb,SACA,qBACAv8B,kBACAk5C,KACA,CACAG,aACAr5C,yBACAA,2BACA,CACAs5C,oBACA,YACA,MACA,YAAoBC,IACpB,KAEA,CACAC,+BACA,aAAyBD,gBAA0BhS,IACnD,KACA,CACA,YAAsBgS,iBAA2BhS,IACjD,eAAyBA,KAEzB,CACA,YAAsBgS,IACtB,KAGA,CACAE,6BACA,aAAyBF,KAAelS,IACxC,MACA,YAAoBkS,cAAwBlS,IAC5C,YAAoBkS,IACpB,YAAoBlS,IACpB,KAEA,CACAqS,mBACA,aAEA,aADA15C,oBACwC61C,IACxC,MACA,WAAmBA,OACnB6B,+BAEA,CACAiC,mBACA,yBACA,eACA,gBACAx4C,UACAy4C,YAEAz4C,CACA,CACA04C,uBACA,MAAWrmC,kBAAexT,KAC1BmB,0BACAgiC,WACA,KACA,SAEA,gBACA2W,cACAC,IACAxvB,SACArX,yBAEAA,wBACAA,4BAAkEnF,IAClEmF,yBACAA,2BAEA,sBACA,qBACA8C,4BAEAgjC,WACA73C,WAEA6U,CACA,CACAgkC,oBACA,MAAWxmC,kBAAexT,KAC1B,OACAwT,EACA+iC,UACAta,mBACA,CAAOtjC,QACPsjC,GACAnW,GAEA,CACAm0B,kCACA,SAAoBhY,aACTiY,0BAAuBC,4BAClC,SAuCA,iBACA,MAASruB,8BAA2BV,KACpC,kBACA,aACAS,OACAvtB,eACA,sBACAutB,QACA,QAEA,CACA,QACA,EAlDAuuB,QACArlC,aAGAvB,MAFAgtB,cACAxgC,6BAGA,iBACA+U,UAEA,QACA,CACAslC,6BACA,MAAWH,YAAUC,4BACrB,aACAjkB,gBACAgkB,CACA,EAEA,mBACA,eACA/4C,IACAA,UACAm5C,YAEA,iBACA,eACA,WAEAnX,GACA+W,SAFAjuB,OAGAsuB,6DAEAp5C,YAEAgiC,CACA,CACA,mBACAjgC,4DAiBAs3C,+CACA,iBACA,0DACA,CACA,iBACA,qBACA,mBACAz+C,UACAA,SACA,CACA,CACA,eACA,gBACA0+C,sBACAliC,+BACAic,yBACA,CACA,eACA,gBACAimB,sBACAjmB,yBACA,CACA,eACA,gCACA5b,6BACIA,cACJA,QAEAA,cACAA,YAEAA,CACA,CACA,YACA8hC,OACA,cACA,wDAEA,mBACA,uBACA,kBACA,WACA,SACA,oBACA7mC,MACA40B,YACA50B,SAEA,CACA,CACA,CAUA,SACA9a,iBACA,8BACA4hD,QACAC,QACA,KACA,gBACA,mGACAA,gCAGA,kEACA56C,qCACAA,8BACA,sDACAmnB,cACApgB,cACA8H,aACA7O,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,qBACA66C,iBACAra,MAIAiC,8BACAA,8BACAziC,mBACAA,eACAA,eAPAsP,kFASA,CACAwrC,kBACA,MAAWtnC,SAAUsnC,qCAAiCjsC,iCAA+B7O,KACrF,aAGA+6C,KACAC,EAEAj0C,WALA+zC,CAMA,CACAp5C,WACA,uBACA,CACAA,YACA1B,kBACA,CACAwT,cACA,oBACA,CACAA,eACAxT,qBACA,CACAi7C,cACA,wCACAj7C,wBACAA,cAEA22B,uCAEA32B,kBACAA,gCACAA,IACA,CACAk7C,QACA,gCACAl7C,IACA,CACAkH,OACA,qBACAlH,IACA,CACA8/B,YACA2C,iBAGAziC,wBAAgC6O,kBAFhC7O,iBAIA,CACAm7C,aACA,qBAGAC,+BAFAp7C,YAEA6O,IADA2E,yCAEA6nC,0DACAj1B,+BACApmB,mBACAA,qBACAA,mCACA22B,gBAGA32B,6BAAkCimB,SAClCuO,6BACAx0B,eACAA,mBACAA,cAGA,CACAs7C,sBAGApiD,GAFA8G,aACAq4C,WACA,QACAkD,QAEA,CACAC,sBACA,qBACAC,WACApD,cACAqD,gCACA7nC,QACAA,GACK,IACL,SACA4nC,IACAllC,WACArT,uBACA,aACAkU,UACAukC,UACAtM,UACA,OACA77B,UACAooC,0CACAC,6CACA,KAIA3iD,SACA,kBACA28C,OACAz+B,UACA0kC,2BACA,sDACA3D,wBAEAuD,QACA,WACA7F,sBACA9P,QAGAA,MADAuR,eACA,EACAzB,KACAl9C,OACAiwB,aACArQ,aAEA8/B,WAEAtS,cAEA7sC,aACA6iD,UACA1D,OAGAn/C,SACA8iD,+BACAA,mBAEA,CACAC,kBACA,uBACA3T,4BACA4T,WAEA,GADAxiB,+BACAwiB,KACA,YAA4BriD,MAAaA,EACzCmG,4BAEA05B,eACA,CACA15B,yDACA,CACAm8C,8BACA,MAAWC,kBAA4BrD,aAAW/4C,KAClD05B,0BACA15B,aAEA05B,kBACA,wCACA15B,6BAGA,CACAq8C,2BACA,WACAtD,qBACA,QAEA,IADA/4C,mCACAnG,eAAwCA,IAAUA,KAClD,aACA,6BACA,iCAWA,GAVAsd,qBACAnX,4BACAmX,0BAEAA,SACAA,4CACAA,mBACAA,UACAA,mBACAA,mCACAA,aACAA,4BACAA,8BACQ,CACR,6BACemlC,wCAAqCrgB,eACpD/4B,2BACAq5C,iCACAD,yCAEAnlC,2BACAqlC,oBACA,CACA,CACA,8BACAA,CACA,CACAC,iBACAvjD,8BACA8G,2CACKA,KACL,CACAkkC,QACAlkC,sBACAA,2BACA,CACAu8B,UACA,oBACAoC,WACA,gFACA+d,wCAKA,GAJA18C,qBACAA,2BACAA,4BACAA,4BACmE,IAAnEA,mCAA4ComB,uBAC5C,OAEA,wCACApmB,2CACA,QACA,wCAAsDnG,IAAUA,KAChE,MAAa2/B,cAAYx5B,uBACzBkkC,wBACA1K,2BACAmjB,iCACA,CACAA,4CACA38C,sBACA08C,GACAxjD,SACAsgC,YAGAx5B,wBACAA,kCAAuComB,SACvCpmB,kCACA,MAAW48C,wBAAqB58C,KAChC68C,EACA78C,yBACM48C,UACN58C,gCAEAA,aACA,CACA88C,gBACA5jD,mBACA8iD,uBAEAh8C,2BACAA,0BACA,CACA+8C,sBACA,qBACAC,wCACAC,sBACAhpC,uDACAjU,oBACAA,kBAEA,CACAk9C,uBACA,MAAWC,kBAAgBn9C,KAC3Bo9C,oCACA,UAAgBC,4BAAsBD,EAEtCE,OADA,2BAGA,CACAC,yBACA,0BACA,iBACA,OAEAv9C,qBACA,kCACAw9C,aACAC,EACA9gD,oBACAxD,yCAEAukD,OACA,YAAoB7jD,IAAkBA,IACtC,eACA,OAGA,qBACAV,qBACAA,SAAkBkkD,sCAClB,CACAM,iBACA,IAA6D,IAA7D39C,mCAA4C49C,gBAC5C,OAEA5B,yCACA,uBACA6B,0BACA79C,gBACA9G,kBACA2kD,8BAGAr2B,aACAA,cAEAxnB,oCACKA,MACLA,6BACA4Y,WAEA5Y,iCACA,CACA89C,mBACA,IAA2E,IAA3E99C,2CAAoDomB,uBAGpD,yCAAsDvsB,MAAUA,EAChEmG,8CAEA,wCAAsDnG,MAAUA,EAChEmG,+BAAsDozB,iBAAgBhN,GAEtEpmB,0CAA+ComB,QAAK,CACpD,CACA23B,oBACA,+BACAtnC,GAAkBU,sCAClB,kDAGAA,wBACAV,gBACAzW,2CACA,CACAg+C,UAC6D,IAA7Dh+C,mCAA4C49C,kBAG5Cnb,aACAziC,kCACAyiC,gBAGAziC,YACAi+C,IAA4B1lC,cAE5B,CACAM,OACA,MACA,2BACA,MAAahK,kBAAe7O,uBAC5BA,kBACAA,2BACA,CAKA,GAJAA,aACAA,gCAG2D,IAA3DA,iCAA0C49C,gBAC1C,OAEA,qBACA,QAAgB/jD,wBAAuCA,EACvDqkD,0BAGA,IADAl+C,qBACWnG,aAAmBA,EAC9BqkD,0BAEAl+C,+BACA,CACAm+C,0BACA,6BACAppC,KACA,QACA,mBAAwClb,MAAUA,GAClD,eACAukD,eACArpC,SAEA,CACA,QACA,CACAspC,+BACA,sCACA,CACAC,gBACA,IAAmE,IAAnEt+C,yCAAkD49C,gBAClD,OAEA,4CACA,qBAAsC/jD,OAAQA,EAC9CmG,wBAEAA,uCACA,CACAu+C,gBACA,iBACAC,UACAC,cACA1vC,iBACA0H,GACAU,OACApY,cACA6+C,gBAEA,gDAGAa,GACAjpB,MACA5mB,iCACAD,8CACAxC,6BACA2C,qDAGAqI,oBACAsnC,GACAhpB,MAEAhf,gBACAzW,yCACA,CACA0+C,iBACA,4CACA,CACAC,mCACA,mBACA,2BACAtB,cAEA,EACA,CACAuB,kBACA,8BACAllB,iBACA,2CACA,WACAviB,GACAxe,UACA+I,QACAk5B,aACApB,gBACAqlB,YACAC,aACAC,aACApvC,oBACA5Q,QACAigD,WACApZ,WACAqZ,YAEAvlB,WAEAviB,CACA,CACAuvB,aACA,8CAAkEnuB,0BAClE,CACA2mC,yBACA,iDACA,CACAC,oBACA,8BACA,MACA,SAEA,+BACA,oDACA,CACAC,0BACAp/C,uBACA6+C,SACA,CACAQ,wBACAr/C,8CACA,CACAs/C,qBACA,6BACA,CACAC,yBACA,wBACApoC,yBACAmB,4CACA0R,OACA7S,oBACAnX,gBAEAA,+BACAsY,YAA0BupB,YAC1B7hC,4CAEA,CACAqC,UACArC,8BACA,CACAoC,UACApC,8BACA,CACAw/C,uBACA,0BACAroC,iBACAA,+BAEAnX,iBACA,CACAy/C,QACA,QAGA,IAFAz/C,YACAyiC,gBACA5oC,gCAAkDA,MAAUA,EAC5DmG,2BAEA,CACA0/C,UACA1/C,oCACA,MAAWmnB,gBAAannB,KACxBA,aACAA,yBACAmnB,IACAnnB,oBACAq1B,QACAr1B,gCACAA,iBACAA,eAEAA,qCACA66C,YACA76C,kCACA,CACA2/C,oBACA,kCACA,CACAC,aACA5/C,sBACAA,wBACAA,4BAEAA,gBAEA,CACA6/C,iBACA,wBACAzG,gBACA0G,UACA1G,6BACAljC,QAEAupB,YACAtnC,YACAA,YACA6H,uBAEA9G,iCACA,CACA6mD,uBACA//C,4BACAA,8BAEA,kCACAo5C,gBACA0G,UACA1G,6BACAljC,QAEA8pC,UACA9pC,OACAkjC,uCACAljC,OAGAupB,UACAz/B,aACAA,kBAGA,MACA,aACAggD,cACAhgD,iBACAA,cACA8/C,cACAA,eAEAG,OACAjgD,iBACAggD,cACAhgD,aACAA,kBACA8/C,eAEA1G,0BACA8G,IAEAD,GAEA,CACAE,eACAjnD,2BACA8G,8CAEAA,mBACA9G,qCACA8G,8CAEAA,gCACA,CACAogD,wBACA,yBACA,YAKA,IAJA,gBACAjpC,yCACAA,2CAEAtd,eAAqCA,MAAUA,GAC/C+e,OACA,0DACA4gB,GACAA,mDAEA,CACA,CACA6mB,oBACA,uBACA,CACAC,qBACA,yBACAt2C,UAAwCopB,2BACxC,+BACA,MACA,gDAEA,OACAA,eACA/iB,kBACAtR,QACA,IAEA01B,UAEAz0B,eACAA,qBACAA,6BAEA,CACAugD,qBACA,uCACA,CACAC,0BACA,2BACAtI,qFACAuI,SACAC,aACAD,UACAzgD,mCAEA0gD,kBACA1gD,kCAEA,CACA2gD,mBACA,SACAC,QACAC,SACAjD,cACAkD,mCAEAC,qEACA,8CACA,OAEA,6CACA,uBACA/gD,sCACAmY,eACAnY,cAEAA,IACA,CACAghD,oBACA,MAAWpE,wBAAmC58C,KAE9CgK,gCADA62C,GAEAI,QACAC,EA7uBA,qBACA,8BAGAD,EACAC,EAEA/oD,EALA,IAMA,CAquBAgpD,wBACAL,IACA9gD,qBACAw0B,8BACAysB,GACAzsB,+BAGA,iBACA,eACAx0B,eACAA,gCAEAA,kBACAmY,CACA,CACAipC,4BACA,uBACA,SAEA,MACA,SAEA,2BACA,mDACA,EAEA,yDACAj+C,MA0CA,cACA,kGACA,CA3CAD,4BACA+4B,UACA94B,cACA7E,UAEAu8C,WACA13C,cACA7E,UAEAi4C,WACApzC,cACA7E,UAEAg5C,UACAn0C,cACA7E,UAEA+iD,SACAl+C,cACA7E,MAl1BA,SAo1BAo8C,UACAv3C,cACA7E,UAEAo3C,UACAvyC,cACA7E,eACAg5C,aACAgK,OAGAhL,YACAnzC,cACA7E,eACAg5C,gBACAgK,SAQA,SACAvoD,eACAiH,kBACA,CACAyG,SACA86C,UACA,WACA,CACA3c,WACA,WACA,CACA4c,YACA,WACA,CACAxiD,WACA,WACA,CACAk5C,YACA,WACA,CACAuJ,eACA,WACA,CACAC,WACA,WACA,EAEAC,wBACAz+C,6BACA,EACA,QACA0+C,UAcA,eACA,iBACA7rC,EAbA,iBACA,mBACA,qCACA,SACA,uBAAgDlc,IAAUA,IAC1Dkc,kDAEAgwB,oCACA,CACA,oBACA,CAGA8b,WACA,IACAhoD,QADAwd,YAEA,aACA,wBAGA2S,QACA3S,gCAEAhY,MAEA,mBAAoCxF,MAAUA,EAC9CioD,2BACAC,IAGA,IADA1iD,SACAxF,qBAAyCA,MAAUA,EACnDioD,uBACAC,IAEA,QACA,CA0DA,qBACA,YAtBA,qBACA,wBACAC,kBACA3qC,gBACAoC,gBACA,QACAwoC,IACAloD,0BACAmoD,IACAD,KAEArpC,YACAA,WACAspC,WACAD,SACAryC,QACAlW,MACA2d,MACAoC,MAEA,CAGA0oC,UAEAvpC,uBAEAA,CACA,CACA,qBACA,iBACAytB,WACAnB,gBACAC,QACA/Y,KACA,YACA,cAAwCvyB,MAAUA,EAClDuoD,OACAxpC,KACAA,6BACAwT,oBAEA,QACA,CACA,eACA,gDACA,CA2BA,qBACA,sBACA,WACA,MAEA,YADAsV,mBAGA,UAEA,YADAA,iBAAgCv1B,oCAGhC,MAASyD,wCA/BT,eACA,cACA,qBACAmD,aACAnD,SACAlW,YAEAqZ,aACAnD,WACAlW,SAEAqZ,GACA5G,QACA2C,YAEA3C,UACA2C,SAEA,CAAUc,uCACV,CAY2CyyC,IAC3C,kBACA3gB,yBACAtG,eACAknB,KACMlnB,kBACNknB,KAEAhsC,kBACAgsC,MAGAhsC,kBACAorB,iBACA,CACA,qBACA,UACA4gB,EAOA,mBACA,wBACA,CATAC,QACAD,aAEAA,YAEAA,CACA,CAIA,mBACA,iCACA,CACA,eAAuCE,iBAAcC,GACrD/gB,2BACA,YACA8gB,CACA,CACA,oBACAvd,4BACA,kBACA,CACAG,wBACA,kBACA,CACAC,yBACA,MAAWnuB,mBAAgBC,GAChBmuB,+BAAgCtlC,cAC3C0iD,mBACAC,mBACAv2B,KACA,YACA,cAA0CvyB,MAAUA,EACpDga,OACA+E,KACAA,4BACAwT,yBAEA,QACA,CACAsZ,+BACAyG,qCACA,kBACAyW,iCACAjuC,4BACAA,4BAEA,CACAwxB,iBACA,QACA,CACAC,oBACA,0BACWlvB,mBAAgBC,EAC3BiV,oBACAw2B,YACAtkD,QACA,2BACA,iCACA,OACAgoC,uCACAhoC,QAEA,CACA8kC,aACApjC,4BACAmsC,mBACAnsC,iBACAo7B,6BACA,CACAmB,UACA,yBACAv8B,6CACA,CACA2oC,wBACA,qBACW5pC,qBAAqBsnC,WAASrmC,KACzCoW,mBACAulB,mBACAknB,oBACWjb,kCAA+B5nC,4BAC1C,YAAwBnG,MAAmBA,KAC3C,0BACAipD,oBAAqE1sC,eAAkBpW,iCACvF+iD,qCACA3nB,kBAAyCiL,QACzC3E,GACA/F,aACAvlB,YACA4sC,gEACAvqD,oBACAwS,oBACAlE,iCACA8H,iCAEA44B,IACA/F,uEAEA,iCACAuhB,aACAC,iBACAljD,8BACA,CACA,CACAmjD,gBACA,MAAWjsC,UAAQlX,iBACnB05B,wCACA/8B,wCACAymD,oBACAxlB,KACAylB,MACA,kCACAr6C,sBACA,mBACA,UAGA,iBACA,2BAGA,qCACA,0BACA40B,gBAEAzmB,aACA,MAGA,iBACAymB,eAEAA,CACA,CACA0lB,kBACA,uCACA,CACAC,sBACA,6BACAxkD,aACA6+B,cACA,EACA,aACAA,WACA7+B,CACA,CACAykD,YACA,qBACArsC,mBACAD,WACAusC,KACA,QACA,wBAAyC5pD,MAAUA,EACnD4pD,wDAEA,uBAEA,OACApsC,IAFAqsC,SAGAD,SACA7zC,oBACAlW,gBACAiqD,iCACA5d,QACA6d,kBACAnB,+CAEA,CACAoB,4BACA,MAAWhf,aAAcwB,qBAAiB7yB,SAAY4C,wBAAgCpW,KACtF8jD,OACA13B,oBACAw2B,YACAmB,QACA,IAGAC,IAHA1lD,YACAsR,IACA5D,6BAEAA,QACA4D,MACA5D,KAEA+3C,IACAzlD,aACA0N,sBACA,8BACA4D,KAEAA,MAEA,qBACA,4BAOA,GALAo0C,EADAhkD,gCACAqmC,wBAEAjwB,EAEA6P,MACAlsB,eACAksB,EA7PA,mBACA,aACAvR,OAEA2xB,sCACA,CAwPA4d,UACA3lD,QACA8X,QAEA,gCACAu3B,0BACAt2B,iBACAoC,iBACArD,8BACA4tC,KACA,CACA,8BACA,0CACA5tC,KACA6P,IACA,CACA,OACAA,OACA7P,OACA4tC,OACAE,aAEA,CACAC,8BACA,gBACA3wC,eACA6vC,aACAe,4BACA,QACA,cACA,8CACAzvC,0BA/VA,qBACA,iBACAmtC,OACA,sBACA1iD,2BACA,6BACA,WACAC,kCAEA,WACAD,SAEA,gCAEA,OACAilD,MAFAtqD,kBAEA4pD,EACAlB,sBACA7yC,QAEA,CA6UA00C,UAhXA,qBACA,uBACA,QACA,cACAr+B,6BACAw8B,oBAEAx8B,MACAw8B,KAEA,CACA4B,UACA5B,QACA7yC,sBAEA,CAkWA20C,UACAC,oEACAN,8BACAj+B,6BACA,MACAi+B,kDACAj+B,4BAEA,OACA7P,WACA4tC,WACAE,SACAj+B,OAEA,CACApN,OACA,yBACAwtB,WACAoe,SACAlxC,WACA,QACA,KAAW1Z,MAAUA,EACrB,kCACA4qD,oBAGA,EAEAC,YACAA,aACApI,sBACAC,sBACAoI,sBACAC,iBACAhB,WACAhiB,YACAD,SACAhpC,cACA+oC,gDAIAgjB,cACArM,QACAwM,SACAlsD,gBACAuT,UACAm+B,MACAn+B,YAGA44C,SACAnsD,cACAwxC,kBAKA,oBACA/G,aACApjC,4BACAmsC,kBACA,CACAlH,4BACA,0CACA,YAAoBprC,WAAmBA,IACvCuyB,wDAEA,QACA,CACAgZ,wBACA,sCACA,YAAoBvrC,WAAmBA,IAEvCuyB,gBADA1qB,OACA,+CAEA,QACA,CACA2jC,yBACA,uCACA,YAAoBxrC,WAAmBA,KACvC,eACAuyB,wEACA,CACA,QACA,CACA+Z,iBACA,8BACA,QACA,qBAAkCtsC,OAAQA,EAC1C4f,6DAEA,aACA,CACA2sB,oBACA,0BACWxuB,mBAAgBT,EAC3BiV,oBACA3zB,0BACAwS,0BACA3Q,YACA,OACAgsC,cACAhoC,qCAEA,CACAi+B,UACA,8BACAv8B,mCACA,CACA2oC,wBACA,qBACWzxB,mBAAgBlX,kBAChB4nC,kCAA+B5nC,4BAC1C6iC,SACAC,SACA,YAAwBjpC,MAAmBA,KAC3C,aACAuyB,wBACAsV,KACA9T,2DACAH,mDACAiU,0BACA+F,IACA/F,mEACAwC,IACAxC,qBAGA1hC,2BACA,CACA,CACAgnC,+BACA,0BACA,2CACAjxB,YACAA,mBAA+BA,GAAWksB,cAE1C,iBACA,qBACAlsB,YAEAA,6BACAA,CACA,EAEAgvC,eACAA,aACAzI,sBACAC,wBACA3a,YACAD,SACAhpC,cACA+oC,+CAIAqjB,cACA1M,QACA5/C,GACAE,eAEAsS,GACAtS,gBAGAk/C,SACAmN,SACAC,WACApa,UACA,OAgCA,oBACA9xC,iBACAozC,WACAnsC,4BACAA,wBACAA,wBACAA,oBACAA,mBACA,CACAujC,cACAqB,WACA,+BACAztB,mBACA,sBACAA,gBACM,CACN,IAKAtd,IALAqrD,WACA,aACA,MAAen3C,eAAe/N,cAC9BklD,eACA,CAEA,cAA4CrrD,MAAUA,EACtDsd,iBAEA,CACA,CACAguC,eACA,mCACA,CACAC,oBACA,qCACA,CACAC,sBACA,SACA5rC,MACA,YAAoB5f,oCAAqCA,EACzD,mCACA,gDACAsvB,mBACAm8B,wBACAjuC,gBACAoC,iBACA,CAEA,OACA0P,WACAm8B,kBAEA,CACA/oB,UACA,oBACWpB,aAAW5iB,EACtBpB,mBACAouC,SACAvb,qEACAwb,+CACAC,wCACAC,mCACWJ,4BAAyBtlD,4BACzB2lD,uCArFX,mBACA,QACAC,IACAr+B,IACAs+B,IACA,SACA,UACAC,MACAC,cACAC,cACAC,cACAC,cACAC,qDACAC,sDACAC,WACAC,YACAC,YACAC,eACAb,UACAC,UACAr+B,WACAs+B,UACA,CACA,OAAUF,sCACV,CA6D6Cc,QAG7CC,qBAFAvrB,cACAA,eACA,KACAwrB,6BAEAC,MADA7sD,kBACAiG,qCACAA,kBACAA,kBACAmX,8BACAnX,4DACAA,kDACAA,mCACA,CACA6mD,oBACA,qBACA1vC,mBACAmuC,2BACA,6GACA,EAEAtlD,8CACA,CACA2oC,wBACA,oBACApwB,aACA4iB,cAGA2rB,qBACAC,qBACAC,KAJAzuC,UACA9G,UAGAu1C,aACAC,uBACAN,wBACW/e,kCAA+B5nC,4BAC1C,IACAnG,EADAugC,sBAEA,QAAgBvgC,MAAWA,EAC3BugC,4BAEA,QAAoBvgC,QAAmBA,GACvC,kCACAqtD,QACAxlB,GACAjpC,iBACAwS,iBACAmvB,aACA0rB,cACAR,iBACAqB,cACAM,eAEAxf,IACA/F,qEAEAtH,MACAp6B,4BACA,CACA,CACAmnD,iBACA,yBACAC,SACA,IACAvtD,EADAwtD,IAEA,QAAgBxtD,WAAqBA,KACrC,qBACA,qEACAwtD,eAEA,CACA,QACA,CACAC,0BACA,+BACA,sBACApzC,mBAEA,CACA,CACAkyB,oBACA,MACA7tB,aACA2sB,oBACA5mC,KAHA0B,iBAGA4lC,6BACA,OACAU,eACAhoC,QAEA,CACAipD,qBACA,QACA,mBACA,cACA,MACA,iCAAqD1tD,MAAUA,EAC/D,0BACAsd,sBACAouC,SACA/rB,eACA,KACA,CAGA,MACA,SAEA,mBAAoC3/B,MAAUA,EAC9C2Z,iCACA,0BACAiG,sDAGA,QACA,CACA+tC,gBACA,QACA,uBAAwC3tD,MAAUA,GAClD,0CACA4f,0CACA,CACA,QACA,CACAguC,wBACA,QACA,YAAoB5tD,MAAkBA,EACtCmG,iCACA0nD,2BAGA,QACA,CACAC,kBACA,2DACA,CACAC,gCACA,oEACA,EAEAC,iBACAA,aACAvL,sBACAC,sBACA9qC,WACAq2C,iBACAd,iBAEAplB,YACAD,SACAhpC,cACA+oC,4HAGA+jB,aACAt8B,WACAm8B,kBACAl8B,cACA4gB,UACArc,eAEAk6B,gBACAhhC,6BACAC,6BAEA+gC,cACA/M,cACAjD,SACAkQ,QACA7iB,QACA8iB,kBACA,eACA,uCACA,MAAmB9iB,QAAS+iB,eAAa1vC,iBACzC,4BAEA,QADAA,oBACAihB,uBACA,OACAz7B,OACAmqD,4BACAC,0BACA7d,wBACA2d,aACApJ,+BACA9/C,QACA,EAEA,CACA,QACA,GAEAqpD,eACAL,sCACAA,gBACA,GAEA/C,SACAC,WACApa,UACA,GAEAvE,SACA,cACA,8BACA,aACA+hB,YACAA,SAEAA,KAEAA,CACA,MAMA,oBACAjlB,aACApjC,4BACAA,2BACAmsC,kBACA,CACA5P,UACA,0BACW3B,gCAA4CzjB,EACvDK,iCACA,IAAS5H,iBAAcsnB,UACvBl3B,kBACAA,kBACAm3B,QACAvnB,IACAqH,YAEA2S,oBACAA,2BACAA,4BACAA,WACA,6CACA5pB,wBACAwT,iBAEAA,+BACAxT,6BACAsoD,YACA90C,WACK4S,GACLpmB,4BACA,CACA2oC,wBACA,qBACWzxB,yCAAoClX,kBACpC4nC,kCAA+B5nC,4BAC1C6iC,SACAC,UACWpQ,sBAAmB1yB,aAC9BuoD,mCACAC,gDACA,+BACA,aAAwB3uD,SAAmBA,IAC3C,eACAuyB,qBACAsV,WACA+mB,YACA76B,qCACAH,qFACAiU,iCACAA,oCACAvP,IACAuP,YACAA,mBAEA+F,IACA/F,uEAEA8mB,GACAxoD,+BAEA0oD,GACA,CACA,CACAviB,iBACA,yBACAvL,YACA+tB,sCACAjnD,aACA,aACA,SAEA,qDACAknD,iEACA,wBACA,CACA/vC,OACA,yBACA1B,kEACAg1B,YACA,EAEA0c,aACAA,aACAvM,0BACAC,wBACAuM,YACAp2B,aAEAm2B,cACAxQ,QACAwM,SACAlsD,iBAEAmsD,SACAnsD,iBAKA,oBACAI,iBACAozC,WACAnsC,wBACAA,uBACA,CACAomC,oBACA,MACA7tB,aACA2sB,oBACA5mC,KAHA0B,iBAGA4lC,+BACA,OACAU,eACAhoC,QAEA,CACA+mC,yBACA,6BACA,CACA9I,UACA,8BACAv8B,qBACAA,mCACA,CACA2lC,YACA,MACAhxB,GAAmB0C,2DACnB,OAFArX,iBAEA0B,qBACA,6BACAsT,4CACAoX,UACAzX,SAEAyX,UACAzX,YAIAA,CACA,CACAo0C,gBACA,mBACA5tB,cACA1R,YACA6lB,0CACAqX,kBAEAC,KADA7sD,2DACAwe,2BACAvY,gCACAA,mCACA,CACA2oC,wBACA,oBACApwB,aAEAywC,EADAzwC,UACA9G,UACAs0B,0BACA+gB,YACAC,YACAkC,2BACA,IACApvD,EADAsb,IAEA,wCACA,QAAgBtb,MAAWA,EAC3Bsb,6BAEA,QAAoBtb,MAAmBA,KACvC,aACA,QACAisD,8BACAa,iFACAxxC,IACA+uB,IACA8kB,iBACArC,MAEAqC,kBACA5uB,QAGA,UACA3hC,IACAwS,IACAg8C,cACAN,eACAvsB,aACA0rB,WACAtyC,+DAEAxT,4BACA,CACA,CACAkpD,uBAEA,QACA,OAFAlpD,iBAEA0B,sBACAsT,6DACAiC,MAGAA,CACA,CACAkyC,qBACA,uCACA3wB,iDACA,CACA,EAEA4wB,kBACAA,aACA7M,sBACA9qC,WACAq2C,iBACAd,iBAEAplB,YACAD,SACAhpC,cACA+oC,2EAGA/T,cACAyM,cAEAgvB,cACAtO,cACAjD,SACAkQ,QACA7iB,QACA8iB,kBACA,eACA,uCACA,MAAmB9iB,QAAS+iB,eAAa1vC,iBACzC,4BAEA,QADAA,oBACAihB,uBACA,OACAz7B,OACAmqD,4BACAC,0BACA7d,wBACA2d,aACApJ,+BACA9/C,QACA,EAEA,CACA,QACA,GAEAqpD,eACAL,sCACAA,gBACA,GAEA/C,SACAC,WACApa,UACA,GAEAvE,SACA9F,0DAKA6X,QACA/9C,GACA3B,oBACA0wD,YACA/hD,YAEA6iC,eACAE,MACAif,aAEAC,aACAjiD,YAEA8yB,gBAKA,qBAEAovB,YACAA,aACA/D,SACAt8B,WACAm8B,kBACAl8B,eAGA,oBACAgd,oBACA,gCACAha,oBACA,OACAka,uBACAhoC,uCAEA,CACA+mC,yBACA,6BACA,CACA9I,UACA,yBACA3S,YACAmE,aACAmX,uBAEA,GADAtb,WACA,cACA,6CACA5pB,wBACAwT,iBAOAxT,4BALA,CACAypD,SACAC,8BACAl2C,WAEA4S,EACA,CACApmB,mCACA,CACA2oC,wBACA,gCACAzE,cACA,YAAwBrqC,MAAmBA,KAC3C,aACA2Z,wDACAm2C,oDACAlxD,kBACAwS,kBACAy2B,GACAjpC,IACAwS,IACAkK,cACAo4B,wBACA/5B,WAEAxT,2BACA,CACA,EAEA4pD,cACAA,aACAtN,0BACAC,wBACA5uB,cACAm7B,YACAnuB,UACA/Q,MACAigC,gBAIAD,cACA9O,cACAzC,QACA/9C,GACA3B,uBAKA,oBACA4jC,UACA,0BACW76B,WAAmByV,EAC9BK,iCACA,IAAS5H,iBAAcsnB,UAOvB,GANAl3B,kBACAA,kBACAm3B,QACAvnB,IACAqH,YAEAjX,uBACA,MAAa46B,sBAAyBzjB,EACtCyS,oBACAA,2BACAA,4BACAA,WACA,6CACApW,+BACAxT,6BACAsoD,YACA90C,WACO4S,EACP,CACApmB,4BACA,CACAukC,cACA,MAAWukB,YAAU9oD,cACrBA,6BACAA,+CAEAmsC,mBACA,CACAxD,wBACA,qBACWzxB,yCAAoClX,iBAC/C8pD,sCACAliB,2BACAH,2BACA5E,SACAC,UACWpQ,sBAAmB1yB,aAC9BuoD,mCACAC,gDACA,gCACA,aAAwB3uD,SAAmBA,IAC3C,cACAuyB,sBACAsV,UACA+mB,aACA76B,sCACAH,uFACAiU,iCACAA,sCACAvP,IACAuP,aACAA,mBAEA+F,IACA/F,sEAEA8mB,GACAxoD,8BAEA0oD,KACA,CACA1oD,+BACA,CACAmmC,iBACA,yBACAzkC,aACA,2BACA,QACA,qBAAoC7H,OAAQA,EAC5C4f,6DAEA,aACA,CACA,kBACAkvC,sCACA,aACA,SAEA,qDACAC,iEACA,wBACA,EAEAmB,gBACAA,aACAzN,sBACAC,wBACAuM,YACAe,SAEAE,cACA/iC,aACAZ,cAEAyxB,SACAmN,SACAC,WACApa,UACA,GAEAvE,SACA,yCAKA+R,QACA5/C,GACAE,eAEAsS,GACAtS,iBAKA,sBACAo7B,eACA2wB,iBACAK,oBACA8C,sBACAgB,kBACAO,uBACAI,iBACAI,mBACAG,uBAGA,mBACA,MAAS3vB,gEAAyD/pB,EAClE,UACAuY,cACAA,qBACAq+B,KACA+C,MACAphC,yBAEAA,uBAEAA,cACAA,QACA,CAmBA,qBACA,OACAnwB,kBACAwS,kBAEA,CACA,yBACA,MAASxS,kDAA2D4X,EACpEs2C,kCACAM,gBACA,QACA,YACA,MACA,MAEAgD,KAFAC,YACAvD,YACA,EAEAwD,MADA,uBACA,CACA,CACA,MACAC,KADArwD,2BACA,EACAqgC,QACA0rB,SACSuE,oDAtCT,qBACA,QAJA,eACA,8DACA,CAEAC,yBACAC,UACAC,oBACAC,MACA,8BACA,8BAEA,OACAJ,2BACAK,uBACAC,gCACAC,4BAEA,CAwBqDC,YACrDC,QACAC,QACAC,WACAC,WACAC,OACAC,QACAC,UACAC,WAEA,GADAziC,cACA0gC,GAEA,GADA1gC,mBACA8hC,MACA,uBACA9hC,2BACA,CACA,sBAEA,GADAA,oBACAgiC,MACA,uBACAhiC,mCACA,CAEA,GADAA,6BACA+hC,KACA,uBACA/hC,kCACA,CACA,sBAEA,GADAA,oBACAyhC,MACA,uBACAzhC,2BACA,CACA,KAAI,CACJA,cACA,0BACA0iC,oBACA1iC,gBACA,0BACA2iC,oBACA3iC,eACA,CACAA,aACA,CA8DA,oBACA7vB,eACAozC,QACAnsC,oBACAA,0BACAA,uBACAA,qBACAA,wBACAA,wBACAA,mBACAA,mBACAwiC,GACAt/B,qBAEA,CACA+2B,eACA,oCACW9kB,oBAAiBwjB,MAA4BlgC,WAC7C2hC,qEAA+Dp6B,eAC1E,aACA,WACA,cACA,cACA,iBACA66B,GACA2wB,yBAEAC,EADA7kC,WACA1S,cACAw3C,gBACA,WACA,CACAC,kBACA,MAAWlzD,6DAAsDuH,eACjE,IACA,IACA,aACA,WACA,cACA,cACA,iBACA66B,IACW3uB,oBAAiBlM,aAC5B4rD,UACAC,cACA,OACApzD,kBACAwS,kBAEA,CACAo+B,mBACA,6BACA,CACAxwB,QACA,MAAWrF,2BAAwBxT,KACnCkM,kBACA89B,mBACAsf,aAGA,GAFAtpD,+CACAA,yCACA,8CACA,OAEA4oB,SACA,QACA,MACAkjC,MACA,0CACAljC,yCACA5oB,yBACA8rD,IAEA,CACAljC,8BACAA,4BACA,QAvIA,uBACA,MAASmjC,4CAAwC17C,EACjD,iBACA,MACA27C,mBACA,YAAoBnyD,MAAiBA,EACrC+uB,SAEA5T,WACA8wC,SACAR,UACAQ,OAGA,CACA,uBACAl9B,SACAk9B,CACA,CAqHAmG,gBAjGA,yBACA,MAASz4C,WAASnD,GACTwjB,iCAA8BrgB,EACvC/C,2BACAojB,IAGApjB,GACAmY,gBACAA,wBAEAA,cACAA,uBAEAvY,eAjCA,mBACA,MAAS5X,kDAA4C4X,EACrDs2C,8BACAM,kBACA,MAMA,IALAx2C,GACAy7C,aAEAtjC,cACAA,uBACA/uB,IAAcA,MAAiBA,EAC/B+uB,WAIA,IAFAA,cACAA,oBACA/uB,IAAcA,MAAiBA,EAC/B+uB,UAEA,CAgBAujC,QAEA17C,GACAy7C,UAEAF,gBACApjC,WACA,EA4EA2hB,iBACA3hB,WACA,EAkBA,qBACAA,gDACAA,6CACAA,2DACAA,mDACAA,4CACAA,6CACA,CACA,mBACAA,iBACA,CAUA,sBACA,kBACShZ,qBAAoD2tB,GACpD3tB,eAAsCuiB,EAC/CviB,gBACAlW,gBAEA,OACAud,QACArH,QACAmiB,YACAxe,YALA64C,oBAKAn1C,UAEA,CACA,qBACA,MAAS8W,oBAAiBnE,GACjB3S,+BAA0Bo1C,UACnCC,EA1BA,eACA,iBACA52B,GAEAliB,iDACAmiB,GAEA42B,EACA,CAkBAC,IACA,IACA3yD,OADO4uC,qBAAsBlL,MAE7B,QAAc1jC,OAAWA,EACzB0vB,sBACAA,SAEMkf,GACN7f,kBACA6f,MAEA6jB,qBAEAjtD,KAEA,WACAkqB,mBACA+iC,wBAEAv6B,CACA,CACA,qBACA,kBACS9a,wBAAoBo1C,WACpB5jB,qBAAsBlL,MAC/B,IAEA1jC,YAFA4yD,IACAC,IAEA,8BACAC,QACAnG,QACA59B,cACAA,cACAA,gBAOA,IAJA6f,IACAlf,UACAX,mBAEA/uB,IAAcA,OAAWA,GAEzB,GADA0vB,UACAA,OACA,SAEA,aACAte,MACA2hD,QACAA,QACA3hD,IACAu7C,IACQv7C,MACRq7C,KAEAmG,iBAEAE,KACA/jC,eACAikC,KACAH,IACAlG,OAEAsG,GACA,CACAH,IACA,CACA,eACA,kBAGA,OADA/iC,oFADAH,kCAEAsjC,KACA,CA5HAC,YACAA,aACAC,qBACAn5B,mBACAF,uBACAs5B,eACAr5B,cACA3nB,SACA89B,UACA70B,aACAm0C,aAEA0D,kBACAx5B,mCAgJA,mCAQA,oBACAz6B,eACAozC,QACAnsC,iBACAA,oBACAA,mBACAA,kBACAA,sBACAA,kBACAA,oBACAA,sBACAA,mBACAA,uBACAA,0BACAwiC,GACAt/B,qBAEA,CACAiqD,yBACA,sBACA35C,mFAEA6iB,mBADA7iB,qCACAma,GACA3tB,uBAEA,CACA+tB,cACA/tB,sBACAA,sBACAA,WACAA,sBACA,CACA+tB,aACA,mBACA,CACAyE,eACA,qEACA,CACAn5B,QACA,sBAEA,iBADA2G,YACAwyB,WACA,CACAl5B,OACA,sBAEA2d,WACA,UAFAjX,YAEAwyB,WACA,CACAtN,iBACA,qBACA5mB,OACAyvB,cACAyE,WAA2CR,2BAC3C,aACA,OAEA,WACAo7B,EAlGA,eACA,iBACA/1B,EAEA7jB,iDACA8jB,GAEAF,CACA,CA0FAi2B,IACA,QACA,mBAAwCxzD,MAAUA,GAClD,MAAa+V,eAAY4iB,KACzBjP,OACAC,OACA,UACAzO,UACA,QACA,CACA,MACAu4C,QADAvzD,+BACAyZ,WACA85C,UACAv4C,SACA,CACA,0BACA,CACAg4C,mBAEA,OADAQ,SACA3kC,WACA,CACA4kC,YACA,sBACAC,WACA,iBACA79C,OACAqH,0BACA,iBACA8a,eAAiDniB,oBAEjD,SACA,CACAiJ,eAEA7Y,iBACAgM,SAFAhM,kBAEA6zB,cACAjL,SArGA,qBACA8kC,uBAzBA,qBACA,cACAF,IACAA,qBACA5jC,eACA4jC,eAGAG,gBACA/kC,WACA,CAgBAglC,UAfA,qBACA,MAASp7B,sBAAmB5I,EAC5B6jC,QACA,iBACAE,gBACA/kC,cACA6kC,SAA2C79C,qBAC3CgZ,cAEAA,UAEA,CAMAilC,SAEA,CAgGAh1C,aACA+P,aAEA5oB,gBACAA,uBACAA,kBAEA,EAyBA,qBACA,mBACA7H,CAASif,MAAe02C,kBACxB,yCACA,CA3BAC,aACAA,aACAt6B,sBACAC,cACAC,mBACAC,wBACAC,cACAxF,mBACA2/B,iCACAnE,QACAn3B,YACAu7B,WACAC,WAEAH,kBACAv6B,kCACAM,2BAEAi6B,gBACAlnC,eACAC,4CAQA,oBACA/tB,eACAozC,QACAnsC,oBACAA,mBACAA,iBACAA,iBACAwiC,GACAt/B,qBAEA,CACA+2B,eACA,sBACWxhC,SAAMuH,2BACjB,uEACA,CACAmuD,cACA,uBACA,CACAC,cACA,uBACA,CACAzC,kBACA,MAAWlzD,SAAMuH,2BACjB,OAAYvH,QACZ,CACAwtB,QAEA,OADAzS,uBACA4V,UAGA,OAFAA,kCAEA,MADAA,qBAEA,CACAvQ,UACA,qBACA7Y,qDAGA4oB,4BACAA,0BACAA,8BACA0M,sBACA,CACA+4B,WACA,yBACA,2BACA,EAiBA,iBACA,MAAS51D,iCAA2B61D,gDACpC,cACA,qBACAC,MACA3/C,gBACAD,gBACAxC,MACA2C,QAEAy/C,MACA3/C,MACAD,MACAxC,gBACA2C,iBAEA,CAAUF,8BACV,CACA,qBACA,oBACA,CAsDA,qBACA,iBACA4/C,WAEAv8B,OADAw8B,OACAC,QACA,WACAD,2BACAD,wBACA,CAIA,iBACA5lC,uBACA,CACA,sBACA,uBACA3d,iBAGA,OACAxS,QACAwS,QACAsO,QALAwQ,0BAMAjtB,QALAitB,0BAMAX,gBAEA,CApHAulC,cACAA,aACA96B,cACA+6B,YACAC,mBACAC,cACA7G,oBACA7+B,SACAD,YAEAwlC,kBACAn7B,kCACAM,2BAyGA,oBACA/6B,eACAozC,QACAnsC,oBACAA,uBACAA,iBACAA,kBACAA,mBACAA,0BACAwiC,GACAt/B,qBAEA,CACA2V,QACA,MAAW2pC,yBAAyB1uB,kCAA+B9zB,MACxDyQ,iBAvEX,eACA,cACA5B,iBACA9H,iBACA4hD,EA7BA,mBACA,MACApb,kBACAh1C,KAFA+1D,uBAGA,OACAl2D,sBACAkC,0BACAF,4BACAgE,wBAEA,CAmBA2wD,YACA3lC,EAnBA,mBACA,MAAS45B,sBAAoBsL,mCAC7BhwD,yBACA/F,QACAy2D,gBACAzhB,kBACA0hB,WACA,OACAC,4CACAC,+CACAC,qDACAC,wDAEA,CAMAC,YACA,OACAC,OACA92D,SACAwS,QACAsO,IACAzc,IACAssB,UAEA3Y,OACAhY,aACAwS,YACAsO,YACAzc,YACAssB,QACA8lC,gDACAC,kDACAC,sDACAC,0DAIA,CA4CyBG,OACzBC,EAnCA,eACA,yDACA,CAiCAC,gBACA9mC,UACA2mC,wBACA3mC,cACA6mC,eACA7mC,SACA6mC,gBACA7mC,cACAA,mBAEAA,cACA6mC,aACA7mC,cACAA,SACAA,WACA,CACAqR,eACA,qBACA,CACAk0B,cACA,wBACA,CACAC,cACA,wBACA,CACAzC,kBACA,MAAWlzD,6BAAwBuH,+CACnC,OACAvH,cACAwS,cAEA,CACAojD,YACA,wCACA,EAEAsB,YACAA,aACAC,sBACA/7B,cACAq5B,eACA1K,qBACAyF,mBAEA0H,kBACAn8B,kCACAM,2BAGA,sBACAC,eACAi5B,cACAe,eACAY,gBACAgB,gBAsGA,eACA,iBACA,uBACA/0B,oBACAA,QACA13B,gCAA4C5E,SAC5C,CACA,CACA,eACAia,4BACAs3C,OAEA,CAiBA,QACAha,gBACA5Z,UACA6zB,oBACAtyD,YAEAuyD,+BACA,cAEA,YADAC,MAGA,gBACAz3C,gCACA,MAAa3W,qBAAkBg5B,EAC/BzjB,sBACAzV,YAIA,GAHA,oCAGAyV,gCACA,OAEA,4BAIA,GAHA,oCAGAoB,kBACA,OAEA,IAoBA03C,GApBWrgD,iBA7CX,iBACA,iBACA,IACAqH,EADArH,IAEA,MAASsH,UAAQC,GACRE,uCAAkCH,kBAC3C,WACAtH,+BAGAqH,EADAQ,EACAC,8BAEAC,IAEA,CAAU/H,gBACV,CA8ByBsgD,MAEzB,OADA18C,kBAEAq8C,UADA,CAmBA,OAfAnmC,QACAkR,iBACAA,OACA13B,gCACA+S,gBACA9S,cACAnK,eACA,sBACA,EACAqI,gBACArB,YACA,KAIAwT,iBACA,OACAy8C,EApLA,uBACA,qBACA,QACA,sBAEA,WACAE,cACA,QACA,cACA,IACAt2D,UADAkC,IAGA,IADAk0D,YACAp2D,IAAcA,MAAiBA,KAC/B,IAEAoC,EAFAwwD,IACA2D,IAEA,iCACAC,uCACAC,QACA,SAA4Br0D,KAAiBA,IAC7CwwD,UACA2D,UAEA3D,KACA2D,KACA,6BACAG,wCACW93D,WAAwBiJ,KAEnC,IADA8uD,OACAv0D,KAAwBA,KAAaA,IACrC8S,eACA0hD,mBACAA,mBAEA1hD,MACAyhD,IACAE,OACAC,KAGAV,SACAl0D,GACA,CACA,mBACAk0D,CACA,CAuIAW,YACA,UACA,UACAX,EAzIA,qBACA,IAEAp2D,oBAFA4yD,IACAC,IAEA,WAEAmE,SAEAC,GADApvD,EAFAkO,OAEAnX,EACAo4D,EACA,QAAkBh3D,QAAmBA,GACrC0vB,OACA9wB,eACAwS,MACA,YACA,SACAA,KACAu7C,IACAuK,KACQ9lD,MACRq7C,IACA0K,KAEAvE,oBACM,CACN,aACA,mBACA,uBACAwE,iBACAC,iBACAjB,WACAvuD,MACAjJ,MAGAw4D,iBACAhB,WACAvuD,MACAjJ,KAGA,CACAoB,aACAo2D,cAEAA,UACApD,IACAH,IACAlG,MACAuK,OACA,CACA,CACA,QACA,CAqFAI,UACA,cAEA,qDAA6D39C,gBAE7DonB,cA1BA,CA0BAq1B,EACK,EAELvQ,WACAsQ,KACA,GAyCA,qBACA,KACA,OAEA,WACAt2D,OACA,oBACAkW,QACAlW,SAEA,CAAUs4B,yBACV,CAmBA,mBACA,KAAQt4B,IAAaA,KACrB,aACA,4BACA,KAEA,CACA,QACA,CACA,qBACA,YACAsZ,aAEAjX,eACA,CAEA,iBACA,SACA0tD,KACA,aACAA,KACA17B,KAEAA,EAzCA,iBACA,MAASt1B,mBAAoB24D,MAC7BC,WACAtjC,KACA,4BAA0Bne,kBAC1BlW,YACA,aACAJ,OACA,UACAy0B,QAAmBt1B,YACnBs1B,QAAmBt1B,aACb,WACNs1B,QAAmBt1B,YACnBs1B,QAAmBt1B,YAAa,GAGhCs1B,CACA,CAwBAujC,MAEAvjC,iBACAA,SACAva,SAAc06C,WACdzE,QACAC,cACG,IACH,CACA,eACA,qBACA,CAEA,mBAEA,MADA6H,KACA1H,KACA,YACA,MACA,MACA,SAEA,iCACA,UACA,SAGA,GADAxsD,QACAA,EACA,SAEA,aACA,SAEAm0D,UACA3H,QACA,CACA,QACA,CACA,mBACA,QA6CA,eACA,kBACA4H,SACA,wBAIA,YAHA,QACA5H,wBAEA,mBAGA,MACA,SAEAA,EACA,CA3DA6H,IACA,SACA,yBAEA,oBACA,gCAKA,qBAIA,OAHA,oBACAr0D,SAEAA,mBAGAA,CACA,CAZAs0D,aAEA,yDACA,CAiFA,mBACA,WACA,YAAkB11D,WAAuBA,KACzC,cACW5C,wBAAoBu4D,YAC/B,eAGA,KACAC,qBAEA9jC,WACAz0B,EACA,KAGA,CACAy0B,YACA,CACA,mBACA,2BACA,MACA,SAEA,aACAyE,aACA6+B,WACA,SACA/3D,KACA,YAAkBO,WAAqBA,KACvC,aACAi4D,gBACAC,cACA,cACA14D,QACAC,QACA,KACA,CACA,CACA,OAAUD,uBACV,CAEA,SACAN,eACAiH,WACAA,WACAA,oBACA,CACA+sD,mBACA,MAAWt0D,kBAAcuH,KACzB,OACA4oB,aADAqJ,MAAwBriB,iBACxBlW,iBACA+vB,QACA,CACAvE,eACA,MAAWzsB,kBAAcuH,KACzBmV,UACA,OACA1c,kBACAwS,kBACAkK,QAEA,EAiEA,mBACA,QA/DA,eACA,MAASoD,uBAAmB7E,EAC5B,SACA,OAcA,iBACA,4BAEA,OADAyD,yBACAA,cACA,CAlBA66C,MAEA,eACA,OApGA,eACA,MAASjsB,wBAAoBryB,EAC7Bqa,KACAyE,aACAy/B,WACAC,EAUA,iBACA,WACAC,oCACA,YAAkBt4D,WAAkBA,KACpC,aACA,eACA,MAEAsd,UACAi7C,oBAEA,CACA,QACA,CAvBAC,MACAH,WAAuCz5D,mBAAyBmxB,IAChE,YAAkB/vB,WAAqBA,KACvC,aACA,kBAAgCoC,SAAkBA,IAClDq2D,YAEA,CACA,eAA0BvkC,qBAC1B,CAsFAwkC,IAEA,eACA,SAEA,QAWA,eAEA,OADA7+C,aACA8+C,yBAiBA,eACA,MAASzsB,gBAAaryB,EACtBF,YACAxH,uBACA4D,wBACAtR,EAzKA,mBACA,MACA,OACAA,EADA,YACAm0D,EACI,UACJ1sB,8BACI9yB,MACJ42C,QAEA9jB,iBAEAznC,CACA,CA6JAo0D,QACAr1D,KACA,oBACA,wCACA,eACA5E,MACAwS,MACAme,2CAEA,CACA,YAAkBvvB,MAAYA,EAC9BwD,wCAEA,QACA,CAnCAs1D,IAIA,eACA,MAAS5sB,WAAU8jB,QAAQn2C,EAC3BmgC,EAvKA,iBACA,WACA,kBACAA,WACI,UACJA,QACI5gC,MACJ4gC,8BACI9N,iBACJ8N,oBAEAA,CACA,CA2JA+e,MACA,UACA,yBACA,OACAn6D,WACAwS,WAEA,CACA,WACA,CAbA4nD,GACA,CAjBAC,IACA,uBACA1B,EAEA2B,OACA,CA+CA1oC,KACST,uBAAmBlW,EAC5Bs/C,YACAvB,SACAv9B,qBACS++B,qBAA8BxB,MACvCp0D,qBACAm4B,QAKA,iBACA,MAAS5L,gDAAyC4Y,EAClDxQ,yBACApJ,SACA,iBACAsqC,cACArJ,MAAejgC,6CACfhB,YACAA,SACAsqC,kBAEArJ,MAAajgC,6CACbhB,WACA,CAjBAuqC,IAAiBvpC,wDACjB6L,MAEA,CAeA,mBACA,MAASjD,qBAAkBn1B,EAC3B,SACA+1D,KACAxqC,cACA,kBACA,MAAWhZ,eAAYuiB,EACvBkhC,OACAzK,eACAvvD,GACAuvB,kBACAvvB,OAEAuvB,gBACAA,mBAEAwqC,uBAAmD3qB,SACnD2qB,EACAxqC,cAEAA,eAEA,CACAA,wBACAA,cACAA,QACA,CACA,iBACA,MAASgB,4CAAsC4Y,EAC/ChQ,EAlZA,mBACA,mBACAzE,WACAulC,WACArd,KACA,kBACA,IAASrmC,eAAYuiB,EACrBz4B,YACA,+BACA,gBACAu8C,QACAviC,SACArW,SACAuS,WACAlW,WAEA,QACA,CACA,gBACA,kBACA,yCACA65D,YACA,iBACAtd,QACAviC,SACArW,SACAuS,OACAzX,8BAEAuB,KACAvB,6BAIA,CACA,CACA,QACA,CA6WAq7D,QACA,UAAc9/C,mCAAsC8e,GACpD,MAAWtsB,OAAQstB,qBAAyB,IAAMigC,EAClDC,SACA9qC,SACAA,cACA+qC,qBACA/qC,cACA,6BACA,MACA,MACAwqC,EACAxqC,cAEAgrC,YAEA,6BAAyDnrB,oBACzD1W,OACAA,GACA6hC,WAEA,CACAhrC,cACAA,8BACAA,WACA,CACA,CACA,mBACA,MAASzc,gBAAa45B,mBACb/T,0BAAsBC,MAC/B,UACArJ,cACAA,oBACAA,SAEA,CACA,qBACA,2BACAirC,GACAjrC,iBAEA,CAEA,QACAitB,YACAie,2BACA,qCACAvC,KACA,YACA,QAAgB13D,MAAWA,EAC3Bsd,sBACAyS,YACAlW,OACAkW,gCACAlW,GACAmuB,8BACA9iC,QACA8qD,eACAtxC,QACAnB,oCACA2uB,eACAnc,SAGAzS,YACAo6C,UAEA,QAAgB13D,MAAWA,EAC3B6Z,OACAA,iBAGAA,2BAEA,EACAqgD,kBACA,kCACAr6B,mCACA3qB,cACA,qBAAsClV,OAAQA,GAC9C,sBACA6Z,IAGAA,qCACAmF,WACAm7C,cAEA,CACA,EACAC,0BACA,qCACA,OAEA,yCACA,qBAAsCp6D,OAAQA,GAC9C,qBACAq6D,OACAF,uBAEA,CACA,EACAG,yBACA,wBACAD,yCAGAF,uBACA,EACA/3B,UACAm4B,aACAC,+BAIA,iBACA,IAAOC,4BAA2CC,EAClD,yBACAD,gBACAE,oCAEA,CACAA,WACAF,YACAG,yBACA,EAGA,oBACA17D,eACAozC,QACAnsC,eACAA,uBACAA,uBACAA,qBACAA,mBACAA,uBACAA,eACAA,wBACAA,wBACAA,uBACAA,sBACAA,qBACAA,gBACAA,mBACAA,iBACAA,kBACAA,mBACAA,kBACAA,qBACAA,qBACAA,mBACAA,oBACA,CACAu8B,cACAv8B,gBACAA,iBACAA,gBACAA,qBACAA,mBACAA,UACA,CACA8tC,gBACA9tC,qBACAA,yBACAA,6BACAA,wBAEAA,2BACAA,2BACAA,wBAEA,CACA00D,cACA,gCACA,iDACAH,WACAI,4CAEAJ,SACAI,8CAEA30D,sBACA20D,YAEA30D,kBACA,CACAovC,MACA,MAAW57B,iBAAcxT,KACzB,cAEA,YADAA,0BAGA,iBACA40D,aACAC,SACAC,8BACWN,yBAAsBO,QACjC,QACAnsC,gBACA5oB,qBACA6O,gBACA9H,8BAEAA,iBACA8H,6BAEA7O,iDACAA,mDACA,CACAg1D,kBACA,MAAWpsC,0BAAyBsc,QAAS14B,aAAWxM,KACxDi1D,yBACAC,sBACAhvC,MACA,QACA0C,mBACAA,wBACA,SACAzc,KACA,wCACA,2CACA,gCACAgpD,KACAD,wBACA/oD,KACAipD,KAEAH,MAAqBrmD,qCACrBsmD,qBAEAC,CACA,CACAE,kBACA,MAAWzsC,2BAA0Bsc,QAAS14B,aAAWxM,KACzDi1D,yBACAK,sBACAC,MACA,QACAC,IACAC,IACA7mD,IACA8mD,IACA,wCACA,0CACA77D,iBACA87D,OACAL,QAA0BzmD,mBAC1BD,OACA8mD,IACAF,OAEAP,MAAqBrmD,qCACrB4mD,gBACAC,SAEAE,KACAL,QAAsBzmD,mBACtB8mD,CACA,CACAC,iBACA,yBACA,OAEA,oCACWC,0BAAoC9+C,gBAAgBvK,WAAQwK,QAAQhX,KAC/E81D,6BACA,wBACA,QACAlnD,kDACA,iBACAwmD,YACAA,QACAxmD,mDAEAmnD,oBACAA,oCACAnnD,YAEA,KAAM,CACN,QACAzC,4DACA,iBACA4pD,YACAL,QACAvpD,6DAEA4pD,QACAA,oBACAA,yCACA5pD,aAEA,CACA,CACAkjC,eACA,qEACA,CACAx2B,OACA,yBACA,iBACA2c,WACAx1B,aACAy1B,KACA,CACA,CACAugC,QACA,MAAWxiD,4CAA6CxT,MAC7C+W,kBAA0B0S,EACrCwsC,WACAH,iCACAlB,cACW1gC,mBAA2BqgC,EACtCM,SACAqB,MACA,MACAl2D,iBACA4oB,gCACAA,wBACAA,eACAA,gBACA,MAAW4rC,qCAAiCO,QAqD5C1lB,uBACAylB,6BAEAqB,EADA9mB,GACA,CACA52C,oCACAwS,eACA2e,QAGA,CACAnxB,cACAwS,6CACA2e,QAGAuP,6BACA,aACAn5B,mCACA4oB,8BACAA,4BACA,sCACA2I,yDACA1iB,UACA,WACA5D,OACA6qD,uBACAzmB,GACAx1C,2BACAoR,WACAkrD,SACA19D,+CAEQoB,0BACRpB,4BACA09D,SACAlrD,wDAvFA,mBACA,iCACA,OAEA2d,SACA,4BAQA,GAPAA,+BACAA,gCACAA,yCACAA,mCACAA,eACAA,mCACAA,kCACA2rC,iBACA,UACAnrC,sBACA6+B,yBACA9+B,qBACA0K,gBAEAizB,mBAEA59B,WADAje,KACAspD,qBACA,KAAQ,CACR,gCACA6B,sBACAlJ,uBACAtkC,cACA1lB,mCACA2yB,KACAp9B,KACAwS,KACAsO,IACAzc,IACAssB,YAGAR,kBAEAA,SACA,QACAA,UAEA,CACAA,WACA,CA6CAytC,CADAP,QACA7qD,OACAxS,2CA7CA,mBACAm9B,0BACA0gC,wBACA/kC,qCAEA,CAyCAglC,gBACAlnB,GACA8mB,UAEAA,UAGA/8B,4BACA,CACA0b,YACA,qBACA0hB,UACAC,aACAC,gBACA,cACA,OAEA,uCACA9tC,WACAljB,aAEAixD,QADAF,SAEA,MACA7nD,YACAkZ,aACA,uBACAA,+BACA7c,aACA2D,iCACM,CACN,+DACA3D,kFACA,CACA,oBACA2d,+BACAA,wBACAA,sBACAA,oBACAA,gBACAgN,kBACA,CACAghC,sBACA,2BACAH,aACAC,gBACA,wCACA,CACAG,sBACA,UACA,+BACA59B,2BAEA,IADA69B,sBACAj9D,IAAkBA,aAAeA,EAEjC,GADAk9D,OACA99B,6BACAA,2BACA,2BAIA,WACA,CACA+9B,eACA,qBACA,IAmBA,iBAIA,SAHA,4DAGAvtC,uCAIA,CA3BAwtC,WACA,OAEA,uCACA,8CACA,0BACAC,EApWA,+EAoWAC,MACAtqC,OACA2H,8BAEAx0B,oBACAo3D,OACA5iC,6BAEA,MAAM4iC,GACN5iC,6BAEA,EAWA,QACAqhB,YACAwhB,YACAznD,aACA,yBAA8CgZ,8BAC9CozB,oBACAA,cACA,EACA90C,QACA80C,gCACAzjC,QACA,EACAq0B,oBACA,iBACAoP,oBACA+L,WACA,EACAna,eACA,iBACAma,gBACAA,kBACA,EACAuP,gBACA7gD,UACA8B,6BAEA,EACA0jB,UACA30B,WACA5B,eACAqR,eACA+lB,YACA/pB,WACAoT,WACAiiC,eACA,uBACAmP,UACAA,uBACAA,UACAC,cAEAD,UACAC,YAEA,EACAC,aACAC,aACAxyB,QACAhR,+BACAsgC,YACAhoD,WACAw7C,kBACA,yBACe9iB,QAASyyB,mDAA8Cp/C,iBACtE,0CACA,0CACAsb,oBACA,OACA91B,sBACAmqD,4BACA0P,YACA/Y,kBACAgZ,yBACAC,sBACAC,kCACAC,2BACA1tB,+BACA6d,0BACAF,2BACA9+B,oBACAoI,yBACA27B,eACA95B,qBACA,EACSpzB,KACT,GAEA6qC,OACA3W,+BACA5sB,WACA5B,kBACA3H,UAGA+nB,aACAe,mCACAqe,QACAre,kEAKA,oBACA9tB,eACAozC,QACAnsC,mBACAA,uBACAA,eACAA,qBACAA,gBACAA,mBACAA,iBACAA,kBACAA,kBACAA,mBACAA,qBACAA,mBACAA,oBACA,CACAu8B,YACA,qBAGA,GAFAv8B,YACAA,YACAypB,UAEA,YADAzpB,iDAGAA,wBACAA,0BACA,kCACAA,4BACA,qDACAA,oBACAA,cAEAA,YAEA,CACAqvC,eACA,8BACA,6BACA,CACA4oB,aACA,MAAW9rD,yCAAmCnM,KAC9C+W,UACA,IACA+Q,MADAqB,IAEA,4BACA4rB,YACAC,MACAltB,QAEA,qBACAitB,MACAC,YACA7rB,WAEA4rB,MACAC,YACA7rB,SAEArB,OAEA,CAAYitB,wCACZ,CACAl8B,OACA,iBACA4Q,eACA,cACA,OAEA,mBAEAvd,EADAgsD,aACA,qBACWnjB,yCAAoC/0C,kBAC/C41B,mBACA1B,cACApM,WACAqB,WACAoI,sBACAqiB,sBACAQ,mBAEA,EAYA,QACAyB,WACAwhB,YACAznD,cAbA,iBACA,gBACAgZ,UACApV,UACA+E,UAEAyjC,oBACAA,eACAzjC,cACA,CAKA4/C,KACA,EACAjxD,QAEA80C,eADAzjC,qBAEAA,YACA,EACAq0B,oBACA,qBACAoP,oBACAnR,WACA,EACA5O,UACAllB,eACAzP,WACAkhB,MACArC,eAEA2W,YACAtwB,WACA9G,eACA3H,QACAooB,YAEAiyC,eACAlkC,eAEApO,aACAe,eACAC,gBAIA,qBACA,QACA+uB,cACAjmC,aACA,gBACAgZ,UACApV,UACA+E,UAEAyjC,oBACAA,eACA7iD,WACA,EACA+N,QACA80C,0BACA7iD,YACA,EACAyzC,oBACA,kBACAoP,oBACAnR,WACA,EACA5O,UACAllB,eACAzP,WACAkhB,MACArC,iBAEA2W,YACAtwB,UACA9G,eACA3H,QACAooB,aAEAiyC,eACAlkC,eAEApO,aACAe,eACAC,gBAIA,UACAuxC,WACA,aACA,SAEA,QACA5/D,IACAwS,IACAgM,IACA,mBAAoCpd,MAASA,GAC7C,qBACA,oBACA,4BACApB,OACAwS,SACAgM,CACA,CACA,CACA,OACAxe,MACAwS,MAEA,EACA6vB,aACA,aACA,SAEA,IAGAjhC,MAHApB,MACAwS,MACAivB,2BAEA,mBAAoCrgC,MAASA,GAC7C,qBACA,oBACA,MACAiC,OADAgyD,oBAEAhyD,MACAo+B,IACAo+B,IAEA,CACA,CACA,MACA,4BACA7/D,MACAwS,KACA,CACA,OACAxS,IACAwS,IAEA,GAEA,iBACA,WACA6d,KACAtS,gCAEAJ,WAGAA,CACA,CACA,eACA,oEACAmiD,cAEAA,CACA,CACA,iBACA,MAASloD,kCAA8BuI,EACvC4gB,kCACS8M,iBAAc9M,sBACvB,OACAjhB,QACA+tB,QACAla,sBACAwa,+BACA4xB,iBACA59B,uBACA+L,YACAvT,eACA/iB,UAEA,CACA,iBACA,qBACSooD,yBAAqBzT,GACrBwP,wBAAqBhhD,EAC9BklD,iBACAjC,kBACAkC,mBACAC,WACAC,WACAC,WACAtsD,gBACA,eACAqC,IACAkqD,uEACAA,0CACAH,IACA7xD,mBACA6xD,oBACAplD,qBAEAulD,IAEAhyD,MADAyM,wDAEAulD,mBACAA,oBAEAF,IACA9xD,qBACA8xD,gBACAA,sBAEA,QACA,sBACAhqD,uCACA,EACA,gBACA+Z,gBACA1vB,eACA0vB,gBACA1vB,wCACA8/D,qCACA9/D,UACAA,iBACAA,gBACAA,kBAEA8/D,IACApwC,gBACA1vB,gBACA0vB,YACA/Z,WACA,CAAUA,iBACV,CAoBA,qBACA,MAASpW,aAAUwtB,GACVpX,mBAA+BD,iBAAc2J,EACtD,eACA,mBACA0gD,4BACIxgE,OACJwgE,SACIxgE,WACJwgE,WAnBA,qBACA,MAASxgE,aAAUwtB,EACnBizC,6BAIA,GAHA,2BAGA,qBACA,QAEA,CAYAC,YACAF,YAEAA,CACA,CACA,mBACA,4BApCA,iBACA,MAAShuD,cAAWgb,EACpB,aACA,MACIhb,eACJ,SAEA,QACA,CA4BAmuD,MACA,OACAH,uCACAI,SAEA,CAqBA,qBACA,MAASC,2CAAuC9lD,GACvCylD,mBAAgBM,EACzBC,OACStK,iDAA4Cv3B,MACrD,MAzBA,iBACA,IAAOl/B,aAAUwtB,EACjB,kBACAxtB,KACI,eACJA,QAEAA,CACA,CAiBAghE,MACA,QAjBA,mBACA,IAAOxuD,cAAWgb,EAClB,gBACAhb,KAEAA,GADI,aACJlE,IAEAA,IAEAkE,CACA,CAOAyuD,QACA,mBACA,WACAjhE,KACM,cACNA,MAEI,WACJA,mBACI,cACJA,oBAEA,CACAA,0BACAwS,4BAEA,CACA,mBACA,sBACA,mBACA+5C,cACA,YACAA,oBACAA,UACA,CACA,eACA,mBACA,CAQA,iBACA,qEACA,wBACA,CACA,oBACAjsD,eACAozC,QACAnsC,eACAA,gBACAA,2BACAA,kBACAA,8BACAA,sBACAA,wBACAA,qBACAA,6BACAA,uBACAA,uBACAA,uBACAA,kBACAA,uBACAA,iBACAA,sBACAA,mBACAA,mBACAA,mBACAA,cACAA,cACAA,mBACAA,kBACAA,mBACAA,mBACAA,wBACAA,6BACAA,2BACA,CACAojC,cACApjC,eACAA,8BACAA,oBACA,CACAsnC,qBACA,+BACA,KACA,SAEA,mBACA9zB,6CACAiW,+CACAmY,uBACA,sBACA5hC,yCAEA4hC,CACA,CACA8E,aACA,uBACA1mC,cAhEA,mBACA,aACAglD,UACA2U,eACAhhE,gBAEA,CA0DAihE,kDACA,CACAC,cACA,MAAW5U,aAAWzxC,EACtBsmD,gCACAjvB,0BACAkvB,+BACA,SACA,qBACAC,cACAA,cACAA,CACA,CACAC,mBACA,iDACA,CACAC,aACA,MAAWjV,aAAWzxC,EACtB2mD,KACA,gBACA,SACAv1D,UACAo1D,SACAn1D,UAEAu1D,UACAC,4CACAA,iCACAA,0CACAF,YAEAA,CACA,CACAG,kBACA,gDACA,CACAC,eACA,MAAWtV,aAAWzxC,EACtBgnD,iCACAC,2BACAC,gCACA,SACA,qBACAV,cACAA,cACAA,CACA,CACAW,gBACA,qBACAj5D,kBACAk5D,KACAC,KACAC,KACA,IACAjhE,IADA8/D,KAEA,mBAAqC9/D,MAASA,EAC9C8/D,4BAEA,kBACAA,wCAEAnmD,aACAmmD,oCAEAzgE,SACA,0BACA0hE,kCACAC,uCACAC,wCAEA96D,mBACAA,wBACAA,uBACAA,kBACA25D,CACA,CACAp9B,YACA,mDACAvyB,eACA,MACA2vD,KACA,YAMM,CACN,wDACAA,uBACA35D,8BACAA,wCACAA,4BACAA,sCACAA,gCACA,8BACA+6D,mBAA8Cr1D,KAC9C6zD,qBACAyB,uBACAh7D,qBACAA,qBACA0hC,GACA57B,UACArN,MACAwS,MACA4D,cACA9H,gBACAk0D,WACAC,WAEA,MA5BA,mBACAx5B,GACA57B,YA2BA9F,qBACAA,qBACA0hC,GACA1hC,yCAEAmY,eACA3E,sBAAmC+E,wCAEnC,CACA4iD,mBACA,qCACAvyC,oBACAA,oBACAA,mBACA,CACAwyC,wBACA,MAAWnC,mBAAgBj5D,MAChBs5D,4BAAyB9lD,GACzB07C,iDAA4Cv3B,OAC5Cl/B,SAAgB4iE,GAChBxsD,kBAAeoX,EAC1B,kBACA,oBACA8sB,SACA,YACAE,IACAC,MACAJ,QACAwoB,SAEAroB,MACAC,MACAJ,QACAwoB,QAEAC,MAGAroB,EADA,WACAsoB,kBACQ,YACRA,oBAEAx7D,YAEA,WACA8yC,KACAC,QACAE,MACAsoB,QAEAzoB,OACAC,QACAE,MACAsoB,OAEAD,MAEA,CAAYroB,gCACZ,CACA6B,iBACA,mBACA9oC,WACA,UACA,MACA,oCAQA,IAPA5D,4BACAwgB,sCACAA,wBACA6tC,kBACAgF,iBACA7yC,yBACAA,gBACA/uB,IAAkBA,MAAYA,EAC9B+uB,6CACAxgB,oBACAvO,UACAuO,2BAGA,CACA,CACAszD,yBACA,4BACAC,4BACWrH,qCAAiC9gD,EAC5CklD,iBACAkD,oBACAC,SAEAC,OADAxH,qCAEA,oBACA,SACAlrC,uBACA6+B,wBACA9+B,oBACA0K,eAEAizB,wBACAC,QACAn+B,mCACAA,iCACA0M,YACA1M,4BACAA,8BACA0M,WACA,KAAM,CACN1M,yFACAA,4BACAA,gCACAA,uCACA,4BACAmzC,mCACA7O,qBACAhqD,mCACA0lB,cACAA,iCACAiN,KACAp9B,IACAwS,IACAsO,IACAzc,IACAssB,WAEAR,SACAA,WACAA,8BACAA,cACAiN,KACAp9B,IACAwS,MACAsO,MACAzc,MACAssB,WAEAR,WAEAA,iCACAA,oBACAA,sBACAA,8BACAA,0BAEA,CACAA,mCACA,CACAozC,gBACA,MAAWvD,QAAMz4D,MACNi8D,+EAAwEzoD,EACnFklD,iBACA,mBACAwD,IACA,oCACAC,eACAvzC,kCACAxgB,QACA,EACAg0D,iBACA,sBAUA,IATAxzC,cACAA,wBACAA,gBACAxgB,iBACAwgB,wBACA1vB,sBACAgjE,iBACA,yBACA,EACAriE,iBAAoCA,QAAUA,IAU9C,IATAwiE,QACAC,2BACA1zC,cACA1vB,eACA8gE,WACAuC,eACAv8D,+BACAw8D,4BAEAvgE,iBAAuCA,OAAUA,EACjDkgE,SACAK,eAEAtjE,aACA,CACAgjE,IACAM,eACAtjE,qBACAkP,MACA,CACAq0D,kBACA,oBACAzwD,WACA,QACA,MACA,oCAQA,IAPA5D,6BACAA,uBACAwgB,uCACAA,wBACA+vC,mBACA/vC,0BACAA,gBACA/uB,IAAkBA,MAAYA,EAC9B+uB,6CACAxgB,iCAEA,CACA,CACAosC,wBACA,MAAWykB,mBAAgBj5D,MAChBvH,SAAM2P,GACNyG,kBAAe6tD,GACfxN,iDAA4Cv3B,mBACvD/O,8BACAA,4BACAA,0BACAA,cACAA,gBACA,WACA5oB,wBAEA4oB,kBACAA,kCACA,2BACA5oB,wBAEA4oB,oBACAA,sCACA,cACA5oB,wBAEA4oB,kBACAA,kCACA,0BACA5oB,wBAEA4oB,gBACAA,8BACAA,cACAA,SACApV,iBACAoV,UAEA,CACA+zC,0BACA,mBACArkD,mBACAskD,SACAC,SACA,SACA,mEACA,MACA,OAEA,8BACA9B,mBAA8Cr1D,cAC9C6zD,YACAhwC,eACAqzC,4BACA58D,qBACAA,qBACAA,mBACAA,qBACAA,gBACAA,gBACAA,yCAEA,CACA,CACA88D,cACA,oBACA,CACAjkD,QACA,mDACA,mBACA,MACA,OAEA7Y,+BACA,SACA6O,iBACA9H,oBAEAqB,GACA3P,SACAwS,UAEAnF,uBACA,sBAEA0N,YADAxT,0GAEA4oB,SACAA,gBACA5oB,6BACAm5B,sBACA/wB,WACApI,sBACAA,qBACAA,uBACAo5B,sBACAxQ,YAEA,CACAy3B,oBACA,uBACA,CACAC,uBACA,qBACAt2C,UAAwCopB,2BACxC,qCACA,MACA,qDAEA,OACAA,eACA/iB,kBACAtR,QACA,GAEAoZ,WACA4kD,8BACA5kD,QACAnY,eACAA,sBACAA,4BACAA,gBAEA,CACAg3D,sBACA,+BACA,SAEAh3D,4BACA,qBACAg9D,mBACAhzD,mCACA+yD,6BACA5kD,iBACA,WACAnY,gBACAwT,yBACAxT,qBACAvH,MACAwS,OAEAjL,oBAGAmY,CACA,CACAipC,4BACA,qBACA,uBACA,SAEA,MACA,SAEA,2DACA,kBACAp3C,YAEAA,CACA,CACAizD,sBACA,MAAWhC,6BAAyBj7D,KACpC0F,gCACA,gCACA,EAEAw3D,kBACA,IA+KArlB,kBACA9jB,eACAopC,cACAC,UACAC,UACAC,YACAC,SACAL,QAtLA,CACArnB,aACAwhB,YACAmG,eACAC,iBACAjqD,IACA+E,kBAAmCA,oBAEnC,EACAq0B,oBACAr0B,WACAA,uBAEA,EACA2rB,aACA3rB,WACAA,uBAEA,EACAmlD,aACA,kBACA,uBACA,SACA1Y,WAEA,+CACA,OAEAA,cACAzsC,qCACA,CACA,EACA++C,gBACA/+C,WAEAA,8BADA9B,SACAA,iBACAA,aAGA,EACAwlB,UACAz+B,WACAmgE,cACAj4D,mBACA8tB,kCACAoqC,kBACAnH,WACAtwC,eAEAs1C,eACAoC,oBACAC,kBACAC,iBACA9B,cACAvD,UACA,EACAsF,iBACAC,mBACAC,gBACAC,kBACAxF,YACAxyC,eAEAi4C,mBACA5xD,UACA6xD,eACA/E,YACAhwC,eACAgrC,iCACAE,gCACA8J,0BACA/B,iBACAgC,aACAzqC,4BACAD,cACApiB,WACA6vB,aACAr6B,uBAEA26B,YACAD,SACAhpC,cACA+oC,yDAEA57B,SACAmB,gBACAq6B,eAGA2jB,WACA6U,eACAjvB,SACA,eACA,aACA3F,sBACAs5B,eACA,qDACA,2BACY,WACZ,eACY,sBACZ,qBAEA,CACA,QACA,EACAzE,cACA0E,cACAC,eACAp4B,SACA,qDACA,uDAEA,0BACAA,IACAA,SAEA,yBACA,eACAA,MAEAA,CACA,EACAq4B,cAEA,QADAC,uCACAplC,iCACA,OACA1F,0BACAN,kCACAK,0BACAH,wBACAC,oCACAu5B,eAEA,EACA2R,iBACA,6BACA,EACAlD,mBAEA,QADAiD,uCACAplC,iCACA,OACAyuB,wBACA9+B,oBAEA,EACA21C,cACAC,aACAvE,gBACAC,UACAC,iBAGAtC,eACAM,gBACAC,kBACAlC,kBAEA3wC,aACAe,4DACAC,cACAm+B,WACAp+B,eACAC,eAEArV,WACAsV,cAEA6a,YACA7a,wBAGAi4C,0CA+BA,oBACAjmE,eACAozC,SACAnsC,wBACAA,mBACAA,oBACA,CACAyG,QACA,0BACA,aACA,yBACA,UAAkB1H,mBAAckgE,EAChC/5B,UACAA,cAGAllC,oBACA,CACAmsC,aACA,CACAvH,WACA,SACA,YAEA,yBACA,MA1BA,4CA4BAmH,CAFAhtC,0BAlCA,qBACA,qBACA,aAXA,aACA,oBACAA,cACAmgE,WAAyBngE,mBACrBiW,WACJjW,QAEAA,GAKAogE,UAGA9lE,IADA6rC,iBACAnmC,GACA,CA4BAqgE,gCACAl6B,WACA,CACAgJ,sBACA,MAAW52B,2BAAwBtX,qBACnC,IAASqX,aAAUrX,mBACnB,gCACAsX,IACAD,KAEAI,IACAgC,8BAGAzZ,WACAA,UACA,CACAquC,aACA,iBACA50B,WACAvN,sBACA4+B,KACA,uBACA5F,yCACAllC,8CACAA,mCACA,YAA0B1B,KAAcA,IACxCwsC,QAAkBxsC,UAElB,QACA,CACA8yC,oBACA,yBACA,wBACAlM,KAEA5mC,CACA,CACAg+B,YACA6P,kBACAnsC,sBACAA,yCAEA,CACAqxC,oBACA,2BACA/yC,iBAEA,2EACA,CACAizC,mBACA,mBACA,yBACA,KAEAvxC,iCACA,CACAsxC,oBACA,+EACA,CACAK,eACA,kBACA,EA6FA,iBAA+ChW,6BAC/C,cACA8mB,oCAEA,oBADA,oBAEA,CAhGA4c,iBACAA,aACAv0B,OACAtW,yCA8FA,oBACAz7B,eACAozC,SACAnsC,kBACAA,gBACAA,wBACAA,sBACAA,kBACA,CACA4kC,WAIA,OAHAlb,QAGA,wDACA,MAEAkd,CACA,CACA04B,yBACA,MAAWn1B,eAAanqC,cACbsX,2BAAwBtX,qBACnC,IAASqX,aAAUrX,KACnB,mBACAu/D,aACA,MACA,cACAC,QACAC,SACAF,KACQE,UACRC,IAEA,CACA,UACA,SACAjmD,0DACAvN,mBAEAqzD,OACAp1B,GACAu1B,MAEA,CACA1/D,WACAA,UACA,CACA2/D,eACA,2BACA,IACAC,GADSC,4BAAyB/yB,EAElC,UACA8yB,iDACAA,QACAtwD,uBAA+BtP,2BAA2B8/D,mCAA0CF,8BACpGA,SAGAA,0BACAC,SAEAA,IACAD,iBAEAA,CACA,CACAG,mBACA,+BACA,CACA1xB,aACA,qBACAvB,UACA,0BACA8yB,gBACA,MAcA90B,EAjLA,iBACA,YAES7Y,wFAA8E+tC,EACvFC,OACAC,OACS7oD,aAAsB8oD,EAC/B7oD,SACAG,SACA2oD,UACAC,eACA,IACAviC,YADAkM,kBAEA,mBACA,QAAa1rC,SAAY,CAAGA,UAE5BgiE,kCACAA,OACAt2B,kBAEAtgB,QACAoU,kBACAkM,sBAEA,aACAu2B,qBACAC,sBAEAD,KACAC,MAEAlpD,4BACAgpD,mCACAt2B,WACAu2B,KACAC,MACIJ,IACJG,UACAC,UACAF,OACAt2B,eAEAs2B,aAEAA,GADAjoC,4BACAt+B,eAEAA,eAGA,kBACA2+B,MACAA,QAEAoF,2BACAyiC,wBACAC,wBACA,SAcA,IAbAlpD,IACAmpD,WACA31B,QAAkBxsC,UAClBiiE,MACAtkE,KAEAo8B,8CACAp8B,MAEMskE,MACNtkE,MAGSA,QAAeA,GACxB6uC,QAAgBxsC,oCAEhB,oBACAwsC,+CACAA,sBAEAA,QAAkBxsC,YAEdmZ,YACJqzB,QAAgBxsC,WAEhBwsC,CACA,CA8FA41B,CAdA,CACAd,WACA3tC,gBACA5a,UACAoC,UACAknD,sBACAxtB,gBACAl8B,cACA2pD,4BACAjlC,+BACAoP,6BACA01B,oCAEAzgE,mBAEA,0BACAu4B,mBAEA9O,WACAqhB,YACA9qC,oBACAA,oBAEAA,oBACAA,mBAEA8qC,CACA,CACAxO,YACA,mBACA,eACA5iC,WAEA,GADAyyC,kBACAnsC,+BACA,uCACA4P,KACAlW,IACA,CACAsG,mBACAA,iBACAA,oBACA,CACAoxC,oBACA,gEACA,EAGA,oBACAlD,sBACA,MAAW72B,aAAUrX,mBACrBA,mBACAA,mBACAA,6BACA,CACA+/D,mBACA,4BACA/zD,2BACA++B,qCACA0X,oCACA5R,kCACA,+CACA,CACAQ,oBACA,kFACA,CACAC,oBACA,mEACA,EASA,eAEA,OADAuvB,kCACA,CACA,CAVAC,eACAA,aACAh2B,OACAtW,iCA8BA,oBACAz7B,eACAozC,SACAnsC,kBACAA,gBACAA,wBACAA,kBACA,CACA4kC,WACA,6CACA,SAIA,yBAHA5kC,aAIA,CACAkuC,sBACA,MAAW72B,aAAUrX,mBACrBA,kCACAA,kCACAA,2BACAA,eAEAA,6BACA,CACAs/D,yBACA,MAAWhoD,2BAAwBtX,qBACnC,eACAyZ,WACA,mBACA8lD,aACAwB,0CACA1pD,QACAA,MACAqoD,KACAH,QAEAG,WACAH,YAGAloD,MACAqoD,WAEAjmD,MACA8lD,UAEAv/D,8DACA0/D,WAEA1/D,WACAA,UACA,CACAquC,aACA,qBAKAvD,EAjFA,iBACA,8BACAk2B,kCACAl2B,KACA,mDACAi2B,oBACAE,+BACAN,iCACA,GACA71B,QAAgBxsC,wBAChB2iE,EACA,SACAA,MACAF,EACAJ,YAEAE,yCACIE,iBACJ,oBACA,eAAcziE,sBACdwsC,CACA,CA4DAo2B,CAJA,CACA7pD,kBACAoC,mBAEAzZ,MACA,0BACAu4B,mBAEA9O,WACAqhB,YACA9qC,oBACAA,oBAEAA,oBACAA,mBAEA8qC,CACA,CACAsG,oBACA,kBACA,IACA7Z,yDACA,CACA+E,YACA,iBACA6P,kBACAnsC,uBACAA,mCACA,CACAqxC,oBAIA,YAHA,gBACA/yC,YAEA,mBACA6iE,IAEAnhE,qCACA,GACAyU,yCACA,CACA68B,oBACA,mCACA,uDACA,EAYA,eACA,gBACA,yBACA,8BACA,oDACA,CACA,QACA,CACA,mBACA,oBACA,CACA/3B,mBACAzc,wBAEA,CACA,uBACA,oBACA,CACA8S,YACAlW,WAEIyb,SACJ,CACAvF,UACAlW,OAGA,CACAkW,QACAlW,QAEA,CAmCA,uBACA,8BACA+1C,wBACA,QACAxkC,IACAm2D,aACA3oE,kBACA4oE,yBACID,YACJ3oE,gBACA4oE,yBAEAC,aACAr2D,kBACAo2D,yBACIC,YACJr2D,gBACAo2D,wBAEA,CA2BA,eACA,sBACA,SACIlsD,MACJ,OAEA,OACA,CACA,mBACA,kBACA1c,KACI,eACJA,QAEAA,CACA,CACA,mBACA,uBACAwS,QACIkK,eACJlK,MAEAA,CACA,CA4CA,qBACA,MAAS2d,OAAKmd,EACd,KACAnd,sCACI,CACJ,8BACAA,kBACA,YAAoB/uB,IAAgBA,IACpC8vD,0BACA/gC,iBAEA,CACA,CAzMA24C,oBACAA,aACAz2B,OACAtW,mCACAgX,OACAhuC,cA8NA,oBACAzE,eACAozC,SACAnsC,oBACAA,oBACAA,wBACAA,qBACAA,wBACA,CACA8tC,gBACA,6CACAv0B,mCACAzc,sCACAkD,8CACAA,4CACAA,4CACA,CACAkuC,sBACA,MAAW72B,aAAUrX,mBACrBA,8BACAA,8BACAA,6BACA,CACA+/D,mBACA,mDACA,CACAvxB,sBACAgzB,6CACAxhE,mCACA7G,YACA,yDACA,uBAEAwD,8CACA,CACAyyC,MACA,qBACA3lB,iCA9NA,eACA,SACArrB,yBACA9D,2BACAlC,uBACAgC,8BAEAinE,mBAAiCI,GACjCxvB,KACAzlC,KACAk1D,wBACAC,wBACAC,6BACA,YAAkB/nE,IAAgBA,KAClC,gDACA2S,eACA,mDACAq1D,aACAC,gCACA7vB,OACA,iCACA98B,oBAGA4sD,SAFAC,oBACAA,qBAEA,CACAj8B,iBACA07B,QACAJ,QACAI,QACAJ,SAEAt7B,mBAsBA,mBACA,WACA27B,wBACAj4C,YACAw4C,UACAC,gBACAN,yCACA,YAAkB/nE,IAAgBA,KAClC,yCACAsb,iCACA8Q,OACAhb,gBACAsmB,QACA3iB,gBACA2H,QACA9d,MACAwS,IACAsmB,YACA3iB,OACAzC,MACAwC,YACAG,cAEA,CACA,QACA,CA/CAqzD,OACA,CA8LAC,OAEApiE,4BAEA,CACAqiE,wBACAriE,kCACAA,kCACAA,gEACA,CACAsiE,iBAGA,aAFApuD,kCAEAskB,GADAx4B,4BAEA,CACAuiE,iCACA,SACA,WAEA,6CACA,6BACAviE,eAEA1B,aACA,CACAkkE,iCACA,SACA,WAEA,iDACA,iDACA,CACAC,wBACA,8BACA,qBACA,aACA,OAjFA,mBACA,aACAn8B,QACAvnC,QACApG,mBAEA,CA2EA+pE,uBACA,CACA,CACAC,0BACA,mCACA,OACAlqE,6BACAwS,6BACAkK,QAEA,CACAq9C,8BACA,qEACA,CACAoQ,mBACA,8DACA,CACAC,yBACA,MAAWj0D,+BAA0B5O,yBACrC,OACA4O,OACAzC,MACAwC,QACAG,SAEA,CACA0lC,iBACA,MAAWhhB,wBAAwB81B,aAAWtpD,aAC9C,MACA,iBACA4oB,SACAA,cACAk6C,uFACAl6C,cACAA,cACAA,SACAA,WACA,CACA,CACA+rB,WACA,iBACAlrB,gBACW4/B,qBAAkB5/B,EAC7B+0C,2BACA,UAaA,GAZA/0C,uBAxMA,iBACA,MAASb,eAAe2gC,gBAAcxjB,EACtC,cAA+BlsC,KAAQA,KACvC,gDACAgoE,cACWppE,mDAA2CstC,uBAC3C4F,iBAAewI,EAC1B,WACA,2BACA3nC,wBACAoc,cACA,iBACAm6C,UACAC,eACAC,gBACA//D,iCACA0lB,cACAiN,KACAp9B,IACAwS,IACAsO,KACAzc,KACAssB,WAEAR,UAEAA,qBAEA,CACAgN,GACAhN,EACAmd,kBACAttC,EACAwS,iBACA42D,EACA,CACA3tC,cACA3C,YACAqiB,uBAGA,CACA,CA+JAsvB,SAEA74B,WACArqC,2BACA,QACAkM,8CAtJA,qBACA,cACAo9C,cACSp1B,qBAAkBivC,GAC3B7Z,qBAGA1gC,SACAA,gBACAA,cACAA,4BACAA,oCACAA,cACAk6C,YACAl6C,cACAA,WACAA,YACA,CAuIAw6C,MADA/4B,mCACAn+B,KACA,GAGAm9C,WAEA,IADAzgC,SACA/uB,MAA+BA,KAAQA,KACvC,oDACeq6B,qBAAkBigB,GACjC7J,QAGA1hB,cACAA,gBACAA,4BACAA,oCACA1c,wEACAxG,6BACAkjB,cACAA,oCACAA,kBACAA,WACA,CACAA,WACA,CACA,CACA2hB,cACAsK,aACA,iBACAprB,eACAqjB,UACA,cACA,OAEA,8BACA,QACAlkB,SACAA,uCACAA,YACAA,qBACAA,wBACA5oB,2BACA,qBACA,OAEA,yCACA6wC,aAEA,GADA3kC,0DACAioC,qBACAvrB,gBACA/Z,+BACA+Z,4BACA,8BACAA,YACA/Z,YACA3C,iBACA2C,UACAgiC,gBAEA,CACAjb,qBACA1B,eACO,GAEPtL,WACA,CACAksB,cAEAuuB,qBACAA,aACA/7D,WACAI,WACAhC,qBACA2jD,YACA/hD,WACAgjC,YACA5W,cACAC,oBAEA0W,MACAif,aAEAlvB,aACA0Q,OACAY,qBACAlX,gCAEA+0B,aACA5d,qBACAC,kBACAtkC,WACAkhB,MACAvC,SAEAuO,YACA8R,EAEA95B,UACA82D,uBAGAD,kBACA,iCACA,4BACA,uBAEAA,gBACAha,YACAtiC,mBAIA,UACAw8C,aAAgBC,4BAChBC,QAAWD,6BACXE,QAAWF,6BACXG,MAASH,8BACTI,KAAQJ,+BACRK,MAASL,+BACTM,OAAUN,gCACVO,SAAYP,+BACZQ,MAASR,wBAETS,mBACA,iBACA,UACA,CACA,iBACA,SACA,YAEA,oBACSC,+BAA2Bn+B,aACpC,QASA,MARA,uBACAznC,QAEAskC,QACAtkC,qBACA6lE,aACAA,YAEA,SACA,MAEAC,IACA9lE,6BAEA6lE,eADAA,2BAGA7lE,EACA,CACA,qBACA,kBACA,wBAAuCzE,QAAcA,GACrD,kBACAikC,0CACA,4CACA,YAEA,CACA,cACA,CAiBA,mBACA,MACA,GACIumC,UACJ,MAAWzuD,WAAQC,QAEnBi1B,EADAu5B,oBACA,CACA,OALAv5B,OAMA,CAcA,mBACA,WACA3xC,KACAoa,WACA,QACA,QAAc1Z,MAAUA,EACxByE,OACAnF,OACA2xC,QACAxsC,QACAktC,WAGA,gBA1BA,qBACA,mBACAnyC,2BACAC,sBACA,QACA,QAAsBkyC,KAAeA,gBACrCzsC,OACAA,OACA+rC,eAGA,QACA,CAcAw5B,WACA,CACA,oBACAvrE,eACAozC,SACAnsC,aACA0B,QACAwjC,UACAq/B,QAEAvkE,iBACAA,uBACAA,iBACAA,oBACAA,sBACA,CACAyG,UACA,4BACA09D,8CACAA,UACAxwD,iCACA3T,iBACAkkE,gBACAE,cACAI,yBAEAr4B,cACAnsC,6BACA,CACA4kC,WACA,kBACA,KAEAA,UACA,CACA+H,eACAR,qBACAnsC,aACA0B,QACAwjC,UACAq/B,OAEA,CACAr2B,sBACA,qBACAi2B,gBACAlE,qBACA,IAAS5oD,uCAAkCrX,qBAC3C,eACAsX,mBACAD,sBAEAI,mBACAgC,oBAEA,GACAnC,SACAmtD,2BACA,gDACAA,uBAGAptD,8CACAoC,8CACAzZ,yBACAA,wBACA,CACA0kE,kBACA,kCACA,+BACAjrD,2BACA,kBACApC,OACAoC,iBAEA,CAAYpC,YACZ,CACAg3B,aACA,qBACAs2B,SACA73B,UACAu3B,iEACA,+BACArkE,6BACAA,uCAEA,iBAEA8qC,SADA9qC,UAEA,sCACA4kE,0DA7IA,uBACA,sBAAiC/qE,iBAA6BA,KAC9D,cACA,6CACA,QAEA,CACA,4BACA,CAsIAgrE,6CACA7kE,qDAtIA,eACA,sCAA6DnG,MAAUA,EACvE,oBACA,YAGA,CAiIAirE,kBADA,EAEA9kE,oBACAwT,WACAs3B,YAEAi6B,0BACA,CACA71B,gBACAlvC,kCACAA,6CAEA,CACAglE,eACA,IAEA3rE,IAFAuW,IACAlW,IAEAsG,gCACA3G,gCAEAuW,EADA,aACA,KAEA5P,mCAEA1G,yCAEAI,EADA,aACAJ,GAEAA,6CAGA,0BACAsW,YACAlW,YACAsG,eAAqB4P,+BACrB,CACAq1D,YACA,sBACA5tD,WACAoC,WACAjG,eACAmxD,SACAp5B,sDACAu0B,mBACAoF,2BACAC,gBACAr6B,KACA,IACAs6B,IADA/rE,IAMA,GAJA8rE,IACA9rE,6BAEAA,0BACA8qE,oBACA,4EAEA,0DACA,YAAkCiB,IAAYA,oBAC9CC,UAEA,0CACAA,UAEAniE,0CACA,CACAkuC,oBACA,MACAuzB,oBACA,OAFA3kE,cAGAwhD,SADAmjB,gBACAA,gBAEAA,0BACA,CACAW,6BACA,qBACA/jB,wBACA0e,aACAsF,kBAEAC,UACAnkC,OAEAiF,6BADAi/B,iBACAC,EAJAvF,UAKAxvC,mBACA,6BACA,CACA+d,sBACA,UACA,mBAAqC30C,MAAUA,EAC/CwnC,OACAA,6CAEA,CACAokC,sBACA,oDACA,CACAp0B,oBACA,sBACApW,6BACA,oDACA,CACAqW,oBACA,sBACArW,4CACA,qCACA,CACAyqC,iBACA,2BACAC,gCACAxwD,sDACAywD,cACAC,cACAC,uCACA,OACAvsD,UACAzc,UAEA,CACAipE,qBACA,0BACAC,mBACAxkB,2BACAykB,+DACAhgD,wBACAigD,mEACA,cACA,CACAC,oBACA,IACAtsE,IADAwqE,uBAEA,YACA,SAEA,uCACA,8BACA,iEAEA,mBAAqCxqE,MAAUA,EAC/CwqE,qDAEA,yCACA,CACA+B,qBACA,+BACA,QACA,YACA,SAEA,yBACA,mBAAsCvsE,MAAUA,EAChDwqE,sBAEA,8DACA,CACAvyC,aACA,qBACA,EAsBA,mBACA,IAEAu0C,QAFAzwD,IACAD,aAEA5C,GACA/J,4BACQ4M,WAAQ2B,iBAEV0jB,cAAmCqrC,QACnCrrC,cAAmCqrC,QAEzCt9D,8BACQ4M,WAAQ2B,kBAEV6tD,cAAmCkB,QACnClB,cAAmCkB,OAEzC,YACA,0BACA,CAvCAC,aACAA,aACAt0C,cACAu0C,YACApB,MACAlB,UACAjE,QACAmE,SACAI,cACAiC,sBACAT,mBAEAl7B,OACAp3B,cACA83B,OACAhuC,cAyBA,oBACAzE,eACAozC,SACAnsC,eACAA,oBACAA,uBACA,CACAglE,cACA,sCACAsB,uCACAtmE,4BACAA,6CACAmsC,oBACA,CACAu6B,oBACA,MAAWrvD,aAAUrX,KACrBuW,KACA+vD,KACA,cACA,mBAA0CzsE,MAAUA,EACpDioD,OACAA,YACAvrC,UAGA,cACA,OACA,CAAS6uD,cACT,CAASA,eAGT,mBAAqCvrE,MAAUA,EAC/CuF,SACAC,SACAyiD,OACA/nD,yBACAusE,QAAoBlB,qBAGpB,QACA,CACAuB,yBACA,0BACA,YACA,SAEA,iCACArgC,4BACA,OACA+9B,EADA3iE,mBACA1B,4BAEA0B,aAEA2iE,oBACAA,CACA,CACAoB,sBACA,uDACA,CACAn0B,oBACA,sBACAG,4CACA,yDACA,EAEAm1B,mBACAA,wBAEA,sBACA7yC,eACAsrC,iBACAyB,eACAS,oBACA8B,qBACAkD,aACAK,qBAGA,gCACAC,eAAiBC,IACjBD,gBACAA,gBACAA,iBACAA,eACAA,oCACAA,wBACAA,cACAA,eACAA,iBACAA,cACAA,gBACAA,YACAA,YACA3jE,iCACA2jE,mBACAxuE,aACAA,iBAGAwuE,EAEA","names":["e","t","window","u","o","m","x","S","type","n","E","jquery","constructor","get","pushStack","each","map","slice","first","last","even","odd","eq","end","push","s","i","expando","Math","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","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","yt","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","I","TOUCH","O","A","originalEvent","relatedTarget","W","q","ft","ct","right","left","width","bottom","area","sort","instance","arrowStyles","attributes","flipped","passive","console","placement","onUpdate","modifiers","shift","order","start","forEach","Rt","preventOverflow","primary","secondary","priority","keepTogether","arrow","element","flip","kt","behavior","inner","boundaries","computeStyle","gpuAcceleration","applyStyle","onLoad","Vt","ut","isDestroyed","le","boundariesElement","backdrop","Ce","Se","Te","AUTO","animation","popperConfig","Ue","HIDE","Ve","clearTimeout","onCreate","He","delay","Ge","content","$e","Je","sn","ln","an","Cn","Sn","Tn","parseFloat","toDimension","len","reverse","fn","isObject","keys","v0","v1","klen","sval","ilen","options","merger","source","mergeIf","keyResolvers","obj","_getKeyResolver","tmp","isFunction","setsEqual","TAU","PITAU","INFINITY","RAD_PER_DEG","HALF_PI","QUARTER_PI","TWO_THIRDS_PI","log10","sign","range","fraction","niceRange","sqrt","result","isNaN","distanceFromYCenter","radialDistanceFromCenter","angle","distance","angleToStart","angleToEnd","startToAngle","endToAngle","cmp","mid","hi","lo","_lookup","_rlookupByKey","values","array","configurable","listeners","arrayEvents","base","object","res","items","Array","args","ticking","requestAnimFrame","timeout","_alignStartEnd","_textX","align","rtl","count","iScale","meta","axis","min","minDefined","_lookupByKey","animationsDisabled","maxDefined","_limitValue","pointCount","xScale","newRanges","xmin","xmax","ymin","ymax","_scaleRanges","changed","_notify","numSteps","anims","chart","initial","currentStep","_refresh","_update","item","draw","remaining","_getAnims","running","progress","charts","listen","hex","h1","h2","w","rgb","max","hueValue","X","U","P","F","J","names$1","OiceXe","antiquewEte","aqua","aquamarRe","azuY","beige","bisque","black","blanKedOmond","Xe","XeviTet","bPwn","burlywood","caMtXe","KartYuse","KocTate","cSO","cSnflowerXe","cSnsilk","crimson","cyan","xXe","xcyan","xgTMnPd","xWay","xgYF","xgYy","xkhaki","xmagFta","xTivegYF","xSange","xScEd","xYd","xsOmon","xsHgYF","xUXe","xUWay","xUgYy","xQe","xviTet","dAppRk","dApskyXe","dimWay","dimgYy","dodgerXe","fiYbrick","flSOwEte","foYstWAn","fuKsia","gaRsbSo","ghostwEte","gTd","gTMnPd","Way","gYF","gYFLw","gYy","honeyMw","hotpRk","RdianYd","Rdigo","ivSy","khaki","lavFMr","lavFMrXsh","lawngYF","NmoncEffon","ZXe","ZcSO","Zcyan","ZgTMnPdLw","ZWay","ZgYF","ZgYy","ZpRk","ZsOmon","ZsHgYF","ZskyXe","ZUWay","ZUgYy","ZstAlXe","ZLw","lime","limegYF","lRF","magFta","maPon","VaquamarRe","VXe","VScEd","VpurpN","VsHgYF","VUXe","VsprRggYF","VQe","VviTetYd","midnightXe","mRtcYam","mistyPse","moccasR","navajowEte","navy","Tdlace","Tive","TivedBb","Sange","SangeYd","ScEd","pOegTMnPd","pOegYF","pOeQe","pOeviTetYd","papayawEp","pHKpuff","peru","pRk","plum","powMrXe","purpN","YbeccapurpN","Yd","Psybrown","PyOXe","saddNbPwn","sOmon","sandybPwn","sHgYF","sHshell","siFna","silver","skyXe","UXe","UWay","UgYy","snow","sprRggYF","stAlXe","tan","teO","tEstN","tomato","viTet","JHt","wEte","wEtesmoke","Lw","LwgYF","to","from","rgbParse","p1","p2","hwb2rgb","hsv2rgb","hsl2rgb","hueParse","ret","hexParse","names","tkeys","ok","nk","unpacked","unpack","nameParse","valid","rgbString","b2n","hexString","isShort","alpha","hslString","mix","c2","w1","w2","c1","interpolate","interpolate$1","clearer","greyscale","opaquer","negate","lighten","darken","saturate","desaturate","rotate","index_esm","descriptors","node","family","size","lineHeight","weight","mode","intersect","includeInvisible","describe","override","route","targetScopeObject","privateName","valueOrDefault","_scriptable","_indexable","_fallback","interaction","valueInPixels","suffix","canvas","borderBox","paddings","borders","offsetX","box","useOffsetPos","getCanvasPosition","xOffset","yOffset","margins","maxWidth","maxHeight","containerSize","containerStyle","containerBorder","containerPadding","getContainerSize","deviceHeight","deviceWidth","matches","font","textWidth","gc","longest","ctx","thing","isArray","nestedThing","halfWidth","save","drawPointLegend","rotation","radius","rad","cornerRadius","point","stroke","opts","isNullOrUndef","setRenderOpts","line","decorateText","yDecoration","rect","defined","fallback","_cacheable","_scopes","_rootScopes","_getTarget","deleteProperty","scopes","_cached","createSubResolver","_resolveWithPrefixes","getOwnPropertyDescriptor","Reflect","getPrototypeOf","getKeysFromAllScopes","ownKeys","_proxy","_context","_subProxy","_stack","_descriptors","setContext","proxy","needsSubResolver","_resolveScriptable","_resolveArray","_resolveWithContext","scriptable","allKeys","indexable","isScriptable","isIndexable","allScopes","_createResolver","subGetTarget","resolveKeysFromAllScopes","parsed","getPoint","getValueAxis","current","d01","d12","s12","s01","fb","previous","pointsLen","deltaK","mK","pointAfter","pointBefore","pointCurrent","alphaK","betaK","squaredMagnitude","tauK","monotoneAdjust","vPixel","delta","indexAxis","iPixel","valueAxis","monotoneCompute","points","splineCurveMonotone","controlPoints","inAreaNext","inAreaPrev","inArea","capBezierPoints","elasticIn","elasticOut","effects","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","easeInSine","easeOutSine","easeInOutSine","easeInExpo","easeOutExpo","easeInOutExpo","easeInCirc","easeOutCirc","easeInOutCirc","easeInElastic","easeOutElastic","easeInOutElastic","atEdge","easeInBack","easeOutBack","easeInOutBack","easeInBounce","easeOutBounce","easeInOutBounce","cp2","formatter","intlCache","getNumberFormat","FONT_STYLE","objProps","read","string","cacheable","info","minmax","change","keepZero","rectX","setWidth","textAlign","xPlus","leftForLtr","getRightToLeftAdapter","original","between","compare","normalize","loop","property","bounds","propertyFn","segment","getSegment","inside","subStart","prevValue","segments","sub","spanGaps","findStartAndEnd","splitByStyles","solidSegments","baseStyle","_datasetIndex","prevStyle","p0","p0DataIndex","p1DataIndex","datasetIndex","styleChanged","addStyle","doSplitByStyles","backgroundColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","borderWidth","borderColor","__proto__","easingEffects","isPatternOrGradient","color","getHoverColor","uid","isFinite","finiteOrDefault","toPercentage","callback","_elementsEqual","_merger","_mergerIf","_deprecated","resolveObjectKey","_splitKey","_capitalize","_isClickEvent","toFontString","_measureText","_longestText","_alignPixel","clearCanvas","drawPoint","_isPointInArea","clipArea","unclipArea","_steppedLineTo","_bezierCurveTo","renderText","addRoundedRectPath","_filterBetween","listenArrayEvents","unlistenArrayEvents","_arrayUnique","_attachContext","_parseObjectDataRadialScale","splineCurve","_updateBezierControlPoints","_isDomSupported","_getParentNode","getStyle","getRelativePosition","getMaximumSize","retinaScale","supportsEventListenerOptions","readUsedSize","fontString","throttled","debounce","_toLeftRightCenter","_getStartAndCountOfVisiblePoints","_scaleRangesChanged","_pointInLine","_steppedInterpolation","_bezierInterpolation","formatNumber","toLineHeight","_readValueToProps","toTRBL","toTRBLCorners","toPadding","toFont","resolve","_addGrace","createContext","PI","niceNum","_factorize","isNumber","almostEquals","almostWhole","_setMinAndMaxByKey","toRadians","toDegrees","_decimalPlaces","getAngleFromPoint","distanceBetweenPoints","_angleDiff","_normalizeAngle","_angleBetween","_int16Range","_isBetween","getRtlAdapter","overrideTextDirection","restoreTextDirection","_boundSegment","_boundSegments","_computeSegments","controller","metaset","metasets","binarySearch","handler","evaluateInteractionItems","useY","deltaY","getDistanceMetricForAxis","inRange","minDistance","getNearestCartesianItems","startAngle","getNearestRadialItems","rangeMethod","intersectsItem","modes","getIntersectItems","getNearestItems","elements","dataset","useFinalPosition","nearest","getAxisItems","maxPadding","pos","layout","chartArea","stack","updateMaxPadding","newHeight","widthChanged","heightChanged","same","marginForPositions","horizontal","getMargins","updateDims","refit","refitBoxes","setBoxDims","defaults","autoPadding","addBox","z","removeBox","configure","update","availableWidth","availableHeight","boxes","layoutBoxes","stackWeight","wrapBoxes","fullSize","centerHorizontal","centerVertical","leftAndTop","rightAndBottom","vertical","buildLayoutBoxes","verticalBoxes","horizontalBoxes","params","outerWidth","outerHeight","vBoxMaxWidth","hBoxMaxHeight","stacks","buildStacks","factor","setLayoutDims","fitBoxes","updatePos","handleMaxPadding","placeBoxes","acquireContext","releaseContext","addEventListener","removeEventListener","getDevicePixelRatio","isAttached","updateConfig","config","EVENT_TYPES","touchstart","touchmove","touchend","pointerenter","pointerdown","pointermove","pointerup","pointerleave","pointerout","isNullOrEmpty","eventListenerOptions","observer","listener","childList","dpr","oldDevicePixelRatio","drpListeningCharts","resize","container","listenDevicePixelRatioChanges","unlistenDevicePixelRatioChanges","native","fromNativeEvent","addListener","renderHeight","renderWidth","initCanvas","context","attach","proxies","BasicPlatform","DomPlatform","_detectPlatform","BasePlatform","interpolators","boolean","number","elapsed","remain","cancel","tick","duration","wait","promises","colors","properties","numbers","animations","visible","resolved","animatedProps","_animateOptions","$shared","resolveTargetOptions","anim","awaitAll","_createAnimations","props","date","cfg","animator","singleMode","otherValue","isNumberFinite","iAxis","vAxis","indexScale","valueScale","getStackKey","cloneIfNotShared","cached","initialize","updateIndex","clearStacks","linkScales","chooseId","xid","yid","rid","iid","vid","getDataset","getMeta","getScaleForId","_getOtherScale","reset","_destroy","_dataCheck","adata","convertObjectDataToArray","addElements","buildOrUpdateElements","stackChanged","updateStacks","scopeKeys","parse","_cachedMeta","sorted","isNotInOrderComparedToPrev","_stacked","parsePrimitiveData","labels","singleScale","parseArrayData","parseObjectData","xAxisKey","getParsed","getDataElement","applyStack","updateRangeFromParsed","getMinMax","_parsed","otherScale","createStack","scale","getUserBounds","_skip","getAllParsedValues","getMaxOverflow","getLabelAndValue","vScale","label","toClip","defaultClip","drawActiveElementsOnTop","getContext","dataIndex","raw","createDataContext","createDatasetContext","resolveDatasetElementOptions","resolveDataElementOptions","_resolveElementOptions","cacheKey","sharing","prefixes","elementType","_resolveAnimations","transition","getSharedOptions","includeOptions","_getSharedOptions","previouslySharedOptions","sharedOptions","updateElement","isDirectUpdateMode","updateSharedOptions","_setStyle","removeHoverStyle","setHoverStyle","_removeDatasetHoverStyle","_setDatasetHoverStyle","_resyncElements","numData","_insertElements","arr","move","resetNewElements","updateElements","_removeElements","_sync","_onDataPush","_onDataPop","_onDataShift","_onDataSplice","newCount","_onDataUnshift","DatasetController","tooltipPosition","hasValue","getProps","Element","numeric","maxTick","notation","calculateDelta","numDecimal","logarithmic","formatters","spacing","majorEnd","newTicks","beginAtZero","grace","grid","lineWidth","drawBorder","drawOnChartArea","drawTicks","tickLength","tickWidth","tickColor","title","ticks","minRotation","maxRotation","mirror","textStrokeWidth","textStrokeColor","autoSkip","autoSkipPadding","labelOffset","minor","major","crossAlign","showLabelBackdrop","backdropColor","backdropPadding","offsetFromEdge","increment","validIndex","epsilon","lineValue","reverseAlign","super","_userMin","_userMax","_suggestedMin","_suggestedMax","getPadding","getTicks","getLabels","beforeLayout","beforeUpdate","sampleSize","tickOpts","ticksLimit","determineMaxTicks","majorIndices","getMajorIndices","numMajorIndices","skipMajors","getEvenSpacing","calculateSpacing","skip","samplingEnabled","startPixel","reversePixels","endPixel","afterUpdate","beforeSetDimensions","setDimensions","afterSetDimensions","_callHooks","beforeDataLimits","determineDataLimits","afterDataLimits","beforeBuildTicks","buildTicks","afterBuildTicks","beforeTickToLabelConversion","generateTickLabels","afterTickToLabelConversion","beforeCalculateLabelRotation","calculateLabelRotation","numTicks","labelRotation","maxLabelWidth","maxLabelHeight","maxLabelDiagonal","afterCalculateLabelRotation","afterAutoSkip","beforeFit","fit","isHorizontal","minSize","tickPadding","angleRadians","cos","sin","_calculatePadding","isRotated","labelsBelowTicks","offsetRight","paddingRight","paddingLeft","paddingBottom","paddingTop","_handleMargins","afterFit","isFullSize","_convertTicksToLabels","_getLabelSizes","_computeLabelSizes","widths","heights","widestLabelSize","highestLabelSize","tickFont","nestedLabel","gcLen","garbageCollect","highest","valueAt","widest","getLabelForValue","getPixelForValue","getValueForPixel","getPixelForTick","getPixelForDecimal","decimal","getDecimalForPixel","getBasePixel","getBaseValue","createTickContext","createScaleContext","_tickSize","rot","labelSizes","_isVisible","_computeGridLineItems","ticksLength","tl","borderOpts","axisWidth","axisHalfWidth","alignBorderValue","tx1","borderValue","ty1","ty2","y1","y2","tx2","x1","x2","step","lineColor","tickBorderDash","tickBorderDashOffset","alignedLineValue","_computeLabelItems","optionTicks","tickAndPadding","hTickAndPadding","textBaseline","pixel","lineCount","strokeColor","strokeWidth","tickTextAlign","textOffset","optsAtIndex","translation","_getXAxisLabelAlignment","_getYAxisLabelAlignment","_computeLabelArea","drawBackground","getLineWidthForValue","findIndex","drawGrid","drawLine","drawLabels","drawTitle","titleX","titleY","titleArgs","_layers","tz","gz","getMatchingVisibleMetas","axisID","_resolveTickFontOptions","_maxDigits","isForType","register","isIChartComponent","parentScope","id","scope","sourceName","sourceScope","parts","targetName","targetScope","routeDefaults","registerDefaults","unregister","overrides","addControllers","addPlugins","addScales","getController","getElement","getPlugin","getScale","removeControllers","removeElements","removePlugins","removeScales","_each","typedRegistry","_exec","registry","_getRegistryForType","_get","notify","plugin","invalidate","_createDescriptors","plugins","localIds","allPlugins","createDescriptors","_notifyStateChanges","diff","scaleOptions","axisFromPosition","scales","configScales","chartIndexAxis","firstIDs","defaultId","getDefaultScaleIDFromAxis","defaultScaleOptions","scaleConf","getAxisFromDefaultScaleID","mergeScaleConfig","datasets","keysCached","keyCache","initOptions","initConfig","platform","clearCache","datasetScopeKeys","datasetType","datasetAnimationScopeKeys","datasetElementScopeKeys","pluginScopeKeys","_cachedScopes","_scopeCache","getOptionScopes","keyLists","mainScope","chartOptionScopes","resolveNamedOptions","resolver","getResolver","needContext","createResolver","resolverCache","subPrefixes","KNOWN_POSITIONS","animationOptions","getChart","initialCanvas","existingChart","instances","aspectRatio","maintainAspectRatio","_aspectRatio","_initialize","clear","_resize","newSize","newRatio","ensureScalesHaveIDs","axisOptions","buildOrUpdateScales","scaleOpts","updated","isRadial","dposition","dtype","scaleType","hasUpdated","layouts","_updateMetasets","numMeta","_removeUnreferencedMetasets","_metasets","buildOrUpdateControllers","datasetElementType","dataElementType","newControllers","_resetElements","animsDisabled","minPadding","_active","_lastEvent","_updateScales","_checkEventBindings","existingEvents","newEvents","_updateHiddenIndices","_hiddenIndices","changes","method","moveNumericKeys","_getUniformDataChanges","makeSet","_dataChanges","changeSet","_updateLayout","cancelable","noArea","_updateDatasets","_updateDataset","render","onAnimationsComplete","layers","_getSortedDatasetMetas","filterVisible","getSortedVisibleDatasetMetas","_drawDatasets","_drawDataset","clip","useClip","isPointInArea","getElementsAtEventForMode","getDatasetMeta","hidden","xAxisID","yAxisID","_dataset","_sorted","getVisibleDatasetCount","isDatasetVisible","setDatasetVisibility","toggleDataVisibility","getDataVisibility","_updateVisibility","_destroyDatasetMeta","_stop","destroy","toBase64Image","bindEvents","bindUserEvents","_add","bindResponsiveEvents","_remove","detached","attached","unbindEvents","updateHoverStyle","getActiveElements","setActiveElements","notifyPlugins","_updateHoverStyles","deactivated","activated","_eventHandler","event","replay","inChartArea","eventFilter","_handleEvent","isClick","lastEvent","determineLastEvent","_getActiveElements","version","invalidatePlugins","formats","format","startOf","endOf","DateAdapter","_date","getAllScaleValues","curr","updateMinAndPrev","endValue","barEnd","barStart","parseFloatBar","entry","borderProps","edge","swap","inflateAmount","ratio","iAxisKey","vAxisKey","custom","ruler","vpixels","ipixels","enableBorderRadius","setBorderSkipped","setInflateAmount","_getStacks","stacked","skipNull","_getStackCount","_getStackIndex","_getRuler","pixels","barThickness","stackCount","grouped","_calculateBarValuePixels","actualBase","floating","head","barSign","center","_calculateBarIndexPixels","maxBarThickness","chunk","computeFlexCategoryTraits","computeFitCategoryTraits","stackIndex","rects","BarController","categoryPercentage","barPercentage","_index_","_value_","BubbleController","tooltip","callbacks","getter","_getRotation","_getCircumference","_getRotationExtents","circumference","arcs","maxSize","cutout","chartWeight","ratioX","ratioY","offsetY","endAngle","startX","startY","endX","endY","calcMax","calcMin","maxX","maxY","minX","minY","getRatioAndOffset","maxRadius","outerRadius","radiusLength","_circumference","centerX","centerY","animateScale","innerRadius","arc","calculateTotal","metaData","total","calculateCircumference","getMaxBorderWidth","getMaxOffset","_getRingWeightOffset","ringWeightOffset","_getRingWeight","_getVisibleDatasetWeightTotal","DoughnutController","animateRotate","legend","generateLabels","pointStyle","fillStyle","strokeStyle","onClick","dataLabel","animated","maxGapLength","directUpdate","nullData","prevParsed","border","lastPoint","LineController","showLine","_updateRadius","animationOpts","datasetStartAngle","countVisibleElements","_computeAngle","PolarAreaController","angleLines","circular","pointLabels","PieController","_loop","_fullLoop","pointPosition","RadarController","fill","firstOpts","ScatterController","angleMargin","avNogSpacingRadius","innerR","spacingOffset","angleOffset","outerStart","toRadiusCorners","halfThickness","innerLimit","computeOuterLimit","outerEnd","innerStart","innerEnd","parseBorderRadius$1","outerStartAdjustedRadius","outerEndAdjustedRadius","outerStartAdjustedAngle","outerEndAdjustedAngle","innerStartAdjustedRadius","innerEndAdjustedRadius","innerStartAdjustedAngle","innerEndAdjustedAngle","outerStartY","outerEndY","rAdjust","betweenAngles","withinRadius","getCenterPoint","halfAngle","halfRadius","radiusOffset","fullCircles","pathArc","drawArc","clipArc","drawFullCircleBorders","paramsStart","pathVars","lineMethod","lineTo","getLineMethod","avgX","countX","drawX","truncX","prevX","lastY","pathSegment","ArcElement","borderAlign","borderRadius","updateControlPoints","_interpolate","_getInterpolationMethod","interpolated","_getSegmentMethod","path","segmentMethod","usePath2D","setStyle","strokePathWithCache","strokePathDirect","el","LineElement","cubicInterpolationMode","stepped","tension","inXRange","inYRange","getRange","bar","half","skipY","skipX","getBarBounds","PointElement","hitRadius","hoverBorderWidth","hoverRadius","parseBorderWidth","maxR","enableBorder","topLeft","topRight","bottomLeft","bottomRight","parseBorderRadius","outer","boundingRects","addRectPath","hasRadius","BarElement","borderSkipped","cleanDecimatedDataset","algorithm","beforeElementsUpdate","cleanDecimatedData","decimated","getStartAndCountOfVisiblePointsSimplified","bucketWidth","avgY","avgRangeEnd","avgRangeLength","rangeTo","maxArea","pointAx","maxAreaPoint","nextA","lttbDecimation","xMin","dx","minIndex","maxIndex","intermediateIndex2","intermediateIndex1","minMaxDecimation","boundary","linePoints","_pointsFromSegments","sources","visited","fillOption","parseFillOption","decodeTargetIndex","findPoint","postponed","firstValue","lastValue","getLineByIndex","sourcePoints","linesBelow","metas","below","getLinesBelow","addPointsBelow","_buildStackLine","getPointPositionForValue","startValue","_getTargetValue","computeCircularBoundary","_getTargetPixel","computeLinearBoundary","computeBoundary","_createBoundaryLine","lineOpts","above","clipVertical","doFill","lineLoop","firstPoint","tpoints","fillSources","_segments","src","notShape","clipBounds","interpolatedLineTo","interpolatedPoint","afterDatasetsUpdate","beforeDraw","_drawfill","beforeDatasetsDraw","_shouldApplyFill","beforeDatasetDraw","propagate","drawTime","boxHeight","labelOpts","boxWidth","itemHeight","buildLabels","legendItems","labelFont","fontSize","titleHeight","getBoxSize","_fitRows","hitboxes","lineWidths","totalHeight","row","_fitCols","columnSizes","heightLimit","currentColWidth","currentColHeight","col","totalWidth","adjustHitBoxes","legendHitBoxes","rtlHelper","hitbox","_draw","defaultColor","halfFontSize","cursor","xBoxLeft","drawLegendBox","strikethrough","fillText","titleOpts","titleFont","titlePadding","topPaddingPlusHalfFontSize","_computeTitleHeight","_getLegendItemAt","lh","hitBox","handleEvent","isListened","sameItem","itemsEqual","hoveredItem","_element","afterEvent","ci","legendItem","onHover","onLeave","usePointStyle","fontColor","lineCap","lineDash","lineDashOffset","lineJoin","_drawArgs","fontOpts","createTitle","defaultRoutes","average","nearestElement","str","formattedValue","body","bodyFont","footerFont","titleLineCount","footerLineCount","bodyLineItemCount","combinedBodyLength","widthPadding","xAlign","caret","doesNotFitWithAlign","determineYAlign","yAlign","caretSize","alignment","paddingAndSize","alignX","alignY","tooltipItems","createTooltipContext","getTitle","beforeTitle","afterTitle","lines","getBeforeBody","getBody","bodyItems","scoped","pushOrConcat","getAfterBody","getFooter","beforeFooter","footer","afterFooter","_createItems","labelColors","labelPointStyles","labelTextColors","positionAndSize","backgroundPoint","caretX","caretY","drawCaret","getCaretPosition","tooltipPoint","y3","x3","ptX","titleSpacing","_drawColorBox","labelPointStyle","colorX","rtlColorX","colorY","innerX","drawBody","bodySpacing","xLinePadding","fillLineOfText","bodyAlignForCalculation","bodyItem","textColor","displayColors","bodyLineHeight","drawFooter","tooltipSize","_updateAnimationTarget","animX","animY","_willRender","positionChanged","lastActive","_positionChanged","Tooltip","Decimation","Filler","Legend","SubTitle","Title","positioners","afterInit","afterDraw","external","titleColor","titleMarginBottom","titleAlign","bodyColor","bodyAlign","footerColor","footerSpacing","footerMarginTop","footerAlign","caretPadding","multiKeyBackground","boxPadding","labelCount","beforeBody","beforeLabel","labelColor","tooltipItem","labelTextColor","afterLabel","afterBody","additionalOptionScopes","added","addedLabels","addIfString","findOrAddLabel","CategoryScale","handleTickRangeOptions","setMax","maxSign","minSign","setMin","getTickLimit","maxTicks","maxTicksLimit","stepSize","computeTickLimit","generationOptions","unit","maxSpaces","dataRange","countDefined","minSpacing","numSpaces","niceMin","niceMax","includeBounds","generateTicks$1","precision","maxDigits","tickVal","LinearScale","exp","endSignificand","significand","generateTicks","NaN","hLimits","limits","vLimits","LogarithmicScale","LinearScaleBase","orig","valueCount","pointLabelOpts","additionalAngle","plFont","textSize","updateLimits","determineLimits","extra","outerDistance","buildPointLabelItems","fitWithPointLabels","setCenterPoint","getIndexAngle","getDistanceFromCenterForValue","getValueForDistanceFromCenter","getPointLabelContext","createPointLabelContext","getPointPosition","getBasePosition","getPointLabelPosition","pathRadiusLine","backdropTop","backdropWidth","backdropHeight","drawPointLabels","gridLineOpts","drawRadiusLine","RadialLinearScale","centerPointLabels","millisecond","common","second","minute","hour","day","week","month","quarter","year","UNITS","parser","adapter","round","timestamps","setMajorTicks","all","isoWeekday","_applyBounds","_getLabelBounds","timeOpts","determineUnitForAutoTicks","determineUnitForFormatting","determineMajorUnit","ticksFromTimestamps","initOffsets","_generate","weekday","hasWeekday","time","addTick","_tickFormatFunction","majorUnit","majorFormat","getDecimalForValue","_getLabelSize","tickLabelWidth","cosRotation","sinRotation","tickFontSize","_getLabelCapacity","displayFormats","exampleLabel","capacity","getDataTimestamps","getLabelTimestamps","prevSource","table","TimeScale","adapters","minUnit","buildLookupTable","_getTimestampsForTable","TimeSeriesScale","Chart","helpers"],"sourceRoot":"webpack:///","sources":["node_modules\\jquery\\dist\\jquery.min.js","node_modules\\bootstrap\\dist\\js\\bootstrap.bundle.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\")}};u.jQueryDetection(),i.default.fn.emulateTransitionEnd=function(t){var e=this,n=!1;return i.default(this).one(u.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||u.triggerTransitionEnd(e)}),t),this},i.default.event.special[u.TRANSITION_END]={bindType:l,delegateType:l,handle:function(t){if(i.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var f=\"bs.alert\",d=i.default.fn.alert,c=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(){i.default.removeData(this._element,f),this._element=null},e._getRootElement=function(t){var e=u.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=i.default(t).closest(\".alert\")[0]),n},e._triggerCloseEvent=function(t){var e=i.default.Event(\"close.bs.alert\");return i.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(i.default(t).removeClass(\"show\"),i.default(t).hasClass(\"fade\")){var n=u.getTransitionDurationFromElement(t);i.default(t).one(u.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){i.default(t).detach().trigger(\"closed.bs.alert\").remove()},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(f);o||(o=new t(this),n.data(f,o)),\"close\"===e&&o[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},r(t,null,[{key:\"VERSION\",get:function(){return\"4.6.2\"}}]),t}();i.default(document).on(\"click.bs.alert.data-api\",'[data-dismiss=\"alert\"]',c._handleDismiss(new c)),i.default.fn.alert=c._jQueryInterface,i.default.fn.alert.Constructor=c,i.default.fn.alert.noConflict=function(){return i.default.fn.alert=d,c._jQueryInterface};var h=\"bs.button\",p=i.default.fn.button,m=\"active\",g='[data-toggle^=\"button\"]',_='input:not([type=\"hidden\"])',v=\".btn\",b=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=i.default(this._element).closest('[data-toggle=\"buttons\"]')[0];if(n){var o=this._element.querySelector(_);if(o){if(\"radio\"===o.type)if(o.checked&&this._element.classList.contains(m))t=!1;else{var r=n.querySelector(\".active\");r&&i.default(r).removeClass(m)}t&&(\"checkbox\"!==o.type&&\"radio\"!==o.type||(o.checked=!this._element.classList.contains(m)),this.shouldAvoidTriggerChange||i.default(o).trigger(\"change\")),o.focus(),e=!1}}this._element.hasAttribute(\"disabled\")||this._element.classList.contains(\"disabled\")||(e&&this._element.setAttribute(\"aria-pressed\",!this._element.classList.contains(m)),t&&i.default(this._element).toggleClass(m))},e.dispose=function(){i.default.removeData(this._element,h),this._element=null},t._jQueryInterface=function(e,n){return this.each((function(){var o=i.default(this),r=o.data(h);r||(r=new t(this),o.data(h,r)),r.shouldAvoidTriggerChange=n,\"toggle\"===e&&r[e]()}))},r(t,null,[{key:\"VERSION\",get:function(){return\"4.6.2\"}}]),t}();i.default(document).on(\"click.bs.button.data-api\",g,(function(t){var e=t.target,n=e;if(i.default(e).hasClass(\"btn\")||(e=i.default(e).closest(v)[0]),!e||e.hasAttribute(\"disabled\")||e.classList.contains(\"disabled\"))t.preventDefault();else{var o=e.querySelector(_);if(o&&(o.hasAttribute(\"disabled\")||o.classList.contains(\"disabled\")))return void t.preventDefault();\"INPUT\"!==n.tagName&&\"LABEL\"===e.tagName||b._jQueryInterface.call(i.default(e),\"toggle\",\"INPUT\"===n.tagName)}})).on(\"focus.bs.button.data-api blur.bs.button.data-api\",g,(function(t){var e=i.default(t.target).closest(v)[0];i.default(e).toggleClass(\"focus\",/^focus(in)?$/.test(t.type))})),i.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(C)},e.nextWhenVisible=function(){var t=i.default(this._element);!document.hidden&&t.is(\":visible\")&&\"hidden\"!==t.css(\"visibility\")&&this.next()},e.prev=function(){this._isSliding||this._slide(S)},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(\".carousel-item-next, .carousel-item-prev\")&&(u.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(D);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)i.default(this._element).one(N,(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var o=t>n?C:S;this._slide(o,this._items[t])}},e.dispose=function(){i.default(this._element).off(\".bs.carousel\"),i.default.removeData(this._element,E),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=a({},A,t),u.typeCheckConfig(y,t,k),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&&i.default(this._element).on(\"keydown.bs.carousel\",(function(e){return t._keydown(e)})),\"hover\"===this._config.pause&&i.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&&I[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t._pointerEvent&&I[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))};i.default(this._element.querySelectorAll(\".carousel-item img\")).on(\"dragstart.bs.carousel\",(function(t){return t.preventDefault()})),this._pointerEvent?(i.default(this._element).on(\"pointerdown.bs.carousel\",(function(t){return e(t)})),i.default(this._element).on(\"pointerup.bs.carousel\",(function(t){return n(t)})),this._element.classList.add(\"pointer-event\")):(i.default(this._element).on(\"touchstart.bs.carousel\",(function(t){return e(t)})),i.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)})),i.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===C,i=t===S,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var a=(o+(t===S?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),o=this._getItemIndex(this._element.querySelector(D)),r=i.default.Event(\"slide.bs.carousel\",{relatedTarget:t,direction:e,from:o,to:n});return i.default(this._element).trigger(r),r},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(\".active\"));i.default(e).removeClass(T);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&i.default(n).addClass(T)}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(D);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,o,r,a=this,s=this._element.querySelector(D),l=this._getItemIndex(s),f=e||s&&this._getItemByDirection(t,s),d=this._getItemIndex(f),c=Boolean(this._interval);if(t===C?(n=\"carousel-item-left\",o=\"carousel-item-next\",r=\"left\"):(n=\"carousel-item-right\",o=\"carousel-item-prev\",r=\"right\"),f&&i.default(f).hasClass(T))this._isSliding=!1;else if(!this._triggerSlideEvent(f,r).isDefaultPrevented()&&s&&f){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(f),this._activeElement=f;var h=i.default.Event(N,{relatedTarget:f,direction:r,from:l,to:d});if(i.default(this._element).hasClass(\"slide\")){i.default(f).addClass(o),u.reflow(f),i.default(s).addClass(n),i.default(f).addClass(n);var p=u.getTransitionDurationFromElement(s);i.default(s).one(u.TRANSITION_END,(function(){i.default(f).removeClass(n+\" \"+o).addClass(T),i.default(s).removeClass(\"active \"+o+\" \"+n),a._isSliding=!1,setTimeout((function(){return i.default(a._element).trigger(h)}),0)})).emulateTransitionEnd(p)}else i.default(s).removeClass(T),i.default(f).addClass(T),this._isSliding=!1,i.default(this._element).trigger(h);c&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(E),o=a({},A,i.default(this).data());\"object\"==typeof e&&(o=a({},o,e));var r=\"string\"==typeof e?e:o.slide;if(n||(n=new t(this,o),i.default(this).data(E,n)),\"number\"==typeof e)n.to(e);else if(\"string\"==typeof r){if(\"undefined\"==typeof n[r])throw new TypeError('No method named \"'+r+'\"');n[r]()}else o.interval&&o.ride&&(n.pause(),n.cycle())}))},t._dataApiClickHandler=function(e){var n=u.getSelectorFromElement(this);if(n){var o=i.default(n)[0];if(o&&i.default(o).hasClass(\"carousel\")){var r=a({},i.default(o).data(),i.default(this).data()),s=this.getAttribute(\"data-slide-to\");s&&(r.interval=!1),t._jQueryInterface.call(i.default(o),r),s&&i.default(o).data(E).to(s),e.preventDefault()}}},r(t,null,[{key:\"VERSION\",get:function(){return\"4.6.2\"}},{key:\"Default\",get:function(){return A}}]),t}();i.default(document).on(\"click.bs.carousel.data-api\",\"[data-slide], [data-slide-to]\",O._dataApiClickHandler),i.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=a,this._triggerArray.push(r))}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(){i.default(this._element).hasClass(P)?this.hide():this.show()},e.show=function(){var e,n,o=this;if(!(this._isTransitioning||i.default(this._element).hasClass(P)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(\".show, .collapsing\")).filter((function(t){return\"string\"==typeof o._config.parent?t.getAttribute(\"data-parent\")===o._config.parent:t.classList.contains(F)}))).length&&(e=null),e&&(n=i.default(e).not(this._selector).data(j))&&n._isTransitioning))){var r=i.default.Event(\"show.bs.collapse\");if(i.default(this._element).trigger(r),!r.isDefaultPrevented()){e&&(t._jQueryInterface.call(i.default(e).not(this._selector),\"hide\"),n||i.default(e).data(j,null));var a=this._getDimension();i.default(this._element).removeClass(F).addClass(R),this._element.style[a]=0,this._triggerArray.length&&i.default(this._triggerArray).removeClass(B).attr(\"aria-expanded\",!0),this.setTransitioning(!0);var s=\"scroll\"+(a[0].toUpperCase()+a.slice(1)),l=u.getTransitionDurationFromElement(this._element);i.default(this._element).one(u.TRANSITION_END,(function(){i.default(o._element).removeClass(R).addClass(\"collapse show\"),o._element.style[a]=\"\",o.setTransitioning(!1),i.default(o._element).trigger(\"shown.bs.collapse\")})).emulateTransitionEnd(l),this._element.style[a]=this._element[s]+\"px\"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&i.default(this._element).hasClass(P)){var e=i.default.Event(\"hide.bs.collapse\");if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+\"px\",u.reflow(this._element),i.default(this._element).addClass(R).removeClass(\"collapse show\");var o=this._triggerArray.length;if(o>0)for(var r=0;r=0)return 1;return 0}(),Y=U&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),V))}};function z(t){return t&&\"[object Function]\"==={}.toString.call(t)}function K(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function X(t){return\"HTML\"===t.nodeName?t:t.parentNode||t.host}function G(t){if(!t)return document.body;switch(t.nodeName){case\"HTML\":case\"BODY\":return t.ownerDocument.body;case\"#document\":return t.body}var e=K(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:G(X(t))}function $(t){return t&&t.referenceNode?t.referenceNode:t}var J=U&&!(!window.MSInputMethodContext||!document.documentMode),Z=U&&/MSIE 10/.test(navigator.userAgent);function tt(t){return 11===t?J:10===t?Z:J||Z}function et(t){if(!t)return document.documentElement;for(var e=tt(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&\"BODY\"!==i&&\"HTML\"!==i?-1!==[\"TH\",\"TD\",\"TABLE\"].indexOf(n.nodeName)&&\"static\"===K(n,\"position\")?et(n):n:t?t.ownerDocument.documentElement:document.documentElement}function nt(t){return null!==t.parentNode?nt(t.parentNode):t}function it(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var a,s,l=r.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return\"BODY\"===(s=(a=l).nodeName)||\"HTML\"!==s&&et(a.firstElementChild)!==a?et(l):l;var u=nt(t);return u.host?it(u.host,e):it(t,nt(e).host)}function ot(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"top\",n=\"top\"===e?\"scrollTop\":\"scrollLeft\",i=t.nodeName;if(\"BODY\"===i||\"HTML\"===i){var o=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||o;return r[n]}return t[n]}function rt(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=ot(e,\"top\"),o=ot(e,\"left\"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function at(t,e){var n=\"x\"===e?\"Left\":\"Top\",i=\"Left\"===n?\"Right\":\"Bottom\";return parseFloat(t[\"border\"+n+\"Width\"])+parseFloat(t[\"border\"+i+\"Width\"])}function st(t,e,n,i){return Math.max(e[\"offset\"+t],e[\"scroll\"+t],n[\"client\"+t],n[\"offset\"+t],n[\"scroll\"+t],tt(10)?parseInt(n[\"offset\"+t])+parseInt(i[\"margin\"+(\"Height\"===t?\"Top\":\"Left\")])+parseInt(i[\"margin\"+(\"Height\"===t?\"Bottom\":\"Right\")]):0)}function lt(t){var e=t.body,n=t.documentElement,i=tt(10)&&getComputedStyle(n);return{height:st(\"Height\",e,n,i),width:st(\"Width\",e,n,i)}}var ut=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")},ft=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],i=tt(10),o=\"HTML\"===e.nodeName,r=pt(t),a=pt(e),s=G(t),l=K(e),u=parseFloat(l.borderTopWidth),f=parseFloat(l.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=ht({top:r.top-a.top-u,left:r.left-a.left-f,width:r.width,height:r.height});if(d.marginTop=0,d.marginLeft=0,!i&&o){var c=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=u-c,d.bottom-=u-c,d.left-=f-h,d.right-=f-h,d.marginTop=c,d.marginLeft=h}return(i&&!n?e.contains(s):e===s&&\"BODY\"!==s.nodeName)&&(d=rt(d,e)),d}function gt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=mt(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:ot(n),s=e?0:ot(n,\"left\"),l={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r};return ht(l)}function _t(t){var e=t.nodeName;if(\"BODY\"===e||\"HTML\"===e)return!1;if(\"fixed\"===K(t,\"position\"))return!0;var n=X(t);return!!n&&_t(n)}function vt(t){if(!t||!t.parentElement||tt())return document.documentElement;for(var e=t.parentElement;e&&\"none\"===K(e,\"transform\");)e=e.parentElement;return e||document.documentElement}function bt(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=o?vt(t):it(t,$(e));if(\"viewport\"===i)r=gt(a,o);else{var s=void 0;\"scrollParent\"===i?\"BODY\"===(s=G(X(e))).nodeName&&(s=t.ownerDocument.documentElement):s=\"window\"===i?t.ownerDocument.documentElement:i;var l=mt(s,a,o);if(\"HTML\"!==s.nodeName||_t(a))r=l;else{var u=lt(t.ownerDocument),f=u.height,d=u.width;r.top+=l.top-l.marginTop,r.bottom=f+l.top,r.left+=l.left-l.marginLeft,r.right=d+l.left}}var c=\"number\"==typeof(n=n||0);return r.left+=c?n:n.left||0,r.top+=c?n:n.top||0,r.right-=c?n:n.right||0,r.bottom-=c?n:n.bottom||0,r}function yt(t){return t.width*t.height}function Et(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf(\"auto\"))return t;var a=bt(n,i,r,o),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map((function(t){return ct({key:t},s[t],{area:yt(s[t])})})).sort((function(t,e){return e.area-t.area})),u=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),f=u.length>0?u[0].key:l[0].key,d=t.split(\"-\")[1];return f+(d?\"-\"+d:\"\")}function wt(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?vt(e):it(e,$(n));return mt(n,o,i)}function Tt(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function Ct(t){var e={left:\"right\",right:\"left\",bottom:\"top\",top:\"bottom\"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function St(t,e,n){n=n.split(\"-\")[0];var i=Tt(t),o={width:i.width,height:i.height},r=-1!==[\"right\",\"left\"].indexOf(n),a=r?\"top\":\"left\",s=r?\"left\":\"top\",l=r?\"height\":\"width\",u=r?\"width\":\"height\";return o[a]=e[a]+e[l]/2-i[l]/2,o[s]=n===s?e[s]-i[u]:e[Ct(s)],o}function Nt(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Dt(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t.name===n}));var i=Nt(t,(function(t){return t.name===n}));return t.indexOf(i)}(t,0,n))).forEach((function(t){t.function&&console.warn(\"`modifier.function` is deprecated, use `modifier.fn`!\");var n=t.function||t.fn;t.enabled&&z(n)&&(e.offsets.popper=ht(e.offsets.popper),e.offsets.reference=ht(e.offsets.reference),e=n(e,t))})),e}function At(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=wt(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Et(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=St(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?\"fixed\":\"absolute\",t=Dt(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function kt(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function It(t){for(var e=[!1,\"ms\",\"Webkit\",\"Moz\",\"O\"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i1&&void 0!==arguments[1]&&arguments[1],n=Qt.indexOf(t),i=Qt.slice(n+1).concat(Qt.slice(0,n));return e?i.reverse():i}var Ut={placement:\"bottom\",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split(\"-\")[0],i=e.split(\"-\")[1];if(i){var o=t.offsets,r=o.reference,a=o.popper,s=-1!==[\"bottom\",\"top\"].indexOf(n),l=s?\"left\":\"top\",u=s?\"width\":\"height\",f={start:dt({},l,r[l]),end:dt({},l,r[l]+r[u]-a[u])};t.offsets.popper=ct({},a,f[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n,i=e.offset,o=t.placement,r=t.offsets,a=r.popper,s=r.reference,l=o.split(\"-\")[0];return n=Rt(+i)?[+i,0]:function(t,e,n,i){var o=[0,0],r=-1!==[\"right\",\"left\"].indexOf(i),a=t.split(/(\\+|\\-)/).map((function(t){return t.trim()})),s=a.indexOf(Nt(a,(function(t){return-1!==t.search(/,|\\s/)})));a[s]&&-1===a[s].indexOf(\",\")&&console.warn(\"Offsets separated by white space(s) are deprecated, use a comma (,) instead.\");var l=/\\s*,\\s*|\\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return u=u.map((function(t,i){var o=(1===i?!r:r)?\"height\":\"width\",a=!1;return t.reduce((function(t,e){return\"\"===t[t.length-1]&&-1!==[\"+\",\"-\"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,i){var o=t.match(/((?:\\-|\\+)?\\d*\\.?\\d*)(.*)/),r=+o[1],a=o[2];return r?0===a.indexOf(\"%\")?ht(\"%p\"===a?n:i)[e]/100*r:\"vh\"===a||\"vw\"===a?(\"vh\"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r:r:t}(t,o,e,n)}))})),u.forEach((function(t,e){t.forEach((function(n,i){Rt(n)&&(o[e]+=n*(\"-\"===t[i-1]?-1:1))}))})),o}(i,a,s,l),\"left\"===l?(a.top+=n[0],a.left-=n[1]):\"right\"===l?(a.top+=n[0],a.left+=n[1]):\"top\"===l?(a.left+=n[0],a.top-=n[1]):\"bottom\"===l&&(a.left+=n[0],a.top+=n[1]),t.popper=a,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||et(t.instance.popper);t.instance.reference===n&&(n=et(n));var i=It(\"transform\"),o=t.instance.popper.style,r=o.top,a=o.left,s=o[i];o.top=\"\",o.left=\"\",o[i]=\"\";var l=bt(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=a,o[i]=s,e.boundaries=l;var u=e.priority,f=t.offsets.popper,d={primary:function(t){var n=f[t];return f[t]l[t]&&!e.escapeWithReference&&(i=Math.min(f[n],l[t]-(\"right\"===t?f.width:f.height))),dt({},n,i)}};return u.forEach((function(t){var e=-1!==[\"left\",\"top\"].indexOf(t)?\"primary\":\"secondary\";f=ct({},f,d[e](t))})),t.offsets.popper=f,t},priority:[\"left\",\"right\",\"top\",\"bottom\"],padding:5,boundariesElement:\"scrollParent\"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split(\"-\")[0],r=Math.floor,a=-1!==[\"top\",\"bottom\"].indexOf(o),s=a?\"right\":\"bottom\",l=a?\"left\":\"top\",u=a?\"width\":\"height\";return n[s]r(i[s])&&(t.offsets.popper[l]=r(i[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Mt(t.instance.modifiers,\"arrow\",\"keepTogether\"))return t;var i=e.element;if(\"string\"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn(\"WARNING: `arrow.element` must be child of its popper element!\"),t;var o=t.placement.split(\"-\")[0],r=t.offsets,a=r.popper,s=r.reference,l=-1!==[\"left\",\"right\"].indexOf(o),u=l?\"height\":\"width\",f=l?\"Top\":\"Left\",d=f.toLowerCase(),c=l?\"left\":\"top\",h=l?\"bottom\":\"right\",p=Tt(i)[u];s[h]-pa[h]&&(t.offsets.popper[d]+=s[d]+p-a[h]),t.offsets.popper=ht(t.offsets.popper);var m=s[d]+s[u]/2-p/2,g=K(t.instance.popper),_=parseFloat(g[\"margin\"+f]),v=parseFloat(g[\"border\"+f+\"Width\"]),b=m-t.offsets.popper[d]-_-v;return b=Math.max(Math.min(a[u]-p,b),0),t.arrowElement=i,t.offsets.arrow=(dt(n={},d,Math.round(b)),dt(n,c,\"\"),n),t},element:\"[x-arrow]\"},flip:{order:600,enabled:!0,fn:function(t,e){if(kt(t.instance.modifiers,\"inner\"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=bt(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split(\"-\")[0],o=Ct(i),r=t.placement.split(\"-\")[1]||\"\",a=[];switch(e.behavior){case\"flip\":a=[i,o];break;case\"clockwise\":a=Wt(i);break;case\"counterclockwise\":a=Wt(i,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return t;i=t.placement.split(\"-\")[0],o=Ct(i);var u=t.offsets.popper,f=t.offsets.reference,d=Math.floor,c=\"left\"===i&&d(u.right)>d(f.left)||\"right\"===i&&d(u.left)d(f.top)||\"bottom\"===i&&d(u.top)d(n.right),m=d(u.top)d(n.bottom),_=\"left\"===i&&h||\"right\"===i&&p||\"top\"===i&&m||\"bottom\"===i&&g,v=-1!==[\"top\",\"bottom\"].indexOf(i),b=!!e.flipVariations&&(v&&\"start\"===r&&h||v&&\"end\"===r&&p||!v&&\"start\"===r&&m||!v&&\"end\"===r&&g),y=!!e.flipVariationsByContent&&(v&&\"start\"===r&&p||v&&\"end\"===r&&h||!v&&\"start\"===r&&g||!v&&\"end\"===r&&m),E=b||y;(c||_||E)&&(t.flipped=!0,(c||_)&&(i=a[l+1]),E&&(r=function(t){return\"end\"===t?\"start\":\"start\"===t?\"end\":t}(r)),t.placement=i+(r?\"-\"+r:\"\"),t.offsets.popper=ct({},t.offsets.popper,St(t.instance.popper,t.offsets.reference,t.placement)),t=Dt(t.instance.modifiers,t,\"flip\"))})),t},behavior:\"flip\",padding:5,boundariesElement:\"viewport\",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split(\"-\")[0],i=t.offsets,o=i.popper,r=i.reference,a=-1!==[\"left\",\"right\"].indexOf(n),s=-1===[\"top\",\"left\"].indexOf(n);return o[a?\"left\":\"top\"]=r[n]-(s?o[a?\"width\":\"height\"]:0),t.placement=Ct(e),t.offsets.popper=ht(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Mt(t.instance.modifiers,\"hide\",\"preventOverflow\"))return t;var e=t.offsets.reference,n=Nt(t.instance.modifiers,(function(t){return\"preventOverflow\"===t.name})).boundaries;if(e.bottomn.right||e.top>n.bottom||e.right2&&void 0!==arguments[2]?arguments[2]:{};ut(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Y(this.update.bind(this)),this.options=ct({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ct({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){i.options.modifiers[e]=ct({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return ct({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&z(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return ft(t,[{key:\"update\",value:function(){return At.call(this)}},{key:\"destroy\",value:function(){return Ot.call(this)}},{key:\"enableEventListeners\",value:function(){return Pt.call(this)}},{key:\"disableEventListeners\",value:function(){return Ft.call(this)}}]),t}();Vt.Utils=(\"undefined\"!=typeof window?window:global).PopperUtils,Vt.placements=qt,Vt.Defaults=Ut;var Yt=Vt,zt=\"dropdown\",Kt=\"bs.dropdown\",Xt=i.default.fn[zt],Gt=new RegExp(\"38|40|27\"),$t=\"disabled\",Jt=\"show\",Zt=\"dropdown-menu-right\",te=\"hide.bs.dropdown\",ee=\"hidden.bs.dropdown\",ne=\"click.bs.dropdown.data-api\",ie=\"keydown.bs.dropdown.data-api\",oe='[data-toggle=\"dropdown\"]',re=\".dropdown-menu\",ae={offset:0,flip:!0,boundary:\"scrollParent\",reference:\"toggle\",display:\"dynamic\",popperConfig:null},se={offset:\"(number|string|function)\",flip:\"boolean\",boundary:\"(string|element)\",reference:\"(string|element)\",display:\"string\",popperConfig:\"(null|object)\"},le=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!i.default(this._element).hasClass($t)){var e=i.default(this._menu).hasClass(Jt);t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||i.default(this._element).hasClass($t)||i.default(this._menu).hasClass(Jt))){var n={relatedTarget:this._element},o=i.default.Event(\"show.bs.dropdown\",n),r=t._getParentFromElement(this._element);if(i.default(r).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&e){if(\"undefined\"==typeof Yt)throw new TypeError(\"Bootstrap's dropdowns require Popper (https://popper.js.org)\");var a=this._element;\"parent\"===this._config.reference?a=r:u.isElement(this._config.reference)&&(a=this._config.reference,\"undefined\"!=typeof this._config.reference.jquery&&(a=this._config.reference[0])),\"scrollParent\"!==this._config.boundary&&i.default(r).addClass(\"position-static\"),this._popper=new Yt(a,this._menu,this._getPopperConfig())}\"ontouchstart\"in document.documentElement&&0===i.default(r).closest(\".navbar-nav\").length&&i.default(document.body).children().on(\"mouseover\",null,i.default.noop),this._element.focus(),this._element.setAttribute(\"aria-expanded\",!0),i.default(this._menu).toggleClass(Jt),i.default(r).toggleClass(Jt).trigger(i.default.Event(\"shown.bs.dropdown\",n))}}},e.hide=function(){if(!this._element.disabled&&!i.default(this._element).hasClass($t)&&i.default(this._menu).hasClass(Jt)){var e={relatedTarget:this._element},n=i.default.Event(te,e),o=t._getParentFromElement(this._element);i.default(o).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),i.default(this._menu).toggleClass(Jt),i.default(o).toggleClass(Jt).trigger(i.default.Event(ee,e)))}},e.dispose=function(){i.default.removeData(this._element,Kt),i.default(this._element).off(\".bs.dropdown\"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;i.default(this._element).on(\"click.bs.dropdown\",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},e._getConfig=function(t){return t=a({},this.constructor.Default,i.default(this._element).data(),t),u.typeCheckConfig(zt,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(re))}return this._menu},e._getPlacement=function(){var t=i.default(this._element.parentNode),e=\"bottom-start\";return t.hasClass(\"dropup\")?e=i.default(this._menu).hasClass(Zt)?\"top-end\":\"top-start\":t.hasClass(\"dropright\")?e=\"right-start\":t.hasClass(\"dropleft\")?e=\"left-start\":i.default(this._menu).hasClass(Zt)&&(e=\"bottom-end\"),e},e._detectNavbar=function(){return i.default(this._element).closest(\".navbar\").length>0},e._getOffset=function(){var t=this,e={};return\"function\"==typeof this._config.offset?e.fn=function(e){return e.offsets=a({},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}),a({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(Kt);if(n||(n=new t(this,\"object\"==typeof e?e:null),i.default(this).data(Kt,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(oe)),o=0,r=n.length;o0&&a--,40===e.which&&adocument.documentElement.clientHeight;n||(this._element.style.overflowY=\"hidden\"),this._element.classList.add(pe);var o=u.getTransitionDurationFromElement(this._dialog);i.default(this._element).off(u.TRANSITION_END),i.default(this._element).one(u.TRANSITION_END,(function(){t._element.classList.remove(pe),n||i.default(t._element).one(u.TRANSITION_END,(function(){t._element.style.overflowY=\"\"})).emulateTransitionEnd(t._element,o)})).emulateTransitionEnd(o),this._element.focus()}},e._showElement=function(t){var e=this,n=i.default(this._element).hasClass(ce),o=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\"),i.default(this._dialog).hasClass(\"modal-dialog-scrollable\")&&o?o.scrollTop=0:this._element.scrollTop=0,n&&u.reflow(this._element),i.default(this._element).addClass(he),this._config.focus&&this._enforceFocus();var r=i.default.Event(\"shown.bs.modal\",{relatedTarget:t}),a=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,i.default(e._element).trigger(r)};if(n){var s=u.getTransitionDurationFromElement(this._dialog);i.default(this._dialog).one(u.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},e._enforceFocus=function(){var t=this;i.default(document).off(_e).on(_e,(function(e){document!==e.target&&t._element!==e.target&&0===i.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?i.default(this._element).on(ye,(function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()})):this._isShown||i.default(this._element).off(ye)},e._setResizeEvent=function(){var t=this;this._isShown?i.default(window).on(ve,(function(e){return t.handleUpdate(e)})):i.default(window).off(ve)},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(){i.default(document.body).removeClass(de),t._resetAdjustments(),t._resetScrollbar(),i.default(t._element).trigger(me)}))},e._removeBackdrop=function(){this._backdrop&&(i.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=i.default(this._element).hasClass(ce)?ce:\"\";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement(\"div\"),this._backdrop.className=\"modal-backdrop\",n&&this._backdrop.classList.add(n),i.default(this._backdrop).appendTo(document.body),i.default(this._element).on(be,(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&(\"static\"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),n&&u.reflow(this._backdrop),i.default(this._backdrop).addClass(he),!t)return;if(!n)return void t();var o=u.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(u.TRANSITION_END,t).emulateTransitionEnd(o)}else if(!this._isShown&&this._backdrop){i.default(this._backdrop).removeClass(he);var r=function(){e._removeBackdrop(),t&&t()};if(i.default(this._element).hasClass(ce)){var a=u.getTransitionDurationFromElement(this._backdrop);i.default(this._backdrop).one(u.TRANSITION_END,r).emulateTransitionEnd(a)}else r()}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},We={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)\"},Ue={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\"},Ve=function(){function t(t,e){if(\"undefined\"==typeof Yt)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=i.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i.default(this.getTipElement()).hasClass(Fe))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(\".modal\").off(\"hide.bs.modal\",this._hideModalHandler),this.tip&&i.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if(\"none\"===i.default(this.element).css(\"display\"))throw new Error(\"Please use show on visible elements\");var e=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(e);var n=u.findShadowRoot(this.element),o=i.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!o)return;var r=this.getTipElement(),a=u.getUID(this.constructor.NAME);r.setAttribute(\"id\",a),this.element.setAttribute(\"aria-describedby\",a),this.setContent(),this.config.animation&&i.default(r).addClass(Pe);var s=\"function\"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,l=this._getAttachment(s);this.addAttachmentClass(l);var f=this._getContainer();i.default(r).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(r).appendTo(f),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Yt(this.element,r,this._getPopperConfig(l)),i.default(r).addClass(Fe),i.default(r).addClass(this.config.customClass),\"ontouchstart\"in document.documentElement&&i.default(document.body).children().on(\"mouseover\",null,i.default.noop);var d=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,i.default(t.element).trigger(t.constructor.Event.SHOWN),e===Be&&t._leave(null,t)};if(i.default(this.tip).hasClass(Pe)){var c=u.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(u.TRANSITION_END,d).emulateTransitionEnd(c)}else d()}},e.hide=function(t){var e=this,n=this.getTipElement(),o=i.default.Event(this.constructor.Event.HIDE),r=function(){e._hoverState!==Re&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute(\"aria-describedby\"),i.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(i.default(this.element).trigger(o),!o.isDefaultPrevented()){if(i.default(n).removeClass(Fe),\"ontouchstart\"in document.documentElement&&i.default(document.body).children().off(\"mouseover\",null,i.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,i.default(this.tip).hasClass(Pe)){var a=u.getTransitionDurationFromElement(n);i.default(n).one(u.TRANSITION_END,r).emulateTransitionEnd(a)}else r();this._hoverState=\"\"}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass(\"bs-tooltip-\"+t)},e.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(i.default(t.querySelectorAll(\".tooltip-inner\")),this.getTitle()),i.default(t).removeClass(\"fade show\")},e.setElementContent=function(t,e){\"object\"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=ke(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?i.default(e).parent().is(t)||t.empty().append(e):t.text(i.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 a({},{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=a({},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:u.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)},e._getAttachment=function(t){return qe[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(\" \").forEach((function(e){if(\"click\"===e)i.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if(\"manual\"!==e){var n=e===He?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,o=e===He?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;i.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(o,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},i.default(this.element).closest(\".modal\").on(\"hide.bs.modal\",this._hideModalHandler),this.config.selector?this.config=a({},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||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger[\"focusin\"===t.type?Me:He]=!0),i.default(e.getTipElement()).hasClass(Fe)||e._hoverState===Re?e._hoverState=Re:(clearTimeout(e._timeout),e._hoverState=Re,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){e._hoverState===Re&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger[\"focusout\"===t.type?Me:He]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=Be,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){e._hoverState===Be&&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=i.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==Le.indexOf(t)&&delete e[t]})),\"number\"==typeof(t=a({},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()),u.typeCheckConfig(Ie,t,this.constructor.DefaultType),t.sanitize&&(t.template=ke(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=i.default(this.getTipElement()),e=t.attr(\"class\").match(je);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\")&&(i.default(t).removeClass(Pe),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(Oe),r=\"object\"==typeof e&&e;if((o||!/dispose|hide/.test(e))&&(o||(o=new t(this,r),n.data(Oe,o)),\"string\"==typeof e)){if(\"undefined\"==typeof o[e])throw new TypeError('No method named \"'+e+'\"');o[e]()}}))},r(t,null,[{key:\"VERSION\",get:function(){return\"4.6.2\"}},{key:\"Default\",get:function(){return Qe}},{key:\"NAME\",get:function(){return Ie}},{key:\"DATA_KEY\",get:function(){return Oe}},{key:\"Event\",get:function(){return Ue}},{key:\"EVENT_KEY\",get:function(){return\".bs.tooltip\"}},{key:\"DefaultType\",get:function(){return We}}]),t}();i.default.fn.tooltip=Ve._jQueryInterface,i.default.fn.tooltip.Constructor=Ve,i.default.fn.tooltip.noConflict=function(){return i.default.fn.tooltip=xe,Ve._jQueryInterface};var Ye=\"bs.popover\",ze=i.default.fn.popover,Ke=new RegExp(\"(^|\\\\s)bs-popover\\\\S+\",\"g\"),Xe=a({},Ve.Default,{placement:\"right\",trigger:\"click\",content:\"\",template:'

'}),Ge=a({},Ve.DefaultType,{content:\"(string|element|function)\"}),$e={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\"},Je=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,s(e,n);var a=o.prototype;return a.isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass(\"bs-popover-\"+t)},a.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},a.setContent=function(){var t=i.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=i.default(this.getTipElement()),e=t.attr(\"class\").match(Ke);null!==e&&e.length>0&&t.removeClass(e.join(\"\"))},o._jQueryInterface=function(t){return this.each((function(){var e=i.default(this).data(Ye),n=\"object\"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new o(this,n),i.default(this).data(Ye,e)),\"string\"==typeof t)){if(\"undefined\"==typeof e[t])throw new TypeError('No method named \"'+t+'\"');e[t]()}}))},r(o,null,[{key:\"VERSION\",get:function(){return\"4.6.2\"}},{key:\"Default\",get:function(){return Xe}},{key:\"NAME\",get:function(){return\"popover\"}},{key:\"DATA_KEY\",get:function(){return Ye}},{key:\"Event\",get:function(){return $e}},{key:\"EVENT_KEY\",get:function(){return\".bs.popover\"}},{key:\"DefaultType\",get:function(){return Ge}}]),o}(Ve);i.default.fn.popover=Je._jQueryInterface,i.default.fn.popover.Constructor=Je,i.default.fn.popover.noConflict=function(){return i.default.fn.popover=ze,Je._jQueryInterface};var Ze=\"scrollspy\",tn=\"bs.scrollspy\",en=i.default.fn[Ze],nn=\"active\",on=\"position\",rn=\".nav, .list-group\",an={offset:10,method:\"auto\",target:\"\"},sn={offset:\"number\",method:\"string\",target:\"(string|element)\"},ln=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,i.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\":on,n=\"auto\"===this._config.method?e:this._config.method,o=n===on?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,r=u.getSelectorFromElement(t);if(r&&(e=document.querySelector(r)),e){var a=e.getBoundingClientRect();if(a.width||a.height)return[i.default(e)[n]().top+o,r]}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(){i.default.removeData(this._element,tn),i.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=a({},an,\"object\"==typeof t&&t?t:{})).target&&u.isElement(t.target)){var e=i.default(t.target).attr(\"id\");e||(e=u.getUID(Ze),i.default(t.target).attr(\"id\",e)),t.target=\"#\"+e}return u.typeCheckConfig(Ze,t,sn),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\",gn=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&&i.default(this._element).hasClass(dn)||i.default(this._element).hasClass(\"disabled\")||this._element.hasAttribute(\"disabled\"))){var e,n,o=i.default(this._element).closest(\".nav, .list-group\")[0],r=u.getSelectorFromElement(this._element);if(o){var a=\"UL\"===o.nodeName||\"OL\"===o.nodeName?mn:pn;n=(n=i.default.makeArray(i.default(o).find(a)))[n.length-1]}var s=i.default.Event(\"hide.bs.tab\",{relatedTarget:this._element}),l=i.default.Event(\"show.bs.tab\",{relatedTarget:n});if(n&&i.default(n).trigger(s),i.default(this._element).trigger(l),!l.isDefaultPrevented()&&!s.isDefaultPrevented()){r&&(e=document.querySelector(r)),this._activate(this._element,o);var f=function(){var e=i.default.Event(\"hidden.bs.tab\",{relatedTarget:t._element}),o=i.default.Event(\"shown.bs.tab\",{relatedTarget:n});i.default(n).trigger(e),i.default(t._element).trigger(o)};e?this._activate(e,e.parentNode,f):f()}}},e.dispose=function(){i.default.removeData(this._element,un),this._element=null},e._activate=function(t,e,n){var o=this,r=(!e||\"UL\"!==e.nodeName&&\"OL\"!==e.nodeName?i.default(e).children(pn):i.default(e).find(mn))[0],a=n&&r&&i.default(r).hasClass(cn),s=function(){return o._transitionComplete(t,r,n)};if(r&&a){var l=u.getTransitionDurationFromElement(r);i.default(r).removeClass(hn).one(u.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},e._transitionComplete=function(t,e,n){if(e){i.default(e).removeClass(dn);var o=i.default(e.parentNode).find(\"> .dropdown-menu .active\")[0];o&&i.default(o).removeClass(dn),\"tab\"===e.getAttribute(\"role\")&&e.setAttribute(\"aria-selected\",!1)}i.default(t).addClass(dn),\"tab\"===t.getAttribute(\"role\")&&t.setAttribute(\"aria-selected\",!0),u.reflow(t),t.classList.contains(cn)&&t.classList.add(hn);var r=t.parentNode;if(r&&\"LI\"===r.nodeName&&(r=r.parentNode),r&&i.default(r).hasClass(\"dropdown-menu\")){var a=i.default(t).closest(\".dropdown\")[0];if(a){var s=[].slice.call(a.querySelectorAll(\".dropdown-toggle\"));i.default(s).addClass(dn)}t.setAttribute(\"aria-expanded\",!0)}n&&n()},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),o=n.data(un);if(o||(o=new t(this),n.data(un,o)),\"string\"==typeof e){if(\"undefined\"==typeof o[e])throw new TypeError('No method named \"'+e+'\"');o[e]()}}))},r(t,null,[{key:\"VERSION\",get:function(){return\"4.6.2\"}}]),t}();i.default(document).on(\"click.bs.tab.data-api\",'[data-toggle=\"tab\"], [data-toggle=\"pill\"], [data-toggle=\"list\"]',(function(t){t.preventDefault(),gn._jQueryInterface.call(i.default(this),\"show\")})),i.default.fn.tab=gn._jQueryInterface,i.default.fn.tab.Constructor=gn,i.default.fn.tab.noConflict=function(){return i.default.fn.tab=fn,gn._jQueryInterface};var _n=\"bs.toast\",vn=i.default.fn.toast,bn=\"hide\",yn=\"show\",En=\"showing\",wn=\"click.dismiss.bs.toast\",Tn={animation:!0,autohide:!0,delay:500},Cn={animation:\"boolean\",autohide:\"boolean\",delay:\"number\"},Sn=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=i.default.Event(\"show.bs.toast\");if(i.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add(\"fade\");var n=function(){t._element.classList.remove(En),t._element.classList.add(yn),i.default(t._element).trigger(\"shown.bs.toast\"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove(bn),u.reflow(this._element),this._element.classList.add(En),this._config.animation){var o=u.getTransitionDurationFromElement(this._element);i.default(this._element).one(u.TRANSITION_END,n).emulateTransitionEnd(o)}else n()}},e.hide=function(){if(this._element.classList.contains(yn)){var t=i.default.Event(\"hide.bs.toast\");i.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains(yn)&&this._element.classList.remove(yn),i.default(this._element).off(wn),i.default.removeData(this._element,_n),this._element=null,this._config=null},e._getConfig=function(t){return t=a({},Tn,i.default(this._element).data(),\"object\"==typeof t&&t?t:{}),u.typeCheckConfig(\"toast\",t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;i.default(this._element).on(wn,'[data-dismiss=\"toast\"]',(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add(bn),i.default(t._element).trigger(\"hidden.bs.toast\")};if(this._element.classList.remove(yn),this._config.animation){var n=u.getTransitionDurationFromElement(this._element);i.default(this._element).one(u.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=i.default(this),o=n.data(_n);if(o||(o=new t(this,\"object\"==typeof e&&e),n.data(_n,o)),\"string\"==typeof e){if(\"undefined\"==typeof o[e])throw new TypeError('No method named \"'+e+'\"');o[e](this)}}))},r(t,null,[{key:\"VERSION\",get:function(){return\"4.6.2\"}},{key:\"DefaultType\",get:function(){return Cn}},{key:\"Default\",get:function(){return Tn}}]),t}();i.default.fn.toast=Sn._jQueryInterface,i.default.fn.toast.Constructor=Sn,i.default.fn.toast.noConflict=function(){return i.default.fn.toast=vn,Sn._jQueryInterface},t.Alert=c,t.Button=b,t.Carousel=O,t.Collapse=W,t.Dropdown=le,t.Modal=Se,t.Popover=Je,t.Scrollspy=ln,t.Tab=gn,t.Toast=Sn,t.Tooltip=Ve,t.Util=u,Object.defineProperty(t,\"__esModule\",{value:!0})}));\n//# sourceMappingURL=bootstrap.bundle.min.js.map","/*!\n * Chart.js v3.9.1\n * https://www.chartjs.org\n * (c) 2022 Chart.js Contributors\n * Released under the MIT License\n */\n(function (global, factory) {\ntypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\ntypeof define === 'function' && define.amd ? define(factory) :\n(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Chart = factory());\n})(this, (function () { 'use strict';\n\nfunction noop() {}\nconst uid = (function() {\n let id = 0;\n return function() {\n return id++;\n };\n}());\nfunction isNullOrUndef(value) {\n return value === null || typeof value === 'undefined';\n}\nfunction isArray(value) {\n if (Array.isArray && Array.isArray(value)) {\n return true;\n }\n const type = Object.prototype.toString.call(value);\n if (type.slice(0, 7) === '[object' && type.slice(-6) === 'Array]') {\n return true;\n }\n return false;\n}\nfunction isObject(value) {\n return value !== null && Object.prototype.toString.call(value) === '[object Object]';\n}\nconst isNumberFinite = (value) => (typeof value === 'number' || value instanceof Number) && isFinite(+value);\nfunction finiteOrDefault(value, defaultValue) {\n return isNumberFinite(value) ? value : defaultValue;\n}\nfunction valueOrDefault(value, defaultValue) {\n return typeof value === 'undefined' ? defaultValue : value;\n}\nconst toPercentage = (value, dimension) =>\n typeof value === 'string' && value.endsWith('%') ?\n parseFloat(value) / 100\n : value / dimension;\nconst toDimension = (value, dimension) =>\n typeof value === 'string' && value.endsWith('%') ?\n parseFloat(value) / 100 * dimension\n : +value;\nfunction callback(fn, args, thisArg) {\n if (fn && typeof fn.call === 'function') {\n return fn.apply(thisArg, args);\n }\n}\nfunction each(loopable, fn, thisArg, reverse) {\n let i, len, keys;\n if (isArray(loopable)) {\n len = loopable.length;\n if (reverse) {\n for (i = len - 1; i >= 0; i--) {\n fn.call(thisArg, loopable[i], i);\n }\n } else {\n for (i = 0; i < len; i++) {\n fn.call(thisArg, loopable[i], i);\n }\n }\n } else if (isObject(loopable)) {\n keys = Object.keys(loopable);\n len = keys.length;\n for (i = 0; i < len; i++) {\n fn.call(thisArg, loopable[keys[i]], keys[i]);\n }\n }\n}\nfunction _elementsEqual(a0, a1) {\n let i, ilen, v0, v1;\n if (!a0 || !a1 || a0.length !== a1.length) {\n return false;\n }\n for (i = 0, ilen = a0.length; i < ilen; ++i) {\n v0 = a0[i];\n v1 = a1[i];\n if (v0.datasetIndex !== v1.datasetIndex || v0.index !== v1.index) {\n return false;\n }\n }\n return true;\n}\nfunction clone$1(source) {\n if (isArray(source)) {\n return source.map(clone$1);\n }\n if (isObject(source)) {\n const target = Object.create(null);\n const keys = Object.keys(source);\n const klen = keys.length;\n let k = 0;\n for (; k < klen; ++k) {\n target[keys[k]] = clone$1(source[keys[k]]);\n }\n return target;\n }\n return source;\n}\nfunction isValidKey(key) {\n return ['__proto__', 'prototype', 'constructor'].indexOf(key) === -1;\n}\nfunction _merger(key, target, source, options) {\n if (!isValidKey(key)) {\n return;\n }\n const tval = target[key];\n const sval = source[key];\n if (isObject(tval) && isObject(sval)) {\n merge(tval, sval, options);\n } else {\n target[key] = clone$1(sval);\n }\n}\nfunction merge(target, source, options) {\n const sources = isArray(source) ? source : [source];\n const ilen = sources.length;\n if (!isObject(target)) {\n return target;\n }\n options = options || {};\n const merger = options.merger || _merger;\n for (let i = 0; i < ilen; ++i) {\n source = sources[i];\n if (!isObject(source)) {\n continue;\n }\n const keys = Object.keys(source);\n for (let k = 0, klen = keys.length; k < klen; ++k) {\n merger(keys[k], target, source, options);\n }\n }\n return target;\n}\nfunction mergeIf(target, source) {\n return merge(target, source, {merger: _mergerIf});\n}\nfunction _mergerIf(key, target, source) {\n if (!isValidKey(key)) {\n return;\n }\n const tval = target[key];\n const sval = source[key];\n if (isObject(tval) && isObject(sval)) {\n mergeIf(tval, sval);\n } else if (!Object.prototype.hasOwnProperty.call(target, key)) {\n target[key] = clone$1(sval);\n }\n}\nfunction _deprecated(scope, value, previous, current) {\n if (value !== undefined) {\n console.warn(scope + ': \"' + previous +\n\t\t\t'\" is deprecated. Please use \"' + current + '\" instead');\n }\n}\nconst keyResolvers = {\n '': v => v,\n x: o => o.x,\n y: o => o.y\n};\nfunction resolveObjectKey(obj, key) {\n const resolver = keyResolvers[key] || (keyResolvers[key] = _getKeyResolver(key));\n return resolver(obj);\n}\nfunction _getKeyResolver(key) {\n const keys = _splitKey(key);\n return obj => {\n for (const k of keys) {\n if (k === '') {\n break;\n }\n obj = obj && obj[k];\n }\n return obj;\n };\n}\nfunction _splitKey(key) {\n const parts = key.split('.');\n const keys = [];\n let tmp = '';\n for (const part of parts) {\n tmp += part;\n if (tmp.endsWith('\\\\')) {\n tmp = tmp.slice(0, -1) + '.';\n } else {\n keys.push(tmp);\n tmp = '';\n }\n }\n return keys;\n}\nfunction _capitalize(str) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\nconst defined = (value) => typeof value !== 'undefined';\nconst isFunction = (value) => typeof value === 'function';\nconst setsEqual = (a, b) => {\n if (a.size !== b.size) {\n return false;\n }\n for (const item of a) {\n if (!b.has(item)) {\n return false;\n }\n }\n return true;\n};\nfunction _isClickEvent(e) {\n return e.type === 'mouseup' || e.type === 'click' || e.type === 'contextmenu';\n}\n\nconst PI = Math.PI;\nconst TAU = 2 * PI;\nconst PITAU = TAU + PI;\nconst INFINITY = Number.POSITIVE_INFINITY;\nconst RAD_PER_DEG = PI / 180;\nconst HALF_PI = PI / 2;\nconst QUARTER_PI = PI / 4;\nconst TWO_THIRDS_PI = PI * 2 / 3;\nconst log10 = Math.log10;\nconst sign = Math.sign;\nfunction niceNum(range) {\n const roundedRange = Math.round(range);\n range = almostEquals(range, roundedRange, range / 1000) ? roundedRange : range;\n const niceRange = Math.pow(10, Math.floor(log10(range)));\n const fraction = range / niceRange;\n const niceFraction = fraction <= 1 ? 1 : fraction <= 2 ? 2 : fraction <= 5 ? 5 : 10;\n return niceFraction * niceRange;\n}\nfunction _factorize(value) {\n const result = [];\n const sqrt = Math.sqrt(value);\n let i;\n for (i = 1; i < sqrt; i++) {\n if (value % i === 0) {\n result.push(i);\n result.push(value / i);\n }\n }\n if (sqrt === (sqrt | 0)) {\n result.push(sqrt);\n }\n result.sort((a, b) => a - b).pop();\n return result;\n}\nfunction isNumber(n) {\n return !isNaN(parseFloat(n)) && isFinite(n);\n}\nfunction almostEquals(x, y, epsilon) {\n return Math.abs(x - y) < epsilon;\n}\nfunction almostWhole(x, epsilon) {\n const rounded = Math.round(x);\n return ((rounded - epsilon) <= x) && ((rounded + epsilon) >= x);\n}\nfunction _setMinAndMaxByKey(array, target, property) {\n let i, ilen, value;\n for (i = 0, ilen = array.length; i < ilen; i++) {\n value = array[i][property];\n if (!isNaN(value)) {\n target.min = Math.min(target.min, value);\n target.max = Math.max(target.max, value);\n }\n }\n}\nfunction toRadians(degrees) {\n return degrees * (PI / 180);\n}\nfunction toDegrees(radians) {\n return radians * (180 / PI);\n}\nfunction _decimalPlaces(x) {\n if (!isNumberFinite(x)) {\n return;\n }\n let e = 1;\n let p = 0;\n while (Math.round(x * e) / e !== x) {\n e *= 10;\n p++;\n }\n return p;\n}\nfunction getAngleFromPoint(centrePoint, anglePoint) {\n const distanceFromXCenter = anglePoint.x - centrePoint.x;\n const distanceFromYCenter = anglePoint.y - centrePoint.y;\n const radialDistanceFromCenter = Math.sqrt(distanceFromXCenter * distanceFromXCenter + distanceFromYCenter * distanceFromYCenter);\n let angle = Math.atan2(distanceFromYCenter, distanceFromXCenter);\n if (angle < (-0.5 * PI)) {\n angle += TAU;\n }\n return {\n angle,\n distance: radialDistanceFromCenter\n };\n}\nfunction distanceBetweenPoints(pt1, pt2) {\n return Math.sqrt(Math.pow(pt2.x - pt1.x, 2) + Math.pow(pt2.y - pt1.y, 2));\n}\nfunction _angleDiff(a, b) {\n return (a - b + PITAU) % TAU - PI;\n}\nfunction _normalizeAngle(a) {\n return (a % TAU + TAU) % TAU;\n}\nfunction _angleBetween(angle, start, end, sameAngleIsFullCircle) {\n const a = _normalizeAngle(angle);\n const s = _normalizeAngle(start);\n const e = _normalizeAngle(end);\n const angleToStart = _normalizeAngle(s - a);\n const angleToEnd = _normalizeAngle(e - a);\n const startToAngle = _normalizeAngle(a - s);\n const endToAngle = _normalizeAngle(a - e);\n return a === s || a === e || (sameAngleIsFullCircle && s === e)\n || (angleToStart > angleToEnd && startToAngle < endToAngle);\n}\nfunction _limitValue(value, min, max) {\n return Math.max(min, Math.min(max, value));\n}\nfunction _int16Range(value) {\n return _limitValue(value, -32768, 32767);\n}\nfunction _isBetween(value, start, end, epsilon = 1e-6) {\n return value >= Math.min(start, end) - epsilon && value <= Math.max(start, end) + epsilon;\n}\n\nfunction _lookup(table, value, cmp) {\n cmp = cmp || ((index) => table[index] < value);\n let hi = table.length - 1;\n let lo = 0;\n let mid;\n while (hi - lo > 1) {\n mid = (lo + hi) >> 1;\n if (cmp(mid)) {\n lo = mid;\n } else {\n hi = mid;\n }\n }\n return {lo, hi};\n}\nconst _lookupByKey = (table, key, value, last) =>\n _lookup(table, value, last\n ? index => table[index][key] <= value\n : index => table[index][key] < value);\nconst _rlookupByKey = (table, key, value) =>\n _lookup(table, value, index => table[index][key] >= value);\nfunction _filterBetween(values, min, max) {\n let start = 0;\n let end = values.length;\n while (start < end && values[start] < min) {\n start++;\n }\n while (end > start && values[end - 1] > max) {\n end--;\n }\n return start > 0 || end < values.length\n ? values.slice(start, end)\n : values;\n}\nconst arrayEvents = ['push', 'pop', 'shift', 'splice', 'unshift'];\nfunction listenArrayEvents(array, listener) {\n if (array._chartjs) {\n array._chartjs.listeners.push(listener);\n return;\n }\n Object.defineProperty(array, '_chartjs', {\n configurable: true,\n enumerable: false,\n value: {\n listeners: [listener]\n }\n });\n arrayEvents.forEach((key) => {\n const method = '_onData' + _capitalize(key);\n const base = array[key];\n Object.defineProperty(array, key, {\n configurable: true,\n enumerable: false,\n value(...args) {\n const res = base.apply(this, args);\n array._chartjs.listeners.forEach((object) => {\n if (typeof object[method] === 'function') {\n object[method](...args);\n }\n });\n return res;\n }\n });\n });\n}\nfunction unlistenArrayEvents(array, listener) {\n const stub = array._chartjs;\n if (!stub) {\n return;\n }\n const listeners = stub.listeners;\n const index = listeners.indexOf(listener);\n if (index !== -1) {\n listeners.splice(index, 1);\n }\n if (listeners.length > 0) {\n return;\n }\n arrayEvents.forEach((key) => {\n delete array[key];\n });\n delete array._chartjs;\n}\nfunction _arrayUnique(items) {\n const set = new Set();\n let i, ilen;\n for (i = 0, ilen = items.length; i < ilen; ++i) {\n set.add(items[i]);\n }\n if (set.size === ilen) {\n return items;\n }\n return Array.from(set);\n}\n\nfunction fontString(pixelSize, fontStyle, fontFamily) {\n return fontStyle + ' ' + pixelSize + 'px ' + fontFamily;\n}\nconst requestAnimFrame = (function() {\n if (typeof window === 'undefined') {\n return function(callback) {\n return callback();\n };\n }\n return window.requestAnimationFrame;\n}());\nfunction throttled(fn, thisArg, updateFn) {\n const updateArgs = updateFn || ((args) => Array.prototype.slice.call(args));\n let ticking = false;\n let args = [];\n return function(...rest) {\n args = updateArgs(rest);\n if (!ticking) {\n ticking = true;\n requestAnimFrame.call(window, () => {\n ticking = false;\n fn.apply(thisArg, args);\n });\n }\n };\n}\nfunction debounce(fn, delay) {\n let timeout;\n return function(...args) {\n if (delay) {\n clearTimeout(timeout);\n timeout = setTimeout(fn, delay, args);\n } else {\n fn.apply(this, args);\n }\n return delay;\n };\n}\nconst _toLeftRightCenter = (align) => align === 'start' ? 'left' : align === 'end' ? 'right' : 'center';\nconst _alignStartEnd = (align, start, end) => align === 'start' ? start : align === 'end' ? end : (start + end) / 2;\nconst _textX = (align, left, right, rtl) => {\n const check = rtl ? 'left' : 'right';\n return align === check ? right : align === 'center' ? (left + right) / 2 : left;\n};\nfunction _getStartAndCountOfVisiblePoints(meta, points, animationsDisabled) {\n const pointCount = points.length;\n let start = 0;\n let count = pointCount;\n if (meta._sorted) {\n const {iScale, _parsed} = meta;\n const axis = iScale.axis;\n const {min, max, minDefined, maxDefined} = iScale.getUserBounds();\n if (minDefined) {\n start = _limitValue(Math.min(\n _lookupByKey(_parsed, iScale.axis, min).lo,\n animationsDisabled ? pointCount : _lookupByKey(points, axis, iScale.getPixelForValue(min)).lo),\n 0, pointCount - 1);\n }\n if (maxDefined) {\n count = _limitValue(Math.max(\n _lookupByKey(_parsed, iScale.axis, max, true).hi + 1,\n animationsDisabled ? 0 : _lookupByKey(points, axis, iScale.getPixelForValue(max), true).hi + 1),\n start, pointCount) - start;\n } else {\n count = pointCount - start;\n }\n }\n return {start, count};\n}\nfunction _scaleRangesChanged(meta) {\n const {xScale, yScale, _scaleRanges} = meta;\n const newRanges = {\n xmin: xScale.min,\n xmax: xScale.max,\n ymin: yScale.min,\n ymax: yScale.max\n };\n if (!_scaleRanges) {\n meta._scaleRanges = newRanges;\n return true;\n }\n const changed = _scaleRanges.xmin !== xScale.min\n\t\t|| _scaleRanges.xmax !== xScale.max\n\t\t|| _scaleRanges.ymin !== yScale.min\n\t\t|| _scaleRanges.ymax !== yScale.max;\n Object.assign(_scaleRanges, newRanges);\n return changed;\n}\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 = new Animator();\n\n/*!\n * @kurkle/color v0.2.1\n * https://github.com/kurkle/color#readme\n * (c) 2022 Jukka Kurkela\n * Released under the MIT License\n */\nfunction round(v) {\n return v + 0.5 | 0;\n}\nconst lim = (v, l, h) => Math.max(Math.min(v, h), l);\nfunction p2b(v) {\n return lim(round(v * 2.55), 0, 255);\n}\nfunction n2b(v) {\n return lim(round(v * 255), 0, 255);\n}\nfunction b2n(v) {\n return lim(round(v / 2.55) / 100, 0, 1);\n}\nfunction n2p(v) {\n return lim(round(v * 100), 0, 100);\n}\nconst map$1 = {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15};\nconst hex = [...'0123456789ABCDEF'];\nconst h1 = b => hex[b & 0xF];\nconst h2 = b => hex[(b & 0xF0) >> 4] + hex[b & 0xF];\nconst eq = b => ((b & 0xF0) >> 4) === (b & 0xF);\nconst isShort = v => eq(v.r) && eq(v.g) && eq(v.b) && eq(v.a);\nfunction hexParse(str) {\n var len = str.length;\n var ret;\n if (str[0] === '#') {\n if (len === 4 || len === 5) {\n ret = {\n r: 255 & map$1[str[1]] * 17,\n g: 255 & map$1[str[2]] * 17,\n b: 255 & map$1[str[3]] * 17,\n a: len === 5 ? map$1[str[4]] * 17 : 255\n };\n } else if (len === 7 || len === 9) {\n ret = {\n r: map$1[str[1]] << 4 | map$1[str[2]],\n g: map$1[str[3]] << 4 | map$1[str[4]],\n b: map$1[str[5]] << 4 | map$1[str[6]],\n a: len === 9 ? (map$1[str[7]] << 4 | map$1[str[8]]) : 255\n };\n }\n }\n return ret;\n}\nconst alpha = (a, f) => a < 255 ? f(a) : '';\nfunction hexString(v) {\n var f = isShort(v) ? h1 : h2;\n return v\n ? '#' + f(v.r) + f(v.g) + f(v.b) + alpha(v.a, f)\n : undefined;\n}\nconst HUE_RE = /^(hsla?|hwb|hsv)\\(\\s*([-+.e\\d]+)(?:deg)?[\\s,]+([-+.e\\d]+)%[\\s,]+([-+.e\\d]+)%(?:[\\s,]+([-+.e\\d]+)(%)?)?\\s*\\)$/;\nfunction hsl2rgbn(h, s, l) {\n const a = s * Math.min(l, 1 - l);\n const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n return [f(0), f(8), f(4)];\n}\nfunction hsv2rgbn(h, s, v) {\n const f = (n, k = (n + h / 60) % 6) => v - v * s * Math.max(Math.min(k, 4 - k, 1), 0);\n return [f(5), f(3), f(1)];\n}\nfunction hwb2rgbn(h, w, b) {\n const rgb = hsl2rgbn(h, 1, 0.5);\n let i;\n if (w + b > 1) {\n i = 1 / (w + b);\n w *= i;\n b *= i;\n }\n for (i = 0; i < 3; i++) {\n rgb[i] *= 1 - w - b;\n rgb[i] += w;\n }\n return rgb;\n}\nfunction hueValue(r, g, b, d, max) {\n if (r === max) {\n return ((g - b) / d) + (g < b ? 6 : 0);\n }\n if (g === max) {\n return (b - r) / d + 2;\n }\n return (r - g) / d + 4;\n}\nfunction rgb2hsl(v) {\n const range = 255;\n const r = v.r / range;\n const g = v.g / range;\n const b = v.b / range;\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n const l = (max + min) / 2;\n let h, s, d;\n if (max !== min) {\n d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n h = hueValue(r, g, b, d, max);\n h = h * 60 + 0.5;\n }\n return [h | 0, s || 0, l];\n}\nfunction calln(f, a, b, c) {\n return (\n Array.isArray(a)\n ? f(a[0], a[1], a[2])\n : f(a, b, c)\n ).map(n2b);\n}\nfunction hsl2rgb(h, s, l) {\n return calln(hsl2rgbn, h, s, l);\n}\nfunction hwb2rgb(h, w, b) {\n return calln(hwb2rgbn, h, w, b);\n}\nfunction hsv2rgb(h, s, v) {\n return calln(hsv2rgbn, h, s, v);\n}\nfunction hue(h) {\n return (h % 360 + 360) % 360;\n}\nfunction hueParse(str) {\n const m = HUE_RE.exec(str);\n let a = 255;\n let v;\n if (!m) {\n return;\n }\n if (m[5] !== v) {\n a = m[6] ? p2b(+m[5]) : n2b(+m[5]);\n }\n const h = hue(+m[2]);\n const p1 = +m[3] / 100;\n const p2 = +m[4] / 100;\n if (m[1] === 'hwb') {\n v = hwb2rgb(h, p1, p2);\n } else if (m[1] === 'hsv') {\n v = hsv2rgb(h, p1, p2);\n } else {\n v = hsl2rgb(h, p1, p2);\n }\n return {\n r: v[0],\n g: v[1],\n b: v[2],\n a: a\n };\n}\nfunction rotate(v, deg) {\n var h = rgb2hsl(v);\n h[0] = hue(h[0] + deg);\n h = hsl2rgb(h);\n v.r = h[0];\n v.g = h[1];\n v.b = h[2];\n}\nfunction hslString(v) {\n if (!v) {\n return;\n }\n const a = rgb2hsl(v);\n const h = a[0];\n const s = n2p(a[1]);\n const l = n2p(a[2]);\n return v.a < 255\n ? `hsla(${h}, ${s}%, ${l}%, ${b2n(v.a)})`\n : `hsl(${h}, ${s}%, ${l}%)`;\n}\nconst map$2 = {\n x: 'dark',\n Z: 'light',\n Y: 're',\n X: 'blu',\n W: 'gr',\n V: 'medium',\n U: 'slate',\n A: 'ee',\n T: 'ol',\n S: 'or',\n B: 'ra',\n C: 'lateg',\n D: 'ights',\n R: 'in',\n Q: 'turquois',\n E: 'hi',\n P: 'ro',\n O: 'al',\n N: 'le',\n M: 'de',\n L: 'yello',\n F: 'en',\n K: 'ch',\n G: 'arks',\n H: 'ea',\n I: 'ightg',\n J: 'wh'\n};\nconst names$1 = {\n OiceXe: 'f0f8ff',\n antiquewEte: 'faebd7',\n aqua: 'ffff',\n aquamarRe: '7fffd4',\n azuY: 'f0ffff',\n beige: 'f5f5dc',\n bisque: 'ffe4c4',\n black: '0',\n blanKedOmond: 'ffebcd',\n Xe: 'ff',\n XeviTet: '8a2be2',\n bPwn: 'a52a2a',\n burlywood: 'deb887',\n caMtXe: '5f9ea0',\n KartYuse: '7fff00',\n KocTate: 'd2691e',\n cSO: 'ff7f50',\n cSnflowerXe: '6495ed',\n cSnsilk: 'fff8dc',\n crimson: 'dc143c',\n cyan: 'ffff',\n xXe: '8b',\n xcyan: '8b8b',\n xgTMnPd: 'b8860b',\n xWay: 'a9a9a9',\n xgYF: '6400',\n xgYy: 'a9a9a9',\n xkhaki: 'bdb76b',\n xmagFta: '8b008b',\n xTivegYF: '556b2f',\n xSange: 'ff8c00',\n xScEd: '9932cc',\n xYd: '8b0000',\n xsOmon: 'e9967a',\n xsHgYF: '8fbc8f',\n xUXe: '483d8b',\n xUWay: '2f4f4f',\n xUgYy: '2f4f4f',\n xQe: 'ced1',\n xviTet: '9400d3',\n dAppRk: 'ff1493',\n dApskyXe: 'bfff',\n dimWay: '696969',\n dimgYy: '696969',\n dodgerXe: '1e90ff',\n fiYbrick: 'b22222',\n flSOwEte: 'fffaf0',\n foYstWAn: '228b22',\n fuKsia: 'ff00ff',\n gaRsbSo: 'dcdcdc',\n ghostwEte: 'f8f8ff',\n gTd: 'ffd700',\n gTMnPd: 'daa520',\n Way: '808080',\n gYF: '8000',\n gYFLw: 'adff2f',\n gYy: '808080',\n honeyMw: 'f0fff0',\n hotpRk: 'ff69b4',\n RdianYd: 'cd5c5c',\n Rdigo: '4b0082',\n ivSy: 'fffff0',\n khaki: 'f0e68c',\n lavFMr: 'e6e6fa',\n lavFMrXsh: 'fff0f5',\n lawngYF: '7cfc00',\n NmoncEffon: 'fffacd',\n ZXe: 'add8e6',\n ZcSO: 'f08080',\n Zcyan: 'e0ffff',\n ZgTMnPdLw: 'fafad2',\n ZWay: 'd3d3d3',\n ZgYF: '90ee90',\n ZgYy: 'd3d3d3',\n ZpRk: 'ffb6c1',\n ZsOmon: 'ffa07a',\n ZsHgYF: '20b2aa',\n ZskyXe: '87cefa',\n ZUWay: '778899',\n ZUgYy: '778899',\n ZstAlXe: 'b0c4de',\n ZLw: 'ffffe0',\n lime: 'ff00',\n limegYF: '32cd32',\n lRF: 'faf0e6',\n magFta: 'ff00ff',\n maPon: '800000',\n VaquamarRe: '66cdaa',\n VXe: 'cd',\n VScEd: 'ba55d3',\n VpurpN: '9370db',\n VsHgYF: '3cb371',\n VUXe: '7b68ee',\n VsprRggYF: 'fa9a',\n VQe: '48d1cc',\n VviTetYd: 'c71585',\n midnightXe: '191970',\n mRtcYam: 'f5fffa',\n mistyPse: 'ffe4e1',\n moccasR: 'ffe4b5',\n navajowEte: 'ffdead',\n navy: '80',\n Tdlace: 'fdf5e6',\n Tive: '808000',\n TivedBb: '6b8e23',\n Sange: 'ffa500',\n SangeYd: 'ff4500',\n ScEd: 'da70d6',\n pOegTMnPd: 'eee8aa',\n pOegYF: '98fb98',\n pOeQe: 'afeeee',\n pOeviTetYd: 'db7093',\n papayawEp: 'ffefd5',\n pHKpuff: 'ffdab9',\n peru: 'cd853f',\n pRk: 'ffc0cb',\n plum: 'dda0dd',\n powMrXe: 'b0e0e6',\n purpN: '800080',\n YbeccapurpN: '663399',\n Yd: 'ff0000',\n Psybrown: 'bc8f8f',\n PyOXe: '4169e1',\n saddNbPwn: '8b4513',\n sOmon: 'fa8072',\n sandybPwn: 'f4a460',\n sHgYF: '2e8b57',\n sHshell: 'fff5ee',\n siFna: 'a0522d',\n silver: 'c0c0c0',\n skyXe: '87ceeb',\n UXe: '6a5acd',\n UWay: '708090',\n UgYy: '708090',\n snow: 'fffafa',\n sprRggYF: 'ff7f',\n stAlXe: '4682b4',\n tan: 'd2b48c',\n teO: '8080',\n tEstN: 'd8bfd8',\n tomato: 'ff6347',\n Qe: '40e0d0',\n viTet: 'ee82ee',\n JHt: 'f5deb3',\n wEte: 'ffffff',\n wEtesmoke: 'f5f5f5',\n Lw: 'ffff00',\n LwgYF: '9acd32'\n};\nfunction unpack() {\n const unpacked = {};\n const keys = Object.keys(names$1);\n const tkeys = Object.keys(map$2);\n let i, j, k, ok, nk;\n for (i = 0; i < keys.length; i++) {\n ok = nk = keys[i];\n for (j = 0; j < tkeys.length; j++) {\n k = tkeys[j];\n nk = nk.replace(k, map$2[k]);\n }\n k = parseInt(names$1[ok], 16);\n unpacked[nk] = [k >> 16 & 0xFF, k >> 8 & 0xFF, k & 0xFF];\n }\n return unpacked;\n}\nlet names;\nfunction nameParse(str) {\n if (!names) {\n names = unpack();\n names.transparent = [0, 0, 0, 0];\n }\n const a = names[str.toLowerCase()];\n return a && {\n r: a[0],\n g: a[1],\n b: a[2],\n a: a.length === 4 ? a[3] : 255\n };\n}\nconst RGB_RE = /^rgba?\\(\\s*([-+.\\d]+)(%)?[\\s,]+([-+.e\\d]+)(%)?[\\s,]+([-+.e\\d]+)(%)?(?:[\\s,/]+([-+.e\\d]+)(%)?)?\\s*\\)$/;\nfunction rgbParse(str) {\n const m = RGB_RE.exec(str);\n let a = 255;\n let r, g, b;\n if (!m) {\n return;\n }\n if (m[7] !== r) {\n const v = +m[7];\n a = m[8] ? p2b(v) : lim(v * 255, 0, 255);\n }\n r = +m[1];\n g = +m[3];\n b = +m[5];\n r = 255 & (m[2] ? p2b(r) : lim(r, 0, 255));\n g = 255 & (m[4] ? p2b(g) : lim(g, 0, 255));\n b = 255 & (m[6] ? p2b(b) : lim(b, 0, 255));\n return {\n r: r,\n g: g,\n b: b,\n a: a\n };\n}\nfunction rgbString(v) {\n return v && (\n v.a < 255\n ? `rgba(${v.r}, ${v.g}, ${v.b}, ${b2n(v.a)})`\n : `rgb(${v.r}, ${v.g}, ${v.b})`\n );\n}\nconst to = v => v <= 0.0031308 ? v * 12.92 : Math.pow(v, 1.0 / 2.4) * 1.055 - 0.055;\nconst from = v => v <= 0.04045 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4);\nfunction interpolate$1(rgb1, rgb2, t) {\n const r = from(b2n(rgb1.r));\n const g = from(b2n(rgb1.g));\n const b = from(b2n(rgb1.b));\n return {\n r: n2b(to(r + t * (from(b2n(rgb2.r)) - r))),\n g: n2b(to(g + t * (from(b2n(rgb2.g)) - g))),\n b: n2b(to(b + t * (from(b2n(rgb2.b)) - b))),\n a: rgb1.a + t * (rgb2.a - rgb1.a)\n };\n}\nfunction modHSL(v, i, ratio) {\n if (v) {\n let tmp = rgb2hsl(v);\n tmp[i] = Math.max(0, Math.min(tmp[i] + tmp[i] * ratio, i === 0 ? 360 : 1));\n tmp = hsl2rgb(tmp);\n v.r = tmp[0];\n v.g = tmp[1];\n v.b = tmp[2];\n }\n}\nfunction clone(v, proto) {\n return v ? Object.assign(proto || {}, v) : v;\n}\nfunction fromObject(input) {\n var v = {r: 0, g: 0, b: 0, a: 255};\n if (Array.isArray(input)) {\n if (input.length >= 3) {\n v = {r: input[0], g: input[1], b: input[2], a: 255};\n if (input.length > 3) {\n v.a = n2b(input[3]);\n }\n }\n } else {\n v = clone(input, {r: 0, g: 0, b: 0, a: 1});\n v.a = n2b(v.a);\n }\n return v;\n}\nfunction functionParse(str) {\n if (str.charAt(0) === 'r') {\n return rgbParse(str);\n }\n return hueParse(str);\n}\nclass Color {\n constructor(input) {\n if (input instanceof Color) {\n return input;\n }\n const type = typeof input;\n let v;\n if (type === 'object') {\n v = fromObject(input);\n } else if (type === 'string') {\n v = hexParse(input) || nameParse(input) || functionParse(input);\n }\n this._rgb = v;\n this._valid = !!v;\n }\n get valid() {\n return this._valid;\n }\n get rgb() {\n var v = clone(this._rgb);\n if (v) {\n v.a = b2n(v.a);\n }\n return v;\n }\n set rgb(obj) {\n this._rgb = fromObject(obj);\n }\n rgbString() {\n return this._valid ? rgbString(this._rgb) : undefined;\n }\n hexString() {\n return this._valid ? hexString(this._rgb) : undefined;\n }\n hslString() {\n return this._valid ? hslString(this._rgb) : undefined;\n }\n mix(color, weight) {\n if (color) {\n const c1 = this.rgb;\n const c2 = color.rgb;\n let w2;\n const p = weight === w2 ? 0.5 : weight;\n const w = 2 * p - 1;\n const a = c1.a - c2.a;\n const w1 = ((w * a === -1 ? w : (w + a) / (1 + w * a)) + 1) / 2.0;\n w2 = 1 - w1;\n c1.r = 0xFF & w1 * c1.r + w2 * c2.r + 0.5;\n c1.g = 0xFF & w1 * c1.g + w2 * c2.g + 0.5;\n c1.b = 0xFF & w1 * c1.b + w2 * c2.b + 0.5;\n c1.a = p * c1.a + (1 - p) * c2.a;\n this.rgb = c1;\n }\n return this;\n }\n interpolate(color, t) {\n if (color) {\n this._rgb = interpolate$1(this._rgb, color._rgb, t);\n }\n return this;\n }\n clone() {\n return new Color(this.rgb);\n }\n alpha(a) {\n this._rgb.a = n2b(a);\n return this;\n }\n clearer(ratio) {\n const rgb = this._rgb;\n rgb.a *= 1 - ratio;\n return this;\n }\n greyscale() {\n const rgb = this._rgb;\n const val = round(rgb.r * 0.3 + rgb.g * 0.59 + rgb.b * 0.11);\n rgb.r = rgb.g = rgb.b = val;\n return this;\n }\n opaquer(ratio) {\n const rgb = this._rgb;\n rgb.a *= 1 + ratio;\n return this;\n }\n negate() {\n const v = this._rgb;\n v.r = 255 - v.r;\n v.g = 255 - v.g;\n v.b = 255 - v.b;\n return this;\n }\n lighten(ratio) {\n modHSL(this._rgb, 2, ratio);\n return this;\n }\n darken(ratio) {\n modHSL(this._rgb, 2, -ratio);\n return this;\n }\n saturate(ratio) {\n modHSL(this._rgb, 1, ratio);\n return this;\n }\n desaturate(ratio) {\n modHSL(this._rgb, 1, -ratio);\n return this;\n }\n rotate(deg) {\n rotate(this._rgb, deg);\n return this;\n }\n}\nfunction index_esm(input) {\n return new Color(input);\n}\n\nfunction isPatternOrGradient(value) {\n if (value && typeof value === 'object') {\n const type = value.toString();\n return type === '[object CanvasPattern]' || type === '[object CanvasGradient]';\n }\n return false;\n}\nfunction color(value) {\n return isPatternOrGradient(value) ? value : index_esm(value);\n}\nfunction getHoverColor(value) {\n return isPatternOrGradient(value)\n ? value\n : index_esm(value).saturate(0.5).darken(0.1).hexString();\n}\n\nconst overrides = Object.create(null);\nconst descriptors = Object.create(null);\nfunction getScope$1(node, key) {\n if (!key) {\n return node;\n }\n const keys = key.split('.');\n for (let i = 0, n = keys.length; i < n; ++i) {\n const k = keys[i];\n node = node[k] || (node[k] = Object.create(null));\n }\n return node;\n}\nfunction set(root, scope, values) {\n if (typeof scope === 'string') {\n return merge(getScope$1(root, scope), values);\n }\n return merge(getScope$1(root, ''), scope);\n}\nclass Defaults {\n constructor(_descriptors) {\n this.animation = undefined;\n this.backgroundColor = 'rgba(0,0,0,0.1)';\n this.borderColor = 'rgba(0,0,0,0.1)';\n this.color = '#666';\n this.datasets = {};\n this.devicePixelRatio = (context) => context.chart.platform.getDevicePixelRatio();\n this.elements = {};\n this.events = [\n 'mousemove',\n 'mouseout',\n 'click',\n 'touchstart',\n 'touchmove'\n ];\n this.font = {\n family: \"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",\n size: 12,\n style: 'normal',\n lineHeight: 1.2,\n weight: null\n };\n this.hover = {};\n this.hoverBackgroundColor = (ctx, options) => getHoverColor(options.backgroundColor);\n this.hoverBorderColor = (ctx, options) => getHoverColor(options.borderColor);\n this.hoverColor = (ctx, options) => getHoverColor(options.color);\n this.indexAxis = 'x';\n this.interaction = {\n mode: 'nearest',\n intersect: true,\n includeInvisible: false\n };\n this.maintainAspectRatio = true;\n this.onHover = null;\n this.onClick = null;\n this.parsing = true;\n this.plugins = {};\n this.responsive = true;\n this.scale = undefined;\n this.scales = {};\n this.showLine = true;\n this.drawActiveElementsOnTop = true;\n this.describe(_descriptors);\n }\n set(scope, values) {\n return set(this, scope, values);\n }\n get(scope) {\n return getScope$1(this, scope);\n }\n describe(scope, values) {\n return set(descriptors, scope, values);\n }\n override(scope, values) {\n return set(overrides, scope, values);\n }\n route(scope, name, targetScope, targetName) {\n const scopeObject = getScope$1(this, scope);\n const targetScopeObject = getScope$1(this, targetScope);\n const privateName = '_' + name;\n Object.defineProperties(scopeObject, {\n [privateName]: {\n value: scopeObject[name],\n writable: true\n },\n [name]: {\n enumerable: true,\n get() {\n const local = this[privateName];\n const target = targetScopeObject[targetName];\n if (isObject(local)) {\n return Object.assign({}, target, local);\n }\n return valueOrDefault(local, target);\n },\n set(value) {\n this[privateName] = value;\n }\n }\n });\n }\n}\nvar defaults = new Defaults({\n _scriptable: (name) => !name.startsWith('on'),\n _indexable: (name) => name !== 'events',\n hover: {\n _fallback: 'interaction'\n },\n interaction: {\n _scriptable: false,\n _indexable: false,\n }\n});\n\nfunction _isDomSupported() {\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}\nfunction _getParentNode(domNode) {\n let parent = domNode.parentNode;\n if (parent && parent.toString() === '[object ShadowRoot]') {\n parent = parent.host;\n }\n return parent;\n}\nfunction parseMaxStyle(styleValue, node, parentProperty) {\n let valueInPixels;\n if (typeof styleValue === 'string') {\n valueInPixels = parseInt(styleValue, 10);\n if (styleValue.indexOf('%') !== -1) {\n valueInPixels = valueInPixels / 100 * node.parentNode[parentProperty];\n }\n } else {\n valueInPixels = styleValue;\n }\n return valueInPixels;\n}\nconst getComputedStyle = (element) => window.getComputedStyle(element, null);\nfunction getStyle(el, property) {\n return getComputedStyle(el).getPropertyValue(property);\n}\nconst positions = ['top', 'right', 'bottom', 'left'];\nfunction getPositionedStyle(styles, style, suffix) {\n const result = {};\n suffix = suffix ? '-' + suffix : '';\n for (let i = 0; i < 4; i++) {\n const pos = positions[i];\n result[pos] = parseFloat(styles[style + '-' + pos + suffix]) || 0;\n }\n result.width = result.left + result.right;\n result.height = result.top + result.bottom;\n return result;\n}\nconst useOffsetPos = (x, y, target) => (x > 0 || y > 0) && (!target || !target.shadowRoot);\nfunction getCanvasPosition(e, canvas) {\n const touches = e.touches;\n const source = touches && touches.length ? touches[0] : e;\n const {offsetX, offsetY} = source;\n let box = false;\n let x, y;\n if (useOffsetPos(offsetX, offsetY, e.target)) {\n x = offsetX;\n y = offsetY;\n } else {\n const rect = canvas.getBoundingClientRect();\n x = source.clientX - rect.left;\n y = source.clientY - rect.top;\n box = true;\n }\n return {x, y, box};\n}\nfunction getRelativePosition(evt, chart) {\n if ('native' in evt) {\n return evt;\n }\n const {canvas, currentDevicePixelRatio} = chart;\n const style = getComputedStyle(canvas);\n const borderBox = style.boxSizing === 'border-box';\n const paddings = getPositionedStyle(style, 'padding');\n const borders = getPositionedStyle(style, 'border', 'width');\n const {x, y, box} = getCanvasPosition(evt, canvas);\n const xOffset = paddings.left + (box && borders.left);\n const yOffset = paddings.top + (box && borders.top);\n let {width, height} = chart;\n if (borderBox) {\n width -= paddings.width + borders.width;\n height -= paddings.height + borders.height;\n }\n return {\n x: Math.round((x - xOffset) / width * canvas.width / currentDevicePixelRatio),\n y: Math.round((y - yOffset) / height * canvas.height / currentDevicePixelRatio)\n };\n}\nfunction getContainerSize(canvas, width, height) {\n let maxWidth, maxHeight;\n if (width === undefined || height === undefined) {\n const container = _getParentNode(canvas);\n if (!container) {\n width = canvas.clientWidth;\n height = canvas.clientHeight;\n } else {\n const rect = container.getBoundingClientRect();\n const containerStyle = getComputedStyle(container);\n const containerBorder = getPositionedStyle(containerStyle, 'border', 'width');\n const containerPadding = getPositionedStyle(containerStyle, 'padding');\n width = rect.width - containerPadding.width - containerBorder.width;\n height = rect.height - containerPadding.height - containerBorder.height;\n maxWidth = parseMaxStyle(containerStyle.maxWidth, container, 'clientWidth');\n maxHeight = parseMaxStyle(containerStyle.maxHeight, container, 'clientHeight');\n }\n }\n return {\n width,\n height,\n maxWidth: maxWidth || INFINITY,\n maxHeight: maxHeight || INFINITY\n };\n}\nconst round1 = v => Math.round(v * 10) / 10;\nfunction getMaximumSize(canvas, bbWidth, bbHeight, aspectRatio) {\n const style = getComputedStyle(canvas);\n const margins = getPositionedStyle(style, 'margin');\n const maxWidth = parseMaxStyle(style.maxWidth, canvas, 'clientWidth') || INFINITY;\n const maxHeight = parseMaxStyle(style.maxHeight, canvas, 'clientHeight') || INFINITY;\n const containerSize = getContainerSize(canvas, bbWidth, bbHeight);\n let {width, height} = containerSize;\n if (style.boxSizing === 'content-box') {\n const borders = getPositionedStyle(style, 'border', 'width');\n const paddings = getPositionedStyle(style, 'padding');\n width -= paddings.width + borders.width;\n height -= paddings.height + borders.height;\n }\n width = Math.max(0, width - margins.width);\n height = Math.max(0, aspectRatio ? Math.floor(width / aspectRatio) : height - margins.height);\n width = round1(Math.min(width, maxWidth, containerSize.maxWidth));\n height = round1(Math.min(height, maxHeight, containerSize.maxHeight));\n if (width && !height) {\n height = round1(width / 2);\n }\n return {\n width,\n height\n };\n}\nfunction retinaScale(chart, forceRatio, forceStyle) {\n const pixelRatio = forceRatio || 1;\n const deviceHeight = Math.floor(chart.height * pixelRatio);\n const deviceWidth = Math.floor(chart.width * pixelRatio);\n chart.height = deviceHeight / pixelRatio;\n chart.width = deviceWidth / pixelRatio;\n const canvas = chart.canvas;\n if (canvas.style && (forceStyle || (!canvas.style.height && !canvas.style.width))) {\n canvas.style.height = `${chart.height}px`;\n canvas.style.width = `${chart.width}px`;\n }\n if (chart.currentDevicePixelRatio !== pixelRatio\n || canvas.height !== deviceHeight\n || canvas.width !== deviceWidth) {\n chart.currentDevicePixelRatio = pixelRatio;\n canvas.height = deviceHeight;\n canvas.width = deviceWidth;\n chart.ctx.setTransform(pixelRatio, 0, 0, pixelRatio, 0, 0);\n return true;\n }\n return false;\n}\nconst supportsEventListenerOptions = (function() {\n let passiveSupported = false;\n try {\n const options = {\n get passive() {\n passiveSupported = true;\n return false;\n }\n };\n window.addEventListener('test', null, options);\n window.removeEventListener('test', null, options);\n } catch (e) {\n }\n return passiveSupported;\n}());\nfunction readUsedSize(element, property) {\n const value = getStyle(element, property);\n const matches = value && value.match(/^(\\d+)(\\.\\d+)?px$/);\n return matches ? +matches[1] : undefined;\n}\n\nfunction toFontString(font) {\n if (!font || isNullOrUndef(font.size) || isNullOrUndef(font.family)) {\n return null;\n }\n return (font.style ? font.style + ' ' : '')\n\t\t+ (font.weight ? font.weight + ' ' : '')\n\t\t+ font.size + 'px '\n\t\t+ font.family;\n}\nfunction _measureText(ctx, data, gc, longest, string) {\n let textWidth = data[string];\n if (!textWidth) {\n textWidth = data[string] = ctx.measureText(string).width;\n gc.push(string);\n }\n if (textWidth > longest) {\n longest = textWidth;\n }\n return longest;\n}\nfunction _longestText(ctx, font, arrayOfThings, cache) {\n cache = cache || {};\n let data = cache.data = cache.data || {};\n let gc = cache.garbageCollect = cache.garbageCollect || [];\n if (cache.font !== font) {\n data = cache.data = {};\n gc = cache.garbageCollect = [];\n cache.font = font;\n }\n ctx.save();\n ctx.font = font;\n let longest = 0;\n const ilen = arrayOfThings.length;\n let i, j, jlen, thing, nestedThing;\n for (i = 0; i < ilen; i++) {\n thing = arrayOfThings[i];\n if (thing !== undefined && thing !== null && isArray(thing) !== true) {\n longest = _measureText(ctx, data, gc, longest, thing);\n } else if (isArray(thing)) {\n for (j = 0, jlen = thing.length; j < jlen; j++) {\n nestedThing = thing[j];\n if (nestedThing !== undefined && nestedThing !== null && !isArray(nestedThing)) {\n longest = _measureText(ctx, data, gc, longest, nestedThing);\n }\n }\n }\n }\n ctx.restore();\n const gcLen = gc.length / 2;\n if (gcLen > arrayOfThings.length) {\n for (i = 0; i < gcLen; i++) {\n delete data[gc[i]];\n }\n gc.splice(0, gcLen);\n }\n return longest;\n}\nfunction _alignPixel(chart, pixel, width) {\n const devicePixelRatio = chart.currentDevicePixelRatio;\n const halfWidth = width !== 0 ? Math.max(width / 2, 0.5) : 0;\n return Math.round((pixel - halfWidth) * devicePixelRatio) / devicePixelRatio + halfWidth;\n}\nfunction clearCanvas(canvas, ctx) {\n ctx = ctx || canvas.getContext('2d');\n ctx.save();\n ctx.resetTransform();\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n ctx.restore();\n}\nfunction drawPoint(ctx, options, x, y) {\n drawPointLegend(ctx, options, x, y, null);\n}\nfunction drawPointLegend(ctx, options, x, y, w) {\n let type, xOffset, yOffset, size, cornerRadius, width;\n const style = options.pointStyle;\n const rotation = options.rotation;\n const radius = options.radius;\n let rad = (rotation || 0) * RAD_PER_DEG;\n if (style && typeof style === 'object') {\n type = style.toString();\n if (type === '[object HTMLImageElement]' || type === '[object HTMLCanvasElement]') {\n ctx.save();\n ctx.translate(x, y);\n ctx.rotate(rad);\n ctx.drawImage(style, -style.width / 2, -style.height / 2, style.width, style.height);\n ctx.restore();\n return;\n }\n }\n if (isNaN(radius) || radius <= 0) {\n return;\n }\n ctx.beginPath();\n switch (style) {\n default:\n if (w) {\n ctx.ellipse(x, y, w / 2, radius, 0, 0, TAU);\n } else {\n ctx.arc(x, y, radius, 0, TAU);\n }\n ctx.closePath();\n break;\n case 'triangle':\n ctx.moveTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);\n rad += TWO_THIRDS_PI;\n ctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);\n rad += TWO_THIRDS_PI;\n ctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);\n ctx.closePath();\n break;\n case 'rectRounded':\n cornerRadius = radius * 0.516;\n size = radius - cornerRadius;\n xOffset = Math.cos(rad + QUARTER_PI) * size;\n yOffset = Math.sin(rad + QUARTER_PI) * size;\n ctx.arc(x - xOffset, y - yOffset, cornerRadius, rad - PI, rad - HALF_PI);\n ctx.arc(x + yOffset, y - xOffset, cornerRadius, rad - HALF_PI, rad);\n ctx.arc(x + xOffset, y + yOffset, cornerRadius, rad, rad + HALF_PI);\n ctx.arc(x - yOffset, y + xOffset, cornerRadius, rad + HALF_PI, rad + PI);\n ctx.closePath();\n break;\n case 'rect':\n if (!rotation) {\n size = Math.SQRT1_2 * radius;\n width = w ? w / 2 : size;\n ctx.rect(x - width, y - size, 2 * width, 2 * size);\n break;\n }\n rad += QUARTER_PI;\n case 'rectRot':\n xOffset = Math.cos(rad) * radius;\n yOffset = Math.sin(rad) * radius;\n ctx.moveTo(x - xOffset, y - yOffset);\n ctx.lineTo(x + yOffset, y - xOffset);\n ctx.lineTo(x + xOffset, y + yOffset);\n ctx.lineTo(x - yOffset, y + xOffset);\n ctx.closePath();\n break;\n case 'crossRot':\n rad += QUARTER_PI;\n case 'cross':\n xOffset = Math.cos(rad) * radius;\n yOffset = Math.sin(rad) * radius;\n ctx.moveTo(x - xOffset, y - yOffset);\n ctx.lineTo(x + xOffset, y + yOffset);\n ctx.moveTo(x + yOffset, y - xOffset);\n ctx.lineTo(x - yOffset, y + xOffset);\n break;\n case 'star':\n xOffset = Math.cos(rad) * radius;\n yOffset = Math.sin(rad) * radius;\n ctx.moveTo(x - xOffset, y - yOffset);\n ctx.lineTo(x + xOffset, y + yOffset);\n ctx.moveTo(x + yOffset, y - xOffset);\n ctx.lineTo(x - yOffset, y + xOffset);\n rad += QUARTER_PI;\n xOffset = Math.cos(rad) * radius;\n yOffset = Math.sin(rad) * radius;\n ctx.moveTo(x - xOffset, y - yOffset);\n ctx.lineTo(x + xOffset, y + yOffset);\n ctx.moveTo(x + yOffset, y - xOffset);\n ctx.lineTo(x - yOffset, y + xOffset);\n break;\n case 'line':\n xOffset = w ? w / 2 : Math.cos(rad) * radius;\n yOffset = Math.sin(rad) * radius;\n ctx.moveTo(x - xOffset, y - yOffset);\n ctx.lineTo(x + xOffset, y + yOffset);\n break;\n case 'dash':\n ctx.moveTo(x, y);\n ctx.lineTo(x + Math.cos(rad) * radius, y + Math.sin(rad) * radius);\n break;\n }\n ctx.fill();\n if (options.borderWidth > 0) {\n ctx.stroke();\n }\n}\nfunction _isPointInArea(point, area, margin) {\n margin = margin || 0.5;\n return !area || (point && point.x > area.left - margin && point.x < area.right + margin &&\n\t\tpoint.y > area.top - margin && point.y < area.bottom + margin);\n}\nfunction clipArea(ctx, area) {\n ctx.save();\n ctx.beginPath();\n ctx.rect(area.left, area.top, area.right - area.left, area.bottom - area.top);\n ctx.clip();\n}\nfunction unclipArea(ctx) {\n ctx.restore();\n}\nfunction _steppedLineTo(ctx, previous, target, flip, mode) {\n if (!previous) {\n return ctx.lineTo(target.x, target.y);\n }\n if (mode === 'middle') {\n const midpoint = (previous.x + target.x) / 2.0;\n ctx.lineTo(midpoint, previous.y);\n ctx.lineTo(midpoint, target.y);\n } else if (mode === 'after' !== !!flip) {\n ctx.lineTo(previous.x, target.y);\n } else {\n ctx.lineTo(target.x, previous.y);\n }\n ctx.lineTo(target.x, target.y);\n}\nfunction _bezierCurveTo(ctx, previous, target, flip) {\n if (!previous) {\n return ctx.lineTo(target.x, target.y);\n }\n ctx.bezierCurveTo(\n flip ? previous.cp1x : previous.cp2x,\n flip ? previous.cp1y : previous.cp2y,\n flip ? target.cp2x : target.cp1x,\n flip ? target.cp2y : target.cp1y,\n target.x,\n target.y);\n}\nfunction renderText(ctx, text, x, y, font, opts = {}) {\n const lines = isArray(text) ? text : [text];\n const stroke = opts.strokeWidth > 0 && opts.strokeColor !== '';\n let i, line;\n ctx.save();\n ctx.font = font.string;\n setRenderOpts(ctx, opts);\n for (i = 0; i < lines.length; ++i) {\n line = lines[i];\n if (stroke) {\n if (opts.strokeColor) {\n ctx.strokeStyle = opts.strokeColor;\n }\n if (!isNullOrUndef(opts.strokeWidth)) {\n ctx.lineWidth = opts.strokeWidth;\n }\n ctx.strokeText(line, x, y, opts.maxWidth);\n }\n ctx.fillText(line, x, y, opts.maxWidth);\n decorateText(ctx, x, y, line, opts);\n y += font.lineHeight;\n }\n ctx.restore();\n}\nfunction setRenderOpts(ctx, opts) {\n if (opts.translation) {\n ctx.translate(opts.translation[0], opts.translation[1]);\n }\n if (!isNullOrUndef(opts.rotation)) {\n ctx.rotate(opts.rotation);\n }\n if (opts.color) {\n ctx.fillStyle = opts.color;\n }\n if (opts.textAlign) {\n ctx.textAlign = opts.textAlign;\n }\n if (opts.textBaseline) {\n ctx.textBaseline = opts.textBaseline;\n }\n}\nfunction decorateText(ctx, x, y, line, opts) {\n if (opts.strikethrough || opts.underline) {\n const metrics = ctx.measureText(line);\n const left = x - metrics.actualBoundingBoxLeft;\n const right = x + metrics.actualBoundingBoxRight;\n const top = y - metrics.actualBoundingBoxAscent;\n const bottom = y + metrics.actualBoundingBoxDescent;\n const yDecoration = opts.strikethrough ? (top + bottom) / 2 : bottom;\n ctx.strokeStyle = ctx.fillStyle;\n ctx.beginPath();\n ctx.lineWidth = opts.decorationWidth || 2;\n ctx.moveTo(left, yDecoration);\n ctx.lineTo(right, yDecoration);\n ctx.stroke();\n }\n}\nfunction addRoundedRectPath(ctx, rect) {\n const {x, y, w, h, radius} = rect;\n ctx.arc(x + radius.topLeft, y + radius.topLeft, radius.topLeft, -HALF_PI, PI, true);\n ctx.lineTo(x, y + h - radius.bottomLeft);\n ctx.arc(x + radius.bottomLeft, y + h - radius.bottomLeft, radius.bottomLeft, PI, HALF_PI, true);\n ctx.lineTo(x + w - radius.bottomRight, y + h);\n ctx.arc(x + w - radius.bottomRight, y + h - radius.bottomRight, radius.bottomRight, HALF_PI, 0, true);\n ctx.lineTo(x + w, y + radius.topRight);\n ctx.arc(x + w - radius.topRight, y + radius.topRight, radius.topRight, 0, -HALF_PI, true);\n ctx.lineTo(x + radius.topLeft, y);\n}\n\nfunction _createResolver(scopes, prefixes = [''], rootScopes = scopes, fallback, getTarget = () => scopes[0]) {\n if (!defined(fallback)) {\n fallback = _resolve('_fallback', scopes);\n }\n const cache = {\n [Symbol.toStringTag]: 'Object',\n _cacheable: true,\n _scopes: scopes,\n _rootScopes: rootScopes,\n _fallback: fallback,\n _getTarget: getTarget,\n override: (scope) => _createResolver([scope, ...scopes], prefixes, rootScopes, fallback),\n };\n return new Proxy(cache, {\n deleteProperty(target, prop) {\n delete target[prop];\n delete target._keys;\n delete scopes[0][prop];\n return true;\n },\n get(target, prop) {\n return _cached(target, prop,\n () => _resolveWithPrefixes(prop, prefixes, scopes, target));\n },\n getOwnPropertyDescriptor(target, prop) {\n return Reflect.getOwnPropertyDescriptor(target._scopes[0], prop);\n },\n getPrototypeOf() {\n return Reflect.getPrototypeOf(scopes[0]);\n },\n has(target, prop) {\n return getKeysFromAllScopes(target).includes(prop);\n },\n ownKeys(target) {\n return getKeysFromAllScopes(target);\n },\n set(target, prop, value) {\n const storage = target._storage || (target._storage = getTarget());\n target[prop] = storage[prop] = value;\n delete target._keys;\n return true;\n }\n });\n}\nfunction _attachContext(proxy, context, subProxy, descriptorDefaults) {\n const cache = {\n _cacheable: false,\n _proxy: proxy,\n _context: context,\n _subProxy: subProxy,\n _stack: new Set(),\n _descriptors: _descriptors(proxy, descriptorDefaults),\n setContext: (ctx) => _attachContext(proxy, ctx, subProxy, descriptorDefaults),\n override: (scope) => _attachContext(proxy.override(scope), context, subProxy, descriptorDefaults)\n };\n return new Proxy(cache, {\n deleteProperty(target, prop) {\n delete target[prop];\n delete proxy[prop];\n return true;\n },\n get(target, prop, receiver) {\n return _cached(target, prop,\n () => _resolveWithContext(target, prop, receiver));\n },\n getOwnPropertyDescriptor(target, prop) {\n return target._descriptors.allKeys\n ? Reflect.has(proxy, prop) ? {enumerable: true, configurable: true} : undefined\n : Reflect.getOwnPropertyDescriptor(proxy, prop);\n },\n getPrototypeOf() {\n return Reflect.getPrototypeOf(proxy);\n },\n has(target, prop) {\n return Reflect.has(proxy, prop);\n },\n ownKeys() {\n return Reflect.ownKeys(proxy);\n },\n set(target, prop, value) {\n proxy[prop] = value;\n delete target[prop];\n return true;\n }\n });\n}\nfunction _descriptors(proxy, defaults = {scriptable: true, indexable: true}) {\n const {_scriptable = defaults.scriptable, _indexable = defaults.indexable, _allKeys = defaults.allKeys} = proxy;\n return {\n allKeys: _allKeys,\n scriptable: _scriptable,\n indexable: _indexable,\n isScriptable: isFunction(_scriptable) ? _scriptable : () => _scriptable,\n isIndexable: isFunction(_indexable) ? _indexable : () => _indexable\n };\n}\nconst readKey = (prefix, name) => prefix ? prefix + _capitalize(name) : name;\nconst needsSubResolver = (prop, value) => isObject(value) && prop !== 'adapters' &&\n (Object.getPrototypeOf(value) === null || value.constructor === Object);\nfunction _cached(target, prop, resolve) {\n if (Object.prototype.hasOwnProperty.call(target, prop)) {\n return target[prop];\n }\n const value = resolve();\n target[prop] = value;\n return value;\n}\nfunction _resolveWithContext(target, prop, receiver) {\n const {_proxy, _context, _subProxy, _descriptors: descriptors} = target;\n let value = _proxy[prop];\n if (isFunction(value) && descriptors.isScriptable(prop)) {\n value = _resolveScriptable(prop, value, target, receiver);\n }\n if (isArray(value) && value.length) {\n value = _resolveArray(prop, value, target, descriptors.isIndexable);\n }\n if (needsSubResolver(prop, value)) {\n value = _attachContext(value, _context, _subProxy && _subProxy[prop], descriptors);\n }\n return value;\n}\nfunction _resolveScriptable(prop, value, target, receiver) {\n const {_proxy, _context, _subProxy, _stack} = target;\n if (_stack.has(prop)) {\n throw new Error('Recursion detected: ' + Array.from(_stack).join('->') + '->' + prop);\n }\n _stack.add(prop);\n value = value(_context, _subProxy || receiver);\n _stack.delete(prop);\n if (needsSubResolver(prop, value)) {\n value = createSubResolver(_proxy._scopes, _proxy, prop, value);\n }\n return value;\n}\nfunction _resolveArray(prop, value, target, isIndexable) {\n const {_proxy, _context, _subProxy, _descriptors: descriptors} = target;\n if (defined(_context.index) && isIndexable(prop)) {\n value = value[_context.index % value.length];\n } else if (isObject(value[0])) {\n const arr = value;\n const scopes = _proxy._scopes.filter(s => s !== arr);\n value = [];\n for (const item of arr) {\n const resolver = createSubResolver(scopes, _proxy, prop, item);\n value.push(_attachContext(resolver, _context, _subProxy && _subProxy[prop], descriptors));\n }\n }\n return value;\n}\nfunction resolveFallback(fallback, prop, value) {\n return isFunction(fallback) ? fallback(prop, value) : fallback;\n}\nconst getScope = (key, parent) => key === true ? parent\n : typeof key === 'string' ? resolveObjectKey(parent, key) : undefined;\nfunction addScopes(set, parentScopes, key, parentFallback, value) {\n for (const parent of parentScopes) {\n const scope = getScope(key, parent);\n if (scope) {\n set.add(scope);\n const fallback = resolveFallback(scope._fallback, key, value);\n if (defined(fallback) && fallback !== key && fallback !== parentFallback) {\n return fallback;\n }\n } else if (scope === false && defined(parentFallback) && key !== parentFallback) {\n return null;\n }\n }\n return false;\n}\nfunction createSubResolver(parentScopes, resolver, prop, value) {\n const rootScopes = resolver._rootScopes;\n const fallback = resolveFallback(resolver._fallback, prop, value);\n const allScopes = [...parentScopes, ...rootScopes];\n const set = new Set();\n set.add(value);\n let key = addScopesFromKey(set, allScopes, prop, fallback || prop, value);\n if (key === null) {\n return false;\n }\n if (defined(fallback) && fallback !== prop) {\n key = addScopesFromKey(set, allScopes, fallback, key, value);\n if (key === null) {\n return false;\n }\n }\n return _createResolver(Array.from(set), [''], rootScopes, fallback,\n () => subGetTarget(resolver, prop, value));\n}\nfunction addScopesFromKey(set, allScopes, key, fallback, item) {\n while (key) {\n key = addScopes(set, allScopes, key, fallback, item);\n }\n return key;\n}\nfunction subGetTarget(resolver, prop, value) {\n const parent = resolver._getTarget();\n if (!(prop in parent)) {\n parent[prop] = {};\n }\n const target = parent[prop];\n if (isArray(target) && isObject(value)) {\n return value;\n }\n return target;\n}\nfunction _resolveWithPrefixes(prop, prefixes, scopes, proxy) {\n let value;\n for (const prefix of prefixes) {\n value = _resolve(readKey(prefix, prop), scopes);\n if (defined(value)) {\n return needsSubResolver(prop, value)\n ? createSubResolver(scopes, proxy, prop, value)\n : value;\n }\n }\n}\nfunction _resolve(key, scopes) {\n for (const scope of scopes) {\n if (!scope) {\n continue;\n }\n const value = scope[key];\n if (defined(value)) {\n return value;\n }\n }\n}\nfunction getKeysFromAllScopes(target) {\n let keys = target._keys;\n if (!keys) {\n keys = target._keys = resolveKeysFromAllScopes(target._scopes);\n }\n return keys;\n}\nfunction resolveKeysFromAllScopes(scopes) {\n const set = new Set();\n for (const scope of scopes) {\n for (const key of Object.keys(scope).filter(k => !k.startsWith('_'))) {\n set.add(key);\n }\n }\n return Array.from(set);\n}\nfunction _parseObjectDataRadialScale(meta, data, start, count) {\n const {iScale} = meta;\n const {key = 'r'} = 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 r: iScale.parse(resolveObjectKey(item, key), index)\n };\n }\n return parsed;\n}\n\nconst EPSILON = Number.EPSILON || 1e-14;\nconst getPoint = (points, i) => i < points.length && !points[i].skip && points[i];\nconst getValueAxis = (indexAxis) => indexAxis === 'x' ? 'y' : 'x';\nfunction splineCurve(firstPoint, middlePoint, afterPoint, t) {\n const previous = firstPoint.skip ? middlePoint : firstPoint;\n const current = middlePoint;\n const next = afterPoint.skip ? middlePoint : afterPoint;\n const d01 = distanceBetweenPoints(current, previous);\n const d12 = distanceBetweenPoints(next, current);\n let s01 = d01 / (d01 + d12);\n let s12 = d12 / (d01 + d12);\n s01 = isNaN(s01) ? 0 : s01;\n s12 = isNaN(s12) ? 0 : s12;\n const fa = t * s01;\n const fb = t * s12;\n return {\n previous: {\n x: current.x - fa * (next.x - previous.x),\n y: current.y - fa * (next.y - previous.y)\n },\n next: {\n x: current.x + fb * (next.x - previous.x),\n y: current.y + fb * (next.y - previous.y)\n }\n };\n}\nfunction monotoneAdjust(points, deltaK, mK) {\n const pointsLen = points.length;\n let alphaK, betaK, tauK, squaredMagnitude, pointCurrent;\n let pointAfter = getPoint(points, 0);\n for (let i = 0; i < pointsLen - 1; ++i) {\n pointCurrent = pointAfter;\n pointAfter = getPoint(points, i + 1);\n if (!pointCurrent || !pointAfter) {\n continue;\n }\n if (almostEquals(deltaK[i], 0, EPSILON)) {\n mK[i] = mK[i + 1] = 0;\n continue;\n }\n alphaK = mK[i] / deltaK[i];\n betaK = mK[i + 1] / deltaK[i];\n squaredMagnitude = Math.pow(alphaK, 2) + Math.pow(betaK, 2);\n if (squaredMagnitude <= 9) {\n continue;\n }\n tauK = 3 / Math.sqrt(squaredMagnitude);\n mK[i] = alphaK * tauK * deltaK[i];\n mK[i + 1] = betaK * tauK * deltaK[i];\n }\n}\nfunction monotoneCompute(points, mK, indexAxis = 'x') {\n const valueAxis = getValueAxis(indexAxis);\n const pointsLen = points.length;\n let delta, pointBefore, pointCurrent;\n let pointAfter = getPoint(points, 0);\n for (let i = 0; i < pointsLen; ++i) {\n pointBefore = pointCurrent;\n pointCurrent = pointAfter;\n pointAfter = getPoint(points, i + 1);\n if (!pointCurrent) {\n continue;\n }\n const iPixel = pointCurrent[indexAxis];\n const vPixel = pointCurrent[valueAxis];\n if (pointBefore) {\n delta = (iPixel - pointBefore[indexAxis]) / 3;\n pointCurrent[`cp1${indexAxis}`] = iPixel - delta;\n pointCurrent[`cp1${valueAxis}`] = vPixel - delta * mK[i];\n }\n if (pointAfter) {\n delta = (pointAfter[indexAxis] - iPixel) / 3;\n pointCurrent[`cp2${indexAxis}`] = iPixel + delta;\n pointCurrent[`cp2${valueAxis}`] = vPixel + delta * mK[i];\n }\n }\n}\nfunction splineCurveMonotone(points, indexAxis = 'x') {\n const valueAxis = getValueAxis(indexAxis);\n const pointsLen = points.length;\n const deltaK = Array(pointsLen).fill(0);\n const mK = Array(pointsLen);\n let i, pointBefore, pointCurrent;\n let pointAfter = getPoint(points, 0);\n for (i = 0; i < pointsLen; ++i) {\n pointBefore = pointCurrent;\n pointCurrent = pointAfter;\n pointAfter = getPoint(points, i + 1);\n if (!pointCurrent) {\n continue;\n }\n if (pointAfter) {\n const slopeDelta = pointAfter[indexAxis] - pointCurrent[indexAxis];\n deltaK[i] = slopeDelta !== 0 ? (pointAfter[valueAxis] - pointCurrent[valueAxis]) / slopeDelta : 0;\n }\n mK[i] = !pointBefore ? deltaK[i]\n : !pointAfter ? deltaK[i - 1]\n : (sign(deltaK[i - 1]) !== sign(deltaK[i])) ? 0\n : (deltaK[i - 1] + deltaK[i]) / 2;\n }\n monotoneAdjust(points, deltaK, mK);\n monotoneCompute(points, mK, indexAxis);\n}\nfunction capControlPoint(pt, min, max) {\n return Math.max(Math.min(pt, max), min);\n}\nfunction capBezierPoints(points, area) {\n let i, ilen, point, inArea, inAreaPrev;\n let inAreaNext = _isPointInArea(points[0], area);\n for (i = 0, ilen = points.length; i < ilen; ++i) {\n inAreaPrev = inArea;\n inArea = inAreaNext;\n inAreaNext = i < ilen - 1 && _isPointInArea(points[i + 1], area);\n if (!inArea) {\n continue;\n }\n point = points[i];\n if (inAreaPrev) {\n point.cp1x = capControlPoint(point.cp1x, area.left, area.right);\n point.cp1y = capControlPoint(point.cp1y, area.top, area.bottom);\n }\n if (inAreaNext) {\n point.cp2x = capControlPoint(point.cp2x, area.left, area.right);\n point.cp2y = capControlPoint(point.cp2y, area.top, area.bottom);\n }\n }\n}\nfunction _updateBezierControlPoints(points, options, area, loop, indexAxis) {\n let i, ilen, point, controlPoints;\n if (options.spanGaps) {\n points = points.filter((pt) => !pt.skip);\n }\n if (options.cubicInterpolationMode === 'monotone') {\n splineCurveMonotone(points, indexAxis);\n } else {\n let prev = loop ? points[points.length - 1] : points[0];\n for (i = 0, ilen = points.length; i < ilen; ++i) {\n point = points[i];\n controlPoints = splineCurve(\n prev,\n point,\n points[Math.min(i + 1, ilen - (loop ? 0 : 1)) % ilen],\n options.tension\n );\n point.cp1x = controlPoints.previous.x;\n point.cp1y = controlPoints.previous.y;\n point.cp2x = controlPoints.next.x;\n point.cp2y = controlPoints.next.y;\n prev = point;\n }\n }\n if (options.capBezierPoints) {\n capBezierPoints(points, area);\n }\n}\n\nconst atEdge = (t) => t === 0 || t === 1;\nconst elasticIn = (t, s, p) => -(Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * TAU / p));\nconst elasticOut = (t, s, p) => Math.pow(2, -10 * t) * Math.sin((t - s) * TAU / p) + 1;\nconst effects = {\n linear: t => t,\n easeInQuad: t => t * t,\n easeOutQuad: t => -t * (t - 2),\n easeInOutQuad: t => ((t /= 0.5) < 1)\n ? 0.5 * t * t\n : -0.5 * ((--t) * (t - 2) - 1),\n easeInCubic: t => t * t * t,\n easeOutCubic: t => (t -= 1) * t * t + 1,\n easeInOutCubic: t => ((t /= 0.5) < 1)\n ? 0.5 * t * t * t\n : 0.5 * ((t -= 2) * t * t + 2),\n easeInQuart: t => t * t * t * t,\n easeOutQuart: t => -((t -= 1) * t * t * t - 1),\n easeInOutQuart: t => ((t /= 0.5) < 1)\n ? 0.5 * t * t * t * t\n : -0.5 * ((t -= 2) * t * t * t - 2),\n easeInQuint: t => t * t * t * t * t,\n easeOutQuint: t => (t -= 1) * t * t * t * t + 1,\n easeInOutQuint: t => ((t /= 0.5) < 1)\n ? 0.5 * t * t * t * t * t\n : 0.5 * ((t -= 2) * t * t * t * t + 2),\n easeInSine: t => -Math.cos(t * HALF_PI) + 1,\n easeOutSine: t => Math.sin(t * HALF_PI),\n easeInOutSine: t => -0.5 * (Math.cos(PI * t) - 1),\n easeInExpo: t => (t === 0) ? 0 : Math.pow(2, 10 * (t - 1)),\n easeOutExpo: t => (t === 1) ? 1 : -Math.pow(2, -10 * t) + 1,\n easeInOutExpo: t => atEdge(t) ? t : t < 0.5\n ? 0.5 * Math.pow(2, 10 * (t * 2 - 1))\n : 0.5 * (-Math.pow(2, -10 * (t * 2 - 1)) + 2),\n easeInCirc: t => (t >= 1) ? t : -(Math.sqrt(1 - t * t) - 1),\n easeOutCirc: t => Math.sqrt(1 - (t -= 1) * t),\n easeInOutCirc: t => ((t /= 0.5) < 1)\n ? -0.5 * (Math.sqrt(1 - t * t) - 1)\n : 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1),\n easeInElastic: t => atEdge(t) ? t : elasticIn(t, 0.075, 0.3),\n easeOutElastic: t => atEdge(t) ? t : elasticOut(t, 0.075, 0.3),\n easeInOutElastic(t) {\n const s = 0.1125;\n const p = 0.45;\n return atEdge(t) ? t :\n t < 0.5\n ? 0.5 * elasticIn(t * 2, s, p)\n : 0.5 + 0.5 * elasticOut(t * 2 - 1, s, p);\n },\n easeInBack(t) {\n const s = 1.70158;\n return t * t * ((s + 1) * t - s);\n },\n easeOutBack(t) {\n const s = 1.70158;\n return (t -= 1) * t * ((s + 1) * t + s) + 1;\n },\n easeInOutBack(t) {\n let s = 1.70158;\n if ((t /= 0.5) < 1) {\n return 0.5 * (t * t * (((s *= (1.525)) + 1) * t - s));\n }\n return 0.5 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2);\n },\n easeInBounce: t => 1 - effects.easeOutBounce(1 - t),\n easeOutBounce(t) {\n const m = 7.5625;\n const d = 2.75;\n if (t < (1 / d)) {\n return m * t * t;\n }\n if (t < (2 / d)) {\n return m * (t -= (1.5 / d)) * t + 0.75;\n }\n if (t < (2.5 / d)) {\n return m * (t -= (2.25 / d)) * t + 0.9375;\n }\n return m * (t -= (2.625 / d)) * t + 0.984375;\n },\n easeInOutBounce: t => (t < 0.5)\n ? effects.easeInBounce(t * 2) * 0.5\n : effects.easeOutBounce(t * 2 - 1) * 0.5 + 0.5,\n};\n\nfunction _pointInLine(p1, p2, t, mode) {\n return {\n x: p1.x + t * (p2.x - p1.x),\n y: p1.y + t * (p2.y - p1.y)\n };\n}\nfunction _steppedInterpolation(p1, p2, t, mode) {\n return {\n x: p1.x + t * (p2.x - p1.x),\n y: mode === 'middle' ? t < 0.5 ? p1.y : p2.y\n : mode === 'after' ? t < 1 ? p1.y : p2.y\n : t > 0 ? p2.y : p1.y\n };\n}\nfunction _bezierInterpolation(p1, p2, t, mode) {\n const cp1 = {x: p1.cp2x, y: p1.cp2y};\n const cp2 = {x: p2.cp1x, y: p2.cp1y};\n const a = _pointInLine(p1, cp1, t);\n const b = _pointInLine(cp1, cp2, t);\n const c = _pointInLine(cp2, p2, t);\n const d = _pointInLine(a, b, t);\n const e = _pointInLine(b, c, t);\n return _pointInLine(d, e, t);\n}\n\nconst intlCache = new Map();\nfunction getNumberFormat(locale, options) {\n options = options || {};\n const cacheKey = locale + JSON.stringify(options);\n let formatter = intlCache.get(cacheKey);\n if (!formatter) {\n formatter = new Intl.NumberFormat(locale, options);\n intlCache.set(cacheKey, formatter);\n }\n return formatter;\n}\nfunction formatNumber(num, locale, options) {\n return getNumberFormat(locale, options).format(num);\n}\n\nconst LINE_HEIGHT = new RegExp(/^(normal|(\\d+(?:\\.\\d+)?)(px|em|%)?)$/);\nconst FONT_STYLE = new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);\nfunction toLineHeight(value, size) {\n const matches = ('' + value).match(LINE_HEIGHT);\n if (!matches || matches[1] === 'normal') {\n return size * 1.2;\n }\n value = +matches[2];\n switch (matches[3]) {\n case 'px':\n return value;\n case '%':\n value /= 100;\n break;\n }\n return size * value;\n}\nconst numberOrZero = v => +v || 0;\nfunction _readValueToProps(value, props) {\n const ret = {};\n const objProps = isObject(props);\n const keys = objProps ? Object.keys(props) : props;\n const read = isObject(value)\n ? objProps\n ? prop => valueOrDefault(value[prop], value[props[prop]])\n : prop => value[prop]\n : () => value;\n for (const prop of keys) {\n ret[prop] = numberOrZero(read(prop));\n }\n return ret;\n}\nfunction toTRBL(value) {\n return _readValueToProps(value, {top: 'y', right: 'x', bottom: 'y', left: 'x'});\n}\nfunction toTRBLCorners(value) {\n return _readValueToProps(value, ['topLeft', 'topRight', 'bottomLeft', 'bottomRight']);\n}\nfunction toPadding(value) {\n const obj = toTRBL(value);\n obj.width = obj.left + obj.right;\n obj.height = obj.top + obj.bottom;\n return obj;\n}\nfunction toFont(options, fallback) {\n options = options || {};\n fallback = fallback || defaults.font;\n let size = valueOrDefault(options.size, fallback.size);\n if (typeof size === 'string') {\n size = parseInt(size, 10);\n }\n let style = valueOrDefault(options.style, fallback.style);\n if (style && !('' + style).match(FONT_STYLE)) {\n console.warn('Invalid font style specified: \"' + style + '\"');\n style = '';\n }\n const font = {\n family: valueOrDefault(options.family, fallback.family),\n lineHeight: toLineHeight(valueOrDefault(options.lineHeight, fallback.lineHeight), size),\n size,\n style,\n weight: valueOrDefault(options.weight, fallback.weight),\n string: ''\n };\n font.string = toFontString(font);\n return font;\n}\nfunction resolve(inputs, context, index, info) {\n let cacheable = true;\n let i, ilen, value;\n for (i = 0, ilen = inputs.length; i < ilen; ++i) {\n value = inputs[i];\n if (value === undefined) {\n continue;\n }\n if (context !== undefined && typeof value === 'function') {\n value = value(context);\n cacheable = false;\n }\n if (index !== undefined && isArray(value)) {\n value = value[index % value.length];\n cacheable = false;\n }\n if (value !== undefined) {\n if (info && !cacheable) {\n info.cacheable = false;\n }\n return value;\n }\n }\n}\nfunction _addGrace(minmax, grace, beginAtZero) {\n const {min, max} = minmax;\n const change = toDimension(grace, (max - min) / 2);\n const keepZero = (value, add) => beginAtZero && value === 0 ? 0 : value + add;\n return {\n min: keepZero(min, -Math.abs(change)),\n max: keepZero(max, change)\n };\n}\nfunction createContext(parentContext, context) {\n return Object.assign(Object.create(parentContext), context);\n}\n\nconst getRightToLeftAdapter = function(rectX, width) {\n return {\n x(x) {\n return rectX + rectX + width - x;\n },\n setWidth(w) {\n width = w;\n },\n textAlign(align) {\n if (align === 'center') {\n return align;\n }\n return align === 'right' ? 'left' : 'right';\n },\n xPlus(x, value) {\n return x - value;\n },\n leftForLtr(x, itemWidth) {\n return x - itemWidth;\n },\n };\n};\nconst getLeftToRightAdapter = function() {\n return {\n x(x) {\n return x;\n },\n setWidth(w) {\n },\n textAlign(align) {\n return align;\n },\n xPlus(x, value) {\n return x + value;\n },\n leftForLtr(x, _itemWidth) {\n return x;\n },\n };\n};\nfunction getRtlAdapter(rtl, rectX, width) {\n return rtl ? getRightToLeftAdapter(rectX, width) : getLeftToRightAdapter();\n}\nfunction overrideTextDirection(ctx, direction) {\n let style, original;\n if (direction === 'ltr' || direction === 'rtl') {\n style = ctx.canvas.style;\n original = [\n style.getPropertyValue('direction'),\n style.getPropertyPriority('direction'),\n ];\n style.setProperty('direction', direction, 'important');\n ctx.prevTextDirection = original;\n }\n}\nfunction restoreTextDirection(ctx, original) {\n if (original !== undefined) {\n delete ctx.prevTextDirection;\n ctx.canvas.style.setProperty('direction', original[0], original[1]);\n }\n}\n\nfunction propertyFn(property) {\n if (property === 'angle') {\n return {\n between: _angleBetween,\n compare: _angleDiff,\n normalize: _normalizeAngle,\n };\n }\n return {\n between: _isBetween,\n compare: (a, b) => a - b,\n normalize: x => x\n };\n}\nfunction normalizeSegment({start, end, count, loop, style}) {\n return {\n start: start % count,\n end: end % count,\n loop: loop && (end - start + 1) % count === 0,\n style\n };\n}\nfunction getSegment(segment, points, bounds) {\n const {property, start: startBound, end: endBound} = bounds;\n const {between, normalize} = propertyFn(property);\n const count = points.length;\n let {start, end, loop} = segment;\n let i, ilen;\n if (loop) {\n start += count;\n end += count;\n for (i = 0, ilen = count; i < ilen; ++i) {\n if (!between(normalize(points[start % count][property]), startBound, endBound)) {\n break;\n }\n start--;\n end--;\n }\n start %= count;\n end %= count;\n }\n if (end < start) {\n end += count;\n }\n return {start, end, loop, style: segment.style};\n}\nfunction _boundSegment(segment, points, bounds) {\n if (!bounds) {\n return [segment];\n }\n const {property, start: startBound, end: endBound} = bounds;\n const count = points.length;\n const {compare, between, normalize} = propertyFn(property);\n const {start, end, loop, style} = getSegment(segment, points, bounds);\n const result = [];\n let inside = false;\n let subStart = null;\n let value, point, prevValue;\n const startIsBefore = () => between(startBound, prevValue, value) && compare(startBound, prevValue) !== 0;\n const endIsBefore = () => compare(endBound, value) === 0 || between(endBound, prevValue, value);\n const shouldStart = () => inside || startIsBefore();\n const shouldStop = () => !inside || endIsBefore();\n for (let i = start, prev = start; i <= end; ++i) {\n point = points[i % count];\n if (point.skip) {\n continue;\n }\n value = normalize(point[property]);\n if (value === prevValue) {\n continue;\n }\n inside = between(value, startBound, endBound);\n if (subStart === null && shouldStart()) {\n subStart = compare(value, startBound) === 0 ? i : prev;\n }\n if (subStart !== null && shouldStop()) {\n result.push(normalizeSegment({start: subStart, end: i, loop, count, style}));\n subStart = null;\n }\n prev = i;\n prevValue = value;\n }\n if (subStart !== null) {\n result.push(normalizeSegment({start: subStart, end, loop, count, style}));\n }\n return result;\n}\nfunction _boundSegments(line, bounds) {\n const result = [];\n const segments = line.segments;\n for (let i = 0; i < segments.length; i++) {\n const sub = _boundSegment(segments[i], line.points, bounds);\n if (sub.length) {\n result.push(...sub);\n }\n }\n return result;\n}\nfunction findStartAndEnd(points, count, loop, spanGaps) {\n let start = 0;\n let end = count - 1;\n if (loop && !spanGaps) {\n while (start < count && !points[start].skip) {\n start++;\n }\n }\n while (start < count && points[start].skip) {\n start++;\n }\n start %= count;\n if (loop) {\n end += start;\n }\n while (end > start && points[end % count].skip) {\n end--;\n }\n end %= count;\n return {start, end};\n}\nfunction solidSegments(points, start, max, loop) {\n const count = points.length;\n const result = [];\n let last = start;\n let prev = points[start];\n let end;\n for (end = start + 1; end <= max; ++end) {\n const cur = points[end % count];\n if (cur.skip || cur.stop) {\n if (!prev.skip) {\n loop = false;\n result.push({start: start % count, end: (end - 1) % count, loop});\n start = last = cur.stop ? end : null;\n }\n } else {\n last = end;\n if (prev.skip) {\n start = end;\n }\n }\n prev = cur;\n }\n if (last !== null) {\n result.push({start: start % count, end: last % count, loop});\n }\n return result;\n}\nfunction _computeSegments(line, segmentOptions) {\n const points = line.points;\n const spanGaps = line.options.spanGaps;\n const count = points.length;\n if (!count) {\n return [];\n }\n const loop = !!line._loop;\n const {start, end} = findStartAndEnd(points, count, loop, spanGaps);\n if (spanGaps === true) {\n return splitByStyles(line, [{start, end, loop}], points, segmentOptions);\n }\n const max = end < start ? end + count : end;\n const completeLoop = !!line._fullLoop && start === 0 && end === count - 1;\n return splitByStyles(line, solidSegments(points, start, max, completeLoop), points, segmentOptions);\n}\nfunction splitByStyles(line, segments, points, segmentOptions) {\n if (!segmentOptions || !segmentOptions.setContext || !points) {\n return segments;\n }\n return doSplitByStyles(line, segments, points, segmentOptions);\n}\nfunction doSplitByStyles(line, segments, points, segmentOptions) {\n const chartContext = line._chart.getContext();\n const baseStyle = readStyle(line.options);\n const {_datasetIndex: datasetIndex, options: {spanGaps}} = line;\n const count = points.length;\n const result = [];\n let prevStyle = baseStyle;\n let start = segments[0].start;\n let i = start;\n function addStyle(s, e, l, st) {\n const dir = spanGaps ? -1 : 1;\n if (s === e) {\n return;\n }\n s += count;\n while (points[s % count].skip) {\n s -= dir;\n }\n while (points[e % count].skip) {\n e += dir;\n }\n if (s % count !== e % count) {\n result.push({start: s % count, end: e % count, loop: l, style: st});\n prevStyle = st;\n start = e % count;\n }\n }\n for (const segment of segments) {\n start = spanGaps ? start : segment.start;\n let prev = points[start % count];\n let style;\n for (i = start + 1; i <= segment.end; i++) {\n const pt = points[i % count];\n style = readStyle(segmentOptions.setContext(createContext(chartContext, {\n type: 'segment',\n p0: prev,\n p1: pt,\n p0DataIndex: (i - 1) % count,\n p1DataIndex: i % count,\n datasetIndex\n })));\n if (styleChanged(style, prevStyle)) {\n addStyle(start, i - 1, segment.loop, prevStyle);\n }\n prev = pt;\n prevStyle = style;\n }\n if (start < i - 1) {\n addStyle(start, i - 1, segment.loop, prevStyle);\n }\n }\n return result;\n}\nfunction readStyle(options) {\n return {\n backgroundColor: options.backgroundColor,\n borderCapStyle: options.borderCapStyle,\n borderDash: options.borderDash,\n borderDashOffset: options.borderDashOffset,\n borderJoinStyle: options.borderJoinStyle,\n borderWidth: options.borderWidth,\n borderColor: options.borderColor\n };\n}\nfunction styleChanged(style, prevStyle) {\n return prevStyle && JSON.stringify(style) !== JSON.stringify(prevStyle);\n}\n\nvar helpers = /*#__PURE__*/Object.freeze({\n__proto__: null,\neasingEffects: effects,\nisPatternOrGradient: isPatternOrGradient,\ncolor: color,\ngetHoverColor: getHoverColor,\nnoop: noop,\nuid: uid,\nisNullOrUndef: isNullOrUndef,\nisArray: isArray,\nisObject: isObject,\nisFinite: isNumberFinite,\nfiniteOrDefault: finiteOrDefault,\nvalueOrDefault: valueOrDefault,\ntoPercentage: toPercentage,\ntoDimension: toDimension,\ncallback: callback,\neach: each,\n_elementsEqual: _elementsEqual,\nclone: clone$1,\n_merger: _merger,\nmerge: merge,\nmergeIf: mergeIf,\n_mergerIf: _mergerIf,\n_deprecated: _deprecated,\nresolveObjectKey: resolveObjectKey,\n_splitKey: _splitKey,\n_capitalize: _capitalize,\ndefined: defined,\nisFunction: isFunction,\nsetsEqual: setsEqual,\n_isClickEvent: _isClickEvent,\ntoFontString: toFontString,\n_measureText: _measureText,\n_longestText: _longestText,\n_alignPixel: _alignPixel,\nclearCanvas: clearCanvas,\ndrawPoint: drawPoint,\ndrawPointLegend: drawPointLegend,\n_isPointInArea: _isPointInArea,\nclipArea: clipArea,\nunclipArea: unclipArea,\n_steppedLineTo: _steppedLineTo,\n_bezierCurveTo: _bezierCurveTo,\nrenderText: renderText,\naddRoundedRectPath: addRoundedRectPath,\n_lookup: _lookup,\n_lookupByKey: _lookupByKey,\n_rlookupByKey: _rlookupByKey,\n_filterBetween: _filterBetween,\nlistenArrayEvents: listenArrayEvents,\nunlistenArrayEvents: unlistenArrayEvents,\n_arrayUnique: _arrayUnique,\n_createResolver: _createResolver,\n_attachContext: _attachContext,\n_descriptors: _descriptors,\n_parseObjectDataRadialScale: _parseObjectDataRadialScale,\nsplineCurve: splineCurve,\nsplineCurveMonotone: splineCurveMonotone,\n_updateBezierControlPoints: _updateBezierControlPoints,\n_isDomSupported: _isDomSupported,\n_getParentNode: _getParentNode,\ngetStyle: getStyle,\ngetRelativePosition: getRelativePosition,\ngetMaximumSize: getMaximumSize,\nretinaScale: retinaScale,\nsupportsEventListenerOptions: supportsEventListenerOptions,\nreadUsedSize: readUsedSize,\nfontString: fontString,\nrequestAnimFrame: requestAnimFrame,\nthrottled: throttled,\ndebounce: debounce,\n_toLeftRightCenter: _toLeftRightCenter,\n_alignStartEnd: _alignStartEnd,\n_textX: _textX,\n_getStartAndCountOfVisiblePoints: _getStartAndCountOfVisiblePoints,\n_scaleRangesChanged: _scaleRangesChanged,\n_pointInLine: _pointInLine,\n_steppedInterpolation: _steppedInterpolation,\n_bezierInterpolation: _bezierInterpolation,\nformatNumber: formatNumber,\ntoLineHeight: toLineHeight,\n_readValueToProps: _readValueToProps,\ntoTRBL: toTRBL,\ntoTRBLCorners: toTRBLCorners,\ntoPadding: toPadding,\ntoFont: toFont,\nresolve: resolve,\n_addGrace: _addGrace,\ncreateContext: createContext,\nPI: PI,\nTAU: TAU,\nPITAU: PITAU,\nINFINITY: INFINITY,\nRAD_PER_DEG: RAD_PER_DEG,\nHALF_PI: HALF_PI,\nQUARTER_PI: QUARTER_PI,\nTWO_THIRDS_PI: TWO_THIRDS_PI,\nlog10: log10,\nsign: sign,\nniceNum: niceNum,\n_factorize: _factorize,\nisNumber: isNumber,\nalmostEquals: almostEquals,\nalmostWhole: almostWhole,\n_setMinAndMaxByKey: _setMinAndMaxByKey,\ntoRadians: toRadians,\ntoDegrees: toDegrees,\n_decimalPlaces: _decimalPlaces,\ngetAngleFromPoint: getAngleFromPoint,\ndistanceBetweenPoints: distanceBetweenPoints,\n_angleDiff: _angleDiff,\n_normalizeAngle: _normalizeAngle,\n_angleBetween: _angleBetween,\n_limitValue: _limitValue,\n_int16Range: _int16Range,\n_isBetween: _isBetween,\ngetRtlAdapter: getRtlAdapter,\noverrideTextDirection: overrideTextDirection,\nrestoreTextDirection: restoreTextDirection,\n_boundSegment: _boundSegment,\n_boundSegments: _boundSegments,\n_computeSegments: _computeSegments\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 {lo: start.lo, hi: end.hi};\n }\n }\n }\n return {lo: 0, hi: data.length - 1};\n}\nfunction 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}\nfunction 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}\nfunction 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({element, datasetIndex, index});\n }\n };\n evaluateInteractionItems(chart, axis, position, evaluationFunc, true);\n return items;\n}\nfunction getNearestRadialItems(chart, position, axis, useFinalPosition) {\n let items = [];\n function evaluationFunc(element, datasetIndex, index) {\n const {startAngle, endAngle} = element.getProps(['startAngle', 'endAngle'], useFinalPosition);\n const {angle} = getAngleFromPoint(element, {x: position.x, y: position.y});\n if (_angleBetween(angle, startAngle, endAngle)) {\n items.push({element, datasetIndex, index});\n }\n }\n evaluateInteractionItems(chart, axis, position, evaluationFunc);\n return items;\n}\nfunction 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 = [{element, datasetIndex, index}];\n minDistance = distance;\n } else if (distance === minDistance) {\n items.push({element, datasetIndex, index});\n }\n }\n evaluateInteractionItems(chart, axis, position, evaluationFunc);\n return items;\n}\nfunction getNearestItems(chart, position, axis, intersect, useFinalPosition, includeInvisible) {\n if (!includeInvisible && !chart.isPointInArea(position)) {\n return [];\n }\n return axis === 'r' && !intersect\n ? getNearestRadialItems(chart, position, axis, useFinalPosition)\n : getNearestCartesianItems(chart, position, axis, intersect, useFinalPosition, includeInvisible);\n}\nfunction 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({element, datasetIndex, index});\n intersectsItem = intersectsItem || element.inRange(position.x, position.y, useFinalPosition);\n }\n });\n if (intersect && !intersectsItem) {\n return [];\n }\n return items;\n}\nvar 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\n ? getIntersectItems(chart, position, axis, useFinalPosition, includeInvisible)\n : 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({element, datasetIndex: meta.index, index});\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\n ? getIntersectItems(chart, position, axis, useFinalPosition, includeInvisible) :\n 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({element: data[i], datasetIndex, index: i});\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 = ['left', 'top', 'right', 'bottom'];\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 ?\n v0.index - v1.index :\n 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] = {count: 0, placed: 0, weight: 0, size: 0});\n _stack.count++;\n _stack.weight += stackWeight;\n }\n return stacks;\n}\nfunction 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] || {size: 0, count: 1};\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, other: heightChanged}\n : {same: heightChanged, other: widthChanged};\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 = {left: 0, top: 0, right: 0, bottom: 0};\n positions.forEach((pos) => {\n margin[pos] = Math.max(chartArea[pos], maxPadding[pos]);\n });\n return margin;\n }\n return horizontal\n ? marginForPositions(['left', 'right'])\n : marginForPositions(['top', 'bottom']);\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(\n layout.width || chartArea.w,\n layout.height || chartArea.h,\n getMargins(layout.horizontal, chartArea)\n );\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] || {count: 1, placed: 0, weight: 1};\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 height = chartArea.h * weight;\n const width = stack.size || box.width;\n if (defined(stack.start)) {\n x = stack.start;\n }\n if (box.fullSize) {\n setBoxDims(box, x, userPadding.top, width, params.outerHeight - userPadding.bottom - userPadding.top);\n } else {\n setBoxDims(box, x, chartArea.top + stack.placed, width, height);\n }\n stack.start = x;\n stack.placed += height;\n x = box.right;\n }\n }\n chartArea.x = x;\n chartArea.y = y;\n}\ndefaults.set('layout', {\n autoPadding: true,\n padding: {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n }\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 z: 0,\n draw(chartArea) {\n item.draw(chartArea);\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) =>\n 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, {left: 0, top: 0, right: 0, bottom: 0});\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';\nconst 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 === '';\nfunction 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 ? {passive: true} : 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, {childList: true, subtree: true});\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, {childList: true, subtree: true});\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, (args) => {\n const event = args[0];\n return [event, event.offsetX, event.offsetY];\n });\n addListener(canvas, type, proxy);\n return proxy;\n}\nclass 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 ['height', 'width'].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\nvar platforms = /*#__PURE__*/Object.freeze({\n__proto__: null,\n_detectPlatform: _detectPlatform,\nBasePlatform: BasePlatform,\nBasicPlatform: BasicPlatform,\nDomPlatform: DomPlatform\n});\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\n ? c1.mix(c0, factor).hexString()\n : 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([cfg.to, to, currentValue, cfg.from]);\n const from = resolve([cfg.from, currentValue, to]);\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([cfg.to, to, currentValue, cfg.from]);\n this._from = resolve([cfg.from, currentValue, to]);\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({res, rej});\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\nconst numbers = ['x', 'y', 'borderWidth', 'radius', 'tension'];\nconst colors = ['color', 'borderColor', 'backgroundColor'];\ndefaults.set('animation', {\n delay: undefined,\n duration: 1000,\n easing: 'easeOutQuart',\n fn: undefined,\n from: undefined,\n loop: undefined,\n to: undefined,\n type: undefined,\n});\nconst animationOptions = Object.keys(defaults.animation);\ndefaults.describe('animation', {\n _fallback: false,\n _indexable: false,\n _scriptable: (name) => name !== 'onProgress' && name !== 'onComplete' && name !== 'fn',\n});\ndefaults.set('animations', {\n colors: {\n type: 'color',\n properties: colors\n },\n numbers: {\n type: 'number',\n properties: numbers\n },\n});\ndefaults.describe('animations', {\n _fallback: 'animation',\n});\ndefaults.set('transitions', {\n active: {\n animation: {\n duration: 400\n }\n },\n resize: {\n animation: {\n duration: 0\n }\n },\n show: {\n animations: {\n colors: {\n from: 'transparent'\n },\n visible: {\n type: 'boolean',\n duration: 0\n },\n }\n },\n hide: {\n animations: {\n colors: {\n to: 'transparent'\n },\n visible: {\n type: 'boolean',\n easing: 'linear',\n fn: v => v | 0\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 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 || [key]).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, {$shared: false, $animations: {}});\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 }\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 {\n active: false,\n dataset: undefined,\n datasetIndex: index,\n index,\n mode: 'default',\n type: 'dataset'\n }\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 }\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), values: null};\nclass DatasetController {\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.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 }\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\n ? meta.vScale\n : 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]\n };\n return applyStack(stack, value, meta.index, {mode});\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 = {min: Number.POSITIVE_INFINITY, max: Number.NEGATIVE_INFINITY};\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\n ? this.resolveDatasetElementOptions(mode)\n : 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 ||\n (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 ||\n (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 ? [`${elementType}Hover`, 'hover', elementType, ''] : [elementType, ''];\n const scopes = config.getOptionScopes(this.getDataset(), scopeKeys);\n const names = Object.keys(defaults.elements[elementType]);\n const context = () => this.getContext(index, active);\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 {sharedOptions, includeOptions};\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([this.index, ...args]);\n }\n _onDataPush() {\n const count = arguments.length;\n this._sync(['_insertElements', this.getDataset().data.length - count, count]);\n }\n _onDataPop() {\n this._sync(['_removeElements', this._cachedMeta.data.length - 1, 1]);\n }\n _onDataShift() {\n this._sync(['_removeElements', 0, 1]);\n }\n _onDataSplice(start, count) {\n if (count) {\n this._sync(['_removeElements', start, count]);\n }\n const newCount = arguments.length - 2;\n if (newCount) {\n this._sync(['_insertElements', start, newCount]);\n }\n }\n _onDataUnshift() {\n this._sync(['_insertElements', 0, arguments.length]);\n }\n}\nDatasetController.defaults = {};\nDatasetController.prototype.datasetElementType = null;\nDatasetController.prototype.dataElementType = null;\n\nclass Element {\n constructor() {\n this.x = undefined;\n this.y = undefined;\n this.active = false;\n this.options = undefined;\n this.$animations = undefined;\n }\n tooltipPosition(useFinalPosition) {\n const {x, y} = this.getProps(['x', 'y'], useFinalPosition);\n return {x, y};\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 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}\nElement.defaults = {};\nElement.defaultRoutes = undefined;\n\nconst formatters = {\n values(value) {\n return isArray(value) ? value : '' + value;\n },\n numeric(tickValue, index, ticks) {\n if (tickValue === 0) {\n return '0';\n }\n const locale = this.chart.options.locale;\n let notation;\n let delta = tickValue;\n if (ticks.length > 1) {\n const maxTick = Math.max(Math.abs(ticks[0].value), Math.abs(ticks[ticks.length - 1].value));\n if (maxTick < 1e-4 || maxTick > 1e+15) {\n notation = 'scientific';\n }\n delta = calculateDelta(tickValue, ticks);\n }\n const logDelta = log10(Math.abs(delta));\n const numDecimal = Math.max(Math.min(-1 * Math.floor(logDelta), 20), 0);\n const options = {notation, minimumFractionDigits: numDecimal, maximumFractionDigits: numDecimal};\n Object.assign(options, this.options.ticks.format);\n return formatNumber(tickValue, locale, options);\n },\n logarithmic(tickValue, index, ticks) {\n if (tickValue === 0) {\n return '0';\n }\n const remain = tickValue / (Math.pow(10, Math.floor(log10(tickValue))));\n if (remain === 1 || remain === 2 || remain === 5) {\n return formatters.numeric.call(this, tickValue, index, ticks);\n }\n return '';\n }\n};\nfunction calculateDelta(tickValue, ticks) {\n let delta = ticks.length > 3 ? ticks[2].value - ticks[1].value : ticks[1].value - ticks[0].value;\n if (Math.abs(delta) >= 1 && tickValue !== Math.floor(tickValue)) {\n delta = tickValue - Math.floor(tickValue);\n }\n return delta;\n}\nvar Ticks = {formatters};\n\ndefaults.set('scale', {\n display: true,\n offset: false,\n reverse: false,\n beginAtZero: false,\n bounds: 'ticks',\n grace: 0,\n grid: {\n display: true,\n lineWidth: 1,\n drawBorder: true,\n drawOnChartArea: true,\n drawTicks: true,\n tickLength: 8,\n tickWidth: (_ctx, options) => options.lineWidth,\n tickColor: (_ctx, options) => options.color,\n offset: false,\n borderDash: [],\n borderDashOffset: 0.0,\n borderWidth: 1\n },\n title: {\n display: false,\n text: '',\n padding: {\n top: 4,\n bottom: 4\n }\n },\n ticks: {\n minRotation: 0,\n maxRotation: 50,\n mirror: false,\n textStrokeWidth: 0,\n textStrokeColor: '',\n padding: 3,\n display: true,\n autoSkip: true,\n autoSkipPadding: 3,\n labelOffset: 0,\n callback: Ticks.formatters.values,\n minor: {},\n major: {},\n align: 'center',\n crossAlign: 'near',\n showLabelBackdrop: false,\n backdropColor: 'rgba(255, 255, 255, 0.75)',\n backdropPadding: 2,\n }\n});\ndefaults.route('scale.ticks', 'color', '', 'color');\ndefaults.route('scale.grid', 'color', '', 'borderColor');\ndefaults.route('scale.grid', 'borderColor', '', 'borderColor');\ndefaults.route('scale.title', 'color', '', 'color');\ndefaults.describe('scale', {\n _fallback: false,\n _scriptable: (name) => !name.startsWith('before') && !name.startsWith('after') && name !== 'callback' && name !== 'parser',\n _indexable: (name) => name !== 'borderDash' && name !== 'tickBorderDash',\n});\ndefaults.describe('scales', {\n _fallback: 'scale',\n});\ndefaults.describe('scale.ticks', {\n _scriptable: (name) => name !== 'backdropPadding' && name !== 'callback',\n _indexable: (name) => name !== 'backdropPadding',\n});\n\nfunction autoSkip(scale, ticks) {\n const tickOpts = scale.options.ticks;\n const ticksLimit = tickOpts.maxTicksLimit || determineMaxTicks(scale);\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}\nfunction 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}\nfunction 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}\nfunction 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}\nfunction 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}\nfunction 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;\nfunction 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}\nfunction 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}\nfunction 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}\nfunction getTickMarkLength(options) {\n return options.drawTicks ? options.tickLength : 0;\n}\nfunction 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 positionAxisID = Object.keys(position)[0];\n const value = position[positionAxisID];\n titleX = scales[positionAxisID].getPixelForValue(value) - 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 {titleX, titleY, maxWidth, rotation};\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 {min, max};\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 beforeLayout() {\n this._cache = {};\n this._dataLimitsCached = false;\n }\n beforeUpdate() {\n callback(this.options.beforeUpdate, [this]);\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()\n ? this.width + margins.left + margins.right\n : 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, [this]);\n }\n beforeSetDimensions() {\n callback(this.options.beforeSetDimensions, [this]);\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, [this]);\n }\n _callHooks(name) {\n this.chart.notifyPlugins(name, this.getContext());\n callback(this.options[name], [this]);\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, [this]);\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, [tick.value, i, ticks], this);\n }\n }\n afterTickToLabelConversion() {\n callback(this.options.afterTickToLabelConversion, [this]);\n }\n beforeCalculateLabelRotation() {\n callback(this.options.beforeCalculateLabelRotation, [this]);\n }\n calculateLabelRotation() {\n const options = this.options;\n const tickOpts = options.ticks;\n const numTicks = this.ticks.length;\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)\n\t\t\t\t- tickOpts.padding - getTitleHeight(options.title, this.chart.options.font);\n maxLabelDiagonal = Math.sqrt(maxLabelWidth * maxLabelWidth + maxLabelHeight * maxLabelHeight);\n labelRotation = toDegrees(Math.min(\n Math.asin(_limitValue((labelSizes.highest.height + 6) / tickWidth, -1, 1)),\n Math.asin(_limitValue(maxHeight / maxLabelDiagonal, -1, 1)) - Math.asin(_limitValue(maxLabelHeight / maxLabelDiagonal, -1, 1))\n ));\n labelRotation = Math.max(minRotation, Math.min(maxRotation, labelRotation));\n }\n this.labelRotation = labelRotation;\n }\n afterCalculateLabelRotation() {\n callback(this.options.afterCalculateLabelRotation, [this]);\n }\n afterAutoSkip() {}\n beforeFit() {\n callback(this.options.beforeFit, [this]);\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, [this]);\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);\n }\n return labelSizes;\n }\n _computeLabelSizes(ticks, length) {\n const {ctx, _longestTextCache: caches} = this;\n const widths = [];\n const heights = [];\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) {\n label = ticks[i].label;\n tickFont = this._resolveTickFontOptions(i);\n ctx.font = fontString = tickFont.string;\n cache = caches[fontString] = caches[fontString] || {data: {}, gc: []};\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) => ({width: widths[idx] || 0, height: heights[idx] || 0});\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 :\n min > 0 && max > 0 ? min :\n 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 ||\n\t\t\t\t(tick.$context = createTickContext(this.getContext(), index, tick));\n }\n return this.$context ||\n\t\t\t(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()\n ? h * cos > w * sin ? w / cos : h / sin\n : 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} = 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 = grid.setContext(this.getContext());\n const axisWidth = borderOpts.drawBorder ? borderOpts.borderWidth : 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 positionAxisID = Object.keys(position)[0];\n const value = position[positionAxisID];\n borderValue = alignBorderValue(this.chart.scales[positionAxisID].getPixelForValue(value));\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 optsAtIndex = grid.setContext(this.getContext(i));\n const lineWidth = optsAtIndex.lineWidth;\n const lineColor = optsAtIndex.color;\n const borderDash = optsAtIndex.borderDash || [];\n const borderDashOffset = optsAtIndex.borderDashOffset;\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 ret = this._getYAxisLabelAlignment(tl);\n textAlign = ret.textAlign;\n x = ret.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 positionAxisID = Object.keys(position)[0];\n const value = position[positionAxisID];\n x = this.chart.scales[positionAxisID].getPixelForValue(value);\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 } 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 = y + textOffset - labelPadding.top;\n let left = x - 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 rotation,\n label,\n font,\n color,\n strokeColor,\n strokeWidth,\n textOffset,\n textAlign: tickTextAlign,\n textBaseline,\n translation: [x, y],\n backdrop,\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 {textAlign, x};\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 {top: 0, left: this.left, bottom: chart.height, right: this.right};\n } if (position === 'top' || position === 'bottom') {\n return {top: this.top, left: 0, bottom: this.bottom, right: chart.width};\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, y: item.y1},\n {x: item.x2, y: item.y2},\n item\n );\n }\n if (grid.drawTicks) {\n drawLine(\n {x: item.tx1, y: item.ty1},\n {x: item.tx2, 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 }\n drawBorder() {\n const {chart, ctx, options: {grid}} = this;\n const borderOpts = grid.setContext(this.getContext());\n const axisWidth = grid.drawBorder ? borderOpts.borderWidth : 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.borderWidth;\n ctx.strokeStyle = borderOpts.borderColor;\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._labelItems || (this._labelItems = this._computeLabelItems(chartArea));\n let i, ilen;\n for (i = 0, ilen = items.length; i < ilen; ++i) {\n const item = items[i];\n const tickFont = item.font;\n const label = item.label;\n if (item.backdrop) {\n ctx.fillStyle = item.backdrop.color;\n ctx.fillRect(item.backdrop.left, item.backdrop.top, item.backdrop.width, item.backdrop.height);\n }\n let y = item.textOffset;\n renderText(ctx, label, 0, y, tickFont, item);\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: [titleX, titleY],\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 if (!this._isVisible() || this.draw !== Scale.prototype.draw) {\n return [{\n z: tz,\n draw: (chartArea) => {\n this.draw(chartArea);\n }\n }];\n }\n return [{\n z: gz,\n draw: (chartArea) => {\n this.drawBackground();\n this.drawGrid(chartArea);\n this.drawTitle();\n }\n }, {\n z: gz + 1,\n draw: () => {\n this.drawBorder();\n }\n }, {\n z: tz,\n draw: (chartArea) => {\n this.drawLabels(chartArea);\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 = [scope].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 = [this.controllers, this.scales, this.elements];\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 [...args].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 = 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 = [chart, args, descriptor.options];\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}\nfunction 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 i = 0; i < local.length; i++) {\n const plugin = local[i];\n if (plugins.indexOf(plugin) === -1) {\n plugins.push(plugin);\n localIds[plugin.id] = true;\n }\n }\n return {plugins, localIds};\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, {plugin, local: localIds[id]}, 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 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') {\n return id;\n }\n return scaleOptions.axis || axisFromPosition(scaleOptions.position) || id.charAt(0).toLowerCase();\n}\nfunction mergeScaleConfig(config, options) {\n const chartDefaults = overrides[config.type] || {scales: {}};\n const configScales = options.scales || {};\n const chartIndexAxis = getIndexAxis(config.type, options);\n const firstIDs = Object.create(null);\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 firstIDs[axis] = firstIDs[axis] || id;\n scales[id] = mergeIf(Object.create(null), [{axis}, scaleConf, defaultScaleOptions[axis], defaultScaleOptions[defaultId]]);\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'] || firstIDs[axis] || axis;\n scales[id] = scales[id] || Object.create(null);\n mergeIf(scales[id], [{axis}, configScales[id], defaultScaleOptions[defaultID]]);\n });\n });\n Object.keys(scales).forEach(key => {\n const scale = scales[key];\n mergeIf(scale, [defaults.scales[scale.type], defaults.scale]);\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 datasetAnimationScopeKeys(datasetType, transition) {\n return cachedKeys(`${datasetType}.transition.${transition}`,\n () => [\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 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 _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 {type},\n defaults,\n descriptors\n ];\n }\n resolveNamedOptions(scopes, names, context, prefixes = ['']) {\n const result = {$shared: true};\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 = [''], descriptorDefaults) {\n const {resolver} = getResolver(this._resolverCache, scopes, prefixes);\n return isObject(context)\n ? _attachContext(resolver, context, undefined, descriptorDefaults)\n : 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)\n && 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)))\n || (indexable && isArray(value))) {\n return true;\n }\n }\n return false;\n}\n\nvar version = \"3.9.1\";\n\nconst KNOWN_POSITIONS = ['top', 'bottom', 'left', 'right', 'chartArea'];\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]\n ? a[l2] - b[l2]\n : 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, [context], chart);\n}\nfunction onAnimationProgress(context) {\n const chart = context.chart;\n const animationOptions = chart.options.animation;\n callback(animationOptions && animationOptions.onProgress, [context], chart);\n}\nfunction 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}\nfunction 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}\nclass Chart {\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(\n 'Canvas is already in use. Chart with ID \\'' + existingChart.id + '\\'' +\n\t\t\t\t' must be destroyed before the canvas with ID \\'' + existingChart.canvas.id + '\\' can be reused.'\n );\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 _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 = {width, height};\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', {size: newSize});\n callback(options.onResize, [this, newSize], 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(\n 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 }\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.prototype, {\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', {mode, cancelable: true}) === 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', {mode});\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(\n _dataChanges\n .filter(c => c[0] === idx)\n .map((c, i) => i + ',' + c.splice(1).join(','))\n );\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)\n .map(c => c.split(','))\n .map(a => ({method: a[1], start: +a[2], count: +a[3]}));\n }\n _updateLayout(minPadding) {\n if (this.notifyPlugins('beforeLayout', {cancelable: true}) === 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', {mode, cancelable: true}) === 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 i = 0, ilen = this.data.datasets.length; i < ilen; ++i) {\n this._updateDataset(i, isFunction(mode) ? mode({datasetIndex: i}) : mode);\n }\n this.notifyPlugins('afterDatasetsUpdate', {mode});\n }\n _updateDataset(index, mode) {\n const meta = this.getDatasetMeta(index);\n const args = {meta, index, mode, cancelable: true};\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', {cancelable: true}) === 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({chart: this});\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', {cancelable: true}) === 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', {cancelable: true}) === 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 = 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, {chart: this, type: 'chart'}));\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, {visible});\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 this.notifyPlugins('destroy');\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 _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, [e, active, this], this);\n if (isClick) {\n callback(options.onClick, [e, active, this], 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}\nconst invalidatePlugins = () => each(Chart.instances, (chart) => chart._plugins.invalidate());\nconst enumerable = true;\nObject.defineProperties(Chart, {\n defaults: {\n enumerable,\n value: defaults\n },\n instances: {\n enumerable,\n value: instances\n },\n overrides: {\n enumerable,\n value: overrides\n },\n registry: {\n enumerable,\n value: registry\n },\n version: {\n enumerable,\n value: version\n },\n getChart: {\n enumerable,\n value: getChart\n },\n register: {\n enumerable,\n value: (...items) => {\n registry.add(...items);\n invalidatePlugins();\n }\n },\n unregister: {\n enumerable,\n value: (...items) => {\n registry.remove(...items);\n invalidatePlugins();\n }\n }\n});\n\nfunction abstract() {\n throw new Error('This method is not implemented: Check that a complete date adapter is provided.');\n}\nclass DateAdapter {\n constructor(options) {\n this.options = options || {};\n }\n init(chartOptions) {}\n formats() {\n return abstract();\n }\n parse(value, format) {\n return abstract();\n }\n format(timestamp, format) {\n return abstract();\n }\n add(timestamp, amount, unit) {\n return abstract();\n }\n diff(a, b, unit) {\n return abstract();\n }\n startOf(timestamp, unit, weekday) {\n return abstract();\n }\n endOf(timestamp, unit) {\n return abstract();\n }\n}\nDateAdapter.override = function(members) {\n Object.assign(DateAdapter.prototype, members);\n};\nvar _adapters = {\n _date: DateAdapter\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}\nfunction 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}\nfunction 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}\nfunction 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 {start, end, reverse, top, bottom};\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 = {top: true, right: true, bottom: true, left: true};\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'\n ? ratio === 1 ? 0.33 : 0\n : inflateAmount;\n}\nclass BarController extends DatasetController {\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)\n ? '[' + custom.start + ', ' + custom.end + ']'\n : '' + 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]) ? {base, head: base} : 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)\n .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 ||\n\t\t\t\t(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)\n ? stacks.indexOf(name)\n : -1;\n return (index === -1)\n ? stacks.length - 1\n : 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}, 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 }\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'\n ? computeFlexCategoryTraits(index, ruler, options, stackCount)\n : 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}\nBarController.id = 'bar';\nBarController.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: ['x', 'y', 'base', 'width', 'height']\n }\n }\n};\nBarController.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\nclass BubbleController extends DatasetController {\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 {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: meta.label,\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, {$shared: false});\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}\nBubbleController.id = 'bubble';\nBubbleController.defaults = {\n datasetElementType: false,\n dataElementType: 'point',\n animations: {\n numbers: {\n type: 'number',\n properties: ['x', 'y', 'borderWidth', 'radius']\n }\n }\n};\nBubbleController.overrides = {\n scales: {\n x: {\n type: 'linear'\n },\n y: {\n type: 'linear'\n }\n },\n plugins: {\n tooltip: {\n callbacks: {\n title() {\n return '';\n }\n }\n }\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 {ratioX, ratioY, offsetX, offsetY};\n}\nclass DoughnutController extends DatasetController {\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)) {\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}\nDoughnutController.id = 'doughnut';\nDoughnutController.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: ['circumference', 'endAngle', 'innerRadius', 'outerRadius', 'startAngle', 'x', 'y', 'offset', 'borderWidth', 'spacing']\n },\n },\n cutout: '50%',\n rotation: 0,\n circumference: 360,\n radius: '100%',\n spacing: 0,\n indexAxis: 'r',\n};\nDoughnutController.descriptors = {\n _scriptable: (name) => name !== 'spacing',\n _indexable: (name) => name !== 'spacing',\n};\nDoughnutController.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}} = 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 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 tooltip: {\n callbacks: {\n title() {\n return '';\n },\n label(tooltipItem) {\n let dataLabel = tooltipItem.label;\n const value = ': ' + tooltipItem.formattedValue;\n if (isArray(dataLabel)) {\n dataLabel = dataLabel.slice();\n dataLabel[0] += value;\n } else {\n dataLabel += value;\n }\n return dataLabel;\n }\n }\n }\n }\n};\n\nclass LineController extends DatasetController {\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 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 }\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}\nLineController.id = 'line';\nLineController.defaults = {\n datasetElementType: 'line',\n dataElementType: 'point',\n showLine: true,\n spanGaps: false,\n};\nLineController.overrides = {\n scales: {\n _index_: {\n type: 'category',\n },\n _value_: {\n type: 'linear',\n },\n }\n};\n\nclass PolarAreaController extends DatasetController {\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 = {min: Number.POSITIVE_INFINITY, max: Number.NEGATIVE_INFINITY};\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)\n ? toRadians(this.resolveDataElementOptions(index, mode).angle || defaultAngle)\n : 0;\n }\n}\nPolarAreaController.id = 'polarArea';\nPolarAreaController.defaults = {\n dataElementType: 'arc',\n animation: {\n animateRotate: true,\n animateScale: true\n },\n animations: {\n numbers: {\n type: 'number',\n properties: ['x', 'y', 'startAngle', 'endAngle', 'innerRadius', 'outerRadius']\n },\n },\n indexAxis: 'r',\n startAngle: 0,\n};\nPolarAreaController.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}} = 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 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 tooltip: {\n callbacks: {\n title() {\n return '';\n },\n label(context) {\n return context.chart.data.labels[context.dataIndex] + ': ' + context.formattedValue;\n }\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\nclass PieController extends DoughnutController {\n}\nPieController.id = 'pie';\nPieController.defaults = {\n cutout: 0,\n rotation: 0,\n circumference: 360,\n radius: '100%'\n};\n\nclass RadarController extends DatasetController {\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}\nRadarController.id = 'radar';\nRadarController.defaults = {\n datasetElementType: 'line',\n dataElementType: 'point',\n indexAxis: 'r',\n showLine: true,\n elements: {\n line: {\n fill: 'start'\n }\n },\n};\nRadarController.overrides = {\n aspectRatio: 1,\n scales: {\n r: {\n type: 'radialLinear',\n }\n }\n};\n\nclass ScatterController extends DatasetController {\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 = 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}\nScatterController.id = 'scatter';\nScatterController.defaults = {\n datasetElementType: false,\n dataElementType: 'point',\n showLine: false,\n fill: false\n};\nScatterController.overrides = {\n interaction: {\n mode: 'point'\n },\n plugins: {\n tooltip: {\n callbacks: {\n title() {\n return '';\n },\n label(item) {\n return '(' + item.label + ', ' + item.formattedValue + ')';\n }\n }\n }\n },\n scales: {\n x: {\n type: 'linear'\n },\n y: {\n type: 'linear'\n }\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\nfunction clipArc(ctx, element, endAngle) {\n const {startAngle, pixelMargin, x, y, outerRadius, innerRadius} = element;\n let angleMargin = pixelMargin / outerRadius;\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, ['outerStart', 'outerEnd', 'innerStart', 'innerEnd']);\n}\nfunction 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 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}\nfunction rThetaToXY(r, theta, x, y) {\n return {\n x: x + r * Math.cos(theta),\n y: y + r * Math.sin(theta),\n };\n}\nfunction 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 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 ctx.arc(x, y, outerRadius, outerStartAdjustedAngle, outerEndAdjustedAngle);\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 const p4 = rThetaToXY(innerEndAdjustedRadius, endAngle, x, y);\n ctx.lineTo(p4.x, p4.y);\n if (innerEnd > 0) {\n const pCenter = rThetaToXY(innerEndAdjustedRadius, innerEndAdjustedAngle, x, y);\n ctx.arc(pCenter.x, pCenter.y, innerEnd, endAngle + HALF_PI, innerEndAdjustedAngle + Math.PI);\n }\n ctx.arc(x, y, innerRadius, endAngle - (innerEnd / innerRadius), startAngle + (innerStart / innerRadius), true);\n if (innerStart > 0) {\n const pCenter = rThetaToXY(innerStartAdjustedRadius, innerStartAdjustedAngle, x, y);\n ctx.arc(pCenter.x, pCenter.y, innerStart, innerStartAdjustedAngle + Math.PI, startAngle - HALF_PI);\n }\n const p8 = rThetaToXY(outerStartAdjustedRadius, startAngle, x, y);\n ctx.lineTo(p8.x, p8.y);\n if (outerStart > 0) {\n const pCenter = rThetaToXY(outerStartAdjustedRadius, outerStartAdjustedAngle, x, y);\n ctx.arc(pCenter.x, pCenter.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, startAngle + TAU, circular);\n for (let i = 0; i < fullCircles; ++i) {\n ctx.fill();\n }\n if (!isNaN(circumference)) {\n endAngle = startAngle + circumference % TAU;\n if (circumference % TAU === 0) {\n endAngle += TAU;\n }\n }\n }\n pathArc(ctx, element, offset, spacing, endAngle, circular);\n ctx.fill();\n return endAngle;\n}\nfunction drawFullCircleBorders(ctx, element, inner) {\n const {x, y, startAngle, pixelMargin, fullCircles} = element;\n const outerRadius = Math.max(element.outerRadius - pixelMargin, 0);\n const innerRadius = element.innerRadius + pixelMargin;\n let i;\n if (inner) {\n clipArc(ctx, element, startAngle + TAU);\n }\n ctx.beginPath();\n ctx.arc(x, y, innerRadius, startAngle + TAU, startAngle, true);\n for (i = 0; i < fullCircles; ++i) {\n ctx.stroke();\n }\n ctx.beginPath();\n ctx.arc(x, y, outerRadius, startAngle, startAngle + TAU);\n for (i = 0; i < fullCircles; ++i) {\n ctx.stroke();\n }\n}\nfunction drawBorder(ctx, element, offset, spacing, endAngle, circular) {\n const {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 if (element.fullCircles) {\n drawFullCircleBorders(ctx, element, inner);\n }\n if (inner) {\n clipArc(ctx, element, endAngle);\n }\n pathArc(ctx, element, offset, spacing, endAngle, circular);\n ctx.stroke();\n}\nclass ArcElement extends Element {\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(['x', 'y'], useFinalPosition);\n const {angle, distance} = getAngleFromPoint(point, {x: chartX, y: chartY});\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 'circumference',\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) / 2;\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 let radiusOffset = 0;\n if (offset) {\n radiusOffset = offset / 2;\n const halfAngle = (this.startAngle + this.endAngle) / 2;\n ctx.translate(Math.cos(halfAngle) * radiusOffset, Math.sin(halfAngle) * radiusOffset);\n if (this.circumference >= PI) {\n radiusOffset = offset;\n }\n }\n ctx.fillStyle = options.backgroundColor;\n ctx.strokeStyle = options.borderColor;\n const endAngle = drawArc(ctx, this, radiusOffset, spacing, circular);\n drawBorder(ctx, this, radiusOffset, spacing, endAngle, circular);\n ctx.restore();\n }\n}\nArcElement.id = 'arc';\nArcElement.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};\nArcElement.defaultRoutes = {\n backgroundColor: 'backgroundColor'\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}\nfunction 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}\nfunction 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}\nfunction _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}\nfunction _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, {start, end: start + count - 1})) {\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 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, {property, start: value, end: value});\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, {start, end: start + count - 1});\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}\nLineElement.id = 'line';\nLineElement.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};\nLineElement.defaultRoutes = {\n backgroundColor: 'backgroundColor',\n borderColor: 'borderColor'\n};\nLineElement.descriptors = {\n _scriptable: true,\n _indexable: (name) => name !== 'borderDash' && name !== 'fill',\n};\n\nfunction inRange$1(el, pos, axis, useFinalPosition) {\n const options = el.options;\n const {[axis]: value} = el.getProps([axis], useFinalPosition);\n return (Math.abs(pos - value) < options.radius + options.hitRadius);\n}\nclass PointElement extends Element {\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(['x', 'y'], 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(['x', 'y'], useFinalPosition);\n return {x, y};\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 return options.radius + options.hitRadius;\n }\n}\nPointElement.id = 'point';\nPointElement.defaults = {\n borderWidth: 1,\n hitRadius: 1,\n hoverBorderWidth: 1,\n hoverRadius: 4,\n pointStyle: 'circle',\n radius: 3,\n rotation: 0\n};\nPointElement.defaultRoutes = {\n backgroundColor: 'backgroundColor',\n borderColor: 'borderColor'\n};\n\nfunction getBarBounds(bar, useFinalPosition) {\n const {x, y, base, width, height} = bar.getProps(['x', 'y', 'base', 'width', 'height'], 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 {left, top, right, bottom};\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(['enableBorderRadius']);\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\n\t\t&& (skipX || _isBetween(x, bounds.left, bounds.right))\n\t\t&& (skipY || _isBetween(y, bounds.top, bounds.bottom));\n}\nfunction hasRadius(radius) {\n return radius.topLeft || radius.topRight || radius.bottomLeft || radius.bottomRight;\n}\nfunction 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 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(['x', 'y', 'base', 'horizontal'], 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}\nBarElement.id = 'bar';\nBarElement.defaults = {\n borderSkipped: 'start',\n borderWidth: 0,\n borderRadius: 0,\n inflateAmount: 'auto',\n pointStyle: undefined\n};\nBarElement.defaultRoutes = {\n backgroundColor: 'backgroundColor',\n borderColor: 'borderColor'\n};\n\nvar elements = /*#__PURE__*/Object.freeze({\n__proto__: null,\nArcElement: ArcElement,\nLineElement: LineElement,\nPointElement: PointElement,\nBarElement: BarElement\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(\n (pointAx - avgX) * (data[j].y - pointAy) -\n (pointAx - data[j].x) * (avgY - pointAy)\n );\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', {value: data});\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 {start, count};\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([indexAxis, chart.options.indexAxis]) === '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 {property, start, end};\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({x: first.x, y});\n points.push({x: last.x, y});\n } else if (x !== null) {\n points.push({x, y: first.y});\n points.push({x, y: last.y});\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: {tension: 0},\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 = [index];\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}\nfunction _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 ['origin', 'start', 'end', 'stack', 'shape'].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}\nfunction _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}\nfunction _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}\nfunction 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({x: null, y: scale.bottom}, 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({points, options: {}});\n}\nfunction 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}\nfunction 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}\nfunction 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 {first, last, point};\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 || {start: 0, end: TAU};\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}\nfunction 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, {line, target, above, below, area, scale, axis});\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, {line, target, color: above, scale, property});\n ctx.restore();\n ctx.save();\n clipVertical(ctx, target, area.bottom);\n }\n fill(ctx, {line, target, color: below, scale, property});\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, {move: lineLoop});\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, {move: lineLoop, reverse: true});\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, [this.chart], 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, fontSize, 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 = [0];\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] = {left: 0, top, row, width: itemWidth, height: itemHeight};\n lineWidths[lineWidths.length - 1] += itemWidth + padding;\n });\n return totalHeight;\n }\n _fitCols(titleHeight, fontSize, 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 = boxWidth + (fontSize / 2) + ctx.measureText(legendItem.text).width;\n if (i > 0 && currentColHeight + itemHeight + 2 * padding > heightLimit) {\n totalWidth += currentColWidth + padding;\n columnSizes.push({width: currentColWidth, height: currentColHeight});\n left += currentColWidth + padding;\n col++;\n currentColWidth = currentColHeight = 0;\n }\n hitboxes[i] = {left, top: currentColHeight, col, width: itemWidth, height: itemHeight};\n currentColWidth = Math.max(currentColWidth, itemWidth);\n currentColHeight += itemHeight + padding;\n });\n totalWidth += currentColWidth;\n columnSizes.push({width: currentColWidth, height: currentColHeight});\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 hitbox of hitboxes) {\n if (hitbox.col !== col) {\n col = hitbox.col;\n top = _alignStartEnd(align, this.top + titleHeight + padding, this.bottom - this.columnSizes[col].height);\n }\n hitbox.top = top;\n hitbox.left += this.left + padding;\n hitbox.left = rtlHelper.leftForLtr(rtlHelper.x(hitbox.left), hitbox.width);\n top += hitbox.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 {color: fontColor, 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 || fontColor;\n ctx.fillStyle = legendItem.fontColor || 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 {\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)\n && _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)\n && _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, [e, previous, this], this);\n }\n this._hoveredItem = hoveredItem;\n if (hoveredItem && !sameItem) {\n callback(opts.onHover, [e, hoveredItem, this], this);\n }\n } else if (hoveredItem) {\n callback(opts.onClick, [e, hoveredItem, this], this);\n }\n }\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({ctx: chart.ctx, options, chart});\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}} = 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: 0,\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) => !['generateLabels', 'filter', 'sort'].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 {titleX, titleY, maxWidth, rotation};\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: [titleX, titleY],\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}\nfunction splitNewlines(str) {\n if ((typeof str === 'string' || str instanceof String) && str.indexOf('\\n') > -1) {\n return str.split('\\n');\n }\n return str;\n}\nfunction 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}\nfunction 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\n\t\t\t+ (titleLineCount - 1) * options.titleSpacing\n\t\t\t+ options.titleMarginBottom;\n }\n if (combinedBodyLength) {\n const bodyLineHeight = options.displayColors ? Math.max(boxHeight, bodyFont.lineHeight) : bodyFont.lineHeight;\n height += bodyLineItemCount * bodyLineHeight\n\t\t\t+ (combinedBodyLength - bodyLineItemCount) * bodyFont.lineHeight\n\t\t\t+ (combinedBodyLength - 1) * options.bodySpacing;\n }\n if (footerLineCount) {\n height += options.footerMarginTop\n\t\t\t+ footerLineCount * footerFont.lineHeight\n\t\t\t+ (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 {width, height};\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}\nfunction 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}\nfunction 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'\n ? tooltip.x + tooltip.width / 2\n : align === 'right'\n ? tooltip.x + tooltip.width - padding.right\n : tooltip.x + padding.left;\n}\nfunction 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}\nclass Tooltip extends Element {\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 || config._chart;\n this._chart = this.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 ||\n\t\t\t(this.$context = createTooltipContext(this.chart.getContext(), this, this._tooltipItems));\n }\n getTitle(context, options) {\n const {callbacks} = options;\n const beforeTitle = callbacks.beforeTitle.apply(this, [context]);\n const title = callbacks.title.apply(this, [context]);\n const afterTitle = callbacks.afterTitle.apply(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(options.callbacks.beforeBody.apply(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(scoped.beforeLabel.call(this, context)));\n pushOrConcat(bodyItem.lines, scoped.label.call(this, context));\n pushOrConcat(bodyItem.after, splitNewlines(scoped.afterLabel.call(this, context)));\n bodyItems.push(bodyItem);\n });\n return bodyItems;\n }\n getAfterBody(tooltipItems, options) {\n return getBeforeAfterBodyLines(options.callbacks.afterBody.apply(this, [tooltipItems]));\n }\n getFooter(tooltipItems, options) {\n const {callbacks} = options;\n const beforeFooter = callbacks.beforeFooter.apply(this, [tooltipItems]);\n const footer = callbacks.footer.apply(this, [tooltipItems]);\n const afterFooter = callbacks.afterFooter.apply(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(scoped.labelColor.call(this, context));\n labelPointStyles.push(scoped.labelPointStyle.call(this, context));\n labelTextColors.push(scoped.labelTextColor.call(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, {chart: this.chart, tooltip: this, replay});\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 {x1, x2, x3, y1, y2, y3};\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'\n ? bodyAlign === 'center' ? (boxWidth / 2 + boxPadding) : (boxWidth + 2 + boxPadding)\n : 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}\nTooltip.positioners = positioners;\nvar plugin_tooltip = {\n id: 'tooltip',\n _element: Tooltip,\n positioners,\n afterInit(chart, _args, options) {\n if (options) {\n chart.tooltip = new Tooltip({chart, options});\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', args) === 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 },\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: ['x', 'y', 'width', 'height', 'caretX', 'caretY'],\n },\n opacity: {\n easing: 'linear',\n duration: 200\n }\n },\n callbacks: {\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 },\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: ['interaction']\n};\n\nvar plugins = /*#__PURE__*/Object.freeze({\n__proto__: null,\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({index, label: raw});\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);\nclass CategoryScale extends Scale {\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\n : 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({value});\n }\n return ticks;\n }\n getLabelForValue(value) {\n const labels = this.getLabels();\n if (value >= 0 && value < labels.length) {\n return labels[value];\n }\n return 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}\nCategoryScale.id = 'category';\nCategoryScale.defaults = {\n ticks: {\n callback: CategoryScale.prototype.getLabelForValue\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 [{value: rmin}, {value: rmax}];\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(\n _decimalPlaces(spacing),\n _decimalPlaces(niceMin)\n );\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({value: min});\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({value: Math.round((niceMin + j * spacing) * factor) / factor});\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({value: max});\n }\n } else if (!maxDefined || niceMax === max) {\n ticks.push({value: niceMax});\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 = 1;\n if (max >= Number.MAX_SAFE_INTEGER || min <= Number.MIN_SAFE_INTEGER) {\n offset = Math.abs(max * 0.05);\n }\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 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}\nLinearScale.id = 'linear';\nLinearScale.defaults = {\n ticks: {\n callback: Ticks.formatters.numeric\n }\n};\n\nfunction isMajor(tickVal) {\n const remain = tickVal / (Math.pow(10, Math.floor(log10(tickVal))));\n return remain === 1;\n}\nfunction generateTicks(generationOptions, dataRange) {\n const endExp = Math.floor(log10(dataRange.max));\n const endSignificand = Math.ceil(dataRange.max / Math.pow(10, endExp));\n const ticks = [];\n let tickVal = finiteOrDefault(generationOptions.min, Math.pow(10, Math.floor(log10(dataRange.min))));\n let exp = Math.floor(log10(tickVal));\n let significand = Math.floor(tickVal / Math.pow(10, exp));\n let precision = exp < 0 ? Math.pow(10, Math.abs(exp)) : 1;\n do {\n ticks.push({value: tickVal, major: isMajor(tickVal)});\n ++significand;\n if (significand === 10) {\n significand = 1;\n ++exp;\n precision = exp >= 0 ? 1 : precision;\n }\n tickVal = Math.round(significand * Math.pow(10, exp) * precision) / precision;\n } while (exp < endExp || (exp === endExp && significand < endSignificand));\n const lastTick = finiteOrDefault(generationOptions.max, tickVal);\n ticks.push({value: lastTick, major: isMajor(tickVal)});\n return ticks;\n}\nclass LogarithmicScale extends Scale {\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, [raw, index]);\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 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 const exp = (v, m) => Math.pow(10, Math.floor(log10(v)) + m);\n if (min === max) {\n if (min <= 0) {\n setMin(1);\n setMax(10);\n } else {\n setMin(exp(min, -1));\n setMax(exp(max, +1));\n }\n }\n if (min <= 0) {\n setMin(exp(max, -1));\n }\n if (max <= 0) {\n setMax(exp(min, +1));\n }\n if (this._zero && this.min !== this._suggestedMin && min === exp(this.min, 0)) {\n setMin(exp(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\n ? '0'\n : 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\n ? 0\n : (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}\nLogarithmicScale.id = 'logarithmic';\nLogarithmicScale.defaults = {\n ticks: {\n callback: Ticks.formatters.logarithmic,\n major: {\n enabled: true\n }\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 : [label];\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}\nfunction 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(\n orig.l - limits.l,\n limits.r - orig.r,\n orig.t - limits.t,\n limits.b - orig.b\n );\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(\n ctx,\n scale._pointLabels[i],\n x,\n y + (plFont.lineHeight / 2),\n plFont,\n {\n color: optsAtIndex.color,\n textAlign: textAlign,\n textBaseline: 'middle'\n }\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) {\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(gridLineOpts.borderDash);\n ctx.lineDashOffset = gridLineOpts.borderDashOffset;\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 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()\n .map((value, index) => {\n const label = callback(this.options.pointLabels.callback, [value, index], this);\n return label || label === 0 ? label : '';\n })\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} = 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 optsAtIndex = grid.setContext(this.getContext(index - 1));\n drawRadiusLine(this, optsAtIndex, offset, labelCount);\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(\n -width / 2 - padding.left,\n -offset - tickFont.size / 2 - padding.top,\n width + padding.width,\n tickFont.size + padding.height\n );\n }\n renderText(ctx, tick.label, 0, -offset, tickFont, {\n color: optsAtIndex.color,\n });\n });\n ctx.restore();\n }\n drawTitle() {}\n}\nRadialLinearScale.id = 'radialLinear';\nRadialLinearScale.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};\nRadialLinearScale.defaultRoutes = {\n 'angleLines.color': 'borderColor',\n 'pointLabels.color': 'color',\n 'ticks.color': 'color'\n};\nRadialLinearScale.descriptors = {\n angleLines: {\n _fallback: 'grid'\n }\n};\n\nconst INTERVALS = {\n millisecond: {common: true, size: 1, steps: 1000},\n second: {common: true, size: 1000, steps: 60},\n minute: {common: true, size: 60000, steps: 60},\n hour: {common: true, size: 3600000, steps: 24},\n day: {common: true, size: 86400000, steps: 30},\n week: {common: false, size: 604800000, steps: 4},\n month: {common: true, size: 2.628e9, steps: 12},\n quarter: {common: false, size: 7.884e9, steps: 4},\n year: {common: true, size: 3.154e10}\n};\nconst UNITS = (Object.keys(INTERVALS));\nfunction sorter(a, b) {\n return a - b;\n}\nfunction 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'\n ? adapter.parse(value, parser)\n : adapter.parse(value);\n }\n if (value === null) {\n return null;\n }\n if (round) {\n value = round === 'week' && (isNumber(isoWeekday) || isoWeekday === true)\n ? adapter.startOf(value, 'isoWeek', isoWeekday)\n : adapter.startOf(value, round);\n }\n return +value;\n}\nfunction 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}\nfunction 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}\nfunction 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}\nfunction 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}\nfunction 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}\nfunction 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 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 {min, max};\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\n ? determineUnitForAutoTicks(timeOpts.minUnit, this.min, this.max, this._getLabelCapacity(min))\n : determineUnitForFormatting(this, ticks.length, timeOpts.minUnit, this.min, this.max));\n this._majorUnit = !tickOpts.major.enabled || this._unit === 'year' ? undefined\n : 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 = {start, end, factor: 1 / (start + 1 + end)};\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(timeOpts.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 _tickFormatFunction(time, index, ticks, format) {\n const options = this.options;\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 const label = this._adapter.format(time, format || (major ? majorFormat : minorFormat));\n const formatter = options.ticks.callback;\n return formatter ? callback(formatter, [label, index, ticks], this) : label;\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, [exampleTime], 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}\nTimeScale.id = 'time';\nTimeScale.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 major: {\n enabled: false\n }\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 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 {time: min, pos: 0},\n {time: max, pos: 1}\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({time: curr, pos: i / (ilen - 1)});\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}\nTimeSeriesScale.id = 'timeseries';\nTimeSeriesScale.defaults = TimeScale.defaults;\n\nvar scales = /*#__PURE__*/Object.freeze({\n__proto__: null,\nCategoryScale: CategoryScale,\nLinearScale: LinearScale,\nLogarithmicScale: LogarithmicScale,\nRadialLinearScale: RadialLinearScale,\nTimeScale: TimeScale,\nTimeSeriesScale: TimeSeriesScale\n});\n\nChart.register(controllers, scales, elements, plugins);\nChart.helpers = {...helpers};\nChart._adapters = _adapters;\nChart.Animation = Animation;\nChart.Animations = Animations;\nChart.animator = animator;\nChart.controllers = registry.controllers.items;\nChart.DatasetController = DatasetController;\nChart.Element = Element;\nChart.elements = elements;\nChart.Interaction = Interaction;\nChart.layouts = layouts;\nChart.platforms = platforms;\nChart.Scale = Scale;\nChart.Ticks = Ticks;\nObject.assign(Chart, controllers, scales, elements, plugins, platforms);\nChart.Chart = Chart;\nif (typeof window !== 'undefined') {\n window.Chart = Chart;\n}\n\nreturn Chart;\n\n}));\n"],"x_google_ignoreList":[]}