bootstrap.js 121 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945
  1. /*!
  2. * Bootstrap v4.1.3 (https://getbootstrap.com/)
  3. * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  4. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  5. */
  6. (function (global, factory) {
  7. typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery'), require('popper.js')) :
  8. typeof define === 'function' && define.amd ? define(['exports', 'jquery', 'popper.js'], factory) :
  9. (factory((global.bootstrap = {}),global.jQuery,global.Popper));
  10. }(this, (function (exports,$,Popper) { 'use strict';
  11. $ = $ && $.hasOwnProperty('default') ? $['default'] : $;
  12. Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;
  13. function _defineProperties(target, props) {
  14. for (var i = 0; i < props.length; i++) {
  15. var descriptor = props[i];
  16. descriptor.enumerable = descriptor.enumerable || false;
  17. descriptor.configurable = true;
  18. if ("value" in descriptor) descriptor.writable = true;
  19. Object.defineProperty(target, descriptor.key, descriptor);
  20. }
  21. }
  22. function _createClass(Constructor, protoProps, staticProps) {
  23. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  24. if (staticProps) _defineProperties(Constructor, staticProps);
  25. return Constructor;
  26. }
  27. function _defineProperty(obj, key, value) {
  28. if (key in obj) {
  29. Object.defineProperty(obj, key, {
  30. value: value,
  31. enumerable: true,
  32. configurable: true,
  33. writable: true
  34. });
  35. } else {
  36. obj[key] = value;
  37. }
  38. return obj;
  39. }
  40. function _objectSpread(target) {
  41. for (var i = 1; i < arguments.length; i++) {
  42. var source = arguments[i] != null ? arguments[i] : {};
  43. var ownKeys = Object.keys(source);
  44. if (typeof Object.getOwnPropertySymbols === 'function') {
  45. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  46. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  47. }));
  48. }
  49. ownKeys.forEach(function (key) {
  50. _defineProperty(target, key, source[key]);
  51. });
  52. }
  53. return target;
  54. }
  55. function _inheritsLoose(subClass, superClass) {
  56. subClass.prototype = Object.create(superClass.prototype);
  57. subClass.prototype.constructor = subClass;
  58. subClass.__proto__ = superClass;
  59. }
  60. /**
  61. * --------------------------------------------------------------------------
  62. * Bootstrap (v4.1.3): util.js
  63. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  64. * --------------------------------------------------------------------------
  65. */
  66. var Util = function ($$$1) {
  67. /**
  68. * ------------------------------------------------------------------------
  69. * Private TransitionEnd Helpers
  70. * ------------------------------------------------------------------------
  71. */
  72. var TRANSITION_END = 'transitionend';
  73. var MAX_UID = 1000000;
  74. var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
  75. function toType(obj) {
  76. return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
  77. }
  78. function getSpecialTransitionEndEvent() {
  79. return {
  80. bindType: TRANSITION_END,
  81. delegateType: TRANSITION_END,
  82. handle: function handle(event) {
  83. if ($$$1(event.target).is(this)) {
  84. return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
  85. }
  86. return undefined; // eslint-disable-line no-undefined
  87. }
  88. };
  89. }
  90. function transitionEndEmulator(duration) {
  91. var _this = this;
  92. var called = false;
  93. $$$1(this).one(Util.TRANSITION_END, function () {
  94. called = true;
  95. });
  96. setTimeout(function () {
  97. if (!called) {
  98. Util.triggerTransitionEnd(_this);
  99. }
  100. }, duration);
  101. return this;
  102. }
  103. function setTransitionEndSupport() {
  104. $$$1.fn.emulateTransitionEnd = transitionEndEmulator;
  105. $$$1.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
  106. }
  107. /**
  108. * --------------------------------------------------------------------------
  109. * Public Util Api
  110. * --------------------------------------------------------------------------
  111. */
  112. var Util = {
  113. TRANSITION_END: 'bsTransitionEnd',
  114. getUID: function getUID(prefix) {
  115. do {
  116. // eslint-disable-next-line no-bitwise
  117. prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
  118. } while (document.getElementById(prefix));
  119. return prefix;
  120. },
  121. getSelectorFromElement: function getSelectorFromElement(element) {
  122. var selector = element.getAttribute('data-target');
  123. if (!selector || selector === '#') {
  124. selector = element.getAttribute('href') || '';
  125. }
  126. try {
  127. return document.querySelector(selector) ? selector : null;
  128. } catch (err) {
  129. return null;
  130. }
  131. },
  132. getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {
  133. if (!element) {
  134. return 0;
  135. } // Get transition-duration of the element
  136. var transitionDuration = $$$1(element).css('transition-duration');
  137. var floatTransitionDuration = parseFloat(transitionDuration); // Return 0 if element or transition duration is not found
  138. if (!floatTransitionDuration) {
  139. return 0;
  140. } // If multiple durations are defined, take the first
  141. transitionDuration = transitionDuration.split(',')[0];
  142. return parseFloat(transitionDuration) * MILLISECONDS_MULTIPLIER;
  143. },
  144. reflow: function reflow(element) {
  145. return element.offsetHeight;
  146. },
  147. triggerTransitionEnd: function triggerTransitionEnd(element) {
  148. $$$1(element).trigger(TRANSITION_END);
  149. },
  150. // TODO: Remove in v5
  151. supportsTransitionEnd: function supportsTransitionEnd() {
  152. return Boolean(TRANSITION_END);
  153. },
  154. isElement: function isElement(obj) {
  155. return (obj[0] || obj).nodeType;
  156. },
  157. typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {
  158. for (var property in configTypes) {
  159. if (Object.prototype.hasOwnProperty.call(configTypes, property)) {
  160. var expectedTypes = configTypes[property];
  161. var value = config[property];
  162. var valueType = value && Util.isElement(value) ? 'element' : toType(value);
  163. if (!new RegExp(expectedTypes).test(valueType)) {
  164. throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
  165. }
  166. }
  167. }
  168. }
  169. };
  170. setTransitionEndSupport();
  171. return Util;
  172. }($);
  173. /**
  174. * --------------------------------------------------------------------------
  175. * Bootstrap (v4.1.3): alert.js
  176. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  177. * --------------------------------------------------------------------------
  178. */
  179. var Alert = function ($$$1) {
  180. /**
  181. * ------------------------------------------------------------------------
  182. * Constants
  183. * ------------------------------------------------------------------------
  184. */
  185. var NAME = 'alert';
  186. var VERSION = '4.1.3';
  187. var DATA_KEY = 'bs.alert';
  188. var EVENT_KEY = "." + DATA_KEY;
  189. var DATA_API_KEY = '.data-api';
  190. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  191. var Selector = {
  192. DISMISS: '[data-dismiss="alert"]'
  193. };
  194. var Event = {
  195. CLOSE: "close" + EVENT_KEY,
  196. CLOSED: "closed" + EVENT_KEY,
  197. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
  198. };
  199. var ClassName = {
  200. ALERT: 'alert',
  201. FADE: 'fade',
  202. SHOW: 'show'
  203. /**
  204. * ------------------------------------------------------------------------
  205. * Class Definition
  206. * ------------------------------------------------------------------------
  207. */
  208. };
  209. var Alert =
  210. /*#__PURE__*/
  211. function () {
  212. function Alert(element) {
  213. this._element = element;
  214. } // Getters
  215. var _proto = Alert.prototype;
  216. // Public
  217. _proto.close = function close(element) {
  218. var rootElement = this._element;
  219. if (element) {
  220. rootElement = this._getRootElement(element);
  221. }
  222. var customEvent = this._triggerCloseEvent(rootElement);
  223. if (customEvent.isDefaultPrevented()) {
  224. return;
  225. }
  226. this._removeElement(rootElement);
  227. };
  228. _proto.dispose = function dispose() {
  229. $$$1.removeData(this._element, DATA_KEY);
  230. this._element = null;
  231. }; // Private
  232. _proto._getRootElement = function _getRootElement(element) {
  233. var selector = Util.getSelectorFromElement(element);
  234. var parent = false;
  235. if (selector) {
  236. parent = document.querySelector(selector);
  237. }
  238. if (!parent) {
  239. parent = $$$1(element).closest("." + ClassName.ALERT)[0];
  240. }
  241. return parent;
  242. };
  243. _proto._triggerCloseEvent = function _triggerCloseEvent(element) {
  244. var closeEvent = $$$1.Event(Event.CLOSE);
  245. $$$1(element).trigger(closeEvent);
  246. return closeEvent;
  247. };
  248. _proto._removeElement = function _removeElement(element) {
  249. var _this = this;
  250. $$$1(element).removeClass(ClassName.SHOW);
  251. if (!$$$1(element).hasClass(ClassName.FADE)) {
  252. this._destroyElement(element);
  253. return;
  254. }
  255. var transitionDuration = Util.getTransitionDurationFromElement(element);
  256. $$$1(element).one(Util.TRANSITION_END, function (event) {
  257. return _this._destroyElement(element, event);
  258. }).emulateTransitionEnd(transitionDuration);
  259. };
  260. _proto._destroyElement = function _destroyElement(element) {
  261. $$$1(element).detach().trigger(Event.CLOSED).remove();
  262. }; // Static
  263. Alert._jQueryInterface = function _jQueryInterface(config) {
  264. return this.each(function () {
  265. var $element = $$$1(this);
  266. var data = $element.data(DATA_KEY);
  267. if (!data) {
  268. data = new Alert(this);
  269. $element.data(DATA_KEY, data);
  270. }
  271. if (config === 'close') {
  272. data[config](this);
  273. }
  274. });
  275. };
  276. Alert._handleDismiss = function _handleDismiss(alertInstance) {
  277. return function (event) {
  278. if (event) {
  279. event.preventDefault();
  280. }
  281. alertInstance.close(this);
  282. };
  283. };
  284. _createClass(Alert, null, [{
  285. key: "VERSION",
  286. get: function get() {
  287. return VERSION;
  288. }
  289. }]);
  290. return Alert;
  291. }();
  292. /**
  293. * ------------------------------------------------------------------------
  294. * Data Api implementation
  295. * ------------------------------------------------------------------------
  296. */
  297. $$$1(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert()));
  298. /**
  299. * ------------------------------------------------------------------------
  300. * jQuery
  301. * ------------------------------------------------------------------------
  302. */
  303. $$$1.fn[NAME] = Alert._jQueryInterface;
  304. $$$1.fn[NAME].Constructor = Alert;
  305. $$$1.fn[NAME].noConflict = function () {
  306. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  307. return Alert._jQueryInterface;
  308. };
  309. return Alert;
  310. }($);
  311. /**
  312. * --------------------------------------------------------------------------
  313. * Bootstrap (v4.1.3): button.js
  314. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  315. * --------------------------------------------------------------------------
  316. */
  317. var Button = function ($$$1) {
  318. /**
  319. * ------------------------------------------------------------------------
  320. * Constants
  321. * ------------------------------------------------------------------------
  322. */
  323. var NAME = 'button';
  324. var VERSION = '4.1.3';
  325. var DATA_KEY = 'bs.button';
  326. var EVENT_KEY = "." + DATA_KEY;
  327. var DATA_API_KEY = '.data-api';
  328. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  329. var ClassName = {
  330. ACTIVE: 'active',
  331. BUTTON: 'btn',
  332. FOCUS: 'focus'
  333. };
  334. var Selector = {
  335. DATA_TOGGLE_CARROT: '[data-toggle^="button"]',
  336. DATA_TOGGLE: '[data-toggle="buttons"]',
  337. INPUT: 'input',
  338. ACTIVE: '.active',
  339. BUTTON: '.btn'
  340. };
  341. var Event = {
  342. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY,
  343. FOCUS_BLUR_DATA_API: "focus" + EVENT_KEY + DATA_API_KEY + " " + ("blur" + EVENT_KEY + DATA_API_KEY)
  344. /**
  345. * ------------------------------------------------------------------------
  346. * Class Definition
  347. * ------------------------------------------------------------------------
  348. */
  349. };
  350. var Button =
  351. /*#__PURE__*/
  352. function () {
  353. function Button(element) {
  354. this._element = element;
  355. } // Getters
  356. var _proto = Button.prototype;
  357. // Public
  358. _proto.toggle = function toggle() {
  359. var triggerChangeEvent = true;
  360. var addAriaPressed = true;
  361. var rootElement = $$$1(this._element).closest(Selector.DATA_TOGGLE)[0];
  362. if (rootElement) {
  363. var input = this._element.querySelector(Selector.INPUT);
  364. if (input) {
  365. if (input.type === 'radio') {
  366. if (input.checked && this._element.classList.contains(ClassName.ACTIVE)) {
  367. triggerChangeEvent = false;
  368. } else {
  369. var activeElement = rootElement.querySelector(Selector.ACTIVE);
  370. if (activeElement) {
  371. $$$1(activeElement).removeClass(ClassName.ACTIVE);
  372. }
  373. }
  374. }
  375. if (triggerChangeEvent) {
  376. if (input.hasAttribute('disabled') || rootElement.hasAttribute('disabled') || input.classList.contains('disabled') || rootElement.classList.contains('disabled')) {
  377. return;
  378. }
  379. input.checked = !this._element.classList.contains(ClassName.ACTIVE);
  380. $$$1(input).trigger('change');
  381. }
  382. input.focus();
  383. addAriaPressed = false;
  384. }
  385. }
  386. if (addAriaPressed) {
  387. this._element.setAttribute('aria-pressed', !this._element.classList.contains(ClassName.ACTIVE));
  388. }
  389. if (triggerChangeEvent) {
  390. $$$1(this._element).toggleClass(ClassName.ACTIVE);
  391. }
  392. };
  393. _proto.dispose = function dispose() {
  394. $$$1.removeData(this._element, DATA_KEY);
  395. this._element = null;
  396. }; // Static
  397. Button._jQueryInterface = function _jQueryInterface(config) {
  398. return this.each(function () {
  399. var data = $$$1(this).data(DATA_KEY);
  400. if (!data) {
  401. data = new Button(this);
  402. $$$1(this).data(DATA_KEY, data);
  403. }
  404. if (config === 'toggle') {
  405. data[config]();
  406. }
  407. });
  408. };
  409. _createClass(Button, null, [{
  410. key: "VERSION",
  411. get: function get() {
  412. return VERSION;
  413. }
  414. }]);
  415. return Button;
  416. }();
  417. /**
  418. * ------------------------------------------------------------------------
  419. * Data Api implementation
  420. * ------------------------------------------------------------------------
  421. */
  422. $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {
  423. event.preventDefault();
  424. var button = event.target;
  425. if (!$$$1(button).hasClass(ClassName.BUTTON)) {
  426. button = $$$1(button).closest(Selector.BUTTON);
  427. }
  428. Button._jQueryInterface.call($$$1(button), 'toggle');
  429. }).on(Event.FOCUS_BLUR_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {
  430. var button = $$$1(event.target).closest(Selector.BUTTON)[0];
  431. $$$1(button).toggleClass(ClassName.FOCUS, /^focus(in)?$/.test(event.type));
  432. });
  433. /**
  434. * ------------------------------------------------------------------------
  435. * jQuery
  436. * ------------------------------------------------------------------------
  437. */
  438. $$$1.fn[NAME] = Button._jQueryInterface;
  439. $$$1.fn[NAME].Constructor = Button;
  440. $$$1.fn[NAME].noConflict = function () {
  441. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  442. return Button._jQueryInterface;
  443. };
  444. return Button;
  445. }($);
  446. /**
  447. * --------------------------------------------------------------------------
  448. * Bootstrap (v4.1.3): carousel.js
  449. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  450. * --------------------------------------------------------------------------
  451. */
  452. var Carousel = function ($$$1) {
  453. /**
  454. * ------------------------------------------------------------------------
  455. * Constants
  456. * ------------------------------------------------------------------------
  457. */
  458. var NAME = 'carousel';
  459. var VERSION = '4.1.3';
  460. var DATA_KEY = 'bs.carousel';
  461. var EVENT_KEY = "." + DATA_KEY;
  462. var DATA_API_KEY = '.data-api';
  463. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  464. var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key
  465. var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key
  466. var TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch
  467. var Default = {
  468. interval: 5000,
  469. keyboard: true,
  470. slide: false,
  471. pause: 'hover',
  472. wrap: true
  473. };
  474. var DefaultType = {
  475. interval: '(number|boolean)',
  476. keyboard: 'boolean',
  477. slide: '(boolean|string)',
  478. pause: '(string|boolean)',
  479. wrap: 'boolean'
  480. };
  481. var Direction = {
  482. NEXT: 'next',
  483. PREV: 'prev',
  484. LEFT: 'left',
  485. RIGHT: 'right'
  486. };
  487. var Event = {
  488. SLIDE: "slide" + EVENT_KEY,
  489. SLID: "slid" + EVENT_KEY,
  490. KEYDOWN: "keydown" + EVENT_KEY,
  491. MOUSEENTER: "mouseenter" + EVENT_KEY,
  492. MOUSELEAVE: "mouseleave" + EVENT_KEY,
  493. TOUCHEND: "touchend" + EVENT_KEY,
  494. LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY,
  495. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
  496. };
  497. var ClassName = {
  498. CAROUSEL: 'carousel',
  499. ACTIVE: 'active',
  500. SLIDE: 'slide',
  501. RIGHT: 'carousel-item-right',
  502. LEFT: 'carousel-item-left',
  503. NEXT: 'carousel-item-next',
  504. PREV: 'carousel-item-prev',
  505. ITEM: 'carousel-item'
  506. };
  507. var Selector = {
  508. ACTIVE: '.active',
  509. ACTIVE_ITEM: '.active.carousel-item',
  510. ITEM: '.carousel-item',
  511. NEXT_PREV: '.carousel-item-next, .carousel-item-prev',
  512. INDICATORS: '.carousel-indicators',
  513. DATA_SLIDE: '[data-slide], [data-slide-to]',
  514. DATA_RIDE: '[data-ride="carousel"]'
  515. /**
  516. * ------------------------------------------------------------------------
  517. * Class Definition
  518. * ------------------------------------------------------------------------
  519. */
  520. };
  521. var Carousel =
  522. /*#__PURE__*/
  523. function () {
  524. function Carousel(element, config) {
  525. this._items = null;
  526. this._interval = null;
  527. this._activeElement = null;
  528. this._isPaused = false;
  529. this._isSliding = false;
  530. this.touchTimeout = null;
  531. this._config = this._getConfig(config);
  532. this._element = $$$1(element)[0];
  533. this._indicatorsElement = this._element.querySelector(Selector.INDICATORS);
  534. this._addEventListeners();
  535. } // Getters
  536. var _proto = Carousel.prototype;
  537. // Public
  538. _proto.next = function next() {
  539. if (!this._isSliding) {
  540. this._slide(Direction.NEXT);
  541. }
  542. };
  543. _proto.nextWhenVisible = function nextWhenVisible() {
  544. // Don't call next when the page isn't visible
  545. // or the carousel or its parent isn't visible
  546. if (!document.hidden && $$$1(this._element).is(':visible') && $$$1(this._element).css('visibility') !== 'hidden') {
  547. this.next();
  548. }
  549. };
  550. _proto.prev = function prev() {
  551. if (!this._isSliding) {
  552. this._slide(Direction.PREV);
  553. }
  554. };
  555. _proto.pause = function pause(event) {
  556. if (!event) {
  557. this._isPaused = true;
  558. }
  559. if (this._element.querySelector(Selector.NEXT_PREV)) {
  560. Util.triggerTransitionEnd(this._element);
  561. this.cycle(true);
  562. }
  563. clearInterval(this._interval);
  564. this._interval = null;
  565. };
  566. _proto.cycle = function cycle(event) {
  567. if (!event) {
  568. this._isPaused = false;
  569. }
  570. if (this._interval) {
  571. clearInterval(this._interval);
  572. this._interval = null;
  573. }
  574. if (this._config.interval && !this._isPaused) {
  575. this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval);
  576. }
  577. };
  578. _proto.to = function to(index) {
  579. var _this = this;
  580. this._activeElement = this._element.querySelector(Selector.ACTIVE_ITEM);
  581. var activeIndex = this._getItemIndex(this._activeElement);
  582. if (index > this._items.length - 1 || index < 0) {
  583. return;
  584. }
  585. if (this._isSliding) {
  586. $$$1(this._element).one(Event.SLID, function () {
  587. return _this.to(index);
  588. });
  589. return;
  590. }
  591. if (activeIndex === index) {
  592. this.pause();
  593. this.cycle();
  594. return;
  595. }
  596. var direction = index > activeIndex ? Direction.NEXT : Direction.PREV;
  597. this._slide(direction, this._items[index]);
  598. };
  599. _proto.dispose = function dispose() {
  600. $$$1(this._element).off(EVENT_KEY);
  601. $$$1.removeData(this._element, DATA_KEY);
  602. this._items = null;
  603. this._config = null;
  604. this._element = null;
  605. this._interval = null;
  606. this._isPaused = null;
  607. this._isSliding = null;
  608. this._activeElement = null;
  609. this._indicatorsElement = null;
  610. }; // Private
  611. _proto._getConfig = function _getConfig(config) {
  612. config = _objectSpread({}, Default, config);
  613. Util.typeCheckConfig(NAME, config, DefaultType);
  614. return config;
  615. };
  616. _proto._addEventListeners = function _addEventListeners() {
  617. var _this2 = this;
  618. if (this._config.keyboard) {
  619. $$$1(this._element).on(Event.KEYDOWN, function (event) {
  620. return _this2._keydown(event);
  621. });
  622. }
  623. if (this._config.pause === 'hover') {
  624. $$$1(this._element).on(Event.MOUSEENTER, function (event) {
  625. return _this2.pause(event);
  626. }).on(Event.MOUSELEAVE, function (event) {
  627. return _this2.cycle(event);
  628. });
  629. if ('ontouchstart' in document.documentElement) {
  630. // If it's a touch-enabled device, mouseenter/leave are fired as
  631. // part of the mouse compatibility events on first tap - the carousel
  632. // would stop cycling until user tapped out of it;
  633. // here, we listen for touchend, explicitly pause the carousel
  634. // (as if it's the second time we tap on it, mouseenter compat event
  635. // is NOT fired) and after a timeout (to allow for mouse compatibility
  636. // events to fire) we explicitly restart cycling
  637. $$$1(this._element).on(Event.TOUCHEND, function () {
  638. _this2.pause();
  639. if (_this2.touchTimeout) {
  640. clearTimeout(_this2.touchTimeout);
  641. }
  642. _this2.touchTimeout = setTimeout(function (event) {
  643. return _this2.cycle(event);
  644. }, TOUCHEVENT_COMPAT_WAIT + _this2._config.interval);
  645. });
  646. }
  647. }
  648. };
  649. _proto._keydown = function _keydown(event) {
  650. if (/input|textarea/i.test(event.target.tagName)) {
  651. return;
  652. }
  653. switch (event.which) {
  654. case ARROW_LEFT_KEYCODE:
  655. event.preventDefault();
  656. this.prev();
  657. break;
  658. case ARROW_RIGHT_KEYCODE:
  659. event.preventDefault();
  660. this.next();
  661. break;
  662. default:
  663. }
  664. };
  665. _proto._getItemIndex = function _getItemIndex(element) {
  666. this._items = element && element.parentNode ? [].slice.call(element.parentNode.querySelectorAll(Selector.ITEM)) : [];
  667. return this._items.indexOf(element);
  668. };
  669. _proto._getItemByDirection = function _getItemByDirection(direction, activeElement) {
  670. var isNextDirection = direction === Direction.NEXT;
  671. var isPrevDirection = direction === Direction.PREV;
  672. var activeIndex = this._getItemIndex(activeElement);
  673. var lastItemIndex = this._items.length - 1;
  674. var isGoingToWrap = isPrevDirection && activeIndex === 0 || isNextDirection && activeIndex === lastItemIndex;
  675. if (isGoingToWrap && !this._config.wrap) {
  676. return activeElement;
  677. }
  678. var delta = direction === Direction.PREV ? -1 : 1;
  679. var itemIndex = (activeIndex + delta) % this._items.length;
  680. return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex];
  681. };
  682. _proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) {
  683. var targetIndex = this._getItemIndex(relatedTarget);
  684. var fromIndex = this._getItemIndex(this._element.querySelector(Selector.ACTIVE_ITEM));
  685. var slideEvent = $$$1.Event(Event.SLIDE, {
  686. relatedTarget: relatedTarget,
  687. direction: eventDirectionName,
  688. from: fromIndex,
  689. to: targetIndex
  690. });
  691. $$$1(this._element).trigger(slideEvent);
  692. return slideEvent;
  693. };
  694. _proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
  695. if (this._indicatorsElement) {
  696. var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(Selector.ACTIVE));
  697. $$$1(indicators).removeClass(ClassName.ACTIVE);
  698. var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
  699. if (nextIndicator) {
  700. $$$1(nextIndicator).addClass(ClassName.ACTIVE);
  701. }
  702. }
  703. };
  704. _proto._slide = function _slide(direction, element) {
  705. var _this3 = this;
  706. var activeElement = this._element.querySelector(Selector.ACTIVE_ITEM);
  707. var activeElementIndex = this._getItemIndex(activeElement);
  708. var nextElement = element || activeElement && this._getItemByDirection(direction, activeElement);
  709. var nextElementIndex = this._getItemIndex(nextElement);
  710. var isCycling = Boolean(this._interval);
  711. var directionalClassName;
  712. var orderClassName;
  713. var eventDirectionName;
  714. if (direction === Direction.NEXT) {
  715. directionalClassName = ClassName.LEFT;
  716. orderClassName = ClassName.NEXT;
  717. eventDirectionName = Direction.LEFT;
  718. } else {
  719. directionalClassName = ClassName.RIGHT;
  720. orderClassName = ClassName.PREV;
  721. eventDirectionName = Direction.RIGHT;
  722. }
  723. if (nextElement && $$$1(nextElement).hasClass(ClassName.ACTIVE)) {
  724. this._isSliding = false;
  725. return;
  726. }
  727. var slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName);
  728. if (slideEvent.isDefaultPrevented()) {
  729. return;
  730. }
  731. if (!activeElement || !nextElement) {
  732. // Some weirdness is happening, so we bail
  733. return;
  734. }
  735. this._isSliding = true;
  736. if (isCycling) {
  737. this.pause();
  738. }
  739. this._setActiveIndicatorElement(nextElement);
  740. var slidEvent = $$$1.Event(Event.SLID, {
  741. relatedTarget: nextElement,
  742. direction: eventDirectionName,
  743. from: activeElementIndex,
  744. to: nextElementIndex
  745. });
  746. if ($$$1(this._element).hasClass(ClassName.SLIDE)) {
  747. $$$1(nextElement).addClass(orderClassName);
  748. Util.reflow(nextElement);
  749. $$$1(activeElement).addClass(directionalClassName);
  750. $$$1(nextElement).addClass(directionalClassName);
  751. var transitionDuration = Util.getTransitionDurationFromElement(activeElement);
  752. $$$1(activeElement).one(Util.TRANSITION_END, function () {
  753. $$$1(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(ClassName.ACTIVE);
  754. $$$1(activeElement).removeClass(ClassName.ACTIVE + " " + orderClassName + " " + directionalClassName);
  755. _this3._isSliding = false;
  756. setTimeout(function () {
  757. return $$$1(_this3._element).trigger(slidEvent);
  758. }, 0);
  759. }).emulateTransitionEnd(transitionDuration);
  760. } else {
  761. $$$1(activeElement).removeClass(ClassName.ACTIVE);
  762. $$$1(nextElement).addClass(ClassName.ACTIVE);
  763. this._isSliding = false;
  764. $$$1(this._element).trigger(slidEvent);
  765. }
  766. if (isCycling) {
  767. this.cycle();
  768. }
  769. }; // Static
  770. Carousel._jQueryInterface = function _jQueryInterface(config) {
  771. return this.each(function () {
  772. var data = $$$1(this).data(DATA_KEY);
  773. var _config = _objectSpread({}, Default, $$$1(this).data());
  774. if (typeof config === 'object') {
  775. _config = _objectSpread({}, _config, config);
  776. }
  777. var action = typeof config === 'string' ? config : _config.slide;
  778. if (!data) {
  779. data = new Carousel(this, _config);
  780. $$$1(this).data(DATA_KEY, data);
  781. }
  782. if (typeof config === 'number') {
  783. data.to(config);
  784. } else if (typeof action === 'string') {
  785. if (typeof data[action] === 'undefined') {
  786. throw new TypeError("No method named \"" + action + "\"");
  787. }
  788. data[action]();
  789. } else if (_config.interval) {
  790. data.pause();
  791. data.cycle();
  792. }
  793. });
  794. };
  795. Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {
  796. var selector = Util.getSelectorFromElement(this);
  797. if (!selector) {
  798. return;
  799. }
  800. var target = $$$1(selector)[0];
  801. if (!target || !$$$1(target).hasClass(ClassName.CAROUSEL)) {
  802. return;
  803. }
  804. var config = _objectSpread({}, $$$1(target).data(), $$$1(this).data());
  805. var slideIndex = this.getAttribute('data-slide-to');
  806. if (slideIndex) {
  807. config.interval = false;
  808. }
  809. Carousel._jQueryInterface.call($$$1(target), config);
  810. if (slideIndex) {
  811. $$$1(target).data(DATA_KEY).to(slideIndex);
  812. }
  813. event.preventDefault();
  814. };
  815. _createClass(Carousel, null, [{
  816. key: "VERSION",
  817. get: function get() {
  818. return VERSION;
  819. }
  820. }, {
  821. key: "Default",
  822. get: function get() {
  823. return Default;
  824. }
  825. }]);
  826. return Carousel;
  827. }();
  828. /**
  829. * ------------------------------------------------------------------------
  830. * Data Api implementation
  831. * ------------------------------------------------------------------------
  832. */
  833. $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler);
  834. $$$1(window).on(Event.LOAD_DATA_API, function () {
  835. var carousels = [].slice.call(document.querySelectorAll(Selector.DATA_RIDE));
  836. for (var i = 0, len = carousels.length; i < len; i++) {
  837. var $carousel = $$$1(carousels[i]);
  838. Carousel._jQueryInterface.call($carousel, $carousel.data());
  839. }
  840. });
  841. /**
  842. * ------------------------------------------------------------------------
  843. * jQuery
  844. * ------------------------------------------------------------------------
  845. */
  846. $$$1.fn[NAME] = Carousel._jQueryInterface;
  847. $$$1.fn[NAME].Constructor = Carousel;
  848. $$$1.fn[NAME].noConflict = function () {
  849. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  850. return Carousel._jQueryInterface;
  851. };
  852. return Carousel;
  853. }($);
  854. /**
  855. * --------------------------------------------------------------------------
  856. * Bootstrap (v4.1.3): collapse.js
  857. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  858. * --------------------------------------------------------------------------
  859. */
  860. var Collapse = function ($$$1) {
  861. /**
  862. * ------------------------------------------------------------------------
  863. * Constants
  864. * ------------------------------------------------------------------------
  865. */
  866. var NAME = 'collapse';
  867. var VERSION = '4.1.3';
  868. var DATA_KEY = 'bs.collapse';
  869. var EVENT_KEY = "." + DATA_KEY;
  870. var DATA_API_KEY = '.data-api';
  871. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  872. var Default = {
  873. toggle: true,
  874. parent: ''
  875. };
  876. var DefaultType = {
  877. toggle: 'boolean',
  878. parent: '(string|element)'
  879. };
  880. var Event = {
  881. SHOW: "show" + EVENT_KEY,
  882. SHOWN: "shown" + EVENT_KEY,
  883. HIDE: "hide" + EVENT_KEY,
  884. HIDDEN: "hidden" + EVENT_KEY,
  885. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
  886. };
  887. var ClassName = {
  888. SHOW: 'show',
  889. COLLAPSE: 'collapse',
  890. COLLAPSING: 'collapsing',
  891. COLLAPSED: 'collapsed'
  892. };
  893. var Dimension = {
  894. WIDTH: 'width',
  895. HEIGHT: 'height'
  896. };
  897. var Selector = {
  898. ACTIVES: '.show, .collapsing',
  899. DATA_TOGGLE: '[data-toggle="collapse"]'
  900. /**
  901. * ------------------------------------------------------------------------
  902. * Class Definition
  903. * ------------------------------------------------------------------------
  904. */
  905. };
  906. var Collapse =
  907. /*#__PURE__*/
  908. function () {
  909. function Collapse(element, config) {
  910. this._isTransitioning = false;
  911. this._element = element;
  912. this._config = this._getConfig(config);
  913. this._triggerArray = $$$1.makeArray(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]")));
  914. var toggleList = [].slice.call(document.querySelectorAll(Selector.DATA_TOGGLE));
  915. for (var i = 0, len = toggleList.length; i < len; i++) {
  916. var elem = toggleList[i];
  917. var selector = Util.getSelectorFromElement(elem);
  918. var filterElement = [].slice.call(document.querySelectorAll(selector)).filter(function (foundElem) {
  919. return foundElem === element;
  920. });
  921. if (selector !== null && filterElement.length > 0) {
  922. this._selector = selector;
  923. this._triggerArray.push(elem);
  924. }
  925. }
  926. this._parent = this._config.parent ? this._getParent() : null;
  927. if (!this._config.parent) {
  928. this._addAriaAndCollapsedClass(this._element, this._triggerArray);
  929. }
  930. if (this._config.toggle) {
  931. this.toggle();
  932. }
  933. } // Getters
  934. var _proto = Collapse.prototype;
  935. // Public
  936. _proto.toggle = function toggle() {
  937. if ($$$1(this._element).hasClass(ClassName.SHOW)) {
  938. this.hide();
  939. } else {
  940. this.show();
  941. }
  942. };
  943. _proto.show = function show() {
  944. var _this = this;
  945. if (this._isTransitioning || $$$1(this._element).hasClass(ClassName.SHOW)) {
  946. return;
  947. }
  948. var actives;
  949. var activesData;
  950. if (this._parent) {
  951. actives = [].slice.call(this._parent.querySelectorAll(Selector.ACTIVES)).filter(function (elem) {
  952. return elem.getAttribute('data-parent') === _this._config.parent;
  953. });
  954. if (actives.length === 0) {
  955. actives = null;
  956. }
  957. }
  958. if (actives) {
  959. activesData = $$$1(actives).not(this._selector).data(DATA_KEY);
  960. if (activesData && activesData._isTransitioning) {
  961. return;
  962. }
  963. }
  964. var startEvent = $$$1.Event(Event.SHOW);
  965. $$$1(this._element).trigger(startEvent);
  966. if (startEvent.isDefaultPrevented()) {
  967. return;
  968. }
  969. if (actives) {
  970. Collapse._jQueryInterface.call($$$1(actives).not(this._selector), 'hide');
  971. if (!activesData) {
  972. $$$1(actives).data(DATA_KEY, null);
  973. }
  974. }
  975. var dimension = this._getDimension();
  976. $$$1(this._element).removeClass(ClassName.COLLAPSE).addClass(ClassName.COLLAPSING);
  977. this._element.style[dimension] = 0;
  978. if (this._triggerArray.length) {
  979. $$$1(this._triggerArray).removeClass(ClassName.COLLAPSED).attr('aria-expanded', true);
  980. }
  981. this.setTransitioning(true);
  982. var complete = function complete() {
  983. $$$1(_this._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.SHOW);
  984. _this._element.style[dimension] = '';
  985. _this.setTransitioning(false);
  986. $$$1(_this._element).trigger(Event.SHOWN);
  987. };
  988. var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
  989. var scrollSize = "scroll" + capitalizedDimension;
  990. var transitionDuration = Util.getTransitionDurationFromElement(this._element);
  991. $$$1(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
  992. this._element.style[dimension] = this._element[scrollSize] + "px";
  993. };
  994. _proto.hide = function hide() {
  995. var _this2 = this;
  996. if (this._isTransitioning || !$$$1(this._element).hasClass(ClassName.SHOW)) {
  997. return;
  998. }
  999. var startEvent = $$$1.Event(Event.HIDE);
  1000. $$$1(this._element).trigger(startEvent);
  1001. if (startEvent.isDefaultPrevented()) {
  1002. return;
  1003. }
  1004. var dimension = this._getDimension();
  1005. this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
  1006. Util.reflow(this._element);
  1007. $$$1(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW);
  1008. var triggerArrayLength = this._triggerArray.length;
  1009. if (triggerArrayLength > 0) {
  1010. for (var i = 0; i < triggerArrayLength; i++) {
  1011. var trigger = this._triggerArray[i];
  1012. var selector = Util.getSelectorFromElement(trigger);
  1013. if (selector !== null) {
  1014. var $elem = $$$1([].slice.call(document.querySelectorAll(selector)));
  1015. if (!$elem.hasClass(ClassName.SHOW)) {
  1016. $$$1(trigger).addClass(ClassName.COLLAPSED).attr('aria-expanded', false);
  1017. }
  1018. }
  1019. }
  1020. }
  1021. this.setTransitioning(true);
  1022. var complete = function complete() {
  1023. _this2.setTransitioning(false);
  1024. $$$1(_this2._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).trigger(Event.HIDDEN);
  1025. };
  1026. this._element.style[dimension] = '';
  1027. var transitionDuration = Util.getTransitionDurationFromElement(this._element);
  1028. $$$1(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
  1029. };
  1030. _proto.setTransitioning = function setTransitioning(isTransitioning) {
  1031. this._isTransitioning = isTransitioning;
  1032. };
  1033. _proto.dispose = function dispose() {
  1034. $$$1.removeData(this._element, DATA_KEY);
  1035. this._config = null;
  1036. this._parent = null;
  1037. this._element = null;
  1038. this._triggerArray = null;
  1039. this._isTransitioning = null;
  1040. }; // Private
  1041. _proto._getConfig = function _getConfig(config) {
  1042. config = _objectSpread({}, Default, config);
  1043. config.toggle = Boolean(config.toggle); // Coerce string values
  1044. Util.typeCheckConfig(NAME, config, DefaultType);
  1045. return config;
  1046. };
  1047. _proto._getDimension = function _getDimension() {
  1048. var hasWidth = $$$1(this._element).hasClass(Dimension.WIDTH);
  1049. return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT;
  1050. };
  1051. _proto._getParent = function _getParent() {
  1052. var _this3 = this;
  1053. var parent = null;
  1054. if (Util.isElement(this._config.parent)) {
  1055. parent = this._config.parent; // It's a jQuery object
  1056. if (typeof this._config.parent.jquery !== 'undefined') {
  1057. parent = this._config.parent[0];
  1058. }
  1059. } else {
  1060. parent = document.querySelector(this._config.parent);
  1061. }
  1062. var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
  1063. var children = [].slice.call(parent.querySelectorAll(selector));
  1064. $$$1(children).each(function (i, element) {
  1065. _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
  1066. });
  1067. return parent;
  1068. };
  1069. _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
  1070. if (element) {
  1071. var isOpen = $$$1(element).hasClass(ClassName.SHOW);
  1072. if (triggerArray.length) {
  1073. $$$1(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
  1074. }
  1075. }
  1076. }; // Static
  1077. Collapse._getTargetFromElement = function _getTargetFromElement(element) {
  1078. var selector = Util.getSelectorFromElement(element);
  1079. return selector ? document.querySelector(selector) : null;
  1080. };
  1081. Collapse._jQueryInterface = function _jQueryInterface(config) {
  1082. return this.each(function () {
  1083. var $this = $$$1(this);
  1084. var data = $this.data(DATA_KEY);
  1085. var _config = _objectSpread({}, Default, $this.data(), typeof config === 'object' && config ? config : {});
  1086. if (!data && _config.toggle && /show|hide/.test(config)) {
  1087. _config.toggle = false;
  1088. }
  1089. if (!data) {
  1090. data = new Collapse(this, _config);
  1091. $this.data(DATA_KEY, data);
  1092. }
  1093. if (typeof config === 'string') {
  1094. if (typeof data[config] === 'undefined') {
  1095. throw new TypeError("No method named \"" + config + "\"");
  1096. }
  1097. data[config]();
  1098. }
  1099. });
  1100. };
  1101. _createClass(Collapse, null, [{
  1102. key: "VERSION",
  1103. get: function get() {
  1104. return VERSION;
  1105. }
  1106. }, {
  1107. key: "Default",
  1108. get: function get() {
  1109. return Default;
  1110. }
  1111. }]);
  1112. return Collapse;
  1113. }();
  1114. /**
  1115. * ------------------------------------------------------------------------
  1116. * Data Api implementation
  1117. * ------------------------------------------------------------------------
  1118. */
  1119. $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
  1120. // preventDefault only for <a> elements (which change the URL) not inside the collapsible element
  1121. if (event.currentTarget.tagName === 'A') {
  1122. event.preventDefault();
  1123. }
  1124. var $trigger = $$$1(this);
  1125. var selector = Util.getSelectorFromElement(this);
  1126. var selectors = [].slice.call(document.querySelectorAll(selector));
  1127. $$$1(selectors).each(function () {
  1128. var $target = $$$1(this);
  1129. var data = $target.data(DATA_KEY);
  1130. var config = data ? 'toggle' : $trigger.data();
  1131. Collapse._jQueryInterface.call($target, config);
  1132. });
  1133. });
  1134. /**
  1135. * ------------------------------------------------------------------------
  1136. * jQuery
  1137. * ------------------------------------------------------------------------
  1138. */
  1139. $$$1.fn[NAME] = Collapse._jQueryInterface;
  1140. $$$1.fn[NAME].Constructor = Collapse;
  1141. $$$1.fn[NAME].noConflict = function () {
  1142. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  1143. return Collapse._jQueryInterface;
  1144. };
  1145. return Collapse;
  1146. }($);
  1147. /**
  1148. * --------------------------------------------------------------------------
  1149. * Bootstrap (v4.1.3): dropdown.js
  1150. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  1151. * --------------------------------------------------------------------------
  1152. */
  1153. var Dropdown = function ($$$1) {
  1154. /**
  1155. * ------------------------------------------------------------------------
  1156. * Constants
  1157. * ------------------------------------------------------------------------
  1158. */
  1159. var NAME = 'dropdown';
  1160. var VERSION = '4.1.3';
  1161. var DATA_KEY = 'bs.dropdown';
  1162. var EVENT_KEY = "." + DATA_KEY;
  1163. var DATA_API_KEY = '.data-api';
  1164. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  1165. var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
  1166. var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key
  1167. var TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key
  1168. var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key
  1169. var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key
  1170. var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)
  1171. var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE);
  1172. var Event = {
  1173. HIDE: "hide" + EVENT_KEY,
  1174. HIDDEN: "hidden" + EVENT_KEY,
  1175. SHOW: "show" + EVENT_KEY,
  1176. SHOWN: "shown" + EVENT_KEY,
  1177. CLICK: "click" + EVENT_KEY,
  1178. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY,
  1179. KEYDOWN_DATA_API: "keydown" + EVENT_KEY + DATA_API_KEY,
  1180. KEYUP_DATA_API: "keyup" + EVENT_KEY + DATA_API_KEY
  1181. };
  1182. var ClassName = {
  1183. DISABLED: 'disabled',
  1184. SHOW: 'show',
  1185. DROPUP: 'dropup',
  1186. DROPRIGHT: 'dropright',
  1187. DROPLEFT: 'dropleft',
  1188. MENURIGHT: 'dropdown-menu-right',
  1189. MENULEFT: 'dropdown-menu-left',
  1190. POSITION_STATIC: 'position-static'
  1191. };
  1192. var Selector = {
  1193. DATA_TOGGLE: '[data-toggle="dropdown"]',
  1194. FORM_CHILD: '.dropdown form',
  1195. MENU: '.dropdown-menu',
  1196. NAVBAR_NAV: '.navbar-nav',
  1197. VISIBLE_ITEMS: '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)'
  1198. };
  1199. var AttachmentMap = {
  1200. TOP: 'top-start',
  1201. TOPEND: 'top-end',
  1202. BOTTOM: 'bottom-start',
  1203. BOTTOMEND: 'bottom-end',
  1204. RIGHT: 'right-start',
  1205. RIGHTEND: 'right-end',
  1206. LEFT: 'left-start',
  1207. LEFTEND: 'left-end'
  1208. };
  1209. var Default = {
  1210. offset: 0,
  1211. flip: true,
  1212. boundary: 'scrollParent',
  1213. reference: 'toggle',
  1214. display: 'dynamic'
  1215. };
  1216. var DefaultType = {
  1217. offset: '(number|string|function)',
  1218. flip: 'boolean',
  1219. boundary: '(string|element)',
  1220. reference: '(string|element)',
  1221. display: 'string'
  1222. /**
  1223. * ------------------------------------------------------------------------
  1224. * Class Definition
  1225. * ------------------------------------------------------------------------
  1226. */
  1227. };
  1228. var Dropdown =
  1229. /*#__PURE__*/
  1230. function () {
  1231. function Dropdown(element, config) {
  1232. this._element = element;
  1233. this._popper = null;
  1234. this._config = this._getConfig(config);
  1235. this._menu = this._getMenuElement();
  1236. this._inNavbar = this._detectNavbar();
  1237. this._addEventListeners();
  1238. } // Getters
  1239. var _proto = Dropdown.prototype;
  1240. // Public
  1241. _proto.toggle = function toggle() {
  1242. if (this._element.disabled || $$$1(this._element).hasClass(ClassName.DISABLED)) {
  1243. return;
  1244. }
  1245. var parent = Dropdown._getParentFromElement(this._element);
  1246. var isActive = $$$1(this._menu).hasClass(ClassName.SHOW);
  1247. Dropdown._clearMenus();
  1248. if (isActive) {
  1249. return;
  1250. }
  1251. var relatedTarget = {
  1252. relatedTarget: this._element
  1253. };
  1254. var showEvent = $$$1.Event(Event.SHOW, relatedTarget);
  1255. $$$1(parent).trigger(showEvent);
  1256. if (showEvent.isDefaultPrevented()) {
  1257. return;
  1258. } // Disable totally Popper.js for Dropdown in Navbar
  1259. if (!this._inNavbar) {
  1260. /**
  1261. * Check for Popper dependency
  1262. * Popper - https://popper.js.org
  1263. */
  1264. if (typeof Popper === 'undefined') {
  1265. throw new TypeError('Bootstrap dropdown require Popper.js (https://popper.js.org)');
  1266. }
  1267. var referenceElement = this._element;
  1268. if (this._config.reference === 'parent') {
  1269. referenceElement = parent;
  1270. } else if (Util.isElement(this._config.reference)) {
  1271. referenceElement = this._config.reference; // Check if it's jQuery element
  1272. if (typeof this._config.reference.jquery !== 'undefined') {
  1273. referenceElement = this._config.reference[0];
  1274. }
  1275. } // If boundary is not `scrollParent`, then set position to `static`
  1276. // to allow the menu to "escape" the scroll parent's boundaries
  1277. // https://github.com/twbs/bootstrap/issues/24251
  1278. if (this._config.boundary !== 'scrollParent') {
  1279. $$$1(parent).addClass(ClassName.POSITION_STATIC);
  1280. }
  1281. this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig());
  1282. } // If this is a touch-enabled device we add extra
  1283. // empty mouseover listeners to the body's immediate children;
  1284. // only needed because of broken event delegation on iOS
  1285. // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
  1286. if ('ontouchstart' in document.documentElement && $$$1(parent).closest(Selector.NAVBAR_NAV).length === 0) {
  1287. $$$1(document.body).children().on('mouseover', null, $$$1.noop);
  1288. }
  1289. this._element.focus();
  1290. this._element.setAttribute('aria-expanded', true);
  1291. $$$1(this._menu).toggleClass(ClassName.SHOW);
  1292. $$$1(parent).toggleClass(ClassName.SHOW).trigger($$$1.Event(Event.SHOWN, relatedTarget));
  1293. };
  1294. _proto.dispose = function dispose() {
  1295. $$$1.removeData(this._element, DATA_KEY);
  1296. $$$1(this._element).off(EVENT_KEY);
  1297. this._element = null;
  1298. this._menu = null;
  1299. if (this._popper !== null) {
  1300. this._popper.destroy();
  1301. this._popper = null;
  1302. }
  1303. };
  1304. _proto.update = function update() {
  1305. this._inNavbar = this._detectNavbar();
  1306. if (this._popper !== null) {
  1307. this._popper.scheduleUpdate();
  1308. }
  1309. }; // Private
  1310. _proto._addEventListeners = function _addEventListeners() {
  1311. var _this = this;
  1312. $$$1(this._element).on(Event.CLICK, function (event) {
  1313. event.preventDefault();
  1314. event.stopPropagation();
  1315. _this.toggle();
  1316. });
  1317. };
  1318. _proto._getConfig = function _getConfig(config) {
  1319. config = _objectSpread({}, this.constructor.Default, $$$1(this._element).data(), config);
  1320. Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
  1321. return config;
  1322. };
  1323. _proto._getMenuElement = function _getMenuElement() {
  1324. if (!this._menu) {
  1325. var parent = Dropdown._getParentFromElement(this._element);
  1326. if (parent) {
  1327. this._menu = parent.querySelector(Selector.MENU);
  1328. }
  1329. }
  1330. return this._menu;
  1331. };
  1332. _proto._getPlacement = function _getPlacement() {
  1333. var $parentDropdown = $$$1(this._element.parentNode);
  1334. var placement = AttachmentMap.BOTTOM; // Handle dropup
  1335. if ($parentDropdown.hasClass(ClassName.DROPUP)) {
  1336. placement = AttachmentMap.TOP;
  1337. if ($$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
  1338. placement = AttachmentMap.TOPEND;
  1339. }
  1340. } else if ($parentDropdown.hasClass(ClassName.DROPRIGHT)) {
  1341. placement = AttachmentMap.RIGHT;
  1342. } else if ($parentDropdown.hasClass(ClassName.DROPLEFT)) {
  1343. placement = AttachmentMap.LEFT;
  1344. } else if ($$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
  1345. placement = AttachmentMap.BOTTOMEND;
  1346. }
  1347. return placement;
  1348. };
  1349. _proto._detectNavbar = function _detectNavbar() {
  1350. return $$$1(this._element).closest('.navbar').length > 0;
  1351. };
  1352. _proto._getPopperConfig = function _getPopperConfig() {
  1353. var _this2 = this;
  1354. var offsetConf = {};
  1355. if (typeof this._config.offset === 'function') {
  1356. offsetConf.fn = function (data) {
  1357. data.offsets = _objectSpread({}, data.offsets, _this2._config.offset(data.offsets) || {});
  1358. return data;
  1359. };
  1360. } else {
  1361. offsetConf.offset = this._config.offset;
  1362. }
  1363. var popperConfig = {
  1364. placement: this._getPlacement(),
  1365. modifiers: {
  1366. offset: offsetConf,
  1367. flip: {
  1368. enabled: this._config.flip
  1369. },
  1370. preventOverflow: {
  1371. boundariesElement: this._config.boundary
  1372. }
  1373. } // Disable Popper.js if we have a static display
  1374. };
  1375. if (this._config.display === 'static') {
  1376. popperConfig.modifiers.applyStyle = {
  1377. enabled: false
  1378. };
  1379. }
  1380. return popperConfig;
  1381. }; // Static
  1382. Dropdown._jQueryInterface = function _jQueryInterface(config) {
  1383. return this.each(function () {
  1384. var data = $$$1(this).data(DATA_KEY);
  1385. var _config = typeof config === 'object' ? config : null;
  1386. if (!data) {
  1387. data = new Dropdown(this, _config);
  1388. $$$1(this).data(DATA_KEY, data);
  1389. }
  1390. if (typeof config === 'string') {
  1391. if (typeof data[config] === 'undefined') {
  1392. throw new TypeError("No method named \"" + config + "\"");
  1393. }
  1394. data[config]();
  1395. }
  1396. });
  1397. };
  1398. Dropdown._clearMenus = function _clearMenus(event) {
  1399. if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {
  1400. return;
  1401. }
  1402. var toggles = [].slice.call(document.querySelectorAll(Selector.DATA_TOGGLE));
  1403. for (var i = 0, len = toggles.length; i < len; i++) {
  1404. var parent = Dropdown._getParentFromElement(toggles[i]);
  1405. var context = $$$1(toggles[i]).data(DATA_KEY);
  1406. var relatedTarget = {
  1407. relatedTarget: toggles[i]
  1408. };
  1409. if (event && event.type === 'click') {
  1410. relatedTarget.clickEvent = event;
  1411. }
  1412. if (!context) {
  1413. continue;
  1414. }
  1415. var dropdownMenu = context._menu;
  1416. if (!$$$1(parent).hasClass(ClassName.SHOW)) {
  1417. continue;
  1418. }
  1419. if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $$$1.contains(parent, event.target)) {
  1420. continue;
  1421. }
  1422. var hideEvent = $$$1.Event(Event.HIDE, relatedTarget);
  1423. $$$1(parent).trigger(hideEvent);
  1424. if (hideEvent.isDefaultPrevented()) {
  1425. continue;
  1426. } // If this is a touch-enabled device we remove the extra
  1427. // empty mouseover listeners we added for iOS support
  1428. if ('ontouchstart' in document.documentElement) {
  1429. $$$1(document.body).children().off('mouseover', null, $$$1.noop);
  1430. }
  1431. toggles[i].setAttribute('aria-expanded', 'false');
  1432. $$$1(dropdownMenu).removeClass(ClassName.SHOW);
  1433. $$$1(parent).removeClass(ClassName.SHOW).trigger($$$1.Event(Event.HIDDEN, relatedTarget));
  1434. }
  1435. };
  1436. Dropdown._getParentFromElement = function _getParentFromElement(element) {
  1437. var parent;
  1438. var selector = Util.getSelectorFromElement(element);
  1439. if (selector) {
  1440. parent = document.querySelector(selector);
  1441. }
  1442. return parent || element.parentNode;
  1443. }; // eslint-disable-next-line complexity
  1444. Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
  1445. // If not input/textarea:
  1446. // - And not a key in REGEXP_KEYDOWN => not a dropdown command
  1447. // If input/textarea:
  1448. // - If space key => not a dropdown command
  1449. // - If key is other than escape
  1450. // - If key is not up or down => not a dropdown command
  1451. // - If trigger inside the menu => not a dropdown command
  1452. if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $$$1(event.target).closest(Selector.MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
  1453. return;
  1454. }
  1455. event.preventDefault();
  1456. event.stopPropagation();
  1457. if (this.disabled || $$$1(this).hasClass(ClassName.DISABLED)) {
  1458. return;
  1459. }
  1460. var parent = Dropdown._getParentFromElement(this);
  1461. var isActive = $$$1(parent).hasClass(ClassName.SHOW);
  1462. if (!isActive && (event.which !== ESCAPE_KEYCODE || event.which !== SPACE_KEYCODE) || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
  1463. if (event.which === ESCAPE_KEYCODE) {
  1464. var toggle = parent.querySelector(Selector.DATA_TOGGLE);
  1465. $$$1(toggle).trigger('focus');
  1466. }
  1467. $$$1(this).trigger('click');
  1468. return;
  1469. }
  1470. var items = [].slice.call(parent.querySelectorAll(Selector.VISIBLE_ITEMS));
  1471. if (items.length === 0) {
  1472. return;
  1473. }
  1474. var index = items.indexOf(event.target);
  1475. if (event.which === ARROW_UP_KEYCODE && index > 0) {
  1476. // Up
  1477. index--;
  1478. }
  1479. if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) {
  1480. // Down
  1481. index++;
  1482. }
  1483. if (index < 0) {
  1484. index = 0;
  1485. }
  1486. items[index].focus();
  1487. };
  1488. _createClass(Dropdown, null, [{
  1489. key: "VERSION",
  1490. get: function get() {
  1491. return VERSION;
  1492. }
  1493. }, {
  1494. key: "Default",
  1495. get: function get() {
  1496. return Default;
  1497. }
  1498. }, {
  1499. key: "DefaultType",
  1500. get: function get() {
  1501. return DefaultType;
  1502. }
  1503. }]);
  1504. return Dropdown;
  1505. }();
  1506. /**
  1507. * ------------------------------------------------------------------------
  1508. * Data Api implementation
  1509. * ------------------------------------------------------------------------
  1510. */
  1511. $$$1(document).on(Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.MENU, Dropdown._dataApiKeydownHandler).on(Event.CLICK_DATA_API + " " + Event.KEYUP_DATA_API, Dropdown._clearMenus).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
  1512. event.preventDefault();
  1513. event.stopPropagation();
  1514. Dropdown._jQueryInterface.call($$$1(this), 'toggle');
  1515. }).on(Event.CLICK_DATA_API, Selector.FORM_CHILD, function (e) {
  1516. e.stopPropagation();
  1517. });
  1518. /**
  1519. * ------------------------------------------------------------------------
  1520. * jQuery
  1521. * ------------------------------------------------------------------------
  1522. */
  1523. $$$1.fn[NAME] = Dropdown._jQueryInterface;
  1524. $$$1.fn[NAME].Constructor = Dropdown;
  1525. $$$1.fn[NAME].noConflict = function () {
  1526. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  1527. return Dropdown._jQueryInterface;
  1528. };
  1529. return Dropdown;
  1530. }($, Popper);
  1531. /**
  1532. * --------------------------------------------------------------------------
  1533. * Bootstrap (v4.1.3): modal.js
  1534. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  1535. * --------------------------------------------------------------------------
  1536. */
  1537. var Modal = function ($$$1) {
  1538. /**
  1539. * ------------------------------------------------------------------------
  1540. * Constants
  1541. * ------------------------------------------------------------------------
  1542. */
  1543. var NAME = 'modal';
  1544. var VERSION = '4.1.3';
  1545. var DATA_KEY = 'bs.modal';
  1546. var EVENT_KEY = "." + DATA_KEY;
  1547. var DATA_API_KEY = '.data-api';
  1548. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  1549. var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
  1550. var Default = {
  1551. backdrop: true,
  1552. keyboard: true,
  1553. focus: true,
  1554. show: true
  1555. };
  1556. var DefaultType = {
  1557. backdrop: '(boolean|string)',
  1558. keyboard: 'boolean',
  1559. focus: 'boolean',
  1560. show: 'boolean'
  1561. };
  1562. var Event = {
  1563. HIDE: "hide" + EVENT_KEY,
  1564. HIDDEN: "hidden" + EVENT_KEY,
  1565. SHOW: "show" + EVENT_KEY,
  1566. SHOWN: "shown" + EVENT_KEY,
  1567. FOCUSIN: "focusin" + EVENT_KEY,
  1568. RESIZE: "resize" + EVENT_KEY,
  1569. CLICK_DISMISS: "click.dismiss" + EVENT_KEY,
  1570. KEYDOWN_DISMISS: "keydown.dismiss" + EVENT_KEY,
  1571. MOUSEUP_DISMISS: "mouseup.dismiss" + EVENT_KEY,
  1572. MOUSEDOWN_DISMISS: "mousedown.dismiss" + EVENT_KEY,
  1573. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
  1574. };
  1575. var ClassName = {
  1576. SCROLLBAR_MEASURER: 'modal-scrollbar-measure',
  1577. BACKDROP: 'modal-backdrop',
  1578. OPEN: 'modal-open',
  1579. FADE: 'fade',
  1580. SHOW: 'show'
  1581. };
  1582. var Selector = {
  1583. DIALOG: '.modal-dialog',
  1584. DATA_TOGGLE: '[data-toggle="modal"]',
  1585. DATA_DISMISS: '[data-dismiss="modal"]',
  1586. FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',
  1587. STICKY_CONTENT: '.sticky-top'
  1588. /**
  1589. * ------------------------------------------------------------------------
  1590. * Class Definition
  1591. * ------------------------------------------------------------------------
  1592. */
  1593. };
  1594. var Modal =
  1595. /*#__PURE__*/
  1596. function () {
  1597. function Modal(element, config) {
  1598. this._config = this._getConfig(config);
  1599. this._element = element;
  1600. this._dialog = element.querySelector(Selector.DIALOG);
  1601. this._backdrop = null;
  1602. this._isShown = false;
  1603. this._isBodyOverflowing = false;
  1604. this._ignoreBackdropClick = false;
  1605. this._scrollbarWidth = 0;
  1606. } // Getters
  1607. var _proto = Modal.prototype;
  1608. // Public
  1609. _proto.toggle = function toggle(relatedTarget) {
  1610. return this._isShown ? this.hide() : this.show(relatedTarget);
  1611. };
  1612. _proto.show = function show(relatedTarget) {
  1613. var _this = this;
  1614. if (this._isTransitioning || this._isShown) {
  1615. return;
  1616. }
  1617. if ($$$1(this._element).hasClass(ClassName.FADE)) {
  1618. this._isTransitioning = true;
  1619. }
  1620. var showEvent = $$$1.Event(Event.SHOW, {
  1621. relatedTarget: relatedTarget
  1622. });
  1623. $$$1(this._element).trigger(showEvent);
  1624. if (this._isShown || showEvent.isDefaultPrevented()) {
  1625. return;
  1626. }
  1627. this._isShown = true;
  1628. this._checkScrollbar();
  1629. this._setScrollbar();
  1630. this._adjustDialog();
  1631. $$$1(document.body).addClass(ClassName.OPEN);
  1632. this._setEscapeEvent();
  1633. this._setResizeEvent();
  1634. $$$1(this._element).on(Event.CLICK_DISMISS, Selector.DATA_DISMISS, function (event) {
  1635. return _this.hide(event);
  1636. });
  1637. $$$1(this._dialog).on(Event.MOUSEDOWN_DISMISS, function () {
  1638. $$$1(_this._element).one(Event.MOUSEUP_DISMISS, function (event) {
  1639. if ($$$1(event.target).is(_this._element)) {
  1640. _this._ignoreBackdropClick = true;
  1641. }
  1642. });
  1643. });
  1644. this._showBackdrop(function () {
  1645. return _this._showElement(relatedTarget);
  1646. });
  1647. };
  1648. _proto.hide = function hide(event) {
  1649. var _this2 = this;
  1650. if (event) {
  1651. event.preventDefault();
  1652. }
  1653. if (this._isTransitioning || !this._isShown) {
  1654. return;
  1655. }
  1656. var hideEvent = $$$1.Event(Event.HIDE);
  1657. $$$1(this._element).trigger(hideEvent);
  1658. if (!this._isShown || hideEvent.isDefaultPrevented()) {
  1659. return;
  1660. }
  1661. this._isShown = false;
  1662. var transition = $$$1(this._element).hasClass(ClassName.FADE);
  1663. if (transition) {
  1664. this._isTransitioning = true;
  1665. }
  1666. this._setEscapeEvent();
  1667. this._setResizeEvent();
  1668. $$$1(document).off(Event.FOCUSIN);
  1669. $$$1(this._element).removeClass(ClassName.SHOW);
  1670. $$$1(this._element).off(Event.CLICK_DISMISS);
  1671. $$$1(this._dialog).off(Event.MOUSEDOWN_DISMISS);
  1672. if (transition) {
  1673. var transitionDuration = Util.getTransitionDurationFromElement(this._element);
  1674. $$$1(this._element).one(Util.TRANSITION_END, function (event) {
  1675. return _this2._hideModal(event);
  1676. }).emulateTransitionEnd(transitionDuration);
  1677. } else {
  1678. this._hideModal();
  1679. }
  1680. };
  1681. _proto.dispose = function dispose() {
  1682. $$$1.removeData(this._element, DATA_KEY);
  1683. $$$1(window, document, this._element, this._backdrop).off(EVENT_KEY);
  1684. this._config = null;
  1685. this._element = null;
  1686. this._dialog = null;
  1687. this._backdrop = null;
  1688. this._isShown = null;
  1689. this._isBodyOverflowing = null;
  1690. this._ignoreBackdropClick = null;
  1691. this._scrollbarWidth = null;
  1692. };
  1693. _proto.handleUpdate = function handleUpdate() {
  1694. this._adjustDialog();
  1695. }; // Private
  1696. _proto._getConfig = function _getConfig(config) {
  1697. config = _objectSpread({}, Default, config);
  1698. Util.typeCheckConfig(NAME, config, DefaultType);
  1699. return config;
  1700. };
  1701. _proto._showElement = function _showElement(relatedTarget) {
  1702. var _this3 = this;
  1703. var transition = $$$1(this._element).hasClass(ClassName.FADE);
  1704. if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
  1705. // Don't move modal's DOM position
  1706. document.body.appendChild(this._element);
  1707. }
  1708. this._element.style.display = 'block';
  1709. this._element.removeAttribute('aria-hidden');
  1710. this._element.scrollTop = 0;
  1711. if (transition) {
  1712. Util.reflow(this._element);
  1713. }
  1714. $$$1(this._element).addClass(ClassName.SHOW);
  1715. if (this._config.focus) {
  1716. this._enforceFocus();
  1717. }
  1718. var shownEvent = $$$1.Event(Event.SHOWN, {
  1719. relatedTarget: relatedTarget
  1720. });
  1721. var transitionComplete = function transitionComplete() {
  1722. if (_this3._config.focus) {
  1723. _this3._element.focus();
  1724. }
  1725. _this3._isTransitioning = false;
  1726. $$$1(_this3._element).trigger(shownEvent);
  1727. };
  1728. if (transition) {
  1729. var transitionDuration = Util.getTransitionDurationFromElement(this._element);
  1730. $$$1(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
  1731. } else {
  1732. transitionComplete();
  1733. }
  1734. };
  1735. _proto._enforceFocus = function _enforceFocus() {
  1736. var _this4 = this;
  1737. $$$1(document).off(Event.FOCUSIN) // Guard against infinite focus loop
  1738. .on(Event.FOCUSIN, function (event) {
  1739. if (document !== event.target && _this4._element !== event.target && $$$1(_this4._element).has(event.target).length === 0) {
  1740. _this4._element.focus();
  1741. }
  1742. });
  1743. };
  1744. _proto._setEscapeEvent = function _setEscapeEvent() {
  1745. var _this5 = this;
  1746. if (this._isShown && this._config.keyboard) {
  1747. $$$1(this._element).on(Event.KEYDOWN_DISMISS, function (event) {
  1748. if (event.which === ESCAPE_KEYCODE) {
  1749. event.preventDefault();
  1750. _this5.hide();
  1751. }
  1752. });
  1753. } else if (!this._isShown) {
  1754. $$$1(this._element).off(Event.KEYDOWN_DISMISS);
  1755. }
  1756. };
  1757. _proto._setResizeEvent = function _setResizeEvent() {
  1758. var _this6 = this;
  1759. if (this._isShown) {
  1760. $$$1(window).on(Event.RESIZE, function (event) {
  1761. return _this6.handleUpdate(event);
  1762. });
  1763. } else {
  1764. $$$1(window).off(Event.RESIZE);
  1765. }
  1766. };
  1767. _proto._hideModal = function _hideModal() {
  1768. var _this7 = this;
  1769. this._element.style.display = 'none';
  1770. this._element.setAttribute('aria-hidden', true);
  1771. this._isTransitioning = false;
  1772. this._showBackdrop(function () {
  1773. $$$1(document.body).removeClass(ClassName.OPEN);
  1774. _this7._resetAdjustments();
  1775. _this7._resetScrollbar();
  1776. $$$1(_this7._element).trigger(Event.HIDDEN);
  1777. });
  1778. };
  1779. _proto._removeBackdrop = function _removeBackdrop() {
  1780. if (this._backdrop) {
  1781. $$$1(this._backdrop).remove();
  1782. this._backdrop = null;
  1783. }
  1784. };
  1785. _proto._showBackdrop = function _showBackdrop(callback) {
  1786. var _this8 = this;
  1787. var animate = $$$1(this._element).hasClass(ClassName.FADE) ? ClassName.FADE : '';
  1788. if (this._isShown && this._config.backdrop) {
  1789. this._backdrop = document.createElement('div');
  1790. this._backdrop.className = ClassName.BACKDROP;
  1791. if (animate) {
  1792. this._backdrop.classList.add(animate);
  1793. }
  1794. $$$1(this._backdrop).appendTo(document.body);
  1795. $$$1(this._element).on(Event.CLICK_DISMISS, function (event) {
  1796. if (_this8._ignoreBackdropClick) {
  1797. _this8._ignoreBackdropClick = false;
  1798. return;
  1799. }
  1800. if (event.target !== event.currentTarget) {
  1801. return;
  1802. }
  1803. if (_this8._config.backdrop === 'static') {
  1804. _this8._element.focus();
  1805. } else {
  1806. _this8.hide();
  1807. }
  1808. });
  1809. if (animate) {
  1810. Util.reflow(this._backdrop);
  1811. }
  1812. $$$1(this._backdrop).addClass(ClassName.SHOW);
  1813. if (!callback) {
  1814. return;
  1815. }
  1816. if (!animate) {
  1817. callback();
  1818. return;
  1819. }
  1820. var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
  1821. $$$1(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
  1822. } else if (!this._isShown && this._backdrop) {
  1823. $$$1(this._backdrop).removeClass(ClassName.SHOW);
  1824. var callbackRemove = function callbackRemove() {
  1825. _this8._removeBackdrop();
  1826. if (callback) {
  1827. callback();
  1828. }
  1829. };
  1830. if ($$$1(this._element).hasClass(ClassName.FADE)) {
  1831. var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
  1832. $$$1(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
  1833. } else {
  1834. callbackRemove();
  1835. }
  1836. } else if (callback) {
  1837. callback();
  1838. }
  1839. }; // ----------------------------------------------------------------------
  1840. // the following methods are used to handle overflowing modals
  1841. // todo (fat): these should probably be refactored out of modal.js
  1842. // ----------------------------------------------------------------------
  1843. _proto._adjustDialog = function _adjustDialog() {
  1844. var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
  1845. if (!this._isBodyOverflowing && isModalOverflowing) {
  1846. this._element.style.paddingLeft = this._scrollbarWidth + "px";
  1847. }
  1848. if (this._isBodyOverflowing && !isModalOverflowing) {
  1849. this._element.style.paddingRight = this._scrollbarWidth + "px";
  1850. }
  1851. };
  1852. _proto._resetAdjustments = function _resetAdjustments() {
  1853. this._element.style.paddingLeft = '';
  1854. this._element.style.paddingRight = '';
  1855. };
  1856. _proto._checkScrollbar = function _checkScrollbar() {
  1857. var rect = document.body.getBoundingClientRect();
  1858. this._isBodyOverflowing = rect.left + rect.right < window.innerWidth;
  1859. this._scrollbarWidth = this._getScrollbarWidth();
  1860. };
  1861. _proto._setScrollbar = function _setScrollbar() {
  1862. var _this9 = this;
  1863. if (this._isBodyOverflowing) {
  1864. // Note: DOMNode.style.paddingRight returns the actual value or '' if not set
  1865. // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
  1866. var fixedContent = [].slice.call(document.querySelectorAll(Selector.FIXED_CONTENT));
  1867. var stickyContent = [].slice.call(document.querySelectorAll(Selector.STICKY_CONTENT)); // Adjust fixed content padding
  1868. $$$1(fixedContent).each(function (index, element) {
  1869. var actualPadding = element.style.paddingRight;
  1870. var calculatedPadding = $$$1(element).css('padding-right');
  1871. $$$1(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px");
  1872. }); // Adjust sticky content margin
  1873. $$$1(stickyContent).each(function (index, element) {
  1874. var actualMargin = element.style.marginRight;
  1875. var calculatedMargin = $$$1(element).css('margin-right');
  1876. $$$1(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px");
  1877. }); // Adjust body padding
  1878. var actualPadding = document.body.style.paddingRight;
  1879. var calculatedPadding = $$$1(document.body).css('padding-right');
  1880. $$$1(document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
  1881. }
  1882. };
  1883. _proto._resetScrollbar = function _resetScrollbar() {
  1884. // Restore fixed content padding
  1885. var fixedContent = [].slice.call(document.querySelectorAll(Selector.FIXED_CONTENT));
  1886. $$$1(fixedContent).each(function (index, element) {
  1887. var padding = $$$1(element).data('padding-right');
  1888. $$$1(element).removeData('padding-right');
  1889. element.style.paddingRight = padding ? padding : '';
  1890. }); // Restore sticky content
  1891. var elements = [].slice.call(document.querySelectorAll("" + Selector.STICKY_CONTENT));
  1892. $$$1(elements).each(function (index, element) {
  1893. var margin = $$$1(element).data('margin-right');
  1894. if (typeof margin !== 'undefined') {
  1895. $$$1(element).css('margin-right', margin).removeData('margin-right');
  1896. }
  1897. }); // Restore body padding
  1898. var padding = $$$1(document.body).data('padding-right');
  1899. $$$1(document.body).removeData('padding-right');
  1900. document.body.style.paddingRight = padding ? padding : '';
  1901. };
  1902. _proto._getScrollbarWidth = function _getScrollbarWidth() {
  1903. // thx d.walsh
  1904. var scrollDiv = document.createElement('div');
  1905. scrollDiv.className = ClassName.SCROLLBAR_MEASURER;
  1906. document.body.appendChild(scrollDiv);
  1907. var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
  1908. document.body.removeChild(scrollDiv);
  1909. return scrollbarWidth;
  1910. }; // Static
  1911. Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
  1912. return this.each(function () {
  1913. var data = $$$1(this).data(DATA_KEY);
  1914. var _config = _objectSpread({}, Default, $$$1(this).data(), typeof config === 'object' && config ? config : {});
  1915. if (!data) {
  1916. data = new Modal(this, _config);
  1917. $$$1(this).data(DATA_KEY, data);
  1918. }
  1919. if (typeof config === 'string') {
  1920. if (typeof data[config] === 'undefined') {
  1921. throw new TypeError("No method named \"" + config + "\"");
  1922. }
  1923. data[config](relatedTarget);
  1924. } else if (_config.show) {
  1925. data.show(relatedTarget);
  1926. }
  1927. });
  1928. };
  1929. _createClass(Modal, null, [{
  1930. key: "VERSION",
  1931. get: function get() {
  1932. return VERSION;
  1933. }
  1934. }, {
  1935. key: "Default",
  1936. get: function get() {
  1937. return Default;
  1938. }
  1939. }]);
  1940. return Modal;
  1941. }();
  1942. /**
  1943. * ------------------------------------------------------------------------
  1944. * Data Api implementation
  1945. * ------------------------------------------------------------------------
  1946. */
  1947. $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
  1948. var _this10 = this;
  1949. var target;
  1950. var selector = Util.getSelectorFromElement(this);
  1951. if (selector) {
  1952. target = document.querySelector(selector);
  1953. }
  1954. var config = $$$1(target).data(DATA_KEY) ? 'toggle' : _objectSpread({}, $$$1(target).data(), $$$1(this).data());
  1955. if (this.tagName === 'A' || this.tagName === 'AREA') {
  1956. event.preventDefault();
  1957. }
  1958. var $target = $$$1(target).one(Event.SHOW, function (showEvent) {
  1959. if (showEvent.isDefaultPrevented()) {
  1960. // Only register focus restorer if modal will actually get shown
  1961. return;
  1962. }
  1963. $target.one(Event.HIDDEN, function () {
  1964. if ($$$1(_this10).is(':visible')) {
  1965. _this10.focus();
  1966. }
  1967. });
  1968. });
  1969. Modal._jQueryInterface.call($$$1(target), config, this);
  1970. });
  1971. /**
  1972. * ------------------------------------------------------------------------
  1973. * jQuery
  1974. * ------------------------------------------------------------------------
  1975. */
  1976. $$$1.fn[NAME] = Modal._jQueryInterface;
  1977. $$$1.fn[NAME].Constructor = Modal;
  1978. $$$1.fn[NAME].noConflict = function () {
  1979. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  1980. return Modal._jQueryInterface;
  1981. };
  1982. return Modal;
  1983. }($);
  1984. /**
  1985. * --------------------------------------------------------------------------
  1986. * Bootstrap (v4.1.3): tooltip.js
  1987. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  1988. * --------------------------------------------------------------------------
  1989. */
  1990. var Tooltip = function ($$$1) {
  1991. /**
  1992. * ------------------------------------------------------------------------
  1993. * Constants
  1994. * ------------------------------------------------------------------------
  1995. */
  1996. var NAME = 'tooltip';
  1997. var VERSION = '4.1.3';
  1998. var DATA_KEY = 'bs.tooltip';
  1999. var EVENT_KEY = "." + DATA_KEY;
  2000. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  2001. var CLASS_PREFIX = 'bs-tooltip';
  2002. var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
  2003. var DefaultType = {
  2004. animation: 'boolean',
  2005. template: 'string',
  2006. title: '(string|element|function)',
  2007. trigger: 'string',
  2008. delay: '(number|object)',
  2009. html: 'boolean',
  2010. selector: '(string|boolean)',
  2011. placement: '(string|function)',
  2012. offset: '(number|string)',
  2013. container: '(string|element|boolean)',
  2014. fallbackPlacement: '(string|array)',
  2015. boundary: '(string|element)'
  2016. };
  2017. var AttachmentMap = {
  2018. AUTO: 'auto',
  2019. TOP: 'top',
  2020. RIGHT: 'right',
  2021. BOTTOM: 'bottom',
  2022. LEFT: 'left'
  2023. };
  2024. var Default = {
  2025. animation: true,
  2026. template: '<div class="tooltip" role="tooltip">' + '<div class="arrow"></div>' + '<div class="tooltip-inner"></div></div>',
  2027. trigger: 'hover focus',
  2028. title: '',
  2029. delay: 0,
  2030. html: false,
  2031. selector: false,
  2032. placement: 'top',
  2033. offset: 0,
  2034. container: false,
  2035. fallbackPlacement: 'flip',
  2036. boundary: 'scrollParent'
  2037. };
  2038. var HoverState = {
  2039. SHOW: 'show',
  2040. OUT: 'out'
  2041. };
  2042. var Event = {
  2043. HIDE: "hide" + EVENT_KEY,
  2044. HIDDEN: "hidden" + EVENT_KEY,
  2045. SHOW: "show" + EVENT_KEY,
  2046. SHOWN: "shown" + EVENT_KEY,
  2047. INSERTED: "inserted" + EVENT_KEY,
  2048. CLICK: "click" + EVENT_KEY,
  2049. FOCUSIN: "focusin" + EVENT_KEY,
  2050. FOCUSOUT: "focusout" + EVENT_KEY,
  2051. MOUSEENTER: "mouseenter" + EVENT_KEY,
  2052. MOUSELEAVE: "mouseleave" + EVENT_KEY
  2053. };
  2054. var ClassName = {
  2055. FADE: 'fade',
  2056. SHOW: 'show'
  2057. };
  2058. var Selector = {
  2059. TOOLTIP: '.tooltip',
  2060. TOOLTIP_INNER: '.tooltip-inner',
  2061. ARROW: '.arrow'
  2062. };
  2063. var Trigger = {
  2064. HOVER: 'hover',
  2065. FOCUS: 'focus',
  2066. CLICK: 'click',
  2067. MANUAL: 'manual'
  2068. /**
  2069. * ------------------------------------------------------------------------
  2070. * Class Definition
  2071. * ------------------------------------------------------------------------
  2072. */
  2073. };
  2074. var Tooltip =
  2075. /*#__PURE__*/
  2076. function () {
  2077. function Tooltip(element, config) {
  2078. /**
  2079. * Check for Popper dependency
  2080. * Popper - https://popper.js.org
  2081. */
  2082. if (typeof Popper === 'undefined') {
  2083. throw new TypeError('Bootstrap tooltips require Popper.js (https://popper.js.org)');
  2084. } // private
  2085. this._isEnabled = true;
  2086. this._timeout = 0;
  2087. this._hoverState = '';
  2088. this._activeTrigger = {};
  2089. this._popper = null; // Protected
  2090. this.element = element;
  2091. this.config = this._getConfig(config);
  2092. this.tip = null;
  2093. this._setListeners();
  2094. } // Getters
  2095. var _proto = Tooltip.prototype;
  2096. // Public
  2097. _proto.enable = function enable() {
  2098. this._isEnabled = true;
  2099. };
  2100. _proto.disable = function disable() {
  2101. this._isEnabled = false;
  2102. };
  2103. _proto.toggleEnabled = function toggleEnabled() {
  2104. this._isEnabled = !this._isEnabled;
  2105. };
  2106. _proto.toggle = function toggle(event) {
  2107. if (!this._isEnabled) {
  2108. return;
  2109. }
  2110. if (event) {
  2111. var dataKey = this.constructor.DATA_KEY;
  2112. var context = $$$1(event.currentTarget).data(dataKey);
  2113. if (!context) {
  2114. context = new this.constructor(event.currentTarget, this._getDelegateConfig());
  2115. $$$1(event.currentTarget).data(dataKey, context);
  2116. }
  2117. context._activeTrigger.click = !context._activeTrigger.click;
  2118. if (context._isWithActiveTrigger()) {
  2119. context._enter(null, context);
  2120. } else {
  2121. context._leave(null, context);
  2122. }
  2123. } else {
  2124. if ($$$1(this.getTipElement()).hasClass(ClassName.SHOW)) {
  2125. this._leave(null, this);
  2126. return;
  2127. }
  2128. this._enter(null, this);
  2129. }
  2130. };
  2131. _proto.dispose = function dispose() {
  2132. clearTimeout(this._timeout);
  2133. $$$1.removeData(this.element, this.constructor.DATA_KEY);
  2134. $$$1(this.element).off(this.constructor.EVENT_KEY);
  2135. $$$1(this.element).closest('.modal').off('hide.bs.modal');
  2136. if (this.tip) {
  2137. $$$1(this.tip).remove();
  2138. }
  2139. this._isEnabled = null;
  2140. this._timeout = null;
  2141. this._hoverState = null;
  2142. this._activeTrigger = null;
  2143. if (this._popper !== null) {
  2144. this._popper.destroy();
  2145. }
  2146. this._popper = null;
  2147. this.element = null;
  2148. this.config = null;
  2149. this.tip = null;
  2150. };
  2151. _proto.show = function show() {
  2152. var _this = this;
  2153. if ($$$1(this.element).css('display') === 'none') {
  2154. throw new Error('Please use show on visible elements');
  2155. }
  2156. var showEvent = $$$1.Event(this.constructor.Event.SHOW);
  2157. if (this.isWithContent() && this._isEnabled) {
  2158. $$$1(this.element).trigger(showEvent);
  2159. var isInTheDom = $$$1.contains(this.element.ownerDocument.documentElement, this.element);
  2160. if (showEvent.isDefaultPrevented() || !isInTheDom) {
  2161. return;
  2162. }
  2163. var tip = this.getTipElement();
  2164. var tipId = Util.getUID(this.constructor.NAME);
  2165. tip.setAttribute('id', tipId);
  2166. this.element.setAttribute('aria-describedby', tipId);
  2167. this.setContent();
  2168. if (this.config.animation) {
  2169. $$$1(tip).addClass(ClassName.FADE);
  2170. }
  2171. var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
  2172. var attachment = this._getAttachment(placement);
  2173. this.addAttachmentClass(attachment);
  2174. var container = this.config.container === false ? document.body : $$$1(document).find(this.config.container);
  2175. $$$1(tip).data(this.constructor.DATA_KEY, this);
  2176. if (!$$$1.contains(this.element.ownerDocument.documentElement, this.tip)) {
  2177. $$$1(tip).appendTo(container);
  2178. }
  2179. $$$1(this.element).trigger(this.constructor.Event.INSERTED);
  2180. this._popper = new Popper(this.element, tip, {
  2181. placement: attachment,
  2182. modifiers: {
  2183. offset: {
  2184. offset: this.config.offset
  2185. },
  2186. flip: {
  2187. behavior: this.config.fallbackPlacement
  2188. },
  2189. arrow: {
  2190. element: Selector.ARROW
  2191. },
  2192. preventOverflow: {
  2193. boundariesElement: this.config.boundary
  2194. }
  2195. },
  2196. onCreate: function onCreate(data) {
  2197. if (data.originalPlacement !== data.placement) {
  2198. _this._handlePopperPlacementChange(data);
  2199. }
  2200. },
  2201. onUpdate: function onUpdate(data) {
  2202. _this._handlePopperPlacementChange(data);
  2203. }
  2204. });
  2205. $$$1(tip).addClass(ClassName.SHOW); // If this is a touch-enabled device we add extra
  2206. // empty mouseover listeners to the body's immediate children;
  2207. // only needed because of broken event delegation on iOS
  2208. // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
  2209. if ('ontouchstart' in document.documentElement) {
  2210. $$$1(document.body).children().on('mouseover', null, $$$1.noop);
  2211. }
  2212. var complete = function complete() {
  2213. if (_this.config.animation) {
  2214. _this._fixTransition();
  2215. }
  2216. var prevHoverState = _this._hoverState;
  2217. _this._hoverState = null;
  2218. $$$1(_this.element).trigger(_this.constructor.Event.SHOWN);
  2219. if (prevHoverState === HoverState.OUT) {
  2220. _this._leave(null, _this);
  2221. }
  2222. };
  2223. if ($$$1(this.tip).hasClass(ClassName.FADE)) {
  2224. var transitionDuration = Util.getTransitionDurationFromElement(this.tip);
  2225. $$$1(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
  2226. } else {
  2227. complete();
  2228. }
  2229. }
  2230. };
  2231. _proto.hide = function hide(callback) {
  2232. var _this2 = this;
  2233. var tip = this.getTipElement();
  2234. var hideEvent = $$$1.Event(this.constructor.Event.HIDE);
  2235. var complete = function complete() {
  2236. if (_this2._hoverState !== HoverState.SHOW && tip.parentNode) {
  2237. tip.parentNode.removeChild(tip);
  2238. }
  2239. _this2._cleanTipClass();
  2240. _this2.element.removeAttribute('aria-describedby');
  2241. $$$1(_this2.element).trigger(_this2.constructor.Event.HIDDEN);
  2242. if (_this2._popper !== null) {
  2243. _this2._popper.destroy();
  2244. }
  2245. if (callback) {
  2246. callback();
  2247. }
  2248. };
  2249. $$$1(this.element).trigger(hideEvent);
  2250. if (hideEvent.isDefaultPrevented()) {
  2251. return;
  2252. }
  2253. $$$1(tip).removeClass(ClassName.SHOW); // If this is a touch-enabled device we remove the extra
  2254. // empty mouseover listeners we added for iOS support
  2255. if ('ontouchstart' in document.documentElement) {
  2256. $$$1(document.body).children().off('mouseover', null, $$$1.noop);
  2257. }
  2258. this._activeTrigger[Trigger.CLICK] = false;
  2259. this._activeTrigger[Trigger.FOCUS] = false;
  2260. this._activeTrigger[Trigger.HOVER] = false;
  2261. if ($$$1(this.tip).hasClass(ClassName.FADE)) {
  2262. var transitionDuration = Util.getTransitionDurationFromElement(tip);
  2263. $$$1(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
  2264. } else {
  2265. complete();
  2266. }
  2267. this._hoverState = '';
  2268. };
  2269. _proto.update = function update() {
  2270. if (this._popper !== null) {
  2271. this._popper.scheduleUpdate();
  2272. }
  2273. }; // Protected
  2274. _proto.isWithContent = function isWithContent() {
  2275. return Boolean(this.getTitle());
  2276. };
  2277. _proto.addAttachmentClass = function addAttachmentClass(attachment) {
  2278. $$$1(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
  2279. };
  2280. _proto.getTipElement = function getTipElement() {
  2281. this.tip = this.tip || $$$1(this.config.template)[0];
  2282. return this.tip;
  2283. };
  2284. _proto.setContent = function setContent() {
  2285. var tip = this.getTipElement();
  2286. this.setElementContent($$$1(tip.querySelectorAll(Selector.TOOLTIP_INNER)), this.getTitle());
  2287. $$$1(tip).removeClass(ClassName.FADE + " " + ClassName.SHOW);
  2288. };
  2289. _proto.setElementContent = function setElementContent($element, content) {
  2290. var html = this.config.html;
  2291. if (typeof content === 'object' && (content.nodeType || content.jquery)) {
  2292. // Content is a DOM node or a jQuery
  2293. if (html) {
  2294. if (!$$$1(content).parent().is($element)) {
  2295. $element.empty().append(content);
  2296. }
  2297. } else {
  2298. $element.text($$$1(content).text());
  2299. }
  2300. } else {
  2301. $element[html ? 'html' : 'text'](content);
  2302. }
  2303. };
  2304. _proto.getTitle = function getTitle() {
  2305. var title = this.element.getAttribute('data-original-title');
  2306. if (!title) {
  2307. title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title;
  2308. }
  2309. return title;
  2310. }; // Private
  2311. _proto._getAttachment = function _getAttachment(placement) {
  2312. return AttachmentMap[placement.toUpperCase()];
  2313. };
  2314. _proto._setListeners = function _setListeners() {
  2315. var _this3 = this;
  2316. var triggers = this.config.trigger.split(' ');
  2317. triggers.forEach(function (trigger) {
  2318. if (trigger === 'click') {
  2319. $$$1(_this3.element).on(_this3.constructor.Event.CLICK, _this3.config.selector, function (event) {
  2320. return _this3.toggle(event);
  2321. });
  2322. } else if (trigger !== Trigger.MANUAL) {
  2323. var eventIn = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSEENTER : _this3.constructor.Event.FOCUSIN;
  2324. var eventOut = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSELEAVE : _this3.constructor.Event.FOCUSOUT;
  2325. $$$1(_this3.element).on(eventIn, _this3.config.selector, function (event) {
  2326. return _this3._enter(event);
  2327. }).on(eventOut, _this3.config.selector, function (event) {
  2328. return _this3._leave(event);
  2329. });
  2330. }
  2331. $$$1(_this3.element).closest('.modal').on('hide.bs.modal', function () {
  2332. return _this3.hide();
  2333. });
  2334. });
  2335. if (this.config.selector) {
  2336. this.config = _objectSpread({}, this.config, {
  2337. trigger: 'manual',
  2338. selector: ''
  2339. });
  2340. } else {
  2341. this._fixTitle();
  2342. }
  2343. };
  2344. _proto._fixTitle = function _fixTitle() {
  2345. var titleType = typeof this.element.getAttribute('data-original-title');
  2346. if (this.element.getAttribute('title') || titleType !== 'string') {
  2347. this.element.setAttribute('data-original-title', this.element.getAttribute('title') || '');
  2348. this.element.setAttribute('title', '');
  2349. }
  2350. };
  2351. _proto._enter = function _enter(event, context) {
  2352. var dataKey = this.constructor.DATA_KEY;
  2353. context = context || $$$1(event.currentTarget).data(dataKey);
  2354. if (!context) {
  2355. context = new this.constructor(event.currentTarget, this._getDelegateConfig());
  2356. $$$1(event.currentTarget).data(dataKey, context);
  2357. }
  2358. if (event) {
  2359. context._activeTrigger[event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER] = true;
  2360. }
  2361. if ($$$1(context.getTipElement()).hasClass(ClassName.SHOW) || context._hoverState === HoverState.SHOW) {
  2362. context._hoverState = HoverState.SHOW;
  2363. return;
  2364. }
  2365. clearTimeout(context._timeout);
  2366. context._hoverState = HoverState.SHOW;
  2367. if (!context.config.delay || !context.config.delay.show) {
  2368. context.show();
  2369. return;
  2370. }
  2371. context._timeout = setTimeout(function () {
  2372. if (context._hoverState === HoverState.SHOW) {
  2373. context.show();
  2374. }
  2375. }, context.config.delay.show);
  2376. };
  2377. _proto._leave = function _leave(event, context) {
  2378. var dataKey = this.constructor.DATA_KEY;
  2379. context = context || $$$1(event.currentTarget).data(dataKey);
  2380. if (!context) {
  2381. context = new this.constructor(event.currentTarget, this._getDelegateConfig());
  2382. $$$1(event.currentTarget).data(dataKey, context);
  2383. }
  2384. if (event) {
  2385. context._activeTrigger[event.type === 'focusout' ? Trigger.FOCUS : Trigger.HOVER] = false;
  2386. }
  2387. if (context._isWithActiveTrigger()) {
  2388. return;
  2389. }
  2390. clearTimeout(context._timeout);
  2391. context._hoverState = HoverState.OUT;
  2392. if (!context.config.delay || !context.config.delay.hide) {
  2393. context.hide();
  2394. return;
  2395. }
  2396. context._timeout = setTimeout(function () {
  2397. if (context._hoverState === HoverState.OUT) {
  2398. context.hide();
  2399. }
  2400. }, context.config.delay.hide);
  2401. };
  2402. _proto._isWithActiveTrigger = function _isWithActiveTrigger() {
  2403. for (var trigger in this._activeTrigger) {
  2404. if (this._activeTrigger[trigger]) {
  2405. return true;
  2406. }
  2407. }
  2408. return false;
  2409. };
  2410. _proto._getConfig = function _getConfig(config) {
  2411. config = _objectSpread({}, this.constructor.Default, $$$1(this.element).data(), typeof config === 'object' && config ? config : {});
  2412. if (typeof config.delay === 'number') {
  2413. config.delay = {
  2414. show: config.delay,
  2415. hide: config.delay
  2416. };
  2417. }
  2418. if (typeof config.title === 'number') {
  2419. config.title = config.title.toString();
  2420. }
  2421. if (typeof config.content === 'number') {
  2422. config.content = config.content.toString();
  2423. }
  2424. Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
  2425. return config;
  2426. };
  2427. _proto._getDelegateConfig = function _getDelegateConfig() {
  2428. var config = {};
  2429. if (this.config) {
  2430. for (var key in this.config) {
  2431. if (this.constructor.Default[key] !== this.config[key]) {
  2432. config[key] = this.config[key];
  2433. }
  2434. }
  2435. }
  2436. return config;
  2437. };
  2438. _proto._cleanTipClass = function _cleanTipClass() {
  2439. var $tip = $$$1(this.getTipElement());
  2440. var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
  2441. if (tabClass !== null && tabClass.length) {
  2442. $tip.removeClass(tabClass.join(''));
  2443. }
  2444. };
  2445. _proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
  2446. var popperInstance = popperData.instance;
  2447. this.tip = popperInstance.popper;
  2448. this._cleanTipClass();
  2449. this.addAttachmentClass(this._getAttachment(popperData.placement));
  2450. };
  2451. _proto._fixTransition = function _fixTransition() {
  2452. var tip = this.getTipElement();
  2453. var initConfigAnimation = this.config.animation;
  2454. if (tip.getAttribute('x-placement') !== null) {
  2455. return;
  2456. }
  2457. $$$1(tip).removeClass(ClassName.FADE);
  2458. this.config.animation = false;
  2459. this.hide();
  2460. this.show();
  2461. this.config.animation = initConfigAnimation;
  2462. }; // Static
  2463. Tooltip._jQueryInterface = function _jQueryInterface(config) {
  2464. return this.each(function () {
  2465. var data = $$$1(this).data(DATA_KEY);
  2466. var _config = typeof config === 'object' && config;
  2467. if (!data && /dispose|hide/.test(config)) {
  2468. return;
  2469. }
  2470. if (!data) {
  2471. data = new Tooltip(this, _config);
  2472. $$$1(this).data(DATA_KEY, data);
  2473. }
  2474. if (typeof config === 'string') {
  2475. if (typeof data[config] === 'undefined') {
  2476. throw new TypeError("No method named \"" + config + "\"");
  2477. }
  2478. data[config]();
  2479. }
  2480. });
  2481. };
  2482. _createClass(Tooltip, null, [{
  2483. key: "VERSION",
  2484. get: function get() {
  2485. return VERSION;
  2486. }
  2487. }, {
  2488. key: "Default",
  2489. get: function get() {
  2490. return Default;
  2491. }
  2492. }, {
  2493. key: "NAME",
  2494. get: function get() {
  2495. return NAME;
  2496. }
  2497. }, {
  2498. key: "DATA_KEY",
  2499. get: function get() {
  2500. return DATA_KEY;
  2501. }
  2502. }, {
  2503. key: "Event",
  2504. get: function get() {
  2505. return Event;
  2506. }
  2507. }, {
  2508. key: "EVENT_KEY",
  2509. get: function get() {
  2510. return EVENT_KEY;
  2511. }
  2512. }, {
  2513. key: "DefaultType",
  2514. get: function get() {
  2515. return DefaultType;
  2516. }
  2517. }]);
  2518. return Tooltip;
  2519. }();
  2520. /**
  2521. * ------------------------------------------------------------------------
  2522. * jQuery
  2523. * ------------------------------------------------------------------------
  2524. */
  2525. $$$1.fn[NAME] = Tooltip._jQueryInterface;
  2526. $$$1.fn[NAME].Constructor = Tooltip;
  2527. $$$1.fn[NAME].noConflict = function () {
  2528. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  2529. return Tooltip._jQueryInterface;
  2530. };
  2531. return Tooltip;
  2532. }($, Popper);
  2533. /**
  2534. * --------------------------------------------------------------------------
  2535. * Bootstrap (v4.1.3): popover.js
  2536. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  2537. * --------------------------------------------------------------------------
  2538. */
  2539. var Popover = function ($$$1) {
  2540. /**
  2541. * ------------------------------------------------------------------------
  2542. * Constants
  2543. * ------------------------------------------------------------------------
  2544. */
  2545. var NAME = 'popover';
  2546. var VERSION = '4.1.3';
  2547. var DATA_KEY = 'bs.popover';
  2548. var EVENT_KEY = "." + DATA_KEY;
  2549. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  2550. var CLASS_PREFIX = 'bs-popover';
  2551. var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
  2552. var Default = _objectSpread({}, Tooltip.Default, {
  2553. placement: 'right',
  2554. trigger: 'click',
  2555. content: '',
  2556. template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
  2557. });
  2558. var DefaultType = _objectSpread({}, Tooltip.DefaultType, {
  2559. content: '(string|element|function)'
  2560. });
  2561. var ClassName = {
  2562. FADE: 'fade',
  2563. SHOW: 'show'
  2564. };
  2565. var Selector = {
  2566. TITLE: '.popover-header',
  2567. CONTENT: '.popover-body'
  2568. };
  2569. var Event = {
  2570. HIDE: "hide" + EVENT_KEY,
  2571. HIDDEN: "hidden" + EVENT_KEY,
  2572. SHOW: "show" + EVENT_KEY,
  2573. SHOWN: "shown" + EVENT_KEY,
  2574. INSERTED: "inserted" + EVENT_KEY,
  2575. CLICK: "click" + EVENT_KEY,
  2576. FOCUSIN: "focusin" + EVENT_KEY,
  2577. FOCUSOUT: "focusout" + EVENT_KEY,
  2578. MOUSEENTER: "mouseenter" + EVENT_KEY,
  2579. MOUSELEAVE: "mouseleave" + EVENT_KEY
  2580. /**
  2581. * ------------------------------------------------------------------------
  2582. * Class Definition
  2583. * ------------------------------------------------------------------------
  2584. */
  2585. };
  2586. var Popover =
  2587. /*#__PURE__*/
  2588. function (_Tooltip) {
  2589. _inheritsLoose(Popover, _Tooltip);
  2590. function Popover() {
  2591. return _Tooltip.apply(this, arguments) || this;
  2592. }
  2593. var _proto = Popover.prototype;
  2594. // Overrides
  2595. _proto.isWithContent = function isWithContent() {
  2596. return this.getTitle() || this._getContent();
  2597. };
  2598. _proto.addAttachmentClass = function addAttachmentClass(attachment) {
  2599. $$$1(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
  2600. };
  2601. _proto.getTipElement = function getTipElement() {
  2602. this.tip = this.tip || $$$1(this.config.template)[0];
  2603. return this.tip;
  2604. };
  2605. _proto.setContent = function setContent() {
  2606. var $tip = $$$1(this.getTipElement()); // We use append for html objects to maintain js events
  2607. this.setElementContent($tip.find(Selector.TITLE), this.getTitle());
  2608. var content = this._getContent();
  2609. if (typeof content === 'function') {
  2610. content = content.call(this.element);
  2611. }
  2612. this.setElementContent($tip.find(Selector.CONTENT), content);
  2613. $tip.removeClass(ClassName.FADE + " " + ClassName.SHOW);
  2614. }; // Private
  2615. _proto._getContent = function _getContent() {
  2616. return this.element.getAttribute('data-content') || this.config.content;
  2617. };
  2618. _proto._cleanTipClass = function _cleanTipClass() {
  2619. var $tip = $$$1(this.getTipElement());
  2620. var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
  2621. if (tabClass !== null && tabClass.length > 0) {
  2622. $tip.removeClass(tabClass.join(''));
  2623. }
  2624. }; // Static
  2625. Popover._jQueryInterface = function _jQueryInterface(config) {
  2626. return this.each(function () {
  2627. var data = $$$1(this).data(DATA_KEY);
  2628. var _config = typeof config === 'object' ? config : null;
  2629. if (!data && /destroy|hide/.test(config)) {
  2630. return;
  2631. }
  2632. if (!data) {
  2633. data = new Popover(this, _config);
  2634. $$$1(this).data(DATA_KEY, data);
  2635. }
  2636. if (typeof config === 'string') {
  2637. if (typeof data[config] === 'undefined') {
  2638. throw new TypeError("No method named \"" + config + "\"");
  2639. }
  2640. data[config]();
  2641. }
  2642. });
  2643. };
  2644. _createClass(Popover, null, [{
  2645. key: "VERSION",
  2646. // Getters
  2647. get: function get() {
  2648. return VERSION;
  2649. }
  2650. }, {
  2651. key: "Default",
  2652. get: function get() {
  2653. return Default;
  2654. }
  2655. }, {
  2656. key: "NAME",
  2657. get: function get() {
  2658. return NAME;
  2659. }
  2660. }, {
  2661. key: "DATA_KEY",
  2662. get: function get() {
  2663. return DATA_KEY;
  2664. }
  2665. }, {
  2666. key: "Event",
  2667. get: function get() {
  2668. return Event;
  2669. }
  2670. }, {
  2671. key: "EVENT_KEY",
  2672. get: function get() {
  2673. return EVENT_KEY;
  2674. }
  2675. }, {
  2676. key: "DefaultType",
  2677. get: function get() {
  2678. return DefaultType;
  2679. }
  2680. }]);
  2681. return Popover;
  2682. }(Tooltip);
  2683. /**
  2684. * ------------------------------------------------------------------------
  2685. * jQuery
  2686. * ------------------------------------------------------------------------
  2687. */
  2688. $$$1.fn[NAME] = Popover._jQueryInterface;
  2689. $$$1.fn[NAME].Constructor = Popover;
  2690. $$$1.fn[NAME].noConflict = function () {
  2691. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  2692. return Popover._jQueryInterface;
  2693. };
  2694. return Popover;
  2695. }($);
  2696. /**
  2697. * --------------------------------------------------------------------------
  2698. * Bootstrap (v4.1.3): scrollspy.js
  2699. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  2700. * --------------------------------------------------------------------------
  2701. */
  2702. var ScrollSpy = function ($$$1) {
  2703. /**
  2704. * ------------------------------------------------------------------------
  2705. * Constants
  2706. * ------------------------------------------------------------------------
  2707. */
  2708. var NAME = 'scrollspy';
  2709. var VERSION = '4.1.3';
  2710. var DATA_KEY = 'bs.scrollspy';
  2711. var EVENT_KEY = "." + DATA_KEY;
  2712. var DATA_API_KEY = '.data-api';
  2713. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  2714. var Default = {
  2715. offset: 10,
  2716. method: 'auto',
  2717. target: ''
  2718. };
  2719. var DefaultType = {
  2720. offset: 'number',
  2721. method: 'string',
  2722. target: '(string|element)'
  2723. };
  2724. var Event = {
  2725. ACTIVATE: "activate" + EVENT_KEY,
  2726. SCROLL: "scroll" + EVENT_KEY,
  2727. LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY
  2728. };
  2729. var ClassName = {
  2730. DROPDOWN_ITEM: 'dropdown-item',
  2731. DROPDOWN_MENU: 'dropdown-menu',
  2732. ACTIVE: 'active'
  2733. };
  2734. var Selector = {
  2735. DATA_SPY: '[data-spy="scroll"]',
  2736. ACTIVE: '.active',
  2737. NAV_LIST_GROUP: '.nav, .list-group',
  2738. NAV_LINKS: '.nav-link',
  2739. NAV_ITEMS: '.nav-item',
  2740. LIST_ITEMS: '.list-group-item',
  2741. DROPDOWN: '.dropdown',
  2742. DROPDOWN_ITEMS: '.dropdown-item',
  2743. DROPDOWN_TOGGLE: '.dropdown-toggle'
  2744. };
  2745. var OffsetMethod = {
  2746. OFFSET: 'offset',
  2747. POSITION: 'position'
  2748. /**
  2749. * ------------------------------------------------------------------------
  2750. * Class Definition
  2751. * ------------------------------------------------------------------------
  2752. */
  2753. };
  2754. var ScrollSpy =
  2755. /*#__PURE__*/
  2756. function () {
  2757. function ScrollSpy(element, config) {
  2758. var _this = this;
  2759. this._element = element;
  2760. this._scrollElement = element.tagName === 'BODY' ? window : element;
  2761. this._config = this._getConfig(config);
  2762. this._selector = this._config.target + " " + Selector.NAV_LINKS + "," + (this._config.target + " " + Selector.LIST_ITEMS + ",") + (this._config.target + " " + Selector.DROPDOWN_ITEMS);
  2763. this._offsets = [];
  2764. this._targets = [];
  2765. this._activeTarget = null;
  2766. this._scrollHeight = 0;
  2767. $$$1(this._scrollElement).on(Event.SCROLL, function (event) {
  2768. return _this._process(event);
  2769. });
  2770. this.refresh();
  2771. this._process();
  2772. } // Getters
  2773. var _proto = ScrollSpy.prototype;
  2774. // Public
  2775. _proto.refresh = function refresh() {
  2776. var _this2 = this;
  2777. var autoMethod = this._scrollElement === this._scrollElement.window ? OffsetMethod.OFFSET : OffsetMethod.POSITION;
  2778. var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;
  2779. var offsetBase = offsetMethod === OffsetMethod.POSITION ? this._getScrollTop() : 0;
  2780. this._offsets = [];
  2781. this._targets = [];
  2782. this._scrollHeight = this._getScrollHeight();
  2783. var targets = [].slice.call(document.querySelectorAll(this._selector));
  2784. targets.map(function (element) {
  2785. var target;
  2786. var targetSelector = Util.getSelectorFromElement(element);
  2787. if (targetSelector) {
  2788. target = document.querySelector(targetSelector);
  2789. }
  2790. if (target) {
  2791. var targetBCR = target.getBoundingClientRect();
  2792. if (targetBCR.width || targetBCR.height) {
  2793. // TODO (fat): remove sketch reliance on jQuery position/offset
  2794. return [$$$1(target)[offsetMethod]().top + offsetBase, targetSelector];
  2795. }
  2796. }
  2797. return null;
  2798. }).filter(function (item) {
  2799. return item;
  2800. }).sort(function (a, b) {
  2801. return a[0] - b[0];
  2802. }).forEach(function (item) {
  2803. _this2._offsets.push(item[0]);
  2804. _this2._targets.push(item[1]);
  2805. });
  2806. };
  2807. _proto.dispose = function dispose() {
  2808. $$$1.removeData(this._element, DATA_KEY);
  2809. $$$1(this._scrollElement).off(EVENT_KEY);
  2810. this._element = null;
  2811. this._scrollElement = null;
  2812. this._config = null;
  2813. this._selector = null;
  2814. this._offsets = null;
  2815. this._targets = null;
  2816. this._activeTarget = null;
  2817. this._scrollHeight = null;
  2818. }; // Private
  2819. _proto._getConfig = function _getConfig(config) {
  2820. config = _objectSpread({}, Default, typeof config === 'object' && config ? config : {});
  2821. if (typeof config.target !== 'string') {
  2822. var id = $$$1(config.target).attr('id');
  2823. if (!id) {
  2824. id = Util.getUID(NAME);
  2825. $$$1(config.target).attr('id', id);
  2826. }
  2827. config.target = "#" + id;
  2828. }
  2829. Util.typeCheckConfig(NAME, config, DefaultType);
  2830. return config;
  2831. };
  2832. _proto._getScrollTop = function _getScrollTop() {
  2833. return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop;
  2834. };
  2835. _proto._getScrollHeight = function _getScrollHeight() {
  2836. return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
  2837. };
  2838. _proto._getOffsetHeight = function _getOffsetHeight() {
  2839. return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height;
  2840. };
  2841. _proto._process = function _process() {
  2842. var scrollTop = this._getScrollTop() + this._config.offset;
  2843. var scrollHeight = this._getScrollHeight();
  2844. var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight();
  2845. if (this._scrollHeight !== scrollHeight) {
  2846. this.refresh();
  2847. }
  2848. if (scrollTop >= maxScroll) {
  2849. var target = this._targets[this._targets.length - 1];
  2850. if (this._activeTarget !== target) {
  2851. this._activate(target);
  2852. }
  2853. return;
  2854. }
  2855. if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) {
  2856. this._activeTarget = null;
  2857. this._clear();
  2858. return;
  2859. }
  2860. var offsetLength = this._offsets.length;
  2861. for (var i = offsetLength; i--;) {
  2862. var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]);
  2863. if (isActiveTarget) {
  2864. this._activate(this._targets[i]);
  2865. }
  2866. }
  2867. };
  2868. _proto._activate = function _activate(target) {
  2869. this._activeTarget = target;
  2870. this._clear();
  2871. var queries = this._selector.split(','); // eslint-disable-next-line arrow-body-style
  2872. queries = queries.map(function (selector) {
  2873. return selector + "[data-target=\"" + target + "\"]," + (selector + "[href=\"" + target + "\"]");
  2874. });
  2875. var $link = $$$1([].slice.call(document.querySelectorAll(queries.join(','))));
  2876. if ($link.hasClass(ClassName.DROPDOWN_ITEM)) {
  2877. $link.closest(Selector.DROPDOWN).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE);
  2878. $link.addClass(ClassName.ACTIVE);
  2879. } else {
  2880. // Set triggered link as active
  2881. $link.addClass(ClassName.ACTIVE); // Set triggered links parents as active
  2882. // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
  2883. $link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_LINKS + ", " + Selector.LIST_ITEMS).addClass(ClassName.ACTIVE); // Handle special case when .nav-link is inside .nav-item
  2884. $link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_ITEMS).children(Selector.NAV_LINKS).addClass(ClassName.ACTIVE);
  2885. }
  2886. $$$1(this._scrollElement).trigger(Event.ACTIVATE, {
  2887. relatedTarget: target
  2888. });
  2889. };
  2890. _proto._clear = function _clear() {
  2891. var nodes = [].slice.call(document.querySelectorAll(this._selector));
  2892. $$$1(nodes).filter(Selector.ACTIVE).removeClass(ClassName.ACTIVE);
  2893. }; // Static
  2894. ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
  2895. return this.each(function () {
  2896. var data = $$$1(this).data(DATA_KEY);
  2897. var _config = typeof config === 'object' && config;
  2898. if (!data) {
  2899. data = new ScrollSpy(this, _config);
  2900. $$$1(this).data(DATA_KEY, data);
  2901. }
  2902. if (typeof config === 'string') {
  2903. if (typeof data[config] === 'undefined') {
  2904. throw new TypeError("No method named \"" + config + "\"");
  2905. }
  2906. data[config]();
  2907. }
  2908. });
  2909. };
  2910. _createClass(ScrollSpy, null, [{
  2911. key: "VERSION",
  2912. get: function get() {
  2913. return VERSION;
  2914. }
  2915. }, {
  2916. key: "Default",
  2917. get: function get() {
  2918. return Default;
  2919. }
  2920. }]);
  2921. return ScrollSpy;
  2922. }();
  2923. /**
  2924. * ------------------------------------------------------------------------
  2925. * Data Api implementation
  2926. * ------------------------------------------------------------------------
  2927. */
  2928. $$$1(window).on(Event.LOAD_DATA_API, function () {
  2929. var scrollSpys = [].slice.call(document.querySelectorAll(Selector.DATA_SPY));
  2930. var scrollSpysLength = scrollSpys.length;
  2931. for (var i = scrollSpysLength; i--;) {
  2932. var $spy = $$$1(scrollSpys[i]);
  2933. ScrollSpy._jQueryInterface.call($spy, $spy.data());
  2934. }
  2935. });
  2936. /**
  2937. * ------------------------------------------------------------------------
  2938. * jQuery
  2939. * ------------------------------------------------------------------------
  2940. */
  2941. $$$1.fn[NAME] = ScrollSpy._jQueryInterface;
  2942. $$$1.fn[NAME].Constructor = ScrollSpy;
  2943. $$$1.fn[NAME].noConflict = function () {
  2944. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  2945. return ScrollSpy._jQueryInterface;
  2946. };
  2947. return ScrollSpy;
  2948. }($);
  2949. /**
  2950. * --------------------------------------------------------------------------
  2951. * Bootstrap (v4.1.3): tab.js
  2952. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  2953. * --------------------------------------------------------------------------
  2954. */
  2955. var Tab = function ($$$1) {
  2956. /**
  2957. * ------------------------------------------------------------------------
  2958. * Constants
  2959. * ------------------------------------------------------------------------
  2960. */
  2961. var NAME = 'tab';
  2962. var VERSION = '4.1.3';
  2963. var DATA_KEY = 'bs.tab';
  2964. var EVENT_KEY = "." + DATA_KEY;
  2965. var DATA_API_KEY = '.data-api';
  2966. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  2967. var Event = {
  2968. HIDE: "hide" + EVENT_KEY,
  2969. HIDDEN: "hidden" + EVENT_KEY,
  2970. SHOW: "show" + EVENT_KEY,
  2971. SHOWN: "shown" + EVENT_KEY,
  2972. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
  2973. };
  2974. var ClassName = {
  2975. DROPDOWN_MENU: 'dropdown-menu',
  2976. ACTIVE: 'active',
  2977. DISABLED: 'disabled',
  2978. FADE: 'fade',
  2979. SHOW: 'show'
  2980. };
  2981. var Selector = {
  2982. DROPDOWN: '.dropdown',
  2983. NAV_LIST_GROUP: '.nav, .list-group',
  2984. ACTIVE: '.active',
  2985. ACTIVE_UL: '> li > .active',
  2986. DATA_TOGGLE: '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',
  2987. DROPDOWN_TOGGLE: '.dropdown-toggle',
  2988. DROPDOWN_ACTIVE_CHILD: '> .dropdown-menu .active'
  2989. /**
  2990. * ------------------------------------------------------------------------
  2991. * Class Definition
  2992. * ------------------------------------------------------------------------
  2993. */
  2994. };
  2995. var Tab =
  2996. /*#__PURE__*/
  2997. function () {
  2998. function Tab(element) {
  2999. this._element = element;
  3000. } // Getters
  3001. var _proto = Tab.prototype;
  3002. // Public
  3003. _proto.show = function show() {
  3004. var _this = this;
  3005. if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $$$1(this._element).hasClass(ClassName.ACTIVE) || $$$1(this._element).hasClass(ClassName.DISABLED)) {
  3006. return;
  3007. }
  3008. var target;
  3009. var previous;
  3010. var listElement = $$$1(this._element).closest(Selector.NAV_LIST_GROUP)[0];
  3011. var selector = Util.getSelectorFromElement(this._element);
  3012. if (listElement) {
  3013. var itemSelector = listElement.nodeName === 'UL' ? Selector.ACTIVE_UL : Selector.ACTIVE;
  3014. previous = $$$1.makeArray($$$1(listElement).find(itemSelector));
  3015. previous = previous[previous.length - 1];
  3016. }
  3017. var hideEvent = $$$1.Event(Event.HIDE, {
  3018. relatedTarget: this._element
  3019. });
  3020. var showEvent = $$$1.Event(Event.SHOW, {
  3021. relatedTarget: previous
  3022. });
  3023. if (previous) {
  3024. $$$1(previous).trigger(hideEvent);
  3025. }
  3026. $$$1(this._element).trigger(showEvent);
  3027. if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) {
  3028. return;
  3029. }
  3030. if (selector) {
  3031. target = document.querySelector(selector);
  3032. }
  3033. this._activate(this._element, listElement);
  3034. var complete = function complete() {
  3035. var hiddenEvent = $$$1.Event(Event.HIDDEN, {
  3036. relatedTarget: _this._element
  3037. });
  3038. var shownEvent = $$$1.Event(Event.SHOWN, {
  3039. relatedTarget: previous
  3040. });
  3041. $$$1(previous).trigger(hiddenEvent);
  3042. $$$1(_this._element).trigger(shownEvent);
  3043. };
  3044. if (target) {
  3045. this._activate(target, target.parentNode, complete);
  3046. } else {
  3047. complete();
  3048. }
  3049. };
  3050. _proto.dispose = function dispose() {
  3051. $$$1.removeData(this._element, DATA_KEY);
  3052. this._element = null;
  3053. }; // Private
  3054. _proto._activate = function _activate(element, container, callback) {
  3055. var _this2 = this;
  3056. var activeElements;
  3057. if (container.nodeName === 'UL') {
  3058. activeElements = $$$1(container).find(Selector.ACTIVE_UL);
  3059. } else {
  3060. activeElements = $$$1(container).children(Selector.ACTIVE);
  3061. }
  3062. var active = activeElements[0];
  3063. var isTransitioning = callback && active && $$$1(active).hasClass(ClassName.FADE);
  3064. var complete = function complete() {
  3065. return _this2._transitionComplete(element, active, callback);
  3066. };
  3067. if (active && isTransitioning) {
  3068. var transitionDuration = Util.getTransitionDurationFromElement(active);
  3069. $$$1(active).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
  3070. } else {
  3071. complete();
  3072. }
  3073. };
  3074. _proto._transitionComplete = function _transitionComplete(element, active, callback) {
  3075. if (active) {
  3076. $$$1(active).removeClass(ClassName.SHOW + " " + ClassName.ACTIVE);
  3077. var dropdownChild = $$$1(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
  3078. if (dropdownChild) {
  3079. $$$1(dropdownChild).removeClass(ClassName.ACTIVE);
  3080. }
  3081. if (active.getAttribute('role') === 'tab') {
  3082. active.setAttribute('aria-selected', false);
  3083. }
  3084. }
  3085. $$$1(element).addClass(ClassName.ACTIVE);
  3086. if (element.getAttribute('role') === 'tab') {
  3087. element.setAttribute('aria-selected', true);
  3088. }
  3089. Util.reflow(element);
  3090. $$$1(element).addClass(ClassName.SHOW);
  3091. if (element.parentNode && $$$1(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) {
  3092. var dropdownElement = $$$1(element).closest(Selector.DROPDOWN)[0];
  3093. if (dropdownElement) {
  3094. var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(Selector.DROPDOWN_TOGGLE));
  3095. $$$1(dropdownToggleList).addClass(ClassName.ACTIVE);
  3096. }
  3097. element.setAttribute('aria-expanded', true);
  3098. }
  3099. if (callback) {
  3100. callback();
  3101. }
  3102. }; // Static
  3103. Tab._jQueryInterface = function _jQueryInterface(config) {
  3104. return this.each(function () {
  3105. var $this = $$$1(this);
  3106. var data = $this.data(DATA_KEY);
  3107. if (!data) {
  3108. data = new Tab(this);
  3109. $this.data(DATA_KEY, data);
  3110. }
  3111. if (typeof config === 'string') {
  3112. if (typeof data[config] === 'undefined') {
  3113. throw new TypeError("No method named \"" + config + "\"");
  3114. }
  3115. data[config]();
  3116. }
  3117. });
  3118. };
  3119. _createClass(Tab, null, [{
  3120. key: "VERSION",
  3121. get: function get() {
  3122. return VERSION;
  3123. }
  3124. }]);
  3125. return Tab;
  3126. }();
  3127. /**
  3128. * ------------------------------------------------------------------------
  3129. * Data Api implementation
  3130. * ------------------------------------------------------------------------
  3131. */
  3132. $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
  3133. event.preventDefault();
  3134. Tab._jQueryInterface.call($$$1(this), 'show');
  3135. });
  3136. /**
  3137. * ------------------------------------------------------------------------
  3138. * jQuery
  3139. * ------------------------------------------------------------------------
  3140. */
  3141. $$$1.fn[NAME] = Tab._jQueryInterface;
  3142. $$$1.fn[NAME].Constructor = Tab;
  3143. $$$1.fn[NAME].noConflict = function () {
  3144. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  3145. return Tab._jQueryInterface;
  3146. };
  3147. return Tab;
  3148. }($);
  3149. /**
  3150. * --------------------------------------------------------------------------
  3151. * Bootstrap (v4.1.3): index.js
  3152. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  3153. * --------------------------------------------------------------------------
  3154. */
  3155. (function ($$$1) {
  3156. if (typeof $$$1 === 'undefined') {
  3157. throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
  3158. }
  3159. var version = $$$1.fn.jquery.split(' ')[0].split('.');
  3160. var minMajor = 1;
  3161. var ltMajor = 2;
  3162. var minMinor = 9;
  3163. var minPatch = 1;
  3164. var maxMajor = 4;
  3165. if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
  3166. throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
  3167. }
  3168. })($);
  3169. exports.Util = Util;
  3170. exports.Alert = Alert;
  3171. exports.Button = Button;
  3172. exports.Carousel = Carousel;
  3173. exports.Collapse = Collapse;
  3174. exports.Dropdown = Dropdown;
  3175. exports.Modal = Modal;
  3176. exports.Popover = Popover;
  3177. exports.Scrollspy = ScrollSpy;
  3178. exports.Tab = Tab;
  3179. exports.Tooltip = Tooltip;
  3180. Object.defineProperty(exports, '__esModule', { value: true });
  3181. })));
  3182. //# sourceMappingURL=bootstrap.js.map